aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0099.c (535793B)


      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_36156022(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(0x36156022u);
     17 
     18     goto L_36156022;
     19 L_36155FA4:
     20     edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */
     21     ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */
     22     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     23     eax = 0; /* 0x36155FAD: xor eax, eax */
     24     _cf = 0;
     25     _flag_k = FK_TEST;
     26     PUSH32(esp, ecx); /* 0x36155FAF: push ecx */
     27     PUSH32(esp, ebx); /* 0x36155FB0: push ebx */
     28     MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */
     29     MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */
     30     RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */
     31     RECOMP_FLAGS_IN();
     32     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
     33     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     34     esp = esp + 8; /* 0x36155FBC: add esp, 8 */
     35     _flag_k = FK_ADD;
     36     edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */
     37     PUSH32(esp, edx); /* 0x36155FC2: push edx */
     38     ecx = ebx; /* 0x36155FC3: mov ecx, ebx */
     39     RECOMP_ICALL(edi); /* 0x36155FC5: call edi */
     40     RECOMP_FLAGS_IN();
     41     eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */
     42     PUSH32(esp, eax); /* 0x36155FCA: push eax */
     43     ecx = ebx; /* 0x36155FCB: mov ecx, ebx */
     44     RECOMP_ICALL(edi); /* 0x36155FCD: call edi */
     45     RECOMP_FLAGS_IN();
     46     edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */
     47     eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */
     48     ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */
     49     MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */
     50     edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */
     51     MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */
     52     eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */
     53     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
     54     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     55     edx = edx - eax; /* 0x36155FE4: sub edx, eax */
     56     _flag_k = FK_CMP;
     57     MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */
     58     ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */
     59     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */
     60     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
     61     edx = (uint32_t)((int32_t)edx >> 4u);
     62     /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */
     63     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
     64     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     65     _flag_k = FK_CMP;
     66     MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */
     67     edi = eax; /* 0x36155FF5: mov edi, eax */
     68     if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */
     69 L_36155FFD:
     70     edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */
     71     /* test edx, edx */ /* 0x36156000: test edx, edx */
     72     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
     73     _cf = 0;
     74     _flag_k = FK_TEST;
     75     if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */
     76 L_36156004:
     77     ecx = eax; /* 0x36156004: mov ecx, eax */
     78     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
     79     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     80     ecx = ecx - edx; /* 0x36156006: sub ecx, edx */
     81     _flag_k = FK_CMP;
     82     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */
     83     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
     84     ecx = (uint32_t)((int32_t)ecx >> 4u);
     85     /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */
     86     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
     87     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     88     _flag_k = FK_CMP;
     89     if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */
     90 L_36156010:
     91     ecx = 1; /* 0x36156010: mov ecx, 1 */
     92 L_36156015:
     93     /* test edx, edx */ /* 0x36156015: test edx, edx */
     94     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
     95     _cf = 0;
     96     _flag_k = FK_TEST;
     97     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */
     98 L_36156019:
     99     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    100     eax = 0; /* 0x36156019: xor eax, eax */
    101     _cf = 0;
    102     _flag_k = FK_TEST;
    103     goto L_36156022; /* 0x3615601B: jmp 0x36156022 */
    104 L_3615601D:
    105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    107     eax = eax - edx; /* 0x3615601D: sub eax, edx */
    108     _flag_k = FK_CMP;
    109     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */
    110     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    111     eax = (uint32_t)((int32_t)eax >> 4u);
    112 L_36156022:
    113     ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */
    114     /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */
    115     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    116     _cf = 0;
    117     _flag_k = FK_TEST;
    118     eax = ebx; /* 0x36156027: mov eax, ebx */
    119     if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */
    120 L_3615602B:
    121     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    122     eax = 0; /* 0x3615602B: xor eax, eax */
    123     _cf = 0;
    124     _flag_k = FK_TEST;
    125 L_3615602D:
    126     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */
    127     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    128     eax = eax << 4u; /* 0x3615602D: shl eax, 4 */
    129     PUSH32(esp, eax); /* 0x36156030: push eax */
    130     RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */
    131     RECOMP_FLAGS_IN();
    132     MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */
    133     MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */
    134     eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */
    135     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    136     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    137     esp = esp + 4; /* 0x3615603F: add esp, 4 */
    138     _flag_k = FK_ADD;
    139     /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */
    140     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    142     _flag_k = FK_CMP;
    143     MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */
    144     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */
    145 L_36156049:
    146     goto L_3615604E; /* 0x36156049: jmp 0x3615604e */
    147 L_3615604B:
    148     eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */
    149 L_3615604E:
    150     PUSH32(esp, eax); /* 0x3615604E: push eax */
    151     eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */
    152     PUSH32(esp, eax); /* 0x36156052: push eax */
    153     RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */
    154     RECOMP_FLAGS_IN();
    155     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u);
    156     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    157     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */
    158     _flag_k = FK_ADD;
    159     eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */
    160     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
    161     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    162     eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */
    163     _flag_k = FK_ADD;
    164     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    165     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    166     esp = esp + 8; /* 0x36156062: add esp, 8 */
    167     _flag_k = FK_ADD;
    168     /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */
    169     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    170     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    171     _flag_k = FK_CMP;
    172     MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */
    173     RECOMP_BACKEDGE();
    174     if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */
    175 L_3615606C:
    176     edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */
    177     ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */
    178     PUSH32(esp, ecx); /* 0x36156072: push ecx */
    179     PUSH32(esp, 1); /* 0x36156073: push 1 */
    180     PUSH32(esp, edx); /* 0x36156075: push edx */
    181     ecx = esi; /* 0x36156076: mov ecx, esi */
    182     RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */
    183     RECOMP_FLAGS_IN();
    184     eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */
    185     ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */
    186     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
    187     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    188     eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */
    189     _flag_k = FK_ADD;
    190     PUSH32(esp, eax); /* 0x36156086: push eax */
    191     PUSH32(esp, ecx); /* 0x36156087: push ecx */
    192     PUSH32(esp, edi); /* 0x36156088: push edi */
    193     ecx = esi; /* 0x36156089: mov ecx, esi */
    194     RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */
    195     RECOMP_FLAGS_IN();
    196     edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */
    197     eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */
    198     PUSH32(esp, edx); /* 0x36156096: push edx */
    199     PUSH32(esp, eax); /* 0x36156097: push eax */
    200     ecx = esi; /* 0x36156098: mov ecx, esi */
    201     RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */
    202     RECOMP_FLAGS_IN();
    203     ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */
    204     PUSH32(esp, ecx); /* 0x361560A2: push ecx */
    205     RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */
    206     RECOMP_FLAGS_IN();
    207     eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */
    208     ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */
    209     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */
    210     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    211     ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */
    212     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
    213     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    214     ebx = ebx + eax; /* 0x361560B1: add ebx, eax */
    215     _flag_k = FK_ADD;
    216     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    217     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    218     esp = esp + 4; /* 0x361560B3: add esp, 4 */
    219     _flag_k = FK_ADD;
    220     /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */
    221     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    222     _cf = 0;
    223     _flag_k = FK_TEST;
    224     MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */
    225     if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */
    226 L_361560BD:
    227     ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */
    228     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    229     edx = 0; /* 0x361560C0: xor edx, edx */
    230     _cf = 0;
    231     _flag_k = FK_TEST;
    232     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
    233     edx = edx + 1; /* 0x361560C2: inc edx */
    234     _flag_k = FK_INC;
    235     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */
    236     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    237     edx = edx << 4u; /* 0x361560C3: shl edx, 4 */
    238     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    239     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    240     edx = edx + eax; /* 0x361560C6: add edx, eax */
    241     _flag_k = FK_ADD;
    242     MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */
    243     MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */
    244     goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */
    245 L_361560D3:
    246     edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */
    247     ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */
    248     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    250     edx = edx - ecx; /* 0x361560D9: sub edx, ecx */
    251     _flag_k = FK_CMP;
    252     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */
    253     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    254     edx = (uint32_t)((int32_t)edx >> 4u);
    255     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
    256     edx = edx + 1; /* 0x361560DE: inc edx */
    257     _flag_k = FK_INC;
    258     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */
    259     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    260     edx = edx << 4u; /* 0x361560DF: shl edx, 4 */
    261     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    262     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    263     edx = edx + eax; /* 0x361560E2: add edx, eax */
    264     _flag_k = FK_ADD;
    265     MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */
    266     MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */
    267     goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */
    268 L_361560EF:
    269     ecx = eax; /* 0x361560EF: mov ecx, eax */
    270     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
    271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    272     ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */
    273     _flag_k = FK_CMP;
    274     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */
    275     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    276     ecx = (uint32_t)((int32_t)ecx >> 4u);
    277     /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */
    278     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    280     _flag_k = FK_CMP;
    281     if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */
    282 L_361560FB:
    283     edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */
    284     PUSH32(esp, edx); /* 0x361560FE: push edx */
    285     PUSH32(esp, eax); /* 0x361560FF: push eax */
    286     PUSH32(esp, edi); /* 0x36156100: push edi */
    287     ecx = esi; /* 0x36156101: mov ecx, esi */
    288     RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */
    289     RECOMP_FLAGS_IN();
    290     eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */
    291     edx = eax; /* 0x3615610B: mov edx, eax */
    292     ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */
    293     PUSH32(esp, ecx); /* 0x36156110: push ecx */
    294     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
    295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    296     edx = edx - edi; /* 0x36156111: sub edx, edi */
    297     _flag_k = FK_CMP;
    298     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */
    299     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    300     edx = (uint32_t)((int32_t)edx >> 4u);
    301     ecx = 1; /* 0x36156116: mov ecx, 1 */
    302     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    304     ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */
    305     _flag_k = FK_CMP;
    306     PUSH32(esp, ecx); /* 0x3615611D: push ecx */
    307     PUSH32(esp, eax); /* 0x3615611E: push eax */
    308     ecx = esi; /* 0x3615611F: mov ecx, esi */
    309     RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */
    310     RECOMP_FLAGS_IN();
    311     eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */
    312     /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */
    313     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    314     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    315     _flag_k = FK_CMP;
    316     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */
    317 L_36156131:
    318     ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */
    319     edx = edi; /* 0x36156134: mov edx, edi */
    320     MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */
    321     ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */
    322     MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */
    323     ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */
    324     MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */
    325     ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */
    326     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
    327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    328     edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */
    329     _flag_k = FK_ADD;
    330     /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */
    331     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    332     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    333     _flag_k = FK_CMP;
    334     MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */
    335     RECOMP_BACKEDGE();
    336     if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */
    337 L_36156151:
    338     goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */
    339 L_36156153:
    340     PUSH32(esp, eax); /* 0x36156153: push eax */
    341     ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */
    342     PUSH32(esp, eax); /* 0x36156157: push eax */
    343     MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */
    344     PUSH32(esp, ecx); /* 0x3615615B: push ecx */
    345     ecx = esi; /* 0x3615615C: mov ecx, esi */
    346     RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */
    347     RECOMP_FLAGS_IN();
    348     ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */
    349     eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */
    350     /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */
    351     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    352     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    353     _flag_k = FK_CMP;
    354     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */
    355 L_3615616D:
    356     goto L_36156172; /* 0x3615616D: jmp 0x36156172 */
    357 L_3615616F:
    358     ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */
    359 L_36156172:
    360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
    361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    362     eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */
    363     _flag_k = FK_CMP;
    364     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
    365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    366     ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */
    367     _flag_k = FK_CMP;
    368     /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */
    369     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    370     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    371     _flag_k = FK_CMP;
    372     edx = eax; /* 0x3615617A: mov edx, eax */
    373     ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */
    374     MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */
    375     MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */
    376     ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */
    377     MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */
    378     ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */
    379     MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */
    380     edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */
    381     MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */
    382     RECOMP_BACKEDGE();
    383     if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */
    384 L_36156197:
    385     ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */
    386 L_3615619A:
    387     eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */
    388     /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */
    389     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    390     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    391     _flag_k = FK_CMP;
    392     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */
    393 L_361561A1:
    394     edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */
    395     ecx = edi; /* 0x361561A4: mov ecx, edi */
    396     MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */
    397     edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */
    398     MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */
    399     edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */
    400     MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */
    401     edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */
    402     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
    403     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    404     edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */
    405     _flag_k = FK_ADD;
    406     /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */
    407     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    408     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    409     _flag_k = FK_CMP;
    410     MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */
    411     RECOMP_BACKEDGE();
    412     if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */
    413 L_361561C1:
    414     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u);
    415     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    416     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */
    417     _flag_k = FK_ADD;
    418 L_361561C5:
    419     eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */
    420     ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */
    421     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    422     eax = eax + 1; /* 0x361561CB: inc eax */
    423     _flag_k = FK_INC;
    424     /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */
    425     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    427     _flag_k = FK_CMP;
    428     MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */
    429     RECOMP_BACKEDGE();
    430     if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */
    431 L_361561D7:
    432     esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */
    433     edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */
    434     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u);
    435     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    436     esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */
    437     _flag_k = FK_ADD;
    438     PUSH32(esp, esi); /* 0x361561E3: push esi */
    439     ecx = ebx; /* 0x361561E4: mov ecx, ebx */
    440     RECOMP_ICALL(edi); /* 0x361561E6: call edi */
    441     RECOMP_FLAGS_IN();
    442     ecx = ebx; /* 0x361561E8: mov ecx, ebx */
    443     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */
    444     RECOMP_FLAGS_IN();
    445     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    446     _cf = (eax) != 0;
    447     eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */
    448     _flag_k = FK_CMP;
    449     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */
    450       eax = _sc ? 0xFFFFFFFFu : 0;
    451       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    452       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    453     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    454     eax = eax + 1; /* 0x361561F4: inc eax */
    455     _flag_k = FK_INC;
    456     edi = POP32_VAL(esp); /* 0x361561F5: pop edi */
    457     esi = POP32_VAL(esp); /* 0x361561F6: pop esi */
    458     ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */
    459     esp = ebp; /* 0x361561F8: mov esp, ebp */
    460     ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */
    461     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */
    462     RECOMP_REGS_OUT();
    463 }
    464 
    465 void sub_3615604B(void) {
    466     int _fpu_cmp = 0;
    467     uint32_t _cf = 0;
    468     int _df = 1;
    469     uint32_t _flag_k = FK_NONE;
    470     uint32_t _flag_a = 0, _flag_b = 0;
    471     uint32_t _itail_tgt = 0;
    472     RECOMP_REGS_LOCALS
    473     RECOMP_ENTER(0x3615604Bu);
    474 
    475     goto L_3615604B;
    476 L_36155FA4:
    477     edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */
    478     ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */
    479     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    480     eax = 0; /* 0x36155FAD: xor eax, eax */
    481     _cf = 0;
    482     _flag_k = FK_TEST;
    483     PUSH32(esp, ecx); /* 0x36155FAF: push ecx */
    484     PUSH32(esp, ebx); /* 0x36155FB0: push ebx */
    485     MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */
    486     MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */
    487     RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */
    488     RECOMP_FLAGS_IN();
    489     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    490     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    491     esp = esp + 8; /* 0x36155FBC: add esp, 8 */
    492     _flag_k = FK_ADD;
    493     edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */
    494     PUSH32(esp, edx); /* 0x36155FC2: push edx */
    495     ecx = ebx; /* 0x36155FC3: mov ecx, ebx */
    496     RECOMP_ICALL(edi); /* 0x36155FC5: call edi */
    497     RECOMP_FLAGS_IN();
    498     eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */
    499     PUSH32(esp, eax); /* 0x36155FCA: push eax */
    500     ecx = ebx; /* 0x36155FCB: mov ecx, ebx */
    501     RECOMP_ICALL(edi); /* 0x36155FCD: call edi */
    502     RECOMP_FLAGS_IN();
    503     edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */
    504     eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */
    505     ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */
    506     MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */
    507     edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */
    508     MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */
    509     eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */
    510     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    512     edx = edx - eax; /* 0x36155FE4: sub edx, eax */
    513     _flag_k = FK_CMP;
    514     MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */
    515     ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */
    516     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */
    517     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    518     edx = (uint32_t)((int32_t)edx >> 4u);
    519     /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */
    520     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
    521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    522     _flag_k = FK_CMP;
    523     MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */
    524     edi = eax; /* 0x36155FF5: mov edi, eax */
    525     if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */
    526 L_36155FFD:
    527     edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */
    528     /* test edx, edx */ /* 0x36156000: test edx, edx */
    529     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    530     _cf = 0;
    531     _flag_k = FK_TEST;
    532     if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */
    533 L_36156004:
    534     ecx = eax; /* 0x36156004: mov ecx, eax */
    535     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    537     ecx = ecx - edx; /* 0x36156006: sub ecx, edx */
    538     _flag_k = FK_CMP;
    539     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */
    540     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    541     ecx = (uint32_t)((int32_t)ecx >> 4u);
    542     /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */
    543     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    545     _flag_k = FK_CMP;
    546     if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */
    547 L_36156010:
    548     ecx = 1; /* 0x36156010: mov ecx, 1 */
    549 L_36156015:
    550     /* test edx, edx */ /* 0x36156015: test edx, edx */
    551     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    552     _cf = 0;
    553     _flag_k = FK_TEST;
    554     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */
    555 L_36156019:
    556     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    557     eax = 0; /* 0x36156019: xor eax, eax */
    558     _cf = 0;
    559     _flag_k = FK_TEST;
    560     goto L_36156022; /* 0x3615601B: jmp 0x36156022 */
    561 L_3615601D:
    562     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    564     eax = eax - edx; /* 0x3615601D: sub eax, edx */
    565     _flag_k = FK_CMP;
    566     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */
    567     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    568     eax = (uint32_t)((int32_t)eax >> 4u);
    569 L_36156022:
    570     ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */
    571     /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */
    572     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    573     _cf = 0;
    574     _flag_k = FK_TEST;
    575     eax = ebx; /* 0x36156027: mov eax, ebx */
    576     if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */
    577 L_3615602B:
    578     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    579     eax = 0; /* 0x3615602B: xor eax, eax */
    580     _cf = 0;
    581     _flag_k = FK_TEST;
    582 L_3615602D:
    583     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */
    584     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    585     eax = eax << 4u; /* 0x3615602D: shl eax, 4 */
    586     PUSH32(esp, eax); /* 0x36156030: push eax */
    587     RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */
    588     RECOMP_FLAGS_IN();
    589     MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */
    590     MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */
    591     eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */
    592     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    593     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    594     esp = esp + 4; /* 0x3615603F: add esp, 4 */
    595     _flag_k = FK_ADD;
    596     /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */
    597     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    599     _flag_k = FK_CMP;
    600     MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */
    601     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */
    602 L_36156049:
    603     goto L_3615604E; /* 0x36156049: jmp 0x3615604e */
    604 L_3615604B:
    605     eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */
    606 L_3615604E:
    607     PUSH32(esp, eax); /* 0x3615604E: push eax */
    608     eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */
    609     PUSH32(esp, eax); /* 0x36156052: push eax */
    610     RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */
    611     RECOMP_FLAGS_IN();
    612     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u);
    613     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    614     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */
    615     _flag_k = FK_ADD;
    616     eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */
    617     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
    618     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    619     eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */
    620     _flag_k = FK_ADD;
    621     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    622     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    623     esp = esp + 8; /* 0x36156062: add esp, 8 */
    624     _flag_k = FK_ADD;
    625     /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */
    626     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    627     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    628     _flag_k = FK_CMP;
    629     MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */
    630     RECOMP_BACKEDGE();
    631     if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */
    632 L_3615606C:
    633     edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */
    634     ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */
    635     PUSH32(esp, ecx); /* 0x36156072: push ecx */
    636     PUSH32(esp, 1); /* 0x36156073: push 1 */
    637     PUSH32(esp, edx); /* 0x36156075: push edx */
    638     ecx = esi; /* 0x36156076: mov ecx, esi */
    639     RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */
    640     RECOMP_FLAGS_IN();
    641     eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */
    642     ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */
    643     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
    644     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    645     eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */
    646     _flag_k = FK_ADD;
    647     PUSH32(esp, eax); /* 0x36156086: push eax */
    648     PUSH32(esp, ecx); /* 0x36156087: push ecx */
    649     PUSH32(esp, edi); /* 0x36156088: push edi */
    650     ecx = esi; /* 0x36156089: mov ecx, esi */
    651     RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */
    652     RECOMP_FLAGS_IN();
    653     edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */
    654     eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */
    655     PUSH32(esp, edx); /* 0x36156096: push edx */
    656     PUSH32(esp, eax); /* 0x36156097: push eax */
    657     ecx = esi; /* 0x36156098: mov ecx, esi */
    658     RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */
    659     RECOMP_FLAGS_IN();
    660     ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */
    661     PUSH32(esp, ecx); /* 0x361560A2: push ecx */
    662     RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */
    663     RECOMP_FLAGS_IN();
    664     eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */
    665     ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */
    666     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */
    667     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    668     ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */
    669     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
    670     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    671     ebx = ebx + eax; /* 0x361560B1: add ebx, eax */
    672     _flag_k = FK_ADD;
    673     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    674     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    675     esp = esp + 4; /* 0x361560B3: add esp, 4 */
    676     _flag_k = FK_ADD;
    677     /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */
    678     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    679     _cf = 0;
    680     _flag_k = FK_TEST;
    681     MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */
    682     if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */
    683 L_361560BD:
    684     ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */
    685     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    686     edx = 0; /* 0x361560C0: xor edx, edx */
    687     _cf = 0;
    688     _flag_k = FK_TEST;
    689     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
    690     edx = edx + 1; /* 0x361560C2: inc edx */
    691     _flag_k = FK_INC;
    692     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */
    693     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    694     edx = edx << 4u; /* 0x361560C3: shl edx, 4 */
    695     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    696     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    697     edx = edx + eax; /* 0x361560C6: add edx, eax */
    698     _flag_k = FK_ADD;
    699     MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */
    700     MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */
    701     goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */
    702 L_361560D3:
    703     edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */
    704     ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */
    705     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    707     edx = edx - ecx; /* 0x361560D9: sub edx, ecx */
    708     _flag_k = FK_CMP;
    709     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */
    710     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    711     edx = (uint32_t)((int32_t)edx >> 4u);
    712     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
    713     edx = edx + 1; /* 0x361560DE: inc edx */
    714     _flag_k = FK_INC;
    715     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */
    716     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    717     edx = edx << 4u; /* 0x361560DF: shl edx, 4 */
    718     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    719     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    720     edx = edx + eax; /* 0x361560E2: add edx, eax */
    721     _flag_k = FK_ADD;
    722     MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */
    723     MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */
    724     goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */
    725 L_361560EF:
    726     ecx = eax; /* 0x361560EF: mov ecx, eax */
    727     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
    728     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    729     ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */
    730     _flag_k = FK_CMP;
    731     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */
    732     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    733     ecx = (uint32_t)((int32_t)ecx >> 4u);
    734     /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */
    735     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    737     _flag_k = FK_CMP;
    738     if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */
    739 L_361560FB:
    740     edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */
    741     PUSH32(esp, edx); /* 0x361560FE: push edx */
    742     PUSH32(esp, eax); /* 0x361560FF: push eax */
    743     PUSH32(esp, edi); /* 0x36156100: push edi */
    744     ecx = esi; /* 0x36156101: mov ecx, esi */
    745     RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */
    746     RECOMP_FLAGS_IN();
    747     eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */
    748     edx = eax; /* 0x3615610B: mov edx, eax */
    749     ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */
    750     PUSH32(esp, ecx); /* 0x36156110: push ecx */
    751     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
    752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    753     edx = edx - edi; /* 0x36156111: sub edx, edi */
    754     _flag_k = FK_CMP;
    755     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */
    756     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    757     edx = (uint32_t)((int32_t)edx >> 4u);
    758     ecx = 1; /* 0x36156116: mov ecx, 1 */
    759     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    760     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    761     ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */
    762     _flag_k = FK_CMP;
    763     PUSH32(esp, ecx); /* 0x3615611D: push ecx */
    764     PUSH32(esp, eax); /* 0x3615611E: push eax */
    765     ecx = esi; /* 0x3615611F: mov ecx, esi */
    766     RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */
    767     RECOMP_FLAGS_IN();
    768     eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */
    769     /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */
    770     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    772     _flag_k = FK_CMP;
    773     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */
    774 L_36156131:
    775     ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */
    776     edx = edi; /* 0x36156134: mov edx, edi */
    777     MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */
    778     ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */
    779     MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */
    780     ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */
    781     MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */
    782     ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */
    783     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
    784     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    785     edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */
    786     _flag_k = FK_ADD;
    787     /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */
    788     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    789     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    790     _flag_k = FK_CMP;
    791     MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */
    792     RECOMP_BACKEDGE();
    793     if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */
    794 L_36156151:
    795     goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */
    796 L_36156153:
    797     PUSH32(esp, eax); /* 0x36156153: push eax */
    798     ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */
    799     PUSH32(esp, eax); /* 0x36156157: push eax */
    800     MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */
    801     PUSH32(esp, ecx); /* 0x3615615B: push ecx */
    802     ecx = esi; /* 0x3615615C: mov ecx, esi */
    803     RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */
    804     RECOMP_FLAGS_IN();
    805     ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */
    806     eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */
    807     /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */
    808     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    809     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    810     _flag_k = FK_CMP;
    811     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */
    812 L_3615616D:
    813     goto L_36156172; /* 0x3615616D: jmp 0x36156172 */
    814 L_3615616F:
    815     ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */
    816 L_36156172:
    817     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
    818     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    819     eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */
    820     _flag_k = FK_CMP;
    821     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
    822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    823     ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */
    824     _flag_k = FK_CMP;
    825     /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */
    826     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    828     _flag_k = FK_CMP;
    829     edx = eax; /* 0x3615617A: mov edx, eax */
    830     ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */
    831     MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */
    832     MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */
    833     ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */
    834     MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */
    835     ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */
    836     MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */
    837     edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */
    838     MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */
    839     RECOMP_BACKEDGE();
    840     if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */
    841 L_36156197:
    842     ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */
    843 L_3615619A:
    844     eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */
    845     /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */
    846     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    848     _flag_k = FK_CMP;
    849     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */
    850 L_361561A1:
    851     edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */
    852     ecx = edi; /* 0x361561A4: mov ecx, edi */
    853     MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */
    854     edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */
    855     MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */
    856     edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */
    857     MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */
    858     edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */
    859     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
    860     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    861     edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */
    862     _flag_k = FK_ADD;
    863     /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */
    864     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    866     _flag_k = FK_CMP;
    867     MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */
    868     RECOMP_BACKEDGE();
    869     if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */
    870 L_361561C1:
    871     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u);
    872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    873     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */
    874     _flag_k = FK_ADD;
    875 L_361561C5:
    876     eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */
    877     ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */
    878     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    879     eax = eax + 1; /* 0x361561CB: inc eax */
    880     _flag_k = FK_INC;
    881     /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */
    882     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    883     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    884     _flag_k = FK_CMP;
    885     MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */
    886     RECOMP_BACKEDGE();
    887     if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */
    888 L_361561D7:
    889     esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */
    890     edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */
    891     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u);
    892     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    893     esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */
    894     _flag_k = FK_ADD;
    895     PUSH32(esp, esi); /* 0x361561E3: push esi */
    896     ecx = ebx; /* 0x361561E4: mov ecx, ebx */
    897     RECOMP_ICALL(edi); /* 0x361561E6: call edi */
    898     RECOMP_FLAGS_IN();
    899     ecx = ebx; /* 0x361561E8: mov ecx, ebx */
    900     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */
    901     RECOMP_FLAGS_IN();
    902     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    903     _cf = (eax) != 0;
    904     eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */
    905     _flag_k = FK_CMP;
    906     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */
    907       eax = _sc ? 0xFFFFFFFFu : 0;
    908       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    909       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    910     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    911     eax = eax + 1; /* 0x361561F4: inc eax */
    912     _flag_k = FK_INC;
    913     edi = POP32_VAL(esp); /* 0x361561F5: pop edi */
    914     esi = POP32_VAL(esp); /* 0x361561F6: pop esi */
    915     ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */
    916     esp = ebp; /* 0x361561F8: mov esp, ebp */
    917     ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */
    918     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */
    919     RECOMP_REGS_OUT();
    920 }
    921 
    922 void sub_3615604E(void) {
    923     int _fpu_cmp = 0;
    924     uint32_t _cf = 0;
    925     int _df = 1;
    926     uint32_t _flag_k = FK_NONE;
    927     uint32_t _flag_a = 0, _flag_b = 0;
    928     uint32_t _itail_tgt = 0;
    929     RECOMP_REGS_LOCALS
    930     RECOMP_ENTER(0x3615604Eu);
    931 
    932     goto L_3615604E;
    933 L_36155FA4:
    934     edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */
    935     ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */
    936     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    937     eax = 0; /* 0x36155FAD: xor eax, eax */
    938     _cf = 0;
    939     _flag_k = FK_TEST;
    940     PUSH32(esp, ecx); /* 0x36155FAF: push ecx */
    941     PUSH32(esp, ebx); /* 0x36155FB0: push ebx */
    942     MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */
    943     MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */
    944     RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */
    945     RECOMP_FLAGS_IN();
    946     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    947     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    948     esp = esp + 8; /* 0x36155FBC: add esp, 8 */
    949     _flag_k = FK_ADD;
    950     edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */
    951     PUSH32(esp, edx); /* 0x36155FC2: push edx */
    952     ecx = ebx; /* 0x36155FC3: mov ecx, ebx */
    953     RECOMP_ICALL(edi); /* 0x36155FC5: call edi */
    954     RECOMP_FLAGS_IN();
    955     eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */
    956     PUSH32(esp, eax); /* 0x36155FCA: push eax */
    957     ecx = ebx; /* 0x36155FCB: mov ecx, ebx */
    958     RECOMP_ICALL(edi); /* 0x36155FCD: call edi */
    959     RECOMP_FLAGS_IN();
    960     edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */
    961     eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */
    962     ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */
    963     MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */
    964     edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */
    965     MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */
    966     eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */
    967     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    969     edx = edx - eax; /* 0x36155FE4: sub edx, eax */
    970     _flag_k = FK_CMP;
    971     MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */
    972     ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */
    973     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */
    974     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    975     edx = (uint32_t)((int32_t)edx >> 4u);
    976     /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */
    977     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
    978     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    979     _flag_k = FK_CMP;
    980     MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */
    981     edi = eax; /* 0x36155FF5: mov edi, eax */
    982     if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */
    983 L_36155FFD:
    984     edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */
    985     /* test edx, edx */ /* 0x36156000: test edx, edx */
    986     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    987     _cf = 0;
    988     _flag_k = FK_TEST;
    989     if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */
    990 L_36156004:
    991     ecx = eax; /* 0x36156004: mov ecx, eax */
    992     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    994     ecx = ecx - edx; /* 0x36156006: sub ecx, edx */
    995     _flag_k = FK_CMP;
    996     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */
    997     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    998     ecx = (uint32_t)((int32_t)ecx >> 4u);
    999     /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */
   1000     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1002     _flag_k = FK_CMP;
   1003     if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */
   1004 L_36156010:
   1005     ecx = 1; /* 0x36156010: mov ecx, 1 */
   1006 L_36156015:
   1007     /* test edx, edx */ /* 0x36156015: test edx, edx */
   1008     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1009     _cf = 0;
   1010     _flag_k = FK_TEST;
   1011     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */
   1012 L_36156019:
   1013     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1014     eax = 0; /* 0x36156019: xor eax, eax */
   1015     _cf = 0;
   1016     _flag_k = FK_TEST;
   1017     goto L_36156022; /* 0x3615601B: jmp 0x36156022 */
   1018 L_3615601D:
   1019     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1021     eax = eax - edx; /* 0x3615601D: sub eax, edx */
   1022     _flag_k = FK_CMP;
   1023     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */
   1024     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1025     eax = (uint32_t)((int32_t)eax >> 4u);
   1026 L_36156022:
   1027     ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */
   1028     /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */
   1029     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1030     _cf = 0;
   1031     _flag_k = FK_TEST;
   1032     eax = ebx; /* 0x36156027: mov eax, ebx */
   1033     if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */
   1034 L_3615602B:
   1035     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1036     eax = 0; /* 0x3615602B: xor eax, eax */
   1037     _cf = 0;
   1038     _flag_k = FK_TEST;
   1039 L_3615602D:
   1040     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */
   1041     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1042     eax = eax << 4u; /* 0x3615602D: shl eax, 4 */
   1043     PUSH32(esp, eax); /* 0x36156030: push eax */
   1044     RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */
   1045     RECOMP_FLAGS_IN();
   1046     MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */
   1047     MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */
   1048     eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */
   1049     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1050     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1051     esp = esp + 4; /* 0x3615603F: add esp, 4 */
   1052     _flag_k = FK_ADD;
   1053     /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */
   1054     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1056     _flag_k = FK_CMP;
   1057     MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */
   1058     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */
   1059 L_36156049:
   1060     goto L_3615604E; /* 0x36156049: jmp 0x3615604e */
   1061 L_3615604B:
   1062     eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */
   1063 L_3615604E:
   1064     PUSH32(esp, eax); /* 0x3615604E: push eax */
   1065     eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */
   1066     PUSH32(esp, eax); /* 0x36156052: push eax */
   1067     RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */
   1068     RECOMP_FLAGS_IN();
   1069     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u);
   1070     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1071     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */
   1072     _flag_k = FK_ADD;
   1073     eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */
   1074     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   1075     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1076     eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */
   1077     _flag_k = FK_ADD;
   1078     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1079     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1080     esp = esp + 8; /* 0x36156062: add esp, 8 */
   1081     _flag_k = FK_ADD;
   1082     /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */
   1083     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1084     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1085     _flag_k = FK_CMP;
   1086     MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */
   1087     RECOMP_BACKEDGE();
   1088     if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */
   1089 L_3615606C:
   1090     edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */
   1091     ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */
   1092     PUSH32(esp, ecx); /* 0x36156072: push ecx */
   1093     PUSH32(esp, 1); /* 0x36156073: push 1 */
   1094     PUSH32(esp, edx); /* 0x36156075: push edx */
   1095     ecx = esi; /* 0x36156076: mov ecx, esi */
   1096     RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */
   1097     RECOMP_FLAGS_IN();
   1098     eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */
   1099     ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */
   1100     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   1101     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1102     eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */
   1103     _flag_k = FK_ADD;
   1104     PUSH32(esp, eax); /* 0x36156086: push eax */
   1105     PUSH32(esp, ecx); /* 0x36156087: push ecx */
   1106     PUSH32(esp, edi); /* 0x36156088: push edi */
   1107     ecx = esi; /* 0x36156089: mov ecx, esi */
   1108     RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */
   1109     RECOMP_FLAGS_IN();
   1110     edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */
   1111     eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */
   1112     PUSH32(esp, edx); /* 0x36156096: push edx */
   1113     PUSH32(esp, eax); /* 0x36156097: push eax */
   1114     ecx = esi; /* 0x36156098: mov ecx, esi */
   1115     RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */
   1116     RECOMP_FLAGS_IN();
   1117     ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */
   1118     PUSH32(esp, ecx); /* 0x361560A2: push ecx */
   1119     RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */
   1120     RECOMP_FLAGS_IN();
   1121     eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */
   1122     ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */
   1123     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */
   1124     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1125     ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */
   1126     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   1127     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1128     ebx = ebx + eax; /* 0x361560B1: add ebx, eax */
   1129     _flag_k = FK_ADD;
   1130     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1131     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1132     esp = esp + 4; /* 0x361560B3: add esp, 4 */
   1133     _flag_k = FK_ADD;
   1134     /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */
   1135     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1136     _cf = 0;
   1137     _flag_k = FK_TEST;
   1138     MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */
   1139     if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */
   1140 L_361560BD:
   1141     ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */
   1142     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1143     edx = 0; /* 0x361560C0: xor edx, edx */
   1144     _cf = 0;
   1145     _flag_k = FK_TEST;
   1146     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1147     edx = edx + 1; /* 0x361560C2: inc edx */
   1148     _flag_k = FK_INC;
   1149     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */
   1150     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1151     edx = edx << 4u; /* 0x361560C3: shl edx, 4 */
   1152     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1153     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1154     edx = edx + eax; /* 0x361560C6: add edx, eax */
   1155     _flag_k = FK_ADD;
   1156     MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */
   1157     MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */
   1158     goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */
   1159 L_361560D3:
   1160     edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */
   1161     ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */
   1162     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1164     edx = edx - ecx; /* 0x361560D9: sub edx, ecx */
   1165     _flag_k = FK_CMP;
   1166     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */
   1167     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1168     edx = (uint32_t)((int32_t)edx >> 4u);
   1169     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1170     edx = edx + 1; /* 0x361560DE: inc edx */
   1171     _flag_k = FK_INC;
   1172     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */
   1173     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1174     edx = edx << 4u; /* 0x361560DF: shl edx, 4 */
   1175     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1176     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1177     edx = edx + eax; /* 0x361560E2: add edx, eax */
   1178     _flag_k = FK_ADD;
   1179     MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */
   1180     MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */
   1181     goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */
   1182 L_361560EF:
   1183     ecx = eax; /* 0x361560EF: mov ecx, eax */
   1184     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   1185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1186     ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */
   1187     _flag_k = FK_CMP;
   1188     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */
   1189     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1190     ecx = (uint32_t)((int32_t)ecx >> 4u);
   1191     /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */
   1192     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1194     _flag_k = FK_CMP;
   1195     if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */
   1196 L_361560FB:
   1197     edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */
   1198     PUSH32(esp, edx); /* 0x361560FE: push edx */
   1199     PUSH32(esp, eax); /* 0x361560FF: push eax */
   1200     PUSH32(esp, edi); /* 0x36156100: push edi */
   1201     ecx = esi; /* 0x36156101: mov ecx, esi */
   1202     RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */
   1203     RECOMP_FLAGS_IN();
   1204     eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */
   1205     edx = eax; /* 0x3615610B: mov edx, eax */
   1206     ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */
   1207     PUSH32(esp, ecx); /* 0x36156110: push ecx */
   1208     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   1209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1210     edx = edx - edi; /* 0x36156111: sub edx, edi */
   1211     _flag_k = FK_CMP;
   1212     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */
   1213     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1214     edx = (uint32_t)((int32_t)edx >> 4u);
   1215     ecx = 1; /* 0x36156116: mov ecx, 1 */
   1216     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1218     ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */
   1219     _flag_k = FK_CMP;
   1220     PUSH32(esp, ecx); /* 0x3615611D: push ecx */
   1221     PUSH32(esp, eax); /* 0x3615611E: push eax */
   1222     ecx = esi; /* 0x3615611F: mov ecx, esi */
   1223     RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */
   1224     RECOMP_FLAGS_IN();
   1225     eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */
   1226     /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */
   1227     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1229     _flag_k = FK_CMP;
   1230     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */
   1231 L_36156131:
   1232     ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */
   1233     edx = edi; /* 0x36156134: mov edx, edi */
   1234     MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */
   1235     ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */
   1236     MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */
   1237     ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */
   1238     MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */
   1239     ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */
   1240     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   1241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1242     edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */
   1243     _flag_k = FK_ADD;
   1244     /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */
   1245     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1247     _flag_k = FK_CMP;
   1248     MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */
   1249     RECOMP_BACKEDGE();
   1250     if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */
   1251 L_36156151:
   1252     goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */
   1253 L_36156153:
   1254     PUSH32(esp, eax); /* 0x36156153: push eax */
   1255     ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */
   1256     PUSH32(esp, eax); /* 0x36156157: push eax */
   1257     MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */
   1258     PUSH32(esp, ecx); /* 0x3615615B: push ecx */
   1259     ecx = esi; /* 0x3615615C: mov ecx, esi */
   1260     RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */
   1261     RECOMP_FLAGS_IN();
   1262     ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */
   1263     eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */
   1264     /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */
   1265     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1267     _flag_k = FK_CMP;
   1268     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */
   1269 L_3615616D:
   1270     goto L_36156172; /* 0x3615616D: jmp 0x36156172 */
   1271 L_3615616F:
   1272     ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */
   1273 L_36156172:
   1274     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   1275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1276     eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */
   1277     _flag_k = FK_CMP;
   1278     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   1279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1280     ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */
   1281     _flag_k = FK_CMP;
   1282     /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */
   1283     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1284     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1285     _flag_k = FK_CMP;
   1286     edx = eax; /* 0x3615617A: mov edx, eax */
   1287     ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */
   1288     MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */
   1289     MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */
   1290     ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */
   1291     MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */
   1292     ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */
   1293     MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */
   1294     edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */
   1295     MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */
   1296     RECOMP_BACKEDGE();
   1297     if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */
   1298 L_36156197:
   1299     ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */
   1300 L_3615619A:
   1301     eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */
   1302     /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */
   1303     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1305     _flag_k = FK_CMP;
   1306     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */
   1307 L_361561A1:
   1308     edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */
   1309     ecx = edi; /* 0x361561A4: mov ecx, edi */
   1310     MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */
   1311     edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */
   1312     MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */
   1313     edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */
   1314     MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */
   1315     edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */
   1316     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   1317     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1318     edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */
   1319     _flag_k = FK_ADD;
   1320     /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */
   1321     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1323     _flag_k = FK_CMP;
   1324     MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */
   1325     RECOMP_BACKEDGE();
   1326     if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */
   1327 L_361561C1:
   1328     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u);
   1329     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1330     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */
   1331     _flag_k = FK_ADD;
   1332 L_361561C5:
   1333     eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */
   1334     ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */
   1335     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1336     eax = eax + 1; /* 0x361561CB: inc eax */
   1337     _flag_k = FK_INC;
   1338     /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */
   1339     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1341     _flag_k = FK_CMP;
   1342     MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */
   1343     RECOMP_BACKEDGE();
   1344     if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */
   1345 L_361561D7:
   1346     esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */
   1347     edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */
   1348     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u);
   1349     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1350     esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */
   1351     _flag_k = FK_ADD;
   1352     PUSH32(esp, esi); /* 0x361561E3: push esi */
   1353     ecx = ebx; /* 0x361561E4: mov ecx, ebx */
   1354     RECOMP_ICALL(edi); /* 0x361561E6: call edi */
   1355     RECOMP_FLAGS_IN();
   1356     ecx = ebx; /* 0x361561E8: mov ecx, ebx */
   1357     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */
   1358     RECOMP_FLAGS_IN();
   1359     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1360     _cf = (eax) != 0;
   1361     eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */
   1362     _flag_k = FK_CMP;
   1363     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */
   1364       eax = _sc ? 0xFFFFFFFFu : 0;
   1365       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1366       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1367     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1368     eax = eax + 1; /* 0x361561F4: inc eax */
   1369     _flag_k = FK_INC;
   1370     edi = POP32_VAL(esp); /* 0x361561F5: pop edi */
   1371     esi = POP32_VAL(esp); /* 0x361561F6: pop esi */
   1372     ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */
   1373     esp = ebp; /* 0x361561F8: mov esp, ebp */
   1374     ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */
   1375     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */
   1376     RECOMP_REGS_OUT();
   1377 }
   1378 
   1379 void sub_361560EF(void) {
   1380     int _fpu_cmp = 0;
   1381     uint32_t _cf = 0;
   1382     int _df = 1;
   1383     uint32_t _flag_k = FK_NONE;
   1384     uint32_t _flag_a = 0, _flag_b = 0;
   1385     uint32_t _itail_tgt = 0;
   1386     RECOMP_REGS_LOCALS
   1387     RECOMP_ENTER(0x361560EFu);
   1388 
   1389     goto L_361560EF;
   1390 L_36155FA4:
   1391     edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */
   1392     ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */
   1393     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1394     eax = 0; /* 0x36155FAD: xor eax, eax */
   1395     _cf = 0;
   1396     _flag_k = FK_TEST;
   1397     PUSH32(esp, ecx); /* 0x36155FAF: push ecx */
   1398     PUSH32(esp, ebx); /* 0x36155FB0: push ebx */
   1399     MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */
   1400     MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */
   1401     RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */
   1402     RECOMP_FLAGS_IN();
   1403     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1404     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1405     esp = esp + 8; /* 0x36155FBC: add esp, 8 */
   1406     _flag_k = FK_ADD;
   1407     edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */
   1408     PUSH32(esp, edx); /* 0x36155FC2: push edx */
   1409     ecx = ebx; /* 0x36155FC3: mov ecx, ebx */
   1410     RECOMP_ICALL(edi); /* 0x36155FC5: call edi */
   1411     RECOMP_FLAGS_IN();
   1412     eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */
   1413     PUSH32(esp, eax); /* 0x36155FCA: push eax */
   1414     ecx = ebx; /* 0x36155FCB: mov ecx, ebx */
   1415     RECOMP_ICALL(edi); /* 0x36155FCD: call edi */
   1416     RECOMP_FLAGS_IN();
   1417     edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */
   1418     eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */
   1419     ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */
   1420     MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */
   1421     edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */
   1422     MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */
   1423     eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */
   1424     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1426     edx = edx - eax; /* 0x36155FE4: sub edx, eax */
   1427     _flag_k = FK_CMP;
   1428     MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */
   1429     ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */
   1430     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */
   1431     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1432     edx = (uint32_t)((int32_t)edx >> 4u);
   1433     /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */
   1434     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1436     _flag_k = FK_CMP;
   1437     MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */
   1438     edi = eax; /* 0x36155FF5: mov edi, eax */
   1439     if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */
   1440 L_36155FFD:
   1441     edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */
   1442     /* test edx, edx */ /* 0x36156000: test edx, edx */
   1443     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1444     _cf = 0;
   1445     _flag_k = FK_TEST;
   1446     if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */
   1447 L_36156004:
   1448     ecx = eax; /* 0x36156004: mov ecx, eax */
   1449     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1451     ecx = ecx - edx; /* 0x36156006: sub ecx, edx */
   1452     _flag_k = FK_CMP;
   1453     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */
   1454     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1455     ecx = (uint32_t)((int32_t)ecx >> 4u);
   1456     /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */
   1457     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1458     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1459     _flag_k = FK_CMP;
   1460     if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */
   1461 L_36156010:
   1462     ecx = 1; /* 0x36156010: mov ecx, 1 */
   1463 L_36156015:
   1464     /* test edx, edx */ /* 0x36156015: test edx, edx */
   1465     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1466     _cf = 0;
   1467     _flag_k = FK_TEST;
   1468     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */
   1469 L_36156019:
   1470     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1471     eax = 0; /* 0x36156019: xor eax, eax */
   1472     _cf = 0;
   1473     _flag_k = FK_TEST;
   1474     goto L_36156022; /* 0x3615601B: jmp 0x36156022 */
   1475 L_3615601D:
   1476     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1478     eax = eax - edx; /* 0x3615601D: sub eax, edx */
   1479     _flag_k = FK_CMP;
   1480     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */
   1481     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1482     eax = (uint32_t)((int32_t)eax >> 4u);
   1483 L_36156022:
   1484     ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */
   1485     /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */
   1486     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1487     _cf = 0;
   1488     _flag_k = FK_TEST;
   1489     eax = ebx; /* 0x36156027: mov eax, ebx */
   1490     if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */
   1491 L_3615602B:
   1492     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1493     eax = 0; /* 0x3615602B: xor eax, eax */
   1494     _cf = 0;
   1495     _flag_k = FK_TEST;
   1496 L_3615602D:
   1497     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */
   1498     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1499     eax = eax << 4u; /* 0x3615602D: shl eax, 4 */
   1500     PUSH32(esp, eax); /* 0x36156030: push eax */
   1501     RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */
   1502     RECOMP_FLAGS_IN();
   1503     MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */
   1504     MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */
   1505     eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */
   1506     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1507     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1508     esp = esp + 4; /* 0x3615603F: add esp, 4 */
   1509     _flag_k = FK_ADD;
   1510     /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */
   1511     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1513     _flag_k = FK_CMP;
   1514     MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */
   1515     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */
   1516 L_36156049:
   1517     goto L_3615604E; /* 0x36156049: jmp 0x3615604e */
   1518 L_3615604B:
   1519     eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */
   1520 L_3615604E:
   1521     PUSH32(esp, eax); /* 0x3615604E: push eax */
   1522     eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */
   1523     PUSH32(esp, eax); /* 0x36156052: push eax */
   1524     RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */
   1525     RECOMP_FLAGS_IN();
   1526     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u);
   1527     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1528     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */
   1529     _flag_k = FK_ADD;
   1530     eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */
   1531     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   1532     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1533     eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */
   1534     _flag_k = FK_ADD;
   1535     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1536     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1537     esp = esp + 8; /* 0x36156062: add esp, 8 */
   1538     _flag_k = FK_ADD;
   1539     /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */
   1540     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1542     _flag_k = FK_CMP;
   1543     MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */
   1544     RECOMP_BACKEDGE();
   1545     if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */
   1546 L_3615606C:
   1547     edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */
   1548     ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */
   1549     PUSH32(esp, ecx); /* 0x36156072: push ecx */
   1550     PUSH32(esp, 1); /* 0x36156073: push 1 */
   1551     PUSH32(esp, edx); /* 0x36156075: push edx */
   1552     ecx = esi; /* 0x36156076: mov ecx, esi */
   1553     RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */
   1554     RECOMP_FLAGS_IN();
   1555     eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */
   1556     ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */
   1557     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   1558     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1559     eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */
   1560     _flag_k = FK_ADD;
   1561     PUSH32(esp, eax); /* 0x36156086: push eax */
   1562     PUSH32(esp, ecx); /* 0x36156087: push ecx */
   1563     PUSH32(esp, edi); /* 0x36156088: push edi */
   1564     ecx = esi; /* 0x36156089: mov ecx, esi */
   1565     RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */
   1566     RECOMP_FLAGS_IN();
   1567     edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */
   1568     eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */
   1569     PUSH32(esp, edx); /* 0x36156096: push edx */
   1570     PUSH32(esp, eax); /* 0x36156097: push eax */
   1571     ecx = esi; /* 0x36156098: mov ecx, esi */
   1572     RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */
   1573     RECOMP_FLAGS_IN();
   1574     ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */
   1575     PUSH32(esp, ecx); /* 0x361560A2: push ecx */
   1576     RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */
   1577     RECOMP_FLAGS_IN();
   1578     eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */
   1579     ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */
   1580     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */
   1581     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1582     ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */
   1583     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   1584     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1585     ebx = ebx + eax; /* 0x361560B1: add ebx, eax */
   1586     _flag_k = FK_ADD;
   1587     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1588     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1589     esp = esp + 4; /* 0x361560B3: add esp, 4 */
   1590     _flag_k = FK_ADD;
   1591     /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */
   1592     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1593     _cf = 0;
   1594     _flag_k = FK_TEST;
   1595     MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */
   1596     if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */
   1597 L_361560BD:
   1598     ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */
   1599     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1600     edx = 0; /* 0x361560C0: xor edx, edx */
   1601     _cf = 0;
   1602     _flag_k = FK_TEST;
   1603     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1604     edx = edx + 1; /* 0x361560C2: inc edx */
   1605     _flag_k = FK_INC;
   1606     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */
   1607     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1608     edx = edx << 4u; /* 0x361560C3: shl edx, 4 */
   1609     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1610     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1611     edx = edx + eax; /* 0x361560C6: add edx, eax */
   1612     _flag_k = FK_ADD;
   1613     MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */
   1614     MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */
   1615     goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */
   1616 L_361560D3:
   1617     edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */
   1618     ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */
   1619     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1621     edx = edx - ecx; /* 0x361560D9: sub edx, ecx */
   1622     _flag_k = FK_CMP;
   1623     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */
   1624     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1625     edx = (uint32_t)((int32_t)edx >> 4u);
   1626     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1627     edx = edx + 1; /* 0x361560DE: inc edx */
   1628     _flag_k = FK_INC;
   1629     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */
   1630     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1631     edx = edx << 4u; /* 0x361560DF: shl edx, 4 */
   1632     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1633     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1634     edx = edx + eax; /* 0x361560E2: add edx, eax */
   1635     _flag_k = FK_ADD;
   1636     MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */
   1637     MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */
   1638     goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */
   1639 L_361560EF:
   1640     ecx = eax; /* 0x361560EF: mov ecx, eax */
   1641     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   1642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1643     ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */
   1644     _flag_k = FK_CMP;
   1645     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */
   1646     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1647     ecx = (uint32_t)((int32_t)ecx >> 4u);
   1648     /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */
   1649     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1651     _flag_k = FK_CMP;
   1652     if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */
   1653 L_361560FB:
   1654     edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */
   1655     PUSH32(esp, edx); /* 0x361560FE: push edx */
   1656     PUSH32(esp, eax); /* 0x361560FF: push eax */
   1657     PUSH32(esp, edi); /* 0x36156100: push edi */
   1658     ecx = esi; /* 0x36156101: mov ecx, esi */
   1659     RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */
   1660     RECOMP_FLAGS_IN();
   1661     eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */
   1662     edx = eax; /* 0x3615610B: mov edx, eax */
   1663     ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */
   1664     PUSH32(esp, ecx); /* 0x36156110: push ecx */
   1665     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   1666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1667     edx = edx - edi; /* 0x36156111: sub edx, edi */
   1668     _flag_k = FK_CMP;
   1669     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */
   1670     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1671     edx = (uint32_t)((int32_t)edx >> 4u);
   1672     ecx = 1; /* 0x36156116: mov ecx, 1 */
   1673     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1675     ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */
   1676     _flag_k = FK_CMP;
   1677     PUSH32(esp, ecx); /* 0x3615611D: push ecx */
   1678     PUSH32(esp, eax); /* 0x3615611E: push eax */
   1679     ecx = esi; /* 0x3615611F: mov ecx, esi */
   1680     RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */
   1681     RECOMP_FLAGS_IN();
   1682     eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */
   1683     /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */
   1684     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1686     _flag_k = FK_CMP;
   1687     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */
   1688 L_36156131:
   1689     ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */
   1690     edx = edi; /* 0x36156134: mov edx, edi */
   1691     MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */
   1692     ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */
   1693     MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */
   1694     ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */
   1695     MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */
   1696     ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */
   1697     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   1698     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1699     edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */
   1700     _flag_k = FK_ADD;
   1701     /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */
   1702     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1703     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1704     _flag_k = FK_CMP;
   1705     MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */
   1706     RECOMP_BACKEDGE();
   1707     if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */
   1708 L_36156151:
   1709     goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */
   1710 L_36156153:
   1711     PUSH32(esp, eax); /* 0x36156153: push eax */
   1712     ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */
   1713     PUSH32(esp, eax); /* 0x36156157: push eax */
   1714     MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */
   1715     PUSH32(esp, ecx); /* 0x3615615B: push ecx */
   1716     ecx = esi; /* 0x3615615C: mov ecx, esi */
   1717     RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */
   1718     RECOMP_FLAGS_IN();
   1719     ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */
   1720     eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */
   1721     /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */
   1722     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1724     _flag_k = FK_CMP;
   1725     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */
   1726 L_3615616D:
   1727     goto L_36156172; /* 0x3615616D: jmp 0x36156172 */
   1728 L_3615616F:
   1729     ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */
   1730 L_36156172:
   1731     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   1732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1733     eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */
   1734     _flag_k = FK_CMP;
   1735     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   1736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1737     ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */
   1738     _flag_k = FK_CMP;
   1739     /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */
   1740     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1741     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1742     _flag_k = FK_CMP;
   1743     edx = eax; /* 0x3615617A: mov edx, eax */
   1744     ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */
   1745     MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */
   1746     MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */
   1747     ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */
   1748     MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */
   1749     ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */
   1750     MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */
   1751     edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */
   1752     MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */
   1753     RECOMP_BACKEDGE();
   1754     if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */
   1755 L_36156197:
   1756     ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */
   1757 L_3615619A:
   1758     eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */
   1759     /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */
   1760     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1762     _flag_k = FK_CMP;
   1763     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */
   1764 L_361561A1:
   1765     edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */
   1766     ecx = edi; /* 0x361561A4: mov ecx, edi */
   1767     MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */
   1768     edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */
   1769     MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */
   1770     edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */
   1771     MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */
   1772     edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */
   1773     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   1774     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1775     edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */
   1776     _flag_k = FK_ADD;
   1777     /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */
   1778     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1779     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1780     _flag_k = FK_CMP;
   1781     MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */
   1782     RECOMP_BACKEDGE();
   1783     if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */
   1784 L_361561C1:
   1785     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u);
   1786     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1787     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */
   1788     _flag_k = FK_ADD;
   1789 L_361561C5:
   1790     eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */
   1791     ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */
   1792     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1793     eax = eax + 1; /* 0x361561CB: inc eax */
   1794     _flag_k = FK_INC;
   1795     /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */
   1796     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1798     _flag_k = FK_CMP;
   1799     MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */
   1800     RECOMP_BACKEDGE();
   1801     if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */
   1802 L_361561D7:
   1803     esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */
   1804     edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */
   1805     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u);
   1806     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1807     esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */
   1808     _flag_k = FK_ADD;
   1809     PUSH32(esp, esi); /* 0x361561E3: push esi */
   1810     ecx = ebx; /* 0x361561E4: mov ecx, ebx */
   1811     RECOMP_ICALL(edi); /* 0x361561E6: call edi */
   1812     RECOMP_FLAGS_IN();
   1813     ecx = ebx; /* 0x361561E8: mov ecx, ebx */
   1814     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */
   1815     RECOMP_FLAGS_IN();
   1816     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1817     _cf = (eax) != 0;
   1818     eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */
   1819     _flag_k = FK_CMP;
   1820     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */
   1821       eax = _sc ? 0xFFFFFFFFu : 0;
   1822       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1823       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1824     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1825     eax = eax + 1; /* 0x361561F4: inc eax */
   1826     _flag_k = FK_INC;
   1827     edi = POP32_VAL(esp); /* 0x361561F5: pop edi */
   1828     esi = POP32_VAL(esp); /* 0x361561F6: pop esi */
   1829     ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */
   1830     esp = ebp; /* 0x361561F8: mov esp, ebp */
   1831     ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */
   1832     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */
   1833     RECOMP_REGS_OUT();
   1834 }
   1835 
   1836 void sub_3615616F(void) {
   1837     int _fpu_cmp = 0;
   1838     uint32_t _cf = 0;
   1839     int _df = 1;
   1840     uint32_t _flag_k = FK_NONE;
   1841     uint32_t _flag_a = 0, _flag_b = 0;
   1842     uint32_t _itail_tgt = 0;
   1843     RECOMP_REGS_LOCALS
   1844     RECOMP_ENTER(0x3615616Fu);
   1845 
   1846     goto L_3615616F;
   1847 L_36155FA4:
   1848     edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */
   1849     ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */
   1850     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1851     eax = 0; /* 0x36155FAD: xor eax, eax */
   1852     _cf = 0;
   1853     _flag_k = FK_TEST;
   1854     PUSH32(esp, ecx); /* 0x36155FAF: push ecx */
   1855     PUSH32(esp, ebx); /* 0x36155FB0: push ebx */
   1856     MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */
   1857     MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */
   1858     RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */
   1859     RECOMP_FLAGS_IN();
   1860     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1861     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1862     esp = esp + 8; /* 0x36155FBC: add esp, 8 */
   1863     _flag_k = FK_ADD;
   1864     edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */
   1865     PUSH32(esp, edx); /* 0x36155FC2: push edx */
   1866     ecx = ebx; /* 0x36155FC3: mov ecx, ebx */
   1867     RECOMP_ICALL(edi); /* 0x36155FC5: call edi */
   1868     RECOMP_FLAGS_IN();
   1869     eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */
   1870     PUSH32(esp, eax); /* 0x36155FCA: push eax */
   1871     ecx = ebx; /* 0x36155FCB: mov ecx, ebx */
   1872     RECOMP_ICALL(edi); /* 0x36155FCD: call edi */
   1873     RECOMP_FLAGS_IN();
   1874     edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */
   1875     eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */
   1876     ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */
   1877     MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */
   1878     edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */
   1879     MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */
   1880     eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */
   1881     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1883     edx = edx - eax; /* 0x36155FE4: sub edx, eax */
   1884     _flag_k = FK_CMP;
   1885     MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */
   1886     ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */
   1887     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */
   1888     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1889     edx = (uint32_t)((int32_t)edx >> 4u);
   1890     /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */
   1891     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1892     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1893     _flag_k = FK_CMP;
   1894     MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */
   1895     edi = eax; /* 0x36155FF5: mov edi, eax */
   1896     if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */
   1897 L_36155FFD:
   1898     edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */
   1899     /* test edx, edx */ /* 0x36156000: test edx, edx */
   1900     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1901     _cf = 0;
   1902     _flag_k = FK_TEST;
   1903     if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */
   1904 L_36156004:
   1905     ecx = eax; /* 0x36156004: mov ecx, eax */
   1906     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1908     ecx = ecx - edx; /* 0x36156006: sub ecx, edx */
   1909     _flag_k = FK_CMP;
   1910     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */
   1911     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1912     ecx = (uint32_t)((int32_t)ecx >> 4u);
   1913     /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */
   1914     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1916     _flag_k = FK_CMP;
   1917     if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */
   1918 L_36156010:
   1919     ecx = 1; /* 0x36156010: mov ecx, 1 */
   1920 L_36156015:
   1921     /* test edx, edx */ /* 0x36156015: test edx, edx */
   1922     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1923     _cf = 0;
   1924     _flag_k = FK_TEST;
   1925     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */
   1926 L_36156019:
   1927     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1928     eax = 0; /* 0x36156019: xor eax, eax */
   1929     _cf = 0;
   1930     _flag_k = FK_TEST;
   1931     goto L_36156022; /* 0x3615601B: jmp 0x36156022 */
   1932 L_3615601D:
   1933     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1934     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1935     eax = eax - edx; /* 0x3615601D: sub eax, edx */
   1936     _flag_k = FK_CMP;
   1937     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */
   1938     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1939     eax = (uint32_t)((int32_t)eax >> 4u);
   1940 L_36156022:
   1941     ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */
   1942     /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */
   1943     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1944     _cf = 0;
   1945     _flag_k = FK_TEST;
   1946     eax = ebx; /* 0x36156027: mov eax, ebx */
   1947     if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */
   1948 L_3615602B:
   1949     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1950     eax = 0; /* 0x3615602B: xor eax, eax */
   1951     _cf = 0;
   1952     _flag_k = FK_TEST;
   1953 L_3615602D:
   1954     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */
   1955     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1956     eax = eax << 4u; /* 0x3615602D: shl eax, 4 */
   1957     PUSH32(esp, eax); /* 0x36156030: push eax */
   1958     RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */
   1959     RECOMP_FLAGS_IN();
   1960     MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */
   1961     MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */
   1962     eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */
   1963     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1964     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1965     esp = esp + 4; /* 0x3615603F: add esp, 4 */
   1966     _flag_k = FK_ADD;
   1967     /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */
   1968     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1969     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1970     _flag_k = FK_CMP;
   1971     MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */
   1972     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */
   1973 L_36156049:
   1974     goto L_3615604E; /* 0x36156049: jmp 0x3615604e */
   1975 L_3615604B:
   1976     eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */
   1977 L_3615604E:
   1978     PUSH32(esp, eax); /* 0x3615604E: push eax */
   1979     eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */
   1980     PUSH32(esp, eax); /* 0x36156052: push eax */
   1981     RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */
   1982     RECOMP_FLAGS_IN();
   1983     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u);
   1984     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1985     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */
   1986     _flag_k = FK_ADD;
   1987     eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */
   1988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   1989     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1990     eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */
   1991     _flag_k = FK_ADD;
   1992     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1993     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1994     esp = esp + 8; /* 0x36156062: add esp, 8 */
   1995     _flag_k = FK_ADD;
   1996     /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */
   1997     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1998     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1999     _flag_k = FK_CMP;
   2000     MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */
   2001     RECOMP_BACKEDGE();
   2002     if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */
   2003 L_3615606C:
   2004     edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */
   2005     ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */
   2006     PUSH32(esp, ecx); /* 0x36156072: push ecx */
   2007     PUSH32(esp, 1); /* 0x36156073: push 1 */
   2008     PUSH32(esp, edx); /* 0x36156075: push edx */
   2009     ecx = esi; /* 0x36156076: mov ecx, esi */
   2010     RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */
   2011     RECOMP_FLAGS_IN();
   2012     eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */
   2013     ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */
   2014     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2016     eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */
   2017     _flag_k = FK_ADD;
   2018     PUSH32(esp, eax); /* 0x36156086: push eax */
   2019     PUSH32(esp, ecx); /* 0x36156087: push ecx */
   2020     PUSH32(esp, edi); /* 0x36156088: push edi */
   2021     ecx = esi; /* 0x36156089: mov ecx, esi */
   2022     RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */
   2023     RECOMP_FLAGS_IN();
   2024     edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */
   2025     eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */
   2026     PUSH32(esp, edx); /* 0x36156096: push edx */
   2027     PUSH32(esp, eax); /* 0x36156097: push eax */
   2028     ecx = esi; /* 0x36156098: mov ecx, esi */
   2029     RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */
   2030     RECOMP_FLAGS_IN();
   2031     ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */
   2032     PUSH32(esp, ecx); /* 0x361560A2: push ecx */
   2033     RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */
   2034     RECOMP_FLAGS_IN();
   2035     eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */
   2036     ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */
   2037     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */
   2038     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2039     ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */
   2040     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   2041     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2042     ebx = ebx + eax; /* 0x361560B1: add ebx, eax */
   2043     _flag_k = FK_ADD;
   2044     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2045     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2046     esp = esp + 4; /* 0x361560B3: add esp, 4 */
   2047     _flag_k = FK_ADD;
   2048     /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */
   2049     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2050     _cf = 0;
   2051     _flag_k = FK_TEST;
   2052     MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */
   2053     if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */
   2054 L_361560BD:
   2055     ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */
   2056     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2057     edx = 0; /* 0x361560C0: xor edx, edx */
   2058     _cf = 0;
   2059     _flag_k = FK_TEST;
   2060     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2061     edx = edx + 1; /* 0x361560C2: inc edx */
   2062     _flag_k = FK_INC;
   2063     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */
   2064     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2065     edx = edx << 4u; /* 0x361560C3: shl edx, 4 */
   2066     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2067     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2068     edx = edx + eax; /* 0x361560C6: add edx, eax */
   2069     _flag_k = FK_ADD;
   2070     MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */
   2071     MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */
   2072     goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */
   2073 L_361560D3:
   2074     edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */
   2075     ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */
   2076     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2078     edx = edx - ecx; /* 0x361560D9: sub edx, ecx */
   2079     _flag_k = FK_CMP;
   2080     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */
   2081     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2082     edx = (uint32_t)((int32_t)edx >> 4u);
   2083     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2084     edx = edx + 1; /* 0x361560DE: inc edx */
   2085     _flag_k = FK_INC;
   2086     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */
   2087     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2088     edx = edx << 4u; /* 0x361560DF: shl edx, 4 */
   2089     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2090     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2091     edx = edx + eax; /* 0x361560E2: add edx, eax */
   2092     _flag_k = FK_ADD;
   2093     MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */
   2094     MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */
   2095     goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */
   2096 L_361560EF:
   2097     ecx = eax; /* 0x361560EF: mov ecx, eax */
   2098     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2099     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2100     ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */
   2101     _flag_k = FK_CMP;
   2102     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */
   2103     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2104     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2105     /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */
   2106     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2108     _flag_k = FK_CMP;
   2109     if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */
   2110 L_361560FB:
   2111     edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */
   2112     PUSH32(esp, edx); /* 0x361560FE: push edx */
   2113     PUSH32(esp, eax); /* 0x361560FF: push eax */
   2114     PUSH32(esp, edi); /* 0x36156100: push edi */
   2115     ecx = esi; /* 0x36156101: mov ecx, esi */
   2116     RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */
   2117     RECOMP_FLAGS_IN();
   2118     eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */
   2119     edx = eax; /* 0x3615610B: mov edx, eax */
   2120     ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */
   2121     PUSH32(esp, ecx); /* 0x36156110: push ecx */
   2122     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   2123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2124     edx = edx - edi; /* 0x36156111: sub edx, edi */
   2125     _flag_k = FK_CMP;
   2126     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */
   2127     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2128     edx = (uint32_t)((int32_t)edx >> 4u);
   2129     ecx = 1; /* 0x36156116: mov ecx, 1 */
   2130     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2131     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2132     ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */
   2133     _flag_k = FK_CMP;
   2134     PUSH32(esp, ecx); /* 0x3615611D: push ecx */
   2135     PUSH32(esp, eax); /* 0x3615611E: push eax */
   2136     ecx = esi; /* 0x3615611F: mov ecx, esi */
   2137     RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */
   2138     RECOMP_FLAGS_IN();
   2139     eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */
   2140     /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */
   2141     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2142     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2143     _flag_k = FK_CMP;
   2144     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */
   2145 L_36156131:
   2146     ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */
   2147     edx = edi; /* 0x36156134: mov edx, edi */
   2148     MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */
   2149     ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */
   2150     MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */
   2151     ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */
   2152     MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */
   2153     ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */
   2154     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   2155     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2156     edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */
   2157     _flag_k = FK_ADD;
   2158     /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */
   2159     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2161     _flag_k = FK_CMP;
   2162     MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */
   2163     RECOMP_BACKEDGE();
   2164     if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */
   2165 L_36156151:
   2166     goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */
   2167 L_36156153:
   2168     PUSH32(esp, eax); /* 0x36156153: push eax */
   2169     ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */
   2170     PUSH32(esp, eax); /* 0x36156157: push eax */
   2171     MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */
   2172     PUSH32(esp, ecx); /* 0x3615615B: push ecx */
   2173     ecx = esi; /* 0x3615615C: mov ecx, esi */
   2174     RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */
   2175     RECOMP_FLAGS_IN();
   2176     ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */
   2177     eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */
   2178     /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */
   2179     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2181     _flag_k = FK_CMP;
   2182     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */
   2183 L_3615616D:
   2184     goto L_36156172; /* 0x3615616D: jmp 0x36156172 */
   2185 L_3615616F:
   2186     ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */
   2187 L_36156172:
   2188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2190     eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */
   2191     _flag_k = FK_CMP;
   2192     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   2193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2194     ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */
   2195     _flag_k = FK_CMP;
   2196     /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */
   2197     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2199     _flag_k = FK_CMP;
   2200     edx = eax; /* 0x3615617A: mov edx, eax */
   2201     ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */
   2202     MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */
   2203     MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */
   2204     ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */
   2205     MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */
   2206     ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */
   2207     MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */
   2208     edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */
   2209     MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */
   2210     RECOMP_BACKEDGE();
   2211     if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */
   2212 L_36156197:
   2213     ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */
   2214 L_3615619A:
   2215     eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */
   2216     /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */
   2217     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2218     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2219     _flag_k = FK_CMP;
   2220     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */
   2221 L_361561A1:
   2222     edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */
   2223     ecx = edi; /* 0x361561A4: mov ecx, edi */
   2224     MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */
   2225     edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */
   2226     MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */
   2227     edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */
   2228     MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */
   2229     edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */
   2230     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   2231     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2232     edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */
   2233     _flag_k = FK_ADD;
   2234     /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */
   2235     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2236     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2237     _flag_k = FK_CMP;
   2238     MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */
   2239     RECOMP_BACKEDGE();
   2240     if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */
   2241 L_361561C1:
   2242     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u);
   2243     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2244     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */
   2245     _flag_k = FK_ADD;
   2246 L_361561C5:
   2247     eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */
   2248     ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */
   2249     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2250     eax = eax + 1; /* 0x361561CB: inc eax */
   2251     _flag_k = FK_INC;
   2252     /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */
   2253     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2255     _flag_k = FK_CMP;
   2256     MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */
   2257     RECOMP_BACKEDGE();
   2258     if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */
   2259 L_361561D7:
   2260     esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */
   2261     edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */
   2262     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u);
   2263     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2264     esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */
   2265     _flag_k = FK_ADD;
   2266     PUSH32(esp, esi); /* 0x361561E3: push esi */
   2267     ecx = ebx; /* 0x361561E4: mov ecx, ebx */
   2268     RECOMP_ICALL(edi); /* 0x361561E6: call edi */
   2269     RECOMP_FLAGS_IN();
   2270     ecx = ebx; /* 0x361561E8: mov ecx, ebx */
   2271     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */
   2272     RECOMP_FLAGS_IN();
   2273     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2274     _cf = (eax) != 0;
   2275     eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */
   2276     _flag_k = FK_CMP;
   2277     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */
   2278       eax = _sc ? 0xFFFFFFFFu : 0;
   2279       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2280       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2281     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2282     eax = eax + 1; /* 0x361561F4: inc eax */
   2283     _flag_k = FK_INC;
   2284     edi = POP32_VAL(esp); /* 0x361561F5: pop edi */
   2285     esi = POP32_VAL(esp); /* 0x361561F6: pop esi */
   2286     ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */
   2287     esp = ebp; /* 0x361561F8: mov esp, ebp */
   2288     ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */
   2289     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */
   2290     RECOMP_REGS_OUT();
   2291 }
   2292 
   2293 void sub_36156172(void) {
   2294     int _fpu_cmp = 0;
   2295     uint32_t _cf = 0;
   2296     int _df = 1;
   2297     uint32_t _flag_k = FK_NONE;
   2298     uint32_t _flag_a = 0, _flag_b = 0;
   2299     uint32_t _itail_tgt = 0;
   2300     RECOMP_REGS_LOCALS
   2301     RECOMP_ENTER(0x36156172u);
   2302 
   2303     goto L_36156172;
   2304 L_36155FA4:
   2305     edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */
   2306     ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */
   2307     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2308     eax = 0; /* 0x36155FAD: xor eax, eax */
   2309     _cf = 0;
   2310     _flag_k = FK_TEST;
   2311     PUSH32(esp, ecx); /* 0x36155FAF: push ecx */
   2312     PUSH32(esp, ebx); /* 0x36155FB0: push ebx */
   2313     MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */
   2314     MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */
   2315     RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */
   2316     RECOMP_FLAGS_IN();
   2317     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2318     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2319     esp = esp + 8; /* 0x36155FBC: add esp, 8 */
   2320     _flag_k = FK_ADD;
   2321     edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */
   2322     PUSH32(esp, edx); /* 0x36155FC2: push edx */
   2323     ecx = ebx; /* 0x36155FC3: mov ecx, ebx */
   2324     RECOMP_ICALL(edi); /* 0x36155FC5: call edi */
   2325     RECOMP_FLAGS_IN();
   2326     eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */
   2327     PUSH32(esp, eax); /* 0x36155FCA: push eax */
   2328     ecx = ebx; /* 0x36155FCB: mov ecx, ebx */
   2329     RECOMP_ICALL(edi); /* 0x36155FCD: call edi */
   2330     RECOMP_FLAGS_IN();
   2331     edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */
   2332     eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */
   2333     ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */
   2334     MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */
   2335     edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */
   2336     MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */
   2337     eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */
   2338     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2340     edx = edx - eax; /* 0x36155FE4: sub edx, eax */
   2341     _flag_k = FK_CMP;
   2342     MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */
   2343     ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */
   2344     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */
   2345     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2346     edx = (uint32_t)((int32_t)edx >> 4u);
   2347     /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */
   2348     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2350     _flag_k = FK_CMP;
   2351     MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */
   2352     edi = eax; /* 0x36155FF5: mov edi, eax */
   2353     if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */
   2354 L_36155FFD:
   2355     edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */
   2356     /* test edx, edx */ /* 0x36156000: test edx, edx */
   2357     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2358     _cf = 0;
   2359     _flag_k = FK_TEST;
   2360     if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */
   2361 L_36156004:
   2362     ecx = eax; /* 0x36156004: mov ecx, eax */
   2363     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2365     ecx = ecx - edx; /* 0x36156006: sub ecx, edx */
   2366     _flag_k = FK_CMP;
   2367     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */
   2368     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2369     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2370     /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */
   2371     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2373     _flag_k = FK_CMP;
   2374     if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */
   2375 L_36156010:
   2376     ecx = 1; /* 0x36156010: mov ecx, 1 */
   2377 L_36156015:
   2378     /* test edx, edx */ /* 0x36156015: test edx, edx */
   2379     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2380     _cf = 0;
   2381     _flag_k = FK_TEST;
   2382     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */
   2383 L_36156019:
   2384     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2385     eax = 0; /* 0x36156019: xor eax, eax */
   2386     _cf = 0;
   2387     _flag_k = FK_TEST;
   2388     goto L_36156022; /* 0x3615601B: jmp 0x36156022 */
   2389 L_3615601D:
   2390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2392     eax = eax - edx; /* 0x3615601D: sub eax, edx */
   2393     _flag_k = FK_CMP;
   2394     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */
   2395     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2396     eax = (uint32_t)((int32_t)eax >> 4u);
   2397 L_36156022:
   2398     ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */
   2399     /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */
   2400     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2401     _cf = 0;
   2402     _flag_k = FK_TEST;
   2403     eax = ebx; /* 0x36156027: mov eax, ebx */
   2404     if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */
   2405 L_3615602B:
   2406     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2407     eax = 0; /* 0x3615602B: xor eax, eax */
   2408     _cf = 0;
   2409     _flag_k = FK_TEST;
   2410 L_3615602D:
   2411     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */
   2412     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2413     eax = eax << 4u; /* 0x3615602D: shl eax, 4 */
   2414     PUSH32(esp, eax); /* 0x36156030: push eax */
   2415     RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */
   2416     RECOMP_FLAGS_IN();
   2417     MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */
   2418     MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */
   2419     eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */
   2420     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2421     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2422     esp = esp + 4; /* 0x3615603F: add esp, 4 */
   2423     _flag_k = FK_ADD;
   2424     /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */
   2425     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2427     _flag_k = FK_CMP;
   2428     MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */
   2429     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */
   2430 L_36156049:
   2431     goto L_3615604E; /* 0x36156049: jmp 0x3615604e */
   2432 L_3615604B:
   2433     eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */
   2434 L_3615604E:
   2435     PUSH32(esp, eax); /* 0x3615604E: push eax */
   2436     eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */
   2437     PUSH32(esp, eax); /* 0x36156052: push eax */
   2438     RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */
   2439     RECOMP_FLAGS_IN();
   2440     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u);
   2441     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2442     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */
   2443     _flag_k = FK_ADD;
   2444     eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */
   2445     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2446     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2447     eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */
   2448     _flag_k = FK_ADD;
   2449     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2451     esp = esp + 8; /* 0x36156062: add esp, 8 */
   2452     _flag_k = FK_ADD;
   2453     /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */
   2454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2456     _flag_k = FK_CMP;
   2457     MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */
   2458     RECOMP_BACKEDGE();
   2459     if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */
   2460 L_3615606C:
   2461     edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */
   2462     ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */
   2463     PUSH32(esp, ecx); /* 0x36156072: push ecx */
   2464     PUSH32(esp, 1); /* 0x36156073: push 1 */
   2465     PUSH32(esp, edx); /* 0x36156075: push edx */
   2466     ecx = esi; /* 0x36156076: mov ecx, esi */
   2467     RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */
   2468     RECOMP_FLAGS_IN();
   2469     eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */
   2470     ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */
   2471     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2472     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2473     eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */
   2474     _flag_k = FK_ADD;
   2475     PUSH32(esp, eax); /* 0x36156086: push eax */
   2476     PUSH32(esp, ecx); /* 0x36156087: push ecx */
   2477     PUSH32(esp, edi); /* 0x36156088: push edi */
   2478     ecx = esi; /* 0x36156089: mov ecx, esi */
   2479     RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */
   2480     RECOMP_FLAGS_IN();
   2481     edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */
   2482     eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */
   2483     PUSH32(esp, edx); /* 0x36156096: push edx */
   2484     PUSH32(esp, eax); /* 0x36156097: push eax */
   2485     ecx = esi; /* 0x36156098: mov ecx, esi */
   2486     RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */
   2487     RECOMP_FLAGS_IN();
   2488     ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */
   2489     PUSH32(esp, ecx); /* 0x361560A2: push ecx */
   2490     RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */
   2491     RECOMP_FLAGS_IN();
   2492     eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */
   2493     ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */
   2494     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */
   2495     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2496     ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */
   2497     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   2498     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2499     ebx = ebx + eax; /* 0x361560B1: add ebx, eax */
   2500     _flag_k = FK_ADD;
   2501     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2502     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2503     esp = esp + 4; /* 0x361560B3: add esp, 4 */
   2504     _flag_k = FK_ADD;
   2505     /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */
   2506     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2507     _cf = 0;
   2508     _flag_k = FK_TEST;
   2509     MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */
   2510     if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */
   2511 L_361560BD:
   2512     ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */
   2513     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2514     edx = 0; /* 0x361560C0: xor edx, edx */
   2515     _cf = 0;
   2516     _flag_k = FK_TEST;
   2517     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2518     edx = edx + 1; /* 0x361560C2: inc edx */
   2519     _flag_k = FK_INC;
   2520     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */
   2521     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2522     edx = edx << 4u; /* 0x361560C3: shl edx, 4 */
   2523     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2525     edx = edx + eax; /* 0x361560C6: add edx, eax */
   2526     _flag_k = FK_ADD;
   2527     MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */
   2528     MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */
   2529     goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */
   2530 L_361560D3:
   2531     edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */
   2532     ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */
   2533     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2535     edx = edx - ecx; /* 0x361560D9: sub edx, ecx */
   2536     _flag_k = FK_CMP;
   2537     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */
   2538     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2539     edx = (uint32_t)((int32_t)edx >> 4u);
   2540     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2541     edx = edx + 1; /* 0x361560DE: inc edx */
   2542     _flag_k = FK_INC;
   2543     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */
   2544     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2545     edx = edx << 4u; /* 0x361560DF: shl edx, 4 */
   2546     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2547     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2548     edx = edx + eax; /* 0x361560E2: add edx, eax */
   2549     _flag_k = FK_ADD;
   2550     MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */
   2551     MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */
   2552     goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */
   2553 L_361560EF:
   2554     ecx = eax; /* 0x361560EF: mov ecx, eax */
   2555     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2557     ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */
   2558     _flag_k = FK_CMP;
   2559     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */
   2560     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2561     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2562     /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */
   2563     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2565     _flag_k = FK_CMP;
   2566     if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */
   2567 L_361560FB:
   2568     edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */
   2569     PUSH32(esp, edx); /* 0x361560FE: push edx */
   2570     PUSH32(esp, eax); /* 0x361560FF: push eax */
   2571     PUSH32(esp, edi); /* 0x36156100: push edi */
   2572     ecx = esi; /* 0x36156101: mov ecx, esi */
   2573     RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */
   2574     RECOMP_FLAGS_IN();
   2575     eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */
   2576     edx = eax; /* 0x3615610B: mov edx, eax */
   2577     ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */
   2578     PUSH32(esp, ecx); /* 0x36156110: push ecx */
   2579     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   2580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2581     edx = edx - edi; /* 0x36156111: sub edx, edi */
   2582     _flag_k = FK_CMP;
   2583     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */
   2584     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2585     edx = (uint32_t)((int32_t)edx >> 4u);
   2586     ecx = 1; /* 0x36156116: mov ecx, 1 */
   2587     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2589     ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */
   2590     _flag_k = FK_CMP;
   2591     PUSH32(esp, ecx); /* 0x3615611D: push ecx */
   2592     PUSH32(esp, eax); /* 0x3615611E: push eax */
   2593     ecx = esi; /* 0x3615611F: mov ecx, esi */
   2594     RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */
   2595     RECOMP_FLAGS_IN();
   2596     eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */
   2597     /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */
   2598     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2600     _flag_k = FK_CMP;
   2601     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */
   2602 L_36156131:
   2603     ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */
   2604     edx = edi; /* 0x36156134: mov edx, edi */
   2605     MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */
   2606     ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */
   2607     MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */
   2608     ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */
   2609     MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */
   2610     ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */
   2611     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   2612     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2613     edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */
   2614     _flag_k = FK_ADD;
   2615     /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */
   2616     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2618     _flag_k = FK_CMP;
   2619     MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */
   2620     RECOMP_BACKEDGE();
   2621     if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */
   2622 L_36156151:
   2623     goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */
   2624 L_36156153:
   2625     PUSH32(esp, eax); /* 0x36156153: push eax */
   2626     ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */
   2627     PUSH32(esp, eax); /* 0x36156157: push eax */
   2628     MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */
   2629     PUSH32(esp, ecx); /* 0x3615615B: push ecx */
   2630     ecx = esi; /* 0x3615615C: mov ecx, esi */
   2631     RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */
   2632     RECOMP_FLAGS_IN();
   2633     ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */
   2634     eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */
   2635     /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */
   2636     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2638     _flag_k = FK_CMP;
   2639     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */
   2640 L_3615616D:
   2641     goto L_36156172; /* 0x3615616D: jmp 0x36156172 */
   2642 L_3615616F:
   2643     ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */
   2644 L_36156172:
   2645     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2647     eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */
   2648     _flag_k = FK_CMP;
   2649     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   2650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2651     ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */
   2652     _flag_k = FK_CMP;
   2653     /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */
   2654     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2656     _flag_k = FK_CMP;
   2657     edx = eax; /* 0x3615617A: mov edx, eax */
   2658     ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */
   2659     MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */
   2660     MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */
   2661     ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */
   2662     MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */
   2663     ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */
   2664     MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */
   2665     edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */
   2666     MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */
   2667     RECOMP_BACKEDGE();
   2668     if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */
   2669 L_36156197:
   2670     ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */
   2671 L_3615619A:
   2672     eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */
   2673     /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */
   2674     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2675     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2676     _flag_k = FK_CMP;
   2677     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */
   2678 L_361561A1:
   2679     edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */
   2680     ecx = edi; /* 0x361561A4: mov ecx, edi */
   2681     MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */
   2682     edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */
   2683     MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */
   2684     edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */
   2685     MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */
   2686     edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */
   2687     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   2688     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2689     edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */
   2690     _flag_k = FK_ADD;
   2691     /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */
   2692     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2694     _flag_k = FK_CMP;
   2695     MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */
   2696     RECOMP_BACKEDGE();
   2697     if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */
   2698 L_361561C1:
   2699     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u);
   2700     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2701     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */
   2702     _flag_k = FK_ADD;
   2703 L_361561C5:
   2704     eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */
   2705     ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */
   2706     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2707     eax = eax + 1; /* 0x361561CB: inc eax */
   2708     _flag_k = FK_INC;
   2709     /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */
   2710     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2712     _flag_k = FK_CMP;
   2713     MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */
   2714     RECOMP_BACKEDGE();
   2715     if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */
   2716 L_361561D7:
   2717     esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */
   2718     edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */
   2719     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u);
   2720     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2721     esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */
   2722     _flag_k = FK_ADD;
   2723     PUSH32(esp, esi); /* 0x361561E3: push esi */
   2724     ecx = ebx; /* 0x361561E4: mov ecx, ebx */
   2725     RECOMP_ICALL(edi); /* 0x361561E6: call edi */
   2726     RECOMP_FLAGS_IN();
   2727     ecx = ebx; /* 0x361561E8: mov ecx, ebx */
   2728     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */
   2729     RECOMP_FLAGS_IN();
   2730     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2731     _cf = (eax) != 0;
   2732     eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */
   2733     _flag_k = FK_CMP;
   2734     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */
   2735       eax = _sc ? 0xFFFFFFFFu : 0;
   2736       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2737       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2738     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2739     eax = eax + 1; /* 0x361561F4: inc eax */
   2740     _flag_k = FK_INC;
   2741     edi = POP32_VAL(esp); /* 0x361561F5: pop edi */
   2742     esi = POP32_VAL(esp); /* 0x361561F6: pop esi */
   2743     ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */
   2744     esp = ebp; /* 0x361561F8: mov esp, ebp */
   2745     ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */
   2746     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */
   2747     RECOMP_REGS_OUT();
   2748 }
   2749 
   2750 void sub_3615619A(void) {
   2751     int _fpu_cmp = 0;
   2752     uint32_t _cf = 0;
   2753     int _df = 1;
   2754     uint32_t _flag_k = FK_NONE;
   2755     uint32_t _flag_a = 0, _flag_b = 0;
   2756     uint32_t _itail_tgt = 0;
   2757     RECOMP_REGS_LOCALS
   2758     RECOMP_ENTER(0x3615619Au);
   2759 
   2760     goto L_3615619A;
   2761 L_36155FA4:
   2762     edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */
   2763     ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */
   2764     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2765     eax = 0; /* 0x36155FAD: xor eax, eax */
   2766     _cf = 0;
   2767     _flag_k = FK_TEST;
   2768     PUSH32(esp, ecx); /* 0x36155FAF: push ecx */
   2769     PUSH32(esp, ebx); /* 0x36155FB0: push ebx */
   2770     MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */
   2771     MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */
   2772     RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */
   2773     RECOMP_FLAGS_IN();
   2774     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2775     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2776     esp = esp + 8; /* 0x36155FBC: add esp, 8 */
   2777     _flag_k = FK_ADD;
   2778     edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */
   2779     PUSH32(esp, edx); /* 0x36155FC2: push edx */
   2780     ecx = ebx; /* 0x36155FC3: mov ecx, ebx */
   2781     RECOMP_ICALL(edi); /* 0x36155FC5: call edi */
   2782     RECOMP_FLAGS_IN();
   2783     eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */
   2784     PUSH32(esp, eax); /* 0x36155FCA: push eax */
   2785     ecx = ebx; /* 0x36155FCB: mov ecx, ebx */
   2786     RECOMP_ICALL(edi); /* 0x36155FCD: call edi */
   2787     RECOMP_FLAGS_IN();
   2788     edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */
   2789     eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */
   2790     ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */
   2791     MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */
   2792     edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */
   2793     MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */
   2794     eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */
   2795     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2796     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2797     edx = edx - eax; /* 0x36155FE4: sub edx, eax */
   2798     _flag_k = FK_CMP;
   2799     MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */
   2800     ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */
   2801     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */
   2802     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2803     edx = (uint32_t)((int32_t)edx >> 4u);
   2804     /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */
   2805     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2807     _flag_k = FK_CMP;
   2808     MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */
   2809     edi = eax; /* 0x36155FF5: mov edi, eax */
   2810     if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */
   2811 L_36155FFD:
   2812     edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */
   2813     /* test edx, edx */ /* 0x36156000: test edx, edx */
   2814     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2815     _cf = 0;
   2816     _flag_k = FK_TEST;
   2817     if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */
   2818 L_36156004:
   2819     ecx = eax; /* 0x36156004: mov ecx, eax */
   2820     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2821     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2822     ecx = ecx - edx; /* 0x36156006: sub ecx, edx */
   2823     _flag_k = FK_CMP;
   2824     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */
   2825     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2826     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2827     /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */
   2828     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2830     _flag_k = FK_CMP;
   2831     if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */
   2832 L_36156010:
   2833     ecx = 1; /* 0x36156010: mov ecx, 1 */
   2834 L_36156015:
   2835     /* test edx, edx */ /* 0x36156015: test edx, edx */
   2836     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2837     _cf = 0;
   2838     _flag_k = FK_TEST;
   2839     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */
   2840 L_36156019:
   2841     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2842     eax = 0; /* 0x36156019: xor eax, eax */
   2843     _cf = 0;
   2844     _flag_k = FK_TEST;
   2845     goto L_36156022; /* 0x3615601B: jmp 0x36156022 */
   2846 L_3615601D:
   2847     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2849     eax = eax - edx; /* 0x3615601D: sub eax, edx */
   2850     _flag_k = FK_CMP;
   2851     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */
   2852     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2853     eax = (uint32_t)((int32_t)eax >> 4u);
   2854 L_36156022:
   2855     ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */
   2856     /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */
   2857     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2858     _cf = 0;
   2859     _flag_k = FK_TEST;
   2860     eax = ebx; /* 0x36156027: mov eax, ebx */
   2861     if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */
   2862 L_3615602B:
   2863     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2864     eax = 0; /* 0x3615602B: xor eax, eax */
   2865     _cf = 0;
   2866     _flag_k = FK_TEST;
   2867 L_3615602D:
   2868     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */
   2869     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2870     eax = eax << 4u; /* 0x3615602D: shl eax, 4 */
   2871     PUSH32(esp, eax); /* 0x36156030: push eax */
   2872     RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */
   2873     RECOMP_FLAGS_IN();
   2874     MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */
   2875     MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */
   2876     eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */
   2877     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2878     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2879     esp = esp + 4; /* 0x3615603F: add esp, 4 */
   2880     _flag_k = FK_ADD;
   2881     /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */
   2882     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2883     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2884     _flag_k = FK_CMP;
   2885     MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */
   2886     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */
   2887 L_36156049:
   2888     goto L_3615604E; /* 0x36156049: jmp 0x3615604e */
   2889 L_3615604B:
   2890     eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */
   2891 L_3615604E:
   2892     PUSH32(esp, eax); /* 0x3615604E: push eax */
   2893     eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */
   2894     PUSH32(esp, eax); /* 0x36156052: push eax */
   2895     RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */
   2896     RECOMP_FLAGS_IN();
   2897     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u);
   2898     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2899     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */
   2900     _flag_k = FK_ADD;
   2901     eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */
   2902     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2903     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2904     eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */
   2905     _flag_k = FK_ADD;
   2906     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2907     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2908     esp = esp + 8; /* 0x36156062: add esp, 8 */
   2909     _flag_k = FK_ADD;
   2910     /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */
   2911     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2913     _flag_k = FK_CMP;
   2914     MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */
   2915     RECOMP_BACKEDGE();
   2916     if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */
   2917 L_3615606C:
   2918     edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */
   2919     ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */
   2920     PUSH32(esp, ecx); /* 0x36156072: push ecx */
   2921     PUSH32(esp, 1); /* 0x36156073: push 1 */
   2922     PUSH32(esp, edx); /* 0x36156075: push edx */
   2923     ecx = esi; /* 0x36156076: mov ecx, esi */
   2924     RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */
   2925     RECOMP_FLAGS_IN();
   2926     eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */
   2927     ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */
   2928     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2929     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2930     eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */
   2931     _flag_k = FK_ADD;
   2932     PUSH32(esp, eax); /* 0x36156086: push eax */
   2933     PUSH32(esp, ecx); /* 0x36156087: push ecx */
   2934     PUSH32(esp, edi); /* 0x36156088: push edi */
   2935     ecx = esi; /* 0x36156089: mov ecx, esi */
   2936     RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */
   2937     RECOMP_FLAGS_IN();
   2938     edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */
   2939     eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */
   2940     PUSH32(esp, edx); /* 0x36156096: push edx */
   2941     PUSH32(esp, eax); /* 0x36156097: push eax */
   2942     ecx = esi; /* 0x36156098: mov ecx, esi */
   2943     RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */
   2944     RECOMP_FLAGS_IN();
   2945     ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */
   2946     PUSH32(esp, ecx); /* 0x361560A2: push ecx */
   2947     RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */
   2948     RECOMP_FLAGS_IN();
   2949     eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */
   2950     ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */
   2951     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */
   2952     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2953     ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */
   2954     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   2955     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2956     ebx = ebx + eax; /* 0x361560B1: add ebx, eax */
   2957     _flag_k = FK_ADD;
   2958     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2959     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2960     esp = esp + 4; /* 0x361560B3: add esp, 4 */
   2961     _flag_k = FK_ADD;
   2962     /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */
   2963     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2964     _cf = 0;
   2965     _flag_k = FK_TEST;
   2966     MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */
   2967     if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */
   2968 L_361560BD:
   2969     ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */
   2970     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2971     edx = 0; /* 0x361560C0: xor edx, edx */
   2972     _cf = 0;
   2973     _flag_k = FK_TEST;
   2974     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2975     edx = edx + 1; /* 0x361560C2: inc edx */
   2976     _flag_k = FK_INC;
   2977     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */
   2978     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2979     edx = edx << 4u; /* 0x361560C3: shl edx, 4 */
   2980     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2981     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2982     edx = edx + eax; /* 0x361560C6: add edx, eax */
   2983     _flag_k = FK_ADD;
   2984     MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */
   2985     MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */
   2986     goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */
   2987 L_361560D3:
   2988     edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */
   2989     ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */
   2990     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2992     edx = edx - ecx; /* 0x361560D9: sub edx, ecx */
   2993     _flag_k = FK_CMP;
   2994     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */
   2995     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2996     edx = (uint32_t)((int32_t)edx >> 4u);
   2997     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2998     edx = edx + 1; /* 0x361560DE: inc edx */
   2999     _flag_k = FK_INC;
   3000     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */
   3001     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3002     edx = edx << 4u; /* 0x361560DF: shl edx, 4 */
   3003     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3004     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3005     edx = edx + eax; /* 0x361560E2: add edx, eax */
   3006     _flag_k = FK_ADD;
   3007     MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */
   3008     MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */
   3009     goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */
   3010 L_361560EF:
   3011     ecx = eax; /* 0x361560EF: mov ecx, eax */
   3012     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   3013     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3014     ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */
   3015     _flag_k = FK_CMP;
   3016     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */
   3017     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3018     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3019     /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */
   3020     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3022     _flag_k = FK_CMP;
   3023     if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */
   3024 L_361560FB:
   3025     edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */
   3026     PUSH32(esp, edx); /* 0x361560FE: push edx */
   3027     PUSH32(esp, eax); /* 0x361560FF: push eax */
   3028     PUSH32(esp, edi); /* 0x36156100: push edi */
   3029     ecx = esi; /* 0x36156101: mov ecx, esi */
   3030     RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */
   3031     RECOMP_FLAGS_IN();
   3032     eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */
   3033     edx = eax; /* 0x3615610B: mov edx, eax */
   3034     ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */
   3035     PUSH32(esp, ecx); /* 0x36156110: push ecx */
   3036     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   3037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3038     edx = edx - edi; /* 0x36156111: sub edx, edi */
   3039     _flag_k = FK_CMP;
   3040     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */
   3041     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3042     edx = (uint32_t)((int32_t)edx >> 4u);
   3043     ecx = 1; /* 0x36156116: mov ecx, 1 */
   3044     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3046     ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */
   3047     _flag_k = FK_CMP;
   3048     PUSH32(esp, ecx); /* 0x3615611D: push ecx */
   3049     PUSH32(esp, eax); /* 0x3615611E: push eax */
   3050     ecx = esi; /* 0x3615611F: mov ecx, esi */
   3051     RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */
   3052     RECOMP_FLAGS_IN();
   3053     eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */
   3054     /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */
   3055     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3057     _flag_k = FK_CMP;
   3058     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */
   3059 L_36156131:
   3060     ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */
   3061     edx = edi; /* 0x36156134: mov edx, edi */
   3062     MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */
   3063     ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */
   3064     MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */
   3065     ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */
   3066     MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */
   3067     ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */
   3068     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   3069     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3070     edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */
   3071     _flag_k = FK_ADD;
   3072     /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */
   3073     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3075     _flag_k = FK_CMP;
   3076     MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */
   3077     RECOMP_BACKEDGE();
   3078     if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */
   3079 L_36156151:
   3080     goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */
   3081 L_36156153:
   3082     PUSH32(esp, eax); /* 0x36156153: push eax */
   3083     ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */
   3084     PUSH32(esp, eax); /* 0x36156157: push eax */
   3085     MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */
   3086     PUSH32(esp, ecx); /* 0x3615615B: push ecx */
   3087     ecx = esi; /* 0x3615615C: mov ecx, esi */
   3088     RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */
   3089     RECOMP_FLAGS_IN();
   3090     ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */
   3091     eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */
   3092     /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */
   3093     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3094     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3095     _flag_k = FK_CMP;
   3096     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */
   3097 L_3615616D:
   3098     goto L_36156172; /* 0x3615616D: jmp 0x36156172 */
   3099 L_3615616F:
   3100     ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */
   3101 L_36156172:
   3102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3104     eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */
   3105     _flag_k = FK_CMP;
   3106     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   3107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3108     ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */
   3109     _flag_k = FK_CMP;
   3110     /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */
   3111     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3112     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3113     _flag_k = FK_CMP;
   3114     edx = eax; /* 0x3615617A: mov edx, eax */
   3115     ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */
   3116     MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */
   3117     MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */
   3118     ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */
   3119     MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */
   3120     ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */
   3121     MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */
   3122     edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */
   3123     MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */
   3124     RECOMP_BACKEDGE();
   3125     if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */
   3126 L_36156197:
   3127     ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */
   3128 L_3615619A:
   3129     eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */
   3130     /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */
   3131     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3133     _flag_k = FK_CMP;
   3134     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */
   3135 L_361561A1:
   3136     edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */
   3137     ecx = edi; /* 0x361561A4: mov ecx, edi */
   3138     MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */
   3139     edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */
   3140     MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */
   3141     edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */
   3142     MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */
   3143     edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */
   3144     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   3145     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3146     edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */
   3147     _flag_k = FK_ADD;
   3148     /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */
   3149     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3150     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3151     _flag_k = FK_CMP;
   3152     MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */
   3153     RECOMP_BACKEDGE();
   3154     if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */
   3155 L_361561C1:
   3156     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u);
   3157     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3158     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */
   3159     _flag_k = FK_ADD;
   3160 L_361561C5:
   3161     eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */
   3162     ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */
   3163     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3164     eax = eax + 1; /* 0x361561CB: inc eax */
   3165     _flag_k = FK_INC;
   3166     /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */
   3167     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3168     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3169     _flag_k = FK_CMP;
   3170     MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */
   3171     RECOMP_BACKEDGE();
   3172     if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */
   3173 L_361561D7:
   3174     esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */
   3175     edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */
   3176     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u);
   3177     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3178     esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */
   3179     _flag_k = FK_ADD;
   3180     PUSH32(esp, esi); /* 0x361561E3: push esi */
   3181     ecx = ebx; /* 0x361561E4: mov ecx, ebx */
   3182     RECOMP_ICALL(edi); /* 0x361561E6: call edi */
   3183     RECOMP_FLAGS_IN();
   3184     ecx = ebx; /* 0x361561E8: mov ecx, ebx */
   3185     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */
   3186     RECOMP_FLAGS_IN();
   3187     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   3188     _cf = (eax) != 0;
   3189     eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */
   3190     _flag_k = FK_CMP;
   3191     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */
   3192       eax = _sc ? 0xFFFFFFFFu : 0;
   3193       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3194       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3195     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3196     eax = eax + 1; /* 0x361561F4: inc eax */
   3197     _flag_k = FK_INC;
   3198     edi = POP32_VAL(esp); /* 0x361561F5: pop edi */
   3199     esi = POP32_VAL(esp); /* 0x361561F6: pop esi */
   3200     ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */
   3201     esp = ebp; /* 0x361561F8: mov esp, ebp */
   3202     ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */
   3203     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */
   3204     RECOMP_REGS_OUT();
   3205 }
   3206 
   3207 void sub_361561C1(void) {
   3208     int _fpu_cmp = 0;
   3209     uint32_t _cf = 0;
   3210     int _df = 1;
   3211     uint32_t _flag_k = FK_NONE;
   3212     uint32_t _flag_a = 0, _flag_b = 0;
   3213     uint32_t _itail_tgt = 0;
   3214     RECOMP_REGS_LOCALS
   3215     RECOMP_ENTER(0x361561C1u);
   3216 
   3217     goto L_361561C1;
   3218 L_36155FA4:
   3219     edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */
   3220     ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */
   3221     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3222     eax = 0; /* 0x36155FAD: xor eax, eax */
   3223     _cf = 0;
   3224     _flag_k = FK_TEST;
   3225     PUSH32(esp, ecx); /* 0x36155FAF: push ecx */
   3226     PUSH32(esp, ebx); /* 0x36155FB0: push ebx */
   3227     MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */
   3228     MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */
   3229     RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */
   3230     RECOMP_FLAGS_IN();
   3231     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3232     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3233     esp = esp + 8; /* 0x36155FBC: add esp, 8 */
   3234     _flag_k = FK_ADD;
   3235     edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */
   3236     PUSH32(esp, edx); /* 0x36155FC2: push edx */
   3237     ecx = ebx; /* 0x36155FC3: mov ecx, ebx */
   3238     RECOMP_ICALL(edi); /* 0x36155FC5: call edi */
   3239     RECOMP_FLAGS_IN();
   3240     eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */
   3241     PUSH32(esp, eax); /* 0x36155FCA: push eax */
   3242     ecx = ebx; /* 0x36155FCB: mov ecx, ebx */
   3243     RECOMP_ICALL(edi); /* 0x36155FCD: call edi */
   3244     RECOMP_FLAGS_IN();
   3245     edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */
   3246     eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */
   3247     ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */
   3248     MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */
   3249     edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */
   3250     MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */
   3251     eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */
   3252     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3254     edx = edx - eax; /* 0x36155FE4: sub edx, eax */
   3255     _flag_k = FK_CMP;
   3256     MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */
   3257     ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */
   3258     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */
   3259     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3260     edx = (uint32_t)((int32_t)edx >> 4u);
   3261     /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */
   3262     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3263     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3264     _flag_k = FK_CMP;
   3265     MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */
   3266     edi = eax; /* 0x36155FF5: mov edi, eax */
   3267     if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */
   3268 L_36155FFD:
   3269     edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */
   3270     /* test edx, edx */ /* 0x36156000: test edx, edx */
   3271     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3272     _cf = 0;
   3273     _flag_k = FK_TEST;
   3274     if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */
   3275 L_36156004:
   3276     ecx = eax; /* 0x36156004: mov ecx, eax */
   3277     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3278     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3279     ecx = ecx - edx; /* 0x36156006: sub ecx, edx */
   3280     _flag_k = FK_CMP;
   3281     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */
   3282     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3283     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3284     /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */
   3285     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3287     _flag_k = FK_CMP;
   3288     if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */
   3289 L_36156010:
   3290     ecx = 1; /* 0x36156010: mov ecx, 1 */
   3291 L_36156015:
   3292     /* test edx, edx */ /* 0x36156015: test edx, edx */
   3293     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3294     _cf = 0;
   3295     _flag_k = FK_TEST;
   3296     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */
   3297 L_36156019:
   3298     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3299     eax = 0; /* 0x36156019: xor eax, eax */
   3300     _cf = 0;
   3301     _flag_k = FK_TEST;
   3302     goto L_36156022; /* 0x3615601B: jmp 0x36156022 */
   3303 L_3615601D:
   3304     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3306     eax = eax - edx; /* 0x3615601D: sub eax, edx */
   3307     _flag_k = FK_CMP;
   3308     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */
   3309     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3310     eax = (uint32_t)((int32_t)eax >> 4u);
   3311 L_36156022:
   3312     ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */
   3313     /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */
   3314     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3315     _cf = 0;
   3316     _flag_k = FK_TEST;
   3317     eax = ebx; /* 0x36156027: mov eax, ebx */
   3318     if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */
   3319 L_3615602B:
   3320     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3321     eax = 0; /* 0x3615602B: xor eax, eax */
   3322     _cf = 0;
   3323     _flag_k = FK_TEST;
   3324 L_3615602D:
   3325     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */
   3326     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3327     eax = eax << 4u; /* 0x3615602D: shl eax, 4 */
   3328     PUSH32(esp, eax); /* 0x36156030: push eax */
   3329     RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */
   3330     RECOMP_FLAGS_IN();
   3331     MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */
   3332     MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */
   3333     eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */
   3334     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3336     esp = esp + 4; /* 0x3615603F: add esp, 4 */
   3337     _flag_k = FK_ADD;
   3338     /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */
   3339     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3341     _flag_k = FK_CMP;
   3342     MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */
   3343     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */
   3344 L_36156049:
   3345     goto L_3615604E; /* 0x36156049: jmp 0x3615604e */
   3346 L_3615604B:
   3347     eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */
   3348 L_3615604E:
   3349     PUSH32(esp, eax); /* 0x3615604E: push eax */
   3350     eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */
   3351     PUSH32(esp, eax); /* 0x36156052: push eax */
   3352     RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */
   3353     RECOMP_FLAGS_IN();
   3354     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u);
   3355     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3356     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */
   3357     _flag_k = FK_ADD;
   3358     eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */
   3359     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3360     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3361     eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */
   3362     _flag_k = FK_ADD;
   3363     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3364     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3365     esp = esp + 8; /* 0x36156062: add esp, 8 */
   3366     _flag_k = FK_ADD;
   3367     /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */
   3368     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3370     _flag_k = FK_CMP;
   3371     MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */
   3372     RECOMP_BACKEDGE();
   3373     if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */
   3374 L_3615606C:
   3375     edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */
   3376     ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */
   3377     PUSH32(esp, ecx); /* 0x36156072: push ecx */
   3378     PUSH32(esp, 1); /* 0x36156073: push 1 */
   3379     PUSH32(esp, edx); /* 0x36156075: push edx */
   3380     ecx = esi; /* 0x36156076: mov ecx, esi */
   3381     RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */
   3382     RECOMP_FLAGS_IN();
   3383     eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */
   3384     ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */
   3385     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3386     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3387     eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */
   3388     _flag_k = FK_ADD;
   3389     PUSH32(esp, eax); /* 0x36156086: push eax */
   3390     PUSH32(esp, ecx); /* 0x36156087: push ecx */
   3391     PUSH32(esp, edi); /* 0x36156088: push edi */
   3392     ecx = esi; /* 0x36156089: mov ecx, esi */
   3393     RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */
   3394     RECOMP_FLAGS_IN();
   3395     edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */
   3396     eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */
   3397     PUSH32(esp, edx); /* 0x36156096: push edx */
   3398     PUSH32(esp, eax); /* 0x36156097: push eax */
   3399     ecx = esi; /* 0x36156098: mov ecx, esi */
   3400     RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */
   3401     RECOMP_FLAGS_IN();
   3402     ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */
   3403     PUSH32(esp, ecx); /* 0x361560A2: push ecx */
   3404     RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */
   3405     RECOMP_FLAGS_IN();
   3406     eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */
   3407     ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */
   3408     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */
   3409     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3410     ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */
   3411     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   3412     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3413     ebx = ebx + eax; /* 0x361560B1: add ebx, eax */
   3414     _flag_k = FK_ADD;
   3415     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3416     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3417     esp = esp + 4; /* 0x361560B3: add esp, 4 */
   3418     _flag_k = FK_ADD;
   3419     /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */
   3420     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3421     _cf = 0;
   3422     _flag_k = FK_TEST;
   3423     MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */
   3424     if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */
   3425 L_361560BD:
   3426     ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */
   3427     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3428     edx = 0; /* 0x361560C0: xor edx, edx */
   3429     _cf = 0;
   3430     _flag_k = FK_TEST;
   3431     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3432     edx = edx + 1; /* 0x361560C2: inc edx */
   3433     _flag_k = FK_INC;
   3434     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */
   3435     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3436     edx = edx << 4u; /* 0x361560C3: shl edx, 4 */
   3437     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3438     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3439     edx = edx + eax; /* 0x361560C6: add edx, eax */
   3440     _flag_k = FK_ADD;
   3441     MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */
   3442     MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */
   3443     goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */
   3444 L_361560D3:
   3445     edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */
   3446     ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */
   3447     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3449     edx = edx - ecx; /* 0x361560D9: sub edx, ecx */
   3450     _flag_k = FK_CMP;
   3451     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */
   3452     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3453     edx = (uint32_t)((int32_t)edx >> 4u);
   3454     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3455     edx = edx + 1; /* 0x361560DE: inc edx */
   3456     _flag_k = FK_INC;
   3457     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */
   3458     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3459     edx = edx << 4u; /* 0x361560DF: shl edx, 4 */
   3460     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3461     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3462     edx = edx + eax; /* 0x361560E2: add edx, eax */
   3463     _flag_k = FK_ADD;
   3464     MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */
   3465     MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */
   3466     goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */
   3467 L_361560EF:
   3468     ecx = eax; /* 0x361560EF: mov ecx, eax */
   3469     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   3470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3471     ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */
   3472     _flag_k = FK_CMP;
   3473     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */
   3474     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3475     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3476     /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */
   3477     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3478     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3479     _flag_k = FK_CMP;
   3480     if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */
   3481 L_361560FB:
   3482     edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */
   3483     PUSH32(esp, edx); /* 0x361560FE: push edx */
   3484     PUSH32(esp, eax); /* 0x361560FF: push eax */
   3485     PUSH32(esp, edi); /* 0x36156100: push edi */
   3486     ecx = esi; /* 0x36156101: mov ecx, esi */
   3487     RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */
   3488     RECOMP_FLAGS_IN();
   3489     eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */
   3490     edx = eax; /* 0x3615610B: mov edx, eax */
   3491     ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */
   3492     PUSH32(esp, ecx); /* 0x36156110: push ecx */
   3493     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   3494     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3495     edx = edx - edi; /* 0x36156111: sub edx, edi */
   3496     _flag_k = FK_CMP;
   3497     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */
   3498     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3499     edx = (uint32_t)((int32_t)edx >> 4u);
   3500     ecx = 1; /* 0x36156116: mov ecx, 1 */
   3501     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3503     ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */
   3504     _flag_k = FK_CMP;
   3505     PUSH32(esp, ecx); /* 0x3615611D: push ecx */
   3506     PUSH32(esp, eax); /* 0x3615611E: push eax */
   3507     ecx = esi; /* 0x3615611F: mov ecx, esi */
   3508     RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */
   3509     RECOMP_FLAGS_IN();
   3510     eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */
   3511     /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */
   3512     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3514     _flag_k = FK_CMP;
   3515     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */
   3516 L_36156131:
   3517     ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */
   3518     edx = edi; /* 0x36156134: mov edx, edi */
   3519     MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */
   3520     ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */
   3521     MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */
   3522     ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */
   3523     MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */
   3524     ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */
   3525     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   3526     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3527     edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */
   3528     _flag_k = FK_ADD;
   3529     /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */
   3530     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3532     _flag_k = FK_CMP;
   3533     MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */
   3534     RECOMP_BACKEDGE();
   3535     if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */
   3536 L_36156151:
   3537     goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */
   3538 L_36156153:
   3539     PUSH32(esp, eax); /* 0x36156153: push eax */
   3540     ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */
   3541     PUSH32(esp, eax); /* 0x36156157: push eax */
   3542     MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */
   3543     PUSH32(esp, ecx); /* 0x3615615B: push ecx */
   3544     ecx = esi; /* 0x3615615C: mov ecx, esi */
   3545     RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */
   3546     RECOMP_FLAGS_IN();
   3547     ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */
   3548     eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */
   3549     /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */
   3550     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3551     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3552     _flag_k = FK_CMP;
   3553     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */
   3554 L_3615616D:
   3555     goto L_36156172; /* 0x3615616D: jmp 0x36156172 */
   3556 L_3615616F:
   3557     ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */
   3558 L_36156172:
   3559     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3561     eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */
   3562     _flag_k = FK_CMP;
   3563     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   3564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3565     ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */
   3566     _flag_k = FK_CMP;
   3567     /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */
   3568     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3570     _flag_k = FK_CMP;
   3571     edx = eax; /* 0x3615617A: mov edx, eax */
   3572     ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */
   3573     MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */
   3574     MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */
   3575     ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */
   3576     MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */
   3577     ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */
   3578     MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */
   3579     edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */
   3580     MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */
   3581     RECOMP_BACKEDGE();
   3582     if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */
   3583 L_36156197:
   3584     ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */
   3585 L_3615619A:
   3586     eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */
   3587     /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */
   3588     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3590     _flag_k = FK_CMP;
   3591     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */
   3592 L_361561A1:
   3593     edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */
   3594     ecx = edi; /* 0x361561A4: mov ecx, edi */
   3595     MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */
   3596     edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */
   3597     MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */
   3598     edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */
   3599     MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */
   3600     edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */
   3601     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   3602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3603     edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */
   3604     _flag_k = FK_ADD;
   3605     /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */
   3606     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3608     _flag_k = FK_CMP;
   3609     MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */
   3610     RECOMP_BACKEDGE();
   3611     if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */
   3612 L_361561C1:
   3613     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u);
   3614     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3615     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */
   3616     _flag_k = FK_ADD;
   3617 L_361561C5:
   3618     eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */
   3619     ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */
   3620     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3621     eax = eax + 1; /* 0x361561CB: inc eax */
   3622     _flag_k = FK_INC;
   3623     /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */
   3624     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3626     _flag_k = FK_CMP;
   3627     MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */
   3628     RECOMP_BACKEDGE();
   3629     if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */
   3630 L_361561D7:
   3631     esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */
   3632     edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */
   3633     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u);
   3634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3635     esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */
   3636     _flag_k = FK_ADD;
   3637     PUSH32(esp, esi); /* 0x361561E3: push esi */
   3638     ecx = ebx; /* 0x361561E4: mov ecx, ebx */
   3639     RECOMP_ICALL(edi); /* 0x361561E6: call edi */
   3640     RECOMP_FLAGS_IN();
   3641     ecx = ebx; /* 0x361561E8: mov ecx, ebx */
   3642     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */
   3643     RECOMP_FLAGS_IN();
   3644     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   3645     _cf = (eax) != 0;
   3646     eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */
   3647     _flag_k = FK_CMP;
   3648     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */
   3649       eax = _sc ? 0xFFFFFFFFu : 0;
   3650       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3651       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3652     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3653     eax = eax + 1; /* 0x361561F4: inc eax */
   3654     _flag_k = FK_INC;
   3655     edi = POP32_VAL(esp); /* 0x361561F5: pop edi */
   3656     esi = POP32_VAL(esp); /* 0x361561F6: pop esi */
   3657     ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */
   3658     esp = ebp; /* 0x361561F8: mov esp, ebp */
   3659     ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */
   3660     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */
   3661     RECOMP_REGS_OUT();
   3662 }
   3663 
   3664 void sub_361561C5(void) {
   3665     int _fpu_cmp = 0;
   3666     uint32_t _cf = 0;
   3667     int _df = 1;
   3668     uint32_t _flag_k = FK_NONE;
   3669     uint32_t _flag_a = 0, _flag_b = 0;
   3670     uint32_t _itail_tgt = 0;
   3671     RECOMP_REGS_LOCALS
   3672     RECOMP_ENTER(0x361561C5u);
   3673 
   3674     goto L_361561C5;
   3675 L_36155FA4:
   3676     edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */
   3677     ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */
   3678     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3679     eax = 0; /* 0x36155FAD: xor eax, eax */
   3680     _cf = 0;
   3681     _flag_k = FK_TEST;
   3682     PUSH32(esp, ecx); /* 0x36155FAF: push ecx */
   3683     PUSH32(esp, ebx); /* 0x36155FB0: push ebx */
   3684     MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */
   3685     MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */
   3686     RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */
   3687     RECOMP_FLAGS_IN();
   3688     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3689     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3690     esp = esp + 8; /* 0x36155FBC: add esp, 8 */
   3691     _flag_k = FK_ADD;
   3692     edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */
   3693     PUSH32(esp, edx); /* 0x36155FC2: push edx */
   3694     ecx = ebx; /* 0x36155FC3: mov ecx, ebx */
   3695     RECOMP_ICALL(edi); /* 0x36155FC5: call edi */
   3696     RECOMP_FLAGS_IN();
   3697     eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */
   3698     PUSH32(esp, eax); /* 0x36155FCA: push eax */
   3699     ecx = ebx; /* 0x36155FCB: mov ecx, ebx */
   3700     RECOMP_ICALL(edi); /* 0x36155FCD: call edi */
   3701     RECOMP_FLAGS_IN();
   3702     edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */
   3703     eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */
   3704     ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */
   3705     MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */
   3706     edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */
   3707     MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */
   3708     eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */
   3709     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3711     edx = edx - eax; /* 0x36155FE4: sub edx, eax */
   3712     _flag_k = FK_CMP;
   3713     MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */
   3714     ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */
   3715     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */
   3716     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3717     edx = (uint32_t)((int32_t)edx >> 4u);
   3718     /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */
   3719     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3721     _flag_k = FK_CMP;
   3722     MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */
   3723     edi = eax; /* 0x36155FF5: mov edi, eax */
   3724     if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */
   3725 L_36155FFD:
   3726     edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */
   3727     /* test edx, edx */ /* 0x36156000: test edx, edx */
   3728     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3729     _cf = 0;
   3730     _flag_k = FK_TEST;
   3731     if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */
   3732 L_36156004:
   3733     ecx = eax; /* 0x36156004: mov ecx, eax */
   3734     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3736     ecx = ecx - edx; /* 0x36156006: sub ecx, edx */
   3737     _flag_k = FK_CMP;
   3738     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */
   3739     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3740     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3741     /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */
   3742     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3744     _flag_k = FK_CMP;
   3745     if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */
   3746 L_36156010:
   3747     ecx = 1; /* 0x36156010: mov ecx, 1 */
   3748 L_36156015:
   3749     /* test edx, edx */ /* 0x36156015: test edx, edx */
   3750     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3751     _cf = 0;
   3752     _flag_k = FK_TEST;
   3753     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */
   3754 L_36156019:
   3755     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3756     eax = 0; /* 0x36156019: xor eax, eax */
   3757     _cf = 0;
   3758     _flag_k = FK_TEST;
   3759     goto L_36156022; /* 0x3615601B: jmp 0x36156022 */
   3760 L_3615601D:
   3761     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3763     eax = eax - edx; /* 0x3615601D: sub eax, edx */
   3764     _flag_k = FK_CMP;
   3765     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */
   3766     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3767     eax = (uint32_t)((int32_t)eax >> 4u);
   3768 L_36156022:
   3769     ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */
   3770     /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */
   3771     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3772     _cf = 0;
   3773     _flag_k = FK_TEST;
   3774     eax = ebx; /* 0x36156027: mov eax, ebx */
   3775     if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */
   3776 L_3615602B:
   3777     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3778     eax = 0; /* 0x3615602B: xor eax, eax */
   3779     _cf = 0;
   3780     _flag_k = FK_TEST;
   3781 L_3615602D:
   3782     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */
   3783     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3784     eax = eax << 4u; /* 0x3615602D: shl eax, 4 */
   3785     PUSH32(esp, eax); /* 0x36156030: push eax */
   3786     RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */
   3787     RECOMP_FLAGS_IN();
   3788     MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */
   3789     MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */
   3790     eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */
   3791     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3792     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3793     esp = esp + 4; /* 0x3615603F: add esp, 4 */
   3794     _flag_k = FK_ADD;
   3795     /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */
   3796     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3798     _flag_k = FK_CMP;
   3799     MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */
   3800     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */
   3801 L_36156049:
   3802     goto L_3615604E; /* 0x36156049: jmp 0x3615604e */
   3803 L_3615604B:
   3804     eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */
   3805 L_3615604E:
   3806     PUSH32(esp, eax); /* 0x3615604E: push eax */
   3807     eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */
   3808     PUSH32(esp, eax); /* 0x36156052: push eax */
   3809     RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */
   3810     RECOMP_FLAGS_IN();
   3811     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u);
   3812     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3813     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */
   3814     _flag_k = FK_ADD;
   3815     eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */
   3816     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3817     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3818     eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */
   3819     _flag_k = FK_ADD;
   3820     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3821     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3822     esp = esp + 8; /* 0x36156062: add esp, 8 */
   3823     _flag_k = FK_ADD;
   3824     /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */
   3825     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3827     _flag_k = FK_CMP;
   3828     MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */
   3829     RECOMP_BACKEDGE();
   3830     if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */
   3831 L_3615606C:
   3832     edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */
   3833     ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */
   3834     PUSH32(esp, ecx); /* 0x36156072: push ecx */
   3835     PUSH32(esp, 1); /* 0x36156073: push 1 */
   3836     PUSH32(esp, edx); /* 0x36156075: push edx */
   3837     ecx = esi; /* 0x36156076: mov ecx, esi */
   3838     RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */
   3839     RECOMP_FLAGS_IN();
   3840     eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */
   3841     ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */
   3842     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3843     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3844     eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */
   3845     _flag_k = FK_ADD;
   3846     PUSH32(esp, eax); /* 0x36156086: push eax */
   3847     PUSH32(esp, ecx); /* 0x36156087: push ecx */
   3848     PUSH32(esp, edi); /* 0x36156088: push edi */
   3849     ecx = esi; /* 0x36156089: mov ecx, esi */
   3850     RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */
   3851     RECOMP_FLAGS_IN();
   3852     edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */
   3853     eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */
   3854     PUSH32(esp, edx); /* 0x36156096: push edx */
   3855     PUSH32(esp, eax); /* 0x36156097: push eax */
   3856     ecx = esi; /* 0x36156098: mov ecx, esi */
   3857     RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */
   3858     RECOMP_FLAGS_IN();
   3859     ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */
   3860     PUSH32(esp, ecx); /* 0x361560A2: push ecx */
   3861     RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */
   3862     RECOMP_FLAGS_IN();
   3863     eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */
   3864     ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */
   3865     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */
   3866     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3867     ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */
   3868     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   3869     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3870     ebx = ebx + eax; /* 0x361560B1: add ebx, eax */
   3871     _flag_k = FK_ADD;
   3872     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3873     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3874     esp = esp + 4; /* 0x361560B3: add esp, 4 */
   3875     _flag_k = FK_ADD;
   3876     /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */
   3877     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3878     _cf = 0;
   3879     _flag_k = FK_TEST;
   3880     MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */
   3881     if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */
   3882 L_361560BD:
   3883     ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */
   3884     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3885     edx = 0; /* 0x361560C0: xor edx, edx */
   3886     _cf = 0;
   3887     _flag_k = FK_TEST;
   3888     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3889     edx = edx + 1; /* 0x361560C2: inc edx */
   3890     _flag_k = FK_INC;
   3891     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */
   3892     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3893     edx = edx << 4u; /* 0x361560C3: shl edx, 4 */
   3894     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3895     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3896     edx = edx + eax; /* 0x361560C6: add edx, eax */
   3897     _flag_k = FK_ADD;
   3898     MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */
   3899     MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */
   3900     goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */
   3901 L_361560D3:
   3902     edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */
   3903     ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */
   3904     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3906     edx = edx - ecx; /* 0x361560D9: sub edx, ecx */
   3907     _flag_k = FK_CMP;
   3908     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */
   3909     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3910     edx = (uint32_t)((int32_t)edx >> 4u);
   3911     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3912     edx = edx + 1; /* 0x361560DE: inc edx */
   3913     _flag_k = FK_INC;
   3914     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */
   3915     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3916     edx = edx << 4u; /* 0x361560DF: shl edx, 4 */
   3917     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3918     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3919     edx = edx + eax; /* 0x361560E2: add edx, eax */
   3920     _flag_k = FK_ADD;
   3921     MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */
   3922     MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */
   3923     goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */
   3924 L_361560EF:
   3925     ecx = eax; /* 0x361560EF: mov ecx, eax */
   3926     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   3927     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3928     ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */
   3929     _flag_k = FK_CMP;
   3930     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */
   3931     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3932     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3933     /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */
   3934     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3935     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3936     _flag_k = FK_CMP;
   3937     if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */
   3938 L_361560FB:
   3939     edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */
   3940     PUSH32(esp, edx); /* 0x361560FE: push edx */
   3941     PUSH32(esp, eax); /* 0x361560FF: push eax */
   3942     PUSH32(esp, edi); /* 0x36156100: push edi */
   3943     ecx = esi; /* 0x36156101: mov ecx, esi */
   3944     RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */
   3945     RECOMP_FLAGS_IN();
   3946     eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */
   3947     edx = eax; /* 0x3615610B: mov edx, eax */
   3948     ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */
   3949     PUSH32(esp, ecx); /* 0x36156110: push ecx */
   3950     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   3951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3952     edx = edx - edi; /* 0x36156111: sub edx, edi */
   3953     _flag_k = FK_CMP;
   3954     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */
   3955     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3956     edx = (uint32_t)((int32_t)edx >> 4u);
   3957     ecx = 1; /* 0x36156116: mov ecx, 1 */
   3958     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3959     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3960     ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */
   3961     _flag_k = FK_CMP;
   3962     PUSH32(esp, ecx); /* 0x3615611D: push ecx */
   3963     PUSH32(esp, eax); /* 0x3615611E: push eax */
   3964     ecx = esi; /* 0x3615611F: mov ecx, esi */
   3965     RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */
   3966     RECOMP_FLAGS_IN();
   3967     eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */
   3968     /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */
   3969     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3970     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3971     _flag_k = FK_CMP;
   3972     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */
   3973 L_36156131:
   3974     ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */
   3975     edx = edi; /* 0x36156134: mov edx, edi */
   3976     MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */
   3977     ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */
   3978     MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */
   3979     ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */
   3980     MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */
   3981     ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */
   3982     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   3983     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3984     edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */
   3985     _flag_k = FK_ADD;
   3986     /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */
   3987     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3988     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3989     _flag_k = FK_CMP;
   3990     MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */
   3991     RECOMP_BACKEDGE();
   3992     if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */
   3993 L_36156151:
   3994     goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */
   3995 L_36156153:
   3996     PUSH32(esp, eax); /* 0x36156153: push eax */
   3997     ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */
   3998     PUSH32(esp, eax); /* 0x36156157: push eax */
   3999     MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */
   4000     PUSH32(esp, ecx); /* 0x3615615B: push ecx */
   4001     ecx = esi; /* 0x3615615C: mov ecx, esi */
   4002     RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */
   4003     RECOMP_FLAGS_IN();
   4004     ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */
   4005     eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */
   4006     /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */
   4007     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4009     _flag_k = FK_CMP;
   4010     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */
   4011 L_3615616D:
   4012     goto L_36156172; /* 0x3615616D: jmp 0x36156172 */
   4013 L_3615616F:
   4014     ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */
   4015 L_36156172:
   4016     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   4017     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4018     eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */
   4019     _flag_k = FK_CMP;
   4020     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   4021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4022     ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */
   4023     _flag_k = FK_CMP;
   4024     /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */
   4025     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4027     _flag_k = FK_CMP;
   4028     edx = eax; /* 0x3615617A: mov edx, eax */
   4029     ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */
   4030     MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */
   4031     MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */
   4032     ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */
   4033     MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */
   4034     ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */
   4035     MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */
   4036     edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */
   4037     MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */
   4038     RECOMP_BACKEDGE();
   4039     if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */
   4040 L_36156197:
   4041     ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */
   4042 L_3615619A:
   4043     eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */
   4044     /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */
   4045     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4047     _flag_k = FK_CMP;
   4048     if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */
   4049 L_361561A1:
   4050     edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */
   4051     ecx = edi; /* 0x361561A4: mov ecx, edi */
   4052     MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */
   4053     edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */
   4054     MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */
   4055     edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */
   4056     MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */
   4057     edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */
   4058     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   4059     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4060     edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */
   4061     _flag_k = FK_ADD;
   4062     /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */
   4063     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4065     _flag_k = FK_CMP;
   4066     MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */
   4067     RECOMP_BACKEDGE();
   4068     if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */
   4069 L_361561C1:
   4070     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u);
   4071     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4072     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */
   4073     _flag_k = FK_ADD;
   4074 L_361561C5:
   4075     eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */
   4076     ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */
   4077     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4078     eax = eax + 1; /* 0x361561CB: inc eax */
   4079     _flag_k = FK_INC;
   4080     /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */
   4081     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4083     _flag_k = FK_CMP;
   4084     MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */
   4085     RECOMP_BACKEDGE();
   4086     if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */
   4087 L_361561D7:
   4088     esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */
   4089     edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */
   4090     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u);
   4091     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4092     esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */
   4093     _flag_k = FK_ADD;
   4094     PUSH32(esp, esi); /* 0x361561E3: push esi */
   4095     ecx = ebx; /* 0x361561E4: mov ecx, ebx */
   4096     RECOMP_ICALL(edi); /* 0x361561E6: call edi */
   4097     RECOMP_FLAGS_IN();
   4098     ecx = ebx; /* 0x361561E8: mov ecx, ebx */
   4099     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */
   4100     RECOMP_FLAGS_IN();
   4101     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   4102     _cf = (eax) != 0;
   4103     eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */
   4104     _flag_k = FK_CMP;
   4105     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */
   4106       eax = _sc ? 0xFFFFFFFFu : 0;
   4107       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4108       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4109     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4110     eax = eax + 1; /* 0x361561F4: inc eax */
   4111     _flag_k = FK_INC;
   4112     edi = POP32_VAL(esp); /* 0x361561F5: pop edi */
   4113     esi = POP32_VAL(esp); /* 0x361561F6: pop esi */
   4114     ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */
   4115     esp = ebp; /* 0x361561F8: mov esp, ebp */
   4116     ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */
   4117     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */
   4118     RECOMP_REGS_OUT();
   4119 }
   4120 
   4121 void sub_36156200(void) {
   4122     int _fpu_cmp = 0;
   4123     uint32_t _cf = 0;
   4124     int _df = 1;
   4125     uint32_t _flag_k = FK_NONE;
   4126     uint32_t _flag_a = 0, _flag_b = 0;
   4127     uint32_t _itail_tgt = 0;
   4128     RECOMP_REGS_LOCALS
   4129     RECOMP_ENTER(0x36156200u);
   4130 
   4131 L_36156200:
   4132     PUSH32(esp, ebp); /* 0x36156200: push ebp */
   4133     ebp = esp; /* 0x36156201: mov ebp, esp */
   4134     PUSH32(esp, ebx); /* 0x36156203: push ebx */
   4135     ebx = MEM32(ebp + 0x8); /* 0x36156204: mov ebx, dword ptr [ebp + 8] */
   4136     PUSH32(esp, esi); /* 0x36156207: push esi */
   4137     PUSH32(esp, edi); /* 0x36156208: push edi */
   4138     esi = ecx; /* 0x36156209: mov esi, ecx */
   4139     PUSH32(esp, ebx); /* 0x3615620B: push ebx */
   4140     RECOMP_ICALL(0x36154DB0u); /* 0x3615620C: call 0x36154db0 */ /* not lifted */
   4141     RECOMP_FLAGS_IN();
   4142     ecx = MEM32(esi + 0x2C); /* 0x36156211: mov ecx, dword ptr [esi + 0x2c] */
   4143     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4144     edi = 0; /* 0x36156214: xor edi, edi */
   4145     _cf = 0;
   4146     _flag_k = FK_TEST;
   4147     /* cmp ecx, edi */ /* 0x36156216: cmp ecx, edi */
   4148     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   4149     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4150     _flag_k = FK_CMP;
   4151     if (CMP_NE(_flag_a, _flag_b)) goto L_3615621E; /* 0x36156218: jne 0x3615621e */
   4152 L_3615621A:
   4153     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4154     eax = 0; /* 0x3615621A: xor eax, eax */
   4155     _cf = 0;
   4156     _flag_k = FK_TEST;
   4157     goto L_36156226; /* 0x3615621C: jmp 0x36156226 */
   4158 L_3615621E:
   4159     eax = MEM32(esi + 0x30); /* 0x3615621E: mov eax, dword ptr [esi + 0x30] */
   4160     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4162     eax = eax - ecx; /* 0x36156221: sub eax, ecx */
   4163     _flag_k = FK_CMP;
   4164     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x36156223: sar eax, 4 */
   4165     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4166     eax = (uint32_t)((int32_t)eax >> 4u);
   4167 L_36156226:
   4168     PUSH32(esp, eax); /* 0x36156226: push eax */
   4169     ecx = ebx; /* 0x36156227: mov ecx, ebx */
   4170     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36156229: call dword ptr [0x3616faec] */
   4171     RECOMP_FLAGS_IN();
   4172     MEM32(ebp + 0x8) = edi; /* 0x3615622F: mov dword ptr [ebp + 8], edi */
   4173 L_36156232:
   4174     eax = MEM32(esi + 0x2C); /* 0x36156232: mov eax, dword ptr [esi + 0x2c] */
   4175     /* test eax, eax */ /* 0x36156235: test eax, eax */
   4176     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4177     _cf = 0;
   4178     _flag_k = FK_TEST;
   4179     if (TEST_Z(_flag_a, _flag_b)) goto L_36156281; /* 0x36156237: je 0x36156281 */
   4180 L_36156239:
   4181     ecx = MEM32(esi + 0x30); /* 0x36156239: mov ecx, dword ptr [esi + 0x30] */
   4182     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4184     ecx = ecx - eax; /* 0x3615623C: sub ecx, eax */
   4185     _flag_k = FK_CMP;
   4186     eax = MEM32(ebp + 0x8); /* 0x3615623E: mov eax, dword ptr [ebp + 8] */
   4187     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156241: sar ecx, 4 */
   4188     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4189     ecx = (uint32_t)((int32_t)ecx >> 4u);
   4190     /* cmp eax, ecx */ /* 0x36156244: cmp eax, ecx */
   4191     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4193     _flag_k = FK_CMP;
   4194     if (CMP_AE(_flag_a, _flag_b)) goto L_36156281; /* 0x36156246: jae 0x36156281 */
   4195 L_36156248:
   4196     ecx = MEM32(esi + 0x2C); /* 0x36156248: mov ecx, dword ptr [esi + 0x2c] */
   4197     edx = edi; /* 0x3615624B: mov edx, edi */
   4198     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4199     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4200     edx = edx + ecx; /* 0x3615624D: add edx, ecx */
   4201     _flag_k = FK_ADD;
   4202     PUSH32(esp, edx); /* 0x3615624F: push edx */
   4203     PUSH32(esp, ebx); /* 0x36156250: push ebx */
   4204     RECOMP_ICALL(0x3615B840u); /* 0x36156251: call 0x3615b840 */ /* not lifted */
   4205     RECOMP_FLAGS_IN();
   4206     eax = MEM32(esi + 0x2C); /* 0x36156256: mov eax, dword ptr [esi + 0x2c] */
   4207     ecx = MEM32(edi + eax + 0x8); /* 0x36156259: mov ecx, dword ptr [edi + eax + 8] */
   4208     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4209     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4210     esp = esp + 8; /* 0x3615625D: add esp, 8 */
   4211     _flag_k = FK_ADD;
   4212     PUSH32(esp, ecx); /* 0x36156260: push ecx */
   4213     ecx = ebx; /* 0x36156261: mov ecx, ebx */
   4214     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36156263: call dword ptr [0x3616faec] */
   4215     RECOMP_FLAGS_IN();
   4216     edx = MEM32(esi + 0x2C); /* 0x36156269: mov edx, dword ptr [esi + 0x2c] */
   4217     eax = MEM32(edi + edx + 0xC); /* 0x3615626C: mov eax, dword ptr [edi + edx + 0xc] */
   4218     PUSH32(esp, eax); /* 0x36156270: push eax */
   4219     ecx = ebx; /* 0x36156271: mov ecx, ebx */
   4220     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36156273: call dword ptr [0x3616faec] */
   4221     RECOMP_FLAGS_IN();
   4222     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1);
   4223     MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + 1; /* 0x36156279: inc dword ptr [ebp + 8] */
   4224     _flag_k = FK_INC;
   4225     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   4226     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4227     edi = edi + 0x10u; /* 0x3615627C: add edi, 0x10 */
   4228     _flag_k = FK_ADD;
   4229     RECOMP_BACKEDGE();
   4230     goto L_36156232; /* 0x3615627F: jmp 0x36156232 */
   4231 L_36156281:
   4232     ecx = MEM32(esi + 0x38); /* 0x36156281: mov ecx, dword ptr [esi + 0x38] */
   4233     PUSH32(esp, ecx); /* 0x36156284: push ecx */
   4234     ecx = ebx; /* 0x36156285: mov ecx, ebx */
   4235     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36156287: call dword ptr [0x3616faec] */
   4236     RECOMP_FLAGS_IN();
   4237     edi = POP32_VAL(esp); /* 0x3615628D: pop edi */
   4238     esi = POP32_VAL(esp); /* 0x3615628E: pop esi */
   4239     ebx = POP32_VAL(esp); /* 0x3615628F: pop ebx */
   4240     ebp = POP32_VAL(esp); /* 0x36156290: pop ebp */
   4241     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36156291: ret 4 */
   4242     RECOMP_REGS_OUT();
   4243 }
   4244 
   4245 void sub_361562A0(void) {
   4246     int _fpu_cmp = 0;
   4247     uint32_t _cf = 0;
   4248     int _df = 1;
   4249     uint32_t _flag_k = FK_NONE;
   4250     uint32_t _flag_a = 0, _flag_b = 0;
   4251     uint32_t _itail_tgt = 0;
   4252     RECOMP_REGS_LOCALS
   4253     RECOMP_ENTER(0x361562A0u);
   4254 
   4255 L_361562A0:
   4256     PUSH32(esp, ebp); /* 0x361562A0: push ebp */
   4257     ebp = esp; /* 0x361562A1: mov ebp, esp */
   4258     PUSH32(esp, ebx); /* 0x361562A3: push ebx */
   4259     ebx = MEM32(ebp + 0xC); /* 0x361562A4: mov ebx, dword ptr [ebp + 0xc] */
   4260     PUSH32(esp, esi); /* 0x361562A7: push esi */
   4261     esi = MEM32(ebp + 0x8); /* 0x361562A8: mov esi, dword ptr [ebp + 8] */
   4262     /* cmp esi, ebx */ /* 0x361562AB: cmp esi, ebx */
   4263     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4265     _flag_k = FK_CMP;
   4266     if (CMP_EQ(_flag_a, _flag_b)) goto L_361562D0; /* 0x361562AD: je 0x361562d0 */
   4267 L_361562AF:
   4268     PUSH32(esp, edi); /* 0x361562AF: push edi */
   4269     edi = MEM32(ebp + 0x10); /* 0x361562B0: mov edi, dword ptr [ebp + 0x10] */
   4270 L_361562B3:
   4271     PUSH32(esp, esi); /* 0x361562B3: push esi */
   4272     PUSH32(esp, edi); /* 0x361562B4: push edi */
   4273     RECOMP_ICALL(0x361562E0u); /* 0x361562B5: call 0x361562e0 */ /* not lifted */
   4274     RECOMP_FLAGS_IN();
   4275     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   4276     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4277     esi = esi + 0x10u; /* 0x361562BA: add esi, 0x10 */
   4278     _flag_k = FK_ADD;
   4279     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4280     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4281     esp = esp + 8; /* 0x361562BD: add esp, 8 */
   4282     _flag_k = FK_ADD;
   4283     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   4284     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4285     edi = edi + 0x10u; /* 0x361562C0: add edi, 0x10 */
   4286     _flag_k = FK_ADD;
   4287     /* cmp esi, ebx */ /* 0x361562C3: cmp esi, ebx */
   4288     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4290     _flag_k = FK_CMP;
   4291     RECOMP_BACKEDGE();
   4292     if (CMP_NE(_flag_a, _flag_b)) goto L_361562B3; /* 0x361562C5: jne 0x361562b3 */
   4293 L_361562C7:
   4294     eax = edi; /* 0x361562C7: mov eax, edi */
   4295     edi = POP32_VAL(esp); /* 0x361562C9: pop edi */
   4296     esi = POP32_VAL(esp); /* 0x361562CA: pop esi */
   4297     ebx = POP32_VAL(esp); /* 0x361562CB: pop ebx */
   4298     ebp = POP32_VAL(esp); /* 0x361562CC: pop ebp */
   4299     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361562CD: ret 0xc */
   4300 L_361562D0:
   4301     eax = MEM32(ebp + 0x10); /* 0x361562D0: mov eax, dword ptr [ebp + 0x10] */
   4302     esi = POP32_VAL(esp); /* 0x361562D3: pop esi */
   4303     ebx = POP32_VAL(esp); /* 0x361562D4: pop ebx */
   4304     ebp = POP32_VAL(esp); /* 0x361562D5: pop ebp */
   4305     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361562D6: ret 0xc */
   4306     RECOMP_REGS_OUT();
   4307 }
   4308 
   4309 void sub_361562E0(void) {
   4310     int _fpu_cmp = 0;
   4311     uint32_t _cf = 0;
   4312     int _df = 1;
   4313     uint32_t _flag_k = FK_NONE;
   4314     uint32_t _flag_a = 0, _flag_b = 0;
   4315     uint32_t _itail_tgt = 0;
   4316     RECOMP_REGS_LOCALS
   4317     RECOMP_ENTER(0x361562E0u);
   4318 
   4319 L_361562E0:
   4320     PUSH32(esp, ebp); /* 0x361562E0: push ebp */
   4321     ebp = esp; /* 0x361562E1: mov ebp, esp */
   4322     eax = MEM32(ebp + 0x8); /* 0x361562E3: mov eax, dword ptr [ebp + 8] */
   4323     /* test eax, eax */ /* 0x361562E6: test eax, eax */
   4324     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4325     _cf = 0;
   4326     _flag_k = FK_TEST;
   4327     if (TEST_Z(_flag_a, _flag_b)) goto L_36156307; /* 0x361562E8: je 0x36156307 */
   4328 L_361562EA:
   4329     ecx = MEM32(ebp + 0xC); /* 0x361562EA: mov ecx, dword ptr [ebp + 0xc] */
   4330     /* cmp eax, ecx */ /* 0x361562ED: cmp eax, ecx */
   4331     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4332     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4333     _flag_k = FK_CMP;
   4334     if (CMP_EQ(_flag_a, _flag_b)) goto L_361562FB; /* 0x361562EF: je 0x361562fb */
   4335 L_361562F1:
   4336     edx = MEM32(ecx); /* 0x361562F1: mov edx, dword ptr [ecx] */
   4337     MEM32(eax) = edx; /* 0x361562F3: mov dword ptr [eax], edx */
   4338     edx = MEM32(ecx + 0x4); /* 0x361562F5: mov edx, dword ptr [ecx + 4] */
   4339     MEM32(eax + 0x4) = edx; /* 0x361562F8: mov dword ptr [eax + 4], edx */
   4340 L_361562FB:
   4341     edx = MEM32(ecx + 0x8); /* 0x361562FB: mov edx, dword ptr [ecx + 8] */
   4342     MEM32(eax + 0x8) = edx; /* 0x361562FE: mov dword ptr [eax + 8], edx */
   4343     ecx = MEM32(ecx + 0xC); /* 0x36156301: mov ecx, dword ptr [ecx + 0xc] */
   4344     MEM32(eax + 0xC) = ecx; /* 0x36156304: mov dword ptr [eax + 0xc], ecx */
   4345 L_36156307:
   4346     ebp = POP32_VAL(esp); /* 0x36156307: pop ebp */
   4347     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156308: ret  */
   4348     RECOMP_REGS_OUT();
   4349 }
   4350 
   4351 void sub_36156310(void) {
   4352     int _fpu_cmp = 0;
   4353     uint32_t _cf = 0;
   4354     int _df = 1;
   4355     uint32_t _flag_k = FK_NONE;
   4356     uint32_t _flag_a = 0, _flag_b = 0;
   4357     uint32_t _itail_tgt = 0;
   4358     RECOMP_REGS_LOCALS
   4359     RECOMP_ENTER(0x36156310u);
   4360 
   4361 L_36156310:
   4362     goto L_36156320; /* 0x36156310: jmp 0x36156320 */
   4363 L_36156320:
   4364     MEM8(0x3630DB2C) = (uint8_t)(1); /* 0x36156320: mov byte ptr [0x3630db2c], 1 */
   4365     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156327: ret  */
   4366     RECOMP_REGS_OUT();
   4367 }
   4368 
   4369 void sub_36156320(void) {
   4370     int _fpu_cmp = 0;
   4371     uint32_t _cf = 0;
   4372     int _df = 1;
   4373     uint32_t _flag_k = FK_NONE;
   4374     uint32_t _flag_a = 0, _flag_b = 0;
   4375     uint32_t _itail_tgt = 0;
   4376     RECOMP_REGS_LOCALS
   4377     RECOMP_ENTER(0x36156320u);
   4378 
   4379 L_36156320:
   4380     MEM8(0x3630DB2C) = (uint8_t)(1); /* 0x36156320: mov byte ptr [0x3630db2c], 1 */
   4381     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156327: ret  */
   4382     RECOMP_REGS_OUT();
   4383 }
   4384 
   4385 void sub_36156330(void) {
   4386     int _fpu_cmp = 0;
   4387     uint32_t _cf = 0;
   4388     int _df = 1;
   4389     uint32_t _flag_k = FK_NONE;
   4390     uint32_t _flag_a = 0, _flag_b = 0;
   4391     uint32_t _itail_tgt = 0;
   4392     RECOMP_REGS_LOCALS
   4393     RECOMP_ENTER(0x36156330u);
   4394 
   4395 L_36156330:
   4396     PUSH32(esp, ebp); /* 0x36156330: push ebp */
   4397     ebp = esp; /* 0x36156331: mov ebp, esp */
   4398     PUSH32(esp, ecx); /* 0x36156333: push ecx */
   4399     PUSH32(esp, esi); /* 0x36156334: push esi */
   4400     esi = ecx; /* 0x36156335: mov esi, ecx */
   4401     RECOMP_ICALL(0x36154D30u); /* 0x36156337: call 0x36154d30 */ /* not lifted */
   4402     RECOMP_FLAGS_IN();
   4403     SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3615633C: mov al, byte ptr [ebp - 1] */
   4404     MEM8(esi + 0x2C) = (uint8_t)(LO8(eax)); /* 0x3615633F: mov byte ptr [esi + 0x2c], al */
   4405     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4406     eax = 0; /* 0x36156342: xor eax, eax */
   4407     _cf = 0;
   4408     _flag_k = FK_TEST;
   4409     MEM32(esi + 0x30) = eax; /* 0x36156344: mov dword ptr [esi + 0x30], eax */
   4410     MEM32(esi + 0x34) = eax; /* 0x36156347: mov dword ptr [esi + 0x34], eax */
   4411     MEM32(esi + 0x38) = eax; /* 0x3615634A: mov dword ptr [esi + 0x38], eax */
   4412     MEM32(esi + 0x28) = eax; /* 0x3615634D: mov dword ptr [esi + 0x28], eax */
   4413     MEM32(esi) = 0x36178CB0u; /* 0x36156350: mov dword ptr [esi], 0x36178cb0 */
   4414     eax = esi; /* 0x36156356: mov eax, esi */
   4415     esi = POP32_VAL(esp); /* 0x36156358: pop esi */
   4416     esp = ebp; /* 0x36156359: mov esp, ebp */
   4417     ebp = POP32_VAL(esp); /* 0x3615635B: pop ebp */
   4418     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615635C: ret  */
   4419     RECOMP_REGS_OUT();
   4420 }
   4421 
   4422 void sub_36156360(void) {
   4423     int _fpu_cmp = 0;
   4424     uint32_t _cf = 0;
   4425     int _df = 1;
   4426     uint32_t _flag_k = FK_NONE;
   4427     uint32_t _flag_a = 0, _flag_b = 0;
   4428     uint32_t _itail_tgt = 0;
   4429     RECOMP_REGS_LOCALS
   4430     RECOMP_ENTER(0x36156360u);
   4431 
   4432 L_36156360:
   4433     PUSH32(esp, ebp); /* 0x36156360: push ebp */
   4434     ebp = esp; /* 0x36156361: mov ebp, esp */
   4435     PUSH32(esp, esi); /* 0x36156363: push esi */
   4436     esi = ecx; /* 0x36156364: mov esi, ecx */
   4437     RECOMP_ICALL(0x36156490u); /* 0x36156366: call 0x36156490 */ /* not lifted */
   4438     RECOMP_FLAGS_IN();
   4439     /* test MEM8(ebp + 0x8), 1 */ /* 0x3615636B: test byte ptr [ebp + 8], 1 */
   4440     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4441     _cf = 0;
   4442     _flag_k = FK_NARROW(FK_TEST, 24);
   4443     if (TEST_Z(_flag_a, _flag_b)) goto L_3615637A; /* 0x3615636F: je 0x3615637a */
   4444 L_36156371:
   4445     PUSH32(esp, esi); /* 0x36156371: push esi */
   4446     RECOMP_ICALL(0x3615FCC4u); /* 0x36156372: call 0x3615fcc4 */ /* not lifted */
   4447     RECOMP_FLAGS_IN();
   4448     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4449     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4450     esp = esp + 4; /* 0x36156377: add esp, 4 */
   4451     _flag_k = FK_ADD;
   4452 L_3615637A:
   4453     eax = esi; /* 0x3615637A: mov eax, esi */
   4454     esi = POP32_VAL(esp); /* 0x3615637C: pop esi */
   4455     ebp = POP32_VAL(esp); /* 0x3615637D: pop ebp */
   4456     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615637E: ret 4 */
   4457     RECOMP_REGS_OUT();
   4458 }
   4459 
   4460 void sub_36156390(void) {
   4461     int _fpu_cmp = 0;
   4462     uint32_t _cf = 0;
   4463     int _df = 1;
   4464     uint32_t _flag_k = FK_NONE;
   4465     uint32_t _flag_a = 0, _flag_b = 0;
   4466     uint32_t _itail_tgt = 0;
   4467     RECOMP_REGS_LOCALS
   4468     RECOMP_ENTER(0x36156390u);
   4469 
   4470 L_36156390:
   4471     PUSH32(esp, ebp); /* 0x36156390: push ebp */
   4472     ebp = esp; /* 0x36156391: mov ebp, esp */
   4473     PUSH32(esp, 0xFFFFFFFFu); /* 0x36156393: push -1 */
   4474     PUSH32(esp, 0x3616DC26u); /* 0x36156395: push 0x3616dc26 */
   4475     eax = MEM32(FS_BASE + (0)); /* 0x3615639A: mov eax, dword ptr fs:[0] */
   4476     PUSH32(esp, eax); /* 0x361563A0: push eax */
   4477     MEM32(FS_BASE + (0)) = esp; /* 0x361563A1: mov dword ptr fs:[0], esp */
   4478     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4480     esp = esp - 0x14u; /* 0x361563A8: sub esp, 0x14 */
   4481     _flag_k = FK_CMP;
   4482     PUSH32(esp, ebx); /* 0x361563AB: push ebx */
   4483     PUSH32(esp, esi); /* 0x361563AC: push esi */
   4484     esi = ecx; /* 0x361563AD: mov esi, ecx */
   4485     PUSH32(esp, edi); /* 0x361563AF: push edi */
   4486     MEM32(ebp + (-0x10)) = esi; /* 0x361563B0: mov dword ptr [ebp - 0x10], esi */
   4487     SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x361563B3: mov al, byte ptr [ebp + 0xf] */
   4488     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4489     ebx = 0; /* 0x361563B6: xor ebx, ebx */
   4490     _cf = 0;
   4491     _flag_k = FK_TEST;
   4492     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4493     ecx = ecx | 0xFFFFFFFFu; /* 0x361563B8: or ecx, 0xffffffff */
   4494     _cf = 0;
   4495     _flag_k = FK_TEST;
   4496     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x361563BB: mov byte ptr [ebp - 0x20], al */
   4497     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4498     eax = 0; /* 0x361563BE: xor eax, eax */
   4499     _cf = 0;
   4500     _flag_k = FK_TEST;
   4501     edi = 0x361B3FBCu; /* 0x361563C0: mov edi, 0x361b3fbc */
   4502     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; } /* 0x361563C5: repne scasb al, byte ptr es:[edi] */
   4503     ecx = ~ecx; /* 0x361563C7: not ecx */
   4504     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4505     ecx = ecx - 1; /* 0x361563C9: dec ecx */
   4506     _flag_k = FK_DEC;
   4507     PUSH32(esp, ecx); /* 0x361563CA: push ecx */
   4508     PUSH32(esp, 0x361B3FBCu); /* 0x361563CB: push 0x361b3fbc */
   4509     ecx = ebp + (-0x20); /* 0x361563D0: lea ecx, [ebp - 0x20] */
   4510     MEM32(ebp + (-0x4)) = ebx; /* 0x361563D3: mov dword ptr [ebp - 4], ebx */
   4511     MEM32(ebp + (-0x1C)) = ebx; /* 0x361563D6: mov dword ptr [ebp - 0x1c], ebx */
   4512     MEM32(ebp + (-0x18)) = ebx; /* 0x361563D9: mov dword ptr [ebp - 0x18], ebx */
   4513     MEM32(ebp + (-0x14)) = ebx; /* 0x361563DC: mov dword ptr [ebp - 0x14], ebx */
   4514     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x361563DF: call dword ptr [0x3616f014] */
   4515     RECOMP_FLAGS_IN();
   4516     edx = MEM32(ebp + 0xC); /* 0x361563E5: mov edx, dword ptr [ebp + 0xc] */
   4517     eax = MEM32(ebp + 0x8); /* 0x361563E8: mov eax, dword ptr [ebp + 8] */
   4518     ecx = ebp + (-0x20); /* 0x361563EB: lea ecx, [ebp - 0x20] */
   4519     PUSH32(esp, ecx); /* 0x361563EE: push ecx */
   4520     PUSH32(esp, edx); /* 0x361563EF: push edx */
   4521     PUSH32(esp, eax); /* 0x361563F0: push eax */
   4522     ecx = esi; /* 0x361563F1: mov ecx, esi */
   4523     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x361563F3: mov byte ptr [ebp - 4], 1 */
   4524     RECOMP_ICALL(0x36154C80u); /* 0x361563F7: call 0x36154c80 */ /* not lifted */
   4525     RECOMP_FLAGS_IN();
   4526     eax = MEM32(ebp + (-0x1C)); /* 0x361563FC: mov eax, dword ptr [ebp - 0x1c] */
   4527     /* cmp eax, ebx */ /* 0x361563FF: cmp eax, ebx */
   4528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4530     _flag_k = FK_CMP;
   4531     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615641F; /* 0x36156401: je 0x3615641f */
   4532 L_36156403:
   4533     ecx = eax + (-0x1); /* 0x36156403: lea ecx, [eax - 1] */
   4534     SET_LO8(eax, MEM8(ecx)); /* 0x36156406: mov al, byte ptr [ecx] */
   4535     /* cmp LO8(eax), LO8(ebx) */ /* 0x36156408: cmp al, bl */
   4536     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4538     _flag_k = FK_NARROW(FK_CMP, 24);
   4539     if (CMP_EQ(_flag_a, _flag_b)) goto L_36156416; /* 0x3615640A: je 0x36156416 */
   4540 L_3615640C:
   4541     /* cmp LO8(eax), 0xFFu */ /* 0x3615640C: cmp al, 0xff */
   4542     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   4543     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4544     _flag_k = FK_NARROW(FK_CMP, 24);
   4545     if (CMP_EQ(_flag_a, _flag_b)) goto L_36156416; /* 0x3615640E: je 0x36156416 */
   4546 L_36156410:
   4547     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4548     SET_LO8(eax, LO8(eax) - 1); /* 0x36156410: dec al */
   4549     _flag_k = FK_NARROW(FK_DEC, 24);
   4550     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36156412: mov byte ptr [ecx], al */
   4551     goto L_3615641F; /* 0x36156414: jmp 0x3615641f */
   4552 L_36156416:
   4553     PUSH32(esp, ecx); /* 0x36156416: push ecx */
   4554     RECOMP_ICALL(0x3615FCC4u); /* 0x36156417: call 0x3615fcc4 */ /* not lifted */
   4555     RECOMP_FLAGS_IN();
   4556     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4557     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4558     esp = esp + 4; /* 0x3615641C: add esp, 4 */
   4559     _flag_k = FK_ADD;
   4560 L_3615641F:
   4561     SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x3615641F: mov dl, byte ptr [ebp + 0xf] */
   4562     ecx = esi + 0x2C; /* 0x36156422: lea ecx, [esi + 0x2c] */
   4563     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x36156425: mov byte ptr [ecx], dl */
   4564     MEM32(ecx + 0x4) = ebx; /* 0x36156427: mov dword ptr [ecx + 4], ebx */
   4565     MEM32(ecx + 0x8) = ebx; /* 0x3615642A: mov dword ptr [ecx + 8], ebx */
   4566     MEM32(ecx + 0xC) = ebx; /* 0x3615642D: mov dword ptr [ecx + 0xc], ebx */
   4567     eax = MEM32(ebp + 0x10); /* 0x36156430: mov eax, dword ptr [ebp + 0x10] */
   4568     MEM32(esi) = 0x36178CB0u; /* 0x36156433: mov dword ptr [esi], 0x36178cb0 */
   4569     MEM32(esi + 0x28) = eax; /* 0x36156439: mov dword ptr [esi + 0x28], eax */
   4570     edx = MEM32(0x3616F010); /* 0x3615643C: mov edx, dword ptr [0x3616f010] */
   4571     eax = MEM32(edx); /* 0x36156442: mov eax, dword ptr [edx] */
   4572     PUSH32(esp, eax); /* 0x36156444: push eax */
   4573     PUSH32(esp, ebx); /* 0x36156445: push ebx */
   4574     edx = ebp + 0x14; /* 0x36156446: lea edx, [ebp + 0x14] */
   4575     PUSH32(esp, edx); /* 0x36156449: push edx */
   4576     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3615644A: mov byte ptr [ebp - 4], 4 */
   4577     RECOMP_ICALL(MEM32(0x3616F024)); /* 0x3615644E: call dword ptr [0x3616f024] */
   4578     RECOMP_FLAGS_IN();
   4579     ecx = MEM32(ebp + 0x18); /* 0x36156454: mov ecx, dword ptr [ebp + 0x18] */
   4580     /* cmp ecx, ebx */ /* 0x36156457: cmp ecx, ebx */
   4581     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4583     _flag_k = FK_CMP;
   4584     if (CMP_EQ(_flag_a, _flag_b)) goto L_36156477; /* 0x36156459: je 0x36156477 */
   4585 L_3615645B:
   4586     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x3615645B: mov al, byte ptr [ecx - 1] */
   4587     /* cmp LO8(eax), LO8(ebx) */ /* 0x3615645E: cmp al, bl */
   4588     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4590     _flag_k = FK_NARROW(FK_CMP, 24);
   4591     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615646D; /* 0x36156460: je 0x3615646d */
   4592 L_36156462:
   4593     /* cmp LO8(eax), 0xFFu */ /* 0x36156462: cmp al, 0xff */
   4594     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   4595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4596     _flag_k = FK_NARROW(FK_CMP, 24);
   4597     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615646D; /* 0x36156464: je 0x3615646d */
   4598 L_36156466:
   4599     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4600     SET_LO8(eax, LO8(eax) - 1); /* 0x36156466: dec al */
   4601     _flag_k = FK_NARROW(FK_DEC, 24);
   4602     MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x36156468: mov byte ptr [ecx - 1], al */
   4603     goto L_36156477; /* 0x3615646B: jmp 0x36156477 */
   4604 L_3615646D:
   4605     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4606     ecx = ecx - 1; /* 0x3615646D: dec ecx */
   4607     _flag_k = FK_DEC;
   4608     PUSH32(esp, ecx); /* 0x3615646E: push ecx */
   4609     RECOMP_ICALL(0x3615FCC4u); /* 0x3615646F: call 0x3615fcc4 */ /* not lifted */
   4610     RECOMP_FLAGS_IN();
   4611     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4612     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4613     esp = esp + 4; /* 0x36156474: add esp, 4 */
   4614     _flag_k = FK_ADD;
   4615 L_36156477:
   4616     ecx = MEM32(ebp + (-0xC)); /* 0x36156477: mov ecx, dword ptr [ebp - 0xc] */
   4617     edi = POP32_VAL(esp); /* 0x3615647A: pop edi */
   4618     eax = esi; /* 0x3615647B: mov eax, esi */
   4619     esi = POP32_VAL(esp); /* 0x3615647D: pop esi */
   4620     ebx = POP32_VAL(esp); /* 0x3615647E: pop ebx */
   4621     MEM32(FS_BASE + (0)) = ecx; /* 0x3615647F: mov dword ptr fs:[0], ecx */
   4622     esp = ebp; /* 0x36156486: mov esp, ebp */
   4623     ebp = POP32_VAL(esp); /* 0x36156488: pop ebp */
   4624     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x36156489: ret 0x1c */
   4625     RECOMP_REGS_OUT();
   4626 }
   4627 
   4628 void sub_36156490(void) {
   4629     int _fpu_cmp = 0;
   4630     uint32_t _cf = 0;
   4631     int _df = 1;
   4632     uint32_t _flag_k = FK_NONE;
   4633     uint32_t _flag_a = 0, _flag_b = 0;
   4634     uint32_t _itail_tgt = 0;
   4635     RECOMP_REGS_LOCALS
   4636     RECOMP_ENTER(0x36156490u);
   4637 
   4638 L_36156490:
   4639     PUSH32(esp, esi); /* 0x36156490: push esi */
   4640     esi = ecx; /* 0x36156491: mov esi, ecx */
   4641     MEM32(esi) = 0x36178CB0u; /* 0x36156493: mov dword ptr [esi], 0x36178cb0 */
   4642     eax = MEM32(esi + 0x30); /* 0x36156499: mov eax, dword ptr [esi + 0x30] */
   4643     /* test eax, eax */ /* 0x3615649C: test eax, eax */
   4644     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4645     _cf = 0;
   4646     _flag_k = FK_TEST;
   4647     if (TEST_Z(_flag_a, _flag_b)) goto L_361564BC; /* 0x3615649E: je 0x361564bc */
   4648 L_361564A0:
   4649     ecx = eax + (-0x1); /* 0x361564A0: lea ecx, [eax - 1] */
   4650     SET_LO8(eax, MEM8(ecx)); /* 0x361564A3: mov al, byte ptr [ecx] */
   4651     /* test LO8(eax), LO8(eax) */ /* 0x361564A5: test al, al */
   4652     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4653     _cf = 0;
   4654     _flag_k = FK_NARROW(FK_TEST, 24);
   4655     if (TEST_Z(_flag_a, _flag_b)) goto L_361564B3; /* 0x361564A7: je 0x361564b3 */
   4656 L_361564A9:
   4657     /* cmp LO8(eax), 0xFFu */ /* 0x361564A9: cmp al, 0xff */
   4658     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   4659     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4660     _flag_k = FK_NARROW(FK_CMP, 24);
   4661     if (CMP_EQ(_flag_a, _flag_b)) goto L_361564B3; /* 0x361564AB: je 0x361564b3 */
   4662 L_361564AD:
   4663     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4664     SET_LO8(eax, LO8(eax) - 1); /* 0x361564AD: dec al */
   4665     _flag_k = FK_NARROW(FK_DEC, 24);
   4666     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x361564AF: mov byte ptr [ecx], al */
   4667     goto L_361564BC; /* 0x361564B1: jmp 0x361564bc */
   4668 L_361564B3:
   4669     PUSH32(esp, ecx); /* 0x361564B3: push ecx */
   4670     RECOMP_ICALL(0x3615FCC4u); /* 0x361564B4: call 0x3615fcc4 */ /* not lifted */
   4671     RECOMP_FLAGS_IN();
   4672     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4673     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4674     esp = esp + 4; /* 0x361564B9: add esp, 4 */
   4675     _flag_k = FK_ADD;
   4676 L_361564BC:
   4677     ecx = esi; /* 0x361564BC: mov ecx, esi */
   4678     MEM32(esi + 0x30) = 0; /* 0x361564BE: mov dword ptr [esi + 0x30], 0 */
   4679     MEM32(esi + 0x34) = 0; /* 0x361564C5: mov dword ptr [esi + 0x34], 0 */
   4680     MEM32(esi + 0x38) = 0; /* 0x361564CC: mov dword ptr [esi + 0x38], 0 */
   4681     RECOMP_ICALL(0x36154D20u); /* 0x361564D3: call 0x36154d20 */ /* not lifted */
   4682     RECOMP_FLAGS_IN();
   4683     esi = POP32_VAL(esp); /* 0x361564D8: pop esi */
   4684     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361564D9: ret  */
   4685     RECOMP_REGS_OUT();
   4686 }
   4687 
   4688 void sub_361564E0(void) {
   4689     int _fpu_cmp = 0;
   4690     uint32_t _cf = 0;
   4691     int _df = 1;
   4692     uint32_t _flag_k = FK_NONE;
   4693     uint32_t _flag_a = 0, _flag_b = 0;
   4694     uint32_t _itail_tgt = 0;
   4695     RECOMP_REGS_LOCALS
   4696     RECOMP_ENTER(0x361564E0u);
   4697 
   4698 L_361564E0:
   4699     PUSH32(esp, ebp); /* 0x361564E0: push ebp */
   4700     ebp = esp; /* 0x361564E1: mov ebp, esp */
   4701     PUSH32(esp, 0xFFFFFFFFu); /* 0x361564E3: push -1 */
   4702     PUSH32(esp, 0x3616DC48u); /* 0x361564E5: push 0x3616dc48 */
   4703     eax = MEM32(FS_BASE + (0)); /* 0x361564EA: mov eax, dword ptr fs:[0] */
   4704     PUSH32(esp, eax); /* 0x361564F0: push eax */
   4705     MEM32(FS_BASE + (0)) = esp; /* 0x361564F1: mov dword ptr fs:[0], esp */
   4706     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u);
   4707     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4708     esp = esp - 0x48u; /* 0x361564F8: sub esp, 0x48 */
   4709     _flag_k = FK_CMP;
   4710     PUSH32(esp, ebx); /* 0x361564FB: push ebx */
   4711     PUSH32(esp, esi); /* 0x361564FC: push esi */
   4712     PUSH32(esp, edi); /* 0x361564FD: push edi */
   4713     esi = ecx; /* 0x361564FE: mov esi, ecx */
   4714     PUSH32(esp, 0xFFFFFFFFu); /* 0x36156500: push -1 */
   4715     ecx = ebp + (-0x54); /* 0x36156502: lea ecx, [ebp - 0x54] */
   4716     RECOMP_ICALL(MEM32(0x3616F358)); /* 0x36156505: call dword ptr [0x3616f358] */
   4717     RECOMP_FLAGS_IN();
   4718     eax = MEM32(esi + 0x28); /* 0x3615650B: mov eax, dword ptr [esi + 0x28] */
   4719     PUSH32(esp, eax); /* 0x3615650E: push eax */
   4720     PUSH32(esp, 0x362E877Cu); /* 0x3615650F: push 0x362e877c */
   4721     ecx = ebp + (-0x54); /* 0x36156514: lea ecx, [ebp - 0x54] */
   4722     MEM32(ebp + (-0x4)) = 0; /* 0x36156517: mov dword ptr [ebp - 4], 0 */
   4723     RECOMP_ICALL(MEM32(0x3616F354)); /* 0x3615651E: call dword ptr [0x3616f354] */
   4724     RECOMP_FLAGS_IN();
   4725     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu);
   4726     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4727     esi = esi + 0x2Cu; /* 0x36156524: add esi, 0x2c */
   4728     _flag_k = FK_ADD;
   4729     PUSH32(esp, esi); /* 0x36156527: push esi */
   4730     PUSH32(esp, 0x362E8664u); /* 0x36156528: push 0x362e8664 */
   4731     ecx = ebp + (-0x54); /* 0x3615652D: lea ecx, [ebp - 0x54] */
   4732     RECOMP_ICALL(MEM32(0x3616F350)); /* 0x36156530: call dword ptr [0x3616f350] */
   4733     RECOMP_FLAGS_IN();
   4734     ecx = ebp + (-0x54); /* 0x36156536: lea ecx, [ebp - 0x54] */
   4735     RECOMP_ICALL(MEM32(0x3616F348)); /* 0x36156539: call dword ptr [0x3616f348] */
   4736     RECOMP_FLAGS_IN();
   4737     esi = eax; /* 0x3615653F: mov esi, eax */
   4738     PUSH32(esp, esi); /* 0x36156541: push esi */
   4739     RECOMP_ICALL(0x3615FD6Au); /* 0x36156542: call 0x3615fd6a */ /* not lifted */
   4740     RECOMP_FLAGS_IN();
   4741     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4742     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4743     esp = esp + 4; /* 0x36156547: add esp, 4 */
   4744     _flag_k = FK_ADD;
   4745     edi = eax; /* 0x3615654A: mov edi, eax */
   4746     PUSH32(esp, edi); /* 0x3615654C: push edi */
   4747     ecx = ebp + (-0x54); /* 0x3615654D: lea ecx, [ebp - 0x54] */
   4748     RECOMP_ICALL(MEM32(0x3616F344)); /* 0x36156550: call dword ptr [0x3616f344] */
   4749     RECOMP_FLAGS_IN();
   4750     ebx = MEM32(0x3616F304); /* 0x36156556: mov ebx, dword ptr [0x3616f304] */
   4751     PUSH32(esp, esi); /* 0x3615655C: push esi */
   4752     PUSH32(esp, edi); /* 0x3615655D: push edi */
   4753     PUSH32(esp, 0xD3u); /* 0x3615655E: push 0xd3 */
   4754     PUSH32(esp, 0x25u); /* 0x36156563: push 0x25 */
   4755     RECOMP_ICALL(ebx); /* 0x36156565: call ebx */
   4756     RECOMP_FLAGS_IN();
   4757     ecx = eax; /* 0x36156567: mov ecx, eax */
   4758     RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36156569: call dword ptr [0x3616f310] */
   4759     RECOMP_FLAGS_IN();
   4760     PUSH32(esp, esi); /* 0x3615656F: push esi */
   4761     RECOMP_ICALL(ebx); /* 0x36156570: call ebx */
   4762     RECOMP_FLAGS_IN();
   4763     ecx = eax; /* 0x36156572: mov ecx, eax */
   4764     RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36156574: call dword ptr [0x3616f2fc] */
   4765     RECOMP_FLAGS_IN();
   4766     PUSH32(esp, edi); /* 0x3615657A: push edi */
   4767     RECOMP_ICALL(0x3615FCC4u); /* 0x3615657B: call 0x3615fcc4 */ /* not lifted */
   4768     RECOMP_FLAGS_IN();
   4769     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4770     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4771     esp = esp + 4; /* 0x36156580: add esp, 4 */
   4772     _flag_k = FK_ADD;
   4773     MEM32(ebp + (-0x54)) = 0x36178B8Cu; /* 0x36156583: mov dword ptr [ebp - 0x54], 0x36178b8c */
   4774     ecx = ebp + (-0x54); /* 0x3615658A: lea ecx, [ebp - 0x54] */
   4775     MEM32(ebp + (-0x4)) = 2; /* 0x3615658D: mov dword ptr [ebp - 4], 2 */
   4776     RECOMP_ICALL(MEM32(0x3616F34C)); /* 0x36156594: call dword ptr [0x3616f34c] */
   4777     RECOMP_FLAGS_IN();
   4778     ecx = MEM32(ebp + (-0x20)); /* 0x3615659A: mov ecx, dword ptr [ebp - 0x20] */
   4779     PUSH32(esp, ecx); /* 0x3615659D: push ecx */
   4780     RECOMP_ICALL(0x3615FCC4u); /* 0x3615659E: call 0x3615fcc4 */ /* not lifted */
   4781     RECOMP_FLAGS_IN();
   4782     eax = MEM32(ebp + (-0x4C)); /* 0x361565A3: mov eax, dword ptr [ebp - 0x4c] */
   4783     edx = MEM32(ebp + (-0x40)); /* 0x361565A6: mov edx, dword ptr [ebp - 0x40] */
   4784     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4785     ebx = 0; /* 0x361565A9: xor ebx, ebx */
   4786     _cf = 0;
   4787     _flag_k = FK_TEST;
   4788     MEM32(ebp + (-0x20)) = ebx; /* 0x361565AB: mov dword ptr [ebp - 0x20], ebx */
   4789     MEM32(ebp + (-0x1C)) = ebx; /* 0x361565AE: mov dword ptr [ebp - 0x1c], ebx */
   4790     MEM32(ebp + (-0x18)) = ebx; /* 0x361565B1: mov dword ptr [ebp - 0x18], ebx */
   4791     ecx = MEM32(eax); /* 0x361565B4: mov ecx, dword ptr [eax] */
   4792     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4793     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4794     esp = esp + 4; /* 0x361565B6: add esp, 4 */
   4795     _flag_k = FK_ADD;
   4796     /* cmp edx, ebx */ /* 0x361565B9: cmp edx, ebx */
   4797     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   4798     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4799     _flag_k = FK_CMP;
   4800     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361565BB: mov dword ptr [ebp - 4], 0xffffffff */
   4801     esi = eax; /* 0x361565C2: mov esi, eax */
   4802     MEM32(ebp + (-0x10)) = ecx; /* 0x361565C4: mov dword ptr [ebp - 0x10], ecx */
   4803     if (CMP_EQ(_flag_a, _flag_b)) goto L_361565F4; /* 0x361565C7: je 0x361565f4 */
   4804 L_361565C9:
   4805     edx = ecx; /* 0x361565C9: mov edx, ecx */
   4806     /* cmp ecx, edx */ /* 0x361565CB: cmp ecx, edx */
   4807     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4809     _flag_k = FK_CMP;
   4810     if (CMP_NE(_flag_a, _flag_b)) goto L_361565F4; /* 0x361565CD: jne 0x361565f4 */
   4811 L_361565CF:
   4812     edx = MEM32(eax + 0x4); /* 0x361565CF: mov edx, dword ptr [eax + 4] */
   4813     PUSH32(esp, edx); /* 0x361565D2: push edx */
   4814     ecx = ebp + (-0x50); /* 0x361565D3: lea ecx, [ebp - 0x50] */
   4815     RECOMP_ICALL(0x361547A0u); /* 0x361565D6: call 0x361547a0 */ /* not lifted */
   4816     RECOMP_FLAGS_IN();
   4817     eax = MEM32(ebp + (-0x4C)); /* 0x361565DB: mov eax, dword ptr [ebp - 0x4c] */
   4818     ecx = MEM32(ebp + (-0x48)); /* 0x361565DE: mov ecx, dword ptr [ebp - 0x48] */
   4819     MEM32(eax + 0x4) = ecx; /* 0x361565E1: mov dword ptr [eax + 4], ecx */
   4820     eax = MEM32(ebp + (-0x4C)); /* 0x361565E4: mov eax, dword ptr [ebp - 0x4c] */
   4821     MEM32(ebp + (-0x40)) = ebx; /* 0x361565E7: mov dword ptr [ebp - 0x40], ebx */
   4822     MEM32(eax) = eax; /* 0x361565EA: mov dword ptr [eax], eax */
   4823     eax = MEM32(ebp + (-0x4C)); /* 0x361565EC: mov eax, dword ptr [ebp - 0x4c] */
   4824     MEM32(eax + 0x8) = eax; /* 0x361565EF: mov dword ptr [eax + 8], eax */
   4825     goto L_36156616; /* 0x361565F2: jmp 0x36156616 */
   4826 L_361565F4:
   4827     /* cmp ecx, eax */ /* 0x361565F4: cmp ecx, eax */
   4828     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4830     _flag_k = FK_CMP;
   4831     if (CMP_EQ(_flag_a, _flag_b)) goto L_36156619; /* 0x361565F6: je 0x36156619 */
   4832 L_361565F8:
   4833     edi = ecx; /* 0x361565F8: mov edi, ecx */
   4834     ecx = ebp + (-0x10); /* 0x361565FA: lea ecx, [ebp - 0x10] */
   4835     RECOMP_ICALL(0x361547F0u); /* 0x361565FD: call 0x361547f0 */ /* not lifted */
   4836     RECOMP_FLAGS_IN();
   4837     PUSH32(esp, edi); /* 0x36156602: push edi */
   4838     edx = ebp + (-0x14); /* 0x36156603: lea edx, [ebp - 0x14] */
   4839     PUSH32(esp, edx); /* 0x36156606: push edx */
   4840     ecx = ebp + (-0x50); /* 0x36156607: lea ecx, [ebp - 0x50] */
   4841     RECOMP_ICALL(0x361543D0u); /* 0x3615660A: call 0x361543d0 */ /* not lifted */
   4842     RECOMP_FLAGS_IN();
   4843     ecx = MEM32(ebp + (-0x10)); /* 0x3615660F: mov ecx, dword ptr [ebp - 0x10] */
   4844     /* cmp ecx, esi */ /* 0x36156612: cmp ecx, esi */
   4845     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   4846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4847     _flag_k = FK_CMP;
   4848     RECOMP_BACKEDGE();
   4849     if (CMP_NE(_flag_a, _flag_b)) goto L_361565F8; /* 0x36156614: jne 0x361565f8 */
   4850 L_36156616:
   4851     eax = MEM32(ebp + (-0x4C)); /* 0x36156616: mov eax, dword ptr [ebp - 0x4c] */
   4852 L_36156619:
   4853     PUSH32(esp, eax); /* 0x36156619: push eax */
   4854     RECOMP_ICALL(0x3615FCC4u); /* 0x3615661A: call 0x3615fcc4 */ /* not lifted */
   4855     RECOMP_FLAGS_IN();
   4856     eax = MEM32(ebp + (-0x48)); /* 0x3615661F: mov eax, dword ptr [ebp - 0x48] */
   4857     PUSH32(esp, eax); /* 0x36156622: push eax */
   4858     MEM32(ebp + (-0x4C)) = ebx; /* 0x36156623: mov dword ptr [ebp - 0x4c], ebx */
   4859     MEM32(ebp + (-0x40)) = ebx; /* 0x36156626: mov dword ptr [ebp - 0x40], ebx */
   4860     RECOMP_ICALL(0x3615FCC4u); /* 0x36156629: call 0x3615fcc4 */ /* not lifted */
   4861     RECOMP_FLAGS_IN();
   4862     ecx = MEM32(ebp + (-0xC)); /* 0x3615662E: mov ecx, dword ptr [ebp - 0xc] */
   4863     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4864     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4865     esp = esp + 8; /* 0x36156631: add esp, 8 */
   4866     _flag_k = FK_ADD;
   4867     edi = POP32_VAL(esp); /* 0x36156634: pop edi */
   4868     esi = POP32_VAL(esp); /* 0x36156635: pop esi */
   4869     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4870     eax = 0; /* 0x36156636: xor eax, eax */
   4871     _cf = 0;
   4872     _flag_k = FK_TEST;
   4873     ebx = POP32_VAL(esp); /* 0x36156638: pop ebx */
   4874     MEM32(FS_BASE + (0)) = ecx; /* 0x36156639: mov dword ptr fs:[0], ecx */
   4875     esp = ebp; /* 0x36156640: mov esp, ebp */
   4876     ebp = POP32_VAL(esp); /* 0x36156642: pop ebp */
   4877     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156643: ret  */
   4878     RECOMP_REGS_OUT();
   4879 }
   4880 
   4881 void sub_36156650(void) {
   4882     int _fpu_cmp = 0;
   4883     uint32_t _cf = 0;
   4884     int _df = 1;
   4885     uint32_t _flag_k = FK_NONE;
   4886     uint32_t _flag_a = 0, _flag_b = 0;
   4887     uint32_t _itail_tgt = 0;
   4888     RECOMP_REGS_LOCALS
   4889     RECOMP_ENTER(0x36156650u);
   4890 
   4891 L_36156650:
   4892     PUSH32(esp, ebp); /* 0x36156650: push ebp */
   4893     ebp = esp; /* 0x36156651: mov ebp, esp */
   4894     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4896     esp = esp - 0xCu; /* 0x36156653: sub esp, 0xc */
   4897     _flag_k = FK_CMP;
   4898     PUSH32(esp, ebx); /* 0x36156656: push ebx */
   4899     PUSH32(esp, esi); /* 0x36156657: push esi */
   4900     PUSH32(esp, edi); /* 0x36156658: push edi */
   4901     edi = MEM32(ebp + 0x8); /* 0x36156659: mov edi, dword ptr [ebp + 8] */
   4902     ebx = ecx; /* 0x3615665C: mov ebx, ecx */
   4903     PUSH32(esp, edi); /* 0x3615665E: push edi */
   4904     RECOMP_ICALL(0x36154D50u); /* 0x3615665F: call 0x36154d50 */ /* not lifted */
   4905     RECOMP_FLAGS_IN();
   4906     /* test eax, eax */ /* 0x36156664: test eax, eax */
   4907     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4908     _cf = 0;
   4909     _flag_k = FK_TEST;
   4910     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615678F; /* 0x36156666: jne 0x3615678f */
   4911 L_3615666C:
   4912     esi = MEM32(0x3616FA8C); /* 0x3615666C: mov esi, dword ptr [0x3616fa8c] */
   4913     eax = ebx + 0x28; /* 0x36156672: lea eax, [ebx + 0x28] */
   4914     PUSH32(esp, eax); /* 0x36156675: push eax */
   4915     ecx = edi; /* 0x36156676: mov ecx, edi */
   4916     MEM32(eax) = 0; /* 0x36156678: mov dword ptr [eax], 0 */
   4917     RECOMP_ICALL(esi); /* 0x3615667E: call esi */
   4918     RECOMP_FLAGS_IN();
   4919     eax = ebp + (-0x4); /* 0x36156680: lea eax, [ebp - 4] */
   4920     PUSH32(esp, eax); /* 0x36156683: push eax */
   4921     ecx = edi; /* 0x36156684: mov ecx, edi */
   4922     MEM32(ebp + (-0x4)) = 0; /* 0x36156686: mov dword ptr [ebp - 4], 0 */
   4923     RECOMP_ICALL(esi); /* 0x3615668D: call esi */
   4924     RECOMP_FLAGS_IN();
   4925     eax = MEM32(ebp + (-0x4)); /* 0x3615668F: mov eax, dword ptr [ebp - 4] */
   4926     /* test eax, eax */ /* 0x36156692: test eax, eax */
   4927     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4928     _cf = 0;
   4929     _flag_k = FK_TEST;
   4930     if (TEST_G(_flag_a, _flag_b)) goto L_361566A4; /* 0x36156694: jg 0x361566a4 */
   4931 L_36156696:
   4932     edi = POP32_VAL(esp); /* 0x36156696: pop edi */
   4933     esi = POP32_VAL(esp); /* 0x36156697: pop esi */
   4934     eax = 1; /* 0x36156698: mov eax, 1 */
   4935     ebx = POP32_VAL(esp); /* 0x3615669D: pop ebx */
   4936     esp = ebp; /* 0x3615669E: mov esp, ebp */
   4937     ebp = POP32_VAL(esp); /* 0x361566A0: pop ebp */
   4938     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361566A1: ret 4 */
   4939 L_361566A4:
   4940     /* cmp eax, 0x2710u */ /* 0x361566A4: cmp eax, 0x2710 */
   4941     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2710u);
   4942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4943     _flag_k = FK_CMP;
   4944     if (CMP_LE(_flag_a, _flag_b)) goto L_361566B9; /* 0x361566A9: jle 0x361566b9 */
   4945 L_361566AB:
   4946     edi = POP32_VAL(esp); /* 0x361566AB: pop edi */
   4947     esi = POP32_VAL(esp); /* 0x361566AC: pop esi */
   4948     eax = 1; /* 0x361566AD: mov eax, 1 */
   4949     ebx = POP32_VAL(esp); /* 0x361566B2: pop ebx */
   4950     esp = ebp; /* 0x361566B3: mov esp, ebp */
   4951     ebp = POP32_VAL(esp); /* 0x361566B5: pop ebp */
   4952     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361566B6: ret 4 */
   4953 L_361566B9:
   4954     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4955     eax = eax + 1; /* 0x361566B9: inc eax */
   4956     _flag_k = FK_INC;
   4957     PUSH32(esp, eax); /* 0x361566BA: push eax */
   4958     RECOMP_ICALL(0x3615FD6Au); /* 0x361566BB: call 0x3615fd6a */ /* not lifted */
   4959     RECOMP_FLAGS_IN();
   4960     ecx = MEM32(ebp + (-0x4)); /* 0x361566C0: mov ecx, dword ptr [ebp - 4] */
   4961     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4962     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4963     esp = esp + 4; /* 0x361566C3: add esp, 4 */
   4964     _flag_k = FK_ADD;
   4965     esi = eax; /* 0x361566C6: mov esi, eax */
   4966     PUSH32(esp, ecx); /* 0x361566C8: push ecx */
   4967     PUSH32(esp, esi); /* 0x361566C9: push esi */
   4968     ecx = edi; /* 0x361566CA: mov ecx, edi */
   4969     MEM32(ebp + (-0xC)) = esi; /* 0x361566CC: mov dword ptr [ebp - 0xc], esi */
   4970     RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x361566CF: call dword ptr [0x3616fac4] */
   4971     RECOMP_FLAGS_IN();
   4972     edx = MEM32(ebp + (-0x4)); /* 0x361566D5: mov edx, dword ptr [ebp - 4] */
   4973     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4974     ecx = ecx | 0xFFFFFFFFu; /* 0x361566D8: or ecx, 0xffffffff */
   4975     _cf = 0;
   4976     _flag_k = FK_TEST;
   4977     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4978     eax = 0; /* 0x361566DB: xor eax, eax */
   4979     _cf = 0;
   4980     _flag_k = FK_TEST;
   4981     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x2Cu);
   4982     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4983     ebx = ebx + 0x2Cu; /* 0x361566DD: add ebx, 0x2c */
   4984     _flag_k = FK_ADD;
   4985     edi = esi; /* 0x361566E0: mov edi, esi */
   4986     MEM8(esi + edx) = (uint8_t)(0); /* 0x361566E2: mov byte ptr [esi + edx], 0 */
   4987     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; } /* 0x361566E6: repne scasb al, byte ptr es:[edi] */
   4988     ecx = ~ecx; /* 0x361566E8: not ecx */
   4989     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4990     ecx = ecx - 1; /* 0x361566EA: dec ecx */
   4991     _flag_k = FK_DEC;
   4992     edi = ecx; /* 0x361566EB: mov edi, ecx */
   4993     /* cmp edi, 0xFFFFFFFDu */ /* 0x361566ED: cmp edi, -3 */
   4994     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFDu);
   4995     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4996     _flag_k = FK_CMP;
   4997     MEM32(ebp + (-0x8)) = edi; /* 0x361566F0: mov dword ptr [ebp - 8], edi */
   4998     if (CMP_BE(_flag_a, _flag_b)) goto L_361566FB; /* 0x361566F3: jbe 0x361566fb */
   4999 L_361566F5:
   5000     RECOMP_ICALL(MEM32(0x3616F104)); /* 0x361566F5: call dword ptr [0x3616f104] */
   5001     RECOMP_FLAGS_IN();
   5002 L_361566FB:
   5003     ecx = MEM32(ebx + 0x4); /* 0x361566FB: mov ecx, dword ptr [ebx + 4] */
   5004     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5005     edx = 0; /* 0x361566FE: xor edx, edx */
   5006     _cf = 0;
   5007     _flag_k = FK_TEST;
   5008     /* cmp ecx, edx */ /* 0x36156700: cmp ecx, edx */
   5009     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5010     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5011     _flag_k = FK_CMP;
   5012     MEM32(ebx + 0x8) = edx; /* 0x36156702: mov dword ptr [ebx + 8], edx */
   5013     if (CMP_EQ(_flag_a, _flag_b)) goto L_36156726; /* 0x36156705: je 0x36156726 */
   5014 L_36156707:
   5015     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x36156707: mov al, byte ptr [ecx - 1] */
   5016     /* test LO8(eax), LO8(eax) */ /* 0x3615670A: test al, al */
   5017     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5018     _cf = 0;
   5019     _flag_k = FK_NARROW(FK_TEST, 24);
   5020     if (TEST_Z(_flag_a, _flag_b)) goto L_36156726; /* 0x3615670C: je 0x36156726 */
   5021 L_3615670E:
   5022     /* cmp LO8(eax), 0xFFu */ /* 0x3615670E: cmp al, 0xff */
   5023     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   5024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5025     _flag_k = FK_NARROW(FK_CMP, 24);
   5026     if (CMP_EQ(_flag_a, _flag_b)) goto L_36156726; /* 0x36156710: je 0x36156726 */
   5027 L_36156712:
   5028     /* cmp edi, edx */ /* 0x36156712: cmp edi, edx */
   5029     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5031     _flag_k = FK_CMP;
   5032     if (CMP_NE(_flag_a, _flag_b)) goto L_3615674C; /* 0x36156714: jne 0x3615674c */
   5033 L_36156716:
   5034     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5035     SET_LO8(eax, LO8(eax) - 1); /* 0x36156716: dec al */
   5036     _flag_k = FK_NARROW(FK_DEC, 24);
   5037     MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x36156718: mov byte ptr [ecx - 1], al */
   5038     MEM32(ebx + 0x4) = edx; /* 0x3615671B: mov dword ptr [ebx + 4], edx */
   5039     MEM32(ebx + 0x8) = edx; /* 0x3615671E: mov dword ptr [ebx + 8], edx */
   5040     MEM32(ebx + 0xC) = edx; /* 0x36156721: mov dword ptr [ebx + 0xc], edx */
   5041     goto L_36156778; /* 0x36156724: jmp 0x36156778 */
   5042 L_36156726:
   5043     /* cmp edi, edx */ /* 0x36156726: cmp edi, edx */
   5044     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5046     _flag_k = FK_CMP;
   5047     if (CMP_NE(_flag_a, _flag_b)) goto L_36156736; /* 0x36156728: jne 0x36156736 */
   5048 L_3615672A:
   5049     PUSH32(esp, 1); /* 0x3615672A: push 1 */
   5050     ecx = ebx; /* 0x3615672C: mov ecx, ebx */
   5051     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3615672E: call dword ptr [0x3616f100] */
   5052     RECOMP_FLAGS_IN();
   5053     goto L_36156778; /* 0x36156734: jmp 0x36156778 */
   5054 L_36156736:
   5055     eax = MEM32(ebx + 0xC); /* 0x36156736: mov eax, dword ptr [ebx + 0xc] */
   5056     /* cmp eax, 0x1Fu */ /* 0x36156739: cmp eax, 0x1f */
   5057     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu);
   5058     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5059     _flag_k = FK_CMP;
   5060     if (CMP_A(_flag_a, _flag_b)) goto L_36156742; /* 0x3615673C: ja 0x36156742 */
   5061 L_3615673E:
   5062     /* cmp eax, edi */ /* 0x3615673E: cmp eax, edi */
   5063     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5065     _flag_k = FK_CMP;
   5066     if (CMP_AE(_flag_a, _flag_b)) goto L_36156755; /* 0x36156740: jae 0x36156755 */
   5067 L_36156742:
   5068     PUSH32(esp, 1); /* 0x36156742: push 1 */
   5069     ecx = ebx; /* 0x36156744: mov ecx, ebx */
   5070     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36156746: call dword ptr [0x3616f100] */
   5071     RECOMP_FLAGS_IN();
   5072 L_3615674C:
   5073     PUSH32(esp, edi); /* 0x3615674C: push edi */
   5074     ecx = ebx; /* 0x3615674D: mov ecx, ebx */
   5075     RECOMP_ICALL(MEM32(0x3616F048)); /* 0x3615674F: call dword ptr [0x3616f048] */
   5076     RECOMP_FLAGS_IN();
   5077 L_36156755:
   5078     ecx = edi; /* 0x36156755: mov ecx, edi */
   5079     edi = MEM32(ebx + 0x4); /* 0x36156757: mov edi, dword ptr [ebx + 4] */
   5080     eax = ecx; /* 0x3615675A: mov eax, ecx */
   5081     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615675C: shr ecx, 2 */
   5082     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5083     ecx = ecx >> 2u; /* 0x3615675C: shr ecx, 2 */
   5084     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3615675F: 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; }
   5085     ecx = eax; /* 0x36156761: mov ecx, eax */
   5086     eax = MEM32(ebp + (-0x8)); /* 0x36156763: mov eax, dword ptr [ebp - 8] */
   5087     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5088     ecx = ecx & 3; /* 0x36156766: and ecx, 3 */
   5089     _cf = 0;
   5090     _flag_k = FK_TEST;
   5091     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36156769: 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; }
   5092     ecx = MEM32(ebx + 0x4); /* 0x3615676B: mov ecx, dword ptr [ebx + 4] */
   5093     esi = MEM32(ebp + (-0xC)); /* 0x3615676E: mov esi, dword ptr [ebp - 0xc] */
   5094     MEM32(ebx + 0x8) = eax; /* 0x36156771: mov dword ptr [ebx + 8], eax */
   5095     MEM8(eax + ecx) = (uint8_t)(0); /* 0x36156774: mov byte ptr [eax + ecx], 0 */
   5096 L_36156778:
   5097     PUSH32(esp, esi); /* 0x36156778: push esi */
   5098     RECOMP_ICALL(0x3615FCC4u); /* 0x36156779: call 0x3615fcc4 */ /* not lifted */
   5099     RECOMP_FLAGS_IN();
   5100     ecx = MEM32(ebp + 0x8); /* 0x3615677E: mov ecx, dword ptr [ebp + 8] */
   5101     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5102     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5103     esp = esp + 4; /* 0x36156781: add esp, 4 */
   5104     _flag_k = FK_ADD;
   5105     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36156784: call dword ptr [0x3616fadc] */
   5106     RECOMP_FLAGS_IN();
   5107     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5108     _cf = (eax) != 0;
   5109     eax = (uint32_t)(-(int32_t)eax); /* 0x3615678A: neg eax */
   5110     _flag_k = FK_CMP;
   5111     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3615678C: sbb eax, eax */
   5112       eax = _sc ? 0xFFFFFFFFu : 0;
   5113       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5114       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5115     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5116     eax = eax + 1; /* 0x3615678E: inc eax */
   5117     _flag_k = FK_INC;
   5118 L_3615678F:
   5119     edi = POP32_VAL(esp); /* 0x3615678F: pop edi */
   5120     esi = POP32_VAL(esp); /* 0x36156790: pop esi */
   5121     ebx = POP32_VAL(esp); /* 0x36156791: pop ebx */
   5122     esp = ebp; /* 0x36156792: mov esp, ebp */
   5123     ebp = POP32_VAL(esp); /* 0x36156794: pop ebp */
   5124     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36156795: ret 4 */
   5125     RECOMP_REGS_OUT();
   5126 }
   5127 
   5128 void sub_361567A0(void) {
   5129     int _fpu_cmp = 0;
   5130     uint32_t _cf = 0;
   5131     int _df = 1;
   5132     uint32_t _flag_k = FK_NONE;
   5133     uint32_t _flag_a = 0, _flag_b = 0;
   5134     uint32_t _itail_tgt = 0;
   5135     RECOMP_REGS_LOCALS
   5136     RECOMP_ENTER(0x361567A0u);
   5137 
   5138 L_361567A0:
   5139     PUSH32(esp, ebp); /* 0x361567A0: push ebp */
   5140     ebp = esp; /* 0x361567A1: mov ebp, esp */
   5141     PUSH32(esp, ebx); /* 0x361567A3: push ebx */
   5142     PUSH32(esp, esi); /* 0x361567A4: push esi */
   5143     PUSH32(esp, edi); /* 0x361567A5: push edi */
   5144     edi = MEM32(ebp + 0x8); /* 0x361567A6: mov edi, dword ptr [ebp + 8] */
   5145     esi = ecx; /* 0x361567A9: mov esi, ecx */
   5146     PUSH32(esp, edi); /* 0x361567AB: push edi */
   5147     RECOMP_ICALL(0x36154DB0u); /* 0x361567AC: call 0x36154db0 */ /* not lifted */
   5148     RECOMP_FLAGS_IN();
   5149     eax = MEM32(esi + 0x28); /* 0x361567B1: mov eax, dword ptr [esi + 0x28] */
   5150     PUSH32(esp, eax); /* 0x361567B4: push eax */
   5151     ecx = edi; /* 0x361567B5: mov ecx, edi */
   5152     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x361567B7: call dword ptr [0x3616faec] */
   5153     RECOMP_FLAGS_IN();
   5154     ebx = MEM32(esi + 0x34); /* 0x361567BD: mov ebx, dword ptr [esi + 0x34] */
   5155     /* cmp ebx, 0x2710u */ /* 0x361567C0: cmp ebx, 0x2710 */
   5156     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x2710u);
   5157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5158     _flag_k = FK_CMP;
   5159     if (CMP_G(_flag_a, _flag_b)) goto L_361567E8; /* 0x361567C6: jg 0x361567e8 */
   5160 L_361567C8:
   5161     PUSH32(esp, ebx); /* 0x361567C8: push ebx */
   5162     ecx = edi; /* 0x361567C9: mov ecx, edi */
   5163     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x361567CB: call dword ptr [0x3616faec] */
   5164     RECOMP_FLAGS_IN();
   5165     esi = MEM32(esi + 0x30); /* 0x361567D1: mov esi, dword ptr [esi + 0x30] */
   5166     /* test esi, esi */ /* 0x361567D4: test esi, esi */
   5167     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5168     _cf = 0;
   5169     _flag_k = FK_TEST;
   5170     if (TEST_NZ(_flag_a, _flag_b)) goto L_361567DE; /* 0x361567D6: jne 0x361567de */
   5171 L_361567D8:
   5172     esi = MEM32(0x3616F10C); /* 0x361567D8: mov esi, dword ptr [0x3616f10c] */
   5173 L_361567DE:
   5174     PUSH32(esp, ebx); /* 0x361567DE: push ebx */
   5175     PUSH32(esp, esi); /* 0x361567DF: push esi */
   5176     ecx = edi; /* 0x361567E0: mov ecx, edi */
   5177     RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x361567E2: call dword ptr [0x3616fab0] */
   5178     RECOMP_FLAGS_IN();
   5179 L_361567E8:
   5180     edi = POP32_VAL(esp); /* 0x361567E8: pop edi */
   5181     esi = POP32_VAL(esp); /* 0x361567E9: pop esi */
   5182     ebx = POP32_VAL(esp); /* 0x361567EA: pop ebx */
   5183     ebp = POP32_VAL(esp); /* 0x361567EB: pop ebp */
   5184     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361567EC: ret 4 */
   5185     RECOMP_REGS_OUT();
   5186 }
   5187 
   5188 void sub_361567F0(void) {
   5189     int _fpu_cmp = 0;
   5190     uint32_t _cf = 0;
   5191     int _df = 1;
   5192     uint32_t _flag_k = FK_NONE;
   5193     uint32_t _flag_a = 0, _flag_b = 0;
   5194     uint32_t _itail_tgt = 0;
   5195     RECOMP_REGS_LOCALS
   5196     RECOMP_ENTER(0x361567F0u);
   5197 
   5198 L_361567F0:
   5199     goto L_36156800; /* 0x361567F0: jmp 0x36156800 */
   5200 L_36156800:
   5201     MEM8(0x3630DB30) = (uint8_t)(1); /* 0x36156800: mov byte ptr [0x3630db30], 1 */
   5202     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156807: ret  */
   5203     RECOMP_REGS_OUT();
   5204 }
   5205 
   5206 void sub_36156800(void) {
   5207     int _fpu_cmp = 0;
   5208     uint32_t _cf = 0;
   5209     int _df = 1;
   5210     uint32_t _flag_k = FK_NONE;
   5211     uint32_t _flag_a = 0, _flag_b = 0;
   5212     uint32_t _itail_tgt = 0;
   5213     RECOMP_REGS_LOCALS
   5214     RECOMP_ENTER(0x36156800u);
   5215 
   5216 L_36156800:
   5217     MEM8(0x3630DB30) = (uint8_t)(1); /* 0x36156800: mov byte ptr [0x3630db30], 1 */
   5218     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156807: ret  */
   5219     RECOMP_REGS_OUT();
   5220 }
   5221 
   5222 void sub_36156810(void) {
   5223     int _fpu_cmp = 0;
   5224     uint32_t _cf = 0;
   5225     int _df = 1;
   5226     uint32_t _flag_k = FK_NONE;
   5227     uint32_t _flag_a = 0, _flag_b = 0;
   5228     uint32_t _itail_tgt = 0;
   5229     RECOMP_REGS_LOCALS
   5230     RECOMP_ENTER(0x36156810u);
   5231 
   5232 L_36156810:
   5233     PUSH32(esp, esi); /* 0x36156810: push esi */
   5234     esi = ecx; /* 0x36156811: mov esi, ecx */
   5235     RECOMP_ICALL(0x36154D30u); /* 0x36156813: call 0x36154d30 */ /* not lifted */
   5236     RECOMP_FLAGS_IN();
   5237     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5238     eax = 0; /* 0x36156818: xor eax, eax */
   5239     _cf = 0;
   5240     _flag_k = FK_TEST;
   5241     MEM32(esi + 0x2C) = eax; /* 0x3615681A: mov dword ptr [esi + 0x2c], eax */
   5242     MEM32(esi + 0x30) = eax; /* 0x3615681D: mov dword ptr [esi + 0x30], eax */
   5243     MEM32(esi + 0x34) = eax; /* 0x36156820: mov dword ptr [esi + 0x34], eax */
   5244     MEM32(esi + 0x38) = eax; /* 0x36156823: mov dword ptr [esi + 0x38], eax */
   5245     MEM32(esi) = 0x36178CD4u; /* 0x36156826: mov dword ptr [esi], 0x36178cd4 */
   5246     eax = esi; /* 0x3615682C: mov eax, esi */
   5247     esi = POP32_VAL(esp); /* 0x3615682E: pop esi */
   5248     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615682F: ret  */
   5249     RECOMP_REGS_OUT();
   5250 }
   5251 
   5252 void sub_36156830(void) {
   5253     int _fpu_cmp = 0;
   5254     uint32_t _cf = 0;
   5255     int _df = 1;
   5256     uint32_t _flag_k = FK_NONE;
   5257     uint32_t _flag_a = 0, _flag_b = 0;
   5258     uint32_t _itail_tgt = 0;
   5259     RECOMP_REGS_LOCALS
   5260     RECOMP_ENTER(0x36156830u);
   5261 
   5262 L_36156830:
   5263     PUSH32(esp, ebp); /* 0x36156830: push ebp */
   5264     ebp = esp; /* 0x36156831: mov ebp, esp */
   5265     PUSH32(esp, esi); /* 0x36156833: push esi */
   5266     esi = ecx; /* 0x36156834: mov esi, ecx */
   5267     RECOMP_ICALL(0x36156960u); /* 0x36156836: call 0x36156960 */ /* not lifted */
   5268     RECOMP_FLAGS_IN();
   5269     /* test MEM8(ebp + 0x8), 1 */ /* 0x3615683B: test byte ptr [ebp + 8], 1 */
   5270     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5271     _cf = 0;
   5272     _flag_k = FK_NARROW(FK_TEST, 24);
   5273     if (TEST_Z(_flag_a, _flag_b)) goto L_3615684A; /* 0x3615683F: je 0x3615684a */
   5274 L_36156841:
   5275     PUSH32(esp, esi); /* 0x36156841: push esi */
   5276     RECOMP_ICALL(0x3615FCC4u); /* 0x36156842: call 0x3615fcc4 */ /* not lifted */
   5277     RECOMP_FLAGS_IN();
   5278     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5279     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5280     esp = esp + 4; /* 0x36156847: add esp, 4 */
   5281     _flag_k = FK_ADD;
   5282 L_3615684A:
   5283     eax = esi; /* 0x3615684A: mov eax, esi */
   5284     esi = POP32_VAL(esp); /* 0x3615684C: pop esi */
   5285     ebp = POP32_VAL(esp); /* 0x3615684D: pop ebp */
   5286     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615684E: ret 4 */
   5287     RECOMP_REGS_OUT();
   5288 }
   5289 
   5290 void sub_36156860(void) {
   5291     int _fpu_cmp = 0;
   5292     uint32_t _cf = 0;
   5293     int _df = 1;
   5294     uint32_t _flag_k = FK_NONE;
   5295     uint32_t _flag_a = 0, _flag_b = 0;
   5296     uint32_t _itail_tgt = 0;
   5297     RECOMP_REGS_LOCALS
   5298     RECOMP_ENTER(0x36156860u);
   5299 
   5300 L_36156860:
   5301     PUSH32(esp, ebp); /* 0x36156860: push ebp */
   5302     ebp = esp; /* 0x36156861: mov ebp, esp */
   5303     PUSH32(esp, 0xFFFFFFFFu); /* 0x36156863: push -1 */
   5304     PUSH32(esp, 0x3616DC69u); /* 0x36156865: push 0x3616dc69 */
   5305     eax = MEM32(FS_BASE + (0)); /* 0x3615686A: mov eax, dword ptr fs:[0] */
   5306     PUSH32(esp, eax); /* 0x36156870: push eax */
   5307     MEM32(FS_BASE + (0)) = esp; /* 0x36156871: mov dword ptr fs:[0], esp */
   5308     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5310     esp = esp - 0x14u; /* 0x36156878: sub esp, 0x14 */
   5311     _flag_k = FK_CMP;
   5312     SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x3615687B: mov al, byte ptr [ebp + 0xf] */
   5313     PUSH32(esp, ebx); /* 0x3615687E: push ebx */
   5314     PUSH32(esp, esi); /* 0x3615687F: push esi */
   5315     ebx = ecx; /* 0x36156880: mov ebx, ecx */
   5316     PUSH32(esp, edi); /* 0x36156882: push edi */
   5317     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5318     ecx = ecx | 0xFFFFFFFFu; /* 0x36156883: or ecx, 0xffffffff */
   5319     _cf = 0;
   5320     _flag_k = FK_TEST;
   5321     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5322     esi = 0; /* 0x36156886: xor esi, esi */
   5323     _cf = 0;
   5324     _flag_k = FK_TEST;
   5325     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36156888: mov byte ptr [ebp - 0x20], al */
   5326     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5327     eax = 0; /* 0x3615688B: xor eax, eax */
   5328     _cf = 0;
   5329     _flag_k = FK_TEST;
   5330     edi = 0x361B3FECu; /* 0x3615688D: mov edi, 0x361b3fec */
   5331     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; } /* 0x36156892: repne scasb al, byte ptr es:[edi] */
   5332     ecx = ~ecx; /* 0x36156894: not ecx */
   5333     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5334     ecx = ecx - 1; /* 0x36156896: dec ecx */
   5335     _flag_k = FK_DEC;
   5336     edi = ecx; /* 0x36156897: mov edi, ecx */
   5337     PUSH32(esp, 1); /* 0x36156899: push 1 */
   5338     PUSH32(esp, edi); /* 0x3615689B: push edi */
   5339     ecx = ebp + (-0x20); /* 0x3615689C: lea ecx, [ebp - 0x20] */
   5340     MEM32(ebp + (-0x1C)) = esi; /* 0x3615689F: mov dword ptr [ebp - 0x1c], esi */
   5341     MEM32(ebp + (-0x18)) = esi; /* 0x361568A2: mov dword ptr [ebp - 0x18], esi */
   5342     MEM32(ebp + (-0x14)) = esi; /* 0x361568A5: mov dword ptr [ebp - 0x14], esi */
   5343     MEM32(ebp + (-0x10)) = edi; /* 0x361568A8: mov dword ptr [ebp - 0x10], edi */
   5344     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x361568AB: call dword ptr [0x3616f00c] */
   5345     RECOMP_FLAGS_IN();
   5346     /* test LO8(eax), LO8(eax) */ /* 0x361568B1: test al, al */
   5347     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5348     _cf = 0;
   5349     _flag_k = FK_NARROW(FK_TEST, 24);
   5350     if (TEST_Z(_flag_a, _flag_b)) goto L_361568DB; /* 0x361568B3: je 0x361568db */
   5351 L_361568B5:
   5352     ecx = edi; /* 0x361568B5: mov ecx, edi */
   5353     edi = MEM32(ebp + (-0x1C)); /* 0x361568B7: mov edi, dword ptr [ebp - 0x1c] */
   5354     edx = ecx; /* 0x361568BA: mov edx, ecx */
   5355     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x361568BC: shr ecx, 2 */
   5356     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5357     ecx = ecx >> 2u; /* 0x361568BC: shr ecx, 2 */
   5358     esi = 0x361B3FECu; /* 0x361568BF: mov esi, 0x361b3fec */
   5359     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x361568C4: 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; }
   5360     ecx = edx; /* 0x361568C6: mov ecx, edx */
   5361     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5362     ecx = ecx & 3; /* 0x361568C8: and ecx, 3 */
   5363     _cf = 0;
   5364     _flag_k = FK_TEST;
   5365     eax = edx; /* 0x361568CB: mov eax, edx */
   5366     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x361568CD: 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; }
   5367     PUSH32(esp, eax); /* 0x361568CF: push eax */
   5368     ecx = ebp + (-0x20); /* 0x361568D0: lea ecx, [ebp - 0x20] */
   5369     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x361568D3: call dword ptr [0x3616f044] */
   5370     RECOMP_FLAGS_IN();
   5371     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5372     esi = 0; /* 0x361568D9: xor esi, esi */
   5373     _cf = 0;
   5374     _flag_k = FK_TEST;
   5375 L_361568DB:
   5376     edx = MEM32(ebp + 0xC); /* 0x361568DB: mov edx, dword ptr [ebp + 0xc] */
   5377     eax = MEM32(ebp + 0x8); /* 0x361568DE: mov eax, dword ptr [ebp + 8] */
   5378     ecx = ebp + (-0x20); /* 0x361568E1: lea ecx, [ebp - 0x20] */
   5379     PUSH32(esp, ecx); /* 0x361568E4: push ecx */
   5380     PUSH32(esp, edx); /* 0x361568E5: push edx */
   5381     PUSH32(esp, eax); /* 0x361568E6: push eax */
   5382     ecx = ebx; /* 0x361568E7: mov ecx, ebx */
   5383     MEM32(ebp + (-0x4)) = esi; /* 0x361568E9: mov dword ptr [ebp - 4], esi */
   5384     RECOMP_ICALL(0x36154C80u); /* 0x361568EC: call 0x36154c80 */ /* not lifted */
   5385     RECOMP_FLAGS_IN();
   5386     eax = MEM32(ebp + (-0x1C)); /* 0x361568F1: mov eax, dword ptr [ebp - 0x1c] */
   5387     /* cmp eax, esi */ /* 0x361568F4: cmp eax, esi */
   5388     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   5389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5390     _flag_k = FK_CMP;
   5391     if (CMP_EQ(_flag_a, _flag_b)) goto L_36156914; /* 0x361568F6: je 0x36156914 */
   5392 L_361568F8:
   5393     ecx = eax + (-0x1); /* 0x361568F8: lea ecx, [eax - 1] */
   5394     SET_LO8(eax, MEM8(ecx)); /* 0x361568FB: mov al, byte ptr [ecx] */
   5395     /* test LO8(eax), LO8(eax) */ /* 0x361568FD: test al, al */
   5396     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5397     _cf = 0;
   5398     _flag_k = FK_NARROW(FK_TEST, 24);
   5399     if (TEST_Z(_flag_a, _flag_b)) goto L_3615690B; /* 0x361568FF: je 0x3615690b */
   5400 L_36156901:
   5401     /* cmp LO8(eax), 0xFFu */ /* 0x36156901: cmp al, 0xff */
   5402     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   5403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5404     _flag_k = FK_NARROW(FK_CMP, 24);
   5405     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615690B; /* 0x36156903: je 0x3615690b */
   5406 L_36156905:
   5407     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5408     SET_LO8(eax, LO8(eax) - 1); /* 0x36156905: dec al */
   5409     _flag_k = FK_NARROW(FK_DEC, 24);
   5410     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36156907: mov byte ptr [ecx], al */
   5411     goto L_36156914; /* 0x36156909: jmp 0x36156914 */
   5412 L_3615690B:
   5413     PUSH32(esp, ecx); /* 0x3615690B: push ecx */
   5414     RECOMP_ICALL(0x3615FCC4u); /* 0x3615690C: call 0x3615fcc4 */ /* not lifted */
   5415     RECOMP_FLAGS_IN();
   5416     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5417     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5418     esp = esp + 4; /* 0x36156911: add esp, 4 */
   5419     _flag_k = FK_ADD;
   5420 L_36156914:
   5421     ecx = MEM32(ebp + 0x10); /* 0x36156914: mov ecx, dword ptr [ebp + 0x10] */
   5422     MEM32(ebx + 0x28) = ecx; /* 0x36156917: mov dword ptr [ebx + 0x28], ecx */
   5423     ecx = MEM32(ebp + 0x14); /* 0x3615691A: mov ecx, dword ptr [ebp + 0x14] */
   5424     eax = ebx + 0x2C; /* 0x3615691D: lea eax, [ebx + 0x2c] */
   5425     /* cmp eax, ecx */ /* 0x36156920: cmp eax, ecx */
   5426     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5428     _flag_k = FK_CMP;
   5429     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615692E; /* 0x36156922: je 0x3615692e */
   5430 L_36156924:
   5431     edx = MEM32(ecx); /* 0x36156924: mov edx, dword ptr [ecx] */
   5432     MEM32(eax) = edx; /* 0x36156926: mov dword ptr [eax], edx */
   5433     ecx = MEM32(ecx + 0x4); /* 0x36156928: mov ecx, dword ptr [ecx + 4] */
   5434     MEM32(eax + 0x4) = ecx; /* 0x3615692B: mov dword ptr [eax + 4], ecx */
   5435 L_3615692E:
   5436     ecx = MEM32(ebp + 0x18); /* 0x3615692E: mov ecx, dword ptr [ebp + 0x18] */
   5437     eax = ebx + 0x34; /* 0x36156931: lea eax, [ebx + 0x34] */
   5438     /* cmp eax, ecx */ /* 0x36156934: cmp eax, ecx */
   5439     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5441     _flag_k = FK_CMP;
   5442     if (CMP_EQ(_flag_a, _flag_b)) goto L_36156942; /* 0x36156936: je 0x36156942 */
   5443 L_36156938:
   5444     edx = MEM32(ecx); /* 0x36156938: mov edx, dword ptr [ecx] */
   5445     MEM32(eax) = edx; /* 0x3615693A: mov dword ptr [eax], edx */
   5446     ecx = MEM32(ecx + 0x4); /* 0x3615693C: mov ecx, dword ptr [ecx + 4] */
   5447     MEM32(eax + 0x4) = ecx; /* 0x3615693F: mov dword ptr [eax + 4], ecx */
   5448 L_36156942:
   5449     ecx = MEM32(ebp + (-0xC)); /* 0x36156942: mov ecx, dword ptr [ebp - 0xc] */
   5450     edi = POP32_VAL(esp); /* 0x36156945: pop edi */
   5451     MEM32(ebx) = 0x36178CD4u; /* 0x36156946: mov dword ptr [ebx], 0x36178cd4 */
   5452     esi = POP32_VAL(esp); /* 0x3615694C: pop esi */
   5453     eax = ebx; /* 0x3615694D: mov eax, ebx */
   5454     ebx = POP32_VAL(esp); /* 0x3615694F: pop ebx */
   5455     MEM32(FS_BASE + (0)) = ecx; /* 0x36156950: mov dword ptr fs:[0], ecx */
   5456     esp = ebp; /* 0x36156957: mov esp, ebp */
   5457     ebp = POP32_VAL(esp); /* 0x36156959: pop ebp */
   5458     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3615695A: ret 0x14 */
   5459     RECOMP_REGS_OUT();
   5460 }
   5461 
   5462 void sub_36156960(void) {
   5463     int _fpu_cmp = 0;
   5464     uint32_t _cf = 0;
   5465     int _df = 1;
   5466     uint32_t _flag_k = FK_NONE;
   5467     uint32_t _flag_a = 0, _flag_b = 0;
   5468     uint32_t _itail_tgt = 0;
   5469     RECOMP_REGS_LOCALS
   5470     RECOMP_ENTER(0x36156960u);
   5471 
   5472     goto L_36156960;
   5473 L_36154D20:
   5474     MEM32(ecx) = 0x36178BD8u; /* 0x36154D20: mov dword ptr [ecx], 0x36178bd8 */
   5475 L_36154D26:
   5476     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   5477 L_36156960:
   5478     MEM32(ecx) = 0x36178CD4u; /* 0x36156960: mov dword ptr [ecx], 0x36178cd4 */
   5479 L_36156966:
   5480     RECOMP_BACKEDGE();
   5481     goto L_36154D20; /* 0x36156966: jmp 0x36154d20 */
   5482     { RECOMP_REGS_OUT(); return; } /* end of function */
   5483   _ljump:
   5484     switch (_itail_tgt) {
   5485       case 0x36154D20u: goto L_36154D20;
   5486       case 0x36154D26u: goto L_36154D26;
   5487       case 0x36156960u: goto L_36156960;
   5488       case 0x36156966u: goto L_36156966;
   5489       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5490     }
   5491     RECOMP_REGS_OUT();
   5492 }
   5493 
   5494 void sub_36156970(void) {
   5495     int _fpu_cmp = 0;
   5496     uint32_t _cf = 0;
   5497     int _df = 1;
   5498     uint32_t _flag_k = FK_NONE;
   5499     uint32_t _flag_a = 0, _flag_b = 0;
   5500     uint32_t _itail_tgt = 0;
   5501     RECOMP_REGS_LOCALS
   5502     RECOMP_ENTER(0x36156970u);
   5503 
   5504 L_36156970:
   5505     PUSH32(esp, ebp); /* 0x36156970: push ebp */
   5506     ebp = esp; /* 0x36156971: mov ebp, esp */
   5507     PUSH32(esp, esi); /* 0x36156973: push esi */
   5508     PUSH32(esp, edi); /* 0x36156974: push edi */
   5509     edi = MEM32(ebp + 0x8); /* 0x36156975: mov edi, dword ptr [ebp + 8] */
   5510     esi = ecx; /* 0x36156978: mov esi, ecx */
   5511     PUSH32(esp, edi); /* 0x3615697A: push edi */
   5512     RECOMP_ICALL(0x36154D50u); /* 0x3615697B: call 0x36154d50 */ /* not lifted */
   5513     RECOMP_FLAGS_IN();
   5514     /* test eax, eax */ /* 0x36156980: test eax, eax */
   5515     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5516     _cf = 0;
   5517     _flag_k = FK_TEST;
   5518     if (TEST_NZ(_flag_a, _flag_b)) goto L_361569BA; /* 0x36156982: jne 0x361569ba */
   5519 L_36156984:
   5520     eax = ebp + 0x8; /* 0x36156984: lea eax, [ebp + 8] */
   5521     PUSH32(esp, eax); /* 0x36156987: push eax */
   5522     ecx = edi; /* 0x36156988: mov ecx, edi */
   5523     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615698A: call dword ptr [0x3616fa8c] */
   5524     RECOMP_FLAGS_IN();
   5525     ecx = MEM32(ebp + 0x8); /* 0x36156990: mov ecx, dword ptr [ebp + 8] */
   5526     edx = esi + 0x2C; /* 0x36156993: lea edx, [esi + 0x2c] */
   5527     PUSH32(esp, edx); /* 0x36156996: push edx */
   5528     PUSH32(esp, edi); /* 0x36156997: push edi */
   5529     MEM32(esi + 0x28) = ecx; /* 0x36156998: mov dword ptr [esi + 0x28], ecx */
   5530     RECOMP_ICALL(0x3615B870u); /* 0x3615699B: call 0x3615b870 */ /* not lifted */
   5531     RECOMP_FLAGS_IN();
   5532     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u);
   5533     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5534     esi = esi + 0x34u; /* 0x361569A0: add esi, 0x34 */
   5535     _flag_k = FK_ADD;
   5536     PUSH32(esp, esi); /* 0x361569A3: push esi */
   5537     PUSH32(esp, edi); /* 0x361569A4: push edi */
   5538     RECOMP_ICALL(0x3615B870u); /* 0x361569A5: call 0x3615b870 */ /* not lifted */
   5539     RECOMP_FLAGS_IN();
   5540     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5541     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5542     esp = esp + 0x10u; /* 0x361569AA: add esp, 0x10 */
   5543     _flag_k = FK_ADD;
   5544     ecx = edi; /* 0x361569AD: mov ecx, edi */
   5545     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361569AF: call dword ptr [0x3616fadc] */
   5546     RECOMP_FLAGS_IN();
   5547     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5548     _cf = (eax) != 0;
   5549     eax = (uint32_t)(-(int32_t)eax); /* 0x361569B5: neg eax */
   5550     _flag_k = FK_CMP;
   5551     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361569B7: sbb eax, eax */
   5552       eax = _sc ? 0xFFFFFFFFu : 0;
   5553       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5554       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5555     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5556     eax = eax + 1; /* 0x361569B9: inc eax */
   5557     _flag_k = FK_INC;
   5558 L_361569BA:
   5559     edi = POP32_VAL(esp); /* 0x361569BA: pop edi */
   5560     esi = POP32_VAL(esp); /* 0x361569BB: pop esi */
   5561     ebp = POP32_VAL(esp); /* 0x361569BC: pop ebp */
   5562     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361569BD: ret 4 */
   5563     RECOMP_REGS_OUT();
   5564 }
   5565 
   5566 void sub_361569C0(void) {
   5567     int _fpu_cmp = 0;
   5568     uint32_t _cf = 0;
   5569     int _df = 1;
   5570     uint32_t _flag_k = FK_NONE;
   5571     uint32_t _flag_a = 0, _flag_b = 0;
   5572     uint32_t _itail_tgt = 0;
   5573     RECOMP_REGS_LOCALS
   5574     RECOMP_ENTER(0x361569C0u);
   5575 
   5576 L_361569C0:
   5577     PUSH32(esp, ebp); /* 0x361569C0: push ebp */
   5578     ebp = esp; /* 0x361569C1: mov ebp, esp */
   5579     PUSH32(esp, esi); /* 0x361569C3: push esi */
   5580     PUSH32(esp, edi); /* 0x361569C4: push edi */
   5581     edi = MEM32(ebp + 0x8); /* 0x361569C5: mov edi, dword ptr [ebp + 8] */
   5582     esi = ecx; /* 0x361569C8: mov esi, ecx */
   5583     PUSH32(esp, edi); /* 0x361569CA: push edi */
   5584     RECOMP_ICALL(0x36154DB0u); /* 0x361569CB: call 0x36154db0 */ /* not lifted */
   5585     RECOMP_FLAGS_IN();
   5586     eax = MEM32(esi + 0x28); /* 0x361569D0: mov eax, dword ptr [esi + 0x28] */
   5587     PUSH32(esp, eax); /* 0x361569D3: push eax */
   5588     ecx = edi; /* 0x361569D4: mov ecx, edi */
   5589     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x361569D6: call dword ptr [0x3616faec] */
   5590     RECOMP_FLAGS_IN();
   5591     ecx = esi + 0x2C; /* 0x361569DC: lea ecx, [esi + 0x2c] */
   5592     PUSH32(esp, ecx); /* 0x361569DF: push ecx */
   5593     PUSH32(esp, edi); /* 0x361569E0: push edi */
   5594     RECOMP_ICALL(0x3615B840u); /* 0x361569E1: call 0x3615b840 */ /* not lifted */
   5595     RECOMP_FLAGS_IN();
   5596     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u);
   5597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5598     esi = esi + 0x34u; /* 0x361569E6: add esi, 0x34 */
   5599     _flag_k = FK_ADD;
   5600     PUSH32(esp, esi); /* 0x361569E9: push esi */
   5601     PUSH32(esp, edi); /* 0x361569EA: push edi */
   5602     RECOMP_ICALL(0x3615B840u); /* 0x361569EB: call 0x3615b840 */ /* not lifted */
   5603     RECOMP_FLAGS_IN();
   5604     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5605     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5606     esp = esp + 0x10u; /* 0x361569F0: add esp, 0x10 */
   5607     _flag_k = FK_ADD;
   5608     edi = POP32_VAL(esp); /* 0x361569F3: pop edi */
   5609     esi = POP32_VAL(esp); /* 0x361569F4: pop esi */
   5610     ebp = POP32_VAL(esp); /* 0x361569F5: pop ebp */
   5611     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361569F6: ret 4 */
   5612     RECOMP_REGS_OUT();
   5613 }
   5614 
   5615 void sub_36156A00(void) {
   5616     int _fpu_cmp = 0;
   5617     uint32_t _cf = 0;
   5618     int _df = 1;
   5619     uint32_t _flag_k = FK_NONE;
   5620     uint32_t _flag_a = 0, _flag_b = 0;
   5621     uint32_t _itail_tgt = 0;
   5622     RECOMP_REGS_LOCALS
   5623     RECOMP_ENTER(0x36156A00u);
   5624 
   5625 L_36156A00:
   5626     PUSH32(esp, ebp); /* 0x36156A00: push ebp */
   5627     ebp = esp; /* 0x36156A01: mov ebp, esp */
   5628     PUSH32(esp, esi); /* 0x36156A03: push esi */
   5629     esi = ecx; /* 0x36156A04: mov esi, ecx */
   5630     RECOMP_ICALL(0x36156A80u); /* 0x36156A06: call 0x36156a80 */ /* not lifted */
   5631     RECOMP_FLAGS_IN();
   5632     /* test MEM8(ebp + 0x8), 1 */ /* 0x36156A0B: test byte ptr [ebp + 8], 1 */
   5633     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5634     _cf = 0;
   5635     _flag_k = FK_NARROW(FK_TEST, 24);
   5636     if (TEST_Z(_flag_a, _flag_b)) goto L_36156A1A; /* 0x36156A0F: je 0x36156a1a */
   5637 L_36156A11:
   5638     PUSH32(esp, esi); /* 0x36156A11: push esi */
   5639     RECOMP_ICALL(0x3615FCC4u); /* 0x36156A12: call 0x3615fcc4 */ /* not lifted */
   5640     RECOMP_FLAGS_IN();
   5641     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5643     esp = esp + 4; /* 0x36156A17: add esp, 4 */
   5644     _flag_k = FK_ADD;
   5645 L_36156A1A:
   5646     eax = esi; /* 0x36156A1A: mov eax, esi */
   5647     esi = POP32_VAL(esp); /* 0x36156A1C: pop esi */
   5648     ebp = POP32_VAL(esp); /* 0x36156A1D: pop ebp */
   5649     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36156A1E: ret 4 */
   5650     RECOMP_REGS_OUT();
   5651 }
   5652 
   5653 void sub_36156A30(void) {
   5654     int _fpu_cmp = 0;
   5655     uint32_t _cf = 0;
   5656     int _df = 1;
   5657     uint32_t _flag_k = FK_NONE;
   5658     uint32_t _flag_a = 0, _flag_b = 0;
   5659     uint32_t _itail_tgt = 0;
   5660     RECOMP_REGS_LOCALS
   5661     RECOMP_ENTER(0x36156A30u);
   5662 
   5663 L_36156A30:
   5664     PUSH32(esp, ebp); /* 0x36156A30: push ebp */
   5665     ebp = esp; /* 0x36156A31: mov ebp, esp */
   5666     PUSH32(esp, 0xFFFFFFFFu); /* 0x36156A33: push -1 */
   5667     PUSH32(esp, 0x3616DC89u); /* 0x36156A35: push 0x3616dc89 */
   5668     eax = MEM32(FS_BASE + (0)); /* 0x36156A3A: mov eax, dword ptr fs:[0] */
   5669     PUSH32(esp, eax); /* 0x36156A40: push eax */
   5670     MEM32(FS_BASE + (0)) = esp; /* 0x36156A41: mov dword ptr fs:[0], esp */
   5671     PUSH32(esp, ecx); /* 0x36156A48: push ecx */
   5672     PUSH32(esp, esi); /* 0x36156A49: push esi */
   5673     esi = ecx; /* 0x36156A4A: mov esi, ecx */
   5674     MEM32(ebp + (-0x10)) = esi; /* 0x36156A4C: mov dword ptr [ebp - 0x10], esi */
   5675     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36156A4F: call dword ptr [0x3616ffd0] */
   5676     RECOMP_FLAGS_IN();
   5677     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5678     eax = 0; /* 0x36156A55: xor eax, eax */
   5679     _cf = 0;
   5680     _flag_k = FK_TEST;
   5681     ecx = esi + 0x28; /* 0x36156A57: lea ecx, [esi + 0x28] */
   5682     MEM32(ebp + (-0x4)) = eax; /* 0x36156A5A: mov dword ptr [ebp - 4], eax */
   5683     MEM32(esi + 0x20) = eax; /* 0x36156A5D: mov dword ptr [esi + 0x20], eax */
   5684     MEM32(esi + 0x24) = eax; /* 0x36156A60: mov dword ptr [esi + 0x24], eax */
   5685     RECOMP_ICALL(0x360BFE20u); /* 0x36156A63: call 0x360bfe20 */ /* not lifted */
   5686     RECOMP_FLAGS_IN();
   5687     ecx = MEM32(ebp + (-0xC)); /* 0x36156A68: mov ecx, dword ptr [ebp - 0xc] */
   5688     MEM32(esi) = 0x36178CF8u; /* 0x36156A6B: mov dword ptr [esi], 0x36178cf8 */
   5689     eax = esi; /* 0x36156A71: mov eax, esi */
   5690     esi = POP32_VAL(esp); /* 0x36156A73: pop esi */
   5691     MEM32(FS_BASE + (0)) = ecx; /* 0x36156A74: mov dword ptr fs:[0], ecx */
   5692     esp = ebp; /* 0x36156A7B: mov esp, ebp */
   5693     ebp = POP32_VAL(esp); /* 0x36156A7D: pop ebp */
   5694     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156A7E: ret  */
   5695     RECOMP_REGS_OUT();
   5696 }
   5697 
   5698 void sub_36156A80(void) {
   5699     int _fpu_cmp = 0;
   5700     uint32_t _cf = 0;
   5701     int _df = 1;
   5702     uint32_t _flag_k = FK_NONE;
   5703     uint32_t _flag_a = 0, _flag_b = 0;
   5704     uint32_t _itail_tgt = 0;
   5705     RECOMP_REGS_LOCALS
   5706     RECOMP_ENTER(0x36156A80u);
   5707 
   5708 L_36156A80:
   5709     PUSH32(esp, ebp); /* 0x36156A80: push ebp */
   5710     ebp = esp; /* 0x36156A81: mov ebp, esp */
   5711     PUSH32(esp, 0xFFFFFFFFu); /* 0x36156A83: push -1 */
   5712     PUSH32(esp, 0x3616DCA9u); /* 0x36156A85: push 0x3616dca9 */
   5713     eax = MEM32(FS_BASE + (0)); /* 0x36156A8A: mov eax, dword ptr fs:[0] */
   5714     PUSH32(esp, eax); /* 0x36156A90: push eax */
   5715     MEM32(FS_BASE + (0)) = esp; /* 0x36156A91: mov dword ptr fs:[0], esp */
   5716     PUSH32(esp, ecx); /* 0x36156A98: push ecx */
   5717     PUSH32(esp, esi); /* 0x36156A99: push esi */
   5718     esi = ecx; /* 0x36156A9A: mov esi, ecx */
   5719     MEM32(ebp + (-0x10)) = esi; /* 0x36156A9C: mov dword ptr [ebp - 0x10], esi */
   5720     MEM32(esi) = 0x36178CF8u; /* 0x36156A9F: mov dword ptr [esi], 0x36178cf8 */
   5721     ecx = esi + 0x28; /* 0x36156AA5: lea ecx, [esi + 0x28] */
   5722     MEM32(ebp + (-0x4)) = 0; /* 0x36156AA8: mov dword ptr [ebp - 4], 0 */
   5723     RECOMP_ICALL(0x360BFE90u); /* 0x36156AAF: call 0x360bfe90 */ /* not lifted */
   5724     RECOMP_FLAGS_IN();
   5725     ecx = esi; /* 0x36156AB4: mov ecx, esi */
   5726     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36156AB6: mov dword ptr [ebp - 4], 0xffffffff */
   5727     RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x36156ABD: call dword ptr [0x3616ffd4] */
   5728     RECOMP_FLAGS_IN();
   5729     ecx = MEM32(ebp + (-0xC)); /* 0x36156AC3: mov ecx, dword ptr [ebp - 0xc] */
   5730     esi = POP32_VAL(esp); /* 0x36156AC6: pop esi */
   5731     MEM32(FS_BASE + (0)) = ecx; /* 0x36156AC7: mov dword ptr fs:[0], ecx */
   5732     esp = ebp; /* 0x36156ACE: mov esp, ebp */
   5733     ebp = POP32_VAL(esp); /* 0x36156AD0: pop ebp */
   5734     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156AD1: ret  */
   5735     RECOMP_REGS_OUT();
   5736 }
   5737 
   5738 void sub_36156AE0(void) {
   5739     int _fpu_cmp = 0;
   5740     uint32_t _cf = 0;
   5741     int _df = 1;
   5742     uint32_t _flag_k = FK_NONE;
   5743     uint32_t _flag_a = 0, _flag_b = 0;
   5744     uint32_t _itail_tgt = 0;
   5745     RECOMP_REGS_LOCALS
   5746     RECOMP_ENTER(0x36156AE0u);
   5747 
   5748 L_36156AE0:
   5749     PUSH32(esp, ebx); /* 0x36156AE0: push ebx */
   5750     PUSH32(esp, edi); /* 0x36156AE1: push edi */
   5751     edi = ecx; /* 0x36156AE2: mov edi, ecx */
   5752     ebx = edi + 0x20; /* 0x36156AE4: lea ebx, [edi + 0x20] */
   5753     PUSH32(esp, ebx); /* 0x36156AE7: push ebx */
   5754     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36156AE8: call dword ptr [0x3616ff70] */
   5755     RECOMP_FLAGS_IN();
   5756     PUSH32(esp, 0); /* 0x36156AEE: push 0 */
   5757     PUSH32(esp, 0x361B2CD8u); /* 0x36156AF0: push 0x361b2cd8 */
   5758     PUSH32(esp, 0x361B2CC0u); /* 0x36156AF5: push 0x361b2cc0 */
   5759     PUSH32(esp, 0); /* 0x36156AFA: push 0 */
   5760     PUSH32(esp, eax); /* 0x36156AFC: push eax */
   5761     RECOMP_ICALL(0x3615FD86u); /* 0x36156AFD: call 0x3615fd86 */ /* not lifted */
   5762     RECOMP_FLAGS_IN();
   5763     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   5764     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5765     esp = esp + 0x18u; /* 0x36156B02: add esp, 0x18 */
   5766     _flag_k = FK_ADD;
   5767     /* test eax, eax */ /* 0x36156B05: test eax, eax */
   5768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5769     _cf = 0;
   5770     _flag_k = FK_TEST;
   5771     if (TEST_Z(_flag_a, _flag_b)) goto L_36156B38; /* 0x36156B07: je 0x36156b38 */
   5772 L_36156B09:
   5773     PUSH32(esp, esi); /* 0x36156B09: push esi */
   5774     esi = eax + 0xE4; /* 0x36156B0A: lea esi, [eax + 0xe4] */
   5775     eax = MEM32(esi); /* 0x36156B10: mov eax, dword ptr [esi] */
   5776     PUSH32(esp, ebx); /* 0x36156B12: push ebx */
   5777     ecx = esi; /* 0x36156B13: mov ecx, esi */
   5778     RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x36156B15: call dword ptr [eax + 0x24] */
   5779     RECOMP_FLAGS_IN();
   5780     SET_LO8(eax, MEM8(edi + 0x5C)); /* 0x36156B18: mov al, byte ptr [edi + 0x5c] */
   5781     edx = MEM32(esi); /* 0x36156B1B: mov edx, dword ptr [esi] */
   5782     /* test LO8(eax), LO8(eax) */ /* 0x36156B1D: test al, al */
   5783     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5784     _cf = 0;
   5785     _flag_k = FK_NARROW(FK_TEST, 24);
   5786     SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x36156B1F: sete al */
   5787     PUSH32(esp, 0x362EA510u); /* 0x36156B22: push 0x362ea510 */
   5788     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u);
   5789     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5790     edi = edi + 0x28u; /* 0x36156B27: add edi, 0x28 */
   5791     _flag_k = FK_ADD;
   5792     ecx = esi; /* 0x36156B2A: mov ecx, esi */
   5793     PUSH32(esp, eax); /* 0x36156B2C: push eax */
   5794     PUSH32(esp, esi); /* 0x36156B2D: push esi */
   5795     PUSH32(esp, edi); /* 0x36156B2E: push edi */
   5796     RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x36156B2F: call dword ptr [edx + 0x34] */
   5797     RECOMP_FLAGS_IN();
   5798     esi = POP32_VAL(esp); /* 0x36156B32: pop esi */
   5799     edi = POP32_VAL(esp); /* 0x36156B33: pop edi */
   5800     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5801     eax = 0; /* 0x36156B34: xor eax, eax */
   5802     _cf = 0;
   5803     _flag_k = FK_TEST;
   5804     ebx = POP32_VAL(esp); /* 0x36156B36: pop ebx */
   5805     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156B37: ret  */
   5806 L_36156B38:
   5807     edi = POP32_VAL(esp); /* 0x36156B38: pop edi */
   5808     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5809     eax = 0; /* 0x36156B39: xor eax, eax */
   5810     _cf = 0;
   5811     _flag_k = FK_TEST;
   5812     ebx = POP32_VAL(esp); /* 0x36156B3B: pop ebx */
   5813     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156B3C: ret  */
   5814     RECOMP_REGS_OUT();
   5815 }
   5816 
   5817 void sub_36156B40(void) {
   5818     int _fpu_cmp = 0;
   5819     uint32_t _cf = 0;
   5820     int _df = 1;
   5821     uint32_t _flag_k = FK_NONE;
   5822     uint32_t _flag_a = 0, _flag_b = 0;
   5823     uint32_t _itail_tgt = 0;
   5824     RECOMP_REGS_LOCALS
   5825     RECOMP_ENTER(0x36156B40u);
   5826 
   5827 L_36156B40:
   5828     PUSH32(esp, ebp); /* 0x36156B40: push ebp */
   5829     ebp = esp; /* 0x36156B41: mov ebp, esp */
   5830     PUSH32(esp, esi); /* 0x36156B43: push esi */
   5831     PUSH32(esp, edi); /* 0x36156B44: push edi */
   5832     edi = MEM32(ebp + 0x8); /* 0x36156B45: mov edi, dword ptr [ebp + 8] */
   5833     esi = ecx; /* 0x36156B48: mov esi, ecx */
   5834     eax = ebp + 0xB; /* 0x36156B4A: lea eax, [ebp + 0xb] */
   5835     PUSH32(esp, eax); /* 0x36156B4D: push eax */
   5836     ecx = esi + 0x20; /* 0x36156B4E: lea ecx, [esi + 0x20] */
   5837     PUSH32(esp, ecx); /* 0x36156B51: push ecx */
   5838     edx = esi + 0x28; /* 0x36156B52: lea edx, [esi + 0x28] */
   5839     PUSH32(esp, edx); /* 0x36156B55: push edx */
   5840     PUSH32(esp, edi); /* 0x36156B56: push edi */
   5841     RECOMP_ICALL(0x360BD000u); /* 0x36156B57: call 0x360bd000 */ /* not lifted */
   5842     RECOMP_FLAGS_IN();
   5843     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5844     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5845     esp = esp + 8; /* 0x36156B5C: add esp, 8 */
   5846     _flag_k = FK_ADD;
   5847     PUSH32(esp, eax); /* 0x36156B5F: push eax */
   5848     RECOMP_ICALL(0x3615B870u); /* 0x36156B60: call 0x3615b870 */ /* not lifted */
   5849     RECOMP_FLAGS_IN();
   5850     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5851     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5852     esp = esp + 8; /* 0x36156B65: add esp, 8 */
   5853     _flag_k = FK_ADD;
   5854     ecx = eax; /* 0x36156B68: mov ecx, eax */
   5855     RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36156B6A: call dword ptr [0x3616fae0] */
   5856     RECOMP_FLAGS_IN();
   5857     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36156B70: mov al, byte ptr [ebp + 0xb] */
   5858     /* test LO8(eax), LO8(eax) */ /* 0x36156B73: test al, al */
   5859     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5860     _cf = 0;
   5861     _flag_k = FK_NARROW(FK_TEST, 24);
   5862     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36156B75: setne al */
   5863     ecx = edi; /* 0x36156B78: mov ecx, edi */
   5864     MEM8(esi + 0x5C) = (uint8_t)(LO8(eax)); /* 0x36156B7A: mov byte ptr [esi + 0x5c], al */
   5865     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36156B7D: call dword ptr [0x3616fadc] */
   5866     RECOMP_FLAGS_IN();
   5867     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5868     _cf = (eax) != 0;
   5869     eax = (uint32_t)(-(int32_t)eax); /* 0x36156B83: neg eax */
   5870     _flag_k = FK_CMP;
   5871     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36156B85: sbb eax, eax */
   5872       eax = _sc ? 0xFFFFFFFFu : 0;
   5873       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5874       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5875     edi = POP32_VAL(esp); /* 0x36156B87: pop edi */
   5876     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5877     eax = eax + 1; /* 0x36156B88: inc eax */
   5878     _flag_k = FK_INC;
   5879     esi = POP32_VAL(esp); /* 0x36156B89: pop esi */
   5880     ebp = POP32_VAL(esp); /* 0x36156B8A: pop ebp */
   5881     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36156B8B: ret 4 */
   5882     RECOMP_REGS_OUT();
   5883 }
   5884 
   5885 void sub_36156B90(void) {
   5886     int _fpu_cmp = 0;
   5887     uint32_t _cf = 0;
   5888     int _df = 1;
   5889     uint32_t _flag_k = FK_NONE;
   5890     uint32_t _flag_a = 0, _flag_b = 0;
   5891     uint32_t _itail_tgt = 0;
   5892     RECOMP_REGS_LOCALS
   5893     RECOMP_ENTER(0x36156B90u);
   5894 
   5895 L_36156B90:
   5896     PUSH32(esp, ebp); /* 0x36156B90: push ebp */
   5897     ebp = esp; /* 0x36156B91: mov ebp, esp */
   5898     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5899     eax = 0; /* 0x36156B93: xor eax, eax */
   5900     _cf = 0;
   5901     _flag_k = FK_TEST;
   5902     SET_LO8(eax, MEM8(ecx + 0x5C)); /* 0x36156B95: mov al, byte ptr [ecx + 0x5c] */
   5903     edx = ecx + 0x20; /* 0x36156B98: lea edx, [ecx + 0x20] */
   5904     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u);
   5905     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5906     ecx = ecx + 0x28u; /* 0x36156B9B: add ecx, 0x28 */
   5907     _flag_k = FK_ADD;
   5908     PUSH32(esp, eax); /* 0x36156B9E: push eax */
   5909     eax = MEM32(ebp + 0x8); /* 0x36156B9F: mov eax, dword ptr [ebp + 8] */
   5910     PUSH32(esp, edx); /* 0x36156BA2: push edx */
   5911     PUSH32(esp, ecx); /* 0x36156BA3: push ecx */
   5912     PUSH32(esp, eax); /* 0x36156BA4: push eax */
   5913     RECOMP_ICALL(0x360BCF40u); /* 0x36156BA5: call 0x360bcf40 */ /* not lifted */
   5914     RECOMP_FLAGS_IN();
   5915     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5916     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5917     esp = esp + 8; /* 0x36156BAA: add esp, 8 */
   5918     _flag_k = FK_ADD;
   5919     PUSH32(esp, eax); /* 0x36156BAD: push eax */
   5920     RECOMP_ICALL(0x3615B840u); /* 0x36156BAE: call 0x3615b840 */ /* not lifted */
   5921     RECOMP_FLAGS_IN();
   5922     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5923     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5924     esp = esp + 8; /* 0x36156BB3: add esp, 8 */
   5925     _flag_k = FK_ADD;
   5926     ecx = eax; /* 0x36156BB6: mov ecx, eax */
   5927     RECOMP_ICALL(MEM32(0x3616FAE8)); /* 0x36156BB8: call dword ptr [0x3616fae8] */
   5928     RECOMP_FLAGS_IN();
   5929     ebp = POP32_VAL(esp); /* 0x36156BBE: pop ebp */
   5930     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36156BBF: ret 4 */
   5931     RECOMP_REGS_OUT();
   5932 }
   5933 
   5934 void sub_36156BD0(void) {
   5935     int _fpu_cmp = 0;
   5936     uint32_t _cf = 0;
   5937     int _df = 1;
   5938     uint32_t _flag_k = FK_NONE;
   5939     uint32_t _flag_a = 0, _flag_b = 0;
   5940     uint32_t _itail_tgt = 0;
   5941     RECOMP_REGS_LOCALS
   5942     RECOMP_ENTER(0x36156BD0u);
   5943 
   5944 L_36156BD0:
   5945     RECOMP_ICALL(0x36156BE0u); /* 0x36156BD0: call 0x36156be0 */ /* not lifted */
   5946     RECOMP_FLAGS_IN();
   5947     goto L_36156BF0; /* 0x36156BD5: jmp 0x36156bf0 */
   5948 L_36156BF0:
   5949     PUSH32(esp, 0x36156C00u); /* 0x36156BF0: push 0x36156c00 */
   5950     RECOMP_ICALL(0x3615FEB2u); /* 0x36156BF5: call 0x3615feb2 */ /* not lifted */
   5951     RECOMP_FLAGS_IN();
   5952     ecx = POP32_VAL(esp); /* 0x36156BFA: pop ecx */
   5953     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156BFB: ret  */
   5954     RECOMP_REGS_OUT();
   5955 }
   5956 
   5957 void sub_36156BE0(void) {
   5958     int _fpu_cmp = 0;
   5959     uint32_t _cf = 0;
   5960     int _df = 1;
   5961     uint32_t _flag_k = FK_NONE;
   5962     uint32_t _flag_a = 0, _flag_b = 0;
   5963     uint32_t _itail_tgt = 0;
   5964     RECOMP_REGS_LOCALS
   5965     RECOMP_ENTER(0x36156BE0u);
   5966 
   5967 L_36156BE0:
   5968     ecx = 0x3630DB35u; /* 0x36156BE0: mov ecx, 0x3630db35 */
   5969 L_36156BE5:
   5970     { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; }
   5971     { RECOMP_REGS_OUT(); return; } /* end of function */
   5972   _ljump:
   5973     switch (_itail_tgt) {
   5974       case 0x36156BE0u: goto L_36156BE0;
   5975       case 0x36156BE5u: goto L_36156BE5;
   5976       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5977     }
   5978     RECOMP_REGS_OUT();
   5979 }
   5980 
   5981 void sub_36156BF0(void) {
   5982     int _fpu_cmp = 0;
   5983     uint32_t _cf = 0;
   5984     int _df = 1;
   5985     uint32_t _flag_k = FK_NONE;
   5986     uint32_t _flag_a = 0, _flag_b = 0;
   5987     uint32_t _itail_tgt = 0;
   5988     RECOMP_REGS_LOCALS
   5989     RECOMP_ENTER(0x36156BF0u);
   5990 
   5991 L_36156BF0:
   5992     PUSH32(esp, 0x36156C00u); /* 0x36156BF0: push 0x36156c00 */
   5993     RECOMP_ICALL(0x3615FEB2u); /* 0x36156BF5: call 0x3615feb2 */ /* not lifted */
   5994     RECOMP_FLAGS_IN();
   5995     ecx = POP32_VAL(esp); /* 0x36156BFA: pop ecx */
   5996     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156BFB: ret  */
   5997     RECOMP_REGS_OUT();
   5998 }
   5999 
   6000 void sub_36156C00(void) {
   6001     int _fpu_cmp = 0;
   6002     uint32_t _cf = 0;
   6003     int _df = 1;
   6004     uint32_t _flag_k = FK_NONE;
   6005     uint32_t _flag_a = 0, _flag_b = 0;
   6006     uint32_t _itail_tgt = 0;
   6007     RECOMP_REGS_LOCALS
   6008     RECOMP_ENTER(0x36156C00u);
   6009 
   6010 L_36156C00:
   6011     ecx = 0x3630DB35u; /* 0x36156C00: mov ecx, 0x3630db35 */
   6012 L_36156C05:
   6013     { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; }
   6014     { RECOMP_REGS_OUT(); return; } /* end of function */
   6015   _ljump:
   6016     switch (_itail_tgt) {
   6017       case 0x36156C00u: goto L_36156C00;
   6018       case 0x36156C05u: goto L_36156C05;
   6019       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6020     }
   6021     RECOMP_REGS_OUT();
   6022 }
   6023 
   6024 void sub_36156C10(void) {
   6025     int _fpu_cmp = 0;
   6026     uint32_t _cf = 0;
   6027     int _df = 1;
   6028     uint32_t _flag_k = FK_NONE;
   6029     uint32_t _flag_a = 0, _flag_b = 0;
   6030     uint32_t _itail_tgt = 0;
   6031     RECOMP_REGS_LOCALS
   6032     RECOMP_ENTER(0x36156C10u);
   6033 
   6034 L_36156C10:
   6035     RECOMP_ICALL(0x36156C20u); /* 0x36156C10: call 0x36156c20 */ /* not lifted */
   6036     RECOMP_FLAGS_IN();
   6037     goto L_36156C30; /* 0x36156C15: jmp 0x36156c30 */
   6038 L_36156C30:
   6039     PUSH32(esp, 0x36156C40u); /* 0x36156C30: push 0x36156c40 */
   6040     RECOMP_ICALL(0x3615FEB2u); /* 0x36156C35: call 0x3615feb2 */ /* not lifted */
   6041     RECOMP_FLAGS_IN();
   6042     ecx = POP32_VAL(esp); /* 0x36156C3A: pop ecx */
   6043     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156C3B: ret  */
   6044     RECOMP_REGS_OUT();
   6045 }
   6046 
   6047 void sub_36156C20(void) {
   6048     int _fpu_cmp = 0;
   6049     uint32_t _cf = 0;
   6050     int _df = 1;
   6051     uint32_t _flag_k = FK_NONE;
   6052     uint32_t _flag_a = 0, _flag_b = 0;
   6053     uint32_t _itail_tgt = 0;
   6054     RECOMP_REGS_LOCALS
   6055     RECOMP_ENTER(0x36156C20u);
   6056 
   6057 L_36156C20:
   6058     ecx = 0x3630DB34u; /* 0x36156C20: mov ecx, 0x3630db34 */
   6059 L_36156C25:
   6060     { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; }
   6061     { RECOMP_REGS_OUT(); return; } /* end of function */
   6062   _ljump:
   6063     switch (_itail_tgt) {
   6064       case 0x36156C20u: goto L_36156C20;
   6065       case 0x36156C25u: goto L_36156C25;
   6066       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6067     }
   6068     RECOMP_REGS_OUT();
   6069 }
   6070 
   6071 void sub_36156C30(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(0x36156C30u);
   6080 
   6081 L_36156C30:
   6082     PUSH32(esp, 0x36156C40u); /* 0x36156C30: push 0x36156c40 */
   6083     RECOMP_ICALL(0x3615FEB2u); /* 0x36156C35: call 0x3615feb2 */ /* not lifted */
   6084     RECOMP_FLAGS_IN();
   6085     ecx = POP32_VAL(esp); /* 0x36156C3A: pop ecx */
   6086     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156C3B: ret  */
   6087     RECOMP_REGS_OUT();
   6088 }
   6089 
   6090 void sub_36156C40(void) {
   6091     int _fpu_cmp = 0;
   6092     uint32_t _cf = 0;
   6093     int _df = 1;
   6094     uint32_t _flag_k = FK_NONE;
   6095     uint32_t _flag_a = 0, _flag_b = 0;
   6096     uint32_t _itail_tgt = 0;
   6097     RECOMP_REGS_LOCALS
   6098     RECOMP_ENTER(0x36156C40u);
   6099 
   6100 L_36156C40:
   6101     ecx = 0x3630DB34u; /* 0x36156C40: mov ecx, 0x3630db34 */
   6102 L_36156C45:
   6103     { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; }
   6104     { RECOMP_REGS_OUT(); return; } /* end of function */
   6105   _ljump:
   6106     switch (_itail_tgt) {
   6107       case 0x36156C40u: goto L_36156C40;
   6108       case 0x36156C45u: goto L_36156C45;
   6109       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6110     }
   6111     RECOMP_REGS_OUT();
   6112 }
   6113 
   6114 void sub_36156C50(void) {
   6115     int _fpu_cmp = 0;
   6116     uint32_t _cf = 0;
   6117     int _df = 1;
   6118     uint32_t _flag_k = FK_NONE;
   6119     uint32_t _flag_a = 0, _flag_b = 0;
   6120     uint32_t _itail_tgt = 0;
   6121     RECOMP_REGS_LOCALS
   6122     RECOMP_ENTER(0x36156C50u);
   6123 
   6124 L_36156C50:
   6125     PUSH32(esp, ebp); /* 0x36156C50: push ebp */
   6126     ebp = esp; /* 0x36156C51: mov ebp, esp */
   6127     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6128     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6129     esp = esp - 0x10u; /* 0x36156C53: sub esp, 0x10 */
   6130     _flag_k = FK_CMP;
   6131     ecx = MEM32(ebp + 0x8); /* 0x36156C56: mov ecx, dword ptr [ebp + 8] */
   6132     PUSH32(esp, ebx); /* 0x36156C59: push ebx */
   6133     PUSH32(esp, esi); /* 0x36156C5A: push esi */
   6134     esi = MEM32(ebp + 0xC); /* 0x36156C5B: mov esi, dword ptr [ebp + 0xc] */
   6135     PUSH32(esp, edi); /* 0x36156C5E: push edi */
   6136     eax = esi + 0x4; /* 0x36156C5F: lea eax, [esi + 4] */
   6137     PUSH32(esp, eax); /* 0x36156C62: push eax */
   6138     PUSH32(esp, esi); /* 0x36156C63: push esi */
   6139     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36156C64: call dword ptr [0x3616fa8c] */
   6140     RECOMP_FLAGS_IN();
   6141     PUSH32(esp, eax); /* 0x36156C6A: push eax */
   6142     RECOMP_ICALL(0x3615B870u); /* 0x36156C6B: call 0x3615b870 */ /* not lifted */
   6143     RECOMP_FLAGS_IN();
   6144     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6145     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6146     esp = esp + 8; /* 0x36156C70: add esp, 8 */
   6147     _flag_k = FK_ADD;
   6148     ecx = ebp + (-0x4); /* 0x36156C73: lea ecx, [ebp - 4] */
   6149     PUSH32(esp, ecx); /* 0x36156C76: push ecx */
   6150     ecx = eax; /* 0x36156C77: mov ecx, eax */
   6151     MEM32(ebp + (-0x8)) = eax; /* 0x36156C79: mov dword ptr [ebp - 8], eax */
   6152     ebx = esi + 0xC; /* 0x36156C7C: lea ebx, [esi + 0xc] */
   6153     MEM32(ebp + (-0x4)) = 0; /* 0x36156C7F: mov dword ptr [ebp - 4], 0 */
   6154     RECOMP_ICALL(MEM32(0x3616FAC8)); /* 0x36156C86: call dword ptr [0x3616fac8] */
   6155     RECOMP_FLAGS_IN();
   6156     eax = MEM32(ebp + (-0x4)); /* 0x36156C8C: mov eax, dword ptr [ebp - 4] */
   6157     /* test LO16(eax), LO16(eax) */ /* 0x36156C8F: test ax, ax */
   6158     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16;
   6159     _cf = 0;
   6160     _flag_k = FK_NARROW(FK_TEST, 16);
   6161     if (TEST_NZ(_flag_a, _flag_b)) goto L_36156CE7; /* 0x36156C92: jne 0x36156ce7 */
   6162 L_36156C94:
   6163     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   6164     ecx = ecx | 0xFFFFFFFFu; /* 0x36156C94: or ecx, 0xffffffff */
   6165     _cf = 0;
   6166     _flag_k = FK_TEST;
   6167     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6168     eax = 0; /* 0x36156C97: xor eax, eax */
   6169     _cf = 0;
   6170     _flag_k = FK_TEST;
   6171     edi = 0x363033BCu; /* 0x36156C99: mov edi, 0x363033bc */
   6172     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; } /* 0x36156C9E: repne scasb al, byte ptr es:[edi] */
   6173     ecx = ~ecx; /* 0x36156CA0: not ecx */
   6174     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6175     ecx = ecx - 1; /* 0x36156CA2: dec ecx */
   6176     _flag_k = FK_DEC;
   6177     edi = ecx; /* 0x36156CA3: mov edi, ecx */
   6178     PUSH32(esp, 1); /* 0x36156CA5: push 1 */
   6179     PUSH32(esp, edi); /* 0x36156CA7: push edi */
   6180     ecx = ebx; /* 0x36156CA8: mov ecx, ebx */
   6181     MEM32(ebp + (-0xC)) = edi; /* 0x36156CAA: mov dword ptr [ebp - 0xc], edi */
   6182     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36156CAD: call dword ptr [0x3616f00c] */
   6183     RECOMP_FLAGS_IN();
   6184     /* test LO8(eax), LO8(eax) */ /* 0x36156CB3: test al, al */
   6185     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6186     _cf = 0;
   6187     _flag_k = FK_NARROW(FK_TEST, 24);
   6188     if (TEST_Z(_flag_a, _flag_b)) goto L_36156E22; /* 0x36156CB5: je 0x36156e22 */
   6189 L_36156CBB:
   6190     ecx = edi; /* 0x36156CBB: mov ecx, edi */
   6191     edi = MEM32(ebx + 0x4); /* 0x36156CBD: mov edi, dword ptr [ebx + 4] */
   6192     edx = ecx; /* 0x36156CC0: mov edx, ecx */
   6193     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36156CC2: shr ecx, 2 */
   6194     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6195     ecx = ecx >> 2u; /* 0x36156CC2: shr ecx, 2 */
   6196     esi = 0x363033BCu; /* 0x36156CC5: mov esi, 0x363033bc */
   6197     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36156CCA: 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; }
   6198     ecx = edx; /* 0x36156CCC: mov ecx, edx */
   6199     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   6200     ecx = ecx & 3; /* 0x36156CCE: and ecx, 3 */
   6201     _cf = 0;
   6202     _flag_k = FK_TEST;
   6203     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36156CD1: 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; }
   6204     ecx = MEM32(ebx + 0x4); /* 0x36156CD3: mov ecx, dword ptr [ebx + 4] */
   6205     esi = MEM32(ebp + 0xC); /* 0x36156CD6: mov esi, dword ptr [ebp + 0xc] */
   6206     eax = edx; /* 0x36156CD9: mov eax, edx */
   6207     MEM32(ebx + 0x8) = eax; /* 0x36156CDB: mov dword ptr [ebx + 8], eax */
   6208     MEM8(eax + ecx) = (uint8_t)(0); /* 0x36156CDE: mov byte ptr [eax + ecx], 0 */
   6209     goto L_36156E22; /* 0x36156CE2: jmp 0x36156e22 */
   6210 L_36156CE7:
   6211     /* cmp LO16(eax), 0x8000u */ /* 0x36156CE7: cmp ax, 0x8000 */
   6212     _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x8000u) << 16;
   6213     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6214     _flag_k = FK_NARROW(FK_CMP, 16);
   6215     if (CMP_AE(_flag_a, _flag_b)) goto L_36156D78; /* 0x36156CEB: jae 0x36156d78 */
   6216 L_36156CF1:
   6217     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
   6218     eax = eax & 0xFFFFu; /* 0x36156CF1: and eax, 0xffff */
   6219     _cf = 0;
   6220     _flag_k = FK_TEST;
   6221     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6222     eax = eax + 1; /* 0x36156CF6: inc eax */
   6223     _flag_k = FK_INC;
   6224     PUSH32(esp, eax); /* 0x36156CF7: push eax */
   6225     RECOMP_ICALL(0x3615FD6Au); /* 0x36156CF8: call 0x3615fd6a */ /* not lifted */
   6226     RECOMP_FLAGS_IN();
   6227     edx = MEM32(ebp + (-0x4)); /* 0x36156CFD: mov edx, dword ptr [ebp - 4] */
   6228     ecx = MEM32(ebp + (-0x8)); /* 0x36156D00: mov ecx, dword ptr [ebp - 8] */
   6229     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6230     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6231     esp = esp + 4; /* 0x36156D03: add esp, 4 */
   6232     _flag_k = FK_ADD;
   6233     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu);
   6234     edx = edx & 0xFFFFu; /* 0x36156D06: and edx, 0xffff */
   6235     _cf = 0;
   6236     _flag_k = FK_TEST;
   6237     esi = eax; /* 0x36156D0C: mov esi, eax */
   6238     PUSH32(esp, edx); /* 0x36156D0E: push edx */
   6239     PUSH32(esp, esi); /* 0x36156D0F: push esi */
   6240     MEM32(ebp + (-0x10)) = esi; /* 0x36156D10: mov dword ptr [ebp - 0x10], esi */
   6241     RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x36156D13: call dword ptr [0x3616fac4] */
   6242     RECOMP_FLAGS_IN();
   6243     eax = MEM32(ebp + (-0x4)); /* 0x36156D19: mov eax, dword ptr [ebp - 4] */
   6244     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
   6245     eax = eax & 0xFFFFu; /* 0x36156D1C: and eax, 0xffff */
   6246     _cf = 0;
   6247     _flag_k = FK_TEST;
   6248     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   6249     ecx = ecx | 0xFFFFFFFFu; /* 0x36156D21: or ecx, 0xffffffff */
   6250     _cf = 0;
   6251     _flag_k = FK_TEST;
   6252     MEM8(eax + esi) = (uint8_t)(0); /* 0x36156D24: mov byte ptr [eax + esi], 0 */
   6253     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6254     eax = 0; /* 0x36156D28: xor eax, eax */
   6255     _cf = 0;
   6256     _flag_k = FK_TEST;
   6257     edi = esi; /* 0x36156D2A: mov edi, esi */
   6258     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; } /* 0x36156D2C: repne scasb al, byte ptr es:[edi] */
   6259     ecx = ~ecx; /* 0x36156D2E: not ecx */
   6260     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6261     ecx = ecx - 1; /* 0x36156D30: dec ecx */
   6262     _flag_k = FK_DEC;
   6263     edi = ecx; /* 0x36156D31: mov edi, ecx */
   6264     PUSH32(esp, 1); /* 0x36156D33: push 1 */
   6265     PUSH32(esp, edi); /* 0x36156D35: push edi */
   6266     ecx = ebx; /* 0x36156D36: mov ecx, ebx */
   6267     MEM32(ebp + (-0xC)) = edi; /* 0x36156D38: mov dword ptr [ebp - 0xc], edi */
   6268     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36156D3B: call dword ptr [0x3616f00c] */
   6269     RECOMP_FLAGS_IN();
   6270     /* test LO8(eax), LO8(eax) */ /* 0x36156D41: test al, al */
   6271     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6272     _cf = 0;
   6273     _flag_k = FK_NARROW(FK_TEST, 24);
   6274     if (TEST_Z(_flag_a, _flag_b)) goto L_36156D67; /* 0x36156D43: je 0x36156d67 */
   6275 L_36156D45:
   6276     ecx = edi; /* 0x36156D45: mov ecx, edi */
   6277     edi = MEM32(ebx + 0x4); /* 0x36156D47: mov edi, dword ptr [ebx + 4] */
   6278     edx = ecx; /* 0x36156D4A: mov edx, ecx */
   6279     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36156D4C: shr ecx, 2 */
   6280     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6281     ecx = ecx >> 2u; /* 0x36156D4C: shr ecx, 2 */
   6282     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36156D4F: 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; }
   6283     ecx = edx; /* 0x36156D51: mov ecx, edx */
   6284     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   6285     ecx = ecx & 3; /* 0x36156D53: and ecx, 3 */
   6286     _cf = 0;
   6287     _flag_k = FK_TEST;
   6288     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36156D56: 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; }
   6289     ecx = MEM32(ebx + 0x4); /* 0x36156D58: mov ecx, dword ptr [ebx + 4] */
   6290     esi = MEM32(ebp + (-0x10)); /* 0x36156D5B: mov esi, dword ptr [ebp - 0x10] */
   6291     eax = edx; /* 0x36156D5E: mov eax, edx */
   6292     MEM32(ebx + 0x8) = eax; /* 0x36156D60: mov dword ptr [ebx + 8], eax */
   6293     MEM8(eax + ecx) = (uint8_t)(0); /* 0x36156D63: mov byte ptr [eax + ecx], 0 */
   6294 L_36156D67:
   6295     PUSH32(esp, esi); /* 0x36156D67: push esi */
   6296     RECOMP_ICALL(0x3615FCC4u); /* 0x36156D68: call 0x3615fcc4 */ /* not lifted */
   6297     RECOMP_FLAGS_IN();
   6298     esi = MEM32(ebp + 0xC); /* 0x36156D6D: mov esi, dword ptr [ebp + 0xc] */
   6299     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6301     esp = esp + 4; /* 0x36156D70: add esp, 4 */
   6302     _flag_k = FK_ADD;
   6303     goto L_36156E22; /* 0x36156D73: jmp 0x36156e22 */
   6304 L_36156D78:
   6305     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   6306     ecx = ecx | 0xFFFFFFFFu; /* 0x36156D78: or ecx, 0xffffffff */
   6307     _cf = 0;
   6308     _flag_k = FK_TEST;
   6309     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6310     eax = 0; /* 0x36156D7B: xor eax, eax */
   6311     _cf = 0;
   6312     _flag_k = FK_TEST;
   6313     edi = 0x363033BCu; /* 0x36156D7D: mov edi, 0x363033bc */
   6314     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; } /* 0x36156D82: repne scasb al, byte ptr es:[edi] */
   6315     ecx = ~ecx; /* 0x36156D84: not ecx */
   6316     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6317     ecx = ecx - 1; /* 0x36156D86: dec ecx */
   6318     _flag_k = FK_DEC;
   6319     edi = ecx; /* 0x36156D87: mov edi, ecx */
   6320     /* cmp edi, 0xFFFFFFFDu */ /* 0x36156D89: cmp edi, -3 */
   6321     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFDu);
   6322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6323     _flag_k = FK_CMP;
   6324     MEM32(ebp + (-0x10)) = edi; /* 0x36156D8C: mov dword ptr [ebp - 0x10], edi */
   6325     if (CMP_BE(_flag_a, _flag_b)) goto L_36156D97; /* 0x36156D8F: jbe 0x36156d97 */
   6326 L_36156D91:
   6327     RECOMP_ICALL(MEM32(0x3616F104)); /* 0x36156D91: call dword ptr [0x3616f104] */
   6328     RECOMP_FLAGS_IN();
   6329 L_36156D97:
   6330     eax = MEM32(ebx + 0x4); /* 0x36156D97: mov eax, dword ptr [ebx + 4] */
   6331     /* test eax, eax */ /* 0x36156D9A: test eax, eax */
   6332     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6333     _cf = 0;
   6334     _flag_k = FK_TEST;
   6335     MEM32(ebx + 0x8) = 0; /* 0x36156D9C: mov dword ptr [ebx + 8], 0 */
   6336     if (TEST_Z(_flag_a, _flag_b)) goto L_36156DC0; /* 0x36156DA3: je 0x36156dc0 */
   6337 L_36156DA5:
   6338     SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x36156DA5: mov al, byte ptr [eax - 1] */
   6339     /* test LO8(eax), LO8(eax) */ /* 0x36156DA8: test al, al */
   6340     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6341     _cf = 0;
   6342     _flag_k = FK_NARROW(FK_TEST, 24);
   6343     if (TEST_Z(_flag_a, _flag_b)) goto L_36156DC0; /* 0x36156DAA: je 0x36156dc0 */
   6344 L_36156DAC:
   6345     /* cmp LO8(eax), 0xFFu */ /* 0x36156DAC: cmp al, 0xff */
   6346     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   6347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6348     _flag_k = FK_NARROW(FK_CMP, 24);
   6349     if (CMP_EQ(_flag_a, _flag_b)) goto L_36156DC0; /* 0x36156DAE: je 0x36156dc0 */
   6350 L_36156DB0:
   6351     /* test edi, edi */ /* 0x36156DB0: test edi, edi */
   6352     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6353     _cf = 0;
   6354     _flag_k = FK_TEST;
   6355     if (TEST_NZ(_flag_a, _flag_b)) goto L_36156DE6; /* 0x36156DB2: jne 0x36156de6 */
   6356 L_36156DB4:
   6357     PUSH32(esp, 1); /* 0x36156DB4: push 1 */
   6358     ecx = ebx; /* 0x36156DB6: mov ecx, ebx */
   6359     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36156DB8: call dword ptr [0x3616f100] */
   6360     RECOMP_FLAGS_IN();
   6361     goto L_36156E17; /* 0x36156DBE: jmp 0x36156e17 */
   6362 L_36156DC0:
   6363     /* test edi, edi */ /* 0x36156DC0: test edi, edi */
   6364     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6365     _cf = 0;
   6366     _flag_k = FK_TEST;
   6367     if (TEST_NZ(_flag_a, _flag_b)) goto L_36156DD0; /* 0x36156DC2: jne 0x36156dd0 */
   6368 L_36156DC4:
   6369     PUSH32(esp, 1); /* 0x36156DC4: push 1 */
   6370     ecx = ebx; /* 0x36156DC6: mov ecx, ebx */
   6371     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36156DC8: call dword ptr [0x3616f100] */
   6372     RECOMP_FLAGS_IN();
   6373     goto L_36156E17; /* 0x36156DCE: jmp 0x36156e17 */
   6374 L_36156DD0:
   6375     eax = MEM32(ebx + 0xC); /* 0x36156DD0: mov eax, dword ptr [ebx + 0xc] */
   6376     /* cmp eax, 0x1Fu */ /* 0x36156DD3: cmp eax, 0x1f */
   6377     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu);
   6378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6379     _flag_k = FK_CMP;
   6380     if (CMP_A(_flag_a, _flag_b)) goto L_36156DDC; /* 0x36156DD6: ja 0x36156ddc */
   6381 L_36156DD8:
   6382     /* cmp eax, edi */ /* 0x36156DD8: cmp eax, edi */
   6383     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6385     _flag_k = FK_CMP;
   6386     if (CMP_AE(_flag_a, _flag_b)) goto L_36156DEF; /* 0x36156DDA: jae 0x36156def */
   6387 L_36156DDC:
   6388     PUSH32(esp, 1); /* 0x36156DDC: push 1 */
   6389     ecx = ebx; /* 0x36156DDE: mov ecx, ebx */
   6390     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36156DE0: call dword ptr [0x3616f100] */
   6391     RECOMP_FLAGS_IN();
   6392 L_36156DE6:
   6393     PUSH32(esp, edi); /* 0x36156DE6: push edi */
   6394     ecx = ebx; /* 0x36156DE7: mov ecx, ebx */
   6395     RECOMP_ICALL(MEM32(0x3616F048)); /* 0x36156DE9: call dword ptr [0x3616f048] */
   6396     RECOMP_FLAGS_IN();
   6397 L_36156DEF:
   6398     eax = MEM32(ebp + (-0x10)); /* 0x36156DEF: mov eax, dword ptr [ebp - 0x10] */
   6399     ecx = edi; /* 0x36156DF2: mov ecx, edi */
   6400     edi = MEM32(ebx + 0x4); /* 0x36156DF4: mov edi, dword ptr [ebx + 4] */
   6401     edx = ecx; /* 0x36156DF7: mov edx, ecx */
   6402     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36156DF9: shr ecx, 2 */
   6403     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6404     ecx = ecx >> 2u; /* 0x36156DF9: shr ecx, 2 */
   6405     esi = 0x363033BCu; /* 0x36156DFC: mov esi, 0x363033bc */
   6406     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36156E01: 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; }
   6407     ecx = edx; /* 0x36156E03: mov ecx, edx */
   6408     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   6409     ecx = ecx & 3; /* 0x36156E05: and ecx, 3 */
   6410     _cf = 0;
   6411     _flag_k = FK_TEST;
   6412     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36156E08: 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; }
   6413     ecx = MEM32(ebx + 0x4); /* 0x36156E0A: mov ecx, dword ptr [ebx + 4] */
   6414     esi = MEM32(ebp + 0xC); /* 0x36156E0D: mov esi, dword ptr [ebp + 0xc] */
   6415     MEM32(ebx + 0x8) = eax; /* 0x36156E10: mov dword ptr [ebx + 8], eax */
   6416     MEM8(eax + ecx) = (uint8_t)(0); /* 0x36156E13: mov byte ptr [eax + ecx], 0 */
   6417 L_36156E17:
   6418     ecx = MEM32(ebp + (-0x8)); /* 0x36156E17: mov ecx, dword ptr [ebp - 8] */
   6419     PUSH32(esp, 4); /* 0x36156E1A: push 4 */
   6420     RECOMP_ICALL(MEM32(0x3616FAE4)); /* 0x36156E1C: call dword ptr [0x3616fae4] */
   6421     RECOMP_FLAGS_IN();
   6422 L_36156E22:
   6423     ecx = MEM32(ebp + (-0x8)); /* 0x36156E22: mov ecx, dword ptr [ebp - 8] */
   6424     edx = esi + 0x1C; /* 0x36156E25: lea edx, [esi + 0x1c] */
   6425     PUSH32(esp, edx); /* 0x36156E28: push edx */
   6426     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u);
   6427     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6428     esi = esi + 0x20u; /* 0x36156E29: add esi, 0x20 */
   6429     _flag_k = FK_ADD;
   6430     PUSH32(esp, esi); /* 0x36156E2C: push esi */
   6431     esi = MEM32(0x3616FA8C); /* 0x36156E2D: mov esi, dword ptr [0x3616fa8c] */
   6432     RECOMP_ICALL(esi); /* 0x36156E33: call esi */
   6433     RECOMP_FLAGS_IN();
   6434     ecx = eax; /* 0x36156E35: mov ecx, eax */
   6435     RECOMP_ICALL(esi); /* 0x36156E37: call esi */
   6436     RECOMP_FLAGS_IN();
   6437     eax = MEM32(ebp + 0x8); /* 0x36156E39: mov eax, dword ptr [ebp + 8] */
   6438     edi = POP32_VAL(esp); /* 0x36156E3C: pop edi */
   6439     esi = POP32_VAL(esp); /* 0x36156E3D: pop esi */
   6440     ebx = POP32_VAL(esp); /* 0x36156E3E: pop ebx */
   6441     esp = ebp; /* 0x36156E3F: mov esp, ebp */
   6442     ebp = POP32_VAL(esp); /* 0x36156E41: pop ebp */
   6443     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156E42: ret  */
   6444     RECOMP_REGS_OUT();
   6445 }
   6446 
   6447 void sub_36156E22(void) {
   6448     int _fpu_cmp = 0;
   6449     uint32_t _cf = 0;
   6450     int _df = 1;
   6451     uint32_t _flag_k = FK_NONE;
   6452     uint32_t _flag_a = 0, _flag_b = 0;
   6453     uint32_t _itail_tgt = 0;
   6454     RECOMP_REGS_LOCALS
   6455     RECOMP_ENTER(0x36156E22u);
   6456 
   6457 L_36156E22:
   6458     ecx = MEM32(ebp + (-0x8)); /* 0x36156E22: mov ecx, dword ptr [ebp - 8] */
   6459     edx = esi + 0x1C; /* 0x36156E25: lea edx, [esi + 0x1c] */
   6460     PUSH32(esp, edx); /* 0x36156E28: push edx */
   6461     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u);
   6462     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6463     esi = esi + 0x20u; /* 0x36156E29: add esi, 0x20 */
   6464     _flag_k = FK_ADD;
   6465     PUSH32(esp, esi); /* 0x36156E2C: push esi */
   6466     esi = MEM32(0x3616FA8C); /* 0x36156E2D: mov esi, dword ptr [0x3616fa8c] */
   6467     RECOMP_ICALL(esi); /* 0x36156E33: call esi */
   6468     RECOMP_FLAGS_IN();
   6469     ecx = eax; /* 0x36156E35: mov ecx, eax */
   6470     RECOMP_ICALL(esi); /* 0x36156E37: call esi */
   6471     RECOMP_FLAGS_IN();
   6472     eax = MEM32(ebp + 0x8); /* 0x36156E39: mov eax, dword ptr [ebp + 8] */
   6473     edi = POP32_VAL(esp); /* 0x36156E3C: pop edi */
   6474     esi = POP32_VAL(esp); /* 0x36156E3D: pop esi */
   6475     ebx = POP32_VAL(esp); /* 0x36156E3E: pop ebx */
   6476     esp = ebp; /* 0x36156E3F: mov esp, ebp */
   6477     ebp = POP32_VAL(esp); /* 0x36156E41: pop ebp */
   6478     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156E42: ret  */
   6479     RECOMP_REGS_OUT();
   6480 }
   6481 
   6482 void sub_36156E50(void) {
   6483     int _fpu_cmp = 0;
   6484     uint32_t _cf = 0;
   6485     int _df = 1;
   6486     uint32_t _flag_k = FK_NONE;
   6487     uint32_t _flag_a = 0, _flag_b = 0;
   6488     uint32_t _itail_tgt = 0;
   6489     RECOMP_REGS_LOCALS
   6490     RECOMP_ENTER(0x36156E50u);
   6491 
   6492 L_36156E50:
   6493     PUSH32(esp, ebp); /* 0x36156E50: push ebp */
   6494     ebp = esp; /* 0x36156E51: mov ebp, esp */
   6495     ecx = MEM32(ebp + 0x8); /* 0x36156E53: mov ecx, dword ptr [ebp + 8] */
   6496     PUSH32(esp, ebx); /* 0x36156E56: push ebx */
   6497     PUSH32(esp, esi); /* 0x36156E57: push esi */
   6498     esi = MEM32(ebp + 0xC); /* 0x36156E58: mov esi, dword ptr [ebp + 0xc] */
   6499     eax = MEM32(esi); /* 0x36156E5B: mov eax, dword ptr [esi] */
   6500     PUSH32(esp, edi); /* 0x36156E5D: push edi */
   6501     PUSH32(esp, eax); /* 0x36156E5E: push eax */
   6502     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36156E5F: call dword ptr [0x3616faec] */
   6503     RECOMP_FLAGS_IN();
   6504     ecx = esi + 0x4; /* 0x36156E65: lea ecx, [esi + 4] */
   6505     PUSH32(esp, ecx); /* 0x36156E68: push ecx */
   6506     PUSH32(esp, eax); /* 0x36156E69: push eax */
   6507     RECOMP_ICALL(0x3615B840u); /* 0x36156E6A: call 0x3615b840 */ /* not lifted */
   6508     RECOMP_FLAGS_IN();
   6509     edi = MEM32(esi + 0x14); /* 0x36156E6F: mov edi, dword ptr [esi + 0x14] */
   6510     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6511     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6512     esp = esp + 8; /* 0x36156E72: add esp, 8 */
   6513     _flag_k = FK_ADD;
   6514     /* cmp edi, 0xFFFFu */ /* 0x36156E75: cmp edi, 0xffff */
   6515     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu);
   6516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6517     _flag_k = FK_CMP;
   6518     ebx = eax; /* 0x36156E7B: mov ebx, eax */
   6519     if (CMP_B(_flag_a, _flag_b)) goto L_36156E84; /* 0x36156E7D: jb 0x36156e84 */
   6520 L_36156E7F:
   6521     edi = 0xFFFFu; /* 0x36156E7F: mov edi, 0xffff */
   6522 L_36156E84:
   6523     PUSH32(esp, edi); /* 0x36156E84: push edi */
   6524     ecx = ebx; /* 0x36156E85: mov ecx, ebx */
   6525     RECOMP_ICALL(MEM32(0x3616FACC)); /* 0x36156E87: call dword ptr [0x3616facc] */
   6526     RECOMP_FLAGS_IN();
   6527     /* test LO16(edi), LO16(edi) */ /* 0x36156E8D: test di, di */
   6528     _flag_a = (uint32_t)(LO16(edi)) << 16; _flag_b = (uint32_t)(LO16(edi)) << 16;
   6529     _cf = 0;
   6530     _flag_k = FK_NARROW(FK_TEST, 16);
   6531     if (TEST_Z(_flag_a, _flag_b)) goto L_36156EAE; /* 0x36156E90: je 0x36156eae */
   6532 L_36156E92:
   6533     eax = MEM32(esi + 0x10); /* 0x36156E92: mov eax, dword ptr [esi + 0x10] */
   6534     /* test eax, eax */ /* 0x36156E95: test eax, eax */
   6535     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6536     _cf = 0;
   6537     _flag_k = FK_TEST;
   6538     if (TEST_NZ(_flag_a, _flag_b)) goto L_36156E9E; /* 0x36156E97: jne 0x36156e9e */
   6539 L_36156E99:
   6540     eax = MEM32(0x3616F10C); /* 0x36156E99: mov eax, dword ptr [0x3616f10c] */
   6541 L_36156E9E:
   6542     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu);
   6543     edi = edi & 0xFFFFu; /* 0x36156E9E: and edi, 0xffff */
   6544     _cf = 0;
   6545     _flag_k = FK_TEST;
   6546     PUSH32(esp, edi); /* 0x36156EA4: push edi */
   6547     PUSH32(esp, eax); /* 0x36156EA5: push eax */
   6548     ecx = ebx; /* 0x36156EA6: mov ecx, ebx */
   6549     RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x36156EA8: call dword ptr [0x3616fab0] */
   6550     RECOMP_FLAGS_IN();
   6551 L_36156EAE:
   6552     edx = MEM32(esi + 0x1C); /* 0x36156EAE: mov edx, dword ptr [esi + 0x1c] */
   6553     eax = MEM32(esi + 0x20); /* 0x36156EB1: mov eax, dword ptr [esi + 0x20] */
   6554     esi = MEM32(0x3616FAEC); /* 0x36156EB4: mov esi, dword ptr [0x3616faec] */
   6555     PUSH32(esp, edx); /* 0x36156EBA: push edx */
   6556     PUSH32(esp, eax); /* 0x36156EBB: push eax */
   6557     ecx = ebx; /* 0x36156EBC: mov ecx, ebx */
   6558     RECOMP_ICALL(esi); /* 0x36156EBE: call esi */
   6559     RECOMP_FLAGS_IN();
   6560     ecx = eax; /* 0x36156EC0: mov ecx, eax */
   6561     RECOMP_ICALL(esi); /* 0x36156EC2: call esi */
   6562     RECOMP_FLAGS_IN();
   6563     eax = MEM32(ebp + 0x8); /* 0x36156EC4: mov eax, dword ptr [ebp + 8] */
   6564     edi = POP32_VAL(esp); /* 0x36156EC7: pop edi */
   6565     esi = POP32_VAL(esp); /* 0x36156EC8: pop esi */
   6566     ebx = POP32_VAL(esp); /* 0x36156EC9: pop ebx */
   6567     ebp = POP32_VAL(esp); /* 0x36156ECA: pop ebp */
   6568     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156ECB: ret  */
   6569     RECOMP_REGS_OUT();
   6570 }
   6571 
   6572 void sub_36156ED0(void) {
   6573     int _fpu_cmp = 0;
   6574     uint32_t _cf = 0;
   6575     int _df = 1;
   6576     uint32_t _flag_k = FK_NONE;
   6577     uint32_t _flag_a = 0, _flag_b = 0;
   6578     uint32_t _itail_tgt = 0;
   6579     RECOMP_REGS_LOCALS
   6580     RECOMP_ENTER(0x36156ED0u);
   6581 
   6582 L_36156ED0:
   6583     PUSH32(esp, ebp); /* 0x36156ED0: push ebp */
   6584     ebp = esp; /* 0x36156ED1: mov ebp, esp */
   6585     eax = MEM32(ebp + 0xC); /* 0x36156ED3: mov eax, dword ptr [ebp + 0xc] */
   6586     PUSH32(esp, esi); /* 0x36156ED6: push esi */
   6587     esi = MEM32(ebp + 0x8); /* 0x36156ED7: mov esi, dword ptr [ebp + 8] */
   6588     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   6589     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6590     eax = eax + 4; /* 0x36156EDA: add eax, 4 */
   6591     _flag_k = FK_ADD;
   6592     PUSH32(esp, eax); /* 0x36156EDD: push eax */
   6593     PUSH32(esp, esi); /* 0x36156EDE: push esi */
   6594     RECOMP_ICALL(0x36156F60u); /* 0x36156EDF: call 0x36156f60 */ /* not lifted */
   6595     RECOMP_FLAGS_IN();
   6596     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6598     esp = esp + 8; /* 0x36156EE4: add esp, 8 */
   6599     _flag_k = FK_ADD;
   6600     eax = esi; /* 0x36156EE7: mov eax, esi */
   6601     esi = POP32_VAL(esp); /* 0x36156EE9: pop esi */
   6602     ebp = POP32_VAL(esp); /* 0x36156EEA: pop ebp */
   6603     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156EEB: ret  */
   6604     RECOMP_REGS_OUT();
   6605 }
   6606 
   6607 void sub_36156EF0(void) {
   6608     int _fpu_cmp = 0;
   6609     uint32_t _cf = 0;
   6610     int _df = 1;
   6611     uint32_t _flag_k = FK_NONE;
   6612     uint32_t _flag_a = 0, _flag_b = 0;
   6613     uint32_t _itail_tgt = 0;
   6614     RECOMP_REGS_LOCALS
   6615     RECOMP_ENTER(0x36156EF0u);
   6616 
   6617 L_36156EF0:
   6618     PUSH32(esp, ebp); /* 0x36156EF0: push ebp */
   6619     ebp = esp; /* 0x36156EF1: mov ebp, esp */
   6620     eax = MEM32(ebp + 0xC); /* 0x36156EF3: mov eax, dword ptr [ebp + 0xc] */
   6621     PUSH32(esp, ebx); /* 0x36156EF6: push ebx */
   6622     ebx = MEM32(eax + 0xC); /* 0x36156EF7: mov ebx, dword ptr [eax + 0xc] */
   6623     PUSH32(esp, esi); /* 0x36156EFA: push esi */
   6624     esi = MEM32(eax + 0x8); /* 0x36156EFB: mov esi, dword ptr [eax + 8] */
   6625     /* test esi, esi */ /* 0x36156EFE: test esi, esi */
   6626     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6627     _cf = 0;
   6628     _flag_k = FK_TEST;
   6629     PUSH32(esp, edi); /* 0x36156F00: push edi */
   6630     if (TEST_NZ(_flag_a, _flag_b)) goto L_36156F07; /* 0x36156F01: jne 0x36156f07 */
   6631 L_36156F03:
   6632     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6633     edx = 0; /* 0x36156F03: xor edx, edx */
   6634     _cf = 0;
   6635     _flag_k = FK_TEST;
   6636     goto L_36156F1C; /* 0x36156F05: jmp 0x36156f1c */
   6637 L_36156F07:
   6638     ecx = ebx; /* 0x36156F07: mov ecx, ebx */
   6639     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   6640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6641     ecx = ecx - esi; /* 0x36156F09: sub ecx, esi */
   6642     _flag_k = FK_CMP;
   6643     eax = 0x38E38E39u; /* 0x36156F0B: mov eax, 0x38e38e39 */
   6644     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36156F10: imul ecx */
   6645       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6646       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6647     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36156F12: sar edx, 3 */
   6648     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6649     edx = (uint32_t)((int32_t)edx >> 3u);
   6650     eax = edx; /* 0x36156F15: mov eax, edx */
   6651     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36156F17: shr eax, 0x1f */
   6652     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6653     eax = eax >> 31u; /* 0x36156F17: shr eax, 0x1f */
   6654     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6655     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6656     edx = edx + eax; /* 0x36156F1A: add edx, eax */
   6657     _flag_k = FK_ADD;
   6658 L_36156F1C:
   6659     edi = MEM32(ebp + 0x8); /* 0x36156F1C: mov edi, dword ptr [ebp + 8] */
   6660     eax = edx + 0x1; /* 0x36156F1F: lea eax, [edx + 1] */
   6661     ecx = eax; /* 0x36156F22: mov ecx, eax */
   6662     if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x36156F24: shl ecx, 6 */
   6663     if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6664     ecx = ecx << 6u; /* 0x36156F24: shl ecx, 6 */
   6665     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6667     ecx = ecx - eax; /* 0x36156F27: sub ecx, eax */
   6668     _flag_k = FK_CMP;
   6669     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x36156F29: shl ecx, 4 */
   6670     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6671     ecx = ecx << 4u; /* 0x36156F29: shl ecx, 4 */
   6672     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6673     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6674     ecx = ecx + eax; /* 0x36156F2C: add ecx, eax */
   6675     _flag_k = FK_ADD;
   6676     PUSH32(esp, ecx); /* 0x36156F2E: push ecx */
   6677     ecx = edi; /* 0x36156F2F: mov ecx, edi */
   6678     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36156F31: call dword ptr [0x3616faec] */
   6679     RECOMP_FLAGS_IN();
   6680     /* cmp esi, ebx */ /* 0x36156F37: cmp esi, ebx */
   6681     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6683     _flag_k = FK_CMP;
   6684     if (CMP_EQ(_flag_a, _flag_b)) goto L_36156F58; /* 0x36156F39: je 0x36156f58 */
   6685 L_36156F3B:
   6686     PUSH32(esp, esi); /* 0x36156F3B: push esi */
   6687     PUSH32(esp, edi); /* 0x36156F3C: push edi */
   6688     RECOMP_ICALL(0x36156E50u); /* 0x36156F3D: call 0x36156e50 */ /* not lifted */
   6689     RECOMP_FLAGS_IN();
   6690     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6691     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6692     esp = esp + 8; /* 0x36156F42: add esp, 8 */
   6693     _flag_k = FK_ADD;
   6694     ecx = edi; /* 0x36156F45: mov ecx, edi */
   6695     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36156F47: call dword ptr [0x3616fadc] */
   6696     RECOMP_FLAGS_IN();
   6697     /* test eax, eax */ /* 0x36156F4D: test eax, eax */
   6698     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6699     _cf = 0;
   6700     _flag_k = FK_TEST;
   6701     if (TEST_Z(_flag_a, _flag_b)) goto L_36156F58; /* 0x36156F4F: je 0x36156f58 */
   6702 L_36156F51:
   6703     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   6704     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6705     esi = esi + 0x24u; /* 0x36156F51: add esi, 0x24 */
   6706     _flag_k = FK_ADD;
   6707     /* cmp esi, ebx */ /* 0x36156F54: cmp esi, ebx */
   6708     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6710     _flag_k = FK_CMP;
   6711     RECOMP_BACKEDGE();
   6712     if (CMP_NE(_flag_a, _flag_b)) goto L_36156F3B; /* 0x36156F56: jne 0x36156f3b */
   6713 L_36156F58:
   6714     eax = edi; /* 0x36156F58: mov eax, edi */
   6715     edi = POP32_VAL(esp); /* 0x36156F5A: pop edi */
   6716     esi = POP32_VAL(esp); /* 0x36156F5B: pop esi */
   6717     ebx = POP32_VAL(esp); /* 0x36156F5C: pop ebx */
   6718     ebp = POP32_VAL(esp); /* 0x36156F5D: pop ebp */
   6719     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36156F5E: ret  */
   6720     RECOMP_REGS_OUT();
   6721 }
   6722 
   6723 void sub_36156F60(void) {
   6724     int _fpu_cmp = 0;
   6725     uint32_t _cf = 0;
   6726     int _df = 1;
   6727     uint32_t _flag_k = FK_NONE;
   6728     uint32_t _flag_a = 0, _flag_b = 0;
   6729     uint32_t _itail_tgt = 0;
   6730     RECOMP_REGS_LOCALS
   6731     RECOMP_ENTER(0x36156F60u);
   6732 
   6733 L_36156F60:
   6734     PUSH32(esp, ebp); /* 0x36156F60: push ebp */
   6735     ebp = esp; /* 0x36156F61: mov ebp, esp */
   6736     PUSH32(esp, 0xFFFFFFFFu); /* 0x36156F63: push -1 */
   6737     PUSH32(esp, 0x3616DCC8u); /* 0x36156F65: push 0x3616dcc8 */
   6738     eax = MEM32(FS_BASE + (0)); /* 0x36156F6A: mov eax, dword ptr fs:[0] */
   6739     PUSH32(esp, eax); /* 0x36156F70: push eax */
   6740     MEM32(FS_BASE + (0)) = esp; /* 0x36156F71: mov dword ptr fs:[0], esp */
   6741     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   6742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6743     esp = esp - 0x2Cu; /* 0x36156F78: sub esp, 0x2c */
   6744     _flag_k = FK_CMP;
   6745     PUSH32(esp, esi); /* 0x36156F7B: push esi */
   6746     PUSH32(esp, edi); /* 0x36156F7C: push edi */
   6747     edi = MEM32(ebp + 0x8); /* 0x36156F7D: mov edi, dword ptr [ebp + 8] */
   6748     eax = ebp + (-0x14); /* 0x36156F80: lea eax, [ebp - 0x14] */
   6749     PUSH32(esp, eax); /* 0x36156F83: push eax */
   6750     ecx = edi; /* 0x36156F84: mov ecx, edi */
   6751     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36156F86: call dword ptr [0x3616fa8c] */
   6752     RECOMP_FLAGS_IN();
   6753     ecx = MEM32(ebp + (-0x14)); /* 0x36156F8C: mov ecx, dword ptr [ebp - 0x14] */
   6754     eax = 0x03CE4585u; /* 0x36156F8F: mov eax, 0x3ce4585 */
   6755     { uint64_t _r = (uint64_t)eax * (uint32_t)(ecx); /* 0x36156F94: mul ecx */
   6756       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0;
   6757       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6758     esi = ecx; /* 0x36156F96: mov esi, ecx */
   6759     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   6760     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6761     esi = esi - edx; /* 0x36156F98: sub esi, edx */
   6762     _flag_k = FK_CMP;
   6763     if (1u) _cf = (((esi) >> 0) & 1u); /* 0x36156F9A: shr esi, 1 */
   6764     if (1u) { _flag_a = recomp_flags_pack((esi >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6765     esi = esi >> 1u; /* 0x36156F9A: shr esi, 1 */
   6766     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   6767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6768     esi = esi + edx; /* 0x36156F9C: add esi, edx */
   6769     _flag_k = FK_ADD;
   6770     eax = ecx; /* 0x36156F9E: mov eax, ecx */
   6771     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6772     edx = 0; /* 0x36156FA0: xor edx, edx */
   6773     _cf = 0;
   6774     _flag_k = FK_TEST;
   6775     ecx = 0x3F1u; /* 0x36156FA2: mov ecx, 0x3f1 */
   6776     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x36156FA7: div ecx */
   6777       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   6778       else { eax = 0; edx = 0; } }
   6779     if (9u) _cf = (((esi) >> 8) & 1u); /* 0x36156FA9: shr esi, 9 */
   6780     if (9u) { _flag_a = recomp_flags_pack((esi >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6781     esi = esi >> 9u; /* 0x36156FA9: shr esi, 9 */
   6782     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   6783     esi = esi - 1; /* 0x36156FAC: dec esi */
   6784     _flag_k = FK_DEC;
   6785     /* test edx, edx */ /* 0x36156FAD: test edx, edx */
   6786     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   6787     _cf = 0;
   6788     _flag_k = FK_TEST;
   6789     if (TEST_NZ(_flag_a, _flag_b)) goto L_361570B7; /* 0x36156FAF: jne 0x361570b7 */
   6790 L_36156FB5:
   6791     /* cmp esi, 0x7530u */ /* 0x36156FB5: cmp esi, 0x7530 */
   6792     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x7530u);
   6793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6794     _flag_k = FK_CMP;
   6795     if (CMP_A(_flag_a, _flag_b)) goto L_361570B7; /* 0x36156FBB: ja 0x361570b7 */
   6796 L_36156FC1:
   6797     PUSH32(esp, ebx); /* 0x36156FC1: push ebx */
   6798     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6799     ebx = 0; /* 0x36156FC2: xor ebx, ebx */
   6800     _cf = 0;
   6801     _flag_k = FK_TEST;
   6802     /* cmp esi, ebx */ /* 0x36156FC4: cmp esi, ebx */
   6803     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6805     _flag_k = FK_CMP;
   6806     MEM32(ebp + (-0x10)) = ebx; /* 0x36156FC6: mov dword ptr [ebp - 0x10], ebx */
   6807     if (CMP_BE(_flag_a, _flag_b)) goto L_361570A3; /* 0x36156FC9: jbe 0x361570a3 */
   6808 L_36156FCF:
   6809     edi = MEM32(ebp + 0xC); /* 0x36156FCF: mov edi, dword ptr [ebp + 0xc] */
   6810 L_36156FD2:
   6811     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36156FD2: mov dl, byte ptr [ebp + 0xb] */
   6812     MEM32(ebp + (-0x34)) = ebx; /* 0x36156FD5: mov dword ptr [ebp - 0x34], ebx */
   6813     MEM32(ebp + (-0x30)) = ebx; /* 0x36156FD8: mov dword ptr [ebp - 0x30], ebx */
   6814     MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(edx)); /* 0x36156FDB: mov byte ptr [ebp - 0x2c], dl */
   6815     MEM32(ebp + (-0x28)) = ebx; /* 0x36156FDE: mov dword ptr [ebp - 0x28], ebx */
   6816     MEM32(ebp + (-0x24)) = ebx; /* 0x36156FE1: mov dword ptr [ebp - 0x24], ebx */
   6817     MEM32(ebp + (-0x20)) = ebx; /* 0x36156FE4: mov dword ptr [ebp - 0x20], ebx */
   6818     ecx = MEM32(ebp + 0x8); /* 0x36156FE7: mov ecx, dword ptr [ebp + 8] */
   6819     eax = ebp + (-0x38); /* 0x36156FEA: lea eax, [ebp - 0x38] */
   6820     PUSH32(esp, eax); /* 0x36156FED: push eax */
   6821     PUSH32(esp, ecx); /* 0x36156FEE: push ecx */
   6822     MEM32(ebp + (-0x4)) = ebx; /* 0x36156FEF: mov dword ptr [ebp - 4], ebx */
   6823     RECOMP_ICALL(0x36156C50u); /* 0x36156FF2: call 0x36156c50 */ /* not lifted */
   6824     RECOMP_FLAGS_IN();
   6825     ecx = MEM32(ebp + 0x8); /* 0x36156FF7: mov ecx, dword ptr [ebp + 8] */
   6826     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6827     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6828     esp = esp + 8; /* 0x36156FFA: add esp, 8 */
   6829     _flag_k = FK_ADD;
   6830     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36156FFD: call dword ptr [0x3616fadc] */
   6831     RECOMP_FLAGS_IN();
   6832     /* test eax, eax */ /* 0x36157003: test eax, eax */
   6833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6834     _cf = 0;
   6835     _flag_k = FK_TEST;
   6836     if (TEST_Z(_flag_a, _flag_b)) goto L_3615706E; /* 0x36157005: je 0x3615706e */
   6837 L_36157007:
   6838     eax = MEM32(edi + 0x8); /* 0x36157007: mov eax, dword ptr [edi + 8] */
   6839     edx = ebp + (-0x38); /* 0x3615700A: lea edx, [ebp - 0x38] */
   6840     PUSH32(esp, edx); /* 0x3615700D: push edx */
   6841     PUSH32(esp, 1); /* 0x3615700E: push 1 */
   6842     PUSH32(esp, eax); /* 0x36157010: push eax */
   6843     ecx = edi; /* 0x36157011: mov ecx, edi */
   6844     RECOMP_ICALL(0x361570E0u); /* 0x36157013: call 0x361570e0 */ /* not lifted */
   6845     RECOMP_FLAGS_IN();
   6846     eax = MEM32(ebp + (-0x28)); /* 0x36157018: mov eax, dword ptr [ebp - 0x28] */
   6847     /* cmp eax, ebx */ /* 0x3615701B: cmp eax, ebx */
   6848     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6850     _flag_k = FK_CMP;
   6851     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3615701D: mov dword ptr [ebp - 4], 0xffffffff */
   6852     if (CMP_EQ(_flag_a, _flag_b)) goto L_36157042; /* 0x36157024: je 0x36157042 */
   6853 L_36157026:
   6854     ecx = eax + (-0x1); /* 0x36157026: lea ecx, [eax - 1] */
   6855     SET_LO8(eax, MEM8(ecx)); /* 0x36157029: mov al, byte ptr [ecx] */
   6856     /* cmp LO8(eax), LO8(ebx) */ /* 0x3615702B: cmp al, bl */
   6857     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6859     _flag_k = FK_NARROW(FK_CMP, 24);
   6860     if (CMP_EQ(_flag_a, _flag_b)) goto L_36157039; /* 0x3615702D: je 0x36157039 */
   6861 L_3615702F:
   6862     /* cmp LO8(eax), 0xFFu */ /* 0x3615702F: cmp al, 0xff */
   6863     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   6864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6865     _flag_k = FK_NARROW(FK_CMP, 24);
   6866     if (CMP_EQ(_flag_a, _flag_b)) goto L_36157039; /* 0x36157031: je 0x36157039 */
   6867 L_36157033:
   6868     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6869     SET_LO8(eax, LO8(eax) - 1); /* 0x36157033: dec al */
   6870     _flag_k = FK_NARROW(FK_DEC, 24);
   6871     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36157035: mov byte ptr [ecx], al */
   6872     goto L_36157042; /* 0x36157037: jmp 0x36157042 */
   6873 L_36157039:
   6874     PUSH32(esp, ecx); /* 0x36157039: push ecx */
   6875     RECOMP_ICALL(0x3615FCC4u); /* 0x3615703A: call 0x3615fcc4 */ /* not lifted */
   6876     RECOMP_FLAGS_IN();
   6877     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6878     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6879     esp = esp + 4; /* 0x3615703F: add esp, 4 */
   6880     _flag_k = FK_ADD;
   6881 L_36157042:
   6882     eax = MEM32(ebp + (-0x10)); /* 0x36157042: mov eax, dword ptr [ebp - 0x10] */
   6883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6884     eax = eax + 1; /* 0x36157045: inc eax */
   6885     _flag_k = FK_INC;
   6886     /* cmp eax, esi */ /* 0x36157046: cmp eax, esi */
   6887     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   6888     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6889     _flag_k = FK_CMP;
   6890     MEM32(ebp + (-0x28)) = ebx; /* 0x36157048: mov dword ptr [ebp - 0x28], ebx */
   6891     MEM32(ebp + (-0x24)) = ebx; /* 0x3615704B: mov dword ptr [ebp - 0x24], ebx */
   6892     MEM32(ebp + (-0x20)) = ebx; /* 0x3615704E: mov dword ptr [ebp - 0x20], ebx */
   6893     MEM32(ebp + (-0x10)) = eax; /* 0x36157051: mov dword ptr [ebp - 0x10], eax */
   6894     RECOMP_BACKEDGE();
   6895     if (CMP_B(_flag_a, _flag_b)) goto L_36156FD2; /* 0x36157054: jb 0x36156fd2 */
   6896 L_3615705A:
   6897     eax = MEM32(ebp + 0x8); /* 0x3615705A: mov eax, dword ptr [ebp + 8] */
   6898     ebx = POP32_VAL(esp); /* 0x3615705D: pop ebx */
   6899     edi = POP32_VAL(esp); /* 0x3615705E: pop edi */
   6900     esi = POP32_VAL(esp); /* 0x3615705F: pop esi */
   6901     ecx = MEM32(ebp + (-0xC)); /* 0x36157060: mov ecx, dword ptr [ebp - 0xc] */
   6902     MEM32(FS_BASE + (0)) = ecx; /* 0x36157063: mov dword ptr fs:[0], ecx */
   6903     esp = ebp; /* 0x3615706A: mov esp, ebp */
   6904     ebp = POP32_VAL(esp); /* 0x3615706C: pop ebp */
   6905     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615706D: ret  */
   6906 L_3615706E:
   6907     eax = MEM32(ebp + (-0x28)); /* 0x3615706E: mov eax, dword ptr [ebp - 0x28] */
   6908     /* cmp eax, ebx */ /* 0x36157071: cmp eax, ebx */
   6909     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6910     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6911     _flag_k = FK_CMP;
   6912     if (CMP_EQ(_flag_a, _flag_b)) goto L_361570A3; /* 0x36157073: je 0x361570a3 */
   6913 L_36157075:
   6914     ecx = eax + (-0x1); /* 0x36157075: lea ecx, [eax - 1] */
   6915     SET_LO8(eax, MEM8(ecx)); /* 0x36157078: mov al, byte ptr [ecx] */
   6916     /* cmp LO8(eax), LO8(ebx) */ /* 0x3615707A: cmp al, bl */
   6917     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6919     _flag_k = FK_NARROW(FK_CMP, 24);
   6920     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615709A; /* 0x3615707C: je 0x3615709a */
   6921 L_3615707E:
   6922     /* cmp LO8(eax), 0xFFu */ /* 0x3615707E: cmp al, 0xff */
   6923     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   6924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6925     _flag_k = FK_NARROW(FK_CMP, 24);
   6926     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615709A; /* 0x36157080: je 0x3615709a */
   6927 L_36157082:
   6928     ebx = POP32_VAL(esp); /* 0x36157082: pop ebx */
   6929     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6930     SET_LO8(eax, LO8(eax) - 1); /* 0x36157083: dec al */
   6931     _flag_k = FK_NARROW(FK_DEC, 24);
   6932     edi = POP32_VAL(esp); /* 0x36157085: pop edi */
   6933     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36157086: mov byte ptr [ecx], al */
   6934     eax = MEM32(ebp + 0x8); /* 0x36157088: mov eax, dword ptr [ebp + 8] */
   6935     esi = POP32_VAL(esp); /* 0x3615708B: pop esi */
   6936     ecx = MEM32(ebp + (-0xC)); /* 0x3615708C: mov ecx, dword ptr [ebp - 0xc] */
   6937     MEM32(FS_BASE + (0)) = ecx; /* 0x3615708F: mov dword ptr fs:[0], ecx */
   6938     esp = ebp; /* 0x36157096: mov esp, ebp */
   6939     ebp = POP32_VAL(esp); /* 0x36157098: pop ebp */
   6940     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36157099: ret  */
   6941 L_3615709A:
   6942     PUSH32(esp, ecx); /* 0x3615709A: push ecx */
   6943     RECOMP_ICALL(0x3615FCC4u); /* 0x3615709B: call 0x3615fcc4 */ /* not lifted */
   6944     RECOMP_FLAGS_IN();
   6945     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6946     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6947     esp = esp + 4; /* 0x361570A0: add esp, 4 */
   6948     _flag_k = FK_ADD;
   6949 L_361570A3:
   6950     eax = MEM32(ebp + 0x8); /* 0x361570A3: mov eax, dword ptr [ebp + 8] */
   6951     ebx = POP32_VAL(esp); /* 0x361570A6: pop ebx */
   6952     edi = POP32_VAL(esp); /* 0x361570A7: pop edi */
   6953     esi = POP32_VAL(esp); /* 0x361570A8: pop esi */
   6954     ecx = MEM32(ebp + (-0xC)); /* 0x361570A9: mov ecx, dword ptr [ebp - 0xc] */
   6955     MEM32(FS_BASE + (0)) = ecx; /* 0x361570AC: mov dword ptr fs:[0], ecx */
   6956     esp = ebp; /* 0x361570B3: mov esp, ebp */
   6957     ebp = POP32_VAL(esp); /* 0x361570B5: pop ebp */
   6958     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361570B6: ret  */
   6959 L_361570B7:
   6960     PUSH32(esp, 4); /* 0x361570B7: push 4 */
   6961     ecx = edi; /* 0x361570B9: mov ecx, edi */
   6962     RECOMP_ICALL(MEM32(0x3616FAE4)); /* 0x361570BB: call dword ptr [0x3616fae4] */
   6963     RECOMP_FLAGS_IN();
   6964     ecx = MEM32(ebp + (-0xC)); /* 0x361570C1: mov ecx, dword ptr [ebp - 0xc] */
   6965     eax = edi; /* 0x361570C4: mov eax, edi */
   6966     edi = POP32_VAL(esp); /* 0x361570C6: pop edi */
   6967     esi = POP32_VAL(esp); /* 0x361570C7: pop esi */
   6968     MEM32(FS_BASE + (0)) = ecx; /* 0x361570C8: mov dword ptr fs:[0], ecx */
   6969     esp = ebp; /* 0x361570CF: mov esp, ebp */
   6970     ebp = POP32_VAL(esp); /* 0x361570D1: pop ebp */
   6971     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361570D2: ret  */
   6972     RECOMP_REGS_OUT();
   6973 }
   6974 
   6975 void sub_361570E0(void) {
   6976     int _fpu_cmp = 0;
   6977     uint32_t _cf = 0;
   6978     int _df = 1;
   6979     uint32_t _flag_k = FK_NONE;
   6980     uint32_t _flag_a = 0, _flag_b = 0;
   6981     uint32_t _itail_tgt = 0;
   6982     RECOMP_REGS_LOCALS
   6983     RECOMP_ENTER(0x361570E0u);
   6984 
   6985 L_361570E0:
   6986     PUSH32(esp, ebp); /* 0x361570E0: push ebp */
   6987     ebp = esp; /* 0x361570E1: mov ebp, esp */
   6988     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6990     esp = esp - 0x10u; /* 0x361570E3: sub esp, 0x10 */
   6991     _flag_k = FK_CMP;
   6992     PUSH32(esp, ebx); /* 0x361570E6: push ebx */
   6993     ebx = ecx; /* 0x361570E7: mov ebx, ecx */
   6994     ecx = MEM32(ebx + 0xC); /* 0x361570E9: mov ecx, dword ptr [ebx + 0xc] */
   6995     PUSH32(esp, esi); /* 0x361570EC: push esi */
   6996     esi = MEM32(ebx + 0x8); /* 0x361570ED: mov esi, dword ptr [ebx + 8] */
   6997     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   6998     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6999     ecx = ecx - esi; /* 0x361570F0: sub ecx, esi */
   7000     _flag_k = FK_CMP;
   7001     eax = 0x38E38E39u; /* 0x361570F2: mov eax, 0x38e38e39 */
   7002     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x361570F7: imul ecx */
   7003       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7004       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7005     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361570F9: sar edx, 3 */
   7006     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7007     edx = (uint32_t)((int32_t)edx >> 3u);
   7008     eax = edx; /* 0x361570FC: mov eax, edx */
   7009     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361570FE: shr eax, 0x1f */
   7010     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7011     eax = eax >> 31u; /* 0x361570FE: shr eax, 0x1f */
   7012     PUSH32(esp, edi); /* 0x36157101: push edi */
   7013     edi = MEM32(ebp + 0xC); /* 0x36157102: mov edi, dword ptr [ebp + 0xc] */
   7014     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7016     edx = edx + eax; /* 0x36157105: add edx, eax */
   7017     _flag_k = FK_ADD;
   7018     /* cmp edx, edi */ /* 0x36157107: cmp edx, edi */
   7019     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7021     _flag_k = FK_CMP;
   7022     MEM32(ebp + (-0x4)) = ebx; /* 0x36157109: mov dword ptr [ebp - 4], ebx */
   7023     if (CMP_AE(_flag_a, _flag_b)) goto L_36157281; /* 0x3615710C: jae 0x36157281 */
   7024 L_36157112:
   7025     ebx = MEM32(ebx + 0x4); /* 0x36157112: mov ebx, dword ptr [ebx + 4] */
   7026     /* test ebx, ebx */ /* 0x36157115: test ebx, ebx */
   7027     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   7028     _cf = 0;
   7029     _flag_k = FK_TEST;
   7030     if (TEST_Z(_flag_a, _flag_b)) goto L_36157134; /* 0x36157117: je 0x36157134 */
   7031 L_36157119:
   7032     ecx = esi; /* 0x36157119: mov ecx, esi */
   7033     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7034     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7035     ecx = ecx - ebx; /* 0x3615711B: sub ecx, ebx */
   7036     _flag_k = FK_CMP;
   7037     eax = 0x38E38E39u; /* 0x3615711D: mov eax, 0x38e38e39 */
   7038     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36157122: imul ecx */
   7039       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7040       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7041     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36157124: sar edx, 3 */
   7042     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7043     edx = (uint32_t)((int32_t)edx >> 3u);
   7044     ecx = edx; /* 0x36157127: mov ecx, edx */
   7045     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36157129: shr ecx, 0x1f */
   7046     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7047     ecx = ecx >> 31u; /* 0x36157129: shr ecx, 0x1f */
   7048     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7049     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7050     edx = edx + ecx; /* 0x3615712C: add edx, ecx */
   7051     _flag_k = FK_ADD;
   7052     /* cmp edi, edx */ /* 0x3615712E: cmp edi, edx */
   7053     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   7054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7055     _flag_k = FK_CMP;
   7056     ecx = edx; /* 0x36157130: mov ecx, edx */
   7057     if (CMP_B(_flag_a, _flag_b)) goto L_36157136; /* 0x36157132: jb 0x36157136 */
   7058 L_36157134:
   7059     ecx = edi; /* 0x36157134: mov ecx, edi */
   7060 L_36157136:
   7061     /* test ebx, ebx */ /* 0x36157136: test ebx, ebx */
   7062     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   7063     _cf = 0;
   7064     _flag_k = FK_TEST;
   7065     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615713E; /* 0x36157138: jne 0x3615713e */
   7066 L_3615713A:
   7067     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7068     edx = 0; /* 0x3615713A: xor edx, edx */
   7069     _cf = 0;
   7070     _flag_k = FK_TEST;
   7071     goto L_36157151; /* 0x3615713C: jmp 0x36157151 */
   7072 L_3615713E:
   7073     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   7074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7075     esi = esi - ebx; /* 0x3615713E: sub esi, ebx */
   7076     _flag_k = FK_CMP;
   7077     eax = 0x38E38E39u; /* 0x36157140: mov eax, 0x38e38e39 */
   7078     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(esi); /* 0x36157145: imul esi */
   7079       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7080       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7081     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36157147: sar edx, 3 */
   7082     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7083     edx = (uint32_t)((int32_t)edx >> 3u);
   7084     eax = edx; /* 0x3615714A: mov eax, edx */
   7085     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3615714C: shr eax, 0x1f */
   7086     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7087     eax = eax >> 31u; /* 0x3615714C: shr eax, 0x1f */
   7088     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7089     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7090     edx = edx + eax; /* 0x3615714F: add edx, eax */
   7091     _flag_k = FK_ADD;
   7092 L_36157151:
   7093     eax = edx + ecx; /* 0x36157151: lea eax, [edx + ecx] */
   7094     /* test eax, eax */ /* 0x36157154: test eax, eax */
   7095     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7096     _cf = 0;
   7097     _flag_k = FK_TEST;
   7098     MEM32(ebp + (-0xC)) = eax; /* 0x36157156: mov dword ptr [ebp - 0xc], eax */
   7099     if (TEST_NS(_flag_a, _flag_b)) goto L_3615715D; /* 0x36157159: jge 0x3615715d */
   7100 L_3615715B:
   7101     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7102     eax = 0; /* 0x3615715B: xor eax, eax */
   7103     _cf = 0;
   7104     _flag_k = FK_TEST;
   7105 L_3615715D:
   7106     ecx = eax + eax * 8; /* 0x3615715D: lea ecx, [eax + eax*8] */
   7107     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x36157160: shl ecx, 2 */
   7108     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7109     ecx = ecx << 2u; /* 0x36157160: shl ecx, 2 */
   7110     PUSH32(esp, ecx); /* 0x36157163: push ecx */
   7111     RECOMP_ICALL(0x3615FD6Au); /* 0x36157164: call 0x3615fd6a */ /* not lifted */
   7112     RECOMP_FLAGS_IN();
   7113     ebx = MEM32(ebp + (-0x4)); /* 0x36157169: mov ebx, dword ptr [ebp - 4] */
   7114     esi = MEM32(ebx + 0x4); /* 0x3615716C: mov esi, dword ptr [ebx + 4] */
   7115     MEM32(ebp + (-0x10)) = eax; /* 0x3615716F: mov dword ptr [ebp - 0x10], eax */
   7116     MEM32(ebp + 0xC) = eax; /* 0x36157172: mov dword ptr [ebp + 0xc], eax */
   7117     eax = MEM32(ebp + 0x8); /* 0x36157175: mov eax, dword ptr [ebp + 8] */
   7118     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7119     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7120     esp = esp + 4; /* 0x36157178: add esp, 4 */
   7121     _flag_k = FK_ADD;
   7122     /* cmp esi, eax */ /* 0x3615717B: cmp esi, eax */
   7123     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7124     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7125     _flag_k = FK_CMP;
   7126     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615719F; /* 0x3615717D: je 0x3615719f */
   7127 L_3615717F:
   7128     edx = MEM32(ebp + 0xC); /* 0x3615717F: mov edx, dword ptr [ebp + 0xc] */
   7129     PUSH32(esp, esi); /* 0x36157182: push esi */
   7130     PUSH32(esp, edx); /* 0x36157183: push edx */
   7131     RECOMP_ICALL(0x36029BC0u); /* 0x36157184: call 0x36029bc0 */ /* not lifted */
   7132     RECOMP_FLAGS_IN();
   7133     edx = MEM32(ebp + 0xC); /* 0x36157189: mov edx, dword ptr [ebp + 0xc] */
   7134     eax = MEM32(ebp + 0x8); /* 0x3615718C: mov eax, dword ptr [ebp + 8] */
   7135     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x24u);
   7136     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7137     edx = edx + 0x24u; /* 0x3615718F: add edx, 0x24 */
   7138     _flag_k = FK_ADD;
   7139     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   7140     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7141     esi = esi + 0x24u; /* 0x36157192: add esi, 0x24 */
   7142     _flag_k = FK_ADD;
   7143     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7144     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7145     esp = esp + 8; /* 0x36157195: add esp, 8 */
   7146     _flag_k = FK_ADD;
   7147     /* cmp esi, eax */ /* 0x36157198: cmp esi, eax */
   7148     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7149     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7150     _flag_k = FK_CMP;
   7151     MEM32(ebp + 0xC) = edx; /* 0x3615719A: mov dword ptr [ebp + 0xc], edx */
   7152     RECOMP_BACKEDGE();
   7153     if (CMP_NE(_flag_a, _flag_b)) goto L_3615717F; /* 0x3615719D: jne 0x3615717f */
   7154 L_3615719F:
   7155     /* test edi, edi */ /* 0x3615719F: test edi, edi */
   7156     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7157     _cf = 0;
   7158     _flag_k = FK_TEST;
   7159     esi = MEM32(ebp + 0xC); /* 0x361571A1: mov esi, dword ptr [ebp + 0xc] */
   7160     if (TEST_Z(_flag_a, _flag_b)) goto L_361571C2; /* 0x361571A4: jbe 0x361571c2 */
   7161 L_361571A6:
   7162     MEM32(ebp + (-0x8)) = edi; /* 0x361571A6: mov dword ptr [ebp - 8], edi */
   7163 L_361571A9:
   7164     eax = MEM32(ebp + 0x10); /* 0x361571A9: mov eax, dword ptr [ebp + 0x10] */
   7165     PUSH32(esp, eax); /* 0x361571AC: push eax */
   7166     PUSH32(esp, esi); /* 0x361571AD: push esi */
   7167     RECOMP_ICALL(0x36029BC0u); /* 0x361571AE: call 0x36029bc0 */ /* not lifted */
   7168     RECOMP_FLAGS_IN();
   7169     eax = MEM32(ebp + (-0x8)); /* 0x361571B3: mov eax, dword ptr [ebp - 8] */
   7170     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7171     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7172     esp = esp + 8; /* 0x361571B6: add esp, 8 */
   7173     _flag_k = FK_ADD;
   7174     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   7175     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7176     esi = esi + 0x24u; /* 0x361571B9: add esi, 0x24 */
   7177     _flag_k = FK_ADD;
   7178     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7179     eax = eax - 1; /* 0x361571BC: dec eax */
   7180     _flag_k = FK_DEC;
   7181     MEM32(ebp + (-0x8)) = eax; /* 0x361571BD: mov dword ptr [ebp - 8], eax */
   7182     RECOMP_BACKEDGE();
   7183     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361571A9; /* 0x361571C0: jne 0x361571a9 */
   7184 L_361571C2:
   7185     eax = MEM32(ebx + 0x8); /* 0x361571C2: mov eax, dword ptr [ebx + 8] */
   7186     esi = MEM32(ebp + 0x8); /* 0x361571C5: mov esi, dword ptr [ebp + 8] */
   7187     /* cmp esi, eax */ /* 0x361571C8: cmp esi, eax */
   7188     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7190     _flag_k = FK_CMP;
   7191     edx = MEM32(ebp + 0xC); /* 0x361571CA: mov edx, dword ptr [ebp + 0xc] */
   7192     ecx = edi + edi * 8; /* 0x361571CD: lea ecx, [edi + edi*8] */
   7193     ecx = edx + ecx * 4; /* 0x361571D0: lea ecx, [edx + ecx*4] */
   7194     MEM32(ebp + 0x10) = eax; /* 0x361571D3: mov dword ptr [ebp + 0x10], eax */
   7195     if (CMP_EQ(_flag_a, _flag_b)) goto L_361571FB; /* 0x361571D6: je 0x361571fb */
   7196 L_361571D8:
   7197     MEM32(ebp + 0x8) = ecx; /* 0x361571D8: mov dword ptr [ebp + 8], ecx */
   7198 L_361571DB:
   7199     eax = MEM32(ebp + 0x8); /* 0x361571DB: mov eax, dword ptr [ebp + 8] */
   7200     PUSH32(esp, esi); /* 0x361571DE: push esi */
   7201     PUSH32(esp, eax); /* 0x361571DF: push eax */
   7202     RECOMP_ICALL(0x36029BC0u); /* 0x361571E0: call 0x36029bc0 */ /* not lifted */
   7203     RECOMP_FLAGS_IN();
   7204     ecx = MEM32(ebp + 0x8); /* 0x361571E5: mov ecx, dword ptr [ebp + 8] */
   7205     eax = MEM32(ebp + 0x10); /* 0x361571E8: mov eax, dword ptr [ebp + 0x10] */
   7206     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   7207     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7208     esi = esi + 0x24u; /* 0x361571EB: add esi, 0x24 */
   7209     _flag_k = FK_ADD;
   7210     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u);
   7211     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7212     ecx = ecx + 0x24u; /* 0x361571EE: add ecx, 0x24 */
   7213     _flag_k = FK_ADD;
   7214     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7215     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7216     esp = esp + 8; /* 0x361571F1: add esp, 8 */
   7217     _flag_k = FK_ADD;
   7218     /* cmp esi, eax */ /* 0x361571F4: cmp esi, eax */
   7219     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7221     _flag_k = FK_CMP;
   7222     MEM32(ebp + 0x8) = ecx; /* 0x361571F6: mov dword ptr [ebp + 8], ecx */
   7223     RECOMP_BACKEDGE();
   7224     if (CMP_NE(_flag_a, _flag_b)) goto L_361571DB; /* 0x361571F9: jne 0x361571db */
   7225 L_361571FB:
   7226     eax = MEM32(ebx + 0x8); /* 0x361571FB: mov eax, dword ptr [ebx + 8] */
   7227     esi = MEM32(ebx + 0x4); /* 0x361571FE: mov esi, dword ptr [ebx + 4] */
   7228     /* cmp esi, eax */ /* 0x36157201: cmp esi, eax */
   7229     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7231     _flag_k = FK_CMP;
   7232     MEM32(ebp + 0x8) = eax; /* 0x36157203: mov dword ptr [ebp + 8], eax */
   7233     if (CMP_EQ(_flag_a, _flag_b)) goto L_36157219; /* 0x36157206: je 0x36157219 */
   7234 L_36157208:
   7235     ecx = esi; /* 0x36157208: mov ecx, esi */
   7236     RECOMP_ICALL(0x36029F40u); /* 0x3615720A: call 0x36029f40 */ /* not lifted */
   7237     RECOMP_FLAGS_IN();
   7238     eax = MEM32(ebp + 0x8); /* 0x3615720F: mov eax, dword ptr [ebp + 8] */
   7239     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   7240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7241     esi = esi + 0x24u; /* 0x36157212: add esi, 0x24 */
   7242     _flag_k = FK_ADD;
   7243     /* cmp esi, eax */ /* 0x36157215: cmp esi, eax */
   7244     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7246     _flag_k = FK_CMP;
   7247     RECOMP_BACKEDGE();
   7248     if (CMP_NE(_flag_a, _flag_b)) goto L_36157208; /* 0x36157217: jne 0x36157208 */
   7249 L_36157219:
   7250     ecx = MEM32(ebx + 0x4); /* 0x36157219: mov ecx, dword ptr [ebx + 4] */
   7251     PUSH32(esp, ecx); /* 0x3615721C: push ecx */
   7252     RECOMP_ICALL(0x3615FCC4u); /* 0x3615721D: call 0x3615fcc4 */ /* not lifted */
   7253     RECOMP_FLAGS_IN();
   7254     eax = MEM32(ebp + (-0xC)); /* 0x36157222: mov eax, dword ptr [ebp - 0xc] */
   7255     esi = MEM32(ebp + (-0x10)); /* 0x36157225: mov esi, dword ptr [ebp - 0x10] */
   7256     edx = eax + eax * 8; /* 0x36157228: lea edx, [eax + eax*8] */
   7257     eax = esi + edx * 4; /* 0x3615722B: lea eax, [esi + edx*4] */
   7258     MEM32(ebx + 0xC) = eax; /* 0x3615722E: mov dword ptr [ebx + 0xc], eax */
   7259     eax = MEM32(ebx + 0x4); /* 0x36157231: mov eax, dword ptr [ebx + 4] */
   7260     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7261     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7262     esp = esp + 4; /* 0x36157234: add esp, 4 */
   7263     _flag_k = FK_ADD;
   7264     /* test eax, eax */ /* 0x36157237: test eax, eax */
   7265     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7266     _cf = 0;
   7267     _flag_k = FK_TEST;
   7268     if (TEST_NZ(_flag_a, _flag_b)) goto L_36157254; /* 0x36157239: jne 0x36157254 */
   7269 L_3615723B:
   7270     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7271     edx = 0; /* 0x3615723B: xor edx, edx */
   7272     _cf = 0;
   7273     _flag_k = FK_TEST;
   7274     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   7275     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7276     edi = edi + edx; /* 0x3615723D: add edi, edx */
   7277     _flag_k = FK_ADD;
   7278     edx = edi + edi * 8; /* 0x3615723F: lea edx, [edi + edi*8] */
   7279     edi = POP32_VAL(esp); /* 0x36157242: pop edi */
   7280     eax = esi + edx * 4; /* 0x36157243: lea eax, [esi + edx*4] */
   7281     MEM32(ebx + 0x4) = esi; /* 0x36157246: mov dword ptr [ebx + 4], esi */
   7282     esi = POP32_VAL(esp); /* 0x36157249: pop esi */
   7283     MEM32(ebx + 0x8) = eax; /* 0x3615724A: mov dword ptr [ebx + 8], eax */
   7284     ebx = POP32_VAL(esp); /* 0x3615724D: pop ebx */
   7285     esp = ebp; /* 0x3615724E: mov esp, ebp */
   7286     ebp = POP32_VAL(esp); /* 0x36157250: pop ebp */
   7287     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36157251: ret 0xc */
   7288 L_36157254:
   7289     ecx = MEM32(ebx + 0x8); /* 0x36157254: mov ecx, dword ptr [ebx + 8] */
   7290     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7292     ecx = ecx - eax; /* 0x36157257: sub ecx, eax */
   7293     _flag_k = FK_CMP;
   7294     eax = 0x38E38E39u; /* 0x36157259: mov eax, 0x38e38e39 */
   7295     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3615725E: imul ecx */
   7296       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7297       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7298     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36157260: sar edx, 3 */
   7299     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7300     edx = (uint32_t)((int32_t)edx >> 3u);
   7301     ecx = edx; /* 0x36157263: mov ecx, edx */
   7302     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36157265: shr ecx, 0x1f */
   7303     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7304     ecx = ecx >> 31u; /* 0x36157265: shr ecx, 0x1f */
   7305     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7306     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7307     edx = edx + ecx; /* 0x36157268: add edx, ecx */
   7308     _flag_k = FK_ADD;
   7309     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   7310     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7311     edi = edi + edx; /* 0x3615726A: add edi, edx */
   7312     _flag_k = FK_ADD;
   7313     edx = edi + edi * 8; /* 0x3615726C: lea edx, [edi + edi*8] */
   7314     edi = POP32_VAL(esp); /* 0x3615726F: pop edi */
   7315     eax = esi + edx * 4; /* 0x36157270: lea eax, [esi + edx*4] */
   7316     MEM32(ebx + 0x4) = esi; /* 0x36157273: mov dword ptr [ebx + 4], esi */
   7317     esi = POP32_VAL(esp); /* 0x36157276: pop esi */
   7318     MEM32(ebx + 0x8) = eax; /* 0x36157277: mov dword ptr [ebx + 8], eax */
   7319     ebx = POP32_VAL(esp); /* 0x3615727A: pop ebx */
   7320     esp = ebp; /* 0x3615727B: mov esp, ebp */
   7321     ebp = POP32_VAL(esp); /* 0x3615727D: pop ebp */
   7322     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3615727E: ret 0xc */
   7323 L_36157281:
   7324     ecx = MEM32(ebp + 0x8); /* 0x36157281: mov ecx, dword ptr [ebp + 8] */
   7325     edx = esi; /* 0x36157284: mov edx, esi */
   7326     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7328     edx = edx - ecx; /* 0x36157286: sub edx, ecx */
   7329     _flag_k = FK_CMP;
   7330     eax = 0x38E38E39u; /* 0x36157288: mov eax, 0x38e38e39 */
   7331     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3615728D: imul edx */
   7332       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7333       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7334     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3615728F: sar edx, 3 */
   7335     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7336     edx = (uint32_t)((int32_t)edx >> 3u);
   7337     eax = edx; /* 0x36157292: mov eax, edx */
   7338     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36157294: shr eax, 0x1f */
   7339     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7340     eax = eax >> 31u; /* 0x36157294: shr eax, 0x1f */
   7341     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7342     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7343     edx = edx + eax; /* 0x36157297: add edx, eax */
   7344     _flag_k = FK_ADD;
   7345     /* cmp edx, edi */ /* 0x36157299: cmp edx, edi */
   7346     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7348     _flag_k = FK_CMP;
   7349     if (CMP_AE(_flag_a, _flag_b)) goto L_36157376; /* 0x3615729B: jae 0x36157376 */
   7350 L_361572A1:
   7351     eax = edi + edi * 8; /* 0x361572A1: lea eax, [edi + edi*8] */
   7352     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x361572A4: shl eax, 2 */
   7353     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7354     eax = eax << 2u; /* 0x361572A4: shl eax, 2 */
   7355     MEM32(ebp + 0xC) = eax; /* 0x361572A7: mov dword ptr [ebp + 0xc], eax */
   7356     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7357     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7358     eax = eax + ecx; /* 0x361572AA: add eax, ecx */
   7359     _flag_k = FK_ADD;
   7360     /* cmp ecx, esi */ /* 0x361572AC: cmp ecx, esi */
   7361     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   7362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7363     _flag_k = FK_CMP;
   7364     MEM32(ebp + (-0x8)) = ecx; /* 0x361572AE: mov dword ptr [ebp - 8], ecx */
   7365     if (CMP_EQ(_flag_a, _flag_b)) goto L_361572D8; /* 0x361572B1: je 0x361572d8 */
   7366 L_361572B3:
   7367     ebx = eax; /* 0x361572B3: mov ebx, eax */
   7368 L_361572B5:
   7369     ecx = MEM32(ebp + (-0x8)); /* 0x361572B5: mov ecx, dword ptr [ebp - 8] */
   7370     PUSH32(esp, ecx); /* 0x361572B8: push ecx */
   7371     PUSH32(esp, ebx); /* 0x361572B9: push ebx */
   7372     RECOMP_ICALL(0x36029BC0u); /* 0x361572BA: call 0x36029bc0 */ /* not lifted */
   7373     RECOMP_FLAGS_IN();
   7374     eax = MEM32(ebp + (-0x8)); /* 0x361572BF: mov eax, dword ptr [ebp - 8] */
   7375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
   7376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7377     eax = eax + 0x24u; /* 0x361572C2: add eax, 0x24 */
   7378     _flag_k = FK_ADD;
   7379     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7380     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7381     esp = esp + 8; /* 0x361572C5: add esp, 8 */
   7382     _flag_k = FK_ADD;
   7383     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
   7384     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7385     ebx = ebx + 0x24u; /* 0x361572C8: add ebx, 0x24 */
   7386     _flag_k = FK_ADD;
   7387     /* cmp eax, esi */ /* 0x361572CB: cmp eax, esi */
   7388     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   7389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7390     _flag_k = FK_CMP;
   7391     MEM32(ebp + (-0x8)) = eax; /* 0x361572CD: mov dword ptr [ebp - 8], eax */
   7392     RECOMP_BACKEDGE();
   7393     if (CMP_NE(_flag_a, _flag_b)) goto L_361572B5; /* 0x361572D0: jne 0x361572b5 */
   7394 L_361572D2:
   7395     ecx = MEM32(ebp + 0x8); /* 0x361572D2: mov ecx, dword ptr [ebp + 8] */
   7396     ebx = MEM32(ebp + (-0x4)); /* 0x361572D5: mov ebx, dword ptr [ebp - 4] */
   7397 L_361572D8:
   7398     esi = MEM32(ebx + 0x8); /* 0x361572D8: mov esi, dword ptr [ebx + 8] */
   7399     edx = esi; /* 0x361572DB: mov edx, esi */
   7400     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7402     edx = edx - ecx; /* 0x361572DD: sub edx, ecx */
   7403     _flag_k = FK_CMP;
   7404     eax = 0x38E38E39u; /* 0x361572DF: mov eax, 0x38e38e39 */
   7405     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361572E4: imul edx */
   7406       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7407       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7408     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361572E6: sar edx, 3 */
   7409     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7410     edx = (uint32_t)((int32_t)edx >> 3u);
   7411     eax = edx; /* 0x361572E9: mov eax, edx */
   7412     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361572EB: shr eax, 0x1f */
   7413     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7414     eax = eax >> 31u; /* 0x361572EB: shr eax, 0x1f */
   7415     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7416     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7417     edx = edx + eax; /* 0x361572EE: add edx, eax */
   7418     _flag_k = FK_ADD;
   7419     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   7420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7421     edi = edi - edx; /* 0x361572F0: sub edi, edx */
   7422     _flag_k = FK_CMP;
   7423     eax = edi; /* 0x361572F2: mov eax, edi */
   7424     edi = MEM32(ebp + 0x10); /* 0x361572F4: mov edi, dword ptr [ebp + 0x10] */
   7425     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_36157311; /* 0x361572F7: je 0x36157311 */
   7426 L_361572F9:
   7427     ebx = eax; /* 0x361572F9: mov ebx, eax */
   7428 L_361572FB:
   7429     PUSH32(esp, edi); /* 0x361572FB: push edi */
   7430     PUSH32(esp, esi); /* 0x361572FC: push esi */
   7431     RECOMP_ICALL(0x36029BC0u); /* 0x361572FD: call 0x36029bc0 */ /* not lifted */
   7432     RECOMP_FLAGS_IN();
   7433     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7434     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7435     esp = esp + 8; /* 0x36157302: add esp, 8 */
   7436     _flag_k = FK_ADD;
   7437     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   7438     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7439     esi = esi + 0x24u; /* 0x36157305: add esi, 0x24 */
   7440     _flag_k = FK_ADD;
   7441     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   7442     ebx = ebx - 1; /* 0x36157308: dec ebx */
   7443     _flag_k = FK_DEC;
   7444     RECOMP_BACKEDGE();
   7445     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361572FB; /* 0x36157309: jne 0x361572fb */
   7446 L_3615730B:
   7447     ecx = MEM32(ebp + 0x8); /* 0x3615730B: mov ecx, dword ptr [ebp + 8] */
   7448     ebx = MEM32(ebp + (-0x4)); /* 0x3615730E: mov ebx, dword ptr [ebp - 4] */
   7449 L_36157311:
   7450     eax = MEM32(ebx + 0x8); /* 0x36157311: mov eax, dword ptr [ebx + 8] */
   7451     /* cmp ecx, eax */ /* 0x36157314: cmp ecx, eax */
   7452     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7454     _flag_k = FK_CMP;
   7455     MEM32(ebp + 0x8) = eax; /* 0x36157316: mov dword ptr [ebp + 8], eax */
   7456     if (CMP_EQ(_flag_a, _flag_b)) goto L_36157362; /* 0x36157319: je 0x36157362 */
   7457 L_3615731B:
   7458     ebx = edi + 0xC; /* 0x3615731B: lea ebx, [edi + 0xc] */
   7459     esi = ecx + 0xC; /* 0x3615731E: lea esi, [ecx + 0xc] */
   7460 L_36157321:
   7461     ecx = MEM32(edi); /* 0x36157321: mov ecx, dword ptr [edi] */
   7462     MEM32(esi + (-0xC)) = ecx; /* 0x36157323: mov dword ptr [esi - 0xc], ecx */
   7463     edx = MEM32(edi + 0x4); /* 0x36157326: mov edx, dword ptr [edi + 4] */
   7464     MEM32(esi + (-0x8)) = edx; /* 0x36157329: mov dword ptr [esi - 8], edx */
   7465     eax = MEM32(edi + 0x8); /* 0x3615732C: mov eax, dword ptr [edi + 8] */
   7466     MEM32(esi + (-0x4)) = eax; /* 0x3615732F: mov dword ptr [esi - 4], eax */
   7467     ecx = MEM32(0x3616F010); /* 0x36157332: mov ecx, dword ptr [0x3616f010] */
   7468     edx = MEM32(ecx); /* 0x36157338: mov edx, dword ptr [ecx] */
   7469     PUSH32(esp, edx); /* 0x3615733A: push edx */
   7470     PUSH32(esp, 0); /* 0x3615733B: push 0 */
   7471     PUSH32(esp, ebx); /* 0x3615733D: push ebx */
   7472     ecx = esi; /* 0x3615733E: mov ecx, esi */
   7473     RECOMP_ICALL(MEM32(0x3616F024)); /* 0x36157340: call dword ptr [0x3616f024] */
   7474     RECOMP_FLAGS_IN();
   7475     eax = MEM32(edi + 0x1C); /* 0x36157346: mov eax, dword ptr [edi + 0x1c] */
   7476     MEM32(esi + 0x10) = eax; /* 0x36157349: mov dword ptr [esi + 0x10], eax */
   7477     ecx = MEM32(edi + 0x20); /* 0x3615734C: mov ecx, dword ptr [edi + 0x20] */
   7478     eax = MEM32(ebp + 0x8); /* 0x3615734F: mov eax, dword ptr [ebp + 8] */
   7479     MEM32(esi + 0x14) = ecx; /* 0x36157352: mov dword ptr [esi + 0x14], ecx */
   7480     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   7481     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7482     esi = esi + 0x24u; /* 0x36157355: add esi, 0x24 */
   7483     _flag_k = FK_ADD;
   7484     edx = esi + (-0xC); /* 0x36157358: lea edx, [esi - 0xc] */
   7485     /* cmp edx, eax */ /* 0x3615735B: cmp edx, eax */
   7486     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7487     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7488     _flag_k = FK_CMP;
   7489     RECOMP_BACKEDGE();
   7490     if (CMP_NE(_flag_a, _flag_b)) goto L_36157321; /* 0x3615735D: jne 0x36157321 */
   7491 L_3615735F:
   7492     ebx = MEM32(ebp + (-0x4)); /* 0x3615735F: mov ebx, dword ptr [ebp - 4] */
   7493 L_36157362:
   7494     ecx = MEM32(ebx + 0x8); /* 0x36157362: mov ecx, dword ptr [ebx + 8] */
   7495     eax = MEM32(ebp + 0xC); /* 0x36157365: mov eax, dword ptr [ebp + 0xc] */
   7496     edi = POP32_VAL(esp); /* 0x36157368: pop edi */
   7497     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7498     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7499     ecx = ecx + eax; /* 0x36157369: add ecx, eax */
   7500     _flag_k = FK_ADD;
   7501     esi = POP32_VAL(esp); /* 0x3615736B: pop esi */
   7502     MEM32(ebx + 0x8) = ecx; /* 0x3615736C: mov dword ptr [ebx + 8], ecx */
   7503     ebx = POP32_VAL(esp); /* 0x3615736F: pop ebx */
   7504     esp = ebp; /* 0x36157370: mov esp, ebp */
   7505     ebp = POP32_VAL(esp); /* 0x36157372: pop ebp */
   7506     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36157373: ret 0xc */
   7507 L_36157376:
   7508     /* test edi, edi */ /* 0x36157376: test edi, edi */
   7509     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7510     _cf = 0;
   7511     _flag_k = FK_TEST;
   7512     if (TEST_Z(_flag_a, _flag_b)) goto L_3615743E; /* 0x36157378: jbe 0x3615743e */
   7513 L_3615737E:
   7514     edx = edi + edi * 8; /* 0x3615737E: lea edx, [edi + edi*8] */
   7515     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x36157381: shl edx, 2 */
   7516     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7517     edx = edx << 2u; /* 0x36157381: shl edx, 2 */
   7518     edi = esi; /* 0x36157384: mov edi, esi */
   7519     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   7520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7521     edi = edi - edx; /* 0x36157386: sub edi, edx */
   7522     _flag_k = FK_CMP;
   7523     /* cmp edi, esi */ /* 0x36157388: cmp edi, esi */
   7524     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   7525     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7526     _flag_k = FK_CMP;
   7527     MEM32(ebp + (-0x8)) = esi; /* 0x3615738A: mov dword ptr [ebp - 8], esi */
   7528     MEM32(ebp + 0xC) = edx; /* 0x3615738D: mov dword ptr [ebp + 0xc], edx */
   7529     if (CMP_EQ(_flag_a, _flag_b)) goto L_361573B8; /* 0x36157390: je 0x361573b8 */
   7530 L_36157392:
   7531     ecx = MEM32(ebp + (-0x8)); /* 0x36157392: mov ecx, dword ptr [ebp - 8] */
   7532     PUSH32(esp, edi); /* 0x36157395: push edi */
   7533     PUSH32(esp, ecx); /* 0x36157396: push ecx */
   7534     RECOMP_ICALL(0x36029BC0u); /* 0x36157397: call 0x36029bc0 */ /* not lifted */
   7535     RECOMP_FLAGS_IN();
   7536     edx = MEM32(ebp + (-0x8)); /* 0x3615739C: mov edx, dword ptr [ebp - 8] */
   7537     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x24u);
   7538     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7539     edx = edx + 0x24u; /* 0x3615739F: add edx, 0x24 */
   7540     _flag_k = FK_ADD;
   7541     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
   7542     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7543     edi = edi + 0x24u; /* 0x361573A2: add edi, 0x24 */
   7544     _flag_k = FK_ADD;
   7545     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7546     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7547     esp = esp + 8; /* 0x361573A5: add esp, 8 */
   7548     _flag_k = FK_ADD;
   7549     /* cmp edi, esi */ /* 0x361573A8: cmp edi, esi */
   7550     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   7551     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7552     _flag_k = FK_CMP;
   7553     MEM32(ebp + (-0x8)) = edx; /* 0x361573AA: mov dword ptr [ebp - 8], edx */
   7554     RECOMP_BACKEDGE();
   7555     if (CMP_NE(_flag_a, _flag_b)) goto L_36157392; /* 0x361573AD: jne 0x36157392 */
   7556 L_361573AF:
   7557     ecx = MEM32(ebp + 0x8); /* 0x361573AF: mov ecx, dword ptr [ebp + 8] */
   7558     ebx = MEM32(ebp + (-0x4)); /* 0x361573B2: mov ebx, dword ptr [ebp - 4] */
   7559     edx = MEM32(ebp + 0xC); /* 0x361573B5: mov edx, dword ptr [ebp + 0xc] */
   7560 L_361573B8:
   7561     eax = MEM32(ebx + 0x8); /* 0x361573B8: mov eax, dword ptr [ebx + 8] */
   7562     ebx = eax; /* 0x361573BB: mov ebx, eax */
   7563     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   7564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7565     ebx = ebx - edx; /* 0x361573BD: sub ebx, edx */
   7566     _flag_k = FK_CMP;
   7567     /* cmp ecx, ebx */ /* 0x361573BF: cmp ecx, ebx */
   7568     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7570     _flag_k = FK_CMP;
   7571     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615741A; /* 0x361573C1: je 0x3615741a */
   7572 L_361573C3:
   7573     edi = eax + 0xC; /* 0x361573C3: lea edi, [eax + 0xc] */
   7574     esi = ebx + 0xC; /* 0x361573C6: lea esi, [ebx + 0xc] */
   7575     goto L_361573CE; /* 0x361573C9: jmp 0x361573ce */
   7576 L_361573CB:
   7577     eax = MEM32(ebp + (-0x10)); /* 0x361573CB: mov eax, dword ptr [ebp - 0x10] */
   7578 L_361573CE:
   7579     edx = MEM32(ebx + (-0x24)); /* 0x361573CE: mov edx, dword ptr [ebx - 0x24] */
   7580     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
   7581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7582     eax = eax - 0x24u; /* 0x361573D1: sub eax, 0x24 */
   7583     _flag_k = FK_CMP;
   7584     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
   7585     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7586     ebx = ebx - 0x24u; /* 0x361573D4: sub ebx, 0x24 */
   7587     _flag_k = FK_CMP;
   7588     MEM32(eax) = edx; /* 0x361573D7: mov dword ptr [eax], edx */
   7589     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   7590     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7591     esi = esi - 0x24u; /* 0x361573D9: sub esi, 0x24 */
   7592     _flag_k = FK_CMP;
   7593     MEM32(ebp + (-0x10)) = eax; /* 0x361573DC: mov dword ptr [ebp - 0x10], eax */
   7594     eax = MEM32(esi + (-0x8)); /* 0x361573DF: mov eax, dword ptr [esi - 8] */
   7595     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
   7596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7597     edi = edi - 0x24u; /* 0x361573E2: sub edi, 0x24 */
   7598     _flag_k = FK_CMP;
   7599     MEM32(edi + (-0x8)) = eax; /* 0x361573E5: mov dword ptr [edi - 8], eax */
   7600     ecx = MEM32(esi + (-0x4)); /* 0x361573E8: mov ecx, dword ptr [esi - 4] */
   7601     MEM32(edi + (-0x4)) = ecx; /* 0x361573EB: mov dword ptr [edi - 4], ecx */
   7602     edx = MEM32(0x3616F010); /* 0x361573EE: mov edx, dword ptr [0x3616f010] */
   7603     eax = MEM32(edx); /* 0x361573F4: mov eax, dword ptr [edx] */
   7604     PUSH32(esp, eax); /* 0x361573F6: push eax */
   7605     PUSH32(esp, 0); /* 0x361573F7: push 0 */
   7606     PUSH32(esp, esi); /* 0x361573F9: push esi */
   7607     ecx = edi; /* 0x361573FA: mov ecx, edi */
   7608     RECOMP_ICALL(MEM32(0x3616F024)); /* 0x361573FC: call dword ptr [0x3616f024] */
   7609     RECOMP_FLAGS_IN();
   7610     ecx = MEM32(esi + 0x10); /* 0x36157402: mov ecx, dword ptr [esi + 0x10] */
   7611     eax = MEM32(ebp + 0x8); /* 0x36157405: mov eax, dword ptr [ebp + 8] */
   7612     /* cmp ebx, eax */ /* 0x36157408: cmp ebx, eax */
   7613     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   7614     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7615     _flag_k = FK_CMP;
   7616     MEM32(edi + 0x10) = ecx; /* 0x3615740A: mov dword ptr [edi + 0x10], ecx */
   7617     edx = MEM32(esi + 0x14); /* 0x3615740D: mov edx, dword ptr [esi + 0x14] */
   7618     MEM32(edi + 0x14) = edx; /* 0x36157410: mov dword ptr [edi + 0x14], edx */
   7619     RECOMP_BACKEDGE();
   7620     if (CMP_NE(_flag_a, _flag_b)) goto L_361573CB; /* 0x36157413: jne 0x361573cb */
   7621 L_36157415:
   7622     edx = MEM32(ebp + 0xC); /* 0x36157415: mov edx, dword ptr [ebp + 0xc] */
   7623     ecx = eax; /* 0x36157418: mov ecx, eax */
   7624 L_3615741A:
   7625     edi = edx + ecx; /* 0x3615741A: lea edi, [edx + ecx] */
   7626     /* cmp ecx, edi */ /* 0x3615741D: cmp ecx, edi */
   7627     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   7628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7629     _flag_k = FK_CMP;
   7630     esi = ecx; /* 0x3615741F: mov esi, ecx */
   7631     if (CMP_EQ(_flag_a, _flag_b)) goto L_36157438; /* 0x36157421: je 0x36157438 */
   7632 L_36157423:
   7633     ebx = MEM32(ebp + 0x10); /* 0x36157423: mov ebx, dword ptr [ebp + 0x10] */
   7634 L_36157426:
   7635     PUSH32(esp, ebx); /* 0x36157426: push ebx */
   7636     ecx = esi; /* 0x36157427: mov ecx, esi */
   7637     RECOMP_ICALL(0x36029DC0u); /* 0x36157429: call 0x36029dc0 */ /* not lifted */
   7638     RECOMP_FLAGS_IN();
   7639     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   7640     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7641     esi = esi + 0x24u; /* 0x3615742E: add esi, 0x24 */
   7642     _flag_k = FK_ADD;
   7643     /* cmp esi, edi */ /* 0x36157431: cmp esi, edi */
   7644     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7645     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7646     _flag_k = FK_CMP;
   7647     RECOMP_BACKEDGE();
   7648     if (CMP_NE(_flag_a, _flag_b)) goto L_36157426; /* 0x36157433: jne 0x36157426 */
   7649 L_36157435:
   7650     edx = MEM32(ebp + 0xC); /* 0x36157435: mov edx, dword ptr [ebp + 0xc] */
   7651 L_36157438:
   7652     eax = MEM32(ebp + (-0x4)); /* 0x36157438: mov eax, dword ptr [ebp - 4] */
   7653     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(edx);
   7654     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7655     MEM32(eax + 0x8) = MEM32(eax + 0x8) + edx; /* 0x3615743B: add dword ptr [eax + 8], edx */
   7656     _flag_k = FK_ADD;
   7657 L_3615743E:
   7658     edi = POP32_VAL(esp); /* 0x3615743E: pop edi */
   7659     esi = POP32_VAL(esp); /* 0x3615743F: pop esi */
   7660     ebx = POP32_VAL(esp); /* 0x36157440: pop ebx */
   7661     esp = ebp; /* 0x36157441: mov esp, ebp */
   7662     ebp = POP32_VAL(esp); /* 0x36157443: pop ebp */
   7663     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36157444: ret 0xc */
   7664     RECOMP_REGS_OUT();
   7665 }
   7666 
   7667 void sub_36157450(void) {
   7668     int _fpu_cmp = 0;
   7669     uint32_t _cf = 0;
   7670     int _df = 1;
   7671     uint32_t _flag_k = FK_NONE;
   7672     uint32_t _flag_a = 0, _flag_b = 0;
   7673     uint32_t _itail_tgt = 0;
   7674     RECOMP_REGS_LOCALS
   7675     RECOMP_ENTER(0x36157450u);
   7676 
   7677 L_36157450:
   7678     RECOMP_ICALL(0x36157460u); /* 0x36157450: call 0x36157460 */ /* not lifted */
   7679     RECOMP_FLAGS_IN();
   7680     goto L_36157470; /* 0x36157455: jmp 0x36157470 */
   7681 L_36157470:
   7682     PUSH32(esp, 0x36157480u); /* 0x36157470: push 0x36157480 */
   7683     RECOMP_ICALL(0x3615FEB2u); /* 0x36157475: call 0x3615feb2 */ /* not lifted */
   7684     RECOMP_FLAGS_IN();
   7685     ecx = POP32_VAL(esp); /* 0x3615747A: pop ecx */
   7686     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615747B: ret  */
   7687     RECOMP_REGS_OUT();
   7688 }
   7689 
   7690 void sub_36157460(void) {
   7691     int _fpu_cmp = 0;
   7692     uint32_t _cf = 0;
   7693     int _df = 1;
   7694     uint32_t _flag_k = FK_NONE;
   7695     uint32_t _flag_a = 0, _flag_b = 0;
   7696     uint32_t _itail_tgt = 0;
   7697     RECOMP_REGS_LOCALS
   7698     RECOMP_ENTER(0x36157460u);
   7699 
   7700 L_36157460:
   7701     ecx = 0x3630DB39u; /* 0x36157460: mov ecx, 0x3630db39 */
   7702 L_36157465:
   7703     { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; }
   7704     { RECOMP_REGS_OUT(); return; } /* end of function */
   7705   _ljump:
   7706     switch (_itail_tgt) {
   7707       case 0x36157460u: goto L_36157460;
   7708       case 0x36157465u: goto L_36157465;
   7709       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7710     }
   7711     RECOMP_REGS_OUT();
   7712 }
   7713 
   7714 void sub_36157470(void) {
   7715     int _fpu_cmp = 0;
   7716     uint32_t _cf = 0;
   7717     int _df = 1;
   7718     uint32_t _flag_k = FK_NONE;
   7719     uint32_t _flag_a = 0, _flag_b = 0;
   7720     uint32_t _itail_tgt = 0;
   7721     RECOMP_REGS_LOCALS
   7722     RECOMP_ENTER(0x36157470u);
   7723 
   7724 L_36157470:
   7725     PUSH32(esp, 0x36157480u); /* 0x36157470: push 0x36157480 */
   7726     RECOMP_ICALL(0x3615FEB2u); /* 0x36157475: call 0x3615feb2 */ /* not lifted */
   7727     RECOMP_FLAGS_IN();
   7728     ecx = POP32_VAL(esp); /* 0x3615747A: pop ecx */
   7729     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615747B: ret  */
   7730     RECOMP_REGS_OUT();
   7731 }
   7732 
   7733 void sub_36157480(void) {
   7734     int _fpu_cmp = 0;
   7735     uint32_t _cf = 0;
   7736     int _df = 1;
   7737     uint32_t _flag_k = FK_NONE;
   7738     uint32_t _flag_a = 0, _flag_b = 0;
   7739     uint32_t _itail_tgt = 0;
   7740     RECOMP_REGS_LOCALS
   7741     RECOMP_ENTER(0x36157480u);
   7742 
   7743 L_36157480:
   7744     ecx = 0x3630DB39u; /* 0x36157480: mov ecx, 0x3630db39 */
   7745 L_36157485:
   7746     { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; }
   7747     { RECOMP_REGS_OUT(); return; } /* end of function */
   7748   _ljump:
   7749     switch (_itail_tgt) {
   7750       case 0x36157480u: goto L_36157480;
   7751       case 0x36157485u: goto L_36157485;
   7752       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7753     }
   7754     RECOMP_REGS_OUT();
   7755 }
   7756 
   7757 void sub_36157490(void) {
   7758     int _fpu_cmp = 0;
   7759     uint32_t _cf = 0;
   7760     int _df = 1;
   7761     uint32_t _flag_k = FK_NONE;
   7762     uint32_t _flag_a = 0, _flag_b = 0;
   7763     uint32_t _itail_tgt = 0;
   7764     RECOMP_REGS_LOCALS
   7765     RECOMP_ENTER(0x36157490u);
   7766 
   7767 L_36157490:
   7768     RECOMP_ICALL(0x361574A0u); /* 0x36157490: call 0x361574a0 */ /* not lifted */
   7769     RECOMP_FLAGS_IN();
   7770     goto L_361574B0; /* 0x36157495: jmp 0x361574b0 */
   7771 L_361574B0:
   7772     PUSH32(esp, 0x361574C0u); /* 0x361574B0: push 0x361574c0 */
   7773     RECOMP_ICALL(0x3615FEB2u); /* 0x361574B5: call 0x3615feb2 */ /* not lifted */
   7774     RECOMP_FLAGS_IN();
   7775     ecx = POP32_VAL(esp); /* 0x361574BA: pop ecx */
   7776     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361574BB: ret  */
   7777     RECOMP_REGS_OUT();
   7778 }
   7779 
   7780 void sub_361574A0(void) {
   7781     int _fpu_cmp = 0;
   7782     uint32_t _cf = 0;
   7783     int _df = 1;
   7784     uint32_t _flag_k = FK_NONE;
   7785     uint32_t _flag_a = 0, _flag_b = 0;
   7786     uint32_t _itail_tgt = 0;
   7787     RECOMP_REGS_LOCALS
   7788     RECOMP_ENTER(0x361574A0u);
   7789 
   7790 L_361574A0:
   7791     ecx = 0x3630DB38u; /* 0x361574A0: mov ecx, 0x3630db38 */
   7792 L_361574A5:
   7793     { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; }
   7794     { RECOMP_REGS_OUT(); return; } /* end of function */
   7795   _ljump:
   7796     switch (_itail_tgt) {
   7797       case 0x361574A0u: goto L_361574A0;
   7798       case 0x361574A5u: goto L_361574A5;
   7799       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7800     }
   7801     RECOMP_REGS_OUT();
   7802 }
   7803 
   7804 void sub_361574B0(void) {
   7805     int _fpu_cmp = 0;
   7806     uint32_t _cf = 0;
   7807     int _df = 1;
   7808     uint32_t _flag_k = FK_NONE;
   7809     uint32_t _flag_a = 0, _flag_b = 0;
   7810     uint32_t _itail_tgt = 0;
   7811     RECOMP_REGS_LOCALS
   7812     RECOMP_ENTER(0x361574B0u);
   7813 
   7814 L_361574B0:
   7815     PUSH32(esp, 0x361574C0u); /* 0x361574B0: push 0x361574c0 */
   7816     RECOMP_ICALL(0x3615FEB2u); /* 0x361574B5: call 0x3615feb2 */ /* not lifted */
   7817     RECOMP_FLAGS_IN();
   7818     ecx = POP32_VAL(esp); /* 0x361574BA: pop ecx */
   7819     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361574BB: ret  */
   7820     RECOMP_REGS_OUT();
   7821 }
   7822 
   7823 void sub_361574C0(void) {
   7824     int _fpu_cmp = 0;
   7825     uint32_t _cf = 0;
   7826     int _df = 1;
   7827     uint32_t _flag_k = FK_NONE;
   7828     uint32_t _flag_a = 0, _flag_b = 0;
   7829     uint32_t _itail_tgt = 0;
   7830     RECOMP_REGS_LOCALS
   7831     RECOMP_ENTER(0x361574C0u);
   7832 
   7833 L_361574C0:
   7834     ecx = 0x3630DB38u; /* 0x361574C0: mov ecx, 0x3630db38 */
   7835 L_361574C5:
   7836     { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; }
   7837     { RECOMP_REGS_OUT(); return; } /* end of function */
   7838   _ljump:
   7839     switch (_itail_tgt) {
   7840       case 0x361574C0u: goto L_361574C0;
   7841       case 0x361574C5u: goto L_361574C5;
   7842       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7843     }
   7844     RECOMP_REGS_OUT();
   7845 }
   7846 
   7847 void sub_361574D0(void) {
   7848     int _fpu_cmp = 0;
   7849     uint32_t _cf = 0;
   7850     int _df = 1;
   7851     uint32_t _flag_k = FK_NONE;
   7852     uint32_t _flag_a = 0, _flag_b = 0;
   7853     uint32_t _itail_tgt = 0;
   7854     RECOMP_REGS_LOCALS
   7855     RECOMP_ENTER(0x361574D0u);
   7856 
   7857 L_361574D0:
   7858     PUSH32(esp, ebp); /* 0x361574D0: push ebp */
   7859     ebp = esp; /* 0x361574D1: mov ebp, esp */
   7860     PUSH32(esp, esi); /* 0x361574D3: push esi */
   7861     esi = ecx; /* 0x361574D4: mov esi, ecx */
   7862     RECOMP_ICALL(0x36157580u); /* 0x361574D6: call 0x36157580 */ /* not lifted */
   7863     RECOMP_FLAGS_IN();
   7864     /* test MEM8(ebp + 0x8), 1 */ /* 0x361574DB: test byte ptr [ebp + 8], 1 */
   7865     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7866     _cf = 0;
   7867     _flag_k = FK_NARROW(FK_TEST, 24);
   7868     if (TEST_Z(_flag_a, _flag_b)) goto L_361574EA; /* 0x361574DF: je 0x361574ea */
   7869 L_361574E1:
   7870     PUSH32(esp, esi); /* 0x361574E1: push esi */
   7871     RECOMP_ICALL(0x3615FCC4u); /* 0x361574E2: call 0x3615fcc4 */ /* not lifted */
   7872     RECOMP_FLAGS_IN();
   7873     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7874     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7875     esp = esp + 4; /* 0x361574E7: add esp, 4 */
   7876     _flag_k = FK_ADD;
   7877 L_361574EA:
   7878     eax = esi; /* 0x361574EA: mov eax, esi */
   7879     esi = POP32_VAL(esp); /* 0x361574EC: pop esi */
   7880     ebp = POP32_VAL(esp); /* 0x361574ED: pop ebp */
   7881     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361574EE: ret 4 */
   7882     RECOMP_REGS_OUT();
   7883 }
   7884 
   7885 void sub_36157500(void) {
   7886     int _fpu_cmp = 0;
   7887     uint32_t _cf = 0;
   7888     int _df = 1;
   7889     uint32_t _flag_k = FK_NONE;
   7890     uint32_t _flag_a = 0, _flag_b = 0;
   7891     uint32_t _itail_tgt = 0;
   7892     RECOMP_REGS_LOCALS
   7893     RECOMP_ENTER(0x36157500u);
   7894 
   7895 L_36157500:
   7896     PUSH32(esp, ebp); /* 0x36157500: push ebp */
   7897     ebp = esp; /* 0x36157501: mov ebp, esp */
   7898     PUSH32(esp, 0xFFFFFFFFu); /* 0x36157503: push -1 */
   7899     PUSH32(esp, 0x3616DCFFu); /* 0x36157505: push 0x3616dcff */
   7900     eax = MEM32(FS_BASE + (0)); /* 0x3615750A: mov eax, dword ptr fs:[0] */
   7901     PUSH32(esp, eax); /* 0x36157510: push eax */
   7902     MEM32(FS_BASE + (0)) = esp; /* 0x36157511: mov dword ptr fs:[0], esp */
   7903     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7904     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7905     esp = esp - 8; /* 0x36157518: sub esp, 8 */
   7906     _flag_k = FK_CMP;
   7907     PUSH32(esp, esi); /* 0x3615751B: push esi */
   7908     esi = ecx; /* 0x3615751C: mov esi, ecx */
   7909     MEM32(ebp + (-0x14)) = esi; /* 0x3615751E: mov dword ptr [ebp - 0x14], esi */
   7910     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36157521: call dword ptr [0x3616ffd0] */
   7911     RECOMP_FLAGS_IN();
   7912     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36157527: mov cl, byte ptr [ebp - 0xd] */
   7913     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7914     eax = 0; /* 0x3615752A: xor eax, eax */
   7915     _cf = 0;
   7916     _flag_k = FK_TEST;
   7917     MEM8(esi + 0x24) = (uint8_t)(LO8(ecx)); /* 0x3615752C: mov byte ptr [esi + 0x24], cl */
   7918     MEM32(esi + 0x28) = eax; /* 0x3615752F: mov dword ptr [esi + 0x28], eax */
   7919     MEM32(esi + 0x2C) = eax; /* 0x36157532: mov dword ptr [esi + 0x2c], eax */
   7920     MEM32(esi + 0x30) = eax; /* 0x36157535: mov dword ptr [esi + 0x30], eax */
   7921     MEM32(ebp + (-0x4)) = eax; /* 0x36157538: mov dword ptr [ebp - 4], eax */
   7922     MEM32(esi + 0x20) = 0x361707DCu; /* 0x3615753B: mov dword ptr [esi + 0x20], 0x361707dc */
   7923     ecx = esi + 0x34; /* 0x36157542: lea ecx, [esi + 0x34] */
   7924     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36157545: mov byte ptr [ebp - 4], 1 */
   7925     RECOMP_ICALL(0x3615B920u); /* 0x36157549: call 0x3615b920 */ /* not lifted */
   7926     RECOMP_FLAGS_IN();
   7927     ecx = esi; /* 0x3615754E: mov ecx, esi */
   7928     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36157550: mov byte ptr [ebp - 4], 2 */
   7929     MEM32(esi) = 0x36178D1Cu; /* 0x36157554: mov dword ptr [esi], 0x36178d1c */
   7930     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3615755A: call dword ptr [0x3616fc20] */
   7931     RECOMP_FLAGS_IN();
   7932     ecx = MEM32(ebp + (-0xC)); /* 0x36157560: mov ecx, dword ptr [ebp - 0xc] */
   7933     eax = esi; /* 0x36157563: mov eax, esi */
   7934     esi = POP32_VAL(esp); /* 0x36157565: pop esi */
   7935     MEM32(FS_BASE + (0)) = ecx; /* 0x36157566: mov dword ptr fs:[0], ecx */
   7936     esp = ebp; /* 0x3615756D: mov esp, ebp */
   7937     ebp = POP32_VAL(esp); /* 0x3615756F: pop ebp */
   7938     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36157570: ret  */
   7939     RECOMP_REGS_OUT();
   7940 }
   7941 
   7942 void sub_36157580(void) {
   7943     int _fpu_cmp = 0;
   7944     uint32_t _cf = 0;
   7945     int _df = 1;
   7946     uint32_t _flag_k = FK_NONE;
   7947     uint32_t _flag_a = 0, _flag_b = 0;
   7948     uint32_t _itail_tgt = 0;
   7949     RECOMP_REGS_LOCALS
   7950     RECOMP_ENTER(0x36157580u);
   7951 
   7952 L_36157580:
   7953     PUSH32(esp, ebp); /* 0x36157580: push ebp */
   7954     ebp = esp; /* 0x36157581: mov ebp, esp */
   7955     PUSH32(esp, 0xFFFFFFFFu); /* 0x36157583: push -1 */
   7956     PUSH32(esp, 0x3616DD24u); /* 0x36157585: push 0x3616dd24 */
   7957     eax = MEM32(FS_BASE + (0)); /* 0x3615758A: mov eax, dword ptr fs:[0] */
   7958     PUSH32(esp, eax); /* 0x36157590: push eax */
   7959     MEM32(FS_BASE + (0)) = esp; /* 0x36157591: mov dword ptr fs:[0], esp */
   7960     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7961     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7962     esp = esp - 8; /* 0x36157598: sub esp, 8 */
   7963     _flag_k = FK_CMP;
   7964     PUSH32(esp, esi); /* 0x3615759B: push esi */
   7965     esi = ecx; /* 0x3615759C: mov esi, ecx */
   7966     PUSH32(esp, edi); /* 0x3615759E: push edi */
   7967     MEM32(ebp + (-0x14)) = esi; /* 0x3615759F: mov dword ptr [ebp - 0x14], esi */
   7968     MEM32(esi) = 0x36178D1Cu; /* 0x361575A2: mov dword ptr [esi], 0x36178d1c */
   7969     ecx = esi + 0x34; /* 0x361575A8: lea ecx, [esi + 0x34] */
   7970     MEM32(ebp + (-0x4)) = 1; /* 0x361575AB: mov dword ptr [ebp - 4], 1 */
   7971     RECOMP_ICALL(0x3615BA30u); /* 0x361575B2: call 0x3615ba30 */ /* not lifted */
   7972     RECOMP_FLAGS_IN();
   7973     MEM32(esi + 0x20) = 0x361707DCu; /* 0x361575B7: mov dword ptr [esi + 0x20], 0x361707dc */
   7974     eax = MEM32(esi + 0x2C); /* 0x361575BE: mov eax, dword ptr [esi + 0x2c] */
   7975     edi = MEM32(esi + 0x28); /* 0x361575C1: mov edi, dword ptr [esi + 0x28] */
   7976     /* cmp edi, eax */ /* 0x361575C4: cmp edi, eax */
   7977     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7978     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7979     _flag_k = FK_CMP;
   7980     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x361575C6: mov byte ptr [ebp - 4], 0 */
   7981     MEM32(ebp + (-0x10)) = eax; /* 0x361575CA: mov dword ptr [ebp - 0x10], eax */
   7982     if (CMP_EQ(_flag_a, _flag_b)) goto L_361575EB; /* 0x361575CD: je 0x361575eb */
   7983 L_361575CF:
   7984     PUSH32(esp, ebx); /* 0x361575CF: push ebx */
   7985     ebx = edi + 0xC; /* 0x361575D0: lea ebx, [edi + 0xc] */
   7986 L_361575D3:
   7987     PUSH32(esp, 1); /* 0x361575D3: push 1 */
   7988     ecx = ebx; /* 0x361575D5: mov ecx, ebx */
   7989     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x361575D7: call dword ptr [0x3616f100] */
   7990     RECOMP_FLAGS_IN();
   7991     eax = MEM32(ebp + (-0x10)); /* 0x361575DD: mov eax, dword ptr [ebp - 0x10] */
   7992     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
   7993     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7994     edi = edi + 0x24u; /* 0x361575E0: add edi, 0x24 */
   7995     _flag_k = FK_ADD;
   7996     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u);
   7997     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7998     ebx = ebx + 0x24u; /* 0x361575E3: add ebx, 0x24 */
   7999     _flag_k = FK_ADD;
   8000     /* cmp edi, eax */ /* 0x361575E6: cmp edi, eax */
   8001     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8003     _flag_k = FK_CMP;
   8004     RECOMP_BACKEDGE();
   8005     if (CMP_NE(_flag_a, _flag_b)) goto L_361575D3; /* 0x361575E8: jne 0x361575d3 */
   8006 L_361575EA:
   8007     ebx = POP32_VAL(esp); /* 0x361575EA: pop ebx */
   8008 L_361575EB:
   8009     eax = MEM32(esi + 0x28); /* 0x361575EB: mov eax, dword ptr [esi + 0x28] */
   8010     PUSH32(esp, eax); /* 0x361575EE: push eax */
   8011     RECOMP_ICALL(0x3615FCC4u); /* 0x361575EF: call 0x3615fcc4 */ /* not lifted */
   8012     RECOMP_FLAGS_IN();
   8013     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8014     eax = 0; /* 0x361575F4: xor eax, eax */
   8015     _cf = 0;
   8016     _flag_k = FK_TEST;
   8017     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8018     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8019     esp = esp + 4; /* 0x361575F6: add esp, 4 */
   8020     _flag_k = FK_ADD;
   8021     ecx = esi; /* 0x361575F9: mov ecx, esi */
   8022     MEM32(esi + 0x28) = eax; /* 0x361575FB: mov dword ptr [esi + 0x28], eax */
   8023     MEM32(esi + 0x2C) = eax; /* 0x361575FE: mov dword ptr [esi + 0x2c], eax */
   8024     MEM32(esi + 0x30) = eax; /* 0x36157601: mov dword ptr [esi + 0x30], eax */
   8025     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36157604: mov dword ptr [ebp - 4], 0xffffffff */
   8026     RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x3615760B: call dword ptr [0x3616ffd4] */
   8027     RECOMP_FLAGS_IN();
   8028     ecx = MEM32(ebp + (-0xC)); /* 0x36157611: mov ecx, dword ptr [ebp - 0xc] */
   8029     edi = POP32_VAL(esp); /* 0x36157614: pop edi */
   8030     esi = POP32_VAL(esp); /* 0x36157615: pop esi */
   8031     MEM32(FS_BASE + (0)) = ecx; /* 0x36157616: mov dword ptr fs:[0], ecx */
   8032     esp = ebp; /* 0x3615761D: mov esp, ebp */
   8033     ebp = POP32_VAL(esp); /* 0x3615761F: pop ebp */
   8034     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36157620: ret  */
   8035     RECOMP_REGS_OUT();
   8036 }
   8037 
   8038 void sub_36157630(void) {
   8039     int _fpu_cmp = 0;
   8040     uint32_t _cf = 0;
   8041     int _df = 1;
   8042     uint32_t _flag_k = FK_NONE;
   8043     uint32_t _flag_a = 0, _flag_b = 0;
   8044     uint32_t _itail_tgt = 0;
   8045     RECOMP_REGS_LOCALS
   8046     RECOMP_ENTER(0x36157630u);
   8047 
   8048 L_36157630:
   8049     PUSH32(esp, esi); /* 0x36157630: push esi */
   8050     esi = ecx; /* 0x36157631: mov esi, ecx */
   8051     RECOMP_ICALL(MEM32(0x3616FF48)); /* 0x36157633: call dword ptr [0x3616ff48] */
   8052     RECOMP_FLAGS_IN();
   8053     PUSH32(esp, eax); /* 0x36157639: push eax */
   8054     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3615763A: call dword ptr [0x3616ff70] */
   8055     RECOMP_FLAGS_IN();
   8056     PUSH32(esp, 0); /* 0x36157640: push 0 */
   8057     PUSH32(esp, 0x361B2CD8u); /* 0x36157642: push 0x361b2cd8 */
   8058     PUSH32(esp, 0x361B2CC0u); /* 0x36157647: push 0x361b2cc0 */
   8059     PUSH32(esp, 0); /* 0x3615764C: push 0 */
   8060     PUSH32(esp, eax); /* 0x3615764E: push eax */
   8061     RECOMP_ICALL(0x3615FD86u); /* 0x3615764F: call 0x3615fd86 */ /* not lifted */
   8062     RECOMP_FLAGS_IN();
   8063     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   8064     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8065     esp = esp + 0x18u; /* 0x36157654: add esp, 0x18 */
   8066     _flag_k = FK_ADD;
   8067     /* test eax, eax */ /* 0x36157657: test eax, eax */
   8068     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8069     _cf = 0;
   8070     _flag_k = FK_TEST;
   8071     if (TEST_Z(_flag_a, _flag_b)) goto L_3615769A; /* 0x36157659: je 0x3615769a */
   8072 L_3615765B:
   8073     eax = MEM32(0x3616FF74); /* 0x3615765B: mov eax, dword ptr [0x3616ff74] */
   8074     eax = MEM32(eax); /* 0x36157660: mov eax, dword ptr [eax] */
   8075     PUSH32(esp, 0); /* 0x36157662: push 0 */
   8076     PUSH32(esp, 0x361B5A48u); /* 0x36157664: push 0x361b5a48 */
   8077     PUSH32(esp, 0x361B2D38u); /* 0x36157669: push 0x361b2d38 */
   8078     PUSH32(esp, 0); /* 0x3615766E: push 0 */
   8079     PUSH32(esp, eax); /* 0x36157670: push eax */
   8080     RECOMP_ICALL(0x3615FD86u); /* 0x36157671: call 0x3615fd86 */ /* not lifted */
   8081     RECOMP_FLAGS_IN();
   8082     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8083     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8084     esp = esp + 0x14u; /* 0x36157676: add esp, 0x14 */
   8085     _flag_k = FK_ADD;
   8086     ecx = esi + 0x34; /* 0x36157679: lea ecx, [esi + 0x34] */
   8087     PUSH32(esp, ecx); /* 0x3615767C: push ecx */
   8088     edx = esi + 0x20; /* 0x3615767D: lea edx, [esi + 0x20] */
   8089     PUSH32(esp, edx); /* 0x36157680: push edx */
   8090     ecx = eax; /* 0x36157681: mov ecx, eax */
   8091     RECOMP_ICALL(0x36029230u); /* 0x36157683: call 0x36029230 */ /* not lifted */
   8092     RECOMP_FLAGS_IN();
   8093     PUSH32(esp, 0); /* 0x36157688: push 0 */
   8094     PUSH32(esp, 0); /* 0x3615768A: push 0 */
   8095     PUSH32(esp, 0x41u); /* 0x3615768C: push 0x41 */
   8096     RECOMP_ICALL(0x3601C590u); /* 0x3615768E: call 0x3601c590 */ /* not lifted */
   8097     RECOMP_FLAGS_IN();
   8098     ecx = eax; /* 0x36157693: mov ecx, eax */
   8099     RECOMP_ICALL(0x3601D080u); /* 0x36157695: call 0x3601d080 */ /* not lifted */
   8100     RECOMP_FLAGS_IN();
   8101 L_3615769A:
   8102     ecx = esi; /* 0x3615769A: mov ecx, esi */
   8103     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3615769C: call dword ptr [0x3616fc20] */
   8104     RECOMP_FLAGS_IN();
   8105     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8106     eax = 0; /* 0x361576A2: xor eax, eax */
   8107     _cf = 0;
   8108     _flag_k = FK_TEST;
   8109     esi = POP32_VAL(esp); /* 0x361576A4: pop esi */
   8110     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361576A5: ret  */
   8111     RECOMP_REGS_OUT();
   8112 }
   8113 
   8114 void sub_361576B0(void) {
   8115     int _fpu_cmp = 0;
   8116     uint32_t _cf = 0;
   8117     int _df = 1;
   8118     uint32_t _flag_k = FK_NONE;
   8119     uint32_t _flag_a = 0, _flag_b = 0;
   8120     uint32_t _itail_tgt = 0;
   8121     RECOMP_REGS_LOCALS
   8122     RECOMP_ENTER(0x361576B0u);
   8123 
   8124 L_361576B0:
   8125     PUSH32(esp, ebp); /* 0x361576B0: push ebp */
   8126     ebp = esp; /* 0x361576B1: mov ebp, esp */
   8127     PUSH32(esp, esi); /* 0x361576B3: push esi */
   8128     esi = MEM32(ebp + 0x8); /* 0x361576B4: mov esi, dword ptr [ebp + 8] */
   8129     eax = ecx + 0x34; /* 0x361576B7: lea eax, [ecx + 0x34] */
   8130     PUSH32(esp, eax); /* 0x361576BA: push eax */
   8131     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
   8132     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8133     ecx = ecx + 0x20u; /* 0x361576BB: add ecx, 0x20 */
   8134     _flag_k = FK_ADD;
   8135     PUSH32(esp, ecx); /* 0x361576BE: push ecx */
   8136     PUSH32(esp, esi); /* 0x361576BF: push esi */
   8137     RECOMP_ICALL(0x36156ED0u); /* 0x361576C0: call 0x36156ed0 */ /* not lifted */
   8138     RECOMP_FLAGS_IN();
   8139     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8140     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8141     esp = esp + 8; /* 0x361576C5: add esp, 8 */
   8142     _flag_k = FK_ADD;
   8143     PUSH32(esp, eax); /* 0x361576C8: push eax */
   8144     RECOMP_ICALL(0x3615BB40u); /* 0x361576C9: call 0x3615bb40 */ /* not lifted */
   8145     RECOMP_FLAGS_IN();
   8146     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8147     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8148     esp = esp + 8; /* 0x361576CE: add esp, 8 */
   8149     _flag_k = FK_ADD;
   8150     ecx = esi; /* 0x361576D1: mov ecx, esi */
   8151     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361576D3: call dword ptr [0x3616fadc] */
   8152     RECOMP_FLAGS_IN();
   8153     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   8154     _cf = (eax) != 0;
   8155     eax = (uint32_t)(-(int32_t)eax); /* 0x361576D9: neg eax */
   8156     _flag_k = FK_CMP;
   8157     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361576DB: sbb eax, eax */
   8158       eax = _sc ? 0xFFFFFFFFu : 0;
   8159       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   8160       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   8161     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8162     eax = eax + 1; /* 0x361576DD: inc eax */
   8163     _flag_k = FK_INC;
   8164     esi = POP32_VAL(esp); /* 0x361576DE: pop esi */
   8165     ebp = POP32_VAL(esp); /* 0x361576DF: pop ebp */
   8166     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361576E0: ret 4 */
   8167     RECOMP_REGS_OUT();
   8168 }
   8169 
   8170 void sub_361576F0(void) {
   8171     int _fpu_cmp = 0;
   8172     uint32_t _cf = 0;
   8173     int _df = 1;
   8174     uint32_t _flag_k = FK_NONE;
   8175     uint32_t _flag_a = 0, _flag_b = 0;
   8176     uint32_t _itail_tgt = 0;
   8177     RECOMP_REGS_LOCALS
   8178     RECOMP_ENTER(0x361576F0u);
   8179 
   8180 L_361576F0:
   8181     PUSH32(esp, ebp); /* 0x361576F0: push ebp */
   8182     ebp = esp; /* 0x361576F1: mov ebp, esp */
   8183     eax = ecx + 0x34; /* 0x361576F3: lea eax, [ecx + 0x34] */
   8184     PUSH32(esp, eax); /* 0x361576F6: push eax */
   8185     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
   8186     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8187     ecx = ecx + 0x20u; /* 0x361576F7: add ecx, 0x20 */
   8188     _flag_k = FK_ADD;
   8189     PUSH32(esp, ecx); /* 0x361576FA: push ecx */
   8190     ecx = MEM32(ebp + 0x8); /* 0x361576FB: mov ecx, dword ptr [ebp + 8] */
   8191     PUSH32(esp, ecx); /* 0x361576FE: push ecx */
   8192     RECOMP_ICALL(0x36156EF0u); /* 0x361576FF: call 0x36156ef0 */ /* not lifted */
   8193     RECOMP_FLAGS_IN();
   8194     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8196     esp = esp + 8; /* 0x36157704: add esp, 8 */
   8197     _flag_k = FK_ADD;
   8198     PUSH32(esp, eax); /* 0x36157707: push eax */
   8199     RECOMP_ICALL(0x3615BB20u); /* 0x36157708: call 0x3615bb20 */ /* not lifted */
   8200     RECOMP_FLAGS_IN();
   8201     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8202     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8203     esp = esp + 8; /* 0x3615770D: add esp, 8 */
   8204     _flag_k = FK_ADD;
   8205     ebp = POP32_VAL(esp); /* 0x36157710: pop ebp */
   8206     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36157711: ret 4 */
   8207     RECOMP_REGS_OUT();
   8208 }
   8209 
   8210 void sub_36157720(void) {
   8211     int _fpu_cmp = 0;
   8212     uint32_t _cf = 0;
   8213     int _df = 1;
   8214     uint32_t _flag_k = FK_NONE;
   8215     uint32_t _flag_a = 0, _flag_b = 0;
   8216     uint32_t _itail_tgt = 0;
   8217     RECOMP_REGS_LOCALS
   8218     RECOMP_ENTER(0x36157720u);
   8219 
   8220 L_36157720:
   8221     RECOMP_ICALL(0x36157730u); /* 0x36157720: call 0x36157730 */ /* not lifted */
   8222     RECOMP_FLAGS_IN();
   8223     goto L_36157740; /* 0x36157725: jmp 0x36157740 */
   8224 L_36157740:
   8225     PUSH32(esp, 0x36157750u); /* 0x36157740: push 0x36157750 */
   8226     RECOMP_ICALL(0x3615FEB2u); /* 0x36157745: call 0x3615feb2 */ /* not lifted */
   8227     RECOMP_FLAGS_IN();
   8228     ecx = POP32_VAL(esp); /* 0x3615774A: pop ecx */
   8229     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615774B: ret  */
   8230     RECOMP_REGS_OUT();
   8231 }
   8232 
   8233 void sub_36157730(void) {
   8234     int _fpu_cmp = 0;
   8235     uint32_t _cf = 0;
   8236     int _df = 1;
   8237     uint32_t _flag_k = FK_NONE;
   8238     uint32_t _flag_a = 0, _flag_b = 0;
   8239     uint32_t _itail_tgt = 0;
   8240     RECOMP_REGS_LOCALS
   8241     RECOMP_ENTER(0x36157730u);
   8242 
   8243 L_36157730:
   8244     ecx = 0x3630DB3Du; /* 0x36157730: mov ecx, 0x3630db3d */
   8245 L_36157735:
   8246     { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; }
   8247     { RECOMP_REGS_OUT(); return; } /* end of function */
   8248   _ljump:
   8249     switch (_itail_tgt) {
   8250       case 0x36157730u: goto L_36157730;
   8251       case 0x36157735u: goto L_36157735;
   8252       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8253     }
   8254     RECOMP_REGS_OUT();
   8255 }
   8256 
   8257 void sub_36157740(void) {
   8258     int _fpu_cmp = 0;
   8259     uint32_t _cf = 0;
   8260     int _df = 1;
   8261     uint32_t _flag_k = FK_NONE;
   8262     uint32_t _flag_a = 0, _flag_b = 0;
   8263     uint32_t _itail_tgt = 0;
   8264     RECOMP_REGS_LOCALS
   8265     RECOMP_ENTER(0x36157740u);
   8266 
   8267 L_36157740:
   8268     PUSH32(esp, 0x36157750u); /* 0x36157740: push 0x36157750 */
   8269     RECOMP_ICALL(0x3615FEB2u); /* 0x36157745: call 0x3615feb2 */ /* not lifted */
   8270     RECOMP_FLAGS_IN();
   8271     ecx = POP32_VAL(esp); /* 0x3615774A: pop ecx */
   8272     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615774B: ret  */
   8273     RECOMP_REGS_OUT();
   8274 }
   8275 
   8276 void sub_36157750(void) {
   8277     int _fpu_cmp = 0;
   8278     uint32_t _cf = 0;
   8279     int _df = 1;
   8280     uint32_t _flag_k = FK_NONE;
   8281     uint32_t _flag_a = 0, _flag_b = 0;
   8282     uint32_t _itail_tgt = 0;
   8283     RECOMP_REGS_LOCALS
   8284     RECOMP_ENTER(0x36157750u);
   8285 
   8286 L_36157750:
   8287     ecx = 0x3630DB3Du; /* 0x36157750: mov ecx, 0x3630db3d */
   8288 L_36157755:
   8289     { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; }
   8290     { RECOMP_REGS_OUT(); return; } /* end of function */
   8291   _ljump:
   8292     switch (_itail_tgt) {
   8293       case 0x36157750u: goto L_36157750;
   8294       case 0x36157755u: goto L_36157755;
   8295       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8296     }
   8297     RECOMP_REGS_OUT();
   8298 }
   8299 
   8300 void sub_36157760(void) {
   8301     int _fpu_cmp = 0;
   8302     uint32_t _cf = 0;
   8303     int _df = 1;
   8304     uint32_t _flag_k = FK_NONE;
   8305     uint32_t _flag_a = 0, _flag_b = 0;
   8306     uint32_t _itail_tgt = 0;
   8307     RECOMP_REGS_LOCALS
   8308     RECOMP_ENTER(0x36157760u);
   8309 
   8310 L_36157760:
   8311     RECOMP_ICALL(0x36157770u); /* 0x36157760: call 0x36157770 */ /* not lifted */
   8312     RECOMP_FLAGS_IN();
   8313     goto L_36157780; /* 0x36157765: jmp 0x36157780 */
   8314 L_36157780:
   8315     PUSH32(esp, 0x36157790u); /* 0x36157780: push 0x36157790 */
   8316     RECOMP_ICALL(0x3615FEB2u); /* 0x36157785: call 0x3615feb2 */ /* not lifted */
   8317     RECOMP_FLAGS_IN();
   8318     ecx = POP32_VAL(esp); /* 0x3615778A: pop ecx */
   8319     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615778B: ret  */
   8320     RECOMP_REGS_OUT();
   8321 }
   8322 
   8323 void sub_36157770(void) {
   8324     int _fpu_cmp = 0;
   8325     uint32_t _cf = 0;
   8326     int _df = 1;
   8327     uint32_t _flag_k = FK_NONE;
   8328     uint32_t _flag_a = 0, _flag_b = 0;
   8329     uint32_t _itail_tgt = 0;
   8330     RECOMP_REGS_LOCALS
   8331     RECOMP_ENTER(0x36157770u);
   8332 
   8333 L_36157770:
   8334     ecx = 0x3630DB3Cu; /* 0x36157770: mov ecx, 0x3630db3c */
   8335 L_36157775:
   8336     { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; }
   8337     { RECOMP_REGS_OUT(); return; } /* end of function */
   8338   _ljump:
   8339     switch (_itail_tgt) {
   8340       case 0x36157770u: goto L_36157770;
   8341       case 0x36157775u: goto L_36157775;
   8342       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8343     }
   8344     RECOMP_REGS_OUT();
   8345 }
   8346 
   8347 void sub_36157780(void) {
   8348     int _fpu_cmp = 0;
   8349     uint32_t _cf = 0;
   8350     int _df = 1;
   8351     uint32_t _flag_k = FK_NONE;
   8352     uint32_t _flag_a = 0, _flag_b = 0;
   8353     uint32_t _itail_tgt = 0;
   8354     RECOMP_REGS_LOCALS
   8355     RECOMP_ENTER(0x36157780u);
   8356 
   8357 L_36157780:
   8358     PUSH32(esp, 0x36157790u); /* 0x36157780: push 0x36157790 */
   8359     RECOMP_ICALL(0x3615FEB2u); /* 0x36157785: call 0x3615feb2 */ /* not lifted */
   8360     RECOMP_FLAGS_IN();
   8361     ecx = POP32_VAL(esp); /* 0x3615778A: pop ecx */
   8362     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615778B: ret  */
   8363     RECOMP_REGS_OUT();
   8364 }
   8365 
   8366 void sub_36157790(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(0x36157790u);
   8375 
   8376 L_36157790:
   8377     ecx = 0x3630DB3Cu; /* 0x36157790: mov ecx, 0x3630db3c */
   8378 L_36157795:
   8379     { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; }
   8380     { RECOMP_REGS_OUT(); return; } /* end of function */
   8381   _ljump:
   8382     switch (_itail_tgt) {
   8383       case 0x36157790u: goto L_36157790;
   8384       case 0x36157795u: goto L_36157795;
   8385       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8386     }
   8387     RECOMP_REGS_OUT();
   8388 }
   8389 
   8390 void sub_361577A0(void) {
   8391     int _fpu_cmp = 0;
   8392     uint32_t _cf = 0;
   8393     int _df = 1;
   8394     uint32_t _flag_k = FK_NONE;
   8395     uint32_t _flag_a = 0, _flag_b = 0;
   8396     uint32_t _itail_tgt = 0;
   8397     RECOMP_REGS_LOCALS
   8398     RECOMP_ENTER(0x361577A0u);
   8399 
   8400 L_361577A0:
   8401     PUSH32(esp, ebp); /* 0x361577A0: push ebp */
   8402     ebp = esp; /* 0x361577A1: mov ebp, esp */
   8403     PUSH32(esp, 0xFFFFFFFFu); /* 0x361577A3: push -1 */
   8404     PUSH32(esp, 0x3616DD4Au); /* 0x361577A5: push 0x3616dd4a */
   8405     eax = MEM32(FS_BASE + (0)); /* 0x361577AA: mov eax, dword ptr fs:[0] */
   8406     PUSH32(esp, eax); /* 0x361577B0: push eax */
   8407     MEM32(FS_BASE + (0)) = esp; /* 0x361577B1: mov dword ptr fs:[0], esp */
   8408     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8410     esp = esp - 0x14u; /* 0x361577B8: sub esp, 0x14 */
   8411     _flag_k = FK_CMP;
   8412     PUSH32(esp, ebx); /* 0x361577BB: push ebx */
   8413     PUSH32(esp, esi); /* 0x361577BC: push esi */
   8414     esi = ecx; /* 0x361577BD: mov esi, ecx */
   8415     PUSH32(esp, edi); /* 0x361577BF: push edi */
   8416     MEM32(ebp + (-0x10)) = esi; /* 0x361577C0: mov dword ptr [ebp - 0x10], esi */
   8417     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x361577C3: mov cl, byte ptr [ebp + 0xb] */
   8418     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8419     eax = 0; /* 0x361577C6: xor eax, eax */
   8420     _cf = 0;
   8421     _flag_k = FK_TEST;
   8422     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(ecx)); /* 0x361577C8: mov byte ptr [ebp - 0x20], cl */
   8423     edi = 0x361B41D8u; /* 0x361577CB: mov edi, 0x361b41d8 */
   8424     PUSH32(esp, 1); /* 0x361577D0: push 1 */
   8425     MEM32(ebp + (-0x4)) = eax; /* 0x361577D2: mov dword ptr [ebp - 4], eax */
   8426     MEM32(ebp + (-0x1C)) = eax; /* 0x361577D5: mov dword ptr [ebp - 0x1c], eax */
   8427     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   8428     ecx = ecx | 0xFFFFFFFFu; /* 0x361577D8: or ecx, 0xffffffff */
   8429     _cf = 0;
   8430     _flag_k = FK_TEST;
   8431     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; } /* 0x361577DB: repne scasb al, byte ptr es:[edi] */
   8432     ecx = ~ecx; /* 0x361577DD: not ecx */
   8433     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8434     ecx = ecx - 1; /* 0x361577DF: dec ecx */
   8435     _flag_k = FK_DEC;
   8436     ebx = ecx; /* 0x361577E0: mov ebx, ecx */
   8437     PUSH32(esp, ebx); /* 0x361577E2: push ebx */
   8438     ecx = ebp + (-0x20); /* 0x361577E3: lea ecx, [ebp - 0x20] */
   8439     MEM32(ebp + (-0x18)) = eax; /* 0x361577E6: mov dword ptr [ebp - 0x18], eax */
   8440     MEM32(ebp + (-0x14)) = eax; /* 0x361577E9: mov dword ptr [ebp - 0x14], eax */
   8441     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x361577EC: call dword ptr [0x3616f00c] */
   8442     RECOMP_FLAGS_IN();
   8443     /* test LO8(eax), LO8(eax) */ /* 0x361577F2: test al, al */
   8444     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8445     _cf = 0;
   8446     _flag_k = FK_NARROW(FK_TEST, 24);
   8447     if (TEST_Z(_flag_a, _flag_b)) goto L_3615781B; /* 0x361577F4: je 0x3615781b */
   8448 L_361577F6:
   8449     edi = MEM32(ebp + (-0x1C)); /* 0x361577F6: mov edi, dword ptr [ebp - 0x1c] */
   8450     ecx = ebx; /* 0x361577F9: mov ecx, ebx */
   8451     edx = ecx; /* 0x361577FB: mov edx, ecx */
   8452     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x361577FD: shr ecx, 2 */
   8453     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8454     ecx = ecx >> 2u; /* 0x361577FD: shr ecx, 2 */
   8455     esi = 0x361B41D8u; /* 0x36157800: mov esi, 0x361b41d8 */
   8456     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36157805: 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; }
   8457     ecx = edx; /* 0x36157807: mov ecx, edx */
   8458     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   8459     ecx = ecx & 3; /* 0x36157809: and ecx, 3 */
   8460     _cf = 0;
   8461     _flag_k = FK_TEST;
   8462     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3615780C: 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; }
   8463     eax = MEM32(ebp + (-0x1C)); /* 0x3615780E: mov eax, dword ptr [ebp - 0x1c] */
   8464     esi = MEM32(ebp + (-0x10)); /* 0x36157811: mov esi, dword ptr [ebp - 0x10] */
   8465     MEM32(ebp + (-0x18)) = ebx; /* 0x36157814: mov dword ptr [ebp - 0x18], ebx */
   8466     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36157817: mov byte ptr [eax + ebx], 0 */
   8467 L_3615781B:
   8468     edx = MEM32(ebp + 0x8); /* 0x3615781B: mov edx, dword ptr [ebp + 8] */
   8469     ecx = ebp + (-0x20); /* 0x3615781E: lea ecx, [ebp - 0x20] */
   8470     PUSH32(esp, ecx); /* 0x36157821: push ecx */
   8471     PUSH32(esp, edx); /* 0x36157822: push edx */
   8472     ecx = esi; /* 0x36157823: mov ecx, esi */
   8473     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36157825: mov byte ptr [ebp - 4], 1 */
   8474     RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x36157829: call dword ptr [0x3616fc0c] */
   8475     RECOMP_FLAGS_IN();
   8476     eax = MEM32(ebp + (-0x1C)); /* 0x3615782F: mov eax, dword ptr [ebp - 0x1c] */
   8477     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8478     edi = 0; /* 0x36157832: xor edi, edi */
   8479     _cf = 0;
   8480     _flag_k = FK_TEST;
   8481     /* cmp eax, edi */ /* 0x36157834: cmp eax, edi */
   8482     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8484     _flag_k = FK_CMP;
   8485     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36157836: mov byte ptr [ebp - 4], 3 */
   8486     if (CMP_EQ(_flag_a, _flag_b)) goto L_36157858; /* 0x3615783A: je 0x36157858 */
   8487 L_3615783C:
   8488     ecx = eax + (-0x1); /* 0x3615783C: lea ecx, [eax - 1] */
   8489     SET_LO8(eax, MEM8(ecx)); /* 0x3615783F: mov al, byte ptr [ecx] */
   8490     /* test LO8(eax), LO8(eax) */ /* 0x36157841: test al, al */
   8491     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8492     _cf = 0;
   8493     _flag_k = FK_NARROW(FK_TEST, 24);
   8494     if (TEST_Z(_flag_a, _flag_b)) goto L_3615784F; /* 0x36157843: je 0x3615784f */
   8495 L_36157845:
   8496     /* cmp LO8(eax), 0xFFu */ /* 0x36157845: cmp al, 0xff */
   8497     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   8498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8499     _flag_k = FK_NARROW(FK_CMP, 24);
   8500     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615784F; /* 0x36157847: je 0x3615784f */
   8501 L_36157849:
   8502     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8503     SET_LO8(eax, LO8(eax) - 1); /* 0x36157849: dec al */
   8504     _flag_k = FK_NARROW(FK_DEC, 24);
   8505     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3615784B: mov byte ptr [ecx], al */
   8506     goto L_36157858; /* 0x3615784D: jmp 0x36157858 */
   8507 L_3615784F:
   8508     PUSH32(esp, ecx); /* 0x3615784F: push ecx */
   8509     RECOMP_ICALL(0x3615FCC4u); /* 0x36157850: call 0x3615fcc4 */ /* not lifted */
   8510     RECOMP_FLAGS_IN();
   8511     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8512     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8513     esp = esp + 4; /* 0x36157855: add esp, 4 */
   8514     _flag_k = FK_ADD;
   8515 L_36157858:
   8516     eax = ebp + 0xC; /* 0x36157858: lea eax, [ebp + 0xc] */
   8517     PUSH32(esp, eax); /* 0x3615785B: push eax */
   8518     ecx = esi + 0x20; /* 0x3615785C: lea ecx, [esi + 0x20] */
   8519     MEM32(ebp + (-0x1C)) = edi; /* 0x3615785F: mov dword ptr [ebp - 0x1c], edi */
   8520     MEM32(ebp + (-0x18)) = edi; /* 0x36157862: mov dword ptr [ebp - 0x18], edi */
   8521     MEM32(ebp + (-0x14)) = edi; /* 0x36157865: mov dword ptr [ebp - 0x14], edi */
   8522     RECOMP_ICALL(0x3615B970u); /* 0x36157868: call 0x3615b970 */ /* not lifted */
   8523     RECOMP_FLAGS_IN();
   8524     ecx = MEM32(ebp + 0x18); /* 0x3615786D: mov ecx, dword ptr [ebp + 0x18] */
   8525     edx = MEM32(ebp + 0x1C); /* 0x36157870: mov edx, dword ptr [ebp + 0x1c] */
   8526     MEM32(esi + 0x2C) = ecx; /* 0x36157873: mov dword ptr [esi + 0x2c], ecx */
   8527     ecx = MEM32(ebp + 0x20); /* 0x36157876: mov ecx, dword ptr [ebp + 0x20] */
   8528     eax = esi + 0x34; /* 0x36157879: lea eax, [esi + 0x34] */
   8529     /* cmp eax, ecx */ /* 0x3615787C: cmp eax, ecx */
   8530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8532     _flag_k = FK_CMP;
   8533     MEM32(esi + 0x30) = edx; /* 0x3615787E: mov dword ptr [esi + 0x30], edx */
   8534     if (CMP_EQ(_flag_a, _flag_b)) goto L_3615788D; /* 0x36157881: je 0x3615788d */
   8535 L_36157883:
   8536     edx = MEM32(ecx); /* 0x36157883: mov edx, dword ptr [ecx] */
   8537     MEM32(eax) = edx; /* 0x36157885: mov dword ptr [eax], edx */
   8538     ecx = MEM32(ecx + 0x4); /* 0x36157887: mov ecx, dword ptr [ecx + 4] */
   8539     MEM32(eax + 0x4) = ecx; /* 0x3615788A: mov dword ptr [eax + 4], ecx */
   8540 L_3615788D:
   8541     ecx = ebp + 0xC; /* 0x3615788D: lea ecx, [ebp + 0xc] */
   8542     MEM32(esi) = 0x36178D40u; /* 0x36157890: mov dword ptr [esi], 0x36178d40 */
   8543     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36157896: mov dword ptr [ebp - 4], 0xffffffff */
   8544     RECOMP_ICALL(0x3615BA30u); /* 0x3615789D: call 0x3615ba30 */ /* not lifted */
   8545     RECOMP_FLAGS_IN();
   8546     ecx = MEM32(ebp + (-0xC)); /* 0x361578A2: mov ecx, dword ptr [ebp - 0xc] */
   8547     edi = POP32_VAL(esp); /* 0x361578A5: pop edi */
   8548     eax = esi; /* 0x361578A6: mov eax, esi */
   8549     esi = POP32_VAL(esp); /* 0x361578A8: pop esi */
   8550     ebx = POP32_VAL(esp); /* 0x361578A9: pop ebx */
   8551     MEM32(FS_BASE + (0)) = ecx; /* 0x361578AA: mov dword ptr fs:[0], ecx */
   8552     esp = ebp; /* 0x361578B1: mov esp, ebp */
   8553     ebp = POP32_VAL(esp); /* 0x361578B3: pop ebp */
   8554     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x361578B4: ret 0x1c */
   8555     RECOMP_REGS_OUT();
   8556 }
   8557 
   8558 void sub_361578C0(void) {
   8559     int _fpu_cmp = 0;
   8560     uint32_t _cf = 0;
   8561     int _df = 1;
   8562     uint32_t _flag_k = FK_NONE;
   8563     uint32_t _flag_a = 0, _flag_b = 0;
   8564     uint32_t _itail_tgt = 0;
   8565     RECOMP_REGS_LOCALS
   8566     RECOMP_ENTER(0x361578C0u);
   8567 
   8568 L_361578C0:
   8569     PUSH32(esp, ebp); /* 0x361578C0: push ebp */
   8570     ebp = esp; /* 0x361578C1: mov ebp, esp */
   8571     PUSH32(esp, esi); /* 0x361578C3: push esi */
   8572     esi = ecx; /* 0x361578C4: mov esi, ecx */
   8573     RECOMP_ICALL(0x36157960u); /* 0x361578C6: call 0x36157960 */ /* not lifted */
   8574     RECOMP_FLAGS_IN();
   8575     /* test MEM8(ebp + 0x8), 1 */ /* 0x361578CB: test byte ptr [ebp + 8], 1 */
   8576     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   8577     _cf = 0;
   8578     _flag_k = FK_NARROW(FK_TEST, 24);
   8579     if (TEST_Z(_flag_a, _flag_b)) goto L_361578DA; /* 0x361578CF: je 0x361578da */
   8580 L_361578D1:
   8581     PUSH32(esp, esi); /* 0x361578D1: push esi */
   8582     RECOMP_ICALL(0x3615FCC4u); /* 0x361578D2: call 0x3615fcc4 */ /* not lifted */
   8583     RECOMP_FLAGS_IN();
   8584     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8585     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8586     esp = esp + 4; /* 0x361578D7: add esp, 4 */
   8587     _flag_k = FK_ADD;
   8588 L_361578DA:
   8589     eax = esi; /* 0x361578DA: mov eax, esi */
   8590     esi = POP32_VAL(esp); /* 0x361578DC: pop esi */
   8591     ebp = POP32_VAL(esp); /* 0x361578DD: pop ebp */
   8592     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361578DE: ret 4 */
   8593     RECOMP_REGS_OUT();
   8594 }
   8595 
   8596 void sub_361578F0(void) {
   8597     int _fpu_cmp = 0;
   8598     uint32_t _cf = 0;
   8599     int _df = 1;
   8600     uint32_t _flag_k = FK_NONE;
   8601     uint32_t _flag_a = 0, _flag_b = 0;
   8602     uint32_t _itail_tgt = 0;
   8603     RECOMP_REGS_LOCALS
   8604     RECOMP_ENTER(0x361578F0u);
   8605 
   8606 L_361578F0:
   8607     PUSH32(esp, ebp); /* 0x361578F0: push ebp */
   8608     ebp = esp; /* 0x361578F1: mov ebp, esp */
   8609     PUSH32(esp, 0xFFFFFFFFu); /* 0x361578F3: push -1 */
   8610     PUSH32(esp, 0x3616DD74u); /* 0x361578F5: push 0x3616dd74 */
   8611     eax = MEM32(FS_BASE + (0)); /* 0x361578FA: mov eax, dword ptr fs:[0] */
   8612     PUSH32(esp, eax); /* 0x36157900: push eax */
   8613     MEM32(FS_BASE + (0)) = esp; /* 0x36157901: mov dword ptr fs:[0], esp */
   8614     PUSH32(esp, ecx); /* 0x36157908: push ecx */
   8615     PUSH32(esp, esi); /* 0x36157909: push esi */
   8616     esi = ecx; /* 0x3615790A: mov esi, ecx */
   8617     MEM32(ebp + (-0x10)) = esi; /* 0x3615790C: mov dword ptr [ebp - 0x10], esi */
   8618     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3615790F: call dword ptr [0x3616ffd0] */
   8619     RECOMP_FLAGS_IN();
   8620     ecx = esi + 0x20; /* 0x36157915: lea ecx, [esi + 0x20] */
   8621     MEM32(ebp + (-0x4)) = 0; /* 0x36157918: mov dword ptr [ebp - 4], 0 */
   8622     RECOMP_ICALL(0x3615B920u); /* 0x3615791F: call 0x3615b920 */ /* not lifted */
   8623     RECOMP_FLAGS_IN();
   8624     MEM32(esi + 0x34) = 0; /* 0x36157924: mov dword ptr [esi + 0x34], 0 */
   8625     MEM32(esi + 0x38) = 0; /* 0x3615792B: mov dword ptr [esi + 0x38], 0 */
   8626     ecx = esi; /* 0x36157932: mov ecx, esi */
   8627     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36157934: mov byte ptr [ebp - 4], 1 */
   8628     MEM32(esi) = 0x36178D40u; /* 0x36157938: mov dword ptr [esi], 0x36178d40 */
   8629     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3615793E: call dword ptr [0x3616fc20] */
   8630     RECOMP_FLAGS_IN();
   8631     ecx = MEM32(ebp + (-0xC)); /* 0x36157944: mov ecx, dword ptr [ebp - 0xc] */
   8632     eax = esi; /* 0x36157947: mov eax, esi */
   8633     esi = POP32_VAL(esp); /* 0x36157949: pop esi */
   8634     MEM32(FS_BASE + (0)) = ecx; /* 0x3615794A: mov dword ptr fs:[0], ecx */
   8635     esp = ebp; /* 0x36157951: mov esp, ebp */
   8636     ebp = POP32_VAL(esp); /* 0x36157953: pop ebp */
   8637     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36157954: ret  */
   8638     RECOMP_REGS_OUT();
   8639 }
   8640 
   8641 void sub_36157960(void) {
   8642     int _fpu_cmp = 0;
   8643     uint32_t _cf = 0;
   8644     int _df = 1;
   8645     uint32_t _flag_k = FK_NONE;
   8646     uint32_t _flag_a = 0, _flag_b = 0;
   8647     uint32_t _itail_tgt = 0;
   8648     RECOMP_REGS_LOCALS
   8649     RECOMP_ENTER(0x36157960u);
   8650 
   8651 L_36157960:
   8652     PUSH32(esp, ebp); /* 0x36157960: push ebp */
   8653     ebp = esp; /* 0x36157961: mov ebp, esp */
   8654     PUSH32(esp, 0xFFFFFFFFu); /* 0x36157963: push -1 */
   8655     PUSH32(esp, 0x3616DD89u); /* 0x36157965: push 0x3616dd89 */
   8656     eax = MEM32(FS_BASE + (0)); /* 0x3615796A: mov eax, dword ptr fs:[0] */
   8657     PUSH32(esp, eax); /* 0x36157970: push eax */
   8658     MEM32(FS_BASE + (0)) = esp; /* 0x36157971: mov dword ptr fs:[0], esp */
   8659     PUSH32(esp, ecx); /* 0x36157978: push ecx */
   8660     PUSH32(esp, esi); /* 0x36157979: push esi */
   8661     esi = ecx; /* 0x3615797A: mov esi, ecx */
   8662     MEM32(ebp + (-0x10)) = esi; /* 0x3615797C: mov dword ptr [ebp - 0x10], esi */
   8663     MEM32(esi) = 0x36178D40u; /* 0x3615797F: mov dword ptr [esi], 0x36178d40 */
   8664     ecx = esi + 0x20; /* 0x36157985: lea ecx, [esi + 0x20] */
   8665     MEM32(ebp + (-0x4)) = 0; /* 0x36157988: mov dword ptr [ebp - 4], 0 */
   8666     RECOMP_ICALL(0x3615BA30u); /* 0x3615798F: call 0x3615ba30 */ /* not lifted */
   8667     RECOMP_FLAGS_IN();
   8668     ecx = esi; /* 0x36157994: mov ecx, esi */
   8669     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36157996: mov dword ptr [ebp - 4], 0xffffffff */
   8670     RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x3615799D: call dword ptr [0x3616ffd4] */
   8671     RECOMP_FLAGS_IN();
   8672     ecx = MEM32(ebp + (-0xC)); /* 0x361579A3: mov ecx, dword ptr [ebp - 0xc] */
   8673     esi = POP32_VAL(esp); /* 0x361579A6: pop esi */
   8674     MEM32(FS_BASE + (0)) = ecx; /* 0x361579A7: mov dword ptr fs:[0], ecx */
   8675     esp = ebp; /* 0x361579AE: mov esp, ebp */
   8676     ebp = POP32_VAL(esp); /* 0x361579B0: pop ebp */
   8677     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361579B1: ret  */
   8678     RECOMP_REGS_OUT();
   8679 }
   8680 
   8681 void sub_361579C0(void) {
   8682     int _fpu_cmp = 0;
   8683     uint32_t _cf = 0;
   8684     int _df = 1;
   8685     uint32_t _flag_k = FK_NONE;
   8686     uint32_t _flag_a = 0, _flag_b = 0;
   8687     uint32_t _itail_tgt = 0;
   8688     RECOMP_REGS_LOCALS
   8689     RECOMP_ENTER(0x361579C0u);
   8690 
   8691 L_361579C0:
   8692     PUSH32(esp, ebp); /* 0x361579C0: push ebp */
   8693     ebp = esp; /* 0x361579C1: mov ebp, esp */
   8694     PUSH32(esp, ebx); /* 0x361579C3: push ebx */
   8695     PUSH32(esp, esi); /* 0x361579C4: push esi */
   8696     esi = ecx; /* 0x361579C5: mov esi, ecx */
   8697     PUSH32(esp, edi); /* 0x361579C7: push edi */
   8698     edi = MEM32(ebp + 0x8); /* 0x361579C8: mov edi, dword ptr [ebp + 8] */
   8699     eax = esi + 0x2C; /* 0x361579CB: lea eax, [esi + 0x2c] */
   8700     PUSH32(esp, eax); /* 0x361579CE: push eax */
   8701     ecx = esi + 0x20; /* 0x361579CF: lea ecx, [esi + 0x20] */
   8702     PUSH32(esp, ecx); /* 0x361579D2: push ecx */
   8703     PUSH32(esp, edi); /* 0x361579D3: push edi */
   8704     RECOMP_ICALL(0x3615BB40u); /* 0x361579D4: call 0x3615bb40 */ /* not lifted */
   8705     RECOMP_FLAGS_IN();
   8706     ebx = MEM32(0x3616FA8C); /* 0x361579D9: mov ebx, dword ptr [0x3616fa8c] */
   8707     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8708     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8709     esp = esp + 8; /* 0x361579DF: add esp, 8 */
   8710     _flag_k = FK_ADD;
   8711     ecx = eax; /* 0x361579E2: mov ecx, eax */
   8712     RECOMP_ICALL(ebx); /* 0x361579E4: call ebx */
   8713     RECOMP_FLAGS_IN();
   8714     edx = esi + 0x34; /* 0x361579E6: lea edx, [esi + 0x34] */
   8715     PUSH32(esp, edx); /* 0x361579E9: push edx */
   8716     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
   8717     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8718     esi = esi + 0x30u; /* 0x361579EA: add esi, 0x30 */
   8719     _flag_k = FK_ADD;
   8720     PUSH32(esp, esi); /* 0x361579ED: push esi */
   8721     ecx = eax; /* 0x361579EE: mov ecx, eax */
   8722     RECOMP_ICALL(ebx); /* 0x361579F0: call ebx */
   8723     RECOMP_FLAGS_IN();
   8724     PUSH32(esp, eax); /* 0x361579F2: push eax */
   8725     RECOMP_ICALL(0x3615B870u); /* 0x361579F3: call 0x3615b870 */ /* not lifted */
   8726     RECOMP_FLAGS_IN();
   8727     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8728     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8729     esp = esp + 8; /* 0x361579F8: add esp, 8 */
   8730     _flag_k = FK_ADD;
   8731     ecx = edi; /* 0x361579FB: mov ecx, edi */
   8732     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361579FD: call dword ptr [0x3616fadc] */
   8733     RECOMP_FLAGS_IN();
   8734     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   8735     _cf = (eax) != 0;
   8736     eax = (uint32_t)(-(int32_t)eax); /* 0x36157A03: neg eax */
   8737     _flag_k = FK_CMP;
   8738     edi = POP32_VAL(esp); /* 0x36157A05: pop edi */
   8739     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36157A06: sbb eax, eax */
   8740       eax = _sc ? 0xFFFFFFFFu : 0;
   8741       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   8742       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   8743     esi = POP32_VAL(esp); /* 0x36157A08: pop esi */
   8744     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8745     eax = eax + 1; /* 0x36157A09: inc eax */
   8746     _flag_k = FK_INC;
   8747     ebx = POP32_VAL(esp); /* 0x36157A0A: pop ebx */
   8748     ebp = POP32_VAL(esp); /* 0x36157A0B: pop ebp */
   8749     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36157A0C: ret 4 */
   8750     RECOMP_REGS_OUT();
   8751 }
   8752 
   8753 void sub_36157A10(void) {
   8754     int _fpu_cmp = 0;
   8755     uint32_t _cf = 0;
   8756     int _df = 1;
   8757     uint32_t _flag_k = FK_NONE;
   8758     uint32_t _flag_a = 0, _flag_b = 0;
   8759     uint32_t _itail_tgt = 0;
   8760     RECOMP_REGS_LOCALS
   8761     RECOMP_ENTER(0x36157A10u);
   8762 
   8763 L_36157A10:
   8764     PUSH32(esp, ebp); /* 0x36157A10: push ebp */
   8765     ebp = esp; /* 0x36157A11: mov ebp, esp */
   8766     edx = MEM32(ebp + 0x8); /* 0x36157A13: mov edx, dword ptr [ebp + 8] */
   8767     PUSH32(esp, esi); /* 0x36157A16: push esi */
   8768     esi = ecx; /* 0x36157A17: mov esi, ecx */
   8769     eax = MEM32(esi + 0x2C); /* 0x36157A19: mov eax, dword ptr [esi + 0x2c] */
   8770     PUSH32(esp, edi); /* 0x36157A1C: push edi */
   8771     PUSH32(esp, eax); /* 0x36157A1D: push eax */
   8772     ecx = esi + 0x20; /* 0x36157A1E: lea ecx, [esi + 0x20] */
   8773     PUSH32(esp, ecx); /* 0x36157A21: push ecx */
   8774     PUSH32(esp, edx); /* 0x36157A22: push edx */
   8775     RECOMP_ICALL(0x3615BB20u); /* 0x36157A23: call 0x3615bb20 */ /* not lifted */
   8776     RECOMP_FLAGS_IN();
   8777     edi = MEM32(0x3616FAEC); /* 0x36157A28: mov edi, dword ptr [0x3616faec] */
   8778     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8779     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8780     esp = esp + 8; /* 0x36157A2E: add esp, 8 */
   8781     _flag_k = FK_ADD;
   8782     ecx = eax; /* 0x36157A31: mov ecx, eax */
   8783     RECOMP_ICALL(edi); /* 0x36157A33: call edi */
   8784     RECOMP_FLAGS_IN();
   8785     ecx = MEM32(esi + 0x30); /* 0x36157A35: mov ecx, dword ptr [esi + 0x30] */
   8786     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u);
   8787     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8788     esi = esi + 0x34u; /* 0x36157A38: add esi, 0x34 */
   8789     _flag_k = FK_ADD;
   8790     PUSH32(esp, esi); /* 0x36157A3B: push esi */
   8791     PUSH32(esp, ecx); /* 0x36157A3C: push ecx */
   8792     ecx = eax; /* 0x36157A3D: mov ecx, eax */
   8793     RECOMP_ICALL(edi); /* 0x36157A3F: call edi */
   8794     RECOMP_FLAGS_IN();
   8795     PUSH32(esp, eax); /* 0x36157A41: push eax */
   8796     RECOMP_ICALL(0x3615B840u); /* 0x36157A42: call 0x3615b840 */ /* not lifted */
   8797     RECOMP_FLAGS_IN();
   8798     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8800     esp = esp + 8; /* 0x36157A47: add esp, 8 */
   8801     _flag_k = FK_ADD;
   8802     edi = POP32_VAL(esp); /* 0x36157A4A: pop edi */
   8803     esi = POP32_VAL(esp); /* 0x36157A4B: pop esi */
   8804     ebp = POP32_VAL(esp); /* 0x36157A4C: pop ebp */
   8805     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36157A4D: ret 4 */
   8806     RECOMP_REGS_OUT();
   8807 }
   8808 
   8809 void sub_36157A50(void) {
   8810     int _fpu_cmp = 0;
   8811     uint32_t _cf = 0;
   8812     int _df = 1;
   8813     uint32_t _flag_k = FK_NONE;
   8814     uint32_t _flag_a = 0, _flag_b = 0;
   8815     uint32_t _itail_tgt = 0;
   8816     RECOMP_REGS_LOCALS
   8817     RECOMP_ENTER(0x36157A50u);
   8818 
   8819 L_36157A50:
   8820     RECOMP_ICALL(0x36157A60u); /* 0x36157A50: call 0x36157a60 */ /* not lifted */
   8821     RECOMP_FLAGS_IN();
   8822     goto L_36157A70; /* 0x36157A55: jmp 0x36157a70 */
   8823 L_36157A70:
   8824     PUSH32(esp, 0x36157A80u); /* 0x36157A70: push 0x36157a80 */
   8825     RECOMP_ICALL(0x3615FEB2u); /* 0x36157A75: call 0x3615feb2 */ /* not lifted */
   8826     RECOMP_FLAGS_IN();
   8827     ecx = POP32_VAL(esp); /* 0x36157A7A: pop ecx */
   8828     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36157A7B: ret  */
   8829     RECOMP_REGS_OUT();
   8830 }
   8831 
   8832 void sub_36157A60(void) {
   8833     int _fpu_cmp = 0;
   8834     uint32_t _cf = 0;
   8835     int _df = 1;
   8836     uint32_t _flag_k = FK_NONE;
   8837     uint32_t _flag_a = 0, _flag_b = 0;
   8838     uint32_t _itail_tgt = 0;
   8839     RECOMP_REGS_LOCALS
   8840     RECOMP_ENTER(0x36157A60u);
   8841 
   8842 L_36157A60:
   8843     ecx = 0x3630DB41u; /* 0x36157A60: mov ecx, 0x3630db41 */
   8844 L_36157A65:
   8845     { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; }
   8846     { RECOMP_REGS_OUT(); return; } /* end of function */
   8847   _ljump:
   8848     switch (_itail_tgt) {
   8849       case 0x36157A60u: goto L_36157A60;
   8850       case 0x36157A65u: goto L_36157A65;
   8851       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8852     }
   8853     RECOMP_REGS_OUT();
   8854 }
   8855 
   8856 void sub_36157A70(void) {
   8857     int _fpu_cmp = 0;
   8858     uint32_t _cf = 0;
   8859     int _df = 1;
   8860     uint32_t _flag_k = FK_NONE;
   8861     uint32_t _flag_a = 0, _flag_b = 0;
   8862     uint32_t _itail_tgt = 0;
   8863     RECOMP_REGS_LOCALS
   8864     RECOMP_ENTER(0x36157A70u);
   8865 
   8866 L_36157A70:
   8867     PUSH32(esp, 0x36157A80u); /* 0x36157A70: push 0x36157a80 */
   8868     RECOMP_ICALL(0x3615FEB2u); /* 0x36157A75: call 0x3615feb2 */ /* not lifted */
   8869     RECOMP_FLAGS_IN();
   8870     ecx = POP32_VAL(esp); /* 0x36157A7A: pop ecx */
   8871     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36157A7B: ret  */
   8872     RECOMP_REGS_OUT();
   8873 }
   8874 
   8875 void sub_36157A80(void) {
   8876     int _fpu_cmp = 0;
   8877     uint32_t _cf = 0;
   8878     int _df = 1;
   8879     uint32_t _flag_k = FK_NONE;
   8880     uint32_t _flag_a = 0, _flag_b = 0;
   8881     uint32_t _itail_tgt = 0;
   8882     RECOMP_REGS_LOCALS
   8883     RECOMP_ENTER(0x36157A80u);
   8884 
   8885 L_36157A80:
   8886     ecx = 0x3630DB41u; /* 0x36157A80: mov ecx, 0x3630db41 */
   8887 L_36157A85:
   8888     { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; }
   8889     { RECOMP_REGS_OUT(); return; } /* end of function */
   8890   _ljump:
   8891     switch (_itail_tgt) {
   8892       case 0x36157A80u: goto L_36157A80;
   8893       case 0x36157A85u: goto L_36157A85;
   8894       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8895     }
   8896     RECOMP_REGS_OUT();
   8897 }
   8898 
   8899 void sub_36157A90(void) {
   8900     int _fpu_cmp = 0;
   8901     uint32_t _cf = 0;
   8902     int _df = 1;
   8903     uint32_t _flag_k = FK_NONE;
   8904     uint32_t _flag_a = 0, _flag_b = 0;
   8905     uint32_t _itail_tgt = 0;
   8906     RECOMP_REGS_LOCALS
   8907     RECOMP_ENTER(0x36157A90u);
   8908 
   8909 L_36157A90:
   8910     RECOMP_ICALL(0x36157AA0u); /* 0x36157A90: call 0x36157aa0 */ /* not lifted */
   8911     RECOMP_FLAGS_IN();
   8912     goto L_36157AB0; /* 0x36157A95: jmp 0x36157ab0 */
   8913 L_36157AB0:
   8914     PUSH32(esp, 0x36157AC0u); /* 0x36157AB0: push 0x36157ac0 */
   8915     RECOMP_ICALL(0x3615FEB2u); /* 0x36157AB5: call 0x3615feb2 */ /* not lifted */
   8916     RECOMP_FLAGS_IN();
   8917     ecx = POP32_VAL(esp); /* 0x36157ABA: pop ecx */
   8918     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36157ABB: ret  */
   8919     RECOMP_REGS_OUT();
   8920 }
   8921 
   8922 void sub_36157AA0(void) {
   8923     int _fpu_cmp = 0;
   8924     uint32_t _cf = 0;
   8925     int _df = 1;
   8926     uint32_t _flag_k = FK_NONE;
   8927     uint32_t _flag_a = 0, _flag_b = 0;
   8928     uint32_t _itail_tgt = 0;
   8929     RECOMP_REGS_LOCALS
   8930     RECOMP_ENTER(0x36157AA0u);
   8931 
   8932 L_36157AA0:
   8933     ecx = 0x3630DB40u; /* 0x36157AA0: mov ecx, 0x3630db40 */
   8934 L_36157AA5:
   8935     { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; }
   8936     { RECOMP_REGS_OUT(); return; } /* end of function */
   8937   _ljump:
   8938     switch (_itail_tgt) {
   8939       case 0x36157AA0u: goto L_36157AA0;
   8940       case 0x36157AA5u: goto L_36157AA5;
   8941       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8942     }
   8943     RECOMP_REGS_OUT();
   8944 }
   8945 
   8946 void sub_36157AB0(void) {
   8947     int _fpu_cmp = 0;
   8948     uint32_t _cf = 0;
   8949     int _df = 1;
   8950     uint32_t _flag_k = FK_NONE;
   8951     uint32_t _flag_a = 0, _flag_b = 0;
   8952     uint32_t _itail_tgt = 0;
   8953     RECOMP_REGS_LOCALS
   8954     RECOMP_ENTER(0x36157AB0u);
   8955 
   8956 L_36157AB0:
   8957     PUSH32(esp, 0x36157AC0u); /* 0x36157AB0: push 0x36157ac0 */
   8958     RECOMP_ICALL(0x3615FEB2u); /* 0x36157AB5: call 0x3615feb2 */ /* not lifted */
   8959     RECOMP_FLAGS_IN();
   8960     ecx = POP32_VAL(esp); /* 0x36157ABA: pop ecx */
   8961     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36157ABB: ret  */
   8962     RECOMP_REGS_OUT();
   8963 }
   8964 
   8965 void sub_36157AC0(void) {
   8966     int _fpu_cmp = 0;
   8967     uint32_t _cf = 0;
   8968     int _df = 1;
   8969     uint32_t _flag_k = FK_NONE;
   8970     uint32_t _flag_a = 0, _flag_b = 0;
   8971     uint32_t _itail_tgt = 0;
   8972     RECOMP_REGS_LOCALS
   8973     RECOMP_ENTER(0x36157AC0u);
   8974 
   8975 L_36157AC0:
   8976     ecx = 0x3630DB40u; /* 0x36157AC0: mov ecx, 0x3630db40 */
   8977 L_36157AC5:
   8978     { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; }
   8979     { RECOMP_REGS_OUT(); return; } /* end of function */
   8980   _ljump:
   8981     switch (_itail_tgt) {
   8982       case 0x36157AC0u: goto L_36157AC0;
   8983       case 0x36157AC5u: goto L_36157AC5;
   8984       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8985     }
   8986     RECOMP_REGS_OUT();
   8987 }
   8988 
   8989 void sub_36157AD0(void) {
   8990     int _fpu_cmp = 0;
   8991     uint32_t _cf = 0;
   8992     int _df = 1;
   8993     uint32_t _flag_k = FK_NONE;
   8994     uint32_t _flag_a = 0, _flag_b = 0;
   8995     uint32_t _itail_tgt = 0;
   8996     RECOMP_REGS_LOCALS
   8997     RECOMP_ENTER(0x36157AD0u);
   8998 
   8999 L_36157AD0:
   9000     eax = ecx; /* 0x36157AD0: mov eax, ecx */
   9001     MEM32(eax) = 0x36178D64u; /* 0x36157AD2: mov dword ptr [eax], 0x36178d64 */
   9002     MEM32(0x3630DB44) = eax; /* 0x36157AD8: mov dword ptr [0x3630db44], eax */
   9003     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36157ADD: ret  */
   9004     RECOMP_REGS_OUT();
   9005 }
   9006 
   9007 void sub_36157AE0(void) {
   9008     int _fpu_cmp = 0;
   9009     uint32_t _cf = 0;
   9010     int _df = 1;
   9011     uint32_t _flag_k = FK_NONE;
   9012     uint32_t _flag_a = 0, _flag_b = 0;
   9013     uint32_t _itail_tgt = 0;
   9014     RECOMP_REGS_LOCALS
   9015     RECOMP_ENTER(0x36157AE0u);
   9016 
   9017 L_36157AE0:
   9018     PUSH32(esp, ebp); /* 0x36157AE0: push ebp */
   9019     ebp = esp; /* 0x36157AE1: mov ebp, esp */
   9020     /* test MEM8(ebp + 0x8), 1 */ /* 0x36157AE3: test byte ptr [ebp + 8], 1 */
   9021     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   9022     _cf = 0;
   9023     _flag_k = FK_NARROW(FK_TEST, 24);
   9024     PUSH32(esp, esi); /* 0x36157AE7: push esi */
   9025     esi = ecx; /* 0x36157AE8: mov esi, ecx */
   9026     MEM32(esi) = 0x36178D64u; /* 0x36157AEA: mov dword ptr [esi], 0x36178d64 */
   9027     if (TEST_Z(_flag_a, _flag_b)) goto L_36157AFB; /* 0x36157AF0: je 0x36157afb */
   9028 L_36157AF2:
   9029     PUSH32(esp, esi); /* 0x36157AF2: push esi */
   9030     RECOMP_ICALL(0x3615FCC4u); /* 0x36157AF3: call 0x3615fcc4 */ /* not lifted */
   9031     RECOMP_FLAGS_IN();
   9032     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9033     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9034     esp = esp + 4; /* 0x36157AF8: add esp, 4 */
   9035     _flag_k = FK_ADD;
   9036 L_36157AFB:
   9037     eax = esi; /* 0x36157AFB: mov eax, esi */
   9038     esi = POP32_VAL(esp); /* 0x36157AFD: pop esi */
   9039     ebp = POP32_VAL(esp); /* 0x36157AFE: pop ebp */
   9040     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36157AFF: ret 4 */
   9041     RECOMP_REGS_OUT();
   9042 }
   9043 
   9044 void sub_36157B10(void) {
   9045     int _fpu_cmp = 0;
   9046     uint32_t _cf = 0;
   9047     int _df = 1;
   9048     uint32_t _flag_k = FK_NONE;
   9049     uint32_t _flag_a = 0, _flag_b = 0;
   9050     uint32_t _itail_tgt = 0;
   9051     RECOMP_REGS_LOCALS
   9052     RECOMP_ENTER(0x36157B10u);
   9053 
   9054 L_36157B10:
   9055     eax = MEM32(0x3630DB44); /* 0x36157B10: mov eax, dword ptr [0x3630db44] */
   9056     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36157B15: ret  */
   9057     RECOMP_REGS_OUT();
   9058 }
   9059 
   9060 void sub_36157B20(void) {
   9061     int _fpu_cmp = 0;
   9062     uint32_t _cf = 0;
   9063     int _df = 1;
   9064     uint32_t _flag_k = FK_NONE;
   9065     uint32_t _flag_a = 0, _flag_b = 0;
   9066     uint32_t _itail_tgt = 0;
   9067     RECOMP_REGS_LOCALS
   9068     RECOMP_ENTER(0x36157B20u);
   9069 
   9070 L_36157B20:
   9071     PUSH32(esp, ebp); /* 0x36157B20: push ebp */
   9072     ebp = esp; /* 0x36157B21: mov ebp, esp */
   9073     PUSH32(esp, 0xFFFFFFFFu); /* 0x36157B23: push -1 */
   9074     PUSH32(esp, 0x3616DDA9u); /* 0x36157B25: push 0x3616dda9 */
   9075     eax = MEM32(FS_BASE + (0)); /* 0x36157B2A: mov eax, dword ptr fs:[0] */
   9076     PUSH32(esp, eax); /* 0x36157B30: push eax */
   9077     MEM32(FS_BASE + (0)) = esp; /* 0x36157B31: mov dword ptr fs:[0], esp */
   9078     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x214u);
   9079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9080     esp = esp - 0x214u; /* 0x36157B38: sub esp, 0x214 */
   9081     _flag_k = FK_CMP;
   9082     eax = MEM32(ebp + 0xC); /* 0x36157B3E: mov eax, dword ptr [ebp + 0xc] */
   9083     PUSH32(esp, ebx); /* 0x36157B41: push ebx */
   9084     PUSH32(esp, esi); /* 0x36157B42: push esi */
   9085     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9086     esi = 0; /* 0x36157B43: xor esi, esi */
   9087     _cf = 0;
   9088     _flag_k = FK_TEST;
   9089     /* cmp eax, esi */ /* 0x36157B45: cmp eax, esi */
   9090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   9091     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9092     _flag_k = FK_CMP;
   9093     PUSH32(esp, edi); /* 0x36157B47: push edi */
   9094     MEM32(ebp + (-0x20)) = esi; /* 0x36157B48: mov dword ptr [ebp - 0x20], esi */
   9095     if (CMP_NE(_flag_a, _flag_b)) goto L_36157B80; /* 0x36157B4B: jne 0x36157b80 */
   9096 L_36157B4D:
   9097     ebx = MEM32(ebp + 0x8); /* 0x36157B4D: mov ebx, dword ptr [ebp + 8] */
   9098     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36157B50: mov al, byte ptr [ebp + 0xb] */
   9099     PUSH32(esp, esi); /* 0x36157B53: push esi */
   9100     ecx = ebx; /* 0x36157B54: mov ecx, ebx */
   9101     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x36157B56: mov byte ptr [ebx], al */
   9102     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157B58: call dword ptr [0x3616f100] */
   9103     RECOMP_FLAGS_IN();
   9104     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9105     ecx = ecx | 0xFFFFFFFFu; /* 0x36157B5E: or ecx, 0xffffffff */
   9106     _cf = 0;
   9107     _flag_k = FK_TEST;
   9108     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9109     eax = 0; /* 0x36157B61: xor eax, eax */
   9110     _cf = 0;
   9111     _flag_k = FK_TEST;
   9112     edi = 0x362E8D9Cu; /* 0x36157B63: mov edi, 0x362e8d9c */
   9113     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; } /* 0x36157B68: repne scasb al, byte ptr es:[edi] */
   9114     ecx = ~ecx; /* 0x36157B6A: not ecx */
   9115     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9116     ecx = ecx - 1; /* 0x36157B6C: dec ecx */
   9117     _flag_k = FK_DEC;
   9118     PUSH32(esp, ecx); /* 0x36157B6D: push ecx */
   9119     PUSH32(esp, 0x362E8D9Cu); /* 0x36157B6E: push 0x362e8d9c */
   9120     ecx = ebx; /* 0x36157B73: mov ecx, ebx */
   9121     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157B75: call dword ptr [0x3616f014] */
   9122     RECOMP_FLAGS_IN();
   9123     goto L_3615811C; /* 0x36157B7B: jmp 0x3615811c */
   9124 L_36157B80:
   9125     /* test LO8(eax), 8 */ /* 0x36157B80: test al, 8 */
   9126     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24;
   9127     _cf = 0;
   9128     _flag_k = FK_NARROW(FK_TEST, 24);
   9129     if (TEST_Z(_flag_a, _flag_b)) goto L_36157BB7; /* 0x36157B82: je 0x36157bb7 */
   9130 L_36157B84:
   9131     ebx = MEM32(ebp + 0x8); /* 0x36157B84: mov ebx, dword ptr [ebp + 8] */
   9132     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36157B87: mov cl, byte ptr [ebp + 0xb] */
   9133     MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x36157B8A: mov byte ptr [ebx], cl */
   9134     PUSH32(esp, esi); /* 0x36157B8C: push esi */
   9135     ecx = ebx; /* 0x36157B8D: mov ecx, ebx */
   9136     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157B8F: call dword ptr [0x3616f100] */
   9137     RECOMP_FLAGS_IN();
   9138     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9139     ecx = ecx | 0xFFFFFFFFu; /* 0x36157B95: or ecx, 0xffffffff */
   9140     _cf = 0;
   9141     _flag_k = FK_TEST;
   9142     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9143     eax = 0; /* 0x36157B98: xor eax, eax */
   9144     _cf = 0;
   9145     _flag_k = FK_TEST;
   9146     edi = 0x362E8D6Cu; /* 0x36157B9A: mov edi, 0x362e8d6c */
   9147     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; } /* 0x36157B9F: repne scasb al, byte ptr es:[edi] */
   9148     ecx = ~ecx; /* 0x36157BA1: not ecx */
   9149     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9150     ecx = ecx - 1; /* 0x36157BA3: dec ecx */
   9151     _flag_k = FK_DEC;
   9152     PUSH32(esp, ecx); /* 0x36157BA4: push ecx */
   9153     PUSH32(esp, 0x362E8D6Cu); /* 0x36157BA5: push 0x362e8d6c */
   9154     ecx = ebx; /* 0x36157BAA: mov ecx, ebx */
   9155     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157BAC: call dword ptr [0x3616f014] */
   9156     RECOMP_FLAGS_IN();
   9157     goto L_3615811C; /* 0x36157BB2: jmp 0x3615811c */
   9158 L_36157BB7:
   9159     /* test LO8(eax), 2 */ /* 0x36157BB7: test al, 2 */
   9160     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   9161     _cf = 0;
   9162     _flag_k = FK_NARROW(FK_TEST, 24);
   9163     if (TEST_Z(_flag_a, _flag_b)) goto L_36157C12; /* 0x36157BB9: je 0x36157c12 */
   9164 L_36157BBB:
   9165     ebx = MEM32(ebp + 0x8); /* 0x36157BBB: mov ebx, dword ptr [ebp + 8] */
   9166     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36157BBE: mov dl, byte ptr [ebp + 0xb] */
   9167     PUSH32(esp, esi); /* 0x36157BC1: push esi */
   9168     ecx = ebx; /* 0x36157BC2: mov ecx, ebx */
   9169     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x36157BC4: mov byte ptr [ebx], dl */
   9170     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157BC6: call dword ptr [0x3616f100] */
   9171     RECOMP_FLAGS_IN();
   9172     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9173     ecx = ecx | 0xFFFFFFFFu; /* 0x36157BCC: or ecx, 0xffffffff */
   9174     _cf = 0;
   9175     _flag_k = FK_TEST;
   9176     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9177     eax = 0; /* 0x36157BCF: xor eax, eax */
   9178     _cf = 0;
   9179     _flag_k = FK_TEST;
   9180     edi = 0x362E8D38u; /* 0x36157BD1: mov edi, 0x362e8d38 */
   9181     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; } /* 0x36157BD6: repne scasb al, byte ptr es:[edi] */
   9182     ecx = ~ecx; /* 0x36157BD8: not ecx */
   9183     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9184     ecx = ecx - 1; /* 0x36157BDA: dec ecx */
   9185     _flag_k = FK_DEC;
   9186     esi = ecx; /* 0x36157BDB: mov esi, ecx */
   9187     PUSH32(esp, 1); /* 0x36157BDD: push 1 */
   9188     PUSH32(esp, esi); /* 0x36157BDF: push esi */
   9189     ecx = ebx; /* 0x36157BE0: mov ecx, ebx */
   9190     MEM32(ebp + 0x8) = esi; /* 0x36157BE2: mov dword ptr [ebp + 8], esi */
   9191     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36157BE5: call dword ptr [0x3616f00c] */
   9192     RECOMP_FLAGS_IN();
   9193     /* test LO8(eax), LO8(eax) */ /* 0x36157BEB: test al, al */
   9194     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9195     _cf = 0;
   9196     _flag_k = FK_NARROW(FK_TEST, 24);
   9197     if (TEST_Z(_flag_a, _flag_b)) goto L_3615811C; /* 0x36157BED: je 0x3615811c */
   9198 L_36157BF3:
   9199     edi = MEM32(ebx + 0x4); /* 0x36157BF3: mov edi, dword ptr [ebx + 4] */
   9200     ecx = esi; /* 0x36157BF6: mov ecx, esi */
   9201     eax = ecx; /* 0x36157BF8: mov eax, ecx */
   9202     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36157BFA: shr ecx, 2 */
   9203     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9204     ecx = ecx >> 2u; /* 0x36157BFA: shr ecx, 2 */
   9205     esi = 0x362E8D38u; /* 0x36157BFD: mov esi, 0x362e8d38 */
   9206     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36157C02: 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; }
   9207     ecx = eax; /* 0x36157C04: mov ecx, eax */
   9208     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   9209     ecx = ecx & 3; /* 0x36157C06: and ecx, 3 */
   9210     _cf = 0;
   9211     _flag_k = FK_TEST;
   9212     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36157C09: 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; }
   9213     ecx = eax; /* 0x36157C0B: mov ecx, eax */
   9214     goto L_36158113; /* 0x36157C0D: jmp 0x36158113 */
   9215 L_36157C12:
   9216     /* test LO8(eax), 4 */ /* 0x36157C12: test al, 4 */
   9217     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24;
   9218     _cf = 0;
   9219     _flag_k = FK_NARROW(FK_TEST, 24);
   9220     if (TEST_Z(_flag_a, _flag_b)) goto L_36157C49; /* 0x36157C14: je 0x36157c49 */
   9221 L_36157C16:
   9222     ebx = MEM32(ebp + 0x8); /* 0x36157C16: mov ebx, dword ptr [ebp + 8] */
   9223     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36157C19: mov dl, byte ptr [ebp + 0xb] */
   9224     PUSH32(esp, esi); /* 0x36157C1C: push esi */
   9225     ecx = ebx; /* 0x36157C1D: mov ecx, ebx */
   9226     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x36157C1F: mov byte ptr [ebx], dl */
   9227     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157C21: call dword ptr [0x3616f100] */
   9228     RECOMP_FLAGS_IN();
   9229     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9230     ecx = ecx | 0xFFFFFFFFu; /* 0x36157C27: or ecx, 0xffffffff */
   9231     _cf = 0;
   9232     _flag_k = FK_TEST;
   9233     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9234     eax = 0; /* 0x36157C2A: xor eax, eax */
   9235     _cf = 0;
   9236     _flag_k = FK_TEST;
   9237     edi = 0x362E8CC0u; /* 0x36157C2C: mov edi, 0x362e8cc0 */
   9238     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; } /* 0x36157C31: repne scasb al, byte ptr es:[edi] */
   9239     ecx = ~ecx; /* 0x36157C33: not ecx */
   9240     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9241     ecx = ecx - 1; /* 0x36157C35: dec ecx */
   9242     _flag_k = FK_DEC;
   9243     PUSH32(esp, ecx); /* 0x36157C36: push ecx */
   9244     PUSH32(esp, 0x362E8CC0u); /* 0x36157C37: push 0x362e8cc0 */
   9245     ecx = ebx; /* 0x36157C3C: mov ecx, ebx */
   9246     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157C3E: call dword ptr [0x3616f014] */
   9247     RECOMP_FLAGS_IN();
   9248     goto L_3615811C; /* 0x36157C44: jmp 0x3615811c */
   9249 L_36157C49:
   9250     /* test LO8(eax), 0x10u */ /* 0x36157C49: test al, 0x10 */
   9251     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24;
   9252     _cf = 0;
   9253     _flag_k = FK_NARROW(FK_TEST, 24);
   9254     if (TEST_Z(_flag_a, _flag_b)) goto L_36157C80; /* 0x36157C4B: je 0x36157c80 */
   9255 L_36157C4D:
   9256     ebx = MEM32(ebp + 0x8); /* 0x36157C4D: mov ebx, dword ptr [ebp + 8] */
   9257     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36157C50: mov al, byte ptr [ebp + 0xb] */
   9258     PUSH32(esp, esi); /* 0x36157C53: push esi */
   9259     ecx = ebx; /* 0x36157C54: mov ecx, ebx */
   9260     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x36157C56: mov byte ptr [ebx], al */
   9261     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157C58: call dword ptr [0x3616f100] */
   9262     RECOMP_FLAGS_IN();
   9263     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9264     ecx = ecx | 0xFFFFFFFFu; /* 0x36157C5E: or ecx, 0xffffffff */
   9265     _cf = 0;
   9266     _flag_k = FK_TEST;
   9267     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9268     eax = 0; /* 0x36157C61: xor eax, eax */
   9269     _cf = 0;
   9270     _flag_k = FK_TEST;
   9271     edi = 0x362E8C8Cu; /* 0x36157C63: mov edi, 0x362e8c8c */
   9272     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; } /* 0x36157C68: repne scasb al, byte ptr es:[edi] */
   9273     ecx = ~ecx; /* 0x36157C6A: not ecx */
   9274     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9275     ecx = ecx - 1; /* 0x36157C6C: dec ecx */
   9276     _flag_k = FK_DEC;
   9277     PUSH32(esp, ecx); /* 0x36157C6D: push ecx */
   9278     PUSH32(esp, 0x362E8C8Cu); /* 0x36157C6E: push 0x362e8c8c */
   9279     ecx = ebx; /* 0x36157C73: mov ecx, ebx */
   9280     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157C75: call dword ptr [0x3616f014] */
   9281     RECOMP_FLAGS_IN();
   9282     goto L_3615811C; /* 0x36157C7B: jmp 0x3615811c */
   9283 L_36157C80:
   9284     /* test LO8(eax), 0x20u */ /* 0x36157C80: test al, 0x20 */
   9285     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x20u) << 24;
   9286     _cf = 0;
   9287     _flag_k = FK_NARROW(FK_TEST, 24);
   9288     if (TEST_Z(_flag_a, _flag_b)) goto L_36157CB7; /* 0x36157C82: je 0x36157cb7 */
   9289 L_36157C84:
   9290     ebx = MEM32(ebp + 0x8); /* 0x36157C84: mov ebx, dword ptr [ebp + 8] */
   9291     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36157C87: mov cl, byte ptr [ebp + 0xb] */
   9292     MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x36157C8A: mov byte ptr [ebx], cl */
   9293     PUSH32(esp, esi); /* 0x36157C8C: push esi */
   9294     ecx = ebx; /* 0x36157C8D: mov ecx, ebx */
   9295     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157C8F: call dword ptr [0x3616f100] */
   9296     RECOMP_FLAGS_IN();
   9297     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9298     ecx = ecx | 0xFFFFFFFFu; /* 0x36157C95: or ecx, 0xffffffff */
   9299     _cf = 0;
   9300     _flag_k = FK_TEST;
   9301     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9302     eax = 0; /* 0x36157C98: xor eax, eax */
   9303     _cf = 0;
   9304     _flag_k = FK_TEST;
   9305     edi = 0x362E8C4Cu; /* 0x36157C9A: mov edi, 0x362e8c4c */
   9306     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; } /* 0x36157C9F: repne scasb al, byte ptr es:[edi] */
   9307     ecx = ~ecx; /* 0x36157CA1: not ecx */
   9308     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9309     ecx = ecx - 1; /* 0x36157CA3: dec ecx */
   9310     _flag_k = FK_DEC;
   9311     PUSH32(esp, ecx); /* 0x36157CA4: push ecx */
   9312     PUSH32(esp, 0x362E8C4Cu); /* 0x36157CA5: push 0x362e8c4c */
   9313     ecx = ebx; /* 0x36157CAA: mov ecx, ebx */
   9314     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157CAC: call dword ptr [0x3616f014] */
   9315     RECOMP_FLAGS_IN();
   9316     goto L_3615811C; /* 0x36157CB2: jmp 0x3615811c */
   9317 L_36157CB7:
   9318     /* test LO8(eax), 0x40u */ /* 0x36157CB7: test al, 0x40 */
   9319     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   9320     _cf = 0;
   9321     _flag_k = FK_NARROW(FK_TEST, 24);
   9322     if (TEST_Z(_flag_a, _flag_b)) goto L_36157CEE; /* 0x36157CB9: je 0x36157cee */
   9323 L_36157CBB:
   9324     ebx = MEM32(ebp + 0x8); /* 0x36157CBB: mov ebx, dword ptr [ebp + 8] */
   9325     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36157CBE: mov dl, byte ptr [ebp + 0xb] */
   9326     PUSH32(esp, esi); /* 0x36157CC1: push esi */
   9327     ecx = ebx; /* 0x36157CC2: mov ecx, ebx */
   9328     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x36157CC4: mov byte ptr [ebx], dl */
   9329     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157CC6: call dword ptr [0x3616f100] */
   9330     RECOMP_FLAGS_IN();
   9331     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9332     ecx = ecx | 0xFFFFFFFFu; /* 0x36157CCC: or ecx, 0xffffffff */
   9333     _cf = 0;
   9334     _flag_k = FK_TEST;
   9335     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9336     eax = 0; /* 0x36157CCF: xor eax, eax */
   9337     _cf = 0;
   9338     _flag_k = FK_TEST;
   9339     edi = 0x362E8C00u; /* 0x36157CD1: mov edi, 0x362e8c00 */
   9340     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; } /* 0x36157CD6: repne scasb al, byte ptr es:[edi] */
   9341     ecx = ~ecx; /* 0x36157CD8: not ecx */
   9342     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9343     ecx = ecx - 1; /* 0x36157CDA: dec ecx */
   9344     _flag_k = FK_DEC;
   9345     PUSH32(esp, ecx); /* 0x36157CDB: push ecx */
   9346     PUSH32(esp, 0x362E8C00u); /* 0x36157CDC: push 0x362e8c00 */
   9347     ecx = ebx; /* 0x36157CE1: mov ecx, ebx */
   9348     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157CE3: call dword ptr [0x3616f014] */
   9349     RECOMP_FLAGS_IN();
   9350     goto L_3615811C; /* 0x36157CE9: jmp 0x3615811c */
   9351 L_36157CEE:
   9352     /* test LO8(eax), 0x80u */ /* 0x36157CEE: test al, 0x80 */
   9353     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x80u) << 24;
   9354     _cf = 0;
   9355     _flag_k = FK_NARROW(FK_TEST, 24);
   9356     if (TEST_Z(_flag_a, _flag_b)) goto L_36157D25; /* 0x36157CF0: je 0x36157d25 */
   9357 L_36157CF2:
   9358     ebx = MEM32(ebp + 0x8); /* 0x36157CF2: mov ebx, dword ptr [ebp + 8] */
   9359     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36157CF5: mov al, byte ptr [ebp + 0xb] */
   9360     PUSH32(esp, esi); /* 0x36157CF8: push esi */
   9361     ecx = ebx; /* 0x36157CF9: mov ecx, ebx */
   9362     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x36157CFB: mov byte ptr [ebx], al */
   9363     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157CFD: call dword ptr [0x3616f100] */
   9364     RECOMP_FLAGS_IN();
   9365     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9366     ecx = ecx | 0xFFFFFFFFu; /* 0x36157D03: or ecx, 0xffffffff */
   9367     _cf = 0;
   9368     _flag_k = FK_TEST;
   9369     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9370     eax = 0; /* 0x36157D06: xor eax, eax */
   9371     _cf = 0;
   9372     _flag_k = FK_TEST;
   9373     edi = 0x362E8BBCu; /* 0x36157D08: mov edi, 0x362e8bbc */
   9374     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; } /* 0x36157D0D: repne scasb al, byte ptr es:[edi] */
   9375     ecx = ~ecx; /* 0x36157D0F: not ecx */
   9376     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9377     ecx = ecx - 1; /* 0x36157D11: dec ecx */
   9378     _flag_k = FK_DEC;
   9379     PUSH32(esp, ecx); /* 0x36157D12: push ecx */
   9380     PUSH32(esp, 0x362E8BBCu); /* 0x36157D13: push 0x362e8bbc */
   9381     ecx = ebx; /* 0x36157D18: mov ecx, ebx */
   9382     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157D1A: call dword ptr [0x3616f014] */
   9383     RECOMP_FLAGS_IN();
   9384     goto L_3615811C; /* 0x36157D20: jmp 0x3615811c */
   9385 L_36157D25:
   9386     /* test HI8(eax), 1 */ /* 0x36157D25: test ah, 1 */
   9387     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9388     _cf = 0;
   9389     _flag_k = FK_NARROW(FK_TEST, 24);
   9390     if (TEST_Z(_flag_a, _flag_b)) goto L_36157D5D; /* 0x36157D28: je 0x36157d5d */
   9391 L_36157D2A:
   9392     ebx = MEM32(ebp + 0x8); /* 0x36157D2A: mov ebx, dword ptr [ebp + 8] */
   9393     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36157D2D: mov cl, byte ptr [ebp + 0xb] */
   9394     MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x36157D30: mov byte ptr [ebx], cl */
   9395     PUSH32(esp, esi); /* 0x36157D32: push esi */
   9396     ecx = ebx; /* 0x36157D33: mov ecx, ebx */
   9397     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157D35: call dword ptr [0x3616f100] */
   9398     RECOMP_FLAGS_IN();
   9399     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9400     ecx = ecx | 0xFFFFFFFFu; /* 0x36157D3B: or ecx, 0xffffffff */
   9401     _cf = 0;
   9402     _flag_k = FK_TEST;
   9403     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9404     eax = 0; /* 0x36157D3E: xor eax, eax */
   9405     _cf = 0;
   9406     _flag_k = FK_TEST;
   9407     edi = 0x362E8B64u; /* 0x36157D40: mov edi, 0x362e8b64 */
   9408     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; } /* 0x36157D45: repne scasb al, byte ptr es:[edi] */
   9409     ecx = ~ecx; /* 0x36157D47: not ecx */
   9410     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9411     ecx = ecx - 1; /* 0x36157D49: dec ecx */
   9412     _flag_k = FK_DEC;
   9413     PUSH32(esp, ecx); /* 0x36157D4A: push ecx */
   9414     PUSH32(esp, 0x362E8B64u); /* 0x36157D4B: push 0x362e8b64 */
   9415     ecx = ebx; /* 0x36157D50: mov ecx, ebx */
   9416     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157D52: call dword ptr [0x3616f014] */
   9417     RECOMP_FLAGS_IN();
   9418     goto L_3615811C; /* 0x36157D58: jmp 0x3615811c */
   9419 L_36157D5D:
   9420     /* test HI8(eax), 4 */ /* 0x36157D5D: test ah, 4 */
   9421     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(4) << 24;
   9422     _cf = 0;
   9423     _flag_k = FK_NARROW(FK_TEST, 24);
   9424     if (TEST_Z(_flag_a, _flag_b)) goto L_36157D95; /* 0x36157D60: je 0x36157d95 */
   9425 L_36157D62:
   9426     ebx = MEM32(ebp + 0x8); /* 0x36157D62: mov ebx, dword ptr [ebp + 8] */
   9427     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36157D65: mov dl, byte ptr [ebp + 0xb] */
   9428     PUSH32(esp, esi); /* 0x36157D68: push esi */
   9429     ecx = ebx; /* 0x36157D69: mov ecx, ebx */
   9430     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x36157D6B: mov byte ptr [ebx], dl */
   9431     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157D6D: call dword ptr [0x3616f100] */
   9432     RECOMP_FLAGS_IN();
   9433     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9434     ecx = ecx | 0xFFFFFFFFu; /* 0x36157D73: or ecx, 0xffffffff */
   9435     _cf = 0;
   9436     _flag_k = FK_TEST;
   9437     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9438     eax = 0; /* 0x36157D76: xor eax, eax */
   9439     _cf = 0;
   9440     _flag_k = FK_TEST;
   9441     edi = 0x362E8B10u; /* 0x36157D78: mov edi, 0x362e8b10 */
   9442     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; } /* 0x36157D7D: repne scasb al, byte ptr es:[edi] */
   9443     ecx = ~ecx; /* 0x36157D7F: not ecx */
   9444     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9445     ecx = ecx - 1; /* 0x36157D81: dec ecx */
   9446     _flag_k = FK_DEC;
   9447     PUSH32(esp, ecx); /* 0x36157D82: push ecx */
   9448     PUSH32(esp, 0x362E8B10u); /* 0x36157D83: push 0x362e8b10 */
   9449     ecx = ebx; /* 0x36157D88: mov ecx, ebx */
   9450     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157D8A: call dword ptr [0x3616f014] */
   9451     RECOMP_FLAGS_IN();
   9452     goto L_3615811C; /* 0x36157D90: jmp 0x3615811c */
   9453 L_36157D95:
   9454     /* test HI8(eax), 0x10u */ /* 0x36157D95: test ah, 0x10 */
   9455     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24;
   9456     _cf = 0;
   9457     _flag_k = FK_NARROW(FK_TEST, 24);
   9458     if (TEST_Z(_flag_a, _flag_b)) goto L_36157DCD; /* 0x36157D98: je 0x36157dcd */
   9459 L_36157D9A:
   9460     ebx = MEM32(ebp + 0x8); /* 0x36157D9A: mov ebx, dword ptr [ebp + 8] */
   9461     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36157D9D: mov al, byte ptr [ebp + 0xb] */
   9462     PUSH32(esp, esi); /* 0x36157DA0: push esi */
   9463     ecx = ebx; /* 0x36157DA1: mov ecx, ebx */
   9464     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x36157DA3: mov byte ptr [ebx], al */
   9465     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157DA5: call dword ptr [0x3616f100] */
   9466     RECOMP_FLAGS_IN();
   9467     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9468     ecx = ecx | 0xFFFFFFFFu; /* 0x36157DAB: or ecx, 0xffffffff */
   9469     _cf = 0;
   9470     _flag_k = FK_TEST;
   9471     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9472     eax = 0; /* 0x36157DAE: xor eax, eax */
   9473     _cf = 0;
   9474     _flag_k = FK_TEST;
   9475     edi = 0x362E8ADCu; /* 0x36157DB0: mov edi, 0x362e8adc */
   9476     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; } /* 0x36157DB5: repne scasb al, byte ptr es:[edi] */
   9477     ecx = ~ecx; /* 0x36157DB7: not ecx */
   9478     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9479     ecx = ecx - 1; /* 0x36157DB9: dec ecx */
   9480     _flag_k = FK_DEC;
   9481     PUSH32(esp, ecx); /* 0x36157DBA: push ecx */
   9482     PUSH32(esp, 0x362E8ADCu); /* 0x36157DBB: push 0x362e8adc */
   9483     ecx = ebx; /* 0x36157DC0: mov ecx, ebx */
   9484     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157DC2: call dword ptr [0x3616f014] */
   9485     RECOMP_FLAGS_IN();
   9486     goto L_3615811C; /* 0x36157DC8: jmp 0x3615811c */
   9487 L_36157DCD:
   9488     /* test HI8(eax), 0x40u */ /* 0x36157DCD: test ah, 0x40 */
   9489     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   9490     _cf = 0;
   9491     _flag_k = FK_NARROW(FK_TEST, 24);
   9492     if (TEST_Z(_flag_a, _flag_b)) goto L_36157E2A; /* 0x36157DD0: je 0x36157e2a */
   9493 L_36157DD2:
   9494     ebx = MEM32(ebp + 0x8); /* 0x36157DD2: mov ebx, dword ptr [ebp + 8] */
   9495     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36157DD5: mov cl, byte ptr [ebp + 0xb] */
   9496     MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x36157DD8: mov byte ptr [ebx], cl */
   9497     PUSH32(esp, esi); /* 0x36157DDA: push esi */
   9498     ecx = ebx; /* 0x36157DDB: mov ecx, ebx */
   9499     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157DDD: call dword ptr [0x3616f100] */
   9500     RECOMP_FLAGS_IN();
   9501     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9502     ecx = ecx | 0xFFFFFFFFu; /* 0x36157DE3: or ecx, 0xffffffff */
   9503     _cf = 0;
   9504     _flag_k = FK_TEST;
   9505     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9506     eax = 0; /* 0x36157DE6: xor eax, eax */
   9507     _cf = 0;
   9508     _flag_k = FK_TEST;
   9509     edi = 0x362E8AB0u; /* 0x36157DE8: mov edi, 0x362e8ab0 */
   9510     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; } /* 0x36157DED: repne scasb al, byte ptr es:[edi] */
   9511     ecx = ~ecx; /* 0x36157DEF: not ecx */
   9512     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9513     ecx = ecx - 1; /* 0x36157DF1: dec ecx */
   9514     _flag_k = FK_DEC;
   9515     esi = ecx; /* 0x36157DF2: mov esi, ecx */
   9516     PUSH32(esp, 1); /* 0x36157DF4: push 1 */
   9517     PUSH32(esp, esi); /* 0x36157DF6: push esi */
   9518     ecx = ebx; /* 0x36157DF7: mov ecx, ebx */
   9519     MEM32(ebp + 0x8) = esi; /* 0x36157DF9: mov dword ptr [ebp + 8], esi */
   9520     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36157DFC: call dword ptr [0x3616f00c] */
   9521     RECOMP_FLAGS_IN();
   9522     /* test LO8(eax), LO8(eax) */ /* 0x36157E02: test al, al */
   9523     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9524     _cf = 0;
   9525     _flag_k = FK_NARROW(FK_TEST, 24);
   9526     if (TEST_Z(_flag_a, _flag_b)) goto L_3615811C; /* 0x36157E04: je 0x3615811c */
   9527 L_36157E0A:
   9528     edi = MEM32(ebx + 0x4); /* 0x36157E0A: mov edi, dword ptr [ebx + 4] */
   9529     ecx = esi; /* 0x36157E0D: mov ecx, esi */
   9530     edx = ecx; /* 0x36157E0F: mov edx, ecx */
   9531     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36157E11: shr ecx, 2 */
   9532     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9533     ecx = ecx >> 2u; /* 0x36157E11: shr ecx, 2 */
   9534     esi = 0x362E8AB0u; /* 0x36157E14: mov esi, 0x362e8ab0 */
   9535     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36157E19: 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; }
   9536     ecx = edx; /* 0x36157E1B: mov ecx, edx */
   9537     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   9538     ecx = ecx & 3; /* 0x36157E1D: and ecx, 3 */
   9539     _cf = 0;
   9540     _flag_k = FK_TEST;
   9541     eax = edx; /* 0x36157E20: mov eax, edx */
   9542     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36157E22: 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; }
   9543     PUSH32(esp, eax); /* 0x36157E24: push eax */
   9544     goto L_36158114; /* 0x36157E25: jmp 0x36158114 */
   9545 L_36157E2A:
   9546     /* test HI8(eax), 2 */ /* 0x36157E2A: test ah, 2 */
   9547     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   9548     _cf = 0;
   9549     _flag_k = FK_NARROW(FK_TEST, 24);
   9550     if (TEST_Z(_flag_a, _flag_b)) goto L_36157E62; /* 0x36157E2D: je 0x36157e62 */
   9551 L_36157E2F:
   9552     ebx = MEM32(ebp + 0x8); /* 0x36157E2F: mov ebx, dword ptr [ebp + 8] */
   9553     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36157E32: mov cl, byte ptr [ebp + 0xb] */
   9554     MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x36157E35: mov byte ptr [ebx], cl */
   9555     PUSH32(esp, esi); /* 0x36157E37: push esi */
   9556     ecx = ebx; /* 0x36157E38: mov ecx, ebx */
   9557     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157E3A: call dword ptr [0x3616f100] */
   9558     RECOMP_FLAGS_IN();
   9559     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9560     ecx = ecx | 0xFFFFFFFFu; /* 0x36157E40: or ecx, 0xffffffff */
   9561     _cf = 0;
   9562     _flag_k = FK_TEST;
   9563     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9564     eax = 0; /* 0x36157E43: xor eax, eax */
   9565     _cf = 0;
   9566     _flag_k = FK_TEST;
   9567     edi = 0x362E8A5Cu; /* 0x36157E45: mov edi, 0x362e8a5c */
   9568     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; } /* 0x36157E4A: repne scasb al, byte ptr es:[edi] */
   9569     ecx = ~ecx; /* 0x36157E4C: not ecx */
   9570     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9571     ecx = ecx - 1; /* 0x36157E4E: dec ecx */
   9572     _flag_k = FK_DEC;
   9573     PUSH32(esp, ecx); /* 0x36157E4F: push ecx */
   9574     PUSH32(esp, 0x362E8A5Cu); /* 0x36157E50: push 0x362e8a5c */
   9575     ecx = ebx; /* 0x36157E55: mov ecx, ebx */
   9576     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157E57: call dword ptr [0x3616f014] */
   9577     RECOMP_FLAGS_IN();
   9578     goto L_3615811C; /* 0x36157E5D: jmp 0x3615811c */
   9579 L_36157E62:
   9580     /* test HI8(eax), 0x80u */ /* 0x36157E62: test ah, 0x80 */
   9581     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x80u) << 24;
   9582     _cf = 0;
   9583     _flag_k = FK_NARROW(FK_TEST, 24);
   9584     if (TEST_Z(_flag_a, _flag_b)) goto L_36157E9A; /* 0x36157E65: je 0x36157e9a */
   9585 L_36157E67:
   9586     ebx = MEM32(ebp + 0x8); /* 0x36157E67: mov ebx, dword ptr [ebp + 8] */
   9587     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36157E6A: mov dl, byte ptr [ebp + 0xb] */
   9588     PUSH32(esp, esi); /* 0x36157E6D: push esi */
   9589     ecx = ebx; /* 0x36157E6E: mov ecx, ebx */
   9590     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x36157E70: mov byte ptr [ebx], dl */
   9591     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157E72: call dword ptr [0x3616f100] */
   9592     RECOMP_FLAGS_IN();
   9593     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9594     ecx = ecx | 0xFFFFFFFFu; /* 0x36157E78: or ecx, 0xffffffff */
   9595     _cf = 0;
   9596     _flag_k = FK_TEST;
   9597     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9598     eax = 0; /* 0x36157E7B: xor eax, eax */
   9599     _cf = 0;
   9600     _flag_k = FK_TEST;
   9601     edi = 0x362E8A20u; /* 0x36157E7D: mov edi, 0x362e8a20 */
   9602     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; } /* 0x36157E82: repne scasb al, byte ptr es:[edi] */
   9603     ecx = ~ecx; /* 0x36157E84: not ecx */
   9604     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9605     ecx = ecx - 1; /* 0x36157E86: dec ecx */
   9606     _flag_k = FK_DEC;
   9607     PUSH32(esp, ecx); /* 0x36157E87: push ecx */
   9608     PUSH32(esp, 0x362E8A20u); /* 0x36157E88: push 0x362e8a20 */
   9609     ecx = ebx; /* 0x36157E8D: mov ecx, ebx */
   9610     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157E8F: call dword ptr [0x3616f014] */
   9611     RECOMP_FLAGS_IN();
   9612     goto L_3615811C; /* 0x36157E95: jmp 0x3615811c */
   9613 L_36157E9A:
   9614     /* test eax, 0x00010000u */ /* 0x36157E9A: test eax, 0x10000 */
   9615     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u);
   9616     _cf = 0;
   9617     _flag_k = FK_TEST;
   9618     if (TEST_Z(_flag_a, _flag_b)) goto L_36157ED4; /* 0x36157E9F: je 0x36157ed4 */
   9619 L_36157EA1:
   9620     ebx = MEM32(ebp + 0x8); /* 0x36157EA1: mov ebx, dword ptr [ebp + 8] */
   9621     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36157EA4: mov al, byte ptr [ebp + 0xb] */
   9622     PUSH32(esp, esi); /* 0x36157EA7: push esi */
   9623     ecx = ebx; /* 0x36157EA8: mov ecx, ebx */
   9624     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x36157EAA: mov byte ptr [ebx], al */
   9625     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157EAC: call dword ptr [0x3616f100] */
   9626     RECOMP_FLAGS_IN();
   9627     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9628     ecx = ecx | 0xFFFFFFFFu; /* 0x36157EB2: or ecx, 0xffffffff */
   9629     _cf = 0;
   9630     _flag_k = FK_TEST;
   9631     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9632     eax = 0; /* 0x36157EB5: xor eax, eax */
   9633     _cf = 0;
   9634     _flag_k = FK_TEST;
   9635     edi = 0x362E89E0u; /* 0x36157EB7: mov edi, 0x362e89e0 */
   9636     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; } /* 0x36157EBC: repne scasb al, byte ptr es:[edi] */
   9637     ecx = ~ecx; /* 0x36157EBE: not ecx */
   9638     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9639     ecx = ecx - 1; /* 0x36157EC0: dec ecx */
   9640     _flag_k = FK_DEC;
   9641     PUSH32(esp, ecx); /* 0x36157EC1: push ecx */
   9642     PUSH32(esp, 0x362E89E0u); /* 0x36157EC2: push 0x362e89e0 */
   9643     ecx = ebx; /* 0x36157EC7: mov ecx, ebx */
   9644     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157EC9: call dword ptr [0x3616f014] */
   9645     RECOMP_FLAGS_IN();
   9646     goto L_3615811C; /* 0x36157ECF: jmp 0x3615811c */
   9647 L_36157ED4:
   9648     /* test eax, 0x00020000u */ /* 0x36157ED4: test eax, 0x20000 */
   9649     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00020000u);
   9650     _cf = 0;
   9651     _flag_k = FK_TEST;
   9652     if (TEST_Z(_flag_a, _flag_b)) goto L_36157F0E; /* 0x36157ED9: je 0x36157f0e */
   9653 L_36157EDB:
   9654     ebx = MEM32(ebp + 0x8); /* 0x36157EDB: mov ebx, dword ptr [ebp + 8] */
   9655     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36157EDE: mov cl, byte ptr [ebp + 0xb] */
   9656     MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x36157EE1: mov byte ptr [ebx], cl */
   9657     PUSH32(esp, esi); /* 0x36157EE3: push esi */
   9658     ecx = ebx; /* 0x36157EE4: mov ecx, ebx */
   9659     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157EE6: call dword ptr [0x3616f100] */
   9660     RECOMP_FLAGS_IN();
   9661     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9662     ecx = ecx | 0xFFFFFFFFu; /* 0x36157EEC: or ecx, 0xffffffff */
   9663     _cf = 0;
   9664     _flag_k = FK_TEST;
   9665     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9666     eax = 0; /* 0x36157EEF: xor eax, eax */
   9667     _cf = 0;
   9668     _flag_k = FK_TEST;
   9669     edi = 0x362E89A4u; /* 0x36157EF1: mov edi, 0x362e89a4 */
   9670     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; } /* 0x36157EF6: repne scasb al, byte ptr es:[edi] */
   9671     ecx = ~ecx; /* 0x36157EF8: not ecx */
   9672     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9673     ecx = ecx - 1; /* 0x36157EFA: dec ecx */
   9674     _flag_k = FK_DEC;
   9675     PUSH32(esp, ecx); /* 0x36157EFB: push ecx */
   9676     PUSH32(esp, 0x362E89A4u); /* 0x36157EFC: push 0x362e89a4 */
   9677     ecx = ebx; /* 0x36157F01: mov ecx, ebx */
   9678     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157F03: call dword ptr [0x3616f014] */
   9679     RECOMP_FLAGS_IN();
   9680     goto L_3615811C; /* 0x36157F09: jmp 0x3615811c */
   9681 L_36157F0E:
   9682     /* test HI8(eax), 8 */ /* 0x36157F0E: test ah, 8 */
   9683     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(8) << 24;
   9684     _cf = 0;
   9685     _flag_k = FK_NARROW(FK_TEST, 24);
   9686     if (TEST_Z(_flag_a, _flag_b)) goto L_3615802D; /* 0x36157F11: je 0x3615802d */
   9687 L_36157F17:
   9688     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36157F17: mov dl, byte ptr [ebp + 0xb] */
   9689     PUSH32(esp, esi); /* 0x36157F1A: push esi */
   9690     ecx = ebp + (-0x1C); /* 0x36157F1B: lea ecx, [ebp - 0x1c] */
   9691     MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(edx)); /* 0x36157F1E: mov byte ptr [ebp - 0x1c], dl */
   9692     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157F21: call dword ptr [0x3616f100] */
   9693     RECOMP_FLAGS_IN();
   9694     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9695     ecx = ecx | 0xFFFFFFFFu; /* 0x36157F27: or ecx, 0xffffffff */
   9696     _cf = 0;
   9697     _flag_k = FK_TEST;
   9698     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9699     eax = 0; /* 0x36157F2A: xor eax, eax */
   9700     _cf = 0;
   9701     _flag_k = FK_TEST;
   9702     edi = 0x362E8954u; /* 0x36157F2C: mov edi, 0x362e8954 */
   9703     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; } /* 0x36157F31: repne scasb al, byte ptr es:[edi] */
   9704     ecx = ~ecx; /* 0x36157F33: not ecx */
   9705     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9706     ecx = ecx - 1; /* 0x36157F35: dec ecx */
   9707     _flag_k = FK_DEC;
   9708     PUSH32(esp, ecx); /* 0x36157F36: push ecx */
   9709     PUSH32(esp, 0x362E8954u); /* 0x36157F37: push 0x362e8954 */
   9710     ecx = ebp + (-0x1C); /* 0x36157F3C: lea ecx, [ebp - 0x1c] */
   9711     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36157F3F: call dword ptr [0x3616f014] */
   9712     RECOMP_FLAGS_IN();
   9713     eax = MEM32(ebp + 0x10); /* 0x36157F45: mov eax, dword ptr [ebp + 0x10] */
   9714     PUSH32(esp, eax); /* 0x36157F48: push eax */
   9715     MEM32(ebp + (-0x4)) = esi; /* 0x36157F49: mov dword ptr [ebp - 4], esi */
   9716     RECOMP_ICALL(0x361584C0u); /* 0x36157F4C: call 0x361584c0 */ /* not lifted */
   9717     RECOMP_FLAGS_IN();
   9718     eax = MEM32(eax + 0x4); /* 0x36157F51: mov eax, dword ptr [eax + 4] */
   9719     ecx = MEM32(eax + 0x40); /* 0x36157F54: mov ecx, dword ptr [eax + 0x40] */
   9720     eax = MEM32(eax + 0x3C); /* 0x36157F57: mov eax, dword ptr [eax + 0x3c] */
   9721     PUSH32(esp, ecx); /* 0x36157F5A: push ecx */
   9722     PUSH32(esp, eax); /* 0x36157F5B: push eax */
   9723     ecx = ebp + (-0x220); /* 0x36157F5C: lea ecx, [ebp - 0x220] */
   9724     PUSH32(esp, 0x362E8908u); /* 0x36157F62: push 0x362e8908 */
   9725     PUSH32(esp, ecx); /* 0x36157F67: push ecx */
   9726     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x36157F68: call dword ptr [0x3616f25c] */
   9727     RECOMP_FLAGS_IN();
   9728     edx = MEM32(0x3616F010); /* 0x36157F6E: mov edx, dword ptr [0x3616f010] */
   9729     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9730     eax = 0; /* 0x36157F74: xor eax, eax */
   9731     _cf = 0;
   9732     _flag_k = FK_TEST;
   9733     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9734     ecx = ecx | 0xFFFFFFFFu; /* 0x36157F76: or ecx, 0xffffffff */
   9735     _cf = 0;
   9736     _flag_k = FK_TEST;
   9737     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   9738     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9739     esp = esp + 0x14u; /* 0x36157F79: add esp, 0x14 */
   9740     _flag_k = FK_ADD;
   9741     edi = ebp + (-0x220); /* 0x36157F7C: lea edi, [ebp - 0x220] */
   9742     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; } /* 0x36157F82: repne scasb al, byte ptr es:[edi] */
   9743     eax = MEM32(edx); /* 0x36157F84: mov eax, dword ptr [edx] */
   9744     edx = MEM32(ebp + (-0x14)); /* 0x36157F86: mov edx, dword ptr [ebp - 0x14] */
   9745     ecx = ~ecx; /* 0x36157F89: not ecx */
   9746     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9747     ecx = ecx - 1; /* 0x36157F8B: dec ecx */
   9748     _flag_k = FK_DEC;
   9749     esi = ecx; /* 0x36157F8C: mov esi, ecx */
   9750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   9751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9752     eax = eax - edx; /* 0x36157F8E: sub eax, edx */
   9753     _flag_k = FK_CMP;
   9754     /* cmp eax, esi */ /* 0x36157F90: cmp eax, esi */
   9755     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   9756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9757     _flag_k = FK_CMP;
   9758     if (CMP_A(_flag_a, _flag_b)) goto L_36157F9A; /* 0x36157F92: ja 0x36157f9a */
   9759 L_36157F94:
   9760     RECOMP_ICALL(MEM32(0x3616F104)); /* 0x36157F94: call dword ptr [0x3616f104] */
   9761     RECOMP_FLAGS_IN();
   9762 L_36157F9A:
   9763     /* test esi, esi */ /* 0x36157F9A: test esi, esi */
   9764     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   9765     _cf = 0;
   9766     _flag_k = FK_TEST;
   9767     if (TEST_Z(_flag_a, _flag_b)) goto L_36157FDD; /* 0x36157F9C: jbe 0x36157fdd */
   9768 L_36157F9E:
   9769     ecx = MEM32(ebp + (-0x14)); /* 0x36157F9E: mov ecx, dword ptr [ebp - 0x14] */
   9770     ebx = ecx + esi; /* 0x36157FA1: lea ebx, [ecx + esi] */
   9771     PUSH32(esp, 0); /* 0x36157FA4: push 0 */
   9772     PUSH32(esp, ebx); /* 0x36157FA6: push ebx */
   9773     ecx = ebp + (-0x1C); /* 0x36157FA7: lea ecx, [ebp - 0x1c] */
   9774     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36157FAA: call dword ptr [0x3616f00c] */
   9775     RECOMP_FLAGS_IN();
   9776     /* test LO8(eax), LO8(eax) */ /* 0x36157FB0: test al, al */
   9777     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9778     _cf = 0;
   9779     _flag_k = FK_NARROW(FK_TEST, 24);
   9780     if (TEST_Z(_flag_a, _flag_b)) goto L_36157FDD; /* 0x36157FB2: je 0x36157fdd */
   9781 L_36157FB4:
   9782     edx = MEM32(ebp + (-0x14)); /* 0x36157FB4: mov edx, dword ptr [ebp - 0x14] */
   9783     eax = MEM32(ebp + (-0x18)); /* 0x36157FB7: mov eax, dword ptr [ebp - 0x18] */
   9784     ecx = esi; /* 0x36157FBA: mov ecx, esi */
   9785     edi = eax + edx; /* 0x36157FBC: lea edi, [eax + edx] */
   9786     edx = ecx; /* 0x36157FBF: mov edx, ecx */
   9787     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36157FC1: shr ecx, 2 */
   9788     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9789     ecx = ecx >> 2u; /* 0x36157FC1: shr ecx, 2 */
   9790     esi = ebp + (-0x220); /* 0x36157FC4: lea esi, [ebp - 0x220] */
   9791     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36157FCA: 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; }
   9792     ecx = edx; /* 0x36157FCC: mov ecx, edx */
   9793     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   9794     ecx = ecx & 3; /* 0x36157FCE: and ecx, 3 */
   9795     _cf = 0;
   9796     _flag_k = FK_TEST;
   9797     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36157FD1: 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; }
   9798     PUSH32(esp, ebx); /* 0x36157FD3: push ebx */
   9799     ecx = ebp + (-0x1C); /* 0x36157FD4: lea ecx, [ebp - 0x1c] */
   9800     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36157FD7: call dword ptr [0x3616f044] */
   9801     RECOMP_FLAGS_IN();
   9802 L_36157FDD:
   9803     esi = MEM32(ebp + 0x8); /* 0x36157FDD: mov esi, dword ptr [ebp + 8] */
   9804     SET_LO8(eax, MEM8(ebp + (-0x1C))); /* 0x36157FE0: mov al, byte ptr [ebp - 0x1c] */
   9805     PUSH32(esp, 0); /* 0x36157FE3: push 0 */
   9806     ecx = esi; /* 0x36157FE5: mov ecx, esi */
   9807     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x36157FE7: mov byte ptr [esi], al */
   9808     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36157FE9: call dword ptr [0x3616f100] */
   9809     RECOMP_FLAGS_IN();
   9810     ecx = MEM32(0x3616F010); /* 0x36157FEF: mov ecx, dword ptr [0x3616f010] */
   9811     edx = MEM32(ecx); /* 0x36157FF5: mov edx, dword ptr [ecx] */
   9812     PUSH32(esp, edx); /* 0x36157FF7: push edx */
   9813     PUSH32(esp, 0); /* 0x36157FF8: push 0 */
   9814     eax = ebp + (-0x1C); /* 0x36157FFA: lea eax, [ebp - 0x1c] */
   9815     PUSH32(esp, eax); /* 0x36157FFD: push eax */
   9816     ecx = esi; /* 0x36157FFE: mov ecx, esi */
   9817     RECOMP_ICALL(MEM32(0x3616F024)); /* 0x36158000: call dword ptr [0x3616f024] */
   9818     RECOMP_FLAGS_IN();
   9819     PUSH32(esp, 1); /* 0x36158006: push 1 */
   9820     ecx = ebp + (-0x1C); /* 0x36158008: lea ecx, [ebp - 0x1c] */
   9821     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3615800B: mov dword ptr [ebp - 4], 0xffffffff */
   9822     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36158012: call dword ptr [0x3616f100] */
   9823     RECOMP_FLAGS_IN();
   9824     edi = POP32_VAL(esp); /* 0x36158018: pop edi */
   9825     eax = esi; /* 0x36158019: mov eax, esi */
   9826     esi = POP32_VAL(esp); /* 0x3615801B: pop esi */
   9827     ebx = POP32_VAL(esp); /* 0x3615801C: pop ebx */
   9828     ecx = MEM32(ebp + (-0xC)); /* 0x3615801D: mov ecx, dword ptr [ebp - 0xc] */
   9829     MEM32(FS_BASE + (0)) = ecx; /* 0x36158020: mov dword ptr fs:[0], ecx */
   9830     esp = ebp; /* 0x36158027: mov esp, ebp */
   9831     ebp = POP32_VAL(esp); /* 0x36158029: pop ebp */
   9832     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3615802A: ret 0x10 */
   9833 L_3615802D:
   9834     /* test eax, 0x00040000u */ /* 0x3615802D: test eax, 0x40000 */
   9835     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00040000u);
   9836     _cf = 0;
   9837     _flag_k = FK_TEST;
   9838     if (TEST_Z(_flag_a, _flag_b)) goto L_36158067; /* 0x36158032: je 0x36158067 */
   9839 L_36158034:
   9840     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36158034: mov cl, byte ptr [ebp + 0xb] */
   9841     ebx = MEM32(ebp + 0x8); /* 0x36158037: mov ebx, dword ptr [ebp + 8] */
   9842     MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x3615803A: mov byte ptr [ebx], cl */
   9843     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9844     eax = 0; /* 0x3615803C: xor eax, eax */
   9845     _cf = 0;
   9846     _flag_k = FK_TEST;
   9847     MEM32(ebx + 0x4) = esi; /* 0x3615803E: mov dword ptr [ebx + 4], esi */
   9848     MEM32(ebx + 0x8) = esi; /* 0x36158041: mov dword ptr [ebx + 8], esi */
   9849     MEM32(ebx + 0xC) = esi; /* 0x36158044: mov dword ptr [ebx + 0xc], esi */
   9850     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9851     ecx = ecx | 0xFFFFFFFFu; /* 0x36158047: or ecx, 0xffffffff */
   9852     _cf = 0;
   9853     _flag_k = FK_TEST;
   9854     edi = 0x362E88BCu; /* 0x3615804A: mov edi, 0x362e88bc */
   9855     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; } /* 0x3615804F: repne scasb al, byte ptr es:[edi] */
   9856     ecx = ~ecx; /* 0x36158051: not ecx */
   9857     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9858     ecx = ecx - 1; /* 0x36158053: dec ecx */
   9859     _flag_k = FK_DEC;
   9860     PUSH32(esp, ecx); /* 0x36158054: push ecx */
   9861     PUSH32(esp, 0x362E88BCu); /* 0x36158055: push 0x362e88bc */
   9862     ecx = ebx; /* 0x3615805A: mov ecx, ebx */
   9863     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x3615805C: call dword ptr [0x3616f014] */
   9864     RECOMP_FLAGS_IN();
   9865     goto L_3615811C; /* 0x36158062: jmp 0x3615811c */
   9866 L_36158067:
   9867     /* test eax, 0x00080000u */ /* 0x36158067: test eax, 0x80000 */
   9868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00080000u);
   9869     _cf = 0;
   9870     _flag_k = FK_TEST;
   9871     ebx = MEM32(ebp + 0x8); /* 0x3615806C: mov ebx, dword ptr [ebp + 8] */
   9872     if (TEST_Z(_flag_a, _flag_b)) goto L_361580C7; /* 0x3615806F: je 0x361580c7 */
   9873 L_36158071:
   9874     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36158071: mov dl, byte ptr [ebp + 0xb] */
   9875     PUSH32(esp, 0); /* 0x36158074: push 0 */
   9876     ecx = ebx; /* 0x36158076: mov ecx, ebx */
   9877     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x36158078: mov byte ptr [ebx], dl */
   9878     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3615807A: call dword ptr [0x3616f100] */
   9879     RECOMP_FLAGS_IN();
   9880     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9881     ecx = ecx | 0xFFFFFFFFu; /* 0x36158080: or ecx, 0xffffffff */
   9882     _cf = 0;
   9883     _flag_k = FK_TEST;
   9884     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9885     eax = 0; /* 0x36158083: xor eax, eax */
   9886     _cf = 0;
   9887     _flag_k = FK_TEST;
   9888     edi = 0x362E8878u; /* 0x36158085: mov edi, 0x362e8878 */
   9889     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; } /* 0x3615808A: repne scasb al, byte ptr es:[edi] */
   9890     ecx = ~ecx; /* 0x3615808C: not ecx */
   9891     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9892     ecx = ecx - 1; /* 0x3615808E: dec ecx */
   9893     _flag_k = FK_DEC;
   9894     esi = ecx; /* 0x3615808F: mov esi, ecx */
   9895     PUSH32(esp, 1); /* 0x36158091: push 1 */
   9896     PUSH32(esp, esi); /* 0x36158093: push esi */
   9897     ecx = ebx; /* 0x36158094: mov ecx, ebx */
   9898     MEM32(ebp + 0x8) = esi; /* 0x36158096: mov dword ptr [ebp + 8], esi */
   9899     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36158099: call dword ptr [0x3616f00c] */
   9900     RECOMP_FLAGS_IN();
   9901     /* test LO8(eax), LO8(eax) */ /* 0x3615809F: test al, al */
   9902     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9903     _cf = 0;
   9904     _flag_k = FK_NARROW(FK_TEST, 24);
   9905     if (TEST_Z(_flag_a, _flag_b)) goto L_3615811C; /* 0x361580A1: je 0x3615811c */
   9906 L_361580A3:
   9907     edi = MEM32(ebx + 0x4); /* 0x361580A3: mov edi, dword ptr [ebx + 4] */
   9908     ecx = esi; /* 0x361580A6: mov ecx, esi */
   9909     eax = ecx; /* 0x361580A8: mov eax, ecx */
   9910     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x361580AA: shr ecx, 2 */
   9911     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9912     ecx = ecx >> 2u; /* 0x361580AA: shr ecx, 2 */
   9913     esi = 0x362E8878u; /* 0x361580AD: mov esi, 0x362e8878 */
   9914     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x361580B2: 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; }
   9915     ecx = eax; /* 0x361580B4: mov ecx, eax */
   9916     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   9917     ecx = ecx & 3; /* 0x361580B6: and ecx, 3 */
   9918     _cf = 0;
   9919     _flag_k = FK_TEST;
   9920     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x361580B9: 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; }
   9921     ecx = MEM32(ebx + 0x4); /* 0x361580BB: mov ecx, dword ptr [ebx + 4] */
   9922     MEM32(ebx + 0x8) = eax; /* 0x361580BE: mov dword ptr [ebx + 8], eax */
   9923     MEM8(ecx + eax) = (uint8_t)(0); /* 0x361580C1: mov byte ptr [ecx + eax], 0 */
   9924     goto L_3615811C; /* 0x361580C5: jmp 0x3615811c */
   9925 L_361580C7:
   9926     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x361580C7: mov dl, byte ptr [ebp + 0xb] */
   9927     PUSH32(esp, 0); /* 0x361580CA: push 0 */
   9928     ecx = ebx; /* 0x361580CC: mov ecx, ebx */
   9929     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x361580CE: mov byte ptr [ebx], dl */
   9930     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x361580D0: call dword ptr [0x3616f100] */
   9931     RECOMP_FLAGS_IN();
   9932     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   9933     ecx = ecx | 0xFFFFFFFFu; /* 0x361580D6: or ecx, 0xffffffff */
   9934     _cf = 0;
   9935     _flag_k = FK_TEST;
   9936     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9937     eax = 0; /* 0x361580D9: xor eax, eax */
   9938     _cf = 0;
   9939     _flag_k = FK_TEST;
   9940     edi = 0x362E883Cu; /* 0x361580DB: mov edi, 0x362e883c */
   9941     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; } /* 0x361580E0: repne scasb al, byte ptr es:[edi] */
   9942     ecx = ~ecx; /* 0x361580E2: not ecx */
   9943     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9944     ecx = ecx - 1; /* 0x361580E4: dec ecx */
   9945     _flag_k = FK_DEC;
   9946     esi = ecx; /* 0x361580E5: mov esi, ecx */
   9947     PUSH32(esp, 1); /* 0x361580E7: push 1 */
   9948     PUSH32(esp, esi); /* 0x361580E9: push esi */
   9949     ecx = ebx; /* 0x361580EA: mov ecx, ebx */
   9950     MEM32(ebp + 0x8) = esi; /* 0x361580EC: mov dword ptr [ebp + 8], esi */
   9951     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x361580EF: call dword ptr [0x3616f00c] */
   9952     RECOMP_FLAGS_IN();
   9953     /* test LO8(eax), LO8(eax) */ /* 0x361580F5: test al, al */
   9954     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9955     _cf = 0;
   9956     _flag_k = FK_NARROW(FK_TEST, 24);
   9957     if (TEST_Z(_flag_a, _flag_b)) goto L_3615811C; /* 0x361580F7: je 0x3615811c */
   9958 L_361580F9:
   9959     edi = MEM32(ebx + 0x4); /* 0x361580F9: mov edi, dword ptr [ebx + 4] */
   9960     ecx = esi; /* 0x361580FC: mov ecx, esi */
   9961     eax = ecx; /* 0x361580FE: mov eax, ecx */
   9962     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36158100: shr ecx, 2 */
   9963     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9964     ecx = ecx >> 2u; /* 0x36158100: shr ecx, 2 */
   9965     esi = 0x362E883Cu; /* 0x36158103: mov esi, 0x362e883c */
   9966     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36158108: 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; }
   9967     ecx = eax; /* 0x3615810A: mov ecx, eax */
   9968     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   9969     ecx = ecx & 3; /* 0x3615810C: and ecx, 3 */
   9970     _cf = 0;
   9971     _flag_k = FK_TEST;
   9972     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3615810F: 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; }
   9973     ecx = eax; /* 0x36158111: mov ecx, eax */
   9974 L_36158113:
   9975     PUSH32(esp, ecx); /* 0x36158113: push ecx */
   9976 L_36158114:
   9977     ecx = ebx; /* 0x36158114: mov ecx, ebx */
   9978     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36158116: call dword ptr [0x3616f044] */
   9979     RECOMP_FLAGS_IN();
   9980 L_3615811C:
   9981     ecx = MEM32(ebp + (-0xC)); /* 0x3615811C: mov ecx, dword ptr [ebp - 0xc] */
   9982     edi = POP32_VAL(esp); /* 0x3615811F: pop edi */
   9983     esi = POP32_VAL(esp); /* 0x36158120: pop esi */
   9984     eax = ebx; /* 0x36158121: mov eax, ebx */
   9985     ebx = POP32_VAL(esp); /* 0x36158123: pop ebx */
   9986     MEM32(FS_BASE + (0)) = ecx; /* 0x36158124: mov dword ptr fs:[0], ecx */
   9987     esp = ebp; /* 0x3615812B: mov esp, ebp */
   9988     ebp = POP32_VAL(esp); /* 0x3615812D: pop ebp */
   9989     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3615812E: ret 0x10 */
   9990     RECOMP_REGS_OUT();
   9991 }
   9992 
   9993 void sub_36158113(void) {
   9994     int _fpu_cmp = 0;
   9995     uint32_t _cf = 0;
   9996     int _df = 1;
   9997     uint32_t _flag_k = FK_NONE;
   9998     uint32_t _flag_a = 0, _flag_b = 0;
   9999     uint32_t _itail_tgt = 0;
  10000     RECOMP_REGS_LOCALS
  10001     RECOMP_ENTER(0x36158113u);
  10002 
  10003 L_36158113:
  10004     PUSH32(esp, ecx); /* 0x36158113: push ecx */
  10005     ecx = ebx; /* 0x36158114: mov ecx, ebx */
  10006     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36158116: call dword ptr [0x3616f044] */
  10007     RECOMP_FLAGS_IN();
  10008     ecx = MEM32(ebp + (-0xC)); /* 0x3615811C: mov ecx, dword ptr [ebp - 0xc] */
  10009     edi = POP32_VAL(esp); /* 0x3615811F: pop edi */
  10010     esi = POP32_VAL(esp); /* 0x36158120: pop esi */
  10011     eax = ebx; /* 0x36158121: mov eax, ebx */
  10012     ebx = POP32_VAL(esp); /* 0x36158123: pop ebx */
  10013     MEM32(FS_BASE + (0)) = ecx; /* 0x36158124: mov dword ptr fs:[0], ecx */
  10014     esp = ebp; /* 0x3615812B: mov esp, ebp */
  10015     ebp = POP32_VAL(esp); /* 0x3615812D: pop ebp */
  10016     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3615812E: ret 0x10 */
  10017     RECOMP_REGS_OUT();
  10018 }
  10019 
  10020 void sub_36158114(void) {
  10021     int _fpu_cmp = 0;
  10022     uint32_t _cf = 0;
  10023     int _df = 1;
  10024     uint32_t _flag_k = FK_NONE;
  10025     uint32_t _flag_a = 0, _flag_b = 0;
  10026     uint32_t _itail_tgt = 0;
  10027     RECOMP_REGS_LOCALS
  10028     RECOMP_ENTER(0x36158114u);
  10029 
  10030 L_36158114:
  10031     ecx = ebx; /* 0x36158114: mov ecx, ebx */
  10032     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36158116: call dword ptr [0x3616f044] */
  10033     RECOMP_FLAGS_IN();
  10034     ecx = MEM32(ebp + (-0xC)); /* 0x3615811C: mov ecx, dword ptr [ebp - 0xc] */
  10035     edi = POP32_VAL(esp); /* 0x3615811F: pop edi */
  10036     esi = POP32_VAL(esp); /* 0x36158120: pop esi */
  10037     eax = ebx; /* 0x36158121: mov eax, ebx */
  10038     ebx = POP32_VAL(esp); /* 0x36158123: pop ebx */
  10039     MEM32(FS_BASE + (0)) = ecx; /* 0x36158124: mov dword ptr fs:[0], ecx */
  10040     esp = ebp; /* 0x3615812B: mov esp, ebp */
  10041     ebp = POP32_VAL(esp); /* 0x3615812D: pop ebp */
  10042     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3615812E: ret 0x10 */
  10043     RECOMP_REGS_OUT();
  10044 }
  10045 
  10046 void sub_3615811C(void) {
  10047     int _fpu_cmp = 0;
  10048     uint32_t _cf = 0;
  10049     int _df = 1;
  10050     uint32_t _flag_k = FK_NONE;
  10051     uint32_t _flag_a = 0, _flag_b = 0;
  10052     uint32_t _itail_tgt = 0;
  10053     RECOMP_REGS_LOCALS
  10054     RECOMP_ENTER(0x3615811Cu);
  10055 
  10056 L_3615811C:
  10057     ecx = MEM32(ebp + (-0xC)); /* 0x3615811C: mov ecx, dword ptr [ebp - 0xc] */
  10058     edi = POP32_VAL(esp); /* 0x3615811F: pop edi */
  10059     esi = POP32_VAL(esp); /* 0x36158120: pop esi */
  10060     eax = ebx; /* 0x36158121: mov eax, ebx */
  10061     ebx = POP32_VAL(esp); /* 0x36158123: pop ebx */
  10062     MEM32(FS_BASE + (0)) = ecx; /* 0x36158124: mov dword ptr fs:[0], ecx */
  10063     esp = ebp; /* 0x3615812B: mov esp, ebp */
  10064     ebp = POP32_VAL(esp); /* 0x3615812D: pop ebp */
  10065     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3615812E: ret 0x10 */
  10066     RECOMP_REGS_OUT();
  10067 }
  10068 
  10069 void sub_36158140(void) {
  10070     int _fpu_cmp = 0;
  10071     uint32_t _cf = 0;
  10072     int _df = 1;
  10073     uint32_t _flag_k = FK_NONE;
  10074     uint32_t _flag_a = 0, _flag_b = 0;
  10075     uint32_t _itail_tgt = 0;
  10076     RECOMP_REGS_LOCALS
  10077     RECOMP_ENTER(0x36158140u);
  10078 
  10079 L_36158140:
  10080     PUSH32(esp, ebp); /* 0x36158140: push ebp */
  10081     ebp = esp; /* 0x36158141: mov ebp, esp */
  10082     PUSH32(esp, ecx); /* 0x36158143: push ecx */
  10083     PUSH32(esp, ebx); /* 0x36158144: push ebx */
  10084     ebx = MEM32(ebp + 0x8); /* 0x36158145: mov ebx, dword ptr [ebp + 8] */
  10085     PUSH32(esp, esi); /* 0x36158148: push esi */
  10086     PUSH32(esp, edi); /* 0x36158149: push edi */
  10087     PUSH32(esp, 0); /* 0x3615814A: push 0 */
  10088     PUSH32(esp, 0x361B66A0u); /* 0x3615814C: push 0x361b66a0 */
  10089     PUSH32(esp, 0x361B6680u); /* 0x36158151: push 0x361b6680 */
  10090     PUSH32(esp, 0); /* 0x36158156: push 0 */
  10091     ecx = ebx; /* 0x36158158: mov ecx, ebx */
  10092     MEM32(ebp + (-0x4)) = 8; /* 0x3615815A: mov dword ptr [ebp - 4], 8 */
  10093     RECOMP_ICALL(MEM32(0x3616FFAC)); /* 0x36158161: call dword ptr [0x3616ffac] */
  10094     RECOMP_FLAGS_IN();
  10095     PUSH32(esp, eax); /* 0x36158167: push eax */
  10096     RECOMP_ICALL(0x3615FD86u); /* 0x36158168: call 0x3615fd86 */ /* not lifted */
  10097     RECOMP_FLAGS_IN();
  10098     esi = eax; /* 0x3615816D: mov esi, eax */
  10099     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10100     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10101     esp = esp + 0x14u; /* 0x3615816F: add esp, 0x14 */
  10102     _flag_k = FK_ADD;
  10103     /* test esi, esi */ /* 0x36158172: test esi, esi */
  10104     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  10105     _cf = 0;
  10106     _flag_k = FK_TEST;
  10107     if (TEST_NZ(_flag_a, _flag_b)) goto L_36158184; /* 0x36158174: jne 0x36158184 */
  10108 L_36158176:
  10109     edi = POP32_VAL(esp); /* 0x36158176: pop edi */
  10110     esi = POP32_VAL(esp); /* 0x36158177: pop esi */
  10111     eax = 0x28u; /* 0x36158178: mov eax, 0x28 */
  10112     ebx = POP32_VAL(esp); /* 0x3615817D: pop ebx */
  10113     esp = ebp; /* 0x3615817E: mov esp, ebp */
  10114     ebp = POP32_VAL(esp); /* 0x36158180: pop ebp */
  10115     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36158181: ret 8 */
  10116 L_36158184:
  10117     ecx = esi; /* 0x36158184: mov ecx, esi */
  10118     RECOMP_ICALL(0x3614CE70u); /* 0x36158186: call 0x3614ce70 */ /* not lifted */
  10119     RECOMP_FLAGS_IN();
  10120     edi = eax; /* 0x3615818B: mov edi, eax */
  10121     /* test edi, edi */ /* 0x3615818D: test edi, edi */
  10122     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  10123     _cf = 0;
  10124     _flag_k = FK_TEST;
  10125     if (TEST_NZ(_flag_a, _flag_b)) goto L_3615819F; /* 0x3615818F: jne 0x3615819f */
  10126 L_36158191:
  10127     edi = POP32_VAL(esp); /* 0x36158191: pop edi */
  10128     esi = POP32_VAL(esp); /* 0x36158192: pop esi */
  10129     eax = 0x28u; /* 0x36158193: mov eax, 0x28 */
  10130     ebx = POP32_VAL(esp); /* 0x36158198: pop ebx */
  10131     esp = ebp; /* 0x36158199: mov esp, ebp */
  10132     ebp = POP32_VAL(esp); /* 0x3615819B: pop ebp */
  10133     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615819C: ret 8 */
  10134 L_3615819F:
  10135     ecx = ebx; /* 0x3615819F: mov ecx, ebx */
  10136     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x361581A1: call dword ptr [0x361700b4] */
  10137     RECOMP_FLAGS_IN();
  10138     PUSH32(esp, eax); /* 0x361581A7: push eax */
  10139     ecx = edi; /* 0x361581A8: mov ecx, edi */
  10140     RECOMP_ICALL(0x3614ECB0u); /* 0x361581AA: call 0x3614ecb0 */ /* not lifted */
  10141     RECOMP_FLAGS_IN();
  10142     edi = eax; /* 0x361581AF: mov edi, eax */
  10143     /* test edi, edi */ /* 0x361581B1: test edi, edi */
  10144     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  10145     _cf = 0;
  10146     _flag_k = FK_TEST;
  10147     if (TEST_NZ(_flag_a, _flag_b)) goto L_361581C3; /* 0x361581B3: jne 0x361581c3 */
  10148 L_361581B5:
  10149     edi = POP32_VAL(esp); /* 0x361581B5: pop edi */
  10150     esi = POP32_VAL(esp); /* 0x361581B6: pop esi */
  10151     eax = 0x28u; /* 0x361581B7: mov eax, 0x28 */
  10152     ebx = POP32_VAL(esp); /* 0x361581BC: pop ebx */
  10153     esp = ebp; /* 0x361581BD: mov esp, ebp */
  10154     ebp = POP32_VAL(esp); /* 0x361581BF: pop ebp */
  10155     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361581C0: ret 8 */
  10156 L_361581C3:
  10157     ecx = esi; /* 0x361581C3: mov ecx, esi */
  10158     RECOMP_ICALL(0x3614CEE0u); /* 0x361581C5: call 0x3614cee0 */ /* not lifted */
  10159     RECOMP_FLAGS_IN();
  10160     /* test eax, eax */ /* 0x361581CA: test eax, eax */
  10161     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10162     _cf = 0;
  10163     _flag_k = FK_TEST;
  10164     if (TEST_NZ(_flag_a, _flag_b)) goto L_361581DC; /* 0x361581CC: jne 0x361581dc */
  10165 L_361581CE:
  10166     edi = POP32_VAL(esp); /* 0x361581CE: pop edi */
  10167     esi = POP32_VAL(esp); /* 0x361581CF: pop esi */
  10168     eax = 0x28u; /* 0x361581D0: mov eax, 0x28 */
  10169     ebx = POP32_VAL(esp); /* 0x361581D5: pop ebx */
  10170     esp = ebp; /* 0x361581D6: mov esp, ebp */
  10171     ebp = POP32_VAL(esp); /* 0x361581D8: pop ebp */
  10172     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361581D9: ret 8 */
  10173 L_361581DC:
  10174     PUSH32(esp, edi); /* 0x361581DC: push edi */
  10175     ecx = eax; /* 0x361581DD: mov ecx, eax */
  10176     RECOMP_ICALL(0x3614AC00u); /* 0x361581DF: call 0x3614ac00 */ /* not lifted */
  10177     RECOMP_FLAGS_IN();
  10178     /* cmp eax, 1 */ /* 0x361581E4: cmp eax, 1 */
  10179     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10181     _flag_k = FK_CMP;
  10182     if (CMP_EQ(_flag_a, _flag_b)) goto L_361581F4; /* 0x361581E7: je 0x361581f4 */
  10183 L_361581E9:
  10184     edi = POP32_VAL(esp); /* 0x361581E9: pop edi */
  10185     esi = POP32_VAL(esp); /* 0x361581EA: pop esi */
  10186     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10187     eax = 0; /* 0x361581EB: xor eax, eax */
  10188     _cf = 0;
  10189     _flag_k = FK_TEST;
  10190     ebx = POP32_VAL(esp); /* 0x361581ED: pop ebx */
  10191     esp = ebp; /* 0x361581EE: mov esp, ebp */
  10192     ebp = POP32_VAL(esp); /* 0x361581F0: pop ebp */
  10193     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361581F1: ret 8 */
  10194 L_361581F4:
  10195     eax = MEM32(ebp + (-0x4)); /* 0x361581F4: mov eax, dword ptr [ebp - 4] */
  10196     edi = POP32_VAL(esp); /* 0x361581F7: pop edi */
  10197     esi = POP32_VAL(esp); /* 0x361581F8: pop esi */
  10198     ebx = POP32_VAL(esp); /* 0x361581F9: pop ebx */
  10199     esp = ebp; /* 0x361581FA: mov esp, ebp */
  10200     ebp = POP32_VAL(esp); /* 0x361581FC: pop ebp */
  10201     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361581FD: ret 8 */
  10202     RECOMP_REGS_OUT();
  10203 }
  10204 
  10205 void sub_36158200(void) {
  10206     int _fpu_cmp = 0;
  10207     uint32_t _cf = 0;
  10208     int _df = 1;
  10209     uint32_t _flag_k = FK_NONE;
  10210     uint32_t _flag_a = 0, _flag_b = 0;
  10211     uint32_t _itail_tgt = 0;
  10212     RECOMP_REGS_LOCALS
  10213     RECOMP_ENTER(0x36158200u);
  10214 
  10215 L_36158200:
  10216     PUSH32(esp, ebp); /* 0x36158200: push ebp */
  10217     ebp = esp; /* 0x36158201: mov ebp, esp */
  10218     PUSH32(esp, ecx); /* 0x36158203: push ecx */
  10219     eax = MEM32(ebp + 0xC); /* 0x36158204: mov eax, dword ptr [ebp + 0xc] */
  10220     /* test eax, eax */ /* 0x36158207: test eax, eax */
  10221     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10222     _cf = 0;
  10223     _flag_k = FK_TEST;
  10224     PUSH32(esp, ebx); /* 0x36158209: push ebx */
  10225     PUSH32(esp, esi); /* 0x3615820A: push esi */
  10226     PUSH32(esp, edi); /* 0x3615820B: push edi */
  10227     MEM32(ebp + (-0x4)) = 0; /* 0x3615820C: mov dword ptr [ebp - 4], 0 */
  10228     if (TEST_NZ(_flag_a, _flag_b)) goto L_36158279; /* 0x36158213: jne 0x36158279 */
  10229 L_36158215:
  10230     ebx = MEM32(ebp + 0x8); /* 0x36158215: mov ebx, dword ptr [ebp + 8] */
  10231     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36158218: mov al, byte ptr [ebp + 0xb] */
  10232     PUSH32(esp, 0); /* 0x3615821B: push 0 */
  10233     ecx = ebx; /* 0x3615821D: mov ecx, ebx */
  10234     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x3615821F: mov byte ptr [ebx], al */
  10235     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36158221: call dword ptr [0x3616f100] */
  10236     RECOMP_FLAGS_IN();
  10237     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  10238     ecx = ecx | 0xFFFFFFFFu; /* 0x36158227: or ecx, 0xffffffff */
  10239     _cf = 0;
  10240     _flag_k = FK_TEST;
  10241     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10242     eax = 0; /* 0x3615822A: xor eax, eax */
  10243     _cf = 0;
  10244     _flag_k = FK_TEST;
  10245     edi = 0x362E8F68u; /* 0x3615822C: mov edi, 0x362e8f68 */
  10246     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; } /* 0x36158231: repne scasb al, byte ptr es:[edi] */
  10247     ecx = ~ecx; /* 0x36158233: not ecx */
  10248     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10249     ecx = ecx - 1; /* 0x36158235: dec ecx */
  10250     _flag_k = FK_DEC;
  10251     esi = ecx; /* 0x36158236: mov esi, ecx */
  10252     PUSH32(esp, 1); /* 0x36158238: push 1 */
  10253     PUSH32(esp, esi); /* 0x3615823A: push esi */
  10254     ecx = ebx; /* 0x3615823B: mov ecx, ebx */
  10255     MEM32(ebp + 0x8) = esi; /* 0x3615823D: mov dword ptr [ebp + 8], esi */
  10256     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36158240: call dword ptr [0x3616f00c] */
  10257     RECOMP_FLAGS_IN();
  10258     /* test LO8(eax), LO8(eax) */ /* 0x36158246: test al, al */
  10259     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10260     _cf = 0;
  10261     _flag_k = FK_NARROW(FK_TEST, 24);
  10262     if (TEST_Z(_flag_a, _flag_b)) goto L_3615826E; /* 0x36158248: je 0x3615826e */
  10263 L_3615824A:
  10264     edi = MEM32(ebx + 0x4); /* 0x3615824A: mov edi, dword ptr [ebx + 4] */
  10265     ecx = esi; /* 0x3615824D: mov ecx, esi */
  10266     edx = ecx; /* 0x3615824F: mov edx, ecx */
  10267     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36158251: shr ecx, 2 */
  10268     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10269     ecx = ecx >> 2u; /* 0x36158251: shr ecx, 2 */
  10270     esi = 0x362E8F68u; /* 0x36158254: mov esi, 0x362e8f68 */
  10271     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36158259: 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; }
  10272     ecx = edx; /* 0x3615825B: mov ecx, edx */
  10273     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  10274     ecx = ecx & 3; /* 0x3615825D: and ecx, 3 */
  10275     _cf = 0;
  10276     _flag_k = FK_TEST;
  10277     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36158260: 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; }
  10278     ecx = MEM32(ebx + 0x4); /* 0x36158262: mov ecx, dword ptr [ebx + 4] */
  10279     eax = edx; /* 0x36158265: mov eax, edx */
  10280     MEM32(ebx + 0x8) = eax; /* 0x36158267: mov dword ptr [ebx + 8], eax */
  10281     MEM8(eax + ecx) = (uint8_t)(0); /* 0x3615826A: mov byte ptr [eax + ecx], 0 */
  10282 L_3615826E:
  10283     edi = POP32_VAL(esp); /* 0x3615826E: pop edi */
  10284     esi = POP32_VAL(esp); /* 0x3615826F: pop esi */
  10285     eax = ebx; /* 0x36158270: mov eax, ebx */
  10286     ebx = POP32_VAL(esp); /* 0x36158272: pop ebx */
  10287     esp = ebp; /* 0x36158273: mov esp, ebp */
  10288     ebp = POP32_VAL(esp); /* 0x36158275: pop ebp */
  10289     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36158276: ret 8 */
  10290 L_36158279:
  10291     /* test LO8(eax), 0x20u */ /* 0x36158279: test al, 0x20 */
  10292     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x20u) << 24;
  10293     _cf = 0;
  10294     _flag_k = FK_NARROW(FK_TEST, 24);
  10295     if (TEST_Z(_flag_a, _flag_b)) goto L_361582DF; /* 0x3615827B: je 0x361582df */
  10296 L_3615827D:
  10297     ebx = MEM32(ebp + 0x8); /* 0x3615827D: mov ebx, dword ptr [ebp + 8] */
  10298     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36158280: mov dl, byte ptr [ebp + 0xb] */
  10299     PUSH32(esp, 0); /* 0x36158283: push 0 */
  10300     ecx = ebx; /* 0x36158285: mov ecx, ebx */
  10301     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x36158287: mov byte ptr [ebx], dl */
  10302     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36158289: call dword ptr [0x3616f100] */
  10303     RECOMP_FLAGS_IN();
  10304     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  10305     ecx = ecx | 0xFFFFFFFFu; /* 0x3615828F: or ecx, 0xffffffff */
  10306     _cf = 0;
  10307     _flag_k = FK_TEST;
  10308     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10309     eax = 0; /* 0x36158292: xor eax, eax */
  10310     _cf = 0;
  10311     _flag_k = FK_TEST;
  10312     edi = 0x362E8F14u; /* 0x36158294: mov edi, 0x362e8f14 */
  10313     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; } /* 0x36158299: repne scasb al, byte ptr es:[edi] */
  10314     ecx = ~ecx; /* 0x3615829B: not ecx */
  10315     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10316     ecx = ecx - 1; /* 0x3615829D: dec ecx */
  10317     _flag_k = FK_DEC;
  10318     esi = ecx; /* 0x3615829E: mov esi, ecx */
  10319     PUSH32(esp, 1); /* 0x361582A0: push 1 */
  10320     PUSH32(esp, esi); /* 0x361582A2: push esi */
  10321     ecx = ebx; /* 0x361582A3: mov ecx, ebx */
  10322     MEM32(ebp + 0x8) = esi; /* 0x361582A5: mov dword ptr [ebp + 8], esi */
  10323     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x361582A8: call dword ptr [0x3616f00c] */
  10324     RECOMP_FLAGS_IN();
  10325     /* test LO8(eax), LO8(eax) */ /* 0x361582AE: test al, al */
  10326     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10327     _cf = 0;
  10328     _flag_k = FK_NARROW(FK_TEST, 24);
  10329     if (TEST_Z(_flag_a, _flag_b)) goto L_361582D4; /* 0x361582B0: je 0x361582d4 */
  10330 L_361582B2:
  10331     edi = MEM32(ebx + 0x4); /* 0x361582B2: mov edi, dword ptr [ebx + 4] */
  10332     ecx = esi; /* 0x361582B5: mov ecx, esi */
  10333     eax = ecx; /* 0x361582B7: mov eax, ecx */
  10334     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x361582B9: shr ecx, 2 */
  10335     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10336     ecx = ecx >> 2u; /* 0x361582B9: shr ecx, 2 */
  10337     esi = 0x362E8F14u; /* 0x361582BC: mov esi, 0x362e8f14 */
  10338     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x361582C1: 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; }
  10339     ecx = eax; /* 0x361582C3: mov ecx, eax */
  10340     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  10341     ecx = ecx & 3; /* 0x361582C5: and ecx, 3 */
  10342     _cf = 0;
  10343     _flag_k = FK_TEST;
  10344     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x361582C8: 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; }
  10345     ecx = MEM32(ebx + 0x4); /* 0x361582CA: mov ecx, dword ptr [ebx + 4] */
  10346     MEM32(ebx + 0x8) = eax; /* 0x361582CD: mov dword ptr [ebx + 8], eax */
  10347     MEM8(eax + ecx) = (uint8_t)(0); /* 0x361582D0: mov byte ptr [eax + ecx], 0 */
  10348 L_361582D4:
  10349     edi = POP32_VAL(esp); /* 0x361582D4: pop edi */
  10350     esi = POP32_VAL(esp); /* 0x361582D5: pop esi */
  10351     eax = ebx; /* 0x361582D6: mov eax, ebx */
  10352     ebx = POP32_VAL(esp); /* 0x361582D8: pop ebx */
  10353     esp = ebp; /* 0x361582D9: mov esp, ebp */
  10354     ebp = POP32_VAL(esp); /* 0x361582DB: pop ebp */
  10355     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361582DC: ret 8 */
  10356 L_361582DF:
  10357     /* test LO8(eax), 0x10u */ /* 0x361582DF: test al, 0x10 */
  10358     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24;
  10359     _cf = 0;
  10360     _flag_k = FK_NARROW(FK_TEST, 24);
  10361     if (TEST_Z(_flag_a, _flag_b)) goto L_36158345; /* 0x361582E1: je 0x36158345 */
  10362 L_361582E3:
  10363     ebx = MEM32(ebp + 0x8); /* 0x361582E3: mov ebx, dword ptr [ebp + 8] */
  10364     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x361582E6: mov dl, byte ptr [ebp + 0xb] */
  10365     PUSH32(esp, 0); /* 0x361582E9: push 0 */
  10366     ecx = ebx; /* 0x361582EB: mov ecx, ebx */
  10367     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x361582ED: mov byte ptr [ebx], dl */
  10368     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x361582EF: call dword ptr [0x3616f100] */
  10369     RECOMP_FLAGS_IN();
  10370     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  10371     ecx = ecx | 0xFFFFFFFFu; /* 0x361582F5: or ecx, 0xffffffff */
  10372     _cf = 0;
  10373     _flag_k = FK_TEST;
  10374     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10375     eax = 0; /* 0x361582F8: xor eax, eax */
  10376     _cf = 0;
  10377     _flag_k = FK_TEST;
  10378     edi = 0x362E8EB4u; /* 0x361582FA: mov edi, 0x362e8eb4 */
  10379     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; } /* 0x361582FF: repne scasb al, byte ptr es:[edi] */
  10380     ecx = ~ecx; /* 0x36158301: not ecx */
  10381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10382     ecx = ecx - 1; /* 0x36158303: dec ecx */
  10383     _flag_k = FK_DEC;
  10384     esi = ecx; /* 0x36158304: mov esi, ecx */
  10385     PUSH32(esp, 1); /* 0x36158306: push 1 */
  10386     PUSH32(esp, esi); /* 0x36158308: push esi */
  10387     ecx = ebx; /* 0x36158309: mov ecx, ebx */
  10388     MEM32(ebp + 0x8) = esi; /* 0x3615830B: mov dword ptr [ebp + 8], esi */
  10389     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3615830E: call dword ptr [0x3616f00c] */
  10390     RECOMP_FLAGS_IN();
  10391     /* test LO8(eax), LO8(eax) */ /* 0x36158314: test al, al */
  10392     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10393     _cf = 0;
  10394     _flag_k = FK_NARROW(FK_TEST, 24);
  10395     if (TEST_Z(_flag_a, _flag_b)) goto L_3615833A; /* 0x36158316: je 0x3615833a */
  10396 L_36158318:
  10397     edi = MEM32(ebx + 0x4); /* 0x36158318: mov edi, dword ptr [ebx + 4] */
  10398     ecx = esi; /* 0x3615831B: mov ecx, esi */
  10399     eax = ecx; /* 0x3615831D: mov eax, ecx */
  10400     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615831F: shr ecx, 2 */
  10401     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10402     ecx = ecx >> 2u; /* 0x3615831F: shr ecx, 2 */
  10403     esi = 0x362E8EB4u; /* 0x36158322: mov esi, 0x362e8eb4 */
  10404     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36158327: 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; }
  10405     ecx = eax; /* 0x36158329: mov ecx, eax */
  10406     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  10407     ecx = ecx & 3; /* 0x3615832B: and ecx, 3 */
  10408     _cf = 0;
  10409     _flag_k = FK_TEST;
  10410     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3615832E: 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; }
  10411     ecx = MEM32(ebx + 0x4); /* 0x36158330: mov ecx, dword ptr [ebx + 4] */
  10412     MEM32(ebx + 0x8) = eax; /* 0x36158333: mov dword ptr [ebx + 8], eax */
  10413     MEM8(eax + ecx) = (uint8_t)(0); /* 0x36158336: mov byte ptr [eax + ecx], 0 */
  10414 L_3615833A:
  10415     edi = POP32_VAL(esp); /* 0x3615833A: pop edi */
  10416     esi = POP32_VAL(esp); /* 0x3615833B: pop esi */
  10417     eax = ebx; /* 0x3615833C: mov eax, ebx */
  10418     ebx = POP32_VAL(esp); /* 0x3615833E: pop ebx */
  10419     esp = ebp; /* 0x3615833F: mov esp, ebp */
  10420     ebp = POP32_VAL(esp); /* 0x36158341: pop ebp */
  10421     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36158342: ret 8 */
  10422 L_36158345:
  10423     /* test LO8(eax), 2 */ /* 0x36158345: test al, 2 */
  10424     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
  10425     _cf = 0;
  10426     _flag_k = FK_NARROW(FK_TEST, 24);
  10427     if (TEST_Z(_flag_a, _flag_b)) goto L_361583AC; /* 0x36158347: je 0x361583ac */
  10428 L_36158349:
  10429     ebx = MEM32(ebp + 0x8); /* 0x36158349: mov ebx, dword ptr [ebp + 8] */
  10430     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3615834C: mov dl, byte ptr [ebp + 0xb] */
  10431     PUSH32(esp, 0); /* 0x3615834F: push 0 */
  10432     ecx = ebx; /* 0x36158351: mov ecx, ebx */
  10433     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x36158353: mov byte ptr [ebx], dl */
  10434     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36158355: call dword ptr [0x3616f100] */
  10435     RECOMP_FLAGS_IN();
  10436     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  10437     ecx = ecx | 0xFFFFFFFFu; /* 0x3615835B: or ecx, 0xffffffff */
  10438     _cf = 0;
  10439     _flag_k = FK_TEST;
  10440     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10441     eax = 0; /* 0x3615835E: xor eax, eax */
  10442     _cf = 0;
  10443     _flag_k = FK_TEST;
  10444     edi = 0x362E8E90u; /* 0x36158360: mov edi, 0x362e8e90 */
  10445     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; } /* 0x36158365: repne scasb al, byte ptr es:[edi] */
  10446     ecx = ~ecx; /* 0x36158367: not ecx */
  10447     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10448     ecx = ecx - 1; /* 0x36158369: dec ecx */
  10449     _flag_k = FK_DEC;
  10450     esi = ecx; /* 0x3615836A: mov esi, ecx */
  10451     PUSH32(esp, 1); /* 0x3615836C: push 1 */
  10452     PUSH32(esp, esi); /* 0x3615836E: push esi */
  10453     ecx = ebx; /* 0x3615836F: mov ecx, ebx */
  10454     MEM32(ebp + 0x8) = esi; /* 0x36158371: mov dword ptr [ebp + 8], esi */
  10455     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36158374: call dword ptr [0x3616f00c] */
  10456     RECOMP_FLAGS_IN();
  10457     /* test LO8(eax), LO8(eax) */ /* 0x3615837A: test al, al */
  10458     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10459     _cf = 0;
  10460     _flag_k = FK_NARROW(FK_TEST, 24);
  10461     if (TEST_Z(_flag_a, _flag_b)) goto L_361583A1; /* 0x3615837C: je 0x361583a1 */
  10462 L_3615837E:
  10463     edi = MEM32(ebx + 0x4); /* 0x3615837E: mov edi, dword ptr [ebx + 4] */
  10464     ecx = esi; /* 0x36158381: mov ecx, esi */
  10465     eax = ecx; /* 0x36158383: mov eax, ecx */
  10466     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36158385: shr ecx, 2 */
  10467     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10468     ecx = ecx >> 2u; /* 0x36158385: shr ecx, 2 */
  10469     esi = 0x362E8E90u; /* 0x36158388: mov esi, 0x362e8e90 */
  10470     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3615838D: 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; }
  10471     ecx = eax; /* 0x3615838F: mov ecx, eax */
  10472     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  10473     ecx = ecx & 3; /* 0x36158391: and ecx, 3 */
  10474     _cf = 0;
  10475     _flag_k = FK_TEST;
  10476     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36158394: 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; }
  10477     ecx = eax; /* 0x36158396: mov ecx, eax */
  10478     PUSH32(esp, ecx); /* 0x36158398: push ecx */
  10479     ecx = ebx; /* 0x36158399: mov ecx, ebx */
  10480     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x3615839B: call dword ptr [0x3616f044] */
  10481     RECOMP_FLAGS_IN();
  10482 L_361583A1:
  10483     edi = POP32_VAL(esp); /* 0x361583A1: pop edi */
  10484     esi = POP32_VAL(esp); /* 0x361583A2: pop esi */
  10485     eax = ebx; /* 0x361583A3: mov eax, ebx */
  10486     ebx = POP32_VAL(esp); /* 0x361583A5: pop ebx */
  10487     esp = ebp; /* 0x361583A6: mov esp, ebp */
  10488     ebp = POP32_VAL(esp); /* 0x361583A8: pop ebp */
  10489     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361583A9: ret 8 */
  10490 L_361583AC:
  10491     /* test LO8(eax), 4 */ /* 0x361583AC: test al, 4 */
  10492     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24;
  10493     _cf = 0;
  10494     _flag_k = FK_NARROW(FK_TEST, 24);
  10495     if (TEST_Z(_flag_a, _flag_b)) goto L_36158413; /* 0x361583AE: je 0x36158413 */
  10496 L_361583B0:
  10497     ebx = MEM32(ebp + 0x8); /* 0x361583B0: mov ebx, dword ptr [ebp + 8] */
  10498     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x361583B3: mov dl, byte ptr [ebp + 0xb] */
  10499     PUSH32(esp, 0); /* 0x361583B6: push 0 */
  10500     ecx = ebx; /* 0x361583B8: mov ecx, ebx */
  10501     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x361583BA: mov byte ptr [ebx], dl */
  10502     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x361583BC: call dword ptr [0x3616f100] */
  10503     RECOMP_FLAGS_IN();
  10504     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  10505     ecx = ecx | 0xFFFFFFFFu; /* 0x361583C2: or ecx, 0xffffffff */
  10506     _cf = 0;
  10507     _flag_k = FK_TEST;
  10508     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10509     eax = 0; /* 0x361583C5: xor eax, eax */
  10510     _cf = 0;
  10511     _flag_k = FK_TEST;
  10512     edi = 0x362E8E1Cu; /* 0x361583C7: mov edi, 0x362e8e1c */
  10513     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; } /* 0x361583CC: repne scasb al, byte ptr es:[edi] */
  10514     ecx = ~ecx; /* 0x361583CE: not ecx */
  10515     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10516     ecx = ecx - 1; /* 0x361583D0: dec ecx */
  10517     _flag_k = FK_DEC;
  10518     esi = ecx; /* 0x361583D1: mov esi, ecx */
  10519     PUSH32(esp, 1); /* 0x361583D3: push 1 */
  10520     PUSH32(esp, esi); /* 0x361583D5: push esi */
  10521     ecx = ebx; /* 0x361583D6: mov ecx, ebx */
  10522     MEM32(ebp + 0x8) = esi; /* 0x361583D8: mov dword ptr [ebp + 8], esi */
  10523     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x361583DB: call dword ptr [0x3616f00c] */
  10524     RECOMP_FLAGS_IN();
  10525     /* test LO8(eax), LO8(eax) */ /* 0x361583E1: test al, al */
  10526     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10527     _cf = 0;
  10528     _flag_k = FK_NARROW(FK_TEST, 24);
  10529     if (TEST_Z(_flag_a, _flag_b)) goto L_36158408; /* 0x361583E3: je 0x36158408 */
  10530 L_361583E5:
  10531     edi = MEM32(ebx + 0x4); /* 0x361583E5: mov edi, dword ptr [ebx + 4] */
  10532     ecx = esi; /* 0x361583E8: mov ecx, esi */
  10533     eax = ecx; /* 0x361583EA: mov eax, ecx */
  10534     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x361583EC: shr ecx, 2 */
  10535     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10536     ecx = ecx >> 2u; /* 0x361583EC: shr ecx, 2 */
  10537     esi = 0x362E8E1Cu; /* 0x361583EF: mov esi, 0x362e8e1c */
  10538     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x361583F4: 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; }
  10539     ecx = eax; /* 0x361583F6: mov ecx, eax */
  10540     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  10541     ecx = ecx & 3; /* 0x361583F8: and ecx, 3 */
  10542     _cf = 0;
  10543     _flag_k = FK_TEST;
  10544     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x361583FB: 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; }
  10545     ecx = eax; /* 0x361583FD: mov ecx, eax */
  10546     PUSH32(esp, ecx); /* 0x361583FF: push ecx */
  10547     ecx = ebx; /* 0x36158400: mov ecx, ebx */
  10548     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36158402: call dword ptr [0x3616f044] */
  10549     RECOMP_FLAGS_IN();
  10550 L_36158408:
  10551     edi = POP32_VAL(esp); /* 0x36158408: pop edi */
  10552     esi = POP32_VAL(esp); /* 0x36158409: pop esi */
  10553     eax = ebx; /* 0x3615840A: mov eax, ebx */
  10554     ebx = POP32_VAL(esp); /* 0x3615840C: pop ebx */
  10555     esp = ebp; /* 0x3615840D: mov esp, ebp */
  10556     ebp = POP32_VAL(esp); /* 0x3615840F: pop ebp */
  10557     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36158410: ret 8 */
  10558 L_36158413:
  10559     /* test LO8(eax), 8 */ /* 0x36158413: test al, 8 */
  10560     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24;
  10561     _cf = 0;
  10562     _flag_k = FK_NARROW(FK_TEST, 24);
  10563     if (TEST_Z(_flag_a, _flag_b)) goto L_3615847A; /* 0x36158415: je 0x3615847a */
  10564 L_36158417:
  10565     ebx = MEM32(ebp + 0x8); /* 0x36158417: mov ebx, dword ptr [ebp + 8] */
  10566     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3615841A: mov dl, byte ptr [ebp + 0xb] */
  10567     PUSH32(esp, 0); /* 0x3615841D: push 0 */
  10568     ecx = ebx; /* 0x3615841F: mov ecx, ebx */
  10569     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x36158421: mov byte ptr [ebx], dl */
  10570     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36158423: call dword ptr [0x3616f100] */
  10571     RECOMP_FLAGS_IN();
  10572     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  10573     ecx = ecx | 0xFFFFFFFFu; /* 0x36158429: or ecx, 0xffffffff */
  10574     _cf = 0;
  10575     _flag_k = FK_TEST;
  10576     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10577     eax = 0; /* 0x3615842C: xor eax, eax */
  10578     _cf = 0;
  10579     _flag_k = FK_TEST;
  10580     edi = 0x362E8DE8u; /* 0x3615842E: mov edi, 0x362e8de8 */
  10581     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; } /* 0x36158433: repne scasb al, byte ptr es:[edi] */
  10582     ecx = ~ecx; /* 0x36158435: not ecx */
  10583     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10584     ecx = ecx - 1; /* 0x36158437: dec ecx */
  10585     _flag_k = FK_DEC;
  10586     esi = ecx; /* 0x36158438: mov esi, ecx */
  10587     PUSH32(esp, 1); /* 0x3615843A: push 1 */
  10588     PUSH32(esp, esi); /* 0x3615843C: push esi */
  10589     ecx = ebx; /* 0x3615843D: mov ecx, ebx */
  10590     MEM32(ebp + 0x8) = esi; /* 0x3615843F: mov dword ptr [ebp + 8], esi */
  10591     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36158442: call dword ptr [0x3616f00c] */
  10592     RECOMP_FLAGS_IN();
  10593     /* test LO8(eax), LO8(eax) */ /* 0x36158448: test al, al */
  10594     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10595     _cf = 0;
  10596     _flag_k = FK_NARROW(FK_TEST, 24);
  10597     if (TEST_Z(_flag_a, _flag_b)) goto L_3615846F; /* 0x3615844A: je 0x3615846f */
  10598 L_3615844C:
  10599     edi = MEM32(ebx + 0x4); /* 0x3615844C: mov edi, dword ptr [ebx + 4] */
  10600     ecx = esi; /* 0x3615844F: mov ecx, esi */
  10601     eax = ecx; /* 0x36158451: mov eax, ecx */
  10602     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36158453: shr ecx, 2 */
  10603     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10604     ecx = ecx >> 2u; /* 0x36158453: shr ecx, 2 */
  10605     esi = 0x362E8DE8u; /* 0x36158456: mov esi, 0x362e8de8 */
  10606     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3615845B: 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; }
  10607     ecx = eax; /* 0x3615845D: mov ecx, eax */
  10608     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  10609     ecx = ecx & 3; /* 0x3615845F: and ecx, 3 */
  10610     _cf = 0;
  10611     _flag_k = FK_TEST;
  10612     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36158462: 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; }
  10613     ecx = eax; /* 0x36158464: mov ecx, eax */
  10614     PUSH32(esp, ecx); /* 0x36158466: push ecx */
  10615     ecx = ebx; /* 0x36158467: mov ecx, ebx */
  10616     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36158469: call dword ptr [0x3616f044] */
  10617     RECOMP_FLAGS_IN();
  10618 L_3615846F:
  10619     edi = POP32_VAL(esp); /* 0x3615846F: pop edi */
  10620     esi = POP32_VAL(esp); /* 0x36158470: pop esi */
  10621     eax = ebx; /* 0x36158471: mov eax, ebx */
  10622     ebx = POP32_VAL(esp); /* 0x36158473: pop ebx */
  10623     esp = ebp; /* 0x36158474: mov esp, ebp */
  10624     ebp = POP32_VAL(esp); /* 0x36158476: pop ebp */
  10625     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36158477: ret 8 */
  10626 L_3615847A:
  10627     esi = MEM32(ebp + 0x8); /* 0x3615847A: mov esi, dword ptr [ebp + 8] */
  10628     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3615847D: mov dl, byte ptr [ebp + 0xb] */
  10629     PUSH32(esp, 0); /* 0x36158480: push 0 */
  10630     ecx = esi; /* 0x36158482: mov ecx, esi */
  10631     MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x36158484: mov byte ptr [esi], dl */
  10632     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36158486: call dword ptr [0x3616f100] */
  10633     RECOMP_FLAGS_IN();
  10634     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  10635     ecx = ecx | 0xFFFFFFFFu; /* 0x3615848C: or ecx, 0xffffffff */
  10636     _cf = 0;
  10637     _flag_k = FK_TEST;
  10638     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10639     eax = 0; /* 0x3615848F: xor eax, eax */
  10640     _cf = 0;
  10641     _flag_k = FK_TEST;
  10642     edi = 0x362E8DC8u; /* 0x36158491: mov edi, 0x362e8dc8 */
  10643     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; } /* 0x36158496: repne scasb al, byte ptr es:[edi] */
  10644     ecx = ~ecx; /* 0x36158498: not ecx */
  10645     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10646     ecx = ecx - 1; /* 0x3615849A: dec ecx */
  10647     _flag_k = FK_DEC;
  10648     PUSH32(esp, ecx); /* 0x3615849B: push ecx */
  10649     PUSH32(esp, 0x362E8DC8u); /* 0x3615849C: push 0x362e8dc8 */
  10650     ecx = esi; /* 0x361584A1: mov ecx, esi */
  10651     RECOMP_ICALL(MEM32(0x3616F014)); /* 0x361584A3: call dword ptr [0x3616f014] */
  10652     RECOMP_FLAGS_IN();
  10653     edi = POP32_VAL(esp); /* 0x361584A9: pop edi */
  10654     eax = esi; /* 0x361584AA: mov eax, esi */
  10655     esi = POP32_VAL(esp); /* 0x361584AC: pop esi */
  10656     ebx = POP32_VAL(esp); /* 0x361584AD: pop ebx */
  10657     esp = ebp; /* 0x361584AE: mov esp, ebp */
  10658     ebp = POP32_VAL(esp); /* 0x361584B0: pop ebp */
  10659     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361584B1: ret 8 */
  10660     RECOMP_REGS_OUT();
  10661 }
  10662 
  10663 void sub_361584C0(void) {
  10664     int _fpu_cmp = 0;
  10665     uint32_t _cf = 0;
  10666     int _df = 1;
  10667     uint32_t _flag_k = FK_NONE;
  10668     uint32_t _flag_a = 0, _flag_b = 0;
  10669     uint32_t _itail_tgt = 0;
  10670     RECOMP_REGS_LOCALS
  10671     RECOMP_ENTER(0x361584C0u);
  10672 
  10673 L_361584C0:
  10674     PUSH32(esp, ebp); /* 0x361584C0: push ebp */
  10675     ebp = esp; /* 0x361584C1: mov ebp, esp */
  10676     PUSH32(esp, esi); /* 0x361584C3: push esi */
  10677     PUSH32(esp, edi); /* 0x361584C4: push edi */
  10678     edi = MEM32(ebp + 0x8); /* 0x361584C5: mov edi, dword ptr [ebp + 8] */
  10679     PUSH32(esp, 0); /* 0x361584C8: push 0 */
  10680     PUSH32(esp, 0x361B66A0u); /* 0x361584CA: push 0x361b66a0 */
  10681     PUSH32(esp, 0x361B6680u); /* 0x361584CF: push 0x361b6680 */
  10682     PUSH32(esp, 0); /* 0x361584D4: push 0 */
  10683     ecx = edi; /* 0x361584D6: mov ecx, edi */
  10684     RECOMP_ICALL(MEM32(0x3616FFAC)); /* 0x361584D8: call dword ptr [0x3616ffac] */
  10685     RECOMP_FLAGS_IN();
  10686     PUSH32(esp, eax); /* 0x361584DE: push eax */
  10687     RECOMP_ICALL(0x3615FD86u); /* 0x361584DF: call 0x3615fd86 */ /* not lifted */
  10688     RECOMP_FLAGS_IN();
  10689     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10690     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10691     esp = esp + 0x14u; /* 0x361584E4: add esp, 0x14 */
  10692     _flag_k = FK_ADD;
  10693     ecx = edi; /* 0x361584E7: mov ecx, edi */
  10694     esi = eax; /* 0x361584E9: mov esi, eax */
  10695     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x361584EB: call dword ptr [0x3616ffb0] */
  10696     RECOMP_FLAGS_IN();
  10697     PUSH32(esp, eax); /* 0x361584F1: push eax */
  10698     ecx = esi; /* 0x361584F2: mov ecx, esi */
  10699     RECOMP_ICALL(MEM32(0x3616FD98)); /* 0x361584F4: call dword ptr [0x3616fd98] */
  10700     RECOMP_FLAGS_IN();
  10701     PUSH32(esp, eax); /* 0x361584FA: push eax */
  10702     ecx = esi; /* 0x361584FB: mov ecx, esi */
  10703     RECOMP_ICALL(0x3614CE70u); /* 0x361584FD: call 0x3614ce70 */ /* not lifted */
  10704     RECOMP_FLAGS_IN();
  10705     ecx = eax; /* 0x36158502: mov ecx, eax */
  10706     RECOMP_ICALL(0x3614ECB0u); /* 0x36158504: call 0x3614ecb0 */ /* not lifted */
  10707     RECOMP_FLAGS_IN();
  10708     edi = POP32_VAL(esp); /* 0x36158509: pop edi */
  10709     esi = POP32_VAL(esp); /* 0x3615850A: pop esi */
  10710     ebp = POP32_VAL(esp); /* 0x3615850B: pop ebp */
  10711     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615850C: ret  */
  10712     RECOMP_REGS_OUT();
  10713 }
  10714 
  10715 void sub_36158510(void) {
  10716     int _fpu_cmp = 0;
  10717     uint32_t _cf = 0;
  10718     int _df = 1;
  10719     uint32_t _flag_k = FK_NONE;
  10720     uint32_t _flag_a = 0, _flag_b = 0;
  10721     uint32_t _itail_tgt = 0;
  10722     RECOMP_REGS_LOCALS
  10723     RECOMP_ENTER(0x36158510u);
  10724 
  10725 L_36158510:
  10726     RECOMP_ICALL(0x36158520u); /* 0x36158510: call 0x36158520 */ /* not lifted */
  10727     RECOMP_FLAGS_IN();
  10728     goto L_36158530; /* 0x36158515: jmp 0x36158530 */
  10729 L_36158530:
  10730     PUSH32(esp, 0x36158540u); /* 0x36158530: push 0x36158540 */
  10731     RECOMP_ICALL(0x3615FEB2u); /* 0x36158535: call 0x3615feb2 */ /* not lifted */
  10732     RECOMP_FLAGS_IN();
  10733     ecx = POP32_VAL(esp); /* 0x3615853A: pop ecx */
  10734     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615853B: ret  */
  10735     RECOMP_REGS_OUT();
  10736 }
  10737 
  10738 void sub_36158520(void) {
  10739     int _fpu_cmp = 0;
  10740     uint32_t _cf = 0;
  10741     int _df = 1;
  10742     uint32_t _flag_k = FK_NONE;
  10743     uint32_t _flag_a = 0, _flag_b = 0;
  10744     uint32_t _itail_tgt = 0;
  10745     RECOMP_REGS_LOCALS
  10746     RECOMP_ENTER(0x36158520u);
  10747 
  10748 L_36158520:
  10749     ecx = 0x3630DB91u; /* 0x36158520: mov ecx, 0x3630db91 */
  10750 L_36158525:
  10751     { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; }
  10752     { RECOMP_REGS_OUT(); return; } /* end of function */
  10753   _ljump:
  10754     switch (_itail_tgt) {
  10755       case 0x36158520u: goto L_36158520;
  10756       case 0x36158525u: goto L_36158525;
  10757       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  10758     }
  10759     RECOMP_REGS_OUT();
  10760 }
  10761 
  10762 void sub_36158530(void) {
  10763     int _fpu_cmp = 0;
  10764     uint32_t _cf = 0;
  10765     int _df = 1;
  10766     uint32_t _flag_k = FK_NONE;
  10767     uint32_t _flag_a = 0, _flag_b = 0;
  10768     uint32_t _itail_tgt = 0;
  10769     RECOMP_REGS_LOCALS
  10770     RECOMP_ENTER(0x36158530u);
  10771 
  10772 L_36158530:
  10773     PUSH32(esp, 0x36158540u); /* 0x36158530: push 0x36158540 */
  10774     RECOMP_ICALL(0x3615FEB2u); /* 0x36158535: call 0x3615feb2 */ /* not lifted */
  10775     RECOMP_FLAGS_IN();
  10776     ecx = POP32_VAL(esp); /* 0x3615853A: pop ecx */
  10777     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615853B: ret  */
  10778     RECOMP_REGS_OUT();
  10779 }
  10780 
  10781 void sub_36158540(void) {
  10782     int _fpu_cmp = 0;
  10783     uint32_t _cf = 0;
  10784     int _df = 1;
  10785     uint32_t _flag_k = FK_NONE;
  10786     uint32_t _flag_a = 0, _flag_b = 0;
  10787     uint32_t _itail_tgt = 0;
  10788     RECOMP_REGS_LOCALS
  10789     RECOMP_ENTER(0x36158540u);
  10790 
  10791 L_36158540:
  10792     ecx = 0x3630DB91u; /* 0x36158540: mov ecx, 0x3630db91 */
  10793 L_36158545:
  10794     { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; }
  10795     { RECOMP_REGS_OUT(); return; } /* end of function */
  10796   _ljump:
  10797     switch (_itail_tgt) {
  10798       case 0x36158540u: goto L_36158540;
  10799       case 0x36158545u: goto L_36158545;
  10800       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  10801     }
  10802     RECOMP_REGS_OUT();
  10803 }