aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0045.c (594415B)


      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_360953B0(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(0x360953B0u);
     17 
     18 L_360953B0:
     19     PUSH32(esp, ebp); /* 0x360953B0: push ebp */
     20     ebp = esp; /* 0x360953B1: mov ebp, esp */
     21     PUSH32(esp, ebx); /* 0x360953B3: push ebx */
     22     PUSH32(esp, esi); /* 0x360953B4: push esi */
     23     ebx = ecx; /* 0x360953B5: mov ebx, ecx */
     24     esi = MEM32(ebx + 0x1C); /* 0x360953B7: mov esi, dword ptr [ebx + 0x1c] */
     25     PUSH32(esp, edi); /* 0x360953BA: push edi */
     26     edi = MEM32(esi + 0x4); /* 0x360953BB: mov edi, dword ptr [esi + 4] */
     27     PUSH32(esp, 0xCu); /* 0x360953BE: push 0xc */
     28     RECOMP_ICALL(0x3615FD6Au); /* 0x360953C0: call 0x3615fd6a */ /* not lifted */
     29     RECOMP_FLAGS_IN();
     30     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     31     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     32     esp = esp + 4; /* 0x360953C5: add esp, 4 */
     33     _flag_k = FK_ADD;
     34     /* test esi, esi */ /* 0x360953C8: test esi, esi */
     35     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
     36     _cf = 0;
     37     _flag_k = FK_TEST;
     38     ecx = esi; /* 0x360953CA: mov ecx, esi */
     39     if (TEST_NZ(_flag_a, _flag_b)) goto L_360953D0; /* 0x360953CC: jne 0x360953d0 */
     40 L_360953CE:
     41     ecx = eax; /* 0x360953CE: mov ecx, eax */
     42 L_360953D0:
     43     /* test edi, edi */ /* 0x360953D0: test edi, edi */
     44     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
     45     _cf = 0;
     46     _flag_k = FK_TEST;
     47     MEM32(eax) = ecx; /* 0x360953D2: mov dword ptr [eax], ecx */
     48     ecx = edi; /* 0x360953D4: mov ecx, edi */
     49     if (TEST_NZ(_flag_a, _flag_b)) goto L_360953DA; /* 0x360953D6: jne 0x360953da */
     50 L_360953D8:
     51     ecx = eax; /* 0x360953D8: mov ecx, eax */
     52 L_360953DA:
     53     MEM32(eax + 0x4) = ecx; /* 0x360953DA: mov dword ptr [eax + 4], ecx */
     54     MEM32(esi + 0x4) = eax; /* 0x360953DD: mov dword ptr [esi + 4], eax */
     55     ecx = MEM32(eax + 0x4); /* 0x360953E0: mov ecx, dword ptr [eax + 4] */
     56     MEM32(ecx) = eax; /* 0x360953E3: mov dword ptr [ecx], eax */
     57     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
     58     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     59     eax = eax + 8; /* 0x360953E5: add eax, 8 */
     60     _flag_k = FK_ADD;
     61     /* test eax, eax */ /* 0x360953E8: test eax, eax */
     62     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     63     _cf = 0;
     64     _flag_k = FK_TEST;
     65     if (TEST_Z(_flag_a, _flag_b)) goto L_360953F1; /* 0x360953EA: je 0x360953f1 */
     66 L_360953EC:
     67     edx = MEM32(ebp + 0x8); /* 0x360953EC: mov edx, dword ptr [ebp + 8] */
     68     MEM32(eax) = edx; /* 0x360953EF: mov dword ptr [eax], edx */
     69 L_360953F1:
     70     eax = MEM32(ebx + 0x20); /* 0x360953F1: mov eax, dword ptr [ebx + 0x20] */
     71     edi = POP32_VAL(esp); /* 0x360953F4: pop edi */
     72     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
     73     eax = eax + 1; /* 0x360953F5: inc eax */
     74     _flag_k = FK_INC;
     75     esi = POP32_VAL(esp); /* 0x360953F6: pop esi */
     76     MEM32(ebx + 0x20) = eax; /* 0x360953F7: mov dword ptr [ebx + 0x20], eax */
     77     ebx = POP32_VAL(esp); /* 0x360953FA: pop ebx */
     78     ebp = POP32_VAL(esp); /* 0x360953FB: pop ebp */
     79     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360953FC: ret 4 */
     80     RECOMP_REGS_OUT();
     81 }
     82 
     83 void sub_36095400(void) {
     84     int _fpu_cmp = 0;
     85     uint32_t _cf = 0;
     86     int _df = 1;
     87     uint32_t _flag_k = FK_NONE;
     88     uint32_t _flag_a = 0, _flag_b = 0;
     89     uint32_t _itail_tgt = 0;
     90     RECOMP_REGS_LOCALS
     91     RECOMP_ENTER(0x36095400u);
     92 
     93 L_36095400:
     94     PUSH32(esp, ebp); /* 0x36095400: push ebp */
     95     ebp = esp; /* 0x36095401: mov ebp, esp */
     96     PUSH32(esp, ebx); /* 0x36095403: push ebx */
     97     PUSH32(esp, esi); /* 0x36095404: push esi */
     98     esi = MEM32(ebp + 0x8); /* 0x36095405: mov esi, dword ptr [ebp + 8] */
     99     /* test esi, esi */ /* 0x36095408: test esi, esi */
    100     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    101     _cf = 0;
    102     _flag_k = FK_TEST;
    103     PUSH32(esp, edi); /* 0x3609540A: push edi */
    104     edi = ecx; /* 0x3609540B: mov edi, ecx */
    105     if (TEST_Z(_flag_a, _flag_b)) goto L_360954CE; /* 0x3609540D: je 0x360954ce */
    106 L_36095413:
    107     ebx = MEM32(esi); /* 0x36095413: mov ebx, dword ptr [esi] */
    108     PUSH32(esp, 0); /* 0x36095415: push 0 */
    109     RECOMP_ICALL(MEM32(0x3616F190)); /* 0x36095417: call dword ptr [0x3616f190] */
    110     RECOMP_FLAGS_IN();
    111     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    112     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    113     esp = esp + 4; /* 0x3609541D: add esp, 4 */
    114     _flag_k = FK_ADD;
    115     PUSH32(esp, eax); /* 0x36095420: push eax */
    116     PUSH32(esp, 0x242u); /* 0x36095421: push 0x242 */
    117     ecx = esi; /* 0x36095426: mov ecx, esi */
    118     RECOMP_ICALL(MEM32(ebx + 0x8)); /* 0x36095428: call dword ptr [ebx + 8] */
    119     RECOMP_FLAGS_IN();
    120     eax = MEM32(esi); /* 0x3609542B: mov eax, dword ptr [esi] */
    121     PUSH32(esp, 2); /* 0x3609542D: push 2 */
    122     PUSH32(esp, 7); /* 0x3609542F: push 7 */
    123     ecx = esi; /* 0x36095431: mov ecx, esi */
    124     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36095433: call dword ptr [eax + 4] */
    125     RECOMP_FLAGS_IN();
    126     ebx = eax; /* 0x36095436: mov ebx, eax */
    127     PUSH32(esp, ebx); /* 0x36095438: push ebx */
    128     ecx = edi; /* 0x36095439: mov ecx, edi */
    129     MEM32(ebp + 0x8) = ebx; /* 0x3609543B: mov dword ptr [ebp + 8], ebx */
    130     RECOMP_ICALL(0x36095B90u); /* 0x3609543E: call 0x36095b90 */ /* not lifted */
    131     RECOMP_FLAGS_IN();
    132     edi = eax; /* 0x36095443: mov edi, eax */
    133     /* test edi, edi */ /* 0x36095445: test edi, edi */
    134     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    135     _cf = 0;
    136     _flag_k = FK_TEST;
    137     if (TEST_Z(_flag_a, _flag_b)) goto L_360954CE; /* 0x36095447: je 0x360954ce */
    138 L_3609544D:
    139     SET_LO8(eax, MEM8(esi + 0x3C)); /* 0x3609544D: mov al, byte ptr [esi + 0x3c] */
    140     /* test LO8(eax), LO8(eax) */ /* 0x36095450: test al, al */
    141     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    142     _cf = 0;
    143     _flag_k = FK_NARROW(FK_TEST, 24);
    144     if (TEST_Z(_flag_a, _flag_b)) goto L_360954B4; /* 0x36095452: je 0x360954b4 */
    145 L_36095454:
    146     ebx = MEM32(esi); /* 0x36095454: mov ebx, dword ptr [esi] */
    147     PUSH32(esp, 0x362EA510u); /* 0x36095456: push 0x362ea510 */
    148     PUSH32(esp, 0); /* 0x3609545B: push 0 */
    149     ecx = esi; /* 0x3609545D: mov ecx, esi */
    150     RECOMP_ICALL(0x36002750u); /* 0x3609545F: call 0x36002750 */ /* not lifted */
    151     RECOMP_FLAGS_IN();
    152     PUSH32(esp, eax); /* 0x36095464: push eax */
    153     ecx = edi + 0x24; /* 0x36095465: lea ecx, [edi + 0x24] */
    154     PUSH32(esp, ecx); /* 0x36095468: push ecx */
    155     ecx = esi; /* 0x36095469: mov ecx, esi */
    156     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x3609546B: call dword ptr [ebx + 0x34] */
    157     RECOMP_FLAGS_IN();
    158     PUSH32(esp, 0); /* 0x3609546E: push 0 */
    159     PUSH32(esp, 0x361B7BD8u); /* 0x36095470: push 0x361b7bd8 */
    160     PUSH32(esp, 0x361B2CA0u); /* 0x36095475: push 0x361b2ca0 */
    161     PUSH32(esp, 0); /* 0x3609547A: push 0 */
    162     PUSH32(esp, esi); /* 0x3609547C: push esi */
    163     RECOMP_ICALL(0x3615FD86u); /* 0x3609547D: call 0x3615fd86 */ /* not lifted */
    164     RECOMP_FLAGS_IN();
    165     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    166     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    167     esp = esp + 0x14u; /* 0x36095482: add esp, 0x14 */
    168     _flag_k = FK_ADD;
    169     ecx = esi; /* 0x36095485: mov ecx, esi */
    170     ebx = eax; /* 0x36095487: mov ebx, eax */
    171     RECOMP_ICALL(0x36002750u); /* 0x36095489: call 0x36002750 */ /* not lifted */
    172     RECOMP_FLAGS_IN();
    173     /* test eax, eax */ /* 0x3609548E: test eax, eax */
    174     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    175     _cf = 0;
    176     _flag_k = FK_TEST;
    177     if (TEST_Z(_flag_a, _flag_b)) goto L_360954A0; /* 0x36095490: je 0x360954a0 */
    178 L_36095492:
    179     edx = edi + 0x18; /* 0x36095492: lea edx, [edi + 0x18] */
    180     PUSH32(esp, edx); /* 0x36095495: push edx */
    181     ecx = esi; /* 0x36095496: mov ecx, esi */
    182     RECOMP_ICALL(0x36002750u); /* 0x36095498: call 0x36002750 */ /* not lifted */
    183     RECOMP_FLAGS_IN();
    184     PUSH32(esp, eax); /* 0x3609549D: push eax */
    185     goto L_360954A5; /* 0x3609549E: jmp 0x360954a5 */
    186 L_360954A0:
    187     eax = edi + 0x18; /* 0x360954A0: lea eax, [edi + 0x18] */
    188     PUSH32(esp, eax); /* 0x360954A3: push eax */
    189     PUSH32(esp, esi); /* 0x360954A4: push esi */
    190 L_360954A5:
    191     PUSH32(esp, esi); /* 0x360954A5: push esi */
    192     ecx = ebx; /* 0x360954A6: mov ecx, ebx */
    193     RECOMP_ICALL(0x36042020u); /* 0x360954A8: call 0x36042020 */ /* not lifted */
    194     RECOMP_FLAGS_IN();
    195     ebx = MEM32(ebp + 0x8); /* 0x360954AD: mov ebx, dword ptr [ebp + 8] */
    196     MEM8(esi + 0x3C) = (uint8_t)(0); /* 0x360954B0: mov byte ptr [esi + 0x3c], 0 */
    197 L_360954B4:
    198     PUSH32(esp, esi); /* 0x360954B4: push esi */
    199     ecx = edi; /* 0x360954B5: mov ecx, edi */
    200     RECOMP_ICALL(0x36095280u); /* 0x360954B7: call 0x36095280 */ /* not lifted */
    201     RECOMP_FLAGS_IN();
    202     /* cmp eax, ebx */ /* 0x360954BC: cmp eax, ebx */
    203     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    204     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    205     _flag_k = FK_CMP;
    206     if (CMP_EQ(_flag_a, _flag_b)) goto L_360954CE; /* 0x360954BE: je 0x360954ce */
    207 L_360954C0:
    208     edx = MEM32(esi); /* 0x360954C0: mov edx, dword ptr [esi] */
    209     PUSH32(esp, eax); /* 0x360954C2: push eax */
    210     PUSH32(esp, 7); /* 0x360954C3: push 7 */
    211     ecx = esi; /* 0x360954C5: mov ecx, esi */
    212     MEM8(esi + 0x3C) = (uint8_t)(1); /* 0x360954C7: mov byte ptr [esi + 0x3c], 1 */
    213     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360954CB: call dword ptr [edx + 8] */
    214     RECOMP_FLAGS_IN();
    215 L_360954CE:
    216     edi = POP32_VAL(esp); /* 0x360954CE: pop edi */
    217     esi = POP32_VAL(esp); /* 0x360954CF: pop esi */
    218     ebx = POP32_VAL(esp); /* 0x360954D0: pop ebx */
    219     ebp = POP32_VAL(esp); /* 0x360954D1: pop ebp */
    220     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360954D2: ret 4 */
    221     RECOMP_REGS_OUT();
    222 }
    223 
    224 void sub_360954E0(void) {
    225     int _fpu_cmp = 0;
    226     uint32_t _cf = 0;
    227     int _df = 1;
    228     uint32_t _flag_k = FK_NONE;
    229     uint32_t _flag_a = 0, _flag_b = 0;
    230     uint32_t _itail_tgt = 0;
    231     RECOMP_REGS_LOCALS
    232     RECOMP_ENTER(0x360954E0u);
    233 
    234 L_360954E0:
    235     PUSH32(esp, ebp); /* 0x360954E0: push ebp */
    236     ebp = esp; /* 0x360954E1: mov ebp, esp */
    237     eax = MEM32(ebp + 0x8); /* 0x360954E3: mov eax, dword ptr [ebp + 8] */
    238     eax = MEM32(eax + 0x19C); /* 0x360954E6: mov eax, dword ptr [eax + 0x19c] */
    239     PUSH32(esp, eax); /* 0x360954EC: push eax */
    240     RECOMP_ICALL(0x36095B90u); /* 0x360954ED: call 0x36095b90 */ /* not lifted */
    241     RECOMP_FLAGS_IN();
    242     /* test eax, eax */ /* 0x360954F2: test eax, eax */
    243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    244     _cf = 0;
    245     _flag_k = FK_TEST;
    246     if (TEST_NZ(_flag_a, _flag_b)) goto L_360954FC; /* 0x360954F4: jne 0x360954fc */
    247 L_360954F6:
    248     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    249     SET_LO8(eax, 0); /* 0x360954F6: xor al, al */
    250     _cf = 0;
    251     _flag_k = FK_NARROW(FK_TEST, 24);
    252     ebp = POP32_VAL(esp); /* 0x360954F8: pop ebp */
    253     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360954F9: ret 4 */
    254 L_360954FC:
    255     SET_LO8(eax, MEM8(eax + 0x58)); /* 0x360954FC: mov al, byte ptr [eax + 0x58] */
    256     ebp = POP32_VAL(esp); /* 0x360954FF: pop ebp */
    257     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36095500: ret 4 */
    258     RECOMP_REGS_OUT();
    259 }
    260 
    261 void sub_36095510(void) {
    262     int _fpu_cmp = 0;
    263     uint32_t _cf = 0;
    264     int _df = 1;
    265     uint32_t _flag_k = FK_NONE;
    266     uint32_t _flag_a = 0, _flag_b = 0;
    267     uint32_t _itail_tgt = 0;
    268     RECOMP_REGS_LOCALS
    269     RECOMP_ENTER(0x36095510u);
    270 
    271 L_36095510:
    272     PUSH32(esp, ebp); /* 0x36095510: push ebp */
    273     ebp = esp; /* 0x36095511: mov ebp, esp */
    274     PUSH32(esp, 0xFFFFFFFFu); /* 0x36095513: push -1 */
    275     PUSH32(esp, 0x36166466u); /* 0x36095515: push 0x36166466 */
    276     eax = MEM32(FS_BASE + (0)); /* 0x3609551A: mov eax, dword ptr fs:[0] */
    277     PUSH32(esp, eax); /* 0x36095520: push eax */
    278     MEM32(FS_BASE + (0)) = esp; /* 0x36095521: mov dword ptr fs:[0], esp */
    279     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    281     esp = esp - 8; /* 0x36095528: sub esp, 8 */
    282     _flag_k = FK_CMP;
    283     PUSH32(esp, ebx); /* 0x3609552B: push ebx */
    284     PUSH32(esp, esi); /* 0x3609552C: push esi */
    285     PUSH32(esp, edi); /* 0x3609552D: push edi */
    286     edi = ecx; /* 0x3609552E: mov edi, ecx */
    287     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    288     ebx = 0; /* 0x36095530: xor ebx, ebx */
    289     _cf = 0;
    290     _flag_k = FK_TEST;
    291     MEM32(edi + 0x4) = ebx; /* 0x36095532: mov dword ptr [edi + 4], ebx */
    292     MEM32(edi + 0x8) = ebx; /* 0x36095535: mov dword ptr [edi + 8], ebx */
    293     PUSH32(esp, 0x14u); /* 0x36095538: push 0x14 */
    294     MEM32(edi) = 0x36170738u; /* 0x3609553A: mov dword ptr [edi], 0x36170738 */
    295     RECOMP_ICALL(0x3615FD6Au); /* 0x36095540: call 0x3615fd6a */ /* not lifted */
    296     RECOMP_FLAGS_IN();
    297     esi = eax; /* 0x36095545: mov esi, eax */
    298     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    299     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    300     esp = esp + 4; /* 0x36095547: add esp, 4 */
    301     _flag_k = FK_ADD;
    302     MEM32(ebp + (-0x14)) = esi; /* 0x3609554A: mov dword ptr [ebp - 0x14], esi */
    303     /* cmp esi, ebx */ /* 0x3609554D: cmp esi, ebx */
    304     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    306     _flag_k = FK_CMP;
    307     MEM32(ebp + (-0x4)) = ebx; /* 0x3609554F: mov dword ptr [ebp - 4], ebx */
    308     if (CMP_EQ(_flag_a, _flag_b)) goto L_360955B1; /* 0x36095552: je 0x360955b1 */
    309 L_36095554:
    310     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36095554: mov al, byte ptr [ebp + 0xb] */
    311     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36095557: mov cl, byte ptr [ebp + 0xb] */
    312     PUSH32(esp, 0x18u); /* 0x3609555A: push 0x18 */
    313     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3609555C: mov byte ptr [esi], al */
    314     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3609555E: mov byte ptr [esi + 1], cl */
    315     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x36095561: mov byte ptr [esi + 0xc], bl */
    316     RECOMP_ICALL(0x3615FD6Au); /* 0x36095564: call 0x3615fd6a */ /* not lifted */
    317     RECOMP_FLAGS_IN();
    318     MEM32(eax + 0x4) = ebx; /* 0x36095569: mov dword ptr [eax + 4], ebx */
    319     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3609556C: mov byte ptr [eax + 0x14], 1 */
    320     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x36095570: mov byte ptr [eax + 0x15], bl */
    321     MEM32(esi + 0x8) = eax; /* 0x36095573: mov dword ptr [esi + 8], eax */
    322     MEM8(eax + 0x15) = (uint8_t)(1); /* 0x36095576: mov byte ptr [eax + 0x15], 1 */
    323     eax = MEM32(esi + 0x8); /* 0x3609557A: mov eax, dword ptr [esi + 8] */
    324     MEM32(eax) = ebx; /* 0x3609557D: mov dword ptr [eax], ebx */
    325     edx = MEM32(esi + 0x8); /* 0x3609557F: mov edx, dword ptr [esi + 8] */
    326     MEM32(edx + 0x8) = ebx; /* 0x36095582: mov dword ptr [edx + 8], ebx */
    327     eax = MEM32(esi + 0x8); /* 0x36095585: mov eax, dword ptr [esi + 8] */
    328     PUSH32(esp, 0x18u); /* 0x36095588: push 0x18 */
    329     MEM32(ebp + (-0x10)) = eax; /* 0x3609558A: mov dword ptr [ebp - 0x10], eax */
    330     RECOMP_ICALL(0x3615FD6Au); /* 0x3609558D: call 0x3615fd6a */ /* not lifted */
    331     RECOMP_FLAGS_IN();
    332     ecx = MEM32(ebp + (-0x10)); /* 0x36095592: mov ecx, dword ptr [ebp - 0x10] */
    333     MEM32(eax + 0x4) = ecx; /* 0x36095595: mov dword ptr [eax + 4], ecx */
    334     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36095598: mov byte ptr [eax + 0x14], bl */
    335     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3609559B: mov byte ptr [eax + 0x15], bl */
    336     MEM32(esi + 0x4) = eax; /* 0x3609559E: mov dword ptr [esi + 4], eax */
    337     MEM32(eax) = eax; /* 0x360955A1: mov dword ptr [eax], eax */
    338     eax = MEM32(esi + 0x4); /* 0x360955A3: mov eax, dword ptr [esi + 4] */
    339     MEM32(eax + 0x8) = eax; /* 0x360955A6: mov dword ptr [eax + 8], eax */
    340     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    341     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    342     esp = esp + 8; /* 0x360955A9: add esp, 8 */
    343     _flag_k = FK_ADD;
    344     MEM32(esi + 0x10) = ebx; /* 0x360955AC: mov dword ptr [esi + 0x10], ebx */
    345     goto L_360955B3; /* 0x360955AF: jmp 0x360955b3 */
    346 L_360955B1:
    347     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    348     esi = 0; /* 0x360955B1: xor esi, esi */
    349     _cf = 0;
    350     _flag_k = FK_TEST;
    351 L_360955B3:
    352     PUSH32(esp, 0x14u); /* 0x360955B3: push 0x14 */
    353     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360955B5: mov dword ptr [ebp - 4], 0xffffffff */
    354     MEM32(edi + 0x10) = esi; /* 0x360955BC: mov dword ptr [edi + 0x10], esi */
    355     RECOMP_ICALL(0x3615FD6Au); /* 0x360955BF: call 0x3615fd6a */ /* not lifted */
    356     RECOMP_FLAGS_IN();
    357     esi = eax; /* 0x360955C4: mov esi, eax */
    358     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    359     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    360     esp = esp + 4; /* 0x360955C6: add esp, 4 */
    361     _flag_k = FK_ADD;
    362     MEM32(ebp + (-0x14)) = esi; /* 0x360955C9: mov dword ptr [ebp - 0x14], esi */
    363     /* cmp esi, ebx */ /* 0x360955CC: cmp esi, ebx */
    364     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    366     _flag_k = FK_CMP;
    367     MEM32(ebp + (-0x4)) = 1; /* 0x360955CE: mov dword ptr [ebp - 4], 1 */
    368     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095634; /* 0x360955D5: je 0x36095634 */
    369 L_360955D7:
    370     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x360955D7: mov dl, byte ptr [ebp + 0xb] */
    371     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360955DA: mov al, byte ptr [ebp + 0xb] */
    372     PUSH32(esp, 0x24u); /* 0x360955DD: push 0x24 */
    373     MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x360955DF: mov byte ptr [esi], dl */
    374     MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x360955E1: mov byte ptr [esi + 1], al */
    375     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x360955E4: mov byte ptr [esi + 0xc], bl */
    376     RECOMP_ICALL(0x3615FD6Au); /* 0x360955E7: call 0x3615fd6a */ /* not lifted */
    377     RECOMP_FLAGS_IN();
    378     MEM32(eax + 0x4) = ebx; /* 0x360955EC: mov dword ptr [eax + 4], ebx */
    379     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x360955EF: mov byte ptr [eax + 0x20], 1 */
    380     MEM8(eax + 0x21) = (uint8_t)(LO8(ebx)); /* 0x360955F3: mov byte ptr [eax + 0x21], bl */
    381     MEM32(esi + 0x8) = eax; /* 0x360955F6: mov dword ptr [esi + 8], eax */
    382     MEM8(eax + 0x21) = (uint8_t)(1); /* 0x360955F9: mov byte ptr [eax + 0x21], 1 */
    383     ecx = MEM32(esi + 0x8); /* 0x360955FD: mov ecx, dword ptr [esi + 8] */
    384     MEM32(ecx) = ebx; /* 0x36095600: mov dword ptr [ecx], ebx */
    385     edx = MEM32(esi + 0x8); /* 0x36095602: mov edx, dword ptr [esi + 8] */
    386     MEM32(edx + 0x8) = ebx; /* 0x36095605: mov dword ptr [edx + 8], ebx */
    387     eax = MEM32(esi + 0x8); /* 0x36095608: mov eax, dword ptr [esi + 8] */
    388     PUSH32(esp, 0x24u); /* 0x3609560B: push 0x24 */
    389     MEM32(ebp + (-0x10)) = eax; /* 0x3609560D: mov dword ptr [ebp - 0x10], eax */
    390     RECOMP_ICALL(0x3615FD6Au); /* 0x36095610: call 0x3615fd6a */ /* not lifted */
    391     RECOMP_FLAGS_IN();
    392     ecx = MEM32(ebp + (-0x10)); /* 0x36095615: mov ecx, dword ptr [ebp - 0x10] */
    393     MEM32(eax + 0x4) = ecx; /* 0x36095618: mov dword ptr [eax + 4], ecx */
    394     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3609561B: mov byte ptr [eax + 0x20], bl */
    395     MEM8(eax + 0x21) = (uint8_t)(LO8(ebx)); /* 0x3609561E: mov byte ptr [eax + 0x21], bl */
    396     MEM32(esi + 0x4) = eax; /* 0x36095621: mov dword ptr [esi + 4], eax */
    397     MEM32(eax) = eax; /* 0x36095624: mov dword ptr [eax], eax */
    398     eax = MEM32(esi + 0x4); /* 0x36095626: mov eax, dword ptr [esi + 4] */
    399     MEM32(eax + 0x8) = eax; /* 0x36095629: mov dword ptr [eax + 8], eax */
    400     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    401     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    402     esp = esp + 8; /* 0x3609562C: add esp, 8 */
    403     _flag_k = FK_ADD;
    404     MEM32(esi + 0x10) = ebx; /* 0x3609562F: mov dword ptr [esi + 0x10], ebx */
    405     goto L_36095636; /* 0x36095632: jmp 0x36095636 */
    406 L_36095634:
    407     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    408     esi = 0; /* 0x36095634: xor esi, esi */
    409     _cf = 0;
    410     _flag_k = FK_TEST;
    411 L_36095636:
    412     edx = MEM32(ebp + 0x8); /* 0x36095636: mov edx, dword ptr [ebp + 8] */
    413     PUSH32(esp, 0xFFu); /* 0x36095639: push 0xff */
    414     PUSH32(esp, edx); /* 0x3609563E: push edx */
    415     eax = edi + 0x24; /* 0x3609563F: lea eax, [edi + 0x24] */
    416     PUSH32(esp, eax); /* 0x36095642: push eax */
    417     MEM32(edi + 0x14) = esi; /* 0x36095643: mov dword ptr [edi + 0x14], esi */
    418     MEM32(edi + 0x20) = 1; /* 0x36095646: mov dword ptr [edi + 0x20], 1 */
    419     RECOMP_ICALL(MEM32(0x3616F1CC)); /* 0x3609564D: call dword ptr [0x3616f1cc] */
    420     RECOMP_FLAGS_IN();
    421     ecx = MEM32(ebp + (-0xC)); /* 0x36095653: mov ecx, dword ptr [ebp - 0xc] */
    422     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    423     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    424     esp = esp + 0xCu; /* 0x36095656: add esp, 0xc */
    425     _flag_k = FK_ADD;
    426     MEM8(edi + 0x123) = (uint8_t)(LO8(ebx)); /* 0x36095659: mov byte ptr [edi + 0x123], bl */
    427     MEM32(edi + 0x1C) = ebx; /* 0x3609565F: mov dword ptr [edi + 0x1c], ebx */
    428     eax = edi; /* 0x36095662: mov eax, edi */
    429     edi = POP32_VAL(esp); /* 0x36095664: pop edi */
    430     esi = POP32_VAL(esp); /* 0x36095665: pop esi */
    431     ebx = POP32_VAL(esp); /* 0x36095666: pop ebx */
    432     MEM32(FS_BASE + (0)) = ecx; /* 0x36095667: mov dword ptr fs:[0], ecx */
    433     esp = ebp; /* 0x3609566E: mov esp, ebp */
    434     ebp = POP32_VAL(esp); /* 0x36095670: pop ebp */
    435     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36095671: ret 4 */
    436     RECOMP_REGS_OUT();
    437 }
    438 
    439 void sub_36095680(void) {
    440     int _fpu_cmp = 0;
    441     uint32_t _cf = 0;
    442     int _df = 1;
    443     uint32_t _flag_k = FK_NONE;
    444     uint32_t _flag_a = 0, _flag_b = 0;
    445     uint32_t _itail_tgt = 0;
    446     RECOMP_REGS_LOCALS
    447     RECOMP_ENTER(0x36095680u);
    448 
    449 L_36095680:
    450     _flag_a = (uint32_t)(MEM32(ecx + 0x20)); _flag_b = (uint32_t)(1);
    451     MEM32(ecx + 0x20) = MEM32(ecx + 0x20) - 1; /* 0x36095680: dec dword ptr [ecx + 0x20] */
    452     _flag_k = FK_DEC;
    453     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3609568F; /* 0x36095683: jne 0x3609568f */
    454 L_36095685:
    455     /* test ecx, ecx */ /* 0x36095685: test ecx, ecx */
    456     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    457     _cf = 0;
    458     _flag_k = FK_TEST;
    459     if (TEST_Z(_flag_a, _flag_b)) goto L_3609568F; /* 0x36095687: je 0x3609568f */
    460 L_36095689:
    461     eax = MEM32(ecx); /* 0x36095689: mov eax, dword ptr [ecx] */
    462     PUSH32(esp, 1); /* 0x3609568B: push 1 */
    463     RECOMP_ICALL(MEM32(eax)); /* 0x3609568D: call dword ptr [eax] */
    464     RECOMP_FLAGS_IN();
    465 L_3609568F:
    466     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609568F: ret  */
    467     RECOMP_REGS_OUT();
    468 }
    469 
    470 void sub_36095690(void) {
    471     int _fpu_cmp = 0;
    472     uint32_t _cf = 0;
    473     int _df = 1;
    474     uint32_t _flag_k = FK_NONE;
    475     uint32_t _flag_a = 0, _flag_b = 0;
    476     uint32_t _itail_tgt = 0;
    477     RECOMP_REGS_LOCALS
    478     RECOMP_ENTER(0x36095690u);
    479 
    480 L_36095690:
    481     PUSH32(esp, ebp); /* 0x36095690: push ebp */
    482     ebp = esp; /* 0x36095691: mov ebp, esp */
    483     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
    484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    485     esp = esp - 0x28u; /* 0x36095693: sub esp, 0x28 */
    486     _flag_k = FK_CMP;
    487     PUSH32(esp, ebx); /* 0x36095696: push ebx */
    488     PUSH32(esp, esi); /* 0x36095697: push esi */
    489     esi = ecx; /* 0x36095698: mov esi, ecx */
    490     eax = MEM32(esi + 0x20); /* 0x3609569A: mov eax, dword ptr [esi + 0x20] */
    491     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    492     ebx = 0; /* 0x3609569D: xor ebx, ebx */
    493     _cf = 0;
    494     _flag_k = FK_TEST;
    495     /* cmp eax, ebx */ /* 0x3609569F: cmp eax, ebx */
    496     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    498     _flag_k = FK_CMP;
    499     PUSH32(esp, edi); /* 0x360956A1: push edi */
    500     MEM32(esi) = 0x36170738u; /* 0x360956A2: mov dword ptr [esi], 0x36170738 */
    501     if (CMP_NE(_flag_a, _flag_b)) goto L_3609580E; /* 0x360956A8: jne 0x3609580e */
    502 L_360956AE:
    503     /* cmp esi, ebx */ /* 0x360956AE: cmp esi, ebx */
    504     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    506     _flag_k = FK_CMP;
    507     if (CMP_EQ(_flag_a, _flag_b)) goto L_360956B7; /* 0x360956B0: je 0x360956b7 */
    508 L_360956B2:
    509     eax = esi + 0x4; /* 0x360956B2: lea eax, [esi + 4] */
    510     goto L_360956B9; /* 0x360956B5: jmp 0x360956b9 */
    511 L_360956B7:
    512     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    513     eax = 0; /* 0x360956B7: xor eax, eax */
    514     _cf = 0;
    515     _flag_k = FK_TEST;
    516 L_360956B9:
    517     ecx = ebp + (-0x1C); /* 0x360956B9: lea ecx, [ebp - 0x1c] */
    518     /* cmp ecx, eax */ /* 0x360956BC: cmp ecx, eax */
    519     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    521     _flag_k = FK_CMP;
    522     if (CMP_EQ(_flag_a, _flag_b)) goto L_360956CB; /* 0x360956BE: je 0x360956cb */
    523 L_360956C0:
    524     edx = MEM32(eax); /* 0x360956C0: mov edx, dword ptr [eax] */
    525     eax = MEM32(eax + 0x4); /* 0x360956C2: mov eax, dword ptr [eax + 4] */
    526     MEM32(ebp + (-0x1C)) = edx; /* 0x360956C5: mov dword ptr [ebp - 0x1c], edx */
    527     MEM32(ebp + (-0x18)) = eax; /* 0x360956C8: mov dword ptr [ebp - 0x18], eax */
    528 L_360956CB:
    529     ecx = MEM32(esi + 0x10); /* 0x360956CB: mov ecx, dword ptr [esi + 0x10] */
    530     edx = MEM32(ecx + 0x4); /* 0x360956CE: mov edx, dword ptr [ecx + 4] */
    531     eax = MEM32(edx); /* 0x360956D1: mov eax, dword ptr [edx] */
    532     MEM32(ebp + (-0x4)) = eax; /* 0x360956D3: mov dword ptr [ebp - 4], eax */
    533     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360956D6: cmp eax, dword ptr [ecx + 4] */
    534     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
    535     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    536     _flag_k = FK_CMP;
    537     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095707; /* 0x360956D9: je 0x36095707 */
    538 L_360956DB:
    539     edi = MEM32(eax + 0x10); /* 0x360956DB: mov edi, dword ptr [eax + 0x10] */
    540     /* cmp edi, ebx */ /* 0x360956DE: cmp edi, ebx */
    541     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    543     _flag_k = FK_CMP;
    544     if (CMP_EQ(_flag_a, _flag_b)) goto L_360956F2; /* 0x360956E0: je 0x360956f2 */
    545 L_360956E2:
    546     ecx = edi; /* 0x360956E2: mov ecx, edi */
    547     RECOMP_ICALL(0x36095090u); /* 0x360956E4: call 0x36095090 */ /* not lifted */
    548     RECOMP_FLAGS_IN();
    549     PUSH32(esp, edi); /* 0x360956E9: push edi */
    550     RECOMP_ICALL(0x3615FCC4u); /* 0x360956EA: call 0x3615fcc4 */ /* not lifted */
    551     RECOMP_FLAGS_IN();
    552     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    553     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    554     esp = esp + 4; /* 0x360956EF: add esp, 4 */
    555     _flag_k = FK_ADD;
    556 L_360956F2:
    557     ecx = ebp + (-0x4); /* 0x360956F2: lea ecx, [ebp - 4] */
    558     RECOMP_ICALL(0x36064140u); /* 0x360956F5: call 0x36064140 */ /* not lifted */
    559     RECOMP_FLAGS_IN();
    560     eax = MEM32(esi + 0x10); /* 0x360956FA: mov eax, dword ptr [esi + 0x10] */
    561     ecx = MEM32(eax + 0x4); /* 0x360956FD: mov ecx, dword ptr [eax + 4] */
    562     eax = MEM32(ebp + (-0x4)); /* 0x36095700: mov eax, dword ptr [ebp - 4] */
    563     /* cmp eax, ecx */ /* 0x36095703: cmp eax, ecx */
    564     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    566     _flag_k = FK_CMP;
    567     RECOMP_BACKEDGE();
    568     if (CMP_NE(_flag_a, _flag_b)) goto L_360956DB; /* 0x36095705: jne 0x360956db */
    569 L_36095707:
    570     edi = MEM32(esi + 0x10); /* 0x36095707: mov edi, dword ptr [esi + 0x10] */
    571     eax = MEM32(edi + 0x4); /* 0x3609570A: mov eax, dword ptr [edi + 4] */
    572     PUSH32(esp, eax); /* 0x3609570D: push eax */
    573     ecx = ebp + (-0x4); /* 0x3609570E: lea ecx, [ebp - 4] */
    574     PUSH32(esp, ecx); /* 0x36095711: push ecx */
    575     ecx = edi; /* 0x36095712: mov ecx, edi */
    576     RECOMP_ICALL(0x3614FC30u); /* 0x36095714: call 0x3614fc30 */ /* not lifted */
    577     RECOMP_FLAGS_IN();
    578     edx = MEM32(eax); /* 0x36095719: mov edx, dword ptr [eax] */
    579     PUSH32(esp, edx); /* 0x3609571B: push edx */
    580     eax = ebp + (-0x8); /* 0x3609571C: lea eax, [ebp - 8] */
    581     PUSH32(esp, eax); /* 0x3609571F: push eax */
    582     ecx = edi; /* 0x36095720: mov ecx, edi */
    583     RECOMP_ICALL(0x36096400u); /* 0x36095722: call 0x36096400 */ /* not lifted */
    584     RECOMP_FLAGS_IN();
    585     edi = MEM32(esi + 0x10); /* 0x36095727: mov edi, dword ptr [esi + 0x10] */
    586     /* cmp edi, ebx */ /* 0x3609572A: cmp edi, ebx */
    587     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    589     _flag_k = FK_CMP;
    590     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609573E; /* 0x3609572C: je 0x3609573e */
    591 L_3609572E:
    592     ecx = edi; /* 0x3609572E: mov ecx, edi */
    593     RECOMP_ICALL(0x36095820u); /* 0x36095730: call 0x36095820 */ /* not lifted */
    594     RECOMP_FLAGS_IN();
    595     PUSH32(esp, edi); /* 0x36095735: push edi */
    596     RECOMP_ICALL(0x3615FCC4u); /* 0x36095736: call 0x3615fcc4 */ /* not lifted */
    597     RECOMP_FLAGS_IN();
    598     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    599     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    600     esp = esp + 4; /* 0x3609573B: add esp, 4 */
    601     _flag_k = FK_ADD;
    602 L_3609573E:
    603     edi = MEM32(esi + 0x14); /* 0x3609573E: mov edi, dword ptr [esi + 0x14] */
    604     MEM32(esi + 0x10) = ebx; /* 0x36095741: mov dword ptr [esi + 0x10], ebx */
    605     eax = MEM32(edi + 0x4); /* 0x36095744: mov eax, dword ptr [edi + 4] */
    606     PUSH32(esp, eax); /* 0x36095747: push eax */
    607     ecx = ebp + (-0x8); /* 0x36095748: lea ecx, [ebp - 8] */
    608     PUSH32(esp, ecx); /* 0x3609574B: push ecx */
    609     ecx = edi; /* 0x3609574C: mov ecx, edi */
    610     RECOMP_ICALL(0x3614FC30u); /* 0x3609574E: call 0x3614fc30 */ /* not lifted */
    611     RECOMP_FLAGS_IN();
    612     edx = MEM32(eax); /* 0x36095753: mov edx, dword ptr [eax] */
    613     PUSH32(esp, edx); /* 0x36095755: push edx */
    614     eax = ebp + (-0x4); /* 0x36095756: lea eax, [ebp - 4] */
    615     PUSH32(esp, eax); /* 0x36095759: push eax */
    616     ecx = edi; /* 0x3609575A: mov ecx, edi */
    617     RECOMP_ICALL(0x360964B0u); /* 0x3609575C: call 0x360964b0 */ /* not lifted */
    618     RECOMP_FLAGS_IN();
    619     edi = MEM32(esi + 0x14); /* 0x36095761: mov edi, dword ptr [esi + 0x14] */
    620     /* cmp edi, ebx */ /* 0x36095764: cmp edi, ebx */
    621     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    623     _flag_k = FK_CMP;
    624     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095778; /* 0x36095766: je 0x36095778 */
    625 L_36095768:
    626     ecx = edi; /* 0x36095768: mov ecx, edi */
    627     RECOMP_ICALL(0x360958E0u); /* 0x3609576A: call 0x360958e0 */ /* not lifted */
    628     RECOMP_FLAGS_IN();
    629     PUSH32(esp, edi); /* 0x3609576F: push edi */
    630     RECOMP_ICALL(0x3615FCC4u); /* 0x36095770: call 0x3615fcc4 */ /* not lifted */
    631     RECOMP_FLAGS_IN();
    632     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    633     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    634     esp = esp + 4; /* 0x36095775: add esp, 4 */
    635     _flag_k = FK_ADD;
    636 L_36095778:
    637     edx = ebp + (-0x1C); /* 0x36095778: lea edx, [ebp - 0x1c] */
    638     PUSH32(esp, edx); /* 0x3609577B: push edx */
    639     eax = ebp + (-0x8); /* 0x3609577C: lea eax, [ebp - 8] */
    640     MEM32(esi + 0x14) = ebx; /* 0x3609577F: mov dword ptr [esi + 0x14], ebx */
    641     ecx = MEM32(0x361C5EC4); /* 0x36095782: mov ecx, dword ptr [0x361c5ec4] */
    642     PUSH32(esp, eax); /* 0x36095788: push eax */
    643     RECOMP_ICALL(0x36096370u); /* 0x36095789: call 0x36096370 */ /* not lifted */
    644     RECOMP_FLAGS_IN();
    645     ecx = MEM32(0x361C5EC4); /* 0x3609578E: mov ecx, dword ptr [0x361c5ec4] */
    646     eax = MEM32(eax); /* 0x36095794: mov eax, dword ptr [eax] */
    647     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36095796: cmp eax, dword ptr [ecx + 4] */
    648     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
    649     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    650     _flag_k = FK_CMP;
    651     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609580E; /* 0x36095799: je 0x3609580e */
    652 L_3609579B:
    653     /* cmp MEM32(eax + 0x14), esi */ /* 0x3609579B: cmp dword ptr [eax + 0x14], esi */
    654     _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(esi);
    655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    656     _flag_k = FK_CMP;
    657     if (CMP_NE(_flag_a, _flag_b)) goto L_3609580E; /* 0x3609579E: jne 0x3609580e */
    658 L_360957A0:
    659     edx = MEM32(ebp + (-0x1C)); /* 0x360957A0: mov edx, dword ptr [ebp - 0x1c] */
    660     eax = MEM32(ebp + (-0x18)); /* 0x360957A3: mov eax, dword ptr [ebp - 0x18] */
    661     MEM32(ebp + (-0x28)) = edx; /* 0x360957A6: mov dword ptr [ebp - 0x28], edx */
    662     edx = ebp + (-0x28); /* 0x360957A9: lea edx, [ebp - 0x28] */
    663     MEM32(ebp + (-0x24)) = eax; /* 0x360957AC: mov dword ptr [ebp - 0x24], eax */
    664     PUSH32(esp, edx); /* 0x360957AF: push edx */
    665     eax = ebp + (-0x14); /* 0x360957B0: lea eax, [ebp - 0x14] */
    666     PUSH32(esp, eax); /* 0x360957B3: push eax */
    667     MEM32(ebp + (-0x20)) = ebx; /* 0x360957B4: mov dword ptr [ebp - 0x20], ebx */
    668     RECOMP_ICALL(0x36093CF0u); /* 0x360957B7: call 0x36093cf0 */ /* not lifted */
    669     RECOMP_FLAGS_IN();
    670     ecx = eax; /* 0x360957BC: mov ecx, eax */
    671     eax = MEM32(ecx); /* 0x360957BE: mov eax, dword ptr [ecx] */
    672     edx = MEM32(ecx + 0x4); /* 0x360957C0: mov edx, dword ptr [ecx + 4] */
    673     MEM32(eax + 0x14) = ebx; /* 0x360957C3: mov dword ptr [eax + 0x14], ebx */
    674     esi = MEM32(0x361C5EC4); /* 0x360957C6: mov esi, dword ptr [0x361c5ec4] */
    675     eax = ebp + (-0x1C); /* 0x360957CC: lea eax, [ebp - 0x1c] */
    676     PUSH32(esp, eax); /* 0x360957CF: push eax */
    677     ecx = esi; /* 0x360957D0: mov ecx, esi */
    678     MEM32(ebp + (-0x8)) = edx; /* 0x360957D2: mov dword ptr [ebp - 8], edx */
    679     RECOMP_ICALL(0x36096BD0u); /* 0x360957D5: call 0x36096bd0 */ /* not lifted */
    680     RECOMP_FLAGS_IN();
    681     ecx = ebp + (-0x1C); /* 0x360957DA: lea ecx, [ebp - 0x1c] */
    682     PUSH32(esp, ecx); /* 0x360957DD: push ecx */
    683     edx = ebp + (-0x8); /* 0x360957DE: lea edx, [ebp - 8] */
    684     PUSH32(esp, edx); /* 0x360957E1: push edx */
    685     ecx = esi; /* 0x360957E2: mov ecx, esi */
    686     ebx = eax; /* 0x360957E4: mov ebx, eax */
    687     RECOMP_ICALL(0x360FF330u); /* 0x360957E6: call 0x360ff330 */ /* not lifted */
    688     RECOMP_FLAGS_IN();
    689     edi = MEM32(eax); /* 0x360957EB: mov edi, dword ptr [eax] */
    690     /* cmp edi, ebx */ /* 0x360957ED: cmp edi, ebx */
    691     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    693     _flag_k = FK_CMP;
    694     MEM32(ebp + (-0x4)) = edi; /* 0x360957EF: mov dword ptr [ebp - 4], edi */
    695     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095801; /* 0x360957F2: je 0x36095801 */
    696 L_360957F4:
    697     ecx = ebp + (-0x4); /* 0x360957F4: lea ecx, [ebp - 4] */
    698     RECOMP_ICALL(0x36096C20u); /* 0x360957F7: call 0x36096c20 */ /* not lifted */
    699     RECOMP_FLAGS_IN();
    700     /* cmp MEM32(ebp + (-0x4)), ebx */ /* 0x360957FC: cmp dword ptr [ebp - 4], ebx */
    701     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(ebx);
    702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    703     _flag_k = FK_CMP;
    704     RECOMP_BACKEDGE();
    705     if (CMP_NE(_flag_a, _flag_b)) goto L_360957F4; /* 0x360957FF: jne 0x360957f4 */
    706 L_36095801:
    707     PUSH32(esp, ebx); /* 0x36095801: push ebx */
    708     PUSH32(esp, edi); /* 0x36095802: push edi */
    709     eax = ebp + (-0x10); /* 0x36095803: lea eax, [ebp - 0x10] */
    710     PUSH32(esp, eax); /* 0x36095806: push eax */
    711     ecx = esi; /* 0x36095807: mov ecx, esi */
    712     RECOMP_ICALL(0x360962C0u); /* 0x36095809: call 0x360962c0 */ /* not lifted */
    713     RECOMP_FLAGS_IN();
    714 L_3609580E:
    715     edi = POP32_VAL(esp); /* 0x3609580E: pop edi */
    716     esi = POP32_VAL(esp); /* 0x3609580F: pop esi */
    717     ebx = POP32_VAL(esp); /* 0x36095810: pop ebx */
    718     esp = ebp; /* 0x36095811: mov esp, ebp */
    719     ebp = POP32_VAL(esp); /* 0x36095813: pop ebp */
    720     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36095814: ret  */
    721     RECOMP_REGS_OUT();
    722 }
    723 
    724 void sub_36095820(void) {
    725     int _fpu_cmp = 0;
    726     uint32_t _cf = 0;
    727     int _df = 1;
    728     uint32_t _flag_k = FK_NONE;
    729     uint32_t _flag_a = 0, _flag_b = 0;
    730     uint32_t _itail_tgt = 0;
    731     RECOMP_REGS_LOCALS
    732     RECOMP_ENTER(0x36095820u);
    733 
    734 L_36095820:
    735     PUSH32(esp, ebp); /* 0x36095820: push ebp */
    736     ebp = esp; /* 0x36095821: mov ebp, esp */
    737     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    739     esp = esp - 8; /* 0x36095823: sub esp, 8 */
    740     _flag_k = FK_CMP;
    741     PUSH32(esp, ebx); /* 0x36095826: push ebx */
    742     PUSH32(esp, esi); /* 0x36095827: push esi */
    743     esi = ecx; /* 0x36095828: mov esi, ecx */
    744     ecx = MEM32(esi + 0x10); /* 0x3609582A: mov ecx, dword ptr [esi + 0x10] */
    745     /* test ecx, ecx */ /* 0x3609582D: test ecx, ecx */
    746     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    747     _cf = 0;
    748     _flag_k = FK_TEST;
    749     PUSH32(esp, edi); /* 0x3609582F: push edi */
    750     edi = MEM32(esi + 0x4); /* 0x36095830: mov edi, dword ptr [esi + 4] */
    751     eax = MEM32(edi); /* 0x36095833: mov eax, dword ptr [edi] */
    752     MEM32(ebp + (-0x4)) = eax; /* 0x36095835: mov dword ptr [ebp - 4], eax */
    753     if (TEST_Z(_flag_a, _flag_b)) goto L_36095895; /* 0x36095838: je 0x36095895 */
    754 L_3609583A:
    755     ecx = eax; /* 0x3609583A: mov ecx, eax */
    756     /* cmp eax, ecx */ /* 0x3609583C: cmp eax, ecx */
    757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    759     _flag_k = FK_CMP;
    760     if (CMP_NE(_flag_a, _flag_b)) goto L_36095895; /* 0x3609583E: jne 0x36095895 */
    761 L_36095840:
    762     /* cmp edi, edi */ /* 0x36095840: cmp edi, edi */
    763     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    765     _flag_k = FK_CMP;
    766     if (CMP_NE(_flag_a, _flag_b)) goto L_36095895; /* 0x36095842: jne 0x36095895 */
    767 L_36095844:
    768     ebx = MEM32(edi + 0x4); /* 0x36095844: mov ebx, dword ptr [edi + 4] */
    769     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36095847: cmp ebx, dword ptr [esi + 8] */
    770     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    772     _flag_k = FK_CMP;
    773     edi = ebx; /* 0x3609584A: mov edi, ebx */
    774     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609586D; /* 0x3609584C: je 0x3609586d */
    775 L_3609584E:
    776     eax = MEM32(edi + 0x8); /* 0x3609584E: mov eax, dword ptr [edi + 8] */
    777     PUSH32(esp, eax); /* 0x36095851: push eax */
    778     ecx = esi; /* 0x36095852: mov ecx, esi */
    779     RECOMP_ICALL(0x360965E0u); /* 0x36095854: call 0x360965e0 */ /* not lifted */
    780     RECOMP_FLAGS_IN();
    781     edi = MEM32(edi); /* 0x36095859: mov edi, dword ptr [edi] */
    782     PUSH32(esp, ebx); /* 0x3609585B: push ebx */
    783     RECOMP_ICALL(0x3615FCC4u); /* 0x3609585C: call 0x3615fcc4 */ /* not lifted */
    784     RECOMP_FLAGS_IN();
    785     eax = MEM32(esi + 0x8); /* 0x36095861: mov eax, dword ptr [esi + 8] */
    786     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    787     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    788     esp = esp + 4; /* 0x36095864: add esp, 4 */
    789     _flag_k = FK_ADD;
    790     /* cmp edi, eax */ /* 0x36095867: cmp edi, eax */
    791     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    792     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    793     _flag_k = FK_CMP;
    794     ebx = edi; /* 0x36095869: mov ebx, edi */
    795     RECOMP_BACKEDGE();
    796     if (CMP_NE(_flag_a, _flag_b)) goto L_3609584E; /* 0x3609586B: jne 0x3609584e */
    797 L_3609586D:
    798     ecx = MEM32(esi + 0x4); /* 0x3609586D: mov ecx, dword ptr [esi + 4] */
    799     edx = MEM32(esi + 0x8); /* 0x36095870: mov edx, dword ptr [esi + 8] */
    800     MEM32(ecx + 0x4) = edx; /* 0x36095873: mov dword ptr [ecx + 4], edx */
    801     eax = MEM32(esi + 0x4); /* 0x36095876: mov eax, dword ptr [esi + 4] */
    802     MEM32(esi + 0x10) = 0; /* 0x36095879: mov dword ptr [esi + 0x10], 0 */
    803     MEM32(eax) = eax; /* 0x36095880: mov dword ptr [eax], eax */
    804     eax = MEM32(esi + 0x4); /* 0x36095882: mov eax, dword ptr [esi + 4] */
    805     MEM32(eax + 0x8) = eax; /* 0x36095885: mov dword ptr [eax + 8], eax */
    806     eax = ebp + (-0x8); /* 0x36095888: lea eax, [ebp - 8] */
    807     PUSH32(esp, eax); /* 0x3609588B: push eax */
    808     ecx = esi; /* 0x3609588C: mov ecx, esi */
    809     RECOMP_ICALL(0x3614FC30u); /* 0x3609588E: call 0x3614fc30 */ /* not lifted */
    810     RECOMP_FLAGS_IN();
    811     goto L_360958B6; /* 0x36095893: jmp 0x360958b6 */
    812 L_36095895:
    813     /* cmp eax, edi */ /* 0x36095895: cmp eax, edi */
    814     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    816     _flag_k = FK_CMP;
    817     if (CMP_EQ(_flag_a, _flag_b)) goto L_360958B6; /* 0x36095897: je 0x360958b6 */
    818 L_36095899:
    819     ecx = ebp + (-0x4); /* 0x36095899: lea ecx, [ebp - 4] */
    820     ebx = eax; /* 0x3609589C: mov ebx, eax */
    821     RECOMP_ICALL(0x36064140u); /* 0x3609589E: call 0x36064140 */ /* not lifted */
    822     RECOMP_FLAGS_IN();
    823     PUSH32(esp, ebx); /* 0x360958A3: push ebx */
    824     ecx = ebp + (-0x8); /* 0x360958A4: lea ecx, [ebp - 8] */
    825     PUSH32(esp, ecx); /* 0x360958A7: push ecx */
    826     ecx = esi; /* 0x360958A8: mov ecx, esi */
    827     RECOMP_ICALL(0x360588E0u); /* 0x360958AA: call 0x360588e0 */ /* not lifted */
    828     RECOMP_FLAGS_IN();
    829     eax = MEM32(ebp + (-0x4)); /* 0x360958AF: mov eax, dword ptr [ebp - 4] */
    830     /* cmp eax, edi */ /* 0x360958B2: cmp eax, edi */
    831     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    832     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    833     _flag_k = FK_CMP;
    834     RECOMP_BACKEDGE();
    835     if (CMP_NE(_flag_a, _flag_b)) goto L_36095899; /* 0x360958B4: jne 0x36095899 */
    836 L_360958B6:
    837     edx = MEM32(esi + 0x4); /* 0x360958B6: mov edx, dword ptr [esi + 4] */
    838     PUSH32(esp, edx); /* 0x360958B9: push edx */
    839     RECOMP_ICALL(0x3615FCC4u); /* 0x360958BA: call 0x3615fcc4 */ /* not lifted */
    840     RECOMP_FLAGS_IN();
    841     eax = MEM32(esi + 0x8); /* 0x360958BF: mov eax, dword ptr [esi + 8] */
    842     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    843     edi = 0; /* 0x360958C2: xor edi, edi */
    844     _cf = 0;
    845     _flag_k = FK_TEST;
    846     PUSH32(esp, eax); /* 0x360958C4: push eax */
    847     MEM32(esi + 0x4) = edi; /* 0x360958C5: mov dword ptr [esi + 4], edi */
    848     MEM32(esi + 0x10) = edi; /* 0x360958C8: mov dword ptr [esi + 0x10], edi */
    849     RECOMP_ICALL(0x3615FCC4u); /* 0x360958CB: call 0x3615fcc4 */ /* not lifted */
    850     RECOMP_FLAGS_IN();
    851     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    852     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    853     esp = esp + 8; /* 0x360958D0: add esp, 8 */
    854     _flag_k = FK_ADD;
    855     MEM32(esi + 0x8) = edi; /* 0x360958D3: mov dword ptr [esi + 8], edi */
    856     edi = POP32_VAL(esp); /* 0x360958D6: pop edi */
    857     esi = POP32_VAL(esp); /* 0x360958D7: pop esi */
    858     ebx = POP32_VAL(esp); /* 0x360958D8: pop ebx */
    859     esp = ebp; /* 0x360958D9: mov esp, ebp */
    860     ebp = POP32_VAL(esp); /* 0x360958DB: pop ebp */
    861     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360958DC: ret  */
    862     RECOMP_REGS_OUT();
    863 }
    864 
    865 void sub_360958E0(void) {
    866     int _fpu_cmp = 0;
    867     uint32_t _cf = 0;
    868     int _df = 1;
    869     uint32_t _flag_k = FK_NONE;
    870     uint32_t _flag_a = 0, _flag_b = 0;
    871     uint32_t _itail_tgt = 0;
    872     RECOMP_REGS_LOCALS
    873     RECOMP_ENTER(0x360958E0u);
    874 
    875 L_360958E0:
    876     PUSH32(esp, ebp); /* 0x360958E0: push ebp */
    877     ebp = esp; /* 0x360958E1: mov ebp, esp */
    878     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    879     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    880     esp = esp - 8; /* 0x360958E3: sub esp, 8 */
    881     _flag_k = FK_CMP;
    882     PUSH32(esp, ebx); /* 0x360958E6: push ebx */
    883     PUSH32(esp, esi); /* 0x360958E7: push esi */
    884     esi = ecx; /* 0x360958E8: mov esi, ecx */
    885     ecx = MEM32(esi + 0x10); /* 0x360958EA: mov ecx, dword ptr [esi + 0x10] */
    886     /* test ecx, ecx */ /* 0x360958ED: test ecx, ecx */
    887     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    888     _cf = 0;
    889     _flag_k = FK_TEST;
    890     PUSH32(esp, edi); /* 0x360958EF: push edi */
    891     edi = MEM32(esi + 0x4); /* 0x360958F0: mov edi, dword ptr [esi + 4] */
    892     eax = MEM32(edi); /* 0x360958F3: mov eax, dword ptr [edi] */
    893     MEM32(ebp + (-0x4)) = eax; /* 0x360958F5: mov dword ptr [ebp - 4], eax */
    894     if (TEST_Z(_flag_a, _flag_b)) goto L_3609595F; /* 0x360958F8: je 0x3609595f */
    895 L_360958FA:
    896     ecx = eax; /* 0x360958FA: mov ecx, eax */
    897     /* cmp eax, ecx */ /* 0x360958FC: cmp eax, ecx */
    898     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    899     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    900     _flag_k = FK_CMP;
    901     if (CMP_NE(_flag_a, _flag_b)) goto L_3609595F; /* 0x360958FE: jne 0x3609595f */
    902 L_36095900:
    903     /* cmp edi, edi */ /* 0x36095900: cmp edi, edi */
    904     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    906     _flag_k = FK_CMP;
    907     if (CMP_NE(_flag_a, _flag_b)) goto L_3609595F; /* 0x36095902: jne 0x3609595f */
    908 L_36095904:
    909     ebx = MEM32(edi + 0x4); /* 0x36095904: mov ebx, dword ptr [edi + 4] */
    910     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36095907: cmp ebx, dword ptr [esi + 8] */
    911     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    913     _flag_k = FK_CMP;
    914     edi = ebx; /* 0x3609590A: mov edi, ebx */
    915     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095937; /* 0x3609590C: je 0x36095937 */
    916 L_3609590E:
    917     eax = MEM32(edi + 0x8); /* 0x3609590E: mov eax, dword ptr [edi + 8] */
    918     PUSH32(esp, eax); /* 0x36095911: push eax */
    919     ecx = esi; /* 0x36095912: mov ecx, esi */
    920     RECOMP_ICALL(0x360968D0u); /* 0x36095914: call 0x360968d0 */ /* not lifted */
    921     RECOMP_FLAGS_IN();
    922     edi = MEM32(edi); /* 0x36095919: mov edi, dword ptr [edi] */
    923     PUSH32(esp, 0); /* 0x3609591B: push 0 */
    924     ecx = ebx + 0xC; /* 0x3609591D: lea ecx, [ebx + 0xc] */
    925     RECOMP_ICALL(0x3606AA50u); /* 0x36095920: call 0x3606aa50 */ /* not lifted */
    926     RECOMP_FLAGS_IN();
    927     PUSH32(esp, ebx); /* 0x36095925: push ebx */
    928     RECOMP_ICALL(0x3615FCC4u); /* 0x36095926: call 0x3615fcc4 */ /* not lifted */
    929     RECOMP_FLAGS_IN();
    930     eax = MEM32(esi + 0x8); /* 0x3609592B: mov eax, dword ptr [esi + 8] */
    931     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    932     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    933     esp = esp + 4; /* 0x3609592E: add esp, 4 */
    934     _flag_k = FK_ADD;
    935     /* cmp edi, eax */ /* 0x36095931: cmp edi, eax */
    936     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    938     _flag_k = FK_CMP;
    939     ebx = edi; /* 0x36095933: mov ebx, edi */
    940     RECOMP_BACKEDGE();
    941     if (CMP_NE(_flag_a, _flag_b)) goto L_3609590E; /* 0x36095935: jne 0x3609590e */
    942 L_36095937:
    943     ecx = MEM32(esi + 0x4); /* 0x36095937: mov ecx, dword ptr [esi + 4] */
    944     edx = MEM32(esi + 0x8); /* 0x3609593A: mov edx, dword ptr [esi + 8] */
    945     MEM32(ecx + 0x4) = edx; /* 0x3609593D: mov dword ptr [ecx + 4], edx */
    946     eax = MEM32(esi + 0x4); /* 0x36095940: mov eax, dword ptr [esi + 4] */
    947     MEM32(esi + 0x10) = 0; /* 0x36095943: mov dword ptr [esi + 0x10], 0 */
    948     MEM32(eax) = eax; /* 0x3609594A: mov dword ptr [eax], eax */
    949     eax = MEM32(esi + 0x4); /* 0x3609594C: mov eax, dword ptr [esi + 4] */
    950     MEM32(eax + 0x8) = eax; /* 0x3609594F: mov dword ptr [eax + 8], eax */
    951     eax = ebp + (-0x8); /* 0x36095952: lea eax, [ebp - 8] */
    952     PUSH32(esp, eax); /* 0x36095955: push eax */
    953     ecx = esi; /* 0x36095956: mov ecx, esi */
    954     RECOMP_ICALL(0x3614FC30u); /* 0x36095958: call 0x3614fc30 */ /* not lifted */
    955     RECOMP_FLAGS_IN();
    956     goto L_36095980; /* 0x3609595D: jmp 0x36095980 */
    957 L_3609595F:
    958     /* cmp eax, edi */ /* 0x3609595F: cmp eax, edi */
    959     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    960     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    961     _flag_k = FK_CMP;
    962     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095980; /* 0x36095961: je 0x36095980 */
    963 L_36095963:
    964     ecx = ebp + (-0x4); /* 0x36095963: lea ecx, [ebp - 4] */
    965     ebx = eax; /* 0x36095966: mov ebx, eax */
    966     RECOMP_ICALL(0x361458D0u); /* 0x36095968: call 0x361458d0 */ /* not lifted */
    967     RECOMP_FLAGS_IN();
    968     PUSH32(esp, ebx); /* 0x3609596D: push ebx */
    969     ecx = ebp + (-0x8); /* 0x3609596E: lea ecx, [ebp - 8] */
    970     PUSH32(esp, ecx); /* 0x36095971: push ecx */
    971     ecx = esi; /* 0x36095972: mov ecx, esi */
    972     RECOMP_ICALL(0x36069F20u); /* 0x36095974: call 0x36069f20 */ /* not lifted */
    973     RECOMP_FLAGS_IN();
    974     eax = MEM32(ebp + (-0x4)); /* 0x36095979: mov eax, dword ptr [ebp - 4] */
    975     /* cmp eax, edi */ /* 0x3609597C: cmp eax, edi */
    976     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    977     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    978     _flag_k = FK_CMP;
    979     RECOMP_BACKEDGE();
    980     if (CMP_NE(_flag_a, _flag_b)) goto L_36095963; /* 0x3609597E: jne 0x36095963 */
    981 L_36095980:
    982     edx = MEM32(esi + 0x4); /* 0x36095980: mov edx, dword ptr [esi + 4] */
    983     PUSH32(esp, edx); /* 0x36095983: push edx */
    984     RECOMP_ICALL(0x3615FCC4u); /* 0x36095984: call 0x3615fcc4 */ /* not lifted */
    985     RECOMP_FLAGS_IN();
    986     eax = MEM32(esi + 0x8); /* 0x36095989: mov eax, dword ptr [esi + 8] */
    987     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    988     edi = 0; /* 0x3609598C: xor edi, edi */
    989     _cf = 0;
    990     _flag_k = FK_TEST;
    991     PUSH32(esp, eax); /* 0x3609598E: push eax */
    992     MEM32(esi + 0x4) = edi; /* 0x3609598F: mov dword ptr [esi + 4], edi */
    993     MEM32(esi + 0x10) = edi; /* 0x36095992: mov dword ptr [esi + 0x10], edi */
    994     RECOMP_ICALL(0x3615FCC4u); /* 0x36095995: call 0x3615fcc4 */ /* not lifted */
    995     RECOMP_FLAGS_IN();
    996     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    997     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    998     esp = esp + 8; /* 0x3609599A: add esp, 8 */
    999     _flag_k = FK_ADD;
   1000     MEM32(esi + 0x8) = edi; /* 0x3609599D: mov dword ptr [esi + 8], edi */
   1001     edi = POP32_VAL(esp); /* 0x360959A0: pop edi */
   1002     esi = POP32_VAL(esp); /* 0x360959A1: pop esi */
   1003     ebx = POP32_VAL(esp); /* 0x360959A2: pop ebx */
   1004     esp = ebp; /* 0x360959A3: mov esp, ebp */
   1005     ebp = POP32_VAL(esp); /* 0x360959A5: pop ebp */
   1006     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360959A6: ret  */
   1007     RECOMP_REGS_OUT();
   1008 }
   1009 
   1010 void sub_36095980(void) {
   1011     int _fpu_cmp = 0;
   1012     uint32_t _cf = 0;
   1013     int _df = 1;
   1014     uint32_t _flag_k = FK_NONE;
   1015     uint32_t _flag_a = 0, _flag_b = 0;
   1016     uint32_t _itail_tgt = 0;
   1017     RECOMP_REGS_LOCALS
   1018     RECOMP_ENTER(0x36095980u);
   1019 
   1020 L_36095980:
   1021     edx = MEM32(esi + 0x4); /* 0x36095980: mov edx, dword ptr [esi + 4] */
   1022     PUSH32(esp, edx); /* 0x36095983: push edx */
   1023     RECOMP_ICALL(0x3615FCC4u); /* 0x36095984: call 0x3615fcc4 */ /* not lifted */
   1024     RECOMP_FLAGS_IN();
   1025     eax = MEM32(esi + 0x8); /* 0x36095989: mov eax, dword ptr [esi + 8] */
   1026     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1027     edi = 0; /* 0x3609598C: xor edi, edi */
   1028     _cf = 0;
   1029     _flag_k = FK_TEST;
   1030     PUSH32(esp, eax); /* 0x3609598E: push eax */
   1031     MEM32(esi + 0x4) = edi; /* 0x3609598F: mov dword ptr [esi + 4], edi */
   1032     MEM32(esi + 0x10) = edi; /* 0x36095992: mov dword ptr [esi + 0x10], edi */
   1033     RECOMP_ICALL(0x3615FCC4u); /* 0x36095995: call 0x3615fcc4 */ /* not lifted */
   1034     RECOMP_FLAGS_IN();
   1035     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1036     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1037     esp = esp + 8; /* 0x3609599A: add esp, 8 */
   1038     _flag_k = FK_ADD;
   1039     MEM32(esi + 0x8) = edi; /* 0x3609599D: mov dword ptr [esi + 8], edi */
   1040     edi = POP32_VAL(esp); /* 0x360959A0: pop edi */
   1041     esi = POP32_VAL(esp); /* 0x360959A1: pop esi */
   1042     ebx = POP32_VAL(esp); /* 0x360959A2: pop ebx */
   1043     esp = ebp; /* 0x360959A3: mov esp, ebp */
   1044     ebp = POP32_VAL(esp); /* 0x360959A5: pop ebp */
   1045     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360959A6: ret  */
   1046     RECOMP_REGS_OUT();
   1047 }
   1048 
   1049 void sub_360959B0(void) {
   1050     int _fpu_cmp = 0;
   1051     uint32_t _cf = 0;
   1052     int _df = 1;
   1053     uint32_t _flag_k = FK_NONE;
   1054     uint32_t _flag_a = 0, _flag_b = 0;
   1055     uint32_t _itail_tgt = 0;
   1056     RECOMP_REGS_LOCALS
   1057     RECOMP_ENTER(0x360959B0u);
   1058 
   1059 L_360959B0:
   1060     PUSH32(esp, ebp); /* 0x360959B0: push ebp */
   1061     ebp = esp; /* 0x360959B1: mov ebp, esp */
   1062     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1063     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1064     esp = esp - 8; /* 0x360959B3: sub esp, 8 */
   1065     _flag_k = FK_CMP;
   1066     ecx = MEM32(0x361C5EC4); /* 0x360959B6: mov ecx, dword ptr [0x361c5ec4] */
   1067     edx = MEM32(ecx + 0x4); /* 0x360959BC: mov edx, dword ptr [ecx + 4] */
   1068     eax = MEM32(edx); /* 0x360959BF: mov eax, dword ptr [edx] */
   1069     /* cmp eax, edx */ /* 0x360959C1: cmp eax, edx */
   1070     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1072     _flag_k = FK_CMP;
   1073     if (CMP_EQ(_flag_a, _flag_b)) goto L_360959E2; /* 0x360959C3: je 0x360959e2 */
   1074 L_360959C5:
   1075     eax = MEM32(eax + 0x14); /* 0x360959C5: mov eax, dword ptr [eax + 0x14] */
   1076     /* test eax, eax */ /* 0x360959C8: test eax, eax */
   1077     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1078     _cf = 0;
   1079     _flag_k = FK_TEST;
   1080     if (TEST_Z(_flag_a, _flag_b)) goto L_360959D9; /* 0x360959CA: je 0x360959d9 */
   1081 L_360959CC:
   1082     ecx = eax; /* 0x360959CC: mov ecx, eax */
   1083     RECOMP_ICALL(0x36095680u); /* 0x360959CE: call 0x36095680 */ /* not lifted */
   1084     RECOMP_FLAGS_IN();
   1085     ecx = MEM32(0x361C5EC4); /* 0x360959D3: mov ecx, dword ptr [0x361c5ec4] */
   1086 L_360959D9:
   1087     edx = MEM32(ecx + 0x4); /* 0x360959D9: mov edx, dword ptr [ecx + 4] */
   1088     eax = MEM32(edx); /* 0x360959DC: mov eax, dword ptr [edx] */
   1089     /* cmp eax, edx */ /* 0x360959DE: cmp eax, edx */
   1090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1091     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1092     _flag_k = FK_CMP;
   1093     RECOMP_BACKEDGE();
   1094     if (CMP_NE(_flag_a, _flag_b)) goto L_360959C5; /* 0x360959E0: jne 0x360959c5 */
   1095 L_360959E2:
   1096     eax = MEM32(ecx + 0x4); /* 0x360959E2: mov eax, dword ptr [ecx + 4] */
   1097     edx = MEM32(eax); /* 0x360959E5: mov edx, dword ptr [eax] */
   1098     PUSH32(esp, ebx); /* 0x360959E7: push ebx */
   1099     PUSH32(esp, esi); /* 0x360959E8: push esi */
   1100     PUSH32(esp, edi); /* 0x360959E9: push edi */
   1101     PUSH32(esp, eax); /* 0x360959EA: push eax */
   1102     PUSH32(esp, edx); /* 0x360959EB: push edx */
   1103     eax = ebp + (-0x4); /* 0x360959EC: lea eax, [ebp - 4] */
   1104     PUSH32(esp, eax); /* 0x360959EF: push eax */
   1105     RECOMP_ICALL(0x360962C0u); /* 0x360959F0: call 0x360962c0 */ /* not lifted */
   1106     RECOMP_FLAGS_IN();
   1107     eax = MEM32(0x361C5EC8); /* 0x360959F5: mov eax, dword ptr [0x361c5ec8] */
   1108     ecx = MEM32(eax + 0x4); /* 0x360959FA: mov ecx, dword ptr [eax + 4] */
   1109     esi = MEM32(ecx); /* 0x360959FD: mov esi, dword ptr [ecx] */
   1110     /* cmp esi, ecx */ /* 0x360959FF: cmp esi, ecx */
   1111     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   1112     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1113     _flag_k = FK_CMP;
   1114     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095A4A; /* 0x36095A01: je 0x36095a4a */
   1115 L_36095A03:
   1116     edi = MEM32(0x3616F1A4); /* 0x36095A03: mov edi, dword ptr [0x3616f1a4] */
   1117 L_36095A09:
   1118     ecx = MEM32(esi + 0x10); /* 0x36095A09: mov ecx, dword ptr [esi + 0x10] */
   1119     PUSH32(esp, ecx); /* 0x36095A0C: push ecx */
   1120     RECOMP_ICALL(edi); /* 0x36095A0D: call edi */
   1121     RECOMP_FLAGS_IN();
   1122     eax = MEM32(esi + 0x8); /* 0x36095A0F: mov eax, dword ptr [esi + 8] */
   1123     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x36095A12: mov cl, byte ptr [eax + 0x15] */
   1124     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1125     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1126     esp = esp + 4; /* 0x36095A15: add esp, 4 */
   1127     _flag_k = FK_ADD;
   1128     /* test LO8(ecx), LO8(ecx) */ /* 0x36095A18: test cl, cl */
   1129     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1130     _cf = 0;
   1131     _flag_k = FK_NARROW(FK_TEST, 24);
   1132     if (TEST_NZ(_flag_a, _flag_b)) goto L_36095A27; /* 0x36095A1A: jne 0x36095a27 */
   1133 L_36095A1C:
   1134     PUSH32(esp, eax); /* 0x36095A1C: push eax */
   1135     RECOMP_ICALL(0x3614FC90u); /* 0x36095A1D: call 0x3614fc90 */ /* not lifted */
   1136     RECOMP_FLAGS_IN();
   1137     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1138     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1139     esp = esp + 4; /* 0x36095A22: add esp, 4 */
   1140     _flag_k = FK_ADD;
   1141     goto L_36095A3E; /* 0x36095A25: jmp 0x36095a3e */
   1142 L_36095A27:
   1143     eax = MEM32(esi + 0x4); /* 0x36095A27: mov eax, dword ptr [esi + 4] */
   1144     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36095A2A: cmp esi, dword ptr [eax + 8] */
   1145     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1147     _flag_k = FK_CMP;
   1148     if (CMP_NE(_flag_a, _flag_b)) goto L_36095A39; /* 0x36095A2D: jne 0x36095a39 */
   1149 L_36095A2F:
   1150     esi = eax; /* 0x36095A2F: mov esi, eax */
   1151     eax = MEM32(eax + 0x4); /* 0x36095A31: mov eax, dword ptr [eax + 4] */
   1152     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36095A34: cmp esi, dword ptr [eax + 8] */
   1153     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1155     _flag_k = FK_CMP;
   1156     RECOMP_BACKEDGE();
   1157     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095A2F; /* 0x36095A37: je 0x36095a2f */
   1158 L_36095A39:
   1159     /* cmp MEM32(esi + 0x8), eax */ /* 0x36095A39: cmp dword ptr [esi + 8], eax */
   1160     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   1161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1162     _flag_k = FK_CMP;
   1163     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095A40; /* 0x36095A3C: je 0x36095a40 */
   1164 L_36095A3E:
   1165     esi = eax; /* 0x36095A3E: mov esi, eax */
   1166 L_36095A40:
   1167     eax = MEM32(0x361C5EC8); /* 0x36095A40: mov eax, dword ptr [0x361c5ec8] */
   1168     /* cmp esi, MEM32(eax + 0x4) */ /* 0x36095A45: cmp esi, dword ptr [eax + 4] */
   1169     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   1170     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1171     _flag_k = FK_CMP;
   1172     RECOMP_BACKEDGE();
   1173     if (CMP_NE(_flag_a, _flag_b)) goto L_36095A09; /* 0x36095A48: jne 0x36095a09 */
   1174 L_36095A4A:
   1175     esi = eax; /* 0x36095A4A: mov esi, eax */
   1176     edi = MEM32(esi + 0x4); /* 0x36095A4C: mov edi, dword ptr [esi + 4] */
   1177     ecx = MEM32(esi + 0x10); /* 0x36095A4F: mov ecx, dword ptr [esi + 0x10] */
   1178     /* test ecx, ecx */ /* 0x36095A52: test ecx, ecx */
   1179     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1180     _cf = 0;
   1181     _flag_k = FK_TEST;
   1182     eax = MEM32(edi); /* 0x36095A54: mov eax, dword ptr [edi] */
   1183     MEM32(ebp + (-0x4)) = eax; /* 0x36095A56: mov dword ptr [ebp - 4], eax */
   1184     if (TEST_Z(_flag_a, _flag_b)) goto L_36095AB0; /* 0x36095A59: je 0x36095ab0 */
   1185 L_36095A5B:
   1186     ecx = eax; /* 0x36095A5B: mov ecx, eax */
   1187     /* cmp eax, ecx */ /* 0x36095A5D: cmp eax, ecx */
   1188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1190     _flag_k = FK_CMP;
   1191     if (CMP_NE(_flag_a, _flag_b)) goto L_36095AB0; /* 0x36095A5F: jne 0x36095ab0 */
   1192 L_36095A61:
   1193     /* cmp edi, edi */ /* 0x36095A61: cmp edi, edi */
   1194     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1196     _flag_k = FK_CMP;
   1197     if (CMP_NE(_flag_a, _flag_b)) goto L_36095AB0; /* 0x36095A63: jne 0x36095ab0 */
   1198 L_36095A65:
   1199     ebx = MEM32(edi + 0x4); /* 0x36095A65: mov ebx, dword ptr [edi + 4] */
   1200     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36095A68: cmp ebx, dword ptr [esi + 8] */
   1201     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1203     _flag_k = FK_CMP;
   1204     edi = ebx; /* 0x36095A6B: mov edi, ebx */
   1205     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095A8E; /* 0x36095A6D: je 0x36095a8e */
   1206 L_36095A6F:
   1207     edx = MEM32(edi + 0x8); /* 0x36095A6F: mov edx, dword ptr [edi + 8] */
   1208     PUSH32(esp, edx); /* 0x36095A72: push edx */
   1209     ecx = esi; /* 0x36095A73: mov ecx, esi */
   1210     RECOMP_ICALL(0x360965A0u); /* 0x36095A75: call 0x360965a0 */ /* not lifted */
   1211     RECOMP_FLAGS_IN();
   1212     edi = MEM32(edi); /* 0x36095A7A: mov edi, dword ptr [edi] */
   1213     PUSH32(esp, ebx); /* 0x36095A7C: push ebx */
   1214     RECOMP_ICALL(0x3615FCC4u); /* 0x36095A7D: call 0x3615fcc4 */ /* not lifted */
   1215     RECOMP_FLAGS_IN();
   1216     eax = MEM32(esi + 0x8); /* 0x36095A82: mov eax, dword ptr [esi + 8] */
   1217     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1218     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1219     esp = esp + 4; /* 0x36095A85: add esp, 4 */
   1220     _flag_k = FK_ADD;
   1221     /* cmp edi, eax */ /* 0x36095A88: cmp edi, eax */
   1222     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1223     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1224     _flag_k = FK_CMP;
   1225     ebx = edi; /* 0x36095A8A: mov ebx, edi */
   1226     RECOMP_BACKEDGE();
   1227     if (CMP_NE(_flag_a, _flag_b)) goto L_36095A6F; /* 0x36095A8C: jne 0x36095a6f */
   1228 L_36095A8E:
   1229     eax = MEM32(esi + 0x4); /* 0x36095A8E: mov eax, dword ptr [esi + 4] */
   1230     ecx = MEM32(esi + 0x8); /* 0x36095A91: mov ecx, dword ptr [esi + 8] */
   1231     MEM32(eax + 0x4) = ecx; /* 0x36095A94: mov dword ptr [eax + 4], ecx */
   1232     eax = MEM32(esi + 0x4); /* 0x36095A97: mov eax, dword ptr [esi + 4] */
   1233     MEM32(esi + 0x10) = 0; /* 0x36095A9A: mov dword ptr [esi + 0x10], 0 */
   1234     MEM32(eax) = eax; /* 0x36095AA1: mov dword ptr [eax], eax */
   1235     esi = MEM32(esi + 0x4); /* 0x36095AA3: mov esi, dword ptr [esi + 4] */
   1236     edi = POP32_VAL(esp); /* 0x36095AA6: pop edi */
   1237     MEM32(esi + 0x8) = esi; /* 0x36095AA7: mov dword ptr [esi + 8], esi */
   1238     esi = POP32_VAL(esp); /* 0x36095AAA: pop esi */
   1239     ebx = POP32_VAL(esp); /* 0x36095AAB: pop ebx */
   1240     esp = ebp; /* 0x36095AAC: mov esp, ebp */
   1241     ebp = POP32_VAL(esp); /* 0x36095AAE: pop ebp */
   1242     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36095AAF: ret  */
   1243 L_36095AB0:
   1244     /* cmp eax, edi */ /* 0x36095AB0: cmp eax, edi */
   1245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1247     _flag_k = FK_CMP;
   1248     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095AD1; /* 0x36095AB2: je 0x36095ad1 */
   1249 L_36095AB4:
   1250     ecx = ebp + (-0x4); /* 0x36095AB4: lea ecx, [ebp - 4] */
   1251     ebx = eax; /* 0x36095AB7: mov ebx, eax */
   1252     RECOMP_ICALL(0x36064140u); /* 0x36095AB9: call 0x36064140 */ /* not lifted */
   1253     RECOMP_FLAGS_IN();
   1254     PUSH32(esp, ebx); /* 0x36095ABE: push ebx */
   1255     edx = ebp + (-0x8); /* 0x36095ABF: lea edx, [ebp - 8] */
   1256     PUSH32(esp, edx); /* 0x36095AC2: push edx */
   1257     ecx = esi; /* 0x36095AC3: mov ecx, esi */
   1258     RECOMP_ICALL(0x360588E0u); /* 0x36095AC5: call 0x360588e0 */ /* not lifted */
   1259     RECOMP_FLAGS_IN();
   1260     eax = MEM32(ebp + (-0x4)); /* 0x36095ACA: mov eax, dword ptr [ebp - 4] */
   1261     /* cmp eax, edi */ /* 0x36095ACD: cmp eax, edi */
   1262     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1263     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1264     _flag_k = FK_CMP;
   1265     RECOMP_BACKEDGE();
   1266     if (CMP_NE(_flag_a, _flag_b)) goto L_36095AB4; /* 0x36095ACF: jne 0x36095ab4 */
   1267 L_36095AD1:
   1268     edi = POP32_VAL(esp); /* 0x36095AD1: pop edi */
   1269     esi = POP32_VAL(esp); /* 0x36095AD2: pop esi */
   1270     ebx = POP32_VAL(esp); /* 0x36095AD3: pop ebx */
   1271     esp = ebp; /* 0x36095AD4: mov esp, ebp */
   1272     ebp = POP32_VAL(esp); /* 0x36095AD6: pop ebp */
   1273     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36095AD7: ret  */
   1274     RECOMP_REGS_OUT();
   1275 }
   1276 
   1277 void sub_36095AE0(void) {
   1278     int _fpu_cmp = 0;
   1279     uint32_t _cf = 0;
   1280     int _df = 1;
   1281     uint32_t _flag_k = FK_NONE;
   1282     uint32_t _flag_a = 0, _flag_b = 0;
   1283     uint32_t _itail_tgt = 0;
   1284     RECOMP_REGS_LOCALS
   1285     RECOMP_ENTER(0x36095AE0u);
   1286 
   1287 L_36095AE0:
   1288     PUSH32(esp, ebp); /* 0x36095AE0: push ebp */
   1289     ebp = esp; /* 0x36095AE1: mov ebp, esp */
   1290     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1292     esp = esp - 0x18u; /* 0x36095AE3: sub esp, 0x18 */
   1293     _flag_k = FK_CMP;
   1294     PUSH32(esp, ebx); /* 0x36095AE6: push ebx */
   1295     PUSH32(esp, esi); /* 0x36095AE7: push esi */
   1296     PUSH32(esp, edi); /* 0x36095AE8: push edi */
   1297     edi = ecx; /* 0x36095AE9: mov edi, ecx */
   1298     esi = MEM32(edi + 0x10); /* 0x36095AEB: mov esi, dword ptr [edi + 0x10] */
   1299     ebx = MEM32(esi + 0x4); /* 0x36095AEE: mov ebx, dword ptr [esi + 4] */
   1300     eax = ebp + 0x8; /* 0x36095AF1: lea eax, [ebp + 8] */
   1301     PUSH32(esp, eax); /* 0x36095AF4: push eax */
   1302     ecx = esi; /* 0x36095AF5: mov ecx, esi */
   1303     RECOMP_ICALL(0x36076670u); /* 0x36095AF7: call 0x36076670 */ /* not lifted */
   1304     RECOMP_FLAGS_IN();
   1305     esi = MEM32(esi + 0x4); /* 0x36095AFC: mov esi, dword ptr [esi + 4] */
   1306     /* cmp eax, esi */ /* 0x36095AFF: cmp eax, esi */
   1307     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1309     _flag_k = FK_CMP;
   1310     edx = MEM32(ebp + 0x8); /* 0x36095B01: mov edx, dword ptr [ebp + 8] */
   1311     MEM32(ebp + (-0x4)) = eax; /* 0x36095B04: mov dword ptr [ebp - 4], eax */
   1312     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095B13; /* 0x36095B07: je 0x36095b13 */
   1313 L_36095B09:
   1314     /* cmp edx, MEM32(eax + 0xC) */ /* 0x36095B09: cmp edx, dword ptr [eax + 0xc] */
   1315     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   1316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1317     _flag_k = FK_CMP;
   1318     if (CMP_L(_flag_a, _flag_b)) goto L_36095B13; /* 0x36095B0C: jl 0x36095b13 */
   1319 L_36095B0E:
   1320     eax = ebp + (-0x4); /* 0x36095B0E: lea eax, [ebp - 4] */
   1321     goto L_36095B19; /* 0x36095B11: jmp 0x36095b19 */
   1322 L_36095B13:
   1323     MEM32(ebp + (-0xC)) = esi; /* 0x36095B13: mov dword ptr [ebp - 0xc], esi */
   1324     eax = ebp + (-0xC); /* 0x36095B16: lea eax, [ebp - 0xc] */
   1325 L_36095B19:
   1326     eax = MEM32(eax); /* 0x36095B19: mov eax, dword ptr [eax] */
   1327     /* cmp eax, ebx */ /* 0x36095B1B: cmp eax, ebx */
   1328     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1330     _flag_k = FK_CMP;
   1331     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095B5A; /* 0x36095B1D: je 0x36095b5a */
   1332 L_36095B1F:
   1333     ecx = MEM32(edi + 0x10); /* 0x36095B1F: mov ecx, dword ptr [edi + 0x10] */
   1334     MEM32(ebp + (-0x10)) = edx; /* 0x36095B22: mov dword ptr [ebp - 0x10], edx */
   1335     edx = ebp + (-0x10); /* 0x36095B25: lea edx, [ebp - 0x10] */
   1336     PUSH32(esp, edx); /* 0x36095B28: push edx */
   1337     eax = ebp + (-0x8); /* 0x36095B29: lea eax, [ebp - 8] */
   1338     PUSH32(esp, eax); /* 0x36095B2C: push eax */
   1339     MEM32(ebp + (-0xC)) = 0; /* 0x36095B2D: mov dword ptr [ebp - 0xc], 0 */
   1340     RECOMP_ICALL(0x3603E790u); /* 0x36095B34: call 0x3603e790 */ /* not lifted */
   1341     RECOMP_FLAGS_IN();
   1342     ecx = eax; /* 0x36095B39: mov ecx, eax */
   1343     eax = MEM32(ecx); /* 0x36095B3B: mov eax, dword ptr [ecx] */
   1344     esi = MEM32(eax + 0x10); /* 0x36095B3D: mov esi, dword ptr [eax + 0x10] */
   1345     /* test esi, esi */ /* 0x36095B40: test esi, esi */
   1346     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1347     _cf = 0;
   1348     _flag_k = FK_TEST;
   1349     edx = MEM32(ecx + 0x4); /* 0x36095B42: mov edx, dword ptr [ecx + 4] */
   1350     MEM32(ebp + (-0x14)) = edx; /* 0x36095B45: mov dword ptr [ebp - 0x14], edx */
   1351     if (TEST_Z(_flag_a, _flag_b)) goto L_36095B5A; /* 0x36095B48: je 0x36095b5a */
   1352 L_36095B4A:
   1353     ecx = esi; /* 0x36095B4A: mov ecx, esi */
   1354     RECOMP_ICALL(0x36095090u); /* 0x36095B4C: call 0x36095090 */ /* not lifted */
   1355     RECOMP_FLAGS_IN();
   1356     PUSH32(esp, esi); /* 0x36095B51: push esi */
   1357     RECOMP_ICALL(0x3615FCC4u); /* 0x36095B52: call 0x3615fcc4 */ /* not lifted */
   1358     RECOMP_FLAGS_IN();
   1359     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1360     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1361     esp = esp + 4; /* 0x36095B57: add esp, 4 */
   1362     _flag_k = FK_ADD;
   1363 L_36095B5A:
   1364     eax = MEM32(ebp + 0x8); /* 0x36095B5A: mov eax, dword ptr [ebp + 8] */
   1365     ecx = MEM32(edi + 0x10); /* 0x36095B5D: mov ecx, dword ptr [edi + 0x10] */
   1366     edx = ebp + (-0x10); /* 0x36095B60: lea edx, [ebp - 0x10] */
   1367     MEM32(ebp + (-0x10)) = eax; /* 0x36095B63: mov dword ptr [ebp - 0x10], eax */
   1368     PUSH32(esp, edx); /* 0x36095B66: push edx */
   1369     eax = ebp + (-0x18); /* 0x36095B67: lea eax, [ebp - 0x18] */
   1370     PUSH32(esp, eax); /* 0x36095B6A: push eax */
   1371     MEM32(ebp + (-0xC)) = 0; /* 0x36095B6B: mov dword ptr [ebp - 0xc], 0 */
   1372     RECOMP_ICALL(0x3603E790u); /* 0x36095B72: call 0x3603e790 */ /* not lifted */
   1373     RECOMP_FLAGS_IN();
   1374     ecx = eax; /* 0x36095B77: mov ecx, eax */
   1375     eax = MEM32(ecx); /* 0x36095B79: mov eax, dword ptr [ecx] */
   1376     edx = MEM32(ecx + 0x4); /* 0x36095B7B: mov edx, dword ptr [ecx + 4] */
   1377     ecx = MEM32(ebp + 0xC); /* 0x36095B7E: mov ecx, dword ptr [ebp + 0xc] */
   1378     edi = POP32_VAL(esp); /* 0x36095B81: pop edi */
   1379     esi = POP32_VAL(esp); /* 0x36095B82: pop esi */
   1380     MEM32(ebp + (-0x4)) = edx; /* 0x36095B83: mov dword ptr [ebp - 4], edx */
   1381     MEM32(eax + 0x10) = ecx; /* 0x36095B86: mov dword ptr [eax + 0x10], ecx */
   1382     ebx = POP32_VAL(esp); /* 0x36095B89: pop ebx */
   1383     esp = ebp; /* 0x36095B8A: mov esp, ebp */
   1384     ebp = POP32_VAL(esp); /* 0x36095B8C: pop ebp */
   1385     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36095B8D: ret 8 */
   1386     RECOMP_REGS_OUT();
   1387 }
   1388 
   1389 void sub_36095B90(void) {
   1390     int _fpu_cmp = 0;
   1391     uint32_t _cf = 0;
   1392     int _df = 1;
   1393     uint32_t _flag_k = FK_NONE;
   1394     uint32_t _flag_a = 0, _flag_b = 0;
   1395     uint32_t _itail_tgt = 0;
   1396     RECOMP_REGS_LOCALS
   1397     RECOMP_ENTER(0x36095B90u);
   1398 
   1399 L_36095B90:
   1400     PUSH32(esp, ebp); /* 0x36095B90: push ebp */
   1401     ebp = esp; /* 0x36095B91: mov ebp, esp */
   1402     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1404     esp = esp - 8; /* 0x36095B93: sub esp, 8 */
   1405     _flag_k = FK_CMP;
   1406     PUSH32(esp, esi); /* 0x36095B96: push esi */
   1407     PUSH32(esp, edi); /* 0x36095B97: push edi */
   1408     edi = ecx; /* 0x36095B98: mov edi, ecx */
   1409     esi = MEM32(edi + 0x10); /* 0x36095B9A: mov esi, dword ptr [edi + 0x10] */
   1410     eax = ebp + 0x8; /* 0x36095B9D: lea eax, [ebp + 8] */
   1411     PUSH32(esp, eax); /* 0x36095BA0: push eax */
   1412     ecx = esi; /* 0x36095BA1: mov ecx, esi */
   1413     RECOMP_ICALL(0x36076670u); /* 0x36095BA3: call 0x36076670 */ /* not lifted */
   1414     RECOMP_FLAGS_IN();
   1415     esi = MEM32(esi + 0x4); /* 0x36095BA8: mov esi, dword ptr [esi + 4] */
   1416     /* cmp eax, esi */ /* 0x36095BAB: cmp eax, esi */
   1417     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1419     _flag_k = FK_CMP;
   1420     MEM32(ebp + (-0x4)) = eax; /* 0x36095BAD: mov dword ptr [ebp - 4], eax */
   1421     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095BBF; /* 0x36095BB0: je 0x36095bbf */
   1422 L_36095BB2:
   1423     ecx = MEM32(ebp + 0x8); /* 0x36095BB2: mov ecx, dword ptr [ebp + 8] */
   1424     /* cmp ecx, MEM32(eax + 0xC) */ /* 0x36095BB5: cmp ecx, dword ptr [eax + 0xc] */
   1425     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   1426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1427     _flag_k = FK_CMP;
   1428     if (CMP_L(_flag_a, _flag_b)) goto L_36095BBF; /* 0x36095BB8: jl 0x36095bbf */
   1429 L_36095BBA:
   1430     eax = ebp + (-0x4); /* 0x36095BBA: lea eax, [ebp - 4] */
   1431     goto L_36095BC5; /* 0x36095BBD: jmp 0x36095bc5 */
   1432 L_36095BBF:
   1433     MEM32(ebp + (-0x8)) = esi; /* 0x36095BBF: mov dword ptr [ebp - 8], esi */
   1434     eax = ebp + (-0x8); /* 0x36095BC2: lea eax, [ebp - 8] */
   1435 L_36095BC5:
   1436     edx = MEM32(edi + 0x10); /* 0x36095BC5: mov edx, dword ptr [edi + 0x10] */
   1437     eax = MEM32(eax); /* 0x36095BC8: mov eax, dword ptr [eax] */
   1438     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36095BCA: cmp eax, dword ptr [edx + 4] */
   1439     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1441     _flag_k = FK_CMP;
   1442     edi = POP32_VAL(esp); /* 0x36095BCD: pop edi */
   1443     esi = POP32_VAL(esp); /* 0x36095BCE: pop esi */
   1444     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095BDA; /* 0x36095BCF: je 0x36095bda */
   1445 L_36095BD1:
   1446     eax = MEM32(eax + 0x10); /* 0x36095BD1: mov eax, dword ptr [eax + 0x10] */
   1447     esp = ebp; /* 0x36095BD4: mov esp, ebp */
   1448     ebp = POP32_VAL(esp); /* 0x36095BD6: pop ebp */
   1449     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36095BD7: ret 4 */
   1450 L_36095BDA:
   1451     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1452     eax = 0; /* 0x36095BDA: xor eax, eax */
   1453     _cf = 0;
   1454     _flag_k = FK_TEST;
   1455     esp = ebp; /* 0x36095BDC: mov esp, ebp */
   1456     ebp = POP32_VAL(esp); /* 0x36095BDE: pop ebp */
   1457     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36095BDF: ret 4 */
   1458     RECOMP_REGS_OUT();
   1459 }
   1460 
   1461 void sub_36095BF0(void) {
   1462     int _fpu_cmp = 0;
   1463     uint32_t _cf = 0;
   1464     int _df = 1;
   1465     uint32_t _flag_k = FK_NONE;
   1466     uint32_t _flag_a = 0, _flag_b = 0;
   1467     uint32_t _itail_tgt = 0;
   1468     RECOMP_REGS_LOCALS
   1469     RECOMP_ENTER(0x36095BF0u);
   1470 
   1471 L_36095BF0:
   1472     PUSH32(esp, ebp); /* 0x36095BF0: push ebp */
   1473     ebp = esp; /* 0x36095BF1: mov ebp, esp */
   1474     PUSH32(esp, 0xFFFFFFFFu); /* 0x36095BF3: push -1 */
   1475     PUSH32(esp, 0x36166481u); /* 0x36095BF5: push 0x36166481 */
   1476     eax = MEM32(FS_BASE + (0)); /* 0x36095BFA: mov eax, dword ptr fs:[0] */
   1477     PUSH32(esp, eax); /* 0x36095C00: push eax */
   1478     MEM32(FS_BASE + (0)) = esp; /* 0x36095C01: mov dword ptr fs:[0], esp */
   1479     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
   1480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1481     esp = esp - 0x34u; /* 0x36095C08: sub esp, 0x34 */
   1482     _flag_k = FK_CMP;
   1483     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36095C0B: mov al, byte ptr [ebp + 0xb] */
   1484     PUSH32(esp, ebx); /* 0x36095C0E: push ebx */
   1485     PUSH32(esp, esi); /* 0x36095C0F: push esi */
   1486     MEM32(ebp + (-0x10)) = ecx; /* 0x36095C10: mov dword ptr [ebp - 0x10], ecx */
   1487     PUSH32(esp, edi); /* 0x36095C13: push edi */
   1488     edi = MEM32(ebp + 0x8); /* 0x36095C14: mov edi, dword ptr [ebp + 8] */
   1489     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   1490     ecx = ecx | 0xFFFFFFFFu; /* 0x36095C17: or ecx, 0xffffffff */
   1491     _cf = 0;
   1492     _flag_k = FK_TEST;
   1493     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1494     esi = 0; /* 0x36095C1A: xor esi, esi */
   1495     _cf = 0;
   1496     _flag_k = FK_TEST;
   1497     MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(eax)); /* 0x36095C1C: mov byte ptr [ebp - 0x2c], al */
   1498     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1499     eax = 0; /* 0x36095C1F: xor eax, eax */
   1500     _cf = 0;
   1501     _flag_k = FK_TEST;
   1502     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; } /* 0x36095C21: repne scasb al, byte ptr es:[edi] */
   1503     ecx = ~ecx; /* 0x36095C23: not ecx */
   1504     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1505     ecx = ecx - 1; /* 0x36095C25: dec ecx */
   1506     _flag_k = FK_DEC;
   1507     ebx = ecx; /* 0x36095C26: mov ebx, ecx */
   1508     PUSH32(esp, 1); /* 0x36095C28: push 1 */
   1509     PUSH32(esp, ebx); /* 0x36095C2A: push ebx */
   1510     ecx = ebp + (-0x2C); /* 0x36095C2B: lea ecx, [ebp - 0x2c] */
   1511     MEM32(ebp + (-0x28)) = esi; /* 0x36095C2E: mov dword ptr [ebp - 0x28], esi */
   1512     MEM32(ebp + (-0x24)) = esi; /* 0x36095C31: mov dword ptr [ebp - 0x24], esi */
   1513     MEM32(ebp + (-0x20)) = esi; /* 0x36095C34: mov dword ptr [ebp - 0x20], esi */
   1514     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36095C37: call dword ptr [0x3616f00c] */
   1515     RECOMP_FLAGS_IN();
   1516     /* test LO8(eax), LO8(eax) */ /* 0x36095C3D: test al, al */
   1517     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1518     _cf = 0;
   1519     _flag_k = FK_NARROW(FK_TEST, 24);
   1520     if (TEST_Z(_flag_a, _flag_b)) goto L_36095C63; /* 0x36095C3F: je 0x36095c63 */
   1521 L_36095C41:
   1522     edi = MEM32(ebp + (-0x28)); /* 0x36095C41: mov edi, dword ptr [ebp - 0x28] */
   1523     esi = MEM32(ebp + 0x8); /* 0x36095C44: mov esi, dword ptr [ebp + 8] */
   1524     ecx = ebx; /* 0x36095C47: mov ecx, ebx */
   1525     edx = ecx; /* 0x36095C49: mov edx, ecx */
   1526     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36095C4B: shr ecx, 2 */
   1527     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1528     ecx = ecx >> 2u; /* 0x36095C4B: shr ecx, 2 */
   1529     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36095C4E: 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; }
   1530     ecx = edx; /* 0x36095C50: mov ecx, edx */
   1531     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   1532     ecx = ecx & 3; /* 0x36095C52: and ecx, 3 */
   1533     _cf = 0;
   1534     _flag_k = FK_TEST;
   1535     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36095C55: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1536     eax = MEM32(ebp + (-0x28)); /* 0x36095C57: mov eax, dword ptr [ebp - 0x28] */
   1537     MEM32(ebp + (-0x24)) = ebx; /* 0x36095C5A: mov dword ptr [ebp - 0x24], ebx */
   1538     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36095C5D: mov byte ptr [eax + ebx], 0 */
   1539     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1540     esi = 0; /* 0x36095C61: xor esi, esi */
   1541     _cf = 0;
   1542     _flag_k = FK_TEST;
   1543 L_36095C63:
   1544     ecx = MEM32(ebp + (-0x10)); /* 0x36095C63: mov ecx, dword ptr [ebp - 0x10] */
   1545     edi = MEM32(ecx + 0x14); /* 0x36095C66: mov edi, dword ptr [ecx + 0x14] */
   1546     edx = ebp + (-0x2C); /* 0x36095C69: lea edx, [ebp - 0x2c] */
   1547     PUSH32(esp, edx); /* 0x36095C6C: push edx */
   1548     ecx = ebp + (-0x40); /* 0x36095C6D: lea ecx, [ebp - 0x40] */
   1549     MEM32(ebp + (-0x4)) = esi; /* 0x36095C70: mov dword ptr [ebp - 4], esi */
   1550     RECOMP_ICALL(MEM32(0x3616F124)); /* 0x36095C73: call dword ptr [0x3616f124] */
   1551     RECOMP_FLAGS_IN();
   1552     MEM32(ebp + (-0x30)) = esi; /* 0x36095C79: mov dword ptr [ebp - 0x30], esi */
   1553     eax = ebp + (-0x40); /* 0x36095C7C: lea eax, [ebp - 0x40] */
   1554     PUSH32(esp, eax); /* 0x36095C7F: push eax */
   1555     ecx = ebp + (-0x1C); /* 0x36095C80: lea ecx, [ebp - 0x1c] */
   1556     PUSH32(esp, ecx); /* 0x36095C83: push ecx */
   1557     ecx = edi; /* 0x36095C84: mov ecx, edi */
   1558     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36095C86: mov byte ptr [ebp - 4], 1 */
   1559     RECOMP_ICALL(0x36096620u); /* 0x36095C8A: call 0x36096620 */ /* not lifted */
   1560     RECOMP_FLAGS_IN();
   1561     edi = MEM32(eax); /* 0x36095C8F: mov edi, dword ptr [eax] */
   1562     edx = MEM32(eax + 0x4); /* 0x36095C91: mov edx, dword ptr [eax + 4] */
   1563     PUSH32(esp, 1); /* 0x36095C94: push 1 */
   1564     ecx = ebp + (-0x40); /* 0x36095C96: lea ecx, [ebp - 0x40] */
   1565     MEM32(ebp + (-0x10)) = edx; /* 0x36095C99: mov dword ptr [ebp - 0x10], edx */
   1566     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36095C9C: mov byte ptr [ebp - 4], 0 */
   1567     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36095CA0: call dword ptr [0x3616f100] */
   1568     RECOMP_FLAGS_IN();
   1569     eax = MEM32(ebp + 0xC); /* 0x36095CA6: mov eax, dword ptr [ebp + 0xc] */
   1570     MEM32(edi + 0x1C) = eax; /* 0x36095CA9: mov dword ptr [edi + 0x1c], eax */
   1571     eax = MEM32(ebp + (-0x28)); /* 0x36095CAC: mov eax, dword ptr [ebp - 0x28] */
   1572     edi = POP32_VAL(esp); /* 0x36095CAF: pop edi */
   1573     /* cmp eax, esi */ /* 0x36095CB0: cmp eax, esi */
   1574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1575     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1576     _flag_k = FK_CMP;
   1577     esi = POP32_VAL(esp); /* 0x36095CB2: pop esi */
   1578     ebx = POP32_VAL(esp); /* 0x36095CB3: pop ebx */
   1579     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095CE0; /* 0x36095CB4: je 0x36095ce0 */
   1580 L_36095CB6:
   1581     ecx = eax + (-0x1); /* 0x36095CB6: lea ecx, [eax - 1] */
   1582     SET_LO8(eax, MEM8(ecx)); /* 0x36095CB9: mov al, byte ptr [ecx] */
   1583     /* test LO8(eax), LO8(eax) */ /* 0x36095CBB: test al, al */
   1584     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1585     _cf = 0;
   1586     _flag_k = FK_NARROW(FK_TEST, 24);
   1587     if (TEST_Z(_flag_a, _flag_b)) goto L_36095CD7; /* 0x36095CBD: je 0x36095cd7 */
   1588 L_36095CBF:
   1589     /* cmp LO8(eax), 0xFFu */ /* 0x36095CBF: cmp al, 0xff */
   1590     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   1591     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1592     _flag_k = FK_NARROW(FK_CMP, 24);
   1593     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095CD7; /* 0x36095CC1: je 0x36095cd7 */
   1594 L_36095CC3:
   1595     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1596     SET_LO8(eax, LO8(eax) - 1); /* 0x36095CC3: dec al */
   1597     _flag_k = FK_NARROW(FK_DEC, 24);
   1598     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36095CC5: mov byte ptr [ecx], al */
   1599     ecx = MEM32(ebp + (-0xC)); /* 0x36095CC7: mov ecx, dword ptr [ebp - 0xc] */
   1600     MEM32(FS_BASE + (0)) = ecx; /* 0x36095CCA: mov dword ptr fs:[0], ecx */
   1601     esp = ebp; /* 0x36095CD1: mov esp, ebp */
   1602     ebp = POP32_VAL(esp); /* 0x36095CD3: pop ebp */
   1603     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36095CD4: ret 8 */
   1604 L_36095CD7:
   1605     PUSH32(esp, ecx); /* 0x36095CD7: push ecx */
   1606     RECOMP_ICALL(0x3615FCC4u); /* 0x36095CD8: call 0x3615fcc4 */ /* not lifted */
   1607     RECOMP_FLAGS_IN();
   1608     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1609     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1610     esp = esp + 4; /* 0x36095CDD: add esp, 4 */
   1611     _flag_k = FK_ADD;
   1612 L_36095CE0:
   1613     ecx = MEM32(ebp + (-0xC)); /* 0x36095CE0: mov ecx, dword ptr [ebp - 0xc] */
   1614     MEM32(FS_BASE + (0)) = ecx; /* 0x36095CE3: mov dword ptr fs:[0], ecx */
   1615     esp = ebp; /* 0x36095CEA: mov esp, ebp */
   1616     ebp = POP32_VAL(esp); /* 0x36095CEC: pop ebp */
   1617     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36095CED: ret 8 */
   1618     RECOMP_REGS_OUT();
   1619 }
   1620 
   1621 void sub_36095CF0(void) {
   1622     int _fpu_cmp = 0;
   1623     uint32_t _cf = 0;
   1624     int _df = 1;
   1625     uint32_t _flag_k = FK_NONE;
   1626     uint32_t _flag_a = 0, _flag_b = 0;
   1627     uint32_t _itail_tgt = 0;
   1628     RECOMP_REGS_LOCALS
   1629     RECOMP_ENTER(0x36095CF0u);
   1630 
   1631 L_36095CF0:
   1632     PUSH32(esp, ebp); /* 0x36095CF0: push ebp */
   1633     ebp = esp; /* 0x36095CF1: mov ebp, esp */
   1634     PUSH32(esp, 0xFFFFFFFFu); /* 0x36095CF3: push -1 */
   1635     PUSH32(esp, 0x36166499u); /* 0x36095CF5: push 0x36166499 */
   1636     eax = MEM32(FS_BASE + (0)); /* 0x36095CFA: mov eax, dword ptr fs:[0] */
   1637     PUSH32(esp, eax); /* 0x36095D00: push eax */
   1638     MEM32(FS_BASE + (0)) = esp; /* 0x36095D01: mov dword ptr fs:[0], esp */
   1639     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1641     esp = esp - 0x18u; /* 0x36095D08: sub esp, 0x18 */
   1642     _flag_k = FK_CMP;
   1643     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36095D0B: mov al, byte ptr [ebp + 0xb] */
   1644     PUSH32(esp, ebx); /* 0x36095D0E: push ebx */
   1645     PUSH32(esp, esi); /* 0x36095D0F: push esi */
   1646     PUSH32(esp, edi); /* 0x36095D10: push edi */
   1647     esi = ecx; /* 0x36095D11: mov esi, ecx */
   1648     PUSH32(esp, 0); /* 0x36095D13: push 0 */
   1649     ecx = ebp + (-0x24); /* 0x36095D15: lea ecx, [ebp - 0x24] */
   1650     MEM32(ebp + (-0x10)) = esi; /* 0x36095D18: mov dword ptr [ebp - 0x10], esi */
   1651     MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x36095D1B: mov byte ptr [ebp - 0x24], al */
   1652     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36095D1E: call dword ptr [0x3616f100] */
   1653     RECOMP_FLAGS_IN();
   1654     edi = MEM32(ebp + 0x8); /* 0x36095D24: mov edi, dword ptr [ebp + 8] */
   1655     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   1656     ecx = ecx | 0xFFFFFFFFu; /* 0x36095D27: or ecx, 0xffffffff */
   1657     _cf = 0;
   1658     _flag_k = FK_TEST;
   1659     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1660     eax = 0; /* 0x36095D2A: xor eax, eax */
   1661     _cf = 0;
   1662     _flag_k = FK_TEST;
   1663     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; } /* 0x36095D2C: repne scasb al, byte ptr es:[edi] */
   1664     ecx = ~ecx; /* 0x36095D2E: not ecx */
   1665     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1666     ecx = ecx - 1; /* 0x36095D30: dec ecx */
   1667     _flag_k = FK_DEC;
   1668     ebx = ecx; /* 0x36095D31: mov ebx, ecx */
   1669     PUSH32(esp, 1); /* 0x36095D33: push 1 */
   1670     PUSH32(esp, ebx); /* 0x36095D35: push ebx */
   1671     ecx = ebp + (-0x24); /* 0x36095D36: lea ecx, [ebp - 0x24] */
   1672     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36095D39: call dword ptr [0x3616f00c] */
   1673     RECOMP_FLAGS_IN();
   1674     /* test LO8(eax), LO8(eax) */ /* 0x36095D3F: test al, al */
   1675     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1676     _cf = 0;
   1677     _flag_k = FK_NARROW(FK_TEST, 24);
   1678     if (TEST_Z(_flag_a, _flag_b)) goto L_36095D66; /* 0x36095D41: je 0x36095d66 */
   1679 L_36095D43:
   1680     edi = MEM32(ebp + (-0x20)); /* 0x36095D43: mov edi, dword ptr [ebp - 0x20] */
   1681     esi = MEM32(ebp + 0x8); /* 0x36095D46: mov esi, dword ptr [ebp + 8] */
   1682     ecx = ebx; /* 0x36095D49: mov ecx, ebx */
   1683     edx = ecx; /* 0x36095D4B: mov edx, ecx */
   1684     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36095D4D: shr ecx, 2 */
   1685     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1686     ecx = ecx >> 2u; /* 0x36095D4D: shr ecx, 2 */
   1687     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36095D50: 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; }
   1688     ecx = edx; /* 0x36095D52: mov ecx, edx */
   1689     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   1690     ecx = ecx & 3; /* 0x36095D54: and ecx, 3 */
   1691     _cf = 0;
   1692     _flag_k = FK_TEST;
   1693     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36095D57: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1694     eax = MEM32(ebp + (-0x20)); /* 0x36095D59: mov eax, dword ptr [ebp - 0x20] */
   1695     esi = MEM32(ebp + (-0x10)); /* 0x36095D5C: mov esi, dword ptr [ebp - 0x10] */
   1696     MEM32(ebp + (-0x1C)) = ebx; /* 0x36095D5F: mov dword ptr [ebp - 0x1c], ebx */
   1697     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36095D62: mov byte ptr [eax + ebx], 0 */
   1698 L_36095D66:
   1699     edi = MEM32(esi + 0x14); /* 0x36095D66: mov edi, dword ptr [esi + 0x14] */
   1700     ecx = ebp + (-0x24); /* 0x36095D69: lea ecx, [ebp - 0x24] */
   1701     PUSH32(esp, ecx); /* 0x36095D6C: push ecx */
   1702     edx = ebp + (-0x14); /* 0x36095D6D: lea edx, [ebp - 0x14] */
   1703     PUSH32(esp, edx); /* 0x36095D70: push edx */
   1704     ecx = edi; /* 0x36095D71: mov ecx, edi */
   1705     MEM32(ebp + (-0x4)) = 0; /* 0x36095D73: mov dword ptr [ebp - 4], 0 */
   1706     RECOMP_ICALL(0x36096880u); /* 0x36095D7A: call 0x36096880 */ /* not lifted */
   1707     RECOMP_FLAGS_IN();
   1708     eax = MEM32(eax); /* 0x36095D7F: mov eax, dword ptr [eax] */
   1709     /* cmp eax, MEM32(edi + 0x4) */ /* 0x36095D81: cmp eax, dword ptr [edi + 4] */
   1710     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1712     _flag_k = FK_CMP;
   1713     MEM32(ebp + 0x8) = eax; /* 0x36095D84: mov dword ptr [ebp + 8], eax */
   1714     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095DA3; /* 0x36095D87: je 0x36095da3 */
   1715 L_36095D89:
   1716     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1717     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1718     eax = eax + 0xCu; /* 0x36095D89: add eax, 0xc */
   1719     _flag_k = FK_ADD;
   1720     PUSH32(esp, eax); /* 0x36095D8C: push eax */
   1721     eax = ebp + (-0x24); /* 0x36095D8D: lea eax, [ebp - 0x24] */
   1722     PUSH32(esp, eax); /* 0x36095D90: push eax */
   1723     RECOMP_ICALL(MEM32(0x3616F160)); /* 0x36095D91: call dword ptr [0x3616f160] */
   1724     RECOMP_FLAGS_IN();
   1725     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1726     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1727     esp = esp + 8; /* 0x36095D97: add esp, 8 */
   1728     _flag_k = FK_ADD;
   1729     /* test LO8(eax), LO8(eax) */ /* 0x36095D9A: test al, al */
   1730     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1731     _cf = 0;
   1732     _flag_k = FK_NARROW(FK_TEST, 24);
   1733     if (TEST_NZ(_flag_a, _flag_b)) goto L_36095DA3; /* 0x36095D9C: jne 0x36095da3 */
   1734 L_36095D9E:
   1735     eax = ebp + 0x8; /* 0x36095D9E: lea eax, [ebp + 8] */
   1736     goto L_36095DAC; /* 0x36095DA1: jmp 0x36095dac */
   1737 L_36095DA3:
   1738     edi = MEM32(edi + 0x4); /* 0x36095DA3: mov edi, dword ptr [edi + 4] */
   1739     MEM32(ebp + (-0x10)) = edi; /* 0x36095DA6: mov dword ptr [ebp - 0x10], edi */
   1740     eax = ebp + (-0x10); /* 0x36095DA9: lea eax, [ebp - 0x10] */
   1741 L_36095DAC:
   1742     edi = MEM32(eax); /* 0x36095DAC: mov edi, dword ptr [eax] */
   1743     PUSH32(esp, 1); /* 0x36095DAE: push 1 */
   1744     ecx = ebp + (-0x24); /* 0x36095DB0: lea ecx, [ebp - 0x24] */
   1745     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36095DB3: mov dword ptr [ebp - 4], 0xffffffff */
   1746     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36095DBA: call dword ptr [0x3616f100] */
   1747     RECOMP_FLAGS_IN();
   1748     ecx = MEM32(esi + 0x14); /* 0x36095DC0: mov ecx, dword ptr [esi + 0x14] */
   1749     /* cmp edi, MEM32(ecx + 0x4) */ /* 0x36095DC3: cmp edi, dword ptr [ecx + 4] */
   1750     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1752     _flag_k = FK_CMP;
   1753     if (CMP_NE(_flag_a, _flag_b)) goto L_36095DDD; /* 0x36095DC6: jne 0x36095ddd */
   1754 L_36095DC8:
   1755     edi = POP32_VAL(esp); /* 0x36095DC8: pop edi */
   1756     esi = POP32_VAL(esp); /* 0x36095DC9: pop esi */
   1757     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1758     eax = 0; /* 0x36095DCA: xor eax, eax */
   1759     _cf = 0;
   1760     _flag_k = FK_TEST;
   1761     ebx = POP32_VAL(esp); /* 0x36095DCC: pop ebx */
   1762     ecx = MEM32(ebp + (-0xC)); /* 0x36095DCD: mov ecx, dword ptr [ebp - 0xc] */
   1763     MEM32(FS_BASE + (0)) = ecx; /* 0x36095DD0: mov dword ptr fs:[0], ecx */
   1764     esp = ebp; /* 0x36095DD7: mov esp, ebp */
   1765     ebp = POP32_VAL(esp); /* 0x36095DD9: pop ebp */
   1766     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36095DDA: ret 4 */
   1767 L_36095DDD:
   1768     eax = MEM32(edi + 0x1C); /* 0x36095DDD: mov eax, dword ptr [edi + 0x1c] */
   1769     ecx = MEM32(ebp + (-0xC)); /* 0x36095DE0: mov ecx, dword ptr [ebp - 0xc] */
   1770     edi = POP32_VAL(esp); /* 0x36095DE3: pop edi */
   1771     esi = POP32_VAL(esp); /* 0x36095DE4: pop esi */
   1772     ebx = POP32_VAL(esp); /* 0x36095DE5: pop ebx */
   1773     MEM32(FS_BASE + (0)) = ecx; /* 0x36095DE6: mov dword ptr fs:[0], ecx */
   1774     esp = ebp; /* 0x36095DED: mov esp, ebp */
   1775     ebp = POP32_VAL(esp); /* 0x36095DEF: pop ebp */
   1776     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36095DF0: ret 4 */
   1777     RECOMP_REGS_OUT();
   1778 }
   1779 
   1780 void sub_36095E00(void) {
   1781     int _fpu_cmp = 0;
   1782     uint32_t _cf = 0;
   1783     int _df = 1;
   1784     uint32_t _flag_k = FK_NONE;
   1785     uint32_t _flag_a = 0, _flag_b = 0;
   1786     uint32_t _itail_tgt = 0;
   1787     RECOMP_REGS_LOCALS
   1788     RECOMP_ENTER(0x36095E00u);
   1789 
   1790 L_36095E00:
   1791     PUSH32(esp, ebp); /* 0x36095E00: push ebp */
   1792     ebp = esp; /* 0x36095E01: mov ebp, esp */
   1793     PUSH32(esp, 0xFFFFFFFFu); /* 0x36095E03: push -1 */
   1794     PUSH32(esp, 0x361664BBu); /* 0x36095E05: push 0x361664bb */
   1795     eax = MEM32(FS_BASE + (0)); /* 0x36095E0A: mov eax, dword ptr fs:[0] */
   1796     PUSH32(esp, eax); /* 0x36095E10: push eax */
   1797     MEM32(FS_BASE + (0)) = esp; /* 0x36095E11: mov dword ptr fs:[0], esp */
   1798     PUSH32(esp, ecx); /* 0x36095E18: push ecx */
   1799     PUSH32(esp, esi); /* 0x36095E19: push esi */
   1800     PUSH32(esp, edi); /* 0x36095E1A: push edi */
   1801     PUSH32(esp, 0x44u); /* 0x36095E1B: push 0x44 */
   1802     edi = ecx; /* 0x36095E1D: mov edi, ecx */
   1803     RECOMP_ICALL(0x3615FD6Au); /* 0x36095E1F: call 0x3615fd6a */ /* not lifted */
   1804     RECOMP_FLAGS_IN();
   1805     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1806     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1807     esp = esp + 4; /* 0x36095E24: add esp, 4 */
   1808     _flag_k = FK_ADD;
   1809     MEM32(ebp + (-0x10)) = eax; /* 0x36095E27: mov dword ptr [ebp - 0x10], eax */
   1810     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1811     esi = 0; /* 0x36095E2A: xor esi, esi */
   1812     _cf = 0;
   1813     _flag_k = FK_TEST;
   1814     /* cmp eax, esi */ /* 0x36095E2C: cmp eax, esi */
   1815     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1816     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1817     _flag_k = FK_CMP;
   1818     MEM32(ebp + (-0x4)) = esi; /* 0x36095E2E: mov dword ptr [ebp - 4], esi */
   1819     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095E43; /* 0x36095E31: je 0x36095e43 */
   1820 L_36095E33:
   1821     ecx = MEM32(ebp + 0x8); /* 0x36095E33: mov ecx, dword ptr [ebp + 8] */
   1822     PUSH32(esp, 1); /* 0x36095E36: push 1 */
   1823     PUSH32(esp, ecx); /* 0x36095E38: push ecx */
   1824     ecx = eax; /* 0x36095E39: mov ecx, eax */
   1825     RECOMP_ICALL(MEM32(0x3616FA94)); /* 0x36095E3B: call dword ptr [0x3616fa94] */
   1826     RECOMP_FLAGS_IN();
   1827     esi = eax; /* 0x36095E41: mov esi, eax */
   1828 L_36095E43:
   1829     edx = MEM32(ebp + 0xC); /* 0x36095E43: mov edx, dword ptr [ebp + 0xc] */
   1830     PUSH32(esp, edx); /* 0x36095E46: push edx */
   1831     ecx = esi; /* 0x36095E47: mov ecx, esi */
   1832     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36095E49: mov dword ptr [ebp - 4], 0xffffffff */
   1833     RECOMP_ICALL(MEM32(0x3616FABC)); /* 0x36095E50: call dword ptr [0x3616fabc] */
   1834     RECOMP_FLAGS_IN();
   1835     ecx = esi; /* 0x36095E56: mov ecx, esi */
   1836     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36095E58: call dword ptr [0x3616fadc] */
   1837     RECOMP_FLAGS_IN();
   1838     PUSH32(esp, edi); /* 0x36095E5E: push edi */
   1839     PUSH32(esp, esi); /* 0x36095E5F: push esi */
   1840     RECOMP_ICALL(0x36097080u); /* 0x36095E60: call 0x36097080 */ /* not lifted */
   1841     RECOMP_FLAGS_IN();
   1842     ecx = MEM32(ebp + (-0xC)); /* 0x36095E65: mov ecx, dword ptr [ebp - 0xc] */
   1843     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1844     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1845     esp = esp + 8; /* 0x36095E68: add esp, 8 */
   1846     _flag_k = FK_ADD;
   1847     MEM8(edi + 0x18) = (uint8_t)(1); /* 0x36095E6B: mov byte ptr [edi + 0x18], 1 */
   1848     edi = POP32_VAL(esp); /* 0x36095E6F: pop edi */
   1849     eax = 4; /* 0x36095E70: mov eax, 4 */
   1850     esi = POP32_VAL(esp); /* 0x36095E75: pop esi */
   1851     MEM32(FS_BASE + (0)) = ecx; /* 0x36095E76: mov dword ptr fs:[0], ecx */
   1852     esp = ebp; /* 0x36095E7D: mov esp, ebp */
   1853     ebp = POP32_VAL(esp); /* 0x36095E7F: pop ebp */
   1854     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36095E80: ret 8 */
   1855     RECOMP_REGS_OUT();
   1856 }
   1857 
   1858 void sub_36095E90(void) {
   1859     int _fpu_cmp = 0;
   1860     uint32_t _cf = 0;
   1861     int _df = 1;
   1862     uint32_t _flag_k = FK_NONE;
   1863     uint32_t _flag_a = 0, _flag_b = 0;
   1864     uint32_t _itail_tgt = 0;
   1865     RECOMP_REGS_LOCALS
   1866     RECOMP_ENTER(0x36095E90u);
   1867 
   1868 L_36095E90:
   1869     PUSH32(esp, ebp); /* 0x36095E90: push ebp */
   1870     ebp = esp; /* 0x36095E91: mov ebp, esp */
   1871     PUSH32(esp, ecx); /* 0x36095E93: push ecx */
   1872     PUSH32(esp, ebx); /* 0x36095E94: push ebx */
   1873     ebx = ecx; /* 0x36095E95: mov ebx, ecx */
   1874     eax = MEM32(ebx + 0x10); /* 0x36095E97: mov eax, dword ptr [ebx + 0x10] */
   1875     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1876     ecx = 0; /* 0x36095E9A: xor ecx, ecx */
   1877     _cf = 0;
   1878     _flag_k = FK_TEST;
   1879     MEM8(ebx + 0x18) = (uint8_t)(LO8(ecx)); /* 0x36095E9C: mov byte ptr [ebx + 0x18], cl */
   1880     eax = MEM32(eax + 0x4); /* 0x36095E9F: mov eax, dword ptr [eax + 4] */
   1881     PUSH32(esp, esi); /* 0x36095EA2: push esi */
   1882     esi = MEM32(eax); /* 0x36095EA3: mov esi, dword ptr [eax] */
   1883     /* cmp esi, eax */ /* 0x36095EA5: cmp esi, eax */
   1884     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1885     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1886     _flag_k = FK_CMP;
   1887     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095F16; /* 0x36095EA7: je 0x36095f16 */
   1888 L_36095EA9:
   1889     PUSH32(esp, edi); /* 0x36095EA9: push edi */
   1890 L_36095EAA:
   1891     edi = MEM32(esi + 0x10); /* 0x36095EAA: mov edi, dword ptr [esi + 0x10] */
   1892     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1893     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1894     ecx = ecx + 4; /* 0x36095EAD: add ecx, 4 */
   1895     _flag_k = FK_ADD;
   1896     /* test edi, edi */ /* 0x36095EB0: test edi, edi */
   1897     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1898     _cf = 0;
   1899     _flag_k = FK_TEST;
   1900     MEM32(ebp + (-0x4)) = ecx; /* 0x36095EB2: mov dword ptr [ebp - 4], ecx */
   1901     if (TEST_Z(_flag_a, _flag_b)) goto L_36095ECA; /* 0x36095EB5: je 0x36095eca */
   1902 L_36095EB7:
   1903     ecx = edi; /* 0x36095EB7: mov ecx, edi */
   1904     RECOMP_ICALL(0x36095090u); /* 0x36095EB9: call 0x36095090 */ /* not lifted */
   1905     RECOMP_FLAGS_IN();
   1906     PUSH32(esp, edi); /* 0x36095EBE: push edi */
   1907     RECOMP_ICALL(0x3615FCC4u); /* 0x36095EBF: call 0x3615fcc4 */ /* not lifted */
   1908     RECOMP_FLAGS_IN();
   1909     ecx = MEM32(ebp + (-0x4)); /* 0x36095EC4: mov ecx, dword ptr [ebp - 4] */
   1910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1912     esp = esp + 4; /* 0x36095EC7: add esp, 4 */
   1913     _flag_k = FK_ADD;
   1914 L_36095ECA:
   1915     eax = MEM32(esi + 0x8); /* 0x36095ECA: mov eax, dword ptr [esi + 8] */
   1916     SET_LO8(edx, MEM8(eax + 0x15)); /* 0x36095ECD: mov dl, byte ptr [eax + 0x15] */
   1917     /* test LO8(edx), LO8(edx) */ /* 0x36095ED0: test dl, dl */
   1918     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1919     _cf = 0;
   1920     _flag_k = FK_NARROW(FK_TEST, 24);
   1921     if (TEST_NZ(_flag_a, _flag_b)) goto L_36095EEC; /* 0x36095ED2: jne 0x36095eec */
   1922 L_36095ED4:
   1923     esi = eax; /* 0x36095ED4: mov esi, eax */
   1924     eax = MEM32(esi); /* 0x36095ED6: mov eax, dword ptr [esi] */
   1925     SET_LO8(edx, MEM8(eax + 0x15)); /* 0x36095ED8: mov dl, byte ptr [eax + 0x15] */
   1926     /* test LO8(edx), LO8(edx) */ /* 0x36095EDB: test dl, dl */
   1927     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1928     _cf = 0;
   1929     _flag_k = FK_NARROW(FK_TEST, 24);
   1930     if (TEST_NZ(_flag_a, _flag_b)) goto L_36095F05; /* 0x36095EDD: jne 0x36095f05 */
   1931 L_36095EDF:
   1932     esi = eax; /* 0x36095EDF: mov esi, eax */
   1933     eax = MEM32(esi); /* 0x36095EE1: mov eax, dword ptr [esi] */
   1934     SET_LO8(edx, MEM8(eax + 0x15)); /* 0x36095EE3: mov dl, byte ptr [eax + 0x15] */
   1935     /* test LO8(edx), LO8(edx) */ /* 0x36095EE6: test dl, dl */
   1936     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1937     _cf = 0;
   1938     _flag_k = FK_NARROW(FK_TEST, 24);
   1939     RECOMP_BACKEDGE();
   1940     if (TEST_Z(_flag_a, _flag_b)) goto L_36095EDF; /* 0x36095EE8: je 0x36095edf */
   1941 L_36095EEA:
   1942     goto L_36095F05; /* 0x36095EEA: jmp 0x36095f05 */
   1943 L_36095EEC:
   1944     eax = MEM32(esi + 0x4); /* 0x36095EEC: mov eax, dword ptr [esi + 4] */
   1945     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36095EEF: cmp esi, dword ptr [eax + 8] */
   1946     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1948     _flag_k = FK_CMP;
   1949     if (CMP_NE(_flag_a, _flag_b)) goto L_36095EFE; /* 0x36095EF2: jne 0x36095efe */
   1950 L_36095EF4:
   1951     esi = eax; /* 0x36095EF4: mov esi, eax */
   1952     eax = MEM32(eax + 0x4); /* 0x36095EF6: mov eax, dword ptr [eax + 4] */
   1953     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36095EF9: cmp esi, dword ptr [eax + 8] */
   1954     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1956     _flag_k = FK_CMP;
   1957     RECOMP_BACKEDGE();
   1958     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095EF4; /* 0x36095EFC: je 0x36095ef4 */
   1959 L_36095EFE:
   1960     /* cmp MEM32(esi + 0x8), eax */ /* 0x36095EFE: cmp dword ptr [esi + 8], eax */
   1961     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   1962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1963     _flag_k = FK_CMP;
   1964     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095F05; /* 0x36095F01: je 0x36095f05 */
   1965 L_36095F03:
   1966     esi = eax; /* 0x36095F03: mov esi, eax */
   1967 L_36095F05:
   1968     edx = MEM32(ebx + 0x10); /* 0x36095F05: mov edx, dword ptr [ebx + 0x10] */
   1969     /* cmp esi, MEM32(edx + 0x4) */ /* 0x36095F08: cmp esi, dword ptr [edx + 4] */
   1970     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1971     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1972     _flag_k = FK_CMP;
   1973     RECOMP_BACKEDGE();
   1974     if (CMP_NE(_flag_a, _flag_b)) goto L_36095EAA; /* 0x36095F0B: jne 0x36095eaa */
   1975 L_36095F0D:
   1976     edi = POP32_VAL(esp); /* 0x36095F0D: pop edi */
   1977     esi = POP32_VAL(esp); /* 0x36095F0E: pop esi */
   1978     eax = ecx; /* 0x36095F0F: mov eax, ecx */
   1979     ebx = POP32_VAL(esp); /* 0x36095F11: pop ebx */
   1980     esp = ebp; /* 0x36095F12: mov esp, ebp */
   1981     ebp = POP32_VAL(esp); /* 0x36095F14: pop ebp */
   1982     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36095F15: ret  */
   1983 L_36095F16:
   1984     esi = POP32_VAL(esp); /* 0x36095F16: pop esi */
   1985     eax = ecx; /* 0x36095F17: mov eax, ecx */
   1986     ebx = POP32_VAL(esp); /* 0x36095F19: pop ebx */
   1987     esp = ebp; /* 0x36095F1A: mov esp, ebp */
   1988     ebp = POP32_VAL(esp); /* 0x36095F1C: pop ebp */
   1989     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36095F1D: ret  */
   1990     RECOMP_REGS_OUT();
   1991 }
   1992 
   1993 void sub_36095F20(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(0x36095F20u);
   2002 
   2003 L_36095F20:
   2004     PUSH32(esp, ebp); /* 0x36095F20: push ebp */
   2005     ebp = esp; /* 0x36095F21: mov ebp, esp */
   2006     PUSH32(esp, 0xFFFFFFFFu); /* 0x36095F23: push -1 */
   2007     PUSH32(esp, 0x361664DBu); /* 0x36095F25: push 0x361664db */
   2008     eax = MEM32(FS_BASE + (0)); /* 0x36095F2A: mov eax, dword ptr fs:[0] */
   2009     PUSH32(esp, eax); /* 0x36095F30: push eax */
   2010     MEM32(FS_BASE + (0)) = esp; /* 0x36095F31: mov dword ptr fs:[0], esp */
   2011     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u);
   2012     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2013     esp = esp - 0x38u; /* 0x36095F38: sub esp, 0x38 */
   2014     _flag_k = FK_CMP;
   2015     eax = MEM32(ebp + 0x8); /* 0x36095F3B: mov eax, dword ptr [ebp + 8] */
   2016     ecx = MEM32(0x361C5EC4); /* 0x36095F3E: mov ecx, dword ptr [0x361c5ec4] */
   2017     PUSH32(esp, esi); /* 0x36095F44: push esi */
   2018     PUSH32(esp, edi); /* 0x36095F45: push edi */
   2019     edx = ebp + (-0x14); /* 0x36095F46: lea edx, [ebp - 0x14] */
   2020     MEM32(ebp + (-0x10)) = eax; /* 0x36095F49: mov dword ptr [ebp - 0x10], eax */
   2021     PUSH32(esp, edx); /* 0x36095F4C: push edx */
   2022     eax = ebp + 0x8; /* 0x36095F4D: lea eax, [ebp + 8] */
   2023     PUSH32(esp, eax); /* 0x36095F50: push eax */
   2024     MEM32(ebp + (-0x14)) = 0x000F424Fu; /* 0x36095F51: mov dword ptr [ebp - 0x14], 0xf424f */
   2025     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2026     esi = 0; /* 0x36095F58: xor esi, esi */
   2027     _cf = 0;
   2028     _flag_k = FK_TEST;
   2029     RECOMP_ICALL(0x36096370u); /* 0x36095F5A: call 0x36096370 */ /* not lifted */
   2030     RECOMP_FLAGS_IN();
   2031     ecx = MEM32(0x361C5EC4); /* 0x36095F5F: mov ecx, dword ptr [0x361c5ec4] */
   2032     eax = MEM32(eax); /* 0x36095F65: mov eax, dword ptr [eax] */
   2033     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36095F67: cmp eax, dword ptr [ecx + 4] */
   2034     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2036     _flag_k = FK_CMP;
   2037     if (CMP_EQ(_flag_a, _flag_b)) goto L_36095F6F; /* 0x36095F6A: je 0x36095f6f */
   2038 L_36095F6C:
   2039     esi = MEM32(eax + 0x14); /* 0x36095F6C: mov esi, dword ptr [eax + 0x14] */
   2040 L_36095F6F:
   2041     SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x36095F6F: mov al, byte ptr [ebp + 0xc] */
   2042     /* test LO8(eax), LO8(eax) */ /* 0x36095F72: test al, al */
   2043     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2044     _cf = 0;
   2045     _flag_k = FK_NARROW(FK_TEST, 24);
   2046     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096005; /* 0x36095F74: jne 0x36096005 */
   2047 L_36095F7A:
   2048     /* test esi, esi */ /* 0x36095F7A: test esi, esi */
   2049     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2050     _cf = 0;
   2051     _flag_k = FK_TEST;
   2052     if (TEST_Z(_flag_a, _flag_b)) goto L_36095F95; /* 0x36095F7C: je 0x36095f95 */
   2053 L_36095F7E:
   2054     ecx = esi; /* 0x36095F7E: mov ecx, esi */
   2055     RECOMP_ICALL(0x360961F0u); /* 0x36095F80: call 0x360961f0 */ /* not lifted */
   2056     RECOMP_FLAGS_IN();
   2057     edi = POP32_VAL(esp); /* 0x36095F85: pop edi */
   2058     esi = POP32_VAL(esp); /* 0x36095F86: pop esi */
   2059     ecx = MEM32(ebp + (-0xC)); /* 0x36095F87: mov ecx, dword ptr [ebp - 0xc] */
   2060     MEM32(FS_BASE + (0)) = ecx; /* 0x36095F8A: mov dword ptr fs:[0], ecx */
   2061     esp = ebp; /* 0x36095F91: mov esp, ebp */
   2062     ebp = POP32_VAL(esp); /* 0x36095F93: pop ebp */
   2063     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36095F94: ret  */
   2064 L_36095F95:
   2065     edx = MEM32(0x3616FF74); /* 0x36095F95: mov edx, dword ptr [0x3616ff74] */
   2066     eax = MEM32(edx); /* 0x36095F9B: mov eax, dword ptr [edx] */
   2067     ecx = MEM32(eax + 0x60); /* 0x36095F9D: mov ecx, dword ptr [eax + 0x60] */
   2068     /* test ecx, ecx */ /* 0x36095FA0: test ecx, ecx */
   2069     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2070     _cf = 0;
   2071     _flag_k = FK_TEST;
   2072     if (TEST_Z(_flag_a, _flag_b)) goto L_36096005; /* 0x36095FA2: je 0x36096005 */
   2073 L_36095FA4:
   2074     eax = ebp + (-0x14); /* 0x36095FA4: lea eax, [ebp - 0x14] */
   2075     PUSH32(esp, eax); /* 0x36095FA7: push eax */
   2076     RECOMP_ICALL(MEM32(0x3616FB18)); /* 0x36095FA8: call dword ptr [0x3616fb18] */
   2077     RECOMP_FLAGS_IN();
   2078     edi = eax; /* 0x36095FAE: mov edi, eax */
   2079     /* test edi, edi */ /* 0x36095FB0: test edi, edi */
   2080     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2081     _cf = 0;
   2082     _flag_k = FK_TEST;
   2083     if (TEST_Z(_flag_a, _flag_b)) goto L_36096005; /* 0x36095FB2: je 0x36096005 */
   2084 L_36095FB4:
   2085     PUSH32(esp, 0x124u); /* 0x36095FB4: push 0x124 */
   2086     RECOMP_ICALL(0x3615FD6Au); /* 0x36095FB9: call 0x3615fd6a */ /* not lifted */
   2087     RECOMP_FLAGS_IN();
   2088     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2089     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2090     esp = esp + 4; /* 0x36095FBE: add esp, 4 */
   2091     _flag_k = FK_ADD;
   2092     MEM32(ebp + 0xC) = eax; /* 0x36095FC1: mov dword ptr [ebp + 0xc], eax */
   2093     /* test eax, eax */ /* 0x36095FC4: test eax, eax */
   2094     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2095     _cf = 0;
   2096     _flag_k = FK_TEST;
   2097     MEM32(ebp + (-0x4)) = 0; /* 0x36095FC6: mov dword ptr [ebp - 4], 0 */
   2098     if (TEST_Z(_flag_a, _flag_b)) goto L_36095FDF; /* 0x36095FCD: je 0x36095fdf */
   2099 L_36095FCF:
   2100     PUSH32(esp, 0x361B64FCu); /* 0x36095FCF: push 0x361b64fc */
   2101     ecx = eax; /* 0x36095FD4: mov ecx, eax */
   2102     RECOMP_ICALL(0x36095510u); /* 0x36095FD6: call 0x36095510 */ /* not lifted */
   2103     RECOMP_FLAGS_IN();
   2104     esi = eax; /* 0x36095FDB: mov esi, eax */
   2105     goto L_36095FE1; /* 0x36095FDD: jmp 0x36095fe1 */
   2106 L_36095FDF:
   2107     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2108     esi = 0; /* 0x36095FDF: xor esi, esi */
   2109     _cf = 0;
   2110     _flag_k = FK_TEST;
   2111 L_36095FE1:
   2112     PUSH32(esp, esi); /* 0x36095FE1: push esi */
   2113     PUSH32(esp, edi); /* 0x36095FE2: push edi */
   2114     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36095FE3: mov dword ptr [ebp - 4], 0xffffffff */
   2115     RECOMP_ICALL(0x36097080u); /* 0x36095FEA: call 0x36097080 */ /* not lifted */
   2116     RECOMP_FLAGS_IN();
   2117     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2118     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2119     esp = esp + 8; /* 0x36095FEF: add esp, 8 */
   2120     _flag_k = FK_ADD;
   2121     ecx = edi; /* 0x36095FF2: mov ecx, edi */
   2122     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36095FF4: call dword ptr [0x3616fadc] */
   2123     RECOMP_FLAGS_IN();
   2124     /* test eax, eax */ /* 0x36095FFA: test eax, eax */
   2125     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2126     _cf = 0;
   2127     _flag_k = FK_TEST;
   2128     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096017; /* 0x36095FFC: jne 0x36096017 */
   2129 L_36095FFE:
   2130     ecx = esi; /* 0x36095FFE: mov ecx, esi */
   2131     RECOMP_ICALL(0x36095680u); /* 0x36096000: call 0x36095680 */ /* not lifted */
   2132     RECOMP_FLAGS_IN();
   2133 L_36096005:
   2134     edi = POP32_VAL(esp); /* 0x36096005: pop edi */
   2135     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2136     eax = 0; /* 0x36096006: xor eax, eax */
   2137     _cf = 0;
   2138     _flag_k = FK_TEST;
   2139     esi = POP32_VAL(esp); /* 0x36096008: pop esi */
   2140     ecx = MEM32(ebp + (-0xC)); /* 0x36096009: mov ecx, dword ptr [ebp - 0xc] */
   2141     MEM32(FS_BASE + (0)) = ecx; /* 0x3609600C: mov dword ptr fs:[0], ecx */
   2142     esp = ebp; /* 0x36096013: mov esp, ebp */
   2143     ebp = POP32_VAL(esp); /* 0x36096015: pop ebp */
   2144     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36096016: ret  */
   2145 L_36096017:
   2146     ecx = edi; /* 0x36096017: mov ecx, edi */
   2147     RECOMP_ICALL(MEM32(0x3616FAB4)); /* 0x36096019: call dword ptr [0x3616fab4] */
   2148     RECOMP_FLAGS_IN();
   2149     PUSH32(esp, edi); /* 0x3609601F: push edi */
   2150     RECOMP_ICALL(0x3615FCC4u); /* 0x36096020: call 0x3615fcc4 */ /* not lifted */
   2151     RECOMP_FLAGS_IN();
   2152     ecx = MEM32(ebp + (-0x14)); /* 0x36096025: mov ecx, dword ptr [ebp - 0x14] */
   2153     MEM32(esi + 0x4) = ecx; /* 0x36096028: mov dword ptr [esi + 4], ecx */
   2154     edx = MEM32(ebp + (-0x10)); /* 0x3609602B: mov edx, dword ptr [ebp - 0x10] */
   2155     MEM32(esi + 0x8) = edx; /* 0x3609602E: mov dword ptr [esi + 8], edx */
   2156     edi = MEM32(0x361C5EC4); /* 0x36096031: mov edi, dword ptr [0x361c5ec4] */
   2157     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2158     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2159     esp = esp + 4; /* 0x36096037: add esp, 4 */
   2160     _flag_k = FK_ADD;
   2161     eax = ebp + (-0x14); /* 0x3609603A: lea eax, [ebp - 0x14] */
   2162     PUSH32(esp, eax); /* 0x3609603D: push eax */
   2163     ecx = edi; /* 0x3609603E: mov ecx, edi */
   2164     RECOMP_ICALL(0x3609A830u); /* 0x36096040: call 0x3609a830 */ /* not lifted */
   2165     RECOMP_FLAGS_IN();
   2166     /* cmp eax, MEM32(edi + 0x4) */ /* 0x36096045: cmp eax, dword ptr [edi + 4] */
   2167     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2168     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2169     _flag_k = FK_CMP;
   2170     MEM32(ebp + 0xC) = eax; /* 0x36096048: mov dword ptr [ebp + 0xc], eax */
   2171     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096062; /* 0x3609604B: je 0x36096062 */
   2172 L_3609604D:
   2173     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2174     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2175     eax = eax + 0xCu; /* 0x3609604D: add eax, 0xc */
   2176     _flag_k = FK_ADD;
   2177     PUSH32(esp, eax); /* 0x36096050: push eax */
   2178     ecx = ebp + (-0x14); /* 0x36096051: lea ecx, [ebp - 0x14] */
   2179     RECOMP_ICALL(0x3603F770u); /* 0x36096054: call 0x3603f770 */ /* not lifted */
   2180     RECOMP_FLAGS_IN();
   2181     /* test LO8(eax), LO8(eax) */ /* 0x36096059: test al, al */
   2182     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2183     _cf = 0;
   2184     _flag_k = FK_NARROW(FK_TEST, 24);
   2185     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096062; /* 0x3609605B: jne 0x36096062 */
   2186 L_3609605D:
   2187     eax = ebp + 0xC; /* 0x3609605D: lea eax, [ebp + 0xc] */
   2188     goto L_3609606B; /* 0x36096060: jmp 0x3609606b */
   2189 L_36096062:
   2190     ecx = MEM32(edi + 0x4); /* 0x36096062: mov ecx, dword ptr [edi + 4] */
   2191     MEM32(ebp + 0x8) = ecx; /* 0x36096065: mov dword ptr [ebp + 8], ecx */
   2192     eax = ebp + 0x8; /* 0x36096068: lea eax, [ebp + 8] */
   2193 L_3609606B:
   2194     ecx = MEM32(0x361C5EC4); /* 0x3609606B: mov ecx, dword ptr [0x361c5ec4] */
   2195     eax = MEM32(eax); /* 0x36096071: mov eax, dword ptr [eax] */
   2196     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096073: cmp eax, dword ptr [ecx + 4] */
   2197     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2199     _flag_k = FK_CMP;
   2200     if (CMP_EQ(_flag_a, _flag_b)) goto L_360960B0; /* 0x36096076: je 0x360960b0 */
   2201 L_36096078:
   2202     edx = MEM32(ebp + (-0x14)); /* 0x36096078: mov edx, dword ptr [ebp - 0x14] */
   2203     eax = MEM32(ebp + (-0x10)); /* 0x3609607B: mov eax, dword ptr [ebp - 0x10] */
   2204     MEM32(ebp + (-0x38)) = edx; /* 0x3609607E: mov dword ptr [ebp - 0x38], edx */
   2205     edx = ebp + (-0x38); /* 0x36096081: lea edx, [ebp - 0x38] */
   2206     MEM32(ebp + (-0x34)) = eax; /* 0x36096084: mov dword ptr [ebp - 0x34], eax */
   2207     PUSH32(esp, edx); /* 0x36096087: push edx */
   2208     eax = ebp + (-0x1C); /* 0x36096088: lea eax, [ebp - 0x1c] */
   2209     PUSH32(esp, eax); /* 0x3609608B: push eax */
   2210     MEM32(ebp + (-0x30)) = 0; /* 0x3609608C: mov dword ptr [ebp - 0x30], 0 */
   2211     RECOMP_ICALL(0x36093CF0u); /* 0x36096093: call 0x36093cf0 */ /* not lifted */
   2212     RECOMP_FLAGS_IN();
   2213     ecx = eax; /* 0x36096098: mov ecx, eax */
   2214     eax = MEM32(ecx); /* 0x3609609A: mov eax, dword ptr [ecx] */
   2215     edx = MEM32(ecx + 0x4); /* 0x3609609C: mov edx, dword ptr [ecx + 4] */
   2216     ecx = MEM32(eax + 0x14); /* 0x3609609F: mov ecx, dword ptr [eax + 0x14] */
   2217     MEM32(ebp + (-0x20)) = edx; /* 0x360960A2: mov dword ptr [ebp - 0x20], edx */
   2218     RECOMP_ICALL(0x36095680u); /* 0x360960A5: call 0x36095680 */ /* not lifted */
   2219     RECOMP_FLAGS_IN();
   2220     ecx = MEM32(0x361C5EC4); /* 0x360960AA: mov ecx, dword ptr [0x361c5ec4] */
   2221 L_360960B0:
   2222     eax = MEM32(ebp + (-0x14)); /* 0x360960B0: mov eax, dword ptr [ebp - 0x14] */
   2223     edx = MEM32(ebp + (-0x10)); /* 0x360960B3: mov edx, dword ptr [ebp - 0x10] */
   2224     MEM32(ebp + (-0x44)) = eax; /* 0x360960B6: mov dword ptr [ebp - 0x44], eax */
   2225     eax = ebp + (-0x44); /* 0x360960B9: lea eax, [ebp - 0x44] */
   2226     MEM32(ebp + (-0x40)) = edx; /* 0x360960BC: mov dword ptr [ebp - 0x40], edx */
   2227     PUSH32(esp, eax); /* 0x360960BF: push eax */
   2228     edx = ebp + (-0x2C); /* 0x360960C0: lea edx, [ebp - 0x2c] */
   2229     PUSH32(esp, edx); /* 0x360960C3: push edx */
   2230     MEM32(ebp + (-0x3C)) = 0; /* 0x360960C4: mov dword ptr [ebp - 0x3c], 0 */
   2231     RECOMP_ICALL(0x36093CF0u); /* 0x360960CB: call 0x36093cf0 */ /* not lifted */
   2232     RECOMP_FLAGS_IN();
   2233     ecx = eax; /* 0x360960D0: mov ecx, eax */
   2234     eax = MEM32(ecx); /* 0x360960D2: mov eax, dword ptr [ecx] */
   2235     edx = MEM32(ecx + 0x4); /* 0x360960D4: mov edx, dword ptr [ecx + 4] */
   2236     ecx = MEM32(ebp + (-0xC)); /* 0x360960D7: mov ecx, dword ptr [ebp - 0xc] */
   2237     MEM32(eax + 0x14) = esi; /* 0x360960DA: mov dword ptr [eax + 0x14], esi */
   2238     edi = POP32_VAL(esp); /* 0x360960DD: pop edi */
   2239     eax = esi; /* 0x360960DE: mov eax, esi */
   2240     MEM32(ebp + (-0x20)) = edx; /* 0x360960E0: mov dword ptr [ebp - 0x20], edx */
   2241     esi = POP32_VAL(esp); /* 0x360960E3: pop esi */
   2242     MEM32(FS_BASE + (0)) = ecx; /* 0x360960E4: mov dword ptr fs:[0], ecx */
   2243     esp = ebp; /* 0x360960EB: mov esp, ebp */
   2244     ebp = POP32_VAL(esp); /* 0x360960ED: pop ebp */
   2245     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360960EE: ret  */
   2246     RECOMP_REGS_OUT();
   2247 }
   2248 
   2249 void sub_360960F0(void) {
   2250     int _fpu_cmp = 0;
   2251     uint32_t _cf = 0;
   2252     int _df = 1;
   2253     uint32_t _flag_k = FK_NONE;
   2254     uint32_t _flag_a = 0, _flag_b = 0;
   2255     uint32_t _itail_tgt = 0;
   2256     RECOMP_REGS_LOCALS
   2257     RECOMP_ENTER(0x360960F0u);
   2258 
   2259 L_360960F0:
   2260     PUSH32(esp, ebp); /* 0x360960F0: push ebp */
   2261     ebp = esp; /* 0x360960F1: mov ebp, esp */
   2262     PUSH32(esp, 0xFFFFFFFFu); /* 0x360960F3: push -1 */
   2263     PUSH32(esp, 0x36166504u); /* 0x360960F5: push 0x36166504 */
   2264     eax = MEM32(FS_BASE + (0)); /* 0x360960FA: mov eax, dword ptr fs:[0] */
   2265     PUSH32(esp, eax); /* 0x36096100: push eax */
   2266     MEM32(FS_BASE + (0)) = esp; /* 0x36096101: mov dword ptr fs:[0], esp */
   2267     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu);
   2268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2269     esp = esp - 0x4Cu; /* 0x36096108: sub esp, 0x4c */
   2270     _flag_k = FK_CMP;
   2271     eax = MEM32(ebp + 0x8); /* 0x3609610B: mov eax, dword ptr [ebp + 8] */
   2272     PUSH32(esp, esi); /* 0x3609610E: push esi */
   2273     PUSH32(esp, edi); /* 0x3609610F: push edi */
   2274     edi = MEM32(ebp + 0xC); /* 0x36096110: mov edi, dword ptr [ebp + 0xc] */
   2275     /* test edi, edi */ /* 0x36096113: test edi, edi */
   2276     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2277     _cf = 0;
   2278     _flag_k = FK_TEST;
   2279     esi = ecx; /* 0x36096115: mov esi, ecx */
   2280     MEM32(ebp + (-0x14)) = 0x000F424Fu; /* 0x36096117: mov dword ptr [ebp - 0x14], 0xf424f */
   2281     MEM32(ebp + (-0x10)) = eax; /* 0x3609611E: mov dword ptr [ebp - 0x10], eax */
   2282     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096132; /* 0x36096121: jne 0x36096132 */
   2283 L_36096123:
   2284     ecx = MEM32(0x3616FF74); /* 0x36096123: mov ecx, dword ptr [0x3616ff74] */
   2285     eax = MEM32(ecx); /* 0x36096129: mov eax, dword ptr [ecx] */
   2286     edi = MEM32(eax + 0x60); /* 0x3609612B: mov edi, dword ptr [eax + 0x60] */
   2287     /* test edi, edi */ /* 0x3609612E: test edi, edi */
   2288     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2289     _cf = 0;
   2290     _flag_k = FK_TEST;
   2291     if (TEST_Z(_flag_a, _flag_b)) goto L_360961AE; /* 0x36096130: je 0x360961ae */
   2292 L_36096132:
   2293     PUSH32(esp, 0x800u); /* 0x36096132: push 0x800 */
   2294     ecx = ebp + (-0x58); /* 0x36096137: lea ecx, [ebp - 0x58] */
   2295     RECOMP_ICALL(MEM32(0x3616FAA8)); /* 0x3609613A: call dword ptr [0x3616faa8] */
   2296     RECOMP_FLAGS_IN();
   2297     MEM32(ebp + (-0x18)) = 0; /* 0x36096140: mov dword ptr [ebp - 0x18], 0 */
   2298     edx = ebp + (-0x58); /* 0x36096147: lea edx, [ebp - 0x58] */
   2299     PUSH32(esp, esi); /* 0x3609614A: push esi */
   2300     PUSH32(esp, edx); /* 0x3609614B: push edx */
   2301     MEM32(ebp + (-0x4)) = 0; /* 0x3609614C: mov dword ptr [ebp - 4], 0 */
   2302     RECOMP_ICALL(0x36096FC0u); /* 0x36096153: call 0x36096fc0 */ /* not lifted */
   2303     RECOMP_FLAGS_IN();
   2304     PUSH32(esp, 0x20u); /* 0x36096158: push 0x20 */
   2305     RECOMP_ICALL(0x3615FD6Au); /* 0x3609615A: call 0x3615fd6a */ /* not lifted */
   2306     RECOMP_FLAGS_IN();
   2307     esi = eax; /* 0x3609615F: mov esi, eax */
   2308     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2309     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2310     esp = esp + 0xCu; /* 0x36096161: add esp, 0xc */
   2311     _flag_k = FK_ADD;
   2312     MEM32(ebp + 0x8) = esi; /* 0x36096164: mov dword ptr [ebp + 8], esi */
   2313     /* test esi, esi */ /* 0x36096167: test esi, esi */
   2314     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2315     _cf = 0;
   2316     _flag_k = FK_TEST;
   2317     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36096169: mov byte ptr [ebp - 4], 1 */
   2318     if (TEST_Z(_flag_a, _flag_b)) goto L_36096187; /* 0x3609616D: je 0x36096187 */
   2319 L_3609616F:
   2320     eax = ebp + (-0x58); /* 0x3609616F: lea eax, [ebp - 0x58] */
   2321     PUSH32(esp, eax); /* 0x36096172: push eax */
   2322     ecx = ebp + (-0x14); /* 0x36096173: lea ecx, [ebp - 0x14] */
   2323     PUSH32(esp, ecx); /* 0x36096176: push ecx */
   2324     ecx = esi; /* 0x36096177: mov ecx, esi */
   2325     RECOMP_ICALL(MEM32(0x3616FB3C)); /* 0x36096179: call dword ptr [0x3616fb3c] */
   2326     RECOMP_FLAGS_IN();
   2327     MEM32(esi) = 0x36172FB8u; /* 0x3609617F: mov dword ptr [esi], 0x36172fb8 */
   2328     goto L_36096189; /* 0x36096185: jmp 0x36096189 */
   2329 L_36096187:
   2330     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2331     esi = 0; /* 0x36096187: xor esi, esi */
   2332     _cf = 0;
   2333     _flag_k = FK_TEST;
   2334 L_36096189:
   2335     PUSH32(esp, esi); /* 0x36096189: push esi */
   2336     ecx = edi; /* 0x3609618A: mov ecx, edi */
   2337     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609618C: mov byte ptr [ebp - 4], 0 */
   2338     RECOMP_ICALL(MEM32(0x3616FB04)); /* 0x36096190: call dword ptr [0x3616fb04] */
   2339     RECOMP_FLAGS_IN();
   2340     ecx = esi; /* 0x36096196: mov ecx, esi */
   2341     RECOMP_ICALL(MEM32(0x3616FB14)); /* 0x36096198: call dword ptr [0x3616fb14] */
   2342     RECOMP_FLAGS_IN();
   2343     ecx = ebp + (-0x58); /* 0x3609619E: lea ecx, [ebp - 0x58] */
   2344     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360961A1: mov dword ptr [ebp - 4], 0xffffffff */
   2345     RECOMP_ICALL(MEM32(0x3616FAB4)); /* 0x360961A8: call dword ptr [0x3616fab4] */
   2346     RECOMP_FLAGS_IN();
   2347 L_360961AE:
   2348     ecx = MEM32(ebp + (-0xC)); /* 0x360961AE: mov ecx, dword ptr [ebp - 0xc] */
   2349     edi = POP32_VAL(esp); /* 0x360961B1: pop edi */
   2350     esi = POP32_VAL(esp); /* 0x360961B2: pop esi */
   2351     MEM32(FS_BASE + (0)) = ecx; /* 0x360961B3: mov dword ptr fs:[0], ecx */
   2352     esp = ebp; /* 0x360961BA: mov esp, ebp */
   2353     ebp = POP32_VAL(esp); /* 0x360961BC: pop ebp */
   2354     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360961BD: ret 8 */
   2355     RECOMP_REGS_OUT();
   2356 }
   2357 
   2358 void sub_36096147(void) {
   2359     int _fpu_cmp = 0;
   2360     uint32_t _cf = 0;
   2361     int _df = 1;
   2362     uint32_t _flag_k = FK_NONE;
   2363     uint32_t _flag_a = 0, _flag_b = 0;
   2364     uint32_t _itail_tgt = 0;
   2365     RECOMP_REGS_LOCALS
   2366     RECOMP_ENTER(0x36096147u);
   2367 
   2368 L_36096147:
   2369     edx = ebp + (-0x58); /* 0x36096147: lea edx, [ebp - 0x58] */
   2370     PUSH32(esp, esi); /* 0x3609614A: push esi */
   2371     PUSH32(esp, edx); /* 0x3609614B: push edx */
   2372     MEM32(ebp + (-0x4)) = 0; /* 0x3609614C: mov dword ptr [ebp - 4], 0 */
   2373     RECOMP_ICALL(0x36096FC0u); /* 0x36096153: call 0x36096fc0 */ /* not lifted */
   2374     RECOMP_FLAGS_IN();
   2375     PUSH32(esp, 0x20u); /* 0x36096158: push 0x20 */
   2376     RECOMP_ICALL(0x3615FD6Au); /* 0x3609615A: call 0x3615fd6a */ /* not lifted */
   2377     RECOMP_FLAGS_IN();
   2378     esi = eax; /* 0x3609615F: mov esi, eax */
   2379     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2380     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2381     esp = esp + 0xCu; /* 0x36096161: add esp, 0xc */
   2382     _flag_k = FK_ADD;
   2383     MEM32(ebp + 0x8) = esi; /* 0x36096164: mov dword ptr [ebp + 8], esi */
   2384     /* test esi, esi */ /* 0x36096167: test esi, esi */
   2385     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2386     _cf = 0;
   2387     _flag_k = FK_TEST;
   2388     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36096169: mov byte ptr [ebp - 4], 1 */
   2389     if (TEST_Z(_flag_a, _flag_b)) goto L_36096187; /* 0x3609616D: je 0x36096187 */
   2390 L_3609616F:
   2391     eax = ebp + (-0x58); /* 0x3609616F: lea eax, [ebp - 0x58] */
   2392     PUSH32(esp, eax); /* 0x36096172: push eax */
   2393     ecx = ebp + (-0x14); /* 0x36096173: lea ecx, [ebp - 0x14] */
   2394     PUSH32(esp, ecx); /* 0x36096176: push ecx */
   2395     ecx = esi; /* 0x36096177: mov ecx, esi */
   2396     RECOMP_ICALL(MEM32(0x3616FB3C)); /* 0x36096179: call dword ptr [0x3616fb3c] */
   2397     RECOMP_FLAGS_IN();
   2398     MEM32(esi) = 0x36172FB8u; /* 0x3609617F: mov dword ptr [esi], 0x36172fb8 */
   2399     goto L_36096189; /* 0x36096185: jmp 0x36096189 */
   2400 L_36096187:
   2401     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2402     esi = 0; /* 0x36096187: xor esi, esi */
   2403     _cf = 0;
   2404     _flag_k = FK_TEST;
   2405 L_36096189:
   2406     PUSH32(esp, esi); /* 0x36096189: push esi */
   2407     ecx = edi; /* 0x3609618A: mov ecx, edi */
   2408     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609618C: mov byte ptr [ebp - 4], 0 */
   2409     RECOMP_ICALL(MEM32(0x3616FB04)); /* 0x36096190: call dword ptr [0x3616fb04] */
   2410     RECOMP_FLAGS_IN();
   2411     ecx = esi; /* 0x36096196: mov ecx, esi */
   2412     RECOMP_ICALL(MEM32(0x3616FB14)); /* 0x36096198: call dword ptr [0x3616fb14] */
   2413     RECOMP_FLAGS_IN();
   2414     ecx = ebp + (-0x58); /* 0x3609619E: lea ecx, [ebp - 0x58] */
   2415     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360961A1: mov dword ptr [ebp - 4], 0xffffffff */
   2416     RECOMP_ICALL(MEM32(0x3616FAB4)); /* 0x360961A8: call dword ptr [0x3616fab4] */
   2417     RECOMP_FLAGS_IN();
   2418     ecx = MEM32(ebp + (-0xC)); /* 0x360961AE: mov ecx, dword ptr [ebp - 0xc] */
   2419     edi = POP32_VAL(esp); /* 0x360961B1: pop edi */
   2420     esi = POP32_VAL(esp); /* 0x360961B2: pop esi */
   2421     MEM32(FS_BASE + (0)) = ecx; /* 0x360961B3: mov dword ptr fs:[0], ecx */
   2422     esp = ebp; /* 0x360961BA: mov esp, ebp */
   2423     ebp = POP32_VAL(esp); /* 0x360961BC: pop ebp */
   2424     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360961BD: ret 8 */
   2425     RECOMP_REGS_OUT();
   2426 }
   2427 
   2428 void sub_36096189(void) {
   2429     int _fpu_cmp = 0;
   2430     uint32_t _cf = 0;
   2431     int _df = 1;
   2432     uint32_t _flag_k = FK_NONE;
   2433     uint32_t _flag_a = 0, _flag_b = 0;
   2434     uint32_t _itail_tgt = 0;
   2435     RECOMP_REGS_LOCALS
   2436     RECOMP_ENTER(0x36096189u);
   2437 
   2438 L_36096189:
   2439     PUSH32(esp, esi); /* 0x36096189: push esi */
   2440     ecx = edi; /* 0x3609618A: mov ecx, edi */
   2441     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609618C: mov byte ptr [ebp - 4], 0 */
   2442     RECOMP_ICALL(MEM32(0x3616FB04)); /* 0x36096190: call dword ptr [0x3616fb04] */
   2443     RECOMP_FLAGS_IN();
   2444     ecx = esi; /* 0x36096196: mov ecx, esi */
   2445     RECOMP_ICALL(MEM32(0x3616FB14)); /* 0x36096198: call dword ptr [0x3616fb14] */
   2446     RECOMP_FLAGS_IN();
   2447     ecx = ebp + (-0x58); /* 0x3609619E: lea ecx, [ebp - 0x58] */
   2448     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360961A1: mov dword ptr [ebp - 4], 0xffffffff */
   2449     RECOMP_ICALL(MEM32(0x3616FAB4)); /* 0x360961A8: call dword ptr [0x3616fab4] */
   2450     RECOMP_FLAGS_IN();
   2451     ecx = MEM32(ebp + (-0xC)); /* 0x360961AE: mov ecx, dword ptr [ebp - 0xc] */
   2452     edi = POP32_VAL(esp); /* 0x360961B1: pop edi */
   2453     esi = POP32_VAL(esp); /* 0x360961B2: pop esi */
   2454     MEM32(FS_BASE + (0)) = ecx; /* 0x360961B3: mov dword ptr fs:[0], ecx */
   2455     esp = ebp; /* 0x360961BA: mov esp, ebp */
   2456     ebp = POP32_VAL(esp); /* 0x360961BC: pop ebp */
   2457     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360961BD: ret 8 */
   2458     RECOMP_REGS_OUT();
   2459 }
   2460 
   2461 void sub_360961C0(void) {
   2462     int _fpu_cmp = 0;
   2463     uint32_t _cf = 0;
   2464     int _df = 1;
   2465     uint32_t _flag_k = FK_NONE;
   2466     uint32_t _flag_a = 0, _flag_b = 0;
   2467     uint32_t _itail_tgt = 0;
   2468     RECOMP_REGS_LOCALS
   2469     RECOMP_ENTER(0x360961C0u);
   2470 
   2471 L_360961C0:
   2472     PUSH32(esp, ebp); /* 0x360961C0: push ebp */
   2473     ebp = esp; /* 0x360961C1: mov ebp, esp */
   2474     PUSH32(esp, esi); /* 0x360961C3: push esi */
   2475     esi = ecx; /* 0x360961C4: mov esi, ecx */
   2476     RECOMP_ICALL(MEM32(0x3616FB40)); /* 0x360961C6: call dword ptr [0x3616fb40] */
   2477     RECOMP_FLAGS_IN();
   2478     /* test MEM8(ebp + 0x8), 1 */ /* 0x360961CC: test byte ptr [ebp + 8], 1 */
   2479     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   2480     _cf = 0;
   2481     _flag_k = FK_NARROW(FK_TEST, 24);
   2482     if (TEST_Z(_flag_a, _flag_b)) goto L_360961DB; /* 0x360961D0: je 0x360961db */
   2483 L_360961D2:
   2484     PUSH32(esp, esi); /* 0x360961D2: push esi */
   2485     RECOMP_ICALL(0x3615FCC4u); /* 0x360961D3: call 0x3615fcc4 */ /* not lifted */
   2486     RECOMP_FLAGS_IN();
   2487     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2488     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2489     esp = esp + 4; /* 0x360961D8: add esp, 4 */
   2490     _flag_k = FK_ADD;
   2491 L_360961DB:
   2492     eax = esi; /* 0x360961DB: mov eax, esi */
   2493     esi = POP32_VAL(esp); /* 0x360961DD: pop esi */
   2494     ebp = POP32_VAL(esp); /* 0x360961DE: pop ebp */
   2495     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360961DF: ret 4 */
   2496     RECOMP_REGS_OUT();
   2497 }
   2498 
   2499 void sub_360961F0(void) {
   2500     int _fpu_cmp = 0;
   2501     uint32_t _cf = 0;
   2502     int _df = 1;
   2503     uint32_t _flag_k = FK_NONE;
   2504     uint32_t _flag_a = 0, _flag_b = 0;
   2505     uint32_t _itail_tgt = 0;
   2506     RECOMP_REGS_LOCALS
   2507     RECOMP_ENTER(0x360961F0u);
   2508 
   2509 L_360961F0:
   2510     eax = ecx; /* 0x360961F0: mov eax, ecx */
   2511     _flag_a = (uint32_t)(MEM32(eax + 0x20)); _flag_b = (uint32_t)(1);
   2512     MEM32(eax + 0x20) = MEM32(eax + 0x20) + 1; /* 0x360961F2: inc dword ptr [eax + 0x20] */
   2513     _flag_k = FK_INC;
   2514     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360961F5: ret  */
   2515     RECOMP_REGS_OUT();
   2516 }
   2517 
   2518 void sub_36096200(void) {
   2519     int _fpu_cmp = 0;
   2520     uint32_t _cf = 0;
   2521     int _df = 1;
   2522     uint32_t _flag_k = FK_NONE;
   2523     uint32_t _flag_a = 0, _flag_b = 0;
   2524     uint32_t _itail_tgt = 0;
   2525     RECOMP_REGS_LOCALS
   2526     RECOMP_ENTER(0x36096200u);
   2527 
   2528 L_36096200:
   2529     PUSH32(esp, ebx); /* 0x36096200: push ebx */
   2530     PUSH32(esp, esi); /* 0x36096201: push esi */
   2531     PUSH32(esp, edi); /* 0x36096202: push edi */
   2532     edi = ecx; /* 0x36096203: mov edi, ecx */
   2533     ebx = MEM32(edi + 0x4); /* 0x36096205: mov ebx, dword ptr [edi + 4] */
   2534     esi = MEM32(ebx); /* 0x36096208: mov esi, dword ptr [ebx] */
   2535     /* cmp esi, ebx */ /* 0x3609620A: cmp esi, ebx */
   2536     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2538     _flag_k = FK_CMP;
   2539     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096235; /* 0x3609620C: je 0x36096235 */
   2540 L_3609620E:
   2541     eax = esi; /* 0x3609620E: mov eax, esi */
   2542     ecx = MEM32(eax + 0x4); /* 0x36096210: mov ecx, dword ptr [eax + 4] */
   2543     edx = MEM32(eax); /* 0x36096213: mov edx, dword ptr [eax] */
   2544     esi = MEM32(esi); /* 0x36096215: mov esi, dword ptr [esi] */
   2545     MEM32(ecx) = edx; /* 0x36096217: mov dword ptr [ecx], edx */
   2546     ecx = MEM32(eax); /* 0x36096219: mov ecx, dword ptr [eax] */
   2547     edx = MEM32(eax + 0x4); /* 0x3609621B: mov edx, dword ptr [eax + 4] */
   2548     PUSH32(esp, eax); /* 0x3609621E: push eax */
   2549     MEM32(ecx + 0x4) = edx; /* 0x3609621F: mov dword ptr [ecx + 4], edx */
   2550     RECOMP_ICALL(0x3615FCC4u); /* 0x36096222: call 0x3615fcc4 */ /* not lifted */
   2551     RECOMP_FLAGS_IN();
   2552     ecx = MEM32(edi + 0x8); /* 0x36096227: mov ecx, dword ptr [edi + 8] */
   2553     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2554     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2555     esp = esp + 4; /* 0x3609622A: add esp, 4 */
   2556     _flag_k = FK_ADD;
   2557     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2558     ecx = ecx - 1; /* 0x3609622D: dec ecx */
   2559     _flag_k = FK_DEC;
   2560     /* cmp esi, ebx */ /* 0x3609622E: cmp esi, ebx */
   2561     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2562     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2563     _flag_k = FK_CMP;
   2564     MEM32(edi + 0x8) = ecx; /* 0x36096230: mov dword ptr [edi + 8], ecx */
   2565     RECOMP_BACKEDGE();
   2566     if (CMP_NE(_flag_a, _flag_b)) goto L_3609620E; /* 0x36096233: jne 0x3609620e */
   2567 L_36096235:
   2568     eax = MEM32(edi + 0x4); /* 0x36096235: mov eax, dword ptr [edi + 4] */
   2569     PUSH32(esp, eax); /* 0x36096238: push eax */
   2570     RECOMP_ICALL(0x3615FCC4u); /* 0x36096239: call 0x3615fcc4 */ /* not lifted */
   2571     RECOMP_FLAGS_IN();
   2572     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2573     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2574     esp = esp + 4; /* 0x3609623E: add esp, 4 */
   2575     _flag_k = FK_ADD;
   2576     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2577     eax = 0; /* 0x36096241: xor eax, eax */
   2578     _cf = 0;
   2579     _flag_k = FK_TEST;
   2580     MEM32(edi + 0x4) = eax; /* 0x36096243: mov dword ptr [edi + 4], eax */
   2581     MEM32(edi + 0x8) = eax; /* 0x36096246: mov dword ptr [edi + 8], eax */
   2582     edi = POP32_VAL(esp); /* 0x36096249: pop edi */
   2583     esi = POP32_VAL(esp); /* 0x3609624A: pop esi */
   2584     ebx = POP32_VAL(esp); /* 0x3609624B: pop ebx */
   2585     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609624C: ret  */
   2586     RECOMP_REGS_OUT();
   2587 }
   2588 
   2589 void sub_36096250(void) {
   2590     int _fpu_cmp = 0;
   2591     uint32_t _cf = 0;
   2592     int _df = 1;
   2593     uint32_t _flag_k = FK_NONE;
   2594     uint32_t _flag_a = 0, _flag_b = 0;
   2595     uint32_t _itail_tgt = 0;
   2596     RECOMP_REGS_LOCALS
   2597     RECOMP_ENTER(0x36096250u);
   2598 
   2599 L_36096250:
   2600     PUSH32(esp, ebp); /* 0x36096250: push ebp */
   2601     ebp = esp; /* 0x36096251: mov ebp, esp */
   2602     eax = MEM32(ebp + 0xC); /* 0x36096253: mov eax, dword ptr [ebp + 0xc] */
   2603     edx = MEM32(ebp + 0x8); /* 0x36096256: mov edx, dword ptr [ebp + 8] */
   2604     PUSH32(esp, ebx); /* 0x36096259: push ebx */
   2605     PUSH32(esp, esi); /* 0x3609625A: push esi */
   2606     esi = ecx; /* 0x3609625B: mov esi, ecx */
   2607     SET_LO8(ecx, MEM8(eax)); /* 0x3609625D: mov cl, byte ptr [eax] */
   2608     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3609625F: mov byte ptr [esi], cl */
   2609     SET_LO8(eax, MEM8(edx)); /* 0x36096261: mov al, byte ptr [edx] */
   2610     PUSH32(esp, edi); /* 0x36096263: push edi */
   2611     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2612     ebx = 0; /* 0x36096264: xor ebx, ebx */
   2613     _cf = 0;
   2614     _flag_k = FK_TEST;
   2615     PUSH32(esp, 0x18u); /* 0x36096266: push 0x18 */
   2616     MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x36096268: mov byte ptr [esi + 1], al */
   2617     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3609626B: mov byte ptr [esi + 0xc], bl */
   2618     RECOMP_ICALL(0x3615FD6Au); /* 0x3609626E: call 0x3615fd6a */ /* not lifted */
   2619     RECOMP_FLAGS_IN();
   2620     MEM32(eax + 0x4) = ebx; /* 0x36096273: mov dword ptr [eax + 4], ebx */
   2621     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x36096276: mov byte ptr [eax + 0x15], bl */
   2622     SET_LO8(ecx, 1); /* 0x36096279: mov cl, 1 */
   2623     MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3609627B: mov byte ptr [eax + 0x14], cl */
   2624     MEM32(esi + 0x8) = eax; /* 0x3609627E: mov dword ptr [esi + 8], eax */
   2625     MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x36096281: mov byte ptr [eax + 0x15], cl */
   2626     ecx = MEM32(esi + 0x8); /* 0x36096284: mov ecx, dword ptr [esi + 8] */
   2627     MEM32(ecx) = ebx; /* 0x36096287: mov dword ptr [ecx], ebx */
   2628     edx = MEM32(esi + 0x8); /* 0x36096289: mov edx, dword ptr [esi + 8] */
   2629     MEM32(edx + 0x8) = ebx; /* 0x3609628C: mov dword ptr [edx + 8], ebx */
   2630     edi = MEM32(esi + 0x8); /* 0x3609628F: mov edi, dword ptr [esi + 8] */
   2631     PUSH32(esp, 0x18u); /* 0x36096292: push 0x18 */
   2632     RECOMP_ICALL(0x3615FD6Au); /* 0x36096294: call 0x3615fd6a */ /* not lifted */
   2633     RECOMP_FLAGS_IN();
   2634     MEM32(eax + 0x4) = edi; /* 0x36096299: mov dword ptr [eax + 4], edi */
   2635     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3609629C: mov byte ptr [eax + 0x14], bl */
   2636     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3609629F: mov byte ptr [eax + 0x15], bl */
   2637     MEM32(esi + 0x4) = eax; /* 0x360962A2: mov dword ptr [esi + 4], eax */
   2638     MEM32(eax) = eax; /* 0x360962A5: mov dword ptr [eax], eax */
   2639     eax = MEM32(esi + 0x4); /* 0x360962A7: mov eax, dword ptr [esi + 4] */
   2640     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2641     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2642     esp = esp + 8; /* 0x360962AA: add esp, 8 */
   2643     _flag_k = FK_ADD;
   2644     MEM32(eax + 0x8) = eax; /* 0x360962AD: mov dword ptr [eax + 8], eax */
   2645     edi = POP32_VAL(esp); /* 0x360962B0: pop edi */
   2646     MEM32(esi + 0x10) = ebx; /* 0x360962B1: mov dword ptr [esi + 0x10], ebx */
   2647     eax = esi; /* 0x360962B4: mov eax, esi */
   2648     esi = POP32_VAL(esp); /* 0x360962B6: pop esi */
   2649     ebx = POP32_VAL(esp); /* 0x360962B7: pop ebx */
   2650     ebp = POP32_VAL(esp); /* 0x360962B8: pop ebp */
   2651     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360962B9: ret 8 */
   2652     RECOMP_REGS_OUT();
   2653 }
   2654 
   2655 void sub_360962C0(void) {
   2656     int _fpu_cmp = 0;
   2657     uint32_t _cf = 0;
   2658     int _df = 1;
   2659     uint32_t _flag_k = FK_NONE;
   2660     uint32_t _flag_a = 0, _flag_b = 0;
   2661     uint32_t _itail_tgt = 0;
   2662     RECOMP_REGS_LOCALS
   2663     RECOMP_ENTER(0x360962C0u);
   2664 
   2665 L_360962C0:
   2666     PUSH32(esp, ebp); /* 0x360962C0: push ebp */
   2667     ebp = esp; /* 0x360962C1: mov ebp, esp */
   2668     PUSH32(esp, ebx); /* 0x360962C3: push ebx */
   2669     ebx = MEM32(ebp + 0x10); /* 0x360962C4: mov ebx, dword ptr [ebp + 0x10] */
   2670     PUSH32(esp, esi); /* 0x360962C7: push esi */
   2671     esi = ecx; /* 0x360962C8: mov esi, ecx */
   2672     eax = MEM32(esi + 0x10); /* 0x360962CA: mov eax, dword ptr [esi + 0x10] */
   2673     /* test eax, eax */ /* 0x360962CD: test eax, eax */
   2674     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2675     _cf = 0;
   2676     _flag_k = FK_TEST;
   2677     ecx = MEM32(ebp + 0xC); /* 0x360962CF: mov ecx, dword ptr [ebp + 0xc] */
   2678     PUSH32(esp, edi); /* 0x360962D2: push edi */
   2679     if (TEST_Z(_flag_a, _flag_b)) goto L_36096335; /* 0x360962D3: je 0x36096335 */
   2680 L_360962D5:
   2681     eax = MEM32(esi + 0x4); /* 0x360962D5: mov eax, dword ptr [esi + 4] */
   2682     /* cmp ecx, MEM32(eax) */ /* 0x360962D8: cmp ecx, dword ptr [eax] */
   2683     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   2684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2685     _flag_k = FK_CMP;
   2686     if (CMP_NE(_flag_a, _flag_b)) goto L_36096335; /* 0x360962DA: jne 0x36096335 */
   2687 L_360962DC:
   2688     /* cmp ebx, eax */ /* 0x360962DC: cmp ebx, eax */
   2689     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   2690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2691     _flag_k = FK_CMP;
   2692     if (CMP_NE(_flag_a, _flag_b)) goto L_36096335; /* 0x360962DE: jne 0x36096335 */
   2693 L_360962E0:
   2694     ebx = MEM32(eax + 0x4); /* 0x360962E0: mov ebx, dword ptr [eax + 4] */
   2695     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360962E3: cmp ebx, dword ptr [esi + 8] */
   2696     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2698     _flag_k = FK_CMP;
   2699     edi = ebx; /* 0x360962E6: mov edi, ebx */
   2700     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096309; /* 0x360962E8: je 0x36096309 */
   2701 L_360962EA:
   2702     eax = MEM32(edi + 0x8); /* 0x360962EA: mov eax, dword ptr [edi + 8] */
   2703     PUSH32(esp, eax); /* 0x360962ED: push eax */
   2704     ecx = esi; /* 0x360962EE: mov ecx, esi */
   2705     RECOMP_ICALL(0x36096560u); /* 0x360962F0: call 0x36096560 */ /* not lifted */
   2706     RECOMP_FLAGS_IN();
   2707     edi = MEM32(edi); /* 0x360962F5: mov edi, dword ptr [edi] */
   2708     PUSH32(esp, ebx); /* 0x360962F7: push ebx */
   2709     RECOMP_ICALL(0x3615FCC4u); /* 0x360962F8: call 0x3615fcc4 */ /* not lifted */
   2710     RECOMP_FLAGS_IN();
   2711     eax = MEM32(esi + 0x8); /* 0x360962FD: mov eax, dword ptr [esi + 8] */
   2712     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2713     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2714     esp = esp + 4; /* 0x36096300: add esp, 4 */
   2715     _flag_k = FK_ADD;
   2716     /* cmp edi, eax */ /* 0x36096303: cmp edi, eax */
   2717     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2719     _flag_k = FK_CMP;
   2720     ebx = edi; /* 0x36096305: mov ebx, edi */
   2721     RECOMP_BACKEDGE();
   2722     if (CMP_NE(_flag_a, _flag_b)) goto L_360962EA; /* 0x36096307: jne 0x360962ea */
   2723 L_36096309:
   2724     ecx = MEM32(esi + 0x4); /* 0x36096309: mov ecx, dword ptr [esi + 4] */
   2725     edx = MEM32(esi + 0x8); /* 0x3609630C: mov edx, dword ptr [esi + 8] */
   2726     MEM32(ecx + 0x4) = edx; /* 0x3609630F: mov dword ptr [ecx + 4], edx */
   2727     eax = MEM32(esi + 0x4); /* 0x36096312: mov eax, dword ptr [esi + 4] */
   2728     MEM32(esi + 0x10) = 0; /* 0x36096315: mov dword ptr [esi + 0x10], 0 */
   2729     MEM32(eax) = eax; /* 0x3609631C: mov dword ptr [eax], eax */
   2730     eax = MEM32(esi + 0x4); /* 0x3609631E: mov eax, dword ptr [esi + 4] */
   2731     MEM32(eax + 0x8) = eax; /* 0x36096321: mov dword ptr [eax + 8], eax */
   2732     eax = MEM32(esi + 0x4); /* 0x36096324: mov eax, dword ptr [esi + 4] */
   2733     ecx = MEM32(eax); /* 0x36096327: mov ecx, dword ptr [eax] */
   2734     eax = MEM32(ebp + 0x8); /* 0x36096329: mov eax, dword ptr [ebp + 8] */
   2735     edi = POP32_VAL(esp); /* 0x3609632C: pop edi */
   2736     esi = POP32_VAL(esp); /* 0x3609632D: pop esi */
   2737     MEM32(eax) = ecx; /* 0x3609632E: mov dword ptr [eax], ecx */
   2738     ebx = POP32_VAL(esp); /* 0x36096330: pop ebx */
   2739     ebp = POP32_VAL(esp); /* 0x36096331: pop ebp */
   2740     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36096332: ret 0xc */
   2741 L_36096335:
   2742     /* cmp ecx, ebx */ /* 0x36096335: cmp ecx, ebx */
   2743     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2745     _flag_k = FK_CMP;
   2746     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096356; /* 0x36096337: je 0x36096356 */
   2747 L_36096339:
   2748     edi = ecx; /* 0x36096339: mov edi, ecx */
   2749     ecx = ebp + 0xC; /* 0x3609633B: lea ecx, [ebp + 0xc] */
   2750     RECOMP_ICALL(0x36096C20u); /* 0x3609633E: call 0x36096c20 */ /* not lifted */
   2751     RECOMP_FLAGS_IN();
   2752     PUSH32(esp, edi); /* 0x36096343: push edi */
   2753     ecx = ebp + 0x10; /* 0x36096344: lea ecx, [ebp + 0x10] */
   2754     PUSH32(esp, ecx); /* 0x36096347: push ecx */
   2755     ecx = esi; /* 0x36096348: mov ecx, esi */
   2756     RECOMP_ICALL(0x3603ECC0u); /* 0x3609634A: call 0x3603ecc0 */ /* not lifted */
   2757     RECOMP_FLAGS_IN();
   2758     ecx = MEM32(ebp + 0xC); /* 0x3609634F: mov ecx, dword ptr [ebp + 0xc] */
   2759     /* cmp ecx, ebx */ /* 0x36096352: cmp ecx, ebx */
   2760     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2762     _flag_k = FK_CMP;
   2763     RECOMP_BACKEDGE();
   2764     if (CMP_NE(_flag_a, _flag_b)) goto L_36096339; /* 0x36096354: jne 0x36096339 */
   2765 L_36096356:
   2766     eax = MEM32(ebp + 0x8); /* 0x36096356: mov eax, dword ptr [ebp + 8] */
   2767     edi = POP32_VAL(esp); /* 0x36096359: pop edi */
   2768     esi = POP32_VAL(esp); /* 0x3609635A: pop esi */
   2769     MEM32(eax) = ecx; /* 0x3609635B: mov dword ptr [eax], ecx */
   2770     ebx = POP32_VAL(esp); /* 0x3609635D: pop ebx */
   2771     ebp = POP32_VAL(esp); /* 0x3609635E: pop ebp */
   2772     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3609635F: ret 0xc */
   2773     RECOMP_REGS_OUT();
   2774 }
   2775 
   2776 void sub_36096370(void) {
   2777     int _fpu_cmp = 0;
   2778     uint32_t _cf = 0;
   2779     int _df = 1;
   2780     uint32_t _flag_k = FK_NONE;
   2781     uint32_t _flag_a = 0, _flag_b = 0;
   2782     uint32_t _itail_tgt = 0;
   2783     RECOMP_REGS_LOCALS
   2784     RECOMP_ENTER(0x36096370u);
   2785 
   2786 L_36096370:
   2787     PUSH32(esp, ebp); /* 0x36096370: push ebp */
   2788     ebp = esp; /* 0x36096371: mov ebp, esp */
   2789     PUSH32(esp, ecx); /* 0x36096373: push ecx */
   2790     PUSH32(esp, ebx); /* 0x36096374: push ebx */
   2791     PUSH32(esp, esi); /* 0x36096375: push esi */
   2792     ebx = ecx; /* 0x36096376: mov ebx, ecx */
   2793     eax = MEM32(ebx + 0x8); /* 0x36096378: mov eax, dword ptr [ebx + 8] */
   2794     PUSH32(esp, edi); /* 0x3609637B: push edi */
   2795     edi = MEM32(ebx + 0x4); /* 0x3609637C: mov edi, dword ptr [ebx + 4] */
   2796     esi = MEM32(edi + 0x4); /* 0x3609637F: mov esi, dword ptr [edi + 4] */
   2797     /* cmp esi, eax */ /* 0x36096382: cmp esi, eax */
   2798     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2799     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2800     _flag_k = FK_CMP;
   2801     if (CMP_EQ(_flag_a, _flag_b)) goto L_360963A4; /* 0x36096384: je 0x360963a4 */
   2802 L_36096386:
   2803     eax = MEM32(ebp + 0xC); /* 0x36096386: mov eax, dword ptr [ebp + 0xc] */
   2804     PUSH32(esp, eax); /* 0x36096389: push eax */
   2805     ecx = esi + 0xC; /* 0x3609638A: lea ecx, [esi + 0xc] */
   2806     RECOMP_ICALL(0x3603F770u); /* 0x3609638D: call 0x3603f770 */ /* not lifted */
   2807     RECOMP_FLAGS_IN();
   2808     /* test LO8(eax), LO8(eax) */ /* 0x36096392: test al, al */
   2809     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2810     _cf = 0;
   2811     _flag_k = FK_NARROW(FK_TEST, 24);
   2812     if (TEST_Z(_flag_a, _flag_b)) goto L_3609639B; /* 0x36096394: je 0x3609639b */
   2813 L_36096396:
   2814     esi = MEM32(esi + 0x8); /* 0x36096396: mov esi, dword ptr [esi + 8] */
   2815     goto L_3609639F; /* 0x36096399: jmp 0x3609639f */
   2816 L_3609639B:
   2817     edi = esi; /* 0x3609639B: mov edi, esi */
   2818     esi = MEM32(esi); /* 0x3609639D: mov esi, dword ptr [esi] */
   2819 L_3609639F:
   2820     /* cmp esi, MEM32(ebx + 0x8) */ /* 0x3609639F: cmp esi, dword ptr [ebx + 8] */
   2821     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8));
   2822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2823     _flag_k = FK_CMP;
   2824     RECOMP_BACKEDGE();
   2825     if (CMP_NE(_flag_a, _flag_b)) goto L_36096386; /* 0x360963A2: jne 0x36096386 */
   2826 L_360963A4:
   2827     ebx = MEM32(ebx + 0x4); /* 0x360963A4: mov ebx, dword ptr [ebx + 4] */
   2828     /* cmp edi, ebx */ /* 0x360963A7: cmp edi, ebx */
   2829     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2831     _flag_k = FK_CMP;
   2832     MEM32(ebp + (-0x4)) = edi; /* 0x360963A9: mov dword ptr [ebp - 4], edi */
   2833     if (CMP_EQ(_flag_a, _flag_b)) goto L_360963E1; /* 0x360963AC: je 0x360963e1 */
   2834 L_360963AE:
   2835     edx = MEM32(ebp + 0xC); /* 0x360963AE: mov edx, dword ptr [ebp + 0xc] */
   2836     eax = MEM32(edx); /* 0x360963B1: mov eax, dword ptr [edx] */
   2837     ecx = MEM32(edi + 0xC); /* 0x360963B3: mov ecx, dword ptr [edi + 0xc] */
   2838     /* cmp eax, ecx */ /* 0x360963B6: cmp eax, ecx */
   2839     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2841     _flag_k = FK_CMP;
   2842     if (CMP_NE(_flag_a, _flag_b)) goto L_360963C7; /* 0x360963B8: jne 0x360963c7 */
   2843 L_360963BA:
   2844     eax = MEM32(edi + 0x10); /* 0x360963BA: mov eax, dword ptr [edi + 0x10] */
   2845     ecx = MEM32(edx + 0x4); /* 0x360963BD: mov ecx, dword ptr [edx + 4] */
   2846     /* cmp ecx, eax */ /* 0x360963C0: cmp ecx, eax */
   2847     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2849     _flag_k = FK_CMP;
   2850     SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x360963C2: setb al */
   2851     goto L_360963CA; /* 0x360963C5: jmp 0x360963ca */
   2852 L_360963C7:
   2853     SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x360963C7: setl al */
   2854 L_360963CA:
   2855     /* test LO8(eax), LO8(eax) */ /* 0x360963CA: test al, al */
   2856     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2857     _cf = 0;
   2858     _flag_k = FK_NARROW(FK_TEST, 24);
   2859     if (TEST_NZ(_flag_a, _flag_b)) goto L_360963E1; /* 0x360963CC: jne 0x360963e1 */
   2860 L_360963CE:
   2861     eax = ebp + (-0x4); /* 0x360963CE: lea eax, [ebp - 4] */
   2862     edx = MEM32(eax); /* 0x360963D1: mov edx, dword ptr [eax] */
   2863     eax = MEM32(ebp + 0x8); /* 0x360963D3: mov eax, dword ptr [ebp + 8] */
   2864     edi = POP32_VAL(esp); /* 0x360963D6: pop edi */
   2865     esi = POP32_VAL(esp); /* 0x360963D7: pop esi */
   2866     MEM32(eax) = edx; /* 0x360963D8: mov dword ptr [eax], edx */
   2867     ebx = POP32_VAL(esp); /* 0x360963DA: pop ebx */
   2868     esp = ebp; /* 0x360963DB: mov esp, ebp */
   2869     ebp = POP32_VAL(esp); /* 0x360963DD: pop ebp */
   2870     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360963DE: ret 8 */
   2871 L_360963E1:
   2872     eax = ebp + 0xC; /* 0x360963E1: lea eax, [ebp + 0xc] */
   2873     MEM32(ebp + 0xC) = ebx; /* 0x360963E4: mov dword ptr [ebp + 0xc], ebx */
   2874     edx = MEM32(eax); /* 0x360963E7: mov edx, dword ptr [eax] */
   2875     eax = MEM32(ebp + 0x8); /* 0x360963E9: mov eax, dword ptr [ebp + 8] */
   2876     edi = POP32_VAL(esp); /* 0x360963EC: pop edi */
   2877     esi = POP32_VAL(esp); /* 0x360963ED: pop esi */
   2878     MEM32(eax) = edx; /* 0x360963EE: mov dword ptr [eax], edx */
   2879     ebx = POP32_VAL(esp); /* 0x360963F0: pop ebx */
   2880     esp = ebp; /* 0x360963F1: mov esp, ebp */
   2881     ebp = POP32_VAL(esp); /* 0x360963F3: pop ebp */
   2882     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360963F4: ret 8 */
   2883     RECOMP_REGS_OUT();
   2884 }
   2885 
   2886 void sub_36096400(void) {
   2887     int _fpu_cmp = 0;
   2888     uint32_t _cf = 0;
   2889     int _df = 1;
   2890     uint32_t _flag_k = FK_NONE;
   2891     uint32_t _flag_a = 0, _flag_b = 0;
   2892     uint32_t _itail_tgt = 0;
   2893     RECOMP_REGS_LOCALS
   2894     RECOMP_ENTER(0x36096400u);
   2895 
   2896 L_36096400:
   2897     PUSH32(esp, ebp); /* 0x36096400: push ebp */
   2898     ebp = esp; /* 0x36096401: mov ebp, esp */
   2899     PUSH32(esp, ebx); /* 0x36096403: push ebx */
   2900     ebx = MEM32(ebp + 0x10); /* 0x36096404: mov ebx, dword ptr [ebp + 0x10] */
   2901     PUSH32(esp, esi); /* 0x36096407: push esi */
   2902     esi = ecx; /* 0x36096408: mov esi, ecx */
   2903     eax = MEM32(esi + 0x10); /* 0x3609640A: mov eax, dword ptr [esi + 0x10] */
   2904     /* test eax, eax */ /* 0x3609640D: test eax, eax */
   2905     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2906     _cf = 0;
   2907     _flag_k = FK_TEST;
   2908     ecx = MEM32(ebp + 0xC); /* 0x3609640F: mov ecx, dword ptr [ebp + 0xc] */
   2909     PUSH32(esp, edi); /* 0x36096412: push edi */
   2910     if (TEST_Z(_flag_a, _flag_b)) goto L_36096475; /* 0x36096413: je 0x36096475 */
   2911 L_36096415:
   2912     eax = MEM32(esi + 0x4); /* 0x36096415: mov eax, dword ptr [esi + 4] */
   2913     /* cmp ecx, MEM32(eax) */ /* 0x36096418: cmp ecx, dword ptr [eax] */
   2914     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   2915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2916     _flag_k = FK_CMP;
   2917     if (CMP_NE(_flag_a, _flag_b)) goto L_36096475; /* 0x3609641A: jne 0x36096475 */
   2918 L_3609641C:
   2919     /* cmp ebx, eax */ /* 0x3609641C: cmp ebx, eax */
   2920     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   2921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2922     _flag_k = FK_CMP;
   2923     if (CMP_NE(_flag_a, _flag_b)) goto L_36096475; /* 0x3609641E: jne 0x36096475 */
   2924 L_36096420:
   2925     ebx = MEM32(eax + 0x4); /* 0x36096420: mov ebx, dword ptr [eax + 4] */
   2926     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36096423: cmp ebx, dword ptr [esi + 8] */
   2927     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2928     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2929     _flag_k = FK_CMP;
   2930     edi = ebx; /* 0x36096426: mov edi, ebx */
   2931     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096449; /* 0x36096428: je 0x36096449 */
   2932 L_3609642A:
   2933     eax = MEM32(edi + 0x8); /* 0x3609642A: mov eax, dword ptr [edi + 8] */
   2934     PUSH32(esp, eax); /* 0x3609642D: push eax */
   2935     ecx = esi; /* 0x3609642E: mov ecx, esi */
   2936     RECOMP_ICALL(0x360965E0u); /* 0x36096430: call 0x360965e0 */ /* not lifted */
   2937     RECOMP_FLAGS_IN();
   2938     edi = MEM32(edi); /* 0x36096435: mov edi, dword ptr [edi] */
   2939     PUSH32(esp, ebx); /* 0x36096437: push ebx */
   2940     RECOMP_ICALL(0x3615FCC4u); /* 0x36096438: call 0x3615fcc4 */ /* not lifted */
   2941     RECOMP_FLAGS_IN();
   2942     eax = MEM32(esi + 0x8); /* 0x3609643D: mov eax, dword ptr [esi + 8] */
   2943     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2944     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2945     esp = esp + 4; /* 0x36096440: add esp, 4 */
   2946     _flag_k = FK_ADD;
   2947     /* cmp edi, eax */ /* 0x36096443: cmp edi, eax */
   2948     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2950     _flag_k = FK_CMP;
   2951     ebx = edi; /* 0x36096445: mov ebx, edi */
   2952     RECOMP_BACKEDGE();
   2953     if (CMP_NE(_flag_a, _flag_b)) goto L_3609642A; /* 0x36096447: jne 0x3609642a */
   2954 L_36096449:
   2955     ecx = MEM32(esi + 0x4); /* 0x36096449: mov ecx, dword ptr [esi + 4] */
   2956     edx = MEM32(esi + 0x8); /* 0x3609644C: mov edx, dword ptr [esi + 8] */
   2957     MEM32(ecx + 0x4) = edx; /* 0x3609644F: mov dword ptr [ecx + 4], edx */
   2958     eax = MEM32(esi + 0x4); /* 0x36096452: mov eax, dword ptr [esi + 4] */
   2959     MEM32(esi + 0x10) = 0; /* 0x36096455: mov dword ptr [esi + 0x10], 0 */
   2960     MEM32(eax) = eax; /* 0x3609645C: mov dword ptr [eax], eax */
   2961     eax = MEM32(esi + 0x4); /* 0x3609645E: mov eax, dword ptr [esi + 4] */
   2962     MEM32(eax + 0x8) = eax; /* 0x36096461: mov dword ptr [eax + 8], eax */
   2963     eax = MEM32(esi + 0x4); /* 0x36096464: mov eax, dword ptr [esi + 4] */
   2964     ecx = MEM32(eax); /* 0x36096467: mov ecx, dword ptr [eax] */
   2965     eax = MEM32(ebp + 0x8); /* 0x36096469: mov eax, dword ptr [ebp + 8] */
   2966     edi = POP32_VAL(esp); /* 0x3609646C: pop edi */
   2967     esi = POP32_VAL(esp); /* 0x3609646D: pop esi */
   2968     MEM32(eax) = ecx; /* 0x3609646E: mov dword ptr [eax], ecx */
   2969     ebx = POP32_VAL(esp); /* 0x36096470: pop ebx */
   2970     ebp = POP32_VAL(esp); /* 0x36096471: pop ebp */
   2971     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36096472: ret 0xc */
   2972 L_36096475:
   2973     /* cmp ecx, ebx */ /* 0x36096475: cmp ecx, ebx */
   2974     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2976     _flag_k = FK_CMP;
   2977     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096496; /* 0x36096477: je 0x36096496 */
   2978 L_36096479:
   2979     edi = ecx; /* 0x36096479: mov edi, ecx */
   2980     ecx = ebp + 0xC; /* 0x3609647B: lea ecx, [ebp + 0xc] */
   2981     RECOMP_ICALL(0x36064140u); /* 0x3609647E: call 0x36064140 */ /* not lifted */
   2982     RECOMP_FLAGS_IN();
   2983     PUSH32(esp, edi); /* 0x36096483: push edi */
   2984     ecx = ebp + 0x10; /* 0x36096484: lea ecx, [ebp + 0x10] */
   2985     PUSH32(esp, ecx); /* 0x36096487: push ecx */
   2986     ecx = esi; /* 0x36096488: mov ecx, esi */
   2987     RECOMP_ICALL(0x360588E0u); /* 0x3609648A: call 0x360588e0 */ /* not lifted */
   2988     RECOMP_FLAGS_IN();
   2989     ecx = MEM32(ebp + 0xC); /* 0x3609648F: mov ecx, dword ptr [ebp + 0xc] */
   2990     /* cmp ecx, ebx */ /* 0x36096492: cmp ecx, ebx */
   2991     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2993     _flag_k = FK_CMP;
   2994     RECOMP_BACKEDGE();
   2995     if (CMP_NE(_flag_a, _flag_b)) goto L_36096479; /* 0x36096494: jne 0x36096479 */
   2996 L_36096496:
   2997     eax = MEM32(ebp + 0x8); /* 0x36096496: mov eax, dword ptr [ebp + 8] */
   2998     edi = POP32_VAL(esp); /* 0x36096499: pop edi */
   2999     esi = POP32_VAL(esp); /* 0x3609649A: pop esi */
   3000     MEM32(eax) = ecx; /* 0x3609649B: mov dword ptr [eax], ecx */
   3001     ebx = POP32_VAL(esp); /* 0x3609649D: pop ebx */
   3002     ebp = POP32_VAL(esp); /* 0x3609649E: pop ebp */
   3003     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3609649F: ret 0xc */
   3004     RECOMP_REGS_OUT();
   3005 }
   3006 
   3007 void sub_360964B0(void) {
   3008     int _fpu_cmp = 0;
   3009     uint32_t _cf = 0;
   3010     int _df = 1;
   3011     uint32_t _flag_k = FK_NONE;
   3012     uint32_t _flag_a = 0, _flag_b = 0;
   3013     uint32_t _itail_tgt = 0;
   3014     RECOMP_REGS_LOCALS
   3015     RECOMP_ENTER(0x360964B0u);
   3016 
   3017 L_360964B0:
   3018     PUSH32(esp, ebp); /* 0x360964B0: push ebp */
   3019     ebp = esp; /* 0x360964B1: mov ebp, esp */
   3020     PUSH32(esp, ebx); /* 0x360964B3: push ebx */
   3021     ebx = MEM32(ebp + 0x10); /* 0x360964B4: mov ebx, dword ptr [ebp + 0x10] */
   3022     PUSH32(esp, esi); /* 0x360964B7: push esi */
   3023     esi = ecx; /* 0x360964B8: mov esi, ecx */
   3024     eax = MEM32(esi + 0x10); /* 0x360964BA: mov eax, dword ptr [esi + 0x10] */
   3025     /* test eax, eax */ /* 0x360964BD: test eax, eax */
   3026     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3027     _cf = 0;
   3028     _flag_k = FK_TEST;
   3029     ecx = MEM32(ebp + 0xC); /* 0x360964BF: mov ecx, dword ptr [ebp + 0xc] */
   3030     PUSH32(esp, edi); /* 0x360964C2: push edi */
   3031     if (TEST_Z(_flag_a, _flag_b)) goto L_3609652D; /* 0x360964C3: je 0x3609652d */
   3032 L_360964C5:
   3033     eax = MEM32(esi + 0x4); /* 0x360964C5: mov eax, dword ptr [esi + 4] */
   3034     /* cmp ecx, MEM32(eax) */ /* 0x360964C8: cmp ecx, dword ptr [eax] */
   3035     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   3036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3037     _flag_k = FK_CMP;
   3038     if (CMP_NE(_flag_a, _flag_b)) goto L_3609652D; /* 0x360964CA: jne 0x3609652d */
   3039 L_360964CC:
   3040     /* cmp ebx, eax */ /* 0x360964CC: cmp ebx, eax */
   3041     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   3042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3043     _flag_k = FK_CMP;
   3044     if (CMP_NE(_flag_a, _flag_b)) goto L_3609652D; /* 0x360964CE: jne 0x3609652d */
   3045 L_360964D0:
   3046     ebx = MEM32(eax + 0x4); /* 0x360964D0: mov ebx, dword ptr [eax + 4] */
   3047     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360964D3: cmp ebx, dword ptr [esi + 8] */
   3048     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3050     _flag_k = FK_CMP;
   3051     edi = ebx; /* 0x360964D6: mov edi, ebx */
   3052     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096501; /* 0x360964D8: je 0x36096501 */
   3053 L_360964DA:
   3054     eax = MEM32(edi + 0x8); /* 0x360964DA: mov eax, dword ptr [edi + 8] */
   3055     PUSH32(esp, eax); /* 0x360964DD: push eax */
   3056     ecx = esi; /* 0x360964DE: mov ecx, esi */
   3057     RECOMP_ICALL(0x360968D0u); /* 0x360964E0: call 0x360968d0 */ /* not lifted */
   3058     RECOMP_FLAGS_IN();
   3059     edi = MEM32(edi); /* 0x360964E5: mov edi, dword ptr [edi] */
   3060     ecx = ebx + 0xC; /* 0x360964E7: lea ecx, [ebx + 0xc] */
   3061     RECOMP_ICALL(0x36069900u); /* 0x360964EA: call 0x36069900 */ /* not lifted */
   3062     RECOMP_FLAGS_IN();
   3063     PUSH32(esp, ebx); /* 0x360964EF: push ebx */
   3064     RECOMP_ICALL(0x3615FCC4u); /* 0x360964F0: call 0x3615fcc4 */ /* not lifted */
   3065     RECOMP_FLAGS_IN();
   3066     eax = MEM32(esi + 0x8); /* 0x360964F5: mov eax, dword ptr [esi + 8] */
   3067     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3068     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3069     esp = esp + 4; /* 0x360964F8: add esp, 4 */
   3070     _flag_k = FK_ADD;
   3071     /* cmp edi, eax */ /* 0x360964FB: cmp edi, eax */
   3072     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3074     _flag_k = FK_CMP;
   3075     ebx = edi; /* 0x360964FD: mov ebx, edi */
   3076     RECOMP_BACKEDGE();
   3077     if (CMP_NE(_flag_a, _flag_b)) goto L_360964DA; /* 0x360964FF: jne 0x360964da */
   3078 L_36096501:
   3079     ecx = MEM32(esi + 0x4); /* 0x36096501: mov ecx, dword ptr [esi + 4] */
   3080     edx = MEM32(esi + 0x8); /* 0x36096504: mov edx, dword ptr [esi + 8] */
   3081     MEM32(ecx + 0x4) = edx; /* 0x36096507: mov dword ptr [ecx + 4], edx */
   3082     eax = MEM32(esi + 0x4); /* 0x3609650A: mov eax, dword ptr [esi + 4] */
   3083     MEM32(esi + 0x10) = 0; /* 0x3609650D: mov dword ptr [esi + 0x10], 0 */
   3084     MEM32(eax) = eax; /* 0x36096514: mov dword ptr [eax], eax */
   3085     eax = MEM32(esi + 0x4); /* 0x36096516: mov eax, dword ptr [esi + 4] */
   3086     MEM32(eax + 0x8) = eax; /* 0x36096519: mov dword ptr [eax + 8], eax */
   3087     eax = MEM32(esi + 0x4); /* 0x3609651C: mov eax, dword ptr [esi + 4] */
   3088     ecx = MEM32(eax); /* 0x3609651F: mov ecx, dword ptr [eax] */
   3089     eax = MEM32(ebp + 0x8); /* 0x36096521: mov eax, dword ptr [ebp + 8] */
   3090     edi = POP32_VAL(esp); /* 0x36096524: pop edi */
   3091     esi = POP32_VAL(esp); /* 0x36096525: pop esi */
   3092     MEM32(eax) = ecx; /* 0x36096526: mov dword ptr [eax], ecx */
   3093     ebx = POP32_VAL(esp); /* 0x36096528: pop ebx */
   3094     ebp = POP32_VAL(esp); /* 0x36096529: pop ebp */
   3095     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3609652A: ret 0xc */
   3096 L_3609652D:
   3097     /* cmp ecx, ebx */ /* 0x3609652D: cmp ecx, ebx */
   3098     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   3099     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3100     _flag_k = FK_CMP;
   3101     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609654E; /* 0x3609652F: je 0x3609654e */
   3102 L_36096531:
   3103     edi = ecx; /* 0x36096531: mov edi, ecx */
   3104     ecx = ebp + 0xC; /* 0x36096533: lea ecx, [ebp + 0xc] */
   3105     RECOMP_ICALL(0x361458D0u); /* 0x36096536: call 0x361458d0 */ /* not lifted */
   3106     RECOMP_FLAGS_IN();
   3107     PUSH32(esp, edi); /* 0x3609653B: push edi */
   3108     ecx = ebp + 0x10; /* 0x3609653C: lea ecx, [ebp + 0x10] */
   3109     PUSH32(esp, ecx); /* 0x3609653F: push ecx */
   3110     ecx = esi; /* 0x36096540: mov ecx, esi */
   3111     RECOMP_ICALL(0x36069F20u); /* 0x36096542: call 0x36069f20 */ /* not lifted */
   3112     RECOMP_FLAGS_IN();
   3113     ecx = MEM32(ebp + 0xC); /* 0x36096547: mov ecx, dword ptr [ebp + 0xc] */
   3114     /* cmp ecx, ebx */ /* 0x3609654A: cmp ecx, ebx */
   3115     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   3116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3117     _flag_k = FK_CMP;
   3118     RECOMP_BACKEDGE();
   3119     if (CMP_NE(_flag_a, _flag_b)) goto L_36096531; /* 0x3609654C: jne 0x36096531 */
   3120 L_3609654E:
   3121     eax = MEM32(ebp + 0x8); /* 0x3609654E: mov eax, dword ptr [ebp + 8] */
   3122     edi = POP32_VAL(esp); /* 0x36096551: pop edi */
   3123     esi = POP32_VAL(esp); /* 0x36096552: pop esi */
   3124     MEM32(eax) = ecx; /* 0x36096553: mov dword ptr [eax], ecx */
   3125     ebx = POP32_VAL(esp); /* 0x36096555: pop ebx */
   3126     ebp = POP32_VAL(esp); /* 0x36096556: pop ebp */
   3127     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36096557: ret 0xc */
   3128     RECOMP_REGS_OUT();
   3129 }
   3130 
   3131 void sub_36096560(void) {
   3132     int _fpu_cmp = 0;
   3133     uint32_t _cf = 0;
   3134     int _df = 1;
   3135     uint32_t _flag_k = FK_NONE;
   3136     uint32_t _flag_a = 0, _flag_b = 0;
   3137     uint32_t _itail_tgt = 0;
   3138     RECOMP_REGS_LOCALS
   3139     RECOMP_ENTER(0x36096560u);
   3140 
   3141 L_36096560:
   3142     PUSH32(esp, ebp); /* 0x36096560: push ebp */
   3143     ebp = esp; /* 0x36096561: mov ebp, esp */
   3144     PUSH32(esp, ebx); /* 0x36096563: push ebx */
   3145     PUSH32(esp, esi); /* 0x36096564: push esi */
   3146     ebx = ecx; /* 0x36096565: mov ebx, ecx */
   3147     eax = MEM32(ebx + 0x8); /* 0x36096567: mov eax, dword ptr [ebx + 8] */
   3148     PUSH32(esp, edi); /* 0x3609656A: push edi */
   3149     edi = MEM32(ebp + 0x8); /* 0x3609656B: mov edi, dword ptr [ebp + 8] */
   3150     /* cmp edi, eax */ /* 0x3609656E: cmp edi, eax */
   3151     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3153     _flag_k = FK_CMP;
   3154     esi = edi; /* 0x36096570: mov esi, edi */
   3155     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096593; /* 0x36096572: je 0x36096593 */
   3156 L_36096574:
   3157     eax = MEM32(esi + 0x8); /* 0x36096574: mov eax, dword ptr [esi + 8] */
   3158     PUSH32(esp, eax); /* 0x36096577: push eax */
   3159     ecx = ebx; /* 0x36096578: mov ecx, ebx */
   3160     RECOMP_ICALL(0x36096560u); /* 0x3609657A: call 0x36096560 */ /* not lifted */
   3161     RECOMP_FLAGS_IN();
   3162     esi = MEM32(esi); /* 0x3609657F: mov esi, dword ptr [esi] */
   3163     PUSH32(esp, edi); /* 0x36096581: push edi */
   3164     RECOMP_ICALL(0x3615FCC4u); /* 0x36096582: call 0x3615fcc4 */ /* not lifted */
   3165     RECOMP_FLAGS_IN();
   3166     eax = MEM32(ebx + 0x8); /* 0x36096587: mov eax, dword ptr [ebx + 8] */
   3167     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3168     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3169     esp = esp + 4; /* 0x3609658A: add esp, 4 */
   3170     _flag_k = FK_ADD;
   3171     /* cmp esi, eax */ /* 0x3609658D: cmp esi, eax */
   3172     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3174     _flag_k = FK_CMP;
   3175     edi = esi; /* 0x3609658F: mov edi, esi */
   3176     RECOMP_BACKEDGE();
   3177     if (CMP_NE(_flag_a, _flag_b)) goto L_36096574; /* 0x36096591: jne 0x36096574 */
   3178 L_36096593:
   3179     edi = POP32_VAL(esp); /* 0x36096593: pop edi */
   3180     esi = POP32_VAL(esp); /* 0x36096594: pop esi */
   3181     ebx = POP32_VAL(esp); /* 0x36096595: pop ebx */
   3182     ebp = POP32_VAL(esp); /* 0x36096596: pop ebp */
   3183     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36096597: ret 4 */
   3184     RECOMP_REGS_OUT();
   3185 }
   3186 
   3187 void sub_360965A0(void) {
   3188     int _fpu_cmp = 0;
   3189     uint32_t _cf = 0;
   3190     int _df = 1;
   3191     uint32_t _flag_k = FK_NONE;
   3192     uint32_t _flag_a = 0, _flag_b = 0;
   3193     uint32_t _itail_tgt = 0;
   3194     RECOMP_REGS_LOCALS
   3195     RECOMP_ENTER(0x360965A0u);
   3196 
   3197 L_360965A0:
   3198     PUSH32(esp, ebp); /* 0x360965A0: push ebp */
   3199     ebp = esp; /* 0x360965A1: mov ebp, esp */
   3200     PUSH32(esp, ebx); /* 0x360965A3: push ebx */
   3201     PUSH32(esp, esi); /* 0x360965A4: push esi */
   3202     ebx = ecx; /* 0x360965A5: mov ebx, ecx */
   3203     eax = MEM32(ebx + 0x8); /* 0x360965A7: mov eax, dword ptr [ebx + 8] */
   3204     PUSH32(esp, edi); /* 0x360965AA: push edi */
   3205     edi = MEM32(ebp + 0x8); /* 0x360965AB: mov edi, dword ptr [ebp + 8] */
   3206     /* cmp edi, eax */ /* 0x360965AE: cmp edi, eax */
   3207     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3209     _flag_k = FK_CMP;
   3210     esi = edi; /* 0x360965B0: mov esi, edi */
   3211     if (CMP_EQ(_flag_a, _flag_b)) goto L_360965D3; /* 0x360965B2: je 0x360965d3 */
   3212 L_360965B4:
   3213     eax = MEM32(esi + 0x8); /* 0x360965B4: mov eax, dword ptr [esi + 8] */
   3214     PUSH32(esp, eax); /* 0x360965B7: push eax */
   3215     ecx = ebx; /* 0x360965B8: mov ecx, ebx */
   3216     RECOMP_ICALL(0x360965A0u); /* 0x360965BA: call 0x360965a0 */ /* not lifted */
   3217     RECOMP_FLAGS_IN();
   3218     esi = MEM32(esi); /* 0x360965BF: mov esi, dword ptr [esi] */
   3219     PUSH32(esp, edi); /* 0x360965C1: push edi */
   3220     RECOMP_ICALL(0x3615FCC4u); /* 0x360965C2: call 0x3615fcc4 */ /* not lifted */
   3221     RECOMP_FLAGS_IN();
   3222     eax = MEM32(ebx + 0x8); /* 0x360965C7: mov eax, dword ptr [ebx + 8] */
   3223     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3224     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3225     esp = esp + 4; /* 0x360965CA: add esp, 4 */
   3226     _flag_k = FK_ADD;
   3227     /* cmp esi, eax */ /* 0x360965CD: cmp esi, eax */
   3228     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3229     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3230     _flag_k = FK_CMP;
   3231     edi = esi; /* 0x360965CF: mov edi, esi */
   3232     RECOMP_BACKEDGE();
   3233     if (CMP_NE(_flag_a, _flag_b)) goto L_360965B4; /* 0x360965D1: jne 0x360965b4 */
   3234 L_360965D3:
   3235     edi = POP32_VAL(esp); /* 0x360965D3: pop edi */
   3236     esi = POP32_VAL(esp); /* 0x360965D4: pop esi */
   3237     ebx = POP32_VAL(esp); /* 0x360965D5: pop ebx */
   3238     ebp = POP32_VAL(esp); /* 0x360965D6: pop ebp */
   3239     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360965D7: ret 4 */
   3240     RECOMP_REGS_OUT();
   3241 }
   3242 
   3243 void sub_360965E0(void) {
   3244     int _fpu_cmp = 0;
   3245     uint32_t _cf = 0;
   3246     int _df = 1;
   3247     uint32_t _flag_k = FK_NONE;
   3248     uint32_t _flag_a = 0, _flag_b = 0;
   3249     uint32_t _itail_tgt = 0;
   3250     RECOMP_REGS_LOCALS
   3251     RECOMP_ENTER(0x360965E0u);
   3252 
   3253 L_360965E0:
   3254     PUSH32(esp, ebp); /* 0x360965E0: push ebp */
   3255     ebp = esp; /* 0x360965E1: mov ebp, esp */
   3256     PUSH32(esp, ebx); /* 0x360965E3: push ebx */
   3257     PUSH32(esp, esi); /* 0x360965E4: push esi */
   3258     ebx = ecx; /* 0x360965E5: mov ebx, ecx */
   3259     eax = MEM32(ebx + 0x8); /* 0x360965E7: mov eax, dword ptr [ebx + 8] */
   3260     PUSH32(esp, edi); /* 0x360965EA: push edi */
   3261     edi = MEM32(ebp + 0x8); /* 0x360965EB: mov edi, dword ptr [ebp + 8] */
   3262     /* cmp edi, eax */ /* 0x360965EE: cmp edi, eax */
   3263     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3265     _flag_k = FK_CMP;
   3266     esi = edi; /* 0x360965F0: mov esi, edi */
   3267     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096613; /* 0x360965F2: je 0x36096613 */
   3268 L_360965F4:
   3269     eax = MEM32(esi + 0x8); /* 0x360965F4: mov eax, dword ptr [esi + 8] */
   3270     PUSH32(esp, eax); /* 0x360965F7: push eax */
   3271     ecx = ebx; /* 0x360965F8: mov ecx, ebx */
   3272     RECOMP_ICALL(0x360965E0u); /* 0x360965FA: call 0x360965e0 */ /* not lifted */
   3273     RECOMP_FLAGS_IN();
   3274     esi = MEM32(esi); /* 0x360965FF: mov esi, dword ptr [esi] */
   3275     PUSH32(esp, edi); /* 0x36096601: push edi */
   3276     RECOMP_ICALL(0x3615FCC4u); /* 0x36096602: call 0x3615fcc4 */ /* not lifted */
   3277     RECOMP_FLAGS_IN();
   3278     eax = MEM32(ebx + 0x8); /* 0x36096607: mov eax, dword ptr [ebx + 8] */
   3279     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3280     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3281     esp = esp + 4; /* 0x3609660A: add esp, 4 */
   3282     _flag_k = FK_ADD;
   3283     /* cmp esi, eax */ /* 0x3609660D: cmp esi, eax */
   3284     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3286     _flag_k = FK_CMP;
   3287     edi = esi; /* 0x3609660F: mov edi, esi */
   3288     RECOMP_BACKEDGE();
   3289     if (CMP_NE(_flag_a, _flag_b)) goto L_360965F4; /* 0x36096611: jne 0x360965f4 */
   3290 L_36096613:
   3291     edi = POP32_VAL(esp); /* 0x36096613: pop edi */
   3292     esi = POP32_VAL(esp); /* 0x36096614: pop esi */
   3293     ebx = POP32_VAL(esp); /* 0x36096615: pop ebx */
   3294     ebp = POP32_VAL(esp); /* 0x36096616: pop ebp */
   3295     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36096617: ret 4 */
   3296     RECOMP_REGS_OUT();
   3297 }
   3298 
   3299 void sub_36096620(void) {
   3300     int _fpu_cmp = 0;
   3301     uint32_t _cf = 0;
   3302     int _df = 1;
   3303     uint32_t _flag_k = FK_NONE;
   3304     uint32_t _flag_a = 0, _flag_b = 0;
   3305     uint32_t _itail_tgt = 0;
   3306     RECOMP_REGS_LOCALS
   3307     RECOMP_ENTER(0x36096620u);
   3308 
   3309 L_36096620:
   3310     PUSH32(esp, ebp); /* 0x36096620: push ebp */
   3311     ebp = esp; /* 0x36096621: mov ebp, esp */
   3312     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3314     esp = esp - 0xCu; /* 0x36096623: sub esp, 0xc */
   3315     _flag_k = FK_CMP;
   3316     PUSH32(esp, ebx); /* 0x36096626: push ebx */
   3317     PUSH32(esp, esi); /* 0x36096627: push esi */
   3318     PUSH32(esp, edi); /* 0x36096628: push edi */
   3319     edi = ecx; /* 0x36096629: mov edi, ecx */
   3320     esi = MEM32(edi + 0x4); /* 0x3609662B: mov esi, dword ptr [edi + 4] */
   3321     ebx = MEM32(esi + 0x4); /* 0x3609662E: mov ebx, dword ptr [esi + 4] */
   3322     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x36096631: cmp ebx, dword ptr [edi + 8] */
   3323     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3325     _flag_k = FK_CMP;
   3326     SET_LO8(eax, 1); /* 0x36096634: mov al, 1 */
   3327     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609665B; /* 0x36096636: je 0x3609665b */
   3328 L_36096638:
   3329     ecx = MEM32(ebp + 0xC); /* 0x36096638: mov ecx, dword ptr [ebp + 0xc] */
   3330     eax = ebx + 0xC; /* 0x3609663B: lea eax, [ebx + 0xc] */
   3331     PUSH32(esp, eax); /* 0x3609663E: push eax */
   3332     PUSH32(esp, ecx); /* 0x3609663F: push ecx */
   3333     esi = ebx; /* 0x36096640: mov esi, ebx */
   3334     RECOMP_ICALL(MEM32(0x3616F160)); /* 0x36096642: call dword ptr [0x3616f160] */
   3335     RECOMP_FLAGS_IN();
   3336     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3337     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3338     esp = esp + 8; /* 0x36096648: add esp, 8 */
   3339     _flag_k = FK_ADD;
   3340     /* test LO8(eax), LO8(eax) */ /* 0x3609664B: test al, al */
   3341     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3342     _cf = 0;
   3343     _flag_k = FK_NARROW(FK_TEST, 24);
   3344     if (TEST_Z(_flag_a, _flag_b)) goto L_36096653; /* 0x3609664D: je 0x36096653 */
   3345 L_3609664F:
   3346     ebx = MEM32(ebx); /* 0x3609664F: mov ebx, dword ptr [ebx] */
   3347     goto L_36096656; /* 0x36096651: jmp 0x36096656 */
   3348 L_36096653:
   3349     ebx = MEM32(ebx + 0x8); /* 0x36096653: mov ebx, dword ptr [ebx + 8] */
   3350 L_36096656:
   3351     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x36096656: cmp ebx, dword ptr [edi + 8] */
   3352     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3353     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3354     _flag_k = FK_CMP;
   3355     RECOMP_BACKEDGE();
   3356     if (CMP_NE(_flag_a, _flag_b)) goto L_36096638; /* 0x36096659: jne 0x36096638 */
   3357 L_3609665B:
   3358     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x3609665B: mov cl, byte ptr [edi + 0xc] */
   3359     /* test LO8(ecx), LO8(ecx) */ /* 0x3609665E: test cl, cl */
   3360     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3361     _cf = 0;
   3362     _flag_k = FK_NARROW(FK_TEST, 24);
   3363     if (TEST_Z(_flag_a, _flag_b)) goto L_360967E1; /* 0x36096660: je 0x360967e1 */
   3364 L_36096666:
   3365     PUSH32(esp, 0); /* 0x36096666: push 0 */
   3366     PUSH32(esp, esi); /* 0x36096668: push esi */
   3367     ecx = edi; /* 0x36096669: mov ecx, edi */
   3368     RECOMP_ICALL(0x3614B9B0u); /* 0x3609666B: call 0x3614b9b0 */ /* not lifted */
   3369     RECOMP_FLAGS_IN();
   3370     edx = MEM32(edi + 0x8); /* 0x36096670: mov edx, dword ptr [edi + 8] */
   3371     MEM32(eax) = edx; /* 0x36096673: mov dword ptr [eax], edx */
   3372     ecx = MEM32(edi + 0x8); /* 0x36096675: mov ecx, dword ptr [edi + 8] */
   3373     edx = MEM32(ebp + 0xC); /* 0x36096678: mov edx, dword ptr [ebp + 0xc] */
   3374     MEM32(ebp + (-0x4)) = eax; /* 0x3609667B: mov dword ptr [ebp - 4], eax */
   3375     MEM32(eax + 0x8) = ecx; /* 0x3609667E: mov dword ptr [eax + 8], ecx */
   3376     PUSH32(esp, edx); /* 0x36096681: push edx */
   3377     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3378     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3379     eax = eax + 0xCu; /* 0x36096682: add eax, 0xc */
   3380     _flag_k = FK_ADD;
   3381     PUSH32(esp, eax); /* 0x36096685: push eax */
   3382     RECOMP_ICALL(0x36096C70u); /* 0x36096686: call 0x36096c70 */ /* not lifted */
   3383     RECOMP_FLAGS_IN();
   3384     ecx = MEM32(edi + 0x10); /* 0x3609668B: mov ecx, dword ptr [edi + 0x10] */
   3385     eax = MEM32(edi + 0x4); /* 0x3609668E: mov eax, dword ptr [edi + 4] */
   3386     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3387     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3388     esp = esp + 8; /* 0x36096691: add esp, 8 */
   3389     _flag_k = FK_ADD;
   3390     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3391     ecx = ecx + 1; /* 0x36096694: inc ecx */
   3392     _flag_k = FK_INC;
   3393     /* cmp esi, eax */ /* 0x36096695: cmp esi, eax */
   3394     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3395     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3396     _flag_k = FK_CMP;
   3397     MEM32(edi + 0x10) = ecx; /* 0x36096697: mov dword ptr [edi + 0x10], ecx */
   3398     if (CMP_EQ(_flag_a, _flag_b)) goto L_360966C9; /* 0x3609669A: je 0x360966c9 */
   3399 L_3609669C:
   3400     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3609669C: cmp ebx, dword ptr [edi + 8] */
   3401     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3403     _flag_k = FK_CMP;
   3404     if (CMP_NE(_flag_a, _flag_b)) goto L_360966C9; /* 0x3609669F: jne 0x360966c9 */
   3405 L_360966A1:
   3406     ecx = MEM32(ebp + 0xC); /* 0x360966A1: mov ecx, dword ptr [ebp + 0xc] */
   3407     eax = esi + 0xC; /* 0x360966A4: lea eax, [esi + 0xc] */
   3408     PUSH32(esp, eax); /* 0x360966A7: push eax */
   3409     PUSH32(esp, ecx); /* 0x360966A8: push ecx */
   3410     RECOMP_ICALL(MEM32(0x3616F160)); /* 0x360966A9: call dword ptr [0x3616f160] */
   3411     RECOMP_FLAGS_IN();
   3412     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3413     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3414     esp = esp + 8; /* 0x360966AF: add esp, 8 */
   3415     _flag_k = FK_ADD;
   3416     /* test LO8(eax), LO8(eax) */ /* 0x360966B2: test al, al */
   3417     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3418     _cf = 0;
   3419     _flag_k = FK_NARROW(FK_TEST, 24);
   3420     if (TEST_NZ(_flag_a, _flag_b)) goto L_360966C9; /* 0x360966B4: jne 0x360966c9 */
   3421 L_360966B6:
   3422     ebx = MEM32(ebp + (-0x4)); /* 0x360966B6: mov ebx, dword ptr [ebp - 4] */
   3423     MEM32(esi + 0x8) = ebx; /* 0x360966B9: mov dword ptr [esi + 8], ebx */
   3424     eax = MEM32(edi + 0x4); /* 0x360966BC: mov eax, dword ptr [edi + 4] */
   3425     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360966BF: cmp esi, dword ptr [eax + 8] */
   3426     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3428     _flag_k = FK_CMP;
   3429     if (CMP_NE(_flag_a, _flag_b)) goto L_360966EC; /* 0x360966C2: jne 0x360966ec */
   3430 L_360966C4:
   3431     MEM32(eax + 0x8) = ebx; /* 0x360966C4: mov dword ptr [eax + 8], ebx */
   3432     goto L_360966EC; /* 0x360966C7: jmp 0x360966ec */
   3433 L_360966C9:
   3434     ecx = MEM32(ebp + (-0x4)); /* 0x360966C9: mov ecx, dword ptr [ebp - 4] */
   3435     MEM32(esi) = ecx; /* 0x360966CC: mov dword ptr [esi], ecx */
   3436     eax = MEM32(edi + 0x4); /* 0x360966CE: mov eax, dword ptr [edi + 4] */
   3437     /* cmp esi, eax */ /* 0x360966D1: cmp esi, eax */
   3438     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3440     _flag_k = FK_CMP;
   3441     if (CMP_NE(_flag_a, _flag_b)) goto L_360966E0; /* 0x360966D3: jne 0x360966e0 */
   3442 L_360966D5:
   3443     MEM32(eax + 0x4) = ecx; /* 0x360966D5: mov dword ptr [eax + 4], ecx */
   3444     edx = MEM32(edi + 0x4); /* 0x360966D8: mov edx, dword ptr [edi + 4] */
   3445     MEM32(edx + 0x8) = ecx; /* 0x360966DB: mov dword ptr [edx + 8], ecx */
   3446     goto L_360966E9; /* 0x360966DE: jmp 0x360966e9 */
   3447 L_360966E0:
   3448     /* cmp esi, MEM32(eax) */ /* 0x360966E0: cmp esi, dword ptr [eax] */
   3449     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   3450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3451     _flag_k = FK_CMP;
   3452     if (CMP_NE(_flag_a, _flag_b)) goto L_360966E9; /* 0x360966E2: jne 0x360966e9 */
   3453 L_360966E4:
   3454     ecx = MEM32(ebp + (-0x4)); /* 0x360966E4: mov ecx, dword ptr [ebp - 4] */
   3455     MEM32(eax) = ecx; /* 0x360966E7: mov dword ptr [eax], ecx */
   3456 L_360966E9:
   3457     ebx = MEM32(ebp + (-0x4)); /* 0x360966E9: mov ebx, dword ptr [ebp - 4] */
   3458 L_360966EC:
   3459     edx = MEM32(edi + 0x4); /* 0x360966EC: mov edx, dword ptr [edi + 4] */
   3460     /* cmp ebx, MEM32(edx + 0x4) */ /* 0x360966EF: cmp ebx, dword ptr [edx + 4] */
   3461     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3463     _flag_k = FK_CMP;
   3464     esi = ebx; /* 0x360966F2: mov esi, ebx */
   3465     if (CMP_EQ(_flag_a, _flag_b)) goto L_360967BF; /* 0x360966F4: je 0x360967bf */
   3466 L_360966FA:
   3467     eax = MEM32(esi + 0x4); /* 0x360966FA: mov eax, dword ptr [esi + 4] */
   3468     SET_LO8(ecx, MEM8(eax + 0x20)); /* 0x360966FD: mov cl, byte ptr [eax + 0x20] */
   3469     /* test LO8(ecx), LO8(ecx) */ /* 0x36096700: test cl, cl */
   3470     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3471     _cf = 0;
   3472     _flag_k = FK_NARROW(FK_TEST, 24);
   3473     if (TEST_NZ(_flag_a, _flag_b)) goto L_360967BF; /* 0x36096702: jne 0x360967bf */
   3474 L_36096708:
   3475     edx = MEM32(eax + 0x4); /* 0x36096708: mov edx, dword ptr [eax + 4] */
   3476     ecx = MEM32(edx); /* 0x3609670B: mov ecx, dword ptr [edx] */
   3477     /* cmp eax, ecx */ /* 0x3609670D: cmp eax, ecx */
   3478     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3480     _flag_k = FK_CMP;
   3481     if (CMP_NE(_flag_a, _flag_b)) goto L_36096765; /* 0x3609670F: jne 0x36096765 */
   3482 L_36096711:
   3483     ecx = MEM32(edx + 0x8); /* 0x36096711: mov ecx, dword ptr [edx + 8] */
   3484     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096714: mov dl, byte ptr [ecx + 0x20] */
   3485     /* test LO8(edx), LO8(edx) */ /* 0x36096717: test dl, dl */
   3486     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3487     _cf = 0;
   3488     _flag_k = FK_NARROW(FK_TEST, 24);
   3489     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096735; /* 0x36096719: jne 0x36096735 */
   3490 L_3609671B:
   3491     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x3609671B: mov byte ptr [eax + 0x20], 1 */
   3492     MEM8(ecx + 0x20) = (uint8_t)(1); /* 0x3609671F: mov byte ptr [ecx + 0x20], 1 */
   3493     eax = MEM32(esi + 0x4); /* 0x36096723: mov eax, dword ptr [esi + 4] */
   3494     ecx = MEM32(eax + 0x4); /* 0x36096726: mov ecx, dword ptr [eax + 4] */
   3495     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096729: mov byte ptr [ecx + 0x20], 0 */
   3496     edx = MEM32(esi + 0x4); /* 0x3609672D: mov edx, dword ptr [esi + 4] */
   3497     esi = MEM32(edx + 0x4); /* 0x36096730: mov esi, dword ptr [edx + 4] */
   3498     goto L_360967B3; /* 0x36096733: jmp 0x360967b3 */
   3499 L_36096735:
   3500     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36096735: cmp esi, dword ptr [eax + 8] */
   3501     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3503     _flag_k = FK_CMP;
   3504     if (CMP_NE(_flag_a, _flag_b)) goto L_36096744; /* 0x36096738: jne 0x36096744 */
   3505 L_3609673A:
   3506     esi = eax; /* 0x3609673A: mov esi, eax */
   3507     PUSH32(esp, esi); /* 0x3609673C: push esi */
   3508     ecx = edi; /* 0x3609673D: mov ecx, edi */
   3509     RECOMP_ICALL(0x36096920u); /* 0x3609673F: call 0x36096920 */ /* not lifted */
   3510     RECOMP_FLAGS_IN();
   3511 L_36096744:
   3512     eax = MEM32(esi + 0x4); /* 0x36096744: mov eax, dword ptr [esi + 4] */
   3513     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x36096747: mov byte ptr [eax + 0x20], 1 */
   3514     ecx = MEM32(esi + 0x4); /* 0x3609674B: mov ecx, dword ptr [esi + 4] */
   3515     edx = MEM32(ecx + 0x4); /* 0x3609674E: mov edx, dword ptr [ecx + 4] */
   3516     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096751: mov byte ptr [edx + 0x20], 0 */
   3517     eax = MEM32(esi + 0x4); /* 0x36096755: mov eax, dword ptr [esi + 4] */
   3518     ecx = MEM32(eax + 0x4); /* 0x36096758: mov ecx, dword ptr [eax + 4] */
   3519     PUSH32(esp, ecx); /* 0x3609675B: push ecx */
   3520     ecx = edi; /* 0x3609675C: mov ecx, edi */
   3521     RECOMP_ICALL(0x360B4260u); /* 0x3609675E: call 0x360b4260 */ /* not lifted */
   3522     RECOMP_FLAGS_IN();
   3523     goto L_360967B3; /* 0x36096763: jmp 0x360967b3 */
   3524 L_36096765:
   3525     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096765: mov dl, byte ptr [ecx + 0x20] */
   3526     /* test LO8(edx), LO8(edx) */ /* 0x36096768: test dl, dl */
   3527     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3528     _cf = 0;
   3529     _flag_k = FK_NARROW(FK_TEST, 24);
   3530     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096786; /* 0x3609676A: jne 0x36096786 */
   3531 L_3609676C:
   3532     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x3609676C: mov byte ptr [eax + 0x20], 1 */
   3533     MEM8(ecx + 0x20) = (uint8_t)(1); /* 0x36096770: mov byte ptr [ecx + 0x20], 1 */
   3534     edx = MEM32(esi + 0x4); /* 0x36096774: mov edx, dword ptr [esi + 4] */
   3535     eax = MEM32(edx + 0x4); /* 0x36096777: mov eax, dword ptr [edx + 4] */
   3536     MEM8(eax + 0x20) = (uint8_t)(0); /* 0x3609677A: mov byte ptr [eax + 0x20], 0 */
   3537     ecx = MEM32(esi + 0x4); /* 0x3609677E: mov ecx, dword ptr [esi + 4] */
   3538     esi = MEM32(ecx + 0x4); /* 0x36096781: mov esi, dword ptr [ecx + 4] */
   3539     goto L_360967B3; /* 0x36096784: jmp 0x360967b3 */
   3540 L_36096786:
   3541     /* cmp esi, MEM32(eax) */ /* 0x36096786: cmp esi, dword ptr [eax] */
   3542     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   3543     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3544     _flag_k = FK_CMP;
   3545     if (CMP_NE(_flag_a, _flag_b)) goto L_36096794; /* 0x36096788: jne 0x36096794 */
   3546 L_3609678A:
   3547     esi = eax; /* 0x3609678A: mov esi, eax */
   3548     PUSH32(esp, esi); /* 0x3609678C: push esi */
   3549     ecx = edi; /* 0x3609678D: mov ecx, edi */
   3550     RECOMP_ICALL(0x360B4260u); /* 0x3609678F: call 0x360b4260 */ /* not lifted */
   3551     RECOMP_FLAGS_IN();
   3552 L_36096794:
   3553     edx = MEM32(esi + 0x4); /* 0x36096794: mov edx, dword ptr [esi + 4] */
   3554     MEM8(edx + 0x20) = (uint8_t)(1); /* 0x36096797: mov byte ptr [edx + 0x20], 1 */
   3555     eax = MEM32(esi + 0x4); /* 0x3609679B: mov eax, dword ptr [esi + 4] */
   3556     ecx = MEM32(eax + 0x4); /* 0x3609679E: mov ecx, dword ptr [eax + 4] */
   3557     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x360967A1: mov byte ptr [ecx + 0x20], 0 */
   3558     edx = MEM32(esi + 0x4); /* 0x360967A5: mov edx, dword ptr [esi + 4] */
   3559     eax = MEM32(edx + 0x4); /* 0x360967A8: mov eax, dword ptr [edx + 4] */
   3560     PUSH32(esp, eax); /* 0x360967AB: push eax */
   3561     ecx = edi; /* 0x360967AC: mov ecx, edi */
   3562     RECOMP_ICALL(0x36096920u); /* 0x360967AE: call 0x36096920 */ /* not lifted */
   3563     RECOMP_FLAGS_IN();
   3564 L_360967B3:
   3565     ecx = MEM32(edi + 0x4); /* 0x360967B3: mov ecx, dword ptr [edi + 4] */
   3566     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x360967B6: cmp esi, dword ptr [ecx + 4] */
   3567     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3569     _flag_k = FK_CMP;
   3570     RECOMP_BACKEDGE();
   3571     if (CMP_NE(_flag_a, _flag_b)) goto L_360966FA; /* 0x360967B9: jne 0x360966fa */
   3572 L_360967BF:
   3573     edx = MEM32(edi + 0x4); /* 0x360967BF: mov edx, dword ptr [edi + 4] */
   3574     eax = MEM32(edx + 0x4); /* 0x360967C2: mov eax, dword ptr [edx + 4] */
   3575     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x360967C5: mov byte ptr [eax + 0x20], 1 */
   3576     eax = MEM32(ebp + 0x8); /* 0x360967C9: mov eax, dword ptr [ebp + 8] */
   3577     edi = POP32_VAL(esp); /* 0x360967CC: pop edi */
   3578     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x360967CD: mov byte ptr [ebp - 8], 1 */
   3579     ecx = MEM32(ebp + (-0x8)); /* 0x360967D1: mov ecx, dword ptr [ebp - 8] */
   3580     MEM32(eax) = ebx; /* 0x360967D4: mov dword ptr [eax], ebx */
   3581     esi = POP32_VAL(esp); /* 0x360967D6: pop esi */
   3582     MEM32(eax + 0x4) = ecx; /* 0x360967D7: mov dword ptr [eax + 4], ecx */
   3583     ebx = POP32_VAL(esp); /* 0x360967DA: pop ebx */
   3584     esp = ebp; /* 0x360967DB: mov esp, ebp */
   3585     ebp = POP32_VAL(esp); /* 0x360967DD: pop ebp */
   3586     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360967DE: ret 8 */
   3587 L_360967E1:
   3588     /* test LO8(eax), LO8(eax) */ /* 0x360967E1: test al, al */
   3589     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3590     _cf = 0;
   3591     _flag_k = FK_NARROW(FK_TEST, 24);
   3592     MEM32(ebp + (-0x8)) = esi; /* 0x360967E3: mov dword ptr [ebp - 8], esi */
   3593     if (TEST_Z(_flag_a, _flag_b)) goto L_36096822; /* 0x360967E6: je 0x36096822 */
   3594 L_360967E8:
   3595     edx = MEM32(edi + 0x4); /* 0x360967E8: mov edx, dword ptr [edi + 4] */
   3596     /* cmp esi, MEM32(edx) */ /* 0x360967EB: cmp esi, dword ptr [edx] */
   3597     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx));
   3598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3599     _flag_k = FK_CMP;
   3600     if (CMP_NE(_flag_a, _flag_b)) goto L_3609681A; /* 0x360967ED: jne 0x3609681a */
   3601 L_360967EF:
   3602     eax = MEM32(ebp + 0xC); /* 0x360967EF: mov eax, dword ptr [ebp + 0xc] */
   3603     PUSH32(esp, eax); /* 0x360967F2: push eax */
   3604     PUSH32(esp, esi); /* 0x360967F3: push esi */
   3605     PUSH32(esp, ebx); /* 0x360967F4: push ebx */
   3606     ecx = ebp + 0xC; /* 0x360967F5: lea ecx, [ebp + 0xc] */
   3607     PUSH32(esp, ecx); /* 0x360967F8: push ecx */
   3608     ecx = edi; /* 0x360967F9: mov ecx, edi */
   3609     RECOMP_ICALL(0x36096980u); /* 0x360967FB: call 0x36096980 */ /* not lifted */
   3610     RECOMP_FLAGS_IN();
   3611     ecx = MEM32(eax); /* 0x36096800: mov ecx, dword ptr [eax] */
   3612     eax = MEM32(ebp + 0x8); /* 0x36096802: mov eax, dword ptr [ebp + 8] */
   3613     edi = POP32_VAL(esp); /* 0x36096805: pop edi */
   3614     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x36096806: mov byte ptr [ebp - 8], 1 */
   3615     edx = MEM32(ebp + (-0x8)); /* 0x3609680A: mov edx, dword ptr [ebp - 8] */
   3616     esi = POP32_VAL(esp); /* 0x3609680D: pop esi */
   3617     MEM32(eax) = ecx; /* 0x3609680E: mov dword ptr [eax], ecx */
   3618     MEM32(eax + 0x4) = edx; /* 0x36096810: mov dword ptr [eax + 4], edx */
   3619     ebx = POP32_VAL(esp); /* 0x36096813: pop ebx */
   3620     esp = ebp; /* 0x36096814: mov esp, ebp */
   3621     ebp = POP32_VAL(esp); /* 0x36096816: pop ebp */
   3622     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36096817: ret 8 */
   3623 L_3609681A:
   3624     ecx = ebp + (-0x8); /* 0x3609681A: lea ecx, [ebp - 8] */
   3625     RECOMP_ICALL(0x36145870u); /* 0x3609681D: call 0x36145870 */ /* not lifted */
   3626     RECOMP_FLAGS_IN();
   3627 L_36096822:
   3628     eax = MEM32(ebp + (-0x8)); /* 0x36096822: mov eax, dword ptr [ebp - 8] */
   3629     ecx = MEM32(ebp + 0xC); /* 0x36096825: mov ecx, dword ptr [ebp + 0xc] */
   3630     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3631     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3632     eax = eax + 0xCu; /* 0x36096828: add eax, 0xc */
   3633     _flag_k = FK_ADD;
   3634     PUSH32(esp, ecx); /* 0x3609682B: push ecx */
   3635     PUSH32(esp, eax); /* 0x3609682C: push eax */
   3636     RECOMP_ICALL(MEM32(0x3616F160)); /* 0x3609682D: call dword ptr [0x3616f160] */
   3637     RECOMP_FLAGS_IN();
   3638     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3639     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3640     esp = esp + 8; /* 0x36096833: add esp, 8 */
   3641     _flag_k = FK_ADD;
   3642     /* test LO8(eax), LO8(eax) */ /* 0x36096836: test al, al */
   3643     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3644     _cf = 0;
   3645     _flag_k = FK_NARROW(FK_TEST, 24);
   3646     if (TEST_Z(_flag_a, _flag_b)) goto L_36096865; /* 0x36096838: je 0x36096865 */
   3647 L_3609683A:
   3648     edx = MEM32(ebp + 0xC); /* 0x3609683A: mov edx, dword ptr [ebp + 0xc] */
   3649     PUSH32(esp, edx); /* 0x3609683D: push edx */
   3650     PUSH32(esp, esi); /* 0x3609683E: push esi */
   3651     PUSH32(esp, ebx); /* 0x3609683F: push ebx */
   3652     eax = ebp + 0xC; /* 0x36096840: lea eax, [ebp + 0xc] */
   3653     PUSH32(esp, eax); /* 0x36096843: push eax */
   3654     ecx = edi; /* 0x36096844: mov ecx, edi */
   3655     RECOMP_ICALL(0x36096980u); /* 0x36096846: call 0x36096980 */ /* not lifted */
   3656     RECOMP_FLAGS_IN();
   3657     ecx = MEM32(eax); /* 0x3609684B: mov ecx, dword ptr [eax] */
   3658     eax = MEM32(ebp + 0x8); /* 0x3609684D: mov eax, dword ptr [ebp + 8] */
   3659     edi = POP32_VAL(esp); /* 0x36096850: pop edi */
   3660     MEM32(eax) = ecx; /* 0x36096851: mov dword ptr [eax], ecx */
   3661     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x36096853: mov byte ptr [ebp - 8], 1 */
   3662     ecx = MEM32(ebp + (-0x8)); /* 0x36096857: mov ecx, dword ptr [ebp - 8] */
   3663     esi = POP32_VAL(esp); /* 0x3609685A: pop esi */
   3664     MEM32(eax + 0x4) = ecx; /* 0x3609685B: mov dword ptr [eax + 4], ecx */
   3665     ebx = POP32_VAL(esp); /* 0x3609685E: pop ebx */
   3666     esp = ebp; /* 0x3609685F: mov esp, ebp */
   3667     ebp = POP32_VAL(esp); /* 0x36096861: pop ebp */
   3668     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36096862: ret 8 */
   3669 L_36096865:
   3670     ecx = MEM32(ebp + (-0x8)); /* 0x36096865: mov ecx, dword ptr [ebp - 8] */
   3671     eax = MEM32(ebp + 0x8); /* 0x36096868: mov eax, dword ptr [ebp + 8] */
   3672     edi = POP32_VAL(esp); /* 0x3609686B: pop edi */
   3673     MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x3609686C: mov byte ptr [ebp - 8], 0 */
   3674     edx = MEM32(ebp + (-0x8)); /* 0x36096870: mov edx, dword ptr [ebp - 8] */
   3675     esi = POP32_VAL(esp); /* 0x36096873: pop esi */
   3676     MEM32(eax) = ecx; /* 0x36096874: mov dword ptr [eax], ecx */
   3677     MEM32(eax + 0x4) = edx; /* 0x36096876: mov dword ptr [eax + 4], edx */
   3678     ebx = POP32_VAL(esp); /* 0x36096879: pop ebx */
   3679     esp = ebp; /* 0x3609687A: mov esp, ebp */
   3680     ebp = POP32_VAL(esp); /* 0x3609687C: pop ebp */
   3681     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609687D: ret 8 */
   3682     RECOMP_REGS_OUT();
   3683 }
   3684 
   3685 void sub_36096880(void) {
   3686     int _fpu_cmp = 0;
   3687     uint32_t _cf = 0;
   3688     int _df = 1;
   3689     uint32_t _flag_k = FK_NONE;
   3690     uint32_t _flag_a = 0, _flag_b = 0;
   3691     uint32_t _itail_tgt = 0;
   3692     RECOMP_REGS_LOCALS
   3693     RECOMP_ENTER(0x36096880u);
   3694 
   3695 L_36096880:
   3696     PUSH32(esp, ebp); /* 0x36096880: push ebp */
   3697     ebp = esp; /* 0x36096881: mov ebp, esp */
   3698     PUSH32(esp, ebx); /* 0x36096883: push ebx */
   3699     PUSH32(esp, esi); /* 0x36096884: push esi */
   3700     PUSH32(esp, edi); /* 0x36096885: push edi */
   3701     edi = ecx; /* 0x36096886: mov edi, ecx */
   3702     eax = MEM32(edi + 0x4); /* 0x36096888: mov eax, dword ptr [edi + 4] */
   3703     esi = MEM32(eax + 0x4); /* 0x3609688B: mov esi, dword ptr [eax + 4] */
   3704     ebx = eax; /* 0x3609688E: mov ebx, eax */
   3705     /* cmp esi, MEM32(edi + 0x8) */ /* 0x36096890: cmp esi, dword ptr [edi + 8] */
   3706     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3707     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3708     _flag_k = FK_CMP;
   3709     if (CMP_EQ(_flag_a, _flag_b)) goto L_360968B8; /* 0x36096893: je 0x360968b8 */
   3710 L_36096895:
   3711     eax = MEM32(ebp + 0xC); /* 0x36096895: mov eax, dword ptr [ebp + 0xc] */
   3712     PUSH32(esp, eax); /* 0x36096898: push eax */
   3713     ecx = esi + 0xC; /* 0x36096899: lea ecx, [esi + 0xc] */
   3714     PUSH32(esp, ecx); /* 0x3609689C: push ecx */
   3715     RECOMP_ICALL(MEM32(0x3616F160)); /* 0x3609689D: call dword ptr [0x3616f160] */
   3716     RECOMP_FLAGS_IN();
   3717     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3718     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3719     esp = esp + 8; /* 0x360968A3: add esp, 8 */
   3720     _flag_k = FK_ADD;
   3721     /* test LO8(eax), LO8(eax) */ /* 0x360968A6: test al, al */
   3722     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3723     _cf = 0;
   3724     _flag_k = FK_NARROW(FK_TEST, 24);
   3725     if (TEST_Z(_flag_a, _flag_b)) goto L_360968AF; /* 0x360968A8: je 0x360968af */
   3726 L_360968AA:
   3727     esi = MEM32(esi + 0x8); /* 0x360968AA: mov esi, dword ptr [esi + 8] */
   3728     goto L_360968B3; /* 0x360968AD: jmp 0x360968b3 */
   3729 L_360968AF:
   3730     ebx = esi; /* 0x360968AF: mov ebx, esi */
   3731     esi = MEM32(esi); /* 0x360968B1: mov esi, dword ptr [esi] */
   3732 L_360968B3:
   3733     /* cmp esi, MEM32(edi + 0x8) */ /* 0x360968B3: cmp esi, dword ptr [edi + 8] */
   3734     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3736     _flag_k = FK_CMP;
   3737     RECOMP_BACKEDGE();
   3738     if (CMP_NE(_flag_a, _flag_b)) goto L_36096895; /* 0x360968B6: jne 0x36096895 */
   3739 L_360968B8:
   3740     eax = MEM32(ebp + 0x8); /* 0x360968B8: mov eax, dword ptr [ebp + 8] */
   3741     edi = POP32_VAL(esp); /* 0x360968BB: pop edi */
   3742     esi = POP32_VAL(esp); /* 0x360968BC: pop esi */
   3743     MEM32(eax) = ebx; /* 0x360968BD: mov dword ptr [eax], ebx */
   3744     ebx = POP32_VAL(esp); /* 0x360968BF: pop ebx */
   3745     ebp = POP32_VAL(esp); /* 0x360968C0: pop ebp */
   3746     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360968C1: ret 8 */
   3747     RECOMP_REGS_OUT();
   3748 }
   3749 
   3750 void sub_360968D0(void) {
   3751     int _fpu_cmp = 0;
   3752     uint32_t _cf = 0;
   3753     int _df = 1;
   3754     uint32_t _flag_k = FK_NONE;
   3755     uint32_t _flag_a = 0, _flag_b = 0;
   3756     uint32_t _itail_tgt = 0;
   3757     RECOMP_REGS_LOCALS
   3758     RECOMP_ENTER(0x360968D0u);
   3759 
   3760 L_360968D0:
   3761     PUSH32(esp, ebp); /* 0x360968D0: push ebp */
   3762     ebp = esp; /* 0x360968D1: mov ebp, esp */
   3763     PUSH32(esp, ebx); /* 0x360968D3: push ebx */
   3764     PUSH32(esp, esi); /* 0x360968D4: push esi */
   3765     ebx = ecx; /* 0x360968D5: mov ebx, ecx */
   3766     eax = MEM32(ebx + 0x8); /* 0x360968D7: mov eax, dword ptr [ebx + 8] */
   3767     PUSH32(esp, edi); /* 0x360968DA: push edi */
   3768     edi = MEM32(ebp + 0x8); /* 0x360968DB: mov edi, dword ptr [ebp + 8] */
   3769     /* cmp edi, eax */ /* 0x360968DE: cmp edi, eax */
   3770     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3772     _flag_k = FK_CMP;
   3773     esi = edi; /* 0x360968E0: mov esi, edi */
   3774     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609690B; /* 0x360968E2: je 0x3609690b */
   3775 L_360968E4:
   3776     eax = MEM32(esi + 0x8); /* 0x360968E4: mov eax, dword ptr [esi + 8] */
   3777     PUSH32(esp, eax); /* 0x360968E7: push eax */
   3778     ecx = ebx; /* 0x360968E8: mov ecx, ebx */
   3779     RECOMP_ICALL(0x360968D0u); /* 0x360968EA: call 0x360968d0 */ /* not lifted */
   3780     RECOMP_FLAGS_IN();
   3781     esi = MEM32(esi); /* 0x360968EF: mov esi, dword ptr [esi] */
   3782     ecx = edi + 0xC; /* 0x360968F1: lea ecx, [edi + 0xc] */
   3783     RECOMP_ICALL(0x36069900u); /* 0x360968F4: call 0x36069900 */ /* not lifted */
   3784     RECOMP_FLAGS_IN();
   3785     PUSH32(esp, edi); /* 0x360968F9: push edi */
   3786     RECOMP_ICALL(0x3615FCC4u); /* 0x360968FA: call 0x3615fcc4 */ /* not lifted */
   3787     RECOMP_FLAGS_IN();
   3788     eax = MEM32(ebx + 0x8); /* 0x360968FF: mov eax, dword ptr [ebx + 8] */
   3789     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3790     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3791     esp = esp + 4; /* 0x36096902: add esp, 4 */
   3792     _flag_k = FK_ADD;
   3793     /* cmp esi, eax */ /* 0x36096905: cmp esi, eax */
   3794     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3796     _flag_k = FK_CMP;
   3797     edi = esi; /* 0x36096907: mov edi, esi */
   3798     RECOMP_BACKEDGE();
   3799     if (CMP_NE(_flag_a, _flag_b)) goto L_360968E4; /* 0x36096909: jne 0x360968e4 */
   3800 L_3609690B:
   3801     edi = POP32_VAL(esp); /* 0x3609690B: pop edi */
   3802     esi = POP32_VAL(esp); /* 0x3609690C: pop esi */
   3803     ebx = POP32_VAL(esp); /* 0x3609690D: pop ebx */
   3804     ebp = POP32_VAL(esp); /* 0x3609690E: pop ebp */
   3805     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609690F: ret 4 */
   3806     RECOMP_REGS_OUT();
   3807 }
   3808 
   3809 void sub_36096920(void) {
   3810     int _fpu_cmp = 0;
   3811     uint32_t _cf = 0;
   3812     int _df = 1;
   3813     uint32_t _flag_k = FK_NONE;
   3814     uint32_t _flag_a = 0, _flag_b = 0;
   3815     uint32_t _itail_tgt = 0;
   3816     RECOMP_REGS_LOCALS
   3817     RECOMP_ENTER(0x36096920u);
   3818 
   3819 L_36096920:
   3820     PUSH32(esp, ebp); /* 0x36096920: push ebp */
   3821     ebp = esp; /* 0x36096921: mov ebp, esp */
   3822     edx = MEM32(ebp + 0x8); /* 0x36096923: mov edx, dword ptr [ebp + 8] */
   3823     eax = MEM32(edx + 0x8); /* 0x36096926: mov eax, dword ptr [edx + 8] */
   3824     PUSH32(esp, esi); /* 0x36096929: push esi */
   3825     esi = MEM32(eax); /* 0x3609692A: mov esi, dword ptr [eax] */
   3826     MEM32(edx + 0x8) = esi; /* 0x3609692C: mov dword ptr [edx + 8], esi */
   3827     esi = MEM32(eax); /* 0x3609692F: mov esi, dword ptr [eax] */
   3828     /* cmp esi, MEM32(ecx + 0x8) */ /* 0x36096931: cmp esi, dword ptr [ecx + 8] */
   3829     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3831     _flag_k = FK_CMP;
   3832     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096939; /* 0x36096934: je 0x36096939 */
   3833 L_36096936:
   3834     MEM32(esi + 0x4) = edx; /* 0x36096936: mov dword ptr [esi + 4], edx */
   3835 L_36096939:
   3836     esi = MEM32(edx + 0x4); /* 0x36096939: mov esi, dword ptr [edx + 4] */
   3837     MEM32(eax + 0x4) = esi; /* 0x3609693C: mov dword ptr [eax + 4], esi */
   3838     ecx = MEM32(ecx + 0x4); /* 0x3609693F: mov ecx, dword ptr [ecx + 4] */
   3839     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x36096942: cmp edx, dword ptr [ecx + 4] */
   3840     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3842     _flag_k = FK_CMP;
   3843     if (CMP_NE(_flag_a, _flag_b)) goto L_36096954; /* 0x36096945: jne 0x36096954 */
   3844 L_36096947:
   3845     MEM32(ecx + 0x4) = eax; /* 0x36096947: mov dword ptr [ecx + 4], eax */
   3846     MEM32(eax) = edx; /* 0x3609694A: mov dword ptr [eax], edx */
   3847     MEM32(edx + 0x4) = eax; /* 0x3609694C: mov dword ptr [edx + 4], eax */
   3848     esi = POP32_VAL(esp); /* 0x3609694F: pop esi */
   3849     ebp = POP32_VAL(esp); /* 0x36096950: pop ebp */
   3850     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36096951: ret 4 */
   3851 L_36096954:
   3852     ecx = MEM32(edx + 0x4); /* 0x36096954: mov ecx, dword ptr [edx + 4] */
   3853     /* cmp edx, MEM32(ecx) */ /* 0x36096957: cmp edx, dword ptr [ecx] */
   3854     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx));
   3855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3856     _flag_k = FK_CMP;
   3857     if (CMP_NE(_flag_a, _flag_b)) goto L_36096967; /* 0x36096959: jne 0x36096967 */
   3858 L_3609695B:
   3859     MEM32(ecx) = eax; /* 0x3609695B: mov dword ptr [ecx], eax */
   3860     MEM32(eax) = edx; /* 0x3609695D: mov dword ptr [eax], edx */
   3861     MEM32(edx + 0x4) = eax; /* 0x3609695F: mov dword ptr [edx + 4], eax */
   3862     esi = POP32_VAL(esp); /* 0x36096962: pop esi */
   3863     ebp = POP32_VAL(esp); /* 0x36096963: pop ebp */
   3864     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36096964: ret 4 */
   3865 L_36096967:
   3866     MEM32(ecx + 0x8) = eax; /* 0x36096967: mov dword ptr [ecx + 8], eax */
   3867     MEM32(eax) = edx; /* 0x3609696A: mov dword ptr [eax], edx */
   3868     MEM32(edx + 0x4) = eax; /* 0x3609696C: mov dword ptr [edx + 4], eax */
   3869     esi = POP32_VAL(esp); /* 0x3609696F: pop esi */
   3870     ebp = POP32_VAL(esp); /* 0x36096970: pop ebp */
   3871     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36096971: ret 4 */
   3872     RECOMP_REGS_OUT();
   3873 }
   3874 
   3875 void sub_36096980(void) {
   3876     int _fpu_cmp = 0;
   3877     uint32_t _cf = 0;
   3878     int _df = 1;
   3879     uint32_t _flag_k = FK_NONE;
   3880     uint32_t _flag_a = 0, _flag_b = 0;
   3881     uint32_t _itail_tgt = 0;
   3882     RECOMP_REGS_LOCALS
   3883     RECOMP_ENTER(0x36096980u);
   3884 
   3885 L_36096980:
   3886     PUSH32(esp, ebp); /* 0x36096980: push ebp */
   3887     ebp = esp; /* 0x36096981: mov ebp, esp */
   3888     PUSH32(esp, ecx); /* 0x36096983: push ecx */
   3889     PUSH32(esp, ebx); /* 0x36096984: push ebx */
   3890     PUSH32(esp, esi); /* 0x36096985: push esi */
   3891     PUSH32(esp, edi); /* 0x36096986: push edi */
   3892     PUSH32(esp, 0x24u); /* 0x36096987: push 0x24 */
   3893     esi = ecx; /* 0x36096989: mov esi, ecx */
   3894     RECOMP_ICALL(0x3615FD6Au); /* 0x3609698B: call 0x3615fd6a */ /* not lifted */
   3895     RECOMP_FLAGS_IN();
   3896     edi = MEM32(ebp + 0x10); /* 0x36096990: mov edi, dword ptr [ebp + 0x10] */
   3897     ebx = MEM32(ebp + 0x14); /* 0x36096993: mov ebx, dword ptr [ebp + 0x14] */
   3898     MEM32(eax + 0x4) = edi; /* 0x36096996: mov dword ptr [eax + 4], edi */
   3899     MEM8(eax + 0x20) = (uint8_t)(0); /* 0x36096999: mov byte ptr [eax + 0x20], 0 */
   3900     MEM8(eax + 0x21) = (uint8_t)(0); /* 0x3609699D: mov byte ptr [eax + 0x21], 0 */
   3901     ecx = MEM32(esi + 0x8); /* 0x360969A1: mov ecx, dword ptr [esi + 8] */
   3902     MEM32(eax) = ecx; /* 0x360969A4: mov dword ptr [eax], ecx */
   3903     edx = MEM32(esi + 0x8); /* 0x360969A6: mov edx, dword ptr [esi + 8] */
   3904     MEM32(ebp + (-0x4)) = eax; /* 0x360969A9: mov dword ptr [ebp - 4], eax */
   3905     MEM32(eax + 0x8) = edx; /* 0x360969AC: mov dword ptr [eax + 8], edx */
   3906     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3907     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3908     eax = eax + 0xCu; /* 0x360969AF: add eax, 0xc */
   3909     _flag_k = FK_ADD;
   3910     PUSH32(esp, ebx); /* 0x360969B2: push ebx */
   3911     PUSH32(esp, eax); /* 0x360969B3: push eax */
   3912     RECOMP_ICALL(0x36096C70u); /* 0x360969B4: call 0x36096c70 */ /* not lifted */
   3913     RECOMP_FLAGS_IN();
   3914     ecx = MEM32(esi + 0x10); /* 0x360969B9: mov ecx, dword ptr [esi + 0x10] */
   3915     eax = MEM32(esi + 0x4); /* 0x360969BC: mov eax, dword ptr [esi + 4] */
   3916     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3917     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3918     esp = esp + 0xCu; /* 0x360969BF: add esp, 0xc */
   3919     _flag_k = FK_ADD;
   3920     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3921     ecx = ecx + 1; /* 0x360969C2: inc ecx */
   3922     _flag_k = FK_INC;
   3923     /* cmp edi, eax */ /* 0x360969C3: cmp edi, eax */
   3924     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3926     _flag_k = FK_CMP;
   3927     MEM32(esi + 0x10) = ecx; /* 0x360969C5: mov dword ptr [esi + 0x10], ecx */
   3928     if (CMP_EQ(_flag_a, _flag_b)) goto L_360969F7; /* 0x360969C8: je 0x360969f7 */
   3929 L_360969CA:
   3930     eax = MEM32(ebp + 0xC); /* 0x360969CA: mov eax, dword ptr [ebp + 0xc] */
   3931     /* cmp eax, MEM32(esi + 0x8) */ /* 0x360969CD: cmp eax, dword ptr [esi + 8] */
   3932     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3934     _flag_k = FK_CMP;
   3935     if (CMP_NE(_flag_a, _flag_b)) goto L_360969F7; /* 0x360969D0: jne 0x360969f7 */
   3936 L_360969D2:
   3937     ecx = edi + 0xC; /* 0x360969D2: lea ecx, [edi + 0xc] */
   3938     PUSH32(esp, ecx); /* 0x360969D5: push ecx */
   3939     PUSH32(esp, ebx); /* 0x360969D6: push ebx */
   3940     RECOMP_ICALL(MEM32(0x3616F160)); /* 0x360969D7: call dword ptr [0x3616f160] */
   3941     RECOMP_FLAGS_IN();
   3942     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3943     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3944     esp = esp + 8; /* 0x360969DD: add esp, 8 */
   3945     _flag_k = FK_ADD;
   3946     /* test LO8(eax), LO8(eax) */ /* 0x360969E0: test al, al */
   3947     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3948     _cf = 0;
   3949     _flag_k = FK_NARROW(FK_TEST, 24);
   3950     if (TEST_NZ(_flag_a, _flag_b)) goto L_360969F7; /* 0x360969E2: jne 0x360969f7 */
   3951 L_360969E4:
   3952     ecx = MEM32(ebp + (-0x4)); /* 0x360969E4: mov ecx, dword ptr [ebp - 4] */
   3953     MEM32(edi + 0x8) = ecx; /* 0x360969E7: mov dword ptr [edi + 8], ecx */
   3954     eax = MEM32(esi + 0x4); /* 0x360969EA: mov eax, dword ptr [esi + 4] */
   3955     /* cmp edi, MEM32(eax + 0x8) */ /* 0x360969ED: cmp edi, dword ptr [eax + 8] */
   3956     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3958     _flag_k = FK_CMP;
   3959     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A17; /* 0x360969F0: jne 0x36096a17 */
   3960 L_360969F2:
   3961     MEM32(eax + 0x8) = ecx; /* 0x360969F2: mov dword ptr [eax + 8], ecx */
   3962     goto L_36096A17; /* 0x360969F5: jmp 0x36096a17 */
   3963 L_360969F7:
   3964     ecx = MEM32(ebp + (-0x4)); /* 0x360969F7: mov ecx, dword ptr [ebp - 4] */
   3965     MEM32(edi) = ecx; /* 0x360969FA: mov dword ptr [edi], ecx */
   3966     eax = MEM32(esi + 0x4); /* 0x360969FC: mov eax, dword ptr [esi + 4] */
   3967     /* cmp edi, eax */ /* 0x360969FF: cmp edi, eax */
   3968     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3969     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3970     _flag_k = FK_CMP;
   3971     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A0E; /* 0x36096A01: jne 0x36096a0e */
   3972 L_36096A03:
   3973     MEM32(eax + 0x4) = ecx; /* 0x36096A03: mov dword ptr [eax + 4], ecx */
   3974     edx = MEM32(esi + 0x4); /* 0x36096A06: mov edx, dword ptr [esi + 4] */
   3975     MEM32(edx + 0x8) = ecx; /* 0x36096A09: mov dword ptr [edx + 8], ecx */
   3976     goto L_36096A17; /* 0x36096A0C: jmp 0x36096a17 */
   3977 L_36096A0E:
   3978     /* cmp edi, MEM32(eax) */ /* 0x36096A0E: cmp edi, dword ptr [eax] */
   3979     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   3980     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3981     _flag_k = FK_CMP;
   3982     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A17; /* 0x36096A10: jne 0x36096a17 */
   3983 L_36096A12:
   3984     ecx = MEM32(ebp + (-0x4)); /* 0x36096A12: mov ecx, dword ptr [ebp - 4] */
   3985     MEM32(eax) = ecx; /* 0x36096A15: mov dword ptr [eax], ecx */
   3986 L_36096A17:
   3987     edx = MEM32(esi + 0x4); /* 0x36096A17: mov edx, dword ptr [esi + 4] */
   3988     eax = MEM32(ebp + (-0x4)); /* 0x36096A1A: mov eax, dword ptr [ebp - 4] */
   3989     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A1D: cmp eax, dword ptr [edx + 4] */
   3990     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3992     _flag_k = FK_CMP;
   3993     SET_LO8(ebx, 1); /* 0x36096A20: mov bl, 1 */
   3994     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A22: je 0x36096ba8 */
   3995 L_36096A28:
   3996     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   3997     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   3998     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   3999     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4000     _cf = 0;
   4001     _flag_k = FK_NARROW(FK_TEST, 24);
   4002     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   4003 L_36096A36:
   4004     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   4005     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   4006     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   4007     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4009     _flag_k = FK_CMP;
   4010     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   4011 L_36096A43:
   4012     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   4013     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   4014     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   4015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4016     _flag_k = FK_NARROW(FK_CMP, 24);
   4017     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   4018 L_36096A4C:
   4019     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   4020     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   4021     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   4022     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   4023     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   4024     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   4025     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   4026     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   4027 L_36096A67:
   4028     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   4029     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4031     _flag_k = FK_CMP;
   4032     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   4033 L_36096A6C:
   4034     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   4035     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   4036     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   4037     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   4038     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   4039     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   4040     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4041     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4042     _flag_k = FK_CMP;
   4043     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   4044 L_36096A7D:
   4045     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   4046 L_36096A80:
   4047     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   4048     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   4049     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   4050     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   4051     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4052     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4053     _flag_k = FK_CMP;
   4054     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   4055 L_36096A8E:
   4056     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   4057     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   4058 L_36096A93:
   4059     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   4060     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   4061     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4063     _flag_k = FK_CMP;
   4064     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   4065 L_36096A9A:
   4066     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   4067     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   4068 L_36096A9E:
   4069     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   4070 L_36096AA1:
   4071     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   4072     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   4073 L_36096AA6:
   4074     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   4075     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   4076     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   4077     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   4078     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   4079     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   4080     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   4081     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   4082     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   4083     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   4084     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   4085     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   4086     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4088     _flag_k = FK_CMP;
   4089     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   4090 L_36096ACB:
   4091     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   4092 L_36096ACE:
   4093     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   4094     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   4095     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   4096     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   4097     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4098     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4099     _flag_k = FK_CMP;
   4100     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   4101 L_36096ADC:
   4102     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   4103     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   4104     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   4105 L_36096AE7:
   4106     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   4107     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   4108     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4110     _flag_k = FK_CMP;
   4111     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   4112 L_36096AEF:
   4113     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   4114     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   4115     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   4116 L_36096AFA:
   4117     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   4118     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   4119     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   4120 L_36096B04:
   4121     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   4122     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   4123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4124     _flag_k = FK_NARROW(FK_CMP, 24);
   4125     RECOMP_BACKEDGE();
   4126     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   4127 L_36096B0E:
   4128     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   4129     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4131     _flag_k = FK_CMP;
   4132     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   4133 L_36096B12:
   4134     eax = ecx; /* 0x36096B12: mov eax, ecx */
   4135     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   4136     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   4137     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   4138     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   4139     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   4140     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4142     _flag_k = FK_CMP;
   4143     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   4144 L_36096B23:
   4145     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   4146 L_36096B26:
   4147     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   4148     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   4149     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   4150     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   4151     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4153     _flag_k = FK_CMP;
   4154     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   4155 L_36096B34:
   4156     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   4157     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   4158 L_36096B39:
   4159     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   4160     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   4161     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4162     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4163     _flag_k = FK_CMP;
   4164     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   4165 L_36096B41:
   4166     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   4167     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   4168 L_36096B46:
   4169     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   4170 L_36096B48:
   4171     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   4172     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   4173 L_36096B4E:
   4174     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   4175     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   4176     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   4177     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   4178     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   4179     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   4180     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   4181     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   4182     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   4183     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   4184     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   4185     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   4186     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   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_36096B76; /* 0x36096B71: je 0x36096b76 */
   4190 L_36096B73:
   4191     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   4192 L_36096B76:
   4193     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   4194     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   4195     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   4196     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   4197     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4199     _flag_k = FK_CMP;
   4200     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   4201 L_36096B84:
   4202     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   4203     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   4204 L_36096B89:
   4205     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   4206     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   4207     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4209     _flag_k = FK_CMP;
   4210     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   4211 L_36096B90:
   4212     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   4213     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   4214 L_36096B94:
   4215     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   4216 L_36096B97:
   4217     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   4218 L_36096B99:
   4219     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   4220 L_36096B9C:
   4221     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   4222     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   4223     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4225     _flag_k = FK_CMP;
   4226     RECOMP_BACKEDGE();
   4227     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   4228 L_36096BA8:
   4229     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   4230     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   4231     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   4232     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   4233     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   4234     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   4235     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   4236     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   4237     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   4238     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   4239     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   4240     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   4241     RECOMP_REGS_OUT();
   4242 }
   4243 
   4244 void sub_36096A17(void) {
   4245     int _fpu_cmp = 0;
   4246     uint32_t _cf = 0;
   4247     int _df = 1;
   4248     uint32_t _flag_k = FK_NONE;
   4249     uint32_t _flag_a = 0, _flag_b = 0;
   4250     uint32_t _itail_tgt = 0;
   4251     RECOMP_REGS_LOCALS
   4252     RECOMP_ENTER(0x36096A17u);
   4253 
   4254 L_36096A17:
   4255     edx = MEM32(esi + 0x4); /* 0x36096A17: mov edx, dword ptr [esi + 4] */
   4256     eax = MEM32(ebp + (-0x4)); /* 0x36096A1A: mov eax, dword ptr [ebp - 4] */
   4257     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A1D: cmp eax, dword ptr [edx + 4] */
   4258     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4259     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4260     _flag_k = FK_CMP;
   4261     SET_LO8(ebx, 1); /* 0x36096A20: mov bl, 1 */
   4262     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A22: je 0x36096ba8 */
   4263 L_36096A28:
   4264     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   4265     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   4266     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   4267     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4268     _cf = 0;
   4269     _flag_k = FK_NARROW(FK_TEST, 24);
   4270     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   4271 L_36096A36:
   4272     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   4273     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   4274     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   4275     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4276     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4277     _flag_k = FK_CMP;
   4278     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   4279 L_36096A43:
   4280     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   4281     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   4282     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   4283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4284     _flag_k = FK_NARROW(FK_CMP, 24);
   4285     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   4286 L_36096A4C:
   4287     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   4288     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   4289     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   4290     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   4291     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   4292     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   4293     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   4294     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   4295 L_36096A67:
   4296     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   4297     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4298     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4299     _flag_k = FK_CMP;
   4300     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   4301 L_36096A6C:
   4302     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   4303     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   4304     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   4305     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   4306     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   4307     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   4308     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4310     _flag_k = FK_CMP;
   4311     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   4312 L_36096A7D:
   4313     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   4314 L_36096A80:
   4315     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   4316     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   4317     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   4318     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   4319     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4321     _flag_k = FK_CMP;
   4322     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   4323 L_36096A8E:
   4324     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   4325     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   4326 L_36096A93:
   4327     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   4328     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   4329     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4330     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4331     _flag_k = FK_CMP;
   4332     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   4333 L_36096A9A:
   4334     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   4335     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   4336 L_36096A9E:
   4337     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   4338 L_36096AA1:
   4339     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   4340     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   4341 L_36096AA6:
   4342     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   4343     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   4344     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   4345     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   4346     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   4347     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   4348     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   4349     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   4350     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   4351     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   4352     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   4353     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   4354     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4356     _flag_k = FK_CMP;
   4357     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   4358 L_36096ACB:
   4359     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   4360 L_36096ACE:
   4361     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   4362     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   4363     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   4364     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   4365     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4367     _flag_k = FK_CMP;
   4368     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   4369 L_36096ADC:
   4370     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   4371     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   4372     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   4373 L_36096AE7:
   4374     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   4375     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   4376     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4378     _flag_k = FK_CMP;
   4379     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   4380 L_36096AEF:
   4381     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   4382     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   4383     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   4384 L_36096AFA:
   4385     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   4386     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   4387     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   4388 L_36096B04:
   4389     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   4390     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   4391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4392     _flag_k = FK_NARROW(FK_CMP, 24);
   4393     RECOMP_BACKEDGE();
   4394     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   4395 L_36096B0E:
   4396     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   4397     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4399     _flag_k = FK_CMP;
   4400     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   4401 L_36096B12:
   4402     eax = ecx; /* 0x36096B12: mov eax, ecx */
   4403     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   4404     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   4405     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   4406     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   4407     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   4408     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4410     _flag_k = FK_CMP;
   4411     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   4412 L_36096B23:
   4413     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   4414 L_36096B26:
   4415     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   4416     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   4417     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   4418     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   4419     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4421     _flag_k = FK_CMP;
   4422     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   4423 L_36096B34:
   4424     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   4425     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   4426 L_36096B39:
   4427     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   4428     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   4429     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4431     _flag_k = FK_CMP;
   4432     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   4433 L_36096B41:
   4434     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   4435     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   4436 L_36096B46:
   4437     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   4438 L_36096B48:
   4439     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   4440     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   4441 L_36096B4E:
   4442     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   4443     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   4444     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   4445     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   4446     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   4447     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   4448     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   4449     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   4450     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   4451     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   4452     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   4453     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   4454     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4456     _flag_k = FK_CMP;
   4457     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   4458 L_36096B73:
   4459     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   4460 L_36096B76:
   4461     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   4462     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   4463     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   4464     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   4465     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4467     _flag_k = FK_CMP;
   4468     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   4469 L_36096B84:
   4470     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   4471     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   4472 L_36096B89:
   4473     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   4474     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   4475     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4477     _flag_k = FK_CMP;
   4478     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   4479 L_36096B90:
   4480     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   4481     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   4482 L_36096B94:
   4483     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   4484 L_36096B97:
   4485     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   4486 L_36096B99:
   4487     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   4488 L_36096B9C:
   4489     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   4490     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   4491     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4493     _flag_k = FK_CMP;
   4494     RECOMP_BACKEDGE();
   4495     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   4496 L_36096BA8:
   4497     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   4498     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   4499     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   4500     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   4501     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   4502     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   4503     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   4504     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   4505     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   4506     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   4507     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   4508     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   4509     RECOMP_REGS_OUT();
   4510 }
   4511 
   4512 void sub_36096A28(void) {
   4513     int _fpu_cmp = 0;
   4514     uint32_t _cf = 0;
   4515     int _df = 1;
   4516     uint32_t _flag_k = FK_NONE;
   4517     uint32_t _flag_a = 0, _flag_b = 0;
   4518     uint32_t _itail_tgt = 0;
   4519     RECOMP_REGS_LOCALS
   4520     RECOMP_ENTER(0x36096A28u);
   4521 
   4522 L_36096A28:
   4523     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   4524     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   4525     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   4526     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4527     _cf = 0;
   4528     _flag_k = FK_NARROW(FK_TEST, 24);
   4529     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   4530 L_36096A36:
   4531     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   4532     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   4533     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   4534     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4535     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4536     _flag_k = FK_CMP;
   4537     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   4538 L_36096A43:
   4539     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   4540     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   4541     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   4542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4543     _flag_k = FK_NARROW(FK_CMP, 24);
   4544     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   4545 L_36096A4C:
   4546     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   4547     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   4548     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   4549     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   4550     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   4551     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   4552     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   4553     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   4554 L_36096A67:
   4555     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   4556     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4558     _flag_k = FK_CMP;
   4559     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   4560 L_36096A6C:
   4561     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   4562     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   4563     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   4564     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   4565     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   4566     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   4567     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4569     _flag_k = FK_CMP;
   4570     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   4571 L_36096A7D:
   4572     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   4573 L_36096A80:
   4574     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   4575     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   4576     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   4577     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   4578     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4579     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4580     _flag_k = FK_CMP;
   4581     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   4582 L_36096A8E:
   4583     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   4584     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   4585 L_36096A93:
   4586     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   4587     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   4588     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4590     _flag_k = FK_CMP;
   4591     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   4592 L_36096A9A:
   4593     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   4594     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   4595 L_36096A9E:
   4596     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   4597 L_36096AA1:
   4598     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   4599     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   4600 L_36096AA6:
   4601     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   4602     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   4603     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   4604     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   4605     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   4606     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   4607     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   4608     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   4609     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   4610     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   4611     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   4612     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   4613     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4614     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4615     _flag_k = FK_CMP;
   4616     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   4617 L_36096ACB:
   4618     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   4619 L_36096ACE:
   4620     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   4621     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   4622     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   4623     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   4624     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4626     _flag_k = FK_CMP;
   4627     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   4628 L_36096ADC:
   4629     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   4630     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   4631     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   4632 L_36096AE7:
   4633     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   4634     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   4635     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4637     _flag_k = FK_CMP;
   4638     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   4639 L_36096AEF:
   4640     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   4641     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   4642     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   4643 L_36096AFA:
   4644     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   4645     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   4646     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   4647 L_36096B04:
   4648     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   4649     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   4650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4651     _flag_k = FK_NARROW(FK_CMP, 24);
   4652     RECOMP_BACKEDGE();
   4653     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   4654 L_36096B0E:
   4655     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   4656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4658     _flag_k = FK_CMP;
   4659     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   4660 L_36096B12:
   4661     eax = ecx; /* 0x36096B12: mov eax, ecx */
   4662     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   4663     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   4664     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   4665     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   4666     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   4667     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4669     _flag_k = FK_CMP;
   4670     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   4671 L_36096B23:
   4672     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   4673 L_36096B26:
   4674     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   4675     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   4676     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   4677     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   4678     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4679     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4680     _flag_k = FK_CMP;
   4681     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   4682 L_36096B34:
   4683     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   4684     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   4685 L_36096B39:
   4686     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   4687     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   4688     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4690     _flag_k = FK_CMP;
   4691     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   4692 L_36096B41:
   4693     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   4694     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   4695 L_36096B46:
   4696     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   4697 L_36096B48:
   4698     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   4699     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   4700 L_36096B4E:
   4701     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   4702     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   4703     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   4704     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   4705     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   4706     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   4707     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   4708     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   4709     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   4710     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   4711     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   4712     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   4713     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4714     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4715     _flag_k = FK_CMP;
   4716     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   4717 L_36096B73:
   4718     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   4719 L_36096B76:
   4720     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   4721     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   4722     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   4723     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   4724     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4725     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4726     _flag_k = FK_CMP;
   4727     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   4728 L_36096B84:
   4729     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   4730     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   4731 L_36096B89:
   4732     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   4733     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   4734     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4736     _flag_k = FK_CMP;
   4737     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   4738 L_36096B90:
   4739     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   4740     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   4741 L_36096B94:
   4742     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   4743 L_36096B97:
   4744     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   4745 L_36096B99:
   4746     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   4747 L_36096B9C:
   4748     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   4749     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   4750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4752     _flag_k = FK_CMP;
   4753     RECOMP_BACKEDGE();
   4754     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   4755 L_36096BA8:
   4756     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   4757     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   4758     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   4759     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   4760     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   4761     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   4762     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   4763     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   4764     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   4765     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   4766     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   4767     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   4768     RECOMP_REGS_OUT();
   4769 }
   4770 
   4771 void sub_36096A4C(void) {
   4772     int _fpu_cmp = 0;
   4773     uint32_t _cf = 0;
   4774     int _df = 1;
   4775     uint32_t _flag_k = FK_NONE;
   4776     uint32_t _flag_a = 0, _flag_b = 0;
   4777     uint32_t _itail_tgt = 0;
   4778     RECOMP_REGS_LOCALS
   4779     RECOMP_ENTER(0x36096A4Cu);
   4780 
   4781     goto L_36096A4C;
   4782 L_36096A28:
   4783     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   4784     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   4785     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   4786     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4787     _cf = 0;
   4788     _flag_k = FK_NARROW(FK_TEST, 24);
   4789     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   4790 L_36096A36:
   4791     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   4792     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   4793     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   4794     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4796     _flag_k = FK_CMP;
   4797     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   4798 L_36096A43:
   4799     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   4800     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   4801     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   4802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4803     _flag_k = FK_NARROW(FK_CMP, 24);
   4804     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   4805 L_36096A4C:
   4806     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   4807     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   4808     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   4809     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   4810     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   4811     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   4812     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   4813     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   4814 L_36096A67:
   4815     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   4816     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4818     _flag_k = FK_CMP;
   4819     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   4820 L_36096A6C:
   4821     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   4822     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   4823     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   4824     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   4825     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   4826     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   4827     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4829     _flag_k = FK_CMP;
   4830     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   4831 L_36096A7D:
   4832     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   4833 L_36096A80:
   4834     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   4835     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   4836     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   4837     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   4838     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4840     _flag_k = FK_CMP;
   4841     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   4842 L_36096A8E:
   4843     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   4844     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   4845 L_36096A93:
   4846     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   4847     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   4848     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4850     _flag_k = FK_CMP;
   4851     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   4852 L_36096A9A:
   4853     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   4854     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   4855 L_36096A9E:
   4856     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   4857 L_36096AA1:
   4858     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   4859     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   4860 L_36096AA6:
   4861     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   4862     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   4863     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   4864     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   4865     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   4866     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   4867     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   4868     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   4869     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   4870     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   4871     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   4872     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   4873     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4874     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4875     _flag_k = FK_CMP;
   4876     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   4877 L_36096ACB:
   4878     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   4879 L_36096ACE:
   4880     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   4881     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   4882     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   4883     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   4884     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4885     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4886     _flag_k = FK_CMP;
   4887     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   4888 L_36096ADC:
   4889     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   4890     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   4891     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   4892 L_36096AE7:
   4893     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   4894     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   4895     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4897     _flag_k = FK_CMP;
   4898     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   4899 L_36096AEF:
   4900     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   4901     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   4902     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   4903 L_36096AFA:
   4904     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   4905     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   4906     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   4907 L_36096B04:
   4908     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   4909     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   4910     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4911     _flag_k = FK_NARROW(FK_CMP, 24);
   4912     RECOMP_BACKEDGE();
   4913     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   4914 L_36096B0E:
   4915     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   4916     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4918     _flag_k = FK_CMP;
   4919     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   4920 L_36096B12:
   4921     eax = ecx; /* 0x36096B12: mov eax, ecx */
   4922     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   4923     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   4924     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   4925     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   4926     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   4927     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4928     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4929     _flag_k = FK_CMP;
   4930     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   4931 L_36096B23:
   4932     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   4933 L_36096B26:
   4934     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   4935     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   4936     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   4937     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   4938     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4940     _flag_k = FK_CMP;
   4941     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   4942 L_36096B34:
   4943     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   4944     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   4945 L_36096B39:
   4946     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   4947     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   4948     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4950     _flag_k = FK_CMP;
   4951     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   4952 L_36096B41:
   4953     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   4954     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   4955 L_36096B46:
   4956     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   4957 L_36096B48:
   4958     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   4959     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   4960 L_36096B4E:
   4961     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   4962     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   4963     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   4964     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   4965     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   4966     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   4967     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   4968     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   4969     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   4970     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   4971     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   4972     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   4973     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4974     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4975     _flag_k = FK_CMP;
   4976     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   4977 L_36096B73:
   4978     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   4979 L_36096B76:
   4980     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   4981     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   4982     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   4983     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   4984     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4985     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4986     _flag_k = FK_CMP;
   4987     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   4988 L_36096B84:
   4989     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   4990     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   4991 L_36096B89:
   4992     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   4993     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   4994     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4995     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4996     _flag_k = FK_CMP;
   4997     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   4998 L_36096B90:
   4999     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   5000     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   5001 L_36096B94:
   5002     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   5003 L_36096B97:
   5004     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   5005 L_36096B99:
   5006     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   5007 L_36096B9C:
   5008     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   5009     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   5010     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5011     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5012     _flag_k = FK_CMP;
   5013     RECOMP_BACKEDGE();
   5014     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   5015 L_36096BA8:
   5016     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   5017     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   5018     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   5019     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   5020     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   5021     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   5022     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   5023     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   5024     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   5025     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   5026     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   5027     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   5028     RECOMP_REGS_OUT();
   5029 }
   5030 
   5031 void sub_36096AA1(void) {
   5032     int _fpu_cmp = 0;
   5033     uint32_t _cf = 0;
   5034     int _df = 1;
   5035     uint32_t _flag_k = FK_NONE;
   5036     uint32_t _flag_a = 0, _flag_b = 0;
   5037     uint32_t _itail_tgt = 0;
   5038     RECOMP_REGS_LOCALS
   5039     RECOMP_ENTER(0x36096AA1u);
   5040 
   5041     goto L_36096AA1;
   5042 L_36096A28:
   5043     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   5044     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   5045     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   5046     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5047     _cf = 0;
   5048     _flag_k = FK_NARROW(FK_TEST, 24);
   5049     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   5050 L_36096A36:
   5051     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   5052     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   5053     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   5054     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5056     _flag_k = FK_CMP;
   5057     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   5058 L_36096A43:
   5059     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   5060     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   5061     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   5062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5063     _flag_k = FK_NARROW(FK_CMP, 24);
   5064     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   5065 L_36096A4C:
   5066     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   5067     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   5068     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   5069     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   5070     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   5071     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   5072     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   5073     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   5074 L_36096A67:
   5075     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   5076     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5078     _flag_k = FK_CMP;
   5079     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   5080 L_36096A6C:
   5081     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   5082     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   5083     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   5084     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   5085     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   5086     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   5087     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5089     _flag_k = FK_CMP;
   5090     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   5091 L_36096A7D:
   5092     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   5093 L_36096A80:
   5094     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   5095     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   5096     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   5097     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   5098     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5099     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5100     _flag_k = FK_CMP;
   5101     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   5102 L_36096A8E:
   5103     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   5104     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   5105 L_36096A93:
   5106     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   5107     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   5108     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5110     _flag_k = FK_CMP;
   5111     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   5112 L_36096A9A:
   5113     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   5114     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   5115 L_36096A9E:
   5116     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   5117 L_36096AA1:
   5118     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   5119     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   5120 L_36096AA6:
   5121     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   5122     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   5123     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   5124     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   5125     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   5126     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   5127     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   5128     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   5129     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   5130     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   5131     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   5132     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   5133     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5134     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5135     _flag_k = FK_CMP;
   5136     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   5137 L_36096ACB:
   5138     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   5139 L_36096ACE:
   5140     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   5141     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   5142     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   5143     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   5144     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5146     _flag_k = FK_CMP;
   5147     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   5148 L_36096ADC:
   5149     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   5150     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   5151     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   5152 L_36096AE7:
   5153     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   5154     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   5155     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5157     _flag_k = FK_CMP;
   5158     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   5159 L_36096AEF:
   5160     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   5161     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   5162     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   5163 L_36096AFA:
   5164     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   5165     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   5166     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   5167 L_36096B04:
   5168     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   5169     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   5170     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5171     _flag_k = FK_NARROW(FK_CMP, 24);
   5172     RECOMP_BACKEDGE();
   5173     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   5174 L_36096B0E:
   5175     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   5176     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5178     _flag_k = FK_CMP;
   5179     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   5180 L_36096B12:
   5181     eax = ecx; /* 0x36096B12: mov eax, ecx */
   5182     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   5183     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   5184     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   5185     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   5186     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   5187     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5189     _flag_k = FK_CMP;
   5190     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   5191 L_36096B23:
   5192     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   5193 L_36096B26:
   5194     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   5195     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   5196     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   5197     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   5198     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5200     _flag_k = FK_CMP;
   5201     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   5202 L_36096B34:
   5203     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   5204     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   5205 L_36096B39:
   5206     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   5207     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   5208     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5210     _flag_k = FK_CMP;
   5211     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   5212 L_36096B41:
   5213     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   5214     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   5215 L_36096B46:
   5216     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   5217 L_36096B48:
   5218     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   5219     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   5220 L_36096B4E:
   5221     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   5222     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   5223     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   5224     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   5225     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   5226     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   5227     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   5228     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   5229     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   5230     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   5231     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   5232     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   5233     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5235     _flag_k = FK_CMP;
   5236     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   5237 L_36096B73:
   5238     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   5239 L_36096B76:
   5240     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   5241     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   5242     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   5243     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   5244     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5246     _flag_k = FK_CMP;
   5247     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   5248 L_36096B84:
   5249     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   5250     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   5251 L_36096B89:
   5252     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   5253     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   5254     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5256     _flag_k = FK_CMP;
   5257     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   5258 L_36096B90:
   5259     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   5260     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   5261 L_36096B94:
   5262     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   5263 L_36096B97:
   5264     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   5265 L_36096B99:
   5266     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   5267 L_36096B9C:
   5268     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   5269     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   5270     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5272     _flag_k = FK_CMP;
   5273     RECOMP_BACKEDGE();
   5274     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   5275 L_36096BA8:
   5276     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   5277     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   5278     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   5279     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   5280     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   5281     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   5282     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   5283     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   5284     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   5285     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   5286     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   5287     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   5288     RECOMP_REGS_OUT();
   5289 }
   5290 
   5291 void sub_36096AA6(void) {
   5292     int _fpu_cmp = 0;
   5293     uint32_t _cf = 0;
   5294     int _df = 1;
   5295     uint32_t _flag_k = FK_NONE;
   5296     uint32_t _flag_a = 0, _flag_b = 0;
   5297     uint32_t _itail_tgt = 0;
   5298     RECOMP_REGS_LOCALS
   5299     RECOMP_ENTER(0x36096AA6u);
   5300 
   5301     goto L_36096AA6;
   5302 L_36096A28:
   5303     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   5304     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   5305     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   5306     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5307     _cf = 0;
   5308     _flag_k = FK_NARROW(FK_TEST, 24);
   5309     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   5310 L_36096A36:
   5311     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   5312     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   5313     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   5314     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5316     _flag_k = FK_CMP;
   5317     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   5318 L_36096A43:
   5319     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   5320     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   5321     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   5322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5323     _flag_k = FK_NARROW(FK_CMP, 24);
   5324     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   5325 L_36096A4C:
   5326     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   5327     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   5328     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   5329     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   5330     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   5331     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   5332     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   5333     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   5334 L_36096A67:
   5335     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   5336     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5338     _flag_k = FK_CMP;
   5339     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   5340 L_36096A6C:
   5341     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   5342     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   5343     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   5344     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   5345     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   5346     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   5347     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5349     _flag_k = FK_CMP;
   5350     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   5351 L_36096A7D:
   5352     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   5353 L_36096A80:
   5354     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   5355     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   5356     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   5357     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   5358     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5359     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5360     _flag_k = FK_CMP;
   5361     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   5362 L_36096A8E:
   5363     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   5364     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   5365 L_36096A93:
   5366     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   5367     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   5368     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5370     _flag_k = FK_CMP;
   5371     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   5372 L_36096A9A:
   5373     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   5374     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   5375 L_36096A9E:
   5376     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   5377 L_36096AA1:
   5378     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   5379     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   5380 L_36096AA6:
   5381     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   5382     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   5383     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   5384     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   5385     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   5386     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   5387     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   5388     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   5389     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   5390     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   5391     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   5392     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   5393     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5394     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5395     _flag_k = FK_CMP;
   5396     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   5397 L_36096ACB:
   5398     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   5399 L_36096ACE:
   5400     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   5401     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   5402     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   5403     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   5404     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5406     _flag_k = FK_CMP;
   5407     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   5408 L_36096ADC:
   5409     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   5410     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   5411     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   5412 L_36096AE7:
   5413     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   5414     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   5415     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5416     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5417     _flag_k = FK_CMP;
   5418     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   5419 L_36096AEF:
   5420     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   5421     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   5422     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   5423 L_36096AFA:
   5424     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   5425     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   5426     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   5427 L_36096B04:
   5428     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   5429     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   5430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5431     _flag_k = FK_NARROW(FK_CMP, 24);
   5432     RECOMP_BACKEDGE();
   5433     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   5434 L_36096B0E:
   5435     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   5436     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5438     _flag_k = FK_CMP;
   5439     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   5440 L_36096B12:
   5441     eax = ecx; /* 0x36096B12: mov eax, ecx */
   5442     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   5443     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   5444     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   5445     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   5446     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   5447     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5449     _flag_k = FK_CMP;
   5450     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   5451 L_36096B23:
   5452     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   5453 L_36096B26:
   5454     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   5455     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   5456     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   5457     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   5458     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5460     _flag_k = FK_CMP;
   5461     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   5462 L_36096B34:
   5463     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   5464     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   5465 L_36096B39:
   5466     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   5467     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   5468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5470     _flag_k = FK_CMP;
   5471     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   5472 L_36096B41:
   5473     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   5474     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   5475 L_36096B46:
   5476     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   5477 L_36096B48:
   5478     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   5479     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   5480 L_36096B4E:
   5481     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   5482     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   5483     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   5484     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   5485     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   5486     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   5487     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   5488     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   5489     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   5490     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   5491     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   5492     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   5493     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5494     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5495     _flag_k = FK_CMP;
   5496     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   5497 L_36096B73:
   5498     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   5499 L_36096B76:
   5500     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   5501     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   5502     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   5503     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   5504     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5506     _flag_k = FK_CMP;
   5507     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   5508 L_36096B84:
   5509     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   5510     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   5511 L_36096B89:
   5512     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   5513     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   5514     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5515     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5516     _flag_k = FK_CMP;
   5517     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   5518 L_36096B90:
   5519     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   5520     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   5521 L_36096B94:
   5522     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   5523 L_36096B97:
   5524     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   5525 L_36096B99:
   5526     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   5527 L_36096B9C:
   5528     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   5529     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   5530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5532     _flag_k = FK_CMP;
   5533     RECOMP_BACKEDGE();
   5534     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   5535 L_36096BA8:
   5536     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   5537     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   5538     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   5539     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   5540     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   5541     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   5542     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   5543     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   5544     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   5545     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   5546     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   5547     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   5548     RECOMP_REGS_OUT();
   5549 }
   5550 
   5551 void sub_36096B04(void) {
   5552     int _fpu_cmp = 0;
   5553     uint32_t _cf = 0;
   5554     int _df = 1;
   5555     uint32_t _flag_k = FK_NONE;
   5556     uint32_t _flag_a = 0, _flag_b = 0;
   5557     uint32_t _itail_tgt = 0;
   5558     RECOMP_REGS_LOCALS
   5559     RECOMP_ENTER(0x36096B04u);
   5560 
   5561     goto L_36096B04;
   5562 L_36096A28:
   5563     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   5564     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   5565     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   5566     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5567     _cf = 0;
   5568     _flag_k = FK_NARROW(FK_TEST, 24);
   5569     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   5570 L_36096A36:
   5571     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   5572     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   5573     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   5574     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5575     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5576     _flag_k = FK_CMP;
   5577     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   5578 L_36096A43:
   5579     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   5580     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   5581     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   5582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5583     _flag_k = FK_NARROW(FK_CMP, 24);
   5584     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   5585 L_36096A4C:
   5586     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   5587     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   5588     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   5589     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   5590     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   5591     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   5592     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   5593     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   5594 L_36096A67:
   5595     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   5596     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5598     _flag_k = FK_CMP;
   5599     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   5600 L_36096A6C:
   5601     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   5602     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   5603     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   5604     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   5605     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   5606     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   5607     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5609     _flag_k = FK_CMP;
   5610     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   5611 L_36096A7D:
   5612     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   5613 L_36096A80:
   5614     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   5615     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   5616     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   5617     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   5618     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5620     _flag_k = FK_CMP;
   5621     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   5622 L_36096A8E:
   5623     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   5624     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   5625 L_36096A93:
   5626     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   5627     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   5628     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5630     _flag_k = FK_CMP;
   5631     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   5632 L_36096A9A:
   5633     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   5634     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   5635 L_36096A9E:
   5636     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   5637 L_36096AA1:
   5638     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   5639     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   5640 L_36096AA6:
   5641     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   5642     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   5643     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   5644     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   5645     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   5646     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   5647     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   5648     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   5649     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   5650     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   5651     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   5652     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   5653     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5655     _flag_k = FK_CMP;
   5656     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   5657 L_36096ACB:
   5658     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   5659 L_36096ACE:
   5660     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   5661     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   5662     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   5663     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   5664     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5666     _flag_k = FK_CMP;
   5667     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   5668 L_36096ADC:
   5669     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   5670     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   5671     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   5672 L_36096AE7:
   5673     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   5674     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   5675     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5677     _flag_k = FK_CMP;
   5678     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   5679 L_36096AEF:
   5680     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   5681     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   5682     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   5683 L_36096AFA:
   5684     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   5685     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   5686     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   5687 L_36096B04:
   5688     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   5689     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   5690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5691     _flag_k = FK_NARROW(FK_CMP, 24);
   5692     RECOMP_BACKEDGE();
   5693     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   5694 L_36096B0E:
   5695     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   5696     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5698     _flag_k = FK_CMP;
   5699     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   5700 L_36096B12:
   5701     eax = ecx; /* 0x36096B12: mov eax, ecx */
   5702     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   5703     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   5704     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   5705     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   5706     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   5707     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5708     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5709     _flag_k = FK_CMP;
   5710     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   5711 L_36096B23:
   5712     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   5713 L_36096B26:
   5714     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   5715     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   5716     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   5717     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   5718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5720     _flag_k = FK_CMP;
   5721     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   5722 L_36096B34:
   5723     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   5724     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   5725 L_36096B39:
   5726     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   5727     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   5728     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5729     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5730     _flag_k = FK_CMP;
   5731     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   5732 L_36096B41:
   5733     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   5734     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   5735 L_36096B46:
   5736     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   5737 L_36096B48:
   5738     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   5739     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   5740 L_36096B4E:
   5741     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   5742     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   5743     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   5744     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   5745     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   5746     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   5747     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   5748     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   5749     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   5750     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   5751     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   5752     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   5753     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5754     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5755     _flag_k = FK_CMP;
   5756     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   5757 L_36096B73:
   5758     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   5759 L_36096B76:
   5760     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   5761     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   5762     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   5763     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   5764     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5765     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5766     _flag_k = FK_CMP;
   5767     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   5768 L_36096B84:
   5769     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   5770     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   5771 L_36096B89:
   5772     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   5773     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   5774     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5775     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5776     _flag_k = FK_CMP;
   5777     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   5778 L_36096B90:
   5779     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   5780     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   5781 L_36096B94:
   5782     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   5783 L_36096B97:
   5784     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   5785 L_36096B99:
   5786     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   5787 L_36096B9C:
   5788     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   5789     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   5790     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5792     _flag_k = FK_CMP;
   5793     RECOMP_BACKEDGE();
   5794     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   5795 L_36096BA8:
   5796     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   5797     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   5798     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   5799     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   5800     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   5801     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   5802     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   5803     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   5804     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   5805     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   5806     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   5807     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   5808     RECOMP_REGS_OUT();
   5809 }
   5810 
   5811 void sub_36096B48(void) {
   5812     int _fpu_cmp = 0;
   5813     uint32_t _cf = 0;
   5814     int _df = 1;
   5815     uint32_t _flag_k = FK_NONE;
   5816     uint32_t _flag_a = 0, _flag_b = 0;
   5817     uint32_t _itail_tgt = 0;
   5818     RECOMP_REGS_LOCALS
   5819     RECOMP_ENTER(0x36096B48u);
   5820 
   5821     goto L_36096B48;
   5822 L_36096A28:
   5823     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   5824     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   5825     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   5826     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5827     _cf = 0;
   5828     _flag_k = FK_NARROW(FK_TEST, 24);
   5829     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   5830 L_36096A36:
   5831     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   5832     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   5833     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   5834     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5835     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5836     _flag_k = FK_CMP;
   5837     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   5838 L_36096A43:
   5839     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   5840     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   5841     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   5842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5843     _flag_k = FK_NARROW(FK_CMP, 24);
   5844     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   5845 L_36096A4C:
   5846     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   5847     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   5848     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   5849     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   5850     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   5851     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   5852     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   5853     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   5854 L_36096A67:
   5855     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   5856     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5858     _flag_k = FK_CMP;
   5859     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   5860 L_36096A6C:
   5861     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   5862     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   5863     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   5864     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   5865     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   5866     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   5867     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5869     _flag_k = FK_CMP;
   5870     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   5871 L_36096A7D:
   5872     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   5873 L_36096A80:
   5874     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   5875     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   5876     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   5877     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   5878     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5879     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5880     _flag_k = FK_CMP;
   5881     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   5882 L_36096A8E:
   5883     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   5884     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   5885 L_36096A93:
   5886     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   5887     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   5888     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5890     _flag_k = FK_CMP;
   5891     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   5892 L_36096A9A:
   5893     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   5894     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   5895 L_36096A9E:
   5896     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   5897 L_36096AA1:
   5898     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   5899     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   5900 L_36096AA6:
   5901     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   5902     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   5903     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   5904     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   5905     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   5906     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   5907     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   5908     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   5909     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   5910     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   5911     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   5912     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   5913     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5915     _flag_k = FK_CMP;
   5916     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   5917 L_36096ACB:
   5918     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   5919 L_36096ACE:
   5920     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   5921     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   5922     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   5923     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   5924     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5926     _flag_k = FK_CMP;
   5927     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   5928 L_36096ADC:
   5929     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   5930     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   5931     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   5932 L_36096AE7:
   5933     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   5934     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   5935     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5937     _flag_k = FK_CMP;
   5938     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   5939 L_36096AEF:
   5940     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   5941     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   5942     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   5943 L_36096AFA:
   5944     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   5945     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   5946     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   5947 L_36096B04:
   5948     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   5949     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   5950     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5951     _flag_k = FK_NARROW(FK_CMP, 24);
   5952     RECOMP_BACKEDGE();
   5953     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   5954 L_36096B0E:
   5955     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   5956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5958     _flag_k = FK_CMP;
   5959     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   5960 L_36096B12:
   5961     eax = ecx; /* 0x36096B12: mov eax, ecx */
   5962     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   5963     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   5964     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   5965     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   5966     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   5967     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5969     _flag_k = FK_CMP;
   5970     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   5971 L_36096B23:
   5972     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   5973 L_36096B26:
   5974     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   5975     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   5976     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   5977     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   5978     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5980     _flag_k = FK_CMP;
   5981     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   5982 L_36096B34:
   5983     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   5984     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   5985 L_36096B39:
   5986     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   5987     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   5988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5990     _flag_k = FK_CMP;
   5991     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   5992 L_36096B41:
   5993     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   5994     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   5995 L_36096B46:
   5996     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   5997 L_36096B48:
   5998     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   5999     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   6000 L_36096B4E:
   6001     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   6002     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   6003     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   6004     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   6005     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   6006     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   6007     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   6008     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   6009     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   6010     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   6011     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   6012     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   6013     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6015     _flag_k = FK_CMP;
   6016     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   6017 L_36096B73:
   6018     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   6019 L_36096B76:
   6020     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   6021     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   6022     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   6023     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   6024     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6026     _flag_k = FK_CMP;
   6027     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   6028 L_36096B84:
   6029     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   6030     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   6031 L_36096B89:
   6032     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   6033     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   6034     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6036     _flag_k = FK_CMP;
   6037     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   6038 L_36096B90:
   6039     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   6040     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   6041 L_36096B94:
   6042     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   6043 L_36096B97:
   6044     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   6045 L_36096B99:
   6046     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   6047 L_36096B9C:
   6048     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   6049     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   6050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6052     _flag_k = FK_CMP;
   6053     RECOMP_BACKEDGE();
   6054     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   6055 L_36096BA8:
   6056     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   6057     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   6058     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   6059     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   6060     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   6061     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   6062     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   6063     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   6064     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   6065     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   6066     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   6067     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   6068     RECOMP_REGS_OUT();
   6069 }
   6070 
   6071 void sub_36096B4E(void) {
   6072     int _fpu_cmp = 0;
   6073     uint32_t _cf = 0;
   6074     int _df = 1;
   6075     uint32_t _flag_k = FK_NONE;
   6076     uint32_t _flag_a = 0, _flag_b = 0;
   6077     uint32_t _itail_tgt = 0;
   6078     RECOMP_REGS_LOCALS
   6079     RECOMP_ENTER(0x36096B4Eu);
   6080 
   6081     goto L_36096B4E;
   6082 L_36096A28:
   6083     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   6084     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   6085     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   6086     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6087     _cf = 0;
   6088     _flag_k = FK_NARROW(FK_TEST, 24);
   6089     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   6090 L_36096A36:
   6091     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   6092     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   6093     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   6094     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6096     _flag_k = FK_CMP;
   6097     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   6098 L_36096A43:
   6099     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   6100     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   6101     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   6102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6103     _flag_k = FK_NARROW(FK_CMP, 24);
   6104     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   6105 L_36096A4C:
   6106     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   6107     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   6108     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   6109     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   6110     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   6111     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   6112     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   6113     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   6114 L_36096A67:
   6115     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   6116     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6118     _flag_k = FK_CMP;
   6119     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   6120 L_36096A6C:
   6121     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   6122     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   6123     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   6124     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   6125     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   6126     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   6127     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6128     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6129     _flag_k = FK_CMP;
   6130     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   6131 L_36096A7D:
   6132     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   6133 L_36096A80:
   6134     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   6135     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   6136     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   6137     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   6138     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6140     _flag_k = FK_CMP;
   6141     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   6142 L_36096A8E:
   6143     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   6144     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   6145 L_36096A93:
   6146     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   6147     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   6148     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   6149     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6150     _flag_k = FK_CMP;
   6151     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   6152 L_36096A9A:
   6153     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   6154     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   6155 L_36096A9E:
   6156     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   6157 L_36096AA1:
   6158     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   6159     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   6160 L_36096AA6:
   6161     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   6162     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   6163     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   6164     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   6165     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   6166     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   6167     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   6168     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   6169     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   6170     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   6171     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   6172     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   6173     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6175     _flag_k = FK_CMP;
   6176     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   6177 L_36096ACB:
   6178     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   6179 L_36096ACE:
   6180     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   6181     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   6182     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   6183     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   6184     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6186     _flag_k = FK_CMP;
   6187     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   6188 L_36096ADC:
   6189     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   6190     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   6191     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   6192 L_36096AE7:
   6193     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   6194     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   6195     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6197     _flag_k = FK_CMP;
   6198     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   6199 L_36096AEF:
   6200     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   6201     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   6202     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   6203 L_36096AFA:
   6204     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   6205     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   6206     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   6207 L_36096B04:
   6208     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   6209     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   6210     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6211     _flag_k = FK_NARROW(FK_CMP, 24);
   6212     RECOMP_BACKEDGE();
   6213     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   6214 L_36096B0E:
   6215     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   6216     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6218     _flag_k = FK_CMP;
   6219     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   6220 L_36096B12:
   6221     eax = ecx; /* 0x36096B12: mov eax, ecx */
   6222     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   6223     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   6224     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   6225     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   6226     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   6227     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6229     _flag_k = FK_CMP;
   6230     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   6231 L_36096B23:
   6232     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   6233 L_36096B26:
   6234     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   6235     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   6236     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   6237     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   6238     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6240     _flag_k = FK_CMP;
   6241     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   6242 L_36096B34:
   6243     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   6244     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   6245 L_36096B39:
   6246     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   6247     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   6248     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   6249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6250     _flag_k = FK_CMP;
   6251     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   6252 L_36096B41:
   6253     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   6254     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   6255 L_36096B46:
   6256     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   6257 L_36096B48:
   6258     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   6259     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   6260 L_36096B4E:
   6261     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   6262     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   6263     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   6264     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   6265     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   6266     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   6267     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   6268     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   6269     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   6270     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   6271     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   6272     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   6273     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6274     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6275     _flag_k = FK_CMP;
   6276     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   6277 L_36096B73:
   6278     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   6279 L_36096B76:
   6280     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   6281     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   6282     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   6283     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   6284     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6286     _flag_k = FK_CMP;
   6287     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   6288 L_36096B84:
   6289     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   6290     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   6291 L_36096B89:
   6292     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   6293     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   6294     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6296     _flag_k = FK_CMP;
   6297     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   6298 L_36096B90:
   6299     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   6300     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   6301 L_36096B94:
   6302     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   6303 L_36096B97:
   6304     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   6305 L_36096B99:
   6306     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   6307 L_36096B9C:
   6308     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   6309     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   6310     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6312     _flag_k = FK_CMP;
   6313     RECOMP_BACKEDGE();
   6314     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   6315 L_36096BA8:
   6316     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   6317     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   6318     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   6319     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   6320     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   6321     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   6322     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   6323     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   6324     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   6325     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   6326     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   6327     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   6328     RECOMP_REGS_OUT();
   6329 }
   6330 
   6331 void sub_36096B97(void) {
   6332     int _fpu_cmp = 0;
   6333     uint32_t _cf = 0;
   6334     int _df = 1;
   6335     uint32_t _flag_k = FK_NONE;
   6336     uint32_t _flag_a = 0, _flag_b = 0;
   6337     uint32_t _itail_tgt = 0;
   6338     RECOMP_REGS_LOCALS
   6339     RECOMP_ENTER(0x36096B97u);
   6340 
   6341     goto L_36096B97;
   6342 L_36096A28:
   6343     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   6344     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   6345     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   6346     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6347     _cf = 0;
   6348     _flag_k = FK_NARROW(FK_TEST, 24);
   6349     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   6350 L_36096A36:
   6351     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   6352     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   6353     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   6354     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6356     _flag_k = FK_CMP;
   6357     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   6358 L_36096A43:
   6359     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   6360     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   6361     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   6362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6363     _flag_k = FK_NARROW(FK_CMP, 24);
   6364     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   6365 L_36096A4C:
   6366     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   6367     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   6368     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   6369     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   6370     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   6371     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   6372     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   6373     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   6374 L_36096A67:
   6375     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   6376     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6378     _flag_k = FK_CMP;
   6379     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   6380 L_36096A6C:
   6381     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   6382     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   6383     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   6384     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   6385     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   6386     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   6387     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6389     _flag_k = FK_CMP;
   6390     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   6391 L_36096A7D:
   6392     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   6393 L_36096A80:
   6394     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   6395     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   6396     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   6397     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   6398     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6400     _flag_k = FK_CMP;
   6401     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   6402 L_36096A8E:
   6403     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   6404     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   6405 L_36096A93:
   6406     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   6407     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   6408     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   6409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6410     _flag_k = FK_CMP;
   6411     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   6412 L_36096A9A:
   6413     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   6414     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   6415 L_36096A9E:
   6416     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   6417 L_36096AA1:
   6418     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   6419     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   6420 L_36096AA6:
   6421     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   6422     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   6423     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   6424     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   6425     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   6426     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   6427     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   6428     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   6429     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   6430     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   6431     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   6432     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   6433     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6434     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6435     _flag_k = FK_CMP;
   6436     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   6437 L_36096ACB:
   6438     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   6439 L_36096ACE:
   6440     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   6441     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   6442     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   6443     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   6444     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6446     _flag_k = FK_CMP;
   6447     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   6448 L_36096ADC:
   6449     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   6450     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   6451     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   6452 L_36096AE7:
   6453     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   6454     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   6455     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6457     _flag_k = FK_CMP;
   6458     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   6459 L_36096AEF:
   6460     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   6461     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   6462     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   6463 L_36096AFA:
   6464     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   6465     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   6466     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   6467 L_36096B04:
   6468     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   6469     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   6470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6471     _flag_k = FK_NARROW(FK_CMP, 24);
   6472     RECOMP_BACKEDGE();
   6473     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   6474 L_36096B0E:
   6475     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   6476     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6478     _flag_k = FK_CMP;
   6479     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   6480 L_36096B12:
   6481     eax = ecx; /* 0x36096B12: mov eax, ecx */
   6482     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   6483     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   6484     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   6485     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   6486     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   6487     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6489     _flag_k = FK_CMP;
   6490     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   6491 L_36096B23:
   6492     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   6493 L_36096B26:
   6494     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   6495     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   6496     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   6497     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   6498     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6500     _flag_k = FK_CMP;
   6501     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   6502 L_36096B34:
   6503     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   6504     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   6505 L_36096B39:
   6506     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   6507     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   6508     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   6509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6510     _flag_k = FK_CMP;
   6511     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   6512 L_36096B41:
   6513     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   6514     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   6515 L_36096B46:
   6516     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   6517 L_36096B48:
   6518     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   6519     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   6520 L_36096B4E:
   6521     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   6522     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   6523     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   6524     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   6525     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   6526     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   6527     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   6528     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   6529     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   6530     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   6531     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   6532     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   6533     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6535     _flag_k = FK_CMP;
   6536     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   6537 L_36096B73:
   6538     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   6539 L_36096B76:
   6540     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   6541     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   6542     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   6543     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   6544     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6545     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6546     _flag_k = FK_CMP;
   6547     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   6548 L_36096B84:
   6549     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   6550     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   6551 L_36096B89:
   6552     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   6553     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   6554     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6556     _flag_k = FK_CMP;
   6557     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   6558 L_36096B90:
   6559     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   6560     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   6561 L_36096B94:
   6562     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   6563 L_36096B97:
   6564     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   6565 L_36096B99:
   6566     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   6567 L_36096B9C:
   6568     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   6569     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   6570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6571     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6572     _flag_k = FK_CMP;
   6573     RECOMP_BACKEDGE();
   6574     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   6575 L_36096BA8:
   6576     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   6577     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   6578     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   6579     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   6580     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   6581     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   6582     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   6583     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   6584     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   6585     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   6586     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   6587     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   6588     RECOMP_REGS_OUT();
   6589 }
   6590 
   6591 void sub_36096B99(void) {
   6592     int _fpu_cmp = 0;
   6593     uint32_t _cf = 0;
   6594     int _df = 1;
   6595     uint32_t _flag_k = FK_NONE;
   6596     uint32_t _flag_a = 0, _flag_b = 0;
   6597     uint32_t _itail_tgt = 0;
   6598     RECOMP_REGS_LOCALS
   6599     RECOMP_ENTER(0x36096B99u);
   6600 
   6601     goto L_36096B99;
   6602 L_36096A28:
   6603     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   6604     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   6605     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   6606     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6607     _cf = 0;
   6608     _flag_k = FK_NARROW(FK_TEST, 24);
   6609     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   6610 L_36096A36:
   6611     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   6612     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   6613     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   6614     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6616     _flag_k = FK_CMP;
   6617     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   6618 L_36096A43:
   6619     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   6620     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   6621     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   6622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6623     _flag_k = FK_NARROW(FK_CMP, 24);
   6624     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   6625 L_36096A4C:
   6626     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   6627     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   6628     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   6629     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   6630     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   6631     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   6632     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   6633     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   6634 L_36096A67:
   6635     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   6636     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6638     _flag_k = FK_CMP;
   6639     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   6640 L_36096A6C:
   6641     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   6642     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   6643     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   6644     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   6645     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   6646     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   6647     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6649     _flag_k = FK_CMP;
   6650     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   6651 L_36096A7D:
   6652     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   6653 L_36096A80:
   6654     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   6655     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   6656     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   6657     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   6658     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6659     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6660     _flag_k = FK_CMP;
   6661     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   6662 L_36096A8E:
   6663     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   6664     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   6665 L_36096A93:
   6666     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   6667     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   6668     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   6669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6670     _flag_k = FK_CMP;
   6671     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   6672 L_36096A9A:
   6673     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   6674     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   6675 L_36096A9E:
   6676     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   6677 L_36096AA1:
   6678     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   6679     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   6680 L_36096AA6:
   6681     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   6682     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   6683     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   6684     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   6685     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   6686     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   6687     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   6688     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   6689     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   6690     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   6691     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   6692     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   6693     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6695     _flag_k = FK_CMP;
   6696     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   6697 L_36096ACB:
   6698     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   6699 L_36096ACE:
   6700     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   6701     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   6702     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   6703     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   6704     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6705     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6706     _flag_k = FK_CMP;
   6707     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   6708 L_36096ADC:
   6709     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   6710     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   6711     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   6712 L_36096AE7:
   6713     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   6714     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   6715     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6717     _flag_k = FK_CMP;
   6718     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   6719 L_36096AEF:
   6720     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   6721     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   6722     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   6723 L_36096AFA:
   6724     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   6725     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   6726     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   6727 L_36096B04:
   6728     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   6729     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   6730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6731     _flag_k = FK_NARROW(FK_CMP, 24);
   6732     RECOMP_BACKEDGE();
   6733     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   6734 L_36096B0E:
   6735     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   6736     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6738     _flag_k = FK_CMP;
   6739     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   6740 L_36096B12:
   6741     eax = ecx; /* 0x36096B12: mov eax, ecx */
   6742     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   6743     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   6744     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   6745     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   6746     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   6747     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6749     _flag_k = FK_CMP;
   6750     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   6751 L_36096B23:
   6752     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   6753 L_36096B26:
   6754     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   6755     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   6756     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   6757     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   6758     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6760     _flag_k = FK_CMP;
   6761     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   6762 L_36096B34:
   6763     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   6764     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   6765 L_36096B39:
   6766     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   6767     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   6768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   6769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6770     _flag_k = FK_CMP;
   6771     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   6772 L_36096B41:
   6773     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   6774     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   6775 L_36096B46:
   6776     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   6777 L_36096B48:
   6778     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   6779     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   6780 L_36096B4E:
   6781     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   6782     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   6783     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   6784     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   6785     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   6786     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   6787     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   6788     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   6789     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   6790     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   6791     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   6792     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   6793     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6794     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6795     _flag_k = FK_CMP;
   6796     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   6797 L_36096B73:
   6798     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   6799 L_36096B76:
   6800     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   6801     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   6802     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   6803     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   6804     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6806     _flag_k = FK_CMP;
   6807     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   6808 L_36096B84:
   6809     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   6810     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   6811 L_36096B89:
   6812     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   6813     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   6814     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6816     _flag_k = FK_CMP;
   6817     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   6818 L_36096B90:
   6819     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   6820     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   6821 L_36096B94:
   6822     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   6823 L_36096B97:
   6824     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   6825 L_36096B99:
   6826     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   6827 L_36096B9C:
   6828     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   6829     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   6830     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6832     _flag_k = FK_CMP;
   6833     RECOMP_BACKEDGE();
   6834     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   6835 L_36096BA8:
   6836     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   6837     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   6838     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   6839     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   6840     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   6841     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   6842     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   6843     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   6844     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   6845     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   6846     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   6847     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   6848     RECOMP_REGS_OUT();
   6849 }
   6850 
   6851 void sub_36096B9C(void) {
   6852     int _fpu_cmp = 0;
   6853     uint32_t _cf = 0;
   6854     int _df = 1;
   6855     uint32_t _flag_k = FK_NONE;
   6856     uint32_t _flag_a = 0, _flag_b = 0;
   6857     uint32_t _itail_tgt = 0;
   6858     RECOMP_REGS_LOCALS
   6859     RECOMP_ENTER(0x36096B9Cu);
   6860 
   6861     goto L_36096B9C;
   6862 L_36096A28:
   6863     ecx = MEM32(eax + 0x4); /* 0x36096A28: mov ecx, dword ptr [eax + 4] */
   6864     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x36096A2B: mov dl, byte ptr [ecx + 0x20] */
   6865     /* test LO8(edx), LO8(edx) */ /* 0x36096A2E: test dl, dl */
   6866     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6867     _cf = 0;
   6868     _flag_k = FK_NARROW(FK_TEST, 24);
   6869     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096BA8; /* 0x36096A30: jne 0x36096ba8 */
   6870 L_36096A36:
   6871     edi = MEM32(ecx + 0x4); /* 0x36096A36: mov edi, dword ptr [ecx + 4] */
   6872     edx = MEM32(edi); /* 0x36096A39: mov edx, dword ptr [edi] */
   6873     /* cmp ecx, edx */ /* 0x36096A3B: cmp ecx, edx */
   6874     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6875     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6876     _flag_k = FK_CMP;
   6877     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B04; /* 0x36096A3D: jne 0x36096b04 */
   6878 L_36096A43:
   6879     edx = MEM32(edi + 0x8); /* 0x36096A43: mov edx, dword ptr [edi + 8] */
   6880     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096A46: cmp byte ptr [edx + 0x20], 0 */
   6881     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   6882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6883     _flag_k = FK_NARROW(FK_CMP, 24);
   6884     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A67; /* 0x36096A4A: jne 0x36096a67 */
   6885 L_36096A4C:
   6886     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4C: mov byte ptr [ecx + 0x20], bl */
   6887     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096A4F: mov byte ptr [edx + 0x20], bl */
   6888     ecx = MEM32(eax + 0x4); /* 0x36096A52: mov ecx, dword ptr [eax + 4] */
   6889     edx = MEM32(ecx + 0x4); /* 0x36096A55: mov edx, dword ptr [ecx + 4] */
   6890     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x36096A58: mov byte ptr [edx + 0x20], 0 */
   6891     eax = MEM32(eax + 0x4); /* 0x36096A5C: mov eax, dword ptr [eax + 4] */
   6892     eax = MEM32(eax + 0x4); /* 0x36096A5F: mov eax, dword ptr [eax + 4] */
   6893     goto L_36096B9C; /* 0x36096A62: jmp 0x36096b9c */
   6894 L_36096A67:
   6895     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36096A67: cmp eax, dword ptr [ecx + 8] */
   6896     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6897     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6898     _flag_k = FK_CMP;
   6899     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AA6; /* 0x36096A6A: jne 0x36096aa6 */
   6900 L_36096A6C:
   6901     eax = ecx; /* 0x36096A6C: mov eax, ecx */
   6902     ecx = MEM32(eax + 0x8); /* 0x36096A6E: mov ecx, dword ptr [eax + 8] */
   6903     edx = MEM32(ecx); /* 0x36096A71: mov edx, dword ptr [ecx] */
   6904     MEM32(eax + 0x8) = edx; /* 0x36096A73: mov dword ptr [eax + 8], edx */
   6905     edx = MEM32(ecx); /* 0x36096A76: mov edx, dword ptr [ecx] */
   6906     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096A78: cmp edx, dword ptr [esi + 8] */
   6907     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6909     _flag_k = FK_CMP;
   6910     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A80; /* 0x36096A7B: je 0x36096a80 */
   6911 L_36096A7D:
   6912     MEM32(edx + 0x4) = eax; /* 0x36096A7D: mov dword ptr [edx + 4], eax */
   6913 L_36096A80:
   6914     edx = MEM32(eax + 0x4); /* 0x36096A80: mov edx, dword ptr [eax + 4] */
   6915     MEM32(ecx + 0x4) = edx; /* 0x36096A83: mov dword ptr [ecx + 4], edx */
   6916     edx = MEM32(esi + 0x4); /* 0x36096A86: mov edx, dword ptr [esi + 4] */
   6917     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096A89: cmp eax, dword ptr [edx + 4] */
   6918     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6920     _flag_k = FK_CMP;
   6921     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A93; /* 0x36096A8C: jne 0x36096a93 */
   6922 L_36096A8E:
   6923     MEM32(edx + 0x4) = ecx; /* 0x36096A8E: mov dword ptr [edx + 4], ecx */
   6924     goto L_36096AA1; /* 0x36096A91: jmp 0x36096aa1 */
   6925 L_36096A93:
   6926     edx = MEM32(eax + 0x4); /* 0x36096A93: mov edx, dword ptr [eax + 4] */
   6927     /* cmp eax, MEM32(edx) */ /* 0x36096A96: cmp eax, dword ptr [edx] */
   6928     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   6929     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6930     _flag_k = FK_CMP;
   6931     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A9E; /* 0x36096A98: jne 0x36096a9e */
   6932 L_36096A9A:
   6933     MEM32(edx) = ecx; /* 0x36096A9A: mov dword ptr [edx], ecx */
   6934     goto L_36096AA1; /* 0x36096A9C: jmp 0x36096aa1 */
   6935 L_36096A9E:
   6936     MEM32(edx + 0x8) = ecx; /* 0x36096A9E: mov dword ptr [edx + 8], ecx */
   6937 L_36096AA1:
   6938     MEM32(ecx) = eax; /* 0x36096AA1: mov dword ptr [ecx], eax */
   6939     MEM32(eax + 0x4) = ecx; /* 0x36096AA3: mov dword ptr [eax + 4], ecx */
   6940 L_36096AA6:
   6941     ecx = MEM32(eax + 0x4); /* 0x36096AA6: mov ecx, dword ptr [eax + 4] */
   6942     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096AA9: mov byte ptr [ecx + 0x20], bl */
   6943     edx = MEM32(eax + 0x4); /* 0x36096AAC: mov edx, dword ptr [eax + 4] */
   6944     ecx = MEM32(edx + 0x4); /* 0x36096AAF: mov ecx, dword ptr [edx + 4] */
   6945     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096AB2: mov byte ptr [ecx + 0x20], 0 */
   6946     edx = MEM32(eax + 0x4); /* 0x36096AB6: mov edx, dword ptr [eax + 4] */
   6947     ecx = MEM32(edx + 0x4); /* 0x36096AB9: mov ecx, dword ptr [edx + 4] */
   6948     edx = MEM32(ecx); /* 0x36096ABC: mov edx, dword ptr [ecx] */
   6949     edi = MEM32(edx + 0x8); /* 0x36096ABE: mov edi, dword ptr [edx + 8] */
   6950     MEM32(ecx) = edi; /* 0x36096AC1: mov dword ptr [ecx], edi */
   6951     edi = MEM32(edx + 0x8); /* 0x36096AC3: mov edi, dword ptr [edx + 8] */
   6952     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096AC6: cmp edi, dword ptr [esi + 8] */
   6953     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6954     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6955     _flag_k = FK_CMP;
   6956     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096ACE; /* 0x36096AC9: je 0x36096ace */
   6957 L_36096ACB:
   6958     MEM32(edi + 0x4) = ecx; /* 0x36096ACB: mov dword ptr [edi + 4], ecx */
   6959 L_36096ACE:
   6960     edi = MEM32(ecx + 0x4); /* 0x36096ACE: mov edi, dword ptr [ecx + 4] */
   6961     MEM32(edx + 0x4) = edi; /* 0x36096AD1: mov dword ptr [edx + 4], edi */
   6962     edi = MEM32(esi + 0x4); /* 0x36096AD4: mov edi, dword ptr [esi + 4] */
   6963     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096AD7: cmp ecx, dword ptr [edi + 4] */
   6964     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6966     _flag_k = FK_CMP;
   6967     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AE7; /* 0x36096ADA: jne 0x36096ae7 */
   6968 L_36096ADC:
   6969     MEM32(edi + 0x4) = edx; /* 0x36096ADC: mov dword ptr [edi + 4], edx */
   6970     MEM32(edx + 0x8) = ecx; /* 0x36096ADF: mov dword ptr [edx + 8], ecx */
   6971     goto L_36096B99; /* 0x36096AE2: jmp 0x36096b99 */
   6972 L_36096AE7:
   6973     edi = MEM32(ecx + 0x4); /* 0x36096AE7: mov edi, dword ptr [ecx + 4] */
   6974     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36096AEA: cmp ecx, dword ptr [edi + 8] */
   6975     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6976     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6977     _flag_k = FK_CMP;
   6978     if (CMP_NE(_flag_a, _flag_b)) goto L_36096AFA; /* 0x36096AED: jne 0x36096afa */
   6979 L_36096AEF:
   6980     MEM32(edi + 0x8) = edx; /* 0x36096AEF: mov dword ptr [edi + 8], edx */
   6981     MEM32(edx + 0x8) = ecx; /* 0x36096AF2: mov dword ptr [edx + 8], ecx */
   6982     goto L_36096B99; /* 0x36096AF5: jmp 0x36096b99 */
   6983 L_36096AFA:
   6984     MEM32(edi) = edx; /* 0x36096AFA: mov dword ptr [edi], edx */
   6985     MEM32(edx + 0x8) = ecx; /* 0x36096AFC: mov dword ptr [edx + 8], ecx */
   6986     goto L_36096B99; /* 0x36096AFF: jmp 0x36096b99 */
   6987 L_36096B04:
   6988     /* cmp MEM8(edx + 0x20), 0 */ /* 0x36096B04: cmp byte ptr [edx + 0x20], 0 */
   6989     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   6990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6991     _flag_k = FK_NARROW(FK_CMP, 24);
   6992     RECOMP_BACKEDGE();
   6993     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096A4C; /* 0x36096B08: je 0x36096a4c */
   6994 L_36096B0E:
   6995     /* cmp eax, MEM32(ecx) */ /* 0x36096B0E: cmp eax, dword ptr [ecx] */
   6996     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6998     _flag_k = FK_CMP;
   6999     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B4E; /* 0x36096B10: jne 0x36096b4e */
   7000 L_36096B12:
   7001     eax = ecx; /* 0x36096B12: mov eax, ecx */
   7002     ecx = MEM32(eax); /* 0x36096B14: mov ecx, dword ptr [eax] */
   7003     edx = MEM32(ecx + 0x8); /* 0x36096B16: mov edx, dword ptr [ecx + 8] */
   7004     MEM32(eax) = edx; /* 0x36096B19: mov dword ptr [eax], edx */
   7005     edx = MEM32(ecx + 0x8); /* 0x36096B1B: mov edx, dword ptr [ecx + 8] */
   7006     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36096B1E: cmp edx, dword ptr [esi + 8] */
   7007     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7009     _flag_k = FK_CMP;
   7010     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B26; /* 0x36096B21: je 0x36096b26 */
   7011 L_36096B23:
   7012     MEM32(edx + 0x4) = eax; /* 0x36096B23: mov dword ptr [edx + 4], eax */
   7013 L_36096B26:
   7014     edx = MEM32(eax + 0x4); /* 0x36096B26: mov edx, dword ptr [eax + 4] */
   7015     MEM32(ecx + 0x4) = edx; /* 0x36096B29: mov dword ptr [ecx + 4], edx */
   7016     edx = MEM32(esi + 0x4); /* 0x36096B2C: mov edx, dword ptr [esi + 4] */
   7017     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36096B2F: cmp eax, dword ptr [edx + 4] */
   7018     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7020     _flag_k = FK_CMP;
   7021     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B39; /* 0x36096B32: jne 0x36096b39 */
   7022 L_36096B34:
   7023     MEM32(edx + 0x4) = ecx; /* 0x36096B34: mov dword ptr [edx + 4], ecx */
   7024     goto L_36096B48; /* 0x36096B37: jmp 0x36096b48 */
   7025 L_36096B39:
   7026     edx = MEM32(eax + 0x4); /* 0x36096B39: mov edx, dword ptr [eax + 4] */
   7027     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36096B3C: cmp eax, dword ptr [edx + 8] */
   7028     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   7029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7030     _flag_k = FK_CMP;
   7031     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B46; /* 0x36096B3F: jne 0x36096b46 */
   7032 L_36096B41:
   7033     MEM32(edx + 0x8) = ecx; /* 0x36096B41: mov dword ptr [edx + 8], ecx */
   7034     goto L_36096B48; /* 0x36096B44: jmp 0x36096b48 */
   7035 L_36096B46:
   7036     MEM32(edx) = ecx; /* 0x36096B46: mov dword ptr [edx], ecx */
   7037 L_36096B48:
   7038     MEM32(ecx + 0x8) = eax; /* 0x36096B48: mov dword ptr [ecx + 8], eax */
   7039     MEM32(eax + 0x4) = ecx; /* 0x36096B4B: mov dword ptr [eax + 4], ecx */
   7040 L_36096B4E:
   7041     ecx = MEM32(eax + 0x4); /* 0x36096B4E: mov ecx, dword ptr [eax + 4] */
   7042     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096B51: mov byte ptr [ecx + 0x20], bl */
   7043     edx = MEM32(eax + 0x4); /* 0x36096B54: mov edx, dword ptr [eax + 4] */
   7044     ecx = MEM32(edx + 0x4); /* 0x36096B57: mov ecx, dword ptr [edx + 4] */
   7045     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x36096B5A: mov byte ptr [ecx + 0x20], 0 */
   7046     edx = MEM32(eax + 0x4); /* 0x36096B5E: mov edx, dword ptr [eax + 4] */
   7047     ecx = MEM32(edx + 0x4); /* 0x36096B61: mov ecx, dword ptr [edx + 4] */
   7048     edx = MEM32(ecx + 0x8); /* 0x36096B64: mov edx, dword ptr [ecx + 8] */
   7049     edi = MEM32(edx); /* 0x36096B67: mov edi, dword ptr [edx] */
   7050     MEM32(ecx + 0x8) = edi; /* 0x36096B69: mov dword ptr [ecx + 8], edi */
   7051     edi = MEM32(edx); /* 0x36096B6C: mov edi, dword ptr [edx] */
   7052     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36096B6E: cmp edi, dword ptr [esi + 8] */
   7053     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7055     _flag_k = FK_CMP;
   7056     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096B76; /* 0x36096B71: je 0x36096b76 */
   7057 L_36096B73:
   7058     MEM32(edi + 0x4) = ecx; /* 0x36096B73: mov dword ptr [edi + 4], ecx */
   7059 L_36096B76:
   7060     edi = MEM32(ecx + 0x4); /* 0x36096B76: mov edi, dword ptr [ecx + 4] */
   7061     MEM32(edx + 0x4) = edi; /* 0x36096B79: mov dword ptr [edx + 4], edi */
   7062     edi = MEM32(esi + 0x4); /* 0x36096B7C: mov edi, dword ptr [esi + 4] */
   7063     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36096B7F: cmp ecx, dword ptr [edi + 4] */
   7064     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7066     _flag_k = FK_CMP;
   7067     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B89; /* 0x36096B82: jne 0x36096b89 */
   7068 L_36096B84:
   7069     MEM32(edi + 0x4) = edx; /* 0x36096B84: mov dword ptr [edi + 4], edx */
   7070     goto L_36096B97; /* 0x36096B87: jmp 0x36096b97 */
   7071 L_36096B89:
   7072     edi = MEM32(ecx + 0x4); /* 0x36096B89: mov edi, dword ptr [ecx + 4] */
   7073     /* cmp ecx, MEM32(edi) */ /* 0x36096B8C: cmp ecx, dword ptr [edi] */
   7074     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   7075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7076     _flag_k = FK_CMP;
   7077     if (CMP_NE(_flag_a, _flag_b)) goto L_36096B94; /* 0x36096B8E: jne 0x36096b94 */
   7078 L_36096B90:
   7079     MEM32(edi) = edx; /* 0x36096B90: mov dword ptr [edi], edx */
   7080     goto L_36096B97; /* 0x36096B92: jmp 0x36096b97 */
   7081 L_36096B94:
   7082     MEM32(edi + 0x8) = edx; /* 0x36096B94: mov dword ptr [edi + 8], edx */
   7083 L_36096B97:
   7084     MEM32(edx) = ecx; /* 0x36096B97: mov dword ptr [edx], ecx */
   7085 L_36096B99:
   7086     MEM32(ecx + 0x4) = edx; /* 0x36096B99: mov dword ptr [ecx + 4], edx */
   7087 L_36096B9C:
   7088     ecx = MEM32(esi + 0x4); /* 0x36096B9C: mov ecx, dword ptr [esi + 4] */
   7089     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36096B9F: cmp eax, dword ptr [ecx + 4] */
   7090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7091     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7092     _flag_k = FK_CMP;
   7093     RECOMP_BACKEDGE();
   7094     if (CMP_NE(_flag_a, _flag_b)) goto L_36096A28; /* 0x36096BA2: jne 0x36096a28 */
   7095 L_36096BA8:
   7096     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   7097     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   7098     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   7099     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   7100     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   7101     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   7102     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   7103     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   7104     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   7105     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   7106     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   7107     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   7108     RECOMP_REGS_OUT();
   7109 }
   7110 
   7111 void sub_36096BA8(void) {
   7112     int _fpu_cmp = 0;
   7113     uint32_t _cf = 0;
   7114     int _df = 1;
   7115     uint32_t _flag_k = FK_NONE;
   7116     uint32_t _flag_a = 0, _flag_b = 0;
   7117     uint32_t _itail_tgt = 0;
   7118     RECOMP_REGS_LOCALS
   7119     RECOMP_ENTER(0x36096BA8u);
   7120 
   7121 L_36096BA8:
   7122     edx = MEM32(esi + 0x4); /* 0x36096BA8: mov edx, dword ptr [esi + 4] */
   7123     eax = MEM32(edx + 0x4); /* 0x36096BAB: mov eax, dword ptr [edx + 4] */
   7124     ecx = MEM32(ebp + (-0x4)); /* 0x36096BAE: mov ecx, dword ptr [ebp - 4] */
   7125     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36096BB1: mov byte ptr [eax + 0x20], bl */
   7126     eax = MEM32(ebp + 0x8); /* 0x36096BB4: mov eax, dword ptr [ebp + 8] */
   7127     edi = POP32_VAL(esp); /* 0x36096BB7: pop edi */
   7128     esi = POP32_VAL(esp); /* 0x36096BB8: pop esi */
   7129     MEM32(eax) = ecx; /* 0x36096BB9: mov dword ptr [eax], ecx */
   7130     ebx = POP32_VAL(esp); /* 0x36096BBB: pop ebx */
   7131     esp = ebp; /* 0x36096BBC: mov esp, ebp */
   7132     ebp = POP32_VAL(esp); /* 0x36096BBE: pop ebp */
   7133     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36096BBF: ret 0x10 */
   7134     RECOMP_REGS_OUT();
   7135 }
   7136 
   7137 void sub_36096BD0(void) {
   7138     int _fpu_cmp = 0;
   7139     uint32_t _cf = 0;
   7140     int _df = 1;
   7141     uint32_t _flag_k = FK_NONE;
   7142     uint32_t _flag_a = 0, _flag_b = 0;
   7143     uint32_t _itail_tgt = 0;
   7144     RECOMP_REGS_LOCALS
   7145     RECOMP_ENTER(0x36096BD0u);
   7146 
   7147 L_36096BD0:
   7148     PUSH32(esp, ebp); /* 0x36096BD0: push ebp */
   7149     ebp = esp; /* 0x36096BD1: mov ebp, esp */
   7150     eax = MEM32(ecx + 0x4); /* 0x36096BD3: mov eax, dword ptr [ecx + 4] */
   7151     edx = MEM32(eax + 0x4); /* 0x36096BD6: mov edx, dword ptr [eax + 4] */
   7152     PUSH32(esp, edi); /* 0x36096BD9: push edi */
   7153     edi = MEM32(ecx + 0x8); /* 0x36096BDA: mov edi, dword ptr [ecx + 8] */
   7154     /* cmp edx, edi */ /* 0x36096BDD: cmp edx, edi */
   7155     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7157     _flag_k = FK_CMP;
   7158     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096C10; /* 0x36096BDF: je 0x36096c10 */
   7159 L_36096BE1:
   7160     PUSH32(esp, ebx); /* 0x36096BE1: push ebx */
   7161     ebx = MEM32(ebp + 0x8); /* 0x36096BE2: mov ebx, dword ptr [ebp + 8] */
   7162     PUSH32(esp, esi); /* 0x36096BE5: push esi */
   7163     esi = MEM32(ebx); /* 0x36096BE6: mov esi, dword ptr [ebx] */
   7164 L_36096BE8:
   7165     ecx = MEM32(edx + 0xC); /* 0x36096BE8: mov ecx, dword ptr [edx + 0xc] */
   7166     /* cmp esi, ecx */ /* 0x36096BEB: cmp esi, ecx */
   7167     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   7168     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7169     _flag_k = FK_CMP;
   7170     if (CMP_NE(_flag_a, _flag_b)) goto L_36096BFA; /* 0x36096BED: jne 0x36096bfa */
   7171 L_36096BEF:
   7172     ecx = MEM32(ebx + 0x4); /* 0x36096BEF: mov ecx, dword ptr [ebx + 4] */
   7173     /* cmp ecx, MEM32(edx + 0x10) */ /* 0x36096BF2: cmp ecx, dword ptr [edx + 0x10] */
   7174     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edx + 0x10));
   7175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7176     _flag_k = FK_CMP;
   7177     SET_LO8(ecx, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x36096BF5: setb cl */
   7178     goto L_36096BFD; /* 0x36096BF8: jmp 0x36096bfd */
   7179 L_36096BFA:
   7180     SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x36096BFA: setl cl */
   7181 L_36096BFD:
   7182     /* test LO8(ecx), LO8(ecx) */ /* 0x36096BFD: test cl, cl */
   7183     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7184     _cf = 0;
   7185     _flag_k = FK_NARROW(FK_TEST, 24);
   7186     if (TEST_Z(_flag_a, _flag_b)) goto L_36096C07; /* 0x36096BFF: je 0x36096c07 */
   7187 L_36096C01:
   7188     eax = edx; /* 0x36096C01: mov eax, edx */
   7189     edx = MEM32(edx); /* 0x36096C03: mov edx, dword ptr [edx] */
   7190     goto L_36096C0A; /* 0x36096C05: jmp 0x36096c0a */
   7191 L_36096C07:
   7192     edx = MEM32(edx + 0x8); /* 0x36096C07: mov edx, dword ptr [edx + 8] */
   7193 L_36096C0A:
   7194     /* cmp edx, edi */ /* 0x36096C0A: cmp edx, edi */
   7195     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7197     _flag_k = FK_CMP;
   7198     RECOMP_BACKEDGE();
   7199     if (CMP_NE(_flag_a, _flag_b)) goto L_36096BE8; /* 0x36096C0C: jne 0x36096be8 */
   7200 L_36096C0E:
   7201     esi = POP32_VAL(esp); /* 0x36096C0E: pop esi */
   7202     ebx = POP32_VAL(esp); /* 0x36096C0F: pop ebx */
   7203 L_36096C10:
   7204     edi = POP32_VAL(esp); /* 0x36096C10: pop edi */
   7205     ebp = POP32_VAL(esp); /* 0x36096C11: pop ebp */
   7206     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36096C12: ret 4 */
   7207     RECOMP_REGS_OUT();
   7208 }
   7209 
   7210 void sub_36096C20(void) {
   7211     int _fpu_cmp = 0;
   7212     uint32_t _cf = 0;
   7213     int _df = 1;
   7214     uint32_t _flag_k = FK_NONE;
   7215     uint32_t _flag_a = 0, _flag_b = 0;
   7216     uint32_t _itail_tgt = 0;
   7217     RECOMP_REGS_LOCALS
   7218     RECOMP_ENTER(0x36096C20u);
   7219 
   7220 L_36096C20:
   7221     eax = MEM32(ecx); /* 0x36096C20: mov eax, dword ptr [ecx] */
   7222     edx = MEM32(eax + 0x8); /* 0x36096C22: mov edx, dword ptr [eax + 8] */
   7223     PUSH32(esp, ebx); /* 0x36096C25: push ebx */
   7224     SET_LO8(ebx, MEM8(edx + 0x19)); /* 0x36096C26: mov bl, byte ptr [edx + 0x19] */
   7225     /* test LO8(ebx), LO8(ebx) */ /* 0x36096C29: test bl, bl */
   7226     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7227     _cf = 0;
   7228     _flag_k = FK_NARROW(FK_TEST, 24);
   7229     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096C45; /* 0x36096C2B: jne 0x36096c45 */
   7230 L_36096C2D:
   7231     eax = MEM32(edx); /* 0x36096C2D: mov eax, dword ptr [edx] */
   7232     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x36096C2F: mov bl, byte ptr [eax + 0x19] */
   7233     /* test LO8(ebx), LO8(ebx) */ /* 0x36096C32: test bl, bl */
   7234     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7235     _cf = 0;
   7236     _flag_k = FK_NARROW(FK_TEST, 24);
   7237     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096C41; /* 0x36096C34: jne 0x36096c41 */
   7238 L_36096C36:
   7239     edx = eax; /* 0x36096C36: mov edx, eax */
   7240     eax = MEM32(edx); /* 0x36096C38: mov eax, dword ptr [edx] */
   7241     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x36096C3A: mov bl, byte ptr [eax + 0x19] */
   7242     /* test LO8(ebx), LO8(ebx) */ /* 0x36096C3D: test bl, bl */
   7243     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7244     _cf = 0;
   7245     _flag_k = FK_NARROW(FK_TEST, 24);
   7246     RECOMP_BACKEDGE();
   7247     if (TEST_Z(_flag_a, _flag_b)) goto L_36096C36; /* 0x36096C3F: je 0x36096c36 */
   7248 L_36096C41:
   7249     MEM32(ecx) = edx; /* 0x36096C41: mov dword ptr [ecx], edx */
   7250     ebx = POP32_VAL(esp); /* 0x36096C43: pop ebx */
   7251     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36096C44: ret  */
   7252 L_36096C45:
   7253     eax = MEM32(eax + 0x4); /* 0x36096C45: mov eax, dword ptr [eax + 4] */
   7254     edx = MEM32(ecx); /* 0x36096C48: mov edx, dword ptr [ecx] */
   7255     /* cmp edx, MEM32(eax + 0x8) */ /* 0x36096C4A: cmp edx, dword ptr [eax + 8] */
   7256     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   7257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7258     _flag_k = FK_CMP;
   7259     if (CMP_NE(_flag_a, _flag_b)) goto L_36096C5B; /* 0x36096C4D: jne 0x36096c5b */
   7260 L_36096C4F:
   7261     MEM32(ecx) = eax; /* 0x36096C4F: mov dword ptr [ecx], eax */
   7262     eax = MEM32(eax + 0x4); /* 0x36096C51: mov eax, dword ptr [eax + 4] */
   7263     edx = MEM32(ecx); /* 0x36096C54: mov edx, dword ptr [ecx] */
   7264     /* cmp edx, MEM32(eax + 0x8) */ /* 0x36096C56: cmp edx, dword ptr [eax + 8] */
   7265     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   7266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7267     _flag_k = FK_CMP;
   7268     RECOMP_BACKEDGE();
   7269     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096C4F; /* 0x36096C59: je 0x36096c4f */
   7270 L_36096C5B:
   7271     edx = MEM32(ecx); /* 0x36096C5B: mov edx, dword ptr [ecx] */
   7272     /* cmp MEM32(edx + 0x8), eax */ /* 0x36096C5D: cmp dword ptr [edx + 8], eax */
   7273     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
   7274     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7275     _flag_k = FK_CMP;
   7276     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096C64; /* 0x36096C60: je 0x36096c64 */
   7277 L_36096C62:
   7278     MEM32(ecx) = eax; /* 0x36096C62: mov dword ptr [ecx], eax */
   7279 L_36096C64:
   7280     ebx = POP32_VAL(esp); /* 0x36096C64: pop ebx */
   7281     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36096C65: ret  */
   7282     RECOMP_REGS_OUT();
   7283 }
   7284 
   7285 void sub_36096C70(void) {
   7286     int _fpu_cmp = 0;
   7287     uint32_t _cf = 0;
   7288     int _df = 1;
   7289     uint32_t _flag_k = FK_NONE;
   7290     uint32_t _flag_a = 0, _flag_b = 0;
   7291     uint32_t _itail_tgt = 0;
   7292     RECOMP_REGS_LOCALS
   7293     RECOMP_ENTER(0x36096C70u);
   7294 
   7295 L_36096C70:
   7296     PUSH32(esp, ebp); /* 0x36096C70: push ebp */
   7297     ebp = esp; /* 0x36096C71: mov ebp, esp */
   7298     PUSH32(esp, 0xFFFFFFFFu); /* 0x36096C73: push -1 */
   7299     PUSH32(esp, 0x36166521u); /* 0x36096C75: push 0x36166521 */
   7300     eax = MEM32(FS_BASE + (0)); /* 0x36096C7A: mov eax, dword ptr fs:[0] */
   7301     PUSH32(esp, eax); /* 0x36096C80: push eax */
   7302     MEM32(FS_BASE + (0)) = esp; /* 0x36096C81: mov dword ptr fs:[0], esp */
   7303     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7305     esp = esp - 8; /* 0x36096C88: sub esp, 8 */
   7306     _flag_k = FK_CMP;
   7307     PUSH32(esp, ebx); /* 0x36096C8B: push ebx */
   7308     ebx = MEM32(ebp + 0x8); /* 0x36096C8C: mov ebx, dword ptr [ebp + 8] */
   7309     MEM32(ebp + (-0x14)) = ebx; /* 0x36096C8F: mov dword ptr [ebp - 0x14], ebx */
   7310     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7311     ecx = 0; /* 0x36096C92: xor ecx, ecx */
   7312     _cf = 0;
   7313     _flag_k = FK_TEST;
   7314     /* cmp ebx, ecx */ /* 0x36096C94: cmp ebx, ecx */
   7315     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   7316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7317     _flag_k = FK_CMP;
   7318     MEM32(ebp + (-0x4)) = ecx; /* 0x36096C96: mov dword ptr [ebp - 4], ecx */
   7319     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096DC8; /* 0x36096C99: je 0x36096dc8 */
   7320 L_36096C9F:
   7321     edx = MEM32(ebp + 0xC); /* 0x36096C9F: mov edx, dword ptr [ebp + 0xc] */
   7322     SET_LO8(eax, MEM8(edx)); /* 0x36096CA2: mov al, byte ptr [edx] */
   7323     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x36096CA4: mov byte ptr [ebx], al */
   7324     MEM32(ebx + 0x4) = ecx; /* 0x36096CA6: mov dword ptr [ebx + 4], ecx */
   7325     MEM32(ebx + 0x8) = ecx; /* 0x36096CA9: mov dword ptr [ebx + 8], ecx */
   7326     MEM32(ebx + 0xC) = ecx; /* 0x36096CAC: mov dword ptr [ebx + 0xc], ecx */
   7327     eax = MEM32(0x3616F010); /* 0x36096CAF: mov eax, dword ptr [0x3616f010] */
   7328     PUSH32(esp, esi); /* 0x36096CB4: push esi */
   7329     esi = MEM32(eax); /* 0x36096CB5: mov esi, dword ptr [eax] */
   7330     eax = MEM32(edx + 0x8); /* 0x36096CB7: mov eax, dword ptr [edx + 8] */
   7331     PUSH32(esp, edi); /* 0x36096CBA: push edi */
   7332     edi = eax; /* 0x36096CBB: mov edi, eax */
   7333     /* cmp esi, edi */ /* 0x36096CBD: cmp esi, edi */
   7334     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7335     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7336     _flag_k = FK_CMP;
   7337     MEM32(ebp + (-0x10)) = edi; /* 0x36096CBF: mov dword ptr [ebp - 0x10], edi */
   7338     if (CMP_AE(_flag_a, _flag_b)) goto L_36096CC9; /* 0x36096CC2: jae 0x36096cc9 */
   7339 L_36096CC4:
   7340     MEM32(ebp + (-0x10)) = esi; /* 0x36096CC4: mov dword ptr [ebp - 0x10], esi */
   7341     edi = esi; /* 0x36096CC7: mov edi, esi */
   7342 L_36096CC9:
   7343     /* cmp ebx, edx */ /* 0x36096CC9: cmp ebx, edx */
   7344     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   7345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7346     _flag_k = FK_CMP;
   7347     if (CMP_NE(_flag_a, _flag_b)) goto L_36096D36; /* 0x36096CCB: jne 0x36096d36 */
   7348 L_36096CCD:
   7349     /* cmp edi, ecx */ /* 0x36096CCD: cmp edi, ecx */
   7350     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   7351     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7352     _flag_k = FK_CMP;
   7353     if (CMP_BE(_flag_a, _flag_b)) goto L_36096CD9; /* 0x36096CCF: jbe 0x36096cd9 */
   7354 L_36096CD1:
   7355     RECOMP_ICALL(MEM32(0x3616F04C)); /* 0x36096CD1: call dword ptr [0x3616f04c] */
   7356     RECOMP_FLAGS_IN();
   7357     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7358     ecx = 0; /* 0x36096CD7: xor ecx, ecx */
   7359     _cf = 0;
   7360     _flag_k = FK_TEST;
   7361 L_36096CD9:
   7362     eax = MEM32(ebx + 0x8); /* 0x36096CD9: mov eax, dword ptr [ebx + 8] */
   7363     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7365     eax = eax - edi; /* 0x36096CDC: sub eax, edi */
   7366     _flag_k = FK_CMP;
   7367     /* cmp eax, esi */ /* 0x36096CDE: cmp eax, esi */
   7368     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   7369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7370     _flag_k = FK_CMP;
   7371     if (CMP_AE(_flag_a, _flag_b)) goto L_36096CE4; /* 0x36096CE0: jae 0x36096ce4 */
   7372 L_36096CE2:
   7373     esi = eax; /* 0x36096CE2: mov esi, eax */
   7374 L_36096CE4:
   7375     /* cmp esi, ecx */ /* 0x36096CE4: cmp esi, ecx */
   7376     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   7377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7378     _flag_k = FK_CMP;
   7379     if (CMP_BE(_flag_a, _flag_b)) goto L_36096DBD; /* 0x36096CE6: jbe 0x36096dbd */
   7380 L_36096CEC:
   7381     ecx = ebx; /* 0x36096CEC: mov ecx, ebx */
   7382     RECOMP_ICALL(MEM32(0x3616F03C)); /* 0x36096CEE: call dword ptr [0x3616f03c] */
   7383     RECOMP_FLAGS_IN();
   7384     edx = MEM32(ebx + 0x8); /* 0x36096CF4: mov edx, dword ptr [ebx + 8] */
   7385     ecx = MEM32(ebx + 0x4); /* 0x36096CF7: mov ecx, dword ptr [ebx + 4] */
   7386     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   7387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7388     edx = edx - esi; /* 0x36096CFA: sub edx, esi */
   7389     _flag_k = FK_CMP;
   7390     eax = ecx + edi; /* 0x36096CFC: lea eax, [ecx + edi] */
   7391     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7393     edx = edx - edi; /* 0x36096CFF: sub edx, edi */
   7394     _flag_k = FK_CMP;
   7395     PUSH32(esp, edx); /* 0x36096D01: push edx */
   7396     ecx = eax + esi; /* 0x36096D02: lea ecx, [eax + esi] */
   7397     PUSH32(esp, ecx); /* 0x36096D05: push ecx */
   7398     PUSH32(esp, eax); /* 0x36096D06: push eax */
   7399     RECOMP_ICALL(MEM32(0x3616F268)); /* 0x36096D07: call dword ptr [0x3616f268] */
   7400     RECOMP_FLAGS_IN();
   7401     edi = MEM32(ebx + 0x8); /* 0x36096D0D: mov edi, dword ptr [ebx + 8] */
   7402     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7403     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7404     esp = esp + 0xCu; /* 0x36096D10: add esp, 0xc */
   7405     _flag_k = FK_ADD;
   7406     PUSH32(esp, 0); /* 0x36096D13: push 0 */
   7407     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   7408     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7409     edi = edi - esi; /* 0x36096D15: sub edi, esi */
   7410     _flag_k = FK_CMP;
   7411     PUSH32(esp, edi); /* 0x36096D17: push edi */
   7412     ecx = ebx; /* 0x36096D18: mov ecx, ebx */
   7413     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36096D1A: call dword ptr [0x3616f00c] */
   7414     RECOMP_FLAGS_IN();
   7415     /* test LO8(eax), LO8(eax) */ /* 0x36096D20: test al, al */
   7416     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7417     _cf = 0;
   7418     _flag_k = FK_NARROW(FK_TEST, 24);
   7419     if (TEST_Z(_flag_a, _flag_b)) goto L_36096DBD; /* 0x36096D22: je 0x36096dbd */
   7420 L_36096D28:
   7421     PUSH32(esp, edi); /* 0x36096D28: push edi */
   7422     ecx = ebx; /* 0x36096D29: mov ecx, ebx */
   7423     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36096D2B: call dword ptr [0x3616f044] */
   7424     RECOMP_FLAGS_IN();
   7425     goto L_36096DBD; /* 0x36096D31: jmp 0x36096dbd */
   7426 L_36096D36:
   7427     /* cmp edi, ecx */ /* 0x36096D36: cmp edi, ecx */
   7428     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   7429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7430     _flag_k = FK_CMP;
   7431     if (CMP_BE(_flag_a, _flag_b)) goto L_36096D7D; /* 0x36096D38: jbe 0x36096d7d */
   7432 L_36096D3A:
   7433     /* cmp edi, eax */ /* 0x36096D3A: cmp edi, eax */
   7434     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7436     _flag_k = FK_CMP;
   7437     if (CMP_NE(_flag_a, _flag_b)) goto L_36096D7D; /* 0x36096D3C: jne 0x36096d7d */
   7438 L_36096D3E:
   7439     eax = MEM32(edx + 0x4); /* 0x36096D3E: mov eax, dword ptr [edx + 4] */
   7440     /* cmp eax, ecx */ /* 0x36096D41: cmp eax, ecx */
   7441     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7442     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7443     _flag_k = FK_CMP;
   7444     if (CMP_NE(_flag_a, _flag_b)) goto L_36096D4A; /* 0x36096D43: jne 0x36096d4a */
   7445 L_36096D45:
   7446     eax = MEM32(0x3616F10C); /* 0x36096D45: mov eax, dword ptr [0x3616f10c] */
   7447 L_36096D4A:
   7448     /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x36096D4A: cmp byte ptr [eax - 1], 0xfe */
   7449     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24;
   7450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7451     _flag_k = FK_NARROW(FK_CMP, 24);
   7452     if (CMP_AE(_flag_a, _flag_b)) goto L_36096D7D; /* 0x36096D4E: jae 0x36096d7d */
   7453 L_36096D50:
   7454     PUSH32(esp, 1); /* 0x36096D50: push 1 */
   7455     ecx = ebx; /* 0x36096D52: mov ecx, ebx */
   7456     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36096D54: call dword ptr [0x3616f100] */
   7457     RECOMP_FLAGS_IN();
   7458     ecx = MEM32(ebp + 0xC); /* 0x36096D5A: mov ecx, dword ptr [ebp + 0xc] */
   7459     eax = MEM32(ecx + 0x4); /* 0x36096D5D: mov eax, dword ptr [ecx + 4] */
   7460     /* test eax, eax */ /* 0x36096D60: test eax, eax */
   7461     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7462     _cf = 0;
   7463     _flag_k = FK_TEST;
   7464     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096D69; /* 0x36096D62: jne 0x36096d69 */
   7465 L_36096D64:
   7466     eax = MEM32(0x3616F10C); /* 0x36096D64: mov eax, dword ptr [0x3616f10c] */
   7467 L_36096D69:
   7468     MEM32(ebx + 0x4) = eax; /* 0x36096D69: mov dword ptr [ebx + 4], eax */
   7469     edx = MEM32(ecx + 0x8); /* 0x36096D6C: mov edx, dword ptr [ecx + 8] */
   7470     MEM32(ebx + 0x8) = edx; /* 0x36096D6F: mov dword ptr [ebx + 8], edx */
   7471     ecx = MEM32(ecx + 0xC); /* 0x36096D72: mov ecx, dword ptr [ecx + 0xc] */
   7472     MEM32(ebx + 0xC) = ecx; /* 0x36096D75: mov dword ptr [ebx + 0xc], ecx */
   7473     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24;
   7474     MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x36096D78: inc byte ptr [eax - 1] */
   7475     _flag_k = FK_NARROW(FK_INC, 24);
   7476     goto L_36096DBD; /* 0x36096D7B: jmp 0x36096dbd */
   7477 L_36096D7D:
   7478     PUSH32(esp, 1); /* 0x36096D7D: push 1 */
   7479     PUSH32(esp, edi); /* 0x36096D7F: push edi */
   7480     ecx = ebx; /* 0x36096D80: mov ecx, ebx */
   7481     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36096D82: call dword ptr [0x3616f00c] */
   7482     RECOMP_FLAGS_IN();
   7483     /* test LO8(eax), LO8(eax) */ /* 0x36096D88: test al, al */
   7484     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7485     _cf = 0;
   7486     _flag_k = FK_NARROW(FK_TEST, 24);
   7487     if (TEST_Z(_flag_a, _flag_b)) goto L_36096DBD; /* 0x36096D8A: je 0x36096dbd */
   7488 L_36096D8C:
   7489     edx = MEM32(ebp + 0xC); /* 0x36096D8C: mov edx, dword ptr [ebp + 0xc] */
   7490     eax = MEM32(edx + 0x4); /* 0x36096D8F: mov eax, dword ptr [edx + 4] */
   7491     /* test eax, eax */ /* 0x36096D92: test eax, eax */
   7492     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7493     _cf = 0;
   7494     _flag_k = FK_TEST;
   7495     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096D9B; /* 0x36096D94: jne 0x36096d9b */
   7496 L_36096D96:
   7497     eax = MEM32(0x3616F10C); /* 0x36096D96: mov eax, dword ptr [0x3616f10c] */
   7498 L_36096D9B:
   7499     ecx = edi; /* 0x36096D9B: mov ecx, edi */
   7500     edi = MEM32(ebx + 0x4); /* 0x36096D9D: mov edi, dword ptr [ebx + 4] */
   7501     esi = eax; /* 0x36096DA0: mov esi, eax */
   7502     eax = ecx; /* 0x36096DA2: mov eax, ecx */
   7503     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36096DA4: shr ecx, 2 */
   7504     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7505     ecx = ecx >> 2u; /* 0x36096DA4: shr ecx, 2 */
   7506     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36096DA7: 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; }
   7507     ecx = eax; /* 0x36096DA9: mov ecx, eax */
   7508     eax = MEM32(ebp + (-0x10)); /* 0x36096DAB: mov eax, dword ptr [ebp - 0x10] */
   7509     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   7510     ecx = ecx & 3; /* 0x36096DAE: and ecx, 3 */
   7511     _cf = 0;
   7512     _flag_k = FK_TEST;
   7513     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36096DB1: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   7514     ecx = MEM32(ebx + 0x4); /* 0x36096DB3: mov ecx, dword ptr [ebx + 4] */
   7515     MEM32(ebx + 0x8) = eax; /* 0x36096DB6: mov dword ptr [ebx + 8], eax */
   7516     MEM8(ecx + eax) = (uint8_t)(0); /* 0x36096DB9: mov byte ptr [ecx + eax], 0 */
   7517 L_36096DBD:
   7518     edx = MEM32(ebp + 0xC); /* 0x36096DBD: mov edx, dword ptr [ebp + 0xc] */
   7519     eax = MEM32(edx + 0x10); /* 0x36096DC0: mov eax, dword ptr [edx + 0x10] */
   7520     edi = POP32_VAL(esp); /* 0x36096DC3: pop edi */
   7521     MEM32(ebx + 0x10) = eax; /* 0x36096DC4: mov dword ptr [ebx + 0x10], eax */
   7522     esi = POP32_VAL(esp); /* 0x36096DC7: pop esi */
   7523 L_36096DC8:
   7524     ecx = MEM32(ebp + (-0xC)); /* 0x36096DC8: mov ecx, dword ptr [ebp - 0xc] */
   7525     ebx = POP32_VAL(esp); /* 0x36096DCB: pop ebx */
   7526     MEM32(FS_BASE + (0)) = ecx; /* 0x36096DCC: mov dword ptr fs:[0], ecx */
   7527     esp = ebp; /* 0x36096DD3: mov esp, ebp */
   7528     ebp = POP32_VAL(esp); /* 0x36096DD5: pop ebp */
   7529     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36096DD6: ret  */
   7530     RECOMP_REGS_OUT();
   7531 }
   7532 
   7533 void sub_36096DBD(void) {
   7534     int _fpu_cmp = 0;
   7535     uint32_t _cf = 0;
   7536     int _df = 1;
   7537     uint32_t _flag_k = FK_NONE;
   7538     uint32_t _flag_a = 0, _flag_b = 0;
   7539     uint32_t _itail_tgt = 0;
   7540     RECOMP_REGS_LOCALS
   7541     RECOMP_ENTER(0x36096DBDu);
   7542 
   7543 L_36096DBD:
   7544     edx = MEM32(ebp + 0xC); /* 0x36096DBD: mov edx, dword ptr [ebp + 0xc] */
   7545     eax = MEM32(edx + 0x10); /* 0x36096DC0: mov eax, dword ptr [edx + 0x10] */
   7546     edi = POP32_VAL(esp); /* 0x36096DC3: pop edi */
   7547     MEM32(ebx + 0x10) = eax; /* 0x36096DC4: mov dword ptr [ebx + 0x10], eax */
   7548     esi = POP32_VAL(esp); /* 0x36096DC7: pop esi */
   7549     ecx = MEM32(ebp + (-0xC)); /* 0x36096DC8: mov ecx, dword ptr [ebp - 0xc] */
   7550     ebx = POP32_VAL(esp); /* 0x36096DCB: pop ebx */
   7551     MEM32(FS_BASE + (0)) = ecx; /* 0x36096DCC: mov dword ptr fs:[0], ecx */
   7552     esp = ebp; /* 0x36096DD3: mov esp, ebp */
   7553     ebp = POP32_VAL(esp); /* 0x36096DD5: pop ebp */
   7554     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36096DD6: ret  */
   7555     RECOMP_REGS_OUT();
   7556 }
   7557 
   7558 void sub_36096DE0(void) {
   7559     int _fpu_cmp = 0;
   7560     uint32_t _cf = 0;
   7561     int _df = 1;
   7562     uint32_t _flag_k = FK_NONE;
   7563     uint32_t _flag_a = 0, _flag_b = 0;
   7564     uint32_t _itail_tgt = 0;
   7565     RECOMP_REGS_LOCALS
   7566     RECOMP_ENTER(0x36096DE0u);
   7567 
   7568 L_36096DE0:
   7569     PUSH32(esp, ebp); /* 0x36096DE0: push ebp */
   7570     ebp = esp; /* 0x36096DE1: mov ebp, esp */
   7571     PUSH32(esp, ebx); /* 0x36096DE3: push ebx */
   7572     ebx = MEM32(ebp + 0xC); /* 0x36096DE4: mov ebx, dword ptr [ebp + 0xc] */
   7573     eax = MEM32(ebx + 0x14); /* 0x36096DE7: mov eax, dword ptr [ebx + 0x14] */
   7574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7575     eax = eax + 1; /* 0x36096DEA: inc eax */
   7576     _flag_k = FK_INC;
   7577     ecx = eax; /* 0x36096DEB: mov ecx, eax */
   7578     if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x36096DED: shl ecx, 6 */
   7579     if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7580     ecx = ecx << 6u; /* 0x36096DED: shl ecx, 6 */
   7581     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7583     ecx = ecx - eax; /* 0x36096DF0: sub ecx, eax */
   7584     _flag_k = FK_CMP;
   7585     PUSH32(esp, esi); /* 0x36096DF2: push esi */
   7586     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x36096DF3: shl ecx, 4 */
   7587     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7588     ecx = ecx << 4u; /* 0x36096DF3: shl ecx, 4 */
   7589     PUSH32(esp, edi); /* 0x36096DF6: push edi */
   7590     edi = MEM32(ebp + 0x8); /* 0x36096DF7: mov edi, dword ptr [ebp + 8] */
   7591     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7592     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7593     ecx = ecx + eax; /* 0x36096DFA: add ecx, eax */
   7594     _flag_k = FK_ADD;
   7595     PUSH32(esp, ecx); /* 0x36096DFC: push ecx */
   7596     ecx = edi; /* 0x36096DFD: mov ecx, edi */
   7597     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36096DFF: call dword ptr [0x3616faec] */
   7598     RECOMP_FLAGS_IN();
   7599     eax = MEM32(ebx + 0x10); /* 0x36096E05: mov eax, dword ptr [ebx + 0x10] */
   7600     esi = MEM32(eax); /* 0x36096E08: mov esi, dword ptr [eax] */
   7601     /* cmp esi, eax */ /* 0x36096E0A: cmp esi, eax */
   7602     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7604     _flag_k = FK_CMP;
   7605     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096E38; /* 0x36096E0C: je 0x36096e38 */
   7606 L_36096E0E:
   7607     edx = MEM32(esi + 0x8); /* 0x36096E0E: mov edx, dword ptr [esi + 8] */
   7608     ecx = MEM32(edx); /* 0x36096E11: mov ecx, dword ptr [edx] */
   7609     RECOMP_ICALL(0x36008320u); /* 0x36096E13: call 0x36008320 */ /* not lifted */
   7610     RECOMP_FLAGS_IN();
   7611     PUSH32(esp, eax); /* 0x36096E18: push eax */
   7612     PUSH32(esp, edi); /* 0x36096E19: push edi */
   7613     RECOMP_ICALL(0x360081A0u); /* 0x36096E1A: call 0x360081a0 */ /* not lifted */
   7614     RECOMP_FLAGS_IN();
   7615     eax = MEM32(esi + 0x8); /* 0x36096E1F: mov eax, dword ptr [esi + 8] */
   7616     ecx = MEM32(eax + 0x4); /* 0x36096E22: mov ecx, dword ptr [eax + 4] */
   7617     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7618     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7619     esp = esp + 8; /* 0x36096E25: add esp, 8 */
   7620     _flag_k = FK_ADD;
   7621     PUSH32(esp, ecx); /* 0x36096E28: push ecx */
   7622     ecx = edi; /* 0x36096E29: mov ecx, edi */
   7623     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36096E2B: call dword ptr [0x3616faec] */
   7624     RECOMP_FLAGS_IN();
   7625     esi = MEM32(esi); /* 0x36096E31: mov esi, dword ptr [esi] */
   7626     /* cmp esi, MEM32(ebx + 0x10) */ /* 0x36096E33: cmp esi, dword ptr [ebx + 0x10] */
   7627     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x10));
   7628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7629     _flag_k = FK_CMP;
   7630     RECOMP_BACKEDGE();
   7631     if (CMP_NE(_flag_a, _flag_b)) goto L_36096E0E; /* 0x36096E36: jne 0x36096e0e */
   7632 L_36096E38:
   7633     edx = ebx + 0x18; /* 0x36096E38: lea edx, [ebx + 0x18] */
   7634     PUSH32(esp, edx); /* 0x36096E3B: push edx */
   7635     PUSH32(esp, edi); /* 0x36096E3C: push edi */
   7636     RECOMP_ICALL(0x360C3D10u); /* 0x36096E3D: call 0x360c3d10 */ /* not lifted */
   7637     RECOMP_FLAGS_IN();
   7638     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7639     eax = 0; /* 0x36096E42: xor eax, eax */
   7640     _cf = 0;
   7641     _flag_k = FK_TEST;
   7642     SET_LO8(eax, MEM8(ebx + 0x58)); /* 0x36096E44: mov al, byte ptr [ebx + 0x58] */
   7643     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7644     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7645     esp = esp + 8; /* 0x36096E47: add esp, 8 */
   7646     _flag_k = FK_ADD;
   7647     ecx = edi; /* 0x36096E4A: mov ecx, edi */
   7648     PUSH32(esp, eax); /* 0x36096E4C: push eax */
   7649     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36096E4D: call dword ptr [0x3616faec] */
   7650     RECOMP_FLAGS_IN();
   7651     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
   7652     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7653     ebx = ebx + 0x24u; /* 0x36096E53: add ebx, 0x24 */
   7654     _flag_k = FK_ADD;
   7655     PUSH32(esp, ebx); /* 0x36096E56: push ebx */
   7656     PUSH32(esp, edi); /* 0x36096E57: push edi */
   7657     RECOMP_ICALL(0x360BCF40u); /* 0x36096E58: call 0x360bcf40 */ /* not lifted */
   7658     RECOMP_FLAGS_IN();
   7659     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7660     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7661     esp = esp + 8; /* 0x36096E5D: add esp, 8 */
   7662     _flag_k = FK_ADD;
   7663     eax = edi; /* 0x36096E60: mov eax, edi */
   7664     edi = POP32_VAL(esp); /* 0x36096E62: pop edi */
   7665     esi = POP32_VAL(esp); /* 0x36096E63: pop esi */
   7666     ebx = POP32_VAL(esp); /* 0x36096E64: pop ebx */
   7667     ebp = POP32_VAL(esp); /* 0x36096E65: pop ebp */
   7668     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36096E66: ret  */
   7669     RECOMP_REGS_OUT();
   7670 }
   7671 
   7672 void sub_36096E70(void) {
   7673     int _fpu_cmp = 0;
   7674     uint32_t _cf = 0;
   7675     int _df = 1;
   7676     uint32_t _flag_k = FK_NONE;
   7677     uint32_t _flag_a = 0, _flag_b = 0;
   7678     uint32_t _itail_tgt = 0;
   7679     RECOMP_REGS_LOCALS
   7680     RECOMP_ENTER(0x36096E70u);
   7681 
   7682 L_36096E70:
   7683     PUSH32(esp, ebp); /* 0x36096E70: push ebp */
   7684     ebp = esp; /* 0x36096E71: mov ebp, esp */
   7685     PUSH32(esp, 0xFFFFFFFFu); /* 0x36096E73: push -1 */
   7686     PUSH32(esp, 0x3616653Bu); /* 0x36096E75: push 0x3616653b */
   7687     eax = MEM32(FS_BASE + (0)); /* 0x36096E7A: mov eax, dword ptr fs:[0] */
   7688     PUSH32(esp, eax); /* 0x36096E80: push eax */
   7689     MEM32(FS_BASE + (0)) = esp; /* 0x36096E81: mov dword ptr fs:[0], esp */
   7690     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7691     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7692     esp = esp - 0xCu; /* 0x36096E88: sub esp, 0xc */
   7693     _flag_k = FK_CMP;
   7694     PUSH32(esp, ebx); /* 0x36096E8B: push ebx */
   7695     PUSH32(esp, esi); /* 0x36096E8C: push esi */
   7696     PUSH32(esp, edi); /* 0x36096E8D: push edi */
   7697     edi = MEM32(ebp + 0x8); /* 0x36096E8E: mov edi, dword ptr [ebp + 8] */
   7698     eax = ebp + 0x8; /* 0x36096E91: lea eax, [ebp + 8] */
   7699     PUSH32(esp, eax); /* 0x36096E94: push eax */
   7700     ecx = edi; /* 0x36096E95: mov ecx, edi */
   7701     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36096E97: call dword ptr [0x3616fa8c] */
   7702     RECOMP_FLAGS_IN();
   7703     ecx = MEM32(ebp + 0x8); /* 0x36096E9D: mov ecx, dword ptr [ebp + 8] */
   7704     eax = 0x81E722C3u; /* 0x36096EA0: mov eax, 0x81e722c3 */
   7705     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36096EA5: imul ecx */
   7706       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7707       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7708     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7709     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7710     edx = edx + ecx; /* 0x36096EA7: add edx, ecx */
   7711     _flag_k = FK_ADD;
   7712     if (9u) _cf = (((edx) >> 8) & 1u); /* 0x36096EA9: sar edx, 9 */
   7713     if (9u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 9u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7714     edx = (uint32_t)((int32_t)edx >> 9u);
   7715     ecx = edx; /* 0x36096EAC: mov ecx, edx */
   7716     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36096EAE: shr ecx, 0x1f */
   7717     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7718     ecx = ecx >> 31u; /* 0x36096EAE: shr ecx, 0x1f */
   7719     edx = edx + ecx + (-0x1); /* 0x36096EB1: lea edx, [edx + ecx - 1] */
   7720     /* test edx, edx */ /* 0x36096EB5: test edx, edx */
   7721     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   7722     _cf = 0;
   7723     _flag_k = FK_TEST;
   7724     MEM32(ebp + 0x8) = edx; /* 0x36096EB7: mov dword ptr [ebp + 8], edx */
   7725     MEM32(ebp + (-0x10)) = 0; /* 0x36096EBA: mov dword ptr [ebp - 0x10], 0 */
   7726     if (TEST_LE(_flag_a, _flag_b)) goto L_36096F72; /* 0x36096EC1: jle 0x36096f72 */
   7727 L_36096EC7:
   7728     PUSH32(esp, 8); /* 0x36096EC7: push 8 */
   7729     RECOMP_ICALL(0x3615FD6Au); /* 0x36096EC9: call 0x3615fd6a */ /* not lifted */
   7730     RECOMP_FLAGS_IN();
   7731     PUSH32(esp, 8); /* 0x36096ECE: push 8 */
   7732     ebx = eax; /* 0x36096ED0: mov ebx, eax */
   7733     RECOMP_ICALL(0x3615FD6Au); /* 0x36096ED2: call 0x3615fd6a */ /* not lifted */
   7734     RECOMP_FLAGS_IN();
   7735     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7736     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7737     esp = esp + 8; /* 0x36096ED7: add esp, 8 */
   7738     _flag_k = FK_ADD;
   7739     MEM32(ebp + (-0x14)) = eax; /* 0x36096EDA: mov dword ptr [ebp - 0x14], eax */
   7740     /* test eax, eax */ /* 0x36096EDD: test eax, eax */
   7741     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7742     _cf = 0;
   7743     _flag_k = FK_TEST;
   7744     MEM32(ebp + (-0x4)) = 0; /* 0x36096EDF: mov dword ptr [ebp - 4], 0 */
   7745     if (TEST_Z(_flag_a, _flag_b)) goto L_36096EF1; /* 0x36096EE6: je 0x36096ef1 */
   7746 L_36096EE8:
   7747     ecx = eax; /* 0x36096EE8: mov ecx, eax */
   7748     RECOMP_ICALL(0x36005570u); /* 0x36096EEA: call 0x36005570 */ /* not lifted */
   7749     RECOMP_FLAGS_IN();
   7750     goto L_36096EF3; /* 0x36096EEF: jmp 0x36096ef3 */
   7751 L_36096EF1:
   7752     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7753     eax = 0; /* 0x36096EF1: xor eax, eax */
   7754     _cf = 0;
   7755     _flag_k = FK_TEST;
   7756 L_36096EF3:
   7757     ecx = eax; /* 0x36096EF3: mov ecx, eax */
   7758     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36096EF5: mov dword ptr [ebp - 4], 0xffffffff */
   7759     MEM32(ebx) = eax; /* 0x36096EFC: mov dword ptr [ebx], eax */
   7760     RECOMP_ICALL(0x36008320u); /* 0x36096EFE: call 0x36008320 */ /* not lifted */
   7761     RECOMP_FLAGS_IN();
   7762     PUSH32(esp, eax); /* 0x36096F03: push eax */
   7763     PUSH32(esp, edi); /* 0x36096F04: push edi */
   7764     RECOMP_ICALL(0x36008200u); /* 0x36096F05: call 0x36008200 */ /* not lifted */
   7765     RECOMP_FLAGS_IN();
   7766     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7768     esp = esp + 8; /* 0x36096F0A: add esp, 8 */
   7769     _flag_k = FK_ADD;
   7770     edx = ebx + 0x4; /* 0x36096F0D: lea edx, [ebx + 4] */
   7771     PUSH32(esp, edx); /* 0x36096F10: push edx */
   7772     ecx = edi; /* 0x36096F11: mov ecx, edi */
   7773     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36096F13: call dword ptr [0x3616fa8c] */
   7774     RECOMP_FLAGS_IN();
   7775     eax = MEM32(ebp + 0xC); /* 0x36096F19: mov eax, dword ptr [ebp + 0xc] */
   7776     esi = MEM32(eax + 0x10); /* 0x36096F1C: mov esi, dword ptr [eax + 0x10] */
   7777     ecx = MEM32(esi + 0x4); /* 0x36096F1F: mov ecx, dword ptr [esi + 4] */
   7778     PUSH32(esp, 0xCu); /* 0x36096F22: push 0xc */
   7779     MEM32(ebp + (-0x14)) = ecx; /* 0x36096F24: mov dword ptr [ebp - 0x14], ecx */
   7780     RECOMP_ICALL(0x3615FD6Au); /* 0x36096F27: call 0x3615fd6a */ /* not lifted */
   7781     RECOMP_FLAGS_IN();
   7782     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7783     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7784     esp = esp + 4; /* 0x36096F2C: add esp, 4 */
   7785     _flag_k = FK_ADD;
   7786     /* test esi, esi */ /* 0x36096F2F: test esi, esi */
   7787     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   7788     _cf = 0;
   7789     _flag_k = FK_TEST;
   7790     ecx = esi; /* 0x36096F31: mov ecx, esi */
   7791     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096F37; /* 0x36096F33: jne 0x36096f37 */
   7792 L_36096F35:
   7793     ecx = eax; /* 0x36096F35: mov ecx, eax */
   7794 L_36096F37:
   7795     MEM32(eax) = ecx; /* 0x36096F37: mov dword ptr [eax], ecx */
   7796     ecx = MEM32(ebp + (-0x14)); /* 0x36096F39: mov ecx, dword ptr [ebp - 0x14] */
   7797     /* test ecx, ecx */ /* 0x36096F3C: test ecx, ecx */
   7798     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7799     _cf = 0;
   7800     _flag_k = FK_TEST;
   7801     if (TEST_NZ(_flag_a, _flag_b)) goto L_36096F42; /* 0x36096F3E: jne 0x36096f42 */
   7802 L_36096F40:
   7803     ecx = eax; /* 0x36096F40: mov ecx, eax */
   7804 L_36096F42:
   7805     MEM32(eax + 0x4) = ecx; /* 0x36096F42: mov dword ptr [eax + 4], ecx */
   7806     MEM32(esi + 0x4) = eax; /* 0x36096F45: mov dword ptr [esi + 4], eax */
   7807     edx = MEM32(eax + 0x4); /* 0x36096F48: mov edx, dword ptr [eax + 4] */
   7808     MEM32(edx) = eax; /* 0x36096F4B: mov dword ptr [edx], eax */
   7809     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   7810     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7811     eax = eax + 8; /* 0x36096F4D: add eax, 8 */
   7812     _flag_k = FK_ADD;
   7813     /* test eax, eax */ /* 0x36096F50: test eax, eax */
   7814     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7815     _cf = 0;
   7816     _flag_k = FK_TEST;
   7817     if (TEST_Z(_flag_a, _flag_b)) goto L_36096F56; /* 0x36096F52: je 0x36096f56 */
   7818 L_36096F54:
   7819     MEM32(eax) = ebx; /* 0x36096F54: mov dword ptr [eax], ebx */
   7820 L_36096F56:
   7821     eax = MEM32(ebp + 0xC); /* 0x36096F56: mov eax, dword ptr [ebp + 0xc] */
   7822     esi = MEM32(eax + 0x14); /* 0x36096F59: mov esi, dword ptr [eax + 0x14] */
   7823     ecx = MEM32(ebp + 0x8); /* 0x36096F5C: mov ecx, dword ptr [ebp + 8] */
   7824     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   7825     esi = esi + 1; /* 0x36096F5F: inc esi */
   7826     _flag_k = FK_INC;
   7827     MEM32(eax + 0x14) = esi; /* 0x36096F60: mov dword ptr [eax + 0x14], esi */
   7828     eax = MEM32(ebp + (-0x10)); /* 0x36096F63: mov eax, dword ptr [ebp - 0x10] */
   7829     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7830     eax = eax + 1; /* 0x36096F66: inc eax */
   7831     _flag_k = FK_INC;
   7832     /* cmp eax, ecx */ /* 0x36096F67: cmp eax, ecx */
   7833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7835     _flag_k = FK_CMP;
   7836     MEM32(ebp + (-0x10)) = eax; /* 0x36096F69: mov dword ptr [ebp - 0x10], eax */
   7837     RECOMP_BACKEDGE();
   7838     if (CMP_L(_flag_a, _flag_b)) goto L_36096EC7; /* 0x36096F6C: jl 0x36096ec7 */
   7839 L_36096F72:
   7840     esi = MEM32(ebp + 0xC); /* 0x36096F72: mov esi, dword ptr [ebp + 0xc] */
   7841     eax = esi + 0x18; /* 0x36096F75: lea eax, [esi + 0x18] */
   7842     PUSH32(esp, eax); /* 0x36096F78: push eax */
   7843     PUSH32(esp, edi); /* 0x36096F79: push edi */
   7844     RECOMP_ICALL(0x360C3DA0u); /* 0x36096F7A: call 0x360c3da0 */ /* not lifted */
   7845     RECOMP_FLAGS_IN();
   7846     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7847     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7848     esp = esp + 8; /* 0x36096F7F: add esp, 8 */
   7849     _flag_k = FK_ADD;
   7850     ecx = ebp + (-0x18); /* 0x36096F82: lea ecx, [ebp - 0x18] */
   7851     PUSH32(esp, ecx); /* 0x36096F85: push ecx */
   7852     ecx = edi; /* 0x36096F86: mov ecx, edi */
   7853     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36096F88: call dword ptr [0x3616fa8c] */
   7854     RECOMP_FLAGS_IN();
   7855     ebx = MEM32(ebp + (-0x18)); /* 0x36096F8E: mov ebx, dword ptr [ebp - 0x18] */
   7856     /* test ebx, ebx */ /* 0x36096F91: test ebx, ebx */
   7857     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   7858     _cf = 0;
   7859     _flag_k = FK_TEST;
   7860     SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36096F93: setne dl */
   7861     MEM8(esi + 0x58) = (uint8_t)(LO8(edx)); /* 0x36096F96: mov byte ptr [esi + 0x58], dl */
   7862     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   7863     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7864     esi = esi + 0x24u; /* 0x36096F99: add esi, 0x24 */
   7865     _flag_k = FK_ADD;
   7866     PUSH32(esp, esi); /* 0x36096F9C: push esi */
   7867     PUSH32(esp, edi); /* 0x36096F9D: push edi */
   7868     RECOMP_ICALL(0x360BD000u); /* 0x36096F9E: call 0x360bd000 */ /* not lifted */
   7869     RECOMP_FLAGS_IN();
   7870     ecx = MEM32(ebp + (-0xC)); /* 0x36096FA3: mov ecx, dword ptr [ebp - 0xc] */
   7871     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7873     esp = esp + 8; /* 0x36096FA6: add esp, 8 */
   7874     _flag_k = FK_ADD;
   7875     eax = edi; /* 0x36096FA9: mov eax, edi */
   7876     edi = POP32_VAL(esp); /* 0x36096FAB: pop edi */
   7877     esi = POP32_VAL(esp); /* 0x36096FAC: pop esi */
   7878     ebx = POP32_VAL(esp); /* 0x36096FAD: pop ebx */
   7879     MEM32(FS_BASE + (0)) = ecx; /* 0x36096FAE: mov dword ptr fs:[0], ecx */
   7880     esp = ebp; /* 0x36096FB5: mov esp, ebp */
   7881     ebp = POP32_VAL(esp); /* 0x36096FB7: pop ebp */
   7882     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36096FB8: ret  */
   7883     RECOMP_REGS_OUT();
   7884 }
   7885 
   7886 void sub_36096FC0(void) {
   7887     int _fpu_cmp = 0;
   7888     uint32_t _cf = 0;
   7889     int _df = 1;
   7890     uint32_t _flag_k = FK_NONE;
   7891     uint32_t _flag_a = 0, _flag_b = 0;
   7892     uint32_t _itail_tgt = 0;
   7893     RECOMP_REGS_LOCALS
   7894     RECOMP_ENTER(0x36096FC0u);
   7895 
   7896 L_36096FC0:
   7897     PUSH32(esp, ebp); /* 0x36096FC0: push ebp */
   7898     ebp = esp; /* 0x36096FC1: mov ebp, esp */
   7899     PUSH32(esp, ebx); /* 0x36096FC3: push ebx */
   7900     ebx = MEM32(ebp + 0x8); /* 0x36096FC4: mov ebx, dword ptr [ebp + 8] */
   7901     PUSH32(esp, esi); /* 0x36096FC7: push esi */
   7902     PUSH32(esp, edi); /* 0x36096FC8: push edi */
   7903     ecx = ebx; /* 0x36096FC9: mov ecx, ebx */
   7904     RECOMP_ICALL(MEM32(0x3616FAD8)); /* 0x36096FCB: call dword ptr [0x3616fad8] */
   7905     RECOMP_FLAGS_IN();
   7906     esi = MEM32(ebp + 0xC); /* 0x36096FD1: mov esi, dword ptr [ebp + 0xc] */
   7907     eax = MEM32(esi + 0x10); /* 0x36096FD4: mov eax, dword ptr [esi + 0x10] */
   7908     eax = MEM32(eax + 0x10); /* 0x36096FD7: mov eax, dword ptr [eax + 0x10] */
   7909     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7910     eax = eax + 1; /* 0x36096FDA: inc eax */
   7911     _flag_k = FK_INC;
   7912     ecx = eax; /* 0x36096FDB: mov ecx, eax */
   7913     if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x36096FDD: shl ecx, 6 */
   7914     if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7915     ecx = ecx << 6u; /* 0x36096FDD: shl ecx, 6 */
   7916     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7918     ecx = ecx - eax; /* 0x36096FE0: sub ecx, eax */
   7919     _flag_k = FK_CMP;
   7920     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x36096FE2: shl ecx, 4 */
   7921     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7922     ecx = ecx << 4u; /* 0x36096FE2: shl ecx, 4 */
   7923     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7924     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7925     ecx = ecx + eax; /* 0x36096FE5: add ecx, eax */
   7926     _flag_k = FK_ADD;
   7927     PUSH32(esp, ecx); /* 0x36096FE7: push ecx */
   7928     ecx = ebx; /* 0x36096FE8: mov ecx, ebx */
   7929     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36096FEA: call dword ptr [0x3616faec] */
   7930     RECOMP_FLAGS_IN();
   7931     edx = MEM32(esi + 0x10); /* 0x36096FF0: mov edx, dword ptr [esi + 0x10] */
   7932     eax = MEM32(edx + 0x4); /* 0x36096FF3: mov eax, dword ptr [edx + 4] */
   7933     esi = MEM32(eax); /* 0x36096FF6: mov esi, dword ptr [eax] */
   7934 L_36096FF8:
   7935     ecx = MEM32(ebp + 0xC); /* 0x36096FF8: mov ecx, dword ptr [ebp + 0xc] */
   7936     edx = MEM32(ecx + 0x10); /* 0x36096FFB: mov edx, dword ptr [ecx + 0x10] */
   7937     /* cmp esi, MEM32(edx + 0x4) */ /* 0x36096FFE: cmp esi, dword ptr [edx + 4] */
   7938     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7940     _flag_k = FK_CMP;
   7941     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609706B; /* 0x36097001: je 0x3609706b */
   7942 L_36097003:
   7943     edi = MEM32(esi + 0x10); /* 0x36097003: mov edi, dword ptr [esi + 0x10] */
   7944     /* test edi, edi */ /* 0x36097006: test edi, edi */
   7945     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7946     _cf = 0;
   7947     _flag_k = FK_TEST;
   7948     if (TEST_Z(_flag_a, _flag_b)) goto L_3609702F; /* 0x36097008: je 0x3609702f */
   7949 L_3609700A:
   7950     eax = MEM32(esi + 0xC); /* 0x3609700A: mov eax, dword ptr [esi + 0xc] */
   7951     PUSH32(esp, eax); /* 0x3609700D: push eax */
   7952     ecx = ebx; /* 0x3609700E: mov ecx, ebx */
   7953     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36097010: call dword ptr [0x3616faec] */
   7954     RECOMP_FLAGS_IN();
   7955     ecx = MEM32(ebp + 0xC); /* 0x36097016: mov ecx, dword ptr [ebp + 0xc] */
   7956     SET_LO8(eax, MEM8(ecx + 0xC)); /* 0x36097019: mov al, byte ptr [ecx + 0xc] */
   7957     /* test LO8(eax), LO8(eax) */ /* 0x3609701C: test al, al */
   7958     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7959     _cf = 0;
   7960     _flag_k = FK_NARROW(FK_TEST, 24);
   7961     SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3609701E: setne dl */
   7962     PUSH32(esp, edi); /* 0x36097021: push edi */
   7963     PUSH32(esp, ebx); /* 0x36097022: push ebx */
   7964     MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x36097023: mov byte ptr [edi], dl */
   7965     RECOMP_ICALL(0x36096DE0u); /* 0x36097025: call 0x36096de0 */ /* not lifted */
   7966     RECOMP_FLAGS_IN();
   7967     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7968     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7969     esp = esp + 8; /* 0x3609702A: add esp, 8 */
   7970     _flag_k = FK_ADD;
   7971     goto L_36097039; /* 0x3609702D: jmp 0x36097039 */
   7972 L_3609702F:
   7973     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609702F: push -1 */
   7974     ecx = ebx; /* 0x36097031: mov ecx, ebx */
   7975     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36097033: call dword ptr [0x3616faec] */
   7976     RECOMP_FLAGS_IN();
   7977 L_36097039:
   7978     eax = MEM32(esi + 0x8); /* 0x36097039: mov eax, dword ptr [esi + 8] */
   7979     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3609703C: mov cl, byte ptr [eax + 0x15] */
   7980     /* test LO8(ecx), LO8(ecx) */ /* 0x3609703F: test cl, cl */
   7981     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7982     _cf = 0;
   7983     _flag_k = FK_NARROW(FK_TEST, 24);
   7984     if (TEST_NZ(_flag_a, _flag_b)) goto L_36097050; /* 0x36097041: jne 0x36097050 */
   7985 L_36097043:
   7986     PUSH32(esp, eax); /* 0x36097043: push eax */
   7987     RECOMP_ICALL(0x3614FC90u); /* 0x36097044: call 0x3614fc90 */ /* not lifted */
   7988     RECOMP_FLAGS_IN();
   7989     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7990     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7991     esp = esp + 4; /* 0x36097049: add esp, 4 */
   7992     _flag_k = FK_ADD;
   7993     esi = eax; /* 0x3609704C: mov esi, eax */
   7994     RECOMP_BACKEDGE();
   7995     goto L_36096FF8; /* 0x3609704E: jmp 0x36096ff8 */
   7996 L_36097050:
   7997     eax = MEM32(esi + 0x4); /* 0x36097050: mov eax, dword ptr [esi + 4] */
   7998     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36097053: cmp esi, dword ptr [eax + 8] */
   7999     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   8000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8001     _flag_k = FK_CMP;
   8002     if (CMP_NE(_flag_a, _flag_b)) goto L_36097062; /* 0x36097056: jne 0x36097062 */
   8003 L_36097058:
   8004     esi = eax; /* 0x36097058: mov esi, eax */
   8005     eax = MEM32(eax + 0x4); /* 0x3609705A: mov eax, dword ptr [eax + 4] */
   8006     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3609705D: cmp esi, dword ptr [eax + 8] */
   8007     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   8008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8009     _flag_k = FK_CMP;
   8010     RECOMP_BACKEDGE();
   8011     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097058; /* 0x36097060: je 0x36097058 */
   8012 L_36097062:
   8013     /* cmp MEM32(esi + 0x8), eax */ /* 0x36097062: cmp dword ptr [esi + 8], eax */
   8014     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   8015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8016     _flag_k = FK_CMP;
   8017     RECOMP_BACKEDGE();
   8018     if (CMP_EQ(_flag_a, _flag_b)) goto L_36096FF8; /* 0x36097065: je 0x36096ff8 */
   8019 L_36097067:
   8020     esi = eax; /* 0x36097067: mov esi, eax */
   8021     RECOMP_BACKEDGE();
   8022     goto L_36096FF8; /* 0x36097069: jmp 0x36096ff8 */
   8023 L_3609706B:
   8024     edi = POP32_VAL(esp); /* 0x3609706B: pop edi */
   8025     esi = POP32_VAL(esp); /* 0x3609706C: pop esi */
   8026     eax = ebx; /* 0x3609706D: mov eax, ebx */
   8027     ebx = POP32_VAL(esp); /* 0x3609706F: pop ebx */
   8028     ebp = POP32_VAL(esp); /* 0x36097070: pop ebp */
   8029     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36097071: ret  */
   8030     RECOMP_REGS_OUT();
   8031 }
   8032 
   8033 void sub_36097080(void) {
   8034     int _fpu_cmp = 0;
   8035     uint32_t _cf = 0;
   8036     int _df = 1;
   8037     uint32_t _flag_k = FK_NONE;
   8038     uint32_t _flag_a = 0, _flag_b = 0;
   8039     uint32_t _itail_tgt = 0;
   8040     RECOMP_REGS_LOCALS
   8041     RECOMP_ENTER(0x36097080u);
   8042 
   8043 L_36097080:
   8044     PUSH32(esp, ebp); /* 0x36097080: push ebp */
   8045     ebp = esp; /* 0x36097081: mov ebp, esp */
   8046     PUSH32(esp, 0xFFFFFFFFu); /* 0x36097083: push -1 */
   8047     PUSH32(esp, 0x3616655Bu); /* 0x36097085: push 0x3616655b */
   8048     eax = MEM32(FS_BASE + (0)); /* 0x3609708A: mov eax, dword ptr fs:[0] */
   8049     PUSH32(esp, eax); /* 0x36097090: push eax */
   8050     MEM32(FS_BASE + (0)) = esp; /* 0x36097091: mov dword ptr fs:[0], esp */
   8051     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u);
   8052     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8053     esp = esp - 0x68u; /* 0x36097098: sub esp, 0x68 */
   8054     _flag_k = FK_CMP;
   8055     PUSH32(esp, ebx); /* 0x3609709B: push ebx */
   8056     PUSH32(esp, esi); /* 0x3609709C: push esi */
   8057     esi = MEM32(ebp + 0x8); /* 0x3609709D: mov esi, dword ptr [ebp + 8] */
   8058     PUSH32(esp, edi); /* 0x360970A0: push edi */
   8059     eax = ebp + (-0x1C); /* 0x360970A1: lea eax, [ebp - 0x1c] */
   8060     PUSH32(esp, eax); /* 0x360970A4: push eax */
   8061     ecx = esi; /* 0x360970A5: mov ecx, esi */
   8062     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360970A7: call dword ptr [0x3616fa8c] */
   8063     RECOMP_FLAGS_IN();
   8064     ecx = MEM32(ebp + (-0x1C)); /* 0x360970AD: mov ecx, dword ptr [ebp - 0x1c] */
   8065     eax = ecx; /* 0x360970B0: mov eax, ecx */
   8066     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360970B2: cdq  */
   8067     edi = 0x3F1u; /* 0x360970B3: mov edi, 0x3f1 */
   8068     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x360970B8: idiv edi */
   8069       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   8070       else { eax = 0; edx = 0; } }
   8071     /* test edx, edx */ /* 0x360970BA: test edx, edx */
   8072     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   8073     _cf = 0;
   8074     _flag_k = FK_TEST;
   8075     if (TEST_NZ(_flag_a, _flag_b)) goto L_36097259; /* 0x360970BC: jne 0x36097259 */
   8076 L_360970C2:
   8077     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8078     ebx = 0; /* 0x360970C2: xor ebx, ebx */
   8079     _cf = 0;
   8080     _flag_k = FK_TEST;
   8081     /* cmp ecx, ebx */ /* 0x360970C4: cmp ecx, ebx */
   8082     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   8083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8084     _flag_k = FK_CMP;
   8085     if (CMP_LE(_flag_a, _flag_b)) goto L_36097259; /* 0x360970C6: jle 0x36097259 */
   8086 L_360970CC:
   8087     eax = 0x81E722C3u; /* 0x360970CC: mov eax, 0x81e722c3 */
   8088     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x360970D1: imul ecx */
   8089       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8090       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8091     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   8092     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8093     edx = edx + ecx; /* 0x360970D3: add edx, ecx */
   8094     _flag_k = FK_ADD;
   8095     if (9u) _cf = (((edx) >> 8) & 1u); /* 0x360970D5: sar edx, 9 */
   8096     if (9u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 9u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8097     edx = (uint32_t)((int32_t)edx >> 9u);
   8098     ecx = edx; /* 0x360970D8: mov ecx, edx */
   8099     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x360970DA: shr ecx, 0x1f */
   8100     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8101     ecx = ecx >> 31u; /* 0x360970DA: shr ecx, 0x1f */
   8102     eax = edx + ecx + (-0x1); /* 0x360970DD: lea eax, [edx + ecx - 1] */
   8103     /* cmp eax, ebx */ /* 0x360970E1: cmp eax, ebx */
   8104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   8105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8106     _flag_k = FK_CMP;
   8107     MEM32(ebp + (-0x1C)) = eax; /* 0x360970E3: mov dword ptr [ebp - 0x1c], eax */
   8108     MEM32(ebp + (-0x24)) = ebx; /* 0x360970E6: mov dword ptr [ebp - 0x24], ebx */
   8109     if (CMP_LE(_flag_a, _flag_b)) goto L_36097259; /* 0x360970E9: jle 0x36097259 */
   8110 L_360970EF:
   8111     PUSH32(esp, 0x5Cu); /* 0x360970EF: push 0x5c */
   8112     RECOMP_ICALL(0x3615FD6Au); /* 0x360970F1: call 0x3615fd6a */ /* not lifted */
   8113     RECOMP_FLAGS_IN();
   8114     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8116     esp = esp + 4; /* 0x360970F6: add esp, 4 */
   8117     _flag_k = FK_ADD;
   8118     MEM32(ebp + (-0x18)) = eax; /* 0x360970F9: mov dword ptr [ebp - 0x18], eax */
   8119     /* cmp eax, ebx */ /* 0x360970FC: cmp eax, ebx */
   8120     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   8121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8122     _flag_k = FK_CMP;
   8123     MEM32(ebp + (-0x4)) = ebx; /* 0x360970FE: mov dword ptr [ebp - 4], ebx */
   8124     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609710F; /* 0x36097101: je 0x3609710f */
   8125 L_36097103:
   8126     ecx = eax; /* 0x36097103: mov ecx, eax */
   8127     RECOMP_ICALL(0x36095000u); /* 0x36097105: call 0x36095000 */ /* not lifted */
   8128     RECOMP_FLAGS_IN();
   8129     MEM32(ebp + (-0x18)) = eax; /* 0x3609710A: mov dword ptr [ebp - 0x18], eax */
   8130     goto L_36097112; /* 0x3609710D: jmp 0x36097112 */
   8131 L_3609710F:
   8132     MEM32(ebp + (-0x18)) = ebx; /* 0x3609710F: mov dword ptr [ebp - 0x18], ebx */
   8133 L_36097112:
   8134     edx = ebp + (-0x20); /* 0x36097112: lea edx, [ebp - 0x20] */
   8135     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   8136     edi = edi | 0xFFFFFFFFu; /* 0x36097115: or edi, 0xffffffff */
   8137     _cf = 0;
   8138     _flag_k = FK_TEST;
   8139     PUSH32(esp, edx); /* 0x36097118: push edx */
   8140     ecx = esi; /* 0x36097119: mov ecx, esi */
   8141     MEM32(ebp + (-0x4)) = edi; /* 0x3609711B: mov dword ptr [ebp - 4], edi */
   8142     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3609711E: call dword ptr [0x3616fa8c] */
   8143     RECOMP_FLAGS_IN();
   8144     /* cmp MEM32(ebp + (-0x20)), edi */ /* 0x36097124: cmp dword ptr [ebp - 0x20], edi */
   8145     _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(edi);
   8146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8147     _flag_k = FK_CMP;
   8148     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097247; /* 0x36097127: je 0x36097247 */
   8149 L_3609712D:
   8150     eax = MEM32(ebp + (-0x18)); /* 0x3609712D: mov eax, dword ptr [ebp - 0x18] */
   8151     PUSH32(esp, eax); /* 0x36097130: push eax */
   8152     PUSH32(esp, esi); /* 0x36097131: push esi */
   8153     RECOMP_ICALL(0x36096E70u); /* 0x36097132: call 0x36096e70 */ /* not lifted */
   8154     RECOMP_FLAGS_IN();
   8155     ecx = MEM32(ebp + 0xC); /* 0x36097137: mov ecx, dword ptr [ebp + 0xc] */
   8156     edi = MEM32(ecx + 0x10); /* 0x3609713A: mov edi, dword ptr [ecx + 0x10] */
   8157     eax = MEM32(edi + 0x4); /* 0x3609713D: mov eax, dword ptr [edi + 4] */
   8158     edx = MEM32(ebp + (-0x20)); /* 0x36097140: mov edx, dword ptr [ebp - 0x20] */
   8159     ecx = MEM32(edi + 0x8); /* 0x36097143: mov ecx, dword ptr [edi + 8] */
   8160     MEM32(ebp + (-0x38)) = ebx; /* 0x36097146: mov dword ptr [ebp - 0x38], ebx */
   8161     MEM32(ebp + (-0x3C)) = edx; /* 0x36097149: mov dword ptr [ebp - 0x3c], edx */
   8162     esi = MEM32(eax + 0x4); /* 0x3609714C: mov esi, dword ptr [eax + 4] */
   8163     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8164     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8165     esp = esp + 8; /* 0x3609714F: add esp, 8 */
   8166     _flag_k = FK_ADD;
   8167     /* cmp esi, ecx */ /* 0x36097152: cmp esi, ecx */
   8168     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   8169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8170     _flag_k = FK_CMP;
   8171     ebx = eax; /* 0x36097154: mov ebx, eax */
   8172     SET_LO8(eax, 1); /* 0x36097156: mov al, 1 */
   8173     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097171; /* 0x36097158: je 0x36097171 */
   8174 L_3609715A:
   8175     /* cmp edx, MEM32(esi + 0xC) */ /* 0x3609715A: cmp edx, dword ptr [esi + 0xc] */
   8176     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   8177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8178     _flag_k = FK_CMP;
   8179     SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x3609715D: setl al */
   8180     /* test LO8(eax), LO8(eax) */ /* 0x36097160: test al, al */
   8181     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8182     _cf = 0;
   8183     _flag_k = FK_NARROW(FK_TEST, 24);
   8184     ebx = esi; /* 0x36097162: mov ebx, esi */
   8185     if (TEST_Z(_flag_a, _flag_b)) goto L_3609716A; /* 0x36097164: je 0x3609716a */
   8186 L_36097166:
   8187     esi = MEM32(esi); /* 0x36097166: mov esi, dword ptr [esi] */
   8188     goto L_3609716D; /* 0x36097168: jmp 0x3609716d */
   8189 L_3609716A:
   8190     esi = MEM32(esi + 0x8); /* 0x3609716A: mov esi, dword ptr [esi + 8] */
   8191 L_3609716D:
   8192     /* cmp esi, ecx */ /* 0x3609716D: cmp esi, ecx */
   8193     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   8194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8195     _flag_k = FK_CMP;
   8196     RECOMP_BACKEDGE();
   8197     if (CMP_NE(_flag_a, _flag_b)) goto L_3609715A; /* 0x3609716F: jne 0x3609715a */
   8198 L_36097171:
   8199     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x36097171: mov cl, byte ptr [edi + 0xc] */
   8200     /* test LO8(ecx), LO8(ecx) */ /* 0x36097174: test cl, cl */
   8201     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   8202     _cf = 0;
   8203     _flag_k = FK_NARROW(FK_TEST, 24);
   8204     if (TEST_Z(_flag_a, _flag_b)) goto L_36097197; /* 0x36097176: je 0x36097197 */
   8205 L_36097178:
   8206     edx = ebp + (-0xD); /* 0x36097178: lea edx, [ebp - 0xd] */
   8207     PUSH32(esp, edx); /* 0x3609717B: push edx */
   8208     eax = ebp + (-0x3C); /* 0x3609717C: lea eax, [ebp - 0x3c] */
   8209     PUSH32(esp, eax); /* 0x3609717F: push eax */
   8210     PUSH32(esp, ebx); /* 0x36097180: push ebx */
   8211     PUSH32(esp, esi); /* 0x36097181: push esi */
   8212     ecx = ebp + (-0x28); /* 0x36097182: lea ecx, [ebp - 0x28] */
   8213     PUSH32(esp, ecx); /* 0x36097185: push ecx */
   8214     ecx = edi; /* 0x36097186: mov ecx, edi */
   8215     MEM8(ebp + (-0xD)) = (uint8_t)(1); /* 0x36097188: mov byte ptr [ebp - 0xd], 1 */
   8216     RECOMP_ICALL(0x360912C0u); /* 0x3609718C: call 0x360912c0 */ /* not lifted */
   8217     RECOMP_FLAGS_IN();
   8218     PUSH32(esp, eax); /* 0x36097191: push eax */
   8219     ecx = ebp + (-0x4C); /* 0x36097192: lea ecx, [ebp - 0x4c] */
   8220     goto L_36097210; /* 0x36097195: jmp 0x36097210 */
   8221 L_36097197:
   8222     /* test LO8(eax), LO8(eax) */ /* 0x36097197: test al, al */
   8223     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8224     _cf = 0;
   8225     _flag_k = FK_NARROW(FK_TEST, 24);
   8226     MEM32(ebp + (-0x14)) = ebx; /* 0x36097199: mov dword ptr [ebp - 0x14], ebx */
   8227     if (TEST_Z(_flag_a, _flag_b)) goto L_360971D7; /* 0x3609719C: je 0x360971d7 */
   8228 L_3609719E:
   8229     eax = ebp + (-0x2C); /* 0x3609719E: lea eax, [ebp - 0x2c] */
   8230     PUSH32(esp, eax); /* 0x360971A1: push eax */
   8231     ecx = edi; /* 0x360971A2: mov ecx, edi */
   8232     RECOMP_ICALL(0x3614FC30u); /* 0x360971A4: call 0x3614fc30 */ /* not lifted */
   8233     RECOMP_FLAGS_IN();
   8234     ecx = MEM32(ebp + (-0x14)); /* 0x360971A9: mov ecx, dword ptr [ebp - 0x14] */
   8235     /* cmp ecx, MEM32(eax) */ /* 0x360971AC: cmp ecx, dword ptr [eax] */
   8236     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   8237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8238     _flag_k = FK_CMP;
   8239     if (CMP_NE(_flag_a, _flag_b)) goto L_360971CF; /* 0x360971AE: jne 0x360971cf */
   8240 L_360971B0:
   8241     edx = ebp + (-0xE); /* 0x360971B0: lea edx, [ebp - 0xe] */
   8242     PUSH32(esp, edx); /* 0x360971B3: push edx */
   8243     eax = ebp + (-0x3C); /* 0x360971B4: lea eax, [ebp - 0x3c] */
   8244     PUSH32(esp, eax); /* 0x360971B7: push eax */
   8245     PUSH32(esp, ebx); /* 0x360971B8: push ebx */
   8246     PUSH32(esp, esi); /* 0x360971B9: push esi */
   8247     ecx = ebp + (-0x30); /* 0x360971BA: lea ecx, [ebp - 0x30] */
   8248     PUSH32(esp, ecx); /* 0x360971BD: push ecx */
   8249     ecx = edi; /* 0x360971BE: mov ecx, edi */
   8250     MEM8(ebp + (-0xE)) = (uint8_t)(1); /* 0x360971C0: mov byte ptr [ebp - 0xe], 1 */
   8251     RECOMP_ICALL(0x360912C0u); /* 0x360971C4: call 0x360912c0 */ /* not lifted */
   8252     RECOMP_FLAGS_IN();
   8253     PUSH32(esp, eax); /* 0x360971C9: push eax */
   8254     ecx = ebp + (-0x54); /* 0x360971CA: lea ecx, [ebp - 0x54] */
   8255     goto L_36097210; /* 0x360971CD: jmp 0x36097210 */
   8256 L_360971CF:
   8257     ecx = ebp + (-0x14); /* 0x360971CF: lea ecx, [ebp - 0x14] */
   8258     RECOMP_ICALL(0x3614FCD0u); /* 0x360971D2: call 0x3614fcd0 */ /* not lifted */
   8259     RECOMP_FLAGS_IN();
   8260 L_360971D7:
   8261     eax = MEM32(ebp + (-0x14)); /* 0x360971D7: mov eax, dword ptr [ebp - 0x14] */
   8262     ecx = MEM32(eax + 0xC); /* 0x360971DA: mov ecx, dword ptr [eax + 0xc] */
   8263     /* cmp ecx, MEM32(ebp + (-0x3C)) */ /* 0x360971DD: cmp ecx, dword ptr [ebp - 0x3c] */
   8264     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x3C)));
   8265     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8266     _flag_k = FK_CMP;
   8267     if (CMP_GE(_flag_a, _flag_b)) goto L_36097201; /* 0x360971E0: jge 0x36097201 */
   8268 L_360971E2:
   8269     edx = ebp + (-0xF); /* 0x360971E2: lea edx, [ebp - 0xf] */
   8270     PUSH32(esp, edx); /* 0x360971E5: push edx */
   8271     eax = ebp + (-0x3C); /* 0x360971E6: lea eax, [ebp - 0x3c] */
   8272     PUSH32(esp, eax); /* 0x360971E9: push eax */
   8273     PUSH32(esp, ebx); /* 0x360971EA: push ebx */
   8274     PUSH32(esp, esi); /* 0x360971EB: push esi */
   8275     ecx = ebp + (-0x34); /* 0x360971EC: lea ecx, [ebp - 0x34] */
   8276     PUSH32(esp, ecx); /* 0x360971EF: push ecx */
   8277     ecx = edi; /* 0x360971F0: mov ecx, edi */
   8278     MEM8(ebp + (-0xF)) = (uint8_t)(1); /* 0x360971F2: mov byte ptr [ebp - 0xf], 1 */
   8279     RECOMP_ICALL(0x360912C0u); /* 0x360971F6: call 0x360912c0 */ /* not lifted */
   8280     RECOMP_FLAGS_IN();
   8281     PUSH32(esp, eax); /* 0x360971FB: push eax */
   8282     ecx = ebp + (-0x5C); /* 0x360971FC: lea ecx, [ebp - 0x5c] */
   8283     goto L_36097210; /* 0x360971FF: jmp 0x36097210 */
   8284 L_36097201:
   8285     eax = ebp + (-0x10); /* 0x36097201: lea eax, [ebp - 0x10] */
   8286     ecx = ebp + (-0x14); /* 0x36097204: lea ecx, [ebp - 0x14] */
   8287     PUSH32(esp, eax); /* 0x36097207: push eax */
   8288     PUSH32(esp, ecx); /* 0x36097208: push ecx */
   8289     MEM8(ebp + (-0x10)) = (uint8_t)(0); /* 0x36097209: mov byte ptr [ebp - 0x10], 0 */
   8290     ecx = ebp + (-0x64); /* 0x3609720D: lea ecx, [ebp - 0x64] */
   8291 L_36097210:
   8292     RECOMP_ICALL(0x3614FCB0u); /* 0x36097210: call 0x3614fcb0 */ /* not lifted */
   8293     RECOMP_FLAGS_IN();
   8294     edx = eax; /* 0x36097215: mov edx, eax */
   8295     eax = MEM32(edx); /* 0x36097217: mov eax, dword ptr [edx] */
   8296     ecx = MEM32(edx + 0x4); /* 0x36097219: mov ecx, dword ptr [edx + 4] */
   8297     MEM32(ebp + (-0x44)) = eax; /* 0x3609721C: mov dword ptr [ebp - 0x44], eax */
   8298     MEM32(ebp + (-0x40)) = ecx; /* 0x3609721F: mov dword ptr [ebp - 0x40], ecx */
   8299     eax = ebp + (-0x40); /* 0x36097222: lea eax, [ebp - 0x40] */
   8300     PUSH32(esp, eax); /* 0x36097225: push eax */
   8301     ecx = ebp + (-0x44); /* 0x36097226: lea ecx, [ebp - 0x44] */
   8302     PUSH32(esp, ecx); /* 0x36097229: push ecx */
   8303     ecx = ebp + (-0x6C); /* 0x3609722A: lea ecx, [ebp - 0x6c] */
   8304     RECOMP_ICALL(0x3614FCB0u); /* 0x3609722D: call 0x3614fcb0 */ /* not lifted */
   8305     RECOMP_FLAGS_IN();
   8306     esi = MEM32(ebp + 0x8); /* 0x36097232: mov esi, dword ptr [ebp + 8] */
   8307     edx = eax; /* 0x36097235: mov edx, eax */
   8308     eax = MEM32(edx); /* 0x36097237: mov eax, dword ptr [edx] */
   8309     ecx = MEM32(edx + 0x4); /* 0x36097239: mov ecx, dword ptr [edx + 4] */
   8310     edx = MEM32(ebp + (-0x18)); /* 0x3609723C: mov edx, dword ptr [ebp - 0x18] */
   8311     MEM32(ebp + (-0x70)) = ecx; /* 0x3609723F: mov dword ptr [ebp - 0x70], ecx */
   8312     MEM32(eax + 0x10) = edx; /* 0x36097242: mov dword ptr [eax + 0x10], edx */
   8313     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8314     ebx = 0; /* 0x36097245: xor ebx, ebx */
   8315     _cf = 0;
   8316     _flag_k = FK_TEST;
   8317 L_36097247:
   8318     eax = MEM32(ebp + (-0x24)); /* 0x36097247: mov eax, dword ptr [ebp - 0x24] */
   8319     ecx = MEM32(ebp + (-0x1C)); /* 0x3609724A: mov ecx, dword ptr [ebp - 0x1c] */
   8320     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8321     eax = eax + 1; /* 0x3609724D: inc eax */
   8322     _flag_k = FK_INC;
   8323     /* cmp eax, ecx */ /* 0x3609724E: cmp eax, ecx */
   8324     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8326     _flag_k = FK_CMP;
   8327     MEM32(ebp + (-0x24)) = eax; /* 0x36097250: mov dword ptr [ebp - 0x24], eax */
   8328     RECOMP_BACKEDGE();
   8329     if (CMP_L(_flag_a, _flag_b)) goto L_360970EF; /* 0x36097253: jl 0x360970ef */
   8330 L_36097259:
   8331     ecx = MEM32(ebp + (-0xC)); /* 0x36097259: mov ecx, dword ptr [ebp - 0xc] */
   8332     edi = POP32_VAL(esp); /* 0x3609725C: pop edi */
   8333     eax = esi; /* 0x3609725D: mov eax, esi */
   8334     esi = POP32_VAL(esp); /* 0x3609725F: pop esi */
   8335     ebx = POP32_VAL(esp); /* 0x36097260: pop ebx */
   8336     MEM32(FS_BASE + (0)) = ecx; /* 0x36097261: mov dword ptr fs:[0], ecx */
   8337     esp = ebp; /* 0x36097268: mov esp, ebp */
   8338     ebp = POP32_VAL(esp); /* 0x3609726A: pop ebp */
   8339     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609726B: ret  */
   8340     RECOMP_REGS_OUT();
   8341 }
   8342 
   8343 void sub_36097270(void) {
   8344     int _fpu_cmp = 0;
   8345     uint32_t _cf = 0;
   8346     int _df = 1;
   8347     uint32_t _flag_k = FK_NONE;
   8348     uint32_t _flag_a = 0, _flag_b = 0;
   8349     uint32_t _itail_tgt = 0;
   8350     RECOMP_REGS_LOCALS
   8351     RECOMP_ENTER(0x36097270u);
   8352 
   8353 L_36097270:
   8354     goto L_36097280; /* 0x36097270: jmp 0x36097280 */
   8355 L_36097280:
   8356     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8357     eax = 0; /* 0x36097280: xor eax, eax */
   8358     _cf = 0;
   8359     _flag_k = FK_TEST;
   8360     MEM32(0x36306BD8) = eax; /* 0x36097282: mov dword ptr [0x36306bd8], eax */
   8361     MEM32(0x36306BDC) = eax; /* 0x36097287: mov dword ptr [0x36306bdc], eax */
   8362     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609728C: ret  */
   8363     RECOMP_REGS_OUT();
   8364 }
   8365 
   8366 void sub_36097280(void) {
   8367     int _fpu_cmp = 0;
   8368     uint32_t _cf = 0;
   8369     int _df = 1;
   8370     uint32_t _flag_k = FK_NONE;
   8371     uint32_t _flag_a = 0, _flag_b = 0;
   8372     uint32_t _itail_tgt = 0;
   8373     RECOMP_REGS_LOCALS
   8374     RECOMP_ENTER(0x36097280u);
   8375 
   8376 L_36097280:
   8377     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8378     eax = 0; /* 0x36097280: xor eax, eax */
   8379     _cf = 0;
   8380     _flag_k = FK_TEST;
   8381     MEM32(0x36306BD8) = eax; /* 0x36097282: mov dword ptr [0x36306bd8], eax */
   8382     MEM32(0x36306BDC) = eax; /* 0x36097287: mov dword ptr [0x36306bdc], eax */
   8383     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609728C: ret  */
   8384     RECOMP_REGS_OUT();
   8385 }
   8386 
   8387 void sub_36097290(void) {
   8388     int _fpu_cmp = 0;
   8389     uint32_t _cf = 0;
   8390     int _df = 1;
   8391     uint32_t _flag_k = FK_NONE;
   8392     uint32_t _flag_a = 0, _flag_b = 0;
   8393     uint32_t _itail_tgt = 0;
   8394     RECOMP_REGS_LOCALS
   8395     RECOMP_ENTER(0x36097290u);
   8396 
   8397 L_36097290:
   8398     PUSH32(esp, ebp); /* 0x36097290: push ebp */
   8399     ebp = esp; /* 0x36097291: mov ebp, esp */
   8400     PUSH32(esp, 0xFFFFFFFFu); /* 0x36097293: push -1 */
   8401     PUSH32(esp, 0x36166578u); /* 0x36097295: push 0x36166578 */
   8402     eax = MEM32(FS_BASE + (0)); /* 0x3609729A: mov eax, dword ptr fs:[0] */
   8403     PUSH32(esp, eax); /* 0x360972A0: push eax */
   8404     MEM32(FS_BASE + (0)) = esp; /* 0x360972A1: mov dword ptr fs:[0], esp */
   8405     PUSH32(esp, ecx); /* 0x360972A8: push ecx */
   8406     eax = MEM32(ebp + 0xC); /* 0x360972A9: mov eax, dword ptr [ebp + 0xc] */
   8407     PUSH32(esp, esi); /* 0x360972AC: push esi */
   8408     esi = ecx; /* 0x360972AD: mov esi, ecx */
   8409     ecx = MEM32(ebp + 0x8); /* 0x360972AF: mov ecx, dword ptr [ebp + 8] */
   8410     PUSH32(esp, eax); /* 0x360972B2: push eax */
   8411     PUSH32(esp, ecx); /* 0x360972B3: push ecx */
   8412     ecx = esi; /* 0x360972B4: mov ecx, esi */
   8413     MEM32(ebp + (-0x10)) = esi; /* 0x360972B6: mov dword ptr [ebp - 0x10], esi */
   8414     RECOMP_ICALL(0x3609C3C0u); /* 0x360972B9: call 0x3609c3c0 */ /* not lifted */
   8415     RECOMP_FLAGS_IN();
   8416     ecx = esi; /* 0x360972BE: mov ecx, esi */
   8417     MEM32(ebp + (-0x4)) = 0; /* 0x360972C0: mov dword ptr [ebp - 4], 0 */
   8418     MEM32(esi) = 0x361730D0u; /* 0x360972C7: mov dword ptr [esi], 0x361730d0 */
   8419     MEM32(esi + 0x8) = 0x361730C0u; /* 0x360972CD: mov dword ptr [esi + 8], 0x361730c0 */
   8420     MEM32(esi + 0x40) = 0x361730B8u; /* 0x360972D4: mov dword ptr [esi + 0x40], 0x361730b8 */
   8421     MEM32(esi + 0x4C) = 0x361730B0u; /* 0x360972DB: mov dword ptr [esi + 0x4c], 0x361730b0 */
   8422     MEM32(esi + 0x80) = 0x3617309Cu; /* 0x360972E2: mov dword ptr [esi + 0x80], 0x3617309c */
   8423     MEM32(esi + 0x8C) = 0x36172FF8u; /* 0x360972EC: mov dword ptr [esi + 0x8c], 0x36172ff8 */
   8424     MEM32(esi + 0xA8) = 0x36172FE0u; /* 0x360972F6: mov dword ptr [esi + 0xa8], 0x36172fe0 */
   8425     MEM32(esi + 0xAC) = 0x36172FD8u; /* 0x36097300: mov dword ptr [esi + 0xac], 0x36172fd8 */
   8426     RECOMP_ICALL(0x36097370u); /* 0x3609730A: call 0x36097370 */ /* not lifted */
   8427     RECOMP_FLAGS_IN();
   8428     ecx = MEM32(ebp + (-0xC)); /* 0x3609730F: mov ecx, dword ptr [ebp - 0xc] */
   8429     eax = esi; /* 0x36097312: mov eax, esi */
   8430     esi = POP32_VAL(esp); /* 0x36097314: pop esi */
   8431     MEM32(FS_BASE + (0)) = ecx; /* 0x36097315: mov dword ptr fs:[0], ecx */
   8432     esp = ebp; /* 0x3609731C: mov esp, ebp */
   8433     ebp = POP32_VAL(esp); /* 0x3609731E: pop ebp */
   8434     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609731F: ret 8 */
   8435     RECOMP_REGS_OUT();
   8436 }
   8437 
   8438 void sub_36097330(void) {
   8439     int _fpu_cmp = 0;
   8440     uint32_t _cf = 0;
   8441     int _df = 1;
   8442     uint32_t _flag_k = FK_NONE;
   8443     uint32_t _flag_a = 0, _flag_b = 0;
   8444     uint32_t _itail_tgt = 0;
   8445     RECOMP_REGS_LOCALS
   8446     RECOMP_ENTER(0x36097330u);
   8447 
   8448 L_36097330:
   8449     PUSH32(esp, ebp); /* 0x36097330: push ebp */
   8450     ebp = esp; /* 0x36097331: mov ebp, esp */
   8451     PUSH32(esp, esi); /* 0x36097333: push esi */
   8452     esi = ecx; /* 0x36097334: mov esi, ecx */
   8453     RECOMP_ICALL(0x36097440u); /* 0x36097336: call 0x36097440 */ /* not lifted */
   8454     RECOMP_FLAGS_IN();
   8455     /* test MEM8(ebp + 0x8), 1 */ /* 0x3609733B: test byte ptr [ebp + 8], 1 */
   8456     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   8457     _cf = 0;
   8458     _flag_k = FK_NARROW(FK_TEST, 24);
   8459     if (TEST_Z(_flag_a, _flag_b)) goto L_3609734A; /* 0x3609733F: je 0x3609734a */
   8460 L_36097341:
   8461     PUSH32(esp, esi); /* 0x36097341: push esi */
   8462     RECOMP_ICALL(0x3615FCC4u); /* 0x36097342: call 0x3615fcc4 */ /* not lifted */
   8463     RECOMP_FLAGS_IN();
   8464     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8465     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8466     esp = esp + 4; /* 0x36097347: add esp, 4 */
   8467     _flag_k = FK_ADD;
   8468 L_3609734A:
   8469     eax = esi; /* 0x3609734A: mov eax, esi */
   8470     esi = POP32_VAL(esp); /* 0x3609734C: pop esi */
   8471     ebp = POP32_VAL(esp); /* 0x3609734D: pop ebp */
   8472     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609734E: ret 4 */
   8473     RECOMP_REGS_OUT();
   8474 }
   8475 
   8476 void sub_36097360(void) {
   8477     int _fpu_cmp = 0;
   8478     uint32_t _cf = 0;
   8479     int _df = 1;
   8480     uint32_t _flag_k = FK_NONE;
   8481     uint32_t _flag_a = 0, _flag_b = 0;
   8482     uint32_t _itail_tgt = 0;
   8483     RECOMP_REGS_LOCALS
   8484     RECOMP_ENTER(0x36097360u);
   8485 
   8486 L_36097360:
   8487     goto L_3609C6C0; /* 0x36097360: jmp 0x3609c6c0 */
   8488 L_3609C6C0:
   8489     PUSH32(esp, ebp); /* 0x3609C6C0: push ebp */
   8490     ebp = esp; /* 0x3609C6C1: mov ebp, esp */
   8491     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8493     esp = esp - 0x14u; /* 0x3609C6C3: sub esp, 0x14 */
   8494     _flag_k = FK_CMP;
   8495     PUSH32(esp, ebx); /* 0x3609C6C6: push ebx */
   8496     PUSH32(esp, esi); /* 0x3609C6C7: push esi */
   8497     PUSH32(esp, edi); /* 0x3609C6C8: push edi */
   8498     ebx = ecx; /* 0x3609C6C9: mov ebx, ecx */
   8499     RECOMP_ICALL(MEM32(0x3616FBE4)); /* 0x3609C6CB: call dword ptr [0x3616fbe4] */
   8500     RECOMP_FLAGS_IN();
   8501     eax = MEM32(ebx + 0xF0); /* 0x3609C6D1: mov eax, dword ptr [ebx + 0xf0] */
   8502     ecx = MEM32(eax + 0x8); /* 0x3609C6D7: mov ecx, dword ptr [eax + 8] */
   8503     /* test ecx, ecx */ /* 0x3609C6DA: test ecx, ecx */
   8504     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8505     _cf = 0;
   8506     _flag_k = FK_TEST;
   8507     if (TEST_Z(_flag_a, _flag_b)) goto L_3609C77E; /* 0x3609C6DC: je 0x3609c77e */
   8508 L_3609C6E2:
   8509     eax = MEM32(eax + 0x4); /* 0x3609C6E2: mov eax, dword ptr [eax + 4] */
   8510     edi = MEM32(eax); /* 0x3609C6E5: mov edi, dword ptr [eax] */
   8511     /* cmp edi, eax */ /* 0x3609C6E7: cmp edi, eax */
   8512     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8514     _flag_k = FK_CMP;
   8515     MEM32(ebp + (-0x4)) = edi; /* 0x3609C6E9: mov dword ptr [ebp - 4], edi */
   8516     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609C77E; /* 0x3609C6EC: je 0x3609c77e */
   8517 L_3609C6F2:
   8518     goto L_3609C6F7; /* 0x3609C6F2: jmp 0x3609c6f7 */
   8519 L_3609C6F4:
   8520     edi = MEM32(ebp + (-0x4)); /* 0x3609C6F4: mov edi, dword ptr [ebp - 4] */
   8521 L_3609C6F7:
   8522     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   8523     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8524     edi = edi + 8; /* 0x3609C6F7: add edi, 8 */
   8525     _flag_k = FK_ADD;
   8526     PUSH32(esp, edi); /* 0x3609C6FA: push edi */
   8527     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3609C6FB: call dword ptr [0x3616ff70] */
   8528     RECOMP_FLAGS_IN();
   8529     esi = eax; /* 0x3609C701: mov esi, eax */
   8530     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8531     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8532     esp = esp + 4; /* 0x3609C703: add esp, 4 */
   8533     _flag_k = FK_ADD;
   8534     /* test esi, esi */ /* 0x3609C706: test esi, esi */
   8535     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8536     _cf = 0;
   8537     _flag_k = FK_TEST;
   8538     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609C71A; /* 0x3609C708: jne 0x3609c71a */
   8539 L_3609C70A:
   8540     PUSH32(esp, edi); /* 0x3609C70A: push edi */
   8541     RECOMP_ICALL(MEM32(0x3616FF58)); /* 0x3609C70B: call dword ptr [0x3616ff58] */
   8542     RECOMP_FLAGS_IN();
   8543     esi = eax; /* 0x3609C711: mov esi, eax */
   8544     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8545     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8546     esp = esp + 4; /* 0x3609C713: add esp, 4 */
   8547     _flag_k = FK_ADD;
   8548     /* test esi, esi */ /* 0x3609C716: test esi, esi */
   8549     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8550     _cf = 0;
   8551     _flag_k = FK_TEST;
   8552     if (TEST_Z(_flag_a, _flag_b)) goto L_3609C767; /* 0x3609C718: je 0x3609c767 */
   8553 L_3609C71A:
   8554     ecx = esi; /* 0x3609C71A: mov ecx, esi */
   8555     RECOMP_ICALL(MEM32(0x3616FCB0)); /* 0x3609C71C: call dword ptr [0x3616fcb0] */
   8556     RECOMP_FLAGS_IN();
   8557     /* test LO8(eax), LO8(eax) */ /* 0x3609C722: test al, al */
   8558     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8559     _cf = 0;
   8560     _flag_k = FK_NARROW(FK_TEST, 24);
   8561     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609C73C; /* 0x3609C724: jne 0x3609c73c */
   8562 L_3609C726:
   8563     ecx = MEM32(0x3616FC1C); /* 0x3609C726: mov ecx, dword ptr [0x3616fc1c] */
   8564     edx = MEM32(0x3616FC18); /* 0x3609C72C: mov edx, dword ptr [0x3616fc18] */
   8565     eax = MEM32(ebx); /* 0x3609C732: mov eax, dword ptr [ebx] */
   8566     PUSH32(esp, ecx); /* 0x3609C734: push ecx */
   8567     PUSH32(esp, edx); /* 0x3609C735: push edx */
   8568     PUSH32(esp, esi); /* 0x3609C736: push esi */
   8569     ecx = ebx; /* 0x3609C737: mov ecx, ebx */
   8570     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x3609C739: call dword ptr [eax + 0x1c] */
   8571     RECOMP_FLAGS_IN();
   8572 L_3609C73C:
   8573     PUSH32(esp, 0); /* 0x3609C73C: push 0 */
   8574     PUSH32(esp, 0x361C4320u); /* 0x3609C73E: push 0x361c4320 */
   8575     PUSH32(esp, 0x361B2CC0u); /* 0x3609C743: push 0x361b2cc0 */
   8576     PUSH32(esp, 0); /* 0x3609C748: push 0 */
   8577     PUSH32(esp, esi); /* 0x3609C74A: push esi */
   8578     RECOMP_ICALL(0x3615FD86u); /* 0x3609C74B: call 0x3615fd86 */ /* not lifted */
   8579     RECOMP_FLAGS_IN();
   8580     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8581     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8582     esp = esp + 0x14u; /* 0x3609C750: add esp, 0x14 */
   8583     _flag_k = FK_ADD;
   8584     /* test eax, eax */ /* 0x3609C753: test eax, eax */
   8585     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8586     _cf = 0;
   8587     _flag_k = FK_TEST;
   8588     if (TEST_Z(_flag_a, _flag_b)) goto L_3609C767; /* 0x3609C755: je 0x3609c767 */
   8589 L_3609C757:
   8590     PUSH32(esp, 9); /* 0x3609C757: push 9 */
   8591     ecx = ebx + (-0x8C); /* 0x3609C759: lea ecx, [ebx - 0x8c] */
   8592     PUSH32(esp, ecx); /* 0x3609C75F: push ecx */
   8593     ecx = eax; /* 0x3609C760: mov ecx, eax */
   8594     RECOMP_ICALL(0x360A8990u); /* 0x3609C762: call 0x360a8990 */ /* not lifted */
   8595     RECOMP_FLAGS_IN();
   8596 L_3609C767:
   8597     edx = MEM32(ebp + (-0x4)); /* 0x3609C767: mov edx, dword ptr [ebp - 4] */
   8598     eax = MEM32(edx); /* 0x3609C76A: mov eax, dword ptr [edx] */
   8599     ecx = MEM32(ebx + 0xF0); /* 0x3609C76C: mov ecx, dword ptr [ebx + 0xf0] */
   8600     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3609C772: cmp eax, dword ptr [ecx + 4] */
   8601     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8602     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8603     _flag_k = FK_CMP;
   8604     MEM32(ebp + (-0x4)) = eax; /* 0x3609C775: mov dword ptr [ebp - 4], eax */
   8605     RECOMP_BACKEDGE();
   8606     if (CMP_NE(_flag_a, _flag_b)) goto L_3609C6F4; /* 0x3609C778: jne 0x3609c6f4 */
   8607 L_3609C77E:
   8608     edx = MEM32(ebx + (-0x8C)); /* 0x3609C77E: mov edx, dword ptr [ebx - 0x8c] */
   8609     esi = ebx + (-0x8C); /* 0x3609C784: lea esi, [ebx - 0x8c] */
   8610     PUSH32(esp, 2); /* 0x3609C78A: push 2 */
   8611     PUSH32(esp, 0x190u); /* 0x3609C78C: push 0x190 */
   8612     ecx = esi; /* 0x3609C791: mov ecx, esi */
   8613     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3609C793: call dword ptr [edx + 4] */
   8614     RECOMP_FLAGS_IN();
   8615     /* test eax, eax */ /* 0x3609C796: test eax, eax */
   8616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8617     _cf = 0;
   8618     _flag_k = FK_TEST;
   8619     if (TEST_Z(_flag_a, _flag_b)) goto L_3609C83E; /* 0x3609C798: je 0x3609c83e */
   8620 L_3609C79E:
   8621     eax = MEM32(esi); /* 0x3609C79E: mov eax, dword ptr [esi] */
   8622     PUSH32(esp, 2); /* 0x3609C7A0: push 2 */
   8623     PUSH32(esp, 0x190u); /* 0x3609C7A2: push 0x190 */
   8624     ecx = esi; /* 0x3609C7A7: mov ecx, esi */
   8625     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3609C7A9: call dword ptr [eax + 4] */
   8626     RECOMP_FLAGS_IN();
   8627     MEM32(ebp + (-0x4)) = eax; /* 0x3609C7AC: mov dword ptr [ebp - 4], eax */
   8628     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x3609C7AF: fild dword ptr [ebp - 4] */
   8629     _st[0] *= (double)*(float*)ADDR(ebx + 0x118); /* 0x3609C7B2: fmul dword ptr [ebx + 0x118] */
   8630     RECOMP_ICALL(0x3615FD8Cu); /* 0x3609C7B8: call 0x3615fd8c */ /* not lifted */
   8631     RECOMP_FLAGS_IN();
   8632     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3609C7BD: cdq  */
   8633     ecx = 0x168u; /* 0x3609C7BE: mov ecx, 0x168 */
   8634     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3609C7C3: idiv ecx */
   8635       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   8636       else { eax = 0; edx = 0; } }
   8637     MEM32(ebp + (-0x4)) = edx; /* 0x3609C7C5: mov dword ptr [ebp - 4], edx */
   8638     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x3609C7C8: fild dword ptr [ebp - 4] */
   8639     _st[0] *= (double)*(float*)ADDR(0x361708D4); /* 0x3609C7CB: fmul dword ptr [0x361708d4] */
   8640     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3609C7D1: fcom dword ptr [0x3617040c] */
   8641     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3609C7D7: fnstsw ax */
   8642     /* test HI8(eax), 1 */ /* 0x3609C7D9: test ah, 1 */
   8643     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8644     _cf = 0;
   8645     _flag_k = FK_NARROW(FK_TEST, 24);
   8646     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609C7F3; /* 0x3609C7DC: jne 0x3609c7f3 */
   8647 L_3609C7DE:
   8648     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x3609C7DE: fcom qword ptr [0x361708b8] */
   8649     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3609C7E4: fnstsw ax */
   8650     /* test HI8(eax), 1 */ /* 0x3609C7E6: test ah, 1 */
   8651     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8652     _cf = 0;
   8653     _flag_k = FK_NARROW(FK_TEST, 24);
   8654     if (TEST_Z(_flag_a, _flag_b)) goto L_3609C7F3; /* 0x3609C7E9: je 0x3609c7f3 */
   8655 L_3609C7EB:
   8656     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3609C7EB: fmul dword ptr [0x36170464] */
   8657     goto L_3609C814; /* 0x3609C7F1: jmp 0x3609c814 */
   8658 L_3609C7F3:
   8659     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3609C7F3: fmul dword ptr [0x361708b4] */
   8660     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8662     esp = esp - 8; /* 0x3609C7F9: sub esp, 8 */
   8663     _flag_k = FK_CMP;
   8664     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3609C7FC: fst dword ptr [ebp - 4] */
   8665     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3609C7FF: fstp qword ptr [esp] */
   8666     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3609C802: call dword ptr [0x3616f198] */
   8667     RECOMP_FLAGS_IN();
   8668     _st[0] = (double)*(float*)ADDR(ebp + (-0x4)) - _st[0]; /* 0x3609C808: fsubr dword ptr [ebp - 4] */
   8669     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8670     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8671     esp = esp + 8; /* 0x3609C80B: add esp, 8 */
   8672     _flag_k = FK_ADD;
   8673     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x3609C80E: fmul dword ptr [0x361708b0] */
   8674 L_3609C814:
   8675     fp_push(_st[0]); /* 0x3609C814: fld st(0) */
   8676     eax = ebp + (-0x14); /* 0x3609C816: lea eax, [ebp - 0x14] */
   8677     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3609C819: fsin  */
   8678     PUSH32(esp, eax); /* 0x3609C81B: push eax */
   8679     ecx = ebx; /* 0x3609C81C: mov ecx, ebx */
   8680     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x3609C81E: fld dword ptr [0x3617040c] */
   8681     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3609C824: fst dword ptr [ebp - 4] */
   8682     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3609C827: fstp dword ptr [ebp - 0x14] */
   8683     edx = MEM32(ebp + (-0x4)); /* 0x3609C82A: mov edx, dword ptr [ebp - 4] */
   8684     MEM32(ebp + (-0xC)) = edx; /* 0x3609C82D: mov dword ptr [ebp - 0xc], edx */
   8685     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3609C830: fstp dword ptr [ebp - 0x10] */
   8686     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3609C833: fcos  */
   8687     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3609C835: fstp dword ptr [ebp - 8] */
   8688     RECOMP_ICALL(MEM32(0x3616FC68)); /* 0x3609C838: call dword ptr [0x3616fc68] */
   8689     RECOMP_FLAGS_IN();
   8690 L_3609C83E:
   8691     edi = POP32_VAL(esp); /* 0x3609C83E: pop edi */
   8692     esi = POP32_VAL(esp); /* 0x3609C83F: pop esi */
   8693     SET_LO8(eax, 1); /* 0x3609C840: mov al, 1 */
   8694     ebx = POP32_VAL(esp); /* 0x3609C842: pop ebx */
   8695     esp = ebp; /* 0x3609C843: mov esp, ebp */
   8696     ebp = POP32_VAL(esp); /* 0x3609C845: pop ebp */
   8697     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609C846: ret  */
   8698     RECOMP_REGS_OUT();
   8699 }
   8700 
   8701 void sub_36097370(void) {
   8702     int _fpu_cmp = 0;
   8703     uint32_t _cf = 0;
   8704     int _df = 1;
   8705     uint32_t _flag_k = FK_NONE;
   8706     uint32_t _flag_a = 0, _flag_b = 0;
   8707     uint32_t _itail_tgt = 0;
   8708     RECOMP_REGS_LOCALS
   8709     RECOMP_ENTER(0x36097370u);
   8710 
   8711 L_36097370:
   8712     PUSH32(esp, ebp); /* 0x36097370: push ebp */
   8713     ebp = esp; /* 0x36097371: mov ebp, esp */
   8714     PUSH32(esp, 0xFFFFFFFFu); /* 0x36097373: push -1 */
   8715     PUSH32(esp, 0x3616659Bu); /* 0x36097375: push 0x3616659b */
   8716     eax = MEM32(FS_BASE + (0)); /* 0x3609737A: mov eax, dword ptr fs:[0] */
   8717     PUSH32(esp, eax); /* 0x36097380: push eax */
   8718     MEM32(FS_BASE + (0)) = esp; /* 0x36097381: mov dword ptr fs:[0], esp */
   8719     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8721     esp = esp - 8; /* 0x36097388: sub esp, 8 */
   8722     _flag_k = FK_CMP;
   8723     PUSH32(esp, esi); /* 0x3609738B: push esi */
   8724     PUSH32(esp, edi); /* 0x3609738C: push edi */
   8725     esi = ecx; /* 0x3609738D: mov esi, ecx */
   8726     eax = MEM32(esi); /* 0x3609738F: mov eax, dword ptr [esi] */
   8727     PUSH32(esp, 0x32u); /* 0x36097391: push 0x32 */
   8728     PUSH32(esp, 0x12Bu); /* 0x36097393: push 0x12b */
   8729     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36097398: call dword ptr [eax + 0xc] */
   8730     RECOMP_FLAGS_IN();
   8731     edx = MEM32(esi + 0x34); /* 0x3609739B: mov edx, dword ptr [esi + 0x34] */
   8732     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFF7Fu);
   8733     edx = edx & 0xFFFFFF7Fu; /* 0x3609739E: and edx, 0xffffff7f */
   8734     _cf = 0;
   8735     _flag_k = FK_TEST;
   8736     eax = edx; /* 0x360973A4: mov eax, edx */
   8737     PUSH32(esp, eax); /* 0x360973A6: push eax */
   8738     MEM32(esi + 0x34) = edx; /* 0x360973A7: mov dword ptr [esi + 0x34], edx */
   8739     edx = MEM32(esi); /* 0x360973AA: mov edx, dword ptr [esi] */
   8740     PUSH32(esp, 0); /* 0x360973AC: push 0 */
   8741     ecx = esi; /* 0x360973AE: mov ecx, esi */
   8742     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360973B0: call dword ptr [edx + 8] */
   8743     RECOMP_FLAGS_IN();
   8744     edx = MEM32(esi + 0x34); /* 0x360973B3: mov edx, dword ptr [esi + 0x34] */
   8745     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFBFu);
   8746     edx = edx & 0xFFFFFFBFu; /* 0x360973B6: and edx, 0xffffffbf */
   8747     _cf = 0;
   8748     _flag_k = FK_TEST;
   8749     eax = edx; /* 0x360973B9: mov eax, edx */
   8750     PUSH32(esp, eax); /* 0x360973BB: push eax */
   8751     MEM32(esi + 0x34) = edx; /* 0x360973BC: mov dword ptr [esi + 0x34], edx */
   8752     edx = MEM32(esi); /* 0x360973BF: mov edx, dword ptr [esi] */
   8753     PUSH32(esp, 0); /* 0x360973C1: push 0 */
   8754     ecx = esi; /* 0x360973C3: mov ecx, esi */
   8755     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360973C5: call dword ptr [edx + 8] */
   8756     RECOMP_FLAGS_IN();
   8757     eax = MEM32(esi); /* 0x360973C8: mov eax, dword ptr [esi] */
   8758     PUSH32(esp, 0); /* 0x360973CA: push 0 */
   8759     PUSH32(esp, 0x102u); /* 0x360973CC: push 0x102 */
   8760     ecx = esi; /* 0x360973D1: mov ecx, esi */
   8761     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360973D3: call dword ptr [eax + 0xc] */
   8762     RECOMP_FLAGS_IN();
   8763     PUSH32(esp, 0xCu); /* 0x360973D6: push 0xc */
   8764     RECOMP_ICALL(0x3615FD6Au); /* 0x360973D8: call 0x3615fd6a */ /* not lifted */
   8765     RECOMP_FLAGS_IN();
   8766     edi = eax; /* 0x360973DD: mov edi, eax */
   8767     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8768     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8769     esp = esp + 4; /* 0x360973DF: add esp, 4 */
   8770     _flag_k = FK_ADD;
   8771     MEM32(ebp + (-0x14)) = edi; /* 0x360973E2: mov dword ptr [ebp - 0x14], edi */
   8772     /* test edi, edi */ /* 0x360973E5: test edi, edi */
   8773     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8774     _cf = 0;
   8775     _flag_k = FK_TEST;
   8776     MEM32(ebp + (-0x4)) = 0; /* 0x360973E7: mov dword ptr [ebp - 4], 0 */
   8777     if (TEST_Z(_flag_a, _flag_b)) goto L_36097424; /* 0x360973EE: je 0x36097424 */
   8778 L_360973F0:
   8779     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x360973F0: mov cl, byte ptr [ebp - 0xd] */
   8780     PUSH32(esp, 0x10u); /* 0x360973F3: push 0x10 */
   8781     MEM8(edi) = (uint8_t)(LO8(ecx)); /* 0x360973F5: mov byte ptr [edi], cl */
   8782     RECOMP_ICALL(0x3615FD6Au); /* 0x360973F7: call 0x3615fd6a */ /* not lifted */
   8783     RECOMP_FLAGS_IN();
   8784     MEM32(eax) = eax; /* 0x360973FC: mov dword ptr [eax], eax */
   8785     MEM32(eax + 0x4) = eax; /* 0x360973FE: mov dword ptr [eax + 4], eax */
   8786     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8787     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8788     esp = esp + 4; /* 0x36097401: add esp, 4 */
   8789     _flag_k = FK_ADD;
   8790     MEM32(edi + 0x4) = eax; /* 0x36097404: mov dword ptr [edi + 4], eax */
   8791     MEM32(edi + 0x8) = 0; /* 0x36097407: mov dword ptr [edi + 8], 0 */
   8792     MEM32(esi + 0x1A8) = edi; /* 0x3609740E: mov dword ptr [esi + 0x1a8], edi */
   8793     edi = POP32_VAL(esp); /* 0x36097414: pop edi */
   8794     esi = POP32_VAL(esp); /* 0x36097415: pop esi */
   8795     ecx = MEM32(ebp + (-0xC)); /* 0x36097416: mov ecx, dword ptr [ebp - 0xc] */
   8796     MEM32(FS_BASE + (0)) = ecx; /* 0x36097419: mov dword ptr fs:[0], ecx */
   8797     esp = ebp; /* 0x36097420: mov esp, ebp */
   8798     ebp = POP32_VAL(esp); /* 0x36097422: pop ebp */
   8799     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36097423: ret  */
   8800 L_36097424:
   8801     ecx = MEM32(ebp + (-0xC)); /* 0x36097424: mov ecx, dword ptr [ebp - 0xc] */
   8802     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8803     eax = 0; /* 0x36097427: xor eax, eax */
   8804     _cf = 0;
   8805     _flag_k = FK_TEST;
   8806     MEM32(esi + 0x1A8) = eax; /* 0x36097429: mov dword ptr [esi + 0x1a8], eax */
   8807     edi = POP32_VAL(esp); /* 0x3609742F: pop edi */
   8808     esi = POP32_VAL(esp); /* 0x36097430: pop esi */
   8809     MEM32(FS_BASE + (0)) = ecx; /* 0x36097431: mov dword ptr fs:[0], ecx */
   8810     esp = ebp; /* 0x36097438: mov esp, ebp */
   8811     ebp = POP32_VAL(esp); /* 0x3609743A: pop ebp */
   8812     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609743B: ret  */
   8813     RECOMP_REGS_OUT();
   8814 }
   8815 
   8816 void sub_36097440(void) {
   8817     int _fpu_cmp = 0;
   8818     uint32_t _cf = 0;
   8819     int _df = 1;
   8820     uint32_t _flag_k = FK_NONE;
   8821     uint32_t _flag_a = 0, _flag_b = 0;
   8822     uint32_t _itail_tgt = 0;
   8823     RECOMP_REGS_LOCALS
   8824     RECOMP_ENTER(0x36097440u);
   8825 
   8826 L_36097440:
   8827     PUSH32(esp, ebp); /* 0x36097440: push ebp */
   8828     ebp = esp; /* 0x36097441: mov ebp, esp */
   8829     PUSH32(esp, ecx); /* 0x36097443: push ecx */
   8830     PUSH32(esp, ebx); /* 0x36097444: push ebx */
   8831     ebx = ecx; /* 0x36097445: mov ebx, ecx */
   8832     PUSH32(esp, edi); /* 0x36097447: push edi */
   8833     edi = MEM32(ebx + 0x1A8); /* 0x36097448: mov edi, dword ptr [ebx + 0x1a8] */
   8834     /* test edi, edi */ /* 0x3609744E: test edi, edi */
   8835     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8836     _cf = 0;
   8837     _flag_k = FK_TEST;
   8838     MEM32(ebx) = 0x361730D0u; /* 0x36097450: mov dword ptr [ebx], 0x361730d0 */
   8839     MEM32(ebx + 0x8) = 0x361730C0u; /* 0x36097456: mov dword ptr [ebx + 8], 0x361730c0 */
   8840     MEM32(ebx + 0x40) = 0x361730B8u; /* 0x3609745D: mov dword ptr [ebx + 0x40], 0x361730b8 */
   8841     MEM32(ebx + 0x4C) = 0x361730B0u; /* 0x36097464: mov dword ptr [ebx + 0x4c], 0x361730b0 */
   8842     MEM32(ebx + 0x80) = 0x3617309Cu; /* 0x3609746B: mov dword ptr [ebx + 0x80], 0x3617309c */
   8843     MEM32(ebx + 0x8C) = 0x36172FF8u; /* 0x36097475: mov dword ptr [ebx + 0x8c], 0x36172ff8 */
   8844     MEM32(ebx + 0xA8) = 0x36172FE0u; /* 0x3609747F: mov dword ptr [ebx + 0xa8], 0x36172fe0 */
   8845     MEM32(ebx + 0xAC) = 0x36172FD8u; /* 0x36097489: mov dword ptr [ebx + 0xac], 0x36172fd8 */
   8846     if (TEST_Z(_flag_a, _flag_b)) goto L_360974E7; /* 0x36097493: je 0x360974e7 */
   8847 L_36097495:
   8848     eax = MEM32(edi + 0x4); /* 0x36097495: mov eax, dword ptr [edi + 4] */
   8849     PUSH32(esp, esi); /* 0x36097498: push esi */
   8850     esi = MEM32(eax); /* 0x36097499: mov esi, dword ptr [eax] */
   8851     /* cmp esi, eax */ /* 0x3609749B: cmp esi, eax */
   8852     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   8853     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8854     _flag_k = FK_CMP;
   8855     MEM32(ebp + (-0x4)) = eax; /* 0x3609749D: mov dword ptr [ebp - 4], eax */
   8856     if (CMP_EQ(_flag_a, _flag_b)) goto L_360974CC; /* 0x360974A0: je 0x360974cc */
   8857 L_360974A2:
   8858     eax = esi; /* 0x360974A2: mov eax, esi */
   8859     ecx = MEM32(eax + 0x4); /* 0x360974A4: mov ecx, dword ptr [eax + 4] */
   8860     edx = MEM32(eax); /* 0x360974A7: mov edx, dword ptr [eax] */
   8861     esi = MEM32(esi); /* 0x360974A9: mov esi, dword ptr [esi] */
   8862     MEM32(ecx) = edx; /* 0x360974AB: mov dword ptr [ecx], edx */
   8863     ecx = MEM32(eax); /* 0x360974AD: mov ecx, dword ptr [eax] */
   8864     edx = MEM32(eax + 0x4); /* 0x360974AF: mov edx, dword ptr [eax + 4] */
   8865     PUSH32(esp, eax); /* 0x360974B2: push eax */
   8866     MEM32(ecx + 0x4) = edx; /* 0x360974B3: mov dword ptr [ecx + 4], edx */
   8867     RECOMP_ICALL(0x3615FCC4u); /* 0x360974B6: call 0x3615fcc4 */ /* not lifted */
   8868     RECOMP_FLAGS_IN();
   8869     ecx = MEM32(edi + 0x8); /* 0x360974BB: mov ecx, dword ptr [edi + 8] */
   8870     eax = MEM32(ebp + (-0x4)); /* 0x360974BE: mov eax, dword ptr [ebp - 4] */
   8871     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8873     esp = esp + 4; /* 0x360974C1: add esp, 4 */
   8874     _flag_k = FK_ADD;
   8875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8876     ecx = ecx - 1; /* 0x360974C4: dec ecx */
   8877     _flag_k = FK_DEC;
   8878     /* cmp esi, eax */ /* 0x360974C5: cmp esi, eax */
   8879     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   8880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8881     _flag_k = FK_CMP;
   8882     MEM32(edi + 0x8) = ecx; /* 0x360974C7: mov dword ptr [edi + 8], ecx */
   8883     RECOMP_BACKEDGE();
   8884     if (CMP_NE(_flag_a, _flag_b)) goto L_360974A2; /* 0x360974CA: jne 0x360974a2 */
   8885 L_360974CC:
   8886     eax = MEM32(edi + 0x4); /* 0x360974CC: mov eax, dword ptr [edi + 4] */
   8887     PUSH32(esp, eax); /* 0x360974CF: push eax */
   8888     RECOMP_ICALL(0x3615FCC4u); /* 0x360974D0: call 0x3615fcc4 */ /* not lifted */
   8889     RECOMP_FLAGS_IN();
   8890     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8891     eax = 0; /* 0x360974D5: xor eax, eax */
   8892     _cf = 0;
   8893     _flag_k = FK_TEST;
   8894     PUSH32(esp, edi); /* 0x360974D7: push edi */
   8895     MEM32(edi + 0x4) = eax; /* 0x360974D8: mov dword ptr [edi + 4], eax */
   8896     MEM32(edi + 0x8) = eax; /* 0x360974DB: mov dword ptr [edi + 8], eax */
   8897     RECOMP_ICALL(0x3615FCC4u); /* 0x360974DE: call 0x3615fcc4 */ /* not lifted */
   8898     RECOMP_FLAGS_IN();
   8899     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8900     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8901     esp = esp + 8; /* 0x360974E3: add esp, 8 */
   8902     _flag_k = FK_ADD;
   8903     esi = POP32_VAL(esp); /* 0x360974E6: pop esi */
   8904 L_360974E7:
   8905     ecx = ebx; /* 0x360974E7: mov ecx, ebx */
   8906     RECOMP_ICALL(0x3609CC20u); /* 0x360974E9: call 0x3609cc20 */ /* not lifted */
   8907     RECOMP_FLAGS_IN();
   8908     edi = POP32_VAL(esp); /* 0x360974EE: pop edi */
   8909     ebx = POP32_VAL(esp); /* 0x360974EF: pop ebx */
   8910     esp = ebp; /* 0x360974F0: mov esp, ebp */
   8911     ebp = POP32_VAL(esp); /* 0x360974F2: pop ebp */
   8912     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360974F3: ret  */
   8913     RECOMP_REGS_OUT();
   8914 }
   8915 
   8916 void sub_36097500(void) {
   8917     int _fpu_cmp = 0;
   8918     uint32_t _cf = 0;
   8919     int _df = 1;
   8920     uint32_t _flag_k = FK_NONE;
   8921     uint32_t _flag_a = 0, _flag_b = 0;
   8922     uint32_t _itail_tgt = 0;
   8923     RECOMP_REGS_LOCALS
   8924     RECOMP_ENTER(0x36097500u);
   8925 
   8926 L_36097500:
   8927     PUSH32(esp, ebp); /* 0x36097500: push ebp */
   8928     ebp = esp; /* 0x36097501: mov ebp, esp */
   8929     PUSH32(esp, esi); /* 0x36097503: push esi */
   8930     PUSH32(esp, edi); /* 0x36097504: push edi */
   8931     edi = MEM32(ebp + 0x8); /* 0x36097505: mov edi, dword ptr [ebp + 8] */
   8932     esi = ecx; /* 0x36097508: mov esi, ecx */
   8933     eax = MEM32(esi); /* 0x3609750A: mov eax, dword ptr [esi] */
   8934     ecx = edi + 0x4; /* 0x3609750C: lea ecx, [edi + 4] */
   8935     PUSH32(esp, ecx); /* 0x3609750F: push ecx */
   8936     ecx = esi; /* 0x36097510: mov ecx, esi */
   8937     RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x36097512: call dword ptr [eax + 0x24] */
   8938     RECOMP_FLAGS_IN();
   8939     edx = MEM32(esi); /* 0x36097515: mov edx, dword ptr [esi] */
   8940     ecx = esi; /* 0x36097517: mov ecx, esi */
   8941     RECOMP_ICALL(MEM32(edx + 0x128)); /* 0x36097519: call dword ptr [edx + 0x128] */
   8942     RECOMP_FLAGS_IN();
   8943     /* test LO8(eax), LO8(eax) */ /* 0x3609751F: test al, al */
   8944     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8945     _cf = 0;
   8946     _flag_k = FK_NARROW(FK_TEST, 24);
   8947     if (TEST_Z(_flag_a, _flag_b)) goto L_3609754E; /* 0x36097521: je 0x3609754e */
   8948 L_36097523:
   8949     eax = MEM32(esi); /* 0x36097523: mov eax, dword ptr [esi] */
   8950     PUSH32(esp, 2); /* 0x36097525: push 2 */
   8951     PUSH32(esp, 0x102u); /* 0x36097527: push 0x102 */
   8952     ecx = esi; /* 0x3609752C: mov ecx, esi */
   8953     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3609752E: call dword ptr [eax + 4] */
   8954     RECOMP_FLAGS_IN();
   8955     /* test LO8(eax), 0x20u */ /* 0x36097531: test al, 0x20 */
   8956     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x20u) << 24;
   8957     _cf = 0;
   8958     _flag_k = FK_NARROW(FK_TEST, 24);
   8959     if (TEST_Z(_flag_a, _flag_b)) goto L_36097544; /* 0x36097533: je 0x36097544 */
   8960 L_36097535:
   8961     edx = MEM32(esi); /* 0x36097535: mov edx, dword ptr [esi] */
   8962     PUSH32(esp, edi); /* 0x36097537: push edi */
   8963     ecx = esi; /* 0x36097538: mov ecx, esi */
   8964     RECOMP_ICALL(MEM32(edx + 0x12C)); /* 0x3609753A: call dword ptr [edx + 0x12c] */
   8965     RECOMP_FLAGS_IN();
   8966     /* test LO8(eax), LO8(eax) */ /* 0x36097540: test al, al */
   8967     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8968     _cf = 0;
   8969     _flag_k = FK_NARROW(FK_TEST, 24);
   8970     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609754E; /* 0x36097542: jne 0x3609754e */
   8971 L_36097544:
   8972     eax = MEM32(esi); /* 0x36097544: mov eax, dword ptr [esi] */
   8973     ecx = esi; /* 0x36097546: mov ecx, esi */
   8974     RECOMP_ICALL(MEM32(eax + 0x124)); /* 0x36097548: call dword ptr [eax + 0x124] */
   8975     RECOMP_FLAGS_IN();
   8976 L_3609754E:
   8977     PUSH32(esp, edi); /* 0x3609754E: push edi */
   8978     ecx = esi; /* 0x3609754F: mov ecx, esi */
   8979     RECOMP_ICALL(0x3609FC80u); /* 0x36097551: call 0x3609fc80 */ /* not lifted */
   8980     RECOMP_FLAGS_IN();
   8981     edi = POP32_VAL(esp); /* 0x36097556: pop edi */
   8982     esi = POP32_VAL(esp); /* 0x36097557: pop esi */
   8983     ebp = POP32_VAL(esp); /* 0x36097558: pop ebp */
   8984     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097559: ret 4 */
   8985     RECOMP_REGS_OUT();
   8986 }
   8987 
   8988 void sub_36097560(void) {
   8989     int _fpu_cmp = 0;
   8990     uint32_t _cf = 0;
   8991     int _df = 1;
   8992     uint32_t _flag_k = FK_NONE;
   8993     uint32_t _flag_a = 0, _flag_b = 0;
   8994     uint32_t _itail_tgt = 0;
   8995     RECOMP_REGS_LOCALS
   8996     RECOMP_ENTER(0x36097560u);
   8997 
   8998 L_36097560:
   8999     PUSH32(esp, ebp); /* 0x36097560: push ebp */
   9000     ebp = esp; /* 0x36097561: mov ebp, esp */
   9001     PUSH32(esp, esi); /* 0x36097563: push esi */
   9002     PUSH32(esp, edi); /* 0x36097564: push edi */
   9003     esi = ecx; /* 0x36097565: mov esi, ecx */
   9004     eax = MEM32(esi); /* 0x36097567: mov eax, dword ptr [esi] */
   9005     PUSH32(esp, 2); /* 0x36097569: push 2 */
   9006     PUSH32(esp, 0x102u); /* 0x3609756B: push 0x102 */
   9007     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36097570: call dword ptr [eax + 4] */
   9008     RECOMP_FLAGS_IN();
   9009     /* test LO8(eax), 1 */ /* 0x36097573: test al, 1 */
   9010     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9011     _cf = 0;
   9012     _flag_k = FK_NARROW(FK_TEST, 24);
   9013     edi = MEM32(ebp + 0x8); /* 0x36097575: mov edi, dword ptr [ebp + 8] */
   9014     if (TEST_Z(_flag_a, _flag_b)) goto L_360975A3; /* 0x36097578: je 0x360975a3 */
   9015 L_3609757A:
   9016     /* test edi, edi */ /* 0x3609757A: test edi, edi */
   9017     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9018     _cf = 0;
   9019     _flag_k = FK_TEST;
   9020     if (TEST_Z(_flag_a, _flag_b)) goto L_36097586; /* 0x3609757C: je 0x36097586 */
   9021 L_3609757E:
   9022     eax = edi + 0xE4; /* 0x3609757E: lea eax, [edi + 0xe4] */
   9023     goto L_36097588; /* 0x36097584: jmp 0x36097588 */
   9024 L_36097586:
   9025     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9026     eax = 0; /* 0x36097586: xor eax, eax */
   9027     _cf = 0;
   9028     _flag_k = FK_TEST;
   9029 L_36097588:
   9030     PUSH32(esp, 0); /* 0x36097588: push 0 */
   9031     PUSH32(esp, eax); /* 0x3609758A: push eax */
   9032     PUSH32(esp, 3); /* 0x3609758B: push 3 */
   9033     ecx = esi; /* 0x3609758D: mov ecx, esi */
   9034     RECOMP_ICALL(0x3608FC40u); /* 0x3609758F: call 0x3608fc40 */ /* not lifted */
   9035     RECOMP_FLAGS_IN();
   9036     /* test LO8(eax), LO8(eax) */ /* 0x36097594: test al, al */
   9037     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9038     _cf = 0;
   9039     _flag_k = FK_NARROW(FK_TEST, 24);
   9040     if (TEST_Z(_flag_a, _flag_b)) goto L_360975A3; /* 0x36097596: je 0x360975a3 */
   9041 L_36097598:
   9042     edi = POP32_VAL(esp); /* 0x36097598: pop edi */
   9043     eax = 2; /* 0x36097599: mov eax, 2 */
   9044     esi = POP32_VAL(esp); /* 0x3609759E: pop esi */
   9045     ebp = POP32_VAL(esp); /* 0x3609759F: pop ebp */
   9046     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360975A0: ret 4 */
   9047 L_360975A3:
   9048     edx = MEM32(esi); /* 0x360975A3: mov edx, dword ptr [esi] */
   9049     ecx = esi; /* 0x360975A5: mov ecx, esi */
   9050     RECOMP_ICALL(MEM32(edx + 0x128)); /* 0x360975A7: call dword ptr [edx + 0x128] */
   9051     RECOMP_FLAGS_IN();
   9052     /* test LO8(eax), LO8(eax) */ /* 0x360975AD: test al, al */
   9053     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9054     _cf = 0;
   9055     _flag_k = FK_NARROW(FK_TEST, 24);
   9056     if (TEST_Z(_flag_a, _flag_b)) goto L_360975E5; /* 0x360975AF: je 0x360975e5 */
   9057 L_360975B1:
   9058     eax = MEM32(esi); /* 0x360975B1: mov eax, dword ptr [esi] */
   9059     PUSH32(esp, edi); /* 0x360975B3: push edi */
   9060     ecx = esi; /* 0x360975B4: mov ecx, esi */
   9061     RECOMP_ICALL(MEM32(eax + 0x12C)); /* 0x360975B6: call dword ptr [eax + 0x12c] */
   9062     RECOMP_FLAGS_IN();
   9063     /* test LO8(eax), LO8(eax) */ /* 0x360975BC: test al, al */
   9064     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9065     _cf = 0;
   9066     _flag_k = FK_NARROW(FK_TEST, 24);
   9067     if (TEST_NZ(_flag_a, _flag_b)) goto L_360975E5; /* 0x360975BE: jne 0x360975e5 */
   9068 L_360975C0:
   9069     SET_LO8(eax, MEM8(edi + 0x128)); /* 0x360975C0: mov al, byte ptr [edi + 0x128] */
   9070     /* test LO8(eax), LO8(eax) */ /* 0x360975C6: test al, al */
   9071     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9072     _cf = 0;
   9073     _flag_k = FK_NARROW(FK_TEST, 24);
   9074     if (TEST_Z(_flag_a, _flag_b)) goto L_360975DD; /* 0x360975C8: je 0x360975dd */
   9075 L_360975CA:
   9076     PUSH32(esp, 0); /* 0x360975CA: push 0 */
   9077     PUSH32(esp, 0x361C5F18u); /* 0x360975CC: push 0x361c5f18 */
   9078     RECOMP_ICALL(0x3601C590u); /* 0x360975D1: call 0x3601c590 */ /* not lifted */
   9079     RECOMP_FLAGS_IN();
   9080     ecx = eax; /* 0x360975D6: mov ecx, eax */
   9081     RECOMP_ICALL(0x3601C8C0u); /* 0x360975D8: call 0x3601c8c0 */ /* not lifted */
   9082     RECOMP_FLAGS_IN();
   9083 L_360975DD:
   9084     edi = POP32_VAL(esp); /* 0x360975DD: pop edi */
   9085     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9086     eax = 0; /* 0x360975DE: xor eax, eax */
   9087     _cf = 0;
   9088     _flag_k = FK_TEST;
   9089     esi = POP32_VAL(esp); /* 0x360975E0: pop esi */
   9090     ebp = POP32_VAL(esp); /* 0x360975E1: pop ebp */
   9091     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360975E2: ret 4 */
   9092 L_360975E5:
   9093     PUSH32(esp, edi); /* 0x360975E5: push edi */
   9094     ecx = esi; /* 0x360975E6: mov ecx, esi */
   9095     RECOMP_ICALL(0x3609FCD0u); /* 0x360975E8: call 0x3609fcd0 */ /* not lifted */
   9096     RECOMP_FLAGS_IN();
   9097     edi = POP32_VAL(esp); /* 0x360975ED: pop edi */
   9098     esi = POP32_VAL(esp); /* 0x360975EE: pop esi */
   9099     ebp = POP32_VAL(esp); /* 0x360975EF: pop ebp */
   9100     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360975F0: ret 4 */
   9101     RECOMP_REGS_OUT();
   9102 }
   9103 
   9104 void sub_36097600(void) {
   9105     int _fpu_cmp = 0;
   9106     uint32_t _cf = 0;
   9107     int _df = 1;
   9108     uint32_t _flag_k = FK_NONE;
   9109     uint32_t _flag_a = 0, _flag_b = 0;
   9110     uint32_t _itail_tgt = 0;
   9111     RECOMP_REGS_LOCALS
   9112     RECOMP_ENTER(0x36097600u);
   9113 
   9114 L_36097600:
   9115     PUSH32(esp, ebp); /* 0x36097600: push ebp */
   9116     ebp = esp; /* 0x36097601: mov ebp, esp */
   9117     PUSH32(esp, ebx); /* 0x36097603: push ebx */
   9118     PUSH32(esp, esi); /* 0x36097604: push esi */
   9119     PUSH32(esp, edi); /* 0x36097605: push edi */
   9120     edi = ecx; /* 0x36097606: mov edi, ecx */
   9121     eax = MEM32(edi); /* 0x36097608: mov eax, dword ptr [edi] */
   9122     PUSH32(esp, 2); /* 0x3609760A: push 2 */
   9123     PUSH32(esp, 0x102u); /* 0x3609760C: push 0x102 */
   9124     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36097611: call dword ptr [eax + 4] */
   9125     RECOMP_FLAGS_IN();
   9126     /* test LO8(eax), 1 */ /* 0x36097614: test al, 1 */
   9127     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9128     _cf = 0;
   9129     _flag_k = FK_NARROW(FK_TEST, 24);
   9130     ebx = MEM32(ebp + 0x8); /* 0x36097616: mov ebx, dword ptr [ebp + 8] */
   9131     if (TEST_Z(_flag_a, _flag_b)) goto L_36097642; /* 0x36097619: je 0x36097642 */
   9132 L_3609761B:
   9133     /* test ebx, ebx */ /* 0x3609761B: test ebx, ebx */
   9134     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   9135     _cf = 0;
   9136     _flag_k = FK_TEST;
   9137     if (TEST_Z(_flag_a, _flag_b)) goto L_36097627; /* 0x3609761D: je 0x36097627 */
   9138 L_3609761F:
   9139     eax = ebx + 0xE4; /* 0x3609761F: lea eax, [ebx + 0xe4] */
   9140     goto L_36097629; /* 0x36097625: jmp 0x36097629 */
   9141 L_36097627:
   9142     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9143     eax = 0; /* 0x36097627: xor eax, eax */
   9144     _cf = 0;
   9145     _flag_k = FK_TEST;
   9146 L_36097629:
   9147     PUSH32(esp, 0); /* 0x36097629: push 0 */
   9148     PUSH32(esp, eax); /* 0x3609762B: push eax */
   9149     PUSH32(esp, 3); /* 0x3609762C: push 3 */
   9150     ecx = edi; /* 0x3609762E: mov ecx, edi */
   9151     RECOMP_ICALL(0x3608FC40u); /* 0x36097630: call 0x3608fc40 */ /* not lifted */
   9152     RECOMP_FLAGS_IN();
   9153     /* test LO8(eax), LO8(eax) */ /* 0x36097635: test al, al */
   9154     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9155     _cf = 0;
   9156     _flag_k = FK_NARROW(FK_TEST, 24);
   9157     if (TEST_Z(_flag_a, _flag_b)) goto L_36097642; /* 0x36097637: je 0x36097642 */
   9158 L_36097639:
   9159     edi = POP32_VAL(esp); /* 0x36097639: pop edi */
   9160     esi = POP32_VAL(esp); /* 0x3609763A: pop esi */
   9161     SET_LO8(eax, 2); /* 0x3609763B: mov al, 2 */
   9162     ebx = POP32_VAL(esp); /* 0x3609763D: pop ebx */
   9163     ebp = POP32_VAL(esp); /* 0x3609763E: pop ebp */
   9164     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609763F: ret 4 */
   9165 L_36097642:
   9166     eax = MEM32(edi + 0x1A8); /* 0x36097642: mov eax, dword ptr [edi + 0x1a8] */
   9167     ecx = MEM32(eax + 0x8); /* 0x36097648: mov ecx, dword ptr [eax + 8] */
   9168     /* test ecx, ecx */ /* 0x3609764B: test ecx, ecx */
   9169     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9170     _cf = 0;
   9171     _flag_k = FK_TEST;
   9172     if (TEST_Z(_flag_a, _flag_b)) goto L_360976B7; /* 0x3609764D: je 0x360976b7 */
   9173 L_3609764F:
   9174     eax = MEM32(eax + 0x4); /* 0x3609764F: mov eax, dword ptr [eax + 4] */
   9175     esi = MEM32(eax); /* 0x36097652: mov esi, dword ptr [eax] */
   9176     /* cmp esi, eax */ /* 0x36097654: cmp esi, eax */
   9177     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   9178     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9179     _flag_k = FK_CMP;
   9180     if (CMP_EQ(_flag_a, _flag_b)) goto L_360976B7; /* 0x36097656: je 0x360976b7 */
   9181 L_36097658:
   9182     ecx = MEM32(ebx + 0x8); /* 0x36097658: mov ecx, dword ptr [ebx + 8] */
   9183     /* cmp ecx, MEM32(esi + 0xC) */ /* 0x3609765B: cmp ecx, dword ptr [esi + 0xc] */
   9184     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   9185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9186     _flag_k = FK_CMP;
   9187     if (CMP_NE(_flag_a, _flag_b)) goto L_36097668; /* 0x3609765E: jne 0x36097668 */
   9188 L_36097660:
   9189     edx = MEM32(ebx + 0x4); /* 0x36097660: mov edx, dword ptr [ebx + 4] */
   9190     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36097663: cmp edx, dword ptr [esi + 8] */
   9191     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9193     _flag_k = FK_CMP;
   9194     if (CMP_EQ(_flag_a, _flag_b)) goto L_360976AE; /* 0x36097666: je 0x360976ae */
   9195 L_36097668:
   9196     eax = MEM32(esi + 0xC); /* 0x36097668: mov eax, dword ptr [esi + 0xc] */
   9197     ecx = MEM32(ebx + 0x150); /* 0x3609766B: mov ecx, dword ptr [ebx + 0x150] */
   9198     PUSH32(esp, eax); /* 0x36097671: push eax */
   9199     RECOMP_ICALL(0x36061690u); /* 0x36097672: call 0x36061690 */ /* not lifted */
   9200     RECOMP_FLAGS_IN();
   9201     /* test eax, eax */ /* 0x36097677: test eax, eax */
   9202     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9203     _cf = 0;
   9204     _flag_k = FK_TEST;
   9205     if (TEST_NZ(_flag_a, _flag_b)) goto L_360976AE; /* 0x36097679: jne 0x360976ae */
   9206 L_3609767B:
   9207     eax = MEM32(ebx + 0x150); /* 0x3609767B: mov eax, dword ptr [ebx + 0x150] */
   9208     edx = MEM32(edi); /* 0x36097681: mov edx, dword ptr [edi] */
   9209     PUSH32(esp, 2); /* 0x36097683: push 2 */
   9210     PUSH32(esp, 0xBCu); /* 0x36097685: push 0xbc */
   9211     ecx = edi; /* 0x3609768A: mov ecx, edi */
   9212     MEM32(ebp + 0x8) = eax; /* 0x3609768C: mov dword ptr [ebp + 8], eax */
   9213     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3609768F: call dword ptr [edx + 4] */
   9214     RECOMP_FLAGS_IN();
   9215     ecx = MEM32(ebp + 0x8); /* 0x36097692: mov ecx, dword ptr [ebp + 8] */
   9216     PUSH32(esp, eax); /* 0x36097695: push eax */
   9217     RECOMP_ICALL(0x36061690u); /* 0x36097696: call 0x36061690 */ /* not lifted */
   9218     RECOMP_FLAGS_IN();
   9219     /* test eax, eax */ /* 0x3609769B: test eax, eax */
   9220     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9221     _cf = 0;
   9222     _flag_k = FK_TEST;
   9223     if (TEST_NZ(_flag_a, _flag_b)) goto L_360976AE; /* 0x3609769D: jne 0x360976ae */
   9224 L_3609769F:
   9225     eax = MEM32(edi + 0x1A8); /* 0x3609769F: mov eax, dword ptr [edi + 0x1a8] */
   9226     esi = MEM32(esi); /* 0x360976A5: mov esi, dword ptr [esi] */
   9227     /* cmp esi, MEM32(eax + 0x4) */ /* 0x360976A7: cmp esi, dword ptr [eax + 4] */
   9228     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   9229     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9230     _flag_k = FK_CMP;
   9231     if (CMP_EQ(_flag_a, _flag_b)) goto L_360976B7; /* 0x360976AA: je 0x360976b7 */
   9232 L_360976AC:
   9233     RECOMP_BACKEDGE();
   9234     goto L_36097658; /* 0x360976AC: jmp 0x36097658 */
   9235 L_360976AE:
   9236     edi = POP32_VAL(esp); /* 0x360976AE: pop edi */
   9237     esi = POP32_VAL(esp); /* 0x360976AF: pop esi */
   9238     SET_LO8(eax, 1); /* 0x360976B0: mov al, 1 */
   9239     ebx = POP32_VAL(esp); /* 0x360976B2: pop ebx */
   9240     ebp = POP32_VAL(esp); /* 0x360976B3: pop ebp */
   9241     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360976B4: ret 4 */
   9242 L_360976B7:
   9243     edi = POP32_VAL(esp); /* 0x360976B7: pop edi */
   9244     esi = POP32_VAL(esp); /* 0x360976B8: pop esi */
   9245     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   9246     SET_LO8(eax, 0); /* 0x360976B9: xor al, al */
   9247     _cf = 0;
   9248     _flag_k = FK_NARROW(FK_TEST, 24);
   9249     ebx = POP32_VAL(esp); /* 0x360976BB: pop ebx */
   9250     ebp = POP32_VAL(esp); /* 0x360976BC: pop ebp */
   9251     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360976BD: ret 4 */
   9252     RECOMP_REGS_OUT();
   9253 }
   9254 
   9255 void sub_360976C0(void) {
   9256     int _fpu_cmp = 0;
   9257     uint32_t _cf = 0;
   9258     int _df = 1;
   9259     uint32_t _flag_k = FK_NONE;
   9260     uint32_t _flag_a = 0, _flag_b = 0;
   9261     uint32_t _itail_tgt = 0;
   9262     RECOMP_REGS_LOCALS
   9263     RECOMP_ENTER(0x360976C0u);
   9264 
   9265 L_360976C0:
   9266     PUSH32(esp, ebp); /* 0x360976C0: push ebp */
   9267     ebp = esp; /* 0x360976C1: mov ebp, esp */
   9268     eax = MEM32(ebp + 0xC); /* 0x360976C3: mov eax, dword ptr [ebp + 0xc] */
   9269     edx = MEM32(ebp + 0x8); /* 0x360976C6: mov edx, dword ptr [ebp + 8] */
   9270     PUSH32(esp, eax); /* 0x360976C9: push eax */
   9271     PUSH32(esp, edx); /* 0x360976CA: push edx */
   9272     RECOMP_ICALL(0x3609F9C0u); /* 0x360976CB: call 0x3609f9c0 */ /* not lifted */
   9273     RECOMP_FLAGS_IN();
   9274     ebp = POP32_VAL(esp); /* 0x360976D0: pop ebp */
   9275     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360976D1: ret 8 */
   9276     RECOMP_REGS_OUT();
   9277 }
   9278 
   9279 void sub_360976E0(void) {
   9280     int _fpu_cmp = 0;
   9281     uint32_t _cf = 0;
   9282     int _df = 1;
   9283     uint32_t _flag_k = FK_NONE;
   9284     uint32_t _flag_a = 0, _flag_b = 0;
   9285     uint32_t _itail_tgt = 0;
   9286     RECOMP_REGS_LOCALS
   9287     RECOMP_ENTER(0x360976E0u);
   9288 
   9289 L_360976E0:
   9290     PUSH32(esp, ebp); /* 0x360976E0: push ebp */
   9291     ebp = esp; /* 0x360976E1: mov ebp, esp */
   9292     PUSH32(esp, ebx); /* 0x360976E3: push ebx */
   9293     ebx = MEM32(ebp + 0x8); /* 0x360976E4: mov ebx, dword ptr [ebp + 8] */
   9294     PUSH32(esp, esi); /* 0x360976E7: push esi */
   9295     esi = ecx; /* 0x360976E8: mov esi, ecx */
   9296     eax = MEM32(esi); /* 0x360976EA: mov eax, dword ptr [esi] */
   9297     PUSH32(esp, edi); /* 0x360976EC: push edi */
   9298     ecx = ebx + 0x4; /* 0x360976ED: lea ecx, [ebx + 4] */
   9299     PUSH32(esp, ecx); /* 0x360976F0: push ecx */
   9300     ecx = esi; /* 0x360976F1: mov ecx, esi */
   9301     RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x360976F3: call dword ptr [eax + 0x24] */
   9302     RECOMP_FLAGS_IN();
   9303     edi = MEM32(ebp + 0xC); /* 0x360976F6: mov edi, dword ptr [ebp + 0xc] */
   9304     /* cmp MEM32(edi + 0x90), 0xC740u */ /* 0x360976F9: cmp dword ptr [edi + 0x90], 0xc740 */
   9305     _flag_a = (uint32_t)(MEM32(edi + 0x90)); _flag_b = (uint32_t)(0xC740u);
   9306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9307     _flag_k = FK_CMP;
   9308     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609771E; /* 0x36097703: je 0x3609771e */
   9309 L_36097705:
   9310     edx = MEM32(edi); /* 0x36097705: mov edx, dword ptr [edi] */
   9311     PUSH32(esp, 2); /* 0x36097707: push 2 */
   9312     PUSH32(esp, 0x1Eu); /* 0x36097709: push 0x1e */
   9313     ecx = edi; /* 0x3609770B: mov ecx, edi */
   9314     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3609770D: call dword ptr [edx + 4] */
   9315     RECOMP_FLAGS_IN();
   9316     /* test HI8(eax), 1 */ /* 0x36097710: test ah, 1 */
   9317     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9318     _cf = 0;
   9319     _flag_k = FK_NARROW(FK_TEST, 24);
   9320     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609771E; /* 0x36097713: jne 0x3609771e */
   9321 L_36097715:
   9322     PUSH32(esp, edi); /* 0x36097715: push edi */
   9323     PUSH32(esp, ebx); /* 0x36097716: push ebx */
   9324     ecx = esi; /* 0x36097717: mov ecx, esi */
   9325     RECOMP_ICALL(0x36097890u); /* 0x36097719: call 0x36097890 */ /* not lifted */
   9326     RECOMP_FLAGS_IN();
   9327 L_3609771E:
   9328     PUSH32(esp, edi); /* 0x3609771E: push edi */
   9329     PUSH32(esp, ebx); /* 0x3609771F: push ebx */
   9330     ecx = esi; /* 0x36097720: mov ecx, esi */
   9331     RECOMP_ICALL(0x3609FA30u); /* 0x36097722: call 0x3609fa30 */ /* not lifted */
   9332     RECOMP_FLAGS_IN();
   9333     edi = POP32_VAL(esp); /* 0x36097727: pop edi */
   9334     esi = POP32_VAL(esp); /* 0x36097728: pop esi */
   9335     ebx = POP32_VAL(esp); /* 0x36097729: pop ebx */
   9336     ebp = POP32_VAL(esp); /* 0x3609772A: pop ebp */
   9337     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609772B: ret 8 */
   9338     RECOMP_REGS_OUT();
   9339 }
   9340 
   9341 void sub_36097730(void) {
   9342     int _fpu_cmp = 0;
   9343     uint32_t _cf = 0;
   9344     int _df = 1;
   9345     uint32_t _flag_k = FK_NONE;
   9346     uint32_t _flag_a = 0, _flag_b = 0;
   9347     uint32_t _itail_tgt = 0;
   9348     RECOMP_REGS_LOCALS
   9349     RECOMP_ENTER(0x36097730u);
   9350 
   9351 L_36097730:
   9352     eax = MEM32(ecx); /* 0x36097730: mov eax, dword ptr [ecx] */
   9353     PUSH32(esp, 0x40u); /* 0x36097732: push 0x40 */
   9354     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x36097734: call dword ptr [eax + 0x18] */
   9355     RECOMP_FLAGS_IN();
   9356     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36097737: ret  */
   9357     RECOMP_REGS_OUT();
   9358 }
   9359 
   9360 void sub_36097740(void) {
   9361     int _fpu_cmp = 0;
   9362     uint32_t _cf = 0;
   9363     int _df = 1;
   9364     uint32_t _flag_k = FK_NONE;
   9365     uint32_t _flag_a = 0, _flag_b = 0;
   9366     uint32_t _itail_tgt = 0;
   9367     RECOMP_REGS_LOCALS
   9368     RECOMP_ENTER(0x36097740u);
   9369 
   9370 L_36097740:
   9371     PUSH32(esp, esi); /* 0x36097740: push esi */
   9372     esi = ecx; /* 0x36097741: mov esi, ecx */
   9373     eax = MEM32(esi); /* 0x36097743: mov eax, dword ptr [esi] */
   9374     RECOMP_ICALL(MEM32(eax + 0x128)); /* 0x36097745: call dword ptr [eax + 0x128] */
   9375     RECOMP_FLAGS_IN();
   9376     /* test LO8(eax), LO8(eax) */ /* 0x3609774B: test al, al */
   9377     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9378     _cf = 0;
   9379     _flag_k = FK_NARROW(FK_TEST, 24);
   9380     if (TEST_Z(_flag_a, _flag_b)) goto L_36097764; /* 0x3609774D: je 0x36097764 */
   9381 L_3609774F:
   9382     edx = MEM32(esi + 0x34); /* 0x3609774F: mov edx, dword ptr [esi + 0x34] */
   9383     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFBFu);
   9384     edx = edx & 0xFFFFFFBFu; /* 0x36097752: and edx, 0xffffffbf */
   9385     _cf = 0;
   9386     _flag_k = FK_TEST;
   9387     eax = edx; /* 0x36097755: mov eax, edx */
   9388     PUSH32(esp, eax); /* 0x36097757: push eax */
   9389     MEM32(esi + 0x34) = edx; /* 0x36097758: mov dword ptr [esi + 0x34], edx */
   9390     edx = MEM32(esi); /* 0x3609775B: mov edx, dword ptr [esi] */
   9391     PUSH32(esp, 0); /* 0x3609775D: push 0 */
   9392     ecx = esi; /* 0x3609775F: mov ecx, esi */
   9393     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36097761: call dword ptr [edx + 8] */
   9394     RECOMP_FLAGS_IN();
   9395 L_36097764:
   9396     esi = POP32_VAL(esp); /* 0x36097764: pop esi */
   9397     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36097765: ret  */
   9398     RECOMP_REGS_OUT();
   9399 }
   9400 
   9401 void sub_36097770(void) {
   9402     int _fpu_cmp = 0;
   9403     uint32_t _cf = 0;
   9404     int _df = 1;
   9405     uint32_t _flag_k = FK_NONE;
   9406     uint32_t _flag_a = 0, _flag_b = 0;
   9407     uint32_t _itail_tgt = 0;
   9408     RECOMP_REGS_LOCALS
   9409     RECOMP_ENTER(0x36097770u);
   9410 
   9411 L_36097770:
   9412     eax = MEM32(ecx); /* 0x36097770: mov eax, dword ptr [ecx] */
   9413     PUSH32(esp, 0x40u); /* 0x36097772: push 0x40 */
   9414     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x36097774: call dword ptr [eax + 0x1c] */
   9415     RECOMP_FLAGS_IN();
   9416     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36097777: ret  */
   9417     RECOMP_REGS_OUT();
   9418 }
   9419 
   9420 void sub_36097780(void) {
   9421     int _fpu_cmp = 0;
   9422     uint32_t _cf = 0;
   9423     int _df = 1;
   9424     uint32_t _flag_k = FK_NONE;
   9425     uint32_t _flag_a = 0, _flag_b = 0;
   9426     uint32_t _itail_tgt = 0;
   9427     RECOMP_REGS_LOCALS
   9428     RECOMP_ENTER(0x36097780u);
   9429 
   9430 L_36097780:
   9431     PUSH32(esp, esi); /* 0x36097780: push esi */
   9432     esi = ecx; /* 0x36097781: mov esi, ecx */
   9433     eax = MEM32(esi); /* 0x36097783: mov eax, dword ptr [esi] */
   9434     PUSH32(esp, 0x80u); /* 0x36097785: push 0x80 */
   9435     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x3609778A: call dword ptr [eax + 0x18] */
   9436     RECOMP_FLAGS_IN();
   9437     edx = MEM32(esi); /* 0x3609778D: mov edx, dword ptr [esi] */
   9438     PUSH32(esp, 0x64u); /* 0x3609778F: push 0x64 */
   9439     PUSH32(esp, 0x62u); /* 0x36097791: push 0x62 */
   9440     ecx = esi; /* 0x36097793: mov ecx, esi */
   9441     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36097795: call dword ptr [edx + 8] */
   9442     RECOMP_FLAGS_IN();
   9443     PUSH32(esp, 1); /* 0x36097798: push 1 */
   9444     ecx = esi; /* 0x3609779A: mov ecx, esi */
   9445     RECOMP_ICALL(0x3609D3B0u); /* 0x3609779C: call 0x3609d3b0 */ /* not lifted */
   9446     RECOMP_FLAGS_IN();
   9447     PUSH32(esp, 3); /* 0x360977A1: push 3 */
   9448     ecx = esi; /* 0x360977A3: mov ecx, esi */
   9449     RECOMP_ICALL(0x3609D390u); /* 0x360977A5: call 0x3609d390 */ /* not lifted */
   9450     RECOMP_FLAGS_IN();
   9451     PUSH32(esp, 3); /* 0x360977AA: push 3 */
   9452     ecx = esi; /* 0x360977AC: mov ecx, esi */
   9453     RECOMP_ICALL(0x3609D430u); /* 0x360977AE: call 0x3609d430 */ /* not lifted */
   9454     RECOMP_FLAGS_IN();
   9455     eax = MEM32(esi); /* 0x360977B3: mov eax, dword ptr [esi] */
   9456     PUSH32(esp, 2); /* 0x360977B5: push 2 */
   9457     PUSH32(esp, 8); /* 0x360977B7: push 8 */
   9458     ecx = esi; /* 0x360977B9: mov ecx, esi */
   9459     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360977BB: call dword ptr [eax + 4] */
   9460     RECOMP_FLAGS_IN();
   9461     /* cmp eax, 0xFFFFFFFFu */ /* 0x360977BE: cmp eax, -1 */
   9462     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   9463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9464     _flag_k = FK_CMP;
   9465     if (CMP_EQ(_flag_a, _flag_b)) goto L_360977DA; /* 0x360977C1: je 0x360977da */
   9466 L_360977C3:
   9467     PUSH32(esp, edi); /* 0x360977C3: push edi */
   9468     edi = MEM32(esi); /* 0x360977C4: mov edi, dword ptr [esi] */
   9469     PUSH32(esp, 2); /* 0x360977C6: push 2 */
   9470     PUSH32(esp, 8); /* 0x360977C8: push 8 */
   9471     ecx = esi; /* 0x360977CA: mov ecx, esi */
   9472     RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x360977CC: call dword ptr [edi + 4] */
   9473     RECOMP_FLAGS_IN();
   9474     if (1u) _cf = (((eax) >> 31) & 1u); /* 0x360977CF: shl eax, 1 */
   9475     if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9476     eax = eax << 1u; /* 0x360977CF: shl eax, 1 */
   9477     PUSH32(esp, eax); /* 0x360977D1: push eax */
   9478     PUSH32(esp, 8); /* 0x360977D2: push 8 */
   9479     ecx = esi; /* 0x360977D4: mov ecx, esi */
   9480     RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x360977D6: call dword ptr [edi + 8] */
   9481     RECOMP_FLAGS_IN();
   9482     edi = POP32_VAL(esp); /* 0x360977D9: pop edi */
   9483 L_360977DA:
   9484     esi = POP32_VAL(esp); /* 0x360977DA: pop esi */
   9485     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360977DB: ret 4 */
   9486     RECOMP_REGS_OUT();
   9487 }
   9488 
   9489 void sub_360977E0(void) {
   9490     int _fpu_cmp = 0;
   9491     uint32_t _cf = 0;
   9492     int _df = 1;
   9493     uint32_t _flag_k = FK_NONE;
   9494     uint32_t _flag_a = 0, _flag_b = 0;
   9495     uint32_t _itail_tgt = 0;
   9496     RECOMP_REGS_LOCALS
   9497     RECOMP_ENTER(0x360977E0u);
   9498 
   9499 L_360977E0:
   9500     PUSH32(esp, esi); /* 0x360977E0: push esi */
   9501     esi = ecx; /* 0x360977E1: mov esi, ecx */
   9502     edx = MEM32(esi + 0x34); /* 0x360977E3: mov edx, dword ptr [esi + 0x34] */
   9503     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFF7Fu);
   9504     edx = edx & 0xFFFFFF7Fu; /* 0x360977E6: and edx, 0xffffff7f */
   9505     _cf = 0;
   9506     _flag_k = FK_TEST;
   9507     eax = edx; /* 0x360977EC: mov eax, edx */
   9508     PUSH32(esp, eax); /* 0x360977EE: push eax */
   9509     MEM32(esi + 0x34) = edx; /* 0x360977EF: mov dword ptr [esi + 0x34], edx */
   9510     edx = MEM32(esi); /* 0x360977F2: mov edx, dword ptr [esi] */
   9511     PUSH32(esp, 0); /* 0x360977F4: push 0 */
   9512     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360977F6: call dword ptr [edx + 8] */
   9513     RECOMP_FLAGS_IN();
   9514     eax = MEM32(esi); /* 0x360977F9: mov eax, dword ptr [esi] */
   9515     PUSH32(esp, 0x66u); /* 0x360977FB: push 0x66 */
   9516     PUSH32(esp, 0x62u); /* 0x360977FD: push 0x62 */
   9517     ecx = esi; /* 0x360977FF: mov ecx, esi */
   9518     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36097801: call dword ptr [eax + 8] */
   9519     RECOMP_FLAGS_IN();
   9520     PUSH32(esp, 2); /* 0x36097804: push 2 */
   9521     ecx = esi; /* 0x36097806: mov ecx, esi */
   9522     RECOMP_ICALL(0x3609D3B0u); /* 0x36097808: call 0x3609d3b0 */ /* not lifted */
   9523     RECOMP_FLAGS_IN();
   9524     PUSH32(esp, 5); /* 0x3609780D: push 5 */
   9525     ecx = esi; /* 0x3609780F: mov ecx, esi */
   9526     RECOMP_ICALL(0x3609D390u); /* 0x36097811: call 0x3609d390 */ /* not lifted */
   9527     RECOMP_FLAGS_IN();
   9528     PUSH32(esp, 3); /* 0x36097816: push 3 */
   9529     ecx = esi; /* 0x36097818: mov ecx, esi */
   9530     RECOMP_ICALL(0x3609D430u); /* 0x3609781A: call 0x3609d430 */ /* not lifted */
   9531     RECOMP_FLAGS_IN();
   9532     esi = POP32_VAL(esp); /* 0x3609781F: pop esi */
   9533     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097820: ret 4 */
   9534     RECOMP_REGS_OUT();
   9535 }
   9536 
   9537 void sub_36097830(void) {
   9538     int _fpu_cmp = 0;
   9539     uint32_t _cf = 0;
   9540     int _df = 1;
   9541     uint32_t _flag_k = FK_NONE;
   9542     uint32_t _flag_a = 0, _flag_b = 0;
   9543     uint32_t _itail_tgt = 0;
   9544     RECOMP_REGS_LOCALS
   9545     RECOMP_ENTER(0x36097830u);
   9546 
   9547 L_36097830:
   9548     PUSH32(esp, ebp); /* 0x36097830: push ebp */
   9549     ebp = esp; /* 0x36097831: mov ebp, esp */
   9550     PUSH32(esp, ebx); /* 0x36097833: push ebx */
   9551     PUSH32(esp, esi); /* 0x36097834: push esi */
   9552     PUSH32(esp, edi); /* 0x36097835: push edi */
   9553     edi = MEM32(ecx + 0x1A8); /* 0x36097836: mov edi, dword ptr [ecx + 0x1a8] */
   9554     eax = MEM32(edi + 0x4); /* 0x3609783C: mov eax, dword ptr [edi + 4] */
   9555     esi = MEM32(eax); /* 0x3609783F: mov esi, dword ptr [eax] */
   9556     ebx = MEM32(esi + 0x4); /* 0x36097841: mov ebx, dword ptr [esi + 4] */
   9557     PUSH32(esp, 0x10u); /* 0x36097844: push 0x10 */
   9558     RECOMP_ICALL(0x3615FD6Au); /* 0x36097846: call 0x3615fd6a */ /* not lifted */
   9559     RECOMP_FLAGS_IN();
   9560     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9561     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9562     esp = esp + 4; /* 0x3609784B: add esp, 4 */
   9563     _flag_k = FK_ADD;
   9564     /* test esi, esi */ /* 0x3609784E: test esi, esi */
   9565     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   9566     _cf = 0;
   9567     _flag_k = FK_TEST;
   9568     ecx = esi; /* 0x36097850: mov ecx, esi */
   9569     if (TEST_NZ(_flag_a, _flag_b)) goto L_36097856; /* 0x36097852: jne 0x36097856 */
   9570 L_36097854:
   9571     ecx = eax; /* 0x36097854: mov ecx, eax */
   9572 L_36097856:
   9573     /* test ebx, ebx */ /* 0x36097856: test ebx, ebx */
   9574     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   9575     _cf = 0;
   9576     _flag_k = FK_TEST;
   9577     MEM32(eax) = ecx; /* 0x36097858: mov dword ptr [eax], ecx */
   9578     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609785E; /* 0x3609785A: jne 0x3609785e */
   9579 L_3609785C:
   9580     ebx = eax; /* 0x3609785C: mov ebx, eax */
   9581 L_3609785E:
   9582     MEM32(eax + 0x4) = ebx; /* 0x3609785E: mov dword ptr [eax + 4], ebx */
   9583     MEM32(esi + 0x4) = eax; /* 0x36097861: mov dword ptr [esi + 4], eax */
   9584     ecx = MEM32(eax + 0x4); /* 0x36097864: mov ecx, dword ptr [eax + 4] */
   9585     edx = ebp + 0x8; /* 0x36097867: lea edx, [ebp + 8] */
   9586     MEM32(ecx) = eax; /* 0x3609786A: mov dword ptr [ecx], eax */
   9587     PUSH32(esp, edx); /* 0x3609786C: push edx */
   9588     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   9589     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9590     eax = eax + 8; /* 0x3609786D: add eax, 8 */
   9591     _flag_k = FK_ADD;
   9592     PUSH32(esp, eax); /* 0x36097870: push eax */
   9593     RECOMP_ICALL(0x360180C0u); /* 0x36097871: call 0x360180c0 */ /* not lifted */
   9594     RECOMP_FLAGS_IN();
   9595     eax = MEM32(edi + 0x8); /* 0x36097876: mov eax, dword ptr [edi + 8] */
   9596     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9598     esp = esp + 8; /* 0x36097879: add esp, 8 */
   9599     _flag_k = FK_ADD;
   9600     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9601     eax = eax + 1; /* 0x3609787C: inc eax */
   9602     _flag_k = FK_INC;
   9603     MEM32(edi + 0x8) = eax; /* 0x3609787D: mov dword ptr [edi + 8], eax */
   9604     edi = POP32_VAL(esp); /* 0x36097880: pop edi */
   9605     esi = POP32_VAL(esp); /* 0x36097881: pop esi */
   9606     ebx = POP32_VAL(esp); /* 0x36097882: pop ebx */
   9607     ebp = POP32_VAL(esp); /* 0x36097883: pop ebp */
   9608     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36097884: ret 8 */
   9609     RECOMP_REGS_OUT();
   9610 }
   9611 
   9612 void sub_36097890(void) {
   9613     int _fpu_cmp = 0;
   9614     uint32_t _cf = 0;
   9615     int _df = 1;
   9616     uint32_t _flag_k = FK_NONE;
   9617     uint32_t _flag_a = 0, _flag_b = 0;
   9618     uint32_t _itail_tgt = 0;
   9619     RECOMP_REGS_LOCALS
   9620     RECOMP_ENTER(0x36097890u);
   9621 
   9622 L_36097890:
   9623     PUSH32(esp, ebp); /* 0x36097890: push ebp */
   9624     ebp = esp; /* 0x36097891: mov ebp, esp */
   9625     PUSH32(esp, ebx); /* 0x36097893: push ebx */
   9626     PUSH32(esp, esi); /* 0x36097894: push esi */
   9627     esi = ecx; /* 0x36097895: mov esi, ecx */
   9628     eax = MEM32(esi + 0x1A8); /* 0x36097897: mov eax, dword ptr [esi + 0x1a8] */
   9629     ecx = MEM32(eax + 0x4); /* 0x3609789D: mov ecx, dword ptr [eax + 4] */
   9630     eax = MEM32(ecx); /* 0x360978A0: mov eax, dword ptr [ecx] */
   9631     /* cmp eax, ecx */ /* 0x360978A2: cmp eax, ecx */
   9632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9633     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9634     _flag_k = FK_CMP;
   9635     PUSH32(esp, edi); /* 0x360978A4: push edi */
   9636     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097911; /* 0x360978A5: je 0x36097911 */
   9637 L_360978A7:
   9638     edx = MEM32(ebp + 0xC); /* 0x360978A7: mov edx, dword ptr [ebp + 0xc] */
   9639     edi = MEM32(edx + 0x94); /* 0x360978AA: mov edi, dword ptr [edx + 0x94] */
   9640 L_360978B0:
   9641     /* cmp edi, MEM32(eax + 0xC) */ /* 0x360978B0: cmp edi, dword ptr [eax + 0xc] */
   9642     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   9643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9644     _flag_k = FK_CMP;
   9645     if (CMP_NE(_flag_a, _flag_b)) goto L_360978C0; /* 0x360978B3: jne 0x360978c0 */
   9646 L_360978B5:
   9647     ebx = MEM32(edx + 0x90); /* 0x360978B5: mov ebx, dword ptr [edx + 0x90] */
   9648     /* cmp ebx, MEM32(eax + 0x8) */ /* 0x360978BB: cmp ebx, dword ptr [eax + 8] */
   9649     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   9650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9651     _flag_k = FK_CMP;
   9652     if (CMP_EQ(_flag_a, _flag_b)) goto L_360978C8; /* 0x360978BE: je 0x360978c8 */
   9653 L_360978C0:
   9654     eax = MEM32(eax); /* 0x360978C0: mov eax, dword ptr [eax] */
   9655     /* cmp eax, ecx */ /* 0x360978C2: cmp eax, ecx */
   9656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9658     _flag_k = FK_CMP;
   9659     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097911; /* 0x360978C4: je 0x36097911 */
   9660 L_360978C6:
   9661     RECOMP_BACKEDGE();
   9662     goto L_360978B0; /* 0x360978C6: jmp 0x360978b0 */
   9663 L_360978C8:
   9664     edx = MEM32(esi); /* 0x360978C8: mov edx, dword ptr [esi] */
   9665     ecx = esi; /* 0x360978CA: mov ecx, esi */
   9666     RECOMP_ICALL(MEM32(edx + 0x128)); /* 0x360978CC: call dword ptr [edx + 0x128] */
   9667     RECOMP_FLAGS_IN();
   9668     /* test LO8(eax), LO8(eax) */ /* 0x360978D2: test al, al */
   9669     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9670     _cf = 0;
   9671     _flag_k = FK_NARROW(FK_TEST, 24);
   9672     eax = MEM32(ebp + 0x8); /* 0x360978D4: mov eax, dword ptr [ebp + 8] */
   9673     PUSH32(esp, 0x361C5F28u); /* 0x360978D7: push 0x361c5f28 */
   9674     PUSH32(esp, eax); /* 0x360978DC: push eax */
   9675     ecx = esi; /* 0x360978DD: mov ecx, esi */
   9676     if (TEST_Z(_flag_a, _flag_b)) goto L_360978F9; /* 0x360978DF: je 0x360978f9 */
   9677 L_360978E1:
   9678     RECOMP_ICALL(0x360028F0u); /* 0x360978E1: call 0x360028f0 */ /* not lifted */
   9679     RECOMP_FLAGS_IN();
   9680     edx = MEM32(esi); /* 0x360978E6: mov edx, dword ptr [esi] */
   9681     ecx = esi; /* 0x360978E8: mov ecx, esi */
   9682     RECOMP_ICALL(MEM32(edx + 0x124)); /* 0x360978EA: call dword ptr [edx + 0x124] */
   9683     RECOMP_FLAGS_IN();
   9684     edi = POP32_VAL(esp); /* 0x360978F0: pop edi */
   9685     esi = POP32_VAL(esp); /* 0x360978F1: pop esi */
   9686     SET_LO8(eax, 1); /* 0x360978F2: mov al, 1 */
   9687     ebx = POP32_VAL(esp); /* 0x360978F4: pop ebx */
   9688     ebp = POP32_VAL(esp); /* 0x360978F5: pop ebp */
   9689     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360978F6: ret 8 */
   9690 L_360978F9:
   9691     RECOMP_ICALL(0x360028F0u); /* 0x360978F9: call 0x360028f0 */ /* not lifted */
   9692     RECOMP_FLAGS_IN();
   9693     edx = MEM32(esi); /* 0x360978FE: mov edx, dword ptr [esi] */
   9694     ecx = esi; /* 0x36097900: mov ecx, esi */
   9695     RECOMP_ICALL(MEM32(edx + 0x120)); /* 0x36097902: call dword ptr [edx + 0x120] */
   9696     RECOMP_FLAGS_IN();
   9697     edi = POP32_VAL(esp); /* 0x36097908: pop edi */
   9698     esi = POP32_VAL(esp); /* 0x36097909: pop esi */
   9699     SET_LO8(eax, 1); /* 0x3609790A: mov al, 1 */
   9700     ebx = POP32_VAL(esp); /* 0x3609790C: pop ebx */
   9701     ebp = POP32_VAL(esp); /* 0x3609790D: pop ebp */
   9702     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609790E: ret 8 */
   9703 L_36097911:
   9704     edi = POP32_VAL(esp); /* 0x36097911: pop edi */
   9705     esi = POP32_VAL(esp); /* 0x36097912: pop esi */
   9706     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   9707     SET_LO8(eax, 0); /* 0x36097913: xor al, al */
   9708     _cf = 0;
   9709     _flag_k = FK_NARROW(FK_TEST, 24);
   9710     ebx = POP32_VAL(esp); /* 0x36097915: pop ebx */
   9711     ebp = POP32_VAL(esp); /* 0x36097916: pop ebp */
   9712     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36097917: ret 8 */
   9713     RECOMP_REGS_OUT();
   9714 }
   9715 
   9716 void sub_36097920(void) {
   9717     int _fpu_cmp = 0;
   9718     uint32_t _cf = 0;
   9719     int _df = 1;
   9720     uint32_t _flag_k = FK_NONE;
   9721     uint32_t _flag_a = 0, _flag_b = 0;
   9722     uint32_t _itail_tgt = 0;
   9723     RECOMP_REGS_LOCALS
   9724     RECOMP_ENTER(0x36097920u);
   9725 
   9726 L_36097920:
   9727     PUSH32(esp, ebp); /* 0x36097920: push ebp */
   9728     ebp = esp; /* 0x36097921: mov ebp, esp */
   9729     PUSH32(esp, 0xFFFFFFFFu); /* 0x36097923: push -1 */
   9730     PUSH32(esp, 0x361665B9u); /* 0x36097925: push 0x361665b9 */
   9731     eax = MEM32(FS_BASE + (0)); /* 0x3609792A: mov eax, dword ptr fs:[0] */
   9732     PUSH32(esp, eax); /* 0x36097930: push eax */
   9733     MEM32(FS_BASE + (0)) = esp; /* 0x36097931: mov dword ptr fs:[0], esp */
   9734     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   9735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9736     esp = esp - 0x14u; /* 0x36097938: sub esp, 0x14 */
   9737     _flag_k = FK_CMP;
   9738     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3609793B: mov al, byte ptr [ebp + 0xb] */
   9739     PUSH32(esp, ebx); /* 0x3609793E: push ebx */
   9740     PUSH32(esp, esi); /* 0x3609793F: push esi */
   9741     MEM32(ebp + (-0x10)) = ecx; /* 0x36097940: mov dword ptr [ebp - 0x10], ecx */
   9742     PUSH32(esp, edi); /* 0x36097943: push edi */
   9743     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9744     ecx = ecx | 0xFFFFFFFFu; /* 0x36097944: or ecx, 0xffffffff */
   9745     _cf = 0;
   9746     _flag_k = FK_TEST;
   9747     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9748     esi = 0; /* 0x36097947: xor esi, esi */
   9749     _cf = 0;
   9750     _flag_k = FK_TEST;
   9751     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36097949: mov byte ptr [ebp - 0x20], al */
   9752     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9753     eax = 0; /* 0x3609794C: xor eax, eax */
   9754     _cf = 0;
   9755     _flag_k = FK_TEST;
   9756     edi = 0x361C5638u; /* 0x3609794E: mov edi, 0x361c5638 */
   9757     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; } /* 0x36097953: repne scasb al, byte ptr es:[edi] */
   9758     ecx = ~ecx; /* 0x36097955: not ecx */
   9759     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9760     ecx = ecx - 1; /* 0x36097957: dec ecx */
   9761     _flag_k = FK_DEC;
   9762     ebx = ecx; /* 0x36097958: mov ebx, ecx */
   9763     PUSH32(esp, 1); /* 0x3609795A: push 1 */
   9764     PUSH32(esp, ebx); /* 0x3609795C: push ebx */
   9765     ecx = ebp + (-0x20); /* 0x3609795D: lea ecx, [ebp - 0x20] */
   9766     MEM32(ebp + (-0x1C)) = esi; /* 0x36097960: mov dword ptr [ebp - 0x1c], esi */
   9767     MEM32(ebp + (-0x18)) = esi; /* 0x36097963: mov dword ptr [ebp - 0x18], esi */
   9768     MEM32(ebp + (-0x14)) = esi; /* 0x36097966: mov dword ptr [ebp - 0x14], esi */
   9769     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36097969: call dword ptr [0x3616f00c] */
   9770     RECOMP_FLAGS_IN();
   9771     /* test LO8(eax), LO8(eax) */ /* 0x3609796F: test al, al */
   9772     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9773     _cf = 0;
   9774     _flag_k = FK_NARROW(FK_TEST, 24);
   9775     if (TEST_Z(_flag_a, _flag_b)) goto L_36097997; /* 0x36097971: je 0x36097997 */
   9776 L_36097973:
   9777     edi = MEM32(ebp + (-0x1C)); /* 0x36097973: mov edi, dword ptr [ebp - 0x1c] */
   9778     ecx = ebx; /* 0x36097976: mov ecx, ebx */
   9779     edx = ecx; /* 0x36097978: mov edx, ecx */
   9780     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3609797A: shr ecx, 2 */
   9781     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9782     ecx = ecx >> 2u; /* 0x3609797A: shr ecx, 2 */
   9783     esi = 0x361C5638u; /* 0x3609797D: mov esi, 0x361c5638 */
   9784     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36097982: 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; }
   9785     ecx = edx; /* 0x36097984: mov ecx, edx */
   9786     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   9787     ecx = ecx & 3; /* 0x36097986: and ecx, 3 */
   9788     _cf = 0;
   9789     _flag_k = FK_TEST;
   9790     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36097989: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   9791     eax = MEM32(ebp + (-0x1C)); /* 0x3609798B: mov eax, dword ptr [ebp - 0x1c] */
   9792     MEM32(ebp + (-0x18)) = ebx; /* 0x3609798E: mov dword ptr [ebp - 0x18], ebx */
   9793     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36097991: mov byte ptr [eax + ebx], 0 */
   9794     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9795     esi = 0; /* 0x36097995: xor esi, esi */
   9796     _cf = 0;
   9797     _flag_k = FK_TEST;
   9798 L_36097997:
   9799     edi = MEM32(ebp + 0x8); /* 0x36097997: mov edi, dword ptr [ebp + 8] */
   9800     edx = MEM32(edi); /* 0x3609799A: mov edx, dword ptr [edi] */
   9801     eax = ebp + (-0x20); /* 0x3609799C: lea eax, [ebp - 0x20] */
   9802     PUSH32(esp, eax); /* 0x3609799F: push eax */
   9803     ecx = edi; /* 0x360979A0: mov ecx, edi */
   9804     MEM32(ebp + (-0x4)) = esi; /* 0x360979A2: mov dword ptr [ebp - 4], esi */
   9805     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360979A5: call dword ptr [edx + 8] */
   9806     RECOMP_FLAGS_IN();
   9807     eax = MEM32(ebp + (-0x1C)); /* 0x360979A8: mov eax, dword ptr [ebp - 0x1c] */
   9808     /* cmp eax, esi */ /* 0x360979AB: cmp eax, esi */
   9809     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   9810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9811     _flag_k = FK_CMP;
   9812     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360979AD: mov dword ptr [ebp - 4], 0xffffffff */
   9813     if (CMP_EQ(_flag_a, _flag_b)) goto L_360979D2; /* 0x360979B4: je 0x360979d2 */
   9814 L_360979B6:
   9815     ecx = eax + (-0x1); /* 0x360979B6: lea ecx, [eax - 1] */
   9816     SET_LO8(eax, MEM8(ecx)); /* 0x360979B9: mov al, byte ptr [ecx] */
   9817     /* test LO8(eax), LO8(eax) */ /* 0x360979BB: test al, al */
   9818     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9819     _cf = 0;
   9820     _flag_k = FK_NARROW(FK_TEST, 24);
   9821     if (TEST_Z(_flag_a, _flag_b)) goto L_360979C9; /* 0x360979BD: je 0x360979c9 */
   9822 L_360979BF:
   9823     /* cmp LO8(eax), 0xFFu */ /* 0x360979BF: cmp al, 0xff */
   9824     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9825     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9826     _flag_k = FK_NARROW(FK_CMP, 24);
   9827     if (CMP_EQ(_flag_a, _flag_b)) goto L_360979C9; /* 0x360979C1: je 0x360979c9 */
   9828 L_360979C3:
   9829     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9830     SET_LO8(eax, LO8(eax) - 1); /* 0x360979C3: dec al */
   9831     _flag_k = FK_NARROW(FK_DEC, 24);
   9832     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360979C5: mov byte ptr [ecx], al */
   9833     goto L_360979D2; /* 0x360979C7: jmp 0x360979d2 */
   9834 L_360979C9:
   9835     PUSH32(esp, ecx); /* 0x360979C9: push ecx */
   9836     RECOMP_ICALL(0x3615FCC4u); /* 0x360979CA: call 0x3615fcc4 */ /* not lifted */
   9837     RECOMP_FLAGS_IN();
   9838     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9839     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9840     esp = esp + 4; /* 0x360979CF: add esp, 4 */
   9841     _flag_k = FK_ADD;
   9842 L_360979D2:
   9843     ecx = MEM32(ebp + (-0x10)); /* 0x360979D2: mov ecx, dword ptr [ebp - 0x10] */
   9844     edx = MEM32(ecx); /* 0x360979D5: mov edx, dword ptr [ecx] */
   9845     PUSH32(esp, edi); /* 0x360979D7: push edi */
   9846     MEM32(ebp + (-0x1C)) = esi; /* 0x360979D8: mov dword ptr [ebp - 0x1c], esi */
   9847     MEM32(ebp + (-0x18)) = esi; /* 0x360979DB: mov dword ptr [ebp - 0x18], esi */
   9848     MEM32(ebp + (-0x14)) = esi; /* 0x360979DE: mov dword ptr [ebp - 0x14], esi */
   9849     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360979E1: call dword ptr [edx + 4] */
   9850     RECOMP_FLAGS_IN();
   9851     ecx = MEM32(ebp + (-0xC)); /* 0x360979E4: mov ecx, dword ptr [ebp - 0xc] */
   9852     edi = POP32_VAL(esp); /* 0x360979E7: pop edi */
   9853     esi = POP32_VAL(esp); /* 0x360979E8: pop esi */
   9854     ebx = POP32_VAL(esp); /* 0x360979E9: pop ebx */
   9855     MEM32(FS_BASE + (0)) = ecx; /* 0x360979EA: mov dword ptr fs:[0], ecx */
   9856     esp = ebp; /* 0x360979F1: mov esp, ebp */
   9857     ebp = POP32_VAL(esp); /* 0x360979F3: pop ebp */
   9858     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360979F4: ret 4 */
   9859     RECOMP_REGS_OUT();
   9860 }
   9861 
   9862 void sub_36097A00(void) {
   9863     int _fpu_cmp = 0;
   9864     uint32_t _cf = 0;
   9865     int _df = 1;
   9866     uint32_t _flag_k = FK_NONE;
   9867     uint32_t _flag_a = 0, _flag_b = 0;
   9868     uint32_t _itail_tgt = 0;
   9869     RECOMP_REGS_LOCALS
   9870     RECOMP_ENTER(0x36097A00u);
   9871 
   9872 L_36097A00:
   9873     PUSH32(esp, ebp); /* 0x36097A00: push ebp */
   9874     ebp = esp; /* 0x36097A01: mov ebp, esp */
   9875     PUSH32(esp, 0xFFFFFFFFu); /* 0x36097A03: push -1 */
   9876     PUSH32(esp, 0x361665D9u); /* 0x36097A05: push 0x361665d9 */
   9877     eax = MEM32(FS_BASE + (0)); /* 0x36097A0A: mov eax, dword ptr fs:[0] */
   9878     PUSH32(esp, eax); /* 0x36097A10: push eax */
   9879     MEM32(FS_BASE + (0)) = esp; /* 0x36097A11: mov dword ptr fs:[0], esp */
   9880     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   9881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9882     esp = esp - 0x10u; /* 0x36097A18: sub esp, 0x10 */
   9883     _flag_k = FK_CMP;
   9884     PUSH32(esp, ebx); /* 0x36097A1B: push ebx */
   9885     PUSH32(esp, esi); /* 0x36097A1C: push esi */
   9886     esi = MEM32(ebp + 0x8); /* 0x36097A1D: mov esi, dword ptr [ebp + 8] */
   9887     PUSH32(esp, edi); /* 0x36097A20: push edi */
   9888     PUSH32(esp, esi); /* 0x36097A21: push esi */
   9889     RECOMP_ICALL(0x3610DEF0u); /* 0x36097A22: call 0x3610def0 */ /* not lifted */
   9890     RECOMP_FLAGS_IN();
   9891     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36097A27: mov al, byte ptr [ebp + 0xb] */
   9892     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9893     ecx = ecx | 0xFFFFFFFFu; /* 0x36097A2A: or ecx, 0xffffffff */
   9894     _cf = 0;
   9895     _flag_k = FK_TEST;
   9896     MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x36097A2D: mov byte ptr [ebp - 0x1c], al */
   9897     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9898     eax = 0; /* 0x36097A30: xor eax, eax */
   9899     _cf = 0;
   9900     _flag_k = FK_TEST;
   9901     edi = 0x361C5648u; /* 0x36097A32: mov edi, 0x361c5648 */
   9902     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; } /* 0x36097A37: repne scasb al, byte ptr es:[edi] */
   9903     ecx = ~ecx; /* 0x36097A39: not ecx */
   9904     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9905     ecx = ecx - 1; /* 0x36097A3B: dec ecx */
   9906     _flag_k = FK_DEC;
   9907     ebx = ecx; /* 0x36097A3C: mov ebx, ecx */
   9908     PUSH32(esp, 1); /* 0x36097A3E: push 1 */
   9909     PUSH32(esp, ebx); /* 0x36097A40: push ebx */
   9910     ecx = ebp + (-0x1C); /* 0x36097A41: lea ecx, [ebp - 0x1c] */
   9911     MEM32(ebp + (-0x18)) = eax; /* 0x36097A44: mov dword ptr [ebp - 0x18], eax */
   9912     MEM32(ebp + (-0x14)) = eax; /* 0x36097A47: mov dword ptr [ebp - 0x14], eax */
   9913     MEM32(ebp + (-0x10)) = eax; /* 0x36097A4A: mov dword ptr [ebp - 0x10], eax */
   9914     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36097A4D: call dword ptr [0x3616f00c] */
   9915     RECOMP_FLAGS_IN();
   9916     /* test LO8(eax), LO8(eax) */ /* 0x36097A53: test al, al */
   9917     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9918     _cf = 0;
   9919     _flag_k = FK_NARROW(FK_TEST, 24);
   9920     if (TEST_Z(_flag_a, _flag_b)) goto L_36097A7C; /* 0x36097A55: je 0x36097a7c */
   9921 L_36097A57:
   9922     edi = MEM32(ebp + (-0x18)); /* 0x36097A57: mov edi, dword ptr [ebp - 0x18] */
   9923     ecx = ebx; /* 0x36097A5A: mov ecx, ebx */
   9924     edx = ecx; /* 0x36097A5C: mov edx, ecx */
   9925     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36097A5E: shr ecx, 2 */
   9926     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9927     ecx = ecx >> 2u; /* 0x36097A5E: shr ecx, 2 */
   9928     esi = 0x361C5648u; /* 0x36097A61: mov esi, 0x361c5648 */
   9929     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36097A66: 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; }
   9930     ecx = edx; /* 0x36097A68: mov ecx, edx */
   9931     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   9932     ecx = ecx & 3; /* 0x36097A6A: and ecx, 3 */
   9933     _cf = 0;
   9934     _flag_k = FK_TEST;
   9935     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36097A6D: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   9936     eax = MEM32(ebp + (-0x18)); /* 0x36097A6F: mov eax, dword ptr [ebp - 0x18] */
   9937     esi = MEM32(ebp + 0x8); /* 0x36097A72: mov esi, dword ptr [ebp + 8] */
   9938     MEM32(ebp + (-0x14)) = ebx; /* 0x36097A75: mov dword ptr [ebp - 0x14], ebx */
   9939     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36097A78: mov byte ptr [eax + ebx], 0 */
   9940 L_36097A7C:
   9941     edx = MEM32(esi); /* 0x36097A7C: mov edx, dword ptr [esi] */
   9942     eax = ebp + (-0x1C); /* 0x36097A7E: lea eax, [ebp - 0x1c] */
   9943     PUSH32(esp, eax); /* 0x36097A81: push eax */
   9944     ecx = esi; /* 0x36097A82: mov ecx, esi */
   9945     MEM32(ebp + (-0x4)) = 0; /* 0x36097A84: mov dword ptr [ebp - 4], 0 */
   9946     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x36097A8B: call dword ptr [edx + 0x20] */
   9947     RECOMP_FLAGS_IN();
   9948     eax = MEM32(ebp + (-0x18)); /* 0x36097A8E: mov eax, dword ptr [ebp - 0x18] */
   9949     /* test eax, eax */ /* 0x36097A91: test eax, eax */
   9950     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9951     _cf = 0;
   9952     _flag_k = FK_TEST;
   9953     edi = POP32_VAL(esp); /* 0x36097A93: pop edi */
   9954     esi = POP32_VAL(esp); /* 0x36097A94: pop esi */
   9955     ebx = POP32_VAL(esp); /* 0x36097A95: pop ebx */
   9956     if (TEST_Z(_flag_a, _flag_b)) goto L_36097AC2; /* 0x36097A96: je 0x36097ac2 */
   9957 L_36097A98:
   9958     ecx = eax + (-0x1); /* 0x36097A98: lea ecx, [eax - 1] */
   9959     SET_LO8(eax, MEM8(ecx)); /* 0x36097A9B: mov al, byte ptr [ecx] */
   9960     /* test LO8(eax), LO8(eax) */ /* 0x36097A9D: test al, al */
   9961     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9962     _cf = 0;
   9963     _flag_k = FK_NARROW(FK_TEST, 24);
   9964     if (TEST_Z(_flag_a, _flag_b)) goto L_36097AB9; /* 0x36097A9F: je 0x36097ab9 */
   9965 L_36097AA1:
   9966     /* cmp LO8(eax), 0xFFu */ /* 0x36097AA1: cmp al, 0xff */
   9967     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9969     _flag_k = FK_NARROW(FK_CMP, 24);
   9970     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097AB9; /* 0x36097AA3: je 0x36097ab9 */
   9971 L_36097AA5:
   9972     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9973     SET_LO8(eax, LO8(eax) - 1); /* 0x36097AA5: dec al */
   9974     _flag_k = FK_NARROW(FK_DEC, 24);
   9975     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36097AA7: mov byte ptr [ecx], al */
   9976     ecx = MEM32(ebp + (-0xC)); /* 0x36097AA9: mov ecx, dword ptr [ebp - 0xc] */
   9977     MEM32(FS_BASE + (0)) = ecx; /* 0x36097AAC: mov dword ptr fs:[0], ecx */
   9978     esp = ebp; /* 0x36097AB3: mov esp, ebp */
   9979     ebp = POP32_VAL(esp); /* 0x36097AB5: pop ebp */
   9980     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097AB6: ret 4 */
   9981 L_36097AB9:
   9982     PUSH32(esp, ecx); /* 0x36097AB9: push ecx */
   9983     RECOMP_ICALL(0x3615FCC4u); /* 0x36097ABA: call 0x3615fcc4 */ /* not lifted */
   9984     RECOMP_FLAGS_IN();
   9985     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9986     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9987     esp = esp + 4; /* 0x36097ABF: add esp, 4 */
   9988     _flag_k = FK_ADD;
   9989 L_36097AC2:
   9990     ecx = MEM32(ebp + (-0xC)); /* 0x36097AC2: mov ecx, dword ptr [ebp - 0xc] */
   9991     MEM32(FS_BASE + (0)) = ecx; /* 0x36097AC5: mov dword ptr fs:[0], ecx */
   9992     esp = ebp; /* 0x36097ACC: mov esp, ebp */
   9993     ebp = POP32_VAL(esp); /* 0x36097ACE: pop ebp */
   9994     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097ACF: ret 4 */
   9995     RECOMP_REGS_OUT();
   9996 }
   9997 
   9998 void sub_36097AE0(void) {
   9999     int _fpu_cmp = 0;
  10000     uint32_t _cf = 0;
  10001     int _df = 1;
  10002     uint32_t _flag_k = FK_NONE;
  10003     uint32_t _flag_a = 0, _flag_b = 0;
  10004     uint32_t _itail_tgt = 0;
  10005     RECOMP_REGS_LOCALS
  10006     RECOMP_ENTER(0x36097AE0u);
  10007 
  10008 L_36097AE0:
  10009     PUSH32(esp, ebp); /* 0x36097AE0: push ebp */
  10010     ebp = esp; /* 0x36097AE1: mov ebp, esp */
  10011     PUSH32(esp, esi); /* 0x36097AE3: push esi */
  10012     PUSH32(esp, edi); /* 0x36097AE4: push edi */
  10013     edi = MEM32(ebp + 0x8); /* 0x36097AE5: mov edi, dword ptr [ebp + 8] */
  10014     esi = ecx; /* 0x36097AE8: mov esi, ecx */
  10015     PUSH32(esp, edi); /* 0x36097AEA: push edi */
  10016     RECOMP_ICALL(0x3609D970u); /* 0x36097AEB: call 0x3609d970 */ /* not lifted */
  10017     RECOMP_FLAGS_IN();
  10018     eax = ebp + 0x8; /* 0x36097AF0: lea eax, [ebp + 8] */
  10019     PUSH32(esp, eax); /* 0x36097AF3: push eax */
  10020     ecx = edi; /* 0x36097AF4: mov ecx, edi */
  10021     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36097AF6: call dword ptr [0x3616fa8c] */
  10022     RECOMP_FLAGS_IN();
  10023     eax = MEM32(ebp + 0x8); /* 0x36097AFC: mov eax, dword ptr [ebp + 8] */
  10024     edx = MEM32(esi); /* 0x36097AFF: mov edx, dword ptr [esi] */
  10025     PUSH32(esp, eax); /* 0x36097B01: push eax */
  10026     PUSH32(esp, 0x12Bu); /* 0x36097B02: push 0x12b */
  10027     ecx = esi; /* 0x36097B07: mov ecx, esi */
  10028     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36097B09: call dword ptr [edx + 8] */
  10029     RECOMP_FLAGS_IN();
  10030     edi = POP32_VAL(esp); /* 0x36097B0C: pop edi */
  10031     esi = POP32_VAL(esp); /* 0x36097B0D: pop esi */
  10032     ebp = POP32_VAL(esp); /* 0x36097B0E: pop ebp */
  10033     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097B0F: ret 4 */
  10034     RECOMP_REGS_OUT();
  10035 }
  10036 
  10037 void sub_36097B20(void) {
  10038     int _fpu_cmp = 0;
  10039     uint32_t _cf = 0;
  10040     int _df = 1;
  10041     uint32_t _flag_k = FK_NONE;
  10042     uint32_t _flag_a = 0, _flag_b = 0;
  10043     uint32_t _itail_tgt = 0;
  10044     RECOMP_REGS_LOCALS
  10045     RECOMP_ENTER(0x36097B20u);
  10046 
  10047 L_36097B20:
  10048     PUSH32(esp, ebp); /* 0x36097B20: push ebp */
  10049     ebp = esp; /* 0x36097B21: mov ebp, esp */
  10050     PUSH32(esp, 0xFFFFFFFFu); /* 0x36097B23: push -1 */
  10051     PUSH32(esp, 0x36166613u); /* 0x36097B25: push 0x36166613 */
  10052     eax = MEM32(FS_BASE + (0)); /* 0x36097B2A: mov eax, dword ptr fs:[0] */
  10053     PUSH32(esp, eax); /* 0x36097B30: push eax */
  10054     MEM32(FS_BASE + (0)) = esp; /* 0x36097B31: mov dword ptr fs:[0], esp */
  10055     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
  10056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10057     esp = esp - 0x20u; /* 0x36097B38: sub esp, 0x20 */
  10058     _flag_k = FK_CMP;
  10059     PUSH32(esp, ebx); /* 0x36097B3B: push ebx */
  10060     PUSH32(esp, esi); /* 0x36097B3C: push esi */
  10061     PUSH32(esp, edi); /* 0x36097B3D: push edi */
  10062     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10063     ebx = 0; /* 0x36097B3E: xor ebx, ebx */
  10064     _cf = 0;
  10065     _flag_k = FK_TEST;
  10066     PUSH32(esp, 0x80u); /* 0x36097B40: push 0x80 */
  10067     MEM32(ebp + (-0x1C)) = ecx; /* 0x36097B45: mov dword ptr [ebp - 0x1c], ecx */
  10068     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10069     edi = 0; /* 0x36097B48: xor edi, edi */
  10070     _cf = 0;
  10071     _flag_k = FK_TEST;
  10072     MEM32(ebp + (-0x18)) = ebx; /* 0x36097B4A: mov dword ptr [ebp - 0x18], ebx */
  10073     RECOMP_ICALL(0x3615FD6Au); /* 0x36097B4D: call 0x3615fd6a */ /* not lifted */
  10074     RECOMP_FLAGS_IN();
  10075     esi = eax; /* 0x36097B52: mov esi, eax */
  10076     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10077     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10078     esp = esp + 4; /* 0x36097B54: add esp, 4 */
  10079     _flag_k = FK_ADD;
  10080     MEM32(ebp + (-0x14)) = esi; /* 0x36097B57: mov dword ptr [ebp - 0x14], esi */
  10081     /* cmp esi, edi */ /* 0x36097B5A: cmp esi, edi */
  10082     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
  10083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10084     _flag_k = FK_CMP;
  10085     MEM32(ebp + (-0x4)) = edi; /* 0x36097B5C: mov dword ptr [ebp - 4], edi */
  10086     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097BDC; /* 0x36097B5F: je 0x36097bdc */
  10087 L_36097B61:
  10088     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36097B61: mov al, byte ptr [ebp - 0xd] */
  10089     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  10090     ecx = ecx | 0xFFFFFFFFu; /* 0x36097B64: or ecx, 0xffffffff */
  10091     _cf = 0;
  10092     _flag_k = FK_TEST;
  10093     MEM32(ebp + (-0x28)) = edi; /* 0x36097B67: mov dword ptr [ebp - 0x28], edi */
  10094     MEM32(ebp + (-0x24)) = edi; /* 0x36097B6A: mov dword ptr [ebp - 0x24], edi */
  10095     MEM32(ebp + (-0x20)) = edi; /* 0x36097B6D: mov dword ptr [ebp - 0x20], edi */
  10096     MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(eax)); /* 0x36097B70: mov byte ptr [ebp - 0x2c], al */
  10097     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10098     eax = 0; /* 0x36097B73: xor eax, eax */
  10099     _cf = 0;
  10100     _flag_k = FK_TEST;
  10101     edi = 0x361C5F40u; /* 0x36097B75: mov edi, 0x361c5f40 */
  10102     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; } /* 0x36097B7A: repne scasb al, byte ptr es:[edi] */
  10103     ecx = ~ecx; /* 0x36097B7C: not ecx */
  10104     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10105     ecx = ecx - 1; /* 0x36097B7E: dec ecx */
  10106     _flag_k = FK_DEC;
  10107     ebx = ecx; /* 0x36097B7F: mov ebx, ecx */
  10108     PUSH32(esp, 1); /* 0x36097B81: push 1 */
  10109     PUSH32(esp, ebx); /* 0x36097B83: push ebx */
  10110     ecx = ebp + (-0x2C); /* 0x36097B84: lea ecx, [ebp - 0x2c] */
  10111     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36097B87: call dword ptr [0x3616f00c] */
  10112     RECOMP_FLAGS_IN();
  10113     /* test LO8(eax), LO8(eax) */ /* 0x36097B8D: test al, al */
  10114     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10115     _cf = 0;
  10116     _flag_k = FK_NARROW(FK_TEST, 24);
  10117     if (TEST_Z(_flag_a, _flag_b)) goto L_36097BB6; /* 0x36097B8F: je 0x36097bb6 */
  10118 L_36097B91:
  10119     edi = MEM32(ebp + (-0x28)); /* 0x36097B91: mov edi, dword ptr [ebp - 0x28] */
  10120     ecx = ebx; /* 0x36097B94: mov ecx, ebx */
  10121     edx = ecx; /* 0x36097B96: mov edx, ecx */
  10122     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36097B98: shr ecx, 2 */
  10123     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10124     ecx = ecx >> 2u; /* 0x36097B98: shr ecx, 2 */
  10125     esi = 0x361C5F40u; /* 0x36097B9B: mov esi, 0x361c5f40 */
  10126     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36097BA0: 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; }
  10127     ecx = edx; /* 0x36097BA2: mov ecx, edx */
  10128     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  10129     ecx = ecx & 3; /* 0x36097BA4: and ecx, 3 */
  10130     _cf = 0;
  10131     _flag_k = FK_TEST;
  10132     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36097BA7: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  10133     eax = MEM32(ebp + (-0x28)); /* 0x36097BA9: mov eax, dword ptr [ebp - 0x28] */
  10134     esi = MEM32(ebp + (-0x14)); /* 0x36097BAC: mov esi, dword ptr [ebp - 0x14] */
  10135     MEM32(ebp + (-0x24)) = ebx; /* 0x36097BAF: mov dword ptr [ebp - 0x24], ebx */
  10136     MEM8(ebx + eax) = (uint8_t)(0); /* 0x36097BB2: mov byte ptr [ebx + eax], 0 */
  10137 L_36097BB6:
  10138     ebx = 1; /* 0x36097BB6: mov ebx, 1 */
  10139     MEM32(ebp + (-0x18)) = ebx; /* 0x36097BBB: mov dword ptr [ebp - 0x18], ebx */
  10140     edx = MEM32(ebp + (-0x1C)); /* 0x36097BBE: mov edx, dword ptr [ebp - 0x1c] */
  10141     ecx = ebp + (-0x2C); /* 0x36097BC1: lea ecx, [ebp - 0x2c] */
  10142     PUSH32(esp, ecx); /* 0x36097BC4: push ecx */
  10143     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFF74u);
  10144     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10145     edx = edx + 0xFFFFFF74u; /* 0x36097BC5: add edx, 0xffffff74 */
  10146     _flag_k = FK_ADD;
  10147     PUSH32(esp, edx); /* 0x36097BCB: push edx */
  10148     ecx = esi; /* 0x36097BCC: mov ecx, esi */
  10149     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36097BCE: mov byte ptr [ebp - 4], bl */
  10150     RECOMP_ICALL(0x360B0EF0u); /* 0x36097BD1: call 0x360b0ef0 */ /* not lifted */
  10151     RECOMP_FLAGS_IN();
  10152     esi = eax; /* 0x36097BD6: mov esi, eax */
  10153     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10154     edi = 0; /* 0x36097BD8: xor edi, edi */
  10155     _cf = 0;
  10156     _flag_k = FK_TEST;
  10157     goto L_36097BDE; /* 0x36097BDA: jmp 0x36097bde */
  10158 L_36097BDC:
  10159     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10160     esi = 0; /* 0x36097BDC: xor esi, esi */
  10161     _cf = 0;
  10162     _flag_k = FK_TEST;
  10163 L_36097BDE:
  10164     /* test LO8(ebx), 1 */ /* 0x36097BDE: test bl, 1 */
  10165     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
  10166     _cf = 0;
  10167     _flag_k = FK_NARROW(FK_TEST, 24);
  10168     if (TEST_Z(_flag_a, _flag_b)) goto L_36097C17; /* 0x36097BE1: je 0x36097c17 */
  10169 L_36097BE3:
  10170     eax = MEM32(ebp + (-0x28)); /* 0x36097BE3: mov eax, dword ptr [ebp - 0x28] */
  10171     /* cmp eax, edi */ /* 0x36097BE6: cmp eax, edi */
  10172     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  10173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10174     _flag_k = FK_CMP;
  10175     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097C17; /* 0x36097BE8: je 0x36097c17 */
  10176 L_36097BEA:
  10177     ecx = eax + (-0x1); /* 0x36097BEA: lea ecx, [eax - 1] */
  10178     SET_LO8(eax, MEM8(ecx)); /* 0x36097BED: mov al, byte ptr [ecx] */
  10179     /* test LO8(eax), LO8(eax) */ /* 0x36097BEF: test al, al */
  10180     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10181     _cf = 0;
  10182     _flag_k = FK_NARROW(FK_TEST, 24);
  10183     if (TEST_Z(_flag_a, _flag_b)) goto L_36097C0E; /* 0x36097BF1: je 0x36097c0e */
  10184 L_36097BF3:
  10185     /* cmp LO8(eax), 0xFFu */ /* 0x36097BF3: cmp al, 0xff */
  10186     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
  10187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10188     _flag_k = FK_NARROW(FK_CMP, 24);
  10189     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097C0E; /* 0x36097BF5: je 0x36097c0e */
  10190 L_36097BF7:
  10191     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  10192     SET_LO8(eax, LO8(eax) - 1); /* 0x36097BF7: dec al */
  10193     _flag_k = FK_NARROW(FK_DEC, 24);
  10194     edi = POP32_VAL(esp); /* 0x36097BF9: pop edi */
  10195     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36097BFA: mov byte ptr [ecx], al */
  10196     eax = esi; /* 0x36097BFC: mov eax, esi */
  10197     esi = POP32_VAL(esp); /* 0x36097BFE: pop esi */
  10198     ebx = POP32_VAL(esp); /* 0x36097BFF: pop ebx */
  10199     ecx = MEM32(ebp + (-0xC)); /* 0x36097C00: mov ecx, dword ptr [ebp - 0xc] */
  10200     MEM32(FS_BASE + (0)) = ecx; /* 0x36097C03: mov dword ptr fs:[0], ecx */
  10201     esp = ebp; /* 0x36097C0A: mov esp, ebp */
  10202     ebp = POP32_VAL(esp); /* 0x36097C0C: pop ebp */
  10203     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36097C0D: ret  */
  10204 L_36097C0E:
  10205     PUSH32(esp, ecx); /* 0x36097C0E: push ecx */
  10206     RECOMP_ICALL(0x3615FCC4u); /* 0x36097C0F: call 0x3615fcc4 */ /* not lifted */
  10207     RECOMP_FLAGS_IN();
  10208     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10209     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10210     esp = esp + 4; /* 0x36097C14: add esp, 4 */
  10211     _flag_k = FK_ADD;
  10212 L_36097C17:
  10213     ecx = MEM32(ebp + (-0xC)); /* 0x36097C17: mov ecx, dword ptr [ebp - 0xc] */
  10214     edi = POP32_VAL(esp); /* 0x36097C1A: pop edi */
  10215     eax = esi; /* 0x36097C1B: mov eax, esi */
  10216     esi = POP32_VAL(esp); /* 0x36097C1D: pop esi */
  10217     ebx = POP32_VAL(esp); /* 0x36097C1E: pop ebx */
  10218     MEM32(FS_BASE + (0)) = ecx; /* 0x36097C1F: mov dword ptr fs:[0], ecx */
  10219     esp = ebp; /* 0x36097C26: mov esp, ebp */
  10220     ebp = POP32_VAL(esp); /* 0x36097C28: pop ebp */
  10221     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36097C29: ret  */
  10222     RECOMP_REGS_OUT();
  10223 }
  10224 
  10225 void sub_36097C30(void) {
  10226     int _fpu_cmp = 0;
  10227     uint32_t _cf = 0;
  10228     int _df = 1;
  10229     uint32_t _flag_k = FK_NONE;
  10230     uint32_t _flag_a = 0, _flag_b = 0;
  10231     uint32_t _itail_tgt = 0;
  10232     RECOMP_REGS_LOCALS
  10233     RECOMP_ENTER(0x36097C30u);
  10234 
  10235 L_36097C30:
  10236     PUSH32(esp, ebp); /* 0x36097C30: push ebp */
  10237     ebp = esp; /* 0x36097C31: mov ebp, esp */
  10238     eax = MEM32(ebp + 0x8); /* 0x36097C33: mov eax, dword ptr [ebp + 8] */
  10239     /* cmp eax, 0x73u */ /* 0x36097C36: cmp eax, 0x73 */
  10240     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x73u);
  10241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10242     _flag_k = FK_CMP;
  10243     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097C49; /* 0x36097C39: je 0x36097c49 */
  10244 L_36097C3B:
  10245     edx = MEM32(ebp + 0xC); /* 0x36097C3B: mov edx, dword ptr [ebp + 0xc] */
  10246     PUSH32(esp, edx); /* 0x36097C3E: push edx */
  10247     PUSH32(esp, eax); /* 0x36097C3F: push eax */
  10248     RECOMP_ICALL(0x3609ED70u); /* 0x36097C40: call 0x3609ed70 */ /* not lifted */
  10249     RECOMP_FLAGS_IN();
  10250     ebp = POP32_VAL(esp); /* 0x36097C45: pop ebp */
  10251     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36097C46: ret 8 */
  10252 L_36097C49:
  10253     eax = MEM32(ecx); /* 0x36097C49: mov eax, dword ptr [ecx] */
  10254     RECOMP_ICALL(MEM32(eax + 0x124)); /* 0x36097C4B: call dword ptr [eax + 0x124] */
  10255     RECOMP_FLAGS_IN();
  10256     ebp = POP32_VAL(esp); /* 0x36097C51: pop ebp */
  10257     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36097C52: ret 8 */
  10258     RECOMP_REGS_OUT();
  10259 }
  10260 
  10261 void sub_36097C60(void) {
  10262     int _fpu_cmp = 0;
  10263     uint32_t _cf = 0;
  10264     int _df = 1;
  10265     uint32_t _flag_k = FK_NONE;
  10266     uint32_t _flag_a = 0, _flag_b = 0;
  10267     uint32_t _itail_tgt = 0;
  10268     RECOMP_REGS_LOCALS
  10269     RECOMP_ENTER(0x36097C60u);
  10270 
  10271 L_36097C60:
  10272     eax = MEM32(ecx); /* 0x36097C60: mov eax, dword ptr [ecx] */
  10273     RECOMP_ICALL(MEM32(eax + 0x120)); /* 0x36097C62: call dword ptr [eax + 0x120] */
  10274     RECOMP_FLAGS_IN();
  10275     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097C68: ret 4 */
  10276     RECOMP_REGS_OUT();
  10277 }
  10278 
  10279 void sub_36097C70(void) {
  10280     int _fpu_cmp = 0;
  10281     uint32_t _cf = 0;
  10282     int _df = 1;
  10283     uint32_t _flag_k = FK_NONE;
  10284     uint32_t _flag_a = 0, _flag_b = 0;
  10285     uint32_t _itail_tgt = 0;
  10286     RECOMP_REGS_LOCALS
  10287     RECOMP_ENTER(0x36097C70u);
  10288 
  10289 L_36097C70:
  10290     eax = MEM32(ecx); /* 0x36097C70: mov eax, dword ptr [ecx] */
  10291     RECOMP_ICALL(MEM32(eax + 0x124)); /* 0x36097C72: call dword ptr [eax + 0x124] */
  10292     RECOMP_FLAGS_IN();
  10293     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097C78: ret 4 */
  10294     RECOMP_REGS_OUT();
  10295 }
  10296 
  10297 void sub_36097C80(void) {
  10298     int _fpu_cmp = 0;
  10299     uint32_t _cf = 0;
  10300     int _df = 1;
  10301     uint32_t _flag_k = FK_NONE;
  10302     uint32_t _flag_a = 0, _flag_b = 0;
  10303     uint32_t _itail_tgt = 0;
  10304     RECOMP_REGS_LOCALS
  10305     RECOMP_ENTER(0x36097C80u);
  10306 
  10307     goto L_36097C80;
  10308 L_36097330:
  10309     PUSH32(esp, ebp); /* 0x36097330: push ebp */
  10310     ebp = esp; /* 0x36097331: mov ebp, esp */
  10311     PUSH32(esp, esi); /* 0x36097333: push esi */
  10312     esi = ecx; /* 0x36097334: mov esi, ecx */
  10313     RECOMP_ICALL(0x36097440u); /* 0x36097336: call 0x36097440 */ /* not lifted */
  10314     RECOMP_FLAGS_IN();
  10315     /* test MEM8(ebp + 0x8), 1 */ /* 0x3609733B: test byte ptr [ebp + 8], 1 */
  10316     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  10317     _cf = 0;
  10318     _flag_k = FK_NARROW(FK_TEST, 24);
  10319     if (TEST_Z(_flag_a, _flag_b)) goto L_3609734A; /* 0x3609733F: je 0x3609734a */
  10320 L_36097341:
  10321     PUSH32(esp, esi); /* 0x36097341: push esi */
  10322     RECOMP_ICALL(0x3615FCC4u); /* 0x36097342: call 0x3615fcc4 */ /* not lifted */
  10323     RECOMP_FLAGS_IN();
  10324     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10325     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10326     esp = esp + 4; /* 0x36097347: add esp, 4 */
  10327     _flag_k = FK_ADD;
  10328 L_3609734A:
  10329     eax = esi; /* 0x3609734A: mov eax, esi */
  10330     esi = POP32_VAL(esp); /* 0x3609734C: pop esi */
  10331     ebp = POP32_VAL(esp); /* 0x3609734D: pop ebp */
  10332     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609734E: ret 4 */
  10333 L_36097C80:
  10334     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
  10335     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10336     ecx = ecx - 8; /* 0x36097C80: sub ecx, 8 */
  10337     _flag_k = FK_CMP;
  10338     RECOMP_BACKEDGE();
  10339     goto L_36097330; /* 0x36097C83: jmp 0x36097330 */
  10340     { RECOMP_REGS_OUT(); return; } /* end of function */
  10341     RECOMP_REGS_OUT();
  10342 }
  10343 
  10344 void sub_36097C90(void) {
  10345     int _fpu_cmp = 0;
  10346     uint32_t _cf = 0;
  10347     int _df = 1;
  10348     uint32_t _flag_k = FK_NONE;
  10349     uint32_t _flag_a = 0, _flag_b = 0;
  10350     uint32_t _itail_tgt = 0;
  10351     RECOMP_REGS_LOCALS
  10352     RECOMP_ENTER(0x36097C90u);
  10353 
  10354     goto L_36097C90;
  10355 L_36097330:
  10356     PUSH32(esp, ebp); /* 0x36097330: push ebp */
  10357     ebp = esp; /* 0x36097331: mov ebp, esp */
  10358     PUSH32(esp, esi); /* 0x36097333: push esi */
  10359     esi = ecx; /* 0x36097334: mov esi, ecx */
  10360     RECOMP_ICALL(0x36097440u); /* 0x36097336: call 0x36097440 */ /* not lifted */
  10361     RECOMP_FLAGS_IN();
  10362     /* test MEM8(ebp + 0x8), 1 */ /* 0x3609733B: test byte ptr [ebp + 8], 1 */
  10363     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  10364     _cf = 0;
  10365     _flag_k = FK_NARROW(FK_TEST, 24);
  10366     if (TEST_Z(_flag_a, _flag_b)) goto L_3609734A; /* 0x3609733F: je 0x3609734a */
  10367 L_36097341:
  10368     PUSH32(esp, esi); /* 0x36097341: push esi */
  10369     RECOMP_ICALL(0x3615FCC4u); /* 0x36097342: call 0x3615fcc4 */ /* not lifted */
  10370     RECOMP_FLAGS_IN();
  10371     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10372     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10373     esp = esp + 4; /* 0x36097347: add esp, 4 */
  10374     _flag_k = FK_ADD;
  10375 L_3609734A:
  10376     eax = esi; /* 0x3609734A: mov eax, esi */
  10377     esi = POP32_VAL(esp); /* 0x3609734C: pop esi */
  10378     ebp = POP32_VAL(esp); /* 0x3609734D: pop ebp */
  10379     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609734E: ret 4 */
  10380 L_36097C90:
  10381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u);
  10382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10383     ecx = ecx - 0x40u; /* 0x36097C90: sub ecx, 0x40 */
  10384     _flag_k = FK_CMP;
  10385     RECOMP_BACKEDGE();
  10386     goto L_36097330; /* 0x36097C93: jmp 0x36097330 */
  10387     { RECOMP_REGS_OUT(); return; } /* end of function */
  10388     RECOMP_REGS_OUT();
  10389 }
  10390 
  10391 void sub_36097CA0(void) {
  10392     int _fpu_cmp = 0;
  10393     uint32_t _cf = 0;
  10394     int _df = 1;
  10395     uint32_t _flag_k = FK_NONE;
  10396     uint32_t _flag_a = 0, _flag_b = 0;
  10397     uint32_t _itail_tgt = 0;
  10398     RECOMP_REGS_LOCALS
  10399     RECOMP_ENTER(0x36097CA0u);
  10400 
  10401     goto L_36097CA0;
  10402 L_36097330:
  10403     PUSH32(esp, ebp); /* 0x36097330: push ebp */
  10404     ebp = esp; /* 0x36097331: mov ebp, esp */
  10405     PUSH32(esp, esi); /* 0x36097333: push esi */
  10406     esi = ecx; /* 0x36097334: mov esi, ecx */
  10407     RECOMP_ICALL(0x36097440u); /* 0x36097336: call 0x36097440 */ /* not lifted */
  10408     RECOMP_FLAGS_IN();
  10409     /* test MEM8(ebp + 0x8), 1 */ /* 0x3609733B: test byte ptr [ebp + 8], 1 */
  10410     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  10411     _cf = 0;
  10412     _flag_k = FK_NARROW(FK_TEST, 24);
  10413     if (TEST_Z(_flag_a, _flag_b)) goto L_3609734A; /* 0x3609733F: je 0x3609734a */
  10414 L_36097341:
  10415     PUSH32(esp, esi); /* 0x36097341: push esi */
  10416     RECOMP_ICALL(0x3615FCC4u); /* 0x36097342: call 0x3615fcc4 */ /* not lifted */
  10417     RECOMP_FLAGS_IN();
  10418     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10419     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10420     esp = esp + 4; /* 0x36097347: add esp, 4 */
  10421     _flag_k = FK_ADD;
  10422 L_3609734A:
  10423     eax = esi; /* 0x3609734A: mov eax, esi */
  10424     esi = POP32_VAL(esp); /* 0x3609734C: pop esi */
  10425     ebp = POP32_VAL(esp); /* 0x3609734D: pop ebp */
  10426     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609734E: ret 4 */
  10427 L_36097CA0:
  10428     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu);
  10429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10430     ecx = ecx - 0x4Cu; /* 0x36097CA0: sub ecx, 0x4c */
  10431     _flag_k = FK_CMP;
  10432     RECOMP_BACKEDGE();
  10433     goto L_36097330; /* 0x36097CA3: jmp 0x36097330 */
  10434     { RECOMP_REGS_OUT(); return; } /* end of function */
  10435     RECOMP_REGS_OUT();
  10436 }
  10437 
  10438 void sub_36097CB0(void) {
  10439     int _fpu_cmp = 0;
  10440     uint32_t _cf = 0;
  10441     int _df = 1;
  10442     uint32_t _flag_k = FK_NONE;
  10443     uint32_t _flag_a = 0, _flag_b = 0;
  10444     uint32_t _itail_tgt = 0;
  10445     RECOMP_REGS_LOCALS
  10446     RECOMP_ENTER(0x36097CB0u);
  10447 
  10448     goto L_36097CB0;
  10449 L_36097330:
  10450     PUSH32(esp, ebp); /* 0x36097330: push ebp */
  10451     ebp = esp; /* 0x36097331: mov ebp, esp */
  10452     PUSH32(esp, esi); /* 0x36097333: push esi */
  10453     esi = ecx; /* 0x36097334: mov esi, ecx */
  10454     RECOMP_ICALL(0x36097440u); /* 0x36097336: call 0x36097440 */ /* not lifted */
  10455     RECOMP_FLAGS_IN();
  10456     /* test MEM8(ebp + 0x8), 1 */ /* 0x3609733B: test byte ptr [ebp + 8], 1 */
  10457     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  10458     _cf = 0;
  10459     _flag_k = FK_NARROW(FK_TEST, 24);
  10460     if (TEST_Z(_flag_a, _flag_b)) goto L_3609734A; /* 0x3609733F: je 0x3609734a */
  10461 L_36097341:
  10462     PUSH32(esp, esi); /* 0x36097341: push esi */
  10463     RECOMP_ICALL(0x3615FCC4u); /* 0x36097342: call 0x3615fcc4 */ /* not lifted */
  10464     RECOMP_FLAGS_IN();
  10465     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10466     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10467     esp = esp + 4; /* 0x36097347: add esp, 4 */
  10468     _flag_k = FK_ADD;
  10469 L_3609734A:
  10470     eax = esi; /* 0x3609734A: mov eax, esi */
  10471     esi = POP32_VAL(esp); /* 0x3609734C: pop esi */
  10472     ebp = POP32_VAL(esp); /* 0x3609734D: pop ebp */
  10473     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609734E: ret 4 */
  10474 L_36097CB0:
  10475     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x80u);
  10476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10477     ecx = ecx - 0x80u; /* 0x36097CB0: sub ecx, 0x80 */
  10478     _flag_k = FK_CMP;
  10479     RECOMP_BACKEDGE();
  10480     goto L_36097330; /* 0x36097CB6: jmp 0x36097330 */
  10481     { RECOMP_REGS_OUT(); return; } /* end of function */
  10482     RECOMP_REGS_OUT();
  10483 }
  10484 
  10485 void sub_36097CC0(void) {
  10486     int _fpu_cmp = 0;
  10487     uint32_t _cf = 0;
  10488     int _df = 1;
  10489     uint32_t _flag_k = FK_NONE;
  10490     uint32_t _flag_a = 0, _flag_b = 0;
  10491     uint32_t _itail_tgt = 0;
  10492     RECOMP_REGS_LOCALS
  10493     RECOMP_ENTER(0x36097CC0u);
  10494 
  10495     goto L_36097CC0;
  10496 L_36097330:
  10497     PUSH32(esp, ebp); /* 0x36097330: push ebp */
  10498     ebp = esp; /* 0x36097331: mov ebp, esp */
  10499     PUSH32(esp, esi); /* 0x36097333: push esi */
  10500     esi = ecx; /* 0x36097334: mov esi, ecx */
  10501     RECOMP_ICALL(0x36097440u); /* 0x36097336: call 0x36097440 */ /* not lifted */
  10502     RECOMP_FLAGS_IN();
  10503     /* test MEM8(ebp + 0x8), 1 */ /* 0x3609733B: test byte ptr [ebp + 8], 1 */
  10504     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  10505     _cf = 0;
  10506     _flag_k = FK_NARROW(FK_TEST, 24);
  10507     if (TEST_Z(_flag_a, _flag_b)) goto L_3609734A; /* 0x3609733F: je 0x3609734a */
  10508 L_36097341:
  10509     PUSH32(esp, esi); /* 0x36097341: push esi */
  10510     RECOMP_ICALL(0x3615FCC4u); /* 0x36097342: call 0x3615fcc4 */ /* not lifted */
  10511     RECOMP_FLAGS_IN();
  10512     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10513     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10514     esp = esp + 4; /* 0x36097347: add esp, 4 */
  10515     _flag_k = FK_ADD;
  10516 L_3609734A:
  10517     eax = esi; /* 0x3609734A: mov eax, esi */
  10518     esi = POP32_VAL(esp); /* 0x3609734C: pop esi */
  10519     ebp = POP32_VAL(esp); /* 0x3609734D: pop ebp */
  10520     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609734E: ret 4 */
  10521 L_36097CC0:
  10522     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu);
  10523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10524     ecx = ecx - 0x8Cu; /* 0x36097CC0: sub ecx, 0x8c */
  10525     _flag_k = FK_CMP;
  10526     RECOMP_BACKEDGE();
  10527     goto L_36097330; /* 0x36097CC6: jmp 0x36097330 */
  10528     { RECOMP_REGS_OUT(); return; } /* end of function */
  10529     RECOMP_REGS_OUT();
  10530 }
  10531 
  10532 void sub_36097CD0(void) {
  10533     int _fpu_cmp = 0;
  10534     uint32_t _cf = 0;
  10535     int _df = 1;
  10536     uint32_t _flag_k = FK_NONE;
  10537     uint32_t _flag_a = 0, _flag_b = 0;
  10538     uint32_t _itail_tgt = 0;
  10539     RECOMP_REGS_LOCALS
  10540     RECOMP_ENTER(0x36097CD0u);
  10541 
  10542     goto L_36097CD0;
  10543 L_36097330:
  10544     PUSH32(esp, ebp); /* 0x36097330: push ebp */
  10545     ebp = esp; /* 0x36097331: mov ebp, esp */
  10546     PUSH32(esp, esi); /* 0x36097333: push esi */
  10547     esi = ecx; /* 0x36097334: mov esi, ecx */
  10548     RECOMP_ICALL(0x36097440u); /* 0x36097336: call 0x36097440 */ /* not lifted */
  10549     RECOMP_FLAGS_IN();
  10550     /* test MEM8(ebp + 0x8), 1 */ /* 0x3609733B: test byte ptr [ebp + 8], 1 */
  10551     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  10552     _cf = 0;
  10553     _flag_k = FK_NARROW(FK_TEST, 24);
  10554     if (TEST_Z(_flag_a, _flag_b)) goto L_3609734A; /* 0x3609733F: je 0x3609734a */
  10555 L_36097341:
  10556     PUSH32(esp, esi); /* 0x36097341: push esi */
  10557     RECOMP_ICALL(0x3615FCC4u); /* 0x36097342: call 0x3615fcc4 */ /* not lifted */
  10558     RECOMP_FLAGS_IN();
  10559     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10560     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10561     esp = esp + 4; /* 0x36097347: add esp, 4 */
  10562     _flag_k = FK_ADD;
  10563 L_3609734A:
  10564     eax = esi; /* 0x3609734A: mov eax, esi */
  10565     esi = POP32_VAL(esp); /* 0x3609734C: pop esi */
  10566     ebp = POP32_VAL(esp); /* 0x3609734D: pop ebp */
  10567     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609734E: ret 4 */
  10568 L_36097CD0:
  10569     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xACu);
  10570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10571     ecx = ecx - 0xACu; /* 0x36097CD0: sub ecx, 0xac */
  10572     _flag_k = FK_CMP;
  10573     RECOMP_BACKEDGE();
  10574     goto L_36097330; /* 0x36097CD6: jmp 0x36097330 */
  10575     { RECOMP_REGS_OUT(); return; } /* end of function */
  10576     RECOMP_REGS_OUT();
  10577 }
  10578 
  10579 void sub_36097CE0(void) {
  10580     int _fpu_cmp = 0;
  10581     uint32_t _cf = 0;
  10582     int _df = 1;
  10583     uint32_t _flag_k = FK_NONE;
  10584     uint32_t _flag_a = 0, _flag_b = 0;
  10585     uint32_t _itail_tgt = 0;
  10586     RECOMP_REGS_LOCALS
  10587     RECOMP_ENTER(0x36097CE0u);
  10588 
  10589 L_36097CE0:
  10590     PUSH32(esp, ebp); /* 0x36097CE0: push ebp */
  10591     ebp = esp; /* 0x36097CE1: mov ebp, esp */
  10592     PUSH32(esp, 0xFFFFFFFFu); /* 0x36097CE3: push -1 */
  10593     PUSH32(esp, 0x36166628u); /* 0x36097CE5: push 0x36166628 */
  10594     eax = MEM32(FS_BASE + (0)); /* 0x36097CEA: mov eax, dword ptr fs:[0] */
  10595     PUSH32(esp, eax); /* 0x36097CF0: push eax */
  10596     MEM32(FS_BASE + (0)) = esp; /* 0x36097CF1: mov dword ptr fs:[0], esp */
  10597     PUSH32(esp, ecx); /* 0x36097CF8: push ecx */
  10598     eax = MEM32(ebp + 0xC); /* 0x36097CF9: mov eax, dword ptr [ebp + 0xc] */
  10599     PUSH32(esp, esi); /* 0x36097CFC: push esi */
  10600     esi = ecx; /* 0x36097CFD: mov esi, ecx */
  10601     ecx = MEM32(ebp + 0x8); /* 0x36097CFF: mov ecx, dword ptr [ebp + 8] */
  10602     PUSH32(esp, eax); /* 0x36097D02: push eax */
  10603     PUSH32(esp, ecx); /* 0x36097D03: push ecx */
  10604     ecx = esi; /* 0x36097D04: mov ecx, esi */
  10605     MEM32(ebp + (-0x10)) = esi; /* 0x36097D06: mov dword ptr [ebp - 0x10], esi */
  10606     RECOMP_ICALL(0x360A8810u); /* 0x36097D09: call 0x360a8810 */ /* not lifted */
  10607     RECOMP_FLAGS_IN();
  10608     MEM32(esi + 0x1C0) = 0x3617344Cu; /* 0x36097D0E: mov dword ptr [esi + 0x1c0], 0x3617344c */
  10609     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10610     eax = 0; /* 0x36097D18: xor eax, eax */
  10611     _cf = 0;
  10612     _flag_k = FK_TEST;
  10613     PUSH32(esp, 0x000FDE86u); /* 0x36097D1A: push 0xfde86 */
  10614     PUSH32(esp, 0x19u); /* 0x36097D1F: push 0x19 */
  10615     ecx = esi; /* 0x36097D21: mov ecx, esi */
  10616     MEM32(ebp + (-0x4)) = eax; /* 0x36097D23: mov dword ptr [ebp - 4], eax */
  10617     MEM8(esi + 0x1C4) = (uint8_t)(LO8(eax)); /* 0x36097D26: mov byte ptr [esi + 0x1c4], al */
  10618     MEM32(esi + 0x1C8) = eax; /* 0x36097D2C: mov dword ptr [esi + 0x1c8], eax */
  10619     MEM32(esi + 0x1CC) = eax; /* 0x36097D32: mov dword ptr [esi + 0x1cc], eax */
  10620     MEM8(esi + 0x1D4) = (uint8_t)(LO8(eax)); /* 0x36097D38: mov byte ptr [esi + 0x1d4], al */
  10621     MEM32(esi) = 0x3617330Cu; /* 0x36097D3E: mov dword ptr [esi], 0x3617330c */
  10622     MEM32(esi + 0x8) = 0x361732FCu; /* 0x36097D44: mov dword ptr [esi + 8], 0x361732fc */
  10623     MEM32(esi + 0x40) = 0x361732F4u; /* 0x36097D4B: mov dword ptr [esi + 0x40], 0x361732f4 */
  10624     MEM32(esi + 0x4C) = 0x361732ECu; /* 0x36097D52: mov dword ptr [esi + 0x4c], 0x361732ec */
  10625     MEM32(esi + 0x80) = 0x361732D8u; /* 0x36097D59: mov dword ptr [esi + 0x80], 0x361732d8 */
  10626     MEM32(esi + 0x8C) = 0x36173234u; /* 0x36097D63: mov dword ptr [esi + 0x8c], 0x36173234 */
  10627     MEM32(esi + 0xA8) = 0x3617321Cu; /* 0x36097D6D: mov dword ptr [esi + 0xa8], 0x3617321c */
  10628     MEM32(esi + 0xAC) = 0x36173214u; /* 0x36097D77: mov dword ptr [esi + 0xac], 0x36173214 */
  10629     MEM32(esi + 0x1C0) = 0x36173204u; /* 0x36097D81: mov dword ptr [esi + 0x1c0], 0x36173204 */
  10630     RECOMP_ICALL(0x3609F740u); /* 0x36097D8B: call 0x3609f740 */ /* not lifted */
  10631     RECOMP_FLAGS_IN();
  10632     PUSH32(esp, 0x361C6048u); /* 0x36097D90: push 0x361c6048 */
  10633     RECOMP_ICALL(0x3601C590u); /* 0x36097D95: call 0x3601c590 */ /* not lifted */
  10634     RECOMP_FLAGS_IN();
  10635     ecx = eax; /* 0x36097D9A: mov ecx, eax */
  10636     RECOMP_ICALL(0x3601CBC0u); /* 0x36097D9C: call 0x3601cbc0 */ /* not lifted */
  10637     RECOMP_FLAGS_IN();
  10638     PUSH32(esp, 0x361C602Cu); /* 0x36097DA1: push 0x361c602c */
  10639     MEM32(esi + 0x1C8) = eax; /* 0x36097DA6: mov dword ptr [esi + 0x1c8], eax */
  10640     RECOMP_ICALL(0x3601C590u); /* 0x36097DAC: call 0x3601c590 */ /* not lifted */
  10641     RECOMP_FLAGS_IN();
  10642     ecx = eax; /* 0x36097DB1: mov ecx, eax */
  10643     RECOMP_ICALL(0x3601CBC0u); /* 0x36097DB3: call 0x3601cbc0 */ /* not lifted */
  10644     RECOMP_FLAGS_IN();
  10645     PUSH32(esp, 0x361C6008u); /* 0x36097DB8: push 0x361c6008 */
  10646     MEM32(esi + 0x1CC) = eax; /* 0x36097DBD: mov dword ptr [esi + 0x1cc], eax */
  10647     RECOMP_ICALL(0x3601C590u); /* 0x36097DC3: call 0x3601c590 */ /* not lifted */
  10648     RECOMP_FLAGS_IN();
  10649     ecx = eax; /* 0x36097DC8: mov ecx, eax */
  10650     RECOMP_ICALL(0x3601CBC0u); /* 0x36097DCA: call 0x3601cbc0 */ /* not lifted */
  10651     RECOMP_FLAGS_IN();
  10652     PUSH32(esp, 1); /* 0x36097DCF: push 1 */
  10653     PUSH32(esp, 0x24u); /* 0x36097DD1: push 0x24 */
  10654     ecx = esi; /* 0x36097DD3: mov ecx, esi */
  10655     MEM32(esi + 0x1D0) = eax; /* 0x36097DD5: mov dword ptr [esi + 0x1d0], eax */
  10656     RECOMP_ICALL(0x3609F740u); /* 0x36097DDB: call 0x3609f740 */ /* not lifted */
  10657     RECOMP_FLAGS_IN();
  10658     ecx = MEM32(ebp + (-0xC)); /* 0x36097DE0: mov ecx, dword ptr [ebp - 0xc] */
  10659     eax = esi; /* 0x36097DE3: mov eax, esi */
  10660     esi = POP32_VAL(esp); /* 0x36097DE5: pop esi */
  10661     MEM32(FS_BASE + (0)) = ecx; /* 0x36097DE6: mov dword ptr fs:[0], ecx */
  10662     esp = ebp; /* 0x36097DED: mov esp, ebp */
  10663     ebp = POP32_VAL(esp); /* 0x36097DEF: pop ebp */
  10664     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36097DF0: ret 8 */
  10665     RECOMP_REGS_OUT();
  10666 }
  10667 
  10668 void sub_36097D52(void) {
  10669     int _fpu_cmp = 0;
  10670     uint32_t _cf = 0;
  10671     int _df = 1;
  10672     uint32_t _flag_k = FK_NONE;
  10673     uint32_t _flag_a = 0, _flag_b = 0;
  10674     uint32_t _itail_tgt = 0;
  10675     RECOMP_REGS_LOCALS
  10676     RECOMP_ENTER(0x36097D52u);
  10677 
  10678 L_36097D52:
  10679     MEM32(esi + 0x4C) = 0x361732ECu; /* 0x36097D52: mov dword ptr [esi + 0x4c], 0x361732ec */
  10680     MEM32(esi + 0x80) = 0x361732D8u; /* 0x36097D59: mov dword ptr [esi + 0x80], 0x361732d8 */
  10681     MEM32(esi + 0x8C) = 0x36173234u; /* 0x36097D63: mov dword ptr [esi + 0x8c], 0x36173234 */
  10682     MEM32(esi + 0xA8) = 0x3617321Cu; /* 0x36097D6D: mov dword ptr [esi + 0xa8], 0x3617321c */
  10683     MEM32(esi + 0xAC) = 0x36173214u; /* 0x36097D77: mov dword ptr [esi + 0xac], 0x36173214 */
  10684     MEM32(esi + 0x1C0) = 0x36173204u; /* 0x36097D81: mov dword ptr [esi + 0x1c0], 0x36173204 */
  10685     RECOMP_ICALL(0x3609F740u); /* 0x36097D8B: call 0x3609f740 */ /* not lifted */
  10686     RECOMP_FLAGS_IN();
  10687     PUSH32(esp, 0x361C6048u); /* 0x36097D90: push 0x361c6048 */
  10688     RECOMP_ICALL(0x3601C590u); /* 0x36097D95: call 0x3601c590 */ /* not lifted */
  10689     RECOMP_FLAGS_IN();
  10690     ecx = eax; /* 0x36097D9A: mov ecx, eax */
  10691     RECOMP_ICALL(0x3601CBC0u); /* 0x36097D9C: call 0x3601cbc0 */ /* not lifted */
  10692     RECOMP_FLAGS_IN();
  10693     PUSH32(esp, 0x361C602Cu); /* 0x36097DA1: push 0x361c602c */
  10694     MEM32(esi + 0x1C8) = eax; /* 0x36097DA6: mov dword ptr [esi + 0x1c8], eax */
  10695     RECOMP_ICALL(0x3601C590u); /* 0x36097DAC: call 0x3601c590 */ /* not lifted */
  10696     RECOMP_FLAGS_IN();
  10697     ecx = eax; /* 0x36097DB1: mov ecx, eax */
  10698     RECOMP_ICALL(0x3601CBC0u); /* 0x36097DB3: call 0x3601cbc0 */ /* not lifted */
  10699     RECOMP_FLAGS_IN();
  10700     PUSH32(esp, 0x361C6008u); /* 0x36097DB8: push 0x361c6008 */
  10701     MEM32(esi + 0x1CC) = eax; /* 0x36097DBD: mov dword ptr [esi + 0x1cc], eax */
  10702     RECOMP_ICALL(0x3601C590u); /* 0x36097DC3: call 0x3601c590 */ /* not lifted */
  10703     RECOMP_FLAGS_IN();
  10704     ecx = eax; /* 0x36097DC8: mov ecx, eax */
  10705     RECOMP_ICALL(0x3601CBC0u); /* 0x36097DCA: call 0x3601cbc0 */ /* not lifted */
  10706     RECOMP_FLAGS_IN();
  10707     PUSH32(esp, 1); /* 0x36097DCF: push 1 */
  10708     PUSH32(esp, 0x24u); /* 0x36097DD1: push 0x24 */
  10709     ecx = esi; /* 0x36097DD3: mov ecx, esi */
  10710     MEM32(esi + 0x1D0) = eax; /* 0x36097DD5: mov dword ptr [esi + 0x1d0], eax */
  10711     RECOMP_ICALL(0x3609F740u); /* 0x36097DDB: call 0x3609f740 */ /* not lifted */
  10712     RECOMP_FLAGS_IN();
  10713     ecx = MEM32(ebp + (-0xC)); /* 0x36097DE0: mov ecx, dword ptr [ebp - 0xc] */
  10714     eax = esi; /* 0x36097DE3: mov eax, esi */
  10715     esi = POP32_VAL(esp); /* 0x36097DE5: pop esi */
  10716     MEM32(FS_BASE + (0)) = ecx; /* 0x36097DE6: mov dword ptr fs:[0], ecx */
  10717     esp = ebp; /* 0x36097DED: mov esp, ebp */
  10718     ebp = POP32_VAL(esp); /* 0x36097DEF: pop ebp */
  10719     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36097DF0: ret 8 */
  10720     RECOMP_REGS_OUT();
  10721 }
  10722 
  10723 void sub_36097E00(void) {
  10724     int _fpu_cmp = 0;
  10725     uint32_t _cf = 0;
  10726     int _df = 1;
  10727     uint32_t _flag_k = FK_NONE;
  10728     uint32_t _flag_a = 0, _flag_b = 0;
  10729     uint32_t _itail_tgt = 0;
  10730     RECOMP_REGS_LOCALS
  10731     RECOMP_ENTER(0x36097E00u);
  10732 
  10733 L_36097E00:
  10734     PUSH32(esp, ebp); /* 0x36097E00: push ebp */
  10735     ebp = esp; /* 0x36097E01: mov ebp, esp */
  10736     PUSH32(esp, esi); /* 0x36097E03: push esi */
  10737     esi = ecx; /* 0x36097E04: mov esi, ecx */
  10738     RECOMP_ICALL(0x3608B140u); /* 0x36097E06: call 0x3608b140 */ /* not lifted */
  10739     RECOMP_FLAGS_IN();
  10740     /* test MEM8(ebp + 0x8), 1 */ /* 0x36097E0B: test byte ptr [ebp + 8], 1 */
  10741     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  10742     _cf = 0;
  10743     _flag_k = FK_NARROW(FK_TEST, 24);
  10744     if (TEST_Z(_flag_a, _flag_b)) goto L_36097E1A; /* 0x36097E0F: je 0x36097e1a */
  10745 L_36097E11:
  10746     PUSH32(esp, esi); /* 0x36097E11: push esi */
  10747     RECOMP_ICALL(0x3615FCC4u); /* 0x36097E12: call 0x3615fcc4 */ /* not lifted */
  10748     RECOMP_FLAGS_IN();
  10749     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10750     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10751     esp = esp + 4; /* 0x36097E17: add esp, 4 */
  10752     _flag_k = FK_ADD;
  10753 L_36097E1A:
  10754     eax = esi; /* 0x36097E1A: mov eax, esi */
  10755     esi = POP32_VAL(esp); /* 0x36097E1C: pop esi */
  10756     ebp = POP32_VAL(esp); /* 0x36097E1D: pop ebp */
  10757     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097E1E: ret 4 */
  10758     RECOMP_REGS_OUT();
  10759 }
  10760 
  10761 void sub_36097E30(void) {
  10762     int _fpu_cmp = 0;
  10763     uint32_t _cf = 0;
  10764     int _df = 1;
  10765     uint32_t _flag_k = FK_NONE;
  10766     uint32_t _flag_a = 0, _flag_b = 0;
  10767     uint32_t _itail_tgt = 0;
  10768     RECOMP_REGS_LOCALS
  10769     RECOMP_ENTER(0x36097E30u);
  10770 
  10771 L_36097E30:
  10772     PUSH32(esp, ebp); /* 0x36097E30: push ebp */
  10773     ebp = esp; /* 0x36097E31: mov ebp, esp */
  10774     PUSH32(esp, ecx); /* 0x36097E33: push ecx */
  10775     eax = MEM32(ecx + (-0x78)); /* 0x36097E34: mov eax, dword ptr [ecx - 0x78] */
  10776     edx = MEM32(eax + 0x8); /* 0x36097E37: mov edx, dword ptr [eax + 8] */
  10777     /* test edx, edx */ /* 0x36097E3A: test edx, edx */
  10778     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  10779     _cf = 0;
  10780     _flag_k = FK_TEST;
  10781     MEM32(ebp + (-0x4)) = ecx; /* 0x36097E3C: mov dword ptr [ebp - 4], ecx */
  10782     if (TEST_Z(_flag_a, _flag_b)) goto L_36097ECA; /* 0x36097E3F: je 0x36097eca */
  10783 L_36097E45:
  10784     eax = MEM32(eax + 0x4); /* 0x36097E45: mov eax, dword ptr [eax + 4] */
  10785     PUSH32(esp, ebx); /* 0x36097E48: push ebx */
  10786     PUSH32(esp, esi); /* 0x36097E49: push esi */
  10787     PUSH32(esp, edi); /* 0x36097E4A: push edi */
  10788     edi = MEM32(eax); /* 0x36097E4B: mov edi, dword ptr [eax] */
  10789     /* cmp edi, eax */ /* 0x36097E4D: cmp edi, eax */
  10790     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  10791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10792     _flag_k = FK_CMP;
  10793     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097E91; /* 0x36097E4F: je 0x36097e91 */
  10794 L_36097E51:
  10795     ebx = ecx + (-0x8C); /* 0x36097E51: lea ebx, [ecx - 0x8c] */
  10796 L_36097E57:
  10797     esi = MEM32(edi + 0x8); /* 0x36097E57: mov esi, dword ptr [edi + 8] */
  10798     eax = MEM32(ebx); /* 0x36097E5A: mov eax, dword ptr [ebx] */
  10799     PUSH32(esp, esi); /* 0x36097E5C: push esi */
  10800     ecx = ebx; /* 0x36097E5D: mov ecx, ebx */
  10801     RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x36097E5F: call dword ptr [eax + 0x24] */
  10802     RECOMP_FLAGS_IN();
  10803     ecx = MEM32(esi + 0x8); /* 0x36097E62: mov ecx, dword ptr [esi + 8] */
  10804     PUSH32(esp, ecx); /* 0x36097E65: push ecx */
  10805     ecx = ebx; /* 0x36097E66: mov ecx, ebx */
  10806     RECOMP_ICALL(0x36002750u); /* 0x36097E68: call 0x36002750 */ /* not lifted */
  10807     RECOMP_FLAGS_IN();
  10808     PUSH32(esp, eax); /* 0x36097E6D: push eax */
  10809     ecx = ebx; /* 0x36097E6E: mov ecx, ebx */
  10810     RECOMP_ICALL(0x3600C340u); /* 0x36097E70: call 0x3600c340 */ /* not lifted */
  10811     RECOMP_FLAGS_IN();
  10812     /* test esi, esi */ /* 0x36097E75: test esi, esi */
  10813     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  10814     _cf = 0;
  10815     _flag_k = FK_TEST;
  10816     if (TEST_Z(_flag_a, _flag_b)) goto L_36097E82; /* 0x36097E77: je 0x36097e82 */
  10817 L_36097E79:
  10818     PUSH32(esp, esi); /* 0x36097E79: push esi */
  10819     RECOMP_ICALL(0x3615FCC4u); /* 0x36097E7A: call 0x3615fcc4 */ /* not lifted */
  10820     RECOMP_FLAGS_IN();
  10821     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10822     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10823     esp = esp + 4; /* 0x36097E7F: add esp, 4 */
  10824     _flag_k = FK_ADD;
  10825 L_36097E82:
  10826     edx = MEM32(ebp + (-0x4)); /* 0x36097E82: mov edx, dword ptr [ebp - 4] */
  10827     eax = MEM32(edx + (-0x78)); /* 0x36097E85: mov eax, dword ptr [edx - 0x78] */
  10828     edi = MEM32(edi); /* 0x36097E88: mov edi, dword ptr [edi] */
  10829     /* cmp edi, MEM32(eax + 0x4) */ /* 0x36097E8A: cmp edi, dword ptr [eax + 4] */
  10830     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
  10831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10832     _flag_k = FK_CMP;
  10833     RECOMP_BACKEDGE();
  10834     if (CMP_NE(_flag_a, _flag_b)) goto L_36097E57; /* 0x36097E8D: jne 0x36097e57 */
  10835 L_36097E8F:
  10836     ecx = edx; /* 0x36097E8F: mov ecx, edx */
  10837 L_36097E91:
  10838     edi = MEM32(ecx + (-0x78)); /* 0x36097E91: mov edi, dword ptr [ecx - 0x78] */
  10839     ebx = MEM32(edi + 0x4); /* 0x36097E94: mov ebx, dword ptr [edi + 4] */
  10840     esi = MEM32(ebx); /* 0x36097E97: mov esi, dword ptr [ebx] */
  10841     /* cmp esi, ebx */ /* 0x36097E99: cmp esi, ebx */
  10842     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  10843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10844     _flag_k = FK_CMP;
  10845     if (CMP_EQ(_flag_a, _flag_b)) goto L_36097EC4; /* 0x36097E9B: je 0x36097ec4 */
  10846 L_36097E9D:
  10847     eax = esi; /* 0x36097E9D: mov eax, esi */
  10848     ecx = MEM32(eax + 0x4); /* 0x36097E9F: mov ecx, dword ptr [eax + 4] */
  10849     edx = MEM32(eax); /* 0x36097EA2: mov edx, dword ptr [eax] */
  10850     esi = MEM32(esi); /* 0x36097EA4: mov esi, dword ptr [esi] */
  10851     MEM32(ecx) = edx; /* 0x36097EA6: mov dword ptr [ecx], edx */
  10852     ecx = MEM32(eax); /* 0x36097EA8: mov ecx, dword ptr [eax] */
  10853     edx = MEM32(eax + 0x4); /* 0x36097EAA: mov edx, dword ptr [eax + 4] */
  10854     PUSH32(esp, eax); /* 0x36097EAD: push eax */
  10855     MEM32(ecx + 0x4) = edx; /* 0x36097EAE: mov dword ptr [ecx + 4], edx */
  10856     RECOMP_ICALL(0x3615FCC4u); /* 0x36097EB1: call 0x3615fcc4 */ /* not lifted */
  10857     RECOMP_FLAGS_IN();
  10858     ecx = MEM32(edi + 0x8); /* 0x36097EB6: mov ecx, dword ptr [edi + 8] */
  10859     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10860     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10861     esp = esp + 4; /* 0x36097EB9: add esp, 4 */
  10862     _flag_k = FK_ADD;
  10863     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10864     ecx = ecx - 1; /* 0x36097EBC: dec ecx */
  10865     _flag_k = FK_DEC;
  10866     /* cmp esi, ebx */ /* 0x36097EBD: cmp esi, ebx */
  10867     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  10868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10869     _flag_k = FK_CMP;
  10870     MEM32(edi + 0x8) = ecx; /* 0x36097EBF: mov dword ptr [edi + 8], ecx */
  10871     RECOMP_BACKEDGE();
  10872     if (CMP_NE(_flag_a, _flag_b)) goto L_36097E9D; /* 0x36097EC2: jne 0x36097e9d */
  10873 L_36097EC4:
  10874     ecx = MEM32(ebp + (-0x4)); /* 0x36097EC4: mov ecx, dword ptr [ebp - 4] */
  10875     edi = POP32_VAL(esp); /* 0x36097EC7: pop edi */
  10876     esi = POP32_VAL(esp); /* 0x36097EC8: pop esi */
  10877     ebx = POP32_VAL(esp); /* 0x36097EC9: pop ebx */
  10878 L_36097ECA:
  10879     RECOMP_ICALL(0x3609CE60u); /* 0x36097ECA: call 0x3609ce60 */ /* not lifted */
  10880     RECOMP_FLAGS_IN();
  10881     esp = ebp; /* 0x36097ECF: mov esp, ebp */
  10882     ebp = POP32_VAL(esp); /* 0x36097ED1: pop ebp */
  10883     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36097ED2: ret  */
  10884     RECOMP_REGS_OUT();
  10885 }
  10886 
  10887 void sub_36097EE0(void) {
  10888     int _fpu_cmp = 0;
  10889     uint32_t _cf = 0;
  10890     int _df = 1;
  10891     uint32_t _flag_k = FK_NONE;
  10892     uint32_t _flag_a = 0, _flag_b = 0;
  10893     uint32_t _itail_tgt = 0;
  10894     RECOMP_REGS_LOCALS
  10895     RECOMP_ENTER(0x36097EE0u);
  10896 
  10897 L_36097EE0:
  10898     PUSH32(esp, ebp); /* 0x36097EE0: push ebp */
  10899 L_36097EE1:
  10900     ebp = esp; /* 0x36097EE1: mov ebp, esp */
  10901 L_36097EE3:
  10902     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x8Cu);
  10903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10904     esp = esp - 0x8Cu; /* 0x36097EE3: sub esp, 0x8c */
  10905     _flag_k = FK_CMP;
  10906 L_36097EE9:
  10907     PUSH32(esp, ebx); /* 0x36097EE9: push ebx */
  10908 L_36097EEA:
  10909     ebx = MEM32(ebp + 0xC); /* 0x36097EEA: mov ebx, dword ptr [ebp + 0xc] */
  10910 L_36097EED:
  10911     PUSH32(esp, esi); /* 0x36097EED: push esi */
  10912 L_36097EEE:
  10913     PUSH32(esp, edi); /* 0x36097EEE: push edi */
  10914 L_36097EEF:
  10915     esi = ecx; /* 0x36097EEF: mov esi, ecx */
  10916 L_36097EF1:
  10917     eax = MEM32(esi); /* 0x36097EF1: mov eax, dword ptr [esi] */
  10918 L_36097EF3:
  10919     PUSH32(esp, ebx); /* 0x36097EF3: push ebx */
  10920 L_36097EF4:
  10921     RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x36097EF4: call dword ptr [eax + 0x24] */
  10922     RECOMP_FLAGS_IN();
  10923 L_36097EF7:
  10924     SET_LO8(ecx, MEM8(0x363033BC)); /* 0x36097EF7: mov cl, byte ptr [0x363033bc] */
  10925 L_36097EFD:
  10926     edx = MEM32(ebp + 0x8); /* 0x36097EFD: mov edx, dword ptr [ebp + 8] */
  10927 L_36097F00:
  10928     MEM8(ebp + (-0x8C)) = (uint8_t)(LO8(ecx)); /* 0x36097F00: mov byte ptr [ebp - 0x8c], cl */
  10929 L_36097F06:
  10930     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10931     eax = 0; /* 0x36097F06: xor eax, eax */
  10932     _cf = 0;
  10933     _flag_k = FK_TEST;
  10934 L_36097F08:
  10935     ecx = 0x1Fu; /* 0x36097F08: mov ecx, 0x1f */
  10936 L_36097F0D:
  10937     edi = ebp + (-0x8B); /* 0x36097F0D: lea edi, [ebp - 0x8b] */
  10938 L_36097F13:
  10939     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36097F13: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
  10940 L_36097F15:
  10941     MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x36097F15: stosw word ptr es:[edi], ax */
  10942 L_36097F17:
  10943     MEM8(edi) = LO8(eax); edi += _df; /* 0x36097F17: stosb byte ptr es:[edi], al */
  10944 L_36097F18:
  10945     eax = edx + (-0x6C); /* 0x36097F18: lea eax, [edx - 0x6c] */
  10946 L_36097F1B:
  10947     /* cmp eax, 0x20u */ /* 0x36097F1B: cmp eax, 0x20 */
  10948     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u);
  10949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10950     _flag_k = FK_CMP;
  10951 L_36097F1E:
  10952     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36098110; /* 0x36097F1E: ja 0x36098110 */
  10953 L_36097F24:
  10954     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10955     ecx = 0; /* 0x36097F24: xor ecx, ecx */
  10956     _cf = 0;
  10957     _flag_k = FK_TEST;
  10958 L_36097F26:
  10959     SET_LO8(ecx, MEM8(eax + 0x36098144)); /* 0x36097F26: mov cl, byte ptr [eax + 0x36098144] */
  10960 L_36097F2C:
  10961     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x36098130)); goto _ljump; }
  10962 L_36097F33:
  10963     edx = MEM32(esi); /* 0x36097F33: mov edx, dword ptr [esi] */
  10964 L_36097F35:
  10965     ecx = esi; /* 0x36097F35: mov ecx, esi */
  10966 L_36097F37:
  10967     RECOMP_ICALL(MEM32(edx + 0x124)); /* 0x36097F37: call dword ptr [edx + 0x124] */
  10968     RECOMP_FLAGS_IN();
  10969 L_36097F3D:
  10970     goto L_36098110; /* 0x36097F3D: jmp 0x36098110 */
  10971 L_36097F42:
  10972     ecx = MEM32(esi + 0x1A8); /* 0x36097F42: mov ecx, dword ptr [esi + 0x1a8] */
  10973 L_36097F48:
  10974     eax = MEM32(esi); /* 0x36097F48: mov eax, dword ptr [esi] */
  10975 L_36097F4A:
  10976     PUSH32(esp, ecx); /* 0x36097F4A: push ecx */
  10977 L_36097F4B:
  10978     ecx = esi; /* 0x36097F4B: mov ecx, esi */
  10979 L_36097F4D:
  10980     RECOMP_ICALL(MEM32(eax + 0x120)); /* 0x36097F4D: call dword ptr [eax + 0x120] */
  10981     RECOMP_FLAGS_IN();
  10982 L_36097F53:
  10983     PUSH32(esp, 0x361C6098u); /* 0x36097F53: push 0x361c6098 */
  10984 L_36097F58:
  10985     edx = ebp + (-0x8C); /* 0x36097F58: lea edx, [ebp - 0x8c] */
  10986 L_36097F5E:
  10987     PUSH32(esp, edx); /* 0x36097F5E: push edx */
  10988 L_36097F5F:
  10989     goto L_36098107; /* 0x36097F5F: jmp 0x36098107 */
  10990 L_36097F64:
  10991     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  10992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10993     esp = esp - 0xCu; /* 0x36097F64: sub esp, 0xc */
  10994     _flag_k = FK_CMP;
  10995 L_36097F67:
  10996     eax = esp; /* 0x36097F67: mov eax, esp */
  10997 L_36097F69:
  10998     PUSH32(esp, 1); /* 0x36097F69: push 1 */
  10999 L_36097F6B:
  11000     PUSH32(esp, 0x64u); /* 0x36097F6B: push 0x64 */
  11001 L_36097F6D:
  11002     PUSH32(esp, 0); /* 0x36097F6D: push 0 */
  11003 L_36097F6F:
  11004     MEM32(ebp + (-0xC)) = 0; /* 0x36097F6F: mov dword ptr [ebp - 0xc], 0 */
  11005 L_36097F76:
  11006     ecx = MEM32(ebp + (-0xC)); /* 0x36097F76: mov ecx, dword ptr [ebp - 0xc] */
  11007 L_36097F79:
  11008     MEM32(eax) = ecx; /* 0x36097F79: mov dword ptr [eax], ecx */
  11009 L_36097F7B:
  11010     MEM32(ebp + (-0x8)) = 0; /* 0x36097F7B: mov dword ptr [ebp - 8], 0 */
  11011 L_36097F82:
  11012     edx = MEM32(ebp + (-0x8)); /* 0x36097F82: mov edx, dword ptr [ebp - 8] */
  11013 L_36097F85:
  11014     PUSH32(esp, 0); /* 0x36097F85: push 0 */
  11015 L_36097F87:
  11016     MEM32(ebp + (-0x4)) = 0; /* 0x36097F87: mov dword ptr [ebp - 4], 0 */
  11017 L_36097F8E:
  11018     ecx = MEM32(ebp + (-0x4)); /* 0x36097F8E: mov ecx, dword ptr [ebp - 4] */
  11019 L_36097F91:
  11020     MEM32(eax + 0x4) = edx; /* 0x36097F91: mov dword ptr [eax + 4], edx */
  11021 L_36097F94:
  11022     PUSH32(esp, 0x3F800000u); /* 0x36097F94: push 0x3f800000 */
  11023 L_36097F99:
  11024     MEM32(eax + 0x8) = ecx; /* 0x36097F99: mov dword ptr [eax + 8], ecx */
  11025 L_36097F9C:
  11026     PUSH32(esp, 0); /* 0x36097F9C: push 0 */
  11027 L_36097F9E:
  11028     ecx = esi + 0x8C; /* 0x36097F9E: lea ecx, [esi + 0x8c] */
  11029 L_36097FA4:
  11030     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36097FA4: call dword ptr [0x3616ffb0] */
  11031     RECOMP_FLAGS_IN();
  11032 L_36097FAA:
  11033     ecx = MEM32(eax); /* 0x36097FAA: mov ecx, dword ptr [eax] */
  11034 L_36097FAC:
  11035     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11037     esp = esp - 0xCu; /* 0x36097FAC: sub esp, 0xc */
  11038     _flag_k = FK_CMP;
  11039 L_36097FAF:
  11040     edx = esp; /* 0x36097FAF: mov edx, esp */
  11041 L_36097FB1:
  11042     MEM32(edx) = ecx; /* 0x36097FB1: mov dword ptr [edx], ecx */
  11043 L_36097FB3:
  11044     ecx = MEM32(eax + 0x4); /* 0x36097FB3: mov ecx, dword ptr [eax + 4] */
  11045 L_36097FB6:
  11046     eax = MEM32(eax + 0x8); /* 0x36097FB6: mov eax, dword ptr [eax + 8] */
  11047 L_36097FB9:
  11048     MEM32(edx + 0x4) = ecx; /* 0x36097FB9: mov dword ptr [edx + 4], ecx */
  11049 L_36097FBC:
  11050     ecx = MEM32(esi + 0x1D0); /* 0x36097FBC: mov ecx, dword ptr [esi + 0x1d0] */
  11051 L_36097FC2:
  11052     PUSH32(esp, ecx); /* 0x36097FC2: push ecx */
  11053 L_36097FC3:
  11054     MEM32(edx + 0x8) = eax; /* 0x36097FC3: mov dword ptr [edx + 8], eax */
  11055 L_36097FC6:
  11056     RECOMP_ICALL(0x3601C590u); /* 0x36097FC6: call 0x3601c590 */ /* not lifted */
  11057     RECOMP_FLAGS_IN();
  11058 L_36097FCB:
  11059     ecx = eax; /* 0x36097FCB: mov ecx, eax */
  11060 L_36097FCD:
  11061     RECOMP_ICALL(0x3601CBF0u); /* 0x36097FCD: call 0x3601cbf0 */ /* not lifted */
  11062     RECOMP_FLAGS_IN();
  11063 L_36097FD2:
  11064     MEM8(esi + 0x1D4) = (uint8_t)(1); /* 0x36097FD2: mov byte ptr [esi + 0x1d4], 1 */
  11065 L_36097FD9:
  11066     goto L_36098110; /* 0x36097FD9: jmp 0x36098110 */
  11067 L_36097FDE:
  11068     PUSH32(esp, 0); /* 0x36097FDE: push 0 */
  11069 L_36097FE0:
  11070     PUSH32(esp, 0x361B2CA0u); /* 0x36097FE0: push 0x361b2ca0 */
  11071 L_36097FE5:
  11072     PUSH32(esp, 0x361B2CC0u); /* 0x36097FE5: push 0x361b2cc0 */
  11073 L_36097FEA:
  11074     PUSH32(esp, 0); /* 0x36097FEA: push 0 */
  11075 L_36097FEC:
  11076     PUSH32(esp, ebx); /* 0x36097FEC: push ebx */
  11077 L_36097FED:
  11078     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36097FED: call dword ptr [0x3616ff70] */
  11079     RECOMP_FLAGS_IN();
  11080 L_36097FF3:
  11081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11082     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11083     esp = esp + 4; /* 0x36097FF3: add esp, 4 */
  11084     _flag_k = FK_ADD;
  11085 L_36097FF6:
  11086     PUSH32(esp, eax); /* 0x36097FF6: push eax */
  11087 L_36097FF7:
  11088     RECOMP_ICALL(0x3615FD86u); /* 0x36097FF7: call 0x3615fd86 */ /* not lifted */
  11089     RECOMP_FLAGS_IN();
  11090 L_36097FFC:
  11091     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11092     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11093     esp = esp + 0x14u; /* 0x36097FFC: add esp, 0x14 */
  11094     _flag_k = FK_ADD;
  11095 L_36097FFF:
  11096     /* test eax, eax */ /* 0x36097FFF: test eax, eax */
  11097     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11098     _cf = 0;
  11099     _flag_k = FK_TEST;
  11100 L_36098001:
  11101     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3609801C; /* 0x36098001: je 0x3609801c */
  11102 L_36098003:
  11103     edi = MEM32(esi); /* 0x36098003: mov edi, dword ptr [esi] */
  11104 L_36098005:
  11105     PUSH32(esp, 0x362EA510u); /* 0x36098005: push 0x362ea510 */
  11106 L_3609800A:
  11107     PUSH32(esp, 0); /* 0x3609800A: push 0 */
  11108 L_3609800C:
  11109     PUSH32(esp, eax); /* 0x3609800C: push eax */
  11110 L_3609800D:
  11111     PUSH32(esp, 0); /* 0x3609800D: push 0 */
  11112 L_3609800F:
  11113     ecx = esi; /* 0x3609800F: mov ecx, esi */
  11114 L_36098011:
  11115     RECOMP_ICALL(0x360020C0u); /* 0x36098011: call 0x360020c0 */ /* not lifted */
  11116     RECOMP_FLAGS_IN();
  11117 L_36098016:
  11118     PUSH32(esp, eax); /* 0x36098016: push eax */
  11119 L_36098017:
  11120     ecx = esi; /* 0x36098017: mov ecx, esi */
  11121 L_36098019:
  11122     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x36098019: call dword ptr [edi + 0x34] */
  11123     RECOMP_FLAGS_IN();
  11124 L_3609801C:
  11125     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11127     esp = esp - 0xCu; /* 0x3609801C: sub esp, 0xc */
  11128     _flag_k = FK_CMP;
  11129 L_3609801F:
  11130     edx = esp; /* 0x3609801F: mov edx, esp */
  11131 L_36098021:
  11132     PUSH32(esp, 1); /* 0x36098021: push 1 */
  11133 L_36098023:
  11134     PUSH32(esp, 0x64u); /* 0x36098023: push 0x64 */
  11135 L_36098025:
  11136     PUSH32(esp, 0); /* 0x36098025: push 0 */
  11137 L_36098027:
  11138     MEM32(ebp + (-0xC)) = 0; /* 0x36098027: mov dword ptr [ebp - 0xc], 0 */
  11139 L_3609802E:
  11140     eax = MEM32(ebp + (-0xC)); /* 0x3609802E: mov eax, dword ptr [ebp - 0xc] */
  11141 L_36098031:
  11142     MEM32(edx) = eax; /* 0x36098031: mov dword ptr [edx], eax */
  11143 L_36098033:
  11144     PUSH32(esp, 0); /* 0x36098033: push 0 */
  11145 L_36098035:
  11146     MEM32(ebp + (-0x8)) = 0; /* 0x36098035: mov dword ptr [ebp - 8], 0 */
  11147 L_3609803C:
  11148     ecx = MEM32(ebp + (-0x8)); /* 0x3609803C: mov ecx, dword ptr [ebp - 8] */
  11149 L_3609803F:
  11150     MEM32(edx + 0x4) = ecx; /* 0x3609803F: mov dword ptr [edx + 4], ecx */
  11151 L_36098042:
  11152     PUSH32(esp, 0x3F800000u); /* 0x36098042: push 0x3f800000 */
  11153 L_36098047:
  11154     MEM32(ebp + (-0x4)) = 0; /* 0x36098047: mov dword ptr [ebp - 4], 0 */
  11155 L_3609804E:
  11156     eax = MEM32(ebp + (-0x4)); /* 0x3609804E: mov eax, dword ptr [ebp - 4] */
  11157 L_36098051:
  11158     edi = esi + 0x8C; /* 0x36098051: lea edi, [esi + 0x8c] */
  11159 L_36098057:
  11160     PUSH32(esp, 0); /* 0x36098057: push 0 */
  11161 L_36098059:
  11162     ecx = edi; /* 0x36098059: mov ecx, edi */
  11163 L_3609805B:
  11164     MEM32(edx + 0x8) = eax; /* 0x3609805B: mov dword ptr [edx + 8], eax */
  11165 L_3609805E:
  11166     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3609805E: call dword ptr [0x3616ffb0] */
  11167     RECOMP_FLAGS_IN();
  11168 L_36098064:
  11169     edx = MEM32(eax); /* 0x36098064: mov edx, dword ptr [eax] */
  11170 L_36098066:
  11171     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11173     esp = esp - 0xCu; /* 0x36098066: sub esp, 0xc */
  11174     _flag_k = FK_CMP;
  11175 L_36098069:
  11176     ecx = esp; /* 0x36098069: mov ecx, esp */
  11177 L_3609806B:
  11178     MEM32(ecx) = edx; /* 0x3609806B: mov dword ptr [ecx], edx */
  11179 L_3609806D:
  11180     edx = MEM32(eax + 0x4); /* 0x3609806D: mov edx, dword ptr [eax + 4] */
  11181 L_36098070:
  11182     eax = MEM32(eax + 0x8); /* 0x36098070: mov eax, dword ptr [eax + 8] */
  11183 L_36098073:
  11184     MEM32(ecx + 0x4) = edx; /* 0x36098073: mov dword ptr [ecx + 4], edx */
  11185 L_36098076:
  11186     MEM32(ecx + 0x8) = eax; /* 0x36098076: mov dword ptr [ecx + 8], eax */
  11187 L_36098079:
  11188     ecx = MEM32(esi + 0x1C8); /* 0x36098079: mov ecx, dword ptr [esi + 0x1c8] */
  11189 L_3609807F:
  11190     PUSH32(esp, ecx); /* 0x3609807F: push ecx */
  11191 L_36098080:
  11192     RECOMP_ICALL(0x3601C590u); /* 0x36098080: call 0x3601c590 */ /* not lifted */
  11193     RECOMP_FLAGS_IN();
  11194 L_36098085:
  11195     ecx = eax; /* 0x36098085: mov ecx, eax */
  11196 L_36098087:
  11197     RECOMP_ICALL(0x3601CBF0u); /* 0x36098087: call 0x3601cbf0 */ /* not lifted */
  11198     RECOMP_FLAGS_IN();
  11199 L_3609808C:
  11200     RECOMP_ICALL(0x360F7B00u); /* 0x3609808C: call 0x360f7b00 */ /* not lifted */
  11201     RECOMP_FLAGS_IN();
  11202 L_36098091:
  11203     ebx = MEM32(0x36170050); /* 0x36098091: mov ebx, dword ptr [0x36170050] */
  11204 L_36098097:
  11205     ecx = edi; /* 0x36098097: mov ecx, edi */
  11206 L_36098099:
  11207     MEM32(eax + 0x54) = 0x20u; /* 0x36098099: mov dword ptr [eax + 0x54], 0x20 */
  11208 L_360980A0:
  11209     RECOMP_ICALL(ebx); /* 0x360980A0: call ebx */
  11210     RECOMP_FLAGS_IN();
  11211 L_360980A2:
  11212     /* test eax, eax */ /* 0x360980A2: test eax, eax */
  11213     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11214     _cf = 0;
  11215     _flag_k = FK_TEST;
  11216 L_360980A4:
  11217     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_360980AF; /* 0x360980A4: je 0x360980af */
  11218 L_360980A6:
  11219     PUSH32(esp, 0); /* 0x360980A6: push 0 */
  11220 L_360980A8:
  11221     ecx = edi; /* 0x360980A8: mov ecx, edi */
  11222 L_360980AA:
  11223     RECOMP_ICALL(ebx); /* 0x360980AA: call ebx */
  11224     RECOMP_FLAGS_IN();
  11225 L_360980AC:
  11226     PUSH32(esp, eax); /* 0x360980AC: push eax */
  11227 L_360980AD:
  11228     goto L_360980B8; /* 0x360980AD: jmp 0x360980b8 */
  11229 L_360980AF:
  11230     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(esi);
  11231     _cf = (esi) != 0;
  11232     esi = (uint32_t)(-(int32_t)esi); /* 0x360980AF: neg esi */
  11233     _flag_k = FK_CMP;
  11234 L_360980B1:
  11235     { uint32_t _sa = esi, _sb = esi, _sc = _cf; /* 0x360980B1: sbb esi, esi */
  11236       esi = _sc ? 0xFFFFFFFFu : 0;
  11237       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  11238       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  11239 L_360980B3:
  11240     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
  11241     esi = esi & edi; /* 0x360980B3: and esi, edi */
  11242     _cf = 0;
  11243     _flag_k = FK_TEST;
  11244 L_360980B5:
  11245     PUSH32(esp, 0); /* 0x360980B5: push 0 */
  11246 L_360980B7:
  11247     PUSH32(esp, esi); /* 0x360980B7: push esi */
  11248 L_360980B8:
  11249     PUSH32(esp, 0x834u); /* 0x360980B8: push 0x834 */
  11250 L_360980BD:
  11251     RECOMP_ICALL(0x360F7B00u); /* 0x360980BD: call 0x360f7b00 */ /* not lifted */
  11252     RECOMP_FLAGS_IN();
  11253 L_360980C2:
  11254     ecx = eax; /* 0x360980C2: mov ecx, eax */
  11255 L_360980C4:
  11256     RECOMP_ICALL(0x360F81E0u); /* 0x360980C4: call 0x360f81e0 */ /* not lifted */
  11257     RECOMP_FLAGS_IN();
  11258 L_360980C9:
  11259     edx = MEM32(ebp + 0xC); /* 0x360980C9: mov edx, dword ptr [ebp + 0xc] */
  11260 L_360980CC:
  11261     PUSH32(esp, 0); /* 0x360980CC: push 0 */
  11262 L_360980CE:
  11263     PUSH32(esp, 0x361B2CD8u); /* 0x360980CE: push 0x361b2cd8 */
  11264 L_360980D3:
  11265     PUSH32(esp, 0x361B2CC0u); /* 0x360980D3: push 0x361b2cc0 */
  11266 L_360980D8:
  11267     PUSH32(esp, 0); /* 0x360980D8: push 0 */
  11268 L_360980DA:
  11269     PUSH32(esp, edx); /* 0x360980DA: push edx */
  11270 L_360980DB:
  11271     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360980DB: call dword ptr [0x3616ff70] */
  11272     RECOMP_FLAGS_IN();
  11273 L_360980E1:
  11274     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11275     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11276     esp = esp + 4; /* 0x360980E1: add esp, 4 */
  11277     _flag_k = FK_ADD;
  11278 L_360980E4:
  11279     PUSH32(esp, eax); /* 0x360980E4: push eax */
  11280 L_360980E5:
  11281     RECOMP_ICALL(0x3615FD86u); /* 0x360980E5: call 0x3615fd86 */ /* not lifted */
  11282     RECOMP_FLAGS_IN();
  11283 L_360980EA:
  11284     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11285     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11286     esp = esp + 0x14u; /* 0x360980EA: add esp, 0x14 */
  11287     _flag_k = FK_ADD;
  11288 L_360980ED:
  11289     /* test eax, eax */ /* 0x360980ED: test eax, eax */
  11290     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11291     _cf = 0;
  11292     _flag_k = FK_TEST;
  11293 L_360980EF:
  11294     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36098125; /* 0x360980EF: je 0x36098125 */
  11295 L_360980F1:
  11296     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360980F1: mov cl, byte ptr [eax + 0x128] */
  11297 L_360980F7:
  11298     /* test LO8(ecx), LO8(ecx) */ /* 0x360980F7: test cl, cl */
  11299     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11300     _cf = 0;
  11301     _flag_k = FK_NARROW(FK_TEST, 24);
  11302 L_360980F9:
  11303     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36098125; /* 0x360980F9: je 0x36098125 */
  11304 L_360980FB:
  11305     PUSH32(esp, 0x361C6060u); /* 0x360980FB: push 0x361c6060 */
  11306 L_36098100:
  11307     eax = ebp + (-0x8C); /* 0x36098100: lea eax, [ebp - 0x8c] */
  11308 L_36098106:
  11309     PUSH32(esp, eax); /* 0x36098106: push eax */
  11310 L_36098107:
  11311     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x36098107: call dword ptr [0x3616f25c] */
  11312     RECOMP_FLAGS_IN();
  11313 L_3609810D:
  11314     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11315     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11316     esp = esp + 8; /* 0x3609810D: add esp, 8 */
  11317     _flag_k = FK_ADD;
  11318 L_36098110:
  11319     ecx = ebp + (-0x8C); /* 0x36098110: lea ecx, [ebp - 0x8c] */
  11320 L_36098116:
  11321     PUSH32(esp, 0); /* 0x36098116: push 0 */
  11322 L_36098118:
  11323     PUSH32(esp, ecx); /* 0x36098118: push ecx */
  11324 L_36098119:
  11325     RECOMP_ICALL(0x3601C590u); /* 0x36098119: call 0x3601c590 */ /* not lifted */
  11326     RECOMP_FLAGS_IN();
  11327 L_3609811E:
  11328     ecx = eax; /* 0x3609811E: mov ecx, eax */
  11329 L_36098120:
  11330     RECOMP_ICALL(0x3601C8C0u); /* 0x36098120: call 0x3601c8c0 */ /* not lifted */
  11331     RECOMP_FLAGS_IN();
  11332 L_36098125:
  11333     edi = POP32_VAL(esp); /* 0x36098125: pop edi */
  11334 L_36098126:
  11335     esi = POP32_VAL(esp); /* 0x36098126: pop esi */
  11336 L_36098127:
  11337     ebx = POP32_VAL(esp); /* 0x36098127: pop ebx */
  11338 L_36098128:
  11339     esp = ebp; /* 0x36098128: mov esp, ebp */
  11340 L_3609812A:
  11341     ebp = POP32_VAL(esp); /* 0x3609812A: pop ebp */
  11342 L_3609812B:
  11343     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609812B: ret 8 */
  11344   _ljump:
  11345     switch (_itail_tgt) {
  11346       case 0x36097EE0u: goto L_36097EE0;
  11347       case 0x36097EE1u: goto L_36097EE1;
  11348       case 0x36097EE3u: goto L_36097EE3;
  11349       case 0x36097EE9u: goto L_36097EE9;
  11350       case 0x36097EEAu: goto L_36097EEA;
  11351       case 0x36097EEDu: goto L_36097EED;
  11352       case 0x36097EEEu: goto L_36097EEE;
  11353       case 0x36097EEFu: goto L_36097EEF;
  11354       case 0x36097EF1u: goto L_36097EF1;
  11355       case 0x36097EF3u: goto L_36097EF3;
  11356       case 0x36097EF4u: goto L_36097EF4;
  11357       case 0x36097EF7u: goto L_36097EF7;
  11358       case 0x36097EFDu: goto L_36097EFD;
  11359       case 0x36097F00u: goto L_36097F00;
  11360       case 0x36097F06u: goto L_36097F06;
  11361       case 0x36097F08u: goto L_36097F08;
  11362       case 0x36097F0Du: goto L_36097F0D;
  11363       case 0x36097F13u: goto L_36097F13;
  11364       case 0x36097F15u: goto L_36097F15;
  11365       case 0x36097F17u: goto L_36097F17;
  11366       case 0x36097F18u: goto L_36097F18;
  11367       case 0x36097F1Bu: goto L_36097F1B;
  11368       case 0x36097F1Eu: goto L_36097F1E;
  11369       case 0x36097F24u: goto L_36097F24;
  11370       case 0x36097F26u: goto L_36097F26;
  11371       case 0x36097F2Cu: goto L_36097F2C;
  11372       case 0x36097F33u: goto L_36097F33;
  11373       case 0x36097F35u: goto L_36097F35;
  11374       case 0x36097F37u: goto L_36097F37;
  11375       case 0x36097F3Du: goto L_36097F3D;
  11376       case 0x36097F42u: goto L_36097F42;
  11377       case 0x36097F48u: goto L_36097F48;
  11378       case 0x36097F4Au: goto L_36097F4A;
  11379       case 0x36097F4Bu: goto L_36097F4B;
  11380       case 0x36097F4Du: goto L_36097F4D;
  11381       case 0x36097F53u: goto L_36097F53;
  11382       case 0x36097F58u: goto L_36097F58;
  11383       case 0x36097F5Eu: goto L_36097F5E;
  11384       case 0x36097F5Fu: goto L_36097F5F;
  11385       case 0x36097F64u: goto L_36097F64;
  11386       case 0x36097F67u: goto L_36097F67;
  11387       case 0x36097F69u: goto L_36097F69;
  11388       case 0x36097F6Bu: goto L_36097F6B;
  11389       case 0x36097F6Du: goto L_36097F6D;
  11390       case 0x36097F6Fu: goto L_36097F6F;
  11391       case 0x36097F76u: goto L_36097F76;
  11392       case 0x36097F79u: goto L_36097F79;
  11393       case 0x36097F7Bu: goto L_36097F7B;
  11394       case 0x36097F82u: goto L_36097F82;
  11395       case 0x36097F85u: goto L_36097F85;
  11396       case 0x36097F87u: goto L_36097F87;
  11397       case 0x36097F8Eu: goto L_36097F8E;
  11398       case 0x36097F91u: goto L_36097F91;
  11399       case 0x36097F94u: goto L_36097F94;
  11400       case 0x36097F99u: goto L_36097F99;
  11401       case 0x36097F9Cu: goto L_36097F9C;
  11402       case 0x36097F9Eu: goto L_36097F9E;
  11403       case 0x36097FA4u: goto L_36097FA4;
  11404       case 0x36097FAAu: goto L_36097FAA;
  11405       case 0x36097FACu: goto L_36097FAC;
  11406       case 0x36097FAFu: goto L_36097FAF;
  11407       case 0x36097FB1u: goto L_36097FB1;
  11408       case 0x36097FB3u: goto L_36097FB3;
  11409       case 0x36097FB6u: goto L_36097FB6;
  11410       case 0x36097FB9u: goto L_36097FB9;
  11411       case 0x36097FBCu: goto L_36097FBC;
  11412       case 0x36097FC2u: goto L_36097FC2;
  11413       case 0x36097FC3u: goto L_36097FC3;
  11414       case 0x36097FC6u: goto L_36097FC6;
  11415       case 0x36097FCBu: goto L_36097FCB;
  11416       case 0x36097FCDu: goto L_36097FCD;
  11417       case 0x36097FD2u: goto L_36097FD2;
  11418       case 0x36097FD9u: goto L_36097FD9;
  11419       case 0x36097FDEu: goto L_36097FDE;
  11420       case 0x36097FE0u: goto L_36097FE0;
  11421       case 0x36097FE5u: goto L_36097FE5;
  11422       case 0x36097FEAu: goto L_36097FEA;
  11423       case 0x36097FECu: goto L_36097FEC;
  11424       case 0x36097FEDu: goto L_36097FED;
  11425       case 0x36097FF3u: goto L_36097FF3;
  11426       case 0x36097FF6u: goto L_36097FF6;
  11427       case 0x36097FF7u: goto L_36097FF7;
  11428       case 0x36097FFCu: goto L_36097FFC;
  11429       case 0x36097FFFu: goto L_36097FFF;
  11430       case 0x36098001u: goto L_36098001;
  11431       case 0x36098003u: goto L_36098003;
  11432       case 0x36098005u: goto L_36098005;
  11433       case 0x3609800Au: goto L_3609800A;
  11434       case 0x3609800Cu: goto L_3609800C;
  11435       case 0x3609800Du: goto L_3609800D;
  11436       case 0x3609800Fu: goto L_3609800F;
  11437       case 0x36098011u: goto L_36098011;
  11438       case 0x36098016u: goto L_36098016;
  11439       case 0x36098017u: goto L_36098017;
  11440       case 0x36098019u: goto L_36098019;
  11441       case 0x3609801Cu: goto L_3609801C;
  11442       case 0x3609801Fu: goto L_3609801F;
  11443       case 0x36098021u: goto L_36098021;
  11444       case 0x36098023u: goto L_36098023;
  11445       case 0x36098025u: goto L_36098025;
  11446       case 0x36098027u: goto L_36098027;
  11447       case 0x3609802Eu: goto L_3609802E;
  11448       case 0x36098031u: goto L_36098031;
  11449       case 0x36098033u: goto L_36098033;
  11450       case 0x36098035u: goto L_36098035;
  11451       case 0x3609803Cu: goto L_3609803C;
  11452       case 0x3609803Fu: goto L_3609803F;
  11453       case 0x36098042u: goto L_36098042;
  11454       case 0x36098047u: goto L_36098047;
  11455       case 0x3609804Eu: goto L_3609804E;
  11456       case 0x36098051u: goto L_36098051;
  11457       case 0x36098057u: goto L_36098057;
  11458       case 0x36098059u: goto L_36098059;
  11459       case 0x3609805Bu: goto L_3609805B;
  11460       case 0x3609805Eu: goto L_3609805E;
  11461       case 0x36098064u: goto L_36098064;
  11462       case 0x36098066u: goto L_36098066;
  11463       case 0x36098069u: goto L_36098069;
  11464       case 0x3609806Bu: goto L_3609806B;
  11465       case 0x3609806Du: goto L_3609806D;
  11466       case 0x36098070u: goto L_36098070;
  11467       case 0x36098073u: goto L_36098073;
  11468       case 0x36098076u: goto L_36098076;
  11469       case 0x36098079u: goto L_36098079;
  11470       case 0x3609807Fu: goto L_3609807F;
  11471       case 0x36098080u: goto L_36098080;
  11472       case 0x36098085u: goto L_36098085;
  11473       case 0x36098087u: goto L_36098087;
  11474       case 0x3609808Cu: goto L_3609808C;
  11475       case 0x36098091u: goto L_36098091;
  11476       case 0x36098097u: goto L_36098097;
  11477       case 0x36098099u: goto L_36098099;
  11478       case 0x360980A0u: goto L_360980A0;
  11479       case 0x360980A2u: goto L_360980A2;
  11480       case 0x360980A4u: goto L_360980A4;
  11481       case 0x360980A6u: goto L_360980A6;
  11482       case 0x360980A8u: goto L_360980A8;
  11483       case 0x360980AAu: goto L_360980AA;
  11484       case 0x360980ACu: goto L_360980AC;
  11485       case 0x360980ADu: goto L_360980AD;
  11486       case 0x360980AFu: goto L_360980AF;
  11487       case 0x360980B1u: goto L_360980B1;
  11488       case 0x360980B3u: goto L_360980B3;
  11489       case 0x360980B5u: goto L_360980B5;
  11490       case 0x360980B7u: goto L_360980B7;
  11491       case 0x360980B8u: goto L_360980B8;
  11492       case 0x360980BDu: goto L_360980BD;
  11493       case 0x360980C2u: goto L_360980C2;
  11494       case 0x360980C4u: goto L_360980C4;
  11495       case 0x360980C9u: goto L_360980C9;
  11496       case 0x360980CCu: goto L_360980CC;
  11497       case 0x360980CEu: goto L_360980CE;
  11498       case 0x360980D3u: goto L_360980D3;
  11499       case 0x360980D8u: goto L_360980D8;
  11500       case 0x360980DAu: goto L_360980DA;
  11501       case 0x360980DBu: goto L_360980DB;
  11502       case 0x360980E1u: goto L_360980E1;
  11503       case 0x360980E4u: goto L_360980E4;
  11504       case 0x360980E5u: goto L_360980E5;
  11505       case 0x360980EAu: goto L_360980EA;
  11506       case 0x360980EDu: goto L_360980ED;
  11507       case 0x360980EFu: goto L_360980EF;
  11508       case 0x360980F1u: goto L_360980F1;
  11509       case 0x360980F7u: goto L_360980F7;
  11510       case 0x360980F9u: goto L_360980F9;
  11511       case 0x360980FBu: goto L_360980FB;
  11512       case 0x36098100u: goto L_36098100;
  11513       case 0x36098106u: goto L_36098106;
  11514       case 0x36098107u: goto L_36098107;
  11515       case 0x3609810Du: goto L_3609810D;
  11516       case 0x36098110u: goto L_36098110;
  11517       case 0x36098116u: goto L_36098116;
  11518       case 0x36098118u: goto L_36098118;
  11519       case 0x36098119u: goto L_36098119;
  11520       case 0x3609811Eu: goto L_3609811E;
  11521       case 0x36098120u: goto L_36098120;
  11522       case 0x36098125u: goto L_36098125;
  11523       case 0x36098126u: goto L_36098126;
  11524       case 0x36098127u: goto L_36098127;
  11525       case 0x36098128u: goto L_36098128;
  11526       case 0x3609812Au: goto L_3609812A;
  11527       case 0x3609812Bu: goto L_3609812B;
  11528       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  11529     }
  11530     RECOMP_REGS_OUT();
  11531 }
  11532 
  11533 void sub_36098107(void) {
  11534     int _fpu_cmp = 0;
  11535     uint32_t _cf = 0;
  11536     int _df = 1;
  11537     uint32_t _flag_k = FK_NONE;
  11538     uint32_t _flag_a = 0, _flag_b = 0;
  11539     uint32_t _itail_tgt = 0;
  11540     RECOMP_REGS_LOCALS
  11541     RECOMP_ENTER(0x36098107u);
  11542 
  11543 L_36098107:
  11544     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x36098107: call dword ptr [0x3616f25c] */
  11545     RECOMP_FLAGS_IN();
  11546     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11547     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11548     esp = esp + 8; /* 0x3609810D: add esp, 8 */
  11549     _flag_k = FK_ADD;
  11550     ecx = ebp + (-0x8C); /* 0x36098110: lea ecx, [ebp - 0x8c] */
  11551     PUSH32(esp, 0); /* 0x36098116: push 0 */
  11552     PUSH32(esp, ecx); /* 0x36098118: push ecx */
  11553     RECOMP_ICALL(0x3601C590u); /* 0x36098119: call 0x3601c590 */ /* not lifted */
  11554     RECOMP_FLAGS_IN();
  11555     ecx = eax; /* 0x3609811E: mov ecx, eax */
  11556     RECOMP_ICALL(0x3601C8C0u); /* 0x36098120: call 0x3601c8c0 */ /* not lifted */
  11557     RECOMP_FLAGS_IN();
  11558     edi = POP32_VAL(esp); /* 0x36098125: pop edi */
  11559     esi = POP32_VAL(esp); /* 0x36098126: pop esi */
  11560     ebx = POP32_VAL(esp); /* 0x36098127: pop ebx */
  11561     esp = ebp; /* 0x36098128: mov esp, ebp */
  11562     ebp = POP32_VAL(esp); /* 0x3609812A: pop ebp */
  11563     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609812B: ret 8 */
  11564     RECOMP_REGS_OUT();
  11565 }
  11566 
  11567 void sub_36098110(void) {
  11568     int _fpu_cmp = 0;
  11569     uint32_t _cf = 0;
  11570     int _df = 1;
  11571     uint32_t _flag_k = FK_NONE;
  11572     uint32_t _flag_a = 0, _flag_b = 0;
  11573     uint32_t _itail_tgt = 0;
  11574     RECOMP_REGS_LOCALS
  11575     RECOMP_ENTER(0x36098110u);
  11576 
  11577 L_36098110:
  11578     ecx = ebp + (-0x8C); /* 0x36098110: lea ecx, [ebp - 0x8c] */
  11579     PUSH32(esp, 0); /* 0x36098116: push 0 */
  11580     PUSH32(esp, ecx); /* 0x36098118: push ecx */
  11581     RECOMP_ICALL(0x3601C590u); /* 0x36098119: call 0x3601c590 */ /* not lifted */
  11582     RECOMP_FLAGS_IN();
  11583     ecx = eax; /* 0x3609811E: mov ecx, eax */
  11584     RECOMP_ICALL(0x3601C8C0u); /* 0x36098120: call 0x3601c8c0 */ /* not lifted */
  11585     RECOMP_FLAGS_IN();
  11586     edi = POP32_VAL(esp); /* 0x36098125: pop edi */
  11587     esi = POP32_VAL(esp); /* 0x36098126: pop esi */
  11588     ebx = POP32_VAL(esp); /* 0x36098127: pop ebx */
  11589     esp = ebp; /* 0x36098128: mov esp, ebp */
  11590     ebp = POP32_VAL(esp); /* 0x3609812A: pop ebp */
  11591     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609812B: ret 8 */
  11592     RECOMP_REGS_OUT();
  11593 }
  11594 
  11595 void sub_36098170(void) {
  11596     int _fpu_cmp = 0;
  11597     uint32_t _cf = 0;
  11598     int _df = 1;
  11599     uint32_t _flag_k = FK_NONE;
  11600     uint32_t _flag_a = 0, _flag_b = 0;
  11601     uint32_t _itail_tgt = 0;
  11602     RECOMP_REGS_LOCALS
  11603     RECOMP_ENTER(0x36098170u);
  11604 
  11605 L_36098170:
  11606     SET_LO8(eax, MEM8(ecx + (-0x3))); /* 0x36098170: mov al, byte ptr [ecx - 3] */
  11607     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098173: ret  */
  11608     RECOMP_REGS_OUT();
  11609 }
  11610 
  11611 void sub_36098180(void) {
  11612     int _fpu_cmp = 0;
  11613     uint32_t _cf = 0;
  11614     int _df = 1;
  11615     uint32_t _flag_k = FK_NONE;
  11616     uint32_t _flag_a = 0, _flag_b = 0;
  11617     uint32_t _itail_tgt = 0;
  11618     RECOMP_REGS_LOCALS
  11619     RECOMP_ENTER(0x36098180u);
  11620 
  11621 L_36098180:
  11622     PUSH32(esp, esi); /* 0x36098180: push esi */
  11623     esi = ecx; /* 0x36098181: mov esi, ecx */
  11624     ecx = esi + 0x8C; /* 0x36098183: lea ecx, [esi + 0x8c] */
  11625     RECOMP_ICALL(MEM32(0x3616FC6C)); /* 0x36098189: call dword ptr [0x3616fc6c] */
  11626     RECOMP_FLAGS_IN();
  11627     eax = MEM32(esi); /* 0x3609818F: mov eax, dword ptr [esi] */
  11628     PUSH32(esp, 1); /* 0x36098191: push 1 */
  11629     ecx = esi; /* 0x36098193: mov ecx, esi */
  11630     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x36098195: call dword ptr [eax + 0x18] */
  11631     RECOMP_FLAGS_IN();
  11632     esi = POP32_VAL(esp); /* 0x36098198: pop esi */
  11633     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098199: ret  */
  11634     RECOMP_REGS_OUT();
  11635 }
  11636 
  11637 void sub_360981A0(void) {
  11638     int _fpu_cmp = 0;
  11639     uint32_t _cf = 0;
  11640     int _df = 1;
  11641     uint32_t _flag_k = FK_NONE;
  11642     uint32_t _flag_a = 0, _flag_b = 0;
  11643     uint32_t _itail_tgt = 0;
  11644     RECOMP_REGS_LOCALS
  11645     RECOMP_ENTER(0x360981A0u);
  11646 
  11647 L_360981A0:
  11648     PUSH32(esp, esi); /* 0x360981A0: push esi */
  11649     esi = ecx; /* 0x360981A1: mov esi, ecx */
  11650     ecx = esi + 0x8C; /* 0x360981A3: lea ecx, [esi + 0x8c] */
  11651     RECOMP_ICALL(MEM32(0x3616FCA0)); /* 0x360981A9: call dword ptr [0x3616fca0] */
  11652     RECOMP_FLAGS_IN();
  11653     edx = MEM32(esi + 0x34); /* 0x360981AF: mov edx, dword ptr [esi + 0x34] */
  11654     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFEu);
  11655     edx = edx & 0xFFFFFFFEu; /* 0x360981B2: and edx, 0xfffffffe */
  11656     _cf = 0;
  11657     _flag_k = FK_TEST;
  11658     eax = edx; /* 0x360981B5: mov eax, edx */
  11659     PUSH32(esp, eax); /* 0x360981B7: push eax */
  11660     MEM32(esi + 0x34) = edx; /* 0x360981B8: mov dword ptr [esi + 0x34], edx */
  11661     edx = MEM32(esi); /* 0x360981BB: mov edx, dword ptr [esi] */
  11662     PUSH32(esp, 0); /* 0x360981BD: push 0 */
  11663     ecx = esi; /* 0x360981BF: mov ecx, esi */
  11664     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360981C1: call dword ptr [edx + 8] */
  11665     RECOMP_FLAGS_IN();
  11666     esi = POP32_VAL(esp); /* 0x360981C4: pop esi */
  11667     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360981C5: ret  */
  11668     RECOMP_REGS_OUT();
  11669 }
  11670 
  11671 void sub_360981D0(void) {
  11672     int _fpu_cmp = 0;
  11673     uint32_t _cf = 0;
  11674     int _df = 1;
  11675     uint32_t _flag_k = FK_NONE;
  11676     uint32_t _flag_a = 0, _flag_b = 0;
  11677     uint32_t _itail_tgt = 0;
  11678     RECOMP_REGS_LOCALS
  11679     RECOMP_ENTER(0x360981D0u);
  11680 
  11681 L_360981D0:
  11682     PUSH32(esp, ebp); /* 0x360981D0: push ebp */
  11683     ebp = esp; /* 0x360981D1: mov ebp, esp */
  11684     eax = MEM32(ebp + 0x8); /* 0x360981D3: mov eax, dword ptr [ebp + 8] */
  11685     /* test eax, eax */ /* 0x360981D6: test eax, eax */
  11686     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11687     _cf = 0;
  11688     _flag_k = FK_TEST;
  11689     PUSH32(esp, esi); /* 0x360981D8: push esi */
  11690     esi = ecx; /* 0x360981D9: mov esi, ecx */
  11691     if (TEST_Z(_flag_a, _flag_b)) goto L_3609820C; /* 0x360981DB: je 0x3609820c */
  11692 L_360981DD:
  11693     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360981DD: mov cl, byte ptr [eax + 0x128] */
  11694     /* test LO8(ecx), LO8(ecx) */ /* 0x360981E3: test cl, cl */
  11695     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11696     _cf = 0;
  11697     _flag_k = FK_NARROW(FK_TEST, 24);
  11698     if (TEST_Z(_flag_a, _flag_b)) goto L_3609820C; /* 0x360981E5: je 0x3609820c */
  11699 L_360981E7:
  11700     RECOMP_ICALL(0x3601C590u); /* 0x360981E7: call 0x3601c590 */ /* not lifted */
  11701     RECOMP_FLAGS_IN();
  11702     SET_LO8(ecx, MEM8(esi + 0x1BC)); /* 0x360981EC: mov cl, byte ptr [esi + 0x1bc] */
  11703     /* test LO8(ecx), LO8(ecx) */ /* 0x360981F2: test cl, cl */
  11704     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11705     _cf = 0;
  11706     _flag_k = FK_NARROW(FK_TEST, 24);
  11707     edx = MEM32(0x361C5F5C); /* 0x360981F4: mov edx, dword ptr [0x361c5f5c] */
  11708     if (TEST_NZ(_flag_a, _flag_b)) goto L_36098202; /* 0x360981FA: jne 0x36098202 */
  11709 L_360981FC:
  11710     edx = MEM32(0x361C5F60); /* 0x360981FC: mov edx, dword ptr [0x361c5f60] */
  11711 L_36098202:
  11712     PUSH32(esp, 0); /* 0x36098202: push 0 */
  11713     PUSH32(esp, edx); /* 0x36098204: push edx */
  11714     ecx = eax; /* 0x36098205: mov ecx, eax */
  11715     RECOMP_ICALL(0x3601C8C0u); /* 0x36098207: call 0x3601c8c0 */ /* not lifted */
  11716     RECOMP_FLAGS_IN();
  11717 L_3609820C:
  11718     esi = POP32_VAL(esp); /* 0x3609820C: pop esi */
  11719     ebp = POP32_VAL(esp); /* 0x3609820D: pop ebp */
  11720     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609820E: ret 4 */
  11721     RECOMP_REGS_OUT();
  11722 }
  11723 
  11724 void sub_36098220(void) {
  11725     int _fpu_cmp = 0;
  11726     uint32_t _cf = 0;
  11727     int _df = 1;
  11728     uint32_t _flag_k = FK_NONE;
  11729     uint32_t _flag_a = 0, _flag_b = 0;
  11730     uint32_t _itail_tgt = 0;
  11731     RECOMP_REGS_LOCALS
  11732     RECOMP_ENTER(0x36098220u);
  11733 
  11734 L_36098220:
  11735     PUSH32(esp, ebp); /* 0x36098220: push ebp */
  11736     ebp = esp; /* 0x36098221: mov ebp, esp */
  11737     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  11738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11739     esp = esp - 0x18u; /* 0x36098223: sub esp, 0x18 */
  11740     _flag_k = FK_CMP;
  11741     PUSH32(esp, ebx); /* 0x36098226: push ebx */
  11742     PUSH32(esp, esi); /* 0x36098227: push esi */
  11743     PUSH32(esp, edi); /* 0x36098228: push edi */
  11744     edi = ecx; /* 0x36098229: mov edi, ecx */
  11745     eax = MEM32(edi); /* 0x3609822B: mov eax, dword ptr [edi] */
  11746     PUSH32(esp, 2); /* 0x3609822D: push 2 */
  11747     PUSH32(esp, 0x24u); /* 0x3609822F: push 0x24 */
  11748     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36098231: call dword ptr [eax + 4] */
  11749     RECOMP_FLAGS_IN();
  11750     /* test eax, eax */ /* 0x36098234: test eax, eax */
  11751     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11752     _cf = 0;
  11753     _flag_k = FK_TEST;
  11754     if (TEST_Z(_flag_a, _flag_b)) goto L_3609836C; /* 0x36098236: je 0x3609836c */
  11755 L_3609823C:
  11756     /* cmp MEM8(edi + 0x120), 1 */ /* 0x3609823C: cmp byte ptr [edi + 0x120], 1 */
  11757     _flag_a = (uint32_t)(MEM8(edi + 0x120)) << 24; _flag_b = (uint32_t)(1) << 24;
  11758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11759     _flag_k = FK_NARROW(FK_CMP, 24);
  11760     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609836C; /* 0x36098243: je 0x3609836c */
  11761 L_36098249:
  11762     SET_LO8(eax, MEM8(edi + 0x1D4)); /* 0x36098249: mov al, byte ptr [edi + 0x1d4] */
  11763     /* test LO8(eax), LO8(eax) */ /* 0x3609824F: test al, al */
  11764     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11765     _cf = 0;
  11766     _flag_k = FK_NARROW(FK_TEST, 24);
  11767     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609836C; /* 0x36098251: jne 0x3609836c */
  11768 L_36098257:
  11769     SET_LO8(eax, MEM8(edi + 0x1BC)); /* 0x36098257: mov al, byte ptr [edi + 0x1bc] */
  11770     /* test LO8(eax), LO8(eax) */ /* 0x3609825D: test al, al */
  11771     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11772     _cf = 0;
  11773     _flag_k = FK_NARROW(FK_TEST, 24);
  11774     if (TEST_Z(_flag_a, _flag_b)) goto L_3609836C; /* 0x3609825F: je 0x3609836c */
  11775 L_36098265:
  11776     ecx = MEM32(ebp + 0x8); /* 0x36098265: mov ecx, dword ptr [ebp + 8] */
  11777     SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x36098268: mov al, byte ptr [ecx + 0x1b4] */
  11778     /* test LO8(eax), LO8(eax) */ /* 0x3609826E: test al, al */
  11779     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11780     _cf = 0;
  11781     _flag_k = FK_NARROW(FK_TEST, 24);
  11782     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609836C; /* 0x36098270: jne 0x3609836c */
  11783 L_36098276:
  11784     ebx = MEM32(0x3616FFB0); /* 0x36098276: mov ebx, dword ptr [0x3616ffb0] */
  11785     RECOMP_ICALL(ebx); /* 0x3609827C: call ebx */
  11786     RECOMP_FLAGS_IN();
  11787     ecx = edi + 0x8C; /* 0x3609827E: lea ecx, [edi + 0x8c] */
  11788     esi = eax; /* 0x36098284: mov esi, eax */
  11789     RECOMP_ICALL(ebx); /* 0x36098286: call ebx */
  11790     RECOMP_FLAGS_IN();
  11791     ecx = MEM32(eax); /* 0x36098288: mov ecx, dword ptr [eax] */
  11792     edx = MEM32(eax + 0x4); /* 0x3609828A: mov edx, dword ptr [eax + 4] */
  11793     eax = MEM32(eax + 0x8); /* 0x3609828D: mov eax, dword ptr [eax + 8] */
  11794     MEM32(ebp + (-0xC)) = ecx; /* 0x36098290: mov dword ptr [ebp - 0xc], ecx */
  11795     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36098293: fld dword ptr [ebp - 0xc] */
  11796     _st[0] -= (double)*(float*)ADDR(esi); /* 0x36098296: fsub dword ptr [esi] */
  11797     MEM32(ebp + (-0x8)) = edx; /* 0x36098298: mov dword ptr [ebp - 8], edx */
  11798     MEM32(ebp + (-0x4)) = eax; /* 0x3609829B: mov dword ptr [ebp - 4], eax */
  11799     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3609829E: fstp dword ptr [ebp - 0xc] */
  11800     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x360982A1: fld dword ptr [ebp - 8] */
  11801     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x360982A4: fsub dword ptr [esi + 4] */
  11802     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x360982A7: fstp dword ptr [ebp - 8] */
  11803     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x360982AA: fld dword ptr [ebp - 4] */
  11804     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x360982AD: fsub dword ptr [esi + 8] */
  11805     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x360982B0: fstp dword ptr [ebp - 4] */
  11806     RECOMP_ICALL(0x3600C230u); /* 0x360982B3: call 0x3600c230 */ /* not lifted */
  11807     RECOMP_FLAGS_IN();
  11808     SET_LO8(ecx, MEM8(eax + 0x1C)); /* 0x360982B8: mov cl, byte ptr [eax + 0x1c] */
  11809     /* test LO8(ecx), LO8(ecx) */ /* 0x360982BB: test cl, cl */
  11810     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11811     _cf = 0;
  11812     _flag_k = FK_NARROW(FK_TEST, 24);
  11813     if (TEST_Z(_flag_a, _flag_b)) goto L_3609836C; /* 0x360982BD: je 0x3609836c */
  11814 L_360982C3:
  11815     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x360982C3: fld dword ptr [ebp - 8] */
  11816     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11818     esp = esp - 0xCu; /* 0x360982C6: sub esp, 0xc */
  11819     _flag_k = FK_CMP;
  11820     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x360982C9: fmul dword ptr [ebp - 8] */
  11821     MEM32(ebp + (-0x18)) = 0; /* 0x360982CC: mov dword ptr [ebp - 0x18], 0 */
  11822     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x360982D3: fld dword ptr [ebp - 0xc] */
  11823     edx = MEM32(ebp + (-0x18)); /* 0x360982D6: mov edx, dword ptr [ebp - 0x18] */
  11824     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x360982D9: fmul dword ptr [ebp - 0xc] */
  11825     ecx = esp; /* 0x360982DC: mov ecx, esp */
  11826     MEM32(ecx) = edx; /* 0x360982DE: mov dword ptr [ecx], edx */
  11827     MEM32(ebp + (-0x14)) = 0; /* 0x360982E0: mov dword ptr [ebp - 0x14], 0 */
  11828     { double _v = fp_pop(); _st[0] += _v; } /* 0x360982E7: faddp st(1) */
  11829     eax = MEM32(ebp + (-0x14)); /* 0x360982E9: mov eax, dword ptr [ebp - 0x14] */
  11830     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x360982EC: fld dword ptr [ebp - 4] */
  11831     MEM32(ebp + (-0x10)) = 0; /* 0x360982EF: mov dword ptr [ebp - 0x10], 0 */
  11832     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x360982F6: fmul dword ptr [ebp - 4] */
  11833     edx = MEM32(ebp + (-0x10)); /* 0x360982F9: mov edx, dword ptr [ebp - 0x10] */
  11834     MEM32(ecx + 0x4) = eax; /* 0x360982FC: mov dword ptr [ecx + 4], eax */
  11835     MEM32(ecx + 0x8) = edx; /* 0x360982FF: mov dword ptr [ecx + 8], edx */
  11836     { double _v = fp_pop(); _st[0] += _v; } /* 0x36098302: faddp st(1) */
  11837     PUSH32(esp, 1); /* 0x36098304: push 1 */
  11838     _st[0] = sqrt(_st[0]); /* 0x36098306: fsqrt  */
  11839     _st[0] = (double)*(float*)ADDR(0x3617158C) - _st[0]; /* 0x36098308: fsubr dword ptr [0x3617158c] */
  11840     _st[0] *= (double)*(float*)ADDR(0x361709C0); /* 0x3609830E: fmul dword ptr [0x361709c0] */
  11841     _st[0] += (double)*(float*)ADDR(0x36170888); /* 0x36098314: fadd dword ptr [0x36170888] */
  11842     RECOMP_ICALL(0x3615FD8Cu); /* 0x3609831A: call 0x3615fd8c */ /* not lifted */
  11843     RECOMP_FLAGS_IN();
  11844     PUSH32(esp, eax); /* 0x3609831F: push eax */
  11845     PUSH32(esp, 0); /* 0x36098320: push 0 */
  11846     PUSH32(esp, 0); /* 0x36098322: push 0 */
  11847     PUSH32(esp, 0x3F800000u); /* 0x36098324: push 0x3f800000 */
  11848     PUSH32(esp, 0); /* 0x36098329: push 0 */
  11849     ecx = edi + 0x8C; /* 0x3609832B: lea ecx, [edi + 0x8c] */
  11850     RECOMP_ICALL(ebx); /* 0x36098331: call ebx */
  11851     RECOMP_FLAGS_IN();
  11852     edx = MEM32(eax); /* 0x36098333: mov edx, dword ptr [eax] */
  11853     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11855     esp = esp - 0xCu; /* 0x36098335: sub esp, 0xc */
  11856     _flag_k = FK_CMP;
  11857     ecx = esp; /* 0x36098338: mov ecx, esp */
  11858     MEM32(ecx) = edx; /* 0x3609833A: mov dword ptr [ecx], edx */
  11859     edx = MEM32(eax + 0x4); /* 0x3609833C: mov edx, dword ptr [eax + 4] */
  11860     eax = MEM32(eax + 0x8); /* 0x3609833F: mov eax, dword ptr [eax + 8] */
  11861     MEM32(ecx + 0x4) = edx; /* 0x36098342: mov dword ptr [ecx + 4], edx */
  11862     MEM32(ecx + 0x8) = eax; /* 0x36098345: mov dword ptr [ecx + 8], eax */
  11863     ecx = MEM32(edi + 0x1CC); /* 0x36098348: mov ecx, dword ptr [edi + 0x1cc] */
  11864     PUSH32(esp, ecx); /* 0x3609834E: push ecx */
  11865     RECOMP_ICALL(0x3601C590u); /* 0x3609834F: call 0x3601c590 */ /* not lifted */
  11866     RECOMP_FLAGS_IN();
  11867     ecx = eax; /* 0x36098354: mov ecx, eax */
  11868     RECOMP_ICALL(0x3601CBF0u); /* 0x36098356: call 0x3601cbf0 */ /* not lifted */
  11869     RECOMP_FLAGS_IN();
  11870     PUSH32(esp, 0x40400000u); /* 0x3609835B: push 0x40400000 */
  11871     RECOMP_ICALL(0x3601C590u); /* 0x36098360: call 0x3601c590 */ /* not lifted */
  11872     RECOMP_FLAGS_IN();
  11873     ecx = eax; /* 0x36098365: mov ecx, eax */
  11874     RECOMP_ICALL(0x3601CDF0u); /* 0x36098367: call 0x3601cdf0 */ /* not lifted */
  11875     RECOMP_FLAGS_IN();
  11876 L_3609836C:
  11877     edi = POP32_VAL(esp); /* 0x3609836C: pop edi */
  11878     esi = POP32_VAL(esp); /* 0x3609836D: pop esi */
  11879     ebx = POP32_VAL(esp); /* 0x3609836E: pop ebx */
  11880     esp = ebp; /* 0x3609836F: mov esp, ebp */
  11881     ebp = POP32_VAL(esp); /* 0x36098371: pop ebp */
  11882     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36098372: ret 4 */
  11883     RECOMP_REGS_OUT();
  11884 }