aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0001.c (310307B)


      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_36003580(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(0x36003580u);
     17 
     18 L_36003580:
     19     fp_push((double)(int32_t)MEM32(ecx + 0x98)); /* 0x36003580: fild dword ptr [ecx + 0x98] */
     20     _st[0] = _st[0] * (double)(int32_t)MEM32(ecx + 0x8C); /* 0x36003586: fimul dword ptr [ecx + 0x8c] */
     21     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600358C: ret  */
     22     RECOMP_REGS_OUT();
     23 }
     24 
     25 void sub_36003590(void) {
     26     int _fpu_cmp = 0;
     27     uint32_t _cf = 0;
     28     int _df = 1;
     29     uint32_t _flag_k = FK_NONE;
     30     uint32_t _flag_a = 0, _flag_b = 0;
     31     uint32_t _itail_tgt = 0;
     32     RECOMP_REGS_LOCALS
     33     RECOMP_ENTER(0x36003590u);
     34 
     35 L_36003590:
     36     PUSH32(esp, ebp); /* 0x36003590: push ebp */
     37     ebp = esp; /* 0x36003591: mov ebp, esp */
     38     PUSH32(esp, ecx); /* 0x36003593: push ecx */
     39     eax = MEM32(ecx + 0x9C); /* 0x36003594: mov eax, dword ptr [ecx + 0x9c] */
     40     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x98));
     41     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     42     eax = eax + MEM32(ecx + 0x98); /* 0x3600359A: add eax, dword ptr [ecx + 0x98] */
     43     _flag_k = FK_ADD;
     44     MEM32(ebp + (-0x4)) = eax; /* 0x360035A0: mov dword ptr [ebp - 4], eax */
     45     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x360035A3: fild dword ptr [ebp - 4] */
     46     _st[0] = _st[0] * (double)(int32_t)MEM32(ecx + 0x8C); /* 0x360035A6: fimul dword ptr [ecx + 0x8c] */
     47     esp = ebp; /* 0x360035AC: mov esp, ebp */
     48     ebp = POP32_VAL(esp); /* 0x360035AE: pop ebp */
     49     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360035AF: ret  */
     50     RECOMP_REGS_OUT();
     51 }
     52 
     53 void sub_360035B0(void) {
     54     int _fpu_cmp = 0;
     55     uint32_t _cf = 0;
     56     int _df = 1;
     57     uint32_t _flag_k = FK_NONE;
     58     uint32_t _flag_a = 0, _flag_b = 0;
     59     uint32_t _itail_tgt = 0;
     60     RECOMP_REGS_LOCALS
     61     RECOMP_ENTER(0x360035B0u);
     62 
     63 L_360035B0:
     64     fp_push((double)(int32_t)MEM32(ecx + 0x90)); /* 0x360035B0: fild dword ptr [ecx + 0x90] */
     65     _st[0] = _st[0] * (double)(int32_t)MEM32(ecx + 0x8C); /* 0x360035B6: fimul dword ptr [ecx + 0x8c] */
     66     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360035BC: ret  */
     67     RECOMP_REGS_OUT();
     68 }
     69 
     70 void sub_360035C0(void) {
     71     int _fpu_cmp = 0;
     72     uint32_t _cf = 0;
     73     int _df = 1;
     74     uint32_t _flag_k = FK_NONE;
     75     uint32_t _flag_a = 0, _flag_b = 0;
     76     uint32_t _itail_tgt = 0;
     77     RECOMP_REGS_LOCALS
     78     RECOMP_ENTER(0x360035C0u);
     79 
     80 L_360035C0:
     81     PUSH32(esp, ebp); /* 0x360035C0: push ebp */
     82     ebp = esp; /* 0x360035C1: mov ebp, esp */
     83     PUSH32(esp, ecx); /* 0x360035C3: push ecx */
     84     eax = MEM32(ecx + 0x94); /* 0x360035C4: mov eax, dword ptr [ecx + 0x94] */
     85     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x90));
     86     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     87     eax = eax + MEM32(ecx + 0x90); /* 0x360035CA: add eax, dword ptr [ecx + 0x90] */
     88     _flag_k = FK_ADD;
     89     MEM32(ebp + (-0x4)) = eax; /* 0x360035D0: mov dword ptr [ebp - 4], eax */
     90     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x360035D3: fild dword ptr [ebp - 4] */
     91     _st[0] = _st[0] * (double)(int32_t)MEM32(ecx + 0x8C); /* 0x360035D6: fimul dword ptr [ecx + 0x8c] */
     92     esp = ebp; /* 0x360035DC: mov esp, ebp */
     93     ebp = POP32_VAL(esp); /* 0x360035DE: pop ebp */
     94     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360035DF: ret  */
     95     RECOMP_REGS_OUT();
     96 }
     97 
     98 void sub_360035E0(void) {
     99     int _fpu_cmp = 0;
    100     uint32_t _cf = 0;
    101     int _df = 1;
    102     uint32_t _flag_k = FK_NONE;
    103     uint32_t _flag_a = 0, _flag_b = 0;
    104     uint32_t _itail_tgt = 0;
    105     RECOMP_REGS_LOCALS
    106     RECOMP_ENTER(0x360035E0u);
    107 
    108 L_360035E0:
    109     fp_push(*(float*)&MEM32(ecx + 0xA0)); /* 0x360035E0: fld dword ptr [ecx + 0xa0] */
    110     goto L_3615FD8C; /* 0x360035E6: jmp 0x3615fd8c */
    111     { RECOMP_REGS_OUT(); return; } /* end of function */
    112     L_3615FD8C: RECOMP_ITAIL(0x3615FD8Cu); { RECOMP_REGS_OUT(); return; }
    113     RECOMP_REGS_OUT();
    114 }
    115 
    116 void sub_360035F0(void) {
    117     int _fpu_cmp = 0;
    118     uint32_t _cf = 0;
    119     int _df = 1;
    120     uint32_t _flag_k = FK_NONE;
    121     uint32_t _flag_a = 0, _flag_b = 0;
    122     uint32_t _itail_tgt = 0;
    123     RECOMP_REGS_LOCALS
    124     RECOMP_ENTER(0x360035F0u);
    125 
    126 L_360035F0:
    127     eax = MEM32(ecx + 0x8C); /* 0x360035F0: mov eax, dword ptr [ecx + 0x8c] */
    128     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360035F6: ret  */
    129     RECOMP_REGS_OUT();
    130 }
    131 
    132 void sub_36003600(void) {
    133     int _fpu_cmp = 0;
    134     uint32_t _cf = 0;
    135     int _df = 1;
    136     uint32_t _flag_k = FK_NONE;
    137     uint32_t _flag_a = 0, _flag_b = 0;
    138     uint32_t _itail_tgt = 0;
    139     RECOMP_REGS_LOCALS
    140     RECOMP_ENTER(0x36003600u);
    141 
    142 L_36003600:
    143     eax = MEM32(ecx + 0x5C); /* 0x36003600: mov eax, dword ptr [ecx + 0x5c] */
    144     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36003603: ret  */
    145     RECOMP_REGS_OUT();
    146 }
    147 
    148 void sub_36003610(void) {
    149     int _fpu_cmp = 0;
    150     uint32_t _cf = 0;
    151     int _df = 1;
    152     uint32_t _flag_k = FK_NONE;
    153     uint32_t _flag_a = 0, _flag_b = 0;
    154     uint32_t _itail_tgt = 0;
    155     RECOMP_REGS_LOCALS
    156     RECOMP_ENTER(0x36003610u);
    157 
    158 L_36003610:
    159     eax = MEM32(ecx + 0xB4); /* 0x36003610: mov eax, dword ptr [ecx + 0xb4] */
    160     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36003616: ret  */
    161     RECOMP_REGS_OUT();
    162 }
    163 
    164 void sub_36003620(void) {
    165     int _fpu_cmp = 0;
    166     uint32_t _cf = 0;
    167     int _df = 1;
    168     uint32_t _flag_k = FK_NONE;
    169     uint32_t _flag_a = 0, _flag_b = 0;
    170     uint32_t _itail_tgt = 0;
    171     RECOMP_REGS_LOCALS
    172     RECOMP_ENTER(0x36003620u);
    173 
    174 L_36003620:
    175     PUSH32(esp, ebp); /* 0x36003620: push ebp */
    176     ebp = esp; /* 0x36003621: mov ebp, esp */
    177     PUSH32(esp, 0xFFFFFFFFu); /* 0x36003623: push -1 */
    178     PUSH32(esp, 0x36160221u); /* 0x36003625: push 0x36160221 */
    179     eax = MEM32(FS_BASE + (0)); /* 0x3600362A: mov eax, dword ptr fs:[0] */
    180     PUSH32(esp, eax); /* 0x36003630: push eax */
    181     MEM32(FS_BASE + (0)) = esp; /* 0x36003631: mov dword ptr fs:[0], esp */
    182     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    184     esp = esp - 0xCu; /* 0x36003638: sub esp, 0xc */
    185     _flag_k = FK_CMP;
    186     eax = MEM32(0x3616FFA0); /* 0x3600363B: mov eax, dword ptr [0x3616ffa0] */
    187     PUSH32(esp, ebx); /* 0x36003640: push ebx */
    188     PUSH32(esp, esi); /* 0x36003641: push esi */
    189     esi = ecx; /* 0x36003642: mov esi, ecx */
    190     PUSH32(esp, edi); /* 0x36003644: push edi */
    191     edi = MEM32(ebp + 0x8); /* 0x36003645: mov edi, dword ptr [ebp + 8] */
    192     MEM32(esi) = eax; /* 0x36003648: mov dword ptr [esi], eax */
    193     SET_LO8(ecx, MEM8(edi + 0x4)); /* 0x3600364A: mov cl, byte ptr [edi + 4] */
    194     MEM8(esi + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3600364D: mov byte ptr [esi + 4], cl */
    195     ecx = MEM32(edi + 0x8); /* 0x36003650: mov ecx, dword ptr [edi + 8] */
    196     /* test ecx, ecx */ /* 0x36003653: test ecx, ecx */
    197     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    198     _cf = 0;
    199     _flag_k = FK_TEST;
    200     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600365B; /* 0x36003655: jne 0x3600365b */
    201 L_36003657:
    202     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    203     eax = 0; /* 0x36003657: xor eax, eax */
    204     _cf = 0;
    205     _flag_k = FK_TEST;
    206     goto L_36003663; /* 0x36003659: jmp 0x36003663 */
    207 L_3600365B:
    208     eax = MEM32(edi + 0xC); /* 0x3600365B: mov eax, dword ptr [edi + 0xc] */
    209     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    210     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    211     eax = eax - ecx; /* 0x3600365E: sub eax, ecx */
    212     _flag_k = FK_CMP;
    213     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36003660: sar eax, 3 */
    214     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    215     eax = (uint32_t)((int32_t)eax >> 3u);
    216 L_36003663:
    217     /* test eax, eax */ /* 0x36003663: test eax, eax */
    218     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    219     _cf = 0;
    220     _flag_k = FK_TEST;
    221     if (TEST_NS(_flag_a, _flag_b)) goto L_36003669; /* 0x36003665: jge 0x36003669 */
    222 L_36003667:
    223     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    224     eax = 0; /* 0x36003667: xor eax, eax */
    225     _cf = 0;
    226     _flag_k = FK_TEST;
    227 L_36003669:
    228     edx = eax * 8; /* 0x36003669: lea edx, [eax*8] */
    229     PUSH32(esp, edx); /* 0x36003670: push edx */
    230     RECOMP_ICALL(0x3615FD6Au); /* 0x36003671: call 0x3615fd6a */ /* not lifted */
    231     RECOMP_FLAGS_IN();
    232     MEM32(esi + 0x8) = eax; /* 0x36003676: mov dword ptr [esi + 8], eax */
    233     ecx = MEM32(edi + 0x8); /* 0x36003679: mov ecx, dword ptr [edi + 8] */
    234     edx = MEM32(edi + 0xC); /* 0x3600367C: mov edx, dword ptr [edi + 0xc] */
    235     ebx = eax; /* 0x3600367F: mov ebx, eax */
    236     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    237     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    238     esp = esp + 4; /* 0x36003681: add esp, 4 */
    239     _flag_k = FK_ADD;
    240     /* cmp ecx, edx */ /* 0x36003684: cmp ecx, edx */
    241     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    242     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    243     _flag_k = FK_CMP;
    244     eax = ecx; /* 0x36003686: mov eax, ecx */
    245     MEM32(ebp + (-0x10)) = edx; /* 0x36003688: mov dword ptr [ebp - 0x10], edx */
    246     MEM32(ebp + (-0x14)) = ebx; /* 0x3600368B: mov dword ptr [ebp - 0x14], ebx */
    247     MEM32(ebp + 0x8) = eax; /* 0x3600368E: mov dword ptr [ebp + 8], eax */
    248     if (CMP_EQ(_flag_a, _flag_b)) goto L_360036CD; /* 0x36003691: je 0x360036cd */
    249 L_36003693:
    250     MEM32(ebp + (-0x18)) = ebx; /* 0x36003693: mov dword ptr [ebp - 0x18], ebx */
    251     /* test ebx, ebx */ /* 0x36003696: test ebx, ebx */
    252     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    253     _cf = 0;
    254     _flag_k = FK_TEST;
    255     MEM32(ebp + (-0x4)) = 0; /* 0x36003698: mov dword ptr [ebp - 4], 0 */
    256     if (TEST_Z(_flag_a, _flag_b)) goto L_360036B6; /* 0x3600369F: je 0x360036b6 */
    257 L_360036A1:
    258     PUSH32(esp, eax); /* 0x360036A1: push eax */
    259     ecx = ebx; /* 0x360036A2: mov ecx, ebx */
    260     RECOMP_ICALL(MEM32(0x3616FF9C)); /* 0x360036A4: call dword ptr [0x3616ff9c] */
    261     RECOMP_FLAGS_IN();
    262     eax = MEM32(ebp + 0x8); /* 0x360036AA: mov eax, dword ptr [ebp + 8] */
    263     edx = MEM32(ebp + (-0x10)); /* 0x360036AD: mov edx, dword ptr [ebp - 0x10] */
    264     MEM32(ebx) = 0x361703F8u; /* 0x360036B0: mov dword ptr [ebx], 0x361703f8 */
    265 L_360036B6:
    266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
    267     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    268     eax = eax + 8; /* 0x360036B6: add eax, 8 */
    269     _flag_k = FK_ADD;
    270     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
    271     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    272     ebx = ebx + 8; /* 0x360036B9: add ebx, 8 */
    273     _flag_k = FK_ADD;
    274     /* cmp eax, edx */ /* 0x360036BC: cmp eax, edx */
    275     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    276     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    277     _flag_k = FK_CMP;
    278     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360036BE: mov dword ptr [ebp - 4], 0xffffffff */
    279     MEM32(ebp + (-0x14)) = ebx; /* 0x360036C5: mov dword ptr [ebp - 0x14], ebx */
    280     MEM32(ebp + 0x8) = eax; /* 0x360036C8: mov dword ptr [ebp + 8], eax */
    281     RECOMP_BACKEDGE();
    282     if (CMP_NE(_flag_a, _flag_b)) goto L_36003693; /* 0x360036CB: jne 0x36003693 */
    283 L_360036CD:
    284     MEM32(esi + 0xC) = ebx; /* 0x360036CD: mov dword ptr [esi + 0xc], ebx */
    285     MEM32(esi + 0x10) = ebx; /* 0x360036D0: mov dword ptr [esi + 0x10], ebx */
    286     SET_LO8(eax, MEM8(edi + 0x14)); /* 0x360036D3: mov al, byte ptr [edi + 0x14] */
    287     MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x360036D6: mov byte ptr [esi + 0x14], al */
    288     ecx = MEM32(edi + 0x18); /* 0x360036D9: mov ecx, dword ptr [edi + 0x18] */
    289     MEM32(esi + 0x18) = ecx; /* 0x360036DC: mov dword ptr [esi + 0x18], ecx */
    290     edx = MEM32(0x3616FF98); /* 0x360036DF: mov edx, dword ptr [0x3616ff98] */
    291     MEM32(esi) = edx; /* 0x360036E5: mov dword ptr [esi], edx */
    292     SET_LO8(eax, MEM8(edi + 0x1C)); /* 0x360036E7: mov al, byte ptr [edi + 0x1c] */
    293     MEM8(esi + 0x1C) = (uint8_t)(LO8(eax)); /* 0x360036EA: mov byte ptr [esi + 0x1c], al */
    294     SET_LO8(ecx, MEM8(edi + 0x1D)); /* 0x360036ED: mov cl, byte ptr [edi + 0x1d] */
    295     MEM8(esi + 0x1D) = (uint8_t)(LO8(ecx)); /* 0x360036F0: mov byte ptr [esi + 0x1d], cl */
    296     SET_LO8(edx, MEM8(edi + 0x1E)); /* 0x360036F3: mov dl, byte ptr [edi + 0x1e] */
    297     MEM8(esi + 0x1E) = (uint8_t)(LO8(edx)); /* 0x360036F6: mov byte ptr [esi + 0x1e], dl */
    298     eax = MEM32(edi + 0x20); /* 0x360036F9: mov eax, dword ptr [edi + 0x20] */
    299     MEM32(esi + 0x20) = eax; /* 0x360036FC: mov dword ptr [esi + 0x20], eax */
    300     ecx = MEM32(edi + 0x24); /* 0x360036FF: mov ecx, dword ptr [edi + 0x24] */
    301     MEM32(esi + 0x24) = ecx; /* 0x36003702: mov dword ptr [esi + 0x24], ecx */
    302     edx = MEM32(edi + 0x28); /* 0x36003705: mov edx, dword ptr [edi + 0x28] */
    303     MEM32(esi + 0x28) = edx; /* 0x36003708: mov dword ptr [esi + 0x28], edx */
    304     eax = MEM32(edi + 0x2C); /* 0x3600370B: mov eax, dword ptr [edi + 0x2c] */
    305     MEM32(esi + 0x2C) = eax; /* 0x3600370E: mov dword ptr [esi + 0x2c], eax */
    306     ecx = MEM32(edi + 0x30); /* 0x36003711: mov ecx, dword ptr [edi + 0x30] */
    307     MEM32(esi + 0x30) = ecx; /* 0x36003714: mov dword ptr [esi + 0x30], ecx */
    308     edx = MEM32(edi + 0x34); /* 0x36003717: mov edx, dword ptr [edi + 0x34] */
    309     MEM32(esi + 0x34) = edx; /* 0x3600371A: mov dword ptr [esi + 0x34], edx */
    310     eax = MEM32(edi + 0x38); /* 0x3600371D: mov eax, dword ptr [edi + 0x38] */
    311     MEM32(esi + 0x38) = eax; /* 0x36003720: mov dword ptr [esi + 0x38], eax */
    312     ecx = MEM32(edi + 0x3C); /* 0x36003723: mov ecx, dword ptr [edi + 0x3c] */
    313     MEM32(esi + 0x3C) = ecx; /* 0x36003726: mov dword ptr [esi + 0x3c], ecx */
    314     edx = MEM32(edi + 0x40); /* 0x36003729: mov edx, dword ptr [edi + 0x40] */
    315     MEM32(esi + 0x40) = edx; /* 0x3600372C: mov dword ptr [esi + 0x40], edx */
    316     eax = MEM32(edi + 0x44); /* 0x3600372F: mov eax, dword ptr [edi + 0x44] */
    317     MEM32(esi + 0x44) = eax; /* 0x36003732: mov dword ptr [esi + 0x44], eax */
    318     ecx = MEM32(edi + 0x48); /* 0x36003735: mov ecx, dword ptr [edi + 0x48] */
    319     MEM32(esi + 0x48) = ecx; /* 0x36003738: mov dword ptr [esi + 0x48], ecx */
    320     edx = MEM32(edi + 0x4C); /* 0x3600373B: mov edx, dword ptr [edi + 0x4c] */
    321     MEM32(esi + 0x4C) = edx; /* 0x3600373E: mov dword ptr [esi + 0x4c], edx */
    322     eax = MEM32(edi + 0x50); /* 0x36003741: mov eax, dword ptr [edi + 0x50] */
    323     MEM32(esi + 0x50) = eax; /* 0x36003744: mov dword ptr [esi + 0x50], eax */
    324     ecx = MEM32(edi + 0x54); /* 0x36003747: mov ecx, dword ptr [edi + 0x54] */
    325     MEM32(esi + 0x54) = ecx; /* 0x3600374A: mov dword ptr [esi + 0x54], ecx */
    326     edx = MEM32(edi + 0x58); /* 0x3600374D: mov edx, dword ptr [edi + 0x58] */
    327     MEM32(esi + 0x58) = edx; /* 0x36003750: mov dword ptr [esi + 0x58], edx */
    328     eax = MEM32(edi + 0x5C); /* 0x36003753: mov eax, dword ptr [edi + 0x5c] */
    329     MEM32(esi + 0x5C) = eax; /* 0x36003756: mov dword ptr [esi + 0x5c], eax */
    330     ecx = MEM32(edi + 0x60); /* 0x36003759: mov ecx, dword ptr [edi + 0x60] */
    331     MEM32(esi + 0x60) = ecx; /* 0x3600375C: mov dword ptr [esi + 0x60], ecx */
    332     edx = MEM32(edi + 0x64); /* 0x3600375F: mov edx, dword ptr [edi + 0x64] */
    333     MEM32(esi + 0x64) = edx; /* 0x36003762: mov dword ptr [esi + 0x64], edx */
    334     eax = MEM32(edi + 0x68); /* 0x36003765: mov eax, dword ptr [edi + 0x68] */
    335     MEM32(esi + 0x68) = eax; /* 0x36003768: mov dword ptr [esi + 0x68], eax */
    336     ecx = MEM32(edi + 0x6C); /* 0x3600376B: mov ecx, dword ptr [edi + 0x6c] */
    337     MEM32(esi + 0x6C) = ecx; /* 0x3600376E: mov dword ptr [esi + 0x6c], ecx */
    338     edx = MEM32(edi + 0x70); /* 0x36003771: mov edx, dword ptr [edi + 0x70] */
    339     MEM32(esi + 0x70) = edx; /* 0x36003774: mov dword ptr [esi + 0x70], edx */
    340     eax = MEM32(edi + 0x74); /* 0x36003777: mov eax, dword ptr [edi + 0x74] */
    341     MEM32(esi + 0x74) = eax; /* 0x3600377A: mov dword ptr [esi + 0x74], eax */
    342     ecx = MEM32(edi + 0x78); /* 0x3600377D: mov ecx, dword ptr [edi + 0x78] */
    343     MEM32(esi + 0x78) = ecx; /* 0x36003780: mov dword ptr [esi + 0x78], ecx */
    344     edx = MEM32(edi + 0x7C); /* 0x36003783: mov edx, dword ptr [edi + 0x7c] */
    345     MEM32(esi + 0x7C) = edx; /* 0x36003786: mov dword ptr [esi + 0x7c], edx */
    346     eax = MEM32(edi + 0x80); /* 0x36003789: mov eax, dword ptr [edi + 0x80] */
    347     MEM32(esi + 0x80) = eax; /* 0x3600378F: mov dword ptr [esi + 0x80], eax */
    348     ecx = MEM32(edi + 0x84); /* 0x36003795: mov ecx, dword ptr [edi + 0x84] */
    349     MEM32(esi + 0x84) = ecx; /* 0x3600379B: mov dword ptr [esi + 0x84], ecx */
    350     edx = MEM32(edi + 0x88); /* 0x360037A1: mov edx, dword ptr [edi + 0x88] */
    351     MEM32(esi + 0x88) = edx; /* 0x360037A7: mov dword ptr [esi + 0x88], edx */
    352     eax = MEM32(edi + 0x8C); /* 0x360037AD: mov eax, dword ptr [edi + 0x8c] */
    353     MEM32(esi + 0x8C) = eax; /* 0x360037B3: mov dword ptr [esi + 0x8c], eax */
    354     ecx = MEM32(edi + 0x90); /* 0x360037B9: mov ecx, dword ptr [edi + 0x90] */
    355     MEM32(esi + 0x90) = ecx; /* 0x360037BF: mov dword ptr [esi + 0x90], ecx */
    356     edx = MEM32(edi + 0x94); /* 0x360037C5: mov edx, dword ptr [edi + 0x94] */
    357     MEM32(esi + 0x94) = edx; /* 0x360037CB: mov dword ptr [esi + 0x94], edx */
    358     eax = MEM32(edi + 0x98); /* 0x360037D1: mov eax, dword ptr [edi + 0x98] */
    359     MEM32(esi + 0x98) = eax; /* 0x360037D7: mov dword ptr [esi + 0x98], eax */
    360     ecx = MEM32(edi + 0x9C); /* 0x360037DD: mov ecx, dword ptr [edi + 0x9c] */
    361     MEM32(esi + 0x9C) = ecx; /* 0x360037E3: mov dword ptr [esi + 0x9c], ecx */
    362     edx = MEM32(edi + 0xA0); /* 0x360037E9: mov edx, dword ptr [edi + 0xa0] */
    363     MEM32(esi + 0xA0) = edx; /* 0x360037EF: mov dword ptr [esi + 0xa0], edx */
    364     eax = MEM32(edi + 0xA4); /* 0x360037F5: mov eax, dword ptr [edi + 0xa4] */
    365     MEM32(esi + 0xA4) = eax; /* 0x360037FB: mov dword ptr [esi + 0xa4], eax */
    366     ecx = MEM32(edi + 0xA8); /* 0x36003801: mov ecx, dword ptr [edi + 0xa8] */
    367     MEM32(esi + 0xA8) = ecx; /* 0x36003807: mov dword ptr [esi + 0xa8], ecx */
    368     edx = MEM32(edi + 0xAC); /* 0x3600380D: mov edx, dword ptr [edi + 0xac] */
    369     MEM32(esi + 0xAC) = edx; /* 0x36003813: mov dword ptr [esi + 0xac], edx */
    370     eax = MEM32(edi + 0xB0); /* 0x36003819: mov eax, dword ptr [edi + 0xb0] */
    371     MEM32(esi + 0xB0) = eax; /* 0x3600381F: mov dword ptr [esi + 0xb0], eax */
    372     ecx = MEM32(edi + 0xB4); /* 0x36003825: mov ecx, dword ptr [edi + 0xb4] */
    373     MEM32(esi + 0xB4) = ecx; /* 0x3600382B: mov dword ptr [esi + 0xb4], ecx */
    374     edx = MEM32(edi + 0xB8); /* 0x36003831: mov edx, dword ptr [edi + 0xb8] */
    375     ecx = MEM32(ebp + (-0xC)); /* 0x36003837: mov ecx, dword ptr [ebp - 0xc] */
    376     MEM32(esi + 0xB8) = edx; /* 0x3600383A: mov dword ptr [esi + 0xb8], edx */
    377     eax = MEM32(edi + 0xBC); /* 0x36003840: mov eax, dword ptr [edi + 0xbc] */
    378     MEM32(esi + 0xBC) = eax; /* 0x36003846: mov dword ptr [esi + 0xbc], eax */
    379     edi = POP32_VAL(esp); /* 0x3600384C: pop edi */
    380     MEM32(esi) = 0x361703E0u; /* 0x3600384D: mov dword ptr [esi], 0x361703e0 */
    381     eax = esi; /* 0x36003853: mov eax, esi */
    382     esi = POP32_VAL(esp); /* 0x36003855: pop esi */
    383     ebx = POP32_VAL(esp); /* 0x36003856: pop ebx */
    384     MEM32(FS_BASE + (0)) = ecx; /* 0x36003857: mov dword ptr fs:[0], ecx */
    385     esp = ebp; /* 0x3600385E: mov esp, ebp */
    386     ebp = POP32_VAL(esp); /* 0x36003860: pop ebp */
    387     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003861: ret 4 */
    388     RECOMP_REGS_OUT();
    389 }
    390 
    391 void sub_36003870(void) {
    392     int _fpu_cmp = 0;
    393     uint32_t _cf = 0;
    394     int _df = 1;
    395     uint32_t _flag_k = FK_NONE;
    396     uint32_t _flag_a = 0, _flag_b = 0;
    397     uint32_t _itail_tgt = 0;
    398     RECOMP_REGS_LOCALS
    399     RECOMP_ENTER(0x36003870u);
    400 
    401 L_36003870:
    402     PUSH32(esp, ebp); /* 0x36003870: push ebp */
    403     ebp = esp; /* 0x36003871: mov ebp, esp */
    404     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    406     esp = esp - 8; /* 0x36003873: sub esp, 8 */
    407     _flag_k = FK_CMP;
    408     edx = MEM32(ebp + 0x8); /* 0x36003876: mov edx, dword ptr [ebp + 8] */
    409     PUSH32(esp, ebx); /* 0x36003879: push ebx */
    410     ebx = ecx; /* 0x3600387A: mov ebx, ecx */
    411     eax = edx + 0x4; /* 0x3600387C: lea eax, [edx + 4] */
    412     ecx = ebx + 0x4; /* 0x3600387F: lea ecx, [ebx + 4] */
    413     /* cmp ecx, eax */ /* 0x36003882: cmp ecx, eax */
    414     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    416     _flag_k = FK_CMP;
    417     PUSH32(esp, esi); /* 0x36003884: push esi */
    418     PUSH32(esp, edi); /* 0x36003885: push edi */
    419     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003A30; /* 0x36003886: je 0x36003a30 */
    420 L_3600388C:
    421     esi = MEM32(eax + 0x4); /* 0x3600388C: mov esi, dword ptr [eax + 4] */
    422     /* test esi, esi */ /* 0x3600388F: test esi, esi */
    423     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    424     _cf = 0;
    425     _flag_k = FK_TEST;
    426     MEM32(ebp + (-0x4)) = esi; /* 0x36003891: mov dword ptr [ebp - 4], esi */
    427     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600389A; /* 0x36003894: jne 0x3600389a */
    428 L_36003896:
    429     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    430     edi = 0; /* 0x36003896: xor edi, edi */
    431     _cf = 0;
    432     _flag_k = FK_TEST;
    433     goto L_360038A2; /* 0x36003898: jmp 0x360038a2 */
    434 L_3600389A:
    435     edi = MEM32(eax + 0x8); /* 0x3600389A: mov edi, dword ptr [eax + 8] */
    436     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
    437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    438     edi = edi - esi; /* 0x3600389D: sub edi, esi */
    439     _flag_k = FK_CMP;
    440     if (3u) _cf = (((edi) >> 2) & 1u); /* 0x3600389F: sar edi, 3 */
    441     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    442     edi = (uint32_t)((int32_t)edi >> 3u);
    443 L_360038A2:
    444     eax = MEM32(ecx + 0x4); /* 0x360038A2: mov eax, dword ptr [ecx + 4] */
    445     /* test eax, eax */ /* 0x360038A5: test eax, eax */
    446     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    447     _cf = 0;
    448     _flag_k = FK_TEST;
    449     if (TEST_NZ(_flag_a, _flag_b)) goto L_360038AD; /* 0x360038A7: jne 0x360038ad */
    450 L_360038A9:
    451     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    452     esi = 0; /* 0x360038A9: xor esi, esi */
    453     _cf = 0;
    454     _flag_k = FK_TEST;
    455     goto L_360038B5; /* 0x360038AB: jmp 0x360038b5 */
    456 L_360038AD:
    457     esi = MEM32(ecx + 0x8); /* 0x360038AD: mov esi, dword ptr [ecx + 8] */
    458     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    460     esi = esi - eax; /* 0x360038B0: sub esi, eax */
    461     _flag_k = FK_CMP;
    462     if (3u) _cf = (((esi) >> 2) & 1u); /* 0x360038B2: sar esi, 3 */
    463     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    464     esi = (uint32_t)((int32_t)esi >> 3u);
    465 L_360038B5:
    466     /* cmp edi, esi */ /* 0x360038B5: cmp edi, esi */
    467     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
    468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    469     _flag_k = FK_CMP;
    470     if (CMP_A(_flag_a, _flag_b)) goto L_36003930; /* 0x360038B7: ja 0x36003930 */
    471 L_360038B9:
    472     ecx = MEM32(edx + 0xC); /* 0x360038B9: mov ecx, dword ptr [edx + 0xc] */
    473     esi = MEM32(ebp + (-0x4)); /* 0x360038BC: mov esi, dword ptr [ebp - 4] */
    474     /* cmp esi, ecx */ /* 0x360038BF: cmp esi, ecx */
    475     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
    476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    477     _flag_k = FK_CMP;
    478     MEM32(ebp + (-0x8)) = ecx; /* 0x360038C1: mov dword ptr [ebp - 8], ecx */
    479     edi = eax; /* 0x360038C4: mov edi, eax */
    480     if (CMP_EQ(_flag_a, _flag_b)) goto L_360038E1; /* 0x360038C6: je 0x360038e1 */
    481 L_360038C8:
    482     PUSH32(esp, esi); /* 0x360038C8: push esi */
    483     ecx = edi; /* 0x360038C9: mov ecx, edi */
    484     RECOMP_ICALL(MEM32(0x3616FFA4)); /* 0x360038CB: call dword ptr [0x3616ffa4] */
    485     RECOMP_FLAGS_IN();
    486     eax = MEM32(ebp + (-0x8)); /* 0x360038D1: mov eax, dword ptr [ebp - 8] */
    487     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
    488     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    489     esi = esi + 8; /* 0x360038D4: add esi, 8 */
    490     _flag_k = FK_ADD;
    491     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
    492     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    493     edi = edi + 8; /* 0x360038D7: add edi, 8 */
    494     _flag_k = FK_ADD;
    495     /* cmp esi, eax */ /* 0x360038DA: cmp esi, eax */
    496     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    498     _flag_k = FK_CMP;
    499     RECOMP_BACKEDGE();
    500     if (CMP_NE(_flag_a, _flag_b)) goto L_360038C8; /* 0x360038DC: jne 0x360038c8 */
    501 L_360038DE:
    502     edx = MEM32(ebp + 0x8); /* 0x360038DE: mov edx, dword ptr [ebp + 8] */
    503 L_360038E1:
    504     eax = MEM32(ebx + 0xC); /* 0x360038E1: mov eax, dword ptr [ebx + 0xc] */
    505     /* cmp edi, eax */ /* 0x360038E4: cmp edi, eax */
    506     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    508     _flag_k = FK_CMP;
    509     MEM32(ebp + (-0x8)) = eax; /* 0x360038E6: mov dword ptr [ebp - 8], eax */
    510     esi = edi; /* 0x360038E9: mov esi, edi */
    511     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003903; /* 0x360038EB: je 0x36003903 */
    512 L_360038ED:
    513     eax = MEM32(esi); /* 0x360038ED: mov eax, dword ptr [esi] */
    514     PUSH32(esp, 0); /* 0x360038EF: push 0 */
    515     ecx = esi; /* 0x360038F1: mov ecx, esi */
    516     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360038F3: call dword ptr [eax + 0xc] */
    517     RECOMP_FLAGS_IN();
    518     eax = MEM32(ebp + (-0x8)); /* 0x360038F6: mov eax, dword ptr [ebp - 8] */
    519     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
    520     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    521     esi = esi + 8; /* 0x360038F9: add esi, 8 */
    522     _flag_k = FK_ADD;
    523     /* cmp esi, eax */ /* 0x360038FC: cmp esi, eax */
    524     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    525     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    526     _flag_k = FK_CMP;
    527     RECOMP_BACKEDGE();
    528     if (CMP_NE(_flag_a, _flag_b)) goto L_360038ED; /* 0x360038FE: jne 0x360038ed */
    529 L_36003900:
    530     edx = MEM32(ebp + 0x8); /* 0x36003900: mov edx, dword ptr [ebp + 8] */
    531 L_36003903:
    532     ecx = MEM32(edx + 0x8); /* 0x36003903: mov ecx, dword ptr [edx + 8] */
    533     /* test ecx, ecx */ /* 0x36003906: test ecx, ecx */
    534     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    535     _cf = 0;
    536     _flag_k = FK_TEST;
    537     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600391A; /* 0x36003908: jne 0x3600391a */
    538 L_3600390A:
    539     ecx = MEM32(ebx + 0x8); /* 0x3600390A: mov ecx, dword ptr [ebx + 8] */
    540     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    541     eax = 0; /* 0x3600390D: xor eax, eax */
    542     _cf = 0;
    543     _flag_k = FK_TEST;
    544     eax = ecx + eax * 8; /* 0x3600390F: lea eax, [ecx + eax*8] */
    545     MEM32(ebx + 0xC) = eax; /* 0x36003912: mov dword ptr [ebx + 0xc], eax */
    546     goto L_36003A30; /* 0x36003915: jmp 0x36003a30 */
    547 L_3600391A:
    548     eax = MEM32(edx + 0xC); /* 0x3600391A: mov eax, dword ptr [edx + 0xc] */
    549     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    551     eax = eax - ecx; /* 0x3600391D: sub eax, ecx */
    552     _flag_k = FK_CMP;
    553     ecx = MEM32(ebx + 0x8); /* 0x3600391F: mov ecx, dword ptr [ebx + 8] */
    554     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36003922: sar eax, 3 */
    555     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    556     eax = (uint32_t)((int32_t)eax >> 3u);
    557     eax = ecx + eax * 8; /* 0x36003925: lea eax, [ecx + eax*8] */
    558     MEM32(ebx + 0xC) = eax; /* 0x36003928: mov dword ptr [ebx + 0xc], eax */
    559     goto L_36003A30; /* 0x3600392B: jmp 0x36003a30 */
    560 L_36003930:
    561     esi = MEM32(ebp + (-0x4)); /* 0x36003930: mov esi, dword ptr [ebp - 4] */
    562     /* test esi, esi */ /* 0x36003933: test esi, esi */
    563     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    564     _cf = 0;
    565     _flag_k = FK_TEST;
    566     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600393B; /* 0x36003935: jne 0x3600393b */
    567 L_36003937:
    568     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    569     edi = 0; /* 0x36003937: xor edi, edi */
    570     _cf = 0;
    571     _flag_k = FK_TEST;
    572     goto L_36003943; /* 0x36003939: jmp 0x36003943 */
    573 L_3600393B:
    574     edi = MEM32(edx + 0xC); /* 0x3600393B: mov edi, dword ptr [edx + 0xc] */
    575     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
    576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    577     edi = edi - esi; /* 0x3600393E: sub edi, esi */
    578     _flag_k = FK_CMP;
    579     if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36003940: sar edi, 3 */
    580     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    581     edi = (uint32_t)((int32_t)edi >> 3u);
    582 L_36003943:
    583     /* test eax, eax */ /* 0x36003943: test eax, eax */
    584     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    585     _cf = 0;
    586     _flag_k = FK_TEST;
    587     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600394B; /* 0x36003945: jne 0x3600394b */
    588 L_36003947:
    589     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    590     esi = 0; /* 0x36003947: xor esi, esi */
    591     _cf = 0;
    592     _flag_k = FK_TEST;
    593     goto L_36003953; /* 0x36003949: jmp 0x36003953 */
    594 L_3600394B:
    595     esi = MEM32(ecx + 0xC); /* 0x3600394B: mov esi, dword ptr [ecx + 0xc] */
    596     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    598     esi = esi - eax; /* 0x3600394E: sub esi, eax */
    599     _flag_k = FK_CMP;
    600     if (3u) _cf = (((esi) >> 2) & 1u); /* 0x36003950: sar esi, 3 */
    601     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    602     esi = (uint32_t)((int32_t)esi >> 3u);
    603 L_36003953:
    604     /* cmp edi, esi */ /* 0x36003953: cmp edi, esi */
    605     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
    606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    607     _flag_k = FK_CMP;
    608     if (CMP_A(_flag_a, _flag_b)) goto L_360039CC; /* 0x36003955: ja 0x360039cc */
    609 L_36003957:
    610     /* test eax, eax */ /* 0x36003957: test eax, eax */
    611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    612     _cf = 0;
    613     _flag_k = FK_TEST;
    614     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600395F; /* 0x36003959: jne 0x3600395f */
    615 L_3600395B:
    616     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    617     ecx = 0; /* 0x3600395B: xor ecx, ecx */
    618     _cf = 0;
    619     _flag_k = FK_TEST;
    620     goto L_36003967; /* 0x3600395D: jmp 0x36003967 */
    621 L_3600395F:
    622     ecx = MEM32(ecx + 0x8); /* 0x3600395F: mov ecx, dword ptr [ecx + 8] */
    623     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    625     ecx = ecx - eax; /* 0x36003962: sub ecx, eax */
    626     _flag_k = FK_CMP;
    627     if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36003964: sar ecx, 3 */
    628     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    629     ecx = (uint32_t)((int32_t)ecx >> 3u);
    630 L_36003967:
    631     esi = MEM32(ebp + (-0x4)); /* 0x36003967: mov esi, dword ptr [ebp - 4] */
    632     edi = esi + ecx * 8; /* 0x3600396A: lea edi, [esi + ecx*8] */
    633     /* cmp esi, edi */ /* 0x3600396D: cmp esi, edi */
    634     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
    635     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    636     _flag_k = FK_CMP;
    637     MEM32(ebp + (-0x4)) = eax; /* 0x3600396F: mov dword ptr [ebp - 4], eax */
    638     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003991; /* 0x36003972: je 0x36003991 */
    639 L_36003974:
    640     ecx = MEM32(ebp + (-0x4)); /* 0x36003974: mov ecx, dword ptr [ebp - 4] */
    641     PUSH32(esp, esi); /* 0x36003977: push esi */
    642     RECOMP_ICALL(MEM32(0x3616FFA4)); /* 0x36003978: call dword ptr [0x3616ffa4] */
    643     RECOMP_FLAGS_IN();
    644     edx = MEM32(ebp + (-0x4)); /* 0x3600397E: mov edx, dword ptr [ebp - 4] */
    645     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8);
    646     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    647     edx = edx + 8; /* 0x36003981: add edx, 8 */
    648     _flag_k = FK_ADD;
    649     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
    650     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    651     esi = esi + 8; /* 0x36003984: add esi, 8 */
    652     _flag_k = FK_ADD;
    653     /* cmp esi, edi */ /* 0x36003987: cmp esi, edi */
    654     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
    655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    656     _flag_k = FK_CMP;
    657     MEM32(ebp + (-0x4)) = edx; /* 0x36003989: mov dword ptr [ebp - 4], edx */
    658     RECOMP_BACKEDGE();
    659     if (CMP_NE(_flag_a, _flag_b)) goto L_36003974; /* 0x3600398C: jne 0x36003974 */
    660 L_3600398E:
    661     edx = MEM32(ebp + 0x8); /* 0x3600398E: mov edx, dword ptr [ebp + 8] */
    662 L_36003991:
    663     eax = MEM32(edx + 0xC); /* 0x36003991: mov eax, dword ptr [edx + 0xc] */
    664     /* cmp edi, eax */ /* 0x36003994: cmp edi, eax */
    665     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    667     _flag_k = FK_CMP;
    668     ecx = MEM32(ebx + 0xC); /* 0x36003996: mov ecx, dword ptr [ebx + 0xc] */
    669     MEM32(ebp + (-0x8)) = eax; /* 0x36003999: mov dword ptr [ebp - 8], eax */
    670     MEM32(ebp + (-0x4)) = ecx; /* 0x3600399C: mov dword ptr [ebp - 4], ecx */
    671     esi = edi; /* 0x3600399F: mov esi, edi */
    672     RECOMP_BACKEDGE();
    673     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003903; /* 0x360039A1: je 0x36003903 */
    674 L_360039A7:
    675     edx = MEM32(ebp + (-0x4)); /* 0x360039A7: mov edx, dword ptr [ebp - 4] */
    676     PUSH32(esp, esi); /* 0x360039AA: push esi */
    677     PUSH32(esp, edx); /* 0x360039AB: push edx */
    678     RECOMP_ICALL(0x360052C0u); /* 0x360039AC: call 0x360052c0 */ /* not lifted */
    679     RECOMP_FLAGS_IN();
    680     edx = MEM32(ebp + (-0x4)); /* 0x360039B1: mov edx, dword ptr [ebp - 4] */
    681     eax = MEM32(ebp + (-0x8)); /* 0x360039B4: mov eax, dword ptr [ebp - 8] */
    682     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8);
    683     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    684     edx = edx + 8; /* 0x360039B7: add edx, 8 */
    685     _flag_k = FK_ADD;
    686     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
    687     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    688     esi = esi + 8; /* 0x360039BA: add esi, 8 */
    689     _flag_k = FK_ADD;
    690     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    691     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    692     esp = esp + 8; /* 0x360039BD: add esp, 8 */
    693     _flag_k = FK_ADD;
    694     /* cmp esi, eax */ /* 0x360039C0: cmp esi, eax */
    695     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    697     _flag_k = FK_CMP;
    698     MEM32(ebp + (-0x4)) = edx; /* 0x360039C2: mov dword ptr [ebp - 4], edx */
    699     RECOMP_BACKEDGE();
    700     if (CMP_NE(_flag_a, _flag_b)) goto L_360039A7; /* 0x360039C5: jne 0x360039a7 */
    701 L_360039C7:
    702     RECOMP_BACKEDGE();
    703     goto L_36003900; /* 0x360039C7: jmp 0x36003900 */
    704 L_360039CC:
    705     edx = MEM32(ecx + 0x8); /* 0x360039CC: mov edx, dword ptr [ecx + 8] */
    706     PUSH32(esp, edx); /* 0x360039CF: push edx */
    707     PUSH32(esp, eax); /* 0x360039D0: push eax */
    708     RECOMP_ICALL(0x36005250u); /* 0x360039D1: call 0x36005250 */ /* not lifted */
    709     RECOMP_FLAGS_IN();
    710     eax = MEM32(ebx + 0x8); /* 0x360039D6: mov eax, dword ptr [ebx + 8] */
    711     esi = ebx + 0x4; /* 0x360039D9: lea esi, [ebx + 4] */
    712     PUSH32(esp, eax); /* 0x360039DC: push eax */
    713     RECOMP_ICALL(0x3615FCC4u); /* 0x360039DD: call 0x3615fcc4 */ /* not lifted */
    714     RECOMP_FLAGS_IN();
    715     ecx = MEM32(ebp + 0x8); /* 0x360039E2: mov ecx, dword ptr [ebp + 8] */
    716     edi = ecx + 0x4; /* 0x360039E5: lea edi, [ecx + 4] */
    717     ecx = MEM32(edi + 0x4); /* 0x360039E8: mov ecx, dword ptr [edi + 4] */
    718     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    719     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    720     esp = esp + 4; /* 0x360039EB: add esp, 4 */
    721     _flag_k = FK_ADD;
    722     /* test ecx, ecx */ /* 0x360039EE: test ecx, ecx */
    723     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    724     _cf = 0;
    725     _flag_k = FK_TEST;
    726     if (TEST_NZ(_flag_a, _flag_b)) goto L_360039F6; /* 0x360039F0: jne 0x360039f6 */
    727 L_360039F2:
    728     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    729     eax = 0; /* 0x360039F2: xor eax, eax */
    730     _cf = 0;
    731     _flag_k = FK_TEST;
    732     goto L_360039FE; /* 0x360039F4: jmp 0x360039fe */
    733 L_360039F6:
    734     eax = MEM32(edi + 0x8); /* 0x360039F6: mov eax, dword ptr [edi + 8] */
    735     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    737     eax = eax - ecx; /* 0x360039F9: sub eax, ecx */
    738     _flag_k = FK_CMP;
    739     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x360039FB: sar eax, 3 */
    740     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    741     eax = (uint32_t)((int32_t)eax >> 3u);
    742 L_360039FE:
    743     /* test eax, eax */ /* 0x360039FE: test eax, eax */
    744     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    745     _cf = 0;
    746     _flag_k = FK_TEST;
    747     if (TEST_NS(_flag_a, _flag_b)) goto L_36003A04; /* 0x36003A00: jge 0x36003a04 */
    748 L_36003A02:
    749     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    750     eax = 0; /* 0x36003A02: xor eax, eax */
    751     _cf = 0;
    752     _flag_k = FK_TEST;
    753 L_36003A04:
    754     edx = eax * 8; /* 0x36003A04: lea edx, [eax*8] */
    755     PUSH32(esp, edx); /* 0x36003A0B: push edx */
    756     RECOMP_ICALL(0x3615FD6Au); /* 0x36003A0C: call 0x3615fd6a */ /* not lifted */
    757     RECOMP_FLAGS_IN();
    758     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    759     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    760     esp = esp + 4; /* 0x36003A11: add esp, 4 */
    761     _flag_k = FK_ADD;
    762     MEM32(esi + 0x4) = eax; /* 0x36003A14: mov dword ptr [esi + 4], eax */
    763     ecx = MEM32(edi + 0x8); /* 0x36003A17: mov ecx, dword ptr [edi + 8] */
    764     edi = MEM32(edi + 0x4); /* 0x36003A1A: mov edi, dword ptr [edi + 4] */
    765     PUSH32(esp, eax); /* 0x36003A1D: push eax */
    766     PUSH32(esp, ecx); /* 0x36003A1E: push ecx */
    767     PUSH32(esp, edi); /* 0x36003A1F: push edi */
    768     ecx = esi; /* 0x36003A20: mov ecx, esi */
    769     RECOMP_ICALL(0x36005280u); /* 0x36003A22: call 0x36005280 */ /* not lifted */
    770     RECOMP_FLAGS_IN();
    771     edx = MEM32(ebp + 0x8); /* 0x36003A27: mov edx, dword ptr [ebp + 8] */
    772     MEM32(esi + 0x8) = eax; /* 0x36003A2A: mov dword ptr [esi + 8], eax */
    773     MEM32(esi + 0xC) = eax; /* 0x36003A2D: mov dword ptr [esi + 0xc], eax */
    774 L_36003A30:
    775     SET_LO8(eax, MEM8(edx + 0x14)); /* 0x36003A30: mov al, byte ptr [edx + 0x14] */
    776     MEM8(ebx + 0x14) = (uint8_t)(LO8(eax)); /* 0x36003A33: mov byte ptr [ebx + 0x14], al */
    777     ecx = MEM32(edx + 0x18); /* 0x36003A36: mov ecx, dword ptr [edx + 0x18] */
    778     MEM32(ebx + 0x18) = ecx; /* 0x36003A39: mov dword ptr [ebx + 0x18], ecx */
    779     SET_LO8(eax, MEM8(edx + 0x1C)); /* 0x36003A3C: mov al, byte ptr [edx + 0x1c] */
    780     MEM8(ebx + 0x1C) = (uint8_t)(LO8(eax)); /* 0x36003A3F: mov byte ptr [ebx + 0x1c], al */
    781     SET_LO8(ecx, MEM8(edx + 0x1D)); /* 0x36003A42: mov cl, byte ptr [edx + 0x1d] */
    782     MEM8(ebx + 0x1D) = (uint8_t)(LO8(ecx)); /* 0x36003A45: mov byte ptr [ebx + 0x1d], cl */
    783     SET_LO8(eax, MEM8(edx + 0x1E)); /* 0x36003A48: mov al, byte ptr [edx + 0x1e] */
    784     MEM8(ebx + 0x1E) = (uint8_t)(LO8(eax)); /* 0x36003A4B: mov byte ptr [ebx + 0x1e], al */
    785     ecx = MEM32(edx + 0x20); /* 0x36003A4E: mov ecx, dword ptr [edx + 0x20] */
    786     MEM32(ebx + 0x20) = ecx; /* 0x36003A51: mov dword ptr [ebx + 0x20], ecx */
    787     eax = MEM32(edx + 0x24); /* 0x36003A54: mov eax, dword ptr [edx + 0x24] */
    788     MEM32(ebx + 0x24) = eax; /* 0x36003A57: mov dword ptr [ebx + 0x24], eax */
    789     ecx = MEM32(edx + 0x28); /* 0x36003A5A: mov ecx, dword ptr [edx + 0x28] */
    790     MEM32(ebx + 0x28) = ecx; /* 0x36003A5D: mov dword ptr [ebx + 0x28], ecx */
    791     eax = MEM32(edx + 0x2C); /* 0x36003A60: mov eax, dword ptr [edx + 0x2c] */
    792     MEM32(ebx + 0x2C) = eax; /* 0x36003A63: mov dword ptr [ebx + 0x2c], eax */
    793     ecx = MEM32(edx + 0x30); /* 0x36003A66: mov ecx, dword ptr [edx + 0x30] */
    794     MEM32(ebx + 0x30) = ecx; /* 0x36003A69: mov dword ptr [ebx + 0x30], ecx */
    795     eax = MEM32(edx + 0x34); /* 0x36003A6C: mov eax, dword ptr [edx + 0x34] */
    796     MEM32(ebx + 0x34) = eax; /* 0x36003A6F: mov dword ptr [ebx + 0x34], eax */
    797     ecx = MEM32(edx + 0x38); /* 0x36003A72: mov ecx, dword ptr [edx + 0x38] */
    798     MEM32(ebx + 0x38) = ecx; /* 0x36003A75: mov dword ptr [ebx + 0x38], ecx */
    799     eax = MEM32(edx + 0x3C); /* 0x36003A78: mov eax, dword ptr [edx + 0x3c] */
    800     MEM32(ebx + 0x3C) = eax; /* 0x36003A7B: mov dword ptr [ebx + 0x3c], eax */
    801     ecx = MEM32(edx + 0x40); /* 0x36003A7E: mov ecx, dword ptr [edx + 0x40] */
    802     MEM32(ebx + 0x40) = ecx; /* 0x36003A81: mov dword ptr [ebx + 0x40], ecx */
    803     eax = MEM32(edx + 0x44); /* 0x36003A84: mov eax, dword ptr [edx + 0x44] */
    804     MEM32(ebx + 0x44) = eax; /* 0x36003A87: mov dword ptr [ebx + 0x44], eax */
    805     ecx = MEM32(edx + 0x48); /* 0x36003A8A: mov ecx, dword ptr [edx + 0x48] */
    806     MEM32(ebx + 0x48) = ecx; /* 0x36003A8D: mov dword ptr [ebx + 0x48], ecx */
    807     eax = MEM32(edx + 0x4C); /* 0x36003A90: mov eax, dword ptr [edx + 0x4c] */
    808     MEM32(ebx + 0x4C) = eax; /* 0x36003A93: mov dword ptr [ebx + 0x4c], eax */
    809     ecx = MEM32(edx + 0x50); /* 0x36003A96: mov ecx, dword ptr [edx + 0x50] */
    810     MEM32(ebx + 0x50) = ecx; /* 0x36003A99: mov dword ptr [ebx + 0x50], ecx */
    811     eax = MEM32(edx + 0x54); /* 0x36003A9C: mov eax, dword ptr [edx + 0x54] */
    812     MEM32(ebx + 0x54) = eax; /* 0x36003A9F: mov dword ptr [ebx + 0x54], eax */
    813     ecx = MEM32(edx + 0x58); /* 0x36003AA2: mov ecx, dword ptr [edx + 0x58] */
    814     MEM32(ebx + 0x58) = ecx; /* 0x36003AA5: mov dword ptr [ebx + 0x58], ecx */
    815     eax = MEM32(edx + 0x5C); /* 0x36003AA8: mov eax, dword ptr [edx + 0x5c] */
    816     MEM32(ebx + 0x5C) = eax; /* 0x36003AAB: mov dword ptr [ebx + 0x5c], eax */
    817     ecx = MEM32(edx + 0x60); /* 0x36003AAE: mov ecx, dword ptr [edx + 0x60] */
    818     MEM32(ebx + 0x60) = ecx; /* 0x36003AB1: mov dword ptr [ebx + 0x60], ecx */
    819     eax = MEM32(edx + 0x64); /* 0x36003AB4: mov eax, dword ptr [edx + 0x64] */
    820     MEM32(ebx + 0x64) = eax; /* 0x36003AB7: mov dword ptr [ebx + 0x64], eax */
    821     ecx = MEM32(edx + 0x68); /* 0x36003ABA: mov ecx, dword ptr [edx + 0x68] */
    822     MEM32(ebx + 0x68) = ecx; /* 0x36003ABD: mov dword ptr [ebx + 0x68], ecx */
    823     eax = MEM32(edx + 0x6C); /* 0x36003AC0: mov eax, dword ptr [edx + 0x6c] */
    824     MEM32(ebx + 0x6C) = eax; /* 0x36003AC3: mov dword ptr [ebx + 0x6c], eax */
    825     ecx = MEM32(edx + 0x70); /* 0x36003AC6: mov ecx, dword ptr [edx + 0x70] */
    826     MEM32(ebx + 0x70) = ecx; /* 0x36003AC9: mov dword ptr [ebx + 0x70], ecx */
    827     eax = MEM32(edx + 0x74); /* 0x36003ACC: mov eax, dword ptr [edx + 0x74] */
    828     MEM32(ebx + 0x74) = eax; /* 0x36003ACF: mov dword ptr [ebx + 0x74], eax */
    829     ecx = MEM32(edx + 0x78); /* 0x36003AD2: mov ecx, dword ptr [edx + 0x78] */
    830     MEM32(ebx + 0x78) = ecx; /* 0x36003AD5: mov dword ptr [ebx + 0x78], ecx */
    831     eax = MEM32(edx + 0x7C); /* 0x36003AD8: mov eax, dword ptr [edx + 0x7c] */
    832     MEM32(ebx + 0x7C) = eax; /* 0x36003ADB: mov dword ptr [ebx + 0x7c], eax */
    833     ecx = MEM32(edx + 0x80); /* 0x36003ADE: mov ecx, dword ptr [edx + 0x80] */
    834     MEM32(ebx + 0x80) = ecx; /* 0x36003AE4: mov dword ptr [ebx + 0x80], ecx */
    835     eax = MEM32(edx + 0x84); /* 0x36003AEA: mov eax, dword ptr [edx + 0x84] */
    836     MEM32(ebx + 0x84) = eax; /* 0x36003AF0: mov dword ptr [ebx + 0x84], eax */
    837     ecx = MEM32(edx + 0x88); /* 0x36003AF6: mov ecx, dword ptr [edx + 0x88] */
    838     MEM32(ebx + 0x88) = ecx; /* 0x36003AFC: mov dword ptr [ebx + 0x88], ecx */
    839     eax = MEM32(edx + 0x8C); /* 0x36003B02: mov eax, dword ptr [edx + 0x8c] */
    840     MEM32(ebx + 0x8C) = eax; /* 0x36003B08: mov dword ptr [ebx + 0x8c], eax */
    841     ecx = MEM32(edx + 0x90); /* 0x36003B0E: mov ecx, dword ptr [edx + 0x90] */
    842     MEM32(ebx + 0x90) = ecx; /* 0x36003B14: mov dword ptr [ebx + 0x90], ecx */
    843     eax = MEM32(edx + 0x94); /* 0x36003B1A: mov eax, dword ptr [edx + 0x94] */
    844     MEM32(ebx + 0x94) = eax; /* 0x36003B20: mov dword ptr [ebx + 0x94], eax */
    845     ecx = MEM32(edx + 0x98); /* 0x36003B26: mov ecx, dword ptr [edx + 0x98] */
    846     MEM32(ebx + 0x98) = ecx; /* 0x36003B2C: mov dword ptr [ebx + 0x98], ecx */
    847     eax = MEM32(edx + 0x9C); /* 0x36003B32: mov eax, dword ptr [edx + 0x9c] */
    848     MEM32(ebx + 0x9C) = eax; /* 0x36003B38: mov dword ptr [ebx + 0x9c], eax */
    849     ecx = MEM32(edx + 0xA0); /* 0x36003B3E: mov ecx, dword ptr [edx + 0xa0] */
    850     MEM32(ebx + 0xA0) = ecx; /* 0x36003B44: mov dword ptr [ebx + 0xa0], ecx */
    851     eax = MEM32(edx + 0xA4); /* 0x36003B4A: mov eax, dword ptr [edx + 0xa4] */
    852     MEM32(ebx + 0xA4) = eax; /* 0x36003B50: mov dword ptr [ebx + 0xa4], eax */
    853     ecx = MEM32(edx + 0xA8); /* 0x36003B56: mov ecx, dword ptr [edx + 0xa8] */
    854     MEM32(ebx + 0xA8) = ecx; /* 0x36003B5C: mov dword ptr [ebx + 0xa8], ecx */
    855     eax = MEM32(edx + 0xAC); /* 0x36003B62: mov eax, dword ptr [edx + 0xac] */
    856     MEM32(ebx + 0xAC) = eax; /* 0x36003B68: mov dword ptr [ebx + 0xac], eax */
    857     ecx = MEM32(edx + 0xB0); /* 0x36003B6E: mov ecx, dword ptr [edx + 0xb0] */
    858     MEM32(ebx + 0xB0) = ecx; /* 0x36003B74: mov dword ptr [ebx + 0xb0], ecx */
    859     eax = MEM32(edx + 0xB4); /* 0x36003B7A: mov eax, dword ptr [edx + 0xb4] */
    860     MEM32(ebx + 0xB4) = eax; /* 0x36003B80: mov dword ptr [ebx + 0xb4], eax */
    861     ecx = MEM32(edx + 0xB8); /* 0x36003B86: mov ecx, dword ptr [edx + 0xb8] */
    862     MEM32(ebx + 0xB8) = ecx; /* 0x36003B8C: mov dword ptr [ebx + 0xb8], ecx */
    863     edx = MEM32(edx + 0xBC); /* 0x36003B92: mov edx, dword ptr [edx + 0xbc] */
    864     edi = POP32_VAL(esp); /* 0x36003B98: pop edi */
    865     esi = POP32_VAL(esp); /* 0x36003B99: pop esi */
    866     MEM32(ebx + 0xBC) = edx; /* 0x36003B9A: mov dword ptr [ebx + 0xbc], edx */
    867     eax = ebx; /* 0x36003BA0: mov eax, ebx */
    868     ebx = POP32_VAL(esp); /* 0x36003BA2: pop ebx */
    869     esp = ebp; /* 0x36003BA3: mov esp, ebp */
    870     ebp = POP32_VAL(esp); /* 0x36003BA5: pop ebp */
    871     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003BA6: ret 4 */
    872     RECOMP_REGS_OUT();
    873 }
    874 
    875 void sub_36003900(void) {
    876     int _fpu_cmp = 0;
    877     uint32_t _cf = 0;
    878     int _df = 1;
    879     uint32_t _flag_k = FK_NONE;
    880     uint32_t _flag_a = 0, _flag_b = 0;
    881     uint32_t _itail_tgt = 0;
    882     RECOMP_REGS_LOCALS
    883     RECOMP_ENTER(0x36003900u);
    884 
    885 L_36003900:
    886     edx = MEM32(ebp + 0x8); /* 0x36003900: mov edx, dword ptr [ebp + 8] */
    887     ecx = MEM32(edx + 0x8); /* 0x36003903: mov ecx, dword ptr [edx + 8] */
    888     /* test ecx, ecx */ /* 0x36003906: test ecx, ecx */
    889     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    890     _cf = 0;
    891     _flag_k = FK_TEST;
    892     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600391A; /* 0x36003908: jne 0x3600391a */
    893 L_3600390A:
    894     ecx = MEM32(ebx + 0x8); /* 0x3600390A: mov ecx, dword ptr [ebx + 8] */
    895     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    896     eax = 0; /* 0x3600390D: xor eax, eax */
    897     _cf = 0;
    898     _flag_k = FK_TEST;
    899     eax = ecx + eax * 8; /* 0x3600390F: lea eax, [ecx + eax*8] */
    900     MEM32(ebx + 0xC) = eax; /* 0x36003912: mov dword ptr [ebx + 0xc], eax */
    901     goto L_36003A30; /* 0x36003915: jmp 0x36003a30 */
    902 L_3600391A:
    903     eax = MEM32(edx + 0xC); /* 0x3600391A: mov eax, dword ptr [edx + 0xc] */
    904     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    906     eax = eax - ecx; /* 0x3600391D: sub eax, ecx */
    907     _flag_k = FK_CMP;
    908     ecx = MEM32(ebx + 0x8); /* 0x3600391F: mov ecx, dword ptr [ebx + 8] */
    909     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36003922: sar eax, 3 */
    910     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    911     eax = (uint32_t)((int32_t)eax >> 3u);
    912     eax = ecx + eax * 8; /* 0x36003925: lea eax, [ecx + eax*8] */
    913     MEM32(ebx + 0xC) = eax; /* 0x36003928: mov dword ptr [ebx + 0xc], eax */
    914     goto L_36003A30; /* 0x3600392B: jmp 0x36003a30 */
    915 L_36003A30:
    916     SET_LO8(eax, MEM8(edx + 0x14)); /* 0x36003A30: mov al, byte ptr [edx + 0x14] */
    917     MEM8(ebx + 0x14) = (uint8_t)(LO8(eax)); /* 0x36003A33: mov byte ptr [ebx + 0x14], al */
    918     ecx = MEM32(edx + 0x18); /* 0x36003A36: mov ecx, dword ptr [edx + 0x18] */
    919     MEM32(ebx + 0x18) = ecx; /* 0x36003A39: mov dword ptr [ebx + 0x18], ecx */
    920     SET_LO8(eax, MEM8(edx + 0x1C)); /* 0x36003A3C: mov al, byte ptr [edx + 0x1c] */
    921     MEM8(ebx + 0x1C) = (uint8_t)(LO8(eax)); /* 0x36003A3F: mov byte ptr [ebx + 0x1c], al */
    922     SET_LO8(ecx, MEM8(edx + 0x1D)); /* 0x36003A42: mov cl, byte ptr [edx + 0x1d] */
    923     MEM8(ebx + 0x1D) = (uint8_t)(LO8(ecx)); /* 0x36003A45: mov byte ptr [ebx + 0x1d], cl */
    924     SET_LO8(eax, MEM8(edx + 0x1E)); /* 0x36003A48: mov al, byte ptr [edx + 0x1e] */
    925     MEM8(ebx + 0x1E) = (uint8_t)(LO8(eax)); /* 0x36003A4B: mov byte ptr [ebx + 0x1e], al */
    926     ecx = MEM32(edx + 0x20); /* 0x36003A4E: mov ecx, dword ptr [edx + 0x20] */
    927     MEM32(ebx + 0x20) = ecx; /* 0x36003A51: mov dword ptr [ebx + 0x20], ecx */
    928     eax = MEM32(edx + 0x24); /* 0x36003A54: mov eax, dword ptr [edx + 0x24] */
    929     MEM32(ebx + 0x24) = eax; /* 0x36003A57: mov dword ptr [ebx + 0x24], eax */
    930     ecx = MEM32(edx + 0x28); /* 0x36003A5A: mov ecx, dword ptr [edx + 0x28] */
    931     MEM32(ebx + 0x28) = ecx; /* 0x36003A5D: mov dword ptr [ebx + 0x28], ecx */
    932     eax = MEM32(edx + 0x2C); /* 0x36003A60: mov eax, dword ptr [edx + 0x2c] */
    933     MEM32(ebx + 0x2C) = eax; /* 0x36003A63: mov dword ptr [ebx + 0x2c], eax */
    934     ecx = MEM32(edx + 0x30); /* 0x36003A66: mov ecx, dword ptr [edx + 0x30] */
    935     MEM32(ebx + 0x30) = ecx; /* 0x36003A69: mov dword ptr [ebx + 0x30], ecx */
    936     eax = MEM32(edx + 0x34); /* 0x36003A6C: mov eax, dword ptr [edx + 0x34] */
    937     MEM32(ebx + 0x34) = eax; /* 0x36003A6F: mov dword ptr [ebx + 0x34], eax */
    938     ecx = MEM32(edx + 0x38); /* 0x36003A72: mov ecx, dword ptr [edx + 0x38] */
    939     MEM32(ebx + 0x38) = ecx; /* 0x36003A75: mov dword ptr [ebx + 0x38], ecx */
    940     eax = MEM32(edx + 0x3C); /* 0x36003A78: mov eax, dword ptr [edx + 0x3c] */
    941     MEM32(ebx + 0x3C) = eax; /* 0x36003A7B: mov dword ptr [ebx + 0x3c], eax */
    942     ecx = MEM32(edx + 0x40); /* 0x36003A7E: mov ecx, dword ptr [edx + 0x40] */
    943     MEM32(ebx + 0x40) = ecx; /* 0x36003A81: mov dword ptr [ebx + 0x40], ecx */
    944     eax = MEM32(edx + 0x44); /* 0x36003A84: mov eax, dword ptr [edx + 0x44] */
    945     MEM32(ebx + 0x44) = eax; /* 0x36003A87: mov dword ptr [ebx + 0x44], eax */
    946     ecx = MEM32(edx + 0x48); /* 0x36003A8A: mov ecx, dword ptr [edx + 0x48] */
    947     MEM32(ebx + 0x48) = ecx; /* 0x36003A8D: mov dword ptr [ebx + 0x48], ecx */
    948     eax = MEM32(edx + 0x4C); /* 0x36003A90: mov eax, dword ptr [edx + 0x4c] */
    949     MEM32(ebx + 0x4C) = eax; /* 0x36003A93: mov dword ptr [ebx + 0x4c], eax */
    950     ecx = MEM32(edx + 0x50); /* 0x36003A96: mov ecx, dword ptr [edx + 0x50] */
    951     MEM32(ebx + 0x50) = ecx; /* 0x36003A99: mov dword ptr [ebx + 0x50], ecx */
    952     eax = MEM32(edx + 0x54); /* 0x36003A9C: mov eax, dword ptr [edx + 0x54] */
    953     MEM32(ebx + 0x54) = eax; /* 0x36003A9F: mov dword ptr [ebx + 0x54], eax */
    954     ecx = MEM32(edx + 0x58); /* 0x36003AA2: mov ecx, dword ptr [edx + 0x58] */
    955     MEM32(ebx + 0x58) = ecx; /* 0x36003AA5: mov dword ptr [ebx + 0x58], ecx */
    956     eax = MEM32(edx + 0x5C); /* 0x36003AA8: mov eax, dword ptr [edx + 0x5c] */
    957     MEM32(ebx + 0x5C) = eax; /* 0x36003AAB: mov dword ptr [ebx + 0x5c], eax */
    958     ecx = MEM32(edx + 0x60); /* 0x36003AAE: mov ecx, dword ptr [edx + 0x60] */
    959     MEM32(ebx + 0x60) = ecx; /* 0x36003AB1: mov dword ptr [ebx + 0x60], ecx */
    960     eax = MEM32(edx + 0x64); /* 0x36003AB4: mov eax, dword ptr [edx + 0x64] */
    961     MEM32(ebx + 0x64) = eax; /* 0x36003AB7: mov dword ptr [ebx + 0x64], eax */
    962     ecx = MEM32(edx + 0x68); /* 0x36003ABA: mov ecx, dword ptr [edx + 0x68] */
    963     MEM32(ebx + 0x68) = ecx; /* 0x36003ABD: mov dword ptr [ebx + 0x68], ecx */
    964     eax = MEM32(edx + 0x6C); /* 0x36003AC0: mov eax, dword ptr [edx + 0x6c] */
    965     MEM32(ebx + 0x6C) = eax; /* 0x36003AC3: mov dword ptr [ebx + 0x6c], eax */
    966     ecx = MEM32(edx + 0x70); /* 0x36003AC6: mov ecx, dword ptr [edx + 0x70] */
    967     MEM32(ebx + 0x70) = ecx; /* 0x36003AC9: mov dword ptr [ebx + 0x70], ecx */
    968     eax = MEM32(edx + 0x74); /* 0x36003ACC: mov eax, dword ptr [edx + 0x74] */
    969     MEM32(ebx + 0x74) = eax; /* 0x36003ACF: mov dword ptr [ebx + 0x74], eax */
    970     ecx = MEM32(edx + 0x78); /* 0x36003AD2: mov ecx, dword ptr [edx + 0x78] */
    971     MEM32(ebx + 0x78) = ecx; /* 0x36003AD5: mov dword ptr [ebx + 0x78], ecx */
    972     eax = MEM32(edx + 0x7C); /* 0x36003AD8: mov eax, dword ptr [edx + 0x7c] */
    973     MEM32(ebx + 0x7C) = eax; /* 0x36003ADB: mov dword ptr [ebx + 0x7c], eax */
    974     ecx = MEM32(edx + 0x80); /* 0x36003ADE: mov ecx, dword ptr [edx + 0x80] */
    975     MEM32(ebx + 0x80) = ecx; /* 0x36003AE4: mov dword ptr [ebx + 0x80], ecx */
    976     eax = MEM32(edx + 0x84); /* 0x36003AEA: mov eax, dword ptr [edx + 0x84] */
    977     MEM32(ebx + 0x84) = eax; /* 0x36003AF0: mov dword ptr [ebx + 0x84], eax */
    978     ecx = MEM32(edx + 0x88); /* 0x36003AF6: mov ecx, dword ptr [edx + 0x88] */
    979     MEM32(ebx + 0x88) = ecx; /* 0x36003AFC: mov dword ptr [ebx + 0x88], ecx */
    980     eax = MEM32(edx + 0x8C); /* 0x36003B02: mov eax, dword ptr [edx + 0x8c] */
    981     MEM32(ebx + 0x8C) = eax; /* 0x36003B08: mov dword ptr [ebx + 0x8c], eax */
    982     ecx = MEM32(edx + 0x90); /* 0x36003B0E: mov ecx, dword ptr [edx + 0x90] */
    983     MEM32(ebx + 0x90) = ecx; /* 0x36003B14: mov dword ptr [ebx + 0x90], ecx */
    984     eax = MEM32(edx + 0x94); /* 0x36003B1A: mov eax, dword ptr [edx + 0x94] */
    985     MEM32(ebx + 0x94) = eax; /* 0x36003B20: mov dword ptr [ebx + 0x94], eax */
    986     ecx = MEM32(edx + 0x98); /* 0x36003B26: mov ecx, dword ptr [edx + 0x98] */
    987     MEM32(ebx + 0x98) = ecx; /* 0x36003B2C: mov dword ptr [ebx + 0x98], ecx */
    988     eax = MEM32(edx + 0x9C); /* 0x36003B32: mov eax, dword ptr [edx + 0x9c] */
    989     MEM32(ebx + 0x9C) = eax; /* 0x36003B38: mov dword ptr [ebx + 0x9c], eax */
    990     ecx = MEM32(edx + 0xA0); /* 0x36003B3E: mov ecx, dword ptr [edx + 0xa0] */
    991     MEM32(ebx + 0xA0) = ecx; /* 0x36003B44: mov dword ptr [ebx + 0xa0], ecx */
    992     eax = MEM32(edx + 0xA4); /* 0x36003B4A: mov eax, dword ptr [edx + 0xa4] */
    993     MEM32(ebx + 0xA4) = eax; /* 0x36003B50: mov dword ptr [ebx + 0xa4], eax */
    994     ecx = MEM32(edx + 0xA8); /* 0x36003B56: mov ecx, dword ptr [edx + 0xa8] */
    995     MEM32(ebx + 0xA8) = ecx; /* 0x36003B5C: mov dword ptr [ebx + 0xa8], ecx */
    996     eax = MEM32(edx + 0xAC); /* 0x36003B62: mov eax, dword ptr [edx + 0xac] */
    997     MEM32(ebx + 0xAC) = eax; /* 0x36003B68: mov dword ptr [ebx + 0xac], eax */
    998     ecx = MEM32(edx + 0xB0); /* 0x36003B6E: mov ecx, dword ptr [edx + 0xb0] */
    999     MEM32(ebx + 0xB0) = ecx; /* 0x36003B74: mov dword ptr [ebx + 0xb0], ecx */
   1000     eax = MEM32(edx + 0xB4); /* 0x36003B7A: mov eax, dword ptr [edx + 0xb4] */
   1001     MEM32(ebx + 0xB4) = eax; /* 0x36003B80: mov dword ptr [ebx + 0xb4], eax */
   1002     ecx = MEM32(edx + 0xB8); /* 0x36003B86: mov ecx, dword ptr [edx + 0xb8] */
   1003     MEM32(ebx + 0xB8) = ecx; /* 0x36003B8C: mov dword ptr [ebx + 0xb8], ecx */
   1004     edx = MEM32(edx + 0xBC); /* 0x36003B92: mov edx, dword ptr [edx + 0xbc] */
   1005     edi = POP32_VAL(esp); /* 0x36003B98: pop edi */
   1006     esi = POP32_VAL(esp); /* 0x36003B99: pop esi */
   1007     MEM32(ebx + 0xBC) = edx; /* 0x36003B9A: mov dword ptr [ebx + 0xbc], edx */
   1008     eax = ebx; /* 0x36003BA0: mov eax, ebx */
   1009     ebx = POP32_VAL(esp); /* 0x36003BA2: pop ebx */
   1010     esp = ebp; /* 0x36003BA3: mov esp, ebp */
   1011     ebp = POP32_VAL(esp); /* 0x36003BA5: pop ebp */
   1012     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003BA6: ret 4 */
   1013     RECOMP_REGS_OUT();
   1014 }
   1015 
   1016 void sub_36003903(void) {
   1017     int _fpu_cmp = 0;
   1018     uint32_t _cf = 0;
   1019     int _df = 1;
   1020     uint32_t _flag_k = FK_NONE;
   1021     uint32_t _flag_a = 0, _flag_b = 0;
   1022     uint32_t _itail_tgt = 0;
   1023     RECOMP_REGS_LOCALS
   1024     RECOMP_ENTER(0x36003903u);
   1025 
   1026 L_36003903:
   1027     ecx = MEM32(edx + 0x8); /* 0x36003903: mov ecx, dword ptr [edx + 8] */
   1028     /* test ecx, ecx */ /* 0x36003906: test ecx, ecx */
   1029     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1030     _cf = 0;
   1031     _flag_k = FK_TEST;
   1032     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600391A; /* 0x36003908: jne 0x3600391a */
   1033 L_3600390A:
   1034     ecx = MEM32(ebx + 0x8); /* 0x3600390A: mov ecx, dword ptr [ebx + 8] */
   1035     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1036     eax = 0; /* 0x3600390D: xor eax, eax */
   1037     _cf = 0;
   1038     _flag_k = FK_TEST;
   1039     eax = ecx + eax * 8; /* 0x3600390F: lea eax, [ecx + eax*8] */
   1040     MEM32(ebx + 0xC) = eax; /* 0x36003912: mov dword ptr [ebx + 0xc], eax */
   1041     goto L_36003A30; /* 0x36003915: jmp 0x36003a30 */
   1042 L_3600391A:
   1043     eax = MEM32(edx + 0xC); /* 0x3600391A: mov eax, dword ptr [edx + 0xc] */
   1044     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1046     eax = eax - ecx; /* 0x3600391D: sub eax, ecx */
   1047     _flag_k = FK_CMP;
   1048     ecx = MEM32(ebx + 0x8); /* 0x3600391F: mov ecx, dword ptr [ebx + 8] */
   1049     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36003922: sar eax, 3 */
   1050     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1051     eax = (uint32_t)((int32_t)eax >> 3u);
   1052     eax = ecx + eax * 8; /* 0x36003925: lea eax, [ecx + eax*8] */
   1053     MEM32(ebx + 0xC) = eax; /* 0x36003928: mov dword ptr [ebx + 0xc], eax */
   1054     goto L_36003A30; /* 0x3600392B: jmp 0x36003a30 */
   1055 L_36003A30:
   1056     SET_LO8(eax, MEM8(edx + 0x14)); /* 0x36003A30: mov al, byte ptr [edx + 0x14] */
   1057     MEM8(ebx + 0x14) = (uint8_t)(LO8(eax)); /* 0x36003A33: mov byte ptr [ebx + 0x14], al */
   1058     ecx = MEM32(edx + 0x18); /* 0x36003A36: mov ecx, dword ptr [edx + 0x18] */
   1059     MEM32(ebx + 0x18) = ecx; /* 0x36003A39: mov dword ptr [ebx + 0x18], ecx */
   1060     SET_LO8(eax, MEM8(edx + 0x1C)); /* 0x36003A3C: mov al, byte ptr [edx + 0x1c] */
   1061     MEM8(ebx + 0x1C) = (uint8_t)(LO8(eax)); /* 0x36003A3F: mov byte ptr [ebx + 0x1c], al */
   1062     SET_LO8(ecx, MEM8(edx + 0x1D)); /* 0x36003A42: mov cl, byte ptr [edx + 0x1d] */
   1063     MEM8(ebx + 0x1D) = (uint8_t)(LO8(ecx)); /* 0x36003A45: mov byte ptr [ebx + 0x1d], cl */
   1064     SET_LO8(eax, MEM8(edx + 0x1E)); /* 0x36003A48: mov al, byte ptr [edx + 0x1e] */
   1065     MEM8(ebx + 0x1E) = (uint8_t)(LO8(eax)); /* 0x36003A4B: mov byte ptr [ebx + 0x1e], al */
   1066     ecx = MEM32(edx + 0x20); /* 0x36003A4E: mov ecx, dword ptr [edx + 0x20] */
   1067     MEM32(ebx + 0x20) = ecx; /* 0x36003A51: mov dword ptr [ebx + 0x20], ecx */
   1068     eax = MEM32(edx + 0x24); /* 0x36003A54: mov eax, dword ptr [edx + 0x24] */
   1069     MEM32(ebx + 0x24) = eax; /* 0x36003A57: mov dword ptr [ebx + 0x24], eax */
   1070     ecx = MEM32(edx + 0x28); /* 0x36003A5A: mov ecx, dword ptr [edx + 0x28] */
   1071     MEM32(ebx + 0x28) = ecx; /* 0x36003A5D: mov dword ptr [ebx + 0x28], ecx */
   1072     eax = MEM32(edx + 0x2C); /* 0x36003A60: mov eax, dword ptr [edx + 0x2c] */
   1073     MEM32(ebx + 0x2C) = eax; /* 0x36003A63: mov dword ptr [ebx + 0x2c], eax */
   1074     ecx = MEM32(edx + 0x30); /* 0x36003A66: mov ecx, dword ptr [edx + 0x30] */
   1075     MEM32(ebx + 0x30) = ecx; /* 0x36003A69: mov dword ptr [ebx + 0x30], ecx */
   1076     eax = MEM32(edx + 0x34); /* 0x36003A6C: mov eax, dword ptr [edx + 0x34] */
   1077     MEM32(ebx + 0x34) = eax; /* 0x36003A6F: mov dword ptr [ebx + 0x34], eax */
   1078     ecx = MEM32(edx + 0x38); /* 0x36003A72: mov ecx, dword ptr [edx + 0x38] */
   1079     MEM32(ebx + 0x38) = ecx; /* 0x36003A75: mov dword ptr [ebx + 0x38], ecx */
   1080     eax = MEM32(edx + 0x3C); /* 0x36003A78: mov eax, dword ptr [edx + 0x3c] */
   1081     MEM32(ebx + 0x3C) = eax; /* 0x36003A7B: mov dword ptr [ebx + 0x3c], eax */
   1082     ecx = MEM32(edx + 0x40); /* 0x36003A7E: mov ecx, dword ptr [edx + 0x40] */
   1083     MEM32(ebx + 0x40) = ecx; /* 0x36003A81: mov dword ptr [ebx + 0x40], ecx */
   1084     eax = MEM32(edx + 0x44); /* 0x36003A84: mov eax, dword ptr [edx + 0x44] */
   1085     MEM32(ebx + 0x44) = eax; /* 0x36003A87: mov dword ptr [ebx + 0x44], eax */
   1086     ecx = MEM32(edx + 0x48); /* 0x36003A8A: mov ecx, dword ptr [edx + 0x48] */
   1087     MEM32(ebx + 0x48) = ecx; /* 0x36003A8D: mov dword ptr [ebx + 0x48], ecx */
   1088     eax = MEM32(edx + 0x4C); /* 0x36003A90: mov eax, dword ptr [edx + 0x4c] */
   1089     MEM32(ebx + 0x4C) = eax; /* 0x36003A93: mov dword ptr [ebx + 0x4c], eax */
   1090     ecx = MEM32(edx + 0x50); /* 0x36003A96: mov ecx, dword ptr [edx + 0x50] */
   1091     MEM32(ebx + 0x50) = ecx; /* 0x36003A99: mov dword ptr [ebx + 0x50], ecx */
   1092     eax = MEM32(edx + 0x54); /* 0x36003A9C: mov eax, dword ptr [edx + 0x54] */
   1093     MEM32(ebx + 0x54) = eax; /* 0x36003A9F: mov dword ptr [ebx + 0x54], eax */
   1094     ecx = MEM32(edx + 0x58); /* 0x36003AA2: mov ecx, dword ptr [edx + 0x58] */
   1095     MEM32(ebx + 0x58) = ecx; /* 0x36003AA5: mov dword ptr [ebx + 0x58], ecx */
   1096     eax = MEM32(edx + 0x5C); /* 0x36003AA8: mov eax, dword ptr [edx + 0x5c] */
   1097     MEM32(ebx + 0x5C) = eax; /* 0x36003AAB: mov dword ptr [ebx + 0x5c], eax */
   1098     ecx = MEM32(edx + 0x60); /* 0x36003AAE: mov ecx, dword ptr [edx + 0x60] */
   1099     MEM32(ebx + 0x60) = ecx; /* 0x36003AB1: mov dword ptr [ebx + 0x60], ecx */
   1100     eax = MEM32(edx + 0x64); /* 0x36003AB4: mov eax, dword ptr [edx + 0x64] */
   1101     MEM32(ebx + 0x64) = eax; /* 0x36003AB7: mov dword ptr [ebx + 0x64], eax */
   1102     ecx = MEM32(edx + 0x68); /* 0x36003ABA: mov ecx, dword ptr [edx + 0x68] */
   1103     MEM32(ebx + 0x68) = ecx; /* 0x36003ABD: mov dword ptr [ebx + 0x68], ecx */
   1104     eax = MEM32(edx + 0x6C); /* 0x36003AC0: mov eax, dword ptr [edx + 0x6c] */
   1105     MEM32(ebx + 0x6C) = eax; /* 0x36003AC3: mov dword ptr [ebx + 0x6c], eax */
   1106     ecx = MEM32(edx + 0x70); /* 0x36003AC6: mov ecx, dword ptr [edx + 0x70] */
   1107     MEM32(ebx + 0x70) = ecx; /* 0x36003AC9: mov dword ptr [ebx + 0x70], ecx */
   1108     eax = MEM32(edx + 0x74); /* 0x36003ACC: mov eax, dword ptr [edx + 0x74] */
   1109     MEM32(ebx + 0x74) = eax; /* 0x36003ACF: mov dword ptr [ebx + 0x74], eax */
   1110     ecx = MEM32(edx + 0x78); /* 0x36003AD2: mov ecx, dword ptr [edx + 0x78] */
   1111     MEM32(ebx + 0x78) = ecx; /* 0x36003AD5: mov dword ptr [ebx + 0x78], ecx */
   1112     eax = MEM32(edx + 0x7C); /* 0x36003AD8: mov eax, dword ptr [edx + 0x7c] */
   1113     MEM32(ebx + 0x7C) = eax; /* 0x36003ADB: mov dword ptr [ebx + 0x7c], eax */
   1114     ecx = MEM32(edx + 0x80); /* 0x36003ADE: mov ecx, dword ptr [edx + 0x80] */
   1115     MEM32(ebx + 0x80) = ecx; /* 0x36003AE4: mov dword ptr [ebx + 0x80], ecx */
   1116     eax = MEM32(edx + 0x84); /* 0x36003AEA: mov eax, dword ptr [edx + 0x84] */
   1117     MEM32(ebx + 0x84) = eax; /* 0x36003AF0: mov dword ptr [ebx + 0x84], eax */
   1118     ecx = MEM32(edx + 0x88); /* 0x36003AF6: mov ecx, dword ptr [edx + 0x88] */
   1119     MEM32(ebx + 0x88) = ecx; /* 0x36003AFC: mov dword ptr [ebx + 0x88], ecx */
   1120     eax = MEM32(edx + 0x8C); /* 0x36003B02: mov eax, dword ptr [edx + 0x8c] */
   1121     MEM32(ebx + 0x8C) = eax; /* 0x36003B08: mov dword ptr [ebx + 0x8c], eax */
   1122     ecx = MEM32(edx + 0x90); /* 0x36003B0E: mov ecx, dword ptr [edx + 0x90] */
   1123     MEM32(ebx + 0x90) = ecx; /* 0x36003B14: mov dword ptr [ebx + 0x90], ecx */
   1124     eax = MEM32(edx + 0x94); /* 0x36003B1A: mov eax, dword ptr [edx + 0x94] */
   1125     MEM32(ebx + 0x94) = eax; /* 0x36003B20: mov dword ptr [ebx + 0x94], eax */
   1126     ecx = MEM32(edx + 0x98); /* 0x36003B26: mov ecx, dword ptr [edx + 0x98] */
   1127     MEM32(ebx + 0x98) = ecx; /* 0x36003B2C: mov dword ptr [ebx + 0x98], ecx */
   1128     eax = MEM32(edx + 0x9C); /* 0x36003B32: mov eax, dword ptr [edx + 0x9c] */
   1129     MEM32(ebx + 0x9C) = eax; /* 0x36003B38: mov dword ptr [ebx + 0x9c], eax */
   1130     ecx = MEM32(edx + 0xA0); /* 0x36003B3E: mov ecx, dword ptr [edx + 0xa0] */
   1131     MEM32(ebx + 0xA0) = ecx; /* 0x36003B44: mov dword ptr [ebx + 0xa0], ecx */
   1132     eax = MEM32(edx + 0xA4); /* 0x36003B4A: mov eax, dword ptr [edx + 0xa4] */
   1133     MEM32(ebx + 0xA4) = eax; /* 0x36003B50: mov dword ptr [ebx + 0xa4], eax */
   1134     ecx = MEM32(edx + 0xA8); /* 0x36003B56: mov ecx, dword ptr [edx + 0xa8] */
   1135     MEM32(ebx + 0xA8) = ecx; /* 0x36003B5C: mov dword ptr [ebx + 0xa8], ecx */
   1136     eax = MEM32(edx + 0xAC); /* 0x36003B62: mov eax, dword ptr [edx + 0xac] */
   1137     MEM32(ebx + 0xAC) = eax; /* 0x36003B68: mov dword ptr [ebx + 0xac], eax */
   1138     ecx = MEM32(edx + 0xB0); /* 0x36003B6E: mov ecx, dword ptr [edx + 0xb0] */
   1139     MEM32(ebx + 0xB0) = ecx; /* 0x36003B74: mov dword ptr [ebx + 0xb0], ecx */
   1140     eax = MEM32(edx + 0xB4); /* 0x36003B7A: mov eax, dword ptr [edx + 0xb4] */
   1141     MEM32(ebx + 0xB4) = eax; /* 0x36003B80: mov dword ptr [ebx + 0xb4], eax */
   1142     ecx = MEM32(edx + 0xB8); /* 0x36003B86: mov ecx, dword ptr [edx + 0xb8] */
   1143     MEM32(ebx + 0xB8) = ecx; /* 0x36003B8C: mov dword ptr [ebx + 0xb8], ecx */
   1144     edx = MEM32(edx + 0xBC); /* 0x36003B92: mov edx, dword ptr [edx + 0xbc] */
   1145     edi = POP32_VAL(esp); /* 0x36003B98: pop edi */
   1146     esi = POP32_VAL(esp); /* 0x36003B99: pop esi */
   1147     MEM32(ebx + 0xBC) = edx; /* 0x36003B9A: mov dword ptr [ebx + 0xbc], edx */
   1148     eax = ebx; /* 0x36003BA0: mov eax, ebx */
   1149     ebx = POP32_VAL(esp); /* 0x36003BA2: pop ebx */
   1150     esp = ebp; /* 0x36003BA3: mov esp, ebp */
   1151     ebp = POP32_VAL(esp); /* 0x36003BA5: pop ebp */
   1152     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003BA6: ret 4 */
   1153     RECOMP_REGS_OUT();
   1154 }
   1155 
   1156 void sub_36003930(void) {
   1157     int _fpu_cmp = 0;
   1158     uint32_t _cf = 0;
   1159     int _df = 1;
   1160     uint32_t _flag_k = FK_NONE;
   1161     uint32_t _flag_a = 0, _flag_b = 0;
   1162     uint32_t _itail_tgt = 0;
   1163     RECOMP_REGS_LOCALS
   1164     RECOMP_ENTER(0x36003930u);
   1165 
   1166     goto L_36003930;
   1167 L_36003900:
   1168     edx = MEM32(ebp + 0x8); /* 0x36003900: mov edx, dword ptr [ebp + 8] */
   1169 L_36003903:
   1170     ecx = MEM32(edx + 0x8); /* 0x36003903: mov ecx, dword ptr [edx + 8] */
   1171     /* test ecx, ecx */ /* 0x36003906: test ecx, ecx */
   1172     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1173     _cf = 0;
   1174     _flag_k = FK_TEST;
   1175     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600391A; /* 0x36003908: jne 0x3600391a */
   1176 L_3600390A:
   1177     ecx = MEM32(ebx + 0x8); /* 0x3600390A: mov ecx, dword ptr [ebx + 8] */
   1178     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1179     eax = 0; /* 0x3600390D: xor eax, eax */
   1180     _cf = 0;
   1181     _flag_k = FK_TEST;
   1182     eax = ecx + eax * 8; /* 0x3600390F: lea eax, [ecx + eax*8] */
   1183     MEM32(ebx + 0xC) = eax; /* 0x36003912: mov dword ptr [ebx + 0xc], eax */
   1184     goto L_36003A30; /* 0x36003915: jmp 0x36003a30 */
   1185 L_3600391A:
   1186     eax = MEM32(edx + 0xC); /* 0x3600391A: mov eax, dword ptr [edx + 0xc] */
   1187     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1189     eax = eax - ecx; /* 0x3600391D: sub eax, ecx */
   1190     _flag_k = FK_CMP;
   1191     ecx = MEM32(ebx + 0x8); /* 0x3600391F: mov ecx, dword ptr [ebx + 8] */
   1192     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36003922: sar eax, 3 */
   1193     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1194     eax = (uint32_t)((int32_t)eax >> 3u);
   1195     eax = ecx + eax * 8; /* 0x36003925: lea eax, [ecx + eax*8] */
   1196     MEM32(ebx + 0xC) = eax; /* 0x36003928: mov dword ptr [ebx + 0xc], eax */
   1197     goto L_36003A30; /* 0x3600392B: jmp 0x36003a30 */
   1198 L_36003930:
   1199     esi = MEM32(ebp + (-0x4)); /* 0x36003930: mov esi, dword ptr [ebp - 4] */
   1200     /* test esi, esi */ /* 0x36003933: test esi, esi */
   1201     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1202     _cf = 0;
   1203     _flag_k = FK_TEST;
   1204     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600393B; /* 0x36003935: jne 0x3600393b */
   1205 L_36003937:
   1206     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1207     edi = 0; /* 0x36003937: xor edi, edi */
   1208     _cf = 0;
   1209     _flag_k = FK_TEST;
   1210     goto L_36003943; /* 0x36003939: jmp 0x36003943 */
   1211 L_3600393B:
   1212     edi = MEM32(edx + 0xC); /* 0x3600393B: mov edi, dword ptr [edx + 0xc] */
   1213     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   1214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1215     edi = edi - esi; /* 0x3600393E: sub edi, esi */
   1216     _flag_k = FK_CMP;
   1217     if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36003940: sar edi, 3 */
   1218     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1219     edi = (uint32_t)((int32_t)edi >> 3u);
   1220 L_36003943:
   1221     /* test eax, eax */ /* 0x36003943: test eax, eax */
   1222     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1223     _cf = 0;
   1224     _flag_k = FK_TEST;
   1225     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600394B; /* 0x36003945: jne 0x3600394b */
   1226 L_36003947:
   1227     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1228     esi = 0; /* 0x36003947: xor esi, esi */
   1229     _cf = 0;
   1230     _flag_k = FK_TEST;
   1231     goto L_36003953; /* 0x36003949: jmp 0x36003953 */
   1232 L_3600394B:
   1233     esi = MEM32(ecx + 0xC); /* 0x3600394B: mov esi, dword ptr [ecx + 0xc] */
   1234     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1236     esi = esi - eax; /* 0x3600394E: sub esi, eax */
   1237     _flag_k = FK_CMP;
   1238     if (3u) _cf = (((esi) >> 2) & 1u); /* 0x36003950: sar esi, 3 */
   1239     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1240     esi = (uint32_t)((int32_t)esi >> 3u);
   1241 L_36003953:
   1242     /* cmp edi, esi */ /* 0x36003953: cmp edi, esi */
   1243     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   1244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1245     _flag_k = FK_CMP;
   1246     if (CMP_A(_flag_a, _flag_b)) goto L_360039CC; /* 0x36003955: ja 0x360039cc */
   1247 L_36003957:
   1248     /* test eax, eax */ /* 0x36003957: test eax, eax */
   1249     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1250     _cf = 0;
   1251     _flag_k = FK_TEST;
   1252     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600395F; /* 0x36003959: jne 0x3600395f */
   1253 L_3600395B:
   1254     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1255     ecx = 0; /* 0x3600395B: xor ecx, ecx */
   1256     _cf = 0;
   1257     _flag_k = FK_TEST;
   1258     goto L_36003967; /* 0x3600395D: jmp 0x36003967 */
   1259 L_3600395F:
   1260     ecx = MEM32(ecx + 0x8); /* 0x3600395F: mov ecx, dword ptr [ecx + 8] */
   1261     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1263     ecx = ecx - eax; /* 0x36003962: sub ecx, eax */
   1264     _flag_k = FK_CMP;
   1265     if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36003964: sar ecx, 3 */
   1266     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1267     ecx = (uint32_t)((int32_t)ecx >> 3u);
   1268 L_36003967:
   1269     esi = MEM32(ebp + (-0x4)); /* 0x36003967: mov esi, dword ptr [ebp - 4] */
   1270     edi = esi + ecx * 8; /* 0x3600396A: lea edi, [esi + ecx*8] */
   1271     /* cmp esi, edi */ /* 0x3600396D: cmp esi, edi */
   1272     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   1273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1274     _flag_k = FK_CMP;
   1275     MEM32(ebp + (-0x4)) = eax; /* 0x3600396F: mov dword ptr [ebp - 4], eax */
   1276     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003991; /* 0x36003972: je 0x36003991 */
   1277 L_36003974:
   1278     ecx = MEM32(ebp + (-0x4)); /* 0x36003974: mov ecx, dword ptr [ebp - 4] */
   1279     PUSH32(esp, esi); /* 0x36003977: push esi */
   1280     RECOMP_ICALL(MEM32(0x3616FFA4)); /* 0x36003978: call dword ptr [0x3616ffa4] */
   1281     RECOMP_FLAGS_IN();
   1282     edx = MEM32(ebp + (-0x4)); /* 0x3600397E: mov edx, dword ptr [ebp - 4] */
   1283     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8);
   1284     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1285     edx = edx + 8; /* 0x36003981: add edx, 8 */
   1286     _flag_k = FK_ADD;
   1287     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   1288     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1289     esi = esi + 8; /* 0x36003984: add esi, 8 */
   1290     _flag_k = FK_ADD;
   1291     /* cmp esi, edi */ /* 0x36003987: cmp esi, edi */
   1292     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   1293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1294     _flag_k = FK_CMP;
   1295     MEM32(ebp + (-0x4)) = edx; /* 0x36003989: mov dword ptr [ebp - 4], edx */
   1296     RECOMP_BACKEDGE();
   1297     if (CMP_NE(_flag_a, _flag_b)) goto L_36003974; /* 0x3600398C: jne 0x36003974 */
   1298 L_3600398E:
   1299     edx = MEM32(ebp + 0x8); /* 0x3600398E: mov edx, dword ptr [ebp + 8] */
   1300 L_36003991:
   1301     eax = MEM32(edx + 0xC); /* 0x36003991: mov eax, dword ptr [edx + 0xc] */
   1302     /* cmp edi, eax */ /* 0x36003994: cmp edi, eax */
   1303     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1305     _flag_k = FK_CMP;
   1306     ecx = MEM32(ebx + 0xC); /* 0x36003996: mov ecx, dword ptr [ebx + 0xc] */
   1307     MEM32(ebp + (-0x8)) = eax; /* 0x36003999: mov dword ptr [ebp - 8], eax */
   1308     MEM32(ebp + (-0x4)) = ecx; /* 0x3600399C: mov dword ptr [ebp - 4], ecx */
   1309     esi = edi; /* 0x3600399F: mov esi, edi */
   1310     RECOMP_BACKEDGE();
   1311     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003903; /* 0x360039A1: je 0x36003903 */
   1312 L_360039A7:
   1313     edx = MEM32(ebp + (-0x4)); /* 0x360039A7: mov edx, dword ptr [ebp - 4] */
   1314     PUSH32(esp, esi); /* 0x360039AA: push esi */
   1315     PUSH32(esp, edx); /* 0x360039AB: push edx */
   1316     RECOMP_ICALL(0x360052C0u); /* 0x360039AC: call 0x360052c0 */ /* not lifted */
   1317     RECOMP_FLAGS_IN();
   1318     edx = MEM32(ebp + (-0x4)); /* 0x360039B1: mov edx, dword ptr [ebp - 4] */
   1319     eax = MEM32(ebp + (-0x8)); /* 0x360039B4: mov eax, dword ptr [ebp - 8] */
   1320     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8);
   1321     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1322     edx = edx + 8; /* 0x360039B7: add edx, 8 */
   1323     _flag_k = FK_ADD;
   1324     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   1325     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1326     esi = esi + 8; /* 0x360039BA: add esi, 8 */
   1327     _flag_k = FK_ADD;
   1328     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1329     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1330     esp = esp + 8; /* 0x360039BD: add esp, 8 */
   1331     _flag_k = FK_ADD;
   1332     /* cmp esi, eax */ /* 0x360039C0: cmp esi, eax */
   1333     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1335     _flag_k = FK_CMP;
   1336     MEM32(ebp + (-0x4)) = edx; /* 0x360039C2: mov dword ptr [ebp - 4], edx */
   1337     RECOMP_BACKEDGE();
   1338     if (CMP_NE(_flag_a, _flag_b)) goto L_360039A7; /* 0x360039C5: jne 0x360039a7 */
   1339 L_360039C7:
   1340     RECOMP_BACKEDGE();
   1341     goto L_36003900; /* 0x360039C7: jmp 0x36003900 */
   1342 L_360039CC:
   1343     edx = MEM32(ecx + 0x8); /* 0x360039CC: mov edx, dword ptr [ecx + 8] */
   1344     PUSH32(esp, edx); /* 0x360039CF: push edx */
   1345     PUSH32(esp, eax); /* 0x360039D0: push eax */
   1346     RECOMP_ICALL(0x36005250u); /* 0x360039D1: call 0x36005250 */ /* not lifted */
   1347     RECOMP_FLAGS_IN();
   1348     eax = MEM32(ebx + 0x8); /* 0x360039D6: mov eax, dword ptr [ebx + 8] */
   1349     esi = ebx + 0x4; /* 0x360039D9: lea esi, [ebx + 4] */
   1350     PUSH32(esp, eax); /* 0x360039DC: push eax */
   1351     RECOMP_ICALL(0x3615FCC4u); /* 0x360039DD: call 0x3615fcc4 */ /* not lifted */
   1352     RECOMP_FLAGS_IN();
   1353     ecx = MEM32(ebp + 0x8); /* 0x360039E2: mov ecx, dword ptr [ebp + 8] */
   1354     edi = ecx + 0x4; /* 0x360039E5: lea edi, [ecx + 4] */
   1355     ecx = MEM32(edi + 0x4); /* 0x360039E8: mov ecx, dword ptr [edi + 4] */
   1356     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1357     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1358     esp = esp + 4; /* 0x360039EB: add esp, 4 */
   1359     _flag_k = FK_ADD;
   1360     /* test ecx, ecx */ /* 0x360039EE: test ecx, ecx */
   1361     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1362     _cf = 0;
   1363     _flag_k = FK_TEST;
   1364     if (TEST_NZ(_flag_a, _flag_b)) goto L_360039F6; /* 0x360039F0: jne 0x360039f6 */
   1365 L_360039F2:
   1366     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1367     eax = 0; /* 0x360039F2: xor eax, eax */
   1368     _cf = 0;
   1369     _flag_k = FK_TEST;
   1370     goto L_360039FE; /* 0x360039F4: jmp 0x360039fe */
   1371 L_360039F6:
   1372     eax = MEM32(edi + 0x8); /* 0x360039F6: mov eax, dword ptr [edi + 8] */
   1373     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1375     eax = eax - ecx; /* 0x360039F9: sub eax, ecx */
   1376     _flag_k = FK_CMP;
   1377     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x360039FB: sar eax, 3 */
   1378     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1379     eax = (uint32_t)((int32_t)eax >> 3u);
   1380 L_360039FE:
   1381     /* test eax, eax */ /* 0x360039FE: test eax, eax */
   1382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1383     _cf = 0;
   1384     _flag_k = FK_TEST;
   1385     if (TEST_NS(_flag_a, _flag_b)) goto L_36003A04; /* 0x36003A00: jge 0x36003a04 */
   1386 L_36003A02:
   1387     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1388     eax = 0; /* 0x36003A02: xor eax, eax */
   1389     _cf = 0;
   1390     _flag_k = FK_TEST;
   1391 L_36003A04:
   1392     edx = eax * 8; /* 0x36003A04: lea edx, [eax*8] */
   1393     PUSH32(esp, edx); /* 0x36003A0B: push edx */
   1394     RECOMP_ICALL(0x3615FD6Au); /* 0x36003A0C: call 0x3615fd6a */ /* not lifted */
   1395     RECOMP_FLAGS_IN();
   1396     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1397     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1398     esp = esp + 4; /* 0x36003A11: add esp, 4 */
   1399     _flag_k = FK_ADD;
   1400     MEM32(esi + 0x4) = eax; /* 0x36003A14: mov dword ptr [esi + 4], eax */
   1401     ecx = MEM32(edi + 0x8); /* 0x36003A17: mov ecx, dword ptr [edi + 8] */
   1402     edi = MEM32(edi + 0x4); /* 0x36003A1A: mov edi, dword ptr [edi + 4] */
   1403     PUSH32(esp, eax); /* 0x36003A1D: push eax */
   1404     PUSH32(esp, ecx); /* 0x36003A1E: push ecx */
   1405     PUSH32(esp, edi); /* 0x36003A1F: push edi */
   1406     ecx = esi; /* 0x36003A20: mov ecx, esi */
   1407     RECOMP_ICALL(0x36005280u); /* 0x36003A22: call 0x36005280 */ /* not lifted */
   1408     RECOMP_FLAGS_IN();
   1409     edx = MEM32(ebp + 0x8); /* 0x36003A27: mov edx, dword ptr [ebp + 8] */
   1410     MEM32(esi + 0x8) = eax; /* 0x36003A2A: mov dword ptr [esi + 8], eax */
   1411     MEM32(esi + 0xC) = eax; /* 0x36003A2D: mov dword ptr [esi + 0xc], eax */
   1412 L_36003A30:
   1413     SET_LO8(eax, MEM8(edx + 0x14)); /* 0x36003A30: mov al, byte ptr [edx + 0x14] */
   1414     MEM8(ebx + 0x14) = (uint8_t)(LO8(eax)); /* 0x36003A33: mov byte ptr [ebx + 0x14], al */
   1415     ecx = MEM32(edx + 0x18); /* 0x36003A36: mov ecx, dword ptr [edx + 0x18] */
   1416     MEM32(ebx + 0x18) = ecx; /* 0x36003A39: mov dword ptr [ebx + 0x18], ecx */
   1417     SET_LO8(eax, MEM8(edx + 0x1C)); /* 0x36003A3C: mov al, byte ptr [edx + 0x1c] */
   1418     MEM8(ebx + 0x1C) = (uint8_t)(LO8(eax)); /* 0x36003A3F: mov byte ptr [ebx + 0x1c], al */
   1419     SET_LO8(ecx, MEM8(edx + 0x1D)); /* 0x36003A42: mov cl, byte ptr [edx + 0x1d] */
   1420     MEM8(ebx + 0x1D) = (uint8_t)(LO8(ecx)); /* 0x36003A45: mov byte ptr [ebx + 0x1d], cl */
   1421     SET_LO8(eax, MEM8(edx + 0x1E)); /* 0x36003A48: mov al, byte ptr [edx + 0x1e] */
   1422     MEM8(ebx + 0x1E) = (uint8_t)(LO8(eax)); /* 0x36003A4B: mov byte ptr [ebx + 0x1e], al */
   1423     ecx = MEM32(edx + 0x20); /* 0x36003A4E: mov ecx, dword ptr [edx + 0x20] */
   1424     MEM32(ebx + 0x20) = ecx; /* 0x36003A51: mov dword ptr [ebx + 0x20], ecx */
   1425     eax = MEM32(edx + 0x24); /* 0x36003A54: mov eax, dword ptr [edx + 0x24] */
   1426     MEM32(ebx + 0x24) = eax; /* 0x36003A57: mov dword ptr [ebx + 0x24], eax */
   1427     ecx = MEM32(edx + 0x28); /* 0x36003A5A: mov ecx, dword ptr [edx + 0x28] */
   1428     MEM32(ebx + 0x28) = ecx; /* 0x36003A5D: mov dword ptr [ebx + 0x28], ecx */
   1429     eax = MEM32(edx + 0x2C); /* 0x36003A60: mov eax, dword ptr [edx + 0x2c] */
   1430     MEM32(ebx + 0x2C) = eax; /* 0x36003A63: mov dword ptr [ebx + 0x2c], eax */
   1431     ecx = MEM32(edx + 0x30); /* 0x36003A66: mov ecx, dword ptr [edx + 0x30] */
   1432     MEM32(ebx + 0x30) = ecx; /* 0x36003A69: mov dword ptr [ebx + 0x30], ecx */
   1433     eax = MEM32(edx + 0x34); /* 0x36003A6C: mov eax, dword ptr [edx + 0x34] */
   1434     MEM32(ebx + 0x34) = eax; /* 0x36003A6F: mov dword ptr [ebx + 0x34], eax */
   1435     ecx = MEM32(edx + 0x38); /* 0x36003A72: mov ecx, dword ptr [edx + 0x38] */
   1436     MEM32(ebx + 0x38) = ecx; /* 0x36003A75: mov dword ptr [ebx + 0x38], ecx */
   1437     eax = MEM32(edx + 0x3C); /* 0x36003A78: mov eax, dword ptr [edx + 0x3c] */
   1438     MEM32(ebx + 0x3C) = eax; /* 0x36003A7B: mov dword ptr [ebx + 0x3c], eax */
   1439     ecx = MEM32(edx + 0x40); /* 0x36003A7E: mov ecx, dword ptr [edx + 0x40] */
   1440     MEM32(ebx + 0x40) = ecx; /* 0x36003A81: mov dword ptr [ebx + 0x40], ecx */
   1441     eax = MEM32(edx + 0x44); /* 0x36003A84: mov eax, dword ptr [edx + 0x44] */
   1442     MEM32(ebx + 0x44) = eax; /* 0x36003A87: mov dword ptr [ebx + 0x44], eax */
   1443     ecx = MEM32(edx + 0x48); /* 0x36003A8A: mov ecx, dword ptr [edx + 0x48] */
   1444     MEM32(ebx + 0x48) = ecx; /* 0x36003A8D: mov dword ptr [ebx + 0x48], ecx */
   1445     eax = MEM32(edx + 0x4C); /* 0x36003A90: mov eax, dword ptr [edx + 0x4c] */
   1446     MEM32(ebx + 0x4C) = eax; /* 0x36003A93: mov dword ptr [ebx + 0x4c], eax */
   1447     ecx = MEM32(edx + 0x50); /* 0x36003A96: mov ecx, dword ptr [edx + 0x50] */
   1448     MEM32(ebx + 0x50) = ecx; /* 0x36003A99: mov dword ptr [ebx + 0x50], ecx */
   1449     eax = MEM32(edx + 0x54); /* 0x36003A9C: mov eax, dword ptr [edx + 0x54] */
   1450     MEM32(ebx + 0x54) = eax; /* 0x36003A9F: mov dword ptr [ebx + 0x54], eax */
   1451     ecx = MEM32(edx + 0x58); /* 0x36003AA2: mov ecx, dword ptr [edx + 0x58] */
   1452     MEM32(ebx + 0x58) = ecx; /* 0x36003AA5: mov dword ptr [ebx + 0x58], ecx */
   1453     eax = MEM32(edx + 0x5C); /* 0x36003AA8: mov eax, dword ptr [edx + 0x5c] */
   1454     MEM32(ebx + 0x5C) = eax; /* 0x36003AAB: mov dword ptr [ebx + 0x5c], eax */
   1455     ecx = MEM32(edx + 0x60); /* 0x36003AAE: mov ecx, dword ptr [edx + 0x60] */
   1456     MEM32(ebx + 0x60) = ecx; /* 0x36003AB1: mov dword ptr [ebx + 0x60], ecx */
   1457     eax = MEM32(edx + 0x64); /* 0x36003AB4: mov eax, dword ptr [edx + 0x64] */
   1458     MEM32(ebx + 0x64) = eax; /* 0x36003AB7: mov dword ptr [ebx + 0x64], eax */
   1459     ecx = MEM32(edx + 0x68); /* 0x36003ABA: mov ecx, dword ptr [edx + 0x68] */
   1460     MEM32(ebx + 0x68) = ecx; /* 0x36003ABD: mov dword ptr [ebx + 0x68], ecx */
   1461     eax = MEM32(edx + 0x6C); /* 0x36003AC0: mov eax, dword ptr [edx + 0x6c] */
   1462     MEM32(ebx + 0x6C) = eax; /* 0x36003AC3: mov dword ptr [ebx + 0x6c], eax */
   1463     ecx = MEM32(edx + 0x70); /* 0x36003AC6: mov ecx, dword ptr [edx + 0x70] */
   1464     MEM32(ebx + 0x70) = ecx; /* 0x36003AC9: mov dword ptr [ebx + 0x70], ecx */
   1465     eax = MEM32(edx + 0x74); /* 0x36003ACC: mov eax, dword ptr [edx + 0x74] */
   1466     MEM32(ebx + 0x74) = eax; /* 0x36003ACF: mov dword ptr [ebx + 0x74], eax */
   1467     ecx = MEM32(edx + 0x78); /* 0x36003AD2: mov ecx, dword ptr [edx + 0x78] */
   1468     MEM32(ebx + 0x78) = ecx; /* 0x36003AD5: mov dword ptr [ebx + 0x78], ecx */
   1469     eax = MEM32(edx + 0x7C); /* 0x36003AD8: mov eax, dword ptr [edx + 0x7c] */
   1470     MEM32(ebx + 0x7C) = eax; /* 0x36003ADB: mov dword ptr [ebx + 0x7c], eax */
   1471     ecx = MEM32(edx + 0x80); /* 0x36003ADE: mov ecx, dword ptr [edx + 0x80] */
   1472     MEM32(ebx + 0x80) = ecx; /* 0x36003AE4: mov dword ptr [ebx + 0x80], ecx */
   1473     eax = MEM32(edx + 0x84); /* 0x36003AEA: mov eax, dword ptr [edx + 0x84] */
   1474     MEM32(ebx + 0x84) = eax; /* 0x36003AF0: mov dword ptr [ebx + 0x84], eax */
   1475     ecx = MEM32(edx + 0x88); /* 0x36003AF6: mov ecx, dword ptr [edx + 0x88] */
   1476     MEM32(ebx + 0x88) = ecx; /* 0x36003AFC: mov dword ptr [ebx + 0x88], ecx */
   1477     eax = MEM32(edx + 0x8C); /* 0x36003B02: mov eax, dword ptr [edx + 0x8c] */
   1478     MEM32(ebx + 0x8C) = eax; /* 0x36003B08: mov dword ptr [ebx + 0x8c], eax */
   1479     ecx = MEM32(edx + 0x90); /* 0x36003B0E: mov ecx, dword ptr [edx + 0x90] */
   1480     MEM32(ebx + 0x90) = ecx; /* 0x36003B14: mov dword ptr [ebx + 0x90], ecx */
   1481     eax = MEM32(edx + 0x94); /* 0x36003B1A: mov eax, dword ptr [edx + 0x94] */
   1482     MEM32(ebx + 0x94) = eax; /* 0x36003B20: mov dword ptr [ebx + 0x94], eax */
   1483     ecx = MEM32(edx + 0x98); /* 0x36003B26: mov ecx, dword ptr [edx + 0x98] */
   1484     MEM32(ebx + 0x98) = ecx; /* 0x36003B2C: mov dword ptr [ebx + 0x98], ecx */
   1485     eax = MEM32(edx + 0x9C); /* 0x36003B32: mov eax, dword ptr [edx + 0x9c] */
   1486     MEM32(ebx + 0x9C) = eax; /* 0x36003B38: mov dword ptr [ebx + 0x9c], eax */
   1487     ecx = MEM32(edx + 0xA0); /* 0x36003B3E: mov ecx, dword ptr [edx + 0xa0] */
   1488     MEM32(ebx + 0xA0) = ecx; /* 0x36003B44: mov dword ptr [ebx + 0xa0], ecx */
   1489     eax = MEM32(edx + 0xA4); /* 0x36003B4A: mov eax, dword ptr [edx + 0xa4] */
   1490     MEM32(ebx + 0xA4) = eax; /* 0x36003B50: mov dword ptr [ebx + 0xa4], eax */
   1491     ecx = MEM32(edx + 0xA8); /* 0x36003B56: mov ecx, dword ptr [edx + 0xa8] */
   1492     MEM32(ebx + 0xA8) = ecx; /* 0x36003B5C: mov dword ptr [ebx + 0xa8], ecx */
   1493     eax = MEM32(edx + 0xAC); /* 0x36003B62: mov eax, dword ptr [edx + 0xac] */
   1494     MEM32(ebx + 0xAC) = eax; /* 0x36003B68: mov dword ptr [ebx + 0xac], eax */
   1495     ecx = MEM32(edx + 0xB0); /* 0x36003B6E: mov ecx, dword ptr [edx + 0xb0] */
   1496     MEM32(ebx + 0xB0) = ecx; /* 0x36003B74: mov dword ptr [ebx + 0xb0], ecx */
   1497     eax = MEM32(edx + 0xB4); /* 0x36003B7A: mov eax, dword ptr [edx + 0xb4] */
   1498     MEM32(ebx + 0xB4) = eax; /* 0x36003B80: mov dword ptr [ebx + 0xb4], eax */
   1499     ecx = MEM32(edx + 0xB8); /* 0x36003B86: mov ecx, dword ptr [edx + 0xb8] */
   1500     MEM32(ebx + 0xB8) = ecx; /* 0x36003B8C: mov dword ptr [ebx + 0xb8], ecx */
   1501     edx = MEM32(edx + 0xBC); /* 0x36003B92: mov edx, dword ptr [edx + 0xbc] */
   1502     edi = POP32_VAL(esp); /* 0x36003B98: pop edi */
   1503     esi = POP32_VAL(esp); /* 0x36003B99: pop esi */
   1504     MEM32(ebx + 0xBC) = edx; /* 0x36003B9A: mov dword ptr [ebx + 0xbc], edx */
   1505     eax = ebx; /* 0x36003BA0: mov eax, ebx */
   1506     ebx = POP32_VAL(esp); /* 0x36003BA2: pop ebx */
   1507     esp = ebp; /* 0x36003BA3: mov esp, ebp */
   1508     ebp = POP32_VAL(esp); /* 0x36003BA5: pop ebp */
   1509     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003BA6: ret 4 */
   1510     RECOMP_REGS_OUT();
   1511 }
   1512 
   1513 void sub_36003A30(void) {
   1514     int _fpu_cmp = 0;
   1515     uint32_t _cf = 0;
   1516     int _df = 1;
   1517     uint32_t _flag_k = FK_NONE;
   1518     uint32_t _flag_a = 0, _flag_b = 0;
   1519     uint32_t _itail_tgt = 0;
   1520     RECOMP_REGS_LOCALS
   1521     RECOMP_ENTER(0x36003A30u);
   1522 
   1523 L_36003A30:
   1524     SET_LO8(eax, MEM8(edx + 0x14)); /* 0x36003A30: mov al, byte ptr [edx + 0x14] */
   1525     MEM8(ebx + 0x14) = (uint8_t)(LO8(eax)); /* 0x36003A33: mov byte ptr [ebx + 0x14], al */
   1526     ecx = MEM32(edx + 0x18); /* 0x36003A36: mov ecx, dword ptr [edx + 0x18] */
   1527     MEM32(ebx + 0x18) = ecx; /* 0x36003A39: mov dword ptr [ebx + 0x18], ecx */
   1528     SET_LO8(eax, MEM8(edx + 0x1C)); /* 0x36003A3C: mov al, byte ptr [edx + 0x1c] */
   1529     MEM8(ebx + 0x1C) = (uint8_t)(LO8(eax)); /* 0x36003A3F: mov byte ptr [ebx + 0x1c], al */
   1530     SET_LO8(ecx, MEM8(edx + 0x1D)); /* 0x36003A42: mov cl, byte ptr [edx + 0x1d] */
   1531     MEM8(ebx + 0x1D) = (uint8_t)(LO8(ecx)); /* 0x36003A45: mov byte ptr [ebx + 0x1d], cl */
   1532     SET_LO8(eax, MEM8(edx + 0x1E)); /* 0x36003A48: mov al, byte ptr [edx + 0x1e] */
   1533     MEM8(ebx + 0x1E) = (uint8_t)(LO8(eax)); /* 0x36003A4B: mov byte ptr [ebx + 0x1e], al */
   1534     ecx = MEM32(edx + 0x20); /* 0x36003A4E: mov ecx, dword ptr [edx + 0x20] */
   1535     MEM32(ebx + 0x20) = ecx; /* 0x36003A51: mov dword ptr [ebx + 0x20], ecx */
   1536     eax = MEM32(edx + 0x24); /* 0x36003A54: mov eax, dword ptr [edx + 0x24] */
   1537     MEM32(ebx + 0x24) = eax; /* 0x36003A57: mov dword ptr [ebx + 0x24], eax */
   1538     ecx = MEM32(edx + 0x28); /* 0x36003A5A: mov ecx, dword ptr [edx + 0x28] */
   1539     MEM32(ebx + 0x28) = ecx; /* 0x36003A5D: mov dword ptr [ebx + 0x28], ecx */
   1540     eax = MEM32(edx + 0x2C); /* 0x36003A60: mov eax, dword ptr [edx + 0x2c] */
   1541     MEM32(ebx + 0x2C) = eax; /* 0x36003A63: mov dword ptr [ebx + 0x2c], eax */
   1542     ecx = MEM32(edx + 0x30); /* 0x36003A66: mov ecx, dword ptr [edx + 0x30] */
   1543     MEM32(ebx + 0x30) = ecx; /* 0x36003A69: mov dword ptr [ebx + 0x30], ecx */
   1544     eax = MEM32(edx + 0x34); /* 0x36003A6C: mov eax, dword ptr [edx + 0x34] */
   1545     MEM32(ebx + 0x34) = eax; /* 0x36003A6F: mov dword ptr [ebx + 0x34], eax */
   1546     ecx = MEM32(edx + 0x38); /* 0x36003A72: mov ecx, dword ptr [edx + 0x38] */
   1547     MEM32(ebx + 0x38) = ecx; /* 0x36003A75: mov dword ptr [ebx + 0x38], ecx */
   1548     eax = MEM32(edx + 0x3C); /* 0x36003A78: mov eax, dword ptr [edx + 0x3c] */
   1549     MEM32(ebx + 0x3C) = eax; /* 0x36003A7B: mov dword ptr [ebx + 0x3c], eax */
   1550     ecx = MEM32(edx + 0x40); /* 0x36003A7E: mov ecx, dword ptr [edx + 0x40] */
   1551     MEM32(ebx + 0x40) = ecx; /* 0x36003A81: mov dword ptr [ebx + 0x40], ecx */
   1552     eax = MEM32(edx + 0x44); /* 0x36003A84: mov eax, dword ptr [edx + 0x44] */
   1553     MEM32(ebx + 0x44) = eax; /* 0x36003A87: mov dword ptr [ebx + 0x44], eax */
   1554     ecx = MEM32(edx + 0x48); /* 0x36003A8A: mov ecx, dword ptr [edx + 0x48] */
   1555     MEM32(ebx + 0x48) = ecx; /* 0x36003A8D: mov dword ptr [ebx + 0x48], ecx */
   1556     eax = MEM32(edx + 0x4C); /* 0x36003A90: mov eax, dword ptr [edx + 0x4c] */
   1557     MEM32(ebx + 0x4C) = eax; /* 0x36003A93: mov dword ptr [ebx + 0x4c], eax */
   1558     ecx = MEM32(edx + 0x50); /* 0x36003A96: mov ecx, dword ptr [edx + 0x50] */
   1559     MEM32(ebx + 0x50) = ecx; /* 0x36003A99: mov dword ptr [ebx + 0x50], ecx */
   1560     eax = MEM32(edx + 0x54); /* 0x36003A9C: mov eax, dword ptr [edx + 0x54] */
   1561     MEM32(ebx + 0x54) = eax; /* 0x36003A9F: mov dword ptr [ebx + 0x54], eax */
   1562     ecx = MEM32(edx + 0x58); /* 0x36003AA2: mov ecx, dword ptr [edx + 0x58] */
   1563     MEM32(ebx + 0x58) = ecx; /* 0x36003AA5: mov dword ptr [ebx + 0x58], ecx */
   1564     eax = MEM32(edx + 0x5C); /* 0x36003AA8: mov eax, dword ptr [edx + 0x5c] */
   1565     MEM32(ebx + 0x5C) = eax; /* 0x36003AAB: mov dword ptr [ebx + 0x5c], eax */
   1566     ecx = MEM32(edx + 0x60); /* 0x36003AAE: mov ecx, dword ptr [edx + 0x60] */
   1567     MEM32(ebx + 0x60) = ecx; /* 0x36003AB1: mov dword ptr [ebx + 0x60], ecx */
   1568     eax = MEM32(edx + 0x64); /* 0x36003AB4: mov eax, dword ptr [edx + 0x64] */
   1569     MEM32(ebx + 0x64) = eax; /* 0x36003AB7: mov dword ptr [ebx + 0x64], eax */
   1570     ecx = MEM32(edx + 0x68); /* 0x36003ABA: mov ecx, dword ptr [edx + 0x68] */
   1571     MEM32(ebx + 0x68) = ecx; /* 0x36003ABD: mov dword ptr [ebx + 0x68], ecx */
   1572     eax = MEM32(edx + 0x6C); /* 0x36003AC0: mov eax, dword ptr [edx + 0x6c] */
   1573     MEM32(ebx + 0x6C) = eax; /* 0x36003AC3: mov dword ptr [ebx + 0x6c], eax */
   1574     ecx = MEM32(edx + 0x70); /* 0x36003AC6: mov ecx, dword ptr [edx + 0x70] */
   1575     MEM32(ebx + 0x70) = ecx; /* 0x36003AC9: mov dword ptr [ebx + 0x70], ecx */
   1576     eax = MEM32(edx + 0x74); /* 0x36003ACC: mov eax, dword ptr [edx + 0x74] */
   1577     MEM32(ebx + 0x74) = eax; /* 0x36003ACF: mov dword ptr [ebx + 0x74], eax */
   1578     ecx = MEM32(edx + 0x78); /* 0x36003AD2: mov ecx, dword ptr [edx + 0x78] */
   1579     MEM32(ebx + 0x78) = ecx; /* 0x36003AD5: mov dword ptr [ebx + 0x78], ecx */
   1580     eax = MEM32(edx + 0x7C); /* 0x36003AD8: mov eax, dword ptr [edx + 0x7c] */
   1581     MEM32(ebx + 0x7C) = eax; /* 0x36003ADB: mov dword ptr [ebx + 0x7c], eax */
   1582     ecx = MEM32(edx + 0x80); /* 0x36003ADE: mov ecx, dword ptr [edx + 0x80] */
   1583     MEM32(ebx + 0x80) = ecx; /* 0x36003AE4: mov dword ptr [ebx + 0x80], ecx */
   1584     eax = MEM32(edx + 0x84); /* 0x36003AEA: mov eax, dword ptr [edx + 0x84] */
   1585     MEM32(ebx + 0x84) = eax; /* 0x36003AF0: mov dword ptr [ebx + 0x84], eax */
   1586     ecx = MEM32(edx + 0x88); /* 0x36003AF6: mov ecx, dword ptr [edx + 0x88] */
   1587     MEM32(ebx + 0x88) = ecx; /* 0x36003AFC: mov dword ptr [ebx + 0x88], ecx */
   1588     eax = MEM32(edx + 0x8C); /* 0x36003B02: mov eax, dword ptr [edx + 0x8c] */
   1589     MEM32(ebx + 0x8C) = eax; /* 0x36003B08: mov dword ptr [ebx + 0x8c], eax */
   1590     ecx = MEM32(edx + 0x90); /* 0x36003B0E: mov ecx, dword ptr [edx + 0x90] */
   1591     MEM32(ebx + 0x90) = ecx; /* 0x36003B14: mov dword ptr [ebx + 0x90], ecx */
   1592     eax = MEM32(edx + 0x94); /* 0x36003B1A: mov eax, dword ptr [edx + 0x94] */
   1593     MEM32(ebx + 0x94) = eax; /* 0x36003B20: mov dword ptr [ebx + 0x94], eax */
   1594     ecx = MEM32(edx + 0x98); /* 0x36003B26: mov ecx, dword ptr [edx + 0x98] */
   1595     MEM32(ebx + 0x98) = ecx; /* 0x36003B2C: mov dword ptr [ebx + 0x98], ecx */
   1596     eax = MEM32(edx + 0x9C); /* 0x36003B32: mov eax, dword ptr [edx + 0x9c] */
   1597     MEM32(ebx + 0x9C) = eax; /* 0x36003B38: mov dword ptr [ebx + 0x9c], eax */
   1598     ecx = MEM32(edx + 0xA0); /* 0x36003B3E: mov ecx, dword ptr [edx + 0xa0] */
   1599     MEM32(ebx + 0xA0) = ecx; /* 0x36003B44: mov dword ptr [ebx + 0xa0], ecx */
   1600     eax = MEM32(edx + 0xA4); /* 0x36003B4A: mov eax, dword ptr [edx + 0xa4] */
   1601     MEM32(ebx + 0xA4) = eax; /* 0x36003B50: mov dword ptr [ebx + 0xa4], eax */
   1602     ecx = MEM32(edx + 0xA8); /* 0x36003B56: mov ecx, dword ptr [edx + 0xa8] */
   1603     MEM32(ebx + 0xA8) = ecx; /* 0x36003B5C: mov dword ptr [ebx + 0xa8], ecx */
   1604     eax = MEM32(edx + 0xAC); /* 0x36003B62: mov eax, dword ptr [edx + 0xac] */
   1605     MEM32(ebx + 0xAC) = eax; /* 0x36003B68: mov dword ptr [ebx + 0xac], eax */
   1606     ecx = MEM32(edx + 0xB0); /* 0x36003B6E: mov ecx, dword ptr [edx + 0xb0] */
   1607     MEM32(ebx + 0xB0) = ecx; /* 0x36003B74: mov dword ptr [ebx + 0xb0], ecx */
   1608     eax = MEM32(edx + 0xB4); /* 0x36003B7A: mov eax, dword ptr [edx + 0xb4] */
   1609     MEM32(ebx + 0xB4) = eax; /* 0x36003B80: mov dword ptr [ebx + 0xb4], eax */
   1610     ecx = MEM32(edx + 0xB8); /* 0x36003B86: mov ecx, dword ptr [edx + 0xb8] */
   1611     MEM32(ebx + 0xB8) = ecx; /* 0x36003B8C: mov dword ptr [ebx + 0xb8], ecx */
   1612     edx = MEM32(edx + 0xBC); /* 0x36003B92: mov edx, dword ptr [edx + 0xbc] */
   1613     edi = POP32_VAL(esp); /* 0x36003B98: pop edi */
   1614     esi = POP32_VAL(esp); /* 0x36003B99: pop esi */
   1615     MEM32(ebx + 0xBC) = edx; /* 0x36003B9A: mov dword ptr [ebx + 0xbc], edx */
   1616     eax = ebx; /* 0x36003BA0: mov eax, ebx */
   1617     ebx = POP32_VAL(esp); /* 0x36003BA2: pop ebx */
   1618     esp = ebp; /* 0x36003BA3: mov esp, ebp */
   1619     ebp = POP32_VAL(esp); /* 0x36003BA5: pop ebp */
   1620     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003BA6: ret 4 */
   1621     RECOMP_REGS_OUT();
   1622 }
   1623 
   1624 void sub_36003BB0(void) {
   1625     int _fpu_cmp = 0;
   1626     uint32_t _cf = 0;
   1627     int _df = 1;
   1628     uint32_t _flag_k = FK_NONE;
   1629     uint32_t _flag_a = 0, _flag_b = 0;
   1630     uint32_t _itail_tgt = 0;
   1631     RECOMP_REGS_LOCALS
   1632     RECOMP_ENTER(0x36003BB0u);
   1633 
   1634 L_36003BB0:
   1635     PUSH32(esp, ebp); /* 0x36003BB0: push ebp */
   1636     ebp = esp; /* 0x36003BB1: mov ebp, esp */
   1637     PUSH32(esp, ebx); /* 0x36003BB3: push ebx */
   1638     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x36003BB4: mov bl, byte ptr [ebp + 8] */
   1639     /* test LO8(ebx), 2 */ /* 0x36003BB7: test bl, 2 */
   1640     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   1641     _cf = 0;
   1642     _flag_k = FK_NARROW(FK_TEST, 24);
   1643     PUSH32(esp, esi); /* 0x36003BBA: push esi */
   1644     esi = ecx; /* 0x36003BBB: mov esi, ecx */
   1645     if (TEST_Z(_flag_a, _flag_b)) goto L_36003BEE; /* 0x36003BBD: je 0x36003bee */
   1646 L_36003BBF:
   1647     eax = MEM32(esi + (-0x4)); /* 0x36003BBF: mov eax, dword ptr [esi - 4] */
   1648     PUSH32(esp, edi); /* 0x36003BC2: push edi */
   1649     PUSH32(esp, 0x3600C140u); /* 0x36003BC3: push 0x3600c140 */
   1650     edi = esi + (-0x4); /* 0x36003BC8: lea edi, [esi - 4] */
   1651     PUSH32(esp, eax); /* 0x36003BCB: push eax */
   1652     PUSH32(esp, 0xC0u); /* 0x36003BCC: push 0xc0 */
   1653     PUSH32(esp, esi); /* 0x36003BD1: push esi */
   1654     RECOMP_ICALL(0x3615FD92u); /* 0x36003BD2: call 0x3615fd92 */ /* not lifted */
   1655     RECOMP_FLAGS_IN();
   1656     /* test LO8(ebx), 1 */ /* 0x36003BD7: test bl, 1 */
   1657     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1658     _cf = 0;
   1659     _flag_k = FK_NARROW(FK_TEST, 24);
   1660     if (TEST_Z(_flag_a, _flag_b)) goto L_36003BE5; /* 0x36003BDA: je 0x36003be5 */
   1661 L_36003BDC:
   1662     PUSH32(esp, edi); /* 0x36003BDC: push edi */
   1663     RECOMP_ICALL(0x3615FCC4u); /* 0x36003BDD: call 0x3615fcc4 */ /* not lifted */
   1664     RECOMP_FLAGS_IN();
   1665     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1666     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1667     esp = esp + 4; /* 0x36003BE2: add esp, 4 */
   1668     _flag_k = FK_ADD;
   1669 L_36003BE5:
   1670     eax = edi; /* 0x36003BE5: mov eax, edi */
   1671     edi = POP32_VAL(esp); /* 0x36003BE7: pop edi */
   1672     esi = POP32_VAL(esp); /* 0x36003BE8: pop esi */
   1673     ebx = POP32_VAL(esp); /* 0x36003BE9: pop ebx */
   1674     ebp = POP32_VAL(esp); /* 0x36003BEA: pop ebp */
   1675     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003BEB: ret 4 */
   1676 L_36003BEE:
   1677     ecx = esi; /* 0x36003BEE: mov ecx, esi */
   1678     RECOMP_ICALL(0x3600C140u); /* 0x36003BF0: call 0x3600c140 */ /* not lifted */
   1679     RECOMP_FLAGS_IN();
   1680     /* test LO8(ebx), 1 */ /* 0x36003BF5: test bl, 1 */
   1681     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1682     _cf = 0;
   1683     _flag_k = FK_NARROW(FK_TEST, 24);
   1684     if (TEST_Z(_flag_a, _flag_b)) goto L_36003C03; /* 0x36003BF8: je 0x36003c03 */
   1685 L_36003BFA:
   1686     PUSH32(esp, esi); /* 0x36003BFA: push esi */
   1687     RECOMP_ICALL(0x3615FCC4u); /* 0x36003BFB: call 0x3615fcc4 */ /* not lifted */
   1688     RECOMP_FLAGS_IN();
   1689     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1690     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1691     esp = esp + 4; /* 0x36003C00: add esp, 4 */
   1692     _flag_k = FK_ADD;
   1693 L_36003C03:
   1694     eax = esi; /* 0x36003C03: mov eax, esi */
   1695     esi = POP32_VAL(esp); /* 0x36003C05: pop esi */
   1696     ebx = POP32_VAL(esp); /* 0x36003C06: pop ebx */
   1697     ebp = POP32_VAL(esp); /* 0x36003C07: pop ebp */
   1698     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003C08: ret 4 */
   1699     RECOMP_REGS_OUT();
   1700 }
   1701 
   1702 void sub_36003C10(void) {
   1703     int _fpu_cmp = 0;
   1704     uint32_t _cf = 0;
   1705     int _df = 1;
   1706     uint32_t _flag_k = FK_NONE;
   1707     uint32_t _flag_a = 0, _flag_b = 0;
   1708     uint32_t _itail_tgt = 0;
   1709     RECOMP_REGS_LOCALS
   1710     RECOMP_ENTER(0x36003C10u);
   1711 
   1712 L_36003C10:
   1713     PUSH32(esp, ebp); /* 0x36003C10: push ebp */
   1714     ebp = esp; /* 0x36003C11: mov ebp, esp */
   1715     eax = ecx; /* 0x36003C13: mov eax, ecx */
   1716     ecx = MEM32(ebp + 0x8); /* 0x36003C15: mov ecx, dword ptr [ebp + 8] */
   1717     MEM32(eax) = ecx; /* 0x36003C18: mov dword ptr [eax], ecx */
   1718     ebp = POP32_VAL(esp); /* 0x36003C1A: pop ebp */
   1719     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003C1B: ret 4 */
   1720     RECOMP_REGS_OUT();
   1721 }
   1722 
   1723 void sub_36003C20(void) {
   1724     int _fpu_cmp = 0;
   1725     uint32_t _cf = 0;
   1726     int _df = 1;
   1727     uint32_t _flag_k = FK_NONE;
   1728     uint32_t _flag_a = 0, _flag_b = 0;
   1729     uint32_t _itail_tgt = 0;
   1730     RECOMP_REGS_LOCALS
   1731     RECOMP_ENTER(0x36003C20u);
   1732 
   1733 L_36003C20:
   1734     PUSH32(esp, ebp); /* 0x36003C20: push ebp */
   1735     ebp = esp; /* 0x36003C21: mov ebp, esp */
   1736     PUSH32(esp, esi); /* 0x36003C23: push esi */
   1737     esi = MEM32(ebp + 0x10); /* 0x36003C24: mov esi, dword ptr [ebp + 0x10] */
   1738     PUSH32(esp, edi); /* 0x36003C27: push edi */
   1739     edi = MEM32(0x3616F304); /* 0x36003C28: mov edi, dword ptr [0x3616f304] */
   1740     PUSH32(esp, esi); /* 0x36003C2E: push esi */
   1741     PUSH32(esp, 0x194u); /* 0x36003C2F: push 0x194 */
   1742     PUSH32(esp, 0x13u); /* 0x36003C34: push 0x13 */
   1743     RECOMP_ICALL(edi); /* 0x36003C36: call edi */
   1744     RECOMP_FLAGS_IN();
   1745     ecx = eax; /* 0x36003C38: mov ecx, eax */
   1746     RECOMP_ICALL(MEM32(0x3616F300)); /* 0x36003C3A: call dword ptr [0x3616f300] */
   1747     RECOMP_FLAGS_IN();
   1748     esi = MEM32(esi + 0x8); /* 0x36003C40: mov esi, dword ptr [esi + 8] */
   1749     PUSH32(esp, esi); /* 0x36003C43: push esi */
   1750     RECOMP_ICALL(edi); /* 0x36003C44: call edi */
   1751     RECOMP_FLAGS_IN();
   1752     ecx = eax; /* 0x36003C46: mov ecx, eax */
   1753     RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36003C48: call dword ptr [0x3616f2fc] */
   1754     RECOMP_FLAGS_IN();
   1755     edi = POP32_VAL(esp); /* 0x36003C4E: pop edi */
   1756     esi = POP32_VAL(esp); /* 0x36003C4F: pop esi */
   1757     ebp = POP32_VAL(esp); /* 0x36003C50: pop ebp */
   1758     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36003C51: ret 0xc */
   1759     RECOMP_REGS_OUT();
   1760 }
   1761 
   1762 void sub_36003C60(void) {
   1763     int _fpu_cmp = 0;
   1764     uint32_t _cf = 0;
   1765     int _df = 1;
   1766     uint32_t _flag_k = FK_NONE;
   1767     uint32_t _flag_a = 0, _flag_b = 0;
   1768     uint32_t _itail_tgt = 0;
   1769     RECOMP_REGS_LOCALS
   1770     RECOMP_ENTER(0x36003C60u);
   1771 
   1772 L_36003C60:
   1773     PUSH32(esp, ebp); /* 0x36003C60: push ebp */
   1774     ebp = esp; /* 0x36003C61: mov ebp, esp */
   1775     eax = MEM32(ebp + 0xC); /* 0x36003C63: mov eax, dword ptr [ebp + 0xc] */
   1776     ecx = MEM32(ebp + 0x8); /* 0x36003C66: mov ecx, dword ptr [ebp + 8] */
   1777     PUSH32(esp, eax); /* 0x36003C69: push eax */
   1778     PUSH32(esp, ecx); /* 0x36003C6A: push ecx */
   1779     PUSH32(esp, 0x39u); /* 0x36003C6B: push 0x39 */
   1780     PUSH32(esp, 0xBu); /* 0x36003C6D: push 0xb */
   1781     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36003C6F: call dword ptr [0x3616f304] */
   1782     RECOMP_FLAGS_IN();
   1783     ecx = eax; /* 0x36003C75: mov ecx, eax */
   1784     RECOMP_ICALL(MEM32(0x3616F308)); /* 0x36003C77: call dword ptr [0x3616f308] */
   1785     RECOMP_FLAGS_IN();
   1786     ebp = POP32_VAL(esp); /* 0x36003C7D: pop ebp */
   1787     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36003C7E: ret 8 */
   1788     RECOMP_REGS_OUT();
   1789 }
   1790 
   1791 void sub_36003C90(void) {
   1792     int _fpu_cmp = 0;
   1793     uint32_t _cf = 0;
   1794     int _df = 1;
   1795     uint32_t _flag_k = FK_NONE;
   1796     uint32_t _flag_a = 0, _flag_b = 0;
   1797     uint32_t _itail_tgt = 0;
   1798     RECOMP_REGS_LOCALS
   1799     RECOMP_ENTER(0x36003C90u);
   1800 
   1801 L_36003C90:
   1802     PUSH32(esp, ebp); /* 0x36003C90: push ebp */
   1803     ebp = esp; /* 0x36003C91: mov ebp, esp */
   1804     edx = MEM32(ebp + 0x8); /* 0x36003C93: mov edx, dword ptr [ebp + 8] */
   1805     /* test edx, edx */ /* 0x36003C96: test edx, edx */
   1806     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1807     _cf = 0;
   1808     _flag_k = FK_TEST;
   1809     if (TEST_Z(_flag_a, _flag_b)) goto L_36003CE7; /* 0x36003C98: je 0x36003ce7 */
   1810 L_36003C9A:
   1811     PUSH32(esp, esi); /* 0x36003C9A: push esi */
   1812     esi = MEM32(0x3616F304); /* 0x36003C9B: mov esi, dword ptr [0x3616f304] */
   1813     PUSH32(esp, edi); /* 0x36003CA1: push edi */
   1814     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   1815     ecx = ecx | 0xFFFFFFFFu; /* 0x36003CA2: or ecx, 0xffffffff */
   1816     _cf = 0;
   1817     _flag_k = FK_TEST;
   1818     edi = edx; /* 0x36003CA5: mov edi, edx */
   1819     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1820     eax = 0; /* 0x36003CA7: xor eax, eax */
   1821     _cf = 0;
   1822     _flag_k = FK_TEST;
   1823     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; } /* 0x36003CA9: repne scasb al, byte ptr es:[edi] */
   1824     ecx = ~ecx; /* 0x36003CAB: not ecx */
   1825     PUSH32(esp, ecx); /* 0x36003CAD: push ecx */
   1826     PUSH32(esp, edx); /* 0x36003CAE: push edx */
   1827     PUSH32(esp, 0x3Du); /* 0x36003CAF: push 0x3d */
   1828     PUSH32(esp, 0xBu); /* 0x36003CB1: push 0xb */
   1829     RECOMP_ICALL(esi); /* 0x36003CB3: call esi */
   1830     RECOMP_FLAGS_IN();
   1831     ecx = eax; /* 0x36003CB5: mov ecx, eax */
   1832     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36003CB7: call dword ptr [0x3616f310] */
   1833     RECOMP_FLAGS_IN();
   1834     eax = MEM32(ebp + 0x10); /* 0x36003CBD: mov eax, dword ptr [ebp + 0x10] */
   1835     ecx = MEM32(ebp + 0xC); /* 0x36003CC0: mov ecx, dword ptr [ebp + 0xc] */
   1836     PUSH32(esp, eax); /* 0x36003CC3: push eax */
   1837     PUSH32(esp, ecx); /* 0x36003CC4: push ecx */
   1838     RECOMP_ICALL(esi); /* 0x36003CC5: call esi */
   1839     RECOMP_FLAGS_IN();
   1840     ecx = eax; /* 0x36003CC7: mov ecx, eax */
   1841     RECOMP_ICALL(MEM32(0x3616F2F8)); /* 0x36003CC9: call dword ptr [0x3616f2f8] */
   1842     RECOMP_FLAGS_IN();
   1843     edx = MEM32(ebp + 0x1C); /* 0x36003CCF: mov edx, dword ptr [ebp + 0x1c] */
   1844     eax = MEM32(ebp + 0x18); /* 0x36003CD2: mov eax, dword ptr [ebp + 0x18] */
   1845     ecx = MEM32(ebp + 0x14); /* 0x36003CD5: mov ecx, dword ptr [ebp + 0x14] */
   1846     PUSH32(esp, edx); /* 0x36003CD8: push edx */
   1847     PUSH32(esp, eax); /* 0x36003CD9: push eax */
   1848     PUSH32(esp, ecx); /* 0x36003CDA: push ecx */
   1849     RECOMP_ICALL(esi); /* 0x36003CDB: call esi */
   1850     RECOMP_FLAGS_IN();
   1851     ecx = eax; /* 0x36003CDD: mov ecx, eax */
   1852     RECOMP_ICALL(MEM32(0x3616F314)); /* 0x36003CDF: call dword ptr [0x3616f314] */
   1853     RECOMP_FLAGS_IN();
   1854     edi = POP32_VAL(esp); /* 0x36003CE5: pop edi */
   1855     esi = POP32_VAL(esp); /* 0x36003CE6: pop esi */
   1856 L_36003CE7:
   1857     ebp = POP32_VAL(esp); /* 0x36003CE7: pop ebp */
   1858     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x36003CE8: ret 0x18 */
   1859     RECOMP_REGS_OUT();
   1860 }
   1861 
   1862 void sub_36003CF0(void) {
   1863     int _fpu_cmp = 0;
   1864     uint32_t _cf = 0;
   1865     int _df = 1;
   1866     uint32_t _flag_k = FK_NONE;
   1867     uint32_t _flag_a = 0, _flag_b = 0;
   1868     uint32_t _itail_tgt = 0;
   1869     RECOMP_REGS_LOCALS
   1870     RECOMP_ENTER(0x36003CF0u);
   1871 
   1872 L_36003CF0:
   1873     PUSH32(esp, ebp); /* 0x36003CF0: push ebp */
   1874     ebp = esp; /* 0x36003CF1: mov ebp, esp */
   1875     PUSH32(esp, ebx); /* 0x36003CF3: push ebx */
   1876     PUSH32(esp, esi); /* 0x36003CF4: push esi */
   1877     esi = MEM32(ebp + 0x8); /* 0x36003CF5: mov esi, dword ptr [ebp + 8] */
   1878     PUSH32(esp, edi); /* 0x36003CF8: push edi */
   1879     edi = MEM32(0x3616F304); /* 0x36003CF9: mov edi, dword ptr [0x3616f304] */
   1880     PUSH32(esp, esi); /* 0x36003CFF: push esi */
   1881     PUSH32(esp, 0xF8u); /* 0x36003D00: push 0xf8 */
   1882     PUSH32(esp, 0x1Bu); /* 0x36003D05: push 0x1b */
   1883     RECOMP_ICALL(edi); /* 0x36003D07: call edi */
   1884     RECOMP_FLAGS_IN();
   1885     ebx = MEM32(0x3616F30C); /* 0x36003D09: mov ebx, dword ptr [0x3616f30c] */
   1886     ecx = eax; /* 0x36003D0F: mov ecx, eax */
   1887     RECOMP_ICALL(ebx); /* 0x36003D11: call ebx */
   1888     RECOMP_FLAGS_IN();
   1889     PUSH32(esp, esi); /* 0x36003D13: push esi */
   1890     PUSH32(esp, 0xF8u); /* 0x36003D14: push 0xf8 */
   1891     PUSH32(esp, 0x18u); /* 0x36003D19: push 0x18 */
   1892     RECOMP_ICALL(edi); /* 0x36003D1B: call edi */
   1893     RECOMP_FLAGS_IN();
   1894     ecx = eax; /* 0x36003D1D: mov ecx, eax */
   1895     RECOMP_ICALL(ebx); /* 0x36003D1F: call ebx */
   1896     RECOMP_FLAGS_IN();
   1897     edi = POP32_VAL(esp); /* 0x36003D21: pop edi */
   1898     esi = POP32_VAL(esp); /* 0x36003D22: pop esi */
   1899     ebx = POP32_VAL(esp); /* 0x36003D23: pop ebx */
   1900     ebp = POP32_VAL(esp); /* 0x36003D24: pop ebp */
   1901     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003D25: ret 4 */
   1902     RECOMP_REGS_OUT();
   1903 }
   1904 
   1905 void sub_36003D30(void) {
   1906     int _fpu_cmp = 0;
   1907     uint32_t _cf = 0;
   1908     int _df = 1;
   1909     uint32_t _flag_k = FK_NONE;
   1910     uint32_t _flag_a = 0, _flag_b = 0;
   1911     uint32_t _itail_tgt = 0;
   1912     RECOMP_REGS_LOCALS
   1913     RECOMP_ENTER(0x36003D30u);
   1914 
   1915 L_36003D30:
   1916     PUSH32(esp, ebp); /* 0x36003D30: push ebp */
   1917     ebp = esp; /* 0x36003D31: mov ebp, esp */
   1918     PUSH32(esp, ebx); /* 0x36003D33: push ebx */
   1919     PUSH32(esp, esi); /* 0x36003D34: push esi */
   1920     esi = MEM32(ebp + 0x8); /* 0x36003D35: mov esi, dword ptr [ebp + 8] */
   1921     PUSH32(esp, edi); /* 0x36003D38: push edi */
   1922     edi = MEM32(0x3616F304); /* 0x36003D39: mov edi, dword ptr [0x3616f304] */
   1923     PUSH32(esp, esi); /* 0x36003D3F: push esi */
   1924     PUSH32(esp, 0xF9u); /* 0x36003D40: push 0xf9 */
   1925     PUSH32(esp, 0x1Bu); /* 0x36003D45: push 0x1b */
   1926     RECOMP_ICALL(edi); /* 0x36003D47: call edi */
   1927     RECOMP_FLAGS_IN();
   1928     ebx = MEM32(0x3616F30C); /* 0x36003D49: mov ebx, dword ptr [0x3616f30c] */
   1929     ecx = eax; /* 0x36003D4F: mov ecx, eax */
   1930     RECOMP_ICALL(ebx); /* 0x36003D51: call ebx */
   1931     RECOMP_FLAGS_IN();
   1932     PUSH32(esp, esi); /* 0x36003D53: push esi */
   1933     PUSH32(esp, 0xF9u); /* 0x36003D54: push 0xf9 */
   1934     PUSH32(esp, 0x18u); /* 0x36003D59: push 0x18 */
   1935     RECOMP_ICALL(edi); /* 0x36003D5B: call edi */
   1936     RECOMP_FLAGS_IN();
   1937     ecx = eax; /* 0x36003D5D: mov ecx, eax */
   1938     RECOMP_ICALL(ebx); /* 0x36003D5F: call ebx */
   1939     RECOMP_FLAGS_IN();
   1940     edi = POP32_VAL(esp); /* 0x36003D61: pop edi */
   1941     esi = POP32_VAL(esp); /* 0x36003D62: pop esi */
   1942     ebx = POP32_VAL(esp); /* 0x36003D63: pop ebx */
   1943     ebp = POP32_VAL(esp); /* 0x36003D64: pop ebp */
   1944     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003D65: ret 4 */
   1945     RECOMP_REGS_OUT();
   1946 }
   1947 
   1948 void sub_36003D70(void) {
   1949     int _fpu_cmp = 0;
   1950     uint32_t _cf = 0;
   1951     int _df = 1;
   1952     uint32_t _flag_k = FK_NONE;
   1953     uint32_t _flag_a = 0, _flag_b = 0;
   1954     uint32_t _itail_tgt = 0;
   1955     RECOMP_REGS_LOCALS
   1956     RECOMP_ENTER(0x36003D70u);
   1957 
   1958 L_36003D70:
   1959     PUSH32(esp, ebp); /* 0x36003D70: push ebp */
   1960     ebp = esp; /* 0x36003D71: mov ebp, esp */
   1961     PUSH32(esp, ebx); /* 0x36003D73: push ebx */
   1962     ebx = MEM32(0x3616F304); /* 0x36003D74: mov ebx, dword ptr [0x3616f304] */
   1963     PUSH32(esp, esi); /* 0x36003D7A: push esi */
   1964     esi = MEM32(ebp + 0xC); /* 0x36003D7B: mov esi, dword ptr [ebp + 0xc] */
   1965     PUSH32(esp, edi); /* 0x36003D7E: push edi */
   1966     edi = MEM32(ebp + 0x8); /* 0x36003D7F: mov edi, dword ptr [ebp + 8] */
   1967     PUSH32(esp, esi); /* 0x36003D82: push esi */
   1968     PUSH32(esp, edi); /* 0x36003D83: push edi */
   1969     PUSH32(esp, 0xFAu); /* 0x36003D84: push 0xfa */
   1970     PUSH32(esp, 0x1Bu); /* 0x36003D89: push 0x1b */
   1971     RECOMP_ICALL(ebx); /* 0x36003D8B: call ebx */
   1972     RECOMP_FLAGS_IN();
   1973     ecx = eax; /* 0x36003D8D: mov ecx, eax */
   1974     RECOMP_ICALL(MEM32(0x3616F2E4)); /* 0x36003D8F: call dword ptr [0x3616f2e4] */
   1975     RECOMP_FLAGS_IN();
   1976     PUSH32(esp, esi); /* 0x36003D95: push esi */
   1977     PUSH32(esp, edi); /* 0x36003D96: push edi */
   1978     PUSH32(esp, 0xFAu); /* 0x36003D97: push 0xfa */
   1979     PUSH32(esp, 0x18u); /* 0x36003D9C: push 0x18 */
   1980     RECOMP_ICALL(ebx); /* 0x36003D9E: call ebx */
   1981     RECOMP_FLAGS_IN();
   1982     ecx = eax; /* 0x36003DA0: mov ecx, eax */
   1983     RECOMP_ICALL(MEM32(0x3616F2E4)); /* 0x36003DA2: call dword ptr [0x3616f2e4] */
   1984     RECOMP_FLAGS_IN();
   1985     edi = POP32_VAL(esp); /* 0x36003DA8: pop edi */
   1986     esi = POP32_VAL(esp); /* 0x36003DA9: pop esi */
   1987     ebx = POP32_VAL(esp); /* 0x36003DAA: pop ebx */
   1988     ebp = POP32_VAL(esp); /* 0x36003DAB: pop ebp */
   1989     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36003DAC: ret 8 */
   1990     RECOMP_REGS_OUT();
   1991 }
   1992 
   1993 void sub_36003DB0(void) {
   1994     int _fpu_cmp = 0;
   1995     uint32_t _cf = 0;
   1996     int _df = 1;
   1997     uint32_t _flag_k = FK_NONE;
   1998     uint32_t _flag_a = 0, _flag_b = 0;
   1999     uint32_t _itail_tgt = 0;
   2000     RECOMP_REGS_LOCALS
   2001     RECOMP_ENTER(0x36003DB0u);
   2002 
   2003 L_36003DB0:
   2004     PUSH32(esp, ebp); /* 0x36003DB0: push ebp */
   2005     ebp = esp; /* 0x36003DB1: mov ebp, esp */
   2006     PUSH32(esp, ebx); /* 0x36003DB3: push ebx */
   2007     PUSH32(esp, esi); /* 0x36003DB4: push esi */
   2008     esi = MEM32(ebp + 0x8); /* 0x36003DB5: mov esi, dword ptr [ebp + 8] */
   2009     PUSH32(esp, edi); /* 0x36003DB8: push edi */
   2010     edi = MEM32(0x3616F304); /* 0x36003DB9: mov edi, dword ptr [0x3616f304] */
   2011     PUSH32(esp, esi); /* 0x36003DBF: push esi */
   2012     PUSH32(esp, 0xFBu); /* 0x36003DC0: push 0xfb */
   2013     PUSH32(esp, 0x1Bu); /* 0x36003DC5: push 0x1b */
   2014     RECOMP_ICALL(edi); /* 0x36003DC7: call edi */
   2015     RECOMP_FLAGS_IN();
   2016     ebx = MEM32(0x3616F30C); /* 0x36003DC9: mov ebx, dword ptr [0x3616f30c] */
   2017     ecx = eax; /* 0x36003DCF: mov ecx, eax */
   2018     RECOMP_ICALL(ebx); /* 0x36003DD1: call ebx */
   2019     RECOMP_FLAGS_IN();
   2020     PUSH32(esp, esi); /* 0x36003DD3: push esi */
   2021     PUSH32(esp, 0xFBu); /* 0x36003DD4: push 0xfb */
   2022     PUSH32(esp, 0x18u); /* 0x36003DD9: push 0x18 */
   2023     RECOMP_ICALL(edi); /* 0x36003DDB: call edi */
   2024     RECOMP_FLAGS_IN();
   2025     ecx = eax; /* 0x36003DDD: mov ecx, eax */
   2026     RECOMP_ICALL(ebx); /* 0x36003DDF: call ebx */
   2027     RECOMP_FLAGS_IN();
   2028     edi = POP32_VAL(esp); /* 0x36003DE1: pop edi */
   2029     esi = POP32_VAL(esp); /* 0x36003DE2: pop esi */
   2030     ebx = POP32_VAL(esp); /* 0x36003DE3: pop ebx */
   2031     ebp = POP32_VAL(esp); /* 0x36003DE4: pop ebp */
   2032     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003DE5: ret 4 */
   2033     RECOMP_REGS_OUT();
   2034 }
   2035 
   2036 void sub_36003DF0(void) {
   2037     int _fpu_cmp = 0;
   2038     uint32_t _cf = 0;
   2039     int _df = 1;
   2040     uint32_t _flag_k = FK_NONE;
   2041     uint32_t _flag_a = 0, _flag_b = 0;
   2042     uint32_t _itail_tgt = 0;
   2043     RECOMP_REGS_LOCALS
   2044     RECOMP_ENTER(0x36003DF0u);
   2045 
   2046 L_36003DF0:
   2047     PUSH32(esp, ebp); /* 0x36003DF0: push ebp */
   2048     ebp = esp; /* 0x36003DF1: mov ebp, esp */
   2049     PUSH32(esp, ebx); /* 0x36003DF3: push ebx */
   2050     PUSH32(esp, esi); /* 0x36003DF4: push esi */
   2051     esi = MEM32(ebp + 0x8); /* 0x36003DF5: mov esi, dword ptr [ebp + 8] */
   2052     PUSH32(esp, edi); /* 0x36003DF8: push edi */
   2053     edi = MEM32(0x3616F304); /* 0x36003DF9: mov edi, dword ptr [0x3616f304] */
   2054     PUSH32(esp, esi); /* 0x36003DFF: push esi */
   2055     PUSH32(esp, 0xFCu); /* 0x36003E00: push 0xfc */
   2056     PUSH32(esp, 0x1Bu); /* 0x36003E05: push 0x1b */
   2057     RECOMP_ICALL(edi); /* 0x36003E07: call edi */
   2058     RECOMP_FLAGS_IN();
   2059     ebx = MEM32(0x3616F30C); /* 0x36003E09: mov ebx, dword ptr [0x3616f30c] */
   2060     ecx = eax; /* 0x36003E0F: mov ecx, eax */
   2061     RECOMP_ICALL(ebx); /* 0x36003E11: call ebx */
   2062     RECOMP_FLAGS_IN();
   2063     PUSH32(esp, esi); /* 0x36003E13: push esi */
   2064     PUSH32(esp, 0xFCu); /* 0x36003E14: push 0xfc */
   2065     PUSH32(esp, 0x18u); /* 0x36003E19: push 0x18 */
   2066     RECOMP_ICALL(edi); /* 0x36003E1B: call edi */
   2067     RECOMP_FLAGS_IN();
   2068     ecx = eax; /* 0x36003E1D: mov ecx, eax */
   2069     RECOMP_ICALL(ebx); /* 0x36003E1F: call ebx */
   2070     RECOMP_FLAGS_IN();
   2071     edi = POP32_VAL(esp); /* 0x36003E21: pop edi */
   2072     esi = POP32_VAL(esp); /* 0x36003E22: pop esi */
   2073     ebx = POP32_VAL(esp); /* 0x36003E23: pop ebx */
   2074     ebp = POP32_VAL(esp); /* 0x36003E24: pop ebp */
   2075     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003E25: ret 4 */
   2076     RECOMP_REGS_OUT();
   2077 }
   2078 
   2079 void sub_36003E30(void) {
   2080     int _fpu_cmp = 0;
   2081     uint32_t _cf = 0;
   2082     int _df = 1;
   2083     uint32_t _flag_k = FK_NONE;
   2084     uint32_t _flag_a = 0, _flag_b = 0;
   2085     uint32_t _itail_tgt = 0;
   2086     RECOMP_REGS_LOCALS
   2087     RECOMP_ENTER(0x36003E30u);
   2088 
   2089 L_36003E30:
   2090     PUSH32(esp, ebp); /* 0x36003E30: push ebp */
   2091     ebp = esp; /* 0x36003E31: mov ebp, esp */
   2092     eax = MEM32(ebp + 0x8); /* 0x36003E33: mov eax, dword ptr [ebp + 8] */
   2093     PUSH32(esp, eax); /* 0x36003E36: push eax */
   2094     PUSH32(esp, 0xBBu); /* 0x36003E37: push 0xbb */
   2095     PUSH32(esp, 0x14u); /* 0x36003E3C: push 0x14 */
   2096     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36003E3E: call dword ptr [0x3616f304] */
   2097     RECOMP_FLAGS_IN();
   2098     ecx = eax; /* 0x36003E44: mov ecx, eax */
   2099     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36003E46: call dword ptr [0x3616f30c] */
   2100     RECOMP_FLAGS_IN();
   2101     ebp = POP32_VAL(esp); /* 0x36003E4C: pop ebp */
   2102     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003E4D: ret 4 */
   2103     RECOMP_REGS_OUT();
   2104 }
   2105 
   2106 void sub_36003E50(void) {
   2107     int _fpu_cmp = 0;
   2108     uint32_t _cf = 0;
   2109     int _df = 1;
   2110     uint32_t _flag_k = FK_NONE;
   2111     uint32_t _flag_a = 0, _flag_b = 0;
   2112     uint32_t _itail_tgt = 0;
   2113     RECOMP_REGS_LOCALS
   2114     RECOMP_ENTER(0x36003E50u);
   2115 
   2116 L_36003E50:
   2117     PUSH32(esp, ebp); /* 0x36003E50: push ebp */
   2118     ebp = esp; /* 0x36003E51: mov ebp, esp */
   2119     edx = MEM32(ebp + 0xC); /* 0x36003E53: mov edx, dword ptr [ebp + 0xc] */
   2120     /* test edx, edx */ /* 0x36003E56: test edx, edx */
   2121     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2122     _cf = 0;
   2123     _flag_k = FK_TEST;
   2124     if (TEST_Z(_flag_a, _flag_b)) goto L_36003E9B; /* 0x36003E58: je 0x36003e9b */
   2125 L_36003E5A:
   2126     PUSH32(esp, esi); /* 0x36003E5A: push esi */
   2127     esi = MEM32(0x3616F304); /* 0x36003E5B: mov esi, dword ptr [0x3616f304] */
   2128     PUSH32(esp, edi); /* 0x36003E61: push edi */
   2129     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   2130     ecx = ecx | 0xFFFFFFFFu; /* 0x36003E62: or ecx, 0xffffffff */
   2131     _cf = 0;
   2132     _flag_k = FK_TEST;
   2133     edi = edx; /* 0x36003E65: mov edi, edx */
   2134     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2135     eax = 0; /* 0x36003E67: xor eax, eax */
   2136     _cf = 0;
   2137     _flag_k = FK_TEST;
   2138     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; } /* 0x36003E69: repne scasb al, byte ptr es:[edi] */
   2139     ecx = ~ecx; /* 0x36003E6B: not ecx */
   2140     PUSH32(esp, ecx); /* 0x36003E6D: push ecx */
   2141     PUSH32(esp, edx); /* 0x36003E6E: push edx */
   2142     PUSH32(esp, 0x3Au); /* 0x36003E6F: push 0x3a */
   2143     PUSH32(esp, 0xBu); /* 0x36003E71: push 0xb */
   2144     RECOMP_ICALL(esi); /* 0x36003E73: call esi */
   2145     RECOMP_FLAGS_IN();
   2146     ecx = eax; /* 0x36003E75: mov ecx, eax */
   2147     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36003E77: call dword ptr [0x3616f310] */
   2148     RECOMP_FLAGS_IN();
   2149     eax = MEM32(ebp + 0x10); /* 0x36003E7D: mov eax, dword ptr [ebp + 0x10] */
   2150     PUSH32(esp, eax); /* 0x36003E80: push eax */
   2151     RECOMP_ICALL(esi); /* 0x36003E81: call esi */
   2152     RECOMP_FLAGS_IN();
   2153     ecx = eax; /* 0x36003E83: mov ecx, eax */
   2154     RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36003E85: call dword ptr [0x3616f2fc] */
   2155     RECOMP_FLAGS_IN();
   2156     ecx = MEM32(ebp + 0x8); /* 0x36003E8B: mov ecx, dword ptr [ebp + 8] */
   2157     PUSH32(esp, ecx); /* 0x36003E8E: push ecx */
   2158     RECOMP_ICALL(esi); /* 0x36003E8F: call esi */
   2159     RECOMP_FLAGS_IN();
   2160     ecx = eax; /* 0x36003E91: mov ecx, eax */
   2161     RECOMP_ICALL(MEM32(0x3616F2EC)); /* 0x36003E93: call dword ptr [0x3616f2ec] */
   2162     RECOMP_FLAGS_IN();
   2163     edi = POP32_VAL(esp); /* 0x36003E99: pop edi */
   2164     esi = POP32_VAL(esp); /* 0x36003E9A: pop esi */
   2165 L_36003E9B:
   2166     ebp = POP32_VAL(esp); /* 0x36003E9B: pop ebp */
   2167     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36003E9C: ret 0xc */
   2168     RECOMP_REGS_OUT();
   2169 }
   2170 
   2171 void sub_36003EA0(void) {
   2172     int _fpu_cmp = 0;
   2173     uint32_t _cf = 0;
   2174     int _df = 1;
   2175     uint32_t _flag_k = FK_NONE;
   2176     uint32_t _flag_a = 0, _flag_b = 0;
   2177     uint32_t _itail_tgt = 0;
   2178     RECOMP_REGS_LOCALS
   2179     RECOMP_ENTER(0x36003EA0u);
   2180 
   2181 L_36003EA0:
   2182     PUSH32(esp, ebp); /* 0x36003EA0: push ebp */
   2183 L_36003EA1:
   2184     ebp = esp; /* 0x36003EA1: mov ebp, esp */
   2185 L_36003EA3:
   2186     eax = MEM32(ebp + 0x8); /* 0x36003EA3: mov eax, dword ptr [ebp + 8] */
   2187 L_36003EA6:
   2188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2189     eax = eax - 1; /* 0x36003EA6: dec eax */
   2190     _flag_k = FK_DEC;
   2191 L_36003EA7:
   2192     /* cmp eax, 8 */ /* 0x36003EA7: cmp eax, 8 */
   2193     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   2194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2195     _flag_k = FK_CMP;
   2196 L_36003EAA:
   2197     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36003F53; /* 0x36003EAA: ja 0x36003f53 */
   2198 L_36003EB0:
   2199     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36003F58)); goto _ljump; }
   2200 L_36003EB7:
   2201     PUSH32(esp, 0x125u); /* 0x36003EB7: push 0x125 */
   2202 L_36003EBC:
   2203     PUSH32(esp, 0xDu); /* 0x36003EBC: push 0xd */
   2204 L_36003EBE:
   2205     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36003EBE: call dword ptr [0x3616f304] */
   2206     RECOMP_FLAGS_IN();
   2207 L_36003EC4:
   2208     ecx = eax; /* 0x36003EC4: mov ecx, eax */
   2209 L_36003EC6:
   2210     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36003EC6: call dword ptr [0x3616f2e8] */
   2211     RECOMP_FLAGS_IN();
   2212 L_36003ECC:
   2213     ebp = POP32_VAL(esp); /* 0x36003ECC: pop ebp */
   2214 L_36003ECD:
   2215     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003ECD: ret 4 */
   2216 L_36003ED0:
   2217     PUSH32(esp, 0x179u); /* 0x36003ED0: push 0x179 */
   2218 L_36003ED5:
   2219     goto L_36003EE3; /* 0x36003ED5: jmp 0x36003ee3 */
   2220 L_36003ED7:
   2221     PUSH32(esp, 0x178u); /* 0x36003ED7: push 0x178 */
   2222 L_36003EDC:
   2223     goto L_36003EE3; /* 0x36003EDC: jmp 0x36003ee3 */
   2224 L_36003EDE:
   2225     PUSH32(esp, 0x17Au); /* 0x36003EDE: push 0x17a */
   2226 L_36003EE3:
   2227     PUSH32(esp, 0x37u); /* 0x36003EE3: push 0x37 */
   2228 L_36003EE5:
   2229     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36003EE5: call dword ptr [0x3616f304] */
   2230     RECOMP_FLAGS_IN();
   2231 L_36003EEB:
   2232     ecx = eax; /* 0x36003EEB: mov ecx, eax */
   2233 L_36003EED:
   2234     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36003EED: call dword ptr [0x3616f2e8] */
   2235     RECOMP_FLAGS_IN();
   2236 L_36003EF3:
   2237     ebp = POP32_VAL(esp); /* 0x36003EF3: pop ebp */
   2238 L_36003EF4:
   2239     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003EF4: ret 4 */
   2240 L_36003EF7:
   2241     PUSH32(esp, 0x171u); /* 0x36003EF7: push 0x171 */
   2242 L_36003EFC:
   2243     PUSH32(esp, 0x33u); /* 0x36003EFC: push 0x33 */
   2244 L_36003EFE:
   2245     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36003EFE: call dword ptr [0x3616f304] */
   2246     RECOMP_FLAGS_IN();
   2247 L_36003F04:
   2248     ecx = eax; /* 0x36003F04: mov ecx, eax */
   2249 L_36003F06:
   2250     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36003F06: call dword ptr [0x3616f2e8] */
   2251     RECOMP_FLAGS_IN();
   2252 L_36003F0C:
   2253     ebp = POP32_VAL(esp); /* 0x36003F0C: pop ebp */
   2254 L_36003F0D:
   2255     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003F0D: ret 4 */
   2256 L_36003F10:
   2257     PUSH32(esp, 0x133u); /* 0x36003F10: push 0x133 */
   2258 L_36003F15:
   2259     PUSH32(esp, 0x30u); /* 0x36003F15: push 0x30 */
   2260 L_36003F17:
   2261     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36003F17: call dword ptr [0x3616f304] */
   2262     RECOMP_FLAGS_IN();
   2263 L_36003F1D:
   2264     ecx = eax; /* 0x36003F1D: mov ecx, eax */
   2265 L_36003F1F:
   2266     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36003F1F: call dword ptr [0x3616f2e8] */
   2267     RECOMP_FLAGS_IN();
   2268 L_36003F25:
   2269     ebp = POP32_VAL(esp); /* 0x36003F25: pop ebp */
   2270 L_36003F26:
   2271     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003F26: ret 4 */
   2272 L_36003F29:
   2273     PUSH32(esp, esi); /* 0x36003F29: push esi */
   2274 L_36003F2A:
   2275     esi = MEM32(0x3616F304); /* 0x36003F2A: mov esi, dword ptr [0x3616f304] */
   2276 L_36003F30:
   2277     PUSH32(esp, edi); /* 0x36003F30: push edi */
   2278 L_36003F31:
   2279     PUSH32(esp, 0x103u); /* 0x36003F31: push 0x103 */
   2280 L_36003F36:
   2281     PUSH32(esp, 0x31u); /* 0x36003F36: push 0x31 */
   2282 L_36003F38:
   2283     RECOMP_ICALL(esi); /* 0x36003F38: call esi */
   2284     RECOMP_FLAGS_IN();
   2285 L_36003F3A:
   2286     edi = MEM32(0x3616F2E8); /* 0x36003F3A: mov edi, dword ptr [0x3616f2e8] */
   2287 L_36003F40:
   2288     ecx = eax; /* 0x36003F40: mov ecx, eax */
   2289 L_36003F42:
   2290     RECOMP_ICALL(edi); /* 0x36003F42: call edi */
   2291     RECOMP_FLAGS_IN();
   2292 L_36003F44:
   2293     PUSH32(esp, 0x103u); /* 0x36003F44: push 0x103 */
   2294 L_36003F49:
   2295     PUSH32(esp, 0x18u); /* 0x36003F49: push 0x18 */
   2296 L_36003F4B:
   2297     RECOMP_ICALL(esi); /* 0x36003F4B: call esi */
   2298     RECOMP_FLAGS_IN();
   2299 L_36003F4D:
   2300     ecx = eax; /* 0x36003F4D: mov ecx, eax */
   2301 L_36003F4F:
   2302     RECOMP_ICALL(edi); /* 0x36003F4F: call edi */
   2303     RECOMP_FLAGS_IN();
   2304 L_36003F51:
   2305     edi = POP32_VAL(esp); /* 0x36003F51: pop edi */
   2306 L_36003F52:
   2307     esi = POP32_VAL(esp); /* 0x36003F52: pop esi */
   2308 L_36003F53:
   2309     ebp = POP32_VAL(esp); /* 0x36003F53: pop ebp */
   2310 L_36003F54:
   2311     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003F54: ret 4 */
   2312   _ljump:
   2313     switch (_itail_tgt) {
   2314       case 0x36003EA0u: goto L_36003EA0;
   2315       case 0x36003EA1u: goto L_36003EA1;
   2316       case 0x36003EA3u: goto L_36003EA3;
   2317       case 0x36003EA6u: goto L_36003EA6;
   2318       case 0x36003EA7u: goto L_36003EA7;
   2319       case 0x36003EAAu: goto L_36003EAA;
   2320       case 0x36003EB0u: goto L_36003EB0;
   2321       case 0x36003EB7u: goto L_36003EB7;
   2322       case 0x36003EBCu: goto L_36003EBC;
   2323       case 0x36003EBEu: goto L_36003EBE;
   2324       case 0x36003EC4u: goto L_36003EC4;
   2325       case 0x36003EC6u: goto L_36003EC6;
   2326       case 0x36003ECCu: goto L_36003ECC;
   2327       case 0x36003ECDu: goto L_36003ECD;
   2328       case 0x36003ED0u: goto L_36003ED0;
   2329       case 0x36003ED5u: goto L_36003ED5;
   2330       case 0x36003ED7u: goto L_36003ED7;
   2331       case 0x36003EDCu: goto L_36003EDC;
   2332       case 0x36003EDEu: goto L_36003EDE;
   2333       case 0x36003EE3u: goto L_36003EE3;
   2334       case 0x36003EE5u: goto L_36003EE5;
   2335       case 0x36003EEBu: goto L_36003EEB;
   2336       case 0x36003EEDu: goto L_36003EED;
   2337       case 0x36003EF3u: goto L_36003EF3;
   2338       case 0x36003EF4u: goto L_36003EF4;
   2339       case 0x36003EF7u: goto L_36003EF7;
   2340       case 0x36003EFCu: goto L_36003EFC;
   2341       case 0x36003EFEu: goto L_36003EFE;
   2342       case 0x36003F04u: goto L_36003F04;
   2343       case 0x36003F06u: goto L_36003F06;
   2344       case 0x36003F0Cu: goto L_36003F0C;
   2345       case 0x36003F0Du: goto L_36003F0D;
   2346       case 0x36003F10u: goto L_36003F10;
   2347       case 0x36003F15u: goto L_36003F15;
   2348       case 0x36003F17u: goto L_36003F17;
   2349       case 0x36003F1Du: goto L_36003F1D;
   2350       case 0x36003F1Fu: goto L_36003F1F;
   2351       case 0x36003F25u: goto L_36003F25;
   2352       case 0x36003F26u: goto L_36003F26;
   2353       case 0x36003F29u: goto L_36003F29;
   2354       case 0x36003F2Au: goto L_36003F2A;
   2355       case 0x36003F30u: goto L_36003F30;
   2356       case 0x36003F31u: goto L_36003F31;
   2357       case 0x36003F36u: goto L_36003F36;
   2358       case 0x36003F38u: goto L_36003F38;
   2359       case 0x36003F3Au: goto L_36003F3A;
   2360       case 0x36003F40u: goto L_36003F40;
   2361       case 0x36003F42u: goto L_36003F42;
   2362       case 0x36003F44u: goto L_36003F44;
   2363       case 0x36003F49u: goto L_36003F49;
   2364       case 0x36003F4Bu: goto L_36003F4B;
   2365       case 0x36003F4Du: goto L_36003F4D;
   2366       case 0x36003F4Fu: goto L_36003F4F;
   2367       case 0x36003F51u: goto L_36003F51;
   2368       case 0x36003F52u: goto L_36003F52;
   2369       case 0x36003F53u: goto L_36003F53;
   2370       case 0x36003F54u: goto L_36003F54;
   2371       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2372     }
   2373     RECOMP_REGS_OUT();
   2374 }
   2375 
   2376 void sub_36003F80(void) {
   2377     int _fpu_cmp = 0;
   2378     uint32_t _cf = 0;
   2379     int _df = 1;
   2380     uint32_t _flag_k = FK_NONE;
   2381     uint32_t _flag_a = 0, _flag_b = 0;
   2382     uint32_t _itail_tgt = 0;
   2383     RECOMP_REGS_LOCALS
   2384     RECOMP_ENTER(0x36003F80u);
   2385 
   2386 L_36003F80:
   2387     PUSH32(esp, ebp); /* 0x36003F80: push ebp */
   2388     ebp = esp; /* 0x36003F81: mov ebp, esp */
   2389     PUSH32(esp, ebx); /* 0x36003F83: push ebx */
   2390     PUSH32(esp, esi); /* 0x36003F84: push esi */
   2391     esi = MEM32(ebp + 0x8); /* 0x36003F85: mov esi, dword ptr [ebp + 8] */
   2392     PUSH32(esp, edi); /* 0x36003F88: push edi */
   2393     edi = MEM32(0x3616F304); /* 0x36003F89: mov edi, dword ptr [0x3616f304] */
   2394     PUSH32(esp, esi); /* 0x36003F8F: push esi */
   2395     PUSH32(esp, 0xFEu); /* 0x36003F90: push 0xfe */
   2396     PUSH32(esp, 0x18u); /* 0x36003F95: push 0x18 */
   2397     RECOMP_ICALL(edi); /* 0x36003F97: call edi */
   2398     RECOMP_FLAGS_IN();
   2399     ebx = MEM32(0x3616F30C); /* 0x36003F99: mov ebx, dword ptr [0x3616f30c] */
   2400     ecx = eax; /* 0x36003F9F: mov ecx, eax */
   2401     RECOMP_ICALL(ebx); /* 0x36003FA1: call ebx */
   2402     RECOMP_FLAGS_IN();
   2403     PUSH32(esp, esi); /* 0x36003FA3: push esi */
   2404     PUSH32(esp, 0xFEu); /* 0x36003FA4: push 0xfe */
   2405     PUSH32(esp, 0xEu); /* 0x36003FA9: push 0xe */
   2406     RECOMP_ICALL(edi); /* 0x36003FAB: call edi */
   2407     RECOMP_FLAGS_IN();
   2408     ecx = eax; /* 0x36003FAD: mov ecx, eax */
   2409     RECOMP_ICALL(ebx); /* 0x36003FAF: call ebx */
   2410     RECOMP_FLAGS_IN();
   2411     PUSH32(esp, esi); /* 0x36003FB1: push esi */
   2412     PUSH32(esp, 0xFEu); /* 0x36003FB2: push 0xfe */
   2413     PUSH32(esp, 0x2Au); /* 0x36003FB7: push 0x2a */
   2414     RECOMP_ICALL(edi); /* 0x36003FB9: call edi */
   2415     RECOMP_FLAGS_IN();
   2416     ecx = eax; /* 0x36003FBB: mov ecx, eax */
   2417     RECOMP_ICALL(ebx); /* 0x36003FBD: call ebx */
   2418     RECOMP_FLAGS_IN();
   2419     edi = POP32_VAL(esp); /* 0x36003FBF: pop edi */
   2420     esi = POP32_VAL(esp); /* 0x36003FC0: pop esi */
   2421     ebx = POP32_VAL(esp); /* 0x36003FC1: pop ebx */
   2422     ebp = POP32_VAL(esp); /* 0x36003FC2: pop ebp */
   2423     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003FC3: ret 4 */
   2424     RECOMP_REGS_OUT();
   2425 }
   2426 
   2427 void sub_36003FD0(void) {
   2428     int _fpu_cmp = 0;
   2429     uint32_t _cf = 0;
   2430     int _df = 1;
   2431     uint32_t _flag_k = FK_NONE;
   2432     uint32_t _flag_a = 0, _flag_b = 0;
   2433     uint32_t _itail_tgt = 0;
   2434     RECOMP_REGS_LOCALS
   2435     RECOMP_ENTER(0x36003FD0u);
   2436 
   2437 L_36003FD0:
   2438     PUSH32(esp, ebp); /* 0x36003FD0: push ebp */
   2439     ebp = esp; /* 0x36003FD1: mov ebp, esp */
   2440     eax = MEM32(ebp + 0x8); /* 0x36003FD3: mov eax, dword ptr [ebp + 8] */
   2441     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu);
   2442     eax = eax & 0xFFu; /* 0x36003FD6: and eax, 0xff */
   2443     _cf = 0;
   2444     _flag_k = FK_TEST;
   2445     PUSH32(esp, eax); /* 0x36003FDB: push eax */
   2446     PUSH32(esp, 0x16Fu); /* 0x36003FDC: push 0x16f */
   2447     PUSH32(esp, 0x33u); /* 0x36003FE1: push 0x33 */
   2448     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36003FE3: call dword ptr [0x3616f304] */
   2449     RECOMP_FLAGS_IN();
   2450     ecx = eax; /* 0x36003FE9: mov ecx, eax */
   2451     RECOMP_ICALL(MEM32(0x3616F2D8)); /* 0x36003FEB: call dword ptr [0x3616f2d8] */
   2452     RECOMP_FLAGS_IN();
   2453     ebp = POP32_VAL(esp); /* 0x36003FF1: pop ebp */
   2454     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003FF2: ret 4 */
   2455     RECOMP_REGS_OUT();
   2456 }
   2457 
   2458 void sub_36004000(void) {
   2459     int _fpu_cmp = 0;
   2460     uint32_t _cf = 0;
   2461     int _df = 1;
   2462     uint32_t _flag_k = FK_NONE;
   2463     uint32_t _flag_a = 0, _flag_b = 0;
   2464     uint32_t _itail_tgt = 0;
   2465     RECOMP_REGS_LOCALS
   2466     RECOMP_ENTER(0x36004000u);
   2467 
   2468 L_36004000:
   2469     PUSH32(esp, ebp); /* 0x36004000: push ebp */
   2470     ebp = esp; /* 0x36004001: mov ebp, esp */
   2471     eax = MEM32(ebp + 0x10); /* 0x36004003: mov eax, dword ptr [ebp + 0x10] */
   2472     ecx = MEM32(ebp + 0xC); /* 0x36004006: mov ecx, dword ptr [ebp + 0xc] */
   2473     edx = MEM32(ebp + 0x8); /* 0x36004009: mov edx, dword ptr [ebp + 8] */
   2474     PUSH32(esp, eax); /* 0x3600400C: push eax */
   2475     PUSH32(esp, ecx); /* 0x3600400D: push ecx */
   2476     PUSH32(esp, edx); /* 0x3600400E: push edx */
   2477     PUSH32(esp, 0x170u); /* 0x3600400F: push 0x170 */
   2478     PUSH32(esp, 0x33u); /* 0x36004014: push 0x33 */
   2479     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004016: call dword ptr [0x3616f304] */
   2480     RECOMP_FLAGS_IN();
   2481     ecx = eax; /* 0x3600401C: mov ecx, eax */
   2482     RECOMP_ICALL(MEM32(0x3616F2E0)); /* 0x3600401E: call dword ptr [0x3616f2e0] */
   2483     RECOMP_FLAGS_IN();
   2484     ebp = POP32_VAL(esp); /* 0x36004024: pop ebp */
   2485     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004025: ret 0xc */
   2486     RECOMP_REGS_OUT();
   2487 }
   2488 
   2489 void sub_36004030(void) {
   2490     int _fpu_cmp = 0;
   2491     uint32_t _cf = 0;
   2492     int _df = 1;
   2493     uint32_t _flag_k = FK_NONE;
   2494     uint32_t _flag_a = 0, _flag_b = 0;
   2495     uint32_t _itail_tgt = 0;
   2496     RECOMP_REGS_LOCALS
   2497     RECOMP_ENTER(0x36004030u);
   2498 
   2499 L_36004030:
   2500     PUSH32(esp, 0x172u); /* 0x36004030: push 0x172 */
   2501     PUSH32(esp, 0x33u); /* 0x36004035: push 0x33 */
   2502     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004037: call dword ptr [0x3616f304] */
   2503     RECOMP_FLAGS_IN();
   2504     ecx = eax; /* 0x3600403D: mov ecx, eax */
   2505     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600403F: call dword ptr [0x3616f2e8] */
   2506     RECOMP_FLAGS_IN();
   2507     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004045: ret 4 */
   2508     RECOMP_REGS_OUT();
   2509 }
   2510 
   2511 void sub_36004050(void) {
   2512     int _fpu_cmp = 0;
   2513     uint32_t _cf = 0;
   2514     int _df = 1;
   2515     uint32_t _flag_k = FK_NONE;
   2516     uint32_t _flag_a = 0, _flag_b = 0;
   2517     uint32_t _itail_tgt = 0;
   2518     RECOMP_REGS_LOCALS
   2519     RECOMP_ENTER(0x36004050u);
   2520 
   2521 L_36004050:
   2522     PUSH32(esp, 0x171u); /* 0x36004050: push 0x171 */
   2523     PUSH32(esp, 0x33u); /* 0x36004055: push 0x33 */
   2524     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004057: call dword ptr [0x3616f304] */
   2525     RECOMP_FLAGS_IN();
   2526     ecx = eax; /* 0x3600405D: mov ecx, eax */
   2527     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600405F: call dword ptr [0x3616f2e8] */
   2528     RECOMP_FLAGS_IN();
   2529     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36004065: ret  */
   2530     RECOMP_REGS_OUT();
   2531 }
   2532 
   2533 void sub_36004070(void) {
   2534     int _fpu_cmp = 0;
   2535     uint32_t _cf = 0;
   2536     int _df = 1;
   2537     uint32_t _flag_k = FK_NONE;
   2538     uint32_t _flag_a = 0, _flag_b = 0;
   2539     uint32_t _itail_tgt = 0;
   2540     RECOMP_REGS_LOCALS
   2541     RECOMP_ENTER(0x36004070u);
   2542 
   2543 L_36004070:
   2544     PUSH32(esp, ebp); /* 0x36004070: push ebp */
   2545     ebp = esp; /* 0x36004071: mov ebp, esp */
   2546     eax = MEM32(ebp + 0x8); /* 0x36004073: mov eax, dword ptr [ebp + 8] */
   2547     PUSH32(esp, eax); /* 0x36004076: push eax */
   2548     PUSH32(esp, 0x173u); /* 0x36004077: push 0x173 */
   2549     PUSH32(esp, 0x33u); /* 0x3600407C: push 0x33 */
   2550     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x3600407E: call dword ptr [0x3616f304] */
   2551     RECOMP_FLAGS_IN();
   2552     ecx = eax; /* 0x36004084: mov ecx, eax */
   2553     RECOMP_ICALL(MEM32(0x3616F2D8)); /* 0x36004086: call dword ptr [0x3616f2d8] */
   2554     RECOMP_FLAGS_IN();
   2555     ebp = POP32_VAL(esp); /* 0x3600408C: pop ebp */
   2556     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3600408D: ret 4 */
   2557     RECOMP_REGS_OUT();
   2558 }
   2559 
   2560 void sub_36004090(void) {
   2561     int _fpu_cmp = 0;
   2562     uint32_t _cf = 0;
   2563     int _df = 1;
   2564     uint32_t _flag_k = FK_NONE;
   2565     uint32_t _flag_a = 0, _flag_b = 0;
   2566     uint32_t _itail_tgt = 0;
   2567     RECOMP_REGS_LOCALS
   2568     RECOMP_ENTER(0x36004090u);
   2569 
   2570 L_36004090:
   2571     PUSH32(esp, ebp); /* 0x36004090: push ebp */
   2572     ebp = esp; /* 0x36004091: mov ebp, esp */
   2573     eax = MEM32(ebp + 0x8); /* 0x36004093: mov eax, dword ptr [ebp + 8] */
   2574     PUSH32(esp, eax); /* 0x36004096: push eax */
   2575     PUSH32(esp, 0xA5u); /* 0x36004097: push 0xa5 */
   2576     PUSH32(esp, 5); /* 0x3600409C: push 5 */
   2577     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x3600409E: call dword ptr [0x3616f304] */
   2578     RECOMP_FLAGS_IN();
   2579     ecx = eax; /* 0x360040A4: mov ecx, eax */
   2580     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x360040A6: call dword ptr [0x3616f30c] */
   2581     RECOMP_FLAGS_IN();
   2582     ebp = POP32_VAL(esp); /* 0x360040AC: pop ebp */
   2583     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360040AD: ret 4 */
   2584     RECOMP_REGS_OUT();
   2585 }
   2586 
   2587 void sub_360040B0(void) {
   2588     int _fpu_cmp = 0;
   2589     uint32_t _cf = 0;
   2590     int _df = 1;
   2591     uint32_t _flag_k = FK_NONE;
   2592     uint32_t _flag_a = 0, _flag_b = 0;
   2593     uint32_t _itail_tgt = 0;
   2594     RECOMP_REGS_LOCALS
   2595     RECOMP_ENTER(0x360040B0u);
   2596 
   2597 L_360040B0:
   2598     PUSH32(esp, ebp); /* 0x360040B0: push ebp */
   2599     ebp = esp; /* 0x360040B1: mov ebp, esp */
   2600     eax = MEM32(ebp + 0x10); /* 0x360040B3: mov eax, dword ptr [ebp + 0x10] */
   2601     ecx = MEM32(ebp + 0xC); /* 0x360040B6: mov ecx, dword ptr [ebp + 0xc] */
   2602     PUSH32(esp, esi); /* 0x360040B9: push esi */
   2603     esi = MEM32(0x3616F304); /* 0x360040BA: mov esi, dword ptr [0x3616f304] */
   2604     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu);
   2605     eax = eax & 0xFFu; /* 0x360040C0: and eax, 0xff */
   2606     _cf = 0;
   2607     _flag_k = FK_TEST;
   2608     PUSH32(esp, eax); /* 0x360040C5: push eax */
   2609     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu);
   2610     ecx = ecx & 0xFFu; /* 0x360040C6: and ecx, 0xff */
   2611     _cf = 0;
   2612     _flag_k = FK_TEST;
   2613     PUSH32(esp, ecx); /* 0x360040CC: push ecx */
   2614     PUSH32(esp, 0x9Fu); /* 0x360040CD: push 0x9f */
   2615     PUSH32(esp, 5); /* 0x360040D2: push 5 */
   2616     RECOMP_ICALL(esi); /* 0x360040D4: call esi */
   2617     RECOMP_FLAGS_IN();
   2618     ecx = eax; /* 0x360040D6: mov ecx, eax */
   2619     RECOMP_ICALL(MEM32(0x3616F308)); /* 0x360040D8: call dword ptr [0x3616f308] */
   2620     RECOMP_FLAGS_IN();
   2621     edx = MEM32(ebp + 0x8); /* 0x360040DE: mov edx, dword ptr [ebp + 8] */
   2622     PUSH32(esp, edx); /* 0x360040E1: push edx */
   2623     RECOMP_ICALL(esi); /* 0x360040E2: call esi */
   2624     RECOMP_FLAGS_IN();
   2625     ecx = eax; /* 0x360040E4: mov ecx, eax */
   2626     RECOMP_ICALL(MEM32(0x3616F2DC)); /* 0x360040E6: call dword ptr [0x3616f2dc] */
   2627     RECOMP_FLAGS_IN();
   2628     esi = POP32_VAL(esp); /* 0x360040EC: pop esi */
   2629     ebp = POP32_VAL(esp); /* 0x360040ED: pop ebp */
   2630     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360040EE: ret 0xc */
   2631     RECOMP_REGS_OUT();
   2632 }
   2633 
   2634 void sub_36004100(void) {
   2635     int _fpu_cmp = 0;
   2636     uint32_t _cf = 0;
   2637     int _df = 1;
   2638     uint32_t _flag_k = FK_NONE;
   2639     uint32_t _flag_a = 0, _flag_b = 0;
   2640     uint32_t _itail_tgt = 0;
   2641     RECOMP_REGS_LOCALS
   2642     RECOMP_ENTER(0x36004100u);
   2643 
   2644 L_36004100:
   2645     PUSH32(esp, ebp); /* 0x36004100: push ebp */
   2646     ebp = esp; /* 0x36004101: mov ebp, esp */
   2647     eax = MEM32(ebp + 0x8); /* 0x36004103: mov eax, dword ptr [ebp + 8] */
   2648     PUSH32(esp, eax); /* 0x36004106: push eax */
   2649     PUSH32(esp, 0xA0u); /* 0x36004107: push 0xa0 */
   2650     PUSH32(esp, 5); /* 0x3600410C: push 5 */
   2651     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x3600410E: call dword ptr [0x3616f304] */
   2652     RECOMP_FLAGS_IN();
   2653     ecx = eax; /* 0x36004114: mov ecx, eax */
   2654     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004116: call dword ptr [0x3616f30c] */
   2655     RECOMP_FLAGS_IN();
   2656     ebp = POP32_VAL(esp); /* 0x3600411C: pop ebp */
   2657     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3600411D: ret 4 */
   2658     RECOMP_REGS_OUT();
   2659 }
   2660 
   2661 void sub_36004120(void) {
   2662     int _fpu_cmp = 0;
   2663     uint32_t _cf = 0;
   2664     int _df = 1;
   2665     uint32_t _flag_k = FK_NONE;
   2666     uint32_t _flag_a = 0, _flag_b = 0;
   2667     uint32_t _itail_tgt = 0;
   2668     RECOMP_REGS_LOCALS
   2669     RECOMP_ENTER(0x36004120u);
   2670 
   2671 L_36004120:
   2672     PUSH32(esp, ebp); /* 0x36004120: push ebp */
   2673     ebp = esp; /* 0x36004121: mov ebp, esp */
   2674     eax = MEM32(ebp + 0x8); /* 0x36004123: mov eax, dword ptr [ebp + 8] */
   2675     PUSH32(esp, eax); /* 0x36004126: push eax */
   2676     PUSH32(esp, 0x1A1u); /* 0x36004127: push 0x1a1 */
   2677     PUSH32(esp, 0x17u); /* 0x3600412C: push 0x17 */
   2678     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x3600412E: call dword ptr [0x3616f304] */
   2679     RECOMP_FLAGS_IN();
   2680     ecx = eax; /* 0x36004134: mov ecx, eax */
   2681     RECOMP_ICALL(MEM32(0x3616F2D8)); /* 0x36004136: call dword ptr [0x3616f2d8] */
   2682     RECOMP_FLAGS_IN();
   2683     SET_LO8(ecx, MEM8(0x36303394)); /* 0x3600413C: mov cl, byte ptr [0x36303394] */
   2684     SET_LO8(eax, 1); /* 0x36004142: mov al, 1 */
   2685     /* test LO8(eax), LO8(ecx) */ /* 0x36004144: test al, cl */
   2686     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2687     _cf = 0;
   2688     _flag_k = FK_NARROW(FK_TEST, 24);
   2689     if (TEST_NZ(_flag_a, _flag_b)) goto L_36004163; /* 0x36004146: jne 0x36004163 */
   2690 L_36004148:
   2691     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
   2692     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x36004148: or cl, al */
   2693     _cf = 0;
   2694     _flag_k = FK_NARROW(FK_TEST, 24);
   2695     PUSH32(esp, 0x361B31ECu); /* 0x3600414A: push 0x361b31ec */
   2696     MEM8(0x36303394) = (uint8_t)(LO8(ecx)); /* 0x3600414F: mov byte ptr [0x36303394], cl */
   2697     RECOMP_ICALL(MEM32(0x36170148)); /* 0x36004155: call dword ptr [0x36170148] */
   2698     RECOMP_FLAGS_IN();
   2699     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2700     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2701     esp = esp + 4; /* 0x3600415B: add esp, 4 */
   2702     _flag_k = FK_ADD;
   2703     MEM32(0x36303390) = eax; /* 0x3600415E: mov dword ptr [0x36303390], eax */
   2704 L_36004163:
   2705     ecx = MEM32(0x36303390); /* 0x36004163: mov ecx, dword ptr [0x36303390] */
   2706     PUSH32(esp, ecx); /* 0x36004169: push ecx */
   2707     RECOMP_ICALL(MEM32(0x3617014C)); /* 0x3600416A: call dword ptr [0x3617014c] */
   2708     RECOMP_FLAGS_IN();
   2709     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2710     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2711     esp = esp + 4; /* 0x36004170: add esp, 4 */
   2712     _flag_k = FK_ADD;
   2713     ebp = POP32_VAL(esp); /* 0x36004173: pop ebp */
   2714     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004174: ret 0xc */
   2715     RECOMP_REGS_OUT();
   2716 }
   2717 
   2718 void sub_36004180(void) {
   2719     int _fpu_cmp = 0;
   2720     uint32_t _cf = 0;
   2721     int _df = 1;
   2722     uint32_t _flag_k = FK_NONE;
   2723     uint32_t _flag_a = 0, _flag_b = 0;
   2724     uint32_t _itail_tgt = 0;
   2725     RECOMP_REGS_LOCALS
   2726     RECOMP_ENTER(0x36004180u);
   2727 
   2728 L_36004180:
   2729     PUSH32(esp, ebp); /* 0x36004180: push ebp */
   2730 L_36004181:
   2731     ebp = esp; /* 0x36004181: mov ebp, esp */
   2732 L_36004183:
   2733     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2734     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2735     esp = esp - 8; /* 0x36004183: sub esp, 8 */
   2736     _flag_k = FK_CMP;
   2737 L_36004186:
   2738     PUSH32(esp, ebx); /* 0x36004186: push ebx */
   2739 L_36004187:
   2740     PUSH32(esp, esi); /* 0x36004187: push esi */
   2741 L_36004188:
   2742     esi = MEM32(ebp + 0x8); /* 0x36004188: mov esi, dword ptr [ebp + 8] */
   2743 L_3600418B:
   2744     /* cmp esi, 0x3Cu */ /* 0x3600418B: cmp esi, 0x3c */
   2745     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu);
   2746     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2747     _flag_k = FK_CMP;
   2748 L_3600418E:
   2749     PUSH32(esp, edi); /* 0x3600418E: push edi */
   2750 L_3600418F:
   2751     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_G, _cf)) goto L_36004255; /* 0x3600418F: jg 0x36004255 */
   2752 L_36004195:
   2753     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004243; /* 0x36004195: je 0x36004243 */
   2754 L_3600419B:
   2755     /* cmp esi, 0x39u */ /* 0x3600419B: cmp esi, 0x39 */
   2756     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x39u);
   2757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2758     _flag_k = FK_CMP;
   2759 L_3600419E:
   2760     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36004437; /* 0x3600419E: ja 0x36004437 */
   2761 L_360041A4:
   2762     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2763     eax = 0; /* 0x360041A4: xor eax, eax */
   2764     _cf = 0;
   2765     _flag_k = FK_TEST;
   2766 L_360041A6:
   2767     SET_LO8(eax, MEM8(esi + 0x36004460)); /* 0x360041A6: mov al, byte ptr [esi + 0x36004460] */
   2768 L_360041AC:
   2769     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36004440)); goto _ljump; }
   2770 L_360041B3:
   2771     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x360041B3: mov al, byte ptr [ebp + 0x18] */
   2772 L_360041B6:
   2773     /* test LO8(eax), LO8(eax) */ /* 0x360041B6: test al, al */
   2774     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2775     _cf = 0;
   2776     _flag_k = FK_NARROW(FK_TEST, 24);
   2777 L_360041B8:
   2778     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x360041B8: je 0x36004437 */
   2779 L_360041BE:
   2780     SET_LO8(ecx, MEM8(ebp + 0x10)); /* 0x360041BE: mov cl, byte ptr [ebp + 0x10] */
   2781 L_360041C1:
   2782     SET_LO8(eax, 0x40u); /* 0x360041C1: mov al, 0x40 */
   2783 L_360041C3:
   2784     /* test LO8(eax), LO8(ecx) */ /* 0x360041C3: test al, cl */
   2785     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2786     _cf = 0;
   2787     _flag_k = FK_NARROW(FK_TEST, 24);
   2788 L_360041C5:
   2789     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36004437; /* 0x360041C5: jne 0x36004437 */
   2790 L_360041CB:
   2791     /* test MEM8(ebp + 0xC), LO8(eax) */ /* 0x360041CB: test byte ptr [ebp + 0xc], al */
   2792     _flag_a = (uint32_t)(MEM8(ebp + 0xC)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2793     _cf = 0;
   2794     _flag_k = FK_NARROW(FK_TEST, 24);
   2795 L_360041CE:
   2796     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x360041CE: je 0x36004437 */
   2797 L_360041D4:
   2798     PUSH32(esp, 0); /* 0x360041D4: push 0 */
   2799 L_360041D6:
   2800     esi = MEM32(0x3616F304); /* 0x360041D6: mov esi, dword ptr [0x3616f304] */
   2801 L_360041DC:
   2802     PUSH32(esp, 0xEu); /* 0x360041DC: push 0xe */
   2803 L_360041DE:
   2804     PUSH32(esp, 0x152u); /* 0x360041DE: push 0x152 */
   2805 L_360041E3:
   2806     PUSH32(esp, 0x32u); /* 0x360041E3: push 0x32 */
   2807 L_360041E5:
   2808     RECOMP_ICALL(esi); /* 0x360041E5: call esi */
   2809     RECOMP_FLAGS_IN();
   2810 L_360041E7:
   2811     ecx = eax; /* 0x360041E7: mov ecx, eax */
   2812 L_360041E9:
   2813     RECOMP_ICALL(MEM32(0x3616F308)); /* 0x360041E9: call dword ptr [0x3616f308] */
   2814     RECOMP_FLAGS_IN();
   2815 L_360041EF:
   2816     PUSH32(esp, 0x117u); /* 0x360041EF: push 0x117 */
   2817 L_360041F4:
   2818     PUSH32(esp, 0x1Au); /* 0x360041F4: push 0x1a */
   2819 L_360041F6:
   2820     RECOMP_ICALL(esi); /* 0x360041F6: call esi */
   2821     RECOMP_FLAGS_IN();
   2822 L_360041F8:
   2823     ecx = eax; /* 0x360041F8: mov ecx, eax */
   2824 L_360041FA:
   2825     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x360041FA: call dword ptr [0x3616f2e8] */
   2826     RECOMP_FLAGS_IN();
   2827 L_36004200:
   2828     edi = POP32_VAL(esp); /* 0x36004200: pop edi */
   2829 L_36004201:
   2830     esi = POP32_VAL(esp); /* 0x36004201: pop esi */
   2831 L_36004202:
   2832     ebx = POP32_VAL(esp); /* 0x36004202: pop ebx */
   2833 L_36004203:
   2834     esp = ebp; /* 0x36004203: mov esp, ebp */
   2835 L_36004205:
   2836     ebp = POP32_VAL(esp); /* 0x36004205: pop ebp */
   2837 L_36004206:
   2838     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36004206: ret 0x14 */
   2839 L_36004209:
   2840     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x36004209: mov al, byte ptr [ebp + 0x18] */
   2841 L_3600420C:
   2842     /* test LO8(eax), LO8(eax) */ /* 0x3600420C: test al, al */
   2843     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2844     _cf = 0;
   2845     _flag_k = FK_NARROW(FK_TEST, 24);
   2846 L_3600420E:
   2847     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x3600420E: je 0x36004437 */
   2848 L_36004214:
   2849     PUSH32(esp, 0xE9u); /* 0x36004214: push 0xe9 */
   2850 L_36004219:
   2851     PUSH32(esp, 0x12u); /* 0x36004219: push 0x12 */
   2852 L_3600421B:
   2853     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x3600421B: call dword ptr [0x3616f304] */
   2854     RECOMP_FLAGS_IN();
   2855 L_36004221:
   2856     ecx = eax; /* 0x36004221: mov ecx, eax */
   2857 L_36004223:
   2858     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36004223: call dword ptr [0x3616f2e8] */
   2859     RECOMP_FLAGS_IN();
   2860 L_36004229:
   2861     edi = POP32_VAL(esp); /* 0x36004229: pop edi */
   2862 L_3600422A:
   2863     esi = POP32_VAL(esp); /* 0x3600422A: pop esi */
   2864 L_3600422B:
   2865     ebx = POP32_VAL(esp); /* 0x3600422B: pop ebx */
   2866 L_3600422C:
   2867     esp = ebp; /* 0x3600422C: mov esp, ebp */
   2868 L_3600422E:
   2869     ebp = POP32_VAL(esp); /* 0x3600422E: pop ebp */
   2870 L_3600422F:
   2871     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3600422F: ret 0x14 */
   2872 L_36004232:
   2873     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x36004232: mov al, byte ptr [ebp + 0x18] */
   2874 L_36004235:
   2875     /* test LO8(eax), LO8(eax) */ /* 0x36004235: test al, al */
   2876     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2877     _cf = 0;
   2878     _flag_k = FK_NARROW(FK_TEST, 24);
   2879 L_36004237:
   2880     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x36004237: je 0x36004437 */
   2881 L_3600423D:
   2882     ecx = MEM32(ebp + 0xC); /* 0x3600423D: mov ecx, dword ptr [ebp + 0xc] */
   2883 L_36004240:
   2884     PUSH32(esp, ecx); /* 0x36004240: push ecx */
   2885 L_36004241:
   2886     RECOMP_BACKEDGE();
   2887     goto L_360041D6; /* 0x36004241: jmp 0x360041d6 */
   2888 L_36004243:
   2889     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x36004243: mov al, byte ptr [ebp + 0x18] */
   2890 L_36004246:
   2891     /* test LO8(eax), LO8(eax) */ /* 0x36004246: test al, al */
   2892     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2893     _cf = 0;
   2894     _flag_k = FK_NARROW(FK_TEST, 24);
   2895 L_36004248:
   2896     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x36004248: je 0x36004437 */
   2897 L_3600424E:
   2898     PUSH32(esp, 0xEBu); /* 0x3600424E: push 0xeb */
   2899 L_36004253:
   2900     RECOMP_BACKEDGE();
   2901     goto L_36004219; /* 0x36004253: jmp 0x36004219 */
   2902 L_36004255:
   2903     /* cmp esi, 0xC7u */ /* 0x36004255: cmp esi, 0xc7 */
   2904     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xC7u);
   2905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2906     _flag_k = FK_CMP;
   2907 L_3600425B:
   2908     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_G, _cf)) goto L_36004335; /* 0x3600425B: jg 0x36004335 */
   2909 L_36004261:
   2910     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004320; /* 0x36004261: je 0x36004320 */
   2911 L_36004267:
   2912     eax = esi + (-0x3D); /* 0x36004267: lea eax, [esi - 0x3d] */
   2913 L_3600426A:
   2914     /* cmp eax, 0x78u */ /* 0x3600426A: cmp eax, 0x78 */
   2915     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x78u);
   2916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2917     _flag_k = FK_CMP;
   2918 L_3600426D:
   2919     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36004437; /* 0x3600426D: ja 0x36004437 */
   2920 L_36004273:
   2921     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2922     edx = 0; /* 0x36004273: xor edx, edx */
   2923     _cf = 0;
   2924     _flag_k = FK_TEST;
   2925 L_36004275:
   2926     SET_LO8(edx, MEM8(eax + 0x360044B0)); /* 0x36004275: mov dl, byte ptr [eax + 0x360044b0] */
   2927 L_3600427B:
   2928     { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x3600449C)); goto _ljump; }
   2929 L_36004282:
   2930     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x36004282: mov al, byte ptr [ebp + 0x18] */
   2931 L_36004285:
   2932     /* test LO8(eax), LO8(eax) */ /* 0x36004285: test al, al */
   2933     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2934     _cf = 0;
   2935     _flag_k = FK_NARROW(FK_TEST, 24);
   2936 L_36004287:
   2937     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x36004287: je 0x36004437 */
   2938 L_3600428D:
   2939     eax = MEM32(ebp + 0xC); /* 0x3600428D: mov eax, dword ptr [ebp + 0xc] */
   2940 L_36004290:
   2941     PUSH32(esp, eax); /* 0x36004290: push eax */
   2942 L_36004291:
   2943     PUSH32(esp, 0xACu); /* 0x36004291: push 0xac */
   2944 L_36004296:
   2945     PUSH32(esp, 0x1Fu); /* 0x36004296: push 0x1f */
   2946 L_36004298:
   2947     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004298: call dword ptr [0x3616f304] */
   2948     RECOMP_FLAGS_IN();
   2949 L_3600429E:
   2950     ecx = eax; /* 0x3600429E: mov ecx, eax */
   2951 L_360042A0:
   2952     RECOMP_ICALL(MEM32(0x3616F2D8)); /* 0x360042A0: call dword ptr [0x3616f2d8] */
   2953     RECOMP_FLAGS_IN();
   2954 L_360042A6:
   2955     edi = POP32_VAL(esp); /* 0x360042A6: pop edi */
   2956 L_360042A7:
   2957     esi = POP32_VAL(esp); /* 0x360042A7: pop esi */
   2958 L_360042A8:
   2959     ebx = POP32_VAL(esp); /* 0x360042A8: pop ebx */
   2960 L_360042A9:
   2961     esp = ebp; /* 0x360042A9: mov esp, ebp */
   2962 L_360042AB:
   2963     ebp = POP32_VAL(esp); /* 0x360042AB: pop ebp */
   2964 L_360042AC:
   2965     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x360042AC: ret 0x14 */
   2966 L_360042AF:
   2967     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x360042AF: mov al, byte ptr [ebp + 0x18] */
   2968 L_360042B2:
   2969     /* test LO8(eax), LO8(eax) */ /* 0x360042B2: test al, al */
   2970     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2971     _cf = 0;
   2972     _flag_k = FK_NARROW(FK_TEST, 24);
   2973 L_360042B4:
   2974     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x360042B4: je 0x36004437 */
   2975 L_360042BA:
   2976     edi = MEM32(ebp + 0xC); /* 0x360042BA: mov edi, dword ptr [ebp + 0xc] */
   2977 L_360042BD:
   2978     ebx = MEM32(0x3616F304); /* 0x360042BD: mov ebx, dword ptr [0x3616f304] */
   2979 L_360042C3:
   2980     PUSH32(esp, edi); /* 0x360042C3: push edi */
   2981 L_360042C4:
   2982     PUSH32(esp, esi); /* 0x360042C4: push esi */
   2983 L_360042C5:
   2984     PUSH32(esp, 0x152u); /* 0x360042C5: push 0x152 */
   2985 L_360042CA:
   2986     PUSH32(esp, 0x32u); /* 0x360042CA: push 0x32 */
   2987 L_360042CC:
   2988     RECOMP_ICALL(ebx); /* 0x360042CC: call ebx */
   2989     RECOMP_FLAGS_IN();
   2990 L_360042CE:
   2991     ecx = eax; /* 0x360042CE: mov ecx, eax */
   2992 L_360042D0:
   2993     RECOMP_ICALL(MEM32(0x3616F308)); /* 0x360042D0: call dword ptr [0x3616f308] */
   2994     RECOMP_FLAGS_IN();
   2995 L_360042D6:
   2996     PUSH32(esp, edi); /* 0x360042D6: push edi */
   2997 L_360042D7:
   2998     PUSH32(esp, esi); /* 0x360042D7: push esi */
   2999 L_360042D8:
   3000     PUSH32(esp, 0xE6u); /* 0x360042D8: push 0xe6 */
   3001 L_360042DD:
   3002     PUSH32(esp, 0x12u); /* 0x360042DD: push 0x12 */
   3003 L_360042DF:
   3004     RECOMP_ICALL(ebx); /* 0x360042DF: call ebx */
   3005     RECOMP_FLAGS_IN();
   3006 L_360042E1:
   3007     ecx = eax; /* 0x360042E1: mov ecx, eax */
   3008 L_360042E3:
   3009     RECOMP_ICALL(MEM32(0x3616F308)); /* 0x360042E3: call dword ptr [0x3616f308] */
   3010     RECOMP_FLAGS_IN();
   3011 L_360042E9:
   3012     edi = POP32_VAL(esp); /* 0x360042E9: pop edi */
   3013 L_360042EA:
   3014     esi = POP32_VAL(esp); /* 0x360042EA: pop esi */
   3015 L_360042EB:
   3016     ebx = POP32_VAL(esp); /* 0x360042EB: pop ebx */
   3017 L_360042EC:
   3018     esp = ebp; /* 0x360042EC: mov esp, ebp */
   3019 L_360042EE:
   3020     ebp = POP32_VAL(esp); /* 0x360042EE: pop ebp */
   3021 L_360042EF:
   3022     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x360042EF: ret 0x14 */
   3023 L_360042F2:
   3024     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x360042F2: mov al, byte ptr [ebp + 0x18] */
   3025 L_360042F5:
   3026     /* test LO8(eax), LO8(eax) */ /* 0x360042F5: test al, al */
   3027     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3028     _cf = 0;
   3029     _flag_k = FK_NARROW(FK_TEST, 24);
   3030 L_360042F7:
   3031     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x360042F7: je 0x36004437 */
   3032 L_360042FD:
   3033     ecx = MEM32(ebp + 0xC); /* 0x360042FD: mov ecx, dword ptr [ebp + 0xc] */
   3034 L_36004300:
   3035     PUSH32(esp, ecx); /* 0x36004300: push ecx */
   3036 L_36004301:
   3037     PUSH32(esp, esi); /* 0x36004301: push esi */
   3038 L_36004302:
   3039     PUSH32(esp, 0xE6u); /* 0x36004302: push 0xe6 */
   3040 L_36004307:
   3041     PUSH32(esp, 0x12u); /* 0x36004307: push 0x12 */
   3042 L_36004309:
   3043     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004309: call dword ptr [0x3616f304] */
   3044     RECOMP_FLAGS_IN();
   3045 L_3600430F:
   3046     ecx = eax; /* 0x3600430F: mov ecx, eax */
   3047 L_36004311:
   3048     RECOMP_ICALL(MEM32(0x3616F308)); /* 0x36004311: call dword ptr [0x3616f308] */
   3049     RECOMP_FLAGS_IN();
   3050 L_36004317:
   3051     edi = POP32_VAL(esp); /* 0x36004317: pop edi */
   3052 L_36004318:
   3053     esi = POP32_VAL(esp); /* 0x36004318: pop esi */
   3054 L_36004319:
   3055     ebx = POP32_VAL(esp); /* 0x36004319: pop ebx */
   3056 L_3600431A:
   3057     esp = ebp; /* 0x3600431A: mov esp, ebp */
   3058 L_3600431C:
   3059     ebp = POP32_VAL(esp); /* 0x3600431C: pop ebp */
   3060 L_3600431D:
   3061     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3600431D: ret 0x14 */
   3062 L_36004320:
   3063     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x36004320: mov al, byte ptr [ebp + 0x18] */
   3064 L_36004323:
   3065     /* test LO8(eax), LO8(eax) */ /* 0x36004323: test al, al */
   3066     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3067     _cf = 0;
   3068     _flag_k = FK_NARROW(FK_TEST, 24);
   3069 L_36004325:
   3070     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x36004325: je 0x36004437 */
   3071 L_3600432B:
   3072     PUSH32(esp, 0xEAu); /* 0x3600432B: push 0xea */
   3073 L_36004330:
   3074     RECOMP_BACKEDGE();
   3075     goto L_36004219; /* 0x36004330: jmp 0x36004219 */
   3076 L_36004335:
   3077     eax = esi + (-0xD5); /* 0x36004335: lea eax, [esi - 0xd5] */
   3078 L_3600433B:
   3079     /* cmp eax, 0x88u */ /* 0x3600433B: cmp eax, 0x88 */
   3080     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x88u);
   3081     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3082     _flag_k = FK_CMP;
   3083 L_36004340:
   3084     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36004437; /* 0x36004340: ja 0x36004437 */
   3085 L_36004346:
   3086     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3087     edx = 0; /* 0x36004346: xor edx, edx */
   3088     _cf = 0;
   3089     _flag_k = FK_TEST;
   3090 L_36004348:
   3091     SET_LO8(edx, MEM8(eax + 0x36004544)); /* 0x36004348: mov dl, byte ptr [eax + 0x36004544] */
   3092 L_3600434E:
   3093     { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x3600452C)); goto _ljump; }
   3094 L_36004355:
   3095     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x36004355: mov al, byte ptr [ebp + 0x18] */
   3096 L_36004358:
   3097     /* test LO8(eax), LO8(eax) */ /* 0x36004358: test al, al */
   3098     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3099     _cf = 0;
   3100     _flag_k = FK_NARROW(FK_TEST, 24);
   3101 L_3600435A:
   3102     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x3600435A: je 0x36004437 */
   3103 L_36004360:
   3104     eax = MEM32(ebp + 0xC); /* 0x36004360: mov eax, dword ptr [ebp + 0xc] */
   3105 L_36004363:
   3106     _flag_a = (uint32_t)((eax ^ MEM32(ebp + 0x10))); _flag_b = (uint32_t)((eax ^ MEM32(ebp + 0x10)));
   3107     eax = eax ^ MEM32(ebp + 0x10); /* 0x36004363: xor eax, dword ptr [ebp + 0x10] */
   3108     _cf = 0;
   3109     _flag_k = FK_TEST;
   3110 L_36004366:
   3111     /* test eax, 0x04000001u */ /* 0x36004366: test eax, 0x4000001 */
   3112     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x04000001u);
   3113     _cf = 0;
   3114     _flag_k = FK_TEST;
   3115 L_3600436B:
   3116     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x3600436B: je 0x36004437 */
   3117 L_36004371:
   3118     ecx = MEM32(ebp + 0x14); /* 0x36004371: mov ecx, dword ptr [ebp + 0x14] */
   3119 L_36004374:
   3120     PUSH32(esp, ecx); /* 0x36004374: push ecx */
   3121 L_36004375:
   3122     PUSH32(esp, 0x119u); /* 0x36004375: push 0x119 */
   3123 L_3600437A:
   3124     PUSH32(esp, 0x1Au); /* 0x3600437A: push 0x1a */
   3125 L_3600437C:
   3126     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x3600437C: call dword ptr [0x3616f304] */
   3127     RECOMP_FLAGS_IN();
   3128 L_36004382:
   3129     ecx = eax; /* 0x36004382: mov ecx, eax */
   3130 L_36004384:
   3131     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004384: call dword ptr [0x3616f30c] */
   3132     RECOMP_FLAGS_IN();
   3133 L_3600438A:
   3134     edi = POP32_VAL(esp); /* 0x3600438A: pop edi */
   3135 L_3600438B:
   3136     esi = POP32_VAL(esp); /* 0x3600438B: pop esi */
   3137 L_3600438C:
   3138     ebx = POP32_VAL(esp); /* 0x3600438C: pop ebx */
   3139 L_3600438D:
   3140     esp = ebp; /* 0x3600438D: mov esp, ebp */
   3141 L_3600438F:
   3142     ebp = POP32_VAL(esp); /* 0x3600438F: pop ebp */
   3143 L_36004390:
   3144     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36004390: ret 0x14 */
   3145 L_36004393:
   3146     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x36004393: mov al, byte ptr [ebp + 0x18] */
   3147 L_36004396:
   3148     /* test LO8(eax), LO8(eax) */ /* 0x36004396: test al, al */
   3149     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3150     _cf = 0;
   3151     _flag_k = FK_NARROW(FK_TEST, 24);
   3152 L_36004398:
   3153     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x36004398: je 0x36004437 */
   3154 L_3600439E:
   3155     esi = MEM32(0x3616F304); /* 0x3600439E: mov esi, dword ptr [0x3616f304] */
   3156 L_360043A4:
   3157     PUSH32(esp, 0x35u); /* 0x360043A4: push 0x35 */
   3158 L_360043A6:
   3159     PUSH32(esp, 0x156u); /* 0x360043A6: push 0x156 */
   3160 L_360043AB:
   3161     PUSH32(esp, 0x2Du); /* 0x360043AB: push 0x2d */
   3162 L_360043AD:
   3163     RECOMP_ICALL(esi); /* 0x360043AD: call esi */
   3164     RECOMP_FLAGS_IN();
   3165 L_360043AF:
   3166     ecx = eax; /* 0x360043AF: mov ecx, eax */
   3167 L_360043B1:
   3168     RECOMP_ICALL(MEM32(0x3616F2D8)); /* 0x360043B1: call dword ptr [0x3616f2d8] */
   3169     RECOMP_FLAGS_IN();
   3170 L_360043B7:
   3171     edx = MEM32(ebp + 0xC); /* 0x360043B7: mov edx, dword ptr [ebp + 0xc] */
   3172 L_360043BA:
   3173     eax = ebp + (-0x8); /* 0x360043BA: lea eax, [ebp - 8] */
   3174 L_360043BD:
   3175     PUSH32(esp, eax); /* 0x360043BD: push eax */
   3176 L_360043BE:
   3177     MEM32(ebp + (-0x8)) = 0; /* 0x360043BE: mov dword ptr [ebp - 8], 0 */
   3178 L_360043C5:
   3179     MEM32(ebp + (-0x4)) = edx; /* 0x360043C5: mov dword ptr [ebp - 4], edx */
   3180 L_360043C8:
   3181     RECOMP_ICALL(esi); /* 0x360043C8: call esi */
   3182     RECOMP_FLAGS_IN();
   3183 L_360043CA:
   3184     ecx = eax; /* 0x360043CA: mov ecx, eax */
   3185 L_360043CC:
   3186     RECOMP_ICALL(MEM32(0x3616F2DC)); /* 0x360043CC: call dword ptr [0x3616f2dc] */
   3187     RECOMP_FLAGS_IN();
   3188 L_360043D2:
   3189     edi = POP32_VAL(esp); /* 0x360043D2: pop edi */
   3190 L_360043D3:
   3191     esi = POP32_VAL(esp); /* 0x360043D3: pop esi */
   3192 L_360043D4:
   3193     ebx = POP32_VAL(esp); /* 0x360043D4: pop ebx */
   3194 L_360043D5:
   3195     esp = ebp; /* 0x360043D5: mov esp, ebp */
   3196 L_360043D7:
   3197     ebp = POP32_VAL(esp); /* 0x360043D7: pop ebp */
   3198 L_360043D8:
   3199     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x360043D8: ret 0x14 */
   3200 L_360043DB:
   3201     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x360043DB: mov al, byte ptr [ebp + 0x18] */
   3202 L_360043DE:
   3203     /* test LO8(eax), LO8(eax) */ /* 0x360043DE: test al, al */
   3204     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3205     _cf = 0;
   3206     _flag_k = FK_NARROW(FK_TEST, 24);
   3207 L_360043E0:
   3208     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x360043E0: je 0x36004437 */
   3209 L_360043E2:
   3210     ecx = MEM32(ebp + 0xC); /* 0x360043E2: mov ecx, dword ptr [ebp + 0xc] */
   3211 L_360043E5:
   3212     PUSH32(esp, ecx); /* 0x360043E5: push ecx */
   3213 L_360043E6:
   3214     PUSH32(esp, esi); /* 0x360043E6: push esi */
   3215 L_360043E7:
   3216     PUSH32(esp, 0x152u); /* 0x360043E7: push 0x152 */
   3217 L_360043EC:
   3218     PUSH32(esp, 0x32u); /* 0x360043EC: push 0x32 */
   3219 L_360043EE:
   3220     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360043EE: call dword ptr [0x3616f304] */
   3221     RECOMP_FLAGS_IN();
   3222 L_360043F4:
   3223     ecx = eax; /* 0x360043F4: mov ecx, eax */
   3224 L_360043F6:
   3225     RECOMP_ICALL(MEM32(0x3616F308)); /* 0x360043F6: call dword ptr [0x3616f308] */
   3226     RECOMP_FLAGS_IN();
   3227 L_360043FC:
   3228     edi = POP32_VAL(esp); /* 0x360043FC: pop edi */
   3229 L_360043FD:
   3230     esi = POP32_VAL(esp); /* 0x360043FD: pop esi */
   3231 L_360043FE:
   3232     ebx = POP32_VAL(esp); /* 0x360043FE: pop ebx */
   3233 L_360043FF:
   3234     esp = ebp; /* 0x360043FF: mov esp, ebp */
   3235 L_36004401:
   3236     ebp = POP32_VAL(esp); /* 0x36004401: pop ebp */
   3237 L_36004402:
   3238     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36004402: ret 0x14 */
   3239 L_36004405:
   3240     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x36004405: mov al, byte ptr [ebp + 0x18] */
   3241 L_36004408:
   3242     /* test LO8(eax), LO8(eax) */ /* 0x36004408: test al, al */
   3243     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3244     _cf = 0;
   3245     _flag_k = FK_NARROW(FK_TEST, 24);
   3246 L_3600440A:
   3247     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36004437; /* 0x3600440A: je 0x36004437 */
   3248 L_3600440C:
   3249     esi = MEM32(ebp + 0xC); /* 0x3600440C: mov esi, dword ptr [ebp + 0xc] */
   3250 L_3600440F:
   3251     edi = MEM32(0x3616F304); /* 0x3600440F: mov edi, dword ptr [0x3616f304] */
   3252 L_36004415:
   3253     PUSH32(esp, esi); /* 0x36004415: push esi */
   3254 L_36004416:
   3255     PUSH32(esp, 0x140u); /* 0x36004416: push 0x140 */
   3256 L_3600441B:
   3257     PUSH32(esp, 0x17u); /* 0x3600441B: push 0x17 */
   3258 L_3600441D:
   3259     RECOMP_ICALL(edi); /* 0x3600441D: call edi */
   3260     RECOMP_FLAGS_IN();
   3261 L_3600441F:
   3262     ebx = MEM32(0x3616F2D8); /* 0x3600441F: mov ebx, dword ptr [0x3616f2d8] */
   3263 L_36004425:
   3264     ecx = eax; /* 0x36004425: mov ecx, eax */
   3265 L_36004427:
   3266     RECOMP_ICALL(ebx); /* 0x36004427: call ebx */
   3267     RECOMP_FLAGS_IN();
   3268 L_36004429:
   3269     PUSH32(esp, esi); /* 0x36004429: push esi */
   3270 L_3600442A:
   3271     PUSH32(esp, 0x140u); /* 0x3600442A: push 0x140 */
   3272 L_3600442F:
   3273     PUSH32(esp, 0x31u); /* 0x3600442F: push 0x31 */
   3274 L_36004431:
   3275     RECOMP_ICALL(edi); /* 0x36004431: call edi */
   3276     RECOMP_FLAGS_IN();
   3277 L_36004433:
   3278     ecx = eax; /* 0x36004433: mov ecx, eax */
   3279 L_36004435:
   3280     RECOMP_ICALL(ebx); /* 0x36004435: call ebx */
   3281     RECOMP_FLAGS_IN();
   3282 L_36004437:
   3283     edi = POP32_VAL(esp); /* 0x36004437: pop edi */
   3284 L_36004438:
   3285     esi = POP32_VAL(esp); /* 0x36004438: pop esi */
   3286 L_36004439:
   3287     ebx = POP32_VAL(esp); /* 0x36004439: pop ebx */
   3288 L_3600443A:
   3289     esp = ebp; /* 0x3600443A: mov esp, ebp */
   3290 L_3600443C:
   3291     ebp = POP32_VAL(esp); /* 0x3600443C: pop ebp */
   3292 L_3600443D:
   3293     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3600443D: ret 0x14 */
   3294   _ljump:
   3295     switch (_itail_tgt) {
   3296       case 0x36004180u: goto L_36004180;
   3297       case 0x36004181u: goto L_36004181;
   3298       case 0x36004183u: goto L_36004183;
   3299       case 0x36004186u: goto L_36004186;
   3300       case 0x36004187u: goto L_36004187;
   3301       case 0x36004188u: goto L_36004188;
   3302       case 0x3600418Bu: goto L_3600418B;
   3303       case 0x3600418Eu: goto L_3600418E;
   3304       case 0x3600418Fu: goto L_3600418F;
   3305       case 0x36004195u: goto L_36004195;
   3306       case 0x3600419Bu: goto L_3600419B;
   3307       case 0x3600419Eu: goto L_3600419E;
   3308       case 0x360041A4u: goto L_360041A4;
   3309       case 0x360041A6u: goto L_360041A6;
   3310       case 0x360041ACu: goto L_360041AC;
   3311       case 0x360041B3u: goto L_360041B3;
   3312       case 0x360041B6u: goto L_360041B6;
   3313       case 0x360041B8u: goto L_360041B8;
   3314       case 0x360041BEu: goto L_360041BE;
   3315       case 0x360041C1u: goto L_360041C1;
   3316       case 0x360041C3u: goto L_360041C3;
   3317       case 0x360041C5u: goto L_360041C5;
   3318       case 0x360041CBu: goto L_360041CB;
   3319       case 0x360041CEu: goto L_360041CE;
   3320       case 0x360041D4u: goto L_360041D4;
   3321       case 0x360041D6u: goto L_360041D6;
   3322       case 0x360041DCu: goto L_360041DC;
   3323       case 0x360041DEu: goto L_360041DE;
   3324       case 0x360041E3u: goto L_360041E3;
   3325       case 0x360041E5u: goto L_360041E5;
   3326       case 0x360041E7u: goto L_360041E7;
   3327       case 0x360041E9u: goto L_360041E9;
   3328       case 0x360041EFu: goto L_360041EF;
   3329       case 0x360041F4u: goto L_360041F4;
   3330       case 0x360041F6u: goto L_360041F6;
   3331       case 0x360041F8u: goto L_360041F8;
   3332       case 0x360041FAu: goto L_360041FA;
   3333       case 0x36004200u: goto L_36004200;
   3334       case 0x36004201u: goto L_36004201;
   3335       case 0x36004202u: goto L_36004202;
   3336       case 0x36004203u: goto L_36004203;
   3337       case 0x36004205u: goto L_36004205;
   3338       case 0x36004206u: goto L_36004206;
   3339       case 0x36004209u: goto L_36004209;
   3340       case 0x3600420Cu: goto L_3600420C;
   3341       case 0x3600420Eu: goto L_3600420E;
   3342       case 0x36004214u: goto L_36004214;
   3343       case 0x36004219u: goto L_36004219;
   3344       case 0x3600421Bu: goto L_3600421B;
   3345       case 0x36004221u: goto L_36004221;
   3346       case 0x36004223u: goto L_36004223;
   3347       case 0x36004229u: goto L_36004229;
   3348       case 0x3600422Au: goto L_3600422A;
   3349       case 0x3600422Bu: goto L_3600422B;
   3350       case 0x3600422Cu: goto L_3600422C;
   3351       case 0x3600422Eu: goto L_3600422E;
   3352       case 0x3600422Fu: goto L_3600422F;
   3353       case 0x36004232u: goto L_36004232;
   3354       case 0x36004235u: goto L_36004235;
   3355       case 0x36004237u: goto L_36004237;
   3356       case 0x3600423Du: goto L_3600423D;
   3357       case 0x36004240u: goto L_36004240;
   3358       case 0x36004241u: goto L_36004241;
   3359       case 0x36004243u: goto L_36004243;
   3360       case 0x36004246u: goto L_36004246;
   3361       case 0x36004248u: goto L_36004248;
   3362       case 0x3600424Eu: goto L_3600424E;
   3363       case 0x36004253u: goto L_36004253;
   3364       case 0x36004255u: goto L_36004255;
   3365       case 0x3600425Bu: goto L_3600425B;
   3366       case 0x36004261u: goto L_36004261;
   3367       case 0x36004267u: goto L_36004267;
   3368       case 0x3600426Au: goto L_3600426A;
   3369       case 0x3600426Du: goto L_3600426D;
   3370       case 0x36004273u: goto L_36004273;
   3371       case 0x36004275u: goto L_36004275;
   3372       case 0x3600427Bu: goto L_3600427B;
   3373       case 0x36004282u: goto L_36004282;
   3374       case 0x36004285u: goto L_36004285;
   3375       case 0x36004287u: goto L_36004287;
   3376       case 0x3600428Du: goto L_3600428D;
   3377       case 0x36004290u: goto L_36004290;
   3378       case 0x36004291u: goto L_36004291;
   3379       case 0x36004296u: goto L_36004296;
   3380       case 0x36004298u: goto L_36004298;
   3381       case 0x3600429Eu: goto L_3600429E;
   3382       case 0x360042A0u: goto L_360042A0;
   3383       case 0x360042A6u: goto L_360042A6;
   3384       case 0x360042A7u: goto L_360042A7;
   3385       case 0x360042A8u: goto L_360042A8;
   3386       case 0x360042A9u: goto L_360042A9;
   3387       case 0x360042ABu: goto L_360042AB;
   3388       case 0x360042ACu: goto L_360042AC;
   3389       case 0x360042AFu: goto L_360042AF;
   3390       case 0x360042B2u: goto L_360042B2;
   3391       case 0x360042B4u: goto L_360042B4;
   3392       case 0x360042BAu: goto L_360042BA;
   3393       case 0x360042BDu: goto L_360042BD;
   3394       case 0x360042C3u: goto L_360042C3;
   3395       case 0x360042C4u: goto L_360042C4;
   3396       case 0x360042C5u: goto L_360042C5;
   3397       case 0x360042CAu: goto L_360042CA;
   3398       case 0x360042CCu: goto L_360042CC;
   3399       case 0x360042CEu: goto L_360042CE;
   3400       case 0x360042D0u: goto L_360042D0;
   3401       case 0x360042D6u: goto L_360042D6;
   3402       case 0x360042D7u: goto L_360042D7;
   3403       case 0x360042D8u: goto L_360042D8;
   3404       case 0x360042DDu: goto L_360042DD;
   3405       case 0x360042DFu: goto L_360042DF;
   3406       case 0x360042E1u: goto L_360042E1;
   3407       case 0x360042E3u: goto L_360042E3;
   3408       case 0x360042E9u: goto L_360042E9;
   3409       case 0x360042EAu: goto L_360042EA;
   3410       case 0x360042EBu: goto L_360042EB;
   3411       case 0x360042ECu: goto L_360042EC;
   3412       case 0x360042EEu: goto L_360042EE;
   3413       case 0x360042EFu: goto L_360042EF;
   3414       case 0x360042F2u: goto L_360042F2;
   3415       case 0x360042F5u: goto L_360042F5;
   3416       case 0x360042F7u: goto L_360042F7;
   3417       case 0x360042FDu: goto L_360042FD;
   3418       case 0x36004300u: goto L_36004300;
   3419       case 0x36004301u: goto L_36004301;
   3420       case 0x36004302u: goto L_36004302;
   3421       case 0x36004307u: goto L_36004307;
   3422       case 0x36004309u: goto L_36004309;
   3423       case 0x3600430Fu: goto L_3600430F;
   3424       case 0x36004311u: goto L_36004311;
   3425       case 0x36004317u: goto L_36004317;
   3426       case 0x36004318u: goto L_36004318;
   3427       case 0x36004319u: goto L_36004319;
   3428       case 0x3600431Au: goto L_3600431A;
   3429       case 0x3600431Cu: goto L_3600431C;
   3430       case 0x3600431Du: goto L_3600431D;
   3431       case 0x36004320u: goto L_36004320;
   3432       case 0x36004323u: goto L_36004323;
   3433       case 0x36004325u: goto L_36004325;
   3434       case 0x3600432Bu: goto L_3600432B;
   3435       case 0x36004330u: goto L_36004330;
   3436       case 0x36004335u: goto L_36004335;
   3437       case 0x3600433Bu: goto L_3600433B;
   3438       case 0x36004340u: goto L_36004340;
   3439       case 0x36004346u: goto L_36004346;
   3440       case 0x36004348u: goto L_36004348;
   3441       case 0x3600434Eu: goto L_3600434E;
   3442       case 0x36004355u: goto L_36004355;
   3443       case 0x36004358u: goto L_36004358;
   3444       case 0x3600435Au: goto L_3600435A;
   3445       case 0x36004360u: goto L_36004360;
   3446       case 0x36004363u: goto L_36004363;
   3447       case 0x36004366u: goto L_36004366;
   3448       case 0x3600436Bu: goto L_3600436B;
   3449       case 0x36004371u: goto L_36004371;
   3450       case 0x36004374u: goto L_36004374;
   3451       case 0x36004375u: goto L_36004375;
   3452       case 0x3600437Au: goto L_3600437A;
   3453       case 0x3600437Cu: goto L_3600437C;
   3454       case 0x36004382u: goto L_36004382;
   3455       case 0x36004384u: goto L_36004384;
   3456       case 0x3600438Au: goto L_3600438A;
   3457       case 0x3600438Bu: goto L_3600438B;
   3458       case 0x3600438Cu: goto L_3600438C;
   3459       case 0x3600438Du: goto L_3600438D;
   3460       case 0x3600438Fu: goto L_3600438F;
   3461       case 0x36004390u: goto L_36004390;
   3462       case 0x36004393u: goto L_36004393;
   3463       case 0x36004396u: goto L_36004396;
   3464       case 0x36004398u: goto L_36004398;
   3465       case 0x3600439Eu: goto L_3600439E;
   3466       case 0x360043A4u: goto L_360043A4;
   3467       case 0x360043A6u: goto L_360043A6;
   3468       case 0x360043ABu: goto L_360043AB;
   3469       case 0x360043ADu: goto L_360043AD;
   3470       case 0x360043AFu: goto L_360043AF;
   3471       case 0x360043B1u: goto L_360043B1;
   3472       case 0x360043B7u: goto L_360043B7;
   3473       case 0x360043BAu: goto L_360043BA;
   3474       case 0x360043BDu: goto L_360043BD;
   3475       case 0x360043BEu: goto L_360043BE;
   3476       case 0x360043C5u: goto L_360043C5;
   3477       case 0x360043C8u: goto L_360043C8;
   3478       case 0x360043CAu: goto L_360043CA;
   3479       case 0x360043CCu: goto L_360043CC;
   3480       case 0x360043D2u: goto L_360043D2;
   3481       case 0x360043D3u: goto L_360043D3;
   3482       case 0x360043D4u: goto L_360043D4;
   3483       case 0x360043D5u: goto L_360043D5;
   3484       case 0x360043D7u: goto L_360043D7;
   3485       case 0x360043D8u: goto L_360043D8;
   3486       case 0x360043DBu: goto L_360043DB;
   3487       case 0x360043DEu: goto L_360043DE;
   3488       case 0x360043E0u: goto L_360043E0;
   3489       case 0x360043E2u: goto L_360043E2;
   3490       case 0x360043E5u: goto L_360043E5;
   3491       case 0x360043E6u: goto L_360043E6;
   3492       case 0x360043E7u: goto L_360043E7;
   3493       case 0x360043ECu: goto L_360043EC;
   3494       case 0x360043EEu: goto L_360043EE;
   3495       case 0x360043F4u: goto L_360043F4;
   3496       case 0x360043F6u: goto L_360043F6;
   3497       case 0x360043FCu: goto L_360043FC;
   3498       case 0x360043FDu: goto L_360043FD;
   3499       case 0x360043FEu: goto L_360043FE;
   3500       case 0x360043FFu: goto L_360043FF;
   3501       case 0x36004401u: goto L_36004401;
   3502       case 0x36004402u: goto L_36004402;
   3503       case 0x36004405u: goto L_36004405;
   3504       case 0x36004408u: goto L_36004408;
   3505       case 0x3600440Au: goto L_3600440A;
   3506       case 0x3600440Cu: goto L_3600440C;
   3507       case 0x3600440Fu: goto L_3600440F;
   3508       case 0x36004415u: goto L_36004415;
   3509       case 0x36004416u: goto L_36004416;
   3510       case 0x3600441Bu: goto L_3600441B;
   3511       case 0x3600441Du: goto L_3600441D;
   3512       case 0x3600441Fu: goto L_3600441F;
   3513       case 0x36004425u: goto L_36004425;
   3514       case 0x36004427u: goto L_36004427;
   3515       case 0x36004429u: goto L_36004429;
   3516       case 0x3600442Au: goto L_3600442A;
   3517       case 0x3600442Fu: goto L_3600442F;
   3518       case 0x36004431u: goto L_36004431;
   3519       case 0x36004433u: goto L_36004433;
   3520       case 0x36004435u: goto L_36004435;
   3521       case 0x36004437u: goto L_36004437;
   3522       case 0x36004438u: goto L_36004438;
   3523       case 0x36004439u: goto L_36004439;
   3524       case 0x3600443Au: goto L_3600443A;
   3525       case 0x3600443Cu: goto L_3600443C;
   3526       case 0x3600443Du: goto L_3600443D;
   3527       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3528     }
   3529     RECOMP_REGS_OUT();
   3530 }
   3531 
   3532 void sub_36004219(void) {
   3533     int _fpu_cmp = 0;
   3534     uint32_t _cf = 0;
   3535     int _df = 1;
   3536     uint32_t _flag_k = FK_NONE;
   3537     uint32_t _flag_a = 0, _flag_b = 0;
   3538     uint32_t _itail_tgt = 0;
   3539     RECOMP_REGS_LOCALS
   3540     RECOMP_ENTER(0x36004219u);
   3541 
   3542 L_36004219:
   3543     PUSH32(esp, 0x12u); /* 0x36004219: push 0x12 */
   3544     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x3600421B: call dword ptr [0x3616f304] */
   3545     RECOMP_FLAGS_IN();
   3546     ecx = eax; /* 0x36004221: mov ecx, eax */
   3547     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36004223: call dword ptr [0x3616f2e8] */
   3548     RECOMP_FLAGS_IN();
   3549     edi = POP32_VAL(esp); /* 0x36004229: pop edi */
   3550     esi = POP32_VAL(esp); /* 0x3600422A: pop esi */
   3551     ebx = POP32_VAL(esp); /* 0x3600422B: pop ebx */
   3552     esp = ebp; /* 0x3600422C: mov esp, ebp */
   3553     ebp = POP32_VAL(esp); /* 0x3600422E: pop ebp */
   3554     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3600422F: ret 0x14 */
   3555     RECOMP_REGS_OUT();
   3556 }
   3557 
   3558 void sub_360045D0(void) {
   3559     int _fpu_cmp = 0;
   3560     uint32_t _cf = 0;
   3561     int _df = 1;
   3562     uint32_t _flag_k = FK_NONE;
   3563     uint32_t _flag_a = 0, _flag_b = 0;
   3564     uint32_t _itail_tgt = 0;
   3565     RECOMP_REGS_LOCALS
   3566     RECOMP_ENTER(0x360045D0u);
   3567 
   3568 L_360045D0:
   3569     PUSH32(esp, ebp); /* 0x360045D0: push ebp */
   3570     ebp = esp; /* 0x360045D1: mov ebp, esp */
   3571     eax = MEM32(ebp + 0x10); /* 0x360045D3: mov eax, dword ptr [ebp + 0x10] */
   3572     ecx = MEM32(ebp + 0xC); /* 0x360045D6: mov ecx, dword ptr [ebp + 0xc] */
   3573     edx = MEM32(ebp + 0x8); /* 0x360045D9: mov edx, dword ptr [ebp + 8] */
   3574     PUSH32(esp, eax); /* 0x360045DC: push eax */
   3575     PUSH32(esp, ecx); /* 0x360045DD: push ecx */
   3576     PUSH32(esp, edx); /* 0x360045DE: push edx */
   3577     PUSH32(esp, 0xE7u); /* 0x360045DF: push 0xe7 */
   3578     PUSH32(esp, 0x12u); /* 0x360045E4: push 0x12 */
   3579     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360045E6: call dword ptr [0x3616f304] */
   3580     RECOMP_FLAGS_IN();
   3581     ecx = eax; /* 0x360045EC: mov ecx, eax */
   3582     RECOMP_ICALL(MEM32(0x3616F2B0)); /* 0x360045EE: call dword ptr [0x3616f2b0] */
   3583     RECOMP_FLAGS_IN();
   3584     ebp = POP32_VAL(esp); /* 0x360045F4: pop ebp */
   3585     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360045F5: ret 0xc */
   3586     RECOMP_REGS_OUT();
   3587 }
   3588 
   3589 void sub_36004600(void) {
   3590     int _fpu_cmp = 0;
   3591     uint32_t _cf = 0;
   3592     int _df = 1;
   3593     uint32_t _flag_k = FK_NONE;
   3594     uint32_t _flag_a = 0, _flag_b = 0;
   3595     uint32_t _itail_tgt = 0;
   3596     RECOMP_REGS_LOCALS
   3597     RECOMP_ENTER(0x36004600u);
   3598 
   3599 L_36004600:
   3600     PUSH32(esp, ebp); /* 0x36004600: push ebp */
   3601     ebp = esp; /* 0x36004601: mov ebp, esp */
   3602     edx = MEM32(ebp + 0x8); /* 0x36004603: mov edx, dword ptr [ebp + 8] */
   3603     PUSH32(esp, esi); /* 0x36004606: push esi */
   3604     esi = MEM32(0x3616F304); /* 0x36004607: mov esi, dword ptr [0x3616f304] */
   3605     PUSH32(esp, edi); /* 0x3600460D: push edi */
   3606     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3607     ecx = ecx | 0xFFFFFFFFu; /* 0x3600460E: or ecx, 0xffffffff */
   3608     _cf = 0;
   3609     _flag_k = FK_TEST;
   3610     edi = edx; /* 0x36004611: mov edi, edx */
   3611     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3612     eax = 0; /* 0x36004613: xor eax, eax */
   3613     _cf = 0;
   3614     _flag_k = FK_TEST;
   3615     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; } /* 0x36004615: repne scasb al, byte ptr es:[edi] */
   3616     ecx = ~ecx; /* 0x36004617: not ecx */
   3617     PUSH32(esp, ecx); /* 0x36004619: push ecx */
   3618     PUSH32(esp, edx); /* 0x3600461A: push edx */
   3619     PUSH32(esp, 0x99u); /* 0x3600461B: push 0x99 */
   3620     PUSH32(esp, 3); /* 0x36004620: push 3 */
   3621     RECOMP_ICALL(esi); /* 0x36004622: call esi */
   3622     RECOMP_FLAGS_IN();
   3623     ecx = eax; /* 0x36004624: mov ecx, eax */
   3624     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36004626: call dword ptr [0x3616f310] */
   3625     RECOMP_FLAGS_IN();
   3626     eax = MEM32(ebp + 0xC); /* 0x3600462C: mov eax, dword ptr [ebp + 0xc] */
   3627     PUSH32(esp, eax); /* 0x3600462F: push eax */
   3628     RECOMP_ICALL(esi); /* 0x36004630: call esi */
   3629     RECOMP_FLAGS_IN();
   3630     ecx = eax; /* 0x36004632: mov ecx, eax */
   3631     RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36004634: call dword ptr [0x3616f2fc] */
   3632     RECOMP_FLAGS_IN();
   3633     edi = POP32_VAL(esp); /* 0x3600463A: pop edi */
   3634     esi = POP32_VAL(esp); /* 0x3600463B: pop esi */
   3635     ebp = POP32_VAL(esp); /* 0x3600463C: pop ebp */
   3636     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3600463D: ret 8 */
   3637     RECOMP_REGS_OUT();
   3638 }
   3639 
   3640 void sub_36004640(void) {
   3641     int _fpu_cmp = 0;
   3642     uint32_t _cf = 0;
   3643     int _df = 1;
   3644     uint32_t _flag_k = FK_NONE;
   3645     uint32_t _flag_a = 0, _flag_b = 0;
   3646     uint32_t _itail_tgt = 0;
   3647     RECOMP_REGS_LOCALS
   3648     RECOMP_ENTER(0x36004640u);
   3649 
   3650 L_36004640:
   3651     PUSH32(esp, ebp); /* 0x36004640: push ebp */
   3652     ebp = esp; /* 0x36004641: mov ebp, esp */
   3653     edx = MEM32(ebp + 0x8); /* 0x36004643: mov edx, dword ptr [ebp + 8] */
   3654     /* test edx, edx */ /* 0x36004646: test edx, edx */
   3655     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3656     _cf = 0;
   3657     _flag_k = FK_TEST;
   3658     if (TEST_Z(_flag_a, _flag_b)) goto L_3600466E; /* 0x36004648: je 0x3600466e */
   3659 L_3600464A:
   3660     PUSH32(esp, edi); /* 0x3600464A: push edi */
   3661     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3662     ecx = ecx | 0xFFFFFFFFu; /* 0x3600464B: or ecx, 0xffffffff */
   3663     _cf = 0;
   3664     _flag_k = FK_TEST;
   3665     edi = edx; /* 0x3600464E: mov edi, edx */
   3666     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3667     eax = 0; /* 0x36004650: xor eax, eax */
   3668     _cf = 0;
   3669     _flag_k = FK_TEST;
   3670     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; } /* 0x36004652: repne scasb al, byte ptr es:[edi] */
   3671     ecx = ~ecx; /* 0x36004654: not ecx */
   3672     PUSH32(esp, ecx); /* 0x36004656: push ecx */
   3673     PUSH32(esp, edx); /* 0x36004657: push edx */
   3674     PUSH32(esp, 0x83u); /* 0x36004658: push 0x83 */
   3675     PUSH32(esp, 0x1Du); /* 0x3600465D: push 0x1d */
   3676     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x3600465F: call dword ptr [0x3616f304] */
   3677     RECOMP_FLAGS_IN();
   3678     ecx = eax; /* 0x36004665: mov ecx, eax */
   3679     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36004667: call dword ptr [0x3616f310] */
   3680     RECOMP_FLAGS_IN();
   3681     edi = POP32_VAL(esp); /* 0x3600466D: pop edi */
   3682 L_3600466E:
   3683     ebp = POP32_VAL(esp); /* 0x3600466E: pop ebp */
   3684     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3600466F: ret 4 */
   3685     RECOMP_REGS_OUT();
   3686 }
   3687 
   3688 void sub_36004680(void) {
   3689     int _fpu_cmp = 0;
   3690     uint32_t _cf = 0;
   3691     int _df = 1;
   3692     uint32_t _flag_k = FK_NONE;
   3693     uint32_t _flag_a = 0, _flag_b = 0;
   3694     uint32_t _itail_tgt = 0;
   3695     RECOMP_REGS_LOCALS
   3696     RECOMP_ENTER(0x36004680u);
   3697 
   3698 L_36004680:
   3699     PUSH32(esp, ebp); /* 0x36004680: push ebp */
   3700     ebp = esp; /* 0x36004681: mov ebp, esp */
   3701     edx = MEM32(ebp + 0x8); /* 0x36004683: mov edx, dword ptr [ebp + 8] */
   3702     /* test edx, edx */ /* 0x36004686: test edx, edx */
   3703     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3704     _cf = 0;
   3705     _flag_k = FK_TEST;
   3706     if (TEST_Z(_flag_a, _flag_b)) goto L_360046D6; /* 0x36004688: je 0x360046d6 */
   3707 L_3600468A:
   3708     PUSH32(esp, esi); /* 0x3600468A: push esi */
   3709     esi = MEM32(0x3616F304); /* 0x3600468B: mov esi, dword ptr [0x3616f304] */
   3710     PUSH32(esp, edi); /* 0x36004691: push edi */
   3711     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3712     ecx = ecx | 0xFFFFFFFFu; /* 0x36004692: or ecx, 0xffffffff */
   3713     _cf = 0;
   3714     _flag_k = FK_TEST;
   3715     edi = edx; /* 0x36004695: mov edi, edx */
   3716     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3717     eax = 0; /* 0x36004697: xor eax, eax */
   3718     _cf = 0;
   3719     _flag_k = FK_TEST;
   3720     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; } /* 0x36004699: repne scasb al, byte ptr es:[edi] */
   3721     ecx = ~ecx; /* 0x3600469B: not ecx */
   3722     PUSH32(esp, ecx); /* 0x3600469D: push ecx */
   3723     PUSH32(esp, edx); /* 0x3600469E: push edx */
   3724     PUSH32(esp, 0xC3u); /* 0x3600469F: push 0xc3 */
   3725     PUSH32(esp, 0x1Du); /* 0x360046A4: push 0x1d */
   3726     RECOMP_ICALL(esi); /* 0x360046A6: call esi */
   3727     RECOMP_FLAGS_IN();
   3728     ecx = eax; /* 0x360046A8: mov ecx, eax */
   3729     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x360046AA: call dword ptr [0x3616f310] */
   3730     RECOMP_FLAGS_IN();
   3731     eax = MEM32(ebp + 0x10); /* 0x360046B0: mov eax, dword ptr [ebp + 0x10] */
   3732     ecx = MEM32(ebp + 0xC); /* 0x360046B3: mov ecx, dword ptr [ebp + 0xc] */
   3733     PUSH32(esp, eax); /* 0x360046B6: push eax */
   3734     PUSH32(esp, ecx); /* 0x360046B7: push ecx */
   3735     RECOMP_ICALL(esi); /* 0x360046B8: call esi */
   3736     RECOMP_FLAGS_IN();
   3737     ecx = eax; /* 0x360046BA: mov ecx, eax */
   3738     RECOMP_ICALL(MEM32(0x3616F2F8)); /* 0x360046BC: call dword ptr [0x3616f2f8] */
   3739     RECOMP_FLAGS_IN();
   3740     edx = MEM32(ebp + 0x18); /* 0x360046C2: mov edx, dword ptr [ebp + 0x18] */
   3741     eax = MEM32(ebp + 0x14); /* 0x360046C5: mov eax, dword ptr [ebp + 0x14] */
   3742     PUSH32(esp, edx); /* 0x360046C8: push edx */
   3743     PUSH32(esp, eax); /* 0x360046C9: push eax */
   3744     RECOMP_ICALL(esi); /* 0x360046CA: call esi */
   3745     RECOMP_FLAGS_IN();
   3746     ecx = eax; /* 0x360046CC: mov ecx, eax */
   3747     RECOMP_ICALL(MEM32(0x3616F2D4)); /* 0x360046CE: call dword ptr [0x3616f2d4] */
   3748     RECOMP_FLAGS_IN();
   3749     edi = POP32_VAL(esp); /* 0x360046D4: pop edi */
   3750     esi = POP32_VAL(esp); /* 0x360046D5: pop esi */
   3751 L_360046D6:
   3752     ebp = POP32_VAL(esp); /* 0x360046D6: pop ebp */
   3753     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x360046D7: ret 0x14 */
   3754     RECOMP_REGS_OUT();
   3755 }
   3756 
   3757 void sub_360046E0(void) {
   3758     int _fpu_cmp = 0;
   3759     uint32_t _cf = 0;
   3760     int _df = 1;
   3761     uint32_t _flag_k = FK_NONE;
   3762     uint32_t _flag_a = 0, _flag_b = 0;
   3763     uint32_t _itail_tgt = 0;
   3764     RECOMP_REGS_LOCALS
   3765     RECOMP_ENTER(0x360046E0u);
   3766 
   3767 L_360046E0:
   3768     PUSH32(esp, ebp); /* 0x360046E0: push ebp */
   3769     ebp = esp; /* 0x360046E1: mov ebp, esp */
   3770     edx = MEM32(ebp + 0x8); /* 0x360046E3: mov edx, dword ptr [ebp + 8] */
   3771     PUSH32(esp, edi); /* 0x360046E6: push edi */
   3772     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3773     ecx = ecx | 0xFFFFFFFFu; /* 0x360046E7: or ecx, 0xffffffff */
   3774     _cf = 0;
   3775     _flag_k = FK_TEST;
   3776     edi = edx; /* 0x360046EA: mov edi, edx */
   3777     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3778     eax = 0; /* 0x360046EC: xor eax, eax */
   3779     _cf = 0;
   3780     _flag_k = FK_TEST;
   3781     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; } /* 0x360046EE: repne scasb al, byte ptr es:[edi] */
   3782     ecx = ~ecx; /* 0x360046F0: not ecx */
   3783     PUSH32(esp, ecx); /* 0x360046F2: push ecx */
   3784     PUSH32(esp, edx); /* 0x360046F3: push edx */
   3785     PUSH32(esp, 0x3Fu); /* 0x360046F4: push 0x3f */
   3786     PUSH32(esp, 0x12u); /* 0x360046F6: push 0x12 */
   3787     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360046F8: call dword ptr [0x3616f304] */
   3788     RECOMP_FLAGS_IN();
   3789     ecx = eax; /* 0x360046FE: mov ecx, eax */
   3790     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36004700: call dword ptr [0x3616f310] */
   3791     RECOMP_FLAGS_IN();
   3792     edi = POP32_VAL(esp); /* 0x36004706: pop edi */
   3793     ebp = POP32_VAL(esp); /* 0x36004707: pop ebp */
   3794     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004708: ret 4 */
   3795     RECOMP_REGS_OUT();
   3796 }
   3797 
   3798 void sub_36004710(void) {
   3799     int _fpu_cmp = 0;
   3800     uint32_t _cf = 0;
   3801     int _df = 1;
   3802     uint32_t _flag_k = FK_NONE;
   3803     uint32_t _flag_a = 0, _flag_b = 0;
   3804     uint32_t _itail_tgt = 0;
   3805     RECOMP_REGS_LOCALS
   3806     RECOMP_ENTER(0x36004710u);
   3807 
   3808 L_36004710:
   3809     PUSH32(esp, 8); /* 0x36004710: push 8 */
   3810     PUSH32(esp, 0x17u); /* 0x36004712: push 0x17 */
   3811     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004714: call dword ptr [0x3616f304] */
   3812     RECOMP_FLAGS_IN();
   3813     ecx = eax; /* 0x3600471A: mov ecx, eax */
   3814     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600471C: call dword ptr [0x3616f2e8] */
   3815     RECOMP_FLAGS_IN();
   3816     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36004722: ret  */
   3817     RECOMP_REGS_OUT();
   3818 }
   3819 
   3820 void sub_36004730(void) {
   3821     int _fpu_cmp = 0;
   3822     uint32_t _cf = 0;
   3823     int _df = 1;
   3824     uint32_t _flag_k = FK_NONE;
   3825     uint32_t _flag_a = 0, _flag_b = 0;
   3826     uint32_t _itail_tgt = 0;
   3827     RECOMP_REGS_LOCALS
   3828     RECOMP_ENTER(0x36004730u);
   3829 
   3830 L_36004730:
   3831     PUSH32(esp, 9); /* 0x36004730: push 9 */
   3832     PUSH32(esp, 0x17u); /* 0x36004732: push 0x17 */
   3833     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004734: call dword ptr [0x3616f304] */
   3834     RECOMP_FLAGS_IN();
   3835     ecx = eax; /* 0x3600473A: mov ecx, eax */
   3836     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600473C: call dword ptr [0x3616f2e8] */
   3837     RECOMP_FLAGS_IN();
   3838     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36004742: ret  */
   3839     RECOMP_REGS_OUT();
   3840 }
   3841 
   3842 void sub_36004750(void) {
   3843     int _fpu_cmp = 0;
   3844     uint32_t _cf = 0;
   3845     int _df = 1;
   3846     uint32_t _flag_k = FK_NONE;
   3847     uint32_t _flag_a = 0, _flag_b = 0;
   3848     uint32_t _itail_tgt = 0;
   3849     RECOMP_REGS_LOCALS
   3850     RECOMP_ENTER(0x36004750u);
   3851 
   3852 L_36004750:
   3853     PUSH32(esp, 0x1A0u); /* 0x36004750: push 0x1a0 */
   3854     PUSH32(esp, 0x17u); /* 0x36004755: push 0x17 */
   3855     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004757: call dword ptr [0x3616f304] */
   3856     RECOMP_FLAGS_IN();
   3857     ecx = eax; /* 0x3600475D: mov ecx, eax */
   3858     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600475F: call dword ptr [0x3616f2e8] */
   3859     RECOMP_FLAGS_IN();
   3860     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36004765: ret  */
   3861     RECOMP_REGS_OUT();
   3862 }
   3863 
   3864 void sub_36004770(void) {
   3865     int _fpu_cmp = 0;
   3866     uint32_t _cf = 0;
   3867     int _df = 1;
   3868     uint32_t _flag_k = FK_NONE;
   3869     uint32_t _flag_a = 0, _flag_b = 0;
   3870     uint32_t _itail_tgt = 0;
   3871     RECOMP_REGS_LOCALS
   3872     RECOMP_ENTER(0x36004770u);
   3873 
   3874 L_36004770:
   3875     PUSH32(esp, 0x111u); /* 0x36004770: push 0x111 */
   3876     PUSH32(esp, 0x1Au); /* 0x36004775: push 0x1a */
   3877     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004777: call dword ptr [0x3616f304] */
   3878     RECOMP_FLAGS_IN();
   3879     ecx = eax; /* 0x3600477D: mov ecx, eax */
   3880     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600477F: call dword ptr [0x3616f2e8] */
   3881     RECOMP_FLAGS_IN();
   3882     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36004785: ret  */
   3883     RECOMP_REGS_OUT();
   3884 }
   3885 
   3886 void sub_36004790(void) {
   3887     int _fpu_cmp = 0;
   3888     uint32_t _cf = 0;
   3889     int _df = 1;
   3890     uint32_t _flag_k = FK_NONE;
   3891     uint32_t _flag_a = 0, _flag_b = 0;
   3892     uint32_t _itail_tgt = 0;
   3893     RECOMP_REGS_LOCALS
   3894     RECOMP_ENTER(0x36004790u);
   3895 
   3896 L_36004790:
   3897     PUSH32(esp, 0x110u); /* 0x36004790: push 0x110 */
   3898     PUSH32(esp, 0x1Au); /* 0x36004795: push 0x1a */
   3899     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004797: call dword ptr [0x3616f304] */
   3900     RECOMP_FLAGS_IN();
   3901     ecx = eax; /* 0x3600479D: mov ecx, eax */
   3902     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600479F: call dword ptr [0x3616f2e8] */
   3903     RECOMP_FLAGS_IN();
   3904     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360047A5: ret  */
   3905     RECOMP_REGS_OUT();
   3906 }
   3907 
   3908 void sub_360047B0(void) {
   3909     int _fpu_cmp = 0;
   3910     uint32_t _cf = 0;
   3911     int _df = 1;
   3912     uint32_t _flag_k = FK_NONE;
   3913     uint32_t _flag_a = 0, _flag_b = 0;
   3914     uint32_t _itail_tgt = 0;
   3915     RECOMP_REGS_LOCALS
   3916     RECOMP_ENTER(0x360047B0u);
   3917 
   3918 L_360047B0:
   3919     PUSH32(esp, ebp); /* 0x360047B0: push ebp */
   3920     ebp = esp; /* 0x360047B1: mov ebp, esp */
   3921     eax = MEM32(ebp + 0x8); /* 0x360047B3: mov eax, dword ptr [ebp + 8] */
   3922     PUSH32(esp, eax); /* 0x360047B6: push eax */
   3923     PUSH32(esp, 0x73u); /* 0x360047B7: push 0x73 */
   3924     PUSH32(esp, 0x1Au); /* 0x360047B9: push 0x1a */
   3925     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360047BB: call dword ptr [0x3616f304] */
   3926     RECOMP_FLAGS_IN();
   3927     ecx = eax; /* 0x360047C1: mov ecx, eax */
   3928     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x360047C3: call dword ptr [0x3616f30c] */
   3929     RECOMP_FLAGS_IN();
   3930     ebp = POP32_VAL(esp); /* 0x360047C9: pop ebp */
   3931     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360047CA: ret 4 */
   3932     RECOMP_REGS_OUT();
   3933 }
   3934 
   3935 void sub_360047D0(void) {
   3936     int _fpu_cmp = 0;
   3937     uint32_t _cf = 0;
   3938     int _df = 1;
   3939     uint32_t _flag_k = FK_NONE;
   3940     uint32_t _flag_a = 0, _flag_b = 0;
   3941     uint32_t _itail_tgt = 0;
   3942     RECOMP_REGS_LOCALS
   3943     RECOMP_ENTER(0x360047D0u);
   3944 
   3945 L_360047D0:
   3946     PUSH32(esp, 0xE8u); /* 0x360047D0: push 0xe8 */
   3947     PUSH32(esp, 0x12u); /* 0x360047D5: push 0x12 */
   3948     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360047D7: call dword ptr [0x3616f304] */
   3949     RECOMP_FLAGS_IN();
   3950     ecx = eax; /* 0x360047DD: mov ecx, eax */
   3951     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x360047DF: call dword ptr [0x3616f2e8] */
   3952     RECOMP_FLAGS_IN();
   3953     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360047E5: ret  */
   3954     RECOMP_REGS_OUT();
   3955 }
   3956 
   3957 void sub_360047F0(void) {
   3958     int _fpu_cmp = 0;
   3959     uint32_t _cf = 0;
   3960     int _df = 1;
   3961     uint32_t _flag_k = FK_NONE;
   3962     uint32_t _flag_a = 0, _flag_b = 0;
   3963     uint32_t _itail_tgt = 0;
   3964     RECOMP_REGS_LOCALS
   3965     RECOMP_ENTER(0x360047F0u);
   3966 
   3967 L_360047F0:
   3968     PUSH32(esp, ebp); /* 0x360047F0: push ebp */
   3969     ebp = esp; /* 0x360047F1: mov ebp, esp */
   3970     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   3971     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3972     esp = esp - 0x18u; /* 0x360047F3: sub esp, 0x18 */
   3973     _flag_k = FK_CMP;
   3974     PUSH32(esp, esi); /* 0x360047F6: push esi */
   3975     PUSH32(esp, edi); /* 0x360047F7: push edi */
   3976     eax = ecx; /* 0x360047F8: mov eax, ecx */
   3977     ecx = 5; /* 0x360047FA: mov ecx, 5 */
   3978     esi = 0x361B3208u; /* 0x360047FF: mov esi, 0x361b3208 */
   3979     edi = ebp + (-0x18); /* 0x36004804: lea edi, [ebp - 0x18] */
   3980     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36004807: 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; }
   3981     MEM16(edi) = MEM16(esi); esi += _df * 2; edi += _df * 2; /* 0x36004809: movsw word ptr es:[edi], word ptr [esi] */
   3982     PUSH32(esp, 0); /* 0x3600480B: push 0 */
   3983     ecx = ebp + (-0x18); /* 0x3600480D: lea ecx, [ebp - 0x18] */
   3984     PUSH32(esp, ecx); /* 0x36004810: push ecx */
   3985     ecx = eax; /* 0x36004811: mov ecx, eax */
   3986     MEM8(edi) = MEM8(esi); esi += _df; edi += _df; /* 0x36004813: movsb byte ptr es:[edi], byte ptr [esi] */
   3987     RECOMP_ICALL(0x36004600u); /* 0x36004814: call 0x36004600 */ /* not lifted */
   3988     RECOMP_FLAGS_IN();
   3989     edi = POP32_VAL(esp); /* 0x36004819: pop edi */
   3990     esi = POP32_VAL(esp); /* 0x3600481A: pop esi */
   3991     esp = ebp; /* 0x3600481B: mov esp, ebp */
   3992     ebp = POP32_VAL(esp); /* 0x3600481D: pop ebp */
   3993     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3600481E: ret 4 */
   3994     RECOMP_REGS_OUT();
   3995 }
   3996 
   3997 void sub_36004830(void) {
   3998     int _fpu_cmp = 0;
   3999     uint32_t _cf = 0;
   4000     int _df = 1;
   4001     uint32_t _flag_k = FK_NONE;
   4002     uint32_t _flag_a = 0, _flag_b = 0;
   4003     uint32_t _itail_tgt = 0;
   4004     RECOMP_REGS_LOCALS
   4005     RECOMP_ENTER(0x36004830u);
   4006 
   4007 L_36004830:
   4008     PUSH32(esp, ebp); /* 0x36004830: push ebp */
   4009     ebp = esp; /* 0x36004831: mov ebp, esp */
   4010     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   4011     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4012     esp = esp - 0x18u; /* 0x36004833: sub esp, 0x18 */
   4013     _flag_k = FK_CMP;
   4014     PUSH32(esp, esi); /* 0x36004836: push esi */
   4015     PUSH32(esp, edi); /* 0x36004837: push edi */
   4016     eax = ecx; /* 0x36004838: mov eax, ecx */
   4017     ecx = 5; /* 0x3600483A: mov ecx, 5 */
   4018     esi = 0x361B3220u; /* 0x3600483F: mov esi, 0x361b3220 */
   4019     edi = ebp + (-0x18); /* 0x36004844: lea edi, [ebp - 0x18] */
   4020     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36004847: 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; }
   4021     PUSH32(esp, 0); /* 0x36004849: push 0 */
   4022     ecx = ebp + (-0x18); /* 0x3600484B: lea ecx, [ebp - 0x18] */
   4023     PUSH32(esp, ecx); /* 0x3600484E: push ecx */
   4024     ecx = eax; /* 0x3600484F: mov ecx, eax */
   4025     MEM16(edi) = MEM16(esi); esi += _df * 2; edi += _df * 2; /* 0x36004851: movsw word ptr es:[edi], word ptr [esi] */
   4026     RECOMP_ICALL(0x36004600u); /* 0x36004853: call 0x36004600 */ /* not lifted */
   4027     RECOMP_FLAGS_IN();
   4028     edi = POP32_VAL(esp); /* 0x36004858: pop edi */
   4029     esi = POP32_VAL(esp); /* 0x36004859: pop esi */
   4030     esp = ebp; /* 0x3600485A: mov esp, ebp */
   4031     ebp = POP32_VAL(esp); /* 0x3600485C: pop ebp */
   4032     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3600485D: ret 4 */
   4033     RECOMP_REGS_OUT();
   4034 }
   4035 
   4036 void sub_36004860(void) {
   4037     int _fpu_cmp = 0;
   4038     uint32_t _cf = 0;
   4039     int _df = 1;
   4040     uint32_t _flag_k = FK_NONE;
   4041     uint32_t _flag_a = 0, _flag_b = 0;
   4042     uint32_t _itail_tgt = 0;
   4043     RECOMP_REGS_LOCALS
   4044     RECOMP_ENTER(0x36004860u);
   4045 
   4046 L_36004860:
   4047     PUSH32(esp, ebp); /* 0x36004860: push ebp */
   4048     ebp = esp; /* 0x36004861: mov ebp, esp */
   4049     PUSH32(esp, esi); /* 0x36004863: push esi */
   4050     esi = MEM32(0x3616F304); /* 0x36004864: mov esi, dword ptr [0x3616f304] */
   4051     eax = ebp + 0x8; /* 0x3600486A: lea eax, [ebp + 8] */
   4052     PUSH32(esp, eax); /* 0x3600486D: push eax */
   4053     PUSH32(esp, 0xABu); /* 0x3600486E: push 0xab */
   4054     PUSH32(esp, 0x24u); /* 0x36004873: push 0x24 */
   4055     RECOMP_ICALL(esi); /* 0x36004875: call esi */
   4056     RECOMP_FLAGS_IN();
   4057     ecx = eax; /* 0x36004877: mov ecx, eax */
   4058     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004879: call dword ptr [0x3616f30c] */
   4059     RECOMP_FLAGS_IN();
   4060     ecx = MEM32(ebp + 0x10); /* 0x3600487F: mov ecx, dword ptr [ebp + 0x10] */
   4061     PUSH32(esp, ecx); /* 0x36004882: push ecx */
   4062     RECOMP_ICALL(esi); /* 0x36004883: call esi */
   4063     RECOMP_FLAGS_IN();
   4064     ecx = eax; /* 0x36004885: mov ecx, eax */
   4065     RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36004887: call dword ptr [0x3616f2fc] */
   4066     RECOMP_FLAGS_IN();
   4067     esi = POP32_VAL(esp); /* 0x3600488D: pop esi */
   4068     ebp = POP32_VAL(esp); /* 0x3600488E: pop ebp */
   4069     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3600488F: ret 0xc */
   4070     RECOMP_REGS_OUT();
   4071 }
   4072 
   4073 void sub_360048A0(void) {
   4074     int _fpu_cmp = 0;
   4075     uint32_t _cf = 0;
   4076     int _df = 1;
   4077     uint32_t _flag_k = FK_NONE;
   4078     uint32_t _flag_a = 0, _flag_b = 0;
   4079     uint32_t _itail_tgt = 0;
   4080     RECOMP_REGS_LOCALS
   4081     RECOMP_ENTER(0x360048A0u);
   4082 
   4083 L_360048A0:
   4084     PUSH32(esp, ebp); /* 0x360048A0: push ebp */
   4085     ebp = esp; /* 0x360048A1: mov ebp, esp */
   4086     eax = MEM32(ebp + 0x8); /* 0x360048A3: mov eax, dword ptr [ebp + 8] */
   4087     PUSH32(esp, 0x28u); /* 0x360048A6: push 0x28 */
   4088     PUSH32(esp, eax); /* 0x360048A8: push eax */
   4089     PUSH32(esp, 0xCCu); /* 0x360048A9: push 0xcc */
   4090     PUSH32(esp, 0x24u); /* 0x360048AE: push 0x24 */
   4091     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360048B0: call dword ptr [0x3616f304] */
   4092     RECOMP_FLAGS_IN();
   4093     ecx = eax; /* 0x360048B6: mov ecx, eax */
   4094     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x360048B8: call dword ptr [0x3616f310] */
   4095     RECOMP_FLAGS_IN();
   4096     ebp = POP32_VAL(esp); /* 0x360048BE: pop ebp */
   4097     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360048BF: ret 4 */
   4098     RECOMP_REGS_OUT();
   4099 }
   4100 
   4101 void sub_360048D0(void) {
   4102     int _fpu_cmp = 0;
   4103     uint32_t _cf = 0;
   4104     int _df = 1;
   4105     uint32_t _flag_k = FK_NONE;
   4106     uint32_t _flag_a = 0, _flag_b = 0;
   4107     uint32_t _itail_tgt = 0;
   4108     RECOMP_REGS_LOCALS
   4109     RECOMP_ENTER(0x360048D0u);
   4110 
   4111 L_360048D0:
   4112     PUSH32(esp, ebp); /* 0x360048D0: push ebp */
   4113     ebp = esp; /* 0x360048D1: mov ebp, esp */
   4114     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4116     esp = esp - 8; /* 0x360048D3: sub esp, 8 */
   4117     _flag_k = FK_CMP;
   4118     PUSH32(esp, esi); /* 0x360048D6: push esi */
   4119     esi = MEM32(0x3616F304); /* 0x360048D7: mov esi, dword ptr [0x3616f304] */
   4120     eax = ebp + (-0x8); /* 0x360048DD: lea eax, [ebp - 8] */
   4121     PUSH32(esp, eax); /* 0x360048E0: push eax */
   4122     PUSH32(esp, 0xABu); /* 0x360048E1: push 0xab */
   4123     PUSH32(esp, 0x24u); /* 0x360048E6: push 0x24 */
   4124     MEM32(ebp + (-0x8)) = 0; /* 0x360048E8: mov dword ptr [ebp - 8], 0 */
   4125     MEM32(ebp + (-0x4)) = 0; /* 0x360048EF: mov dword ptr [ebp - 4], 0 */
   4126     RECOMP_ICALL(esi); /* 0x360048F6: call esi */
   4127     RECOMP_FLAGS_IN();
   4128     ecx = eax; /* 0x360048F8: mov ecx, eax */
   4129     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x360048FA: call dword ptr [0x3616f30c] */
   4130     RECOMP_FLAGS_IN();
   4131     PUSH32(esp, 0); /* 0x36004900: push 0 */
   4132     RECOMP_ICALL(esi); /* 0x36004902: call esi */
   4133     RECOMP_FLAGS_IN();
   4134     ecx = eax; /* 0x36004904: mov ecx, eax */
   4135     RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36004906: call dword ptr [0x3616f2fc] */
   4136     RECOMP_FLAGS_IN();
   4137     esi = POP32_VAL(esp); /* 0x3600490C: pop esi */
   4138     esp = ebp; /* 0x3600490D: mov esp, ebp */
   4139     ebp = POP32_VAL(esp); /* 0x3600490F: pop ebp */
   4140     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36004910: ret  */
   4141     RECOMP_REGS_OUT();
   4142 }
   4143 
   4144 void sub_36004920(void) {
   4145     int _fpu_cmp = 0;
   4146     uint32_t _cf = 0;
   4147     int _df = 1;
   4148     uint32_t _flag_k = FK_NONE;
   4149     uint32_t _flag_a = 0, _flag_b = 0;
   4150     uint32_t _itail_tgt = 0;
   4151     RECOMP_REGS_LOCALS
   4152     RECOMP_ENTER(0x36004920u);
   4153 
   4154 L_36004920:
   4155     PUSH32(esp, 0xCAu); /* 0x36004920: push 0xca */
   4156     PUSH32(esp, 0x24u); /* 0x36004925: push 0x24 */
   4157     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004927: call dword ptr [0x3616f304] */
   4158     RECOMP_FLAGS_IN();
   4159     ecx = eax; /* 0x3600492D: mov ecx, eax */
   4160     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600492F: call dword ptr [0x3616f2e8] */
   4161     RECOMP_FLAGS_IN();
   4162     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36004935: ret  */
   4163     RECOMP_REGS_OUT();
   4164 }
   4165 
   4166 void sub_36004940(void) {
   4167     int _fpu_cmp = 0;
   4168     uint32_t _cf = 0;
   4169     int _df = 1;
   4170     uint32_t _flag_k = FK_NONE;
   4171     uint32_t _flag_a = 0, _flag_b = 0;
   4172     uint32_t _itail_tgt = 0;
   4173     RECOMP_REGS_LOCALS
   4174     RECOMP_ENTER(0x36004940u);
   4175 
   4176 L_36004940:
   4177     PUSH32(esp, ebp); /* 0x36004940: push ebp */
   4178     ebp = esp; /* 0x36004941: mov ebp, esp */
   4179     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4181     esp = esp - 8; /* 0x36004943: sub esp, 8 */
   4182     _flag_k = FK_CMP;
   4183     eax = MEM32(ebp + 0x8); /* 0x36004946: mov eax, dword ptr [ebp + 8] */
   4184     ecx = ebp + (-0x8); /* 0x36004949: lea ecx, [ebp - 8] */
   4185     /* cmp ecx, eax */ /* 0x3600494C: cmp ecx, eax */
   4186     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4188     _flag_k = FK_CMP;
   4189     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600495B; /* 0x3600494E: je 0x3600495b */
   4190 L_36004950:
   4191     edx = MEM32(eax); /* 0x36004950: mov edx, dword ptr [eax] */
   4192     eax = MEM32(eax + 0x4); /* 0x36004952: mov eax, dword ptr [eax + 4] */
   4193     MEM32(ebp + (-0x8)) = edx; /* 0x36004955: mov dword ptr [ebp - 8], edx */
   4194     MEM32(ebp + (-0x4)) = eax; /* 0x36004958: mov dword ptr [ebp - 4], eax */
   4195 L_3600495B:
   4196     ecx = ebp + (-0x8); /* 0x3600495B: lea ecx, [ebp - 8] */
   4197     PUSH32(esp, ecx); /* 0x3600495E: push ecx */
   4198     PUSH32(esp, 0x165u); /* 0x3600495F: push 0x165 */
   4199     PUSH32(esp, 0x2Du); /* 0x36004964: push 0x2d */
   4200     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004966: call dword ptr [0x3616f304] */
   4201     RECOMP_FLAGS_IN();
   4202     ecx = eax; /* 0x3600496C: mov ecx, eax */
   4203     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x3600496E: call dword ptr [0x3616f30c] */
   4204     RECOMP_FLAGS_IN();
   4205     esp = ebp; /* 0x36004974: mov esp, ebp */
   4206     ebp = POP32_VAL(esp); /* 0x36004976: pop ebp */
   4207     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004977: ret 0xc */
   4208     RECOMP_REGS_OUT();
   4209 }
   4210 
   4211 void sub_36004980(void) {
   4212     int _fpu_cmp = 0;
   4213     uint32_t _cf = 0;
   4214     int _df = 1;
   4215     uint32_t _flag_k = FK_NONE;
   4216     uint32_t _flag_a = 0, _flag_b = 0;
   4217     uint32_t _itail_tgt = 0;
   4218     RECOMP_REGS_LOCALS
   4219     RECOMP_ENTER(0x36004980u);
   4220 
   4221 L_36004980:
   4222     PUSH32(esp, ebp); /* 0x36004980: push ebp */
   4223     ebp = esp; /* 0x36004981: mov ebp, esp */
   4224     eax = MEM32(ebp + 0x8); /* 0x36004983: mov eax, dword ptr [ebp + 8] */
   4225     PUSH32(esp, eax); /* 0x36004986: push eax */
   4226     PUSH32(esp, 0x158u); /* 0x36004987: push 0x158 */
   4227     PUSH32(esp, 0x2Du); /* 0x3600498C: push 0x2d */
   4228     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x3600498E: call dword ptr [0x3616f304] */
   4229     RECOMP_FLAGS_IN();
   4230     ecx = eax; /* 0x36004994: mov ecx, eax */
   4231     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004996: call dword ptr [0x3616f30c] */
   4232     RECOMP_FLAGS_IN();
   4233     ebp = POP32_VAL(esp); /* 0x3600499C: pop ebp */
   4234     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3600499D: ret 4 */
   4235     RECOMP_REGS_OUT();
   4236 }
   4237 
   4238 void sub_360049A0(void) {
   4239     int _fpu_cmp = 0;
   4240     uint32_t _cf = 0;
   4241     int _df = 1;
   4242     uint32_t _flag_k = FK_NONE;
   4243     uint32_t _flag_a = 0, _flag_b = 0;
   4244     uint32_t _itail_tgt = 0;
   4245     RECOMP_REGS_LOCALS
   4246     RECOMP_ENTER(0x360049A0u);
   4247 
   4248 L_360049A0:
   4249     PUSH32(esp, ebp); /* 0x360049A0: push ebp */
   4250     ebp = esp; /* 0x360049A1: mov ebp, esp */
   4251     eax = MEM32(ebp + 0x8); /* 0x360049A3: mov eax, dword ptr [ebp + 8] */
   4252     PUSH32(esp, eax); /* 0x360049A6: push eax */
   4253     PUSH32(esp, 0x159u); /* 0x360049A7: push 0x159 */
   4254     PUSH32(esp, 0x2Du); /* 0x360049AC: push 0x2d */
   4255     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360049AE: call dword ptr [0x3616f304] */
   4256     RECOMP_FLAGS_IN();
   4257     ecx = eax; /* 0x360049B4: mov ecx, eax */
   4258     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x360049B6: call dword ptr [0x3616f30c] */
   4259     RECOMP_FLAGS_IN();
   4260     ebp = POP32_VAL(esp); /* 0x360049BC: pop ebp */
   4261     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360049BD: ret 4 */
   4262     RECOMP_REGS_OUT();
   4263 }
   4264 
   4265 void sub_360049C0(void) {
   4266     int _fpu_cmp = 0;
   4267     uint32_t _cf = 0;
   4268     int _df = 1;
   4269     uint32_t _flag_k = FK_NONE;
   4270     uint32_t _flag_a = 0, _flag_b = 0;
   4271     uint32_t _itail_tgt = 0;
   4272     RECOMP_REGS_LOCALS
   4273     RECOMP_ENTER(0x360049C0u);
   4274 
   4275 L_360049C0:
   4276     PUSH32(esp, ebp); /* 0x360049C0: push ebp */
   4277     ebp = esp; /* 0x360049C1: mov ebp, esp */
   4278     eax = MEM32(ebp + 0x8); /* 0x360049C3: mov eax, dword ptr [ebp + 8] */
   4279     PUSH32(esp, eax); /* 0x360049C6: push eax */
   4280     PUSH32(esp, 0x15Au); /* 0x360049C7: push 0x15a */
   4281     PUSH32(esp, 0x2Du); /* 0x360049CC: push 0x2d */
   4282     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360049CE: call dword ptr [0x3616f304] */
   4283     RECOMP_FLAGS_IN();
   4284     ecx = eax; /* 0x360049D4: mov ecx, eax */
   4285     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x360049D6: call dword ptr [0x3616f30c] */
   4286     RECOMP_FLAGS_IN();
   4287     ebp = POP32_VAL(esp); /* 0x360049DC: pop ebp */
   4288     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360049DD: ret 4 */
   4289     RECOMP_REGS_OUT();
   4290 }
   4291 
   4292 void sub_360049E0(void) {
   4293     int _fpu_cmp = 0;
   4294     uint32_t _cf = 0;
   4295     int _df = 1;
   4296     uint32_t _flag_k = FK_NONE;
   4297     uint32_t _flag_a = 0, _flag_b = 0;
   4298     uint32_t _itail_tgt = 0;
   4299     RECOMP_REGS_LOCALS
   4300     RECOMP_ENTER(0x360049E0u);
   4301 
   4302 L_360049E0:
   4303     PUSH32(esp, 0x19Du); /* 0x360049E0: push 0x19d */
   4304     PUSH32(esp, 0xEu); /* 0x360049E5: push 0xe */
   4305     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360049E7: call dword ptr [0x3616f304] */
   4306     RECOMP_FLAGS_IN();
   4307     ecx = eax; /* 0x360049ED: mov ecx, eax */
   4308     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x360049EF: call dword ptr [0x3616f2e8] */
   4309     RECOMP_FLAGS_IN();
   4310     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360049F5: ret  */
   4311     RECOMP_REGS_OUT();
   4312 }
   4313 
   4314 void sub_36004A00(void) {
   4315     int _fpu_cmp = 0;
   4316     uint32_t _cf = 0;
   4317     int _df = 1;
   4318     uint32_t _flag_k = FK_NONE;
   4319     uint32_t _flag_a = 0, _flag_b = 0;
   4320     uint32_t _itail_tgt = 0;
   4321     RECOMP_REGS_LOCALS
   4322     RECOMP_ENTER(0x36004A00u);
   4323 
   4324 L_36004A00:
   4325     PUSH32(esp, ebp); /* 0x36004A00: push ebp */
   4326     ebp = esp; /* 0x36004A01: mov ebp, esp */
   4327     eax = MEM32(ebp + 0x8); /* 0x36004A03: mov eax, dword ptr [ebp + 8] */
   4328     PUSH32(esp, eax); /* 0x36004A06: push eax */
   4329     PUSH32(esp, 0x13Au); /* 0x36004A07: push 0x13a */
   4330     PUSH32(esp, 0xEu); /* 0x36004A0C: push 0xe */
   4331     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004A0E: call dword ptr [0x3616f304] */
   4332     RECOMP_FLAGS_IN();
   4333     ecx = eax; /* 0x36004A14: mov ecx, eax */
   4334     RECOMP_ICALL(MEM32(0x3616F2D0)); /* 0x36004A16: call dword ptr [0x3616f2d0] */
   4335     RECOMP_FLAGS_IN();
   4336     ebp = POP32_VAL(esp); /* 0x36004A1C: pop ebp */
   4337     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004A1D: ret 4 */
   4338     RECOMP_REGS_OUT();
   4339 }
   4340 
   4341 void sub_36004A20(void) {
   4342     int _fpu_cmp = 0;
   4343     uint32_t _cf = 0;
   4344     int _df = 1;
   4345     uint32_t _flag_k = FK_NONE;
   4346     uint32_t _flag_a = 0, _flag_b = 0;
   4347     uint32_t _itail_tgt = 0;
   4348     RECOMP_REGS_LOCALS
   4349     RECOMP_ENTER(0x36004A20u);
   4350 
   4351 L_36004A20:
   4352     PUSH32(esp, ebp); /* 0x36004A20: push ebp */
   4353     ebp = esp; /* 0x36004A21: mov ebp, esp */
   4354     eax = MEM32(ebp + 0x8); /* 0x36004A23: mov eax, dword ptr [ebp + 8] */
   4355     PUSH32(esp, eax); /* 0x36004A26: push eax */
   4356     PUSH32(esp, 0x153u); /* 0x36004A27: push 0x153 */
   4357     PUSH32(esp, 0x32u); /* 0x36004A2C: push 0x32 */
   4358     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004A2E: call dword ptr [0x3616f304] */
   4359     RECOMP_FLAGS_IN();
   4360     ecx = eax; /* 0x36004A34: mov ecx, eax */
   4361     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004A36: call dword ptr [0x3616f30c] */
   4362     RECOMP_FLAGS_IN();
   4363     ebp = POP32_VAL(esp); /* 0x36004A3C: pop ebp */
   4364     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004A3D: ret 4 */
   4365     RECOMP_REGS_OUT();
   4366 }
   4367 
   4368 void sub_36004A40(void) {
   4369     int _fpu_cmp = 0;
   4370     uint32_t _cf = 0;
   4371     int _df = 1;
   4372     uint32_t _flag_k = FK_NONE;
   4373     uint32_t _flag_a = 0, _flag_b = 0;
   4374     uint32_t _itail_tgt = 0;
   4375     RECOMP_REGS_LOCALS
   4376     RECOMP_ENTER(0x36004A40u);
   4377 
   4378 L_36004A40:
   4379     PUSH32(esp, ebp); /* 0x36004A40: push ebp */
   4380     ebp = esp; /* 0x36004A41: mov ebp, esp */
   4381     eax = MEM32(ebp + 0x8); /* 0x36004A43: mov eax, dword ptr [ebp + 8] */
   4382     PUSH32(esp, eax); /* 0x36004A46: push eax */
   4383     PUSH32(esp, 0x154u); /* 0x36004A47: push 0x154 */
   4384     PUSH32(esp, 0x32u); /* 0x36004A4C: push 0x32 */
   4385     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004A4E: call dword ptr [0x3616f304] */
   4386     RECOMP_FLAGS_IN();
   4387     ecx = eax; /* 0x36004A54: mov ecx, eax */
   4388     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004A56: call dword ptr [0x3616f30c] */
   4389     RECOMP_FLAGS_IN();
   4390     ebp = POP32_VAL(esp); /* 0x36004A5C: pop ebp */
   4391     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004A5D: ret 4 */
   4392     RECOMP_REGS_OUT();
   4393 }
   4394 
   4395 void sub_36004A60(void) {
   4396     int _fpu_cmp = 0;
   4397     uint32_t _cf = 0;
   4398     int _df = 1;
   4399     uint32_t _flag_k = FK_NONE;
   4400     uint32_t _flag_a = 0, _flag_b = 0;
   4401     uint32_t _itail_tgt = 0;
   4402     RECOMP_REGS_LOCALS
   4403     RECOMP_ENTER(0x36004A60u);
   4404 
   4405 L_36004A60:
   4406     PUSH32(esp, ebp); /* 0x36004A60: push ebp */
   4407     ebp = esp; /* 0x36004A61: mov ebp, esp */
   4408     edx = MEM32(ebp + 0x8); /* 0x36004A63: mov edx, dword ptr [ebp + 8] */
   4409     PUSH32(esp, edi); /* 0x36004A66: push edi */
   4410     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4411     ecx = ecx | 0xFFFFFFFFu; /* 0x36004A67: or ecx, 0xffffffff */
   4412     _cf = 0;
   4413     _flag_k = FK_TEST;
   4414     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4415     eax = 0; /* 0x36004A6A: xor eax, eax */
   4416     _cf = 0;
   4417     _flag_k = FK_TEST;
   4418     edi = edx; /* 0x36004A6C: mov edi, edx */
   4419     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; } /* 0x36004A6E: repne scasb al, byte ptr es:[edi] */
   4420     ecx = ~ecx; /* 0x36004A70: not ecx */
   4421     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4422     ecx = ecx - 1; /* 0x36004A72: dec ecx */
   4423     _flag_k = FK_DEC;
   4424     PUSH32(esp, ecx); /* 0x36004A73: push ecx */
   4425     PUSH32(esp, edx); /* 0x36004A74: push edx */
   4426     PUSH32(esp, 0x94u); /* 0x36004A75: push 0x94 */
   4427     PUSH32(esp, 3); /* 0x36004A7A: push 3 */
   4428     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004A7C: call dword ptr [0x3616f304] */
   4429     RECOMP_FLAGS_IN();
   4430     ecx = eax; /* 0x36004A82: mov ecx, eax */
   4431     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36004A84: call dword ptr [0x3616f310] */
   4432     RECOMP_FLAGS_IN();
   4433     edi = POP32_VAL(esp); /* 0x36004A8A: pop edi */
   4434     ebp = POP32_VAL(esp); /* 0x36004A8B: pop ebp */
   4435     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004A8C: ret 4 */
   4436     RECOMP_REGS_OUT();
   4437 }
   4438 
   4439 void sub_36004A90(void) {
   4440     int _fpu_cmp = 0;
   4441     uint32_t _cf = 0;
   4442     int _df = 1;
   4443     uint32_t _flag_k = FK_NONE;
   4444     uint32_t _flag_a = 0, _flag_b = 0;
   4445     uint32_t _itail_tgt = 0;
   4446     RECOMP_REGS_LOCALS
   4447     RECOMP_ENTER(0x36004A90u);
   4448 
   4449 L_36004A90:
   4450     PUSH32(esp, ebp); /* 0x36004A90: push ebp */
   4451     ebp = esp; /* 0x36004A91: mov ebp, esp */
   4452     PUSH32(esp, ebx); /* 0x36004A93: push ebx */
   4453     PUSH32(esp, esi); /* 0x36004A94: push esi */
   4454     esi = MEM32(ebp + 0x8); /* 0x36004A95: mov esi, dword ptr [ebp + 8] */
   4455     PUSH32(esp, edi); /* 0x36004A98: push edi */
   4456     edi = MEM32(0x3616F304); /* 0x36004A99: mov edi, dword ptr [0x3616f304] */
   4457     PUSH32(esp, esi); /* 0x36004A9F: push esi */
   4458     PUSH32(esp, 0x101u); /* 0x36004AA0: push 0x101 */
   4459     PUSH32(esp, 0x30u); /* 0x36004AA5: push 0x30 */
   4460     RECOMP_ICALL(edi); /* 0x36004AA7: call edi */
   4461     RECOMP_FLAGS_IN();
   4462     ebx = MEM32(0x3616F30C); /* 0x36004AA9: mov ebx, dword ptr [0x3616f30c] */
   4463     ecx = eax; /* 0x36004AAF: mov ecx, eax */
   4464     RECOMP_ICALL(ebx); /* 0x36004AB1: call ebx */
   4465     RECOMP_FLAGS_IN();
   4466     PUSH32(esp, esi); /* 0x36004AB3: push esi */
   4467     PUSH32(esp, 0x101u); /* 0x36004AB4: push 0x101 */
   4468     PUSH32(esp, 0x18u); /* 0x36004AB9: push 0x18 */
   4469     RECOMP_ICALL(edi); /* 0x36004ABB: call edi */
   4470     RECOMP_FLAGS_IN();
   4471     ecx = eax; /* 0x36004ABD: mov ecx, eax */
   4472     RECOMP_ICALL(ebx); /* 0x36004ABF: call ebx */
   4473     RECOMP_FLAGS_IN();
   4474     edi = POP32_VAL(esp); /* 0x36004AC1: pop edi */
   4475     esi = POP32_VAL(esp); /* 0x36004AC2: pop esi */
   4476     ebx = POP32_VAL(esp); /* 0x36004AC3: pop ebx */
   4477     ebp = POP32_VAL(esp); /* 0x36004AC4: pop ebp */
   4478     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004AC5: ret 4 */
   4479     RECOMP_REGS_OUT();
   4480 }
   4481 
   4482 void sub_36004AD0(void) {
   4483     int _fpu_cmp = 0;
   4484     uint32_t _cf = 0;
   4485     int _df = 1;
   4486     uint32_t _flag_k = FK_NONE;
   4487     uint32_t _flag_a = 0, _flag_b = 0;
   4488     uint32_t _itail_tgt = 0;
   4489     RECOMP_REGS_LOCALS
   4490     RECOMP_ENTER(0x36004AD0u);
   4491 
   4492 L_36004AD0:
   4493     PUSH32(esp, ebp); /* 0x36004AD0: push ebp */
   4494     ebp = esp; /* 0x36004AD1: mov ebp, esp */
   4495     PUSH32(esp, ebx); /* 0x36004AD3: push ebx */
   4496     PUSH32(esp, esi); /* 0x36004AD4: push esi */
   4497     esi = MEM32(ebp + 0x8); /* 0x36004AD5: mov esi, dword ptr [ebp + 8] */
   4498     PUSH32(esp, edi); /* 0x36004AD8: push edi */
   4499     edi = MEM32(0x3616F304); /* 0x36004AD9: mov edi, dword ptr [0x3616f304] */
   4500     PUSH32(esp, esi); /* 0x36004ADF: push esi */
   4501     PUSH32(esp, 0x102u); /* 0x36004AE0: push 0x102 */
   4502     PUSH32(esp, 0x30u); /* 0x36004AE5: push 0x30 */
   4503     RECOMP_ICALL(edi); /* 0x36004AE7: call edi */
   4504     RECOMP_FLAGS_IN();
   4505     ebx = MEM32(0x3616F30C); /* 0x36004AE9: mov ebx, dword ptr [0x3616f30c] */
   4506     ecx = eax; /* 0x36004AEF: mov ecx, eax */
   4507     RECOMP_ICALL(ebx); /* 0x36004AF1: call ebx */
   4508     RECOMP_FLAGS_IN();
   4509     PUSH32(esp, esi); /* 0x36004AF3: push esi */
   4510     PUSH32(esp, 0x102u); /* 0x36004AF4: push 0x102 */
   4511     PUSH32(esp, 0x18u); /* 0x36004AF9: push 0x18 */
   4512     RECOMP_ICALL(edi); /* 0x36004AFB: call edi */
   4513     RECOMP_FLAGS_IN();
   4514     ecx = eax; /* 0x36004AFD: mov ecx, eax */
   4515     RECOMP_ICALL(ebx); /* 0x36004AFF: call ebx */
   4516     RECOMP_FLAGS_IN();
   4517     edi = POP32_VAL(esp); /* 0x36004B01: pop edi */
   4518     esi = POP32_VAL(esp); /* 0x36004B02: pop esi */
   4519     ebx = POP32_VAL(esp); /* 0x36004B03: pop ebx */
   4520     ebp = POP32_VAL(esp); /* 0x36004B04: pop ebp */
   4521     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004B05: ret 4 */
   4522     RECOMP_REGS_OUT();
   4523 }
   4524 
   4525 void sub_36004B10(void) {
   4526     int _fpu_cmp = 0;
   4527     uint32_t _cf = 0;
   4528     int _df = 1;
   4529     uint32_t _flag_k = FK_NONE;
   4530     uint32_t _flag_a = 0, _flag_b = 0;
   4531     uint32_t _itail_tgt = 0;
   4532     RECOMP_REGS_LOCALS
   4533     RECOMP_ENTER(0x36004B10u);
   4534 
   4535 L_36004B10:
   4536     PUSH32(esp, ebp); /* 0x36004B10: push ebp */
   4537     ebp = esp; /* 0x36004B11: mov ebp, esp */
   4538     eax = MEM32(ebp + 0x8); /* 0x36004B13: mov eax, dword ptr [ebp + 8] */
   4539     PUSH32(esp, esi); /* 0x36004B16: push esi */
   4540     esi = MEM32(0x3616F304); /* 0x36004B17: mov esi, dword ptr [0x3616f304] */
   4541     PUSH32(esp, eax); /* 0x36004B1D: push eax */
   4542     PUSH32(esp, 0xEEu); /* 0x36004B1E: push 0xee */
   4543     PUSH32(esp, 0x28u); /* 0x36004B23: push 0x28 */
   4544     RECOMP_ICALL(esi); /* 0x36004B25: call esi */
   4545     RECOMP_FLAGS_IN();
   4546     ecx = eax; /* 0x36004B27: mov ecx, eax */
   4547     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004B29: call dword ptr [0x3616f30c] */
   4548     RECOMP_FLAGS_IN();
   4549     ecx = MEM32(ebp + 0xC); /* 0x36004B2F: mov ecx, dword ptr [ebp + 0xc] */
   4550     PUSH32(esp, ecx); /* 0x36004B32: push ecx */
   4551     RECOMP_ICALL(esi); /* 0x36004B33: call esi */
   4552     RECOMP_FLAGS_IN();
   4553     ecx = eax; /* 0x36004B35: mov ecx, eax */
   4554     RECOMP_ICALL(MEM32(0x3616F298)); /* 0x36004B37: call dword ptr [0x3616f298] */
   4555     RECOMP_FLAGS_IN();
   4556     edx = MEM32(ebp + 0x10); /* 0x36004B3D: mov edx, dword ptr [ebp + 0x10] */
   4557     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu);
   4558     edx = edx & 0xFFu; /* 0x36004B40: and edx, 0xff */
   4559     _cf = 0;
   4560     _flag_k = FK_TEST;
   4561     PUSH32(esp, edx); /* 0x36004B46: push edx */
   4562     RECOMP_ICALL(esi); /* 0x36004B47: call esi */
   4563     RECOMP_FLAGS_IN();
   4564     ecx = eax; /* 0x36004B49: mov ecx, eax */
   4565     RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36004B4B: call dword ptr [0x3616f2fc] */
   4566     RECOMP_FLAGS_IN();
   4567     esi = POP32_VAL(esp); /* 0x36004B51: pop esi */
   4568     ebp = POP32_VAL(esp); /* 0x36004B52: pop ebp */
   4569     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004B53: ret 0xc */
   4570     RECOMP_REGS_OUT();
   4571 }
   4572 
   4573 void sub_36004B60(void) {
   4574     int _fpu_cmp = 0;
   4575     uint32_t _cf = 0;
   4576     int _df = 1;
   4577     uint32_t _flag_k = FK_NONE;
   4578     uint32_t _flag_a = 0, _flag_b = 0;
   4579     uint32_t _itail_tgt = 0;
   4580     RECOMP_REGS_LOCALS
   4581     RECOMP_ENTER(0x36004B60u);
   4582 
   4583 L_36004B60:
   4584     PUSH32(esp, ebp); /* 0x36004B60: push ebp */
   4585     ebp = esp; /* 0x36004B61: mov ebp, esp */
   4586     eax = MEM32(ebp + 0x8); /* 0x36004B63: mov eax, dword ptr [ebp + 8] */
   4587     PUSH32(esp, eax); /* 0x36004B66: push eax */
   4588     PUSH32(esp, 0xEFu); /* 0x36004B67: push 0xef */
   4589     PUSH32(esp, 0x28u); /* 0x36004B6C: push 0x28 */
   4590     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004B6E: call dword ptr [0x3616f304] */
   4591     RECOMP_FLAGS_IN();
   4592     ecx = eax; /* 0x36004B74: mov ecx, eax */
   4593     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004B76: call dword ptr [0x3616f30c] */
   4594     RECOMP_FLAGS_IN();
   4595     ebp = POP32_VAL(esp); /* 0x36004B7C: pop ebp */
   4596     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004B7D: ret 4 */
   4597     RECOMP_REGS_OUT();
   4598 }
   4599 
   4600 void sub_36004B80(void) {
   4601     int _fpu_cmp = 0;
   4602     uint32_t _cf = 0;
   4603     int _df = 1;
   4604     uint32_t _flag_k = FK_NONE;
   4605     uint32_t _flag_a = 0, _flag_b = 0;
   4606     uint32_t _itail_tgt = 0;
   4607     RECOMP_REGS_LOCALS
   4608     RECOMP_ENTER(0x36004B80u);
   4609 
   4610 L_36004B80:
   4611     PUSH32(esp, ebp); /* 0x36004B80: push ebp */
   4612     ebp = esp; /* 0x36004B81: mov ebp, esp */
   4613     eax = MEM32(ebp + 0x8); /* 0x36004B83: mov eax, dword ptr [ebp + 8] */
   4614     PUSH32(esp, eax); /* 0x36004B86: push eax */
   4615     PUSH32(esp, 0xF0u); /* 0x36004B87: push 0xf0 */
   4616     PUSH32(esp, 0x28u); /* 0x36004B8C: push 0x28 */
   4617     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004B8E: call dword ptr [0x3616f304] */
   4618     RECOMP_FLAGS_IN();
   4619     ecx = eax; /* 0x36004B94: mov ecx, eax */
   4620     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004B96: call dword ptr [0x3616f30c] */
   4621     RECOMP_FLAGS_IN();
   4622     ebp = POP32_VAL(esp); /* 0x36004B9C: pop ebp */
   4623     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004B9D: ret 4 */
   4624     RECOMP_REGS_OUT();
   4625 }
   4626 
   4627 void sub_36004BA0(void) {
   4628     int _fpu_cmp = 0;
   4629     uint32_t _cf = 0;
   4630     int _df = 1;
   4631     uint32_t _flag_k = FK_NONE;
   4632     uint32_t _flag_a = 0, _flag_b = 0;
   4633     uint32_t _itail_tgt = 0;
   4634     RECOMP_REGS_LOCALS
   4635     RECOMP_ENTER(0x36004BA0u);
   4636 
   4637 L_36004BA0:
   4638     PUSH32(esp, ebp); /* 0x36004BA0: push ebp */
   4639     ebp = esp; /* 0x36004BA1: mov ebp, esp */
   4640     eax = MEM32(ebp + 0x8); /* 0x36004BA3: mov eax, dword ptr [ebp + 8] */
   4641     PUSH32(esp, eax); /* 0x36004BA6: push eax */
   4642     PUSH32(esp, 0xF1u); /* 0x36004BA7: push 0xf1 */
   4643     PUSH32(esp, 0x28u); /* 0x36004BAC: push 0x28 */
   4644     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004BAE: call dword ptr [0x3616f304] */
   4645     RECOMP_FLAGS_IN();
   4646     ecx = eax; /* 0x36004BB4: mov ecx, eax */
   4647     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004BB6: call dword ptr [0x3616f30c] */
   4648     RECOMP_FLAGS_IN();
   4649     ebp = POP32_VAL(esp); /* 0x36004BBC: pop ebp */
   4650     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36004BBD: ret 4 */
   4651     RECOMP_REGS_OUT();
   4652 }
   4653 
   4654 void sub_36004BC0(void) {
   4655     int _fpu_cmp = 0;
   4656     uint32_t _cf = 0;
   4657     int _df = 1;
   4658     uint32_t _flag_k = FK_NONE;
   4659     uint32_t _flag_a = 0, _flag_b = 0;
   4660     uint32_t _itail_tgt = 0;
   4661     RECOMP_REGS_LOCALS
   4662     RECOMP_ENTER(0x36004BC0u);
   4663 
   4664 L_36004BC0:
   4665     PUSH32(esp, ebp); /* 0x36004BC0: push ebp */
   4666     ebp = esp; /* 0x36004BC1: mov ebp, esp */
   4667     edx = MEM32(ebp + 0x8); /* 0x36004BC3: mov edx, dword ptr [ebp + 8] */
   4668     PUSH32(esp, esi); /* 0x36004BC6: push esi */
   4669     esi = MEM32(0x3616F304); /* 0x36004BC7: mov esi, dword ptr [0x3616f304] */
   4670     PUSH32(esp, edi); /* 0x36004BCD: push edi */
   4671     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4672     ecx = ecx | 0xFFFFFFFFu; /* 0x36004BCE: or ecx, 0xffffffff */
   4673     _cf = 0;
   4674     _flag_k = FK_TEST;
   4675     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4676     eax = 0; /* 0x36004BD1: xor eax, eax */
   4677     _cf = 0;
   4678     _flag_k = FK_TEST;
   4679     edi = edx; /* 0x36004BD3: mov edi, edx */
   4680     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; } /* 0x36004BD5: repne scasb al, byte ptr es:[edi] */
   4681     ecx = ~ecx; /* 0x36004BD7: not ecx */
   4682     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4683     ecx = ecx - 1; /* 0x36004BD9: dec ecx */
   4684     _flag_k = FK_DEC;
   4685     PUSH32(esp, ecx); /* 0x36004BDA: push ecx */
   4686     PUSH32(esp, edx); /* 0x36004BDB: push edx */
   4687     PUSH32(esp, 0xC1u); /* 0x36004BDC: push 0xc1 */
   4688     PUSH32(esp, 0x21u); /* 0x36004BE1: push 0x21 */
   4689     RECOMP_ICALL(esi); /* 0x36004BE3: call esi */
   4690     RECOMP_FLAGS_IN();
   4691     ecx = eax; /* 0x36004BE5: mov ecx, eax */
   4692     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36004BE7: call dword ptr [0x3616f310] */
   4693     RECOMP_FLAGS_IN();
   4694     eax = MEM32(ebp + 0x10); /* 0x36004BED: mov eax, dword ptr [ebp + 0x10] */
   4695     ecx = MEM32(ebp + 0xC); /* 0x36004BF0: mov ecx, dword ptr [ebp + 0xc] */
   4696     PUSH32(esp, eax); /* 0x36004BF3: push eax */
   4697     PUSH32(esp, ecx); /* 0x36004BF4: push ecx */
   4698     RECOMP_ICALL(esi); /* 0x36004BF5: call esi */
   4699     RECOMP_FLAGS_IN();
   4700     ecx = eax; /* 0x36004BF7: mov ecx, eax */
   4701     RECOMP_ICALL(MEM32(0x3616F2F8)); /* 0x36004BF9: call dword ptr [0x3616f2f8] */
   4702     RECOMP_FLAGS_IN();
   4703     edi = POP32_VAL(esp); /* 0x36004BFF: pop edi */
   4704     esi = POP32_VAL(esp); /* 0x36004C00: pop esi */
   4705     ebp = POP32_VAL(esp); /* 0x36004C01: pop ebp */
   4706     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004C02: ret 0xc */
   4707     RECOMP_REGS_OUT();
   4708 }
   4709 
   4710 void sub_36004C10(void) {
   4711     int _fpu_cmp = 0;
   4712     uint32_t _cf = 0;
   4713     int _df = 1;
   4714     uint32_t _flag_k = FK_NONE;
   4715     uint32_t _flag_a = 0, _flag_b = 0;
   4716     uint32_t _itail_tgt = 0;
   4717     RECOMP_REGS_LOCALS
   4718     RECOMP_ENTER(0x36004C10u);
   4719 
   4720 L_36004C10:
   4721     PUSH32(esp, ebp); /* 0x36004C10: push ebp */
   4722     ebp = esp; /* 0x36004C11: mov ebp, esp */
   4723     edx = MEM32(ebp + 0xC); /* 0x36004C13: mov edx, dword ptr [ebp + 0xc] */
   4724     PUSH32(esp, esi); /* 0x36004C16: push esi */
   4725     esi = MEM32(0x3616F304); /* 0x36004C17: mov esi, dword ptr [0x3616f304] */
   4726     PUSH32(esp, edi); /* 0x36004C1D: push edi */
   4727     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4728     ecx = ecx | 0xFFFFFFFFu; /* 0x36004C1E: or ecx, 0xffffffff */
   4729     _cf = 0;
   4730     _flag_k = FK_TEST;
   4731     edi = edx; /* 0x36004C21: mov edi, edx */
   4732     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4733     eax = 0; /* 0x36004C23: xor eax, eax */
   4734     _cf = 0;
   4735     _flag_k = FK_TEST;
   4736     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; } /* 0x36004C25: repne scasb al, byte ptr es:[edi] */
   4737     ecx = ~ecx; /* 0x36004C27: not ecx */
   4738     PUSH32(esp, ecx); /* 0x36004C29: push ecx */
   4739     PUSH32(esp, edx); /* 0x36004C2A: push edx */
   4740     PUSH32(esp, 0x166u); /* 0x36004C2B: push 0x166 */
   4741     PUSH32(esp, 0x2Du); /* 0x36004C30: push 0x2d */
   4742     RECOMP_ICALL(esi); /* 0x36004C32: call esi */
   4743     RECOMP_FLAGS_IN();
   4744     ecx = eax; /* 0x36004C34: mov ecx, eax */
   4745     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36004C36: call dword ptr [0x3616f310] */
   4746     RECOMP_FLAGS_IN();
   4747     eax = MEM32(ebp + 0x8); /* 0x36004C3C: mov eax, dword ptr [ebp + 8] */
   4748     PUSH32(esp, eax); /* 0x36004C3F: push eax */
   4749     RECOMP_ICALL(esi); /* 0x36004C40: call esi */
   4750     RECOMP_FLAGS_IN();
   4751     ecx = eax; /* 0x36004C42: mov ecx, eax */
   4752     RECOMP_ICALL(MEM32(0x3616F2DC)); /* 0x36004C44: call dword ptr [0x3616f2dc] */
   4753     RECOMP_FLAGS_IN();
   4754     edi = POP32_VAL(esp); /* 0x36004C4A: pop edi */
   4755     esi = POP32_VAL(esp); /* 0x36004C4B: pop esi */
   4756     ebp = POP32_VAL(esp); /* 0x36004C4C: pop ebp */
   4757     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36004C4D: ret 8 */
   4758     RECOMP_REGS_OUT();
   4759 }
   4760 
   4761 void sub_36004C50(void) {
   4762     int _fpu_cmp = 0;
   4763     uint32_t _cf = 0;
   4764     int _df = 1;
   4765     uint32_t _flag_k = FK_NONE;
   4766     uint32_t _flag_a = 0, _flag_b = 0;
   4767     uint32_t _itail_tgt = 0;
   4768     RECOMP_REGS_LOCALS
   4769     RECOMP_ENTER(0x36004C50u);
   4770 
   4771 L_36004C50:
   4772     PUSH32(esp, ebp); /* 0x36004C50: push ebp */
   4773 L_36004C51:
   4774     ebp = esp; /* 0x36004C51: mov ebp, esp */
   4775 L_36004C53:
   4776     ecx = MEM32(ebp + 0x8); /* 0x36004C53: mov ecx, dword ptr [ebp + 8] */
   4777 L_36004C56:
   4778     eax = ecx + (-0x1); /* 0x36004C56: lea eax, [ecx - 1] */
   4779 L_36004C59:
   4780     /* cmp eax, 0x41u */ /* 0x36004C59: cmp eax, 0x41 */
   4781     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x41u);
   4782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4783     _flag_k = FK_CMP;
   4784 L_36004C5C:
   4785     PUSH32(esp, esi); /* 0x36004C5C: push esi */
   4786 L_36004C5D:
   4787     PUSH32(esp, edi); /* 0x36004C5D: push edi */
   4788 L_36004C5E:
   4789     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36004F03; /* 0x36004C5E: ja 0x36004f03 */
   4790 L_36004C64:
   4791     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4792     edx = 0; /* 0x36004C64: xor edx, edx */
   4793     _cf = 0;
   4794     _flag_k = FK_TEST;
   4795 L_36004C66:
   4796     SET_LO8(edx, MEM8(eax + 0x36004F64)); /* 0x36004C66: mov dl, byte ptr [eax + 0x36004f64] */
   4797 L_36004C6C:
   4798     { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x36004F0C)); goto _ljump; }
   4799 L_36004C73:
   4800     PUSH32(esp, 0x193u); /* 0x36004C73: push 0x193 */
   4801 L_36004C78:
   4802     PUSH32(esp, 0x17u); /* 0x36004C78: push 0x17 */
   4803 L_36004C7A:
   4804     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004C7A: call dword ptr [0x3616f304] */
   4805     RECOMP_FLAGS_IN();
   4806 L_36004C80:
   4807     ecx = eax; /* 0x36004C80: mov ecx, eax */
   4808 L_36004C82:
   4809     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36004C82: call dword ptr [0x3616f2e8] */
   4810     RECOMP_FLAGS_IN();
   4811 L_36004C88:
   4812     edi = POP32_VAL(esp); /* 0x36004C88: pop edi */
   4813 L_36004C89:
   4814     esi = POP32_VAL(esp); /* 0x36004C89: pop esi */
   4815 L_36004C8A:
   4816     ebp = POP32_VAL(esp); /* 0x36004C8A: pop ebp */
   4817 L_36004C8B:
   4818     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004C8B: ret 0xc */
   4819 L_36004C8E:
   4820     esi = MEM32(0x3616F304); /* 0x36004C8E: mov esi, dword ptr [0x3616f304] */
   4821 L_36004C94:
   4822     PUSH32(esp, 1); /* 0x36004C94: push 1 */
   4823 L_36004C96:
   4824     PUSH32(esp, 0x9Eu); /* 0x36004C96: push 0x9e */
   4825 L_36004C9B:
   4826     PUSH32(esp, 0x1Fu); /* 0x36004C9B: push 0x1f */
   4827 L_36004C9D:
   4828     RECOMP_ICALL(esi); /* 0x36004C9D: call esi */
   4829     RECOMP_FLAGS_IN();
   4830 L_36004C9F:
   4831     edi = MEM32(0x3616F2D8); /* 0x36004C9F: mov edi, dword ptr [0x3616f2d8] */
   4832 L_36004CA5:
   4833     ecx = eax; /* 0x36004CA5: mov ecx, eax */
   4834 L_36004CA7:
   4835     RECOMP_ICALL(edi); /* 0x36004CA7: call edi */
   4836     RECOMP_FLAGS_IN();
   4837 L_36004CA9:
   4838     PUSH32(esp, 1); /* 0x36004CA9: push 1 */
   4839 L_36004CAB:
   4840     PUSH32(esp, 0x9Eu); /* 0x36004CAB: push 0x9e */
   4841 L_36004CB0:
   4842     PUSH32(esp, 3); /* 0x36004CB0: push 3 */
   4843 L_36004CB2:
   4844     RECOMP_ICALL(esi); /* 0x36004CB2: call esi */
   4845     RECOMP_FLAGS_IN();
   4846 L_36004CB4:
   4847     ecx = eax; /* 0x36004CB4: mov ecx, eax */
   4848 L_36004CB6:
   4849     RECOMP_ICALL(edi); /* 0x36004CB6: call edi */
   4850     RECOMP_FLAGS_IN();
   4851 L_36004CB8:
   4852     edi = POP32_VAL(esp); /* 0x36004CB8: pop edi */
   4853 L_36004CB9:
   4854     esi = POP32_VAL(esp); /* 0x36004CB9: pop esi */
   4855 L_36004CBA:
   4856     ebp = POP32_VAL(esp); /* 0x36004CBA: pop ebp */
   4857 L_36004CBB:
   4858     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004CBB: ret 0xc */
   4859 L_36004CBE:
   4860     esi = MEM32(0x3616F304); /* 0x36004CBE: mov esi, dword ptr [0x3616f304] */
   4861 L_36004CC4:
   4862     PUSH32(esp, 0); /* 0x36004CC4: push 0 */
   4863 L_36004CC6:
   4864     PUSH32(esp, 0x9Eu); /* 0x36004CC6: push 0x9e */
   4865 L_36004CCB:
   4866     PUSH32(esp, 0x1Fu); /* 0x36004CCB: push 0x1f */
   4867 L_36004CCD:
   4868     RECOMP_ICALL(esi); /* 0x36004CCD: call esi */
   4869     RECOMP_FLAGS_IN();
   4870 L_36004CCF:
   4871     edi = MEM32(0x3616F2D8); /* 0x36004CCF: mov edi, dword ptr [0x3616f2d8] */
   4872 L_36004CD5:
   4873     ecx = eax; /* 0x36004CD5: mov ecx, eax */
   4874 L_36004CD7:
   4875     RECOMP_ICALL(edi); /* 0x36004CD7: call edi */
   4876     RECOMP_FLAGS_IN();
   4877 L_36004CD9:
   4878     PUSH32(esp, 0); /* 0x36004CD9: push 0 */
   4879 L_36004CDB:
   4880     PUSH32(esp, 0x9Eu); /* 0x36004CDB: push 0x9e */
   4881 L_36004CE0:
   4882     PUSH32(esp, 3); /* 0x36004CE0: push 3 */
   4883 L_36004CE2:
   4884     RECOMP_ICALL(esi); /* 0x36004CE2: call esi */
   4885     RECOMP_FLAGS_IN();
   4886 L_36004CE4:
   4887     ecx = eax; /* 0x36004CE4: mov ecx, eax */
   4888 L_36004CE6:
   4889     RECOMP_ICALL(edi); /* 0x36004CE6: call edi */
   4890     RECOMP_FLAGS_IN();
   4891 L_36004CE8:
   4892     edi = POP32_VAL(esp); /* 0x36004CE8: pop edi */
   4893 L_36004CE9:
   4894     esi = POP32_VAL(esp); /* 0x36004CE9: pop esi */
   4895 L_36004CEA:
   4896     ebp = POP32_VAL(esp); /* 0x36004CEA: pop ebp */
   4897 L_36004CEB:
   4898     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004CEB: ret 0xc */
   4899 L_36004CEE:
   4900     esi = MEM32(0x3616F304); /* 0x36004CEE: mov esi, dword ptr [0x3616f304] */
   4901 L_36004CF4:
   4902     PUSH32(esp, 0x19Cu); /* 0x36004CF4: push 0x19c */
   4903 L_36004CF9:
   4904     PUSH32(esp, 0xEu); /* 0x36004CF9: push 0xe */
   4905 L_36004CFB:
   4906     RECOMP_ICALL(esi); /* 0x36004CFB: call esi */
   4907     RECOMP_FLAGS_IN();
   4908 L_36004CFD:
   4909     edi = MEM32(0x3616F2E8); /* 0x36004CFD: mov edi, dword ptr [0x3616f2e8] */
   4910 L_36004D03:
   4911     ecx = eax; /* 0x36004D03: mov ecx, eax */
   4912 L_36004D05:
   4913     RECOMP_ICALL(edi); /* 0x36004D05: call edi */
   4914     RECOMP_FLAGS_IN();
   4915 L_36004D07:
   4916     PUSH32(esp, 0x196u); /* 0x36004D07: push 0x196 */
   4917 L_36004D0C:
   4918     PUSH32(esp, 0x17u); /* 0x36004D0C: push 0x17 */
   4919 L_36004D0E:
   4920     RECOMP_ICALL(esi); /* 0x36004D0E: call esi */
   4921     RECOMP_FLAGS_IN();
   4922 L_36004D10:
   4923     ecx = eax; /* 0x36004D10: mov ecx, eax */
   4924 L_36004D12:
   4925     RECOMP_ICALL(edi); /* 0x36004D12: call edi */
   4926     RECOMP_FLAGS_IN();
   4927 L_36004D14:
   4928     edi = POP32_VAL(esp); /* 0x36004D14: pop edi */
   4929 L_36004D15:
   4930     esi = POP32_VAL(esp); /* 0x36004D15: pop esi */
   4931 L_36004D16:
   4932     ebp = POP32_VAL(esp); /* 0x36004D16: pop ebp */
   4933 L_36004D17:
   4934     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004D17: ret 0xc */
   4935 L_36004D1A:
   4936     PUSH32(esp, 0x197u); /* 0x36004D1A: push 0x197 */
   4937 L_36004D1F:
   4938     PUSH32(esp, 0x17u); /* 0x36004D1F: push 0x17 */
   4939 L_36004D21:
   4940     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004D21: call dword ptr [0x3616f304] */
   4941     RECOMP_FLAGS_IN();
   4942 L_36004D27:
   4943     ecx = eax; /* 0x36004D27: mov ecx, eax */
   4944 L_36004D29:
   4945     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36004D29: call dword ptr [0x3616f2e8] */
   4946     RECOMP_FLAGS_IN();
   4947 L_36004D2F:
   4948     edi = POP32_VAL(esp); /* 0x36004D2F: pop edi */
   4949 L_36004D30:
   4950     esi = POP32_VAL(esp); /* 0x36004D30: pop esi */
   4951 L_36004D31:
   4952     ebp = POP32_VAL(esp); /* 0x36004D31: pop ebp */
   4953 L_36004D32:
   4954     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004D32: ret 0xc */
   4955 L_36004D35:
   4956     PUSH32(esp, 0x19Bu); /* 0x36004D35: push 0x19b */
   4957 L_36004D3A:
   4958     PUSH32(esp, 0x17u); /* 0x36004D3A: push 0x17 */
   4959 L_36004D3C:
   4960     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004D3C: call dword ptr [0x3616f304] */
   4961     RECOMP_FLAGS_IN();
   4962 L_36004D42:
   4963     ecx = eax; /* 0x36004D42: mov ecx, eax */
   4964 L_36004D44:
   4965     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36004D44: call dword ptr [0x3616f2e8] */
   4966     RECOMP_FLAGS_IN();
   4967 L_36004D4A:
   4968     edi = POP32_VAL(esp); /* 0x36004D4A: pop edi */
   4969 L_36004D4B:
   4970     esi = POP32_VAL(esp); /* 0x36004D4B: pop esi */
   4971 L_36004D4C:
   4972     ebp = POP32_VAL(esp); /* 0x36004D4C: pop ebp */
   4973 L_36004D4D:
   4974     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004D4D: ret 0xc */
   4975 L_36004D50:
   4976     PUSH32(esp, 0x198u); /* 0x36004D50: push 0x198 */
   4977 L_36004D55:
   4978     PUSH32(esp, 0x17u); /* 0x36004D55: push 0x17 */
   4979 L_36004D57:
   4980     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004D57: call dword ptr [0x3616f304] */
   4981     RECOMP_FLAGS_IN();
   4982 L_36004D5D:
   4983     ecx = eax; /* 0x36004D5D: mov ecx, eax */
   4984 L_36004D5F:
   4985     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36004D5F: call dword ptr [0x3616f2e8] */
   4986     RECOMP_FLAGS_IN();
   4987 L_36004D65:
   4988     edi = POP32_VAL(esp); /* 0x36004D65: pop edi */
   4989 L_36004D66:
   4990     esi = POP32_VAL(esp); /* 0x36004D66: pop esi */
   4991 L_36004D67:
   4992     ebp = POP32_VAL(esp); /* 0x36004D67: pop ebp */
   4993 L_36004D68:
   4994     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004D68: ret 0xc */
   4995 L_36004D6B:
   4996     PUSH32(esp, 0x199u); /* 0x36004D6B: push 0x199 */
   4997 L_36004D70:
   4998     PUSH32(esp, 0x17u); /* 0x36004D70: push 0x17 */
   4999 L_36004D72:
   5000     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004D72: call dword ptr [0x3616f304] */
   5001     RECOMP_FLAGS_IN();
   5002 L_36004D78:
   5003     ecx = eax; /* 0x36004D78: mov ecx, eax */
   5004 L_36004D7A:
   5005     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36004D7A: call dword ptr [0x3616f2e8] */
   5006     RECOMP_FLAGS_IN();
   5007 L_36004D80:
   5008     edi = POP32_VAL(esp); /* 0x36004D80: pop edi */
   5009 L_36004D81:
   5010     esi = POP32_VAL(esp); /* 0x36004D81: pop esi */
   5011 L_36004D82:
   5012     ebp = POP32_VAL(esp); /* 0x36004D82: pop ebp */
   5013 L_36004D83:
   5014     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004D83: ret 0xc */
   5015 L_36004D86:
   5016     eax = MEM32(ebp + 0xC); /* 0x36004D86: mov eax, dword ptr [ebp + 0xc] */
   5017 L_36004D89:
   5018     PUSH32(esp, eax); /* 0x36004D89: push eax */
   5019 L_36004D8A:
   5020     PUSH32(esp, 0x136u); /* 0x36004D8A: push 0x136 */
   5021 L_36004D8F:
   5022     PUSH32(esp, 0x30u); /* 0x36004D8F: push 0x30 */
   5023 L_36004D91:
   5024     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004D91: call dword ptr [0x3616f304] */
   5025     RECOMP_FLAGS_IN();
   5026 L_36004D97:
   5027     ecx = eax; /* 0x36004D97: mov ecx, eax */
   5028 L_36004D99:
   5029     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004D99: call dword ptr [0x3616f30c] */
   5030     RECOMP_FLAGS_IN();
   5031 L_36004D9F:
   5032     edi = POP32_VAL(esp); /* 0x36004D9F: pop edi */
   5033 L_36004DA0:
   5034     esi = POP32_VAL(esp); /* 0x36004DA0: pop esi */
   5035 L_36004DA1:
   5036     ebp = POP32_VAL(esp); /* 0x36004DA1: pop ebp */
   5037 L_36004DA2:
   5038     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004DA2: ret 0xc */
   5039 L_36004DA5:
   5040     esi = MEM32(0x3616F304); /* 0x36004DA5: mov esi, dword ptr [0x3616f304] */
   5041 L_36004DAB:
   5042     PUSH32(esp, ecx); /* 0x36004DAB: push ecx */
   5043 L_36004DAC:
   5044     PUSH32(esp, 0x156u); /* 0x36004DAC: push 0x156 */
   5045 L_36004DB1:
   5046     PUSH32(esp, 0x2Du); /* 0x36004DB1: push 0x2d */
   5047 L_36004DB3:
   5048     RECOMP_ICALL(esi); /* 0x36004DB3: call esi */
   5049     RECOMP_FLAGS_IN();
   5050 L_36004DB5:
   5051     ecx = eax; /* 0x36004DB5: mov ecx, eax */
   5052 L_36004DB7:
   5053     RECOMP_ICALL(MEM32(0x3616F2D8)); /* 0x36004DB7: call dword ptr [0x3616f2d8] */
   5054     RECOMP_FLAGS_IN();
   5055 L_36004DBD:
   5056     ecx = MEM32(ebp + 0xC); /* 0x36004DBD: mov ecx, dword ptr [ebp + 0xc] */
   5057 L_36004DC0:
   5058     PUSH32(esp, ecx); /* 0x36004DC0: push ecx */
   5059 L_36004DC1:
   5060     RECOMP_ICALL(esi); /* 0x36004DC1: call esi */
   5061     RECOMP_FLAGS_IN();
   5062 L_36004DC3:
   5063     ecx = eax; /* 0x36004DC3: mov ecx, eax */
   5064 L_36004DC5:
   5065     RECOMP_ICALL(MEM32(0x3616F2DC)); /* 0x36004DC5: call dword ptr [0x3616f2dc] */
   5066     RECOMP_FLAGS_IN();
   5067 L_36004DCB:
   5068     edi = POP32_VAL(esp); /* 0x36004DCB: pop edi */
   5069 L_36004DCC:
   5070     esi = POP32_VAL(esp); /* 0x36004DCC: pop esi */
   5071 L_36004DCD:
   5072     ebp = POP32_VAL(esp); /* 0x36004DCD: pop ebp */
   5073 L_36004DCE:
   5074     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004DCE: ret 0xc */
   5075 L_36004DD1:
   5076     edx = MEM32(ebp + 0xC); /* 0x36004DD1: mov edx, dword ptr [ebp + 0xc] */
   5077 L_36004DD4:
   5078     PUSH32(esp, edx); /* 0x36004DD4: push edx */
   5079 L_36004DD5:
   5080     PUSH32(esp, 0x176u); /* 0x36004DD5: push 0x176 */
   5081 L_36004DDA:
   5082     PUSH32(esp, 0x33u); /* 0x36004DDA: push 0x33 */
   5083 L_36004DDC:
   5084     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004DDC: call dword ptr [0x3616f304] */
   5085     RECOMP_FLAGS_IN();
   5086 L_36004DE2:
   5087     ecx = eax; /* 0x36004DE2: mov ecx, eax */
   5088 L_36004DE4:
   5089     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004DE4: call dword ptr [0x3616f30c] */
   5090     RECOMP_FLAGS_IN();
   5091 L_36004DEA:
   5092     edi = POP32_VAL(esp); /* 0x36004DEA: pop edi */
   5093 L_36004DEB:
   5094     esi = POP32_VAL(esp); /* 0x36004DEB: pop esi */
   5095 L_36004DEC:
   5096     ebp = POP32_VAL(esp); /* 0x36004DEC: pop ebp */
   5097 L_36004DED:
   5098     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004DED: ret 0xc */
   5099 L_36004DF0:
   5100     PUSH32(esp, 0x184u); /* 0x36004DF0: push 0x184 */
   5101 L_36004DF5:
   5102     goto L_36004E7B; /* 0x36004DF5: jmp 0x36004e7b */
   5103 L_36004DFA:
   5104     eax = MEM32(ebp + 0xC); /* 0x36004DFA: mov eax, dword ptr [ebp + 0xc] */
   5105 L_36004DFD:
   5106     PUSH32(esp, eax); /* 0x36004DFD: push eax */
   5107 L_36004DFE:
   5108     PUSH32(esp, 0x13Eu); /* 0x36004DFE: push 0x13e */
   5109 L_36004E03:
   5110     PUSH32(esp, 0x31u); /* 0x36004E03: push 0x31 */
   5111 L_36004E05:
   5112     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004E05: call dword ptr [0x3616f304] */
   5113     RECOMP_FLAGS_IN();
   5114 L_36004E0B:
   5115     ecx = eax; /* 0x36004E0B: mov ecx, eax */
   5116 L_36004E0D:
   5117     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004E0D: call dword ptr [0x3616f30c] */
   5118     RECOMP_FLAGS_IN();
   5119 L_36004E13:
   5120     edi = POP32_VAL(esp); /* 0x36004E13: pop edi */
   5121 L_36004E14:
   5122     esi = POP32_VAL(esp); /* 0x36004E14: pop esi */
   5123 L_36004E15:
   5124     ebp = POP32_VAL(esp); /* 0x36004E15: pop ebp */
   5125 L_36004E16:
   5126     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004E16: ret 0xc */
   5127 L_36004E19:
   5128     ecx = MEM32(ebp + 0xC); /* 0x36004E19: mov ecx, dword ptr [ebp + 0xc] */
   5129 L_36004E1C:
   5130     PUSH32(esp, ecx); /* 0x36004E1C: push ecx */
   5131 L_36004E1D:
   5132     PUSH32(esp, 0x118u); /* 0x36004E1D: push 0x118 */
   5133 L_36004E22:
   5134     goto L_36004EF3; /* 0x36004E22: jmp 0x36004ef3 */
   5135 L_36004E27:
   5136     edx = MEM32(ebp + 0xC); /* 0x36004E27: mov edx, dword ptr [ebp + 0xc] */
   5137 L_36004E2A:
   5138     PUSH32(esp, edx); /* 0x36004E2A: push edx */
   5139 L_36004E2B:
   5140     PUSH32(esp, 0x10Fu); /* 0x36004E2B: push 0x10f */
   5141 L_36004E30:
   5142     goto L_36004EF3; /* 0x36004E30: jmp 0x36004ef3 */
   5143 L_36004E35:
   5144     esi = MEM32(ebp + 0xC); /* 0x36004E35: mov esi, dword ptr [ebp + 0xc] */
   5145 L_36004E38:
   5146     edi = MEM32(0x3616F304); /* 0x36004E38: mov edi, dword ptr [0x3616f304] */
   5147 L_36004E3E:
   5148     PUSH32(esp, ebx); /* 0x36004E3E: push ebx */
   5149 L_36004E3F:
   5150     PUSH32(esp, esi); /* 0x36004E3F: push esi */
   5151 L_36004E40:
   5152     PUSH32(esp, 0xFDu); /* 0x36004E40: push 0xfd */
   5153 L_36004E45:
   5154     PUSH32(esp, 0x18u); /* 0x36004E45: push 0x18 */
   5155 L_36004E47:
   5156     RECOMP_ICALL(edi); /* 0x36004E47: call edi */
   5157     RECOMP_FLAGS_IN();
   5158 L_36004E49:
   5159     ebx = MEM32(0x3616F30C); /* 0x36004E49: mov ebx, dword ptr [0x3616f30c] */
   5160 L_36004E4F:
   5161     ecx = eax; /* 0x36004E4F: mov ecx, eax */
   5162 L_36004E51:
   5163     RECOMP_ICALL(ebx); /* 0x36004E51: call ebx */
   5164     RECOMP_FLAGS_IN();
   5165 L_36004E53:
   5166     PUSH32(esp, esi); /* 0x36004E53: push esi */
   5167 L_36004E54:
   5168     PUSH32(esp, 0xFDu); /* 0x36004E54: push 0xfd */
   5169 L_36004E59:
   5170     PUSH32(esp, 0x37u); /* 0x36004E59: push 0x37 */
   5171 L_36004E5B:
   5172     RECOMP_ICALL(edi); /* 0x36004E5B: call edi */
   5173     RECOMP_FLAGS_IN();
   5174 L_36004E5D:
   5175     ecx = eax; /* 0x36004E5D: mov ecx, eax */
   5176 L_36004E5F:
   5177     RECOMP_ICALL(ebx); /* 0x36004E5F: call ebx */
   5178     RECOMP_FLAGS_IN();
   5179 L_36004E61:
   5180     PUSH32(esp, esi); /* 0x36004E61: push esi */
   5181 L_36004E62:
   5182     PUSH32(esp, 0x155u); /* 0x36004E62: push 0x155 */
   5183 L_36004E67:
   5184     PUSH32(esp, 0x32u); /* 0x36004E67: push 0x32 */
   5185 L_36004E69:
   5186     RECOMP_ICALL(edi); /* 0x36004E69: call edi */
   5187     RECOMP_FLAGS_IN();
   5188 L_36004E6B:
   5189     ecx = eax; /* 0x36004E6B: mov ecx, eax */
   5190 L_36004E6D:
   5191     RECOMP_ICALL(ebx); /* 0x36004E6D: call ebx */
   5192     RECOMP_FLAGS_IN();
   5193 L_36004E6F:
   5194     ebx = POP32_VAL(esp); /* 0x36004E6F: pop ebx */
   5195 L_36004E70:
   5196     edi = POP32_VAL(esp); /* 0x36004E70: pop edi */
   5197 L_36004E71:
   5198     esi = POP32_VAL(esp); /* 0x36004E71: pop esi */
   5199 L_36004E72:
   5200     ebp = POP32_VAL(esp); /* 0x36004E72: pop ebp */
   5201 L_36004E73:
   5202     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004E73: ret 0xc */
   5203 L_36004E76:
   5204     PUSH32(esp, 0x185u); /* 0x36004E76: push 0x185 */
   5205 L_36004E7B:
   5206     PUSH32(esp, 0x16u); /* 0x36004E7B: push 0x16 */
   5207 L_36004E7D:
   5208     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004E7D: call dword ptr [0x3616f304] */
   5209     RECOMP_FLAGS_IN();
   5210 L_36004E83:
   5211     ecx = eax; /* 0x36004E83: mov ecx, eax */
   5212 L_36004E85:
   5213     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36004E85: call dword ptr [0x3616f2e8] */
   5214     RECOMP_FLAGS_IN();
   5215 L_36004E8B:
   5216     edi = POP32_VAL(esp); /* 0x36004E8B: pop edi */
   5217 L_36004E8C:
   5218     esi = POP32_VAL(esp); /* 0x36004E8C: pop esi */
   5219 L_36004E8D:
   5220     ebp = POP32_VAL(esp); /* 0x36004E8D: pop ebp */
   5221 L_36004E8E:
   5222     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004E8E: ret 0xc */
   5223 L_36004E91:
   5224     eax = MEM32(ebp + 0xC); /* 0x36004E91: mov eax, dword ptr [ebp + 0xc] */
   5225 L_36004E94:
   5226     PUSH32(esp, eax); /* 0x36004E94: push eax */
   5227 L_36004E95:
   5228     PUSH32(esp, 0x138u); /* 0x36004E95: push 0x138 */
   5229 L_36004E9A:
   5230     PUSH32(esp, 0x30u); /* 0x36004E9A: push 0x30 */
   5231 L_36004E9C:
   5232     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004E9C: call dword ptr [0x3616f304] */
   5233     RECOMP_FLAGS_IN();
   5234 L_36004EA2:
   5235     ecx = eax; /* 0x36004EA2: mov ecx, eax */
   5236 L_36004EA4:
   5237     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004EA4: call dword ptr [0x3616f30c] */
   5238     RECOMP_FLAGS_IN();
   5239 L_36004EAA:
   5240     edi = POP32_VAL(esp); /* 0x36004EAA: pop edi */
   5241 L_36004EAB:
   5242     esi = POP32_VAL(esp); /* 0x36004EAB: pop esi */
   5243 L_36004EAC:
   5244     ebp = POP32_VAL(esp); /* 0x36004EAC: pop ebp */
   5245 L_36004EAD:
   5246     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004EAD: ret 0xc */
   5247 L_36004EB0:
   5248     ecx = MEM32(ebp + 0xC); /* 0x36004EB0: mov ecx, dword ptr [ebp + 0xc] */
   5249 L_36004EB3:
   5250     PUSH32(esp, ecx); /* 0x36004EB3: push ecx */
   5251 L_36004EB4:
   5252     PUSH32(esp, 0x142u); /* 0x36004EB4: push 0x142 */
   5253 L_36004EB9:
   5254     PUSH32(esp, 0x31u); /* 0x36004EB9: push 0x31 */
   5255 L_36004EBB:
   5256     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004EBB: call dword ptr [0x3616f304] */
   5257     RECOMP_FLAGS_IN();
   5258 L_36004EC1:
   5259     ecx = eax; /* 0x36004EC1: mov ecx, eax */
   5260 L_36004EC3:
   5261     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004EC3: call dword ptr [0x3616f30c] */
   5262     RECOMP_FLAGS_IN();
   5263 L_36004EC9:
   5264     edi = POP32_VAL(esp); /* 0x36004EC9: pop edi */
   5265 L_36004ECA:
   5266     esi = POP32_VAL(esp); /* 0x36004ECA: pop esi */
   5267 L_36004ECB:
   5268     ebp = POP32_VAL(esp); /* 0x36004ECB: pop ebp */
   5269 L_36004ECC:
   5270     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004ECC: ret 0xc */
   5271 L_36004ECF:
   5272     PUSH32(esp, 0xEDu); /* 0x36004ECF: push 0xed */
   5273 L_36004ED4:
   5274     PUSH32(esp, 0x27u); /* 0x36004ED4: push 0x27 */
   5275 L_36004ED6:
   5276     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004ED6: call dword ptr [0x3616f304] */
   5277     RECOMP_FLAGS_IN();
   5278 L_36004EDC:
   5279     ecx = eax; /* 0x36004EDC: mov ecx, eax */
   5280 L_36004EDE:
   5281     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36004EDE: call dword ptr [0x3616f2e8] */
   5282     RECOMP_FLAGS_IN();
   5283 L_36004EE4:
   5284     edi = POP32_VAL(esp); /* 0x36004EE4: pop edi */
   5285 L_36004EE5:
   5286     esi = POP32_VAL(esp); /* 0x36004EE5: pop esi */
   5287 L_36004EE6:
   5288     ebp = POP32_VAL(esp); /* 0x36004EE6: pop ebp */
   5289 L_36004EE7:
   5290     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004EE7: ret 0xc */
   5291 L_36004EEA:
   5292     edx = MEM32(ebp + 0xC); /* 0x36004EEA: mov edx, dword ptr [ebp + 0xc] */
   5293 L_36004EED:
   5294     PUSH32(esp, edx); /* 0x36004EED: push edx */
   5295 L_36004EEE:
   5296     PUSH32(esp, 0x119u); /* 0x36004EEE: push 0x119 */
   5297 L_36004EF3:
   5298     PUSH32(esp, 0x1Au); /* 0x36004EF3: push 0x1a */
   5299 L_36004EF5:
   5300     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004EF5: call dword ptr [0x3616f304] */
   5301     RECOMP_FLAGS_IN();
   5302 L_36004EFB:
   5303     ecx = eax; /* 0x36004EFB: mov ecx, eax */
   5304 L_36004EFD:
   5305     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004EFD: call dword ptr [0x3616f30c] */
   5306     RECOMP_FLAGS_IN();
   5307 L_36004F03:
   5308     edi = POP32_VAL(esp); /* 0x36004F03: pop edi */
   5309 L_36004F04:
   5310     esi = POP32_VAL(esp); /* 0x36004F04: pop esi */
   5311 L_36004F05:
   5312     ebp = POP32_VAL(esp); /* 0x36004F05: pop ebp */
   5313 L_36004F06:
   5314     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004F06: ret 0xc */
   5315   _ljump:
   5316     switch (_itail_tgt) {
   5317       case 0x36004C50u: goto L_36004C50;
   5318       case 0x36004C51u: goto L_36004C51;
   5319       case 0x36004C53u: goto L_36004C53;
   5320       case 0x36004C56u: goto L_36004C56;
   5321       case 0x36004C59u: goto L_36004C59;
   5322       case 0x36004C5Cu: goto L_36004C5C;
   5323       case 0x36004C5Du: goto L_36004C5D;
   5324       case 0x36004C5Eu: goto L_36004C5E;
   5325       case 0x36004C64u: goto L_36004C64;
   5326       case 0x36004C66u: goto L_36004C66;
   5327       case 0x36004C6Cu: goto L_36004C6C;
   5328       case 0x36004C73u: goto L_36004C73;
   5329       case 0x36004C78u: goto L_36004C78;
   5330       case 0x36004C7Au: goto L_36004C7A;
   5331       case 0x36004C80u: goto L_36004C80;
   5332       case 0x36004C82u: goto L_36004C82;
   5333       case 0x36004C88u: goto L_36004C88;
   5334       case 0x36004C89u: goto L_36004C89;
   5335       case 0x36004C8Au: goto L_36004C8A;
   5336       case 0x36004C8Bu: goto L_36004C8B;
   5337       case 0x36004C8Eu: goto L_36004C8E;
   5338       case 0x36004C94u: goto L_36004C94;
   5339       case 0x36004C96u: goto L_36004C96;
   5340       case 0x36004C9Bu: goto L_36004C9B;
   5341       case 0x36004C9Du: goto L_36004C9D;
   5342       case 0x36004C9Fu: goto L_36004C9F;
   5343       case 0x36004CA5u: goto L_36004CA5;
   5344       case 0x36004CA7u: goto L_36004CA7;
   5345       case 0x36004CA9u: goto L_36004CA9;
   5346       case 0x36004CABu: goto L_36004CAB;
   5347       case 0x36004CB0u: goto L_36004CB0;
   5348       case 0x36004CB2u: goto L_36004CB2;
   5349       case 0x36004CB4u: goto L_36004CB4;
   5350       case 0x36004CB6u: goto L_36004CB6;
   5351       case 0x36004CB8u: goto L_36004CB8;
   5352       case 0x36004CB9u: goto L_36004CB9;
   5353       case 0x36004CBAu: goto L_36004CBA;
   5354       case 0x36004CBBu: goto L_36004CBB;
   5355       case 0x36004CBEu: goto L_36004CBE;
   5356       case 0x36004CC4u: goto L_36004CC4;
   5357       case 0x36004CC6u: goto L_36004CC6;
   5358       case 0x36004CCBu: goto L_36004CCB;
   5359       case 0x36004CCDu: goto L_36004CCD;
   5360       case 0x36004CCFu: goto L_36004CCF;
   5361       case 0x36004CD5u: goto L_36004CD5;
   5362       case 0x36004CD7u: goto L_36004CD7;
   5363       case 0x36004CD9u: goto L_36004CD9;
   5364       case 0x36004CDBu: goto L_36004CDB;
   5365       case 0x36004CE0u: goto L_36004CE0;
   5366       case 0x36004CE2u: goto L_36004CE2;
   5367       case 0x36004CE4u: goto L_36004CE4;
   5368       case 0x36004CE6u: goto L_36004CE6;
   5369       case 0x36004CE8u: goto L_36004CE8;
   5370       case 0x36004CE9u: goto L_36004CE9;
   5371       case 0x36004CEAu: goto L_36004CEA;
   5372       case 0x36004CEBu: goto L_36004CEB;
   5373       case 0x36004CEEu: goto L_36004CEE;
   5374       case 0x36004CF4u: goto L_36004CF4;
   5375       case 0x36004CF9u: goto L_36004CF9;
   5376       case 0x36004CFBu: goto L_36004CFB;
   5377       case 0x36004CFDu: goto L_36004CFD;
   5378       case 0x36004D03u: goto L_36004D03;
   5379       case 0x36004D05u: goto L_36004D05;
   5380       case 0x36004D07u: goto L_36004D07;
   5381       case 0x36004D0Cu: goto L_36004D0C;
   5382       case 0x36004D0Eu: goto L_36004D0E;
   5383       case 0x36004D10u: goto L_36004D10;
   5384       case 0x36004D12u: goto L_36004D12;
   5385       case 0x36004D14u: goto L_36004D14;
   5386       case 0x36004D15u: goto L_36004D15;
   5387       case 0x36004D16u: goto L_36004D16;
   5388       case 0x36004D17u: goto L_36004D17;
   5389       case 0x36004D1Au: goto L_36004D1A;
   5390       case 0x36004D1Fu: goto L_36004D1F;
   5391       case 0x36004D21u: goto L_36004D21;
   5392       case 0x36004D27u: goto L_36004D27;
   5393       case 0x36004D29u: goto L_36004D29;
   5394       case 0x36004D2Fu: goto L_36004D2F;
   5395       case 0x36004D30u: goto L_36004D30;
   5396       case 0x36004D31u: goto L_36004D31;
   5397       case 0x36004D32u: goto L_36004D32;
   5398       case 0x36004D35u: goto L_36004D35;
   5399       case 0x36004D3Au: goto L_36004D3A;
   5400       case 0x36004D3Cu: goto L_36004D3C;
   5401       case 0x36004D42u: goto L_36004D42;
   5402       case 0x36004D44u: goto L_36004D44;
   5403       case 0x36004D4Au: goto L_36004D4A;
   5404       case 0x36004D4Bu: goto L_36004D4B;
   5405       case 0x36004D4Cu: goto L_36004D4C;
   5406       case 0x36004D4Du: goto L_36004D4D;
   5407       case 0x36004D50u: goto L_36004D50;
   5408       case 0x36004D55u: goto L_36004D55;
   5409       case 0x36004D57u: goto L_36004D57;
   5410       case 0x36004D5Du: goto L_36004D5D;
   5411       case 0x36004D5Fu: goto L_36004D5F;
   5412       case 0x36004D65u: goto L_36004D65;
   5413       case 0x36004D66u: goto L_36004D66;
   5414       case 0x36004D67u: goto L_36004D67;
   5415       case 0x36004D68u: goto L_36004D68;
   5416       case 0x36004D6Bu: goto L_36004D6B;
   5417       case 0x36004D70u: goto L_36004D70;
   5418       case 0x36004D72u: goto L_36004D72;
   5419       case 0x36004D78u: goto L_36004D78;
   5420       case 0x36004D7Au: goto L_36004D7A;
   5421       case 0x36004D80u: goto L_36004D80;
   5422       case 0x36004D81u: goto L_36004D81;
   5423       case 0x36004D82u: goto L_36004D82;
   5424       case 0x36004D83u: goto L_36004D83;
   5425       case 0x36004D86u: goto L_36004D86;
   5426       case 0x36004D89u: goto L_36004D89;
   5427       case 0x36004D8Au: goto L_36004D8A;
   5428       case 0x36004D8Fu: goto L_36004D8F;
   5429       case 0x36004D91u: goto L_36004D91;
   5430       case 0x36004D97u: goto L_36004D97;
   5431       case 0x36004D99u: goto L_36004D99;
   5432       case 0x36004D9Fu: goto L_36004D9F;
   5433       case 0x36004DA0u: goto L_36004DA0;
   5434       case 0x36004DA1u: goto L_36004DA1;
   5435       case 0x36004DA2u: goto L_36004DA2;
   5436       case 0x36004DA5u: goto L_36004DA5;
   5437       case 0x36004DABu: goto L_36004DAB;
   5438       case 0x36004DACu: goto L_36004DAC;
   5439       case 0x36004DB1u: goto L_36004DB1;
   5440       case 0x36004DB3u: goto L_36004DB3;
   5441       case 0x36004DB5u: goto L_36004DB5;
   5442       case 0x36004DB7u: goto L_36004DB7;
   5443       case 0x36004DBDu: goto L_36004DBD;
   5444       case 0x36004DC0u: goto L_36004DC0;
   5445       case 0x36004DC1u: goto L_36004DC1;
   5446       case 0x36004DC3u: goto L_36004DC3;
   5447       case 0x36004DC5u: goto L_36004DC5;
   5448       case 0x36004DCBu: goto L_36004DCB;
   5449       case 0x36004DCCu: goto L_36004DCC;
   5450       case 0x36004DCDu: goto L_36004DCD;
   5451       case 0x36004DCEu: goto L_36004DCE;
   5452       case 0x36004DD1u: goto L_36004DD1;
   5453       case 0x36004DD4u: goto L_36004DD4;
   5454       case 0x36004DD5u: goto L_36004DD5;
   5455       case 0x36004DDAu: goto L_36004DDA;
   5456       case 0x36004DDCu: goto L_36004DDC;
   5457       case 0x36004DE2u: goto L_36004DE2;
   5458       case 0x36004DE4u: goto L_36004DE4;
   5459       case 0x36004DEAu: goto L_36004DEA;
   5460       case 0x36004DEBu: goto L_36004DEB;
   5461       case 0x36004DECu: goto L_36004DEC;
   5462       case 0x36004DEDu: goto L_36004DED;
   5463       case 0x36004DF0u: goto L_36004DF0;
   5464       case 0x36004DF5u: goto L_36004DF5;
   5465       case 0x36004DFAu: goto L_36004DFA;
   5466       case 0x36004DFDu: goto L_36004DFD;
   5467       case 0x36004DFEu: goto L_36004DFE;
   5468       case 0x36004E03u: goto L_36004E03;
   5469       case 0x36004E05u: goto L_36004E05;
   5470       case 0x36004E0Bu: goto L_36004E0B;
   5471       case 0x36004E0Du: goto L_36004E0D;
   5472       case 0x36004E13u: goto L_36004E13;
   5473       case 0x36004E14u: goto L_36004E14;
   5474       case 0x36004E15u: goto L_36004E15;
   5475       case 0x36004E16u: goto L_36004E16;
   5476       case 0x36004E19u: goto L_36004E19;
   5477       case 0x36004E1Cu: goto L_36004E1C;
   5478       case 0x36004E1Du: goto L_36004E1D;
   5479       case 0x36004E22u: goto L_36004E22;
   5480       case 0x36004E27u: goto L_36004E27;
   5481       case 0x36004E2Au: goto L_36004E2A;
   5482       case 0x36004E2Bu: goto L_36004E2B;
   5483       case 0x36004E30u: goto L_36004E30;
   5484       case 0x36004E35u: goto L_36004E35;
   5485       case 0x36004E38u: goto L_36004E38;
   5486       case 0x36004E3Eu: goto L_36004E3E;
   5487       case 0x36004E3Fu: goto L_36004E3F;
   5488       case 0x36004E40u: goto L_36004E40;
   5489       case 0x36004E45u: goto L_36004E45;
   5490       case 0x36004E47u: goto L_36004E47;
   5491       case 0x36004E49u: goto L_36004E49;
   5492       case 0x36004E4Fu: goto L_36004E4F;
   5493       case 0x36004E51u: goto L_36004E51;
   5494       case 0x36004E53u: goto L_36004E53;
   5495       case 0x36004E54u: goto L_36004E54;
   5496       case 0x36004E59u: goto L_36004E59;
   5497       case 0x36004E5Bu: goto L_36004E5B;
   5498       case 0x36004E5Du: goto L_36004E5D;
   5499       case 0x36004E5Fu: goto L_36004E5F;
   5500       case 0x36004E61u: goto L_36004E61;
   5501       case 0x36004E62u: goto L_36004E62;
   5502       case 0x36004E67u: goto L_36004E67;
   5503       case 0x36004E69u: goto L_36004E69;
   5504       case 0x36004E6Bu: goto L_36004E6B;
   5505       case 0x36004E6Du: goto L_36004E6D;
   5506       case 0x36004E6Fu: goto L_36004E6F;
   5507       case 0x36004E70u: goto L_36004E70;
   5508       case 0x36004E71u: goto L_36004E71;
   5509       case 0x36004E72u: goto L_36004E72;
   5510       case 0x36004E73u: goto L_36004E73;
   5511       case 0x36004E76u: goto L_36004E76;
   5512       case 0x36004E7Bu: goto L_36004E7B;
   5513       case 0x36004E7Du: goto L_36004E7D;
   5514       case 0x36004E83u: goto L_36004E83;
   5515       case 0x36004E85u: goto L_36004E85;
   5516       case 0x36004E8Bu: goto L_36004E8B;
   5517       case 0x36004E8Cu: goto L_36004E8C;
   5518       case 0x36004E8Du: goto L_36004E8D;
   5519       case 0x36004E8Eu: goto L_36004E8E;
   5520       case 0x36004E91u: goto L_36004E91;
   5521       case 0x36004E94u: goto L_36004E94;
   5522       case 0x36004E95u: goto L_36004E95;
   5523       case 0x36004E9Au: goto L_36004E9A;
   5524       case 0x36004E9Cu: goto L_36004E9C;
   5525       case 0x36004EA2u: goto L_36004EA2;
   5526       case 0x36004EA4u: goto L_36004EA4;
   5527       case 0x36004EAAu: goto L_36004EAA;
   5528       case 0x36004EABu: goto L_36004EAB;
   5529       case 0x36004EACu: goto L_36004EAC;
   5530       case 0x36004EADu: goto L_36004EAD;
   5531       case 0x36004EB0u: goto L_36004EB0;
   5532       case 0x36004EB3u: goto L_36004EB3;
   5533       case 0x36004EB4u: goto L_36004EB4;
   5534       case 0x36004EB9u: goto L_36004EB9;
   5535       case 0x36004EBBu: goto L_36004EBB;
   5536       case 0x36004EC1u: goto L_36004EC1;
   5537       case 0x36004EC3u: goto L_36004EC3;
   5538       case 0x36004EC9u: goto L_36004EC9;
   5539       case 0x36004ECAu: goto L_36004ECA;
   5540       case 0x36004ECBu: goto L_36004ECB;
   5541       case 0x36004ECCu: goto L_36004ECC;
   5542       case 0x36004ECFu: goto L_36004ECF;
   5543       case 0x36004ED4u: goto L_36004ED4;
   5544       case 0x36004ED6u: goto L_36004ED6;
   5545       case 0x36004EDCu: goto L_36004EDC;
   5546       case 0x36004EDEu: goto L_36004EDE;
   5547       case 0x36004EE4u: goto L_36004EE4;
   5548       case 0x36004EE5u: goto L_36004EE5;
   5549       case 0x36004EE6u: goto L_36004EE6;
   5550       case 0x36004EE7u: goto L_36004EE7;
   5551       case 0x36004EEAu: goto L_36004EEA;
   5552       case 0x36004EEDu: goto L_36004EED;
   5553       case 0x36004EEEu: goto L_36004EEE;
   5554       case 0x36004EF3u: goto L_36004EF3;
   5555       case 0x36004EF5u: goto L_36004EF5;
   5556       case 0x36004EFBu: goto L_36004EFB;
   5557       case 0x36004EFDu: goto L_36004EFD;
   5558       case 0x36004F03u: goto L_36004F03;
   5559       case 0x36004F04u: goto L_36004F04;
   5560       case 0x36004F05u: goto L_36004F05;
   5561       case 0x36004F06u: goto L_36004F06;
   5562       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5563     }
   5564     RECOMP_REGS_OUT();
   5565 }
   5566 
   5567 void sub_36004E7B(void) {
   5568     int _fpu_cmp = 0;
   5569     uint32_t _cf = 0;
   5570     int _df = 1;
   5571     uint32_t _flag_k = FK_NONE;
   5572     uint32_t _flag_a = 0, _flag_b = 0;
   5573     uint32_t _itail_tgt = 0;
   5574     RECOMP_REGS_LOCALS
   5575     RECOMP_ENTER(0x36004E7Bu);
   5576 
   5577 L_36004E7B:
   5578     PUSH32(esp, 0x16u); /* 0x36004E7B: push 0x16 */
   5579     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004E7D: call dword ptr [0x3616f304] */
   5580     RECOMP_FLAGS_IN();
   5581     ecx = eax; /* 0x36004E83: mov ecx, eax */
   5582     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36004E85: call dword ptr [0x3616f2e8] */
   5583     RECOMP_FLAGS_IN();
   5584     edi = POP32_VAL(esp); /* 0x36004E8B: pop edi */
   5585     esi = POP32_VAL(esp); /* 0x36004E8C: pop esi */
   5586     ebp = POP32_VAL(esp); /* 0x36004E8D: pop ebp */
   5587     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004E8E: ret 0xc */
   5588     RECOMP_REGS_OUT();
   5589 }
   5590 
   5591 void sub_36004EF3(void) {
   5592     int _fpu_cmp = 0;
   5593     uint32_t _cf = 0;
   5594     int _df = 1;
   5595     uint32_t _flag_k = FK_NONE;
   5596     uint32_t _flag_a = 0, _flag_b = 0;
   5597     uint32_t _itail_tgt = 0;
   5598     RECOMP_REGS_LOCALS
   5599     RECOMP_ENTER(0x36004EF3u);
   5600 
   5601 L_36004EF3:
   5602     PUSH32(esp, 0x1Au); /* 0x36004EF3: push 0x1a */
   5603     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004EF5: call dword ptr [0x3616f304] */
   5604     RECOMP_FLAGS_IN();
   5605     ecx = eax; /* 0x36004EFB: mov ecx, eax */
   5606     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36004EFD: call dword ptr [0x3616f30c] */
   5607     RECOMP_FLAGS_IN();
   5608     edi = POP32_VAL(esp); /* 0x36004F03: pop edi */
   5609     esi = POP32_VAL(esp); /* 0x36004F04: pop esi */
   5610     ebp = POP32_VAL(esp); /* 0x36004F05: pop ebp */
   5611     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36004F06: ret 0xc */
   5612     RECOMP_REGS_OUT();
   5613 }
   5614 
   5615 void sub_36004FB0(void) {
   5616     int _fpu_cmp = 0;
   5617     uint32_t _cf = 0;
   5618     int _df = 1;
   5619     uint32_t _flag_k = FK_NONE;
   5620     uint32_t _flag_a = 0, _flag_b = 0;
   5621     uint32_t _itail_tgt = 0;
   5622     RECOMP_REGS_LOCALS
   5623     RECOMP_ENTER(0x36004FB0u);
   5624 
   5625 L_36004FB0:
   5626     PUSH32(esp, ebp); /* 0x36004FB0: push ebp */
   5627     ebp = esp; /* 0x36004FB1: mov ebp, esp */
   5628     eax = MEM32(ebp + 0xC); /* 0x36004FB3: mov eax, dword ptr [ebp + 0xc] */
   5629     ecx = MEM32(ebp + 0x8); /* 0x36004FB6: mov ecx, dword ptr [ebp + 8] */
   5630     PUSH32(esp, eax); /* 0x36004FB9: push eax */
   5631     PUSH32(esp, ecx); /* 0x36004FBA: push ecx */
   5632     PUSH32(esp, 0xC5u); /* 0x36004FBB: push 0xc5 */
   5633     PUSH32(esp, 0x22u); /* 0x36004FC0: push 0x22 */
   5634     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004FC2: call dword ptr [0x3616f304] */
   5635     RECOMP_FLAGS_IN();
   5636     ecx = eax; /* 0x36004FC8: mov ecx, eax */
   5637     RECOMP_ICALL(MEM32(0x3616F2E4)); /* 0x36004FCA: call dword ptr [0x3616f2e4] */
   5638     RECOMP_FLAGS_IN();
   5639     ebp = POP32_VAL(esp); /* 0x36004FD0: pop ebp */
   5640     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36004FD1: ret 8 */
   5641     RECOMP_REGS_OUT();
   5642 }
   5643 
   5644 void sub_36004FE0(void) {
   5645     int _fpu_cmp = 0;
   5646     uint32_t _cf = 0;
   5647     int _df = 1;
   5648     uint32_t _flag_k = FK_NONE;
   5649     uint32_t _flag_a = 0, _flag_b = 0;
   5650     uint32_t _itail_tgt = 0;
   5651     RECOMP_REGS_LOCALS
   5652     RECOMP_ENTER(0x36004FE0u);
   5653 
   5654 L_36004FE0:
   5655     PUSH32(esp, ebp); /* 0x36004FE0: push ebp */
   5656     ebp = esp; /* 0x36004FE1: mov ebp, esp */
   5657     PUSH32(esp, ebx); /* 0x36004FE3: push ebx */
   5658     ebx = MEM32(0x3616F304); /* 0x36004FE4: mov ebx, dword ptr [0x3616f304] */
   5659     PUSH32(esp, esi); /* 0x36004FEA: push esi */
   5660     esi = MEM32(ebp + 0xC); /* 0x36004FEB: mov esi, dword ptr [ebp + 0xc] */
   5661     PUSH32(esp, edi); /* 0x36004FEE: push edi */
   5662     edi = MEM32(ebp + 0x8); /* 0x36004FEF: mov edi, dword ptr [ebp + 8] */
   5663     PUSH32(esp, esi); /* 0x36004FF2: push esi */
   5664     PUSH32(esp, edi); /* 0x36004FF3: push edi */
   5665     PUSH32(esp, 0xA7u); /* 0x36004FF4: push 0xa7 */
   5666     PUSH32(esp, 0x18u); /* 0x36004FF9: push 0x18 */
   5667     RECOMP_ICALL(ebx); /* 0x36004FFB: call ebx */
   5668     RECOMP_FLAGS_IN();
   5669     ecx = eax; /* 0x36004FFD: mov ecx, eax */
   5670     RECOMP_ICALL(MEM32(0x3616F2E4)); /* 0x36004FFF: call dword ptr [0x3616f2e4] */
   5671     RECOMP_FLAGS_IN();
   5672     PUSH32(esp, esi); /* 0x36005005: push esi */
   5673     PUSH32(esp, edi); /* 0x36005006: push edi */
   5674     PUSH32(esp, 0xA7u); /* 0x36005007: push 0xa7 */
   5675     PUSH32(esp, 0xDu); /* 0x3600500C: push 0xd */
   5676     RECOMP_ICALL(ebx); /* 0x3600500E: call ebx */
   5677     RECOMP_FLAGS_IN();
   5678     ecx = eax; /* 0x36005010: mov ecx, eax */
   5679     RECOMP_ICALL(MEM32(0x3616F2E4)); /* 0x36005012: call dword ptr [0x3616f2e4] */
   5680     RECOMP_FLAGS_IN();
   5681     PUSH32(esp, esi); /* 0x36005018: push esi */
   5682     PUSH32(esp, edi); /* 0x36005019: push edi */
   5683     PUSH32(esp, 0xA7u); /* 0x3600501A: push 0xa7 */
   5684     PUSH32(esp, 5); /* 0x3600501F: push 5 */
   5685     RECOMP_ICALL(ebx); /* 0x36005021: call ebx */
   5686     RECOMP_FLAGS_IN();
   5687     ecx = eax; /* 0x36005023: mov ecx, eax */
   5688     RECOMP_ICALL(MEM32(0x3616F2E4)); /* 0x36005025: call dword ptr [0x3616f2e4] */
   5689     RECOMP_FLAGS_IN();
   5690     PUSH32(esp, esi); /* 0x3600502B: push esi */
   5691     PUSH32(esp, edi); /* 0x3600502C: push edi */
   5692     PUSH32(esp, 0xA7u); /* 0x3600502D: push 0xa7 */
   5693     PUSH32(esp, 0xEu); /* 0x36005032: push 0xe */
   5694     RECOMP_ICALL(ebx); /* 0x36005034: call ebx */
   5695     RECOMP_FLAGS_IN();
   5696     ecx = eax; /* 0x36005036: mov ecx, eax */
   5697     RECOMP_ICALL(MEM32(0x3616F2E4)); /* 0x36005038: call dword ptr [0x3616f2e4] */
   5698     RECOMP_FLAGS_IN();
   5699     PUSH32(esp, esi); /* 0x3600503E: push esi */
   5700     PUSH32(esp, edi); /* 0x3600503F: push edi */
   5701     PUSH32(esp, 0xA7u); /* 0x36005040: push 0xa7 */
   5702     PUSH32(esp, 0x2Au); /* 0x36005045: push 0x2a */
   5703     RECOMP_ICALL(ebx); /* 0x36005047: call ebx */
   5704     RECOMP_FLAGS_IN();
   5705     ecx = eax; /* 0x36005049: mov ecx, eax */
   5706     RECOMP_ICALL(MEM32(0x3616F2E4)); /* 0x3600504B: call dword ptr [0x3616f2e4] */
   5707     RECOMP_FLAGS_IN();
   5708     edi = POP32_VAL(esp); /* 0x36005051: pop edi */
   5709     esi = POP32_VAL(esp); /* 0x36005052: pop esi */
   5710     ebx = POP32_VAL(esp); /* 0x36005053: pop ebx */
   5711     ebp = POP32_VAL(esp); /* 0x36005054: pop ebp */
   5712     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36005055: ret 8 */
   5713     RECOMP_REGS_OUT();
   5714 }
   5715 
   5716 void sub_36005060(void) {
   5717     int _fpu_cmp = 0;
   5718     uint32_t _cf = 0;
   5719     int _df = 1;
   5720     uint32_t _flag_k = FK_NONE;
   5721     uint32_t _flag_a = 0, _flag_b = 0;
   5722     uint32_t _itail_tgt = 0;
   5723     RECOMP_REGS_LOCALS
   5724     RECOMP_ENTER(0x36005060u);
   5725 
   5726 L_36005060:
   5727     PUSH32(esp, ebp); /* 0x36005060: push ebp */
   5728     ebp = esp; /* 0x36005061: mov ebp, esp */
   5729     PUSH32(esp, ebx); /* 0x36005063: push ebx */
   5730     PUSH32(esp, esi); /* 0x36005064: push esi */
   5731     esi = MEM32(ebp + 0x8); /* 0x36005065: mov esi, dword ptr [ebp + 8] */
   5732     PUSH32(esp, edi); /* 0x36005068: push edi */
   5733     edi = MEM32(0x3616F304); /* 0x36005069: mov edi, dword ptr [0x3616f304] */
   5734     PUSH32(esp, esi); /* 0x3600506F: push esi */
   5735     PUSH32(esp, 0xFDu); /* 0x36005070: push 0xfd */
   5736     PUSH32(esp, 0x18u); /* 0x36005075: push 0x18 */
   5737     RECOMP_ICALL(edi); /* 0x36005077: call edi */
   5738     RECOMP_FLAGS_IN();
   5739     ebx = MEM32(0x3616F30C); /* 0x36005079: mov ebx, dword ptr [0x3616f30c] */
   5740     ecx = eax; /* 0x3600507F: mov ecx, eax */
   5741     RECOMP_ICALL(ebx); /* 0x36005081: call ebx */
   5742     RECOMP_FLAGS_IN();
   5743     PUSH32(esp, esi); /* 0x36005083: push esi */
   5744     PUSH32(esp, 0xFDu); /* 0x36005084: push 0xfd */
   5745     PUSH32(esp, 0x37u); /* 0x36005089: push 0x37 */
   5746     RECOMP_ICALL(edi); /* 0x3600508B: call edi */
   5747     RECOMP_FLAGS_IN();
   5748     ecx = eax; /* 0x3600508D: mov ecx, eax */
   5749     RECOMP_ICALL(ebx); /* 0x3600508F: call ebx */
   5750     RECOMP_FLAGS_IN();
   5751     edi = POP32_VAL(esp); /* 0x36005091: pop edi */
   5752     esi = POP32_VAL(esp); /* 0x36005092: pop esi */
   5753     ebx = POP32_VAL(esp); /* 0x36005093: pop ebx */
   5754     ebp = POP32_VAL(esp); /* 0x36005094: pop ebp */
   5755     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36005095: ret 8 */
   5756     RECOMP_REGS_OUT();
   5757 }
   5758 
   5759 void sub_360050A0(void) {
   5760     int _fpu_cmp = 0;
   5761     uint32_t _cf = 0;
   5762     int _df = 1;
   5763     uint32_t _flag_k = FK_NONE;
   5764     uint32_t _flag_a = 0, _flag_b = 0;
   5765     uint32_t _itail_tgt = 0;
   5766     RECOMP_REGS_LOCALS
   5767     RECOMP_ENTER(0x360050A0u);
   5768 
   5769 L_360050A0:
   5770     PUSH32(esp, ebp); /* 0x360050A0: push ebp */
   5771     ebp = esp; /* 0x360050A1: mov ebp, esp */
   5772     eax = MEM32(ebp + 0xC); /* 0x360050A3: mov eax, dword ptr [ebp + 0xc] */
   5773     ecx = MEM32(ebp + 0x8); /* 0x360050A6: mov ecx, dword ptr [ebp + 8] */
   5774     PUSH32(esp, eax); /* 0x360050A9: push eax */
   5775     PUSH32(esp, ecx); /* 0x360050AA: push ecx */
   5776     PUSH32(esp, 0x104u); /* 0x360050AB: push 0x104 */
   5777     PUSH32(esp, 0x18u); /* 0x360050B0: push 0x18 */
   5778     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360050B2: call dword ptr [0x3616f304] */
   5779     RECOMP_FLAGS_IN();
   5780     ecx = eax; /* 0x360050B8: mov ecx, eax */
   5781     RECOMP_ICALL(MEM32(0x3616F2E4)); /* 0x360050BA: call dword ptr [0x3616f2e4] */
   5782     RECOMP_FLAGS_IN();
   5783     ebp = POP32_VAL(esp); /* 0x360050C0: pop ebp */
   5784     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360050C1: ret 8 */
   5785     RECOMP_REGS_OUT();
   5786 }
   5787 
   5788 void sub_360050D0(void) {
   5789     int _fpu_cmp = 0;
   5790     uint32_t _cf = 0;
   5791     int _df = 1;
   5792     uint32_t _flag_k = FK_NONE;
   5793     uint32_t _flag_a = 0, _flag_b = 0;
   5794     uint32_t _itail_tgt = 0;
   5795     RECOMP_REGS_LOCALS
   5796     RECOMP_ENTER(0x360050D0u);
   5797 
   5798 L_360050D0:
   5799     PUSH32(esp, ebp); /* 0x360050D0: push ebp */
   5800     ebp = esp; /* 0x360050D1: mov ebp, esp */
   5801     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5803     esp = esp - 8; /* 0x360050D3: sub esp, 8 */
   5804     _flag_k = FK_CMP;
   5805     eax = MEM32(ebp + 0xC); /* 0x360050D6: mov eax, dword ptr [ebp + 0xc] */
   5806     ecx = MEM32(eax + 0x8); /* 0x360050D9: mov ecx, dword ptr [eax + 8] */
   5807     eax = MEM32(eax + 0x4); /* 0x360050DC: mov eax, dword ptr [eax + 4] */
   5808     /* test eax, eax */ /* 0x360050DF: test eax, eax */
   5809     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5810     _cf = 0;
   5811     _flag_k = FK_TEST;
   5812     if (TEST_NZ(_flag_a, _flag_b)) goto L_360050E8; /* 0x360050E1: jne 0x360050e8 */
   5813 L_360050E3:
   5814     eax = MEM32(0x3616F10C); /* 0x360050E3: mov eax, dword ptr [0x3616f10c] */
   5815 L_360050E8:
   5816     PUSH32(esp, esi); /* 0x360050E8: push esi */
   5817     esi = MEM32(0x3616F304); /* 0x360050E9: mov esi, dword ptr [0x3616f304] */
   5818     PUSH32(esp, ecx); /* 0x360050EF: push ecx */
   5819     PUSH32(esp, eax); /* 0x360050F0: push eax */
   5820     PUSH32(esp, 0xD7u); /* 0x360050F1: push 0xd7 */
   5821     PUSH32(esp, 0x26u); /* 0x360050F6: push 0x26 */
   5822     RECOMP_ICALL(esi); /* 0x360050F8: call esi */
   5823     RECOMP_FLAGS_IN();
   5824     ecx = eax; /* 0x360050FA: mov ecx, eax */
   5825     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x360050FC: call dword ptr [0x3616f310] */
   5826     RECOMP_FLAGS_IN();
   5827     edx = MEM32(ebp + 0x8); /* 0x36005102: mov edx, dword ptr [ebp + 8] */
   5828     eax = MEM32(ebp + 0x10); /* 0x36005105: mov eax, dword ptr [ebp + 0x10] */
   5829     ecx = ebp + (-0x8); /* 0x36005108: lea ecx, [ebp - 8] */
   5830     PUSH32(esp, ecx); /* 0x3600510B: push ecx */
   5831     PUSH32(esp, edx); /* 0x3600510C: push edx */
   5832     MEM32(ebp + (-0x8)) = 1; /* 0x3600510D: mov dword ptr [ebp - 8], 1 */
   5833     MEM32(ebp + (-0x4)) = eax; /* 0x36005114: mov dword ptr [ebp - 4], eax */
   5834     RECOMP_ICALL(esi); /* 0x36005117: call esi */
   5835     RECOMP_FLAGS_IN();
   5836     ecx = eax; /* 0x36005119: mov ecx, eax */
   5837     RECOMP_ICALL(MEM32(0x3616F2D4)); /* 0x3600511B: call dword ptr [0x3616f2d4] */
   5838     RECOMP_FLAGS_IN();
   5839     esi = POP32_VAL(esp); /* 0x36005121: pop esi */
   5840     esp = ebp; /* 0x36005122: mov esp, ebp */
   5841     ebp = POP32_VAL(esp); /* 0x36005124: pop ebp */
   5842     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36005125: ret 0xc */
   5843     RECOMP_REGS_OUT();
   5844 }
   5845 
   5846 void sub_36005130(void) {
   5847     int _fpu_cmp = 0;
   5848     uint32_t _cf = 0;
   5849     int _df = 1;
   5850     uint32_t _flag_k = FK_NONE;
   5851     uint32_t _flag_a = 0, _flag_b = 0;
   5852     uint32_t _itail_tgt = 0;
   5853     RECOMP_REGS_LOCALS
   5854     RECOMP_ENTER(0x36005130u);
   5855 
   5856 L_36005130:
   5857     PUSH32(esp, 0xD9u); /* 0x36005130: push 0xd9 */
   5858     PUSH32(esp, 0x26u); /* 0x36005135: push 0x26 */
   5859     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36005137: call dword ptr [0x3616f304] */
   5860     RECOMP_FLAGS_IN();
   5861     ecx = eax; /* 0x3600513D: mov ecx, eax */
   5862     RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600513F: call dword ptr [0x3616f2e8] */
   5863     RECOMP_FLAGS_IN();
   5864     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36005145: ret  */
   5865     RECOMP_REGS_OUT();
   5866 }
   5867 
   5868 void sub_36005150(void) {
   5869     int _fpu_cmp = 0;
   5870     uint32_t _cf = 0;
   5871     int _df = 1;
   5872     uint32_t _flag_k = FK_NONE;
   5873     uint32_t _flag_a = 0, _flag_b = 0;
   5874     uint32_t _itail_tgt = 0;
   5875     RECOMP_REGS_LOCALS
   5876     RECOMP_ENTER(0x36005150u);
   5877 
   5878 L_36005150:
   5879     PUSH32(esp, ebp); /* 0x36005150: push ebp */
   5880     ebp = esp; /* 0x36005151: mov ebp, esp */
   5881     eax = MEM32(ebp + 0x8); /* 0x36005153: mov eax, dword ptr [ebp + 8] */
   5882     PUSH32(esp, esi); /* 0x36005156: push esi */
   5883     esi = MEM32(0x3616F304); /* 0x36005157: mov esi, dword ptr [0x3616f304] */
   5884     PUSH32(esp, eax); /* 0x3600515D: push eax */
   5885     PUSH32(esp, 0xDBu); /* 0x3600515E: push 0xdb */
   5886     PUSH32(esp, 0x26u); /* 0x36005163: push 0x26 */
   5887     RECOMP_ICALL(esi); /* 0x36005165: call esi */
   5888     RECOMP_FLAGS_IN();
   5889     ecx = eax; /* 0x36005167: mov ecx, eax */
   5890     RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36005169: call dword ptr [0x3616f30c] */
   5891     RECOMP_FLAGS_IN();
   5892     ecx = MEM32(ebp + 0xC); /* 0x3600516F: mov ecx, dword ptr [ebp + 0xc] */
   5893     PUSH32(esp, ecx); /* 0x36005172: push ecx */
   5894     RECOMP_ICALL(esi); /* 0x36005173: call esi */
   5895     RECOMP_FLAGS_IN();
   5896     ecx = eax; /* 0x36005175: mov ecx, eax */
   5897     RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36005177: call dword ptr [0x3616f2fc] */
   5898     RECOMP_FLAGS_IN();
   5899     esi = POP32_VAL(esp); /* 0x3600517D: pop esi */
   5900     ebp = POP32_VAL(esp); /* 0x3600517E: pop ebp */
   5901     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3600517F: ret 8 */
   5902     RECOMP_REGS_OUT();
   5903 }
   5904 
   5905 void sub_36005190(void) {
   5906     int _fpu_cmp = 0;
   5907     uint32_t _cf = 0;
   5908     int _df = 1;
   5909     uint32_t _flag_k = FK_NONE;
   5910     uint32_t _flag_a = 0, _flag_b = 0;
   5911     uint32_t _itail_tgt = 0;
   5912     RECOMP_REGS_LOCALS
   5913     RECOMP_ENTER(0x36005190u);
   5914 
   5915 L_36005190:
   5916     PUSH32(esp, ebp); /* 0x36005190: push ebp */
   5917     ebp = esp; /* 0x36005191: mov ebp, esp */
   5918     eax = MEM32(ebp + 0x8); /* 0x36005193: mov eax, dword ptr [ebp + 8] */
   5919     PUSH32(esp, eax); /* 0x36005196: push eax */
   5920     PUSH32(esp, 0xDCu); /* 0x36005197: push 0xdc */
   5921     PUSH32(esp, 0x26u); /* 0x3600519C: push 0x26 */
   5922     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x3600519E: call dword ptr [0x3616f304] */
   5923     RECOMP_FLAGS_IN();
   5924     ecx = eax; /* 0x360051A4: mov ecx, eax */
   5925     RECOMP_ICALL(MEM32(0x3616F2D8)); /* 0x360051A6: call dword ptr [0x3616f2d8] */
   5926     RECOMP_FLAGS_IN();
   5927     ebp = POP32_VAL(esp); /* 0x360051AC: pop ebp */
   5928     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360051AD: ret 4 */
   5929     RECOMP_REGS_OUT();
   5930 }
   5931 
   5932 void sub_360051B0(void) {
   5933     int _fpu_cmp = 0;
   5934     uint32_t _cf = 0;
   5935     int _df = 1;
   5936     uint32_t _flag_k = FK_NONE;
   5937     uint32_t _flag_a = 0, _flag_b = 0;
   5938     uint32_t _itail_tgt = 0;
   5939     RECOMP_REGS_LOCALS
   5940     RECOMP_ENTER(0x360051B0u);
   5941 
   5942 L_360051B0:
   5943     PUSH32(esp, ebp); /* 0x360051B0: push ebp */
   5944     ebp = esp; /* 0x360051B1: mov ebp, esp */
   5945     eax = MEM32(ebp + 0xC); /* 0x360051B3: mov eax, dword ptr [ebp + 0xc] */
   5946     ecx = MEM32(ebp + 0x8); /* 0x360051B6: mov ecx, dword ptr [ebp + 8] */
   5947     PUSH32(esp, eax); /* 0x360051B9: push eax */
   5948     PUSH32(esp, ecx); /* 0x360051BA: push ecx */
   5949     PUSH32(esp, 0x107u); /* 0x360051BB: push 0x107 */
   5950     PUSH32(esp, 0x2Au); /* 0x360051C0: push 0x2a */
   5951     RECOMP_ICALL(MEM32(0x3616F304)); /* 0x360051C2: call dword ptr [0x3616f304] */
   5952     RECOMP_FLAGS_IN();
   5953     ecx = eax; /* 0x360051C8: mov ecx, eax */
   5954     RECOMP_ICALL(MEM32(0x3616F2E4)); /* 0x360051CA: call dword ptr [0x3616f2e4] */
   5955     RECOMP_FLAGS_IN();
   5956     ebp = POP32_VAL(esp); /* 0x360051D0: pop ebp */
   5957     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360051D1: ret 8 */
   5958     RECOMP_REGS_OUT();
   5959 }
   5960 
   5961 void sub_360051E0(void) {
   5962     int _fpu_cmp = 0;
   5963     uint32_t _cf = 0;
   5964     int _df = 1;
   5965     uint32_t _flag_k = FK_NONE;
   5966     uint32_t _flag_a = 0, _flag_b = 0;
   5967     uint32_t _itail_tgt = 0;
   5968     RECOMP_REGS_LOCALS
   5969     RECOMP_ENTER(0x360051E0u);
   5970 
   5971 L_360051E0:
   5972     PUSH32(esp, ebp); /* 0x360051E0: push ebp */
   5973     ebp = esp; /* 0x360051E1: mov ebp, esp */
   5974     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5976     esp = esp - 8; /* 0x360051E3: sub esp, 8 */
   5977     _flag_k = FK_CMP;
   5978     PUSH32(esp, esi); /* 0x360051E6: push esi */
   5979     PUSH32(esp, edi); /* 0x360051E7: push edi */
   5980     edi = MEM32(ebp + 0x8); /* 0x360051E8: mov edi, dword ptr [ebp + 8] */
   5981     eax = MEM32(edi + 0x4); /* 0x360051EB: mov eax, dword ptr [edi + 4] */
   5982     /* test eax, eax */ /* 0x360051EE: test eax, eax */
   5983     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5984     _cf = 0;
   5985     _flag_k = FK_TEST;
   5986     ecx = MEM32(edi + 0x8); /* 0x360051F0: mov ecx, dword ptr [edi + 8] */
   5987     if (TEST_NZ(_flag_a, _flag_b)) goto L_360051FA; /* 0x360051F3: jne 0x360051fa */
   5988 L_360051F5:
   5989     eax = MEM32(0x3616F10C); /* 0x360051F5: mov eax, dword ptr [0x3616f10c] */
   5990 L_360051FA:
   5991     esi = MEM32(0x3616F304); /* 0x360051FA: mov esi, dword ptr [0x3616f304] */
   5992     PUSH32(esp, ecx); /* 0x36005200: push ecx */
   5993     PUSH32(esp, eax); /* 0x36005201: push eax */
   5994     PUSH32(esp, 0x70u); /* 0x36005202: push 0x70 */
   5995     PUSH32(esp, 0x14u); /* 0x36005204: push 0x14 */
   5996     RECOMP_ICALL(esi); /* 0x36005206: call esi */
   5997     RECOMP_FLAGS_IN();
   5998     ecx = eax; /* 0x36005208: mov ecx, eax */
   5999     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x3600520A: call dword ptr [0x3616f310] */
   6000     RECOMP_FLAGS_IN();
   6001     eax = MEM32(edi + 0x8); /* 0x36005210: mov eax, dword ptr [edi + 8] */
   6002     PUSH32(esp, eax); /* 0x36005213: push eax */
   6003     RECOMP_ICALL(esi); /* 0x36005214: call esi */
   6004     RECOMP_FLAGS_IN();
   6005     ecx = eax; /* 0x36005216: mov ecx, eax */
   6006     RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36005218: call dword ptr [0x3616f2fc] */
   6007     RECOMP_FLAGS_IN();
   6008     RECOMP_ICALL(0x3600C230u); /* 0x3600521E: call 0x3600c230 */ /* not lifted */
   6009     RECOMP_FLAGS_IN();
   6010     ecx = eax; /* 0x36005223: mov ecx, eax */
   6011     RECOMP_ICALL(0x3600C2B0u); /* 0x36005225: call 0x3600c2b0 */ /* not lifted */
   6012     RECOMP_FLAGS_IN();
   6013     MEM32(ebp + (-0x4)) = eax; /* 0x3600522A: mov dword ptr [ebp - 4], eax */
   6014     eax = ebp + (-0x8); /* 0x3600522D: lea eax, [ebp - 8] */
   6015     PUSH32(esp, eax); /* 0x36005230: push eax */
   6016     MEM32(ebp + (-0x8)) = 4; /* 0x36005231: mov dword ptr [ebp - 8], 4 */
   6017     RECOMP_ICALL(esi); /* 0x36005238: call esi */
   6018     RECOMP_FLAGS_IN();
   6019     ecx = eax; /* 0x3600523A: mov ecx, eax */
   6020     RECOMP_ICALL(MEM32(0x3616F2DC)); /* 0x3600523C: call dword ptr [0x3616f2dc] */
   6021     RECOMP_FLAGS_IN();
   6022     edi = POP32_VAL(esp); /* 0x36005242: pop edi */
   6023     esi = POP32_VAL(esp); /* 0x36005243: pop esi */
   6024     esp = ebp; /* 0x36005244: mov esp, ebp */
   6025     ebp = POP32_VAL(esp); /* 0x36005246: pop ebp */
   6026     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36005247: ret 4 */
   6027     RECOMP_REGS_OUT();
   6028 }
   6029 
   6030 void sub_36005250(void) {
   6031     int _fpu_cmp = 0;
   6032     uint32_t _cf = 0;
   6033     int _df = 1;
   6034     uint32_t _flag_k = FK_NONE;
   6035     uint32_t _flag_a = 0, _flag_b = 0;
   6036     uint32_t _itail_tgt = 0;
   6037     RECOMP_REGS_LOCALS
   6038     RECOMP_ENTER(0x36005250u);
   6039 
   6040 L_36005250:
   6041     PUSH32(esp, ebp); /* 0x36005250: push ebp */
   6042     ebp = esp; /* 0x36005251: mov ebp, esp */
   6043     PUSH32(esp, esi); /* 0x36005253: push esi */
   6044     esi = MEM32(ebp + 0x8); /* 0x36005254: mov esi, dword ptr [ebp + 8] */
   6045     PUSH32(esp, edi); /* 0x36005257: push edi */
   6046     edi = MEM32(ebp + 0xC); /* 0x36005258: mov edi, dword ptr [ebp + 0xc] */
   6047     /* cmp esi, edi */ /* 0x3600525B: cmp esi, edi */
   6048     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   6049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6050     _flag_k = FK_CMP;
   6051     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600526F; /* 0x3600525D: je 0x3600526f */
   6052 L_3600525F:
   6053     eax = MEM32(esi); /* 0x3600525F: mov eax, dword ptr [esi] */
   6054     PUSH32(esp, 0); /* 0x36005261: push 0 */
   6055     ecx = esi; /* 0x36005263: mov ecx, esi */
   6056     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36005265: call dword ptr [eax + 0xc] */
   6057     RECOMP_FLAGS_IN();
   6058     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   6059     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6060     esi = esi + 8; /* 0x36005268: add esi, 8 */
   6061     _flag_k = FK_ADD;
   6062     /* cmp esi, edi */ /* 0x3600526B: cmp esi, edi */
   6063     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   6064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6065     _flag_k = FK_CMP;
   6066     RECOMP_BACKEDGE();
   6067     if (CMP_NE(_flag_a, _flag_b)) goto L_3600525F; /* 0x3600526D: jne 0x3600525f */
   6068 L_3600526F:
   6069     edi = POP32_VAL(esp); /* 0x3600526F: pop edi */
   6070     esi = POP32_VAL(esp); /* 0x36005270: pop esi */
   6071     ebp = POP32_VAL(esp); /* 0x36005271: pop ebp */
   6072     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36005272: ret 8 */
   6073     RECOMP_REGS_OUT();
   6074 }
   6075 
   6076 void sub_36005280(void) {
   6077     int _fpu_cmp = 0;
   6078     uint32_t _cf = 0;
   6079     int _df = 1;
   6080     uint32_t _flag_k = FK_NONE;
   6081     uint32_t _flag_a = 0, _flag_b = 0;
   6082     uint32_t _itail_tgt = 0;
   6083     RECOMP_REGS_LOCALS
   6084     RECOMP_ENTER(0x36005280u);
   6085 
   6086 L_36005280:
   6087     PUSH32(esp, ebp); /* 0x36005280: push ebp */
   6088     ebp = esp; /* 0x36005281: mov ebp, esp */
   6089     PUSH32(esp, ebx); /* 0x36005283: push ebx */
   6090     ebx = MEM32(ebp + 0xC); /* 0x36005284: mov ebx, dword ptr [ebp + 0xc] */
   6091     PUSH32(esp, esi); /* 0x36005287: push esi */
   6092     esi = MEM32(ebp + 0x8); /* 0x36005288: mov esi, dword ptr [ebp + 8] */
   6093     /* cmp esi, ebx */ /* 0x3600528B: cmp esi, ebx */
   6094     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6096     _flag_k = FK_CMP;
   6097     if (CMP_EQ(_flag_a, _flag_b)) goto L_360052B0; /* 0x3600528D: je 0x360052b0 */
   6098 L_3600528F:
   6099     PUSH32(esp, edi); /* 0x3600528F: push edi */
   6100     edi = MEM32(ebp + 0x10); /* 0x36005290: mov edi, dword ptr [ebp + 0x10] */
   6101 L_36005293:
   6102     PUSH32(esp, esi); /* 0x36005293: push esi */
   6103     PUSH32(esp, edi); /* 0x36005294: push edi */
   6104     RECOMP_ICALL(0x360052C0u); /* 0x36005295: call 0x360052c0 */ /* not lifted */
   6105     RECOMP_FLAGS_IN();
   6106     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   6107     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6108     esi = esi + 8; /* 0x3600529A: add esi, 8 */
   6109     _flag_k = FK_ADD;
   6110     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6111     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6112     esp = esp + 8; /* 0x3600529D: add esp, 8 */
   6113     _flag_k = FK_ADD;
   6114     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   6115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6116     edi = edi + 8; /* 0x360052A0: add edi, 8 */
   6117     _flag_k = FK_ADD;
   6118     /* cmp esi, ebx */ /* 0x360052A3: cmp esi, ebx */
   6119     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6120     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6121     _flag_k = FK_CMP;
   6122     RECOMP_BACKEDGE();
   6123     if (CMP_NE(_flag_a, _flag_b)) goto L_36005293; /* 0x360052A5: jne 0x36005293 */
   6124 L_360052A7:
   6125     eax = edi; /* 0x360052A7: mov eax, edi */
   6126     edi = POP32_VAL(esp); /* 0x360052A9: pop edi */
   6127     esi = POP32_VAL(esp); /* 0x360052AA: pop esi */
   6128     ebx = POP32_VAL(esp); /* 0x360052AB: pop ebx */
   6129     ebp = POP32_VAL(esp); /* 0x360052AC: pop ebp */
   6130     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360052AD: ret 0xc */
   6131 L_360052B0:
   6132     eax = MEM32(ebp + 0x10); /* 0x360052B0: mov eax, dword ptr [ebp + 0x10] */
   6133     esi = POP32_VAL(esp); /* 0x360052B3: pop esi */
   6134     ebx = POP32_VAL(esp); /* 0x360052B4: pop ebx */
   6135     ebp = POP32_VAL(esp); /* 0x360052B5: pop ebp */
   6136     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360052B6: ret 0xc */
   6137     RECOMP_REGS_OUT();
   6138 }
   6139 
   6140 void sub_360052C0(void) {
   6141     int _fpu_cmp = 0;
   6142     uint32_t _cf = 0;
   6143     int _df = 1;
   6144     uint32_t _flag_k = FK_NONE;
   6145     uint32_t _flag_a = 0, _flag_b = 0;
   6146     uint32_t _itail_tgt = 0;
   6147     RECOMP_REGS_LOCALS
   6148     RECOMP_ENTER(0x360052C0u);
   6149 
   6150 L_360052C0:
   6151     PUSH32(esp, ebp); /* 0x360052C0: push ebp */
   6152     ebp = esp; /* 0x360052C1: mov ebp, esp */
   6153     PUSH32(esp, 0xFFFFFFFFu); /* 0x360052C3: push -1 */
   6154     PUSH32(esp, 0x36160241u); /* 0x360052C5: push 0x36160241 */
   6155     eax = MEM32(FS_BASE + (0)); /* 0x360052CA: mov eax, dword ptr fs:[0] */
   6156     PUSH32(esp, eax); /* 0x360052D0: push eax */
   6157     MEM32(FS_BASE + (0)) = esp; /* 0x360052D1: mov dword ptr fs:[0], esp */
   6158     PUSH32(esp, ecx); /* 0x360052D8: push ecx */
   6159     PUSH32(esp, esi); /* 0x360052D9: push esi */
   6160     esi = MEM32(ebp + 0x8); /* 0x360052DA: mov esi, dword ptr [ebp + 8] */
   6161     MEM32(ebp + (-0x10)) = esi; /* 0x360052DD: mov dword ptr [ebp - 0x10], esi */
   6162     /* test esi, esi */ /* 0x360052E0: test esi, esi */
   6163     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6164     _cf = 0;
   6165     _flag_k = FK_TEST;
   6166     MEM32(ebp + (-0x4)) = 0; /* 0x360052E2: mov dword ptr [ebp - 4], 0 */
   6167     if (TEST_Z(_flag_a, _flag_b)) goto L_360052FD; /* 0x360052E9: je 0x360052fd */
   6168 L_360052EB:
   6169     eax = MEM32(ebp + 0xC); /* 0x360052EB: mov eax, dword ptr [ebp + 0xc] */
   6170     PUSH32(esp, eax); /* 0x360052EE: push eax */
   6171     ecx = esi; /* 0x360052EF: mov ecx, esi */
   6172     RECOMP_ICALL(MEM32(0x3616FF9C)); /* 0x360052F1: call dword ptr [0x3616ff9c] */
   6173     RECOMP_FLAGS_IN();
   6174     MEM32(esi) = 0x361703F8u; /* 0x360052F7: mov dword ptr [esi], 0x361703f8 */
   6175 L_360052FD:
   6176     ecx = MEM32(ebp + (-0xC)); /* 0x360052FD: mov ecx, dword ptr [ebp - 0xc] */
   6177     esi = POP32_VAL(esp); /* 0x36005300: pop esi */
   6178     MEM32(FS_BASE + (0)) = ecx; /* 0x36005301: mov dword ptr fs:[0], ecx */
   6179     esp = ebp; /* 0x36005308: mov esp, ebp */
   6180     ebp = POP32_VAL(esp); /* 0x3600530A: pop ebp */
   6181     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600530B: ret  */
   6182     RECOMP_REGS_OUT();
   6183 }
   6184 
   6185 void sub_36005310(void) {
   6186     int _fpu_cmp = 0;
   6187     uint32_t _cf = 0;
   6188     int _df = 1;
   6189     uint32_t _flag_k = FK_NONE;
   6190     uint32_t _flag_a = 0, _flag_b = 0;
   6191     uint32_t _itail_tgt = 0;
   6192     RECOMP_REGS_LOCALS
   6193     RECOMP_ENTER(0x36005310u);
   6194 
   6195 L_36005310:
   6196     PUSH32(esp, ebp); /* 0x36005310: push ebp */
   6197     ebp = esp; /* 0x36005311: mov ebp, esp */
   6198     PUSH32(esp, esi); /* 0x36005313: push esi */
   6199     esi = ecx; /* 0x36005314: mov esi, ecx */
   6200     RECOMP_ICALL(MEM32(0x3616FFA8)); /* 0x36005316: call dword ptr [0x3616ffa8] */
   6201     RECOMP_FLAGS_IN();
   6202     /* test MEM8(ebp + 0x8), 1 */ /* 0x3600531C: test byte ptr [ebp + 8], 1 */
   6203     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6204     _cf = 0;
   6205     _flag_k = FK_NARROW(FK_TEST, 24);
   6206     if (TEST_Z(_flag_a, _flag_b)) goto L_3600532B; /* 0x36005320: je 0x3600532b */
   6207 L_36005322:
   6208     PUSH32(esp, esi); /* 0x36005322: push esi */
   6209     RECOMP_ICALL(0x3615FCC4u); /* 0x36005323: call 0x3615fcc4 */ /* not lifted */
   6210     RECOMP_FLAGS_IN();
   6211     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6212     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6213     esp = esp + 4; /* 0x36005328: add esp, 4 */
   6214     _flag_k = FK_ADD;
   6215 L_3600532B:
   6216     eax = esi; /* 0x3600532B: mov eax, esi */
   6217     esi = POP32_VAL(esp); /* 0x3600532D: pop esi */
   6218     ebp = POP32_VAL(esp); /* 0x3600532E: pop ebp */
   6219     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3600532F: ret 4 */
   6220     RECOMP_REGS_OUT();
   6221 }
   6222 
   6223 void sub_36005340(void) {
   6224     int _fpu_cmp = 0;
   6225     uint32_t _cf = 0;
   6226     int _df = 1;
   6227     uint32_t _flag_k = FK_NONE;
   6228     uint32_t _flag_a = 0, _flag_b = 0;
   6229     uint32_t _itail_tgt = 0;
   6230     RECOMP_REGS_LOCALS
   6231     RECOMP_ENTER(0x36005340u);
   6232 
   6233 L_36005340:
   6234     PUSH32(esp, ebp); /* 0x36005340: push ebp */
   6235     ebp = esp; /* 0x36005341: mov ebp, esp */
   6236     ecx = MEM32(ebp + 0x8); /* 0x36005343: mov ecx, dword ptr [ebp + 8] */
   6237     PUSH32(esp, esi); /* 0x36005346: push esi */
   6238     esi = MEM32(ebp + 0xC); /* 0x36005347: mov esi, dword ptr [ebp + 0xc] */
   6239     eax = MEM32(esi); /* 0x3600534A: mov eax, dword ptr [esi] */
   6240     PUSH32(esp, edi); /* 0x3600534C: push edi */
   6241     edi = MEM32(0x3616FAEC); /* 0x3600534D: mov edi, dword ptr [0x3616faec] */
   6242     PUSH32(esp, eax); /* 0x36005353: push eax */
   6243     RECOMP_ICALL(edi); /* 0x36005354: call edi */
   6244     RECOMP_FLAGS_IN();
   6245     ecx = MEM32(esi + 0x4); /* 0x36005356: mov ecx, dword ptr [esi + 4] */
   6246     PUSH32(esp, ecx); /* 0x36005359: push ecx */
   6247     ecx = eax; /* 0x3600535A: mov ecx, eax */
   6248     RECOMP_ICALL(edi); /* 0x3600535C: call edi */
   6249     RECOMP_FLAGS_IN();
   6250     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6251     ecx = 0; /* 0x3600535E: xor ecx, ecx */
   6252     _cf = 0;
   6253     _flag_k = FK_TEST;
   6254     SET_LO8(ecx, MEM8(esi + 0x8)); /* 0x36005360: mov cl, byte ptr [esi + 8] */
   6255     PUSH32(esp, ecx); /* 0x36005363: push ecx */
   6256     ecx = eax; /* 0x36005364: mov ecx, eax */
   6257     RECOMP_ICALL(edi); /* 0x36005366: call edi */
   6258     RECOMP_FLAGS_IN();
   6259     edi = POP32_VAL(esp); /* 0x36005368: pop edi */
   6260     esi = POP32_VAL(esp); /* 0x36005369: pop esi */
   6261     ebp = POP32_VAL(esp); /* 0x3600536A: pop ebp */
   6262     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600536B: ret  */
   6263     RECOMP_REGS_OUT();
   6264 }
   6265 
   6266 void sub_36005370(void) {
   6267     int _fpu_cmp = 0;
   6268     uint32_t _cf = 0;
   6269     int _df = 1;
   6270     uint32_t _flag_k = FK_NONE;
   6271     uint32_t _flag_a = 0, _flag_b = 0;
   6272     uint32_t _itail_tgt = 0;
   6273     RECOMP_REGS_LOCALS
   6274     RECOMP_ENTER(0x36005370u);
   6275 
   6276 L_36005370:
   6277     PUSH32(esp, ebp); /* 0x36005370: push ebp */
   6278     ebp = esp; /* 0x36005371: mov ebp, esp */
   6279     PUSH32(esp, ebx); /* 0x36005373: push ebx */
   6280     PUSH32(esp, esi); /* 0x36005374: push esi */
   6281     esi = MEM32(ebp + 0x8); /* 0x36005375: mov esi, dword ptr [ebp + 8] */
   6282     PUSH32(esp, edi); /* 0x36005378: push edi */
   6283     edi = MEM32(0x3616FA8C); /* 0x36005379: mov edi, dword ptr [0x3616fa8c] */
   6284     eax = ebp + 0x8; /* 0x3600537F: lea eax, [ebp + 8] */
   6285     PUSH32(esp, eax); /* 0x36005382: push eax */
   6286     ecx = esi; /* 0x36005383: mov ecx, esi */
   6287     RECOMP_ICALL(edi); /* 0x36005385: call edi */
   6288     RECOMP_FLAGS_IN();
   6289     ebx = MEM32(ebp + 0xC); /* 0x36005387: mov ebx, dword ptr [ebp + 0xc] */
   6290     ecx = MEM32(ebp + 0x8); /* 0x3600538A: mov ecx, dword ptr [ebp + 8] */
   6291     edx = ebp + 0x8; /* 0x3600538D: lea edx, [ebp + 8] */
   6292     PUSH32(esp, edx); /* 0x36005390: push edx */
   6293     eax = ebx + 0x4; /* 0x36005391: lea eax, [ebx + 4] */
   6294     MEM32(ebx) = ecx; /* 0x36005394: mov dword ptr [ebx], ecx */
   6295     PUSH32(esp, eax); /* 0x36005396: push eax */
   6296     ecx = esi; /* 0x36005397: mov ecx, esi */
   6297     RECOMP_ICALL(edi); /* 0x36005399: call edi */
   6298     RECOMP_FLAGS_IN();
   6299     ecx = eax; /* 0x3600539B: mov ecx, eax */
   6300     RECOMP_ICALL(edi); /* 0x3600539D: call edi */
   6301     RECOMP_FLAGS_IN();
   6302     eax = MEM32(ebp + 0x8); /* 0x3600539F: mov eax, dword ptr [ebp + 8] */
   6303     /* test eax, eax */ /* 0x360053A2: test eax, eax */
   6304     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6305     _cf = 0;
   6306     _flag_k = FK_TEST;
   6307     edi = POP32_VAL(esp); /* 0x360053A4: pop edi */
   6308     SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x360053A5: setne cl */
   6309     eax = esi; /* 0x360053A8: mov eax, esi */
   6310     esi = POP32_VAL(esp); /* 0x360053AA: pop esi */
   6311     MEM8(ebx + 0x8) = (uint8_t)(LO8(ecx)); /* 0x360053AB: mov byte ptr [ebx + 8], cl */
   6312     ebx = POP32_VAL(esp); /* 0x360053AE: pop ebx */
   6313     ebp = POP32_VAL(esp); /* 0x360053AF: pop ebp */
   6314     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360053B0: ret  */
   6315     RECOMP_REGS_OUT();
   6316 }
   6317 
   6318 void sub_360053C0(void) {
   6319     int _fpu_cmp = 0;
   6320     uint32_t _cf = 0;
   6321     int _df = 1;
   6322     uint32_t _flag_k = FK_NONE;
   6323     uint32_t _flag_a = 0, _flag_b = 0;
   6324     uint32_t _itail_tgt = 0;
   6325     RECOMP_REGS_LOCALS
   6326     RECOMP_ENTER(0x360053C0u);
   6327 
   6328 L_360053C0:
   6329     PUSH32(esp, ebp); /* 0x360053C0: push ebp */
   6330     ebp = esp; /* 0x360053C1: mov ebp, esp */
   6331     PUSH32(esp, ebx); /* 0x360053C3: push ebx */
   6332     PUSH32(esp, esi); /* 0x360053C4: push esi */
   6333     PUSH32(esp, edi); /* 0x360053C5: push edi */
   6334     edi = MEM32(ebp + 0xC); /* 0x360053C6: mov edi, dword ptr [ebp + 0xc] */
   6335     eax = MEM32(edi + 0x4); /* 0x360053C9: mov eax, dword ptr [edi + 4] */
   6336     ecx = MEM32(edi + 0x8); /* 0x360053CC: mov ecx, dword ptr [edi + 8] */
   6337     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6338     edx = 0; /* 0x360053CF: xor edx, edx */
   6339     _cf = 0;
   6340     _flag_k = FK_TEST;
   6341     /* cmp eax, ecx */ /* 0x360053D1: cmp eax, ecx */
   6342     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6344     _flag_k = FK_CMP;
   6345     if (CMP_EQ(_flag_a, _flag_b)) goto L_360053E4; /* 0x360053D3: je 0x360053e4 */
   6346 L_360053D5:
   6347     esi = MEM32(eax + 0x4); /* 0x360053D5: mov esi, dword ptr [eax + 4] */
   6348     /* test esi, esi */ /* 0x360053D8: test esi, esi */
   6349     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6350     _cf = 0;
   6351     _flag_k = FK_TEST;
   6352     if (TEST_Z(_flag_a, _flag_b)) goto L_360053DD; /* 0x360053DA: je 0x360053dd */
   6353 L_360053DC:
   6354     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6355     edx = edx + 1; /* 0x360053DC: inc edx */
   6356     _flag_k = FK_INC;
   6357 L_360053DD:
   6358     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6359     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6360     eax = eax + 0xCu; /* 0x360053DD: add eax, 0xc */
   6361     _flag_k = FK_ADD;
   6362     /* cmp eax, ecx */ /* 0x360053E0: cmp eax, ecx */
   6363     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6365     _flag_k = FK_CMP;
   6366     RECOMP_BACKEDGE();
   6367     if (CMP_NE(_flag_a, _flag_b)) goto L_360053D5; /* 0x360053E2: jne 0x360053d5 */
   6368 L_360053E4:
   6369     eax = edx + 0x1; /* 0x360053E4: lea eax, [edx + 1] */
   6370     ecx = eax; /* 0x360053E7: mov ecx, eax */
   6371     if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x360053E9: shl ecx, 6 */
   6372     if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6373     ecx = ecx << 6u; /* 0x360053E9: shl ecx, 6 */
   6374     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6375     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6376     ecx = ecx - eax; /* 0x360053EC: sub ecx, eax */
   6377     _flag_k = FK_CMP;
   6378     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x360053EE: shl ecx, 4 */
   6379     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6380     ecx = ecx << 4u; /* 0x360053EE: shl ecx, 4 */
   6381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6383     ecx = ecx + eax; /* 0x360053F1: add ecx, eax */
   6384     _flag_k = FK_ADD;
   6385     PUSH32(esp, ecx); /* 0x360053F3: push ecx */
   6386     ecx = MEM32(ebp + 0x8); /* 0x360053F4: mov ecx, dword ptr [ebp + 8] */
   6387     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x360053F7: call dword ptr [0x3616faec] */
   6388     RECOMP_FLAGS_IN();
   6389     esi = MEM32(edi + 0x4); /* 0x360053FD: mov esi, dword ptr [edi + 4] */
   6390     eax = MEM32(edi + 0x8); /* 0x36005400: mov eax, dword ptr [edi + 8] */
   6391     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6392     ebx = 0; /* 0x36005403: xor ebx, ebx */
   6393     _cf = 0;
   6394     _flag_k = FK_TEST;
   6395     /* cmp esi, eax */ /* 0x36005405: cmp esi, eax */
   6396     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6398     _flag_k = FK_CMP;
   6399     if (CMP_EQ(_flag_a, _flag_b)) goto L_36005432; /* 0x36005407: je 0x36005432 */
   6400 L_36005409:
   6401     eax = MEM32(esi + 0x4); /* 0x36005409: mov eax, dword ptr [esi + 4] */
   6402     /* test eax, eax */ /* 0x3600540C: test eax, eax */
   6403     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6404     _cf = 0;
   6405     _flag_k = FK_TEST;
   6406     if (TEST_Z(_flag_a, _flag_b)) goto L_36005427; /* 0x3600540E: je 0x36005427 */
   6407 L_36005410:
   6408     ecx = MEM32(ebp + 0x8); /* 0x36005410: mov ecx, dword ptr [ebp + 8] */
   6409     PUSH32(esp, ebx); /* 0x36005413: push ebx */
   6410     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36005414: call dword ptr [0x3616faec] */
   6411     RECOMP_FLAGS_IN();
   6412     edx = MEM32(ebp + 0x8); /* 0x3600541A: mov edx, dword ptr [ebp + 8] */
   6413     PUSH32(esp, esi); /* 0x3600541D: push esi */
   6414     PUSH32(esp, edx); /* 0x3600541E: push edx */
   6415     RECOMP_ICALL(0x36005340u); /* 0x3600541F: call 0x36005340 */ /* not lifted */
   6416     RECOMP_FLAGS_IN();
   6417     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6418     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6419     esp = esp + 8; /* 0x36005424: add esp, 8 */
   6420     _flag_k = FK_ADD;
   6421 L_36005427:
   6422     eax = MEM32(edi + 0x8); /* 0x36005427: mov eax, dword ptr [edi + 8] */
   6423     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   6424     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6425     esi = esi + 0xCu; /* 0x3600542A: add esi, 0xc */
   6426     _flag_k = FK_ADD;
   6427     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   6428     ebx = ebx + 1; /* 0x3600542D: inc ebx */
   6429     _flag_k = FK_INC;
   6430     /* cmp esi, eax */ /* 0x3600542E: cmp esi, eax */
   6431     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6433     _flag_k = FK_CMP;
   6434     RECOMP_BACKEDGE();
   6435     if (CMP_NE(_flag_a, _flag_b)) goto L_36005409; /* 0x36005430: jne 0x36005409 */
   6436 L_36005432:
   6437     eax = MEM32(ebp + 0x8); /* 0x36005432: mov eax, dword ptr [ebp + 8] */
   6438     edi = POP32_VAL(esp); /* 0x36005435: pop edi */
   6439     esi = POP32_VAL(esp); /* 0x36005436: pop esi */
   6440     ebx = POP32_VAL(esp); /* 0x36005437: pop ebx */
   6441     ebp = POP32_VAL(esp); /* 0x36005438: pop ebp */
   6442     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36005439: ret  */
   6443     RECOMP_REGS_OUT();
   6444 }
   6445 
   6446 void sub_36005440(void) {
   6447     int _fpu_cmp = 0;
   6448     uint32_t _cf = 0;
   6449     int _df = 1;
   6450     uint32_t _flag_k = FK_NONE;
   6451     uint32_t _flag_a = 0, _flag_b = 0;
   6452     uint32_t _itail_tgt = 0;
   6453     RECOMP_REGS_LOCALS
   6454     RECOMP_ENTER(0x36005440u);
   6455 
   6456 L_36005440:
   6457     PUSH32(esp, ebp); /* 0x36005440: push ebp */
   6458     ebp = esp; /* 0x36005441: mov ebp, esp */
   6459     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6461     esp = esp - 0x10u; /* 0x36005443: sub esp, 0x10 */
   6462     _flag_k = FK_CMP;
   6463     ecx = MEM32(ebp + 0x8); /* 0x36005446: mov ecx, dword ptr [ebp + 8] */
   6464     PUSH32(esp, ebx); /* 0x36005449: push ebx */
   6465     PUSH32(esp, esi); /* 0x3600544A: push esi */
   6466     PUSH32(esp, edi); /* 0x3600544B: push edi */
   6467     eax = ebp + (-0x4); /* 0x3600544C: lea eax, [ebp - 4] */
   6468     PUSH32(esp, eax); /* 0x3600544F: push eax */
   6469     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36005450: call dword ptr [0x3616fa8c] */
   6470     RECOMP_FLAGS_IN();
   6471     ecx = MEM32(ebp + (-0x4)); /* 0x36005456: mov ecx, dword ptr [ebp - 4] */
   6472     esi = MEM32(ebp + 0xC); /* 0x36005459: mov esi, dword ptr [ebp + 0xc] */
   6473     eax = 0x81E722C3u; /* 0x3600545C: mov eax, 0x81e722c3 */
   6474     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36005461: imul ecx */
   6475       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6476       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6477     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6478     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6479     edx = edx + ecx; /* 0x36005463: add edx, ecx */
   6480     _flag_k = FK_ADD;
   6481     if (9u) _cf = (((edx) >> 8) & 1u); /* 0x36005465: sar edx, 9 */
   6482     if (9u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 9u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6483     edx = (uint32_t)((int32_t)edx >> 9u);
   6484     ecx = edx; /* 0x36005468: mov ecx, edx */
   6485     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3600546A: shr ecx, 0x1f */
   6486     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6487     ecx = ecx >> 31u; /* 0x3600546A: shr ecx, 0x1f */
   6488     ebx = edx + ecx + (-0x1); /* 0x3600546D: lea ebx, [edx + ecx - 1] */
   6489     ecx = MEM32(esi + 0x4); /* 0x36005471: mov ecx, dword ptr [esi + 4] */
   6490     /* test ecx, ecx */ /* 0x36005474: test ecx, ecx */
   6491     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6492     _cf = 0;
   6493     _flag_k = FK_TEST;
   6494     MEM32(ebp + (-0x4)) = ebx; /* 0x36005476: mov dword ptr [ebp - 4], ebx */
   6495     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600547F; /* 0x36005479: jne 0x3600547f */
   6496 L_3600547B:
   6497     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6498     edx = 0; /* 0x3600547B: xor edx, edx */
   6499     _cf = 0;
   6500     _flag_k = FK_TEST;
   6501     goto L_36005494; /* 0x3600547D: jmp 0x36005494 */
   6502 L_3600547F:
   6503     edx = MEM32(esi + 0x8); /* 0x3600547F: mov edx, dword ptr [esi + 8] */
   6504     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6506     edx = edx - ecx; /* 0x36005482: sub edx, ecx */
   6507     _flag_k = FK_CMP;
   6508     eax = 0x2AAAAAABu; /* 0x36005484: mov eax, 0x2aaaaaab */
   6509     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36005489: imul edx */
   6510       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6511       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6512     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3600548B: sar edx, 1 */
   6513     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6514     edx = (uint32_t)((int32_t)edx >> 1u);
   6515     eax = edx; /* 0x3600548D: mov eax, edx */
   6516     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3600548F: shr eax, 0x1f */
   6517     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6518     eax = eax >> 31u; /* 0x3600548F: shr eax, 0x1f */
   6519     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6520     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6521     edx = edx + eax; /* 0x36005492: add edx, eax */
   6522     _flag_k = FK_ADD;
   6523 L_36005494:
   6524     /* cmp edx, ebx */ /* 0x36005494: cmp edx, ebx */
   6525     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   6526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6527     _flag_k = FK_CMP;
   6528     if (CMP_AE(_flag_a, _flag_b)) goto L_360054CC; /* 0x36005496: jae 0x360054cc */
   6529 L_36005498:
   6530     /* test ecx, ecx */ /* 0x36005498: test ecx, ecx */
   6531     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6532     _cf = 0;
   6533     _flag_k = FK_TEST;
   6534     if (TEST_NZ(_flag_a, _flag_b)) goto L_360054A0; /* 0x3600549A: jne 0x360054a0 */
   6535 L_3600549C:
   6536     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6537     edx = 0; /* 0x3600549C: xor edx, edx */
   6538     _cf = 0;
   6539     _flag_k = FK_TEST;
   6540     goto L_360054B5; /* 0x3600549E: jmp 0x360054b5 */
   6541 L_360054A0:
   6542     edx = MEM32(esi + 0x8); /* 0x360054A0: mov edx, dword ptr [esi + 8] */
   6543     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6545     edx = edx - ecx; /* 0x360054A3: sub edx, ecx */
   6546     _flag_k = FK_CMP;
   6547     eax = 0x2AAAAAABu; /* 0x360054A5: mov eax, 0x2aaaaaab */
   6548     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x360054AA: imul edx */
   6549       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6550       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6551     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x360054AC: sar edx, 1 */
   6552     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6553     edx = (uint32_t)((int32_t)edx >> 1u);
   6554     ecx = edx; /* 0x360054AE: mov ecx, edx */
   6555     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x360054B0: shr ecx, 0x1f */
   6556     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6557     ecx = ecx >> 31u; /* 0x360054B0: shr ecx, 0x1f */
   6558     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6560     edx = edx + ecx; /* 0x360054B3: add edx, ecx */
   6561     _flag_k = FK_ADD;
   6562 L_360054B5:
   6563     ecx = MEM32(esi + 0x8); /* 0x360054B5: mov ecx, dword ptr [esi + 8] */
   6564     eax = ebp + (-0x10); /* 0x360054B8: lea eax, [ebp - 0x10] */
   6565     PUSH32(esp, eax); /* 0x360054BB: push eax */
   6566     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   6567     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6568     ebx = ebx - edx; /* 0x360054BC: sub ebx, edx */
   6569     _flag_k = FK_CMP;
   6570     PUSH32(esp, ebx); /* 0x360054BE: push ebx */
   6571     PUSH32(esp, ecx); /* 0x360054BF: push ecx */
   6572     ecx = esi; /* 0x360054C0: mov ecx, esi */
   6573     RECOMP_ICALL(0x360AA8C0u); /* 0x360054C2: call 0x360aa8c0 */ /* not lifted */
   6574     RECOMP_FLAGS_IN();
   6575     ebx = MEM32(ebp + (-0x4)); /* 0x360054C7: mov ebx, dword ptr [ebp - 4] */
   6576     goto L_36005528; /* 0x360054CA: jmp 0x36005528 */
   6577 L_360054CC:
   6578     /* test ecx, ecx */ /* 0x360054CC: test ecx, ecx */
   6579     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6580     _cf = 0;
   6581     _flag_k = FK_TEST;
   6582     if (TEST_Z(_flag_a, _flag_b)) goto L_36005528; /* 0x360054CE: je 0x36005528 */
   6583 L_360054D0:
   6584     edi = MEM32(esi + 0x8); /* 0x360054D0: mov edi, dword ptr [esi + 8] */
   6585     edx = edi; /* 0x360054D3: mov edx, edi */
   6586     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6588     edx = edx - ecx; /* 0x360054D5: sub edx, ecx */
   6589     _flag_k = FK_CMP;
   6590     eax = 0x2AAAAAABu; /* 0x360054D7: mov eax, 0x2aaaaaab */
   6591     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x360054DC: imul edx */
   6592       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6593       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6594     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x360054DE: sar edx, 1 */
   6595     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6596     edx = (uint32_t)((int32_t)edx >> 1u);
   6597     eax = edx; /* 0x360054E0: mov eax, edx */
   6598     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x360054E2: shr eax, 0x1f */
   6599     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6600     eax = eax >> 31u; /* 0x360054E2: shr eax, 0x1f */
   6601     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6603     edx = edx + eax; /* 0x360054E5: add edx, eax */
   6604     _flag_k = FK_ADD;
   6605     /* cmp ebx, edx */ /* 0x360054E7: cmp ebx, edx */
   6606     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   6607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6608     _flag_k = FK_CMP;
   6609     if (CMP_AE(_flag_a, _flag_b)) goto L_36005528; /* 0x360054E9: jae 0x36005528 */
   6610 L_360054EB:
   6611     edx = ebx + ebx * 2; /* 0x360054EB: lea edx, [ebx + ebx*2] */
   6612     eax = edi; /* 0x360054EE: mov eax, edi */
   6613     /* cmp eax, edi */ /* 0x360054F0: cmp eax, edi */
   6614     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6616     _flag_k = FK_CMP;
   6617     ecx = ecx + edx * 4; /* 0x360054F2: lea ecx, [ecx + edx*4] */
   6618     MEM32(ebp + 0xC) = ecx; /* 0x360054F5: mov dword ptr [ebp + 0xc], ecx */
   6619     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600551F; /* 0x360054F8: je 0x3600551f */
   6620 L_360054FA:
   6621     edx = eax; /* 0x360054FA: mov edx, eax */
   6622     ebx = MEM32(edx); /* 0x360054FC: mov ebx, dword ptr [edx] */
   6623     MEM32(ecx) = ebx; /* 0x360054FE: mov dword ptr [ecx], ebx */
   6624     ebx = MEM32(edx + 0x4); /* 0x36005500: mov ebx, dword ptr [edx + 4] */
   6625     MEM32(ecx + 0x4) = ebx; /* 0x36005503: mov dword ptr [ecx + 4], ebx */
   6626     edx = MEM32(edx + 0x8); /* 0x36005506: mov edx, dword ptr [edx + 8] */
   6627     MEM32(ecx + 0x8) = edx; /* 0x36005509: mov dword ptr [ecx + 8], edx */
   6628     ecx = MEM32(ebp + 0xC); /* 0x3600550C: mov ecx, dword ptr [ebp + 0xc] */
   6629     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   6630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6631     ecx = ecx + 0xCu; /* 0x3600550F: add ecx, 0xc */
   6632     _flag_k = FK_ADD;
   6633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6635     eax = eax + 0xCu; /* 0x36005512: add eax, 0xc */
   6636     _flag_k = FK_ADD;
   6637     /* cmp eax, edi */ /* 0x36005515: cmp eax, edi */
   6638     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6640     _flag_k = FK_CMP;
   6641     MEM32(ebp + 0xC) = ecx; /* 0x36005517: mov dword ptr [ebp + 0xc], ecx */
   6642     RECOMP_BACKEDGE();
   6643     if (CMP_NE(_flag_a, _flag_b)) goto L_360054FA; /* 0x3600551A: jne 0x360054fa */
   6644 L_3600551C:
   6645     ebx = MEM32(ebp + (-0x4)); /* 0x3600551C: mov ebx, dword ptr [ebp - 4] */
   6646 L_3600551F:
   6647     eax = MEM32(esi + 0x8); /* 0x3600551F: mov eax, dword ptr [esi + 8] */
   6648     MEM32(ebp + 0xC) = eax; /* 0x36005522: mov dword ptr [ebp + 0xc], eax */
   6649     MEM32(esi + 0x8) = ecx; /* 0x36005525: mov dword ptr [esi + 8], ecx */
   6650 L_36005528:
   6651     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6652     edi = 0; /* 0x36005528: xor edi, edi */
   6653     _cf = 0;
   6654     _flag_k = FK_TEST;
   6655     /* test ebx, ebx */ /* 0x3600552A: test ebx, ebx */
   6656     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6657     _cf = 0;
   6658     _flag_k = FK_TEST;
   6659     if (TEST_LE(_flag_a, _flag_b)) goto L_3600555B; /* 0x3600552C: jle 0x3600555b */
   6660 L_3600552E:
   6661     ebx = MEM32(ebp + 0x8); /* 0x3600552E: mov ebx, dword ptr [ebp + 8] */
   6662     ecx = ebp + 0xC; /* 0x36005531: lea ecx, [ebp + 0xc] */
   6663     PUSH32(esp, ecx); /* 0x36005534: push ecx */
   6664     ecx = ebx; /* 0x36005535: mov ecx, ebx */
   6665     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36005537: call dword ptr [0x3616fa8c] */
   6666     RECOMP_FLAGS_IN();
   6667     eax = MEM32(ebp + 0xC); /* 0x3600553D: mov eax, dword ptr [ebp + 0xc] */
   6668     edx = eax + eax * 2; /* 0x36005540: lea edx, [eax + eax*2] */
   6669     eax = MEM32(esi + 0x4); /* 0x36005543: mov eax, dword ptr [esi + 4] */
   6670     ecx = eax + edx * 4; /* 0x36005546: lea ecx, [eax + edx*4] */
   6671     PUSH32(esp, ecx); /* 0x36005549: push ecx */
   6672     PUSH32(esp, ebx); /* 0x3600554A: push ebx */
   6673     RECOMP_ICALL(0x36005370u); /* 0x3600554B: call 0x36005370 */ /* not lifted */
   6674     RECOMP_FLAGS_IN();
   6675     eax = MEM32(ebp + (-0x4)); /* 0x36005550: mov eax, dword ptr [ebp - 4] */
   6676     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6677     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6678     esp = esp + 8; /* 0x36005553: add esp, 8 */
   6679     _flag_k = FK_ADD;
   6680     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   6681     edi = edi + 1; /* 0x36005556: inc edi */
   6682     _flag_k = FK_INC;
   6683     /* cmp edi, eax */ /* 0x36005557: cmp edi, eax */
   6684     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6686     _flag_k = FK_CMP;
   6687     RECOMP_BACKEDGE();
   6688     if (CMP_L(_flag_a, _flag_b)) goto L_3600552E; /* 0x36005559: jl 0x3600552e */
   6689 L_3600555B:
   6690     eax = MEM32(ebp + 0x8); /* 0x3600555B: mov eax, dword ptr [ebp + 8] */
   6691     edi = POP32_VAL(esp); /* 0x3600555E: pop edi */
   6692     esi = POP32_VAL(esp); /* 0x3600555F: pop esi */
   6693     ebx = POP32_VAL(esp); /* 0x36005560: pop ebx */
   6694     esp = ebp; /* 0x36005561: mov esp, ebp */
   6695     ebp = POP32_VAL(esp); /* 0x36005563: pop ebp */
   6696     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36005564: ret  */
   6697     RECOMP_REGS_OUT();
   6698 }
   6699 
   6700 void sub_36005570(void) {
   6701     int _fpu_cmp = 0;
   6702     uint32_t _cf = 0;
   6703     int _df = 1;
   6704     uint32_t _flag_k = FK_NONE;
   6705     uint32_t _flag_a = 0, _flag_b = 0;
   6706     uint32_t _itail_tgt = 0;
   6707     RECOMP_REGS_LOCALS
   6708     RECOMP_ENTER(0x36005570u);
   6709 
   6710 L_36005570:
   6711     PUSH32(esp, ebp); /* 0x36005570: push ebp */
   6712     ebp = esp; /* 0x36005571: mov ebp, esp */
   6713     PUSH32(esp, 0xFFFFFFFFu); /* 0x36005573: push -1 */
   6714     PUSH32(esp, 0x3616025Bu); /* 0x36005575: push 0x3616025b */
   6715     eax = MEM32(FS_BASE + (0)); /* 0x3600557A: mov eax, dword ptr fs:[0] */
   6716     PUSH32(esp, eax); /* 0x36005580: push eax */
   6717     MEM32(FS_BASE + (0)) = esp; /* 0x36005581: mov dword ptr fs:[0], esp */
   6718     PUSH32(esp, ecx); /* 0x36005588: push ecx */
   6719     PUSH32(esp, esi); /* 0x36005589: push esi */
   6720     PUSH32(esp, 8); /* 0x3600558A: push 8 */
   6721     esi = ecx; /* 0x3600558C: mov esi, ecx */
   6722     RECOMP_ICALL(0x3615FD6Au); /* 0x3600558E: call 0x3615fd6a */ /* not lifted */
   6723     RECOMP_FLAGS_IN();
   6724     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6725     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6726     esp = esp + 4; /* 0x36005593: add esp, 4 */
   6727     _flag_k = FK_ADD;
   6728     MEM32(ebp + (-0x10)) = eax; /* 0x36005596: mov dword ptr [ebp - 0x10], eax */
   6729     /* test eax, eax */ /* 0x36005599: test eax, eax */
   6730     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6731     _cf = 0;
   6732     _flag_k = FK_TEST;
   6733     MEM32(ebp + (-0x4)) = 0; /* 0x3600559B: mov dword ptr [ebp - 4], 0 */
   6734     if (TEST_Z(_flag_a, _flag_b)) goto L_360055AD; /* 0x360055A2: je 0x360055ad */
   6735 L_360055A4:
   6736     ecx = eax; /* 0x360055A4: mov ecx, eax */
   6737     RECOMP_ICALL(0x36008A60u); /* 0x360055A6: call 0x36008a60 */ /* not lifted */
   6738     RECOMP_FLAGS_IN();
   6739     goto L_360055AF; /* 0x360055AB: jmp 0x360055af */
   6740 L_360055AD:
   6741     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6742     eax = 0; /* 0x360055AD: xor eax, eax */
   6743     _cf = 0;
   6744     _flag_k = FK_TEST;
   6745 L_360055AF:
   6746     ecx = MEM32(ebp + (-0xC)); /* 0x360055AF: mov ecx, dword ptr [ebp - 0xc] */
   6747     MEM32(esi + 0x4) = eax; /* 0x360055B2: mov dword ptr [esi + 4], eax */
   6748     _flag_a = (uint32_t)(MEM32(0x363033B4)); _flag_b = (uint32_t)(1);
   6749     MEM32(0x363033B4) = MEM32(0x363033B4) + 1; /* 0x360055B5: inc dword ptr [0x363033b4] */
   6750     _flag_k = FK_INC;
   6751     MEM32(esi) = 0; /* 0x360055BB: mov dword ptr [esi], 0 */
   6752     eax = esi; /* 0x360055C1: mov eax, esi */
   6753     esi = POP32_VAL(esp); /* 0x360055C3: pop esi */
   6754     MEM32(FS_BASE + (0)) = ecx; /* 0x360055C4: mov dword ptr fs:[0], ecx */
   6755     esp = ebp; /* 0x360055CB: mov esp, ebp */
   6756     ebp = POP32_VAL(esp); /* 0x360055CD: pop ebp */
   6757     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360055CE: ret  */
   6758     RECOMP_REGS_OUT();
   6759 }
   6760 
   6761 void sub_360055D0(void) {
   6762     int _fpu_cmp = 0;
   6763     uint32_t _cf = 0;
   6764     int _df = 1;
   6765     uint32_t _flag_k = FK_NONE;
   6766     uint32_t _flag_a = 0, _flag_b = 0;
   6767     uint32_t _itail_tgt = 0;
   6768     RECOMP_REGS_LOCALS
   6769     RECOMP_ENTER(0x360055D0u);
   6770 
   6771 L_360055D0:
   6772     PUSH32(esp, esi); /* 0x360055D0: push esi */
   6773     PUSH32(esp, edi); /* 0x360055D1: push edi */
   6774     edi = ecx; /* 0x360055D2: mov edi, ecx */
   6775     esi = MEM32(edi + 0x4); /* 0x360055D4: mov esi, dword ptr [edi + 4] */
   6776     /* test esi, esi */ /* 0x360055D7: test esi, esi */
   6777     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6778     _cf = 0;
   6779     _flag_k = FK_TEST;
   6780     if (TEST_Z(_flag_a, _flag_b)) goto L_360055EB; /* 0x360055D9: je 0x360055eb */
   6781 L_360055DB:
   6782     ecx = esi; /* 0x360055DB: mov ecx, esi */
   6783     RECOMP_ICALL(0x36008AF0u); /* 0x360055DD: call 0x36008af0 */ /* not lifted */
   6784     RECOMP_FLAGS_IN();
   6785     PUSH32(esp, esi); /* 0x360055E2: push esi */
   6786     RECOMP_ICALL(0x3615FCC4u); /* 0x360055E3: call 0x3615fcc4 */ /* not lifted */
   6787     RECOMP_FLAGS_IN();
   6788     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6789     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6790     esp = esp + 4; /* 0x360055E8: add esp, 4 */
   6791     _flag_k = FK_ADD;
   6792 L_360055EB:
   6793     MEM32(edi + 0x4) = 0; /* 0x360055EB: mov dword ptr [edi + 4], 0 */
   6794     eax = MEM32(0x363033B8); /* 0x360055F2: mov eax, dword ptr [0x363033b8] */
   6795     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6796     eax = eax + 1; /* 0x360055F7: inc eax */
   6797     _flag_k = FK_INC;
   6798     edi = POP32_VAL(esp); /* 0x360055F8: pop edi */
   6799     MEM32(0x363033B8) = eax; /* 0x360055F9: mov dword ptr [0x363033b8], eax */
   6800     esi = POP32_VAL(esp); /* 0x360055FE: pop esi */
   6801     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360055FF: ret  */
   6802     RECOMP_REGS_OUT();
   6803 }
   6804 
   6805 void sub_36005600(void) {
   6806     int _fpu_cmp = 0;
   6807     uint32_t _cf = 0;
   6808     int _df = 1;
   6809     uint32_t _flag_k = FK_NONE;
   6810     uint32_t _flag_a = 0, _flag_b = 0;
   6811     uint32_t _itail_tgt = 0;
   6812     RECOMP_REGS_LOCALS
   6813     RECOMP_ENTER(0x36005600u);
   6814 
   6815 L_36005600:
   6816     PUSH32(esp, ebp); /* 0x36005600: push ebp */
   6817     ebp = esp; /* 0x36005601: mov ebp, esp */
   6818     PUSH32(esp, ecx); /* 0x36005603: push ecx */
   6819     eax = MEM32(ecx + 0x4); /* 0x36005604: mov eax, dword ptr [ecx + 4] */
   6820     PUSH32(esp, ebx); /* 0x36005607: push ebx */
   6821     PUSH32(esp, esi); /* 0x36005608: push esi */
   6822     PUSH32(esp, edi); /* 0x36005609: push edi */
   6823     edi = MEM32(eax); /* 0x3600560A: mov edi, dword ptr [eax] */
   6824     esi = MEM32(edi + 0x4); /* 0x3600560C: mov esi, dword ptr [edi + 4] */
   6825     ebx = MEM32(esi + 0x4); /* 0x3600560F: mov ebx, dword ptr [esi + 4] */
   6826     PUSH32(esp, 0x14u); /* 0x36005612: push 0x14 */
   6827     MEM32(ebp + (-0x4)) = ecx; /* 0x36005614: mov dword ptr [ebp - 4], ecx */
   6828     RECOMP_ICALL(0x3615FD6Au); /* 0x36005617: call 0x3615fd6a */ /* not lifted */
   6829     RECOMP_FLAGS_IN();
   6830     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6831     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6832     esp = esp + 4; /* 0x3600561C: add esp, 4 */
   6833     _flag_k = FK_ADD;
   6834     /* test esi, esi */ /* 0x3600561F: test esi, esi */
   6835     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6836     _cf = 0;
   6837     _flag_k = FK_TEST;
   6838     ecx = esi; /* 0x36005621: mov ecx, esi */
   6839     if (TEST_NZ(_flag_a, _flag_b)) goto L_36005627; /* 0x36005623: jne 0x36005627 */
   6840 L_36005625:
   6841     ecx = eax; /* 0x36005625: mov ecx, eax */
   6842 L_36005627:
   6843     /* test ebx, ebx */ /* 0x36005627: test ebx, ebx */
   6844     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6845     _cf = 0;
   6846     _flag_k = FK_TEST;
   6847     MEM32(eax) = ecx; /* 0x36005629: mov dword ptr [eax], ecx */
   6848     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600562F; /* 0x3600562B: jne 0x3600562f */
   6849 L_3600562D:
   6850     ebx = eax; /* 0x3600562D: mov ebx, eax */
   6851 L_3600562F:
   6852     MEM32(eax + 0x4) = ebx; /* 0x3600562F: mov dword ptr [eax + 4], ebx */
   6853     MEM32(esi + 0x4) = eax; /* 0x36005632: mov dword ptr [esi + 4], eax */
   6854     ecx = MEM32(eax + 0x4); /* 0x36005635: mov ecx, dword ptr [eax + 4] */
   6855     MEM32(ecx) = eax; /* 0x36005638: mov dword ptr [ecx], eax */
   6856     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   6857     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6858     eax = eax + 8; /* 0x3600563A: add eax, 8 */
   6859     _flag_k = FK_ADD;
   6860     /* test eax, eax */ /* 0x3600563D: test eax, eax */
   6861     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6862     _cf = 0;
   6863     _flag_k = FK_TEST;
   6864     if (TEST_Z(_flag_a, _flag_b)) goto L_36005652; /* 0x3600563F: je 0x36005652 */
   6865 L_36005641:
   6866     edx = MEM32(ebp + 0x8); /* 0x36005641: mov edx, dword ptr [ebp + 8] */
   6867     ecx = MEM32(ebp + 0xC); /* 0x36005644: mov ecx, dword ptr [ebp + 0xc] */
   6868     MEM32(eax) = edx; /* 0x36005647: mov dword ptr [eax], edx */
   6869     MEM32(eax + 0x4) = ecx; /* 0x36005649: mov dword ptr [eax + 4], ecx */
   6870     ecx = MEM32(ebp + 0x10); /* 0x3600564C: mov ecx, dword ptr [ebp + 0x10] */
   6871     MEM32(eax + 0x8) = ecx; /* 0x3600564F: mov dword ptr [eax + 8], ecx */
   6872 L_36005652:
   6873     ecx = MEM32(edi + 0x8); /* 0x36005652: mov ecx, dword ptr [edi + 8] */
   6874     eax = MEM32(ebp + 0x10); /* 0x36005655: mov eax, dword ptr [ebp + 0x10] */
   6875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6876     ecx = ecx + 1; /* 0x36005658: inc ecx */
   6877     _flag_k = FK_INC;
   6878     /* cmp eax, 0x14u */ /* 0x36005659: cmp eax, 0x14 */
   6879     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   6880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6881     _flag_k = FK_CMP;
   6882     MEM32(edi + 0x8) = ecx; /* 0x3600565C: mov dword ptr [edi + 8], ecx */
   6883     edi = POP32_VAL(esp); /* 0x3600565F: pop edi */
   6884     esi = POP32_VAL(esp); /* 0x36005660: pop esi */
   6885     ebx = POP32_VAL(esp); /* 0x36005661: pop ebx */
   6886     if (CMP_NE(_flag_a, _flag_b)) goto L_36005670; /* 0x36005662: jne 0x36005670 */
   6887 L_36005664:
   6888     eax = MEM32(ebp + (-0x4)); /* 0x36005664: mov eax, dword ptr [ebp - 4] */
   6889     ecx = MEM32(eax); /* 0x36005667: mov ecx, dword ptr [eax] */
   6890     edx = MEM32(ebp + 0x8); /* 0x36005669: mov edx, dword ptr [ebp + 8] */
   6891     _flag_a = (uint32_t)((ecx | edx)); _flag_b = (uint32_t)((ecx | edx));
   6892     ecx = ecx | edx; /* 0x3600566C: or ecx, edx */
   6893     _cf = 0;
   6894     _flag_k = FK_TEST;
   6895     MEM32(eax) = ecx; /* 0x3600566E: mov dword ptr [eax], ecx */
   6896 L_36005670:
   6897     esp = ebp; /* 0x36005670: mov esp, ebp */
   6898     ebp = POP32_VAL(esp); /* 0x36005672: pop ebp */
   6899     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36005673: ret 0xc */
   6900     RECOMP_REGS_OUT();
   6901 }
   6902 
   6903 void sub_36005680(void) {
   6904     int _fpu_cmp = 0;
   6905     uint32_t _cf = 0;
   6906     int _df = 1;
   6907     uint32_t _flag_k = FK_NONE;
   6908     uint32_t _flag_a = 0, _flag_b = 0;
   6909     uint32_t _itail_tgt = 0;
   6910     RECOMP_REGS_LOCALS
   6911     RECOMP_ENTER(0x36005680u);
   6912 
   6913 L_36005680:
   6914     PUSH32(esp, ebp); /* 0x36005680: push ebp */
   6915     ebp = esp; /* 0x36005681: mov ebp, esp */
   6916     eax = MEM32(ebp + 0x1C); /* 0x36005683: mov eax, dword ptr [ebp + 0x1c] */
   6917     PUSH32(esp, esi); /* 0x36005686: push esi */
   6918     PUSH32(esp, eax); /* 0x36005687: push eax */
   6919     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6920     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6921     esp = esp - 8; /* 0x36005688: sub esp, 8 */
   6922     _flag_k = FK_CMP;
   6923     esi = ecx; /* 0x3600568B: mov esi, ecx */
   6924     edx = ebp + 0x14; /* 0x3600568D: lea edx, [ebp + 0x14] */
   6925     ecx = esp; /* 0x36005690: mov ecx, esp */
   6926     PUSH32(esp, edx); /* 0x36005692: push edx */
   6927     RECOMP_ICALL(0x360056C0u); /* 0x36005693: call 0x360056c0 */ /* not lifted */
   6928     RECOMP_FLAGS_IN();
   6929     eax = MEM32(ebp + 0x10); /* 0x36005698: mov eax, dword ptr [ebp + 0x10] */
   6930     ecx = MEM32(ebp + 0xC); /* 0x3600569B: mov ecx, dword ptr [ebp + 0xc] */
   6931     edx = MEM32(ebp + 0x8); /* 0x3600569E: mov edx, dword ptr [ebp + 8] */
   6932     PUSH32(esp, eax); /* 0x360056A1: push eax */
   6933     eax = MEM32(esi + 0x4); /* 0x360056A2: mov eax, dword ptr [esi + 4] */
   6934     PUSH32(esp, ecx); /* 0x360056A5: push ecx */
   6935     PUSH32(esp, edx); /* 0x360056A6: push edx */
   6936     PUSH32(esp, eax); /* 0x360056A7: push eax */
   6937     RECOMP_ICALL(0x360056E0u); /* 0x360056A8: call 0x360056e0 */ /* not lifted */
   6938     RECOMP_FLAGS_IN();
   6939     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   6940     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6941     esp = esp + 0x1Cu; /* 0x360056AD: add esp, 0x1c */
   6942     _flag_k = FK_ADD;
   6943     esi = POP32_VAL(esp); /* 0x360056B0: pop esi */
   6944     ebp = POP32_VAL(esp); /* 0x360056B1: pop ebp */
   6945     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x360056B2: ret 0x18 */
   6946     RECOMP_REGS_OUT();
   6947 }
   6948 
   6949 void sub_360056C0(void) {
   6950     int _fpu_cmp = 0;
   6951     uint32_t _cf = 0;
   6952     int _df = 1;
   6953     uint32_t _flag_k = FK_NONE;
   6954     uint32_t _flag_a = 0, _flag_b = 0;
   6955     uint32_t _itail_tgt = 0;
   6956     RECOMP_REGS_LOCALS
   6957     RECOMP_ENTER(0x360056C0u);
   6958 
   6959 L_360056C0:
   6960     PUSH32(esp, ebp); /* 0x360056C0: push ebp */
   6961     ebp = esp; /* 0x360056C1: mov ebp, esp */
   6962     eax = ecx; /* 0x360056C3: mov eax, ecx */
   6963     ecx = MEM32(ebp + 0x8); /* 0x360056C5: mov ecx, dword ptr [ebp + 8] */
   6964     /* cmp eax, ecx */ /* 0x360056C8: cmp eax, ecx */
   6965     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6966     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6967     _flag_k = FK_CMP;
   6968     if (CMP_EQ(_flag_a, _flag_b)) goto L_360056D6; /* 0x360056CA: je 0x360056d6 */
   6969 L_360056CC:
   6970     edx = MEM32(ecx); /* 0x360056CC: mov edx, dword ptr [ecx] */
   6971     MEM32(eax) = edx; /* 0x360056CE: mov dword ptr [eax], edx */
   6972     ecx = MEM32(ecx + 0x4); /* 0x360056D0: mov ecx, dword ptr [ecx + 4] */
   6973     MEM32(eax + 0x4) = ecx; /* 0x360056D3: mov dword ptr [eax + 4], ecx */
   6974 L_360056D6:
   6975     ebp = POP32_VAL(esp); /* 0x360056D6: pop ebp */
   6976     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360056D7: ret 4 */
   6977     RECOMP_REGS_OUT();
   6978 }