aorecomp

Anarchy Online classic in the browser

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


client/game/ppr.dll/lifted-0002.c (947942B)


      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_400081B2(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(0x400081B2u);
     17 
     18 L_400081B2:
     19     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x400081B2: mov byte ptr [eax + 0x18], bl */
     20     edx = MEM32(ebp + (-0x4)); /* 0x400081B5: mov edx, dword ptr [ebp - 4] */
     21     PUSH32(esp, edx); /* 0x400081B8: push edx */
     22     RECOMP_ICALL(0x400146F2u); /* 0x400081B9: call 0x400146f2 */ /* not lifted */
     23     RECOMP_FLAGS_IN();
     24     eax = MEM32(edi + 0x10); /* 0x400081BE: mov eax, dword ptr [edi + 0x10] */
     25     ecx = MEM32(ebp + 0xC); /* 0x400081C1: mov ecx, dword ptr [ebp + 0xc] */
     26     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     27     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     28     esp = esp + 4; /* 0x400081C4: add esp, 4 */
     29     _flag_k = FK_ADD;
     30     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
     31     eax = eax - 1; /* 0x400081C7: dec eax */
     32     _flag_k = FK_DEC;
     33     MEM32(edi + 0x10) = eax; /* 0x400081C8: mov dword ptr [edi + 0x10], eax */
     34     eax = MEM32(ebp + 0x8); /* 0x400081CB: mov eax, dword ptr [ebp + 8] */
     35     edi = POP32_VAL(esp); /* 0x400081CE: pop edi */
     36     esi = POP32_VAL(esp); /* 0x400081CF: pop esi */
     37     MEM32(eax) = ecx; /* 0x400081D0: mov dword ptr [eax], ecx */
     38     ebx = POP32_VAL(esp); /* 0x400081D2: pop ebx */
     39     esp = ebp; /* 0x400081D3: mov esp, ebp */
     40     ebp = POP32_VAL(esp); /* 0x400081D5: pop ebp */
     41     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x400081D6: ret 8 */
     42     RECOMP_REGS_OUT();
     43 }
     44 
     45 void sub_400081E0(void) {
     46     int _fpu_cmp = 0;
     47     uint32_t _cf = 0;
     48     int _df = 1;
     49     uint32_t _flag_k = FK_NONE;
     50     uint32_t _flag_a = 0, _flag_b = 0;
     51     uint32_t _itail_tgt = 0;
     52     RECOMP_REGS_LOCALS
     53     RECOMP_ENTER(0x400081E0u);
     54 
     55 L_400081E0:
     56     PUSH32(esp, ebp); /* 0x400081E0: push ebp */
     57     ebp = esp; /* 0x400081E1: mov ebp, esp */
     58     PUSH32(esp, ebx); /* 0x400081E3: push ebx */
     59     ebx = MEM32(ebp + 0x10); /* 0x400081E4: mov ebx, dword ptr [ebp + 0x10] */
     60     PUSH32(esp, esi); /* 0x400081E7: push esi */
     61     esi = ecx; /* 0x400081E8: mov esi, ecx */
     62     eax = MEM32(esi + 0x10); /* 0x400081EA: mov eax, dword ptr [esi + 0x10] */
     63     /* test eax, eax */ /* 0x400081ED: test eax, eax */
     64     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     65     _cf = 0;
     66     _flag_k = FK_TEST;
     67     ecx = MEM32(ebp + 0xC); /* 0x400081EF: mov ecx, dword ptr [ebp + 0xc] */
     68     PUSH32(esp, edi); /* 0x400081F2: push edi */
     69     if (TEST_Z(_flag_a, _flag_b)) goto L_40008255; /* 0x400081F3: je 0x40008255 */
     70 L_400081F5:
     71     eax = MEM32(esi + 0x4); /* 0x400081F5: mov eax, dword ptr [esi + 4] */
     72     /* cmp ecx, MEM32(eax) */ /* 0x400081F8: cmp ecx, dword ptr [eax] */
     73     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
     74     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     75     _flag_k = FK_CMP;
     76     if (CMP_NE(_flag_a, _flag_b)) goto L_40008255; /* 0x400081FA: jne 0x40008255 */
     77 L_400081FC:
     78     /* cmp ebx, eax */ /* 0x400081FC: cmp ebx, eax */
     79     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
     80     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     81     _flag_k = FK_CMP;
     82     if (CMP_NE(_flag_a, _flag_b)) goto L_40008255; /* 0x400081FE: jne 0x40008255 */
     83 L_40008200:
     84     ebx = MEM32(eax + 0x4); /* 0x40008200: mov ebx, dword ptr [eax + 4] */
     85     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x40008203: cmp ebx, dword ptr [esi + 8] */
     86     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
     87     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     88     _flag_k = FK_CMP;
     89     edi = ebx; /* 0x40008206: mov edi, ebx */
     90     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008229; /* 0x40008208: je 0x40008229 */
     91 L_4000820A:
     92     eax = MEM32(edi + 0x8); /* 0x4000820A: mov eax, dword ptr [edi + 8] */
     93     PUSH32(esp, eax); /* 0x4000820D: push eax */
     94     ecx = esi; /* 0x4000820E: mov ecx, esi */
     95     RECOMP_ICALL(0x40009400u); /* 0x40008210: call 0x40009400 */ /* not lifted */
     96     RECOMP_FLAGS_IN();
     97     edi = MEM32(edi); /* 0x40008215: mov edi, dword ptr [edi] */
     98     PUSH32(esp, ebx); /* 0x40008217: push ebx */
     99     RECOMP_ICALL(0x400146F2u); /* 0x40008218: call 0x400146f2 */ /* not lifted */
    100     RECOMP_FLAGS_IN();
    101     eax = MEM32(esi + 0x8); /* 0x4000821D: mov eax, dword ptr [esi + 8] */
    102     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    103     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    104     esp = esp + 4; /* 0x40008220: add esp, 4 */
    105     _flag_k = FK_ADD;
    106     /* cmp edi, eax */ /* 0x40008223: cmp edi, eax */
    107     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    108     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    109     _flag_k = FK_CMP;
    110     ebx = edi; /* 0x40008225: mov ebx, edi */
    111     RECOMP_BACKEDGE();
    112     if (CMP_NE(_flag_a, _flag_b)) goto L_4000820A; /* 0x40008227: jne 0x4000820a */
    113 L_40008229:
    114     ecx = MEM32(esi + 0x4); /* 0x40008229: mov ecx, dword ptr [esi + 4] */
    115     edx = MEM32(esi + 0x8); /* 0x4000822C: mov edx, dword ptr [esi + 8] */
    116     MEM32(ecx + 0x4) = edx; /* 0x4000822F: mov dword ptr [ecx + 4], edx */
    117     eax = MEM32(esi + 0x4); /* 0x40008232: mov eax, dword ptr [esi + 4] */
    118     MEM32(esi + 0x10) = 0; /* 0x40008235: mov dword ptr [esi + 0x10], 0 */
    119     MEM32(eax) = eax; /* 0x4000823C: mov dword ptr [eax], eax */
    120     eax = MEM32(esi + 0x4); /* 0x4000823E: mov eax, dword ptr [esi + 4] */
    121     MEM32(eax + 0x8) = eax; /* 0x40008241: mov dword ptr [eax + 8], eax */
    122     eax = MEM32(esi + 0x4); /* 0x40008244: mov eax, dword ptr [esi + 4] */
    123     ecx = MEM32(eax); /* 0x40008247: mov ecx, dword ptr [eax] */
    124     eax = MEM32(ebp + 0x8); /* 0x40008249: mov eax, dword ptr [ebp + 8] */
    125     edi = POP32_VAL(esp); /* 0x4000824C: pop edi */
    126     esi = POP32_VAL(esp); /* 0x4000824D: pop esi */
    127     MEM32(eax) = ecx; /* 0x4000824E: mov dword ptr [eax], ecx */
    128     ebx = POP32_VAL(esp); /* 0x40008250: pop ebx */
    129     ebp = POP32_VAL(esp); /* 0x40008251: pop ebp */
    130     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008252: ret 0xc */
    131 L_40008255:
    132     /* cmp ecx, ebx */ /* 0x40008255: cmp ecx, ebx */
    133     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
    134     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    135     _flag_k = FK_CMP;
    136     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008276; /* 0x40008257: je 0x40008276 */
    137 L_40008259:
    138     edi = ecx; /* 0x40008259: mov edi, ecx */
    139     ecx = ebp + 0xC; /* 0x4000825B: lea ecx, [ebp + 0xc] */
    140     RECOMP_ICALL(0x400082F0u); /* 0x4000825E: call 0x400082f0 */ /* not lifted */
    141     RECOMP_FLAGS_IN();
    142     PUSH32(esp, edi); /* 0x40008263: push edi */
    143     ecx = ebp + 0x10; /* 0x40008264: lea ecx, [ebp + 0x10] */
    144     PUSH32(esp, ecx); /* 0x40008267: push ecx */
    145     ecx = esi; /* 0x40008268: mov ecx, esi */
    146     RECOMP_ICALL(0x40007E20u); /* 0x4000826A: call 0x40007e20 */ /* not lifted */
    147     RECOMP_FLAGS_IN();
    148     ecx = MEM32(ebp + 0xC); /* 0x4000826F: mov ecx, dword ptr [ebp + 0xc] */
    149     /* cmp ecx, ebx */ /* 0x40008272: cmp ecx, ebx */
    150     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
    151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    152     _flag_k = FK_CMP;
    153     RECOMP_BACKEDGE();
    154     if (CMP_NE(_flag_a, _flag_b)) goto L_40008259; /* 0x40008274: jne 0x40008259 */
    155 L_40008276:
    156     eax = MEM32(ebp + 0x8); /* 0x40008276: mov eax, dword ptr [ebp + 8] */
    157     edi = POP32_VAL(esp); /* 0x40008279: pop edi */
    158     esi = POP32_VAL(esp); /* 0x4000827A: pop esi */
    159     MEM32(eax) = ecx; /* 0x4000827B: mov dword ptr [eax], ecx */
    160     ebx = POP32_VAL(esp); /* 0x4000827D: pop ebx */
    161     ebp = POP32_VAL(esp); /* 0x4000827E: pop ebp */
    162     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4000827F: ret 0xc */
    163     RECOMP_REGS_OUT();
    164 }
    165 
    166 void sub_40008290(void) {
    167     int _fpu_cmp = 0;
    168     uint32_t _cf = 0;
    169     int _df = 1;
    170     uint32_t _flag_k = FK_NONE;
    171     uint32_t _flag_a = 0, _flag_b = 0;
    172     uint32_t _itail_tgt = 0;
    173     RECOMP_REGS_LOCALS
    174     RECOMP_ENTER(0x40008290u);
    175 
    176 L_40008290:
    177     PUSH32(esp, ebx); /* 0x40008290: push ebx */
    178     PUSH32(esp, esi); /* 0x40008291: push esi */
    179     PUSH32(esp, edi); /* 0x40008292: push edi */
    180     PUSH32(esp, 0x1Cu); /* 0x40008293: push 0x1c */
    181     esi = ecx; /* 0x40008295: mov esi, ecx */
    182     RECOMP_ICALL(0x40014704u); /* 0x40008297: call 0x40014704 */ /* not lifted */
    183     RECOMP_FLAGS_IN();
    184     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    185     ebx = 0; /* 0x4000829C: xor ebx, ebx */
    186     _cf = 0;
    187     _flag_k = FK_TEST;
    188     MEM32(eax + 0x4) = ebx; /* 0x4000829E: mov dword ptr [eax + 4], ebx */
    189     MEM8(eax + 0x19) = (uint8_t)(LO8(ebx)); /* 0x400082A1: mov byte ptr [eax + 0x19], bl */
    190     SET_LO8(ecx, 1); /* 0x400082A4: mov cl, 1 */
    191     MEM8(eax + 0x18) = (uint8_t)(LO8(ecx)); /* 0x400082A6: mov byte ptr [eax + 0x18], cl */
    192     MEM32(esi + 0x8) = eax; /* 0x400082A9: mov dword ptr [esi + 8], eax */
    193     MEM8(eax + 0x19) = (uint8_t)(LO8(ecx)); /* 0x400082AC: mov byte ptr [eax + 0x19], cl */
    194     eax = MEM32(esi + 0x8); /* 0x400082AF: mov eax, dword ptr [esi + 8] */
    195     MEM32(eax) = ebx; /* 0x400082B2: mov dword ptr [eax], ebx */
    196     ecx = MEM32(esi + 0x8); /* 0x400082B4: mov ecx, dword ptr [esi + 8] */
    197     MEM32(ecx + 0x8) = ebx; /* 0x400082B7: mov dword ptr [ecx + 8], ebx */
    198     edi = MEM32(esi + 0x8); /* 0x400082BA: mov edi, dword ptr [esi + 8] */
    199     PUSH32(esp, 0x1Cu); /* 0x400082BD: push 0x1c */
    200     RECOMP_ICALL(0x40014704u); /* 0x400082BF: call 0x40014704 */ /* not lifted */
    201     RECOMP_FLAGS_IN();
    202     MEM32(eax + 0x4) = edi; /* 0x400082C4: mov dword ptr [eax + 4], edi */
    203     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x400082C7: mov byte ptr [eax + 0x18], bl */
    204     MEM8(eax + 0x19) = (uint8_t)(LO8(ebx)); /* 0x400082CA: mov byte ptr [eax + 0x19], bl */
    205     MEM32(esi + 0x4) = eax; /* 0x400082CD: mov dword ptr [esi + 4], eax */
    206     MEM32(eax) = eax; /* 0x400082D0: mov dword ptr [eax], eax */
    207     eax = MEM32(esi + 0x4); /* 0x400082D2: mov eax, dword ptr [esi + 4] */
    208     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    209     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    210     esp = esp + 8; /* 0x400082D5: add esp, 8 */
    211     _flag_k = FK_ADD;
    212     edi = POP32_VAL(esp); /* 0x400082D8: pop edi */
    213     MEM32(eax + 0x8) = eax; /* 0x400082D9: mov dword ptr [eax + 8], eax */
    214     MEM32(esi + 0x10) = ebx; /* 0x400082DC: mov dword ptr [esi + 0x10], ebx */
    215     esi = POP32_VAL(esp); /* 0x400082DF: pop esi */
    216     ebx = POP32_VAL(esp); /* 0x400082E0: pop ebx */
    217     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400082E1: ret  */
    218     RECOMP_REGS_OUT();
    219 }
    220 
    221 void sub_400082F0(void) {
    222     int _fpu_cmp = 0;
    223     uint32_t _cf = 0;
    224     int _df = 1;
    225     uint32_t _flag_k = FK_NONE;
    226     uint32_t _flag_a = 0, _flag_b = 0;
    227     uint32_t _itail_tgt = 0;
    228     RECOMP_REGS_LOCALS
    229     RECOMP_ENTER(0x400082F0u);
    230 
    231 L_400082F0:
    232     eax = MEM32(ecx); /* 0x400082F0: mov eax, dword ptr [ecx] */
    233     edx = MEM32(eax + 0x8); /* 0x400082F2: mov edx, dword ptr [eax + 8] */
    234     PUSH32(esp, ebx); /* 0x400082F5: push ebx */
    235     SET_LO8(ebx, MEM8(edx + 0x19)); /* 0x400082F6: mov bl, byte ptr [edx + 0x19] */
    236     /* test LO8(ebx), LO8(ebx) */ /* 0x400082F9: test bl, bl */
    237     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    238     _cf = 0;
    239     _flag_k = FK_NARROW(FK_TEST, 24);
    240     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008315; /* 0x400082FB: jne 0x40008315 */
    241 L_400082FD:
    242     eax = MEM32(edx); /* 0x400082FD: mov eax, dword ptr [edx] */
    243     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x400082FF: mov bl, byte ptr [eax + 0x19] */
    244     /* test LO8(ebx), LO8(ebx) */ /* 0x40008302: test bl, bl */
    245     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    246     _cf = 0;
    247     _flag_k = FK_NARROW(FK_TEST, 24);
    248     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008311; /* 0x40008304: jne 0x40008311 */
    249 L_40008306:
    250     edx = eax; /* 0x40008306: mov edx, eax */
    251     eax = MEM32(edx); /* 0x40008308: mov eax, dword ptr [edx] */
    252     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x4000830A: mov bl, byte ptr [eax + 0x19] */
    253     /* test LO8(ebx), LO8(ebx) */ /* 0x4000830D: test bl, bl */
    254     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    255     _cf = 0;
    256     _flag_k = FK_NARROW(FK_TEST, 24);
    257     RECOMP_BACKEDGE();
    258     if (TEST_Z(_flag_a, _flag_b)) goto L_40008306; /* 0x4000830F: je 0x40008306 */
    259 L_40008311:
    260     MEM32(ecx) = edx; /* 0x40008311: mov dword ptr [ecx], edx */
    261     ebx = POP32_VAL(esp); /* 0x40008313: pop ebx */
    262     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40008314: ret  */
    263 L_40008315:
    264     eax = MEM32(eax + 0x4); /* 0x40008315: mov eax, dword ptr [eax + 4] */
    265     edx = MEM32(ecx); /* 0x40008318: mov edx, dword ptr [ecx] */
    266     /* cmp edx, MEM32(eax + 0x8) */ /* 0x4000831A: cmp edx, dword ptr [eax + 8] */
    267     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    269     _flag_k = FK_CMP;
    270     if (CMP_NE(_flag_a, _flag_b)) goto L_4000832B; /* 0x4000831D: jne 0x4000832b */
    271 L_4000831F:
    272     MEM32(ecx) = eax; /* 0x4000831F: mov dword ptr [ecx], eax */
    273     eax = MEM32(eax + 0x4); /* 0x40008321: mov eax, dword ptr [eax + 4] */
    274     edx = MEM32(ecx); /* 0x40008324: mov edx, dword ptr [ecx] */
    275     /* cmp edx, MEM32(eax + 0x8) */ /* 0x40008326: cmp edx, dword ptr [eax + 8] */
    276     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    278     _flag_k = FK_CMP;
    279     RECOMP_BACKEDGE();
    280     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000831F; /* 0x40008329: je 0x4000831f */
    281 L_4000832B:
    282     edx = MEM32(ecx); /* 0x4000832B: mov edx, dword ptr [ecx] */
    283     /* cmp MEM32(edx + 0x8), eax */ /* 0x4000832D: cmp dword ptr [edx + 8], eax */
    284     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
    285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    286     _flag_k = FK_CMP;
    287     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008334; /* 0x40008330: je 0x40008334 */
    288 L_40008332:
    289     MEM32(ecx) = eax; /* 0x40008332: mov dword ptr [ecx], eax */
    290 L_40008334:
    291     ebx = POP32_VAL(esp); /* 0x40008334: pop ebx */
    292     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40008335: ret  */
    293     RECOMP_REGS_OUT();
    294 }
    295 
    296 void sub_40008340(void) {
    297     int _fpu_cmp = 0;
    298     uint32_t _cf = 0;
    299     int _df = 1;
    300     uint32_t _flag_k = FK_NONE;
    301     uint32_t _flag_a = 0, _flag_b = 0;
    302     uint32_t _itail_tgt = 0;
    303     RECOMP_REGS_LOCALS
    304     RECOMP_ENTER(0x40008340u);
    305 
    306 L_40008340:
    307     PUSH32(esp, ebp); /* 0x40008340: push ebp */
    308     ebp = esp; /* 0x40008341: mov ebp, esp */
    309     PUSH32(esp, ebx); /* 0x40008343: push ebx */
    310     ebx = MEM32(ebp + 0x10); /* 0x40008344: mov ebx, dword ptr [ebp + 0x10] */
    311     PUSH32(esp, esi); /* 0x40008347: push esi */
    312     esi = ecx; /* 0x40008348: mov esi, ecx */
    313     eax = MEM32(esi + 0x10); /* 0x4000834A: mov eax, dword ptr [esi + 0x10] */
    314     /* test eax, eax */ /* 0x4000834D: test eax, eax */
    315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    316     _cf = 0;
    317     _flag_k = FK_TEST;
    318     ecx = MEM32(ebp + 0xC); /* 0x4000834F: mov ecx, dword ptr [ebp + 0xc] */
    319     PUSH32(esp, edi); /* 0x40008352: push edi */
    320     if (TEST_Z(_flag_a, _flag_b)) goto L_400083B5; /* 0x40008353: je 0x400083b5 */
    321 L_40008355:
    322     eax = MEM32(esi + 0x4); /* 0x40008355: mov eax, dword ptr [esi + 4] */
    323     /* cmp ecx, MEM32(eax) */ /* 0x40008358: cmp ecx, dword ptr [eax] */
    324     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
    325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    326     _flag_k = FK_CMP;
    327     if (CMP_NE(_flag_a, _flag_b)) goto L_400083B5; /* 0x4000835A: jne 0x400083b5 */
    328 L_4000835C:
    329     /* cmp ebx, eax */ /* 0x4000835C: cmp ebx, eax */
    330     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
    331     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    332     _flag_k = FK_CMP;
    333     if (CMP_NE(_flag_a, _flag_b)) goto L_400083B5; /* 0x4000835E: jne 0x400083b5 */
    334 L_40008360:
    335     ebx = MEM32(eax + 0x4); /* 0x40008360: mov ebx, dword ptr [eax + 4] */
    336     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x40008363: cmp ebx, dword ptr [esi + 8] */
    337     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    339     _flag_k = FK_CMP;
    340     edi = ebx; /* 0x40008366: mov edi, ebx */
    341     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008389; /* 0x40008368: je 0x40008389 */
    342 L_4000836A:
    343     eax = MEM32(edi + 0x8); /* 0x4000836A: mov eax, dword ptr [edi + 8] */
    344     PUSH32(esp, eax); /* 0x4000836D: push eax */
    345     ecx = esi; /* 0x4000836E: mov ecx, esi */
    346     RECOMP_ICALL(0x40009A50u); /* 0x40008370: call 0x40009a50 */ /* not lifted */
    347     RECOMP_FLAGS_IN();
    348     edi = MEM32(edi); /* 0x40008375: mov edi, dword ptr [edi] */
    349     PUSH32(esp, ebx); /* 0x40008377: push ebx */
    350     RECOMP_ICALL(0x400146F2u); /* 0x40008378: call 0x400146f2 */ /* not lifted */
    351     RECOMP_FLAGS_IN();
    352     eax = MEM32(esi + 0x8); /* 0x4000837D: mov eax, dword ptr [esi + 8] */
    353     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    354     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    355     esp = esp + 4; /* 0x40008380: add esp, 4 */
    356     _flag_k = FK_ADD;
    357     /* cmp edi, eax */ /* 0x40008383: cmp edi, eax */
    358     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    359     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    360     _flag_k = FK_CMP;
    361     ebx = edi; /* 0x40008385: mov ebx, edi */
    362     RECOMP_BACKEDGE();
    363     if (CMP_NE(_flag_a, _flag_b)) goto L_4000836A; /* 0x40008387: jne 0x4000836a */
    364 L_40008389:
    365     ecx = MEM32(esi + 0x4); /* 0x40008389: mov ecx, dword ptr [esi + 4] */
    366     edx = MEM32(esi + 0x8); /* 0x4000838C: mov edx, dword ptr [esi + 8] */
    367     MEM32(ecx + 0x4) = edx; /* 0x4000838F: mov dword ptr [ecx + 4], edx */
    368     eax = MEM32(esi + 0x4); /* 0x40008392: mov eax, dword ptr [esi + 4] */
    369     MEM32(esi + 0x10) = 0; /* 0x40008395: mov dword ptr [esi + 0x10], 0 */
    370     MEM32(eax) = eax; /* 0x4000839C: mov dword ptr [eax], eax */
    371     eax = MEM32(esi + 0x4); /* 0x4000839E: mov eax, dword ptr [esi + 4] */
    372     MEM32(eax + 0x8) = eax; /* 0x400083A1: mov dword ptr [eax + 8], eax */
    373     eax = MEM32(esi + 0x4); /* 0x400083A4: mov eax, dword ptr [esi + 4] */
    374     ecx = MEM32(eax); /* 0x400083A7: mov ecx, dword ptr [eax] */
    375     eax = MEM32(ebp + 0x8); /* 0x400083A9: mov eax, dword ptr [ebp + 8] */
    376     edi = POP32_VAL(esp); /* 0x400083AC: pop edi */
    377     esi = POP32_VAL(esp); /* 0x400083AD: pop esi */
    378     MEM32(eax) = ecx; /* 0x400083AE: mov dword ptr [eax], ecx */
    379     ebx = POP32_VAL(esp); /* 0x400083B0: pop ebx */
    380     ebp = POP32_VAL(esp); /* 0x400083B1: pop ebp */
    381     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x400083B2: ret 0xc */
    382 L_400083B5:
    383     /* cmp ecx, ebx */ /* 0x400083B5: cmp ecx, ebx */
    384     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
    385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    386     _flag_k = FK_CMP;
    387     if (CMP_EQ(_flag_a, _flag_b)) goto L_400083D6; /* 0x400083B7: je 0x400083d6 */
    388 L_400083B9:
    389     edi = ecx; /* 0x400083B9: mov edi, ecx */
    390     ecx = ebp + 0xC; /* 0x400083BB: lea ecx, [ebp + 0xc] */
    391     RECOMP_ICALL(0x40008480u); /* 0x400083BE: call 0x40008480 */ /* not lifted */
    392     RECOMP_FLAGS_IN();
    393     PUSH32(esp, edi); /* 0x400083C3: push edi */
    394     ecx = ebp + 0x10; /* 0x400083C4: lea ecx, [ebp + 0x10] */
    395     PUSH32(esp, ecx); /* 0x400083C7: push ecx */
    396     ecx = esi; /* 0x400083C8: mov ecx, esi */
    397     RECOMP_ICALL(0x40009690u); /* 0x400083CA: call 0x40009690 */ /* not lifted */
    398     RECOMP_FLAGS_IN();
    399     ecx = MEM32(ebp + 0xC); /* 0x400083CF: mov ecx, dword ptr [ebp + 0xc] */
    400     /* cmp ecx, ebx */ /* 0x400083D2: cmp ecx, ebx */
    401     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
    402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    403     _flag_k = FK_CMP;
    404     RECOMP_BACKEDGE();
    405     if (CMP_NE(_flag_a, _flag_b)) goto L_400083B9; /* 0x400083D4: jne 0x400083b9 */
    406 L_400083D6:
    407     eax = MEM32(ebp + 0x8); /* 0x400083D6: mov eax, dword ptr [ebp + 8] */
    408     edi = POP32_VAL(esp); /* 0x400083D9: pop edi */
    409     esi = POP32_VAL(esp); /* 0x400083DA: pop esi */
    410     MEM32(eax) = ecx; /* 0x400083DB: mov dword ptr [eax], ecx */
    411     ebx = POP32_VAL(esp); /* 0x400083DD: pop ebx */
    412     ebp = POP32_VAL(esp); /* 0x400083DE: pop ebp */
    413     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x400083DF: ret 0xc */
    414     RECOMP_REGS_OUT();
    415 }
    416 
    417 void sub_400083F0(void) {
    418     int _fpu_cmp = 0;
    419     uint32_t _cf = 0;
    420     int _df = 1;
    421     uint32_t _flag_k = FK_NONE;
    422     uint32_t _flag_a = 0, _flag_b = 0;
    423     uint32_t _itail_tgt = 0;
    424     RECOMP_REGS_LOCALS
    425     RECOMP_ENTER(0x400083F0u);
    426 
    427 L_400083F0:
    428     goto L_40008400; /* 0x400083F0: jmp 0x40008400 */
    429 L_40008400:
    430     MEM32(0x4001D060) = 0x4001C864u; /* 0x40008400: mov dword ptr [0x4001d060], 0x4001c864 */
    431     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000840A: ret  */
    432     RECOMP_REGS_OUT();
    433 }
    434 
    435 void sub_40008400(void) {
    436     int _fpu_cmp = 0;
    437     uint32_t _cf = 0;
    438     int _df = 1;
    439     uint32_t _flag_k = FK_NONE;
    440     uint32_t _flag_a = 0, _flag_b = 0;
    441     uint32_t _itail_tgt = 0;
    442     RECOMP_REGS_LOCALS
    443     RECOMP_ENTER(0x40008400u);
    444 
    445 L_40008400:
    446     MEM32(0x4001D060) = 0x4001C864u; /* 0x40008400: mov dword ptr [0x4001d060], 0x4001c864 */
    447     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000840A: ret  */
    448     RECOMP_REGS_OUT();
    449 }
    450 
    451 void sub_40008410(void) {
    452     int _fpu_cmp = 0;
    453     uint32_t _cf = 0;
    454     int _df = 1;
    455     uint32_t _flag_k = FK_NONE;
    456     uint32_t _flag_a = 0, _flag_b = 0;
    457     uint32_t _itail_tgt = 0;
    458     RECOMP_REGS_LOCALS
    459     RECOMP_ENTER(0x40008410u);
    460 
    461 L_40008410:
    462     PUSH32(esp, ebp); /* 0x40008410: push ebp */
    463     ebp = esp; /* 0x40008411: mov ebp, esp */
    464     PUSH32(esp, ecx); /* 0x40008413: push ecx */
    465     edx = MEM32(ecx + 0x4); /* 0x40008414: mov edx, dword ptr [ecx + 4] */
    466     eax = MEM32(edx + 0x4); /* 0x40008417: mov eax, dword ptr [edx + 4] */
    467     ecx = MEM32(ecx + 0x8); /* 0x4000841A: mov ecx, dword ptr [ecx + 8] */
    468     /* cmp eax, ecx */ /* 0x4000841D: cmp eax, ecx */
    469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    471     _flag_k = FK_CMP;
    472     PUSH32(esp, ebx); /* 0x4000841F: push ebx */
    473     ebx = MEM32(ebp + 0xC); /* 0x40008420: mov ebx, dword ptr [ebp + 0xc] */
    474     PUSH32(esp, esi); /* 0x40008423: push esi */
    475     esi = edx; /* 0x40008424: mov esi, edx */
    476     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000843E; /* 0x40008426: je 0x4000843e */
    477 L_40008428:
    478     PUSH32(esp, edi); /* 0x40008428: push edi */
    479     edi = MEM32(ebx); /* 0x40008429: mov edi, dword ptr [ebx] */
    480 L_4000842B:
    481     /* cmp MEM32(eax + 0xC), edi */ /* 0x4000842B: cmp dword ptr [eax + 0xc], edi */
    482     _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(edi);
    483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    484     _flag_k = FK_CMP;
    485     if (CMP_GE(_flag_a, _flag_b)) goto L_40008435; /* 0x4000842E: jge 0x40008435 */
    486 L_40008430:
    487     eax = MEM32(eax + 0x8); /* 0x40008430: mov eax, dword ptr [eax + 8] */
    488     goto L_40008439; /* 0x40008433: jmp 0x40008439 */
    489 L_40008435:
    490     esi = eax; /* 0x40008435: mov esi, eax */
    491     eax = MEM32(eax); /* 0x40008437: mov eax, dword ptr [eax] */
    492 L_40008439:
    493     /* cmp eax, ecx */ /* 0x40008439: cmp eax, ecx */
    494     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    496     _flag_k = FK_CMP;
    497     RECOMP_BACKEDGE();
    498     if (CMP_NE(_flag_a, _flag_b)) goto L_4000842B; /* 0x4000843B: jne 0x4000842b */
    499 L_4000843D:
    500     edi = POP32_VAL(esp); /* 0x4000843D: pop edi */
    501 L_4000843E:
    502     /* cmp esi, edx */ /* 0x4000843E: cmp esi, edx */
    503     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
    504     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    505     _flag_k = FK_CMP;
    506     MEM32(ebp + 0xC) = esi; /* 0x40008440: mov dword ptr [ebp + 0xc], esi */
    507     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000845E; /* 0x40008443: je 0x4000845e */
    508 L_40008445:
    509     eax = MEM32(ebx); /* 0x40008445: mov eax, dword ptr [ebx] */
    510     /* cmp eax, MEM32(esi + 0xC) */ /* 0x40008447: cmp eax, dword ptr [esi + 0xc] */
    511     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
    512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    513     _flag_k = FK_CMP;
    514     if (CMP_L(_flag_a, _flag_b)) goto L_4000845E; /* 0x4000844A: jl 0x4000845e */
    515 L_4000844C:
    516     eax = ebp + 0xC; /* 0x4000844C: lea eax, [ebp + 0xc] */
    517     ecx = MEM32(eax); /* 0x4000844F: mov ecx, dword ptr [eax] */
    518     eax = MEM32(ebp + 0x8); /* 0x40008451: mov eax, dword ptr [ebp + 8] */
    519     esi = POP32_VAL(esp); /* 0x40008454: pop esi */
    520     MEM32(eax) = ecx; /* 0x40008455: mov dword ptr [eax], ecx */
    521     ebx = POP32_VAL(esp); /* 0x40008457: pop ebx */
    522     esp = ebp; /* 0x40008458: mov esp, ebp */
    523     ebp = POP32_VAL(esp); /* 0x4000845A: pop ebp */
    524     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4000845B: ret 8 */
    525 L_4000845E:
    526     eax = ebp + (-0x4); /* 0x4000845E: lea eax, [ebp - 4] */
    527     MEM32(ebp + (-0x4)) = edx; /* 0x40008461: mov dword ptr [ebp - 4], edx */
    528     ecx = MEM32(eax); /* 0x40008464: mov ecx, dword ptr [eax] */
    529     eax = MEM32(ebp + 0x8); /* 0x40008466: mov eax, dword ptr [ebp + 8] */
    530     esi = POP32_VAL(esp); /* 0x40008469: pop esi */
    531     MEM32(eax) = ecx; /* 0x4000846A: mov dword ptr [eax], ecx */
    532     ebx = POP32_VAL(esp); /* 0x4000846C: pop ebx */
    533     esp = ebp; /* 0x4000846D: mov esp, ebp */
    534     ebp = POP32_VAL(esp); /* 0x4000846F: pop ebp */
    535     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008470: ret 8 */
    536     RECOMP_REGS_OUT();
    537 }
    538 
    539 void sub_40008480(void) {
    540     int _fpu_cmp = 0;
    541     uint32_t _cf = 0;
    542     int _df = 1;
    543     uint32_t _flag_k = FK_NONE;
    544     uint32_t _flag_a = 0, _flag_b = 0;
    545     uint32_t _itail_tgt = 0;
    546     RECOMP_REGS_LOCALS
    547     RECOMP_ENTER(0x40008480u);
    548 
    549 L_40008480:
    550     eax = MEM32(ecx); /* 0x40008480: mov eax, dword ptr [ecx] */
    551     edx = MEM32(eax + 0x8); /* 0x40008482: mov edx, dword ptr [eax + 8] */
    552     PUSH32(esp, ebx); /* 0x40008485: push ebx */
    553     SET_LO8(ebx, MEM8(edx + 0x15)); /* 0x40008486: mov bl, byte ptr [edx + 0x15] */
    554     /* test LO8(ebx), LO8(ebx) */ /* 0x40008489: test bl, bl */
    555     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    556     _cf = 0;
    557     _flag_k = FK_NARROW(FK_TEST, 24);
    558     if (TEST_NZ(_flag_a, _flag_b)) goto L_400084A5; /* 0x4000848B: jne 0x400084a5 */
    559 L_4000848D:
    560     eax = MEM32(edx); /* 0x4000848D: mov eax, dword ptr [edx] */
    561     SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x4000848F: mov bl, byte ptr [eax + 0x15] */
    562     /* test LO8(ebx), LO8(ebx) */ /* 0x40008492: test bl, bl */
    563     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    564     _cf = 0;
    565     _flag_k = FK_NARROW(FK_TEST, 24);
    566     if (TEST_NZ(_flag_a, _flag_b)) goto L_400084A1; /* 0x40008494: jne 0x400084a1 */
    567 L_40008496:
    568     edx = eax; /* 0x40008496: mov edx, eax */
    569     eax = MEM32(edx); /* 0x40008498: mov eax, dword ptr [edx] */
    570     SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x4000849A: mov bl, byte ptr [eax + 0x15] */
    571     /* test LO8(ebx), LO8(ebx) */ /* 0x4000849D: test bl, bl */
    572     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    573     _cf = 0;
    574     _flag_k = FK_NARROW(FK_TEST, 24);
    575     RECOMP_BACKEDGE();
    576     if (TEST_Z(_flag_a, _flag_b)) goto L_40008496; /* 0x4000849F: je 0x40008496 */
    577 L_400084A1:
    578     MEM32(ecx) = edx; /* 0x400084A1: mov dword ptr [ecx], edx */
    579     ebx = POP32_VAL(esp); /* 0x400084A3: pop ebx */
    580     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400084A4: ret  */
    581 L_400084A5:
    582     eax = MEM32(eax + 0x4); /* 0x400084A5: mov eax, dword ptr [eax + 4] */
    583     edx = MEM32(ecx); /* 0x400084A8: mov edx, dword ptr [ecx] */
    584     /* cmp edx, MEM32(eax + 0x8) */ /* 0x400084AA: cmp edx, dword ptr [eax + 8] */
    585     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    586     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    587     _flag_k = FK_CMP;
    588     if (CMP_NE(_flag_a, _flag_b)) goto L_400084BB; /* 0x400084AD: jne 0x400084bb */
    589 L_400084AF:
    590     MEM32(ecx) = eax; /* 0x400084AF: mov dword ptr [ecx], eax */
    591     eax = MEM32(eax + 0x4); /* 0x400084B1: mov eax, dword ptr [eax + 4] */
    592     edx = MEM32(ecx); /* 0x400084B4: mov edx, dword ptr [ecx] */
    593     /* cmp edx, MEM32(eax + 0x8) */ /* 0x400084B6: cmp edx, dword ptr [eax + 8] */
    594     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    596     _flag_k = FK_CMP;
    597     RECOMP_BACKEDGE();
    598     if (CMP_EQ(_flag_a, _flag_b)) goto L_400084AF; /* 0x400084B9: je 0x400084af */
    599 L_400084BB:
    600     edx = MEM32(ecx); /* 0x400084BB: mov edx, dword ptr [ecx] */
    601     /* cmp MEM32(edx + 0x8), eax */ /* 0x400084BD: cmp dword ptr [edx + 8], eax */
    602     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
    603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    604     _flag_k = FK_CMP;
    605     if (CMP_EQ(_flag_a, _flag_b)) goto L_400084C4; /* 0x400084C0: je 0x400084c4 */
    606 L_400084C2:
    607     MEM32(ecx) = eax; /* 0x400084C2: mov dword ptr [ecx], eax */
    608 L_400084C4:
    609     ebx = POP32_VAL(esp); /* 0x400084C4: pop ebx */
    610     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400084C5: ret  */
    611     RECOMP_REGS_OUT();
    612 }
    613 
    614 void sub_400084D0(void) {
    615     int _fpu_cmp = 0;
    616     uint32_t _cf = 0;
    617     int _df = 1;
    618     uint32_t _flag_k = FK_NONE;
    619     uint32_t _flag_a = 0, _flag_b = 0;
    620     uint32_t _itail_tgt = 0;
    621     RECOMP_REGS_LOCALS
    622     RECOMP_ENTER(0x400084D0u);
    623 
    624 L_400084D0:
    625     PUSH32(esp, ebp); /* 0x400084D0: push ebp */
    626     ebp = esp; /* 0x400084D1: mov ebp, esp */
    627     eax = MEM32(ebp + 0x10); /* 0x400084D3: mov eax, dword ptr [ebp + 0x10] */
    628     edx = MEM32(ebp + 0x8); /* 0x400084D6: mov edx, dword ptr [ebp + 8] */
    629     PUSH32(esp, ebx); /* 0x400084D9: push ebx */
    630     PUSH32(esp, esi); /* 0x400084DA: push esi */
    631     esi = ecx; /* 0x400084DB: mov esi, ecx */
    632     SET_LO8(ecx, MEM8(eax)); /* 0x400084DD: mov cl, byte ptr [eax] */
    633     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x400084DF: mov byte ptr [esi], cl */
    634     SET_LO8(eax, MEM8(edx)); /* 0x400084E1: mov al, byte ptr [edx] */
    635     SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x400084E3: mov cl, byte ptr [ebp + 0xc] */
    636     PUSH32(esp, edi); /* 0x400084E6: push edi */
    637     PUSH32(esp, 0x38u); /* 0x400084E7: push 0x38 */
    638     MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x400084E9: mov byte ptr [esi + 1], al */
    639     MEM8(esi + 0xC) = (uint8_t)(LO8(ecx)); /* 0x400084EC: mov byte ptr [esi + 0xc], cl */
    640     RECOMP_ICALL(0x40014704u); /* 0x400084EF: call 0x40014704 */ /* not lifted */
    641     RECOMP_FLAGS_IN();
    642     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    643     ebx = 0; /* 0x400084F4: xor ebx, ebx */
    644     _cf = 0;
    645     _flag_k = FK_TEST;
    646     MEM32(eax + 0x4) = ebx; /* 0x400084F6: mov dword ptr [eax + 4], ebx */
    647     MEM8(eax + 0x35) = (uint8_t)(LO8(ebx)); /* 0x400084F9: mov byte ptr [eax + 0x35], bl */
    648     SET_LO8(ecx, 1); /* 0x400084FC: mov cl, 1 */
    649     MEM8(eax + 0x34) = (uint8_t)(LO8(ecx)); /* 0x400084FE: mov byte ptr [eax + 0x34], cl */
    650     MEM32(esi + 0x8) = eax; /* 0x40008501: mov dword ptr [esi + 8], eax */
    651     MEM8(eax + 0x35) = (uint8_t)(LO8(ecx)); /* 0x40008504: mov byte ptr [eax + 0x35], cl */
    652     edx = MEM32(esi + 0x8); /* 0x40008507: mov edx, dword ptr [esi + 8] */
    653     MEM32(edx) = ebx; /* 0x4000850A: mov dword ptr [edx], ebx */
    654     eax = MEM32(esi + 0x8); /* 0x4000850C: mov eax, dword ptr [esi + 8] */
    655     MEM32(eax + 0x8) = ebx; /* 0x4000850F: mov dword ptr [eax + 8], ebx */
    656     edi = MEM32(esi + 0x8); /* 0x40008512: mov edi, dword ptr [esi + 8] */
    657     PUSH32(esp, 0x38u); /* 0x40008515: push 0x38 */
    658     RECOMP_ICALL(0x40014704u); /* 0x40008517: call 0x40014704 */ /* not lifted */
    659     RECOMP_FLAGS_IN();
    660     MEM32(eax + 0x4) = edi; /* 0x4000851C: mov dword ptr [eax + 4], edi */
    661     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x4000851F: mov byte ptr [eax + 0x34], bl */
    662     MEM8(eax + 0x35) = (uint8_t)(LO8(ebx)); /* 0x40008522: mov byte ptr [eax + 0x35], bl */
    663     MEM32(esi + 0x4) = eax; /* 0x40008525: mov dword ptr [esi + 4], eax */
    664     MEM32(eax) = eax; /* 0x40008528: mov dword ptr [eax], eax */
    665     eax = MEM32(esi + 0x4); /* 0x4000852A: mov eax, dword ptr [esi + 4] */
    666     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    667     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    668     esp = esp + 8; /* 0x4000852D: add esp, 8 */
    669     _flag_k = FK_ADD;
    670     MEM32(eax + 0x8) = eax; /* 0x40008530: mov dword ptr [eax + 8], eax */
    671     edi = POP32_VAL(esp); /* 0x40008533: pop edi */
    672     MEM32(esi + 0x10) = ebx; /* 0x40008534: mov dword ptr [esi + 0x10], ebx */
    673     eax = esi; /* 0x40008537: mov eax, esi */
    674     esi = POP32_VAL(esp); /* 0x40008539: pop esi */
    675     ebx = POP32_VAL(esp); /* 0x4000853A: pop ebx */
    676     ebp = POP32_VAL(esp); /* 0x4000853B: pop ebp */
    677     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4000853C: ret 0xc */
    678     RECOMP_REGS_OUT();
    679 }
    680 
    681 void sub_40008540(void) {
    682     int _fpu_cmp = 0;
    683     uint32_t _cf = 0;
    684     int _df = 1;
    685     uint32_t _flag_k = FK_NONE;
    686     uint32_t _flag_a = 0, _flag_b = 0;
    687     uint32_t _itail_tgt = 0;
    688     RECOMP_REGS_LOCALS
    689     RECOMP_ENTER(0x40008540u);
    690 
    691 L_40008540:
    692     eax = MEM32(ecx); /* 0x40008540: mov eax, dword ptr [ecx] */
    693     edx = MEM32(eax + 0x8); /* 0x40008542: mov edx, dword ptr [eax + 8] */
    694     PUSH32(esp, ebx); /* 0x40008545: push ebx */
    695     SET_LO8(ebx, MEM8(edx + 0x35)); /* 0x40008546: mov bl, byte ptr [edx + 0x35] */
    696     /* test LO8(ebx), LO8(ebx) */ /* 0x40008549: test bl, bl */
    697     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    698     _cf = 0;
    699     _flag_k = FK_NARROW(FK_TEST, 24);
    700     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008565; /* 0x4000854B: jne 0x40008565 */
    701 L_4000854D:
    702     eax = MEM32(edx); /* 0x4000854D: mov eax, dword ptr [edx] */
    703     SET_LO8(ebx, MEM8(eax + 0x35)); /* 0x4000854F: mov bl, byte ptr [eax + 0x35] */
    704     /* test LO8(ebx), LO8(ebx) */ /* 0x40008552: test bl, bl */
    705     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    706     _cf = 0;
    707     _flag_k = FK_NARROW(FK_TEST, 24);
    708     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008561; /* 0x40008554: jne 0x40008561 */
    709 L_40008556:
    710     edx = eax; /* 0x40008556: mov edx, eax */
    711     eax = MEM32(edx); /* 0x40008558: mov eax, dword ptr [edx] */
    712     SET_LO8(ebx, MEM8(eax + 0x35)); /* 0x4000855A: mov bl, byte ptr [eax + 0x35] */
    713     /* test LO8(ebx), LO8(ebx) */ /* 0x4000855D: test bl, bl */
    714     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    715     _cf = 0;
    716     _flag_k = FK_NARROW(FK_TEST, 24);
    717     RECOMP_BACKEDGE();
    718     if (TEST_Z(_flag_a, _flag_b)) goto L_40008556; /* 0x4000855F: je 0x40008556 */
    719 L_40008561:
    720     MEM32(ecx) = edx; /* 0x40008561: mov dword ptr [ecx], edx */
    721     ebx = POP32_VAL(esp); /* 0x40008563: pop ebx */
    722     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40008564: ret  */
    723 L_40008565:
    724     eax = MEM32(eax + 0x4); /* 0x40008565: mov eax, dword ptr [eax + 4] */
    725     edx = MEM32(ecx); /* 0x40008568: mov edx, dword ptr [ecx] */
    726     /* cmp edx, MEM32(eax + 0x8) */ /* 0x4000856A: cmp edx, dword ptr [eax + 8] */
    727     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    728     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    729     _flag_k = FK_CMP;
    730     if (CMP_NE(_flag_a, _flag_b)) goto L_4000857B; /* 0x4000856D: jne 0x4000857b */
    731 L_4000856F:
    732     MEM32(ecx) = eax; /* 0x4000856F: mov dword ptr [ecx], eax */
    733     eax = MEM32(eax + 0x4); /* 0x40008571: mov eax, dword ptr [eax + 4] */
    734     edx = MEM32(ecx); /* 0x40008574: mov edx, dword ptr [ecx] */
    735     /* cmp edx, MEM32(eax + 0x8) */ /* 0x40008576: cmp edx, dword ptr [eax + 8] */
    736     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    738     _flag_k = FK_CMP;
    739     RECOMP_BACKEDGE();
    740     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000856F; /* 0x40008579: je 0x4000856f */
    741 L_4000857B:
    742     edx = MEM32(ecx); /* 0x4000857B: mov edx, dword ptr [ecx] */
    743     /* cmp MEM32(edx + 0x8), eax */ /* 0x4000857D: cmp dword ptr [edx + 8], eax */
    744     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
    745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    746     _flag_k = FK_CMP;
    747     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008584; /* 0x40008580: je 0x40008584 */
    748 L_40008582:
    749     MEM32(ecx) = eax; /* 0x40008582: mov dword ptr [ecx], eax */
    750 L_40008584:
    751     ebx = POP32_VAL(esp); /* 0x40008584: pop ebx */
    752     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40008585: ret  */
    753     RECOMP_REGS_OUT();
    754 }
    755 
    756 void sub_40008590(void) {
    757     int _fpu_cmp = 0;
    758     uint32_t _cf = 0;
    759     int _df = 1;
    760     uint32_t _flag_k = FK_NONE;
    761     uint32_t _flag_a = 0, _flag_b = 0;
    762     uint32_t _itail_tgt = 0;
    763     RECOMP_REGS_LOCALS
    764     RECOMP_ENTER(0x40008590u);
    765 
    766 L_40008590:
    767     PUSH32(esp, ebp); /* 0x40008590: push ebp */
    768     ebp = esp; /* 0x40008591: mov ebp, esp */
    769     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    771     esp = esp - 0x10u; /* 0x40008593: sub esp, 0x10 */
    772     _flag_k = FK_CMP;
    773     PUSH32(esp, ebx); /* 0x40008596: push ebx */
    774     PUSH32(esp, esi); /* 0x40008597: push esi */
    775     PUSH32(esp, edi); /* 0x40008598: push edi */
    776     edi = ecx; /* 0x40008599: mov edi, ecx */
    777     ebx = MEM32(edi + 0x4); /* 0x4000859B: mov ebx, dword ptr [edi + 4] */
    778     esi = MEM32(ebx + 0x4); /* 0x4000859E: mov esi, dword ptr [ebx + 4] */
    779     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400085A1: cmp esi, dword ptr [edi + 8] */
    780     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    782     _flag_k = FK_CMP;
    783     SET_LO8(eax, 1); /* 0x400085A4: mov al, 1 */
    784     if (CMP_EQ(_flag_a, _flag_b)) goto L_400085C6; /* 0x400085A6: je 0x400085c6 */
    785 L_400085A8:
    786     ecx = MEM32(ebp + 0xC); /* 0x400085A8: mov ecx, dword ptr [ebp + 0xc] */
    787     eax = esi + 0xC; /* 0x400085AB: lea eax, [esi + 0xc] */
    788     PUSH32(esp, eax); /* 0x400085AE: push eax */
    789     ebx = esi; /* 0x400085AF: mov ebx, esi */
    790     RECOMP_ICALL(0x400015C0u); /* 0x400085B1: call 0x400015c0 */ /* not lifted */
    791     RECOMP_FLAGS_IN();
    792     /* test LO8(eax), LO8(eax) */ /* 0x400085B6: test al, al */
    793     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    794     _cf = 0;
    795     _flag_k = FK_NARROW(FK_TEST, 24);
    796     if (TEST_Z(_flag_a, _flag_b)) goto L_400085BE; /* 0x400085B8: je 0x400085be */
    797 L_400085BA:
    798     esi = MEM32(esi); /* 0x400085BA: mov esi, dword ptr [esi] */
    799     goto L_400085C1; /* 0x400085BC: jmp 0x400085c1 */
    800 L_400085BE:
    801     esi = MEM32(esi + 0x8); /* 0x400085BE: mov esi, dword ptr [esi + 8] */
    802 L_400085C1:
    803     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400085C1: cmp esi, dword ptr [edi + 8] */
    804     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    806     _flag_k = FK_CMP;
    807     RECOMP_BACKEDGE();
    808     if (CMP_NE(_flag_a, _flag_b)) goto L_400085A8; /* 0x400085C4: jne 0x400085a8 */
    809 L_400085C6:
    810     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x400085C6: mov cl, byte ptr [edi + 0xc] */
    811     /* test LO8(ecx), LO8(ecx) */ /* 0x400085C9: test cl, cl */
    812     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    813     _cf = 0;
    814     _flag_k = FK_NARROW(FK_TEST, 24);
    815     if (TEST_Z(_flag_a, _flag_b)) goto L_400085EB; /* 0x400085CB: je 0x400085eb */
    816 L_400085CD:
    817     ecx = MEM32(ebp + 0xC); /* 0x400085CD: mov ecx, dword ptr [ebp + 0xc] */
    818     PUSH32(esp, ecx); /* 0x400085D0: push ecx */
    819     PUSH32(esp, ebx); /* 0x400085D1: push ebx */
    820     PUSH32(esp, esi); /* 0x400085D2: push esi */
    821     edx = ebp + (-0x8); /* 0x400085D3: lea edx, [ebp - 8] */
    822     PUSH32(esp, edx); /* 0x400085D6: push edx */
    823     ecx = edi; /* 0x400085D7: mov ecx, edi */
    824     RECOMP_ICALL(0x4000E610u); /* 0x400085D9: call 0x4000e610 */ /* not lifted */
    825     RECOMP_FLAGS_IN();
    826     eax = MEM32(eax); /* 0x400085DE: mov eax, dword ptr [eax] */
    827     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x400085E0: mov byte ptr [ebp - 0xc], 1 */
    828     ecx = eax; /* 0x400085E4: mov ecx, eax */
    829     eax = MEM32(ebp + (-0xC)); /* 0x400085E6: mov eax, dword ptr [ebp - 0xc] */
    830     goto L_4000865A; /* 0x400085E9: jmp 0x4000865a */
    831 L_400085EB:
    832     /* test LO8(eax), LO8(eax) */ /* 0x400085EB: test al, al */
    833     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    834     _cf = 0;
    835     _flag_k = FK_NARROW(FK_TEST, 24);
    836     MEM32(ebp + (-0x4)) = ebx; /* 0x400085ED: mov dword ptr [ebp - 4], ebx */
    837     if (TEST_Z(_flag_a, _flag_b)) goto L_4000861F; /* 0x400085F0: je 0x4000861f */
    838 L_400085F2:
    839     eax = MEM32(edi + 0x4); /* 0x400085F2: mov eax, dword ptr [edi + 4] */
    840     /* cmp ebx, MEM32(eax) */ /* 0x400085F5: cmp ebx, dword ptr [eax] */
    841     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax));
    842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    843     _flag_k = FK_CMP;
    844     if (CMP_NE(_flag_a, _flag_b)) goto L_40008617; /* 0x400085F7: jne 0x40008617 */
    845 L_400085F9:
    846     ecx = MEM32(ebp + 0xC); /* 0x400085F9: mov ecx, dword ptr [ebp + 0xc] */
    847     PUSH32(esp, ecx); /* 0x400085FC: push ecx */
    848     PUSH32(esp, ebx); /* 0x400085FD: push ebx */
    849     PUSH32(esp, esi); /* 0x400085FE: push esi */
    850     edx = ebp + (-0xC); /* 0x400085FF: lea edx, [ebp - 0xc] */
    851     PUSH32(esp, edx); /* 0x40008602: push edx */
    852     ecx = edi; /* 0x40008603: mov ecx, edi */
    853     RECOMP_ICALL(0x4000E610u); /* 0x40008605: call 0x4000e610 */ /* not lifted */
    854     RECOMP_FLAGS_IN();
    855     eax = MEM32(eax); /* 0x4000860A: mov eax, dword ptr [eax] */
    856     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x4000860C: mov byte ptr [ebp - 0xc], 1 */
    857     ecx = eax; /* 0x40008610: mov ecx, eax */
    858     eax = MEM32(ebp + (-0xC)); /* 0x40008612: mov eax, dword ptr [ebp - 0xc] */
    859     goto L_4000865A; /* 0x40008615: jmp 0x4000865a */
    860 L_40008617:
    861     ecx = ebp + (-0x4); /* 0x40008617: lea ecx, [ebp - 4] */
    862     RECOMP_ICALL(0x4000F030u); /* 0x4000861A: call 0x4000f030 */ /* not lifted */
    863     RECOMP_FLAGS_IN();
    864 L_4000861F:
    865     eax = MEM32(ebp + (-0x4)); /* 0x4000861F: mov eax, dword ptr [ebp - 4] */
    866     edx = MEM32(ebp + 0xC); /* 0x40008622: mov edx, dword ptr [ebp + 0xc] */
    867     ecx = eax + 0xC; /* 0x40008625: lea ecx, [eax + 0xc] */
    868     PUSH32(esp, edx); /* 0x40008628: push edx */
    869     RECOMP_ICALL(0x400015C0u); /* 0x40008629: call 0x400015c0 */ /* not lifted */
    870     RECOMP_FLAGS_IN();
    871     /* test LO8(eax), LO8(eax) */ /* 0x4000862E: test al, al */
    872     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    873     _cf = 0;
    874     _flag_k = FK_NARROW(FK_TEST, 24);
    875     if (TEST_Z(_flag_a, _flag_b)) goto L_40008650; /* 0x40008630: je 0x40008650 */
    876 L_40008632:
    877     eax = MEM32(ebp + 0xC); /* 0x40008632: mov eax, dword ptr [ebp + 0xc] */
    878     PUSH32(esp, eax); /* 0x40008635: push eax */
    879     PUSH32(esp, ebx); /* 0x40008636: push ebx */
    880     PUSH32(esp, esi); /* 0x40008637: push esi */
    881     ecx = ebp + 0xC; /* 0x40008638: lea ecx, [ebp + 0xc] */
    882     PUSH32(esp, ecx); /* 0x4000863B: push ecx */
    883     ecx = edi; /* 0x4000863C: mov ecx, edi */
    884     RECOMP_ICALL(0x4000E610u); /* 0x4000863E: call 0x4000e610 */ /* not lifted */
    885     RECOMP_FLAGS_IN();
    886     eax = MEM32(eax); /* 0x40008643: mov eax, dword ptr [eax] */
    887     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x40008645: mov byte ptr [ebp - 0xc], 1 */
    888     ecx = eax; /* 0x40008649: mov ecx, eax */
    889     eax = MEM32(ebp + (-0xC)); /* 0x4000864B: mov eax, dword ptr [ebp - 0xc] */
    890     goto L_4000865A; /* 0x4000864E: jmp 0x4000865a */
    891 L_40008650:
    892     ecx = MEM32(ebp + (-0x4)); /* 0x40008650: mov ecx, dword ptr [ebp - 4] */
    893     MEM8(ebp + (-0xC)) = (uint8_t)(0); /* 0x40008653: mov byte ptr [ebp - 0xc], 0 */
    894     eax = MEM32(ebp + (-0xC)); /* 0x40008657: mov eax, dword ptr [ebp - 0xc] */
    895 L_4000865A:
    896     MEM8(ebp + (-0xC)) = (uint8_t)(LO8(eax)); /* 0x4000865A: mov byte ptr [ebp - 0xc], al */
    897     eax = MEM32(ebp + 0x8); /* 0x4000865D: mov eax, dword ptr [ebp + 8] */
    898     edx = MEM32(ebp + (-0xC)); /* 0x40008660: mov edx, dword ptr [ebp - 0xc] */
    899     edi = POP32_VAL(esp); /* 0x40008663: pop edi */
    900     esi = POP32_VAL(esp); /* 0x40008664: pop esi */
    901     MEM32(eax) = ecx; /* 0x40008665: mov dword ptr [eax], ecx */
    902     MEM32(eax + 0x4) = edx; /* 0x40008667: mov dword ptr [eax + 4], edx */
    903     ebx = POP32_VAL(esp); /* 0x4000866A: pop ebx */
    904     esp = ebp; /* 0x4000866B: mov esp, ebp */
    905     ebp = POP32_VAL(esp); /* 0x4000866D: pop ebp */
    906     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4000866E: ret 8 */
    907     RECOMP_REGS_OUT();
    908 }
    909 
    910 void sub_40008680(void) {
    911     int _fpu_cmp = 0;
    912     uint32_t _cf = 0;
    913     int _df = 1;
    914     uint32_t _flag_k = FK_NONE;
    915     uint32_t _flag_a = 0, _flag_b = 0;
    916     uint32_t _itail_tgt = 0;
    917     RECOMP_REGS_LOCALS
    918     RECOMP_ENTER(0x40008680u);
    919 
    920 L_40008680:
    921     PUSH32(esp, ebp); /* 0x40008680: push ebp */
    922     ebp = esp; /* 0x40008681: mov ebp, esp */
    923     eax = MEM32(ebp + 0x10); /* 0x40008683: mov eax, dword ptr [ebp + 0x10] */
    924     edx = MEM32(ebp + 0x8); /* 0x40008686: mov edx, dword ptr [ebp + 8] */
    925     PUSH32(esp, ebx); /* 0x40008689: push ebx */
    926     PUSH32(esp, esi); /* 0x4000868A: push esi */
    927     esi = ecx; /* 0x4000868B: mov esi, ecx */
    928     SET_LO8(ecx, MEM8(eax)); /* 0x4000868D: mov cl, byte ptr [eax] */
    929     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x4000868F: mov byte ptr [esi], cl */
    930     SET_LO8(eax, MEM8(edx)); /* 0x40008691: mov al, byte ptr [edx] */
    931     SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x40008693: mov cl, byte ptr [ebp + 0xc] */
    932     PUSH32(esp, edi); /* 0x40008696: push edi */
    933     PUSH32(esp, 0x20u); /* 0x40008697: push 0x20 */
    934     MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x40008699: mov byte ptr [esi + 1], al */
    935     MEM8(esi + 0xC) = (uint8_t)(LO8(ecx)); /* 0x4000869C: mov byte ptr [esi + 0xc], cl */
    936     RECOMP_ICALL(0x40014704u); /* 0x4000869F: call 0x40014704 */ /* not lifted */
    937     RECOMP_FLAGS_IN();
    938     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    939     ebx = 0; /* 0x400086A4: xor ebx, ebx */
    940     _cf = 0;
    941     _flag_k = FK_TEST;
    942     MEM32(eax + 0x4) = ebx; /* 0x400086A6: mov dword ptr [eax + 4], ebx */
    943     MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x400086A9: mov byte ptr [eax + 0x1d], bl */
    944     SET_LO8(ecx, 1); /* 0x400086AC: mov cl, 1 */
    945     MEM8(eax + 0x1C) = (uint8_t)(LO8(ecx)); /* 0x400086AE: mov byte ptr [eax + 0x1c], cl */
    946     MEM32(esi + 0x8) = eax; /* 0x400086B1: mov dword ptr [esi + 8], eax */
    947     MEM8(eax + 0x1D) = (uint8_t)(LO8(ecx)); /* 0x400086B4: mov byte ptr [eax + 0x1d], cl */
    948     edx = MEM32(esi + 0x8); /* 0x400086B7: mov edx, dword ptr [esi + 8] */
    949     MEM32(edx) = ebx; /* 0x400086BA: mov dword ptr [edx], ebx */
    950     eax = MEM32(esi + 0x8); /* 0x400086BC: mov eax, dword ptr [esi + 8] */
    951     MEM32(eax + 0x8) = ebx; /* 0x400086BF: mov dword ptr [eax + 8], ebx */
    952     edi = MEM32(esi + 0x8); /* 0x400086C2: mov edi, dword ptr [esi + 8] */
    953     PUSH32(esp, 0x20u); /* 0x400086C5: push 0x20 */
    954     RECOMP_ICALL(0x40014704u); /* 0x400086C7: call 0x40014704 */ /* not lifted */
    955     RECOMP_FLAGS_IN();
    956     MEM32(eax + 0x4) = edi; /* 0x400086CC: mov dword ptr [eax + 4], edi */
    957     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x400086CF: mov byte ptr [eax + 0x1c], bl */
    958     MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x400086D2: mov byte ptr [eax + 0x1d], bl */
    959     MEM32(esi + 0x4) = eax; /* 0x400086D5: mov dword ptr [esi + 4], eax */
    960     MEM32(eax) = eax; /* 0x400086D8: mov dword ptr [eax], eax */
    961     eax = MEM32(esi + 0x4); /* 0x400086DA: mov eax, dword ptr [esi + 4] */
    962     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    963     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    964     esp = esp + 8; /* 0x400086DD: add esp, 8 */
    965     _flag_k = FK_ADD;
    966     MEM32(eax + 0x8) = eax; /* 0x400086E0: mov dword ptr [eax + 8], eax */
    967     edi = POP32_VAL(esp); /* 0x400086E3: pop edi */
    968     MEM32(esi + 0x10) = ebx; /* 0x400086E4: mov dword ptr [esi + 0x10], ebx */
    969     eax = esi; /* 0x400086E7: mov eax, esi */
    970     esi = POP32_VAL(esp); /* 0x400086E9: pop esi */
    971     ebx = POP32_VAL(esp); /* 0x400086EA: pop ebx */
    972     ebp = POP32_VAL(esp); /* 0x400086EB: pop ebp */
    973     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x400086EC: ret 0xc */
    974     RECOMP_REGS_OUT();
    975 }
    976 
    977 void sub_400086F0(void) {
    978     int _fpu_cmp = 0;
    979     uint32_t _cf = 0;
    980     int _df = 1;
    981     uint32_t _flag_k = FK_NONE;
    982     uint32_t _flag_a = 0, _flag_b = 0;
    983     uint32_t _itail_tgt = 0;
    984     RECOMP_REGS_LOCALS
    985     RECOMP_ENTER(0x400086F0u);
    986 
    987 L_400086F0:
    988     PUSH32(esp, ebp); /* 0x400086F0: push ebp */
    989     ebp = esp; /* 0x400086F1: mov ebp, esp */
    990     PUSH32(esp, ebx); /* 0x400086F3: push ebx */
    991     ebx = MEM32(ebp + 0x10); /* 0x400086F4: mov ebx, dword ptr [ebp + 0x10] */
    992     PUSH32(esp, esi); /* 0x400086F7: push esi */
    993     esi = ecx; /* 0x400086F8: mov esi, ecx */
    994     eax = MEM32(esi + 0x10); /* 0x400086FA: mov eax, dword ptr [esi + 0x10] */
    995     /* test eax, eax */ /* 0x400086FD: test eax, eax */
    996     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    997     _cf = 0;
    998     _flag_k = FK_TEST;
    999     ecx = MEM32(ebp + 0xC); /* 0x400086FF: mov ecx, dword ptr [ebp + 0xc] */
   1000     PUSH32(esp, edi); /* 0x40008702: push edi */
   1001     if (TEST_Z(_flag_a, _flag_b)) goto L_40008765; /* 0x40008703: je 0x40008765 */
   1002 L_40008705:
   1003     eax = MEM32(esi + 0x4); /* 0x40008705: mov eax, dword ptr [esi + 4] */
   1004     /* cmp ecx, MEM32(eax) */ /* 0x40008708: cmp ecx, dword ptr [eax] */
   1005     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   1006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1007     _flag_k = FK_CMP;
   1008     if (CMP_NE(_flag_a, _flag_b)) goto L_40008765; /* 0x4000870A: jne 0x40008765 */
   1009 L_4000870C:
   1010     /* cmp ebx, eax */ /* 0x4000870C: cmp ebx, eax */
   1011     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   1012     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1013     _flag_k = FK_CMP;
   1014     if (CMP_NE(_flag_a, _flag_b)) goto L_40008765; /* 0x4000870E: jne 0x40008765 */
   1015 L_40008710:
   1016     ebx = MEM32(eax + 0x4); /* 0x40008710: mov ebx, dword ptr [eax + 4] */
   1017     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x40008713: cmp ebx, dword ptr [esi + 8] */
   1018     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1020     _flag_k = FK_CMP;
   1021     edi = ebx; /* 0x40008716: mov edi, ebx */
   1022     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008739; /* 0x40008718: je 0x40008739 */
   1023 L_4000871A:
   1024     eax = MEM32(edi + 0x8); /* 0x4000871A: mov eax, dword ptr [edi + 8] */
   1025     PUSH32(esp, eax); /* 0x4000871D: push eax */
   1026     ecx = esi; /* 0x4000871E: mov ecx, esi */
   1027     RECOMP_ICALL(0x40009F20u); /* 0x40008720: call 0x40009f20 */ /* not lifted */
   1028     RECOMP_FLAGS_IN();
   1029     edi = MEM32(edi); /* 0x40008725: mov edi, dword ptr [edi] */
   1030     PUSH32(esp, ebx); /* 0x40008727: push ebx */
   1031     RECOMP_ICALL(0x400146F2u); /* 0x40008728: call 0x400146f2 */ /* not lifted */
   1032     RECOMP_FLAGS_IN();
   1033     eax = MEM32(esi + 0x8); /* 0x4000872D: mov eax, dword ptr [esi + 8] */
   1034     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1035     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1036     esp = esp + 4; /* 0x40008730: add esp, 4 */
   1037     _flag_k = FK_ADD;
   1038     /* cmp edi, eax */ /* 0x40008733: cmp edi, eax */
   1039     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1041     _flag_k = FK_CMP;
   1042     ebx = edi; /* 0x40008735: mov ebx, edi */
   1043     RECOMP_BACKEDGE();
   1044     if (CMP_NE(_flag_a, _flag_b)) goto L_4000871A; /* 0x40008737: jne 0x4000871a */
   1045 L_40008739:
   1046     ecx = MEM32(esi + 0x4); /* 0x40008739: mov ecx, dword ptr [esi + 4] */
   1047     edx = MEM32(esi + 0x8); /* 0x4000873C: mov edx, dword ptr [esi + 8] */
   1048     MEM32(ecx + 0x4) = edx; /* 0x4000873F: mov dword ptr [ecx + 4], edx */
   1049     eax = MEM32(esi + 0x4); /* 0x40008742: mov eax, dword ptr [esi + 4] */
   1050     MEM32(esi + 0x10) = 0; /* 0x40008745: mov dword ptr [esi + 0x10], 0 */
   1051     MEM32(eax) = eax; /* 0x4000874C: mov dword ptr [eax], eax */
   1052     eax = MEM32(esi + 0x4); /* 0x4000874E: mov eax, dword ptr [esi + 4] */
   1053     MEM32(eax + 0x8) = eax; /* 0x40008751: mov dword ptr [eax + 8], eax */
   1054     eax = MEM32(esi + 0x4); /* 0x40008754: mov eax, dword ptr [esi + 4] */
   1055     ecx = MEM32(eax); /* 0x40008757: mov ecx, dword ptr [eax] */
   1056     eax = MEM32(ebp + 0x8); /* 0x40008759: mov eax, dword ptr [ebp + 8] */
   1057     edi = POP32_VAL(esp); /* 0x4000875C: pop edi */
   1058     esi = POP32_VAL(esp); /* 0x4000875D: pop esi */
   1059     MEM32(eax) = ecx; /* 0x4000875E: mov dword ptr [eax], ecx */
   1060     ebx = POP32_VAL(esp); /* 0x40008760: pop ebx */
   1061     ebp = POP32_VAL(esp); /* 0x40008761: pop ebp */
   1062     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008762: ret 0xc */
   1063 L_40008765:
   1064     /* cmp ecx, ebx */ /* 0x40008765: cmp ecx, ebx */
   1065     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1067     _flag_k = FK_CMP;
   1068     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008786; /* 0x40008767: je 0x40008786 */
   1069 L_40008769:
   1070     edi = ecx; /* 0x40008769: mov edi, ecx */
   1071     ecx = ebp + 0xC; /* 0x4000876B: lea ecx, [ebp + 0xc] */
   1072     RECOMP_ICALL(0x40001C50u); /* 0x4000876E: call 0x40001c50 */ /* not lifted */
   1073     RECOMP_FLAGS_IN();
   1074     PUSH32(esp, edi); /* 0x40008773: push edi */
   1075     ecx = ebp + 0x10; /* 0x40008774: lea ecx, [ebp + 0x10] */
   1076     PUSH32(esp, ecx); /* 0x40008777: push ecx */
   1077     ecx = esi; /* 0x40008778: mov ecx, esi */
   1078     RECOMP_ICALL(0x4000DE30u); /* 0x4000877A: call 0x4000de30 */ /* not lifted */
   1079     RECOMP_FLAGS_IN();
   1080     ecx = MEM32(ebp + 0xC); /* 0x4000877F: mov ecx, dword ptr [ebp + 0xc] */
   1081     /* cmp ecx, ebx */ /* 0x40008782: cmp ecx, ebx */
   1082     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1084     _flag_k = FK_CMP;
   1085     RECOMP_BACKEDGE();
   1086     if (CMP_NE(_flag_a, _flag_b)) goto L_40008769; /* 0x40008784: jne 0x40008769 */
   1087 L_40008786:
   1088     eax = MEM32(ebp + 0x8); /* 0x40008786: mov eax, dword ptr [ebp + 8] */
   1089     edi = POP32_VAL(esp); /* 0x40008789: pop edi */
   1090     esi = POP32_VAL(esp); /* 0x4000878A: pop esi */
   1091     MEM32(eax) = ecx; /* 0x4000878B: mov dword ptr [eax], ecx */
   1092     ebx = POP32_VAL(esp); /* 0x4000878D: pop ebx */
   1093     ebp = POP32_VAL(esp); /* 0x4000878E: pop ebp */
   1094     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4000878F: ret 0xc */
   1095     RECOMP_REGS_OUT();
   1096 }
   1097 
   1098 void sub_400087A0(void) {
   1099     int _fpu_cmp = 0;
   1100     uint32_t _cf = 0;
   1101     int _df = 1;
   1102     uint32_t _flag_k = FK_NONE;
   1103     uint32_t _flag_a = 0, _flag_b = 0;
   1104     uint32_t _itail_tgt = 0;
   1105     RECOMP_REGS_LOCALS
   1106     RECOMP_ENTER(0x400087A0u);
   1107 
   1108 L_400087A0:
   1109     PUSH32(esp, ebp); /* 0x400087A0: push ebp */
   1110     ebp = esp; /* 0x400087A1: mov ebp, esp */
   1111     eax = ecx; /* 0x400087A3: mov eax, ecx */
   1112     ecx = MEM32(ebp + 0x8); /* 0x400087A5: mov ecx, dword ptr [ebp + 8] */
   1113     /* cmp eax, ecx */ /* 0x400087A8: cmp eax, ecx */
   1114     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1116     _flag_k = FK_CMP;
   1117     if (CMP_EQ(_flag_a, _flag_b)) goto L_400087B6; /* 0x400087AA: je 0x400087b6 */
   1118 L_400087AC:
   1119     edx = MEM32(ecx); /* 0x400087AC: mov edx, dword ptr [ecx] */
   1120     MEM32(eax) = edx; /* 0x400087AE: mov dword ptr [eax], edx */
   1121     ecx = MEM32(ecx + 0x4); /* 0x400087B0: mov ecx, dword ptr [ecx + 4] */
   1122     MEM32(eax + 0x4) = ecx; /* 0x400087B3: mov dword ptr [eax + 4], ecx */
   1123 L_400087B6:
   1124     ecx = MEM32(ebp + 0xC); /* 0x400087B6: mov ecx, dword ptr [ebp + 0xc] */
   1125     edx = MEM32(ecx); /* 0x400087B9: mov edx, dword ptr [ecx] */
   1126     MEM32(eax + 0x8) = edx; /* 0x400087BB: mov dword ptr [eax + 8], edx */
   1127     ecx = MEM32(ecx + 0x4); /* 0x400087BE: mov ecx, dword ptr [ecx + 4] */
   1128     MEM32(eax + 0xC) = ecx; /* 0x400087C1: mov dword ptr [eax + 0xc], ecx */
   1129     ebp = POP32_VAL(esp); /* 0x400087C4: pop ebp */
   1130     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x400087C5: ret 8 */
   1131     RECOMP_REGS_OUT();
   1132 }
   1133 
   1134 void sub_400087D0(void) {
   1135     int _fpu_cmp = 0;
   1136     uint32_t _cf = 0;
   1137     int _df = 1;
   1138     uint32_t _flag_k = FK_NONE;
   1139     uint32_t _flag_a = 0, _flag_b = 0;
   1140     uint32_t _itail_tgt = 0;
   1141     RECOMP_REGS_LOCALS
   1142     RECOMP_ENTER(0x400087D0u);
   1143 
   1144 L_400087D0:
   1145     PUSH32(esp, ebp); /* 0x400087D0: push ebp */
   1146     ebp = esp; /* 0x400087D1: mov ebp, esp */
   1147     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1149     esp = esp - 0x10u; /* 0x400087D3: sub esp, 0x10 */
   1150     _flag_k = FK_CMP;
   1151     PUSH32(esp, ebx); /* 0x400087D6: push ebx */
   1152     PUSH32(esp, esi); /* 0x400087D7: push esi */
   1153     PUSH32(esp, edi); /* 0x400087D8: push edi */
   1154     edi = ecx; /* 0x400087D9: mov edi, ecx */
   1155     ebx = MEM32(edi + 0x4); /* 0x400087DB: mov ebx, dword ptr [edi + 4] */
   1156     esi = MEM32(ebx + 0x4); /* 0x400087DE: mov esi, dword ptr [ebx + 4] */
   1157     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400087E1: cmp esi, dword ptr [edi + 8] */
   1158     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1160     _flag_k = FK_CMP;
   1161     SET_LO8(eax, 1); /* 0x400087E4: mov al, 1 */
   1162     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008806; /* 0x400087E6: je 0x40008806 */
   1163 L_400087E8:
   1164     ecx = MEM32(ebp + 0xC); /* 0x400087E8: mov ecx, dword ptr [ebp + 0xc] */
   1165     eax = esi + 0xC; /* 0x400087EB: lea eax, [esi + 0xc] */
   1166     PUSH32(esp, eax); /* 0x400087EE: push eax */
   1167     ebx = esi; /* 0x400087EF: mov ebx, esi */
   1168     RECOMP_ICALL(0x400015C0u); /* 0x400087F1: call 0x400015c0 */ /* not lifted */
   1169     RECOMP_FLAGS_IN();
   1170     /* test LO8(eax), LO8(eax) */ /* 0x400087F6: test al, al */
   1171     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1172     _cf = 0;
   1173     _flag_k = FK_NARROW(FK_TEST, 24);
   1174     if (TEST_Z(_flag_a, _flag_b)) goto L_400087FE; /* 0x400087F8: je 0x400087fe */
   1175 L_400087FA:
   1176     esi = MEM32(esi); /* 0x400087FA: mov esi, dword ptr [esi] */
   1177     goto L_40008801; /* 0x400087FC: jmp 0x40008801 */
   1178 L_400087FE:
   1179     esi = MEM32(esi + 0x8); /* 0x400087FE: mov esi, dword ptr [esi + 8] */
   1180 L_40008801:
   1181     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40008801: cmp esi, dword ptr [edi + 8] */
   1182     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1184     _flag_k = FK_CMP;
   1185     RECOMP_BACKEDGE();
   1186     if (CMP_NE(_flag_a, _flag_b)) goto L_400087E8; /* 0x40008804: jne 0x400087e8 */
   1187 L_40008806:
   1188     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x40008806: mov cl, byte ptr [edi + 0xc] */
   1189     /* test LO8(ecx), LO8(ecx) */ /* 0x40008809: test cl, cl */
   1190     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1191     _cf = 0;
   1192     _flag_k = FK_NARROW(FK_TEST, 24);
   1193     if (TEST_Z(_flag_a, _flag_b)) goto L_4000882B; /* 0x4000880B: je 0x4000882b */
   1194 L_4000880D:
   1195     ecx = MEM32(ebp + 0xC); /* 0x4000880D: mov ecx, dword ptr [ebp + 0xc] */
   1196     PUSH32(esp, ecx); /* 0x40008810: push ecx */
   1197     PUSH32(esp, ebx); /* 0x40008811: push ebx */
   1198     PUSH32(esp, esi); /* 0x40008812: push esi */
   1199     edx = ebp + (-0x8); /* 0x40008813: lea edx, [ebp - 8] */
   1200     PUSH32(esp, edx); /* 0x40008816: push edx */
   1201     ecx = edi; /* 0x40008817: mov ecx, edi */
   1202     RECOMP_ICALL(0x4000E850u); /* 0x40008819: call 0x4000e850 */ /* not lifted */
   1203     RECOMP_FLAGS_IN();
   1204     eax = MEM32(eax); /* 0x4000881E: mov eax, dword ptr [eax] */
   1205     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x40008820: mov byte ptr [ebp - 0xc], 1 */
   1206     ecx = eax; /* 0x40008824: mov ecx, eax */
   1207     eax = MEM32(ebp + (-0xC)); /* 0x40008826: mov eax, dword ptr [ebp - 0xc] */
   1208     goto L_4000889A; /* 0x40008829: jmp 0x4000889a */
   1209 L_4000882B:
   1210     /* test LO8(eax), LO8(eax) */ /* 0x4000882B: test al, al */
   1211     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1212     _cf = 0;
   1213     _flag_k = FK_NARROW(FK_TEST, 24);
   1214     MEM32(ebp + (-0x4)) = ebx; /* 0x4000882D: mov dword ptr [ebp - 4], ebx */
   1215     if (TEST_Z(_flag_a, _flag_b)) goto L_4000885F; /* 0x40008830: je 0x4000885f */
   1216 L_40008832:
   1217     eax = MEM32(edi + 0x4); /* 0x40008832: mov eax, dword ptr [edi + 4] */
   1218     /* cmp ebx, MEM32(eax) */ /* 0x40008835: cmp ebx, dword ptr [eax] */
   1219     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax));
   1220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1221     _flag_k = FK_CMP;
   1222     if (CMP_NE(_flag_a, _flag_b)) goto L_40008857; /* 0x40008837: jne 0x40008857 */
   1223 L_40008839:
   1224     ecx = MEM32(ebp + 0xC); /* 0x40008839: mov ecx, dword ptr [ebp + 0xc] */
   1225     PUSH32(esp, ecx); /* 0x4000883C: push ecx */
   1226     PUSH32(esp, ebx); /* 0x4000883D: push ebx */
   1227     PUSH32(esp, esi); /* 0x4000883E: push esi */
   1228     edx = ebp + (-0xC); /* 0x4000883F: lea edx, [ebp - 0xc] */
   1229     PUSH32(esp, edx); /* 0x40008842: push edx */
   1230     ecx = edi; /* 0x40008843: mov ecx, edi */
   1231     RECOMP_ICALL(0x4000E850u); /* 0x40008845: call 0x4000e850 */ /* not lifted */
   1232     RECOMP_FLAGS_IN();
   1233     eax = MEM32(eax); /* 0x4000884A: mov eax, dword ptr [eax] */
   1234     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x4000884C: mov byte ptr [ebp - 0xc], 1 */
   1235     ecx = eax; /* 0x40008850: mov ecx, eax */
   1236     eax = MEM32(ebp + (-0xC)); /* 0x40008852: mov eax, dword ptr [ebp - 0xc] */
   1237     goto L_4000889A; /* 0x40008855: jmp 0x4000889a */
   1238 L_40008857:
   1239     ecx = ebp + (-0x4); /* 0x40008857: lea ecx, [ebp - 4] */
   1240     RECOMP_ICALL(0x4000F090u); /* 0x4000885A: call 0x4000f090 */ /* not lifted */
   1241     RECOMP_FLAGS_IN();
   1242 L_4000885F:
   1243     eax = MEM32(ebp + (-0x4)); /* 0x4000885F: mov eax, dword ptr [ebp - 4] */
   1244     edx = MEM32(ebp + 0xC); /* 0x40008862: mov edx, dword ptr [ebp + 0xc] */
   1245     ecx = eax + 0xC; /* 0x40008865: lea ecx, [eax + 0xc] */
   1246     PUSH32(esp, edx); /* 0x40008868: push edx */
   1247     RECOMP_ICALL(0x400015C0u); /* 0x40008869: call 0x400015c0 */ /* not lifted */
   1248     RECOMP_FLAGS_IN();
   1249     /* test LO8(eax), LO8(eax) */ /* 0x4000886E: test al, al */
   1250     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1251     _cf = 0;
   1252     _flag_k = FK_NARROW(FK_TEST, 24);
   1253     if (TEST_Z(_flag_a, _flag_b)) goto L_40008890; /* 0x40008870: je 0x40008890 */
   1254 L_40008872:
   1255     eax = MEM32(ebp + 0xC); /* 0x40008872: mov eax, dword ptr [ebp + 0xc] */
   1256     PUSH32(esp, eax); /* 0x40008875: push eax */
   1257     PUSH32(esp, ebx); /* 0x40008876: push ebx */
   1258     PUSH32(esp, esi); /* 0x40008877: push esi */
   1259     ecx = ebp + 0xC; /* 0x40008878: lea ecx, [ebp + 0xc] */
   1260     PUSH32(esp, ecx); /* 0x4000887B: push ecx */
   1261     ecx = edi; /* 0x4000887C: mov ecx, edi */
   1262     RECOMP_ICALL(0x4000E850u); /* 0x4000887E: call 0x4000e850 */ /* not lifted */
   1263     RECOMP_FLAGS_IN();
   1264     eax = MEM32(eax); /* 0x40008883: mov eax, dword ptr [eax] */
   1265     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x40008885: mov byte ptr [ebp - 0xc], 1 */
   1266     ecx = eax; /* 0x40008889: mov ecx, eax */
   1267     eax = MEM32(ebp + (-0xC)); /* 0x4000888B: mov eax, dword ptr [ebp - 0xc] */
   1268     goto L_4000889A; /* 0x4000888E: jmp 0x4000889a */
   1269 L_40008890:
   1270     ecx = MEM32(ebp + (-0x4)); /* 0x40008890: mov ecx, dword ptr [ebp - 4] */
   1271     MEM8(ebp + (-0xC)) = (uint8_t)(0); /* 0x40008893: mov byte ptr [ebp - 0xc], 0 */
   1272     eax = MEM32(ebp + (-0xC)); /* 0x40008897: mov eax, dword ptr [ebp - 0xc] */
   1273 L_4000889A:
   1274     MEM8(ebp + (-0xC)) = (uint8_t)(LO8(eax)); /* 0x4000889A: mov byte ptr [ebp - 0xc], al */
   1275     eax = MEM32(ebp + 0x8); /* 0x4000889D: mov eax, dword ptr [ebp + 8] */
   1276     edx = MEM32(ebp + (-0xC)); /* 0x400088A0: mov edx, dword ptr [ebp - 0xc] */
   1277     edi = POP32_VAL(esp); /* 0x400088A3: pop edi */
   1278     esi = POP32_VAL(esp); /* 0x400088A4: pop esi */
   1279     MEM32(eax) = ecx; /* 0x400088A5: mov dword ptr [eax], ecx */
   1280     MEM32(eax + 0x4) = edx; /* 0x400088A7: mov dword ptr [eax + 4], edx */
   1281     ebx = POP32_VAL(esp); /* 0x400088AA: pop ebx */
   1282     esp = ebp; /* 0x400088AB: mov esp, ebp */
   1283     ebp = POP32_VAL(esp); /* 0x400088AD: pop ebp */
   1284     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x400088AE: ret 8 */
   1285     RECOMP_REGS_OUT();
   1286 }
   1287 
   1288 void sub_400088C0(void) {
   1289     int _fpu_cmp = 0;
   1290     uint32_t _cf = 0;
   1291     int _df = 1;
   1292     uint32_t _flag_k = FK_NONE;
   1293     uint32_t _flag_a = 0, _flag_b = 0;
   1294     uint32_t _itail_tgt = 0;
   1295     RECOMP_REGS_LOCALS
   1296     RECOMP_ENTER(0x400088C0u);
   1297 
   1298 L_400088C0:
   1299     PUSH32(esp, ebp); /* 0x400088C0: push ebp */
   1300     ebp = esp; /* 0x400088C1: mov ebp, esp */
   1301     eax = MEM32(ebp + 0x10); /* 0x400088C3: mov eax, dword ptr [ebp + 0x10] */
   1302     edx = MEM32(ebp + 0x8); /* 0x400088C6: mov edx, dword ptr [ebp + 8] */
   1303     PUSH32(esp, ebx); /* 0x400088C9: push ebx */
   1304     PUSH32(esp, esi); /* 0x400088CA: push esi */
   1305     esi = ecx; /* 0x400088CB: mov esi, ecx */
   1306     SET_LO8(ecx, MEM8(eax)); /* 0x400088CD: mov cl, byte ptr [eax] */
   1307     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x400088CF: mov byte ptr [esi], cl */
   1308     SET_LO8(eax, MEM8(edx)); /* 0x400088D1: mov al, byte ptr [edx] */
   1309     SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x400088D3: mov cl, byte ptr [ebp + 0xc] */
   1310     PUSH32(esp, edi); /* 0x400088D6: push edi */
   1311     PUSH32(esp, 0x24u); /* 0x400088D7: push 0x24 */
   1312     MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x400088D9: mov byte ptr [esi + 1], al */
   1313     MEM8(esi + 0xC) = (uint8_t)(LO8(ecx)); /* 0x400088DC: mov byte ptr [esi + 0xc], cl */
   1314     RECOMP_ICALL(0x40014704u); /* 0x400088DF: call 0x40014704 */ /* not lifted */
   1315     RECOMP_FLAGS_IN();
   1316     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1317     ebx = 0; /* 0x400088E4: xor ebx, ebx */
   1318     _cf = 0;
   1319     _flag_k = FK_TEST;
   1320     MEM32(eax + 0x4) = ebx; /* 0x400088E6: mov dword ptr [eax + 4], ebx */
   1321     MEM8(eax + 0x21) = (uint8_t)(LO8(ebx)); /* 0x400088E9: mov byte ptr [eax + 0x21], bl */
   1322     SET_LO8(ecx, 1); /* 0x400088EC: mov cl, 1 */
   1323     MEM8(eax + 0x20) = (uint8_t)(LO8(ecx)); /* 0x400088EE: mov byte ptr [eax + 0x20], cl */
   1324     MEM32(esi + 0x8) = eax; /* 0x400088F1: mov dword ptr [esi + 8], eax */
   1325     MEM8(eax + 0x21) = (uint8_t)(LO8(ecx)); /* 0x400088F4: mov byte ptr [eax + 0x21], cl */
   1326     edx = MEM32(esi + 0x8); /* 0x400088F7: mov edx, dword ptr [esi + 8] */
   1327     MEM32(edx) = ebx; /* 0x400088FA: mov dword ptr [edx], ebx */
   1328     eax = MEM32(esi + 0x8); /* 0x400088FC: mov eax, dword ptr [esi + 8] */
   1329     MEM32(eax + 0x8) = ebx; /* 0x400088FF: mov dword ptr [eax + 8], ebx */
   1330     edi = MEM32(esi + 0x8); /* 0x40008902: mov edi, dword ptr [esi + 8] */
   1331     PUSH32(esp, 0x24u); /* 0x40008905: push 0x24 */
   1332     RECOMP_ICALL(0x40014704u); /* 0x40008907: call 0x40014704 */ /* not lifted */
   1333     RECOMP_FLAGS_IN();
   1334     MEM32(eax + 0x4) = edi; /* 0x4000890C: mov dword ptr [eax + 4], edi */
   1335     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x4000890F: mov byte ptr [eax + 0x20], bl */
   1336     MEM8(eax + 0x21) = (uint8_t)(LO8(ebx)); /* 0x40008912: mov byte ptr [eax + 0x21], bl */
   1337     MEM32(esi + 0x4) = eax; /* 0x40008915: mov dword ptr [esi + 4], eax */
   1338     MEM32(eax) = eax; /* 0x40008918: mov dword ptr [eax], eax */
   1339     eax = MEM32(esi + 0x4); /* 0x4000891A: mov eax, dword ptr [esi + 4] */
   1340     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1341     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1342     esp = esp + 8; /* 0x4000891D: add esp, 8 */
   1343     _flag_k = FK_ADD;
   1344     MEM32(eax + 0x8) = eax; /* 0x40008920: mov dword ptr [eax + 8], eax */
   1345     edi = POP32_VAL(esp); /* 0x40008923: pop edi */
   1346     MEM32(esi + 0x10) = ebx; /* 0x40008924: mov dword ptr [esi + 0x10], ebx */
   1347     eax = esi; /* 0x40008927: mov eax, esi */
   1348     esi = POP32_VAL(esp); /* 0x40008929: pop esi */
   1349     ebx = POP32_VAL(esp); /* 0x4000892A: pop ebx */
   1350     ebp = POP32_VAL(esp); /* 0x4000892B: pop ebp */
   1351     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4000892C: ret 0xc */
   1352     RECOMP_REGS_OUT();
   1353 }
   1354 
   1355 void sub_40008930(void) {
   1356     int _fpu_cmp = 0;
   1357     uint32_t _cf = 0;
   1358     int _df = 1;
   1359     uint32_t _flag_k = FK_NONE;
   1360     uint32_t _flag_a = 0, _flag_b = 0;
   1361     uint32_t _itail_tgt = 0;
   1362     RECOMP_REGS_LOCALS
   1363     RECOMP_ENTER(0x40008930u);
   1364 
   1365 L_40008930:
   1366     PUSH32(esp, ebp); /* 0x40008930: push ebp */
   1367     ebp = esp; /* 0x40008931: mov ebp, esp */
   1368     eax = MEM32(ebp + 0x8); /* 0x40008933: mov eax, dword ptr [ebp + 8] */
   1369     PUSH32(esp, esi); /* 0x40008936: push esi */
   1370     PUSH32(esp, edi); /* 0x40008937: push edi */
   1371     edi = ecx; /* 0x40008938: mov edi, ecx */
   1372     /* cmp edi, eax */ /* 0x4000893A: cmp edi, eax */
   1373     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1375     _flag_k = FK_CMP;
   1376     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008948; /* 0x4000893C: je 0x40008948 */
   1377 L_4000893E:
   1378     ecx = MEM32(eax); /* 0x4000893E: mov ecx, dword ptr [eax] */
   1379     MEM32(edi) = ecx; /* 0x40008940: mov dword ptr [edi], ecx */
   1380     edx = MEM32(eax + 0x4); /* 0x40008942: mov edx, dword ptr [eax + 4] */
   1381     MEM32(edi + 0x4) = edx; /* 0x40008945: mov dword ptr [edi + 4], edx */
   1382 L_40008948:
   1383     esi = MEM32(ebp + 0xC); /* 0x40008948: mov esi, dword ptr [ebp + 0xc] */
   1384     SET_LO8(eax, MEM8(esi)); /* 0x4000894B: mov al, byte ptr [esi] */
   1385     PUSH32(esp, 0xCu); /* 0x4000894D: push 0xc */
   1386     MEM8(edi + 0x8) = (uint8_t)(LO8(eax)); /* 0x4000894F: mov byte ptr [edi + 8], al */
   1387     RECOMP_ICALL(0x40014704u); /* 0x40008952: call 0x40014704 */ /* not lifted */
   1388     RECOMP_FLAGS_IN();
   1389     MEM32(eax) = eax; /* 0x40008957: mov dword ptr [eax], eax */
   1390     MEM32(eax + 0x4) = eax; /* 0x40008959: mov dword ptr [eax + 4], eax */
   1391     MEM32(edi + 0xC) = eax; /* 0x4000895C: mov dword ptr [edi + 0xc], eax */
   1392     MEM32(edi + 0x10) = 0; /* 0x4000895F: mov dword ptr [edi + 0x10], 0 */
   1393     edx = MEM32(esi + 0x4); /* 0x40008966: mov edx, dword ptr [esi + 4] */
   1394     ecx = MEM32(edx); /* 0x40008969: mov ecx, dword ptr [edx] */
   1395     esi = MEM32(eax); /* 0x4000896B: mov esi, dword ptr [eax] */
   1396     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1397     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1398     esp = esp + 4; /* 0x4000896D: add esp, 4 */
   1399     _flag_k = FK_ADD;
   1400     /* cmp ecx, edx */ /* 0x40008970: cmp ecx, edx */
   1401     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1403     _flag_k = FK_CMP;
   1404     MEM32(ebp + 0xC) = edx; /* 0x40008972: mov dword ptr [ebp + 0xc], edx */
   1405     MEM32(ebp + 0x8) = ecx; /* 0x40008975: mov dword ptr [ebp + 8], ecx */
   1406     if (CMP_EQ(_flag_a, _flag_b)) goto L_400089D3; /* 0x40008978: je 0x400089d3 */
   1407 L_4000897A:
   1408     PUSH32(esp, ebx); /* 0x4000897A: push ebx */
   1409 L_4000897B:
   1410     ebx = MEM32(esi + 0x4); /* 0x4000897B: mov ebx, dword ptr [esi + 4] */
   1411     PUSH32(esp, 0xCu); /* 0x4000897E: push 0xc */
   1412     RECOMP_ICALL(0x40014704u); /* 0x40008980: call 0x40014704 */ /* not lifted */
   1413     RECOMP_FLAGS_IN();
   1414     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1415     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1416     esp = esp + 4; /* 0x40008985: add esp, 4 */
   1417     _flag_k = FK_ADD;
   1418     /* test esi, esi */ /* 0x40008988: test esi, esi */
   1419     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1420     _cf = 0;
   1421     _flag_k = FK_TEST;
   1422     ecx = esi; /* 0x4000898A: mov ecx, esi */
   1423     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008990; /* 0x4000898C: jne 0x40008990 */
   1424 L_4000898E:
   1425     ecx = eax; /* 0x4000898E: mov ecx, eax */
   1426 L_40008990:
   1427     /* test ebx, ebx */ /* 0x40008990: test ebx, ebx */
   1428     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1429     _cf = 0;
   1430     _flag_k = FK_TEST;
   1431     MEM32(eax) = ecx; /* 0x40008992: mov dword ptr [eax], ecx */
   1432     ecx = ebx; /* 0x40008994: mov ecx, ebx */
   1433     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000899A; /* 0x40008996: jne 0x4000899a */
   1434 L_40008998:
   1435     ecx = eax; /* 0x40008998: mov ecx, eax */
   1436 L_4000899A:
   1437     MEM32(eax + 0x4) = ecx; /* 0x4000899A: mov dword ptr [eax + 4], ecx */
   1438     MEM32(esi + 0x4) = eax; /* 0x4000899D: mov dword ptr [esi + 4], eax */
   1439     ecx = MEM32(eax + 0x4); /* 0x400089A0: mov ecx, dword ptr [eax + 4] */
   1440     MEM32(ecx) = eax; /* 0x400089A3: mov dword ptr [ecx], eax */
   1441     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   1442     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1443     eax = eax + 8; /* 0x400089A5: add eax, 8 */
   1444     _flag_k = FK_ADD;
   1445     /* test eax, eax */ /* 0x400089A8: test eax, eax */
   1446     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1447     _cf = 0;
   1448     _flag_k = FK_TEST;
   1449     if (TEST_Z(_flag_a, _flag_b)) goto L_400089B4; /* 0x400089AA: je 0x400089b4 */
   1450 L_400089AC:
   1451     edx = MEM32(ebp + 0x8); /* 0x400089AC: mov edx, dword ptr [ebp + 8] */
   1452     ecx = MEM32(edx + 0x8); /* 0x400089AF: mov ecx, dword ptr [edx + 8] */
   1453     MEM32(eax) = ecx; /* 0x400089B2: mov dword ptr [eax], ecx */
   1454 L_400089B4:
   1455     edx = MEM32(edi + 0x10); /* 0x400089B4: mov edx, dword ptr [edi + 0x10] */
   1456     ecx = MEM32(ebp + 0xC); /* 0x400089B7: mov ecx, dword ptr [ebp + 0xc] */
   1457     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1458     edx = edx + 1; /* 0x400089BA: inc edx */
   1459     _flag_k = FK_INC;
   1460     MEM32(edi + 0x10) = edx; /* 0x400089BB: mov dword ptr [edi + 0x10], edx */
   1461     edx = MEM32(ebp + 0x8); /* 0x400089BE: mov edx, dword ptr [ebp + 8] */
   1462     eax = MEM32(edx); /* 0x400089C1: mov eax, dword ptr [edx] */
   1463     /* cmp eax, ecx */ /* 0x400089C3: cmp eax, ecx */
   1464     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1465     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1466     _flag_k = FK_CMP;
   1467     MEM32(ebp + 0x8) = eax; /* 0x400089C5: mov dword ptr [ebp + 8], eax */
   1468     RECOMP_BACKEDGE();
   1469     if (CMP_NE(_flag_a, _flag_b)) goto L_4000897B; /* 0x400089C8: jne 0x4000897b */
   1470 L_400089CA:
   1471     ebx = POP32_VAL(esp); /* 0x400089CA: pop ebx */
   1472     eax = edi; /* 0x400089CB: mov eax, edi */
   1473     edi = POP32_VAL(esp); /* 0x400089CD: pop edi */
   1474     esi = POP32_VAL(esp); /* 0x400089CE: pop esi */
   1475     ebp = POP32_VAL(esp); /* 0x400089CF: pop ebp */
   1476     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x400089D0: ret 8 */
   1477 L_400089D3:
   1478     eax = edi; /* 0x400089D3: mov eax, edi */
   1479     edi = POP32_VAL(esp); /* 0x400089D5: pop edi */
   1480     esi = POP32_VAL(esp); /* 0x400089D6: pop esi */
   1481     ebp = POP32_VAL(esp); /* 0x400089D7: pop ebp */
   1482     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x400089D8: ret 8 */
   1483     RECOMP_REGS_OUT();
   1484 }
   1485 
   1486 void sub_400089E0(void) {
   1487     int _fpu_cmp = 0;
   1488     uint32_t _cf = 0;
   1489     int _df = 1;
   1490     uint32_t _flag_k = FK_NONE;
   1491     uint32_t _flag_a = 0, _flag_b = 0;
   1492     uint32_t _itail_tgt = 0;
   1493     RECOMP_REGS_LOCALS
   1494     RECOMP_ENTER(0x400089E0u);
   1495 
   1496 L_400089E0:
   1497     PUSH32(esp, ebp); /* 0x400089E0: push ebp */
   1498     ebp = esp; /* 0x400089E1: mov ebp, esp */
   1499     PUSH32(esp, ecx); /* 0x400089E3: push ecx */
   1500     eax = MEM32(ebp + 0x10); /* 0x400089E4: mov eax, dword ptr [ebp + 0x10] */
   1501     PUSH32(esp, ebx); /* 0x400089E7: push ebx */
   1502     ebx = MEM32(ebp + 0xC); /* 0x400089E8: mov ebx, dword ptr [ebp + 0xc] */
   1503     /* cmp ebx, eax */ /* 0x400089EB: cmp ebx, eax */
   1504     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   1505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1506     _flag_k = FK_CMP;
   1507     MEM32(ebp + (-0x4)) = ecx; /* 0x400089ED: mov dword ptr [ebp - 4], ecx */
   1508     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008A3C; /* 0x400089F0: je 0x40008a3c */
   1509 L_400089F2:
   1510     PUSH32(esp, esi); /* 0x400089F2: push esi */
   1511     PUSH32(esp, edi); /* 0x400089F3: push edi */
   1512     edi = MEM32(ebp + 0x8); /* 0x400089F4: mov edi, dword ptr [ebp + 8] */
   1513 L_400089F7:
   1514     esi = MEM32(edi + 0x4); /* 0x400089F7: mov esi, dword ptr [edi + 4] */
   1515     PUSH32(esp, 0xCu); /* 0x400089FA: push 0xc */
   1516     RECOMP_ICALL(0x40014704u); /* 0x400089FC: call 0x40014704 */ /* not lifted */
   1517     RECOMP_FLAGS_IN();
   1518     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1520     esp = esp + 4; /* 0x40008A01: add esp, 4 */
   1521     _flag_k = FK_ADD;
   1522     /* test edi, edi */ /* 0x40008A04: test edi, edi */
   1523     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1524     _cf = 0;
   1525     _flag_k = FK_TEST;
   1526     ecx = edi; /* 0x40008A06: mov ecx, edi */
   1527     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008A0C; /* 0x40008A08: jne 0x40008a0c */
   1528 L_40008A0A:
   1529     ecx = eax; /* 0x40008A0A: mov ecx, eax */
   1530 L_40008A0C:
   1531     /* test esi, esi */ /* 0x40008A0C: test esi, esi */
   1532     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1533     _cf = 0;
   1534     _flag_k = FK_TEST;
   1535     MEM32(eax) = ecx; /* 0x40008A0E: mov dword ptr [eax], ecx */
   1536     ecx = esi; /* 0x40008A10: mov ecx, esi */
   1537     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008A16; /* 0x40008A12: jne 0x40008a16 */
   1538 L_40008A14:
   1539     ecx = eax; /* 0x40008A14: mov ecx, eax */
   1540 L_40008A16:
   1541     MEM32(eax + 0x4) = ecx; /* 0x40008A16: mov dword ptr [eax + 4], ecx */
   1542     MEM32(edi + 0x4) = eax; /* 0x40008A19: mov dword ptr [edi + 4], eax */
   1543     ecx = MEM32(eax + 0x4); /* 0x40008A1C: mov ecx, dword ptr [eax + 4] */
   1544     MEM32(ecx) = eax; /* 0x40008A1F: mov dword ptr [ecx], eax */
   1545     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   1546     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1547     eax = eax + 8; /* 0x40008A21: add eax, 8 */
   1548     _flag_k = FK_ADD;
   1549     /* test eax, eax */ /* 0x40008A24: test eax, eax */
   1550     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1551     _cf = 0;
   1552     _flag_k = FK_TEST;
   1553     if (TEST_Z(_flag_a, _flag_b)) goto L_40008A2D; /* 0x40008A26: je 0x40008a2d */
   1554 L_40008A28:
   1555     edx = MEM32(ebx + 0x8); /* 0x40008A28: mov edx, dword ptr [ebx + 8] */
   1556     MEM32(eax) = edx; /* 0x40008A2B: mov dword ptr [eax], edx */
   1557 L_40008A2D:
   1558     eax = MEM32(ebp + (-0x4)); /* 0x40008A2D: mov eax, dword ptr [ebp - 4] */
   1559     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(1);
   1560     MEM32(eax + 0x8) = MEM32(eax + 0x8) + 1; /* 0x40008A30: inc dword ptr [eax + 8] */
   1561     _flag_k = FK_INC;
   1562     ebx = MEM32(ebx); /* 0x40008A33: mov ebx, dword ptr [ebx] */
   1563     /* cmp ebx, MEM32(ebp + 0x10) */ /* 0x40008A35: cmp ebx, dword ptr [ebp + 0x10] */
   1564     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0x10));
   1565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1566     _flag_k = FK_CMP;
   1567     RECOMP_BACKEDGE();
   1568     if (CMP_NE(_flag_a, _flag_b)) goto L_400089F7; /* 0x40008A38: jne 0x400089f7 */
   1569 L_40008A3A:
   1570     edi = POP32_VAL(esp); /* 0x40008A3A: pop edi */
   1571     esi = POP32_VAL(esp); /* 0x40008A3B: pop esi */
   1572 L_40008A3C:
   1573     ebx = POP32_VAL(esp); /* 0x40008A3C: pop ebx */
   1574     esp = ebp; /* 0x40008A3D: mov esp, ebp */
   1575     ebp = POP32_VAL(esp); /* 0x40008A3F: pop ebp */
   1576     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008A40: ret 0xc */
   1577     RECOMP_REGS_OUT();
   1578 }
   1579 
   1580 void sub_40008A50(void) {
   1581     int _fpu_cmp = 0;
   1582     uint32_t _cf = 0;
   1583     int _df = 1;
   1584     uint32_t _flag_k = FK_NONE;
   1585     uint32_t _flag_a = 0, _flag_b = 0;
   1586     uint32_t _itail_tgt = 0;
   1587     RECOMP_REGS_LOCALS
   1588     RECOMP_ENTER(0x40008A50u);
   1589 
   1590 L_40008A50:
   1591     PUSH32(esp, ebp); /* 0x40008A50: push ebp */
   1592     ebp = esp; /* 0x40008A51: mov ebp, esp */
   1593     edx = MEM32(ecx); /* 0x40008A53: mov edx, dword ptr [ecx] */
   1594     eax = MEM32(edx); /* 0x40008A55: mov eax, dword ptr [edx] */
   1595     MEM32(ecx) = eax; /* 0x40008A57: mov dword ptr [ecx], eax */
   1596     eax = MEM32(ebp + 0x8); /* 0x40008A59: mov eax, dword ptr [ebp + 8] */
   1597     MEM32(eax) = edx; /* 0x40008A5C: mov dword ptr [eax], edx */
   1598     ebp = POP32_VAL(esp); /* 0x40008A5E: pop ebp */
   1599     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008A5F: ret 8 */
   1600     RECOMP_REGS_OUT();
   1601 }
   1602 
   1603 void sub_40008A70(void) {
   1604     int _fpu_cmp = 0;
   1605     uint32_t _cf = 0;
   1606     int _df = 1;
   1607     uint32_t _flag_k = FK_NONE;
   1608     uint32_t _flag_a = 0, _flag_b = 0;
   1609     uint32_t _itail_tgt = 0;
   1610     RECOMP_REGS_LOCALS
   1611     RECOMP_ENTER(0x40008A70u);
   1612 
   1613 L_40008A70:
   1614     PUSH32(esp, ebp); /* 0x40008A70: push ebp */
   1615     ebp = esp; /* 0x40008A71: mov ebp, esp */
   1616     PUSH32(esp, ebx); /* 0x40008A73: push ebx */
   1617     ebx = MEM32(ebp + 0x10); /* 0x40008A74: mov ebx, dword ptr [ebp + 0x10] */
   1618     PUSH32(esp, esi); /* 0x40008A77: push esi */
   1619     esi = ecx; /* 0x40008A78: mov esi, ecx */
   1620     eax = MEM32(esi + 0x10); /* 0x40008A7A: mov eax, dword ptr [esi + 0x10] */
   1621     /* test eax, eax */ /* 0x40008A7D: test eax, eax */
   1622     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1623     _cf = 0;
   1624     _flag_k = FK_TEST;
   1625     ecx = MEM32(ebp + 0xC); /* 0x40008A7F: mov ecx, dword ptr [ebp + 0xc] */
   1626     PUSH32(esp, edi); /* 0x40008A82: push edi */
   1627     if (TEST_Z(_flag_a, _flag_b)) goto L_40008AED; /* 0x40008A83: je 0x40008aed */
   1628 L_40008A85:
   1629     eax = MEM32(esi + 0x4); /* 0x40008A85: mov eax, dword ptr [esi + 4] */
   1630     /* cmp ecx, MEM32(eax) */ /* 0x40008A88: cmp ecx, dword ptr [eax] */
   1631     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   1632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1633     _flag_k = FK_CMP;
   1634     if (CMP_NE(_flag_a, _flag_b)) goto L_40008AED; /* 0x40008A8A: jne 0x40008aed */
   1635 L_40008A8C:
   1636     /* cmp ebx, eax */ /* 0x40008A8C: cmp ebx, eax */
   1637     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   1638     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1639     _flag_k = FK_CMP;
   1640     if (CMP_NE(_flag_a, _flag_b)) goto L_40008AED; /* 0x40008A8E: jne 0x40008aed */
   1641 L_40008A90:
   1642     ebx = MEM32(eax + 0x4); /* 0x40008A90: mov ebx, dword ptr [eax + 4] */
   1643     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x40008A93: cmp ebx, dword ptr [esi + 8] */
   1644     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1645     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1646     _flag_k = FK_CMP;
   1647     edi = ebx; /* 0x40008A96: mov edi, ebx */
   1648     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008AC1; /* 0x40008A98: je 0x40008ac1 */
   1649 L_40008A9A:
   1650     eax = MEM32(edi + 0x8); /* 0x40008A9A: mov eax, dword ptr [edi + 8] */
   1651     PUSH32(esp, eax); /* 0x40008A9D: push eax */
   1652     ecx = esi; /* 0x40008A9E: mov ecx, esi */
   1653     RECOMP_ICALL(0x4000D8E0u); /* 0x40008AA0: call 0x4000d8e0 */ /* not lifted */
   1654     RECOMP_FLAGS_IN();
   1655     edi = MEM32(edi); /* 0x40008AA5: mov edi, dword ptr [edi] */
   1656     ecx = ebx + 0xC; /* 0x40008AA7: lea ecx, [ebx + 0xc] */
   1657     RECOMP_ICALL(0x400073A0u); /* 0x40008AAA: call 0x400073a0 */ /* not lifted */
   1658     RECOMP_FLAGS_IN();
   1659     PUSH32(esp, ebx); /* 0x40008AAF: push ebx */
   1660     RECOMP_ICALL(0x400146F2u); /* 0x40008AB0: call 0x400146f2 */ /* not lifted */
   1661     RECOMP_FLAGS_IN();
   1662     eax = MEM32(esi + 0x8); /* 0x40008AB5: mov eax, dword ptr [esi + 8] */
   1663     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1664     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1665     esp = esp + 4; /* 0x40008AB8: add esp, 4 */
   1666     _flag_k = FK_ADD;
   1667     /* cmp edi, eax */ /* 0x40008ABB: cmp edi, eax */
   1668     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1670     _flag_k = FK_CMP;
   1671     ebx = edi; /* 0x40008ABD: mov ebx, edi */
   1672     RECOMP_BACKEDGE();
   1673     if (CMP_NE(_flag_a, _flag_b)) goto L_40008A9A; /* 0x40008ABF: jne 0x40008a9a */
   1674 L_40008AC1:
   1675     ecx = MEM32(esi + 0x4); /* 0x40008AC1: mov ecx, dword ptr [esi + 4] */
   1676     edx = MEM32(esi + 0x8); /* 0x40008AC4: mov edx, dword ptr [esi + 8] */
   1677     MEM32(ecx + 0x4) = edx; /* 0x40008AC7: mov dword ptr [ecx + 4], edx */
   1678     eax = MEM32(esi + 0x4); /* 0x40008ACA: mov eax, dword ptr [esi + 4] */
   1679     MEM32(esi + 0x10) = 0; /* 0x40008ACD: mov dword ptr [esi + 0x10], 0 */
   1680     MEM32(eax) = eax; /* 0x40008AD4: mov dword ptr [eax], eax */
   1681     eax = MEM32(esi + 0x4); /* 0x40008AD6: mov eax, dword ptr [esi + 4] */
   1682     MEM32(eax + 0x8) = eax; /* 0x40008AD9: mov dword ptr [eax + 8], eax */
   1683     eax = MEM32(esi + 0x4); /* 0x40008ADC: mov eax, dword ptr [esi + 4] */
   1684     ecx = MEM32(eax); /* 0x40008ADF: mov ecx, dword ptr [eax] */
   1685     eax = MEM32(ebp + 0x8); /* 0x40008AE1: mov eax, dword ptr [ebp + 8] */
   1686     edi = POP32_VAL(esp); /* 0x40008AE4: pop edi */
   1687     esi = POP32_VAL(esp); /* 0x40008AE5: pop esi */
   1688     MEM32(eax) = ecx; /* 0x40008AE6: mov dword ptr [eax], ecx */
   1689     ebx = POP32_VAL(esp); /* 0x40008AE8: pop ebx */
   1690     ebp = POP32_VAL(esp); /* 0x40008AE9: pop ebp */
   1691     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008AEA: ret 0xc */
   1692 L_40008AED:
   1693     /* cmp ecx, ebx */ /* 0x40008AED: cmp ecx, ebx */
   1694     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1696     _flag_k = FK_CMP;
   1697     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008B0E; /* 0x40008AEF: je 0x40008b0e */
   1698 L_40008AF1:
   1699     edi = ecx; /* 0x40008AF1: mov edi, ecx */
   1700     ecx = ebp + 0xC; /* 0x40008AF3: lea ecx, [ebp + 0xc] */
   1701     RECOMP_ICALL(0x40001C50u); /* 0x40008AF6: call 0x40001c50 */ /* not lifted */
   1702     RECOMP_FLAGS_IN();
   1703     PUSH32(esp, edi); /* 0x40008AFB: push edi */
   1704     ecx = ebp + 0x10; /* 0x40008AFC: lea ecx, [ebp + 0x10] */
   1705     PUSH32(esp, ecx); /* 0x40008AFF: push ecx */
   1706     ecx = esi; /* 0x40008B00: mov ecx, esi */
   1707     RECOMP_ICALL(0x4000D050u); /* 0x40008B02: call 0x4000d050 */ /* not lifted */
   1708     RECOMP_FLAGS_IN();
   1709     ecx = MEM32(ebp + 0xC); /* 0x40008B07: mov ecx, dword ptr [ebp + 0xc] */
   1710     /* cmp ecx, ebx */ /* 0x40008B0A: cmp ecx, ebx */
   1711     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1712     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1713     _flag_k = FK_CMP;
   1714     RECOMP_BACKEDGE();
   1715     if (CMP_NE(_flag_a, _flag_b)) goto L_40008AF1; /* 0x40008B0C: jne 0x40008af1 */
   1716 L_40008B0E:
   1717     eax = MEM32(ebp + 0x8); /* 0x40008B0E: mov eax, dword ptr [ebp + 8] */
   1718     edi = POP32_VAL(esp); /* 0x40008B11: pop edi */
   1719     esi = POP32_VAL(esp); /* 0x40008B12: pop esi */
   1720     MEM32(eax) = ecx; /* 0x40008B13: mov dword ptr [eax], ecx */
   1721     ebx = POP32_VAL(esp); /* 0x40008B15: pop ebx */
   1722     ebp = POP32_VAL(esp); /* 0x40008B16: pop ebp */
   1723     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008B17: ret 0xc */
   1724     RECOMP_REGS_OUT();
   1725 }
   1726 
   1727 void sub_40008B20(void) {
   1728     int _fpu_cmp = 0;
   1729     uint32_t _cf = 0;
   1730     int _df = 1;
   1731     uint32_t _flag_k = FK_NONE;
   1732     uint32_t _flag_a = 0, _flag_b = 0;
   1733     uint32_t _itail_tgt = 0;
   1734     RECOMP_REGS_LOCALS
   1735     RECOMP_ENTER(0x40008B20u);
   1736 
   1737 L_40008B20:
   1738     PUSH32(esp, ebp); /* 0x40008B20: push ebp */
   1739     ebp = esp; /* 0x40008B21: mov ebp, esp */
   1740     PUSH32(esp, ecx); /* 0x40008B23: push ecx */
   1741     edx = MEM32(ecx + 0x4); /* 0x40008B24: mov edx, dword ptr [ecx + 4] */
   1742     eax = MEM32(edx + 0x4); /* 0x40008B27: mov eax, dword ptr [edx + 4] */
   1743     ecx = MEM32(ecx + 0x8); /* 0x40008B2A: mov ecx, dword ptr [ecx + 8] */
   1744     /* cmp eax, ecx */ /* 0x40008B2D: cmp eax, ecx */
   1745     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1746     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1747     _flag_k = FK_CMP;
   1748     PUSH32(esp, ebx); /* 0x40008B2F: push ebx */
   1749     ebx = MEM32(ebp + 0xC); /* 0x40008B30: mov ebx, dword ptr [ebp + 0xc] */
   1750     PUSH32(esp, esi); /* 0x40008B33: push esi */
   1751     esi = edx; /* 0x40008B34: mov esi, edx */
   1752     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008B4E; /* 0x40008B36: je 0x40008b4e */
   1753 L_40008B38:
   1754     PUSH32(esp, edi); /* 0x40008B38: push edi */
   1755     edi = MEM32(ebx); /* 0x40008B39: mov edi, dword ptr [ebx] */
   1756 L_40008B3B:
   1757     /* cmp MEM32(eax + 0xC), edi */ /* 0x40008B3B: cmp dword ptr [eax + 0xc], edi */
   1758     _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(edi);
   1759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1760     _flag_k = FK_CMP;
   1761     if (CMP_AE(_flag_a, _flag_b)) goto L_40008B45; /* 0x40008B3E: jae 0x40008b45 */
   1762 L_40008B40:
   1763     eax = MEM32(eax + 0x8); /* 0x40008B40: mov eax, dword ptr [eax + 8] */
   1764     goto L_40008B49; /* 0x40008B43: jmp 0x40008b49 */
   1765 L_40008B45:
   1766     esi = eax; /* 0x40008B45: mov esi, eax */
   1767     eax = MEM32(eax); /* 0x40008B47: mov eax, dword ptr [eax] */
   1768 L_40008B49:
   1769     /* cmp eax, ecx */ /* 0x40008B49: cmp eax, ecx */
   1770     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1772     _flag_k = FK_CMP;
   1773     RECOMP_BACKEDGE();
   1774     if (CMP_NE(_flag_a, _flag_b)) goto L_40008B3B; /* 0x40008B4B: jne 0x40008b3b */
   1775 L_40008B4D:
   1776     edi = POP32_VAL(esp); /* 0x40008B4D: pop edi */
   1777 L_40008B4E:
   1778     /* cmp esi, edx */ /* 0x40008B4E: cmp esi, edx */
   1779     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1781     _flag_k = FK_CMP;
   1782     MEM32(ebp + 0xC) = esi; /* 0x40008B50: mov dword ptr [ebp + 0xc], esi */
   1783     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008B6E; /* 0x40008B53: je 0x40008b6e */
   1784 L_40008B55:
   1785     eax = MEM32(ebx); /* 0x40008B55: mov eax, dword ptr [ebx] */
   1786     /* cmp eax, MEM32(esi + 0xC) */ /* 0x40008B57: cmp eax, dword ptr [esi + 0xc] */
   1787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   1788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1789     _flag_k = FK_CMP;
   1790     if (CMP_B(_flag_a, _flag_b)) goto L_40008B6E; /* 0x40008B5A: jb 0x40008b6e */
   1791 L_40008B5C:
   1792     eax = ebp + 0xC; /* 0x40008B5C: lea eax, [ebp + 0xc] */
   1793     ecx = MEM32(eax); /* 0x40008B5F: mov ecx, dword ptr [eax] */
   1794     eax = MEM32(ebp + 0x8); /* 0x40008B61: mov eax, dword ptr [ebp + 8] */
   1795     esi = POP32_VAL(esp); /* 0x40008B64: pop esi */
   1796     MEM32(eax) = ecx; /* 0x40008B65: mov dword ptr [eax], ecx */
   1797     ebx = POP32_VAL(esp); /* 0x40008B67: pop ebx */
   1798     esp = ebp; /* 0x40008B68: mov esp, ebp */
   1799     ebp = POP32_VAL(esp); /* 0x40008B6A: pop ebp */
   1800     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008B6B: ret 8 */
   1801 L_40008B6E:
   1802     eax = ebp + (-0x4); /* 0x40008B6E: lea eax, [ebp - 4] */
   1803     MEM32(ebp + (-0x4)) = edx; /* 0x40008B71: mov dword ptr [ebp - 4], edx */
   1804     ecx = MEM32(eax); /* 0x40008B74: mov ecx, dword ptr [eax] */
   1805     eax = MEM32(ebp + 0x8); /* 0x40008B76: mov eax, dword ptr [ebp + 8] */
   1806     esi = POP32_VAL(esp); /* 0x40008B79: pop esi */
   1807     MEM32(eax) = ecx; /* 0x40008B7A: mov dword ptr [eax], ecx */
   1808     ebx = POP32_VAL(esp); /* 0x40008B7C: pop ebx */
   1809     esp = ebp; /* 0x40008B7D: mov esp, ebp */
   1810     ebp = POP32_VAL(esp); /* 0x40008B7F: pop ebp */
   1811     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008B80: ret 8 */
   1812     RECOMP_REGS_OUT();
   1813 }
   1814 
   1815 void sub_40008B90(void) {
   1816     int _fpu_cmp = 0;
   1817     uint32_t _cf = 0;
   1818     int _df = 1;
   1819     uint32_t _flag_k = FK_NONE;
   1820     uint32_t _flag_a = 0, _flag_b = 0;
   1821     uint32_t _itail_tgt = 0;
   1822     RECOMP_REGS_LOCALS
   1823     RECOMP_ENTER(0x40008B90u);
   1824 
   1825 L_40008B90:
   1826     goto L_40008BA0; /* 0x40008B90: jmp 0x40008ba0 */
   1827 L_40008BA0:
   1828     MEM32(0x4001D05C) = 0x4001C89Cu; /* 0x40008BA0: mov dword ptr [0x4001d05c], 0x4001c89c */
   1829     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40008BAA: ret  */
   1830     RECOMP_REGS_OUT();
   1831 }
   1832 
   1833 void sub_40008BA0(void) {
   1834     int _fpu_cmp = 0;
   1835     uint32_t _cf = 0;
   1836     int _df = 1;
   1837     uint32_t _flag_k = FK_NONE;
   1838     uint32_t _flag_a = 0, _flag_b = 0;
   1839     uint32_t _itail_tgt = 0;
   1840     RECOMP_REGS_LOCALS
   1841     RECOMP_ENTER(0x40008BA0u);
   1842 
   1843 L_40008BA0:
   1844     MEM32(0x4001D05C) = 0x4001C89Cu; /* 0x40008BA0: mov dword ptr [0x4001d05c], 0x4001c89c */
   1845     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40008BAA: ret  */
   1846     RECOMP_REGS_OUT();
   1847 }
   1848 
   1849 void sub_40008BB0(void) {
   1850     int _fpu_cmp = 0;
   1851     uint32_t _cf = 0;
   1852     int _df = 1;
   1853     uint32_t _flag_k = FK_NONE;
   1854     uint32_t _flag_a = 0, _flag_b = 0;
   1855     uint32_t _itail_tgt = 0;
   1856     RECOMP_REGS_LOCALS
   1857     RECOMP_ENTER(0x40008BB0u);
   1858 
   1859 L_40008BB0:
   1860     PUSH32(esp, ebp); /* 0x40008BB0: push ebp */
   1861     ebp = esp; /* 0x40008BB1: mov ebp, esp */
   1862     PUSH32(esp, ecx); /* 0x40008BB3: push ecx */
   1863     eax = MEM32(ebp + 0x10); /* 0x40008BB4: mov eax, dword ptr [ebp + 0x10] */
   1864     PUSH32(esp, esi); /* 0x40008BB7: push esi */
   1865     esi = MEM32(ebp + 0xC); /* 0x40008BB8: mov esi, dword ptr [ebp + 0xc] */
   1866     /* cmp esi, eax */ /* 0x40008BBB: cmp esi, eax */
   1867     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1869     _flag_k = FK_CMP;
   1870     MEM32(ebp + (-0x4)) = ecx; /* 0x40008BBD: mov dword ptr [ebp - 4], ecx */
   1871     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008C14; /* 0x40008BC0: je 0x40008c14 */
   1872 L_40008BC2:
   1873     PUSH32(esp, ebx); /* 0x40008BC2: push ebx */
   1874     PUSH32(esp, edi); /* 0x40008BC3: push edi */
   1875     edi = MEM32(ebp + 0x8); /* 0x40008BC4: mov edi, dword ptr [ebp + 8] */
   1876 L_40008BC7:
   1877     ebx = MEM32(edi + 0x4); /* 0x40008BC7: mov ebx, dword ptr [edi + 4] */
   1878     PUSH32(esp, 0x10u); /* 0x40008BCA: push 0x10 */
   1879     RECOMP_ICALL(0x40014704u); /* 0x40008BCC: call 0x40014704 */ /* not lifted */
   1880     RECOMP_FLAGS_IN();
   1881     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1882     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1883     esp = esp + 4; /* 0x40008BD1: add esp, 4 */
   1884     _flag_k = FK_ADD;
   1885     /* test edi, edi */ /* 0x40008BD4: test edi, edi */
   1886     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1887     _cf = 0;
   1888     _flag_k = FK_TEST;
   1889     ecx = edi; /* 0x40008BD6: mov ecx, edi */
   1890     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008BDC; /* 0x40008BD8: jne 0x40008bdc */
   1891 L_40008BDA:
   1892     ecx = eax; /* 0x40008BDA: mov ecx, eax */
   1893 L_40008BDC:
   1894     /* test ebx, ebx */ /* 0x40008BDC: test ebx, ebx */
   1895     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1896     _cf = 0;
   1897     _flag_k = FK_TEST;
   1898     MEM32(eax) = ecx; /* 0x40008BDE: mov dword ptr [eax], ecx */
   1899     ecx = ebx; /* 0x40008BE0: mov ecx, ebx */
   1900     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008BE6; /* 0x40008BE2: jne 0x40008be6 */
   1901 L_40008BE4:
   1902     ecx = eax; /* 0x40008BE4: mov ecx, eax */
   1903 L_40008BE6:
   1904     MEM32(eax + 0x4) = ecx; /* 0x40008BE6: mov dword ptr [eax + 4], ecx */
   1905     MEM32(edi + 0x4) = eax; /* 0x40008BE9: mov dword ptr [edi + 4], eax */
   1906     ecx = MEM32(eax + 0x4); /* 0x40008BEC: mov ecx, dword ptr [eax + 4] */
   1907     MEM32(ecx) = eax; /* 0x40008BEF: mov dword ptr [ecx], eax */
   1908     ecx = esi + 0x8; /* 0x40008BF1: lea ecx, [esi + 8] */
   1909     PUSH32(esp, ecx); /* 0x40008BF4: push ecx */
   1910     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   1911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1912     eax = eax + 8; /* 0x40008BF5: add eax, 8 */
   1913     _flag_k = FK_ADD;
   1914     PUSH32(esp, eax); /* 0x40008BF8: push eax */
   1915     RECOMP_ICALL(0x4000F590u); /* 0x40008BF9: call 0x4000f590 */ /* not lifted */
   1916     RECOMP_FLAGS_IN();
   1917     eax = MEM32(ebp + (-0x4)); /* 0x40008BFE: mov eax, dword ptr [ebp - 4] */
   1918     ecx = MEM32(eax + 0x8); /* 0x40008C01: mov ecx, dword ptr [eax + 8] */
   1919     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1920     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1921     esp = esp + 8; /* 0x40008C04: add esp, 8 */
   1922     _flag_k = FK_ADD;
   1923     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1924     ecx = ecx + 1; /* 0x40008C07: inc ecx */
   1925     _flag_k = FK_INC;
   1926     MEM32(eax + 0x8) = ecx; /* 0x40008C08: mov dword ptr [eax + 8], ecx */
   1927     esi = MEM32(esi); /* 0x40008C0B: mov esi, dword ptr [esi] */
   1928     /* cmp esi, MEM32(ebp + 0x10) */ /* 0x40008C0D: cmp esi, dword ptr [ebp + 0x10] */
   1929     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + 0x10));
   1930     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1931     _flag_k = FK_CMP;
   1932     RECOMP_BACKEDGE();
   1933     if (CMP_NE(_flag_a, _flag_b)) goto L_40008BC7; /* 0x40008C10: jne 0x40008bc7 */
   1934 L_40008C12:
   1935     edi = POP32_VAL(esp); /* 0x40008C12: pop edi */
   1936     ebx = POP32_VAL(esp); /* 0x40008C13: pop ebx */
   1937 L_40008C14:
   1938     esi = POP32_VAL(esp); /* 0x40008C14: pop esi */
   1939     esp = ebp; /* 0x40008C15: mov esp, ebp */
   1940     ebp = POP32_VAL(esp); /* 0x40008C17: pop ebp */
   1941     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008C18: ret 0xc */
   1942     RECOMP_REGS_OUT();
   1943 }
   1944 
   1945 void sub_40008C20(void) {
   1946     int _fpu_cmp = 0;
   1947     uint32_t _cf = 0;
   1948     int _df = 1;
   1949     uint32_t _flag_k = FK_NONE;
   1950     uint32_t _flag_a = 0, _flag_b = 0;
   1951     uint32_t _itail_tgt = 0;
   1952     RECOMP_REGS_LOCALS
   1953     RECOMP_ENTER(0x40008C20u);
   1954 
   1955 L_40008C20:
   1956     PUSH32(esp, ebp); /* 0x40008C20: push ebp */
   1957     ebp = esp; /* 0x40008C21: mov ebp, esp */
   1958     PUSH32(esp, ebx); /* 0x40008C23: push ebx */
   1959     ebx = MEM32(ebp + 0x10); /* 0x40008C24: mov ebx, dword ptr [ebp + 0x10] */
   1960     PUSH32(esp, esi); /* 0x40008C27: push esi */
   1961     esi = MEM32(ebp + 0xC); /* 0x40008C28: mov esi, dword ptr [ebp + 0xc] */
   1962     /* cmp esi, ebx */ /* 0x40008C2B: cmp esi, ebx */
   1963     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1965     _flag_k = FK_CMP;
   1966     PUSH32(esp, edi); /* 0x40008C2D: push edi */
   1967     edi = ecx; /* 0x40008C2E: mov edi, ecx */
   1968     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008C59; /* 0x40008C30: je 0x40008c59 */
   1969 L_40008C32:
   1970     eax = esi; /* 0x40008C32: mov eax, esi */
   1971     ecx = MEM32(eax + 0x4); /* 0x40008C34: mov ecx, dword ptr [eax + 4] */
   1972     edx = MEM32(eax); /* 0x40008C37: mov edx, dword ptr [eax] */
   1973     esi = MEM32(esi); /* 0x40008C39: mov esi, dword ptr [esi] */
   1974     MEM32(ecx) = edx; /* 0x40008C3B: mov dword ptr [ecx], edx */
   1975     ecx = MEM32(eax); /* 0x40008C3D: mov ecx, dword ptr [eax] */
   1976     edx = MEM32(eax + 0x4); /* 0x40008C3F: mov edx, dword ptr [eax + 4] */
   1977     PUSH32(esp, eax); /* 0x40008C42: push eax */
   1978     MEM32(ecx + 0x4) = edx; /* 0x40008C43: mov dword ptr [ecx + 4], edx */
   1979     RECOMP_ICALL(0x400146F2u); /* 0x40008C46: call 0x400146f2 */ /* not lifted */
   1980     RECOMP_FLAGS_IN();
   1981     ecx = MEM32(edi + 0x8); /* 0x40008C4B: mov ecx, dword ptr [edi + 8] */
   1982     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1983     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1984     esp = esp + 4; /* 0x40008C4E: add esp, 4 */
   1985     _flag_k = FK_ADD;
   1986     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1987     ecx = ecx - 1; /* 0x40008C51: dec ecx */
   1988     _flag_k = FK_DEC;
   1989     /* cmp esi, ebx */ /* 0x40008C52: cmp esi, ebx */
   1990     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1992     _flag_k = FK_CMP;
   1993     MEM32(edi + 0x8) = ecx; /* 0x40008C54: mov dword ptr [edi + 8], ecx */
   1994     RECOMP_BACKEDGE();
   1995     if (CMP_NE(_flag_a, _flag_b)) goto L_40008C32; /* 0x40008C57: jne 0x40008c32 */
   1996 L_40008C59:
   1997     eax = MEM32(ebp + 0x8); /* 0x40008C59: mov eax, dword ptr [ebp + 8] */
   1998     edi = POP32_VAL(esp); /* 0x40008C5C: pop edi */
   1999     MEM32(eax) = esi; /* 0x40008C5D: mov dword ptr [eax], esi */
   2000     esi = POP32_VAL(esp); /* 0x40008C5F: pop esi */
   2001     ebx = POP32_VAL(esp); /* 0x40008C60: pop ebx */
   2002     ebp = POP32_VAL(esp); /* 0x40008C61: pop ebp */
   2003     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008C62: ret 0xc */
   2004     RECOMP_REGS_OUT();
   2005 }
   2006 
   2007 void sub_40008C70(void) {
   2008     int _fpu_cmp = 0;
   2009     uint32_t _cf = 0;
   2010     int _df = 1;
   2011     uint32_t _flag_k = FK_NONE;
   2012     uint32_t _flag_a = 0, _flag_b = 0;
   2013     uint32_t _itail_tgt = 0;
   2014     RECOMP_REGS_LOCALS
   2015     RECOMP_ENTER(0x40008C70u);
   2016 
   2017 L_40008C70:
   2018     PUSH32(esp, ebp); /* 0x40008C70: push ebp */
   2019     ebp = esp; /* 0x40008C71: mov ebp, esp */
   2020     PUSH32(esp, 0x10u); /* 0x40008C73: push 0x10 */
   2021     RECOMP_ICALL(0x40014704u); /* 0x40008C75: call 0x40014704 */ /* not lifted */
   2022     RECOMP_FLAGS_IN();
   2023     ecx = MEM32(ebp + 0x8); /* 0x40008C7A: mov ecx, dword ptr [ebp + 8] */
   2024     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2025     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2026     esp = esp + 4; /* 0x40008C7D: add esp, 4 */
   2027     _flag_k = FK_ADD;
   2028     /* test ecx, ecx */ /* 0x40008C80: test ecx, ecx */
   2029     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2030     _cf = 0;
   2031     _flag_k = FK_TEST;
   2032     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008C86; /* 0x40008C82: jne 0x40008c86 */
   2033 L_40008C84:
   2034     ecx = eax; /* 0x40008C84: mov ecx, eax */
   2035 L_40008C86:
   2036     MEM32(eax) = ecx; /* 0x40008C86: mov dword ptr [eax], ecx */
   2037     ecx = MEM32(ebp + 0xC); /* 0x40008C88: mov ecx, dword ptr [ebp + 0xc] */
   2038     /* test ecx, ecx */ /* 0x40008C8B: test ecx, ecx */
   2039     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2040     _cf = 0;
   2041     _flag_k = FK_TEST;
   2042     if (TEST_Z(_flag_a, _flag_b)) goto L_40008C96; /* 0x40008C8D: je 0x40008c96 */
   2043 L_40008C8F:
   2044     MEM32(eax + 0x4) = ecx; /* 0x40008C8F: mov dword ptr [eax + 4], ecx */
   2045     ebp = POP32_VAL(esp); /* 0x40008C92: pop ebp */
   2046     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008C93: ret 8 */
   2047 L_40008C96:
   2048     MEM32(eax + 0x4) = eax; /* 0x40008C96: mov dword ptr [eax + 4], eax */
   2049     ebp = POP32_VAL(esp); /* 0x40008C99: pop ebp */
   2050     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008C9A: ret 8 */
   2051     RECOMP_REGS_OUT();
   2052 }
   2053 
   2054 void sub_40008CA0(void) {
   2055     int _fpu_cmp = 0;
   2056     uint32_t _cf = 0;
   2057     int _df = 1;
   2058     uint32_t _flag_k = FK_NONE;
   2059     uint32_t _flag_a = 0, _flag_b = 0;
   2060     uint32_t _itail_tgt = 0;
   2061     RECOMP_REGS_LOCALS
   2062     RECOMP_ENTER(0x40008CA0u);
   2063 
   2064 L_40008CA0:
   2065     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008CA0: ret 8 */
   2066     RECOMP_REGS_OUT();
   2067 }
   2068 
   2069 void sub_40008CB0(void) {
   2070     int _fpu_cmp = 0;
   2071     uint32_t _cf = 0;
   2072     int _df = 1;
   2073     uint32_t _flag_k = FK_NONE;
   2074     uint32_t _flag_a = 0, _flag_b = 0;
   2075     uint32_t _itail_tgt = 0;
   2076     RECOMP_REGS_LOCALS
   2077     RECOMP_ENTER(0x40008CB0u);
   2078 
   2079 L_40008CB0:
   2080     PUSH32(esp, ebp); /* 0x40008CB0: push ebp */
   2081     ebp = esp; /* 0x40008CB1: mov ebp, esp */
   2082     ecx = MEM32(ebp + 0x8); /* 0x40008CB3: mov ecx, dword ptr [ebp + 8] */
   2083     edx = MEM32(ebp + 0xC); /* 0x40008CB6: mov edx, dword ptr [ebp + 0xc] */
   2084     /* cmp ecx, edx */ /* 0x40008CB9: cmp ecx, edx */
   2085     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2087     _flag_k = FK_CMP;
   2088     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008CD8; /* 0x40008CBB: je 0x40008cd8 */
   2089 L_40008CBD:
   2090     eax = MEM32(ebp + 0x10); /* 0x40008CBD: mov eax, dword ptr [ebp + 0x10] */
   2091     PUSH32(esp, esi); /* 0x40008CC0: push esi */
   2092 L_40008CC1:
   2093     /* test eax, eax */ /* 0x40008CC1: test eax, eax */
   2094     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2095     _cf = 0;
   2096     _flag_k = FK_TEST;
   2097     if (TEST_Z(_flag_a, _flag_b)) goto L_40008CC9; /* 0x40008CC3: je 0x40008cc9 */
   2098 L_40008CC5:
   2099     esi = MEM32(ecx); /* 0x40008CC5: mov esi, dword ptr [ecx] */
   2100     MEM32(eax) = esi; /* 0x40008CC7: mov dword ptr [eax], esi */
   2101 L_40008CC9:
   2102     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2103     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2104     ecx = ecx + 4; /* 0x40008CC9: add ecx, 4 */
   2105     _flag_k = FK_ADD;
   2106     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2107     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2108     eax = eax + 4; /* 0x40008CCC: add eax, 4 */
   2109     _flag_k = FK_ADD;
   2110     /* cmp ecx, edx */ /* 0x40008CCF: cmp ecx, edx */
   2111     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2112     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2113     _flag_k = FK_CMP;
   2114     RECOMP_BACKEDGE();
   2115     if (CMP_NE(_flag_a, _flag_b)) goto L_40008CC1; /* 0x40008CD1: jne 0x40008cc1 */
   2116 L_40008CD3:
   2117     esi = POP32_VAL(esp); /* 0x40008CD3: pop esi */
   2118     ebp = POP32_VAL(esp); /* 0x40008CD4: pop ebp */
   2119     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008CD5: ret 0xc */
   2120 L_40008CD8:
   2121     eax = MEM32(ebp + 0x10); /* 0x40008CD8: mov eax, dword ptr [ebp + 0x10] */
   2122     ebp = POP32_VAL(esp); /* 0x40008CDB: pop ebp */
   2123     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008CDC: ret 0xc */
   2124     RECOMP_REGS_OUT();
   2125 }
   2126 
   2127 void sub_40008CE0(void) {
   2128     int _fpu_cmp = 0;
   2129     uint32_t _cf = 0;
   2130     int _df = 1;
   2131     uint32_t _flag_k = FK_NONE;
   2132     uint32_t _flag_a = 0, _flag_b = 0;
   2133     uint32_t _itail_tgt = 0;
   2134     RECOMP_REGS_LOCALS
   2135     RECOMP_ENTER(0x40008CE0u);
   2136 
   2137 L_40008CE0:
   2138     PUSH32(esp, ebp); /* 0x40008CE0: push ebp */
   2139     ebp = esp; /* 0x40008CE1: mov ebp, esp */
   2140     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2142     esp = esp - 0xCu; /* 0x40008CE3: sub esp, 0xc */
   2143     _flag_k = FK_CMP;
   2144     PUSH32(esp, ebx); /* 0x40008CE6: push ebx */
   2145     PUSH32(esp, esi); /* 0x40008CE7: push esi */
   2146     esi = ecx; /* 0x40008CE8: mov esi, ecx */
   2147     eax = MEM32(esi + 0x8); /* 0x40008CEA: mov eax, dword ptr [esi + 8] */
   2148     ecx = MEM32(esi + 0xC); /* 0x40008CED: mov ecx, dword ptr [esi + 0xc] */
   2149     edx = MEM32(esi + 0x4); /* 0x40008CF0: mov edx, dword ptr [esi + 4] */
   2150     PUSH32(esp, edi); /* 0x40008CF3: push edi */
   2151     edi = MEM32(ebp + 0x8); /* 0x40008CF4: mov edi, dword ptr [ebp + 8] */
   2152     ebx = edi; /* 0x40008CF7: mov ebx, edi */
   2153     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2155     ecx = ecx - eax; /* 0x40008CF9: sub ecx, eax */
   2156     _flag_k = FK_CMP;
   2157     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   2158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2159     ebx = ebx - edx; /* 0x40008CFB: sub ebx, edx */
   2160     _flag_k = FK_CMP;
   2161     if (4u) _cf = (((ebx) >> 3) & 1u); /* 0x40008CFD: sar ebx, 4 */
   2162     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2163     ebx = (uint32_t)((int32_t)ebx >> 4u);
   2164     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x40008D00: sar ecx, 4 */
   2165     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2166     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2167     /* cmp ecx, 1 */ /* 0x40008D03: cmp ecx, 1 */
   2168     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2170     _flag_k = FK_CMP;
   2171     MEM32(ebp + (-0xC)) = ebx; /* 0x40008D06: mov dword ptr [ebp - 0xc], ebx */
   2172     if (CMP_AE(_flag_a, _flag_b)) goto L_40008DE6; /* 0x40008D09: jae 0x40008de6 */
   2173 L_40008D0F:
   2174     /* test edx, edx */ /* 0x40008D0F: test edx, edx */
   2175     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2176     _cf = 0;
   2177     _flag_k = FK_TEST;
   2178     if (TEST_Z(_flag_a, _flag_b)) goto L_40008D1F; /* 0x40008D11: je 0x40008d1f */
   2179 L_40008D13:
   2180     ecx = eax; /* 0x40008D13: mov ecx, eax */
   2181     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2183     ecx = ecx - edx; /* 0x40008D15: sub ecx, edx */
   2184     _flag_k = FK_CMP;
   2185     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x40008D17: sar ecx, 4 */
   2186     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2187     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2188     /* cmp ecx, 1 */ /* 0x40008D1A: cmp ecx, 1 */
   2189     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2191     _flag_k = FK_CMP;
   2192     if (CMP_A(_flag_a, _flag_b)) goto L_40008D24; /* 0x40008D1D: ja 0x40008d24 */
   2193 L_40008D1F:
   2194     ecx = 1; /* 0x40008D1F: mov ecx, 1 */
   2195 L_40008D24:
   2196     /* test edx, edx */ /* 0x40008D24: test edx, edx */
   2197     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2198     _cf = 0;
   2199     _flag_k = FK_TEST;
   2200     if (TEST_NZ(_flag_a, _flag_b)) goto L_40008D2C; /* 0x40008D26: jne 0x40008d2c */
   2201 L_40008D28:
   2202     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2203     eax = 0; /* 0x40008D28: xor eax, eax */
   2204     _cf = 0;
   2205     _flag_k = FK_TEST;
   2206     goto L_40008D31; /* 0x40008D2A: jmp 0x40008d31 */
   2207 L_40008D2C:
   2208     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2210     eax = eax - edx; /* 0x40008D2C: sub eax, edx */
   2211     _flag_k = FK_CMP;
   2212     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x40008D2E: sar eax, 4 */
   2213     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2214     eax = (uint32_t)((int32_t)eax >> 4u);
   2215 L_40008D31:
   2216     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2217     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2218     eax = eax + ecx; /* 0x40008D31: add eax, ecx */
   2219     _flag_k = FK_ADD;
   2220     /* test eax, eax */ /* 0x40008D33: test eax, eax */
   2221     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2222     _cf = 0;
   2223     _flag_k = FK_TEST;
   2224     MEM32(ebp + (-0x4)) = eax; /* 0x40008D35: mov dword ptr [ebp - 4], eax */
   2225     if (TEST_NS(_flag_a, _flag_b)) goto L_40008D3C; /* 0x40008D38: jge 0x40008d3c */
   2226 L_40008D3A:
   2227     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2228     eax = 0; /* 0x40008D3A: xor eax, eax */
   2229     _cf = 0;
   2230     _flag_k = FK_TEST;
   2231 L_40008D3C:
   2232     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x40008D3C: shl eax, 4 */
   2233     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2234     eax = eax << 4u; /* 0x40008D3C: shl eax, 4 */
   2235     PUSH32(esp, eax); /* 0x40008D3F: push eax */
   2236     RECOMP_ICALL(0x40014704u); /* 0x40008D40: call 0x40014704 */ /* not lifted */
   2237     RECOMP_FLAGS_IN();
   2238     ebx = MEM32(esi + 0x4); /* 0x40008D45: mov ebx, dword ptr [esi + 4] */
   2239     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2241     esp = esp + 4; /* 0x40008D48: add esp, 4 */
   2242     _flag_k = FK_ADD;
   2243     /* cmp ebx, edi */ /* 0x40008D4B: cmp ebx, edi */
   2244     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   2245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2246     _flag_k = FK_CMP;
   2247     MEM32(ebp + (-0x8)) = eax; /* 0x40008D4D: mov dword ptr [ebp - 8], eax */
   2248     MEM32(ebp + 0x8) = eax; /* 0x40008D50: mov dword ptr [ebp + 8], eax */
   2249     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008D72; /* 0x40008D53: je 0x40008d72 */
   2250 L_40008D55:
   2251     edx = MEM32(ebp + 0x8); /* 0x40008D55: mov edx, dword ptr [ebp + 8] */
   2252     PUSH32(esp, ebx); /* 0x40008D58: push ebx */
   2253     PUSH32(esp, edx); /* 0x40008D59: push edx */
   2254     RECOMP_ICALL(0x4000F880u); /* 0x40008D5A: call 0x4000f880 */ /* not lifted */
   2255     RECOMP_FLAGS_IN();
   2256     edx = MEM32(ebp + 0x8); /* 0x40008D5F: mov edx, dword ptr [ebp + 8] */
   2257     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   2258     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2259     edx = edx + 0x10u; /* 0x40008D62: add edx, 0x10 */
   2260     _flag_k = FK_ADD;
   2261     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u);
   2262     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2263     ebx = ebx + 0x10u; /* 0x40008D65: add ebx, 0x10 */
   2264     _flag_k = FK_ADD;
   2265     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2266     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2267     esp = esp + 8; /* 0x40008D68: add esp, 8 */
   2268     _flag_k = FK_ADD;
   2269     /* cmp ebx, edi */ /* 0x40008D6B: cmp ebx, edi */
   2270     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   2271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2272     _flag_k = FK_CMP;
   2273     MEM32(ebp + 0x8) = edx; /* 0x40008D6D: mov dword ptr [ebp + 8], edx */
   2274     RECOMP_BACKEDGE();
   2275     if (CMP_NE(_flag_a, _flag_b)) goto L_40008D55; /* 0x40008D70: jne 0x40008d55 */
   2276 L_40008D72:
   2277     eax = MEM32(ebp + 0xC); /* 0x40008D72: mov eax, dword ptr [ebp + 0xc] */
   2278     ecx = MEM32(ebp + 0x8); /* 0x40008D75: mov ecx, dword ptr [ebp + 8] */
   2279     PUSH32(esp, eax); /* 0x40008D78: push eax */
   2280     PUSH32(esp, ecx); /* 0x40008D79: push ecx */
   2281     RECOMP_ICALL(0x4000F880u); /* 0x40008D7A: call 0x4000f880 */ /* not lifted */
   2282     RECOMP_FLAGS_IN();
   2283     edx = MEM32(ebp + 0x8); /* 0x40008D7F: mov edx, dword ptr [ebp + 8] */
   2284     eax = MEM32(esi + 0x8); /* 0x40008D82: mov eax, dword ptr [esi + 8] */
   2285     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2286     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2287     esp = esp + 8; /* 0x40008D85: add esp, 8 */
   2288     _flag_k = FK_ADD;
   2289     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   2290     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2291     edx = edx + 0x10u; /* 0x40008D88: add edx, 0x10 */
   2292     _flag_k = FK_ADD;
   2293     PUSH32(esp, edx); /* 0x40008D8B: push edx */
   2294     PUSH32(esp, eax); /* 0x40008D8C: push eax */
   2295     PUSH32(esp, edi); /* 0x40008D8D: push edi */
   2296     ecx = esi; /* 0x40008D8E: mov ecx, esi */
   2297     RECOMP_ICALL(0x40008ED0u); /* 0x40008D90: call 0x40008ed0 */ /* not lifted */
   2298     RECOMP_FLAGS_IN();
   2299     ecx = MEM32(esi + 0x8); /* 0x40008D95: mov ecx, dword ptr [esi + 8] */
   2300     edx = MEM32(esi + 0x4); /* 0x40008D98: mov edx, dword ptr [esi + 4] */
   2301     PUSH32(esp, ecx); /* 0x40008D9B: push ecx */
   2302     PUSH32(esp, edx); /* 0x40008D9C: push edx */
   2303     ecx = esi; /* 0x40008D9D: mov ecx, esi */
   2304     RECOMP_ICALL(0x40008E80u); /* 0x40008D9F: call 0x40008e80 */ /* not lifted */
   2305     RECOMP_FLAGS_IN();
   2306     eax = MEM32(esi + 0x4); /* 0x40008DA4: mov eax, dword ptr [esi + 4] */
   2307     PUSH32(esp, eax); /* 0x40008DA7: push eax */
   2308     RECOMP_ICALL(0x400146F2u); /* 0x40008DA8: call 0x400146f2 */ /* not lifted */
   2309     RECOMP_FLAGS_IN();
   2310     eax = MEM32(ebp + (-0x4)); /* 0x40008DAD: mov eax, dword ptr [ebp - 4] */
   2311     edi = MEM32(ebp + (-0x8)); /* 0x40008DB0: mov edi, dword ptr [ebp - 8] */
   2312     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x40008DB3: shl eax, 4 */
   2313     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2314     eax = eax << 4u; /* 0x40008DB3: shl eax, 4 */
   2315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2316     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2317     eax = eax + edi; /* 0x40008DB6: add eax, edi */
   2318     _flag_k = FK_ADD;
   2319     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2320     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2321     esp = esp + 4; /* 0x40008DB8: add esp, 4 */
   2322     _flag_k = FK_ADD;
   2323     ecx = esi; /* 0x40008DBB: mov ecx, esi */
   2324     MEM32(esi + 0xC) = eax; /* 0x40008DBD: mov dword ptr [esi + 0xc], eax */
   2325     RECOMP_ICALL(0x40007290u); /* 0x40008DC0: call 0x40007290 */ /* not lifted */
   2326     RECOMP_FLAGS_IN();
   2327     ebx = MEM32(ebp + (-0xC)); /* 0x40008DC5: mov ebx, dword ptr [ebp - 0xc] */
   2328     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2329     eax = eax + 1; /* 0x40008DC8: inc eax */
   2330     _flag_k = FK_INC;
   2331     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x40008DC9: shl eax, 4 */
   2332     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2333     eax = eax << 4u; /* 0x40008DC9: shl eax, 4 */
   2334     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2336     eax = eax + edi; /* 0x40008DCC: add eax, edi */
   2337     _flag_k = FK_ADD;
   2338     MEM32(esi + 0x8) = eax; /* 0x40008DCE: mov dword ptr [esi + 8], eax */
   2339     MEM32(esi + 0x4) = edi; /* 0x40008DD1: mov dword ptr [esi + 4], edi */
   2340     ecx = edi; /* 0x40008DD4: mov ecx, edi */
   2341     eax = ebx; /* 0x40008DD6: mov eax, ebx */
   2342     edi = POP32_VAL(esp); /* 0x40008DD8: pop edi */
   2343     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x40008DD9: shl eax, 4 */
   2344     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2345     eax = eax << 4u; /* 0x40008DD9: shl eax, 4 */
   2346     esi = POP32_VAL(esp); /* 0x40008DDC: pop esi */
   2347     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2348     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2349     eax = eax + ecx; /* 0x40008DDD: add eax, ecx */
   2350     _flag_k = FK_ADD;
   2351     ebx = POP32_VAL(esp); /* 0x40008DDF: pop ebx */
   2352     esp = ebp; /* 0x40008DE0: mov esp, ebp */
   2353     ebp = POP32_VAL(esp); /* 0x40008DE2: pop ebp */
   2354     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008DE3: ret 8 */
   2355 L_40008DE6:
   2356     ecx = eax; /* 0x40008DE6: mov ecx, eax */
   2357     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2359     ecx = ecx - edi; /* 0x40008DE8: sub ecx, edi */
   2360     _flag_k = FK_CMP;
   2361     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x40008DEA: sar ecx, 4 */
   2362     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2363     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2364     /* cmp ecx, 1 */ /* 0x40008DED: cmp ecx, 1 */
   2365     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2367     _flag_k = FK_CMP;
   2368     if (CMP_AE(_flag_a, _flag_b)) goto L_40008E30; /* 0x40008DF0: jae 0x40008e30 */
   2369 L_40008DF2:
   2370     edx = edi + 0x10; /* 0x40008DF2: lea edx, [edi + 0x10] */
   2371     PUSH32(esp, edx); /* 0x40008DF5: push edx */
   2372     PUSH32(esp, eax); /* 0x40008DF6: push eax */
   2373     PUSH32(esp, edi); /* 0x40008DF7: push edi */
   2374     ecx = esi; /* 0x40008DF8: mov ecx, esi */
   2375     RECOMP_ICALL(0x40008ED0u); /* 0x40008DFA: call 0x40008ed0 */ /* not lifted */
   2376     RECOMP_FLAGS_IN();
   2377     eax = MEM32(esi + 0x8); /* 0x40008DFF: mov eax, dword ptr [esi + 8] */
   2378     ecx = MEM32(ebp + 0xC); /* 0x40008E02: mov ecx, dword ptr [ebp + 0xc] */
   2379     PUSH32(esp, ecx); /* 0x40008E05: push ecx */
   2380     edx = eax; /* 0x40008E06: mov edx, eax */
   2381     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   2382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2383     edx = edx - edi; /* 0x40008E08: sub edx, edi */
   2384     _flag_k = FK_CMP;
   2385     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x40008E0A: sar edx, 4 */
   2386     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2387     edx = (uint32_t)((int32_t)edx >> 4u);
   2388     ecx = 1; /* 0x40008E0D: mov ecx, 1 */
   2389     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2390     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2391     ecx = ecx - edx; /* 0x40008E12: sub ecx, edx */
   2392     _flag_k = FK_CMP;
   2393     PUSH32(esp, ecx); /* 0x40008E14: push ecx */
   2394     PUSH32(esp, eax); /* 0x40008E15: push eax */
   2395     ecx = esi; /* 0x40008E16: mov ecx, esi */
   2396     RECOMP_ICALL(0x4000ED00u); /* 0x40008E18: call 0x4000ed00 */ /* not lifted */
   2397     RECOMP_FLAGS_IN();
   2398     edx = MEM32(ebp + 0xC); /* 0x40008E1D: mov edx, dword ptr [ebp + 0xc] */
   2399     eax = MEM32(esi + 0x8); /* 0x40008E20: mov eax, dword ptr [esi + 8] */
   2400     PUSH32(esp, edx); /* 0x40008E23: push edx */
   2401     PUSH32(esp, eax); /* 0x40008E24: push eax */
   2402     PUSH32(esp, edi); /* 0x40008E25: push edi */
   2403     RECOMP_ICALL(0x4000F5B0u); /* 0x40008E26: call 0x4000f5b0 */ /* not lifted */
   2404     RECOMP_FLAGS_IN();
   2405     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2406     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2407     esp = esp + 0xCu; /* 0x40008E2B: add esp, 0xc */
   2408     _flag_k = FK_ADD;
   2409     goto L_40008E5C; /* 0x40008E2E: jmp 0x40008e5c */
   2410 L_40008E30:
   2411     PUSH32(esp, eax); /* 0x40008E30: push eax */
   2412     PUSH32(esp, eax); /* 0x40008E31: push eax */
   2413     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF0u);
   2414     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2415     eax = eax + 0xFFFFFFF0u; /* 0x40008E32: add eax, -0x10 */
   2416     _flag_k = FK_ADD;
   2417     PUSH32(esp, eax); /* 0x40008E35: push eax */
   2418     ecx = esi; /* 0x40008E36: mov ecx, esi */
   2419     RECOMP_ICALL(0x40008ED0u); /* 0x40008E38: call 0x40008ed0 */ /* not lifted */
   2420     RECOMP_FLAGS_IN();
   2421     eax = MEM32(esi + 0x8); /* 0x40008E3D: mov eax, dword ptr [esi + 8] */
   2422     PUSH32(esp, eax); /* 0x40008E40: push eax */
   2423     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF0u);
   2424     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2425     eax = eax + 0xFFFFFFF0u; /* 0x40008E41: add eax, -0x10 */
   2426     _flag_k = FK_ADD;
   2427     PUSH32(esp, eax); /* 0x40008E44: push eax */
   2428     PUSH32(esp, edi); /* 0x40008E45: push edi */
   2429     RECOMP_ICALL(0x4000F710u); /* 0x40008E46: call 0x4000f710 */ /* not lifted */
   2430     RECOMP_FLAGS_IN();
   2431     ecx = MEM32(ebp + 0xC); /* 0x40008E4B: mov ecx, dword ptr [ebp + 0xc] */
   2432     PUSH32(esp, ecx); /* 0x40008E4E: push ecx */
   2433     edx = edi + 0x10; /* 0x40008E4F: lea edx, [edi + 0x10] */
   2434     PUSH32(esp, edx); /* 0x40008E52: push edx */
   2435     PUSH32(esp, edi); /* 0x40008E53: push edi */
   2436     RECOMP_ICALL(0x4000F5B0u); /* 0x40008E54: call 0x4000f5b0 */ /* not lifted */
   2437     RECOMP_FLAGS_IN();
   2438     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2439     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2440     esp = esp + 0x18u; /* 0x40008E59: add esp, 0x18 */
   2441     _flag_k = FK_ADD;
   2442 L_40008E5C:
   2443     eax = MEM32(esi + 0x8); /* 0x40008E5C: mov eax, dword ptr [esi + 8] */
   2444     ecx = MEM32(esi + 0x4); /* 0x40008E5F: mov ecx, dword ptr [esi + 4] */
   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; /* 0x40008E62: add eax, 0x10 */
   2448     _flag_k = FK_ADD;
   2449     MEM32(esi + 0x8) = eax; /* 0x40008E65: mov dword ptr [esi + 8], eax */
   2450     eax = ebx; /* 0x40008E68: mov eax, ebx */
   2451     edi = POP32_VAL(esp); /* 0x40008E6A: pop edi */
   2452     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x40008E6B: shl eax, 4 */
   2453     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2454     eax = eax << 4u; /* 0x40008E6B: shl eax, 4 */
   2455     esi = POP32_VAL(esp); /* 0x40008E6E: pop esi */
   2456     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2457     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2458     eax = eax + ecx; /* 0x40008E6F: add eax, ecx */
   2459     _flag_k = FK_ADD;
   2460     ebx = POP32_VAL(esp); /* 0x40008E71: pop ebx */
   2461     esp = ebp; /* 0x40008E72: mov esp, ebp */
   2462     ebp = POP32_VAL(esp); /* 0x40008E74: pop ebp */
   2463     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008E75: ret 8 */
   2464     RECOMP_REGS_OUT();
   2465 }
   2466 
   2467 void sub_40008E80(void) {
   2468     int _fpu_cmp = 0;
   2469     uint32_t _cf = 0;
   2470     int _df = 1;
   2471     uint32_t _flag_k = FK_NONE;
   2472     uint32_t _flag_a = 0, _flag_b = 0;
   2473     uint32_t _itail_tgt = 0;
   2474     RECOMP_REGS_LOCALS
   2475     RECOMP_ENTER(0x40008E80u);
   2476 
   2477 L_40008E80:
   2478     PUSH32(esp, ebp); /* 0x40008E80: push ebp */
   2479     ebp = esp; /* 0x40008E81: mov ebp, esp */
   2480     PUSH32(esp, esi); /* 0x40008E83: push esi */
   2481     esi = MEM32(ebp + 0x8); /* 0x40008E84: mov esi, dword ptr [ebp + 8] */
   2482     PUSH32(esp, edi); /* 0x40008E87: push edi */
   2483     edi = MEM32(ebp + 0xC); /* 0x40008E88: mov edi, dword ptr [ebp + 0xc] */
   2484     /* cmp esi, edi */ /* 0x40008E8B: cmp esi, edi */
   2485     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   2486     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2487     _flag_k = FK_CMP;
   2488     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008EC6; /* 0x40008E8D: je 0x40008ec6 */
   2489 L_40008E8F:
   2490     PUSH32(esp, ebx); /* 0x40008E8F: push ebx */
   2491     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2492     ebx = 0; /* 0x40008E90: xor ebx, ebx */
   2493     _cf = 0;
   2494     _flag_k = FK_TEST;
   2495 L_40008E92:
   2496     eax = MEM32(esi + 0x4); /* 0x40008E92: mov eax, dword ptr [esi + 4] */
   2497     /* cmp eax, ebx */ /* 0x40008E95: cmp eax, ebx */
   2498     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2500     _flag_k = FK_CMP;
   2501     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008EB5; /* 0x40008E97: je 0x40008eb5 */
   2502 L_40008E99:
   2503     ecx = eax + (-0x1); /* 0x40008E99: lea ecx, [eax - 1] */
   2504     SET_LO8(eax, MEM8(ecx)); /* 0x40008E9C: mov al, byte ptr [ecx] */
   2505     /* cmp LO8(eax), LO8(ebx) */ /* 0x40008E9E: cmp al, bl */
   2506     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2508     _flag_k = FK_NARROW(FK_CMP, 24);
   2509     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008EAC; /* 0x40008EA0: je 0x40008eac */
   2510 L_40008EA2:
   2511     /* cmp LO8(eax), 0xFFu */ /* 0x40008EA2: cmp al, 0xff */
   2512     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   2513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2514     _flag_k = FK_NARROW(FK_CMP, 24);
   2515     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008EAC; /* 0x40008EA4: je 0x40008eac */
   2516 L_40008EA6:
   2517     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2518     SET_LO8(eax, LO8(eax) - 1); /* 0x40008EA6: dec al */
   2519     _flag_k = FK_NARROW(FK_DEC, 24);
   2520     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x40008EA8: mov byte ptr [ecx], al */
   2521     goto L_40008EB5; /* 0x40008EAA: jmp 0x40008eb5 */
   2522 L_40008EAC:
   2523     PUSH32(esp, ecx); /* 0x40008EAC: push ecx */
   2524     RECOMP_ICALL(0x400146F2u); /* 0x40008EAD: call 0x400146f2 */ /* not lifted */
   2525     RECOMP_FLAGS_IN();
   2526     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2527     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2528     esp = esp + 4; /* 0x40008EB2: add esp, 4 */
   2529     _flag_k = FK_ADD;
   2530 L_40008EB5:
   2531     MEM32(esi + 0x4) = ebx; /* 0x40008EB5: mov dword ptr [esi + 4], ebx */
   2532     MEM32(esi + 0x8) = ebx; /* 0x40008EB8: mov dword ptr [esi + 8], ebx */
   2533     MEM32(esi + 0xC) = ebx; /* 0x40008EBB: mov dword ptr [esi + 0xc], ebx */
   2534     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2535     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2536     esi = esi + 0x10u; /* 0x40008EBE: add esi, 0x10 */
   2537     _flag_k = FK_ADD;
   2538     /* cmp esi, edi */ /* 0x40008EC1: cmp esi, edi */
   2539     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   2540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2541     _flag_k = FK_CMP;
   2542     RECOMP_BACKEDGE();
   2543     if (CMP_NE(_flag_a, _flag_b)) goto L_40008E92; /* 0x40008EC3: jne 0x40008e92 */
   2544 L_40008EC5:
   2545     ebx = POP32_VAL(esp); /* 0x40008EC5: pop ebx */
   2546 L_40008EC6:
   2547     edi = POP32_VAL(esp); /* 0x40008EC6: pop edi */
   2548     esi = POP32_VAL(esp); /* 0x40008EC7: pop esi */
   2549     ebp = POP32_VAL(esp); /* 0x40008EC8: pop ebp */
   2550     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008EC9: ret 8 */
   2551     RECOMP_REGS_OUT();
   2552 }
   2553 
   2554 void sub_40008ED0(void) {
   2555     int _fpu_cmp = 0;
   2556     uint32_t _cf = 0;
   2557     int _df = 1;
   2558     uint32_t _flag_k = FK_NONE;
   2559     uint32_t _flag_a = 0, _flag_b = 0;
   2560     uint32_t _itail_tgt = 0;
   2561     RECOMP_REGS_LOCALS
   2562     RECOMP_ENTER(0x40008ED0u);
   2563 
   2564 L_40008ED0:
   2565     PUSH32(esp, ebp); /* 0x40008ED0: push ebp */
   2566     ebp = esp; /* 0x40008ED1: mov ebp, esp */
   2567     PUSH32(esp, ebx); /* 0x40008ED3: push ebx */
   2568     ebx = MEM32(ebp + 0xC); /* 0x40008ED4: mov ebx, dword ptr [ebp + 0xc] */
   2569     PUSH32(esp, esi); /* 0x40008ED7: push esi */
   2570     esi = MEM32(ebp + 0x8); /* 0x40008ED8: mov esi, dword ptr [ebp + 8] */
   2571     /* cmp esi, ebx */ /* 0x40008EDB: cmp esi, ebx */
   2572     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2574     _flag_k = FK_CMP;
   2575     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008F00; /* 0x40008EDD: je 0x40008f00 */
   2576 L_40008EDF:
   2577     PUSH32(esp, edi); /* 0x40008EDF: push edi */
   2578     edi = MEM32(ebp + 0x10); /* 0x40008EE0: mov edi, dword ptr [ebp + 0x10] */
   2579 L_40008EE3:
   2580     PUSH32(esp, esi); /* 0x40008EE3: push esi */
   2581     PUSH32(esp, edi); /* 0x40008EE4: push edi */
   2582     RECOMP_ICALL(0x4000F880u); /* 0x40008EE5: call 0x4000f880 */ /* not lifted */
   2583     RECOMP_FLAGS_IN();
   2584     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2585     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2586     esi = esi + 0x10u; /* 0x40008EEA: add esi, 0x10 */
   2587     _flag_k = FK_ADD;
   2588     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2589     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2590     esp = esp + 8; /* 0x40008EED: add esp, 8 */
   2591     _flag_k = FK_ADD;
   2592     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u);
   2593     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2594     edi = edi + 0x10u; /* 0x40008EF0: add edi, 0x10 */
   2595     _flag_k = FK_ADD;
   2596     /* cmp esi, ebx */ /* 0x40008EF3: cmp esi, ebx */
   2597     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2599     _flag_k = FK_CMP;
   2600     RECOMP_BACKEDGE();
   2601     if (CMP_NE(_flag_a, _flag_b)) goto L_40008EE3; /* 0x40008EF5: jne 0x40008ee3 */
   2602 L_40008EF7:
   2603     eax = edi; /* 0x40008EF7: mov eax, edi */
   2604     edi = POP32_VAL(esp); /* 0x40008EF9: pop edi */
   2605     esi = POP32_VAL(esp); /* 0x40008EFA: pop esi */
   2606     ebx = POP32_VAL(esp); /* 0x40008EFB: pop ebx */
   2607     ebp = POP32_VAL(esp); /* 0x40008EFC: pop ebp */
   2608     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008EFD: ret 0xc */
   2609 L_40008F00:
   2610     eax = MEM32(ebp + 0x10); /* 0x40008F00: mov eax, dword ptr [ebp + 0x10] */
   2611     esi = POP32_VAL(esp); /* 0x40008F03: pop esi */
   2612     ebx = POP32_VAL(esp); /* 0x40008F04: pop ebx */
   2613     ebp = POP32_VAL(esp); /* 0x40008F05: pop ebp */
   2614     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40008F06: ret 0xc */
   2615     RECOMP_REGS_OUT();
   2616 }
   2617 
   2618 void sub_40008F10(void) {
   2619     int _fpu_cmp = 0;
   2620     uint32_t _cf = 0;
   2621     int _df = 1;
   2622     uint32_t _flag_k = FK_NONE;
   2623     uint32_t _flag_a = 0, _flag_b = 0;
   2624     uint32_t _itail_tgt = 0;
   2625     RECOMP_REGS_LOCALS
   2626     RECOMP_ENTER(0x40008F10u);
   2627 
   2628 L_40008F10:
   2629     PUSH32(esp, ebp); /* 0x40008F10: push ebp */
   2630     ebp = esp; /* 0x40008F11: mov ebp, esp */
   2631     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2633     esp = esp - 0x10u; /* 0x40008F13: sub esp, 0x10 */
   2634     _flag_k = FK_CMP;
   2635     PUSH32(esp, ebx); /* 0x40008F16: push ebx */
   2636     ebx = ecx; /* 0x40008F17: mov ebx, ecx */
   2637     edx = MEM32(ebx + 0x4); /* 0x40008F19: mov edx, dword ptr [ebx + 4] */
   2638     ecx = MEM32(ebx + 0x8); /* 0x40008F1C: mov ecx, dword ptr [ebx + 8] */
   2639     PUSH32(esp, esi); /* 0x40008F1F: push esi */
   2640     esi = MEM32(edx + 0x4); /* 0x40008F20: mov esi, dword ptr [edx + 4] */
   2641     /* cmp esi, ecx */ /* 0x40008F23: cmp esi, ecx */
   2642     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   2643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2644     _flag_k = FK_CMP;
   2645     PUSH32(esp, edi); /* 0x40008F25: push edi */
   2646     edi = edx; /* 0x40008F26: mov edi, edx */
   2647     SET_LO8(eax, 1); /* 0x40008F28: mov al, 1 */
   2648     if (CMP_EQ(_flag_a, _flag_b)) goto L_40008F4E; /* 0x40008F2A: je 0x40008f4e */
   2649 L_40008F2C:
   2650     eax = MEM32(ebp + 0xC); /* 0x40008F2C: mov eax, dword ptr [ebp + 0xc] */
   2651     eax = MEM32(eax); /* 0x40008F2F: mov eax, dword ptr [eax] */
   2652     MEM32(ebp + (-0x4)) = eax; /* 0x40008F31: mov dword ptr [ebp - 4], eax */
   2653 L_40008F34:
   2654     eax = MEM32(ebp + (-0x4)); /* 0x40008F34: mov eax, dword ptr [ebp - 4] */
   2655     /* cmp eax, MEM32(esi + 0xC) */ /* 0x40008F37: cmp eax, dword ptr [esi + 0xc] */
   2656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   2657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2658     _flag_k = FK_CMP;
   2659     edi = esi; /* 0x40008F3A: mov edi, esi */
   2660     SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x40008F3C: setb al */
   2661     /* test LO8(eax), LO8(eax) */ /* 0x40008F3F: test al, al */
   2662     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2663     _cf = 0;
   2664     _flag_k = FK_NARROW(FK_TEST, 24);
   2665     if (TEST_Z(_flag_a, _flag_b)) goto L_40008F47; /* 0x40008F41: je 0x40008f47 */
   2666 L_40008F43:
   2667     esi = MEM32(esi); /* 0x40008F43: mov esi, dword ptr [esi] */
   2668     goto L_40008F4A; /* 0x40008F45: jmp 0x40008f4a */
   2669 L_40008F47:
   2670     esi = MEM32(esi + 0x8); /* 0x40008F47: mov esi, dword ptr [esi + 8] */
   2671 L_40008F4A:
   2672     /* cmp esi, ecx */ /* 0x40008F4A: cmp esi, ecx */
   2673     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   2674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2675     _flag_k = FK_CMP;
   2676     RECOMP_BACKEDGE();
   2677     if (CMP_NE(_flag_a, _flag_b)) goto L_40008F34; /* 0x40008F4C: jne 0x40008f34 */
   2678 L_40008F4E:
   2679     SET_LO8(ecx, MEM8(ebx + 0xC)); /* 0x40008F4E: mov cl, byte ptr [ebx + 0xc] */
   2680     /* test LO8(ecx), LO8(ecx) */ /* 0x40008F51: test cl, cl */
   2681     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2682     _cf = 0;
   2683     _flag_k = FK_NARROW(FK_TEST, 24);
   2684     if (TEST_Z(_flag_a, _flag_b)) goto L_40008F73; /* 0x40008F53: je 0x40008f73 */
   2685 L_40008F55:
   2686     ecx = MEM32(ebp + 0xC); /* 0x40008F55: mov ecx, dword ptr [ebp + 0xc] */
   2687     PUSH32(esp, ecx); /* 0x40008F58: push ecx */
   2688     PUSH32(esp, edi); /* 0x40008F59: push edi */
   2689     PUSH32(esp, esi); /* 0x40008F5A: push esi */
   2690     edx = ebp + (-0x8); /* 0x40008F5B: lea edx, [ebp - 8] */
   2691     PUSH32(esp, edx); /* 0x40008F5E: push edx */
   2692     ecx = ebx; /* 0x40008F5F: mov ecx, ebx */
   2693     RECOMP_ICALL(0x4000ED90u); /* 0x40008F61: call 0x4000ed90 */ /* not lifted */
   2694     RECOMP_FLAGS_IN();
   2695     eax = MEM32(eax); /* 0x40008F66: mov eax, dword ptr [eax] */
   2696     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x40008F68: mov byte ptr [ebp - 0xc], 1 */
   2697     ecx = eax; /* 0x40008F6C: mov ecx, eax */
   2698     eax = MEM32(ebp + (-0xC)); /* 0x40008F6E: mov eax, dword ptr [ebp - 0xc] */
   2699     goto L_40008FD5; /* 0x40008F71: jmp 0x40008fd5 */
   2700 L_40008F73:
   2701     /* test LO8(eax), LO8(eax) */ /* 0x40008F73: test al, al */
   2702     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2703     _cf = 0;
   2704     _flag_k = FK_NARROW(FK_TEST, 24);
   2705     ecx = edi; /* 0x40008F75: mov ecx, edi */
   2706     MEM32(ebp + (-0x4)) = ecx; /* 0x40008F77: mov dword ptr [ebp - 4], ecx */
   2707     if (TEST_Z(_flag_a, _flag_b)) goto L_40008FA9; /* 0x40008F7A: je 0x40008fa9 */
   2708 L_40008F7C:
   2709     /* cmp edi, MEM32(edx) */ /* 0x40008F7C: cmp edi, dword ptr [edx] */
   2710     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx));
   2711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2712     _flag_k = FK_CMP;
   2713     if (CMP_NE(_flag_a, _flag_b)) goto L_40008F9E; /* 0x40008F7E: jne 0x40008f9e */
   2714 L_40008F80:
   2715     eax = MEM32(ebp + 0xC); /* 0x40008F80: mov eax, dword ptr [ebp + 0xc] */
   2716     PUSH32(esp, eax); /* 0x40008F83: push eax */
   2717     PUSH32(esp, edi); /* 0x40008F84: push edi */
   2718     PUSH32(esp, esi); /* 0x40008F85: push esi */
   2719     ecx = ebp + (-0xC); /* 0x40008F86: lea ecx, [ebp - 0xc] */
   2720     PUSH32(esp, ecx); /* 0x40008F89: push ecx */
   2721     ecx = ebx; /* 0x40008F8A: mov ecx, ebx */
   2722     RECOMP_ICALL(0x4000ED90u); /* 0x40008F8C: call 0x4000ed90 */ /* not lifted */
   2723     RECOMP_FLAGS_IN();
   2724     eax = MEM32(eax); /* 0x40008F91: mov eax, dword ptr [eax] */
   2725     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x40008F93: mov byte ptr [ebp - 0xc], 1 */
   2726     ecx = eax; /* 0x40008F97: mov ecx, eax */
   2727     eax = MEM32(ebp + (-0xC)); /* 0x40008F99: mov eax, dword ptr [ebp - 0xc] */
   2728     goto L_40008FD5; /* 0x40008F9C: jmp 0x40008fd5 */
   2729 L_40008F9E:
   2730     ecx = ebp + (-0x4); /* 0x40008F9E: lea ecx, [ebp - 4] */
   2731     RECOMP_ICALL(0x4000F030u); /* 0x40008FA1: call 0x4000f030 */ /* not lifted */
   2732     RECOMP_FLAGS_IN();
   2733     ecx = MEM32(ebp + (-0x4)); /* 0x40008FA6: mov ecx, dword ptr [ebp - 4] */
   2734 L_40008FA9:
   2735     edx = MEM32(ecx + 0xC); /* 0x40008FA9: mov edx, dword ptr [ecx + 0xc] */
   2736     eax = MEM32(ebp + 0xC); /* 0x40008FAC: mov eax, dword ptr [ebp + 0xc] */
   2737     /* cmp edx, MEM32(eax) */ /* 0x40008FAF: cmp edx, dword ptr [eax] */
   2738     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   2739     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2740     _flag_k = FK_CMP;
   2741     if (CMP_AE(_flag_a, _flag_b)) goto L_40008FCE; /* 0x40008FB1: jae 0x40008fce */
   2742 L_40008FB3:
   2743     PUSH32(esp, eax); /* 0x40008FB3: push eax */
   2744     PUSH32(esp, edi); /* 0x40008FB4: push edi */
   2745     PUSH32(esp, esi); /* 0x40008FB5: push esi */
   2746     eax = ebp + 0xC; /* 0x40008FB6: lea eax, [ebp + 0xc] */
   2747     PUSH32(esp, eax); /* 0x40008FB9: push eax */
   2748     ecx = ebx; /* 0x40008FBA: mov ecx, ebx */
   2749     RECOMP_ICALL(0x4000ED90u); /* 0x40008FBC: call 0x4000ed90 */ /* not lifted */
   2750     RECOMP_FLAGS_IN();
   2751     eax = MEM32(eax); /* 0x40008FC1: mov eax, dword ptr [eax] */
   2752     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x40008FC3: mov byte ptr [ebp - 0xc], 1 */
   2753     ecx = eax; /* 0x40008FC7: mov ecx, eax */
   2754     eax = MEM32(ebp + (-0xC)); /* 0x40008FC9: mov eax, dword ptr [ebp - 0xc] */
   2755     goto L_40008FD5; /* 0x40008FCC: jmp 0x40008fd5 */
   2756 L_40008FCE:
   2757     MEM8(ebp + (-0xC)) = (uint8_t)(0); /* 0x40008FCE: mov byte ptr [ebp - 0xc], 0 */
   2758     eax = MEM32(ebp + (-0xC)); /* 0x40008FD2: mov eax, dword ptr [ebp - 0xc] */
   2759 L_40008FD5:
   2760     MEM8(ebp + (-0xC)) = (uint8_t)(LO8(eax)); /* 0x40008FD5: mov byte ptr [ebp - 0xc], al */
   2761     eax = MEM32(ebp + 0x8); /* 0x40008FD8: mov eax, dword ptr [ebp + 8] */
   2762     edi = POP32_VAL(esp); /* 0x40008FDB: pop edi */
   2763     MEM32(eax) = ecx; /* 0x40008FDC: mov dword ptr [eax], ecx */
   2764     ecx = MEM32(ebp + (-0xC)); /* 0x40008FDE: mov ecx, dword ptr [ebp - 0xc] */
   2765     esi = POP32_VAL(esp); /* 0x40008FE1: pop esi */
   2766     MEM32(eax + 0x4) = ecx; /* 0x40008FE2: mov dword ptr [eax + 4], ecx */
   2767     ebx = POP32_VAL(esp); /* 0x40008FE5: pop ebx */
   2768     esp = ebp; /* 0x40008FE6: mov esp, ebp */
   2769     ebp = POP32_VAL(esp); /* 0x40008FE8: pop ebp */
   2770     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40008FE9: ret 8 */
   2771     RECOMP_REGS_OUT();
   2772 }
   2773 
   2774 void sub_40008FF0(void) {
   2775     int _fpu_cmp = 0;
   2776     uint32_t _cf = 0;
   2777     int _df = 1;
   2778     uint32_t _flag_k = FK_NONE;
   2779     uint32_t _flag_a = 0, _flag_b = 0;
   2780     uint32_t _itail_tgt = 0;
   2781     RECOMP_REGS_LOCALS
   2782     RECOMP_ENTER(0x40008FF0u);
   2783 
   2784 L_40008FF0:
   2785     goto L_40009000; /* 0x40008FF0: jmp 0x40009000 */
   2786 L_40009000:
   2787     MEM32(0x4001D014) = 0x4001C8D4u; /* 0x40009000: mov dword ptr [0x4001d014], 0x4001c8d4 */
   2788     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000900A: ret  */
   2789     RECOMP_REGS_OUT();
   2790 }
   2791 
   2792 void sub_40009000(void) {
   2793     int _fpu_cmp = 0;
   2794     uint32_t _cf = 0;
   2795     int _df = 1;
   2796     uint32_t _flag_k = FK_NONE;
   2797     uint32_t _flag_a = 0, _flag_b = 0;
   2798     uint32_t _itail_tgt = 0;
   2799     RECOMP_REGS_LOCALS
   2800     RECOMP_ENTER(0x40009000u);
   2801 
   2802 L_40009000:
   2803     MEM32(0x4001D014) = 0x4001C8D4u; /* 0x40009000: mov dword ptr [0x4001d014], 0x4001c8d4 */
   2804     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000900A: ret  */
   2805     RECOMP_REGS_OUT();
   2806 }
   2807 
   2808 void sub_40009010(void) {
   2809     int _fpu_cmp = 0;
   2810     uint32_t _cf = 0;
   2811     int _df = 1;
   2812     uint32_t _flag_k = FK_NONE;
   2813     uint32_t _flag_a = 0, _flag_b = 0;
   2814     uint32_t _itail_tgt = 0;
   2815     RECOMP_REGS_LOCALS
   2816     RECOMP_ENTER(0x40009010u);
   2817 
   2818 L_40009010:
   2819     goto L_40009020; /* 0x40009010: jmp 0x40009020 */
   2820 L_40009020:
   2821     MEM32(0x4001CFF8) = 0x4001C908u; /* 0x40009020: mov dword ptr [0x4001cff8], 0x4001c908 */
   2822     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000902A: ret  */
   2823     RECOMP_REGS_OUT();
   2824 }
   2825 
   2826 void sub_40009020(void) {
   2827     int _fpu_cmp = 0;
   2828     uint32_t _cf = 0;
   2829     int _df = 1;
   2830     uint32_t _flag_k = FK_NONE;
   2831     uint32_t _flag_a = 0, _flag_b = 0;
   2832     uint32_t _itail_tgt = 0;
   2833     RECOMP_REGS_LOCALS
   2834     RECOMP_ENTER(0x40009020u);
   2835 
   2836 L_40009020:
   2837     MEM32(0x4001CFF8) = 0x4001C908u; /* 0x40009020: mov dword ptr [0x4001cff8], 0x4001c908 */
   2838     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000902A: ret  */
   2839     RECOMP_REGS_OUT();
   2840 }
   2841 
   2842 void sub_40009030(void) {
   2843     int _fpu_cmp = 0;
   2844     uint32_t _cf = 0;
   2845     int _df = 1;
   2846     uint32_t _flag_k = FK_NONE;
   2847     uint32_t _flag_a = 0, _flag_b = 0;
   2848     uint32_t _itail_tgt = 0;
   2849     RECOMP_REGS_LOCALS
   2850     RECOMP_ENTER(0x40009030u);
   2851 
   2852 L_40009030:
   2853     PUSH32(esp, ebp); /* 0x40009030: push ebp */
   2854     ebp = esp; /* 0x40009031: mov ebp, esp */
   2855     PUSH32(esp, ebx); /* 0x40009033: push ebx */
   2856     PUSH32(esp, esi); /* 0x40009034: push esi */
   2857     ebx = ecx; /* 0x40009035: mov ebx, ecx */
   2858     eax = MEM32(ebx + 0x8); /* 0x40009037: mov eax, dword ptr [ebx + 8] */
   2859     PUSH32(esp, edi); /* 0x4000903A: push edi */
   2860     edi = MEM32(ebp + 0x8); /* 0x4000903B: mov edi, dword ptr [ebp + 8] */
   2861     /* cmp edi, eax */ /* 0x4000903E: cmp edi, eax */
   2862     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2864     _flag_k = FK_CMP;
   2865     esi = edi; /* 0x40009040: mov esi, edi */
   2866     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000906B; /* 0x40009042: je 0x4000906b */
   2867 L_40009044:
   2868     eax = MEM32(esi + 0x8); /* 0x40009044: mov eax, dword ptr [esi + 8] */
   2869     PUSH32(esp, eax); /* 0x40009047: push eax */
   2870     ecx = ebx; /* 0x40009048: mov ecx, ebx */
   2871     RECOMP_ICALL(0x40009030u); /* 0x4000904A: call 0x40009030 */ /* not lifted */
   2872     RECOMP_FLAGS_IN();
   2873     esi = MEM32(esi); /* 0x4000904F: mov esi, dword ptr [esi] */
   2874     ecx = edi + 0xC; /* 0x40009051: lea ecx, [edi + 0xc] */
   2875     RECOMP_ICALL(0x400031D0u); /* 0x40009054: call 0x400031d0 */ /* not lifted */
   2876     RECOMP_FLAGS_IN();
   2877     PUSH32(esp, edi); /* 0x40009059: push edi */
   2878     RECOMP_ICALL(0x400146F2u); /* 0x4000905A: call 0x400146f2 */ /* not lifted */
   2879     RECOMP_FLAGS_IN();
   2880     eax = MEM32(ebx + 0x8); /* 0x4000905F: mov eax, dword ptr [ebx + 8] */
   2881     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2882     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2883     esp = esp + 4; /* 0x40009062: add esp, 4 */
   2884     _flag_k = FK_ADD;
   2885     /* cmp esi, eax */ /* 0x40009065: cmp esi, eax */
   2886     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2887     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2888     _flag_k = FK_CMP;
   2889     edi = esi; /* 0x40009067: mov edi, esi */
   2890     RECOMP_BACKEDGE();
   2891     if (CMP_NE(_flag_a, _flag_b)) goto L_40009044; /* 0x40009069: jne 0x40009044 */
   2892 L_4000906B:
   2893     edi = POP32_VAL(esp); /* 0x4000906B: pop edi */
   2894     esi = POP32_VAL(esp); /* 0x4000906C: pop esi */
   2895     ebx = POP32_VAL(esp); /* 0x4000906D: pop ebx */
   2896     ebp = POP32_VAL(esp); /* 0x4000906E: pop ebp */
   2897     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4000906F: ret 4 */
   2898     RECOMP_REGS_OUT();
   2899 }
   2900 
   2901 void sub_40009080(void) {
   2902     int _fpu_cmp = 0;
   2903     uint32_t _cf = 0;
   2904     int _df = 1;
   2905     uint32_t _flag_k = FK_NONE;
   2906     uint32_t _flag_a = 0, _flag_b = 0;
   2907     uint32_t _itail_tgt = 0;
   2908     RECOMP_REGS_LOCALS
   2909     RECOMP_ENTER(0x40009080u);
   2910 
   2911 L_40009080:
   2912     PUSH32(esp, ebp); /* 0x40009080: push ebp */
   2913     ebp = esp; /* 0x40009081: mov ebp, esp */
   2914     PUSH32(esp, ecx); /* 0x40009083: push ecx */
   2915     PUSH32(esp, ebx); /* 0x40009084: push ebx */
   2916     PUSH32(esp, esi); /* 0x40009085: push esi */
   2917     PUSH32(esp, edi); /* 0x40009086: push edi */
   2918     PUSH32(esp, 0x2Cu); /* 0x40009087: push 0x2c */
   2919     esi = ecx; /* 0x40009089: mov esi, ecx */
   2920     RECOMP_ICALL(0x40014704u); /* 0x4000908B: call 0x40014704 */ /* not lifted */
   2921     RECOMP_FLAGS_IN();
   2922     edi = MEM32(ebp + 0x10); /* 0x40009090: mov edi, dword ptr [ebp + 0x10] */
   2923     ebx = MEM32(ebp + 0x14); /* 0x40009093: mov ebx, dword ptr [ebp + 0x14] */
   2924     MEM32(eax + 0x4) = edi; /* 0x40009096: mov dword ptr [eax + 4], edi */
   2925     MEM8(eax + 0x28) = (uint8_t)(0); /* 0x40009099: mov byte ptr [eax + 0x28], 0 */
   2926     MEM8(eax + 0x29) = (uint8_t)(0); /* 0x4000909D: mov byte ptr [eax + 0x29], 0 */
   2927     ecx = MEM32(esi + 0x8); /* 0x400090A1: mov ecx, dword ptr [esi + 8] */
   2928     MEM32(eax) = ecx; /* 0x400090A4: mov dword ptr [eax], ecx */
   2929     edx = MEM32(esi + 0x8); /* 0x400090A6: mov edx, dword ptr [esi + 8] */
   2930     MEM32(ebp + (-0x4)) = eax; /* 0x400090A9: mov dword ptr [ebp - 4], eax */
   2931     MEM32(eax + 0x8) = edx; /* 0x400090AC: mov dword ptr [eax + 8], edx */
   2932     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2933     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2934     eax = eax + 0xCu; /* 0x400090AF: add eax, 0xc */
   2935     _flag_k = FK_ADD;
   2936     PUSH32(esp, ebx); /* 0x400090B2: push ebx */
   2937     PUSH32(esp, eax); /* 0x400090B3: push eax */
   2938     RECOMP_ICALL(0x4000FA00u); /* 0x400090B4: call 0x4000fa00 */ /* not lifted */
   2939     RECOMP_FLAGS_IN();
   2940     ecx = MEM32(esi + 0x10); /* 0x400090B9: mov ecx, dword ptr [esi + 0x10] */
   2941     eax = MEM32(esi + 0x4); /* 0x400090BC: mov eax, dword ptr [esi + 4] */
   2942     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2943     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2944     esp = esp + 0xCu; /* 0x400090BF: add esp, 0xc */
   2945     _flag_k = FK_ADD;
   2946     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2947     ecx = ecx + 1; /* 0x400090C2: inc ecx */
   2948     _flag_k = FK_INC;
   2949     /* cmp edi, eax */ /* 0x400090C3: cmp edi, eax */
   2950     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2952     _flag_k = FK_CMP;
   2953     MEM32(esi + 0x10) = ecx; /* 0x400090C5: mov dword ptr [esi + 0x10], ecx */
   2954     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009103; /* 0x400090C8: je 0x40009103 */
   2955 L_400090CA:
   2956     eax = MEM32(ebp + 0xC); /* 0x400090CA: mov eax, dword ptr [ebp + 0xc] */
   2957     /* cmp eax, MEM32(esi + 0x8) */ /* 0x400090CD: cmp eax, dword ptr [esi + 8] */
   2958     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2959     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2960     _flag_k = FK_CMP;
   2961     if (CMP_NE(_flag_a, _flag_b)) goto L_40009103; /* 0x400090D0: jne 0x40009103 */
   2962 L_400090D2:
   2963     eax = MEM32(ebx + 0x8); /* 0x400090D2: mov eax, dword ptr [ebx + 8] */
   2964     ecx = MEM32(edi + 0x14); /* 0x400090D5: mov ecx, dword ptr [edi + 0x14] */
   2965     /* cmp eax, ecx */ /* 0x400090D8: cmp eax, ecx */
   2966     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2968     _flag_k = FK_CMP;
   2969     if (CMP_NE(_flag_a, _flag_b)) goto L_400090E9; /* 0x400090DA: jne 0x400090e9 */
   2970 L_400090DC:
   2971     eax = MEM32(edi + 0x24); /* 0x400090DC: mov eax, dword ptr [edi + 0x24] */
   2972     ecx = MEM32(ebx + 0x18); /* 0x400090DF: mov ecx, dword ptr [ebx + 0x18] */
   2973     /* cmp ecx, eax */ /* 0x400090E2: cmp ecx, eax */
   2974     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2976     _flag_k = FK_CMP;
   2977     SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x400090E4: setl al */
   2978     goto L_400090EC; /* 0x400090E7: jmp 0x400090ec */
   2979 L_400090E9:
   2980     SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) ? 1 : 0); /* 0x400090E9: seta al */
   2981 L_400090EC:
   2982     /* test LO8(eax), LO8(eax) */ /* 0x400090EC: test al, al */
   2983     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2984     _cf = 0;
   2985     _flag_k = FK_NARROW(FK_TEST, 24);
   2986     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009103; /* 0x400090EE: jne 0x40009103 */
   2987 L_400090F0:
   2988     ecx = MEM32(ebp + (-0x4)); /* 0x400090F0: mov ecx, dword ptr [ebp - 4] */
   2989     MEM32(edi + 0x8) = ecx; /* 0x400090F3: mov dword ptr [edi + 8], ecx */
   2990     eax = MEM32(esi + 0x4); /* 0x400090F6: mov eax, dword ptr [esi + 4] */
   2991     /* cmp edi, MEM32(eax + 0x8) */ /* 0x400090F9: cmp edi, dword ptr [eax + 8] */
   2992     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2994     _flag_k = FK_CMP;
   2995     if (CMP_NE(_flag_a, _flag_b)) goto L_40009123; /* 0x400090FC: jne 0x40009123 */
   2996 L_400090FE:
   2997     MEM32(eax + 0x8) = ecx; /* 0x400090FE: mov dword ptr [eax + 8], ecx */
   2998     goto L_40009123; /* 0x40009101: jmp 0x40009123 */
   2999 L_40009103:
   3000     ecx = MEM32(ebp + (-0x4)); /* 0x40009103: mov ecx, dword ptr [ebp - 4] */
   3001     MEM32(edi) = ecx; /* 0x40009106: mov dword ptr [edi], ecx */
   3002     eax = MEM32(esi + 0x4); /* 0x40009108: mov eax, dword ptr [esi + 4] */
   3003     /* cmp edi, eax */ /* 0x4000910B: cmp edi, eax */
   3004     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3006     _flag_k = FK_CMP;
   3007     if (CMP_NE(_flag_a, _flag_b)) goto L_4000911A; /* 0x4000910D: jne 0x4000911a */
   3008 L_4000910F:
   3009     MEM32(eax + 0x4) = ecx; /* 0x4000910F: mov dword ptr [eax + 4], ecx */
   3010     edx = MEM32(esi + 0x4); /* 0x40009112: mov edx, dword ptr [esi + 4] */
   3011     MEM32(edx + 0x8) = ecx; /* 0x40009115: mov dword ptr [edx + 8], ecx */
   3012     goto L_40009123; /* 0x40009118: jmp 0x40009123 */
   3013 L_4000911A:
   3014     /* cmp edi, MEM32(eax) */ /* 0x4000911A: cmp edi, dword ptr [eax] */
   3015     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   3016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3017     _flag_k = FK_CMP;
   3018     if (CMP_NE(_flag_a, _flag_b)) goto L_40009123; /* 0x4000911C: jne 0x40009123 */
   3019 L_4000911E:
   3020     ecx = MEM32(ebp + (-0x4)); /* 0x4000911E: mov ecx, dword ptr [ebp - 4] */
   3021     MEM32(eax) = ecx; /* 0x40009121: mov dword ptr [eax], ecx */
   3022 L_40009123:
   3023     edx = MEM32(esi + 0x4); /* 0x40009123: mov edx, dword ptr [esi + 4] */
   3024     eax = MEM32(ebp + (-0x4)); /* 0x40009126: mov eax, dword ptr [ebp - 4] */
   3025     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009129: cmp eax, dword ptr [edx + 4] */
   3026     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3027     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3028     _flag_k = FK_CMP;
   3029     SET_LO8(ebx, 1); /* 0x4000912C: mov bl, 1 */
   3030     if (CMP_EQ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000912E: je 0x400092b4 */
   3031 L_40009134:
   3032     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   3033     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   3034     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   3035     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3036     _cf = 0;
   3037     _flag_k = FK_NARROW(FK_TEST, 24);
   3038     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   3039 L_40009142:
   3040     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   3041     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   3042     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   3043     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3044     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3045     _flag_k = FK_CMP;
   3046     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   3047 L_4000914F:
   3048     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   3049     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   3050     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   3051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3052     _flag_k = FK_NARROW(FK_CMP, 24);
   3053     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   3054 L_40009158:
   3055     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   3056     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   3057     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   3058     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   3059     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   3060     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   3061     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   3062     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   3063 L_40009173:
   3064     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   3065     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3067     _flag_k = FK_CMP;
   3068     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   3069 L_40009178:
   3070     eax = ecx; /* 0x40009178: mov eax, ecx */
   3071     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   3072     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   3073     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   3074     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   3075     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   3076     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3078     _flag_k = FK_CMP;
   3079     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   3080 L_40009189:
   3081     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   3082 L_4000918C:
   3083     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   3084     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   3085     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   3086     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   3087     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3089     _flag_k = FK_CMP;
   3090     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   3091 L_4000919A:
   3092     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   3093     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   3094 L_4000919F:
   3095     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   3096     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   3097     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3098     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3099     _flag_k = FK_CMP;
   3100     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   3101 L_400091A6:
   3102     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   3103     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   3104 L_400091AA:
   3105     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   3106 L_400091AD:
   3107     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   3108     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   3109 L_400091B2:
   3110     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   3111     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   3112     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   3113     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   3114     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   3115     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   3116     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   3117     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   3118     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   3119     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   3120     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   3121     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   3122     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3124     _flag_k = FK_CMP;
   3125     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   3126 L_400091D7:
   3127     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   3128 L_400091DA:
   3129     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   3130     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   3131     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   3132     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   3133     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3134     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3135     _flag_k = FK_CMP;
   3136     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   3137 L_400091E8:
   3138     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   3139     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   3140     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   3141 L_400091F3:
   3142     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   3143     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   3144     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3146     _flag_k = FK_CMP;
   3147     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   3148 L_400091FB:
   3149     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   3150     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   3151     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   3152 L_40009206:
   3153     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   3154     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   3155     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   3156 L_40009210:
   3157     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   3158     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   3159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3160     _flag_k = FK_NARROW(FK_CMP, 24);
   3161     RECOMP_BACKEDGE();
   3162     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   3163 L_4000921A:
   3164     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   3165     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3166     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3167     _flag_k = FK_CMP;
   3168     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   3169 L_4000921E:
   3170     eax = ecx; /* 0x4000921E: mov eax, ecx */
   3171     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   3172     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   3173     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   3174     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   3175     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   3176     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3178     _flag_k = FK_CMP;
   3179     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   3180 L_4000922F:
   3181     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   3182 L_40009232:
   3183     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   3184     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   3185     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   3186     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   3187     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3189     _flag_k = FK_CMP;
   3190     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   3191 L_40009240:
   3192     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   3193     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   3194 L_40009245:
   3195     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   3196     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   3197     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3199     _flag_k = FK_CMP;
   3200     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   3201 L_4000924D:
   3202     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   3203     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   3204 L_40009252:
   3205     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   3206 L_40009254:
   3207     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   3208     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   3209 L_4000925A:
   3210     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   3211     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   3212     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   3213     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   3214     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   3215     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   3216     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   3217     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   3218     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   3219     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   3220     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   3221     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   3222     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3223     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3224     _flag_k = FK_CMP;
   3225     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   3226 L_4000927F:
   3227     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   3228 L_40009282:
   3229     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   3230     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   3231     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   3232     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   3233     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3235     _flag_k = FK_CMP;
   3236     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   3237 L_40009290:
   3238     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   3239     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   3240 L_40009295:
   3241     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   3242     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   3243     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3245     _flag_k = FK_CMP;
   3246     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   3247 L_4000929C:
   3248     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   3249     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   3250 L_400092A0:
   3251     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   3252 L_400092A3:
   3253     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   3254 L_400092A5:
   3255     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   3256 L_400092A8:
   3257     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   3258     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   3259     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3261     _flag_k = FK_CMP;
   3262     RECOMP_BACKEDGE();
   3263     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   3264 L_400092B4:
   3265     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   3266     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   3267     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   3268     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   3269     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   3270     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   3271     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   3272     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   3273     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   3274     esp = ebp; /* 0x400092C8: mov esp, ebp */
   3275     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   3276     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   3277     RECOMP_REGS_OUT();
   3278 }
   3279 
   3280 void sub_40009134(void) {
   3281     int _fpu_cmp = 0;
   3282     uint32_t _cf = 0;
   3283     int _df = 1;
   3284     uint32_t _flag_k = FK_NONE;
   3285     uint32_t _flag_a = 0, _flag_b = 0;
   3286     uint32_t _itail_tgt = 0;
   3287     RECOMP_REGS_LOCALS
   3288     RECOMP_ENTER(0x40009134u);
   3289 
   3290 L_40009134:
   3291     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   3292     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   3293     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   3294     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3295     _cf = 0;
   3296     _flag_k = FK_NARROW(FK_TEST, 24);
   3297     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   3298 L_40009142:
   3299     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   3300     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   3301     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   3302     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3304     _flag_k = FK_CMP;
   3305     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   3306 L_4000914F:
   3307     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   3308     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   3309     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   3310     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3311     _flag_k = FK_NARROW(FK_CMP, 24);
   3312     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   3313 L_40009158:
   3314     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   3315     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   3316     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   3317     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   3318     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   3319     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   3320     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   3321     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   3322 L_40009173:
   3323     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   3324     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3326     _flag_k = FK_CMP;
   3327     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   3328 L_40009178:
   3329     eax = ecx; /* 0x40009178: mov eax, ecx */
   3330     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   3331     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   3332     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   3333     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   3334     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   3335     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3336     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3337     _flag_k = FK_CMP;
   3338     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   3339 L_40009189:
   3340     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   3341 L_4000918C:
   3342     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   3343     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   3344     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   3345     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   3346     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3348     _flag_k = FK_CMP;
   3349     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   3350 L_4000919A:
   3351     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   3352     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   3353 L_4000919F:
   3354     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   3355     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   3356     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3358     _flag_k = FK_CMP;
   3359     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   3360 L_400091A6:
   3361     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   3362     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   3363 L_400091AA:
   3364     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   3365 L_400091AD:
   3366     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   3367     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   3368 L_400091B2:
   3369     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   3370     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   3371     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   3372     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   3373     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   3374     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   3375     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   3376     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   3377     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   3378     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   3379     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   3380     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   3381     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3383     _flag_k = FK_CMP;
   3384     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   3385 L_400091D7:
   3386     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   3387 L_400091DA:
   3388     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   3389     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   3390     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   3391     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   3392     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3394     _flag_k = FK_CMP;
   3395     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   3396 L_400091E8:
   3397     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   3398     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   3399     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   3400 L_400091F3:
   3401     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   3402     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   3403     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3405     _flag_k = FK_CMP;
   3406     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   3407 L_400091FB:
   3408     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   3409     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   3410     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   3411 L_40009206:
   3412     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   3413     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   3414     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   3415 L_40009210:
   3416     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   3417     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   3418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3419     _flag_k = FK_NARROW(FK_CMP, 24);
   3420     RECOMP_BACKEDGE();
   3421     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   3422 L_4000921A:
   3423     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   3424     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3426     _flag_k = FK_CMP;
   3427     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   3428 L_4000921E:
   3429     eax = ecx; /* 0x4000921E: mov eax, ecx */
   3430     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   3431     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   3432     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   3433     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   3434     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   3435     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3436     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3437     _flag_k = FK_CMP;
   3438     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   3439 L_4000922F:
   3440     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   3441 L_40009232:
   3442     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   3443     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   3444     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   3445     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   3446     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3448     _flag_k = FK_CMP;
   3449     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   3450 L_40009240:
   3451     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   3452     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   3453 L_40009245:
   3454     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   3455     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   3456     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3458     _flag_k = FK_CMP;
   3459     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   3460 L_4000924D:
   3461     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   3462     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   3463 L_40009252:
   3464     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   3465 L_40009254:
   3466     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   3467     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   3468 L_4000925A:
   3469     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   3470     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   3471     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   3472     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   3473     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   3474     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   3475     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   3476     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   3477     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   3478     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   3479     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   3480     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   3481     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3483     _flag_k = FK_CMP;
   3484     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   3485 L_4000927F:
   3486     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   3487 L_40009282:
   3488     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   3489     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   3490     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   3491     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   3492     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3494     _flag_k = FK_CMP;
   3495     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   3496 L_40009290:
   3497     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   3498     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   3499 L_40009295:
   3500     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   3501     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   3502     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3503     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3504     _flag_k = FK_CMP;
   3505     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   3506 L_4000929C:
   3507     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   3508     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   3509 L_400092A0:
   3510     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   3511 L_400092A3:
   3512     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   3513 L_400092A5:
   3514     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   3515 L_400092A8:
   3516     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   3517     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   3518     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3520     _flag_k = FK_CMP;
   3521     RECOMP_BACKEDGE();
   3522     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   3523 L_400092B4:
   3524     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   3525     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   3526     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   3527     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   3528     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   3529     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   3530     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   3531     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   3532     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   3533     esp = ebp; /* 0x400092C8: mov esp, ebp */
   3534     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   3535     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   3536     RECOMP_REGS_OUT();
   3537 }
   3538 
   3539 void sub_40009158(void) {
   3540     int _fpu_cmp = 0;
   3541     uint32_t _cf = 0;
   3542     int _df = 1;
   3543     uint32_t _flag_k = FK_NONE;
   3544     uint32_t _flag_a = 0, _flag_b = 0;
   3545     uint32_t _itail_tgt = 0;
   3546     RECOMP_REGS_LOCALS
   3547     RECOMP_ENTER(0x40009158u);
   3548 
   3549     goto L_40009158;
   3550 L_40009134:
   3551     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   3552     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   3553     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   3554     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3555     _cf = 0;
   3556     _flag_k = FK_NARROW(FK_TEST, 24);
   3557     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   3558 L_40009142:
   3559     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   3560     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   3561     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   3562     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3564     _flag_k = FK_CMP;
   3565     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   3566 L_4000914F:
   3567     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   3568     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   3569     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   3570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3571     _flag_k = FK_NARROW(FK_CMP, 24);
   3572     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   3573 L_40009158:
   3574     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   3575     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   3576     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   3577     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   3578     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   3579     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   3580     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   3581     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   3582 L_40009173:
   3583     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   3584     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3585     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3586     _flag_k = FK_CMP;
   3587     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   3588 L_40009178:
   3589     eax = ecx; /* 0x40009178: mov eax, ecx */
   3590     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   3591     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   3592     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   3593     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   3594     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   3595     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3597     _flag_k = FK_CMP;
   3598     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   3599 L_40009189:
   3600     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   3601 L_4000918C:
   3602     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   3603     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   3604     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   3605     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   3606     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3608     _flag_k = FK_CMP;
   3609     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   3610 L_4000919A:
   3611     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   3612     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   3613 L_4000919F:
   3614     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   3615     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   3616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3618     _flag_k = FK_CMP;
   3619     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   3620 L_400091A6:
   3621     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   3622     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   3623 L_400091AA:
   3624     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   3625 L_400091AD:
   3626     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   3627     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   3628 L_400091B2:
   3629     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   3630     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   3631     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   3632     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   3633     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   3634     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   3635     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   3636     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   3637     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   3638     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   3639     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   3640     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   3641     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3643     _flag_k = FK_CMP;
   3644     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   3645 L_400091D7:
   3646     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   3647 L_400091DA:
   3648     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   3649     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   3650     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   3651     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   3652     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3653     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3654     _flag_k = FK_CMP;
   3655     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   3656 L_400091E8:
   3657     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   3658     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   3659     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   3660 L_400091F3:
   3661     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   3662     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   3663     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3664     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3665     _flag_k = FK_CMP;
   3666     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   3667 L_400091FB:
   3668     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   3669     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   3670     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   3671 L_40009206:
   3672     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   3673     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   3674     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   3675 L_40009210:
   3676     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   3677     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   3678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3679     _flag_k = FK_NARROW(FK_CMP, 24);
   3680     RECOMP_BACKEDGE();
   3681     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   3682 L_4000921A:
   3683     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   3684     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3686     _flag_k = FK_CMP;
   3687     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   3688 L_4000921E:
   3689     eax = ecx; /* 0x4000921E: mov eax, ecx */
   3690     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   3691     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   3692     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   3693     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   3694     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   3695     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3697     _flag_k = FK_CMP;
   3698     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   3699 L_4000922F:
   3700     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   3701 L_40009232:
   3702     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   3703     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   3704     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   3705     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   3706     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3707     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3708     _flag_k = FK_CMP;
   3709     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   3710 L_40009240:
   3711     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   3712     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   3713 L_40009245:
   3714     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   3715     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   3716     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3718     _flag_k = FK_CMP;
   3719     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   3720 L_4000924D:
   3721     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   3722     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   3723 L_40009252:
   3724     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   3725 L_40009254:
   3726     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   3727     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   3728 L_4000925A:
   3729     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   3730     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   3731     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   3732     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   3733     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   3734     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   3735     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   3736     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   3737     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   3738     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   3739     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   3740     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   3741     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3743     _flag_k = FK_CMP;
   3744     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   3745 L_4000927F:
   3746     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   3747 L_40009282:
   3748     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   3749     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   3750     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   3751     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   3752     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3754     _flag_k = FK_CMP;
   3755     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   3756 L_40009290:
   3757     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   3758     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   3759 L_40009295:
   3760     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   3761     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   3762     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3764     _flag_k = FK_CMP;
   3765     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   3766 L_4000929C:
   3767     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   3768     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   3769 L_400092A0:
   3770     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   3771 L_400092A3:
   3772     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   3773 L_400092A5:
   3774     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   3775 L_400092A8:
   3776     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   3777     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   3778     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3779     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3780     _flag_k = FK_CMP;
   3781     RECOMP_BACKEDGE();
   3782     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   3783 L_400092B4:
   3784     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   3785     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   3786     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   3787     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   3788     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   3789     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   3790     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   3791     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   3792     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   3793     esp = ebp; /* 0x400092C8: mov esp, ebp */
   3794     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   3795     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   3796     RECOMP_REGS_OUT();
   3797 }
   3798 
   3799 void sub_400091AD(void) {
   3800     int _fpu_cmp = 0;
   3801     uint32_t _cf = 0;
   3802     int _df = 1;
   3803     uint32_t _flag_k = FK_NONE;
   3804     uint32_t _flag_a = 0, _flag_b = 0;
   3805     uint32_t _itail_tgt = 0;
   3806     RECOMP_REGS_LOCALS
   3807     RECOMP_ENTER(0x400091ADu);
   3808 
   3809     goto L_400091AD;
   3810 L_40009134:
   3811     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   3812     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   3813     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   3814     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3815     _cf = 0;
   3816     _flag_k = FK_NARROW(FK_TEST, 24);
   3817     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   3818 L_40009142:
   3819     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   3820     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   3821     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   3822     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3824     _flag_k = FK_CMP;
   3825     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   3826 L_4000914F:
   3827     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   3828     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   3829     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   3830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3831     _flag_k = FK_NARROW(FK_CMP, 24);
   3832     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   3833 L_40009158:
   3834     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   3835     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   3836     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   3837     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   3838     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   3839     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   3840     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   3841     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   3842 L_40009173:
   3843     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   3844     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3845     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3846     _flag_k = FK_CMP;
   3847     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   3848 L_40009178:
   3849     eax = ecx; /* 0x40009178: mov eax, ecx */
   3850     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   3851     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   3852     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   3853     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   3854     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   3855     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3857     _flag_k = FK_CMP;
   3858     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   3859 L_40009189:
   3860     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   3861 L_4000918C:
   3862     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   3863     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   3864     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   3865     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   3866     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3867     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3868     _flag_k = FK_CMP;
   3869     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   3870 L_4000919A:
   3871     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   3872     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   3873 L_4000919F:
   3874     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   3875     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   3876     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3877     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3878     _flag_k = FK_CMP;
   3879     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   3880 L_400091A6:
   3881     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   3882     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   3883 L_400091AA:
   3884     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   3885 L_400091AD:
   3886     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   3887     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   3888 L_400091B2:
   3889     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   3890     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   3891     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   3892     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   3893     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   3894     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   3895     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   3896     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   3897     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   3898     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   3899     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   3900     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   3901     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3903     _flag_k = FK_CMP;
   3904     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   3905 L_400091D7:
   3906     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   3907 L_400091DA:
   3908     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   3909     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   3910     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   3911     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   3912     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3913     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3914     _flag_k = FK_CMP;
   3915     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   3916 L_400091E8:
   3917     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   3918     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   3919     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   3920 L_400091F3:
   3921     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   3922     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   3923     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3925     _flag_k = FK_CMP;
   3926     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   3927 L_400091FB:
   3928     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   3929     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   3930     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   3931 L_40009206:
   3932     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   3933     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   3934     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   3935 L_40009210:
   3936     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   3937     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   3938     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3939     _flag_k = FK_NARROW(FK_CMP, 24);
   3940     RECOMP_BACKEDGE();
   3941     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   3942 L_4000921A:
   3943     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   3944     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3946     _flag_k = FK_CMP;
   3947     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   3948 L_4000921E:
   3949     eax = ecx; /* 0x4000921E: mov eax, ecx */
   3950     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   3951     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   3952     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   3953     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   3954     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   3955     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3957     _flag_k = FK_CMP;
   3958     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   3959 L_4000922F:
   3960     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   3961 L_40009232:
   3962     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   3963     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   3964     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   3965     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   3966     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3968     _flag_k = FK_CMP;
   3969     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   3970 L_40009240:
   3971     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   3972     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   3973 L_40009245:
   3974     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   3975     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   3976     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3977     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3978     _flag_k = FK_CMP;
   3979     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   3980 L_4000924D:
   3981     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   3982     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   3983 L_40009252:
   3984     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   3985 L_40009254:
   3986     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   3987     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   3988 L_4000925A:
   3989     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   3990     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   3991     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   3992     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   3993     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   3994     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   3995     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   3996     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   3997     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   3998     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   3999     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   4000     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   4001     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4003     _flag_k = FK_CMP;
   4004     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   4005 L_4000927F:
   4006     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   4007 L_40009282:
   4008     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   4009     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   4010     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   4011     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   4012     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4013     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4014     _flag_k = FK_CMP;
   4015     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   4016 L_40009290:
   4017     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   4018     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   4019 L_40009295:
   4020     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   4021     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   4022     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4024     _flag_k = FK_CMP;
   4025     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   4026 L_4000929C:
   4027     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   4028     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   4029 L_400092A0:
   4030     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   4031 L_400092A3:
   4032     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   4033 L_400092A5:
   4034     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   4035 L_400092A8:
   4036     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   4037     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   4038     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4040     _flag_k = FK_CMP;
   4041     RECOMP_BACKEDGE();
   4042     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   4043 L_400092B4:
   4044     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   4045     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   4046     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   4047     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   4048     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   4049     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   4050     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   4051     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   4052     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   4053     esp = ebp; /* 0x400092C8: mov esp, ebp */
   4054     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   4055     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   4056     RECOMP_REGS_OUT();
   4057 }
   4058 
   4059 void sub_400091B2(void) {
   4060     int _fpu_cmp = 0;
   4061     uint32_t _cf = 0;
   4062     int _df = 1;
   4063     uint32_t _flag_k = FK_NONE;
   4064     uint32_t _flag_a = 0, _flag_b = 0;
   4065     uint32_t _itail_tgt = 0;
   4066     RECOMP_REGS_LOCALS
   4067     RECOMP_ENTER(0x400091B2u);
   4068 
   4069     goto L_400091B2;
   4070 L_40009134:
   4071     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   4072     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   4073     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   4074     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4075     _cf = 0;
   4076     _flag_k = FK_NARROW(FK_TEST, 24);
   4077     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   4078 L_40009142:
   4079     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   4080     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   4081     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   4082     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4084     _flag_k = FK_CMP;
   4085     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   4086 L_4000914F:
   4087     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   4088     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   4089     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   4090     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4091     _flag_k = FK_NARROW(FK_CMP, 24);
   4092     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   4093 L_40009158:
   4094     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   4095     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   4096     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   4097     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   4098     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   4099     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   4100     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   4101     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   4102 L_40009173:
   4103     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   4104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4106     _flag_k = FK_CMP;
   4107     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   4108 L_40009178:
   4109     eax = ecx; /* 0x40009178: mov eax, ecx */
   4110     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   4111     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   4112     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   4113     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   4114     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   4115     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4117     _flag_k = FK_CMP;
   4118     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   4119 L_40009189:
   4120     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   4121 L_4000918C:
   4122     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   4123     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   4124     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   4125     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   4126     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4128     _flag_k = FK_CMP;
   4129     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   4130 L_4000919A:
   4131     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   4132     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   4133 L_4000919F:
   4134     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   4135     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   4136     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4137     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4138     _flag_k = FK_CMP;
   4139     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   4140 L_400091A6:
   4141     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   4142     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   4143 L_400091AA:
   4144     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   4145 L_400091AD:
   4146     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   4147     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   4148 L_400091B2:
   4149     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   4150     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   4151     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   4152     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   4153     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   4154     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   4155     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   4156     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   4157     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   4158     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   4159     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   4160     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   4161     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4162     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4163     _flag_k = FK_CMP;
   4164     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   4165 L_400091D7:
   4166     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   4167 L_400091DA:
   4168     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   4169     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   4170     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   4171     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   4172     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4174     _flag_k = FK_CMP;
   4175     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   4176 L_400091E8:
   4177     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   4178     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   4179     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   4180 L_400091F3:
   4181     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   4182     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   4183     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4184     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4185     _flag_k = FK_CMP;
   4186     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   4187 L_400091FB:
   4188     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   4189     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   4190     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   4191 L_40009206:
   4192     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   4193     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   4194     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   4195 L_40009210:
   4196     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   4197     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   4198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4199     _flag_k = FK_NARROW(FK_CMP, 24);
   4200     RECOMP_BACKEDGE();
   4201     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   4202 L_4000921A:
   4203     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   4204     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4205     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4206     _flag_k = FK_CMP;
   4207     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   4208 L_4000921E:
   4209     eax = ecx; /* 0x4000921E: mov eax, ecx */
   4210     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   4211     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   4212     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   4213     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   4214     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   4215     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4217     _flag_k = FK_CMP;
   4218     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   4219 L_4000922F:
   4220     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   4221 L_40009232:
   4222     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   4223     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   4224     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   4225     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   4226     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4227     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4228     _flag_k = FK_CMP;
   4229     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   4230 L_40009240:
   4231     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   4232     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   4233 L_40009245:
   4234     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   4235     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   4236     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4238     _flag_k = FK_CMP;
   4239     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   4240 L_4000924D:
   4241     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   4242     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   4243 L_40009252:
   4244     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   4245 L_40009254:
   4246     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   4247     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   4248 L_4000925A:
   4249     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   4250     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   4251     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   4252     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   4253     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   4254     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   4255     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   4256     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   4257     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   4258     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   4259     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   4260     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   4261     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4263     _flag_k = FK_CMP;
   4264     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   4265 L_4000927F:
   4266     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   4267 L_40009282:
   4268     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   4269     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   4270     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   4271     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   4272     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4274     _flag_k = FK_CMP;
   4275     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   4276 L_40009290:
   4277     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   4278     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   4279 L_40009295:
   4280     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   4281     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   4282     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4284     _flag_k = FK_CMP;
   4285     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   4286 L_4000929C:
   4287     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   4288     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   4289 L_400092A0:
   4290     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   4291 L_400092A3:
   4292     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   4293 L_400092A5:
   4294     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   4295 L_400092A8:
   4296     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   4297     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   4298     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4300     _flag_k = FK_CMP;
   4301     RECOMP_BACKEDGE();
   4302     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   4303 L_400092B4:
   4304     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   4305     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   4306     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   4307     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   4308     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   4309     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   4310     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   4311     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   4312     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   4313     esp = ebp; /* 0x400092C8: mov esp, ebp */
   4314     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   4315     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   4316     RECOMP_REGS_OUT();
   4317 }
   4318 
   4319 void sub_40009210(void) {
   4320     int _fpu_cmp = 0;
   4321     uint32_t _cf = 0;
   4322     int _df = 1;
   4323     uint32_t _flag_k = FK_NONE;
   4324     uint32_t _flag_a = 0, _flag_b = 0;
   4325     uint32_t _itail_tgt = 0;
   4326     RECOMP_REGS_LOCALS
   4327     RECOMP_ENTER(0x40009210u);
   4328 
   4329     goto L_40009210;
   4330 L_40009134:
   4331     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   4332     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   4333     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   4334     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4335     _cf = 0;
   4336     _flag_k = FK_NARROW(FK_TEST, 24);
   4337     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   4338 L_40009142:
   4339     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   4340     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   4341     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   4342     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4344     _flag_k = FK_CMP;
   4345     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   4346 L_4000914F:
   4347     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   4348     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   4349     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   4350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4351     _flag_k = FK_NARROW(FK_CMP, 24);
   4352     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   4353 L_40009158:
   4354     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   4355     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   4356     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   4357     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   4358     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   4359     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   4360     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   4361     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   4362 L_40009173:
   4363     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   4364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4366     _flag_k = FK_CMP;
   4367     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   4368 L_40009178:
   4369     eax = ecx; /* 0x40009178: mov eax, ecx */
   4370     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   4371     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   4372     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   4373     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   4374     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   4375     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4377     _flag_k = FK_CMP;
   4378     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   4379 L_40009189:
   4380     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   4381 L_4000918C:
   4382     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   4383     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   4384     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   4385     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   4386     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4388     _flag_k = FK_CMP;
   4389     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   4390 L_4000919A:
   4391     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   4392     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   4393 L_4000919F:
   4394     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   4395     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   4396     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4398     _flag_k = FK_CMP;
   4399     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   4400 L_400091A6:
   4401     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   4402     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   4403 L_400091AA:
   4404     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   4405 L_400091AD:
   4406     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   4407     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   4408 L_400091B2:
   4409     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   4410     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   4411     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   4412     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   4413     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   4414     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   4415     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   4416     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   4417     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   4418     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   4419     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   4420     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   4421     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4423     _flag_k = FK_CMP;
   4424     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   4425 L_400091D7:
   4426     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   4427 L_400091DA:
   4428     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   4429     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   4430     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   4431     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   4432     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4434     _flag_k = FK_CMP;
   4435     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   4436 L_400091E8:
   4437     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   4438     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   4439     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   4440 L_400091F3:
   4441     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   4442     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   4443     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4445     _flag_k = FK_CMP;
   4446     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   4447 L_400091FB:
   4448     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   4449     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   4450     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   4451 L_40009206:
   4452     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   4453     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   4454     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   4455 L_40009210:
   4456     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   4457     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   4458     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4459     _flag_k = FK_NARROW(FK_CMP, 24);
   4460     RECOMP_BACKEDGE();
   4461     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   4462 L_4000921A:
   4463     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   4464     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4465     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4466     _flag_k = FK_CMP;
   4467     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   4468 L_4000921E:
   4469     eax = ecx; /* 0x4000921E: mov eax, ecx */
   4470     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   4471     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   4472     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   4473     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   4474     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   4475     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4477     _flag_k = FK_CMP;
   4478     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   4479 L_4000922F:
   4480     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   4481 L_40009232:
   4482     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   4483     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   4484     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   4485     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   4486     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4487     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4488     _flag_k = FK_CMP;
   4489     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   4490 L_40009240:
   4491     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   4492     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   4493 L_40009245:
   4494     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   4495     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   4496     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4498     _flag_k = FK_CMP;
   4499     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   4500 L_4000924D:
   4501     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   4502     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   4503 L_40009252:
   4504     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   4505 L_40009254:
   4506     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   4507     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   4508 L_4000925A:
   4509     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   4510     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   4511     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   4512     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   4513     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   4514     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   4515     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   4516     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   4517     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   4518     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   4519     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   4520     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   4521     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4523     _flag_k = FK_CMP;
   4524     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   4525 L_4000927F:
   4526     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   4527 L_40009282:
   4528     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   4529     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   4530     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   4531     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   4532     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4534     _flag_k = FK_CMP;
   4535     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   4536 L_40009290:
   4537     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   4538     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   4539 L_40009295:
   4540     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   4541     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   4542     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4543     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4544     _flag_k = FK_CMP;
   4545     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   4546 L_4000929C:
   4547     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   4548     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   4549 L_400092A0:
   4550     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   4551 L_400092A3:
   4552     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   4553 L_400092A5:
   4554     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   4555 L_400092A8:
   4556     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   4557     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   4558     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4560     _flag_k = FK_CMP;
   4561     RECOMP_BACKEDGE();
   4562     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   4563 L_400092B4:
   4564     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   4565     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   4566     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   4567     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   4568     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   4569     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   4570     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   4571     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   4572     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   4573     esp = ebp; /* 0x400092C8: mov esp, ebp */
   4574     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   4575     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   4576     RECOMP_REGS_OUT();
   4577 }
   4578 
   4579 void sub_40009254(void) {
   4580     int _fpu_cmp = 0;
   4581     uint32_t _cf = 0;
   4582     int _df = 1;
   4583     uint32_t _flag_k = FK_NONE;
   4584     uint32_t _flag_a = 0, _flag_b = 0;
   4585     uint32_t _itail_tgt = 0;
   4586     RECOMP_REGS_LOCALS
   4587     RECOMP_ENTER(0x40009254u);
   4588 
   4589     goto L_40009254;
   4590 L_40009134:
   4591     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   4592     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   4593     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   4594     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4595     _cf = 0;
   4596     _flag_k = FK_NARROW(FK_TEST, 24);
   4597     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   4598 L_40009142:
   4599     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   4600     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   4601     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   4602     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4604     _flag_k = FK_CMP;
   4605     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   4606 L_4000914F:
   4607     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   4608     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   4609     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   4610     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4611     _flag_k = FK_NARROW(FK_CMP, 24);
   4612     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   4613 L_40009158:
   4614     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   4615     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   4616     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   4617     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   4618     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   4619     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   4620     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   4621     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   4622 L_40009173:
   4623     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   4624     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4626     _flag_k = FK_CMP;
   4627     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   4628 L_40009178:
   4629     eax = ecx; /* 0x40009178: mov eax, ecx */
   4630     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   4631     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   4632     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   4633     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   4634     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   4635     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4637     _flag_k = FK_CMP;
   4638     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   4639 L_40009189:
   4640     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   4641 L_4000918C:
   4642     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   4643     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   4644     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   4645     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   4646     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4648     _flag_k = FK_CMP;
   4649     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   4650 L_4000919A:
   4651     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   4652     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   4653 L_4000919F:
   4654     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   4655     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   4656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4658     _flag_k = FK_CMP;
   4659     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   4660 L_400091A6:
   4661     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   4662     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   4663 L_400091AA:
   4664     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   4665 L_400091AD:
   4666     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   4667     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   4668 L_400091B2:
   4669     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   4670     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   4671     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   4672     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   4673     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   4674     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   4675     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   4676     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   4677     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   4678     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   4679     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   4680     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   4681     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4683     _flag_k = FK_CMP;
   4684     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   4685 L_400091D7:
   4686     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   4687 L_400091DA:
   4688     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   4689     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   4690     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   4691     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   4692     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4694     _flag_k = FK_CMP;
   4695     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   4696 L_400091E8:
   4697     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   4698     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   4699     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   4700 L_400091F3:
   4701     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   4702     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   4703     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4705     _flag_k = FK_CMP;
   4706     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   4707 L_400091FB:
   4708     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   4709     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   4710     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   4711 L_40009206:
   4712     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   4713     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   4714     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   4715 L_40009210:
   4716     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   4717     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   4718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4719     _flag_k = FK_NARROW(FK_CMP, 24);
   4720     RECOMP_BACKEDGE();
   4721     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   4722 L_4000921A:
   4723     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   4724     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4725     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4726     _flag_k = FK_CMP;
   4727     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   4728 L_4000921E:
   4729     eax = ecx; /* 0x4000921E: mov eax, ecx */
   4730     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   4731     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   4732     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   4733     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   4734     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   4735     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4737     _flag_k = FK_CMP;
   4738     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   4739 L_4000922F:
   4740     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   4741 L_40009232:
   4742     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   4743     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   4744     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   4745     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   4746     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4748     _flag_k = FK_CMP;
   4749     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   4750 L_40009240:
   4751     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   4752     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   4753 L_40009245:
   4754     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   4755     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   4756     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4758     _flag_k = FK_CMP;
   4759     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   4760 L_4000924D:
   4761     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   4762     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   4763 L_40009252:
   4764     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   4765 L_40009254:
   4766     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   4767     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   4768 L_4000925A:
   4769     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   4770     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   4771     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   4772     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   4773     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   4774     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   4775     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   4776     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   4777     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   4778     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   4779     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   4780     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   4781     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4783     _flag_k = FK_CMP;
   4784     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   4785 L_4000927F:
   4786     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   4787 L_40009282:
   4788     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   4789     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   4790     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   4791     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   4792     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4794     _flag_k = FK_CMP;
   4795     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   4796 L_40009290:
   4797     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   4798     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   4799 L_40009295:
   4800     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   4801     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   4802     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4804     _flag_k = FK_CMP;
   4805     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   4806 L_4000929C:
   4807     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   4808     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   4809 L_400092A0:
   4810     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   4811 L_400092A3:
   4812     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   4813 L_400092A5:
   4814     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   4815 L_400092A8:
   4816     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   4817     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   4818     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4820     _flag_k = FK_CMP;
   4821     RECOMP_BACKEDGE();
   4822     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   4823 L_400092B4:
   4824     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   4825     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   4826     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   4827     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   4828     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   4829     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   4830     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   4831     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   4832     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   4833     esp = ebp; /* 0x400092C8: mov esp, ebp */
   4834     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   4835     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   4836     RECOMP_REGS_OUT();
   4837 }
   4838 
   4839 void sub_4000925A(void) {
   4840     int _fpu_cmp = 0;
   4841     uint32_t _cf = 0;
   4842     int _df = 1;
   4843     uint32_t _flag_k = FK_NONE;
   4844     uint32_t _flag_a = 0, _flag_b = 0;
   4845     uint32_t _itail_tgt = 0;
   4846     RECOMP_REGS_LOCALS
   4847     RECOMP_ENTER(0x4000925Au);
   4848 
   4849     goto L_4000925A;
   4850 L_40009134:
   4851     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   4852     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   4853     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   4854     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4855     _cf = 0;
   4856     _flag_k = FK_NARROW(FK_TEST, 24);
   4857     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   4858 L_40009142:
   4859     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   4860     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   4861     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   4862     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4864     _flag_k = FK_CMP;
   4865     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   4866 L_4000914F:
   4867     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   4868     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   4869     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   4870     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4871     _flag_k = FK_NARROW(FK_CMP, 24);
   4872     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   4873 L_40009158:
   4874     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   4875     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   4876     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   4877     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   4878     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   4879     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   4880     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   4881     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   4882 L_40009173:
   4883     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   4884     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4885     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4886     _flag_k = FK_CMP;
   4887     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   4888 L_40009178:
   4889     eax = ecx; /* 0x40009178: mov eax, ecx */
   4890     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   4891     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   4892     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   4893     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   4894     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   4895     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4897     _flag_k = FK_CMP;
   4898     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   4899 L_40009189:
   4900     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   4901 L_4000918C:
   4902     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   4903     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   4904     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   4905     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   4906     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4908     _flag_k = FK_CMP;
   4909     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   4910 L_4000919A:
   4911     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   4912     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   4913 L_4000919F:
   4914     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   4915     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   4916     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4918     _flag_k = FK_CMP;
   4919     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   4920 L_400091A6:
   4921     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   4922     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   4923 L_400091AA:
   4924     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   4925 L_400091AD:
   4926     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   4927     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   4928 L_400091B2:
   4929     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   4930     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   4931     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   4932     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   4933     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   4934     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   4935     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   4936     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   4937     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   4938     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   4939     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   4940     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   4941     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4943     _flag_k = FK_CMP;
   4944     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   4945 L_400091D7:
   4946     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   4947 L_400091DA:
   4948     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   4949     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   4950     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   4951     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   4952     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4954     _flag_k = FK_CMP;
   4955     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   4956 L_400091E8:
   4957     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   4958     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   4959     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   4960 L_400091F3:
   4961     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   4962     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   4963     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4965     _flag_k = FK_CMP;
   4966     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   4967 L_400091FB:
   4968     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   4969     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   4970     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   4971 L_40009206:
   4972     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   4973     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   4974     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   4975 L_40009210:
   4976     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   4977     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   4978     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4979     _flag_k = FK_NARROW(FK_CMP, 24);
   4980     RECOMP_BACKEDGE();
   4981     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   4982 L_4000921A:
   4983     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   4984     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4985     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4986     _flag_k = FK_CMP;
   4987     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   4988 L_4000921E:
   4989     eax = ecx; /* 0x4000921E: mov eax, ecx */
   4990     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   4991     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   4992     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   4993     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   4994     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   4995     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4996     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4997     _flag_k = FK_CMP;
   4998     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   4999 L_4000922F:
   5000     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   5001 L_40009232:
   5002     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   5003     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   5004     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   5005     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   5006     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5007     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5008     _flag_k = FK_CMP;
   5009     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   5010 L_40009240:
   5011     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   5012     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   5013 L_40009245:
   5014     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   5015     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   5016     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5017     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5018     _flag_k = FK_CMP;
   5019     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   5020 L_4000924D:
   5021     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   5022     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   5023 L_40009252:
   5024     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   5025 L_40009254:
   5026     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   5027     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   5028 L_4000925A:
   5029     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   5030     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   5031     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   5032     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   5033     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   5034     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   5035     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   5036     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   5037     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   5038     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   5039     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   5040     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   5041     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5043     _flag_k = FK_CMP;
   5044     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   5045 L_4000927F:
   5046     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   5047 L_40009282:
   5048     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   5049     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   5050     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   5051     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   5052     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5054     _flag_k = FK_CMP;
   5055     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   5056 L_40009290:
   5057     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   5058     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   5059 L_40009295:
   5060     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   5061     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   5062     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5063     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5064     _flag_k = FK_CMP;
   5065     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   5066 L_4000929C:
   5067     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   5068     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   5069 L_400092A0:
   5070     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   5071 L_400092A3:
   5072     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   5073 L_400092A5:
   5074     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   5075 L_400092A8:
   5076     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   5077     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   5078     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5080     _flag_k = FK_CMP;
   5081     RECOMP_BACKEDGE();
   5082     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   5083 L_400092B4:
   5084     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   5085     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   5086     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   5087     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   5088     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   5089     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   5090     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   5091     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   5092     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   5093     esp = ebp; /* 0x400092C8: mov esp, ebp */
   5094     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   5095     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   5096     RECOMP_REGS_OUT();
   5097 }
   5098 
   5099 void sub_400092A3(void) {
   5100     int _fpu_cmp = 0;
   5101     uint32_t _cf = 0;
   5102     int _df = 1;
   5103     uint32_t _flag_k = FK_NONE;
   5104     uint32_t _flag_a = 0, _flag_b = 0;
   5105     uint32_t _itail_tgt = 0;
   5106     RECOMP_REGS_LOCALS
   5107     RECOMP_ENTER(0x400092A3u);
   5108 
   5109     goto L_400092A3;
   5110 L_40009134:
   5111     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   5112     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   5113     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   5114     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5115     _cf = 0;
   5116     _flag_k = FK_NARROW(FK_TEST, 24);
   5117     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   5118 L_40009142:
   5119     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   5120     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   5121     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   5122     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5124     _flag_k = FK_CMP;
   5125     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   5126 L_4000914F:
   5127     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   5128     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   5129     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   5130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5131     _flag_k = FK_NARROW(FK_CMP, 24);
   5132     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   5133 L_40009158:
   5134     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   5135     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   5136     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   5137     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   5138     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   5139     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   5140     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   5141     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   5142 L_40009173:
   5143     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   5144     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5146     _flag_k = FK_CMP;
   5147     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   5148 L_40009178:
   5149     eax = ecx; /* 0x40009178: mov eax, ecx */
   5150     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   5151     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   5152     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   5153     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   5154     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   5155     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5157     _flag_k = FK_CMP;
   5158     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   5159 L_40009189:
   5160     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   5161 L_4000918C:
   5162     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   5163     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   5164     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   5165     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   5166     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5167     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5168     _flag_k = FK_CMP;
   5169     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   5170 L_4000919A:
   5171     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   5172     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   5173 L_4000919F:
   5174     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   5175     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   5176     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5178     _flag_k = FK_CMP;
   5179     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   5180 L_400091A6:
   5181     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   5182     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   5183 L_400091AA:
   5184     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   5185 L_400091AD:
   5186     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   5187     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   5188 L_400091B2:
   5189     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   5190     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   5191     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   5192     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   5193     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   5194     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   5195     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   5196     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   5197     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   5198     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   5199     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   5200     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   5201     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5203     _flag_k = FK_CMP;
   5204     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   5205 L_400091D7:
   5206     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   5207 L_400091DA:
   5208     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   5209     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   5210     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   5211     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   5212     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5213     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5214     _flag_k = FK_CMP;
   5215     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   5216 L_400091E8:
   5217     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   5218     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   5219     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   5220 L_400091F3:
   5221     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   5222     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   5223     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5225     _flag_k = FK_CMP;
   5226     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   5227 L_400091FB:
   5228     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   5229     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   5230     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   5231 L_40009206:
   5232     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   5233     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   5234     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   5235 L_40009210:
   5236     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   5237     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   5238     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5239     _flag_k = FK_NARROW(FK_CMP, 24);
   5240     RECOMP_BACKEDGE();
   5241     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   5242 L_4000921A:
   5243     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   5244     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5246     _flag_k = FK_CMP;
   5247     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   5248 L_4000921E:
   5249     eax = ecx; /* 0x4000921E: mov eax, ecx */
   5250     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   5251     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   5252     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   5253     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   5254     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   5255     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5256     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5257     _flag_k = FK_CMP;
   5258     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   5259 L_4000922F:
   5260     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   5261 L_40009232:
   5262     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   5263     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   5264     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   5265     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   5266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5268     _flag_k = FK_CMP;
   5269     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   5270 L_40009240:
   5271     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   5272     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   5273 L_40009245:
   5274     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   5275     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   5276     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5278     _flag_k = FK_CMP;
   5279     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   5280 L_4000924D:
   5281     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   5282     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   5283 L_40009252:
   5284     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   5285 L_40009254:
   5286     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   5287     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   5288 L_4000925A:
   5289     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   5290     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   5291     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   5292     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   5293     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   5294     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   5295     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   5296     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   5297     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   5298     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   5299     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   5300     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   5301     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5303     _flag_k = FK_CMP;
   5304     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   5305 L_4000927F:
   5306     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   5307 L_40009282:
   5308     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   5309     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   5310     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   5311     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   5312     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5314     _flag_k = FK_CMP;
   5315     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   5316 L_40009290:
   5317     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   5318     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   5319 L_40009295:
   5320     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   5321     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   5322     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5323     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5324     _flag_k = FK_CMP;
   5325     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   5326 L_4000929C:
   5327     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   5328     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   5329 L_400092A0:
   5330     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   5331 L_400092A3:
   5332     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   5333 L_400092A5:
   5334     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   5335 L_400092A8:
   5336     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   5337     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   5338     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5340     _flag_k = FK_CMP;
   5341     RECOMP_BACKEDGE();
   5342     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   5343 L_400092B4:
   5344     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   5345     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   5346     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   5347     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   5348     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   5349     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   5350     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   5351     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   5352     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   5353     esp = ebp; /* 0x400092C8: mov esp, ebp */
   5354     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   5355     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   5356     RECOMP_REGS_OUT();
   5357 }
   5358 
   5359 void sub_400092A5(void) {
   5360     int _fpu_cmp = 0;
   5361     uint32_t _cf = 0;
   5362     int _df = 1;
   5363     uint32_t _flag_k = FK_NONE;
   5364     uint32_t _flag_a = 0, _flag_b = 0;
   5365     uint32_t _itail_tgt = 0;
   5366     RECOMP_REGS_LOCALS
   5367     RECOMP_ENTER(0x400092A5u);
   5368 
   5369     goto L_400092A5;
   5370 L_40009134:
   5371     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   5372     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   5373     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   5374     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5375     _cf = 0;
   5376     _flag_k = FK_NARROW(FK_TEST, 24);
   5377     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   5378 L_40009142:
   5379     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   5380     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   5381     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   5382     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5384     _flag_k = FK_CMP;
   5385     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   5386 L_4000914F:
   5387     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   5388     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   5389     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   5390     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5391     _flag_k = FK_NARROW(FK_CMP, 24);
   5392     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   5393 L_40009158:
   5394     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   5395     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   5396     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   5397     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   5398     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   5399     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   5400     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   5401     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   5402 L_40009173:
   5403     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   5404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5406     _flag_k = FK_CMP;
   5407     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   5408 L_40009178:
   5409     eax = ecx; /* 0x40009178: mov eax, ecx */
   5410     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   5411     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   5412     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   5413     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   5414     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   5415     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5416     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5417     _flag_k = FK_CMP;
   5418     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   5419 L_40009189:
   5420     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   5421 L_4000918C:
   5422     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   5423     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   5424     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   5425     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   5426     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5428     _flag_k = FK_CMP;
   5429     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   5430 L_4000919A:
   5431     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   5432     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   5433 L_4000919F:
   5434     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   5435     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   5436     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5438     _flag_k = FK_CMP;
   5439     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   5440 L_400091A6:
   5441     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   5442     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   5443 L_400091AA:
   5444     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   5445 L_400091AD:
   5446     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   5447     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   5448 L_400091B2:
   5449     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   5450     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   5451     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   5452     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   5453     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   5454     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   5455     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   5456     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   5457     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   5458     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   5459     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   5460     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   5461     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5463     _flag_k = FK_CMP;
   5464     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   5465 L_400091D7:
   5466     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   5467 L_400091DA:
   5468     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   5469     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   5470     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   5471     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   5472     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5473     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5474     _flag_k = FK_CMP;
   5475     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   5476 L_400091E8:
   5477     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   5478     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   5479     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   5480 L_400091F3:
   5481     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   5482     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   5483     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5485     _flag_k = FK_CMP;
   5486     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   5487 L_400091FB:
   5488     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   5489     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   5490     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   5491 L_40009206:
   5492     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   5493     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   5494     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   5495 L_40009210:
   5496     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   5497     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   5498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5499     _flag_k = FK_NARROW(FK_CMP, 24);
   5500     RECOMP_BACKEDGE();
   5501     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   5502 L_4000921A:
   5503     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   5504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5506     _flag_k = FK_CMP;
   5507     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   5508 L_4000921E:
   5509     eax = ecx; /* 0x4000921E: mov eax, ecx */
   5510     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   5511     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   5512     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   5513     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   5514     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   5515     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5517     _flag_k = FK_CMP;
   5518     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   5519 L_4000922F:
   5520     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   5521 L_40009232:
   5522     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   5523     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   5524     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   5525     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   5526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5528     _flag_k = FK_CMP;
   5529     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   5530 L_40009240:
   5531     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   5532     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   5533 L_40009245:
   5534     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   5535     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   5536     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5538     _flag_k = FK_CMP;
   5539     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   5540 L_4000924D:
   5541     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   5542     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   5543 L_40009252:
   5544     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   5545 L_40009254:
   5546     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   5547     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   5548 L_4000925A:
   5549     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   5550     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   5551     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   5552     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   5553     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   5554     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   5555     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   5556     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   5557     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   5558     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   5559     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   5560     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   5561     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5562     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5563     _flag_k = FK_CMP;
   5564     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   5565 L_4000927F:
   5566     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   5567 L_40009282:
   5568     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   5569     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   5570     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   5571     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   5572     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5574     _flag_k = FK_CMP;
   5575     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   5576 L_40009290:
   5577     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   5578     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   5579 L_40009295:
   5580     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   5581     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   5582     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5584     _flag_k = FK_CMP;
   5585     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   5586 L_4000929C:
   5587     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   5588     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   5589 L_400092A0:
   5590     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   5591 L_400092A3:
   5592     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   5593 L_400092A5:
   5594     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   5595 L_400092A8:
   5596     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   5597     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   5598     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5600     _flag_k = FK_CMP;
   5601     RECOMP_BACKEDGE();
   5602     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   5603 L_400092B4:
   5604     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   5605     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   5606     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   5607     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   5608     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   5609     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   5610     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   5611     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   5612     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   5613     esp = ebp; /* 0x400092C8: mov esp, ebp */
   5614     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   5615     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   5616     RECOMP_REGS_OUT();
   5617 }
   5618 
   5619 void sub_400092A8(void) {
   5620     int _fpu_cmp = 0;
   5621     uint32_t _cf = 0;
   5622     int _df = 1;
   5623     uint32_t _flag_k = FK_NONE;
   5624     uint32_t _flag_a = 0, _flag_b = 0;
   5625     uint32_t _itail_tgt = 0;
   5626     RECOMP_REGS_LOCALS
   5627     RECOMP_ENTER(0x400092A8u);
   5628 
   5629     goto L_400092A8;
   5630 L_40009134:
   5631     ecx = MEM32(eax + 0x4); /* 0x40009134: mov ecx, dword ptr [eax + 4] */
   5632     SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x40009137: mov dl, byte ptr [ecx + 0x28] */
   5633     /* test LO8(edx), LO8(edx) */ /* 0x4000913A: test dl, dl */
   5634     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5635     _cf = 0;
   5636     _flag_k = FK_NARROW(FK_TEST, 24);
   5637     if (TEST_NZ(_flag_a, _flag_b)) goto L_400092B4; /* 0x4000913C: jne 0x400092b4 */
   5638 L_40009142:
   5639     edi = MEM32(ecx + 0x4); /* 0x40009142: mov edi, dword ptr [ecx + 4] */
   5640     edx = MEM32(edi); /* 0x40009145: mov edx, dword ptr [edi] */
   5641     /* cmp ecx, edx */ /* 0x40009147: cmp ecx, edx */
   5642     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5644     _flag_k = FK_CMP;
   5645     if (CMP_NE(_flag_a, _flag_b)) goto L_40009210; /* 0x40009149: jne 0x40009210 */
   5646 L_4000914F:
   5647     edx = MEM32(edi + 0x8); /* 0x4000914F: mov edx, dword ptr [edi + 8] */
   5648     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009152: cmp byte ptr [edx + 0x28], 0 */
   5649     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   5650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5651     _flag_k = FK_NARROW(FK_CMP, 24);
   5652     if (CMP_NE(_flag_a, _flag_b)) goto L_40009173; /* 0x40009156: jne 0x40009173 */
   5653 L_40009158:
   5654     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x40009158: mov byte ptr [ecx + 0x28], bl */
   5655     MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000915B: mov byte ptr [edx + 0x28], bl */
   5656     ecx = MEM32(eax + 0x4); /* 0x4000915E: mov ecx, dword ptr [eax + 4] */
   5657     edx = MEM32(ecx + 0x4); /* 0x40009161: mov edx, dword ptr [ecx + 4] */
   5658     MEM8(edx + 0x28) = (uint8_t)(0); /* 0x40009164: mov byte ptr [edx + 0x28], 0 */
   5659     eax = MEM32(eax + 0x4); /* 0x40009168: mov eax, dword ptr [eax + 4] */
   5660     eax = MEM32(eax + 0x4); /* 0x4000916B: mov eax, dword ptr [eax + 4] */
   5661     goto L_400092A8; /* 0x4000916E: jmp 0x400092a8 */
   5662 L_40009173:
   5663     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x40009173: cmp eax, dword ptr [ecx + 8] */
   5664     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5666     _flag_k = FK_CMP;
   5667     if (CMP_NE(_flag_a, _flag_b)) goto L_400091B2; /* 0x40009176: jne 0x400091b2 */
   5668 L_40009178:
   5669     eax = ecx; /* 0x40009178: mov eax, ecx */
   5670     ecx = MEM32(eax + 0x8); /* 0x4000917A: mov ecx, dword ptr [eax + 8] */
   5671     edx = MEM32(ecx); /* 0x4000917D: mov edx, dword ptr [ecx] */
   5672     MEM32(eax + 0x8) = edx; /* 0x4000917F: mov dword ptr [eax + 8], edx */
   5673     edx = MEM32(ecx); /* 0x40009182: mov edx, dword ptr [ecx] */
   5674     /* cmp edx, MEM32(esi + 0x8) */ /* 0x40009184: cmp edx, dword ptr [esi + 8] */
   5675     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5677     _flag_k = FK_CMP;
   5678     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000918C; /* 0x40009187: je 0x4000918c */
   5679 L_40009189:
   5680     MEM32(edx + 0x4) = eax; /* 0x40009189: mov dword ptr [edx + 4], eax */
   5681 L_4000918C:
   5682     edx = MEM32(eax + 0x4); /* 0x4000918C: mov edx, dword ptr [eax + 4] */
   5683     MEM32(ecx + 0x4) = edx; /* 0x4000918F: mov dword ptr [ecx + 4], edx */
   5684     edx = MEM32(esi + 0x4); /* 0x40009192: mov edx, dword ptr [esi + 4] */
   5685     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009195: cmp eax, dword ptr [edx + 4] */
   5686     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5688     _flag_k = FK_CMP;
   5689     if (CMP_NE(_flag_a, _flag_b)) goto L_4000919F; /* 0x40009198: jne 0x4000919f */
   5690 L_4000919A:
   5691     MEM32(edx + 0x4) = ecx; /* 0x4000919A: mov dword ptr [edx + 4], ecx */
   5692     goto L_400091AD; /* 0x4000919D: jmp 0x400091ad */
   5693 L_4000919F:
   5694     edx = MEM32(eax + 0x4); /* 0x4000919F: mov edx, dword ptr [eax + 4] */
   5695     /* cmp eax, MEM32(edx) */ /* 0x400091A2: cmp eax, dword ptr [edx] */
   5696     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5698     _flag_k = FK_CMP;
   5699     if (CMP_NE(_flag_a, _flag_b)) goto L_400091AA; /* 0x400091A4: jne 0x400091aa */
   5700 L_400091A6:
   5701     MEM32(edx) = ecx; /* 0x400091A6: mov dword ptr [edx], ecx */
   5702     goto L_400091AD; /* 0x400091A8: jmp 0x400091ad */
   5703 L_400091AA:
   5704     MEM32(edx + 0x8) = ecx; /* 0x400091AA: mov dword ptr [edx + 8], ecx */
   5705 L_400091AD:
   5706     MEM32(ecx) = eax; /* 0x400091AD: mov dword ptr [ecx], eax */
   5707     MEM32(eax + 0x4) = ecx; /* 0x400091AF: mov dword ptr [eax + 4], ecx */
   5708 L_400091B2:
   5709     ecx = MEM32(eax + 0x4); /* 0x400091B2: mov ecx, dword ptr [eax + 4] */
   5710     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400091B5: mov byte ptr [ecx + 0x28], bl */
   5711     edx = MEM32(eax + 0x4); /* 0x400091B8: mov edx, dword ptr [eax + 4] */
   5712     ecx = MEM32(edx + 0x4); /* 0x400091BB: mov ecx, dword ptr [edx + 4] */
   5713     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x400091BE: mov byte ptr [ecx + 0x28], 0 */
   5714     edx = MEM32(eax + 0x4); /* 0x400091C2: mov edx, dword ptr [eax + 4] */
   5715     ecx = MEM32(edx + 0x4); /* 0x400091C5: mov ecx, dword ptr [edx + 4] */
   5716     edx = MEM32(ecx); /* 0x400091C8: mov edx, dword ptr [ecx] */
   5717     edi = MEM32(edx + 0x8); /* 0x400091CA: mov edi, dword ptr [edx + 8] */
   5718     MEM32(ecx) = edi; /* 0x400091CD: mov dword ptr [ecx], edi */
   5719     edi = MEM32(edx + 0x8); /* 0x400091CF: mov edi, dword ptr [edx + 8] */
   5720     /* cmp edi, MEM32(esi + 0x8) */ /* 0x400091D2: cmp edi, dword ptr [esi + 8] */
   5721     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5722     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5723     _flag_k = FK_CMP;
   5724     if (CMP_EQ(_flag_a, _flag_b)) goto L_400091DA; /* 0x400091D5: je 0x400091da */
   5725 L_400091D7:
   5726     MEM32(edi + 0x4) = ecx; /* 0x400091D7: mov dword ptr [edi + 4], ecx */
   5727 L_400091DA:
   5728     edi = MEM32(ecx + 0x4); /* 0x400091DA: mov edi, dword ptr [ecx + 4] */
   5729     MEM32(edx + 0x4) = edi; /* 0x400091DD: mov dword ptr [edx + 4], edi */
   5730     edi = MEM32(esi + 0x4); /* 0x400091E0: mov edi, dword ptr [esi + 4] */
   5731     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x400091E3: cmp ecx, dword ptr [edi + 4] */
   5732     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5733     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5734     _flag_k = FK_CMP;
   5735     if (CMP_NE(_flag_a, _flag_b)) goto L_400091F3; /* 0x400091E6: jne 0x400091f3 */
   5736 L_400091E8:
   5737     MEM32(edi + 0x4) = edx; /* 0x400091E8: mov dword ptr [edi + 4], edx */
   5738     MEM32(edx + 0x8) = ecx; /* 0x400091EB: mov dword ptr [edx + 8], ecx */
   5739     goto L_400092A5; /* 0x400091EE: jmp 0x400092a5 */
   5740 L_400091F3:
   5741     edi = MEM32(ecx + 0x4); /* 0x400091F3: mov edi, dword ptr [ecx + 4] */
   5742     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x400091F6: cmp ecx, dword ptr [edi + 8] */
   5743     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5745     _flag_k = FK_CMP;
   5746     if (CMP_NE(_flag_a, _flag_b)) goto L_40009206; /* 0x400091F9: jne 0x40009206 */
   5747 L_400091FB:
   5748     MEM32(edi + 0x8) = edx; /* 0x400091FB: mov dword ptr [edi + 8], edx */
   5749     MEM32(edx + 0x8) = ecx; /* 0x400091FE: mov dword ptr [edx + 8], ecx */
   5750     goto L_400092A5; /* 0x40009201: jmp 0x400092a5 */
   5751 L_40009206:
   5752     MEM32(edi) = edx; /* 0x40009206: mov dword ptr [edi], edx */
   5753     MEM32(edx + 0x8) = ecx; /* 0x40009208: mov dword ptr [edx + 8], ecx */
   5754     goto L_400092A5; /* 0x4000920B: jmp 0x400092a5 */
   5755 L_40009210:
   5756     /* cmp MEM8(edx + 0x28), 0 */ /* 0x40009210: cmp byte ptr [edx + 0x28], 0 */
   5757     _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(0) << 24;
   5758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5759     _flag_k = FK_NARROW(FK_CMP, 24);
   5760     RECOMP_BACKEDGE();
   5761     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009158; /* 0x40009214: je 0x40009158 */
   5762 L_4000921A:
   5763     /* cmp eax, MEM32(ecx) */ /* 0x4000921A: cmp eax, dword ptr [ecx] */
   5764     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5765     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5766     _flag_k = FK_CMP;
   5767     if (CMP_NE(_flag_a, _flag_b)) goto L_4000925A; /* 0x4000921C: jne 0x4000925a */
   5768 L_4000921E:
   5769     eax = ecx; /* 0x4000921E: mov eax, ecx */
   5770     ecx = MEM32(eax); /* 0x40009220: mov ecx, dword ptr [eax] */
   5771     edx = MEM32(ecx + 0x8); /* 0x40009222: mov edx, dword ptr [ecx + 8] */
   5772     MEM32(eax) = edx; /* 0x40009225: mov dword ptr [eax], edx */
   5773     edx = MEM32(ecx + 0x8); /* 0x40009227: mov edx, dword ptr [ecx + 8] */
   5774     /* cmp edx, MEM32(esi + 0x8) */ /* 0x4000922A: cmp edx, dword ptr [esi + 8] */
   5775     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5776     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5777     _flag_k = FK_CMP;
   5778     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009232; /* 0x4000922D: je 0x40009232 */
   5779 L_4000922F:
   5780     MEM32(edx + 0x4) = eax; /* 0x4000922F: mov dword ptr [edx + 4], eax */
   5781 L_40009232:
   5782     edx = MEM32(eax + 0x4); /* 0x40009232: mov edx, dword ptr [eax + 4] */
   5783     MEM32(ecx + 0x4) = edx; /* 0x40009235: mov dword ptr [ecx + 4], edx */
   5784     edx = MEM32(esi + 0x4); /* 0x40009238: mov edx, dword ptr [esi + 4] */
   5785     /* cmp eax, MEM32(edx + 0x4) */ /* 0x4000923B: cmp eax, dword ptr [edx + 4] */
   5786     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5787     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5788     _flag_k = FK_CMP;
   5789     if (CMP_NE(_flag_a, _flag_b)) goto L_40009245; /* 0x4000923E: jne 0x40009245 */
   5790 L_40009240:
   5791     MEM32(edx + 0x4) = ecx; /* 0x40009240: mov dword ptr [edx + 4], ecx */
   5792     goto L_40009254; /* 0x40009243: jmp 0x40009254 */
   5793 L_40009245:
   5794     edx = MEM32(eax + 0x4); /* 0x40009245: mov edx, dword ptr [eax + 4] */
   5795     /* cmp eax, MEM32(edx + 0x8) */ /* 0x40009248: cmp eax, dword ptr [edx + 8] */
   5796     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5798     _flag_k = FK_CMP;
   5799     if (CMP_NE(_flag_a, _flag_b)) goto L_40009252; /* 0x4000924B: jne 0x40009252 */
   5800 L_4000924D:
   5801     MEM32(edx + 0x8) = ecx; /* 0x4000924D: mov dword ptr [edx + 8], ecx */
   5802     goto L_40009254; /* 0x40009250: jmp 0x40009254 */
   5803 L_40009252:
   5804     MEM32(edx) = ecx; /* 0x40009252: mov dword ptr [edx], ecx */
   5805 L_40009254:
   5806     MEM32(ecx + 0x8) = eax; /* 0x40009254: mov dword ptr [ecx + 8], eax */
   5807     MEM32(eax + 0x4) = ecx; /* 0x40009257: mov dword ptr [eax + 4], ecx */
   5808 L_4000925A:
   5809     ecx = MEM32(eax + 0x4); /* 0x4000925A: mov ecx, dword ptr [eax + 4] */
   5810     MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x4000925D: mov byte ptr [ecx + 0x28], bl */
   5811     edx = MEM32(eax + 0x4); /* 0x40009260: mov edx, dword ptr [eax + 4] */
   5812     ecx = MEM32(edx + 0x4); /* 0x40009263: mov ecx, dword ptr [edx + 4] */
   5813     MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x40009266: mov byte ptr [ecx + 0x28], 0 */
   5814     edx = MEM32(eax + 0x4); /* 0x4000926A: mov edx, dword ptr [eax + 4] */
   5815     ecx = MEM32(edx + 0x4); /* 0x4000926D: mov ecx, dword ptr [edx + 4] */
   5816     edx = MEM32(ecx + 0x8); /* 0x40009270: mov edx, dword ptr [ecx + 8] */
   5817     edi = MEM32(edx); /* 0x40009273: mov edi, dword ptr [edx] */
   5818     MEM32(ecx + 0x8) = edi; /* 0x40009275: mov dword ptr [ecx + 8], edi */
   5819     edi = MEM32(edx); /* 0x40009278: mov edi, dword ptr [edx] */
   5820     /* cmp edi, MEM32(esi + 0x8) */ /* 0x4000927A: cmp edi, dword ptr [esi + 8] */
   5821     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5823     _flag_k = FK_CMP;
   5824     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009282; /* 0x4000927D: je 0x40009282 */
   5825 L_4000927F:
   5826     MEM32(edi + 0x4) = ecx; /* 0x4000927F: mov dword ptr [edi + 4], ecx */
   5827 L_40009282:
   5828     edi = MEM32(ecx + 0x4); /* 0x40009282: mov edi, dword ptr [ecx + 4] */
   5829     MEM32(edx + 0x4) = edi; /* 0x40009285: mov dword ptr [edx + 4], edi */
   5830     edi = MEM32(esi + 0x4); /* 0x40009288: mov edi, dword ptr [esi + 4] */
   5831     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x4000928B: cmp ecx, dword ptr [edi + 4] */
   5832     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5834     _flag_k = FK_CMP;
   5835     if (CMP_NE(_flag_a, _flag_b)) goto L_40009295; /* 0x4000928E: jne 0x40009295 */
   5836 L_40009290:
   5837     MEM32(edi + 0x4) = edx; /* 0x40009290: mov dword ptr [edi + 4], edx */
   5838     goto L_400092A3; /* 0x40009293: jmp 0x400092a3 */
   5839 L_40009295:
   5840     edi = MEM32(ecx + 0x4); /* 0x40009295: mov edi, dword ptr [ecx + 4] */
   5841     /* cmp ecx, MEM32(edi) */ /* 0x40009298: cmp ecx, dword ptr [edi] */
   5842     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5844     _flag_k = FK_CMP;
   5845     if (CMP_NE(_flag_a, _flag_b)) goto L_400092A0; /* 0x4000929A: jne 0x400092a0 */
   5846 L_4000929C:
   5847     MEM32(edi) = edx; /* 0x4000929C: mov dword ptr [edi], edx */
   5848     goto L_400092A3; /* 0x4000929E: jmp 0x400092a3 */
   5849 L_400092A0:
   5850     MEM32(edi + 0x8) = edx; /* 0x400092A0: mov dword ptr [edi + 8], edx */
   5851 L_400092A3:
   5852     MEM32(edx) = ecx; /* 0x400092A3: mov dword ptr [edx], ecx */
   5853 L_400092A5:
   5854     MEM32(ecx + 0x4) = edx; /* 0x400092A5: mov dword ptr [ecx + 4], edx */
   5855 L_400092A8:
   5856     ecx = MEM32(esi + 0x4); /* 0x400092A8: mov ecx, dword ptr [esi + 4] */
   5857     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400092AB: cmp eax, dword ptr [ecx + 4] */
   5858     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5860     _flag_k = FK_CMP;
   5861     RECOMP_BACKEDGE();
   5862     if (CMP_NE(_flag_a, _flag_b)) goto L_40009134; /* 0x400092AE: jne 0x40009134 */
   5863 L_400092B4:
   5864     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   5865     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   5866     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   5867     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   5868     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   5869     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   5870     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   5871     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   5872     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   5873     esp = ebp; /* 0x400092C8: mov esp, ebp */
   5874     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   5875     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   5876     RECOMP_REGS_OUT();
   5877 }
   5878 
   5879 void sub_400092B4(void) {
   5880     int _fpu_cmp = 0;
   5881     uint32_t _cf = 0;
   5882     int _df = 1;
   5883     uint32_t _flag_k = FK_NONE;
   5884     uint32_t _flag_a = 0, _flag_b = 0;
   5885     uint32_t _itail_tgt = 0;
   5886     RECOMP_REGS_LOCALS
   5887     RECOMP_ENTER(0x400092B4u);
   5888 
   5889 L_400092B4:
   5890     edx = MEM32(esi + 0x4); /* 0x400092B4: mov edx, dword ptr [esi + 4] */
   5891     eax = MEM32(edx + 0x4); /* 0x400092B7: mov eax, dword ptr [edx + 4] */
   5892     ecx = MEM32(ebp + (-0x4)); /* 0x400092BA: mov ecx, dword ptr [ebp - 4] */
   5893     MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x400092BD: mov byte ptr [eax + 0x28], bl */
   5894     eax = MEM32(ebp + 0x8); /* 0x400092C0: mov eax, dword ptr [ebp + 8] */
   5895     edi = POP32_VAL(esp); /* 0x400092C3: pop edi */
   5896     esi = POP32_VAL(esp); /* 0x400092C4: pop esi */
   5897     MEM32(eax) = ecx; /* 0x400092C5: mov dword ptr [eax], ecx */
   5898     ebx = POP32_VAL(esp); /* 0x400092C7: pop ebx */
   5899     esp = ebp; /* 0x400092C8: mov esp, ebp */
   5900     ebp = POP32_VAL(esp); /* 0x400092CA: pop ebp */
   5901     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400092CB: ret 0x10 */
   5902     RECOMP_REGS_OUT();
   5903 }
   5904 
   5905 void sub_400092D0(void) {
   5906     int _fpu_cmp = 0;
   5907     uint32_t _cf = 0;
   5908     int _df = 1;
   5909     uint32_t _flag_k = FK_NONE;
   5910     uint32_t _flag_a = 0, _flag_b = 0;
   5911     uint32_t _itail_tgt = 0;
   5912     RECOMP_REGS_LOCALS
   5913     RECOMP_ENTER(0x400092D0u);
   5914 
   5915 L_400092D0:
   5916     PUSH32(esp, ebp); /* 0x400092D0: push ebp */
   5917     ebp = esp; /* 0x400092D1: mov ebp, esp */
   5918     edx = MEM32(ebp + 0x8); /* 0x400092D3: mov edx, dword ptr [ebp + 8] */
   5919     eax = MEM32(edx + 0x8); /* 0x400092D6: mov eax, dword ptr [edx + 8] */
   5920     PUSH32(esp, esi); /* 0x400092D9: push esi */
   5921     esi = MEM32(eax); /* 0x400092DA: mov esi, dword ptr [eax] */
   5922     MEM32(edx + 0x8) = esi; /* 0x400092DC: mov dword ptr [edx + 8], esi */
   5923     esi = MEM32(eax); /* 0x400092DF: mov esi, dword ptr [eax] */
   5924     /* cmp esi, MEM32(ecx + 0x8) */ /* 0x400092E1: cmp esi, dword ptr [ecx + 8] */
   5925     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5927     _flag_k = FK_CMP;
   5928     if (CMP_EQ(_flag_a, _flag_b)) goto L_400092E9; /* 0x400092E4: je 0x400092e9 */
   5929 L_400092E6:
   5930     MEM32(esi + 0x4) = edx; /* 0x400092E6: mov dword ptr [esi + 4], edx */
   5931 L_400092E9:
   5932     esi = MEM32(edx + 0x4); /* 0x400092E9: mov esi, dword ptr [edx + 4] */
   5933     MEM32(eax + 0x4) = esi; /* 0x400092EC: mov dword ptr [eax + 4], esi */
   5934     ecx = MEM32(ecx + 0x4); /* 0x400092EF: mov ecx, dword ptr [ecx + 4] */
   5935     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x400092F2: cmp edx, dword ptr [ecx + 4] */
   5936     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5938     _flag_k = FK_CMP;
   5939     if (CMP_NE(_flag_a, _flag_b)) goto L_40009304; /* 0x400092F5: jne 0x40009304 */
   5940 L_400092F7:
   5941     MEM32(ecx + 0x4) = eax; /* 0x400092F7: mov dword ptr [ecx + 4], eax */
   5942     MEM32(eax) = edx; /* 0x400092FA: mov dword ptr [eax], edx */
   5943     MEM32(edx + 0x4) = eax; /* 0x400092FC: mov dword ptr [edx + 4], eax */
   5944     esi = POP32_VAL(esp); /* 0x400092FF: pop esi */
   5945     ebp = POP32_VAL(esp); /* 0x40009300: pop ebp */
   5946     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40009301: ret 4 */
   5947 L_40009304:
   5948     ecx = MEM32(edx + 0x4); /* 0x40009304: mov ecx, dword ptr [edx + 4] */
   5949     /* cmp edx, MEM32(ecx) */ /* 0x40009307: cmp edx, dword ptr [ecx] */
   5950     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx));
   5951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5952     _flag_k = FK_CMP;
   5953     if (CMP_NE(_flag_a, _flag_b)) goto L_40009317; /* 0x40009309: jne 0x40009317 */
   5954 L_4000930B:
   5955     MEM32(ecx) = eax; /* 0x4000930B: mov dword ptr [ecx], eax */
   5956     MEM32(eax) = edx; /* 0x4000930D: mov dword ptr [eax], edx */
   5957     MEM32(edx + 0x4) = eax; /* 0x4000930F: mov dword ptr [edx + 4], eax */
   5958     esi = POP32_VAL(esp); /* 0x40009312: pop esi */
   5959     ebp = POP32_VAL(esp); /* 0x40009313: pop ebp */
   5960     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40009314: ret 4 */
   5961 L_40009317:
   5962     MEM32(ecx + 0x8) = eax; /* 0x40009317: mov dword ptr [ecx + 8], eax */
   5963     MEM32(eax) = edx; /* 0x4000931A: mov dword ptr [eax], edx */
   5964     MEM32(edx + 0x4) = eax; /* 0x4000931C: mov dword ptr [edx + 4], eax */
   5965     esi = POP32_VAL(esp); /* 0x4000931F: pop esi */
   5966     ebp = POP32_VAL(esp); /* 0x40009320: pop ebp */
   5967     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40009321: ret 4 */
   5968     RECOMP_REGS_OUT();
   5969 }
   5970 
   5971 void sub_40009330(void) {
   5972     int _fpu_cmp = 0;
   5973     uint32_t _cf = 0;
   5974     int _df = 1;
   5975     uint32_t _flag_k = FK_NONE;
   5976     uint32_t _flag_a = 0, _flag_b = 0;
   5977     uint32_t _itail_tgt = 0;
   5978     RECOMP_REGS_LOCALS
   5979     RECOMP_ENTER(0x40009330u);
   5980 
   5981 L_40009330:
   5982     PUSH32(esp, ebp); /* 0x40009330: push ebp */
   5983     ebp = esp; /* 0x40009331: mov ebp, esp */
   5984     edx = MEM32(ebp + 0x8); /* 0x40009333: mov edx, dword ptr [ebp + 8] */
   5985     eax = MEM32(edx); /* 0x40009336: mov eax, dword ptr [edx] */
   5986     PUSH32(esp, esi); /* 0x40009338: push esi */
   5987     esi = MEM32(eax + 0x8); /* 0x40009339: mov esi, dword ptr [eax + 8] */
   5988     MEM32(edx) = esi; /* 0x4000933C: mov dword ptr [edx], esi */
   5989     esi = MEM32(eax + 0x8); /* 0x4000933E: mov esi, dword ptr [eax + 8] */
   5990     /* cmp esi, MEM32(ecx + 0x8) */ /* 0x40009341: cmp esi, dword ptr [ecx + 8] */
   5991     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5993     _flag_k = FK_CMP;
   5994     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009349; /* 0x40009344: je 0x40009349 */
   5995 L_40009346:
   5996     MEM32(esi + 0x4) = edx; /* 0x40009346: mov dword ptr [esi + 4], edx */
   5997 L_40009349:
   5998     esi = MEM32(edx + 0x4); /* 0x40009349: mov esi, dword ptr [edx + 4] */
   5999     MEM32(eax + 0x4) = esi; /* 0x4000934C: mov dword ptr [eax + 4], esi */
   6000     ecx = MEM32(ecx + 0x4); /* 0x4000934F: mov ecx, dword ptr [ecx + 4] */
   6001     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x40009352: cmp edx, dword ptr [ecx + 4] */
   6002     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6004     _flag_k = FK_CMP;
   6005     if (CMP_NE(_flag_a, _flag_b)) goto L_40009365; /* 0x40009355: jne 0x40009365 */
   6006 L_40009357:
   6007     MEM32(ecx + 0x4) = eax; /* 0x40009357: mov dword ptr [ecx + 4], eax */
   6008     MEM32(eax + 0x8) = edx; /* 0x4000935A: mov dword ptr [eax + 8], edx */
   6009     MEM32(edx + 0x4) = eax; /* 0x4000935D: mov dword ptr [edx + 4], eax */
   6010     esi = POP32_VAL(esp); /* 0x40009360: pop esi */
   6011     ebp = POP32_VAL(esp); /* 0x40009361: pop ebp */
   6012     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40009362: ret 4 */
   6013 L_40009365:
   6014     ecx = MEM32(edx + 0x4); /* 0x40009365: mov ecx, dword ptr [edx + 4] */
   6015     /* cmp edx, MEM32(ecx + 0x8) */ /* 0x40009368: cmp edx, dword ptr [ecx + 8] */
   6016     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6017     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6018     _flag_k = FK_CMP;
   6019     if (CMP_NE(_flag_a, _flag_b)) goto L_4000937B; /* 0x4000936B: jne 0x4000937b */
   6020 L_4000936D:
   6021     MEM32(ecx + 0x8) = eax; /* 0x4000936D: mov dword ptr [ecx + 8], eax */
   6022     MEM32(eax + 0x8) = edx; /* 0x40009370: mov dword ptr [eax + 8], edx */
   6023     MEM32(edx + 0x4) = eax; /* 0x40009373: mov dword ptr [edx + 4], eax */
   6024     esi = POP32_VAL(esp); /* 0x40009376: pop esi */
   6025     ebp = POP32_VAL(esp); /* 0x40009377: pop ebp */
   6026     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40009378: ret 4 */
   6027 L_4000937B:
   6028     MEM32(ecx) = eax; /* 0x4000937B: mov dword ptr [ecx], eax */
   6029     MEM32(eax + 0x8) = edx; /* 0x4000937D: mov dword ptr [eax + 8], edx */
   6030     MEM32(edx + 0x4) = eax; /* 0x40009380: mov dword ptr [edx + 4], eax */
   6031     esi = POP32_VAL(esp); /* 0x40009383: pop esi */
   6032     ebp = POP32_VAL(esp); /* 0x40009384: pop ebp */
   6033     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40009385: ret 4 */
   6034     RECOMP_REGS_OUT();
   6035 }
   6036 
   6037 void sub_40009390(void) {
   6038     int _fpu_cmp = 0;
   6039     uint32_t _cf = 0;
   6040     int _df = 1;
   6041     uint32_t _flag_k = FK_NONE;
   6042     uint32_t _flag_a = 0, _flag_b = 0;
   6043     uint32_t _itail_tgt = 0;
   6044     RECOMP_REGS_LOCALS
   6045     RECOMP_ENTER(0x40009390u);
   6046 
   6047 L_40009390:
   6048     PUSH32(esp, ebp); /* 0x40009390: push ebp */
   6049     ebp = esp; /* 0x40009391: mov ebp, esp */
   6050     PUSH32(esp, 0x2Cu); /* 0x40009393: push 0x2c */
   6051     RECOMP_ICALL(0x40014704u); /* 0x40009395: call 0x40014704 */ /* not lifted */
   6052     RECOMP_FLAGS_IN();
   6053     ecx = MEM32(ebp + 0x8); /* 0x4000939A: mov ecx, dword ptr [ebp + 8] */
   6054     SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x4000939D: mov dl, byte ptr [ebp + 0xc] */
   6055     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6056     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6057     esp = esp + 4; /* 0x400093A0: add esp, 4 */
   6058     _flag_k = FK_ADD;
   6059     MEM32(eax + 0x4) = ecx; /* 0x400093A3: mov dword ptr [eax + 4], ecx */
   6060     MEM8(eax + 0x28) = (uint8_t)(LO8(edx)); /* 0x400093A6: mov byte ptr [eax + 0x28], dl */
   6061     MEM8(eax + 0x29) = (uint8_t)(0); /* 0x400093A9: mov byte ptr [eax + 0x29], 0 */
   6062     ebp = POP32_VAL(esp); /* 0x400093AD: pop ebp */
   6063     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x400093AE: ret 8 */
   6064     RECOMP_REGS_OUT();
   6065 }
   6066 
   6067 void sub_400093C0(void) {
   6068     int _fpu_cmp = 0;
   6069     uint32_t _cf = 0;
   6070     int _df = 1;
   6071     uint32_t _flag_k = FK_NONE;
   6072     uint32_t _flag_a = 0, _flag_b = 0;
   6073     uint32_t _itail_tgt = 0;
   6074     RECOMP_REGS_LOCALS
   6075     RECOMP_ENTER(0x400093C0u);
   6076 
   6077 L_400093C0:
   6078     goto L_400093D0; /* 0x400093C0: jmp 0x400093d0 */
   6079 L_400093D0:
   6080     MEM32(0x4001D030) = 0x4001C944u; /* 0x400093D0: mov dword ptr [0x4001d030], 0x4001c944 */
   6081     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400093DA: ret  */
   6082     RECOMP_REGS_OUT();
   6083 }
   6084 
   6085 void sub_400093D0(void) {
   6086     int _fpu_cmp = 0;
   6087     uint32_t _cf = 0;
   6088     int _df = 1;
   6089     uint32_t _flag_k = FK_NONE;
   6090     uint32_t _flag_a = 0, _flag_b = 0;
   6091     uint32_t _itail_tgt = 0;
   6092     RECOMP_REGS_LOCALS
   6093     RECOMP_ENTER(0x400093D0u);
   6094 
   6095 L_400093D0:
   6096     MEM32(0x4001D030) = 0x4001C944u; /* 0x400093D0: mov dword ptr [0x4001d030], 0x4001c944 */
   6097     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400093DA: ret  */
   6098     RECOMP_REGS_OUT();
   6099 }
   6100 
   6101 void sub_400093E0(void) {
   6102     int _fpu_cmp = 0;
   6103     uint32_t _cf = 0;
   6104     int _df = 1;
   6105     uint32_t _flag_k = FK_NONE;
   6106     uint32_t _flag_a = 0, _flag_b = 0;
   6107     uint32_t _itail_tgt = 0;
   6108     RECOMP_REGS_LOCALS
   6109     RECOMP_ENTER(0x400093E0u);
   6110 
   6111 L_400093E0:
   6112     goto L_400093F0; /* 0x400093E0: jmp 0x400093f0 */
   6113 L_400093F0:
   6114     MEM32(0x4001D02C) = 0x4001C980u; /* 0x400093F0: mov dword ptr [0x4001d02c], 0x4001c980 */
   6115     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400093FA: ret  */
   6116     RECOMP_REGS_OUT();
   6117 }
   6118 
   6119 void sub_400093F0(void) {
   6120     int _fpu_cmp = 0;
   6121     uint32_t _cf = 0;
   6122     int _df = 1;
   6123     uint32_t _flag_k = FK_NONE;
   6124     uint32_t _flag_a = 0, _flag_b = 0;
   6125     uint32_t _itail_tgt = 0;
   6126     RECOMP_REGS_LOCALS
   6127     RECOMP_ENTER(0x400093F0u);
   6128 
   6129 L_400093F0:
   6130     MEM32(0x4001D02C) = 0x4001C980u; /* 0x400093F0: mov dword ptr [0x4001d02c], 0x4001c980 */
   6131     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400093FA: ret  */
   6132     RECOMP_REGS_OUT();
   6133 }
   6134 
   6135 void sub_40009400(void) {
   6136     int _fpu_cmp = 0;
   6137     uint32_t _cf = 0;
   6138     int _df = 1;
   6139     uint32_t _flag_k = FK_NONE;
   6140     uint32_t _flag_a = 0, _flag_b = 0;
   6141     uint32_t _itail_tgt = 0;
   6142     RECOMP_REGS_LOCALS
   6143     RECOMP_ENTER(0x40009400u);
   6144 
   6145 L_40009400:
   6146     PUSH32(esp, ebp); /* 0x40009400: push ebp */
   6147     ebp = esp; /* 0x40009401: mov ebp, esp */
   6148     PUSH32(esp, ebx); /* 0x40009403: push ebx */
   6149     PUSH32(esp, esi); /* 0x40009404: push esi */
   6150     ebx = ecx; /* 0x40009405: mov ebx, ecx */
   6151     eax = MEM32(ebx + 0x8); /* 0x40009407: mov eax, dword ptr [ebx + 8] */
   6152     PUSH32(esp, edi); /* 0x4000940A: push edi */
   6153     edi = MEM32(ebp + 0x8); /* 0x4000940B: mov edi, dword ptr [ebp + 8] */
   6154     /* cmp edi, eax */ /* 0x4000940E: cmp edi, eax */
   6155     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6157     _flag_k = FK_CMP;
   6158     esi = edi; /* 0x40009410: mov esi, edi */
   6159     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009433; /* 0x40009412: je 0x40009433 */
   6160 L_40009414:
   6161     eax = MEM32(esi + 0x8); /* 0x40009414: mov eax, dword ptr [esi + 8] */
   6162     PUSH32(esp, eax); /* 0x40009417: push eax */
   6163     ecx = ebx; /* 0x40009418: mov ecx, ebx */
   6164     RECOMP_ICALL(0x40009400u); /* 0x4000941A: call 0x40009400 */ /* not lifted */
   6165     RECOMP_FLAGS_IN();
   6166     esi = MEM32(esi); /* 0x4000941F: mov esi, dword ptr [esi] */
   6167     PUSH32(esp, edi); /* 0x40009421: push edi */
   6168     RECOMP_ICALL(0x400146F2u); /* 0x40009422: call 0x400146f2 */ /* not lifted */
   6169     RECOMP_FLAGS_IN();
   6170     eax = MEM32(ebx + 0x8); /* 0x40009427: mov eax, dword ptr [ebx + 8] */
   6171     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6172     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6173     esp = esp + 4; /* 0x4000942A: add esp, 4 */
   6174     _flag_k = FK_ADD;
   6175     /* cmp esi, eax */ /* 0x4000942D: cmp esi, eax */
   6176     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6178     _flag_k = FK_CMP;
   6179     edi = esi; /* 0x4000942F: mov edi, esi */
   6180     RECOMP_BACKEDGE();
   6181     if (CMP_NE(_flag_a, _flag_b)) goto L_40009414; /* 0x40009431: jne 0x40009414 */
   6182 L_40009433:
   6183     edi = POP32_VAL(esp); /* 0x40009433: pop edi */
   6184     esi = POP32_VAL(esp); /* 0x40009434: pop esi */
   6185     ebx = POP32_VAL(esp); /* 0x40009435: pop ebx */
   6186     ebp = POP32_VAL(esp); /* 0x40009436: pop ebp */
   6187     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40009437: ret 4 */
   6188     RECOMP_REGS_OUT();
   6189 }
   6190 
   6191 void sub_40009440(void) {
   6192     int _fpu_cmp = 0;
   6193     uint32_t _cf = 0;
   6194     int _df = 1;
   6195     uint32_t _flag_k = FK_NONE;
   6196     uint32_t _flag_a = 0, _flag_b = 0;
   6197     uint32_t _itail_tgt = 0;
   6198     RECOMP_REGS_LOCALS
   6199     RECOMP_ENTER(0x40009440u);
   6200 
   6201 L_40009440:
   6202     PUSH32(esp, ebp); /* 0x40009440: push ebp */
   6203     ebp = esp; /* 0x40009441: mov ebp, esp */
   6204     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6205     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6206     esp = esp - 0xCu; /* 0x40009443: sub esp, 0xc */
   6207     _flag_k = FK_CMP;
   6208     PUSH32(esp, ebx); /* 0x40009446: push ebx */
   6209     PUSH32(esp, esi); /* 0x40009447: push esi */
   6210     PUSH32(esp, edi); /* 0x40009448: push edi */
   6211     edi = ecx; /* 0x40009449: mov edi, ecx */
   6212     ecx = MEM32(edi + 0x4); /* 0x4000944B: mov ecx, dword ptr [edi + 4] */
   6213     ebx = MEM32(ecx + 0x4); /* 0x4000944E: mov ebx, dword ptr [ecx + 4] */
   6214     edx = MEM32(edi + 0x8); /* 0x40009451: mov edx, dword ptr [edi + 8] */
   6215     /* cmp ebx, edx */ /* 0x40009454: cmp ebx, edx */
   6216     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   6217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6218     _flag_k = FK_CMP;
   6219     esi = ecx; /* 0x40009456: mov esi, ecx */
   6220     SET_LO8(eax, 1); /* 0x40009458: mov al, 1 */
   6221     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000947E; /* 0x4000945A: je 0x4000947e */
   6222 L_4000945C:
   6223     eax = MEM32(ebp + 0xC); /* 0x4000945C: mov eax, dword ptr [ebp + 0xc] */
   6224     eax = MEM32(eax); /* 0x4000945F: mov eax, dword ptr [eax] */
   6225     MEM32(ebp + (-0x8)) = eax; /* 0x40009461: mov dword ptr [ebp - 8], eax */
   6226 L_40009464:
   6227     eax = MEM32(ebp + (-0x8)); /* 0x40009464: mov eax, dword ptr [ebp - 8] */
   6228     /* cmp eax, MEM32(ebx + 0xC) */ /* 0x40009467: cmp eax, dword ptr [ebx + 0xc] */
   6229     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC));
   6230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6231     _flag_k = FK_CMP;
   6232     esi = ebx; /* 0x4000946A: mov esi, ebx */
   6233     SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x4000946C: setl al */
   6234     /* test LO8(eax), LO8(eax) */ /* 0x4000946F: test al, al */
   6235     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6236     _cf = 0;
   6237     _flag_k = FK_NARROW(FK_TEST, 24);
   6238     if (TEST_Z(_flag_a, _flag_b)) goto L_40009477; /* 0x40009471: je 0x40009477 */
   6239 L_40009473:
   6240     ebx = MEM32(ebx); /* 0x40009473: mov ebx, dword ptr [ebx] */
   6241     goto L_4000947A; /* 0x40009475: jmp 0x4000947a */
   6242 L_40009477:
   6243     ebx = MEM32(ebx + 0x8); /* 0x40009477: mov ebx, dword ptr [ebx + 8] */
   6244 L_4000947A:
   6245     /* cmp ebx, edx */ /* 0x4000947A: cmp ebx, edx */
   6246     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   6247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6248     _flag_k = FK_CMP;
   6249     RECOMP_BACKEDGE();
   6250     if (CMP_NE(_flag_a, _flag_b)) goto L_40009464; /* 0x4000947C: jne 0x40009464 */
   6251 L_4000947E:
   6252     SET_LO8(edx, MEM8(edi + 0xC)); /* 0x4000947E: mov dl, byte ptr [edi + 0xc] */
   6253     /* test LO8(edx), LO8(edx) */ /* 0x40009481: test dl, dl */
   6254     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6255     _cf = 0;
   6256     _flag_k = FK_NARROW(FK_TEST, 24);
   6257     if (TEST_Z(_flag_a, _flag_b)) goto L_400095F9; /* 0x40009483: je 0x400095f9 */
   6258 L_40009489:
   6259     PUSH32(esp, 0); /* 0x40009489: push 0 */
   6260     PUSH32(esp, esi); /* 0x4000948B: push esi */
   6261     ecx = edi; /* 0x4000948C: mov ecx, edi */
   6262     RECOMP_ICALL(0x40009A90u); /* 0x4000948E: call 0x40009a90 */ /* not lifted */
   6263     RECOMP_FLAGS_IN();
   6264     ecx = MEM32(edi + 0x8); /* 0x40009493: mov ecx, dword ptr [edi + 8] */
   6265     MEM32(eax) = ecx; /* 0x40009496: mov dword ptr [eax], ecx */
   6266     edx = MEM32(edi + 0x8); /* 0x40009498: mov edx, dword ptr [edi + 8] */
   6267     ecx = MEM32(ebp + 0xC); /* 0x4000949B: mov ecx, dword ptr [ebp + 0xc] */
   6268     MEM32(ebp + (-0x4)) = eax; /* 0x4000949E: mov dword ptr [ebp - 4], eax */
   6269     MEM32(eax + 0x8) = edx; /* 0x400094A1: mov dword ptr [eax + 8], edx */
   6270     PUSH32(esp, ecx); /* 0x400094A4: push ecx */
   6271     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6272     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6273     eax = eax + 0xCu; /* 0x400094A5: add eax, 0xc */
   6274     _flag_k = FK_ADD;
   6275     PUSH32(esp, eax); /* 0x400094A8: push eax */
   6276     RECOMP_ICALL(0x4000FBD0u); /* 0x400094A9: call 0x4000fbd0 */ /* not lifted */
   6277     RECOMP_FLAGS_IN();
   6278     ecx = MEM32(edi + 0x10); /* 0x400094AE: mov ecx, dword ptr [edi + 0x10] */
   6279     eax = MEM32(edi + 0x4); /* 0x400094B1: mov eax, dword ptr [edi + 4] */
   6280     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6281     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6282     esp = esp + 8; /* 0x400094B4: add esp, 8 */
   6283     _flag_k = FK_ADD;
   6284     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6285     ecx = ecx + 1; /* 0x400094B7: inc ecx */
   6286     _flag_k = FK_INC;
   6287     /* cmp esi, eax */ /* 0x400094B8: cmp esi, eax */
   6288     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6290     _flag_k = FK_CMP;
   6291     MEM32(edi + 0x10) = ecx; /* 0x400094BA: mov dword ptr [edi + 0x10], ecx */
   6292     if (CMP_EQ(_flag_a, _flag_b)) goto L_400094E1; /* 0x400094BD: je 0x400094e1 */
   6293 L_400094BF:
   6294     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x400094BF: cmp ebx, dword ptr [edi + 8] */
   6295     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6297     _flag_k = FK_CMP;
   6298     if (CMP_NE(_flag_a, _flag_b)) goto L_400094E1; /* 0x400094C2: jne 0x400094e1 */
   6299 L_400094C4:
   6300     edx = MEM32(ebp + 0xC); /* 0x400094C4: mov edx, dword ptr [ebp + 0xc] */
   6301     eax = MEM32(edx); /* 0x400094C7: mov eax, dword ptr [edx] */
   6302     /* cmp eax, MEM32(esi + 0xC) */ /* 0x400094C9: cmp eax, dword ptr [esi + 0xc] */
   6303     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   6304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6305     _flag_k = FK_CMP;
   6306     if (CMP_L(_flag_a, _flag_b)) goto L_400094E1; /* 0x400094CC: jl 0x400094e1 */
   6307 L_400094CE:
   6308     ebx = MEM32(ebp + (-0x4)); /* 0x400094CE: mov ebx, dword ptr [ebp - 4] */
   6309     MEM32(esi + 0x8) = ebx; /* 0x400094D1: mov dword ptr [esi + 8], ebx */
   6310     eax = MEM32(edi + 0x4); /* 0x400094D4: mov eax, dword ptr [edi + 4] */
   6311     /* cmp esi, MEM32(eax + 0x8) */ /* 0x400094D7: cmp esi, dword ptr [eax + 8] */
   6312     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6314     _flag_k = FK_CMP;
   6315     if (CMP_NE(_flag_a, _flag_b)) goto L_40009504; /* 0x400094DA: jne 0x40009504 */
   6316 L_400094DC:
   6317     MEM32(eax + 0x8) = ebx; /* 0x400094DC: mov dword ptr [eax + 8], ebx */
   6318     goto L_40009504; /* 0x400094DF: jmp 0x40009504 */
   6319 L_400094E1:
   6320     ecx = MEM32(ebp + (-0x4)); /* 0x400094E1: mov ecx, dword ptr [ebp - 4] */
   6321     MEM32(esi) = ecx; /* 0x400094E4: mov dword ptr [esi], ecx */
   6322     eax = MEM32(edi + 0x4); /* 0x400094E6: mov eax, dword ptr [edi + 4] */
   6323     /* cmp esi, eax */ /* 0x400094E9: cmp esi, eax */
   6324     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6326     _flag_k = FK_CMP;
   6327     if (CMP_NE(_flag_a, _flag_b)) goto L_400094F8; /* 0x400094EB: jne 0x400094f8 */
   6328 L_400094ED:
   6329     MEM32(eax + 0x4) = ecx; /* 0x400094ED: mov dword ptr [eax + 4], ecx */
   6330     edx = MEM32(edi + 0x4); /* 0x400094F0: mov edx, dword ptr [edi + 4] */
   6331     MEM32(edx + 0x8) = ecx; /* 0x400094F3: mov dword ptr [edx + 8], ecx */
   6332     goto L_40009501; /* 0x400094F6: jmp 0x40009501 */
   6333 L_400094F8:
   6334     /* cmp esi, MEM32(eax) */ /* 0x400094F8: cmp esi, dword ptr [eax] */
   6335     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   6336     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6337     _flag_k = FK_CMP;
   6338     if (CMP_NE(_flag_a, _flag_b)) goto L_40009501; /* 0x400094FA: jne 0x40009501 */
   6339 L_400094FC:
   6340     ecx = MEM32(ebp + (-0x4)); /* 0x400094FC: mov ecx, dword ptr [ebp - 4] */
   6341     MEM32(eax) = ecx; /* 0x400094FF: mov dword ptr [eax], ecx */
   6342 L_40009501:
   6343     ebx = MEM32(ebp + (-0x4)); /* 0x40009501: mov ebx, dword ptr [ebp - 4] */
   6344 L_40009504:
   6345     edx = MEM32(edi + 0x4); /* 0x40009504: mov edx, dword ptr [edi + 4] */
   6346     /* cmp ebx, MEM32(edx + 0x4) */ /* 0x40009507: cmp ebx, dword ptr [edx + 4] */
   6347     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6349     _flag_k = FK_CMP;
   6350     esi = ebx; /* 0x4000950A: mov esi, ebx */
   6351     if (CMP_EQ(_flag_a, _flag_b)) goto L_400095D7; /* 0x4000950C: je 0x400095d7 */
   6352 L_40009512:
   6353     eax = MEM32(esi + 0x4); /* 0x40009512: mov eax, dword ptr [esi + 4] */
   6354     SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x40009515: mov cl, byte ptr [eax + 0x14] */
   6355     /* test LO8(ecx), LO8(ecx) */ /* 0x40009518: test cl, cl */
   6356     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6357     _cf = 0;
   6358     _flag_k = FK_NARROW(FK_TEST, 24);
   6359     if (TEST_NZ(_flag_a, _flag_b)) goto L_400095D7; /* 0x4000951A: jne 0x400095d7 */
   6360 L_40009520:
   6361     edx = MEM32(eax + 0x4); /* 0x40009520: mov edx, dword ptr [eax + 4] */
   6362     ecx = MEM32(edx); /* 0x40009523: mov ecx, dword ptr [edx] */
   6363     /* cmp eax, ecx */ /* 0x40009525: cmp eax, ecx */
   6364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6366     _flag_k = FK_CMP;
   6367     if (CMP_NE(_flag_a, _flag_b)) goto L_4000957D; /* 0x40009527: jne 0x4000957d */
   6368 L_40009529:
   6369     ecx = MEM32(edx + 0x8); /* 0x40009529: mov ecx, dword ptr [edx + 8] */
   6370     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x4000952C: mov dl, byte ptr [ecx + 0x14] */
   6371     /* test LO8(edx), LO8(edx) */ /* 0x4000952F: test dl, dl */
   6372     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6373     _cf = 0;
   6374     _flag_k = FK_NARROW(FK_TEST, 24);
   6375     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000954D; /* 0x40009531: jne 0x4000954d */
   6376 L_40009533:
   6377     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x40009533: mov byte ptr [eax + 0x14], 1 */
   6378     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x40009537: mov byte ptr [ecx + 0x14], 1 */
   6379     eax = MEM32(esi + 0x4); /* 0x4000953B: mov eax, dword ptr [esi + 4] */
   6380     ecx = MEM32(eax + 0x4); /* 0x4000953E: mov ecx, dword ptr [eax + 4] */
   6381     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009541: mov byte ptr [ecx + 0x14], 0 */
   6382     edx = MEM32(esi + 0x4); /* 0x40009545: mov edx, dword ptr [esi + 4] */
   6383     esi = MEM32(edx + 0x4); /* 0x40009548: mov esi, dword ptr [edx + 4] */
   6384     goto L_400095CB; /* 0x4000954B: jmp 0x400095cb */
   6385 L_4000954D:
   6386     /* cmp esi, MEM32(eax + 0x8) */ /* 0x4000954D: cmp esi, dword ptr [eax + 8] */
   6387     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6389     _flag_k = FK_CMP;
   6390     if (CMP_NE(_flag_a, _flag_b)) goto L_4000955C; /* 0x40009550: jne 0x4000955c */
   6391 L_40009552:
   6392     esi = eax; /* 0x40009552: mov esi, eax */
   6393     PUSH32(esp, esi); /* 0x40009554: push esi */
   6394     ecx = edi; /* 0x40009555: mov ecx, edi */
   6395     RECOMP_ICALL(0x400092D0u); /* 0x40009557: call 0x400092d0 */ /* not lifted */
   6396     RECOMP_FLAGS_IN();
   6397 L_4000955C:
   6398     eax = MEM32(esi + 0x4); /* 0x4000955C: mov eax, dword ptr [esi + 4] */
   6399     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x4000955F: mov byte ptr [eax + 0x14], 1 */
   6400     ecx = MEM32(esi + 0x4); /* 0x40009563: mov ecx, dword ptr [esi + 4] */
   6401     edx = MEM32(ecx + 0x4); /* 0x40009566: mov edx, dword ptr [ecx + 4] */
   6402     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x40009569: mov byte ptr [edx + 0x14], 0 */
   6403     eax = MEM32(esi + 0x4); /* 0x4000956D: mov eax, dword ptr [esi + 4] */
   6404     ecx = MEM32(eax + 0x4); /* 0x40009570: mov ecx, dword ptr [eax + 4] */
   6405     PUSH32(esp, ecx); /* 0x40009573: push ecx */
   6406     ecx = edi; /* 0x40009574: mov ecx, edi */
   6407     RECOMP_ICALL(0x40009330u); /* 0x40009576: call 0x40009330 */ /* not lifted */
   6408     RECOMP_FLAGS_IN();
   6409     goto L_400095CB; /* 0x4000957B: jmp 0x400095cb */
   6410 L_4000957D:
   6411     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x4000957D: mov dl, byte ptr [ecx + 0x14] */
   6412     /* test LO8(edx), LO8(edx) */ /* 0x40009580: test dl, dl */
   6413     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6414     _cf = 0;
   6415     _flag_k = FK_NARROW(FK_TEST, 24);
   6416     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000959E; /* 0x40009582: jne 0x4000959e */
   6417 L_40009584:
   6418     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x40009584: mov byte ptr [eax + 0x14], 1 */
   6419     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x40009588: mov byte ptr [ecx + 0x14], 1 */
   6420     edx = MEM32(esi + 0x4); /* 0x4000958C: mov edx, dword ptr [esi + 4] */
   6421     eax = MEM32(edx + 0x4); /* 0x4000958F: mov eax, dword ptr [edx + 4] */
   6422     MEM8(eax + 0x14) = (uint8_t)(0); /* 0x40009592: mov byte ptr [eax + 0x14], 0 */
   6423     ecx = MEM32(esi + 0x4); /* 0x40009596: mov ecx, dword ptr [esi + 4] */
   6424     esi = MEM32(ecx + 0x4); /* 0x40009599: mov esi, dword ptr [ecx + 4] */
   6425     goto L_400095CB; /* 0x4000959C: jmp 0x400095cb */
   6426 L_4000959E:
   6427     /* cmp esi, MEM32(eax) */ /* 0x4000959E: cmp esi, dword ptr [eax] */
   6428     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   6429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6430     _flag_k = FK_CMP;
   6431     if (CMP_NE(_flag_a, _flag_b)) goto L_400095AC; /* 0x400095A0: jne 0x400095ac */
   6432 L_400095A2:
   6433     esi = eax; /* 0x400095A2: mov esi, eax */
   6434     PUSH32(esp, esi); /* 0x400095A4: push esi */
   6435     ecx = edi; /* 0x400095A5: mov ecx, edi */
   6436     RECOMP_ICALL(0x40009330u); /* 0x400095A7: call 0x40009330 */ /* not lifted */
   6437     RECOMP_FLAGS_IN();
   6438 L_400095AC:
   6439     edx = MEM32(esi + 0x4); /* 0x400095AC: mov edx, dword ptr [esi + 4] */
   6440     MEM8(edx + 0x14) = (uint8_t)(1); /* 0x400095AF: mov byte ptr [edx + 0x14], 1 */
   6441     eax = MEM32(esi + 0x4); /* 0x400095B3: mov eax, dword ptr [esi + 4] */
   6442     ecx = MEM32(eax + 0x4); /* 0x400095B6: mov ecx, dword ptr [eax + 4] */
   6443     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400095B9: mov byte ptr [ecx + 0x14], 0 */
   6444     edx = MEM32(esi + 0x4); /* 0x400095BD: mov edx, dword ptr [esi + 4] */
   6445     eax = MEM32(edx + 0x4); /* 0x400095C0: mov eax, dword ptr [edx + 4] */
   6446     PUSH32(esp, eax); /* 0x400095C3: push eax */
   6447     ecx = edi; /* 0x400095C4: mov ecx, edi */
   6448     RECOMP_ICALL(0x400092D0u); /* 0x400095C6: call 0x400092d0 */ /* not lifted */
   6449     RECOMP_FLAGS_IN();
   6450 L_400095CB:
   6451     ecx = MEM32(edi + 0x4); /* 0x400095CB: mov ecx, dword ptr [edi + 4] */
   6452     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x400095CE: cmp esi, dword ptr [ecx + 4] */
   6453     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6454     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6455     _flag_k = FK_CMP;
   6456     RECOMP_BACKEDGE();
   6457     if (CMP_NE(_flag_a, _flag_b)) goto L_40009512; /* 0x400095D1: jne 0x40009512 */
   6458 L_400095D7:
   6459     edx = MEM32(edi + 0x4); /* 0x400095D7: mov edx, dword ptr [edi + 4] */
   6460     eax = MEM32(edx + 0x4); /* 0x400095DA: mov eax, dword ptr [edx + 4] */
   6461     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x400095DD: mov byte ptr [eax + 0x14], 1 */
   6462     eax = MEM32(ebp + 0x8); /* 0x400095E1: mov eax, dword ptr [ebp + 8] */
   6463     edi = POP32_VAL(esp); /* 0x400095E4: pop edi */
   6464     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x400095E5: mov byte ptr [ebp - 8], 1 */
   6465     ecx = MEM32(ebp + (-0x8)); /* 0x400095E9: mov ecx, dword ptr [ebp - 8] */
   6466     MEM32(eax) = ebx; /* 0x400095EC: mov dword ptr [eax], ebx */
   6467     esi = POP32_VAL(esp); /* 0x400095EE: pop esi */
   6468     MEM32(eax + 0x4) = ecx; /* 0x400095EF: mov dword ptr [eax + 4], ecx */
   6469     ebx = POP32_VAL(esp); /* 0x400095F2: pop ebx */
   6470     esp = ebp; /* 0x400095F3: mov esp, ebp */
   6471     ebp = POP32_VAL(esp); /* 0x400095F5: pop ebp */
   6472     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x400095F6: ret 8 */
   6473 L_400095F9:
   6474     /* test LO8(eax), LO8(eax) */ /* 0x400095F9: test al, al */
   6475     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6476     _cf = 0;
   6477     _flag_k = FK_NARROW(FK_TEST, 24);
   6478     edx = esi; /* 0x400095FB: mov edx, esi */
   6479     MEM32(ebp + (-0x8)) = edx; /* 0x400095FD: mov dword ptr [ebp - 8], edx */
   6480     if (TEST_Z(_flag_a, _flag_b)) goto L_4000963C; /* 0x40009600: je 0x4000963c */
   6481 L_40009602:
   6482     /* cmp esi, MEM32(ecx) */ /* 0x40009602: cmp esi, dword ptr [ecx] */
   6483     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx));
   6484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6485     _flag_k = FK_CMP;
   6486     if (CMP_NE(_flag_a, _flag_b)) goto L_40009631; /* 0x40009604: jne 0x40009631 */
   6487 L_40009606:
   6488     edx = MEM32(ebp + 0xC); /* 0x40009606: mov edx, dword ptr [ebp + 0xc] */
   6489     PUSH32(esp, edx); /* 0x40009609: push edx */
   6490     PUSH32(esp, esi); /* 0x4000960A: push esi */
   6491     PUSH32(esp, ebx); /* 0x4000960B: push ebx */
   6492     eax = ebp + 0xC; /* 0x4000960C: lea eax, [ebp + 0xc] */
   6493     PUSH32(esp, eax); /* 0x4000960F: push eax */
   6494     ecx = edi; /* 0x40009610: mov ecx, edi */
   6495     RECOMP_ICALL(0x4000DBE0u); /* 0x40009612: call 0x4000dbe0 */ /* not lifted */
   6496     RECOMP_FLAGS_IN();
   6497     ecx = MEM32(eax); /* 0x40009617: mov ecx, dword ptr [eax] */
   6498     eax = MEM32(ebp + 0x8); /* 0x40009619: mov eax, dword ptr [ebp + 8] */
   6499     edi = POP32_VAL(esp); /* 0x4000961C: pop edi */
   6500     MEM32(eax) = ecx; /* 0x4000961D: mov dword ptr [eax], ecx */
   6501     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x4000961F: mov byte ptr [ebp - 8], 1 */
   6502     ecx = MEM32(ebp + (-0x8)); /* 0x40009623: mov ecx, dword ptr [ebp - 8] */
   6503     esi = POP32_VAL(esp); /* 0x40009626: pop esi */
   6504     MEM32(eax + 0x4) = ecx; /* 0x40009627: mov dword ptr [eax + 4], ecx */
   6505     ebx = POP32_VAL(esp); /* 0x4000962A: pop ebx */
   6506     esp = ebp; /* 0x4000962B: mov esp, ebp */
   6507     ebp = POP32_VAL(esp); /* 0x4000962D: pop ebp */
   6508     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4000962E: ret 8 */
   6509 L_40009631:
   6510     ecx = ebp + (-0x8); /* 0x40009631: lea ecx, [ebp - 8] */
   6511     RECOMP_ICALL(0x4000ED30u); /* 0x40009634: call 0x4000ed30 */ /* not lifted */
   6512     RECOMP_FLAGS_IN();
   6513     edx = MEM32(ebp + (-0x8)); /* 0x40009639: mov edx, dword ptr [ebp - 8] */
   6514 L_4000963C:
   6515     ecx = MEM32(edx + 0xC); /* 0x4000963C: mov ecx, dword ptr [edx + 0xc] */
   6516     eax = MEM32(ebp + 0xC); /* 0x4000963F: mov eax, dword ptr [ebp + 0xc] */
   6517     /* cmp ecx, MEM32(eax) */ /* 0x40009642: cmp ecx, dword ptr [eax] */
   6518     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   6519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6520     _flag_k = FK_CMP;
   6521     if (CMP_GE(_flag_a, _flag_b)) goto L_4000966E; /* 0x40009644: jge 0x4000966e */
   6522 L_40009646:
   6523     PUSH32(esp, eax); /* 0x40009646: push eax */
   6524     PUSH32(esp, esi); /* 0x40009647: push esi */
   6525     PUSH32(esp, ebx); /* 0x40009648: push ebx */
   6526     edx = ebp + 0xC; /* 0x40009649: lea edx, [ebp + 0xc] */
   6527     PUSH32(esp, edx); /* 0x4000964C: push edx */
   6528     ecx = edi; /* 0x4000964D: mov ecx, edi */
   6529     RECOMP_ICALL(0x4000DBE0u); /* 0x4000964F: call 0x4000dbe0 */ /* not lifted */
   6530     RECOMP_FLAGS_IN();
   6531     ecx = MEM32(eax); /* 0x40009654: mov ecx, dword ptr [eax] */
   6532     eax = MEM32(ebp + 0x8); /* 0x40009656: mov eax, dword ptr [ebp + 8] */
   6533     edi = POP32_VAL(esp); /* 0x40009659: pop edi */
   6534     MEM32(eax) = ecx; /* 0x4000965A: mov dword ptr [eax], ecx */
   6535     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x4000965C: mov byte ptr [ebp - 8], 1 */
   6536     ecx = MEM32(ebp + (-0x8)); /* 0x40009660: mov ecx, dword ptr [ebp - 8] */
   6537     esi = POP32_VAL(esp); /* 0x40009663: pop esi */
   6538     MEM32(eax + 0x4) = ecx; /* 0x40009664: mov dword ptr [eax + 4], ecx */
   6539     ebx = POP32_VAL(esp); /* 0x40009667: pop ebx */
   6540     esp = ebp; /* 0x40009668: mov esp, ebp */
   6541     ebp = POP32_VAL(esp); /* 0x4000966A: pop ebp */
   6542     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4000966B: ret 8 */
   6543 L_4000966E:
   6544     eax = MEM32(ebp + 0x8); /* 0x4000966E: mov eax, dword ptr [ebp + 8] */
   6545     edi = POP32_VAL(esp); /* 0x40009671: pop edi */
   6546     MEM32(eax) = edx; /* 0x40009672: mov dword ptr [eax], edx */
   6547     MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x40009674: mov byte ptr [ebp - 8], 0 */
   6548     edx = MEM32(ebp + (-0x8)); /* 0x40009678: mov edx, dword ptr [ebp - 8] */
   6549     esi = POP32_VAL(esp); /* 0x4000967B: pop esi */
   6550     MEM32(eax + 0x4) = edx; /* 0x4000967C: mov dword ptr [eax + 4], edx */
   6551     ebx = POP32_VAL(esp); /* 0x4000967F: pop ebx */
   6552     esp = ebp; /* 0x40009680: mov esp, ebp */
   6553     ebp = POP32_VAL(esp); /* 0x40009682: pop ebp */
   6554     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009683: ret 8 */
   6555     RECOMP_REGS_OUT();
   6556 }
   6557 
   6558 void sub_40009690(void) {
   6559     int _fpu_cmp = 0;
   6560     uint32_t _cf = 0;
   6561     int _df = 1;
   6562     uint32_t _flag_k = FK_NONE;
   6563     uint32_t _flag_a = 0, _flag_b = 0;
   6564     uint32_t _itail_tgt = 0;
   6565     RECOMP_REGS_LOCALS
   6566     RECOMP_ENTER(0x40009690u);
   6567 
   6568 L_40009690:
   6569     PUSH32(esp, ebp); /* 0x40009690: push ebp */
   6570     ebp = esp; /* 0x40009691: mov ebp, esp */
   6571     PUSH32(esp, ecx); /* 0x40009693: push ecx */
   6572     PUSH32(esp, ebx); /* 0x40009694: push ebx */
   6573     PUSH32(esp, esi); /* 0x40009695: push esi */
   6574     esi = MEM32(ebp + 0xC); /* 0x40009696: mov esi, dword ptr [ebp + 0xc] */
   6575     PUSH32(esp, edi); /* 0x40009699: push edi */
   6576     edi = ecx; /* 0x4000969A: mov edi, ecx */
   6577     ecx = ebp + 0xC; /* 0x4000969C: lea ecx, [ebp + 0xc] */
   6578     RECOMP_ICALL(0x40008480u); /* 0x4000969F: call 0x40008480 */ /* not lifted */
   6579     RECOMP_FLAGS_IN();
   6580     edx = MEM32(esi); /* 0x400096A4: mov edx, dword ptr [esi] */
   6581     eax = MEM32(edi + 0x8); /* 0x400096A6: mov eax, dword ptr [edi + 8] */
   6582     /* cmp edx, eax */ /* 0x400096A9: cmp edx, eax */
   6583     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6585     _flag_k = FK_CMP;
   6586     MEM32(ebp + (-0x4)) = esi; /* 0x400096AB: mov dword ptr [ebp - 4], esi */
   6587     if (CMP_NE(_flag_a, _flag_b)) goto L_400096D0; /* 0x400096AE: jne 0x400096d0 */
   6588 L_400096B0:
   6589     eax = MEM32(esi + 0x8); /* 0x400096B0: mov eax, dword ptr [esi + 8] */
   6590 L_400096B3:
   6591     ecx = MEM32(ebp + (-0x4)); /* 0x400096B3: mov ecx, dword ptr [ebp - 4] */
   6592     edx = MEM32(ecx + 0x4); /* 0x400096B6: mov edx, dword ptr [ecx + 4] */
   6593     MEM32(eax + 0x4) = edx; /* 0x400096B9: mov dword ptr [eax + 4], edx */
   6594     ecx = MEM32(edi + 0x4); /* 0x400096BC: mov ecx, dword ptr [edi + 4] */
   6595     /* cmp MEM32(ecx + 0x4), esi */ /* 0x400096BF: cmp dword ptr [ecx + 4], esi */
   6596     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi);
   6597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6598     _flag_k = FK_CMP;
   6599     if (CMP_NE(_flag_a, _flag_b)) goto L_40009753; /* 0x400096C2: jne 0x40009753 */
   6600 L_400096C8:
   6601     MEM32(ecx + 0x4) = eax; /* 0x400096C8: mov dword ptr [ecx + 4], eax */
   6602     goto L_40009761; /* 0x400096CB: jmp 0x40009761 */
   6603 L_400096D0:
   6604     ecx = MEM32(esi + 0x8); /* 0x400096D0: mov ecx, dword ptr [esi + 8] */
   6605     /* cmp ecx, eax */ /* 0x400096D3: cmp ecx, eax */
   6606     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6608     _flag_k = FK_CMP;
   6609     if (CMP_NE(_flag_a, _flag_b)) goto L_400096DB; /* 0x400096D5: jne 0x400096db */
   6610 L_400096D7:
   6611     eax = edx; /* 0x400096D7: mov eax, edx */
   6612     RECOMP_BACKEDGE();
   6613     goto L_400096B3; /* 0x400096D9: jmp 0x400096b3 */
   6614 L_400096DB:
   6615     eax = MEM32(ecx); /* 0x400096DB: mov eax, dword ptr [ecx] */
   6616     SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x400096DD: mov bl, byte ptr [eax + 0x15] */
   6617     /* test LO8(ebx), LO8(ebx) */ /* 0x400096E0: test bl, bl */
   6618     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6619     _cf = 0;
   6620     _flag_k = FK_NARROW(FK_TEST, 24);
   6621     if (TEST_NZ(_flag_a, _flag_b)) goto L_400096EF; /* 0x400096E2: jne 0x400096ef */
   6622 L_400096E4:
   6623     ecx = eax; /* 0x400096E4: mov ecx, eax */
   6624     eax = MEM32(ecx); /* 0x400096E6: mov eax, dword ptr [ecx] */
   6625     SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x400096E8: mov bl, byte ptr [eax + 0x15] */
   6626     /* test LO8(ebx), LO8(ebx) */ /* 0x400096EB: test bl, bl */
   6627     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6628     _cf = 0;
   6629     _flag_k = FK_NARROW(FK_TEST, 24);
   6630     RECOMP_BACKEDGE();
   6631     if (TEST_Z(_flag_a, _flag_b)) goto L_400096E4; /* 0x400096ED: je 0x400096e4 */
   6632 L_400096EF:
   6633     /* cmp ecx, esi */ /* 0x400096EF: cmp ecx, esi */
   6634     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   6635     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6636     _flag_k = FK_CMP;
   6637     eax = MEM32(ecx + 0x8); /* 0x400096F1: mov eax, dword ptr [ecx + 8] */
   6638     MEM32(ebp + (-0x4)) = ecx; /* 0x400096F4: mov dword ptr [ebp - 4], ecx */
   6639     RECOMP_BACKEDGE();
   6640     if (CMP_EQ(_flag_a, _flag_b)) goto L_400096B3; /* 0x400096F7: je 0x400096b3 */
   6641 L_400096F9:
   6642     MEM32(edx + 0x4) = ecx; /* 0x400096F9: mov dword ptr [edx + 4], ecx */
   6643     edx = MEM32(esi); /* 0x400096FC: mov edx, dword ptr [esi] */
   6644     MEM32(ecx) = edx; /* 0x400096FE: mov dword ptr [ecx], edx */
   6645     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009700: cmp ecx, dword ptr [esi + 8] */
   6646     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6648     _flag_k = FK_CMP;
   6649     if (CMP_NE(_flag_a, _flag_b)) goto L_4000970A; /* 0x40009703: jne 0x4000970a */
   6650 L_40009705:
   6651     MEM32(eax + 0x4) = ecx; /* 0x40009705: mov dword ptr [eax + 4], ecx */
   6652     goto L_40009721; /* 0x40009708: jmp 0x40009721 */
   6653 L_4000970A:
   6654     edx = MEM32(ecx + 0x4); /* 0x4000970A: mov edx, dword ptr [ecx + 4] */
   6655     MEM32(eax + 0x4) = edx; /* 0x4000970D: mov dword ptr [eax + 4], edx */
   6656     edx = MEM32(ecx + 0x4); /* 0x40009710: mov edx, dword ptr [ecx + 4] */
   6657     MEM32(edx) = eax; /* 0x40009713: mov dword ptr [edx], eax */
   6658     edx = MEM32(esi + 0x8); /* 0x40009715: mov edx, dword ptr [esi + 8] */
   6659     MEM32(ecx + 0x8) = edx; /* 0x40009718: mov dword ptr [ecx + 8], edx */
   6660     edx = MEM32(esi + 0x8); /* 0x4000971B: mov edx, dword ptr [esi + 8] */
   6661     MEM32(edx + 0x4) = ecx; /* 0x4000971E: mov dword ptr [edx + 4], ecx */
   6662 L_40009721:
   6663     edx = MEM32(edi + 0x4); /* 0x40009721: mov edx, dword ptr [edi + 4] */
   6664     /* cmp MEM32(edx + 0x4), esi */ /* 0x40009724: cmp dword ptr [edx + 4], esi */
   6665     _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi);
   6666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6667     _flag_k = FK_CMP;
   6668     if (CMP_NE(_flag_a, _flag_b)) goto L_4000972E; /* 0x40009727: jne 0x4000972e */
   6669 L_40009729:
   6670     MEM32(edx + 0x4) = ecx; /* 0x40009729: mov dword ptr [edx + 4], ecx */
   6671     goto L_4000973C; /* 0x4000972C: jmp 0x4000973c */
   6672 L_4000972E:
   6673     edx = MEM32(esi + 0x4); /* 0x4000972E: mov edx, dword ptr [esi + 4] */
   6674     /* cmp MEM32(edx), esi */ /* 0x40009731: cmp dword ptr [edx], esi */
   6675     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi);
   6676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6677     _flag_k = FK_CMP;
   6678     if (CMP_NE(_flag_a, _flag_b)) goto L_40009739; /* 0x40009733: jne 0x40009739 */
   6679 L_40009735:
   6680     MEM32(edx) = ecx; /* 0x40009735: mov dword ptr [edx], ecx */
   6681     goto L_4000973C; /* 0x40009737: jmp 0x4000973c */
   6682 L_40009739:
   6683     MEM32(edx + 0x8) = ecx; /* 0x40009739: mov dword ptr [edx + 8], ecx */
   6684 L_4000973C:
   6685     edx = MEM32(esi + 0x4); /* 0x4000973C: mov edx, dword ptr [esi + 4] */
   6686     MEM32(ecx + 0x4) = edx; /* 0x4000973F: mov dword ptr [ecx + 4], edx */
   6687     SET_LO8(ebx, MEM8(esi + 0x14)); /* 0x40009742: mov bl, byte ptr [esi + 0x14] */
   6688     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009745: mov dl, byte ptr [ecx + 0x14] */
   6689     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009748: mov byte ptr [ecx + 0x14], bl */
   6690     MEM8(esi + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000974B: mov byte ptr [esi + 0x14], dl */
   6691     MEM32(ebp + (-0x4)) = esi; /* 0x4000974E: mov dword ptr [ebp - 4], esi */
   6692     goto L_400097B8; /* 0x40009751: jmp 0x400097b8 */
   6693 L_40009753:
   6694     ecx = MEM32(esi + 0x4); /* 0x40009753: mov ecx, dword ptr [esi + 4] */
   6695     /* cmp MEM32(ecx), esi */ /* 0x40009756: cmp dword ptr [ecx], esi */
   6696     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi);
   6697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6698     _flag_k = FK_CMP;
   6699     if (CMP_NE(_flag_a, _flag_b)) goto L_4000975E; /* 0x40009758: jne 0x4000975e */
   6700 L_4000975A:
   6701     MEM32(ecx) = eax; /* 0x4000975A: mov dword ptr [ecx], eax */
   6702     goto L_40009761; /* 0x4000975C: jmp 0x40009761 */
   6703 L_4000975E:
   6704     MEM32(ecx + 0x8) = eax; /* 0x4000975E: mov dword ptr [ecx + 8], eax */
   6705 L_40009761:
   6706     ebx = MEM32(edi + 0x4); /* 0x40009761: mov ebx, dword ptr [edi + 4] */
   6707     /* cmp MEM32(ebx), esi */ /* 0x40009764: cmp dword ptr [ebx], esi */
   6708     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi);
   6709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6710     _flag_k = FK_CMP;
   6711     if (CMP_NE(_flag_a, _flag_b)) goto L_4000978B; /* 0x40009766: jne 0x4000978b */
   6712 L_40009768:
   6713     ecx = MEM32(esi + 0x8); /* 0x40009768: mov ecx, dword ptr [esi + 8] */
   6714     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x4000976B: cmp ecx, dword ptr [edi + 8] */
   6715     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6717     _flag_k = FK_CMP;
   6718     if (CMP_NE(_flag_a, _flag_b)) goto L_40009775; /* 0x4000976E: jne 0x40009775 */
   6719 L_40009770:
   6720     edx = MEM32(esi + 0x4); /* 0x40009770: mov edx, dword ptr [esi + 4] */
   6721     goto L_40009789; /* 0x40009773: jmp 0x40009789 */
   6722 L_40009775:
   6723     ecx = MEM32(eax); /* 0x40009775: mov ecx, dword ptr [eax] */
   6724     /* cmp MEM8(ecx + 0x15), 0 */ /* 0x40009777: cmp byte ptr [ecx + 0x15], 0 */
   6725     _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
   6726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6727     _flag_k = FK_NARROW(FK_CMP, 24);
   6728     edx = eax; /* 0x4000977B: mov edx, eax */
   6729     if (CMP_NE(_flag_a, _flag_b)) goto L_40009789; /* 0x4000977D: jne 0x40009789 */
   6730 L_4000977F:
   6731     edx = ecx; /* 0x4000977F: mov edx, ecx */
   6732     ecx = MEM32(edx); /* 0x40009781: mov ecx, dword ptr [edx] */
   6733     /* cmp MEM8(ecx + 0x15), 0 */ /* 0x40009783: cmp byte ptr [ecx + 0x15], 0 */
   6734     _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
   6735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6736     _flag_k = FK_NARROW(FK_CMP, 24);
   6737     RECOMP_BACKEDGE();
   6738     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000977F; /* 0x40009787: je 0x4000977f */
   6739 L_40009789:
   6740     MEM32(ebx) = edx; /* 0x40009789: mov dword ptr [ebx], edx */
   6741 L_4000978B:
   6742     ebx = MEM32(edi + 0x4); /* 0x4000978B: mov ebx, dword ptr [edi + 4] */
   6743     /* cmp MEM32(ebx + 0x8), esi */ /* 0x4000978E: cmp dword ptr [ebx + 8], esi */
   6744     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   6745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6746     _flag_k = FK_CMP;
   6747     if (CMP_NE(_flag_a, _flag_b)) goto L_400097B8; /* 0x40009791: jne 0x400097b8 */
   6748 L_40009793:
   6749     ecx = MEM32(esi); /* 0x40009793: mov ecx, dword ptr [esi] */
   6750     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x40009795: cmp ecx, dword ptr [edi + 8] */
   6751     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6753     _flag_k = FK_CMP;
   6754     if (CMP_NE(_flag_a, _flag_b)) goto L_4000979F; /* 0x40009798: jne 0x4000979f */
   6755 L_4000979A:
   6756     edx = MEM32(esi + 0x4); /* 0x4000979A: mov edx, dword ptr [esi + 4] */
   6757     goto L_400097B5; /* 0x4000979D: jmp 0x400097b5 */
   6758 L_4000979F:
   6759     ecx = MEM32(eax + 0x8); /* 0x4000979F: mov ecx, dword ptr [eax + 8] */
   6760     /* cmp MEM8(ecx + 0x15), 0 */ /* 0x400097A2: cmp byte ptr [ecx + 0x15], 0 */
   6761     _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
   6762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6763     _flag_k = FK_NARROW(FK_CMP, 24);
   6764     edx = eax; /* 0x400097A6: mov edx, eax */
   6765     if (CMP_NE(_flag_a, _flag_b)) goto L_400097B5; /* 0x400097A8: jne 0x400097b5 */
   6766 L_400097AA:
   6767     edx = ecx; /* 0x400097AA: mov edx, ecx */
   6768     ecx = MEM32(edx + 0x8); /* 0x400097AC: mov ecx, dword ptr [edx + 8] */
   6769     /* cmp MEM8(ecx + 0x15), 0 */ /* 0x400097AF: cmp byte ptr [ecx + 0x15], 0 */
   6770     _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
   6771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6772     _flag_k = FK_NARROW(FK_CMP, 24);
   6773     RECOMP_BACKEDGE();
   6774     if (CMP_EQ(_flag_a, _flag_b)) goto L_400097AA; /* 0x400097B3: je 0x400097aa */
   6775 L_400097B5:
   6776     MEM32(ebx + 0x8) = edx; /* 0x400097B5: mov dword ptr [ebx + 8], edx */
   6777 L_400097B8:
   6778     ecx = MEM32(ebp + (-0x4)); /* 0x400097B8: mov ecx, dword ptr [ebp - 4] */
   6779     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097BB: mov dl, byte ptr [ecx + 0x14] */
   6780     SET_LO8(ebx, 1); /* 0x400097BE: mov bl, 1 */
   6781     /* cmp LO8(edx), LO8(ebx) */ /* 0x400097C0: cmp dl, bl */
   6782     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6783     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6784     _flag_k = FK_NARROW(FK_CMP, 24);
   6785     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A25; /* 0x400097C2: jne 0x40009a25 */
   6786 L_400097C8:
   6787     edx = MEM32(edi + 0x4); /* 0x400097C8: mov edx, dword ptr [edi + 4] */
   6788     /* cmp eax, MEM32(edx + 0x4) */ /* 0x400097CB: cmp eax, dword ptr [edx + 4] */
   6789     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6791     _flag_k = FK_CMP;
   6792     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097CE: je 0x40009a22 */
   6793 L_400097D4:
   6794     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
   6795     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6796     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6797     _flag_k = FK_NARROW(FK_CMP, 24);
   6798     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
   6799 L_400097DD:
   6800     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
   6801     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
   6802     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
   6803     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6805     _flag_k = FK_CMP;
   6806     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
   6807 L_400097E6:
   6808     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
   6809     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
   6810     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
   6811     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6812     _cf = 0;
   6813     _flag_k = FK_NARROW(FK_TEST, 24);
   6814     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
   6815 L_400097F0:
   6816     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
   6817     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
   6818     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
   6819     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
   6820     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
   6821     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
   6822     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
   6823     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
   6824     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
   6825     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6827     _flag_k = FK_CMP;
   6828     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
   6829 L_4000980C:
   6830     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
   6831 L_4000980F:
   6832     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
   6833     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
   6834     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
   6835     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
   6836     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6838     _flag_k = FK_CMP;
   6839     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
   6840 L_4000981D:
   6841     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
   6842     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
   6843 L_40009822:
   6844     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
   6845     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
   6846     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6848     _flag_k = FK_CMP;
   6849     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
   6850 L_40009829:
   6851     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
   6852     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
   6853 L_4000982D:
   6854     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
   6855 L_40009830:
   6856     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
   6857     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
   6858     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
   6859     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
   6860 L_4000983B:
   6861     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
   6862     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
   6863     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6865     _flag_k = FK_NARROW(FK_CMP, 24);
   6866     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
   6867 L_40009846:
   6868     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
   6869     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
   6870     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6872     _flag_k = FK_NARROW(FK_CMP, 24);
   6873     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
   6874 L_40009852:
   6875     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
   6876 L_40009854:
   6877     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
   6878     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
   6879     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6880     _cf = 0;
   6881     _flag_k = FK_NARROW(FK_TEST, 24);
   6882     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
   6883 L_4000985B:
   6884     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
   6885     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
   6886     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
   6887     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
   6888     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
   6889     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
   6890     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
   6891     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
   6892     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
   6893     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6894     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6895     _flag_k = FK_CMP;
   6896     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
   6897 L_40009877:
   6898     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
   6899 L_4000987A:
   6900     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
   6901     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
   6902     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
   6903     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
   6904     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6906     _flag_k = FK_CMP;
   6907     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
   6908 L_40009888:
   6909     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
   6910     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
   6911 L_4000988D:
   6912     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
   6913     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
   6914     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6916     _flag_k = FK_CMP;
   6917     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
   6918 L_40009895:
   6919     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
   6920     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
   6921 L_4000989A:
   6922     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
   6923 L_4000989C:
   6924     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
   6925     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
   6926     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
   6927     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
   6928 L_400098A7:
   6929     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
   6930     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
   6931     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6932     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6933     _flag_k = FK_NARROW(FK_CMP, 24);
   6934     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
   6935 L_400098B3:
   6936     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
   6937     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
   6938     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6940     _flag_k = FK_NARROW(FK_CMP, 24);
   6941     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
   6942 L_400098BE:
   6943     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
   6944     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
   6945     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
   6946     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
   6947     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6948     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6949     _flag_k = FK_CMP;
   6950     RECOMP_BACKEDGE();
   6951     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
   6952 L_400098D1:
   6953     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
   6954 L_400098D6:
   6955     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
   6956     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
   6957     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6959     _flag_k = FK_NARROW(FK_CMP, 24);
   6960     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
   6961 L_400098DE:
   6962     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
   6963     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
   6964     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
   6965     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
   6966     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
   6967     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
   6968     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
   6969     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
   6970     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6971     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6972     _flag_k = FK_CMP;
   6973     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
   6974 L_400098F6:
   6975     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
   6976 L_400098F9:
   6977     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
   6978     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
   6979     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
   6980     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
   6981     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6983     _flag_k = FK_CMP;
   6984     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
   6985 L_40009907:
   6986     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
   6987     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
   6988 L_4000990C:
   6989     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
   6990     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
   6991     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6993     _flag_k = FK_CMP;
   6994     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
   6995 L_40009914:
   6996     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
   6997     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
   6998 L_40009919:
   6999     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
   7000 L_4000991B:
   7001     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
   7002     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
   7003     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
   7004     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
   7005 L_40009927:
   7006     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
   7007     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
   7008     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
   7009     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
   7010     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
   7011     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
   7012     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
   7013     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
   7014     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
   7015     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
   7016     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
   7017     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
   7018     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
   7019     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7021     _flag_k = FK_CMP;
   7022     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
   7023 L_4000994E:
   7024     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
   7025 L_40009951:
   7026     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
   7027     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
   7028     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
   7029     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
   7030     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7032     _flag_k = FK_CMP;
   7033     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
   7034 L_4000995F:
   7035     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
   7036     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
   7037     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
   7038 L_40009969:
   7039     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
   7040     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
   7041     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7043     _flag_k = FK_CMP;
   7044     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
   7045 L_40009970:
   7046     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
   7047     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
   7048     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
   7049 L_40009979:
   7050     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
   7051     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
   7052     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
   7053 L_40009983:
   7054     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
   7055     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
   7056     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7058     _flag_k = FK_NARROW(FK_CMP, 24);
   7059     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
   7060 L_4000998A:
   7061     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
   7062     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
   7063     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
   7064     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
   7065     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
   7066     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
   7067     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
   7068     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
   7069     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7070     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7071     _flag_k = FK_CMP;
   7072     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
   7073 L_400099A3:
   7074     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
   7075 L_400099A6:
   7076     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
   7077     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
   7078     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
   7079     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
   7080     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7081     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7082     _flag_k = FK_CMP;
   7083     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
   7084 L_400099B4:
   7085     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
   7086     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
   7087 L_400099B9:
   7088     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
   7089     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
   7090     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7091     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7092     _flag_k = FK_CMP;
   7093     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
   7094 L_400099C0:
   7095     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
   7096     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
   7097 L_400099C4:
   7098     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
   7099 L_400099C7:
   7100     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
   7101     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
   7102     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
   7103     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
   7104 L_400099D1:
   7105     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
   7106     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
   7107     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
   7108     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
   7109     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
   7110     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
   7111     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
   7112     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
   7113     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
   7114     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
   7115     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
   7116     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
   7117     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
   7118     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7120     _flag_k = FK_CMP;
   7121     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
   7122 L_400099F7:
   7123     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
   7124 L_400099FA:
   7125     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
   7126     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
   7127     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
   7128     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
   7129     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7131     _flag_k = FK_CMP;
   7132     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
   7133 L_40009A08:
   7134     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
   7135     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
   7136 L_40009A0D:
   7137     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
   7138     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
   7139     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7141     _flag_k = FK_CMP;
   7142     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
   7143 L_40009A15:
   7144     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
   7145     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
   7146 L_40009A1A:
   7147     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
   7148 L_40009A1C:
   7149     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
   7150 L_40009A1F:
   7151     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
   7152 L_40009A22:
   7153     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
   7154 L_40009A25:
   7155     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
   7156     PUSH32(esp, edx); /* 0x40009A28: push edx */
   7157     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
   7158     RECOMP_FLAGS_IN();
   7159     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
   7160     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
   7161     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7162     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7163     esp = esp + 4; /* 0x40009A34: add esp, 4 */
   7164     _flag_k = FK_ADD;
   7165     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7166     eax = eax - 1; /* 0x40009A37: dec eax */
   7167     _flag_k = FK_DEC;
   7168     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
   7169     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
   7170     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
   7171     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
   7172     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
   7173     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
   7174     esp = ebp; /* 0x40009A43: mov esp, ebp */
   7175     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
   7176     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
   7177     RECOMP_REGS_OUT();
   7178 }
   7179 
   7180 void sub_40009761(void) {
   7181     int _fpu_cmp = 0;
   7182     uint32_t _cf = 0;
   7183     int _df = 1;
   7184     uint32_t _flag_k = FK_NONE;
   7185     uint32_t _flag_a = 0, _flag_b = 0;
   7186     uint32_t _itail_tgt = 0;
   7187     RECOMP_REGS_LOCALS
   7188     RECOMP_ENTER(0x40009761u);
   7189 
   7190 L_40009761:
   7191     ebx = MEM32(edi + 0x4); /* 0x40009761: mov ebx, dword ptr [edi + 4] */
   7192     /* cmp MEM32(ebx), esi */ /* 0x40009764: cmp dword ptr [ebx], esi */
   7193     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi);
   7194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7195     _flag_k = FK_CMP;
   7196     if (CMP_NE(_flag_a, _flag_b)) goto L_4000978B; /* 0x40009766: jne 0x4000978b */
   7197 L_40009768:
   7198     ecx = MEM32(esi + 0x8); /* 0x40009768: mov ecx, dword ptr [esi + 8] */
   7199     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x4000976B: cmp ecx, dword ptr [edi + 8] */
   7200     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7201     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7202     _flag_k = FK_CMP;
   7203     if (CMP_NE(_flag_a, _flag_b)) goto L_40009775; /* 0x4000976E: jne 0x40009775 */
   7204 L_40009770:
   7205     edx = MEM32(esi + 0x4); /* 0x40009770: mov edx, dword ptr [esi + 4] */
   7206     goto L_40009789; /* 0x40009773: jmp 0x40009789 */
   7207 L_40009775:
   7208     ecx = MEM32(eax); /* 0x40009775: mov ecx, dword ptr [eax] */
   7209     /* cmp MEM8(ecx + 0x15), 0 */ /* 0x40009777: cmp byte ptr [ecx + 0x15], 0 */
   7210     _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
   7211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7212     _flag_k = FK_NARROW(FK_CMP, 24);
   7213     edx = eax; /* 0x4000977B: mov edx, eax */
   7214     if (CMP_NE(_flag_a, _flag_b)) goto L_40009789; /* 0x4000977D: jne 0x40009789 */
   7215 L_4000977F:
   7216     edx = ecx; /* 0x4000977F: mov edx, ecx */
   7217     ecx = MEM32(edx); /* 0x40009781: mov ecx, dword ptr [edx] */
   7218     /* cmp MEM8(ecx + 0x15), 0 */ /* 0x40009783: cmp byte ptr [ecx + 0x15], 0 */
   7219     _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
   7220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7221     _flag_k = FK_NARROW(FK_CMP, 24);
   7222     RECOMP_BACKEDGE();
   7223     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000977F; /* 0x40009787: je 0x4000977f */
   7224 L_40009789:
   7225     MEM32(ebx) = edx; /* 0x40009789: mov dword ptr [ebx], edx */
   7226 L_4000978B:
   7227     ebx = MEM32(edi + 0x4); /* 0x4000978B: mov ebx, dword ptr [edi + 4] */
   7228     /* cmp MEM32(ebx + 0x8), esi */ /* 0x4000978E: cmp dword ptr [ebx + 8], esi */
   7229     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   7230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7231     _flag_k = FK_CMP;
   7232     if (CMP_NE(_flag_a, _flag_b)) goto L_400097B8; /* 0x40009791: jne 0x400097b8 */
   7233 L_40009793:
   7234     ecx = MEM32(esi); /* 0x40009793: mov ecx, dword ptr [esi] */
   7235     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x40009795: cmp ecx, dword ptr [edi + 8] */
   7236     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7238     _flag_k = FK_CMP;
   7239     if (CMP_NE(_flag_a, _flag_b)) goto L_4000979F; /* 0x40009798: jne 0x4000979f */
   7240 L_4000979A:
   7241     edx = MEM32(esi + 0x4); /* 0x4000979A: mov edx, dword ptr [esi + 4] */
   7242     goto L_400097B5; /* 0x4000979D: jmp 0x400097b5 */
   7243 L_4000979F:
   7244     ecx = MEM32(eax + 0x8); /* 0x4000979F: mov ecx, dword ptr [eax + 8] */
   7245     /* cmp MEM8(ecx + 0x15), 0 */ /* 0x400097A2: cmp byte ptr [ecx + 0x15], 0 */
   7246     _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
   7247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7248     _flag_k = FK_NARROW(FK_CMP, 24);
   7249     edx = eax; /* 0x400097A6: mov edx, eax */
   7250     if (CMP_NE(_flag_a, _flag_b)) goto L_400097B5; /* 0x400097A8: jne 0x400097b5 */
   7251 L_400097AA:
   7252     edx = ecx; /* 0x400097AA: mov edx, ecx */
   7253     ecx = MEM32(edx + 0x8); /* 0x400097AC: mov ecx, dword ptr [edx + 8] */
   7254     /* cmp MEM8(ecx + 0x15), 0 */ /* 0x400097AF: cmp byte ptr [ecx + 0x15], 0 */
   7255     _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
   7256     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7257     _flag_k = FK_NARROW(FK_CMP, 24);
   7258     RECOMP_BACKEDGE();
   7259     if (CMP_EQ(_flag_a, _flag_b)) goto L_400097AA; /* 0x400097B3: je 0x400097aa */
   7260 L_400097B5:
   7261     MEM32(ebx + 0x8) = edx; /* 0x400097B5: mov dword ptr [ebx + 8], edx */
   7262 L_400097B8:
   7263     ecx = MEM32(ebp + (-0x4)); /* 0x400097B8: mov ecx, dword ptr [ebp - 4] */
   7264     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097BB: mov dl, byte ptr [ecx + 0x14] */
   7265     SET_LO8(ebx, 1); /* 0x400097BE: mov bl, 1 */
   7266     /* cmp LO8(edx), LO8(ebx) */ /* 0x400097C0: cmp dl, bl */
   7267     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7269     _flag_k = FK_NARROW(FK_CMP, 24);
   7270     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A25; /* 0x400097C2: jne 0x40009a25 */
   7271 L_400097C8:
   7272     edx = MEM32(edi + 0x4); /* 0x400097C8: mov edx, dword ptr [edi + 4] */
   7273     /* cmp eax, MEM32(edx + 0x4) */ /* 0x400097CB: cmp eax, dword ptr [edx + 4] */
   7274     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7276     _flag_k = FK_CMP;
   7277     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097CE: je 0x40009a22 */
   7278 L_400097D4:
   7279     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
   7280     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7282     _flag_k = FK_NARROW(FK_CMP, 24);
   7283     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
   7284 L_400097DD:
   7285     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
   7286     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
   7287     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
   7288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7290     _flag_k = FK_CMP;
   7291     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
   7292 L_400097E6:
   7293     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
   7294     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
   7295     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
   7296     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7297     _cf = 0;
   7298     _flag_k = FK_NARROW(FK_TEST, 24);
   7299     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
   7300 L_400097F0:
   7301     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
   7302     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
   7303     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
   7304     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
   7305     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
   7306     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
   7307     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
   7308     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
   7309     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
   7310     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7312     _flag_k = FK_CMP;
   7313     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
   7314 L_4000980C:
   7315     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
   7316 L_4000980F:
   7317     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
   7318     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
   7319     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
   7320     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
   7321     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7323     _flag_k = FK_CMP;
   7324     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
   7325 L_4000981D:
   7326     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
   7327     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
   7328 L_40009822:
   7329     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
   7330     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
   7331     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7332     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7333     _flag_k = FK_CMP;
   7334     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
   7335 L_40009829:
   7336     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
   7337     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
   7338 L_4000982D:
   7339     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
   7340 L_40009830:
   7341     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
   7342     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
   7343     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
   7344     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
   7345 L_4000983B:
   7346     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
   7347     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
   7348     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7350     _flag_k = FK_NARROW(FK_CMP, 24);
   7351     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
   7352 L_40009846:
   7353     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
   7354     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
   7355     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7357     _flag_k = FK_NARROW(FK_CMP, 24);
   7358     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
   7359 L_40009852:
   7360     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
   7361 L_40009854:
   7362     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
   7363     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
   7364     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7365     _cf = 0;
   7366     _flag_k = FK_NARROW(FK_TEST, 24);
   7367     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
   7368 L_4000985B:
   7369     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
   7370     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
   7371     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
   7372     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
   7373     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
   7374     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
   7375     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
   7376     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
   7377     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
   7378     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7380     _flag_k = FK_CMP;
   7381     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
   7382 L_40009877:
   7383     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
   7384 L_4000987A:
   7385     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
   7386     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
   7387     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
   7388     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
   7389     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7390     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7391     _flag_k = FK_CMP;
   7392     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
   7393 L_40009888:
   7394     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
   7395     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
   7396 L_4000988D:
   7397     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
   7398     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
   7399     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7400     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7401     _flag_k = FK_CMP;
   7402     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
   7403 L_40009895:
   7404     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
   7405     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
   7406 L_4000989A:
   7407     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
   7408 L_4000989C:
   7409     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
   7410     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
   7411     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
   7412     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
   7413 L_400098A7:
   7414     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
   7415     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
   7416     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7418     _flag_k = FK_NARROW(FK_CMP, 24);
   7419     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
   7420 L_400098B3:
   7421     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
   7422     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
   7423     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7424     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7425     _flag_k = FK_NARROW(FK_CMP, 24);
   7426     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
   7427 L_400098BE:
   7428     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
   7429     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
   7430     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
   7431     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
   7432     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7434     _flag_k = FK_CMP;
   7435     RECOMP_BACKEDGE();
   7436     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
   7437 L_400098D1:
   7438     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
   7439 L_400098D6:
   7440     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
   7441     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
   7442     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7444     _flag_k = FK_NARROW(FK_CMP, 24);
   7445     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
   7446 L_400098DE:
   7447     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
   7448     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
   7449     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
   7450     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
   7451     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
   7452     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
   7453     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
   7454     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
   7455     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7457     _flag_k = FK_CMP;
   7458     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
   7459 L_400098F6:
   7460     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
   7461 L_400098F9:
   7462     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
   7463     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
   7464     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
   7465     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
   7466     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7468     _flag_k = FK_CMP;
   7469     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
   7470 L_40009907:
   7471     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
   7472     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
   7473 L_4000990C:
   7474     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
   7475     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
   7476     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7478     _flag_k = FK_CMP;
   7479     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
   7480 L_40009914:
   7481     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
   7482     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
   7483 L_40009919:
   7484     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
   7485 L_4000991B:
   7486     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
   7487     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
   7488     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
   7489     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
   7490 L_40009927:
   7491     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
   7492     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
   7493     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
   7494     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
   7495     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
   7496     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
   7497     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
   7498     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
   7499     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
   7500     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
   7501     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
   7502     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
   7503     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
   7504     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7506     _flag_k = FK_CMP;
   7507     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
   7508 L_4000994E:
   7509     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
   7510 L_40009951:
   7511     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
   7512     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
   7513     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
   7514     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
   7515     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7517     _flag_k = FK_CMP;
   7518     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
   7519 L_4000995F:
   7520     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
   7521     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
   7522     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
   7523 L_40009969:
   7524     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
   7525     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
   7526     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7528     _flag_k = FK_CMP;
   7529     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
   7530 L_40009970:
   7531     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
   7532     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
   7533     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
   7534 L_40009979:
   7535     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
   7536     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
   7537     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
   7538 L_40009983:
   7539     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
   7540     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
   7541     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7543     _flag_k = FK_NARROW(FK_CMP, 24);
   7544     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
   7545 L_4000998A:
   7546     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
   7547     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
   7548     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
   7549     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
   7550     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
   7551     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
   7552     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
   7553     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
   7554     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7556     _flag_k = FK_CMP;
   7557     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
   7558 L_400099A3:
   7559     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
   7560 L_400099A6:
   7561     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
   7562     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
   7563     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
   7564     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
   7565     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7566     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7567     _flag_k = FK_CMP;
   7568     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
   7569 L_400099B4:
   7570     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
   7571     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
   7572 L_400099B9:
   7573     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
   7574     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
   7575     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7577     _flag_k = FK_CMP;
   7578     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
   7579 L_400099C0:
   7580     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
   7581     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
   7582 L_400099C4:
   7583     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
   7584 L_400099C7:
   7585     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
   7586     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
   7587     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
   7588     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
   7589 L_400099D1:
   7590     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
   7591     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
   7592     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
   7593     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
   7594     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
   7595     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
   7596     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
   7597     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
   7598     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
   7599     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
   7600     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
   7601     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
   7602     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
   7603     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7605     _flag_k = FK_CMP;
   7606     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
   7607 L_400099F7:
   7608     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
   7609 L_400099FA:
   7610     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
   7611     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
   7612     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
   7613     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
   7614     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7616     _flag_k = FK_CMP;
   7617     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
   7618 L_40009A08:
   7619     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
   7620     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
   7621 L_40009A0D:
   7622     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
   7623     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
   7624     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7626     _flag_k = FK_CMP;
   7627     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
   7628 L_40009A15:
   7629     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
   7630     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
   7631 L_40009A1A:
   7632     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
   7633 L_40009A1C:
   7634     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
   7635 L_40009A1F:
   7636     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
   7637 L_40009A22:
   7638     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
   7639 L_40009A25:
   7640     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
   7641     PUSH32(esp, edx); /* 0x40009A28: push edx */
   7642     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
   7643     RECOMP_FLAGS_IN();
   7644     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
   7645     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
   7646     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7647     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7648     esp = esp + 4; /* 0x40009A34: add esp, 4 */
   7649     _flag_k = FK_ADD;
   7650     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7651     eax = eax - 1; /* 0x40009A37: dec eax */
   7652     _flag_k = FK_DEC;
   7653     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
   7654     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
   7655     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
   7656     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
   7657     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
   7658     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
   7659     esp = ebp; /* 0x40009A43: mov esp, ebp */
   7660     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
   7661     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
   7662     RECOMP_REGS_OUT();
   7663 }
   7664 
   7665 void sub_40009789(void) {
   7666     int _fpu_cmp = 0;
   7667     uint32_t _cf = 0;
   7668     int _df = 1;
   7669     uint32_t _flag_k = FK_NONE;
   7670     uint32_t _flag_a = 0, _flag_b = 0;
   7671     uint32_t _itail_tgt = 0;
   7672     RECOMP_REGS_LOCALS
   7673     RECOMP_ENTER(0x40009789u);
   7674 
   7675 L_40009789:
   7676     MEM32(ebx) = edx; /* 0x40009789: mov dword ptr [ebx], edx */
   7677     ebx = MEM32(edi + 0x4); /* 0x4000978B: mov ebx, dword ptr [edi + 4] */
   7678     /* cmp MEM32(ebx + 0x8), esi */ /* 0x4000978E: cmp dword ptr [ebx + 8], esi */
   7679     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   7680     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7681     _flag_k = FK_CMP;
   7682     if (CMP_NE(_flag_a, _flag_b)) goto L_400097B8; /* 0x40009791: jne 0x400097b8 */
   7683 L_40009793:
   7684     ecx = MEM32(esi); /* 0x40009793: mov ecx, dword ptr [esi] */
   7685     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x40009795: cmp ecx, dword ptr [edi + 8] */
   7686     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7688     _flag_k = FK_CMP;
   7689     if (CMP_NE(_flag_a, _flag_b)) goto L_4000979F; /* 0x40009798: jne 0x4000979f */
   7690 L_4000979A:
   7691     edx = MEM32(esi + 0x4); /* 0x4000979A: mov edx, dword ptr [esi + 4] */
   7692     goto L_400097B5; /* 0x4000979D: jmp 0x400097b5 */
   7693 L_4000979F:
   7694     ecx = MEM32(eax + 0x8); /* 0x4000979F: mov ecx, dword ptr [eax + 8] */
   7695     /* cmp MEM8(ecx + 0x15), 0 */ /* 0x400097A2: cmp byte ptr [ecx + 0x15], 0 */
   7696     _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
   7697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7698     _flag_k = FK_NARROW(FK_CMP, 24);
   7699     edx = eax; /* 0x400097A6: mov edx, eax */
   7700     if (CMP_NE(_flag_a, _flag_b)) goto L_400097B5; /* 0x400097A8: jne 0x400097b5 */
   7701 L_400097AA:
   7702     edx = ecx; /* 0x400097AA: mov edx, ecx */
   7703     ecx = MEM32(edx + 0x8); /* 0x400097AC: mov ecx, dword ptr [edx + 8] */
   7704     /* cmp MEM8(ecx + 0x15), 0 */ /* 0x400097AF: cmp byte ptr [ecx + 0x15], 0 */
   7705     _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24;
   7706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7707     _flag_k = FK_NARROW(FK_CMP, 24);
   7708     RECOMP_BACKEDGE();
   7709     if (CMP_EQ(_flag_a, _flag_b)) goto L_400097AA; /* 0x400097B3: je 0x400097aa */
   7710 L_400097B5:
   7711     MEM32(ebx + 0x8) = edx; /* 0x400097B5: mov dword ptr [ebx + 8], edx */
   7712 L_400097B8:
   7713     ecx = MEM32(ebp + (-0x4)); /* 0x400097B8: mov ecx, dword ptr [ebp - 4] */
   7714     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097BB: mov dl, byte ptr [ecx + 0x14] */
   7715     SET_LO8(ebx, 1); /* 0x400097BE: mov bl, 1 */
   7716     /* cmp LO8(edx), LO8(ebx) */ /* 0x400097C0: cmp dl, bl */
   7717     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7719     _flag_k = FK_NARROW(FK_CMP, 24);
   7720     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A25; /* 0x400097C2: jne 0x40009a25 */
   7721 L_400097C8:
   7722     edx = MEM32(edi + 0x4); /* 0x400097C8: mov edx, dword ptr [edi + 4] */
   7723     /* cmp eax, MEM32(edx + 0x4) */ /* 0x400097CB: cmp eax, dword ptr [edx + 4] */
   7724     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7725     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7726     _flag_k = FK_CMP;
   7727     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097CE: je 0x40009a22 */
   7728 L_400097D4:
   7729     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
   7730     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7731     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7732     _flag_k = FK_NARROW(FK_CMP, 24);
   7733     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
   7734 L_400097DD:
   7735     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
   7736     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
   7737     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
   7738     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7739     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7740     _flag_k = FK_CMP;
   7741     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
   7742 L_400097E6:
   7743     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
   7744     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
   7745     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
   7746     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7747     _cf = 0;
   7748     _flag_k = FK_NARROW(FK_TEST, 24);
   7749     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
   7750 L_400097F0:
   7751     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
   7752     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
   7753     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
   7754     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
   7755     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
   7756     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
   7757     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
   7758     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
   7759     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
   7760     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7762     _flag_k = FK_CMP;
   7763     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
   7764 L_4000980C:
   7765     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
   7766 L_4000980F:
   7767     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
   7768     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
   7769     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
   7770     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
   7771     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7773     _flag_k = FK_CMP;
   7774     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
   7775 L_4000981D:
   7776     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
   7777     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
   7778 L_40009822:
   7779     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
   7780     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
   7781     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7783     _flag_k = FK_CMP;
   7784     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
   7785 L_40009829:
   7786     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
   7787     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
   7788 L_4000982D:
   7789     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
   7790 L_40009830:
   7791     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
   7792     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
   7793     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
   7794     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
   7795 L_4000983B:
   7796     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
   7797     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
   7798     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7799     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7800     _flag_k = FK_NARROW(FK_CMP, 24);
   7801     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
   7802 L_40009846:
   7803     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
   7804     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
   7805     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7807     _flag_k = FK_NARROW(FK_CMP, 24);
   7808     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
   7809 L_40009852:
   7810     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
   7811 L_40009854:
   7812     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
   7813     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
   7814     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7815     _cf = 0;
   7816     _flag_k = FK_NARROW(FK_TEST, 24);
   7817     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
   7818 L_4000985B:
   7819     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
   7820     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
   7821     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
   7822     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
   7823     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
   7824     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
   7825     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
   7826     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
   7827     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
   7828     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7830     _flag_k = FK_CMP;
   7831     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
   7832 L_40009877:
   7833     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
   7834 L_4000987A:
   7835     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
   7836     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
   7837     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
   7838     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
   7839     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7841     _flag_k = FK_CMP;
   7842     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
   7843 L_40009888:
   7844     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
   7845     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
   7846 L_4000988D:
   7847     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
   7848     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
   7849     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7850     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7851     _flag_k = FK_CMP;
   7852     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
   7853 L_40009895:
   7854     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
   7855     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
   7856 L_4000989A:
   7857     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
   7858 L_4000989C:
   7859     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
   7860     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
   7861     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
   7862     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
   7863 L_400098A7:
   7864     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
   7865     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
   7866     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7867     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7868     _flag_k = FK_NARROW(FK_CMP, 24);
   7869     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
   7870 L_400098B3:
   7871     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
   7872     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
   7873     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7874     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7875     _flag_k = FK_NARROW(FK_CMP, 24);
   7876     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
   7877 L_400098BE:
   7878     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
   7879     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
   7880     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
   7881     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
   7882     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7883     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7884     _flag_k = FK_CMP;
   7885     RECOMP_BACKEDGE();
   7886     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
   7887 L_400098D1:
   7888     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
   7889 L_400098D6:
   7890     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
   7891     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
   7892     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7894     _flag_k = FK_NARROW(FK_CMP, 24);
   7895     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
   7896 L_400098DE:
   7897     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
   7898     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
   7899     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
   7900     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
   7901     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
   7902     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
   7903     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
   7904     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
   7905     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7906     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7907     _flag_k = FK_CMP;
   7908     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
   7909 L_400098F6:
   7910     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
   7911 L_400098F9:
   7912     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
   7913     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
   7914     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
   7915     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
   7916     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7918     _flag_k = FK_CMP;
   7919     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
   7920 L_40009907:
   7921     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
   7922     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
   7923 L_4000990C:
   7924     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
   7925     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
   7926     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7927     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7928     _flag_k = FK_CMP;
   7929     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
   7930 L_40009914:
   7931     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
   7932     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
   7933 L_40009919:
   7934     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
   7935 L_4000991B:
   7936     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
   7937     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
   7938     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
   7939     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
   7940 L_40009927:
   7941     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
   7942     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
   7943     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
   7944     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
   7945     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
   7946     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
   7947     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
   7948     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
   7949     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
   7950     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
   7951     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
   7952     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
   7953     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
   7954     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7956     _flag_k = FK_CMP;
   7957     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
   7958 L_4000994E:
   7959     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
   7960 L_40009951:
   7961     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
   7962     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
   7963     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
   7964     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
   7965     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7966     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7967     _flag_k = FK_CMP;
   7968     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
   7969 L_4000995F:
   7970     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
   7971     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
   7972     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
   7973 L_40009969:
   7974     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
   7975     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
   7976     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7977     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7978     _flag_k = FK_CMP;
   7979     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
   7980 L_40009970:
   7981     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
   7982     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
   7983     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
   7984 L_40009979:
   7985     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
   7986     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
   7987     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
   7988 L_40009983:
   7989     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
   7990     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
   7991     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7993     _flag_k = FK_NARROW(FK_CMP, 24);
   7994     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
   7995 L_4000998A:
   7996     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
   7997     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
   7998     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
   7999     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
   8000     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
   8001     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
   8002     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
   8003     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
   8004     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8006     _flag_k = FK_CMP;
   8007     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
   8008 L_400099A3:
   8009     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
   8010 L_400099A6:
   8011     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
   8012     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
   8013     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
   8014     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
   8015     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8017     _flag_k = FK_CMP;
   8018     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
   8019 L_400099B4:
   8020     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
   8021     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
   8022 L_400099B9:
   8023     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
   8024     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
   8025     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8027     _flag_k = FK_CMP;
   8028     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
   8029 L_400099C0:
   8030     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
   8031     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
   8032 L_400099C4:
   8033     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
   8034 L_400099C7:
   8035     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
   8036     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
   8037     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
   8038     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
   8039 L_400099D1:
   8040     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
   8041     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
   8042     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
   8043     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
   8044     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
   8045     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
   8046     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
   8047     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
   8048     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
   8049     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
   8050     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
   8051     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
   8052     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
   8053     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8055     _flag_k = FK_CMP;
   8056     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
   8057 L_400099F7:
   8058     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
   8059 L_400099FA:
   8060     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
   8061     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
   8062     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
   8063     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
   8064     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8066     _flag_k = FK_CMP;
   8067     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
   8068 L_40009A08:
   8069     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
   8070     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
   8071 L_40009A0D:
   8072     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
   8073     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
   8074     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8076     _flag_k = FK_CMP;
   8077     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
   8078 L_40009A15:
   8079     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
   8080     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
   8081 L_40009A1A:
   8082     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
   8083 L_40009A1C:
   8084     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
   8085 L_40009A1F:
   8086     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
   8087 L_40009A22:
   8088     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
   8089 L_40009A25:
   8090     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
   8091     PUSH32(esp, edx); /* 0x40009A28: push edx */
   8092     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
   8093     RECOMP_FLAGS_IN();
   8094     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
   8095     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
   8096     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8097     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8098     esp = esp + 4; /* 0x40009A34: add esp, 4 */
   8099     _flag_k = FK_ADD;
   8100     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8101     eax = eax - 1; /* 0x40009A37: dec eax */
   8102     _flag_k = FK_DEC;
   8103     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
   8104     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
   8105     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
   8106     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
   8107     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
   8108     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
   8109     esp = ebp; /* 0x40009A43: mov esp, ebp */
   8110     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
   8111     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
   8112     RECOMP_REGS_OUT();
   8113 }
   8114 
   8115 void sub_400097B5(void) {
   8116     int _fpu_cmp = 0;
   8117     uint32_t _cf = 0;
   8118     int _df = 1;
   8119     uint32_t _flag_k = FK_NONE;
   8120     uint32_t _flag_a = 0, _flag_b = 0;
   8121     uint32_t _itail_tgt = 0;
   8122     RECOMP_REGS_LOCALS
   8123     RECOMP_ENTER(0x400097B5u);
   8124 
   8125 L_400097B5:
   8126     MEM32(ebx + 0x8) = edx; /* 0x400097B5: mov dword ptr [ebx + 8], edx */
   8127     ecx = MEM32(ebp + (-0x4)); /* 0x400097B8: mov ecx, dword ptr [ebp - 4] */
   8128     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097BB: mov dl, byte ptr [ecx + 0x14] */
   8129     SET_LO8(ebx, 1); /* 0x400097BE: mov bl, 1 */
   8130     /* cmp LO8(edx), LO8(ebx) */ /* 0x400097C0: cmp dl, bl */
   8131     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8133     _flag_k = FK_NARROW(FK_CMP, 24);
   8134     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A25; /* 0x400097C2: jne 0x40009a25 */
   8135 L_400097C8:
   8136     edx = MEM32(edi + 0x4); /* 0x400097C8: mov edx, dword ptr [edi + 4] */
   8137     /* cmp eax, MEM32(edx + 0x4) */ /* 0x400097CB: cmp eax, dword ptr [edx + 4] */
   8138     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8140     _flag_k = FK_CMP;
   8141     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097CE: je 0x40009a22 */
   8142 L_400097D4:
   8143     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
   8144     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8146     _flag_k = FK_NARROW(FK_CMP, 24);
   8147     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
   8148 L_400097DD:
   8149     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
   8150     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
   8151     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
   8152     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8153     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8154     _flag_k = FK_CMP;
   8155     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
   8156 L_400097E6:
   8157     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
   8158     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
   8159     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
   8160     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8161     _cf = 0;
   8162     _flag_k = FK_NARROW(FK_TEST, 24);
   8163     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
   8164 L_400097F0:
   8165     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
   8166     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
   8167     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
   8168     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
   8169     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
   8170     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
   8171     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
   8172     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
   8173     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
   8174     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8176     _flag_k = FK_CMP;
   8177     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
   8178 L_4000980C:
   8179     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
   8180 L_4000980F:
   8181     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
   8182     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
   8183     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
   8184     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
   8185     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8187     _flag_k = FK_CMP;
   8188     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
   8189 L_4000981D:
   8190     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
   8191     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
   8192 L_40009822:
   8193     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
   8194     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
   8195     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8197     _flag_k = FK_CMP;
   8198     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
   8199 L_40009829:
   8200     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
   8201     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
   8202 L_4000982D:
   8203     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
   8204 L_40009830:
   8205     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
   8206     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
   8207     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
   8208     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
   8209 L_4000983B:
   8210     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
   8211     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
   8212     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8213     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8214     _flag_k = FK_NARROW(FK_CMP, 24);
   8215     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
   8216 L_40009846:
   8217     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
   8218     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
   8219     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8221     _flag_k = FK_NARROW(FK_CMP, 24);
   8222     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
   8223 L_40009852:
   8224     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
   8225 L_40009854:
   8226     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
   8227     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
   8228     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8229     _cf = 0;
   8230     _flag_k = FK_NARROW(FK_TEST, 24);
   8231     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
   8232 L_4000985B:
   8233     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
   8234     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
   8235     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
   8236     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
   8237     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
   8238     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
   8239     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
   8240     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
   8241     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
   8242     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8244     _flag_k = FK_CMP;
   8245     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
   8246 L_40009877:
   8247     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
   8248 L_4000987A:
   8249     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
   8250     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
   8251     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
   8252     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
   8253     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8255     _flag_k = FK_CMP;
   8256     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
   8257 L_40009888:
   8258     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
   8259     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
   8260 L_4000988D:
   8261     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
   8262     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
   8263     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8265     _flag_k = FK_CMP;
   8266     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
   8267 L_40009895:
   8268     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
   8269     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
   8270 L_4000989A:
   8271     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
   8272 L_4000989C:
   8273     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
   8274     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
   8275     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
   8276     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
   8277 L_400098A7:
   8278     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
   8279     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
   8280     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8282     _flag_k = FK_NARROW(FK_CMP, 24);
   8283     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
   8284 L_400098B3:
   8285     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
   8286     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
   8287     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8289     _flag_k = FK_NARROW(FK_CMP, 24);
   8290     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
   8291 L_400098BE:
   8292     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
   8293     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
   8294     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
   8295     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
   8296     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8298     _flag_k = FK_CMP;
   8299     RECOMP_BACKEDGE();
   8300     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
   8301 L_400098D1:
   8302     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
   8303 L_400098D6:
   8304     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
   8305     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
   8306     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8307     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8308     _flag_k = FK_NARROW(FK_CMP, 24);
   8309     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
   8310 L_400098DE:
   8311     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
   8312     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
   8313     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
   8314     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
   8315     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
   8316     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
   8317     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
   8318     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
   8319     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8321     _flag_k = FK_CMP;
   8322     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
   8323 L_400098F6:
   8324     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
   8325 L_400098F9:
   8326     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
   8327     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
   8328     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
   8329     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
   8330     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8331     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8332     _flag_k = FK_CMP;
   8333     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
   8334 L_40009907:
   8335     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
   8336     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
   8337 L_4000990C:
   8338     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
   8339     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
   8340     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8341     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8342     _flag_k = FK_CMP;
   8343     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
   8344 L_40009914:
   8345     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
   8346     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
   8347 L_40009919:
   8348     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
   8349 L_4000991B:
   8350     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
   8351     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
   8352     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
   8353     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
   8354 L_40009927:
   8355     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
   8356     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
   8357     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
   8358     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
   8359     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
   8360     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
   8361     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
   8362     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
   8363     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
   8364     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
   8365     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
   8366     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
   8367     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
   8368     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8370     _flag_k = FK_CMP;
   8371     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
   8372 L_4000994E:
   8373     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
   8374 L_40009951:
   8375     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
   8376     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
   8377     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
   8378     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
   8379     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8380     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8381     _flag_k = FK_CMP;
   8382     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
   8383 L_4000995F:
   8384     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
   8385     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
   8386     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
   8387 L_40009969:
   8388     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
   8389     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
   8390     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8392     _flag_k = FK_CMP;
   8393     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
   8394 L_40009970:
   8395     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
   8396     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
   8397     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
   8398 L_40009979:
   8399     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
   8400     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
   8401     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
   8402 L_40009983:
   8403     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
   8404     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
   8405     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8407     _flag_k = FK_NARROW(FK_CMP, 24);
   8408     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
   8409 L_4000998A:
   8410     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
   8411     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
   8412     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
   8413     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
   8414     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
   8415     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
   8416     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
   8417     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
   8418     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8419     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8420     _flag_k = FK_CMP;
   8421     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
   8422 L_400099A3:
   8423     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
   8424 L_400099A6:
   8425     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
   8426     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
   8427     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
   8428     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
   8429     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8431     _flag_k = FK_CMP;
   8432     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
   8433 L_400099B4:
   8434     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
   8435     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
   8436 L_400099B9:
   8437     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
   8438     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
   8439     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8441     _flag_k = FK_CMP;
   8442     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
   8443 L_400099C0:
   8444     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
   8445     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
   8446 L_400099C4:
   8447     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
   8448 L_400099C7:
   8449     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
   8450     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
   8451     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
   8452     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
   8453 L_400099D1:
   8454     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
   8455     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
   8456     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
   8457     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
   8458     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
   8459     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
   8460     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
   8461     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
   8462     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
   8463     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
   8464     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
   8465     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
   8466     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
   8467     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8469     _flag_k = FK_CMP;
   8470     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
   8471 L_400099F7:
   8472     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
   8473 L_400099FA:
   8474     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
   8475     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
   8476     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
   8477     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
   8478     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8480     _flag_k = FK_CMP;
   8481     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
   8482 L_40009A08:
   8483     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
   8484     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
   8485 L_40009A0D:
   8486     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
   8487     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
   8488     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8489     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8490     _flag_k = FK_CMP;
   8491     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
   8492 L_40009A15:
   8493     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
   8494     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
   8495 L_40009A1A:
   8496     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
   8497 L_40009A1C:
   8498     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
   8499 L_40009A1F:
   8500     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
   8501 L_40009A22:
   8502     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
   8503 L_40009A25:
   8504     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
   8505     PUSH32(esp, edx); /* 0x40009A28: push edx */
   8506     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
   8507     RECOMP_FLAGS_IN();
   8508     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
   8509     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
   8510     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8511     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8512     esp = esp + 4; /* 0x40009A34: add esp, 4 */
   8513     _flag_k = FK_ADD;
   8514     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8515     eax = eax - 1; /* 0x40009A37: dec eax */
   8516     _flag_k = FK_DEC;
   8517     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
   8518     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
   8519     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
   8520     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
   8521     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
   8522     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
   8523     esp = ebp; /* 0x40009A43: mov esp, ebp */
   8524     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
   8525     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
   8526     RECOMP_REGS_OUT();
   8527 }
   8528 
   8529 void sub_400097D4(void) {
   8530     int _fpu_cmp = 0;
   8531     uint32_t _cf = 0;
   8532     int _df = 1;
   8533     uint32_t _flag_k = FK_NONE;
   8534     uint32_t _flag_a = 0, _flag_b = 0;
   8535     uint32_t _itail_tgt = 0;
   8536     RECOMP_REGS_LOCALS
   8537     RECOMP_ENTER(0x400097D4u);
   8538 
   8539 L_400097D4:
   8540     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
   8541     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8543     _flag_k = FK_NARROW(FK_CMP, 24);
   8544     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
   8545 L_400097DD:
   8546     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
   8547     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
   8548     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
   8549     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8551     _flag_k = FK_CMP;
   8552     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
   8553 L_400097E6:
   8554     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
   8555     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
   8556     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
   8557     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8558     _cf = 0;
   8559     _flag_k = FK_NARROW(FK_TEST, 24);
   8560     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
   8561 L_400097F0:
   8562     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
   8563     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
   8564     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
   8565     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
   8566     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
   8567     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
   8568     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
   8569     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
   8570     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
   8571     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8572     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8573     _flag_k = FK_CMP;
   8574     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
   8575 L_4000980C:
   8576     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
   8577 L_4000980F:
   8578     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
   8579     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
   8580     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
   8581     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
   8582     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8584     _flag_k = FK_CMP;
   8585     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
   8586 L_4000981D:
   8587     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
   8588     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
   8589 L_40009822:
   8590     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
   8591     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
   8592     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8594     _flag_k = FK_CMP;
   8595     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
   8596 L_40009829:
   8597     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
   8598     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
   8599 L_4000982D:
   8600     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
   8601 L_40009830:
   8602     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
   8603     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
   8604     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
   8605     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
   8606 L_4000983B:
   8607     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
   8608     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
   8609     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8610     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8611     _flag_k = FK_NARROW(FK_CMP, 24);
   8612     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
   8613 L_40009846:
   8614     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
   8615     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
   8616     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8618     _flag_k = FK_NARROW(FK_CMP, 24);
   8619     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
   8620 L_40009852:
   8621     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
   8622 L_40009854:
   8623     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
   8624     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
   8625     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8626     _cf = 0;
   8627     _flag_k = FK_NARROW(FK_TEST, 24);
   8628     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
   8629 L_4000985B:
   8630     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
   8631     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
   8632     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
   8633     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
   8634     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
   8635     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
   8636     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
   8637     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
   8638     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
   8639     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8641     _flag_k = FK_CMP;
   8642     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
   8643 L_40009877:
   8644     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
   8645 L_4000987A:
   8646     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
   8647     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
   8648     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
   8649     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
   8650     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8651     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8652     _flag_k = FK_CMP;
   8653     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
   8654 L_40009888:
   8655     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
   8656     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
   8657 L_4000988D:
   8658     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
   8659     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
   8660     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8662     _flag_k = FK_CMP;
   8663     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
   8664 L_40009895:
   8665     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
   8666     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
   8667 L_4000989A:
   8668     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
   8669 L_4000989C:
   8670     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
   8671     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
   8672     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
   8673     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
   8674 L_400098A7:
   8675     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
   8676     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
   8677     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8679     _flag_k = FK_NARROW(FK_CMP, 24);
   8680     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
   8681 L_400098B3:
   8682     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
   8683     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
   8684     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8686     _flag_k = FK_NARROW(FK_CMP, 24);
   8687     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
   8688 L_400098BE:
   8689     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
   8690     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
   8691     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
   8692     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
   8693     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8695     _flag_k = FK_CMP;
   8696     RECOMP_BACKEDGE();
   8697     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
   8698 L_400098D1:
   8699     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
   8700 L_400098D6:
   8701     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
   8702     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
   8703     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8705     _flag_k = FK_NARROW(FK_CMP, 24);
   8706     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
   8707 L_400098DE:
   8708     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
   8709     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
   8710     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
   8711     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
   8712     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
   8713     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
   8714     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
   8715     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
   8716     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8718     _flag_k = FK_CMP;
   8719     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
   8720 L_400098F6:
   8721     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
   8722 L_400098F9:
   8723     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
   8724     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
   8725     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
   8726     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
   8727     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8728     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8729     _flag_k = FK_CMP;
   8730     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
   8731 L_40009907:
   8732     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
   8733     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
   8734 L_4000990C:
   8735     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
   8736     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
   8737     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8739     _flag_k = FK_CMP;
   8740     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
   8741 L_40009914:
   8742     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
   8743     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
   8744 L_40009919:
   8745     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
   8746 L_4000991B:
   8747     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
   8748     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
   8749     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
   8750     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
   8751 L_40009927:
   8752     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
   8753     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
   8754     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
   8755     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
   8756     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
   8757     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
   8758     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
   8759     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
   8760     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
   8761     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
   8762     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
   8763     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
   8764     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
   8765     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8767     _flag_k = FK_CMP;
   8768     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
   8769 L_4000994E:
   8770     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
   8771 L_40009951:
   8772     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
   8773     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
   8774     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
   8775     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
   8776     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8778     _flag_k = FK_CMP;
   8779     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
   8780 L_4000995F:
   8781     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
   8782     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
   8783     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
   8784 L_40009969:
   8785     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
   8786     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
   8787     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8789     _flag_k = FK_CMP;
   8790     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
   8791 L_40009970:
   8792     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
   8793     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
   8794     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
   8795 L_40009979:
   8796     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
   8797     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
   8798     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
   8799 L_40009983:
   8800     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
   8801     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
   8802     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8804     _flag_k = FK_NARROW(FK_CMP, 24);
   8805     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
   8806 L_4000998A:
   8807     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
   8808     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
   8809     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
   8810     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
   8811     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
   8812     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
   8813     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
   8814     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
   8815     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8816     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8817     _flag_k = FK_CMP;
   8818     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
   8819 L_400099A3:
   8820     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
   8821 L_400099A6:
   8822     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
   8823     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
   8824     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
   8825     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
   8826     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8828     _flag_k = FK_CMP;
   8829     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
   8830 L_400099B4:
   8831     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
   8832     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
   8833 L_400099B9:
   8834     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
   8835     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
   8836     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8838     _flag_k = FK_CMP;
   8839     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
   8840 L_400099C0:
   8841     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
   8842     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
   8843 L_400099C4:
   8844     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
   8845 L_400099C7:
   8846     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
   8847     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
   8848     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
   8849     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
   8850 L_400099D1:
   8851     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
   8852     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
   8853     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
   8854     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
   8855     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
   8856     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
   8857     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
   8858     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
   8859     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
   8860     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
   8861     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
   8862     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
   8863     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
   8864     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8866     _flag_k = FK_CMP;
   8867     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
   8868 L_400099F7:
   8869     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
   8870 L_400099FA:
   8871     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
   8872     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
   8873     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
   8874     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
   8875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8877     _flag_k = FK_CMP;
   8878     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
   8879 L_40009A08:
   8880     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
   8881     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
   8882 L_40009A0D:
   8883     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
   8884     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
   8885     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8887     _flag_k = FK_CMP;
   8888     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
   8889 L_40009A15:
   8890     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
   8891     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
   8892 L_40009A1A:
   8893     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
   8894 L_40009A1C:
   8895     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
   8896 L_40009A1F:
   8897     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
   8898 L_40009A22:
   8899     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
   8900     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
   8901     PUSH32(esp, edx); /* 0x40009A28: push edx */
   8902     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
   8903     RECOMP_FLAGS_IN();
   8904     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
   8905     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
   8906     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8907     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8908     esp = esp + 4; /* 0x40009A34: add esp, 4 */
   8909     _flag_k = FK_ADD;
   8910     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8911     eax = eax - 1; /* 0x40009A37: dec eax */
   8912     _flag_k = FK_DEC;
   8913     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
   8914     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
   8915     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
   8916     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
   8917     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
   8918     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
   8919     esp = ebp; /* 0x40009A43: mov esp, ebp */
   8920     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
   8921     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
   8922     RECOMP_REGS_OUT();
   8923 }
   8924 
   8925 void sub_40009830(void) {
   8926     int _fpu_cmp = 0;
   8927     uint32_t _cf = 0;
   8928     int _df = 1;
   8929     uint32_t _flag_k = FK_NONE;
   8930     uint32_t _flag_a = 0, _flag_b = 0;
   8931     uint32_t _itail_tgt = 0;
   8932     RECOMP_REGS_LOCALS
   8933     RECOMP_ENTER(0x40009830u);
   8934 
   8935     goto L_40009830;
   8936 L_400097D4:
   8937     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
   8938     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8940     _flag_k = FK_NARROW(FK_CMP, 24);
   8941     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
   8942 L_400097DD:
   8943     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
   8944     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
   8945     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
   8946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8948     _flag_k = FK_CMP;
   8949     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
   8950 L_400097E6:
   8951     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
   8952     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
   8953     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
   8954     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8955     _cf = 0;
   8956     _flag_k = FK_NARROW(FK_TEST, 24);
   8957     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
   8958 L_400097F0:
   8959     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
   8960     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
   8961     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
   8962     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
   8963     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
   8964     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
   8965     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
   8966     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
   8967     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
   8968     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8969     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8970     _flag_k = FK_CMP;
   8971     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
   8972 L_4000980C:
   8973     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
   8974 L_4000980F:
   8975     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
   8976     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
   8977     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
   8978     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
   8979     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8980     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8981     _flag_k = FK_CMP;
   8982     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
   8983 L_4000981D:
   8984     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
   8985     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
   8986 L_40009822:
   8987     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
   8988     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
   8989     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8991     _flag_k = FK_CMP;
   8992     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
   8993 L_40009829:
   8994     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
   8995     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
   8996 L_4000982D:
   8997     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
   8998 L_40009830:
   8999     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
   9000     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
   9001     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
   9002     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
   9003 L_4000983B:
   9004     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
   9005     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
   9006     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9007     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9008     _flag_k = FK_NARROW(FK_CMP, 24);
   9009     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
   9010 L_40009846:
   9011     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
   9012     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
   9013     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9015     _flag_k = FK_NARROW(FK_CMP, 24);
   9016     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
   9017 L_40009852:
   9018     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
   9019 L_40009854:
   9020     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
   9021     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
   9022     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9023     _cf = 0;
   9024     _flag_k = FK_NARROW(FK_TEST, 24);
   9025     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
   9026 L_4000985B:
   9027     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
   9028     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
   9029     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
   9030     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
   9031     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
   9032     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
   9033     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
   9034     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
   9035     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
   9036     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9038     _flag_k = FK_CMP;
   9039     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
   9040 L_40009877:
   9041     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
   9042 L_4000987A:
   9043     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
   9044     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
   9045     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
   9046     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
   9047     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9049     _flag_k = FK_CMP;
   9050     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
   9051 L_40009888:
   9052     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
   9053     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
   9054 L_4000988D:
   9055     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
   9056     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
   9057     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9058     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9059     _flag_k = FK_CMP;
   9060     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
   9061 L_40009895:
   9062     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
   9063     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
   9064 L_4000989A:
   9065     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
   9066 L_4000989C:
   9067     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
   9068     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
   9069     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
   9070     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
   9071 L_400098A7:
   9072     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
   9073     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
   9074     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9076     _flag_k = FK_NARROW(FK_CMP, 24);
   9077     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
   9078 L_400098B3:
   9079     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
   9080     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
   9081     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9083     _flag_k = FK_NARROW(FK_CMP, 24);
   9084     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
   9085 L_400098BE:
   9086     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
   9087     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
   9088     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
   9089     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
   9090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9091     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9092     _flag_k = FK_CMP;
   9093     RECOMP_BACKEDGE();
   9094     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
   9095 L_400098D1:
   9096     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
   9097 L_400098D6:
   9098     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
   9099     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
   9100     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9102     _flag_k = FK_NARROW(FK_CMP, 24);
   9103     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
   9104 L_400098DE:
   9105     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
   9106     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
   9107     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
   9108     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
   9109     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
   9110     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
   9111     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
   9112     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
   9113     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9115     _flag_k = FK_CMP;
   9116     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
   9117 L_400098F6:
   9118     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
   9119 L_400098F9:
   9120     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
   9121     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
   9122     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
   9123     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
   9124     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9125     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9126     _flag_k = FK_CMP;
   9127     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
   9128 L_40009907:
   9129     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
   9130     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
   9131 L_4000990C:
   9132     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
   9133     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
   9134     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9135     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9136     _flag_k = FK_CMP;
   9137     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
   9138 L_40009914:
   9139     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
   9140     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
   9141 L_40009919:
   9142     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
   9143 L_4000991B:
   9144     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
   9145     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
   9146     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
   9147     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
   9148 L_40009927:
   9149     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
   9150     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
   9151     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
   9152     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
   9153     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
   9154     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
   9155     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
   9156     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
   9157     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
   9158     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
   9159     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
   9160     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
   9161     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
   9162     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9164     _flag_k = FK_CMP;
   9165     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
   9166 L_4000994E:
   9167     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
   9168 L_40009951:
   9169     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
   9170     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
   9171     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
   9172     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
   9173     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9175     _flag_k = FK_CMP;
   9176     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
   9177 L_4000995F:
   9178     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
   9179     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
   9180     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
   9181 L_40009969:
   9182     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
   9183     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
   9184     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9186     _flag_k = FK_CMP;
   9187     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
   9188 L_40009970:
   9189     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
   9190     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
   9191     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
   9192 L_40009979:
   9193     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
   9194     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
   9195     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
   9196 L_40009983:
   9197     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
   9198     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
   9199     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9201     _flag_k = FK_NARROW(FK_CMP, 24);
   9202     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
   9203 L_4000998A:
   9204     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
   9205     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
   9206     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
   9207     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
   9208     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
   9209     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
   9210     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
   9211     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
   9212     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9213     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9214     _flag_k = FK_CMP;
   9215     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
   9216 L_400099A3:
   9217     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
   9218 L_400099A6:
   9219     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
   9220     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
   9221     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
   9222     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
   9223     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9225     _flag_k = FK_CMP;
   9226     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
   9227 L_400099B4:
   9228     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
   9229     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
   9230 L_400099B9:
   9231     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
   9232     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
   9233     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9235     _flag_k = FK_CMP;
   9236     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
   9237 L_400099C0:
   9238     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
   9239     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
   9240 L_400099C4:
   9241     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
   9242 L_400099C7:
   9243     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
   9244     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
   9245     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
   9246     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
   9247 L_400099D1:
   9248     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
   9249     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
   9250     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
   9251     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
   9252     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
   9253     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
   9254     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
   9255     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
   9256     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
   9257     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
   9258     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
   9259     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
   9260     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
   9261     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9263     _flag_k = FK_CMP;
   9264     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
   9265 L_400099F7:
   9266     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
   9267 L_400099FA:
   9268     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
   9269     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
   9270     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
   9271     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
   9272     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9274     _flag_k = FK_CMP;
   9275     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
   9276 L_40009A08:
   9277     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
   9278     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
   9279 L_40009A0D:
   9280     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
   9281     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
   9282     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9284     _flag_k = FK_CMP;
   9285     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
   9286 L_40009A15:
   9287     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
   9288     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
   9289 L_40009A1A:
   9290     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
   9291 L_40009A1C:
   9292     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
   9293 L_40009A1F:
   9294     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
   9295 L_40009A22:
   9296     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
   9297     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
   9298     PUSH32(esp, edx); /* 0x40009A28: push edx */
   9299     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
   9300     RECOMP_FLAGS_IN();
   9301     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
   9302     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
   9303     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9304     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9305     esp = esp + 4; /* 0x40009A34: add esp, 4 */
   9306     _flag_k = FK_ADD;
   9307     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9308     eax = eax - 1; /* 0x40009A37: dec eax */
   9309     _flag_k = FK_DEC;
   9310     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
   9311     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
   9312     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
   9313     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
   9314     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
   9315     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
   9316     esp = ebp; /* 0x40009A43: mov esp, ebp */
   9317     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
   9318     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
   9319     RECOMP_REGS_OUT();
   9320 }
   9321 
   9322 void sub_4000983B(void) {
   9323     int _fpu_cmp = 0;
   9324     uint32_t _cf = 0;
   9325     int _df = 1;
   9326     uint32_t _flag_k = FK_NONE;
   9327     uint32_t _flag_a = 0, _flag_b = 0;
   9328     uint32_t _itail_tgt = 0;
   9329     RECOMP_REGS_LOCALS
   9330     RECOMP_ENTER(0x4000983Bu);
   9331 
   9332     goto L_4000983B;
   9333 L_400097D4:
   9334     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
   9335     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9336     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9337     _flag_k = FK_NARROW(FK_CMP, 24);
   9338     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
   9339 L_400097DD:
   9340     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
   9341     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
   9342     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
   9343     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9344     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9345     _flag_k = FK_CMP;
   9346     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
   9347 L_400097E6:
   9348     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
   9349     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
   9350     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
   9351     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9352     _cf = 0;
   9353     _flag_k = FK_NARROW(FK_TEST, 24);
   9354     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
   9355 L_400097F0:
   9356     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
   9357     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
   9358     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
   9359     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
   9360     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
   9361     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
   9362     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
   9363     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
   9364     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
   9365     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9367     _flag_k = FK_CMP;
   9368     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
   9369 L_4000980C:
   9370     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
   9371 L_4000980F:
   9372     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
   9373     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
   9374     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
   9375     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
   9376     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9378     _flag_k = FK_CMP;
   9379     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
   9380 L_4000981D:
   9381     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
   9382     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
   9383 L_40009822:
   9384     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
   9385     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
   9386     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9388     _flag_k = FK_CMP;
   9389     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
   9390 L_40009829:
   9391     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
   9392     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
   9393 L_4000982D:
   9394     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
   9395 L_40009830:
   9396     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
   9397     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
   9398     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
   9399     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
   9400 L_4000983B:
   9401     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
   9402     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
   9403     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9405     _flag_k = FK_NARROW(FK_CMP, 24);
   9406     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
   9407 L_40009846:
   9408     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
   9409     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
   9410     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9412     _flag_k = FK_NARROW(FK_CMP, 24);
   9413     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
   9414 L_40009852:
   9415     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
   9416 L_40009854:
   9417     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
   9418     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
   9419     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9420     _cf = 0;
   9421     _flag_k = FK_NARROW(FK_TEST, 24);
   9422     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
   9423 L_4000985B:
   9424     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
   9425     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
   9426     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
   9427     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
   9428     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
   9429     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
   9430     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
   9431     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
   9432     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
   9433     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9434     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9435     _flag_k = FK_CMP;
   9436     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
   9437 L_40009877:
   9438     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
   9439 L_4000987A:
   9440     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
   9441     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
   9442     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
   9443     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
   9444     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9446     _flag_k = FK_CMP;
   9447     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
   9448 L_40009888:
   9449     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
   9450     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
   9451 L_4000988D:
   9452     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
   9453     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
   9454     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9456     _flag_k = FK_CMP;
   9457     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
   9458 L_40009895:
   9459     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
   9460     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
   9461 L_4000989A:
   9462     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
   9463 L_4000989C:
   9464     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
   9465     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
   9466     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
   9467     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
   9468 L_400098A7:
   9469     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
   9470     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
   9471     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9473     _flag_k = FK_NARROW(FK_CMP, 24);
   9474     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
   9475 L_400098B3:
   9476     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
   9477     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
   9478     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9480     _flag_k = FK_NARROW(FK_CMP, 24);
   9481     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
   9482 L_400098BE:
   9483     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
   9484     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
   9485     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
   9486     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
   9487     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9489     _flag_k = FK_CMP;
   9490     RECOMP_BACKEDGE();
   9491     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
   9492 L_400098D1:
   9493     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
   9494 L_400098D6:
   9495     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
   9496     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
   9497     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9499     _flag_k = FK_NARROW(FK_CMP, 24);
   9500     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
   9501 L_400098DE:
   9502     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
   9503     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
   9504     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
   9505     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
   9506     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
   9507     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
   9508     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
   9509     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
   9510     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9512     _flag_k = FK_CMP;
   9513     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
   9514 L_400098F6:
   9515     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
   9516 L_400098F9:
   9517     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
   9518     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
   9519     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
   9520     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
   9521     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9523     _flag_k = FK_CMP;
   9524     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
   9525 L_40009907:
   9526     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
   9527     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
   9528 L_4000990C:
   9529     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
   9530     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
   9531     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9532     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9533     _flag_k = FK_CMP;
   9534     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
   9535 L_40009914:
   9536     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
   9537     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
   9538 L_40009919:
   9539     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
   9540 L_4000991B:
   9541     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
   9542     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
   9543     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
   9544     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
   9545 L_40009927:
   9546     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
   9547     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
   9548     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
   9549     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
   9550     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
   9551     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
   9552     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
   9553     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
   9554     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
   9555     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
   9556     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
   9557     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
   9558     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
   9559     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9561     _flag_k = FK_CMP;
   9562     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
   9563 L_4000994E:
   9564     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
   9565 L_40009951:
   9566     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
   9567     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
   9568     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
   9569     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
   9570     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9571     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9572     _flag_k = FK_CMP;
   9573     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
   9574 L_4000995F:
   9575     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
   9576     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
   9577     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
   9578 L_40009969:
   9579     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
   9580     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
   9581     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9583     _flag_k = FK_CMP;
   9584     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
   9585 L_40009970:
   9586     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
   9587     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
   9588     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
   9589 L_40009979:
   9590     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
   9591     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
   9592     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
   9593 L_40009983:
   9594     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
   9595     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
   9596     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9598     _flag_k = FK_NARROW(FK_CMP, 24);
   9599     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
   9600 L_4000998A:
   9601     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
   9602     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
   9603     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
   9604     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
   9605     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
   9606     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
   9607     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
   9608     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
   9609     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9610     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9611     _flag_k = FK_CMP;
   9612     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
   9613 L_400099A3:
   9614     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
   9615 L_400099A6:
   9616     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
   9617     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
   9618     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
   9619     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
   9620     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9622     _flag_k = FK_CMP;
   9623     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
   9624 L_400099B4:
   9625     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
   9626     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
   9627 L_400099B9:
   9628     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
   9629     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
   9630     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9631     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9632     _flag_k = FK_CMP;
   9633     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
   9634 L_400099C0:
   9635     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
   9636     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
   9637 L_400099C4:
   9638     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
   9639 L_400099C7:
   9640     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
   9641     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
   9642     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
   9643     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
   9644 L_400099D1:
   9645     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
   9646     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
   9647     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
   9648     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
   9649     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
   9650     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
   9651     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
   9652     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
   9653     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
   9654     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
   9655     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
   9656     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
   9657     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
   9658     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9659     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9660     _flag_k = FK_CMP;
   9661     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
   9662 L_400099F7:
   9663     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
   9664 L_400099FA:
   9665     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
   9666     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
   9667     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
   9668     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
   9669     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9671     _flag_k = FK_CMP;
   9672     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
   9673 L_40009A08:
   9674     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
   9675     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
   9676 L_40009A0D:
   9677     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
   9678     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
   9679     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9680     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9681     _flag_k = FK_CMP;
   9682     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
   9683 L_40009A15:
   9684     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
   9685     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
   9686 L_40009A1A:
   9687     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
   9688 L_40009A1C:
   9689     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
   9690 L_40009A1F:
   9691     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
   9692 L_40009A22:
   9693     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
   9694     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
   9695     PUSH32(esp, edx); /* 0x40009A28: push edx */
   9696     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
   9697     RECOMP_FLAGS_IN();
   9698     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
   9699     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
   9700     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9701     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9702     esp = esp + 4; /* 0x40009A34: add esp, 4 */
   9703     _flag_k = FK_ADD;
   9704     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9705     eax = eax - 1; /* 0x40009A37: dec eax */
   9706     _flag_k = FK_DEC;
   9707     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
   9708     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
   9709     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
   9710     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
   9711     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
   9712     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
   9713     esp = ebp; /* 0x40009A43: mov esp, ebp */
   9714     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
   9715     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
   9716     RECOMP_REGS_OUT();
   9717 }
   9718 
   9719 void sub_40009854(void) {
   9720     int _fpu_cmp = 0;
   9721     uint32_t _cf = 0;
   9722     int _df = 1;
   9723     uint32_t _flag_k = FK_NONE;
   9724     uint32_t _flag_a = 0, _flag_b = 0;
   9725     uint32_t _itail_tgt = 0;
   9726     RECOMP_REGS_LOCALS
   9727     RECOMP_ENTER(0x40009854u);
   9728 
   9729     goto L_40009854;
   9730 L_400097D4:
   9731     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
   9732     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9733     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9734     _flag_k = FK_NARROW(FK_CMP, 24);
   9735     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
   9736 L_400097DD:
   9737     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
   9738     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
   9739     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
   9740     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9741     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9742     _flag_k = FK_CMP;
   9743     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
   9744 L_400097E6:
   9745     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
   9746     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
   9747     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
   9748     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9749     _cf = 0;
   9750     _flag_k = FK_NARROW(FK_TEST, 24);
   9751     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
   9752 L_400097F0:
   9753     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
   9754     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
   9755     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
   9756     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
   9757     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
   9758     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
   9759     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
   9760     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
   9761     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
   9762     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9764     _flag_k = FK_CMP;
   9765     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
   9766 L_4000980C:
   9767     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
   9768 L_4000980F:
   9769     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
   9770     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
   9771     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
   9772     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
   9773     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9774     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9775     _flag_k = FK_CMP;
   9776     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
   9777 L_4000981D:
   9778     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
   9779     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
   9780 L_40009822:
   9781     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
   9782     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
   9783     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9784     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9785     _flag_k = FK_CMP;
   9786     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
   9787 L_40009829:
   9788     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
   9789     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
   9790 L_4000982D:
   9791     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
   9792 L_40009830:
   9793     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
   9794     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
   9795     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
   9796     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
   9797 L_4000983B:
   9798     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
   9799     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
   9800     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9802     _flag_k = FK_NARROW(FK_CMP, 24);
   9803     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
   9804 L_40009846:
   9805     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
   9806     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
   9807     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9809     _flag_k = FK_NARROW(FK_CMP, 24);
   9810     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
   9811 L_40009852:
   9812     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
   9813 L_40009854:
   9814     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
   9815     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
   9816     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9817     _cf = 0;
   9818     _flag_k = FK_NARROW(FK_TEST, 24);
   9819     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
   9820 L_4000985B:
   9821     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
   9822     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
   9823     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
   9824     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
   9825     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
   9826     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
   9827     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
   9828     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
   9829     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
   9830     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9832     _flag_k = FK_CMP;
   9833     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
   9834 L_40009877:
   9835     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
   9836 L_4000987A:
   9837     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
   9838     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
   9839     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
   9840     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
   9841     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9843     _flag_k = FK_CMP;
   9844     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
   9845 L_40009888:
   9846     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
   9847     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
   9848 L_4000988D:
   9849     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
   9850     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
   9851     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9853     _flag_k = FK_CMP;
   9854     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
   9855 L_40009895:
   9856     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
   9857     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
   9858 L_4000989A:
   9859     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
   9860 L_4000989C:
   9861     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
   9862     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
   9863     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
   9864     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
   9865 L_400098A7:
   9866     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
   9867     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
   9868     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9870     _flag_k = FK_NARROW(FK_CMP, 24);
   9871     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
   9872 L_400098B3:
   9873     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
   9874     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
   9875     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9877     _flag_k = FK_NARROW(FK_CMP, 24);
   9878     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
   9879 L_400098BE:
   9880     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
   9881     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
   9882     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
   9883     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
   9884     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9885     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9886     _flag_k = FK_CMP;
   9887     RECOMP_BACKEDGE();
   9888     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
   9889 L_400098D1:
   9890     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
   9891 L_400098D6:
   9892     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
   9893     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
   9894     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9896     _flag_k = FK_NARROW(FK_CMP, 24);
   9897     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
   9898 L_400098DE:
   9899     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
   9900     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
   9901     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
   9902     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
   9903     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
   9904     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
   9905     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
   9906     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
   9907     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9909     _flag_k = FK_CMP;
   9910     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
   9911 L_400098F6:
   9912     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
   9913 L_400098F9:
   9914     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
   9915     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
   9916     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
   9917     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
   9918     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9920     _flag_k = FK_CMP;
   9921     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
   9922 L_40009907:
   9923     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
   9924     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
   9925 L_4000990C:
   9926     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
   9927     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
   9928     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9929     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9930     _flag_k = FK_CMP;
   9931     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
   9932 L_40009914:
   9933     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
   9934     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
   9935 L_40009919:
   9936     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
   9937 L_4000991B:
   9938     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
   9939     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
   9940     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
   9941     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
   9942 L_40009927:
   9943     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
   9944     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
   9945     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
   9946     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
   9947     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
   9948     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
   9949     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
   9950     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
   9951     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
   9952     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
   9953     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
   9954     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
   9955     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
   9956     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9958     _flag_k = FK_CMP;
   9959     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
   9960 L_4000994E:
   9961     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
   9962 L_40009951:
   9963     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
   9964     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
   9965     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
   9966     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
   9967     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9969     _flag_k = FK_CMP;
   9970     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
   9971 L_4000995F:
   9972     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
   9973     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
   9974     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
   9975 L_40009969:
   9976     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
   9977     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
   9978     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9980     _flag_k = FK_CMP;
   9981     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
   9982 L_40009970:
   9983     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
   9984     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
   9985     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
   9986 L_40009979:
   9987     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
   9988     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
   9989     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
   9990 L_40009983:
   9991     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
   9992     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
   9993     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9995     _flag_k = FK_NARROW(FK_CMP, 24);
   9996     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
   9997 L_4000998A:
   9998     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
   9999     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
  10000     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
  10001     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
  10002     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
  10003     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
  10004     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
  10005     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
  10006     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10007     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10008     _flag_k = FK_CMP;
  10009     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
  10010 L_400099A3:
  10011     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
  10012 L_400099A6:
  10013     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
  10014     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
  10015     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
  10016     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
  10017     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10019     _flag_k = FK_CMP;
  10020     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
  10021 L_400099B4:
  10022     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
  10023     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
  10024 L_400099B9:
  10025     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
  10026     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
  10027     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10028     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10029     _flag_k = FK_CMP;
  10030     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
  10031 L_400099C0:
  10032     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
  10033     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
  10034 L_400099C4:
  10035     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
  10036 L_400099C7:
  10037     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
  10038     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
  10039     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
  10040     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
  10041 L_400099D1:
  10042     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
  10043     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
  10044     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
  10045     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
  10046     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
  10047     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
  10048     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
  10049     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
  10050     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
  10051     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
  10052     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
  10053     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
  10054     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
  10055     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10057     _flag_k = FK_CMP;
  10058     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
  10059 L_400099F7:
  10060     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
  10061 L_400099FA:
  10062     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
  10063     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
  10064     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
  10065     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
  10066     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10068     _flag_k = FK_CMP;
  10069     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
  10070 L_40009A08:
  10071     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
  10072     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
  10073 L_40009A0D:
  10074     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
  10075     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
  10076     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10078     _flag_k = FK_CMP;
  10079     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
  10080 L_40009A15:
  10081     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
  10082     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
  10083 L_40009A1A:
  10084     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
  10085 L_40009A1C:
  10086     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
  10087 L_40009A1F:
  10088     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
  10089 L_40009A22:
  10090     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
  10091     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
  10092     PUSH32(esp, edx); /* 0x40009A28: push edx */
  10093     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
  10094     RECOMP_FLAGS_IN();
  10095     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
  10096     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
  10097     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10098     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10099     esp = esp + 4; /* 0x40009A34: add esp, 4 */
  10100     _flag_k = FK_ADD;
  10101     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10102     eax = eax - 1; /* 0x40009A37: dec eax */
  10103     _flag_k = FK_DEC;
  10104     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
  10105     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
  10106     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
  10107     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
  10108     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
  10109     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
  10110     esp = ebp; /* 0x40009A43: mov esp, ebp */
  10111     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
  10112     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
  10113     RECOMP_REGS_OUT();
  10114 }
  10115 
  10116 void sub_4000989C(void) {
  10117     int _fpu_cmp = 0;
  10118     uint32_t _cf = 0;
  10119     int _df = 1;
  10120     uint32_t _flag_k = FK_NONE;
  10121     uint32_t _flag_a = 0, _flag_b = 0;
  10122     uint32_t _itail_tgt = 0;
  10123     RECOMP_REGS_LOCALS
  10124     RECOMP_ENTER(0x4000989Cu);
  10125 
  10126     goto L_4000989C;
  10127 L_400097D4:
  10128     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
  10129     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10131     _flag_k = FK_NARROW(FK_CMP, 24);
  10132     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
  10133 L_400097DD:
  10134     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
  10135     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
  10136     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
  10137     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10138     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10139     _flag_k = FK_CMP;
  10140     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
  10141 L_400097E6:
  10142     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
  10143     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
  10144     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
  10145     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10146     _cf = 0;
  10147     _flag_k = FK_NARROW(FK_TEST, 24);
  10148     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
  10149 L_400097F0:
  10150     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
  10151     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
  10152     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
  10153     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
  10154     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
  10155     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
  10156     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
  10157     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
  10158     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
  10159     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10161     _flag_k = FK_CMP;
  10162     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
  10163 L_4000980C:
  10164     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
  10165 L_4000980F:
  10166     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
  10167     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
  10168     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
  10169     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
  10170     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10171     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10172     _flag_k = FK_CMP;
  10173     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
  10174 L_4000981D:
  10175     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
  10176     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
  10177 L_40009822:
  10178     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
  10179     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
  10180     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10181     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10182     _flag_k = FK_CMP;
  10183     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
  10184 L_40009829:
  10185     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
  10186     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
  10187 L_4000982D:
  10188     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
  10189 L_40009830:
  10190     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
  10191     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
  10192     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
  10193     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
  10194 L_4000983B:
  10195     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
  10196     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
  10197     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10199     _flag_k = FK_NARROW(FK_CMP, 24);
  10200     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
  10201 L_40009846:
  10202     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
  10203     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
  10204     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10205     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10206     _flag_k = FK_NARROW(FK_CMP, 24);
  10207     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
  10208 L_40009852:
  10209     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
  10210 L_40009854:
  10211     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
  10212     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
  10213     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10214     _cf = 0;
  10215     _flag_k = FK_NARROW(FK_TEST, 24);
  10216     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
  10217 L_4000985B:
  10218     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
  10219     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
  10220     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
  10221     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
  10222     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
  10223     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
  10224     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
  10225     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
  10226     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
  10227     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10229     _flag_k = FK_CMP;
  10230     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
  10231 L_40009877:
  10232     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
  10233 L_4000987A:
  10234     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
  10235     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
  10236     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
  10237     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
  10238     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10240     _flag_k = FK_CMP;
  10241     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
  10242 L_40009888:
  10243     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
  10244     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
  10245 L_4000988D:
  10246     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
  10247     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
  10248     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10250     _flag_k = FK_CMP;
  10251     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
  10252 L_40009895:
  10253     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
  10254     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
  10255 L_4000989A:
  10256     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
  10257 L_4000989C:
  10258     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
  10259     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
  10260     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
  10261     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
  10262 L_400098A7:
  10263     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
  10264     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
  10265     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10267     _flag_k = FK_NARROW(FK_CMP, 24);
  10268     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
  10269 L_400098B3:
  10270     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
  10271     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
  10272     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10274     _flag_k = FK_NARROW(FK_CMP, 24);
  10275     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
  10276 L_400098BE:
  10277     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
  10278     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
  10279     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
  10280     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
  10281     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10283     _flag_k = FK_CMP;
  10284     RECOMP_BACKEDGE();
  10285     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
  10286 L_400098D1:
  10287     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
  10288 L_400098D6:
  10289     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
  10290     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
  10291     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10292     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10293     _flag_k = FK_NARROW(FK_CMP, 24);
  10294     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
  10295 L_400098DE:
  10296     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
  10297     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
  10298     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
  10299     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
  10300     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
  10301     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
  10302     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
  10303     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
  10304     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10306     _flag_k = FK_CMP;
  10307     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
  10308 L_400098F6:
  10309     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
  10310 L_400098F9:
  10311     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
  10312     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
  10313     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
  10314     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
  10315     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10317     _flag_k = FK_CMP;
  10318     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
  10319 L_40009907:
  10320     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
  10321     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
  10322 L_4000990C:
  10323     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
  10324     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
  10325     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10326     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10327     _flag_k = FK_CMP;
  10328     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
  10329 L_40009914:
  10330     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
  10331     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
  10332 L_40009919:
  10333     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
  10334 L_4000991B:
  10335     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
  10336     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
  10337     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
  10338     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
  10339 L_40009927:
  10340     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
  10341     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
  10342     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
  10343     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
  10344     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
  10345     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
  10346     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
  10347     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
  10348     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
  10349     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
  10350     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
  10351     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
  10352     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
  10353     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10355     _flag_k = FK_CMP;
  10356     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
  10357 L_4000994E:
  10358     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
  10359 L_40009951:
  10360     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
  10361     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
  10362     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
  10363     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
  10364     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10366     _flag_k = FK_CMP;
  10367     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
  10368 L_4000995F:
  10369     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
  10370     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
  10371     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
  10372 L_40009969:
  10373     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
  10374     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
  10375     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10377     _flag_k = FK_CMP;
  10378     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
  10379 L_40009970:
  10380     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
  10381     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
  10382     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
  10383 L_40009979:
  10384     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
  10385     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
  10386     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
  10387 L_40009983:
  10388     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
  10389     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
  10390     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10392     _flag_k = FK_NARROW(FK_CMP, 24);
  10393     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
  10394 L_4000998A:
  10395     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
  10396     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
  10397     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
  10398     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
  10399     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
  10400     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
  10401     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
  10402     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
  10403     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10405     _flag_k = FK_CMP;
  10406     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
  10407 L_400099A3:
  10408     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
  10409 L_400099A6:
  10410     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
  10411     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
  10412     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
  10413     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
  10414     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10416     _flag_k = FK_CMP;
  10417     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
  10418 L_400099B4:
  10419     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
  10420     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
  10421 L_400099B9:
  10422     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
  10423     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
  10424     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10426     _flag_k = FK_CMP;
  10427     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
  10428 L_400099C0:
  10429     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
  10430     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
  10431 L_400099C4:
  10432     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
  10433 L_400099C7:
  10434     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
  10435     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
  10436     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
  10437     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
  10438 L_400099D1:
  10439     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
  10440     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
  10441     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
  10442     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
  10443     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
  10444     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
  10445     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
  10446     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
  10447     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
  10448     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
  10449     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
  10450     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
  10451     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
  10452     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10454     _flag_k = FK_CMP;
  10455     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
  10456 L_400099F7:
  10457     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
  10458 L_400099FA:
  10459     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
  10460     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
  10461     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
  10462     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
  10463     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10465     _flag_k = FK_CMP;
  10466     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
  10467 L_40009A08:
  10468     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
  10469     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
  10470 L_40009A0D:
  10471     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
  10472     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
  10473     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10475     _flag_k = FK_CMP;
  10476     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
  10477 L_40009A15:
  10478     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
  10479     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
  10480 L_40009A1A:
  10481     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
  10482 L_40009A1C:
  10483     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
  10484 L_40009A1F:
  10485     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
  10486 L_40009A22:
  10487     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
  10488     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
  10489     PUSH32(esp, edx); /* 0x40009A28: push edx */
  10490     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
  10491     RECOMP_FLAGS_IN();
  10492     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
  10493     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
  10494     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10495     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10496     esp = esp + 4; /* 0x40009A34: add esp, 4 */
  10497     _flag_k = FK_ADD;
  10498     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10499     eax = eax - 1; /* 0x40009A37: dec eax */
  10500     _flag_k = FK_DEC;
  10501     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
  10502     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
  10503     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
  10504     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
  10505     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
  10506     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
  10507     esp = ebp; /* 0x40009A43: mov esp, ebp */
  10508     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
  10509     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
  10510     RECOMP_REGS_OUT();
  10511 }
  10512 
  10513 void sub_400098A7(void) {
  10514     int _fpu_cmp = 0;
  10515     uint32_t _cf = 0;
  10516     int _df = 1;
  10517     uint32_t _flag_k = FK_NONE;
  10518     uint32_t _flag_a = 0, _flag_b = 0;
  10519     uint32_t _itail_tgt = 0;
  10520     RECOMP_REGS_LOCALS
  10521     RECOMP_ENTER(0x400098A7u);
  10522 
  10523     goto L_400098A7;
  10524 L_400097D4:
  10525     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
  10526     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10528     _flag_k = FK_NARROW(FK_CMP, 24);
  10529     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
  10530 L_400097DD:
  10531     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
  10532     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
  10533     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
  10534     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10535     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10536     _flag_k = FK_CMP;
  10537     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
  10538 L_400097E6:
  10539     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
  10540     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
  10541     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
  10542     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10543     _cf = 0;
  10544     _flag_k = FK_NARROW(FK_TEST, 24);
  10545     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
  10546 L_400097F0:
  10547     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
  10548     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
  10549     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
  10550     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
  10551     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
  10552     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
  10553     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
  10554     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
  10555     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
  10556     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10558     _flag_k = FK_CMP;
  10559     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
  10560 L_4000980C:
  10561     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
  10562 L_4000980F:
  10563     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
  10564     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
  10565     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
  10566     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
  10567     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10569     _flag_k = FK_CMP;
  10570     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
  10571 L_4000981D:
  10572     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
  10573     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
  10574 L_40009822:
  10575     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
  10576     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
  10577     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10579     _flag_k = FK_CMP;
  10580     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
  10581 L_40009829:
  10582     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
  10583     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
  10584 L_4000982D:
  10585     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
  10586 L_40009830:
  10587     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
  10588     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
  10589     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
  10590     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
  10591 L_4000983B:
  10592     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
  10593     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
  10594     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10596     _flag_k = FK_NARROW(FK_CMP, 24);
  10597     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
  10598 L_40009846:
  10599     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
  10600     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
  10601     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10602     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10603     _flag_k = FK_NARROW(FK_CMP, 24);
  10604     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
  10605 L_40009852:
  10606     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
  10607 L_40009854:
  10608     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
  10609     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
  10610     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10611     _cf = 0;
  10612     _flag_k = FK_NARROW(FK_TEST, 24);
  10613     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
  10614 L_4000985B:
  10615     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
  10616     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
  10617     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
  10618     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
  10619     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
  10620     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
  10621     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
  10622     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
  10623     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
  10624     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10626     _flag_k = FK_CMP;
  10627     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
  10628 L_40009877:
  10629     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
  10630 L_4000987A:
  10631     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
  10632     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
  10633     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
  10634     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
  10635     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10637     _flag_k = FK_CMP;
  10638     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
  10639 L_40009888:
  10640     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
  10641     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
  10642 L_4000988D:
  10643     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
  10644     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
  10645     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10647     _flag_k = FK_CMP;
  10648     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
  10649 L_40009895:
  10650     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
  10651     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
  10652 L_4000989A:
  10653     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
  10654 L_4000989C:
  10655     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
  10656     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
  10657     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
  10658     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
  10659 L_400098A7:
  10660     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
  10661     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
  10662     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10664     _flag_k = FK_NARROW(FK_CMP, 24);
  10665     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
  10666 L_400098B3:
  10667     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
  10668     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
  10669     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10671     _flag_k = FK_NARROW(FK_CMP, 24);
  10672     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
  10673 L_400098BE:
  10674     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
  10675     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
  10676     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
  10677     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
  10678     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10679     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10680     _flag_k = FK_CMP;
  10681     RECOMP_BACKEDGE();
  10682     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
  10683 L_400098D1:
  10684     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
  10685 L_400098D6:
  10686     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
  10687     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
  10688     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10690     _flag_k = FK_NARROW(FK_CMP, 24);
  10691     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
  10692 L_400098DE:
  10693     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
  10694     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
  10695     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
  10696     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
  10697     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
  10698     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
  10699     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
  10700     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
  10701     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10703     _flag_k = FK_CMP;
  10704     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
  10705 L_400098F6:
  10706     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
  10707 L_400098F9:
  10708     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
  10709     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
  10710     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
  10711     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
  10712     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10714     _flag_k = FK_CMP;
  10715     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
  10716 L_40009907:
  10717     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
  10718     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
  10719 L_4000990C:
  10720     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
  10721     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
  10722     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10724     _flag_k = FK_CMP;
  10725     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
  10726 L_40009914:
  10727     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
  10728     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
  10729 L_40009919:
  10730     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
  10731 L_4000991B:
  10732     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
  10733     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
  10734     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
  10735     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
  10736 L_40009927:
  10737     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
  10738     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
  10739     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
  10740     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
  10741     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
  10742     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
  10743     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
  10744     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
  10745     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
  10746     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
  10747     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
  10748     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
  10749     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
  10750     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10752     _flag_k = FK_CMP;
  10753     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
  10754 L_4000994E:
  10755     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
  10756 L_40009951:
  10757     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
  10758     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
  10759     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
  10760     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
  10761     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10763     _flag_k = FK_CMP;
  10764     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
  10765 L_4000995F:
  10766     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
  10767     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
  10768     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
  10769 L_40009969:
  10770     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
  10771     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
  10772     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10773     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10774     _flag_k = FK_CMP;
  10775     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
  10776 L_40009970:
  10777     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
  10778     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
  10779     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
  10780 L_40009979:
  10781     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
  10782     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
  10783     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
  10784 L_40009983:
  10785     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
  10786     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
  10787     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10789     _flag_k = FK_NARROW(FK_CMP, 24);
  10790     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
  10791 L_4000998A:
  10792     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
  10793     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
  10794     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
  10795     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
  10796     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
  10797     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
  10798     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
  10799     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
  10800     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10802     _flag_k = FK_CMP;
  10803     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
  10804 L_400099A3:
  10805     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
  10806 L_400099A6:
  10807     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
  10808     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
  10809     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
  10810     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
  10811     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10813     _flag_k = FK_CMP;
  10814     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
  10815 L_400099B4:
  10816     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
  10817     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
  10818 L_400099B9:
  10819     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
  10820     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
  10821     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10823     _flag_k = FK_CMP;
  10824     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
  10825 L_400099C0:
  10826     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
  10827     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
  10828 L_400099C4:
  10829     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
  10830 L_400099C7:
  10831     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
  10832     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
  10833     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
  10834     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
  10835 L_400099D1:
  10836     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
  10837     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
  10838     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
  10839     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
  10840     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
  10841     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
  10842     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
  10843     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
  10844     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
  10845     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
  10846     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
  10847     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
  10848     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
  10849     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10850     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10851     _flag_k = FK_CMP;
  10852     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
  10853 L_400099F7:
  10854     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
  10855 L_400099FA:
  10856     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
  10857     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
  10858     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
  10859     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
  10860     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10862     _flag_k = FK_CMP;
  10863     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
  10864 L_40009A08:
  10865     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
  10866     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
  10867 L_40009A0D:
  10868     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
  10869     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
  10870     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10872     _flag_k = FK_CMP;
  10873     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
  10874 L_40009A15:
  10875     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
  10876     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
  10877 L_40009A1A:
  10878     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
  10879 L_40009A1C:
  10880     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
  10881 L_40009A1F:
  10882     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
  10883 L_40009A22:
  10884     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
  10885     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
  10886     PUSH32(esp, edx); /* 0x40009A28: push edx */
  10887     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
  10888     RECOMP_FLAGS_IN();
  10889     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
  10890     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
  10891     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10892     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10893     esp = esp + 4; /* 0x40009A34: add esp, 4 */
  10894     _flag_k = FK_ADD;
  10895     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10896     eax = eax - 1; /* 0x40009A37: dec eax */
  10897     _flag_k = FK_DEC;
  10898     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
  10899     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
  10900     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
  10901     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
  10902     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
  10903     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
  10904     esp = ebp; /* 0x40009A43: mov esp, ebp */
  10905     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
  10906     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
  10907     RECOMP_REGS_OUT();
  10908 }
  10909 
  10910 void sub_400098BE(void) {
  10911     int _fpu_cmp = 0;
  10912     uint32_t _cf = 0;
  10913     int _df = 1;
  10914     uint32_t _flag_k = FK_NONE;
  10915     uint32_t _flag_a = 0, _flag_b = 0;
  10916     uint32_t _itail_tgt = 0;
  10917     RECOMP_REGS_LOCALS
  10918     RECOMP_ENTER(0x400098BEu);
  10919 
  10920     goto L_400098BE;
  10921 L_400097D4:
  10922     /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x400097D4: cmp byte ptr [eax + 0x14], bl */
  10923     _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10925     _flag_k = FK_NARROW(FK_CMP, 24);
  10926     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A22; /* 0x400097D7: jne 0x40009a22 */
  10927 L_400097DD:
  10928     edx = MEM32(eax + 0x4); /* 0x400097DD: mov edx, dword ptr [eax + 4] */
  10929     ecx = MEM32(edx); /* 0x400097E0: mov ecx, dword ptr [edx] */
  10930     /* cmp eax, ecx */ /* 0x400097E2: cmp eax, ecx */
  10931     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10932     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10933     _flag_k = FK_CMP;
  10934     if (CMP_NE(_flag_a, _flag_b)) goto L_40009854; /* 0x400097E4: jne 0x40009854 */
  10935 L_400097E6:
  10936     ecx = MEM32(edx + 0x8); /* 0x400097E6: mov ecx, dword ptr [edx + 8] */
  10937     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x400097E9: mov dl, byte ptr [ecx + 0x14] */
  10938     /* test LO8(edx), LO8(edx) */ /* 0x400097EC: test dl, dl */
  10939     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10940     _cf = 0;
  10941     _flag_k = FK_NARROW(FK_TEST, 24);
  10942     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000983B; /* 0x400097EE: jne 0x4000983b */
  10943 L_400097F0:
  10944     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400097F0: mov byte ptr [ecx + 0x14], bl */
  10945     ecx = MEM32(eax + 0x4); /* 0x400097F3: mov ecx, dword ptr [eax + 4] */
  10946     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400097F6: mov byte ptr [ecx + 0x14], 0 */
  10947     ecx = MEM32(eax + 0x4); /* 0x400097FA: mov ecx, dword ptr [eax + 4] */
  10948     edx = MEM32(ecx + 0x8); /* 0x400097FD: mov edx, dword ptr [ecx + 8] */
  10949     esi = MEM32(edx); /* 0x40009800: mov esi, dword ptr [edx] */
  10950     MEM32(ecx + 0x8) = esi; /* 0x40009802: mov dword ptr [ecx + 8], esi */
  10951     esi = MEM32(edx); /* 0x40009805: mov esi, dword ptr [edx] */
  10952     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009807: cmp esi, dword ptr [edi + 8] */
  10953     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10954     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10955     _flag_k = FK_CMP;
  10956     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000980F; /* 0x4000980A: je 0x4000980f */
  10957 L_4000980C:
  10958     MEM32(esi + 0x4) = ecx; /* 0x4000980C: mov dword ptr [esi + 4], ecx */
  10959 L_4000980F:
  10960     esi = MEM32(ecx + 0x4); /* 0x4000980F: mov esi, dword ptr [ecx + 4] */
  10961     MEM32(edx + 0x4) = esi; /* 0x40009812: mov dword ptr [edx + 4], esi */
  10962     esi = MEM32(edi + 0x4); /* 0x40009815: mov esi, dword ptr [edi + 4] */
  10963     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009818: cmp ecx, dword ptr [esi + 4] */
  10964     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10966     _flag_k = FK_CMP;
  10967     if (CMP_NE(_flag_a, _flag_b)) goto L_40009822; /* 0x4000981B: jne 0x40009822 */
  10968 L_4000981D:
  10969     MEM32(esi + 0x4) = edx; /* 0x4000981D: mov dword ptr [esi + 4], edx */
  10970     goto L_40009830; /* 0x40009820: jmp 0x40009830 */
  10971 L_40009822:
  10972     esi = MEM32(ecx + 0x4); /* 0x40009822: mov esi, dword ptr [ecx + 4] */
  10973     /* cmp ecx, MEM32(esi) */ /* 0x40009825: cmp ecx, dword ptr [esi] */
  10974     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10976     _flag_k = FK_CMP;
  10977     if (CMP_NE(_flag_a, _flag_b)) goto L_4000982D; /* 0x40009827: jne 0x4000982d */
  10978 L_40009829:
  10979     MEM32(esi) = edx; /* 0x40009829: mov dword ptr [esi], edx */
  10980     goto L_40009830; /* 0x4000982B: jmp 0x40009830 */
  10981 L_4000982D:
  10982     MEM32(esi + 0x8) = edx; /* 0x4000982D: mov dword ptr [esi + 8], edx */
  10983 L_40009830:
  10984     MEM32(edx) = ecx; /* 0x40009830: mov dword ptr [edx], ecx */
  10985     MEM32(ecx + 0x4) = edx; /* 0x40009832: mov dword ptr [ecx + 4], edx */
  10986     edx = MEM32(eax + 0x4); /* 0x40009835: mov edx, dword ptr [eax + 4] */
  10987     ecx = MEM32(edx + 0x8); /* 0x40009838: mov ecx, dword ptr [edx + 8] */
  10988 L_4000983B:
  10989     edx = MEM32(ecx); /* 0x4000983B: mov edx, dword ptr [ecx] */
  10990     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x4000983D: cmp byte ptr [edx + 0x14], bl */
  10991     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10993     _flag_k = FK_NARROW(FK_CMP, 24);
  10994     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x40009840: jne 0x400098d6 */
  10995 L_40009846:
  10996     edx = MEM32(ecx + 0x8); /* 0x40009846: mov edx, dword ptr [ecx + 8] */
  10997     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009849: cmp byte ptr [edx + 0x14], bl */
  10998     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10999     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11000     _flag_k = FK_NARROW(FK_CMP, 24);
  11001     if (CMP_NE(_flag_a, _flag_b)) goto L_400098D6; /* 0x4000984C: jne 0x400098d6 */
  11002 L_40009852:
  11003     goto L_400098BE; /* 0x40009852: jmp 0x400098be */
  11004 L_40009854:
  11005     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x40009854: mov dl, byte ptr [ecx + 0x14] */
  11006     /* test LO8(edx), LO8(edx) */ /* 0x40009857: test dl, dl */
  11007     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  11008     _cf = 0;
  11009     _flag_k = FK_NARROW(FK_TEST, 24);
  11010     if (TEST_NZ(_flag_a, _flag_b)) goto L_400098A7; /* 0x40009859: jne 0x400098a7 */
  11011 L_4000985B:
  11012     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000985B: mov byte ptr [ecx + 0x14], bl */
  11013     ecx = MEM32(eax + 0x4); /* 0x4000985E: mov ecx, dword ptr [eax + 4] */
  11014     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009861: mov byte ptr [ecx + 0x14], 0 */
  11015     ecx = MEM32(eax + 0x4); /* 0x40009865: mov ecx, dword ptr [eax + 4] */
  11016     edx = MEM32(ecx); /* 0x40009868: mov edx, dword ptr [ecx] */
  11017     esi = MEM32(edx + 0x8); /* 0x4000986A: mov esi, dword ptr [edx + 8] */
  11018     MEM32(ecx) = esi; /* 0x4000986D: mov dword ptr [ecx], esi */
  11019     esi = MEM32(edx + 0x8); /* 0x4000986F: mov esi, dword ptr [edx + 8] */
  11020     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009872: cmp esi, dword ptr [edi + 8] */
  11021     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11023     _flag_k = FK_CMP;
  11024     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000987A; /* 0x40009875: je 0x4000987a */
  11025 L_40009877:
  11026     MEM32(esi + 0x4) = ecx; /* 0x40009877: mov dword ptr [esi + 4], ecx */
  11027 L_4000987A:
  11028     esi = MEM32(ecx + 0x4); /* 0x4000987A: mov esi, dword ptr [ecx + 4] */
  11029     MEM32(edx + 0x4) = esi; /* 0x4000987D: mov dword ptr [edx + 4], esi */
  11030     esi = MEM32(edi + 0x4); /* 0x40009880: mov esi, dword ptr [edi + 4] */
  11031     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009883: cmp ecx, dword ptr [esi + 4] */
  11032     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11033     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11034     _flag_k = FK_CMP;
  11035     if (CMP_NE(_flag_a, _flag_b)) goto L_4000988D; /* 0x40009886: jne 0x4000988d */
  11036 L_40009888:
  11037     MEM32(esi + 0x4) = edx; /* 0x40009888: mov dword ptr [esi + 4], edx */
  11038     goto L_4000989C; /* 0x4000988B: jmp 0x4000989c */
  11039 L_4000988D:
  11040     esi = MEM32(ecx + 0x4); /* 0x4000988D: mov esi, dword ptr [ecx + 4] */
  11041     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009890: cmp ecx, dword ptr [esi + 8] */
  11042     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11044     _flag_k = FK_CMP;
  11045     if (CMP_NE(_flag_a, _flag_b)) goto L_4000989A; /* 0x40009893: jne 0x4000989a */
  11046 L_40009895:
  11047     MEM32(esi + 0x8) = edx; /* 0x40009895: mov dword ptr [esi + 8], edx */
  11048     goto L_4000989C; /* 0x40009898: jmp 0x4000989c */
  11049 L_4000989A:
  11050     MEM32(esi) = edx; /* 0x4000989A: mov dword ptr [esi], edx */
  11051 L_4000989C:
  11052     MEM32(edx + 0x8) = ecx; /* 0x4000989C: mov dword ptr [edx + 8], ecx */
  11053     MEM32(ecx + 0x4) = edx; /* 0x4000989F: mov dword ptr [ecx + 4], edx */
  11054     edx = MEM32(eax + 0x4); /* 0x400098A2: mov edx, dword ptr [eax + 4] */
  11055     ecx = MEM32(edx); /* 0x400098A5: mov ecx, dword ptr [edx] */
  11056 L_400098A7:
  11057     edx = MEM32(ecx + 0x8); /* 0x400098A7: mov edx, dword ptr [ecx + 8] */
  11058     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098AA: cmp byte ptr [edx + 0x14], bl */
  11059     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11061     _flag_k = FK_NARROW(FK_CMP, 24);
  11062     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098AD: jne 0x40009983 */
  11063 L_400098B3:
  11064     edx = MEM32(ecx); /* 0x400098B3: mov edx, dword ptr [ecx] */
  11065     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098B5: cmp byte ptr [edx + 0x14], bl */
  11066     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11068     _flag_k = FK_NARROW(FK_CMP, 24);
  11069     if (CMP_NE(_flag_a, _flag_b)) goto L_40009983; /* 0x400098B8: jne 0x40009983 */
  11070 L_400098BE:
  11071     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098BE: mov byte ptr [ecx + 0x14], 0 */
  11072     ecx = MEM32(edi + 0x4); /* 0x400098C2: mov ecx, dword ptr [edi + 4] */
  11073     eax = MEM32(eax + 0x4); /* 0x400098C5: mov eax, dword ptr [eax + 4] */
  11074     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x400098C8: cmp eax, dword ptr [ecx + 4] */
  11075     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  11076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11077     _flag_k = FK_CMP;
  11078     RECOMP_BACKEDGE();
  11079     if (CMP_NE(_flag_a, _flag_b)) goto L_400097D4; /* 0x400098CB: jne 0x400097d4 */
  11080 L_400098D1:
  11081     goto L_40009A22; /* 0x400098D1: jmp 0x40009a22 */
  11082 L_400098D6:
  11083     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
  11084     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
  11085     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11087     _flag_k = FK_NARROW(FK_CMP, 24);
  11088     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
  11089 L_400098DE:
  11090     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
  11091     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
  11092     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
  11093     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
  11094     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
  11095     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
  11096     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
  11097     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
  11098     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11099     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11100     _flag_k = FK_CMP;
  11101     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
  11102 L_400098F6:
  11103     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
  11104 L_400098F9:
  11105     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
  11106     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
  11107     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
  11108     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
  11109     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11110     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11111     _flag_k = FK_CMP;
  11112     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
  11113 L_40009907:
  11114     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
  11115     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
  11116 L_4000990C:
  11117     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
  11118     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
  11119     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11120     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11121     _flag_k = FK_CMP;
  11122     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
  11123 L_40009914:
  11124     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
  11125     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
  11126 L_40009919:
  11127     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
  11128 L_4000991B:
  11129     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
  11130     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
  11131     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
  11132     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
  11133 L_40009927:
  11134     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
  11135     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
  11136     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
  11137     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
  11138     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
  11139     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
  11140     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
  11141     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
  11142     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
  11143     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
  11144     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
  11145     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
  11146     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
  11147     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11149     _flag_k = FK_CMP;
  11150     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
  11151 L_4000994E:
  11152     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
  11153 L_40009951:
  11154     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
  11155     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
  11156     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
  11157     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
  11158     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11160     _flag_k = FK_CMP;
  11161     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
  11162 L_4000995F:
  11163     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
  11164     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
  11165     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
  11166 L_40009969:
  11167     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
  11168     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
  11169     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  11170     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11171     _flag_k = FK_CMP;
  11172     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
  11173 L_40009970:
  11174     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
  11175     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
  11176     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
  11177 L_40009979:
  11178     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
  11179     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
  11180     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
  11181 L_40009983:
  11182     edx = MEM32(ecx); /* 0x40009983: mov edx, dword ptr [ecx] */
  11183     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x40009985: cmp byte ptr [edx + 0x14], bl */
  11184     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11186     _flag_k = FK_NARROW(FK_CMP, 24);
  11187     if (CMP_NE(_flag_a, _flag_b)) goto L_400099D1; /* 0x40009988: jne 0x400099d1 */
  11188 L_4000998A:
  11189     edx = MEM32(ecx + 0x8); /* 0x4000998A: mov edx, dword ptr [ecx + 8] */
  11190     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x4000998D: mov byte ptr [edx + 0x14], bl */
  11191     edx = MEM32(ecx + 0x8); /* 0x40009990: mov edx, dword ptr [ecx + 8] */
  11192     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x40009993: mov byte ptr [ecx + 0x14], 0 */
  11193     esi = MEM32(edx); /* 0x40009997: mov esi, dword ptr [edx] */
  11194     MEM32(ecx + 0x8) = esi; /* 0x40009999: mov dword ptr [ecx + 8], esi */
  11195     esi = MEM32(edx); /* 0x4000999C: mov esi, dword ptr [edx] */
  11196     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4000999E: cmp esi, dword ptr [edi + 8] */
  11197     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11199     _flag_k = FK_CMP;
  11200     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099A6; /* 0x400099A1: je 0x400099a6 */
  11201 L_400099A3:
  11202     MEM32(esi + 0x4) = ecx; /* 0x400099A3: mov dword ptr [esi + 4], ecx */
  11203 L_400099A6:
  11204     esi = MEM32(ecx + 0x4); /* 0x400099A6: mov esi, dword ptr [ecx + 4] */
  11205     MEM32(edx + 0x4) = esi; /* 0x400099A9: mov dword ptr [edx + 4], esi */
  11206     esi = MEM32(edi + 0x4); /* 0x400099AC: mov esi, dword ptr [edi + 4] */
  11207     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x400099AF: cmp ecx, dword ptr [esi + 4] */
  11208     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11210     _flag_k = FK_CMP;
  11211     if (CMP_NE(_flag_a, _flag_b)) goto L_400099B9; /* 0x400099B2: jne 0x400099b9 */
  11212 L_400099B4:
  11213     MEM32(esi + 0x4) = edx; /* 0x400099B4: mov dword ptr [esi + 4], edx */
  11214     goto L_400099C7; /* 0x400099B7: jmp 0x400099c7 */
  11215 L_400099B9:
  11216     esi = MEM32(ecx + 0x4); /* 0x400099B9: mov esi, dword ptr [ecx + 4] */
  11217     /* cmp ecx, MEM32(esi) */ /* 0x400099BC: cmp ecx, dword ptr [esi] */
  11218     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  11219     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11220     _flag_k = FK_CMP;
  11221     if (CMP_NE(_flag_a, _flag_b)) goto L_400099C4; /* 0x400099BE: jne 0x400099c4 */
  11222 L_400099C0:
  11223     MEM32(esi) = edx; /* 0x400099C0: mov dword ptr [esi], edx */
  11224     goto L_400099C7; /* 0x400099C2: jmp 0x400099c7 */
  11225 L_400099C4:
  11226     MEM32(esi + 0x8) = edx; /* 0x400099C4: mov dword ptr [esi + 8], edx */
  11227 L_400099C7:
  11228     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
  11229     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
  11230     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
  11231     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
  11232 L_400099D1:
  11233     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
  11234     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
  11235     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
  11236     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
  11237     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
  11238     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
  11239     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
  11240     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
  11241     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
  11242     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
  11243     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
  11244     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
  11245     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
  11246     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11248     _flag_k = FK_CMP;
  11249     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
  11250 L_400099F7:
  11251     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
  11252 L_400099FA:
  11253     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
  11254     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
  11255     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
  11256     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
  11257     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11258     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11259     _flag_k = FK_CMP;
  11260     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
  11261 L_40009A08:
  11262     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
  11263     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
  11264 L_40009A0D:
  11265     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
  11266     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
  11267     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11269     _flag_k = FK_CMP;
  11270     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
  11271 L_40009A15:
  11272     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
  11273     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
  11274 L_40009A1A:
  11275     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
  11276 L_40009A1C:
  11277     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
  11278 L_40009A1F:
  11279     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
  11280 L_40009A22:
  11281     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
  11282     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
  11283     PUSH32(esp, edx); /* 0x40009A28: push edx */
  11284     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
  11285     RECOMP_FLAGS_IN();
  11286     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
  11287     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
  11288     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11289     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11290     esp = esp + 4; /* 0x40009A34: add esp, 4 */
  11291     _flag_k = FK_ADD;
  11292     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11293     eax = eax - 1; /* 0x40009A37: dec eax */
  11294     _flag_k = FK_DEC;
  11295     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
  11296     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
  11297     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
  11298     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
  11299     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
  11300     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
  11301     esp = ebp; /* 0x40009A43: mov esp, ebp */
  11302     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
  11303     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
  11304     RECOMP_REGS_OUT();
  11305 }
  11306 
  11307 void sub_400098D6(void) {
  11308     int _fpu_cmp = 0;
  11309     uint32_t _cf = 0;
  11310     int _df = 1;
  11311     uint32_t _flag_k = FK_NONE;
  11312     uint32_t _flag_a = 0, _flag_b = 0;
  11313     uint32_t _itail_tgt = 0;
  11314     RECOMP_REGS_LOCALS
  11315     RECOMP_ENTER(0x400098D6u);
  11316 
  11317 L_400098D6:
  11318     edx = MEM32(ecx + 0x8); /* 0x400098D6: mov edx, dword ptr [ecx + 8] */
  11319     /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x400098D9: cmp byte ptr [edx + 0x14], bl */
  11320     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11322     _flag_k = FK_NARROW(FK_CMP, 24);
  11323     if (CMP_NE(_flag_a, _flag_b)) goto L_40009927; /* 0x400098DC: jne 0x40009927 */
  11324 L_400098DE:
  11325     edx = MEM32(ecx); /* 0x400098DE: mov edx, dword ptr [ecx] */
  11326     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400098E0: mov byte ptr [edx + 0x14], bl */
  11327     edx = MEM32(ecx); /* 0x400098E3: mov edx, dword ptr [ecx] */
  11328     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x400098E5: mov byte ptr [ecx + 0x14], 0 */
  11329     esi = MEM32(edx + 0x8); /* 0x400098E9: mov esi, dword ptr [edx + 8] */
  11330     MEM32(ecx) = esi; /* 0x400098EC: mov dword ptr [ecx], esi */
  11331     esi = MEM32(edx + 0x8); /* 0x400098EE: mov esi, dword ptr [edx + 8] */
  11332     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400098F1: cmp esi, dword ptr [edi + 8] */
  11333     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11335     _flag_k = FK_CMP;
  11336     if (CMP_EQ(_flag_a, _flag_b)) goto L_400098F9; /* 0x400098F4: je 0x400098f9 */
  11337 L_400098F6:
  11338     MEM32(esi + 0x4) = ecx; /* 0x400098F6: mov dword ptr [esi + 4], ecx */
  11339 L_400098F9:
  11340     esi = MEM32(ecx + 0x4); /* 0x400098F9: mov esi, dword ptr [ecx + 4] */
  11341     MEM32(edx + 0x4) = esi; /* 0x400098FC: mov dword ptr [edx + 4], esi */
  11342     esi = MEM32(edi + 0x4); /* 0x400098FF: mov esi, dword ptr [edi + 4] */
  11343     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009902: cmp ecx, dword ptr [esi + 4] */
  11344     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11346     _flag_k = FK_CMP;
  11347     if (CMP_NE(_flag_a, _flag_b)) goto L_4000990C; /* 0x40009905: jne 0x4000990c */
  11348 L_40009907:
  11349     MEM32(esi + 0x4) = edx; /* 0x40009907: mov dword ptr [esi + 4], edx */
  11350     goto L_4000991B; /* 0x4000990A: jmp 0x4000991b */
  11351 L_4000990C:
  11352     esi = MEM32(ecx + 0x4); /* 0x4000990C: mov esi, dword ptr [ecx + 4] */
  11353     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4000990F: cmp ecx, dword ptr [esi + 8] */
  11354     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11356     _flag_k = FK_CMP;
  11357     if (CMP_NE(_flag_a, _flag_b)) goto L_40009919; /* 0x40009912: jne 0x40009919 */
  11358 L_40009914:
  11359     MEM32(esi + 0x8) = edx; /* 0x40009914: mov dword ptr [esi + 8], edx */
  11360     goto L_4000991B; /* 0x40009917: jmp 0x4000991b */
  11361 L_40009919:
  11362     MEM32(esi) = edx; /* 0x40009919: mov dword ptr [esi], edx */
  11363 L_4000991B:
  11364     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
  11365     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
  11366     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
  11367     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
  11368 L_40009927:
  11369     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
  11370     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
  11371     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
  11372     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
  11373     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
  11374     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
  11375     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
  11376     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
  11377     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
  11378     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
  11379     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
  11380     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
  11381     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
  11382     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11384     _flag_k = FK_CMP;
  11385     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
  11386 L_4000994E:
  11387     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
  11388 L_40009951:
  11389     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
  11390     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
  11391     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
  11392     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
  11393     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11394     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11395     _flag_k = FK_CMP;
  11396     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
  11397 L_4000995F:
  11398     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
  11399     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
  11400     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
  11401 L_40009969:
  11402     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
  11403     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
  11404     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  11405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11406     _flag_k = FK_CMP;
  11407     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
  11408 L_40009970:
  11409     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
  11410     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
  11411     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
  11412 L_40009979:
  11413     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
  11414     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
  11415     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
  11416 L_40009A1F:
  11417     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
  11418     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
  11419     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
  11420     PUSH32(esp, edx); /* 0x40009A28: push edx */
  11421     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
  11422     RECOMP_FLAGS_IN();
  11423     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
  11424     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
  11425     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11426     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11427     esp = esp + 4; /* 0x40009A34: add esp, 4 */
  11428     _flag_k = FK_ADD;
  11429     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11430     eax = eax - 1; /* 0x40009A37: dec eax */
  11431     _flag_k = FK_DEC;
  11432     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
  11433     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
  11434     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
  11435     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
  11436     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
  11437     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
  11438     esp = ebp; /* 0x40009A43: mov esp, ebp */
  11439     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
  11440     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
  11441     RECOMP_REGS_OUT();
  11442 }
  11443 
  11444 void sub_4000991B(void) {
  11445     int _fpu_cmp = 0;
  11446     uint32_t _cf = 0;
  11447     int _df = 1;
  11448     uint32_t _flag_k = FK_NONE;
  11449     uint32_t _flag_a = 0, _flag_b = 0;
  11450     uint32_t _itail_tgt = 0;
  11451     RECOMP_REGS_LOCALS
  11452     RECOMP_ENTER(0x4000991Bu);
  11453 
  11454 L_4000991B:
  11455     MEM32(edx + 0x8) = ecx; /* 0x4000991B: mov dword ptr [edx + 8], ecx */
  11456     MEM32(ecx + 0x4) = edx; /* 0x4000991E: mov dword ptr [ecx + 4], edx */
  11457     ecx = MEM32(eax + 0x4); /* 0x40009921: mov ecx, dword ptr [eax + 4] */
  11458     ecx = MEM32(ecx + 0x8); /* 0x40009924: mov ecx, dword ptr [ecx + 8] */
  11459     edx = MEM32(eax + 0x4); /* 0x40009927: mov edx, dword ptr [eax + 4] */
  11460     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x4000992A: mov dl, byte ptr [edx + 0x14] */
  11461     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x4000992D: mov byte ptr [ecx + 0x14], dl */
  11462     edx = MEM32(eax + 0x4); /* 0x40009930: mov edx, dword ptr [eax + 4] */
  11463     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009933: mov byte ptr [edx + 0x14], bl */
  11464     ecx = MEM32(ecx + 0x8); /* 0x40009936: mov ecx, dword ptr [ecx + 8] */
  11465     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009939: mov byte ptr [ecx + 0x14], bl */
  11466     ecx = MEM32(eax + 0x4); /* 0x4000993C: mov ecx, dword ptr [eax + 4] */
  11467     edx = MEM32(ecx + 0x8); /* 0x4000993F: mov edx, dword ptr [ecx + 8] */
  11468     esi = MEM32(edx); /* 0x40009942: mov esi, dword ptr [edx] */
  11469     MEM32(ecx + 0x8) = esi; /* 0x40009944: mov dword ptr [ecx + 8], esi */
  11470     esi = MEM32(edx); /* 0x40009947: mov esi, dword ptr [edx] */
  11471     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009949: cmp esi, dword ptr [edi + 8] */
  11472     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11473     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11474     _flag_k = FK_CMP;
  11475     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009951; /* 0x4000994C: je 0x40009951 */
  11476 L_4000994E:
  11477     MEM32(esi + 0x4) = ecx; /* 0x4000994E: mov dword ptr [esi + 4], ecx */
  11478 L_40009951:
  11479     esi = MEM32(ecx + 0x4); /* 0x40009951: mov esi, dword ptr [ecx + 4] */
  11480     MEM32(edx + 0x4) = esi; /* 0x40009954: mov dword ptr [edx + 4], esi */
  11481     esi = MEM32(edi + 0x4); /* 0x40009957: mov esi, dword ptr [edi + 4] */
  11482     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x4000995A: cmp ecx, dword ptr [esi + 4] */
  11483     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11485     _flag_k = FK_CMP;
  11486     if (CMP_NE(_flag_a, _flag_b)) goto L_40009969; /* 0x4000995D: jne 0x40009969 */
  11487 L_4000995F:
  11488     MEM32(esi + 0x4) = edx; /* 0x4000995F: mov dword ptr [esi + 4], edx */
  11489     MEM32(edx) = ecx; /* 0x40009962: mov dword ptr [edx], ecx */
  11490     goto L_40009A1F; /* 0x40009964: jmp 0x40009a1f */
  11491 L_40009969:
  11492     esi = MEM32(ecx + 0x4); /* 0x40009969: mov esi, dword ptr [ecx + 4] */
  11493     /* cmp ecx, MEM32(esi) */ /* 0x4000996C: cmp ecx, dword ptr [esi] */
  11494     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  11495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11496     _flag_k = FK_CMP;
  11497     if (CMP_NE(_flag_a, _flag_b)) goto L_40009979; /* 0x4000996E: jne 0x40009979 */
  11498 L_40009970:
  11499     MEM32(esi) = edx; /* 0x40009970: mov dword ptr [esi], edx */
  11500     MEM32(edx) = ecx; /* 0x40009972: mov dword ptr [edx], ecx */
  11501     goto L_40009A1F; /* 0x40009974: jmp 0x40009a1f */
  11502 L_40009979:
  11503     MEM32(esi + 0x8) = edx; /* 0x40009979: mov dword ptr [esi + 8], edx */
  11504     MEM32(edx) = ecx; /* 0x4000997C: mov dword ptr [edx], ecx */
  11505     goto L_40009A1F; /* 0x4000997E: jmp 0x40009a1f */
  11506 L_40009A1F:
  11507     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
  11508     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
  11509     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
  11510     PUSH32(esp, edx); /* 0x40009A28: push edx */
  11511     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
  11512     RECOMP_FLAGS_IN();
  11513     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
  11514     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
  11515     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11516     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11517     esp = esp + 4; /* 0x40009A34: add esp, 4 */
  11518     _flag_k = FK_ADD;
  11519     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11520     eax = eax - 1; /* 0x40009A37: dec eax */
  11521     _flag_k = FK_DEC;
  11522     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
  11523     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
  11524     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
  11525     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
  11526     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
  11527     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
  11528     esp = ebp; /* 0x40009A43: mov esp, ebp */
  11529     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
  11530     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
  11531     RECOMP_REGS_OUT();
  11532 }
  11533 
  11534 void sub_400099C7(void) {
  11535     int _fpu_cmp = 0;
  11536     uint32_t _cf = 0;
  11537     int _df = 1;
  11538     uint32_t _flag_k = FK_NONE;
  11539     uint32_t _flag_a = 0, _flag_b = 0;
  11540     uint32_t _itail_tgt = 0;
  11541     RECOMP_REGS_LOCALS
  11542     RECOMP_ENTER(0x400099C7u);
  11543 
  11544 L_400099C7:
  11545     MEM32(edx) = ecx; /* 0x400099C7: mov dword ptr [edx], ecx */
  11546     MEM32(ecx + 0x4) = edx; /* 0x400099C9: mov dword ptr [ecx + 4], edx */
  11547     ecx = MEM32(eax + 0x4); /* 0x400099CC: mov ecx, dword ptr [eax + 4] */
  11548     ecx = MEM32(ecx); /* 0x400099CF: mov ecx, dword ptr [ecx] */
  11549     edx = MEM32(eax + 0x4); /* 0x400099D1: mov edx, dword ptr [eax + 4] */
  11550     SET_LO8(edx, MEM8(edx + 0x14)); /* 0x400099D4: mov dl, byte ptr [edx + 0x14] */
  11551     MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x400099D7: mov byte ptr [ecx + 0x14], dl */
  11552     edx = MEM32(eax + 0x4); /* 0x400099DA: mov edx, dword ptr [eax + 4] */
  11553     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099DD: mov byte ptr [edx + 0x14], bl */
  11554     ecx = MEM32(ecx); /* 0x400099E0: mov ecx, dword ptr [ecx] */
  11555     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x400099E2: mov byte ptr [ecx + 0x14], bl */
  11556     ecx = MEM32(eax + 0x4); /* 0x400099E5: mov ecx, dword ptr [eax + 4] */
  11557     edx = MEM32(ecx); /* 0x400099E8: mov edx, dword ptr [ecx] */
  11558     esi = MEM32(edx + 0x8); /* 0x400099EA: mov esi, dword ptr [edx + 8] */
  11559     MEM32(ecx) = esi; /* 0x400099ED: mov dword ptr [ecx], esi */
  11560     esi = MEM32(edx + 0x8); /* 0x400099EF: mov esi, dword ptr [edx + 8] */
  11561     /* cmp esi, MEM32(edi + 0x8) */ /* 0x400099F2: cmp esi, dword ptr [edi + 8] */
  11562     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11564     _flag_k = FK_CMP;
  11565     if (CMP_EQ(_flag_a, _flag_b)) goto L_400099FA; /* 0x400099F5: je 0x400099fa */
  11566 L_400099F7:
  11567     MEM32(esi + 0x4) = ecx; /* 0x400099F7: mov dword ptr [esi + 4], ecx */
  11568 L_400099FA:
  11569     esi = MEM32(ecx + 0x4); /* 0x400099FA: mov esi, dword ptr [ecx + 4] */
  11570     MEM32(edx + 0x4) = esi; /* 0x400099FD: mov dword ptr [edx + 4], esi */
  11571     esi = MEM32(edi + 0x4); /* 0x40009A00: mov esi, dword ptr [edi + 4] */
  11572     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009A03: cmp ecx, dword ptr [esi + 4] */
  11573     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11575     _flag_k = FK_CMP;
  11576     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A0D; /* 0x40009A06: jne 0x40009a0d */
  11577 L_40009A08:
  11578     MEM32(esi + 0x4) = edx; /* 0x40009A08: mov dword ptr [esi + 4], edx */
  11579     goto L_40009A1C; /* 0x40009A0B: jmp 0x40009a1c */
  11580 L_40009A0D:
  11581     esi = MEM32(ecx + 0x4); /* 0x40009A0D: mov esi, dword ptr [ecx + 4] */
  11582     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009A10: cmp ecx, dword ptr [esi + 8] */
  11583     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11585     _flag_k = FK_CMP;
  11586     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A1A; /* 0x40009A13: jne 0x40009a1a */
  11587 L_40009A15:
  11588     MEM32(esi + 0x8) = edx; /* 0x40009A15: mov dword ptr [esi + 8], edx */
  11589     goto L_40009A1C; /* 0x40009A18: jmp 0x40009a1c */
  11590 L_40009A1A:
  11591     MEM32(esi) = edx; /* 0x40009A1A: mov dword ptr [esi], edx */
  11592 L_40009A1C:
  11593     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
  11594     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
  11595     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
  11596     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
  11597     PUSH32(esp, edx); /* 0x40009A28: push edx */
  11598     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
  11599     RECOMP_FLAGS_IN();
  11600     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
  11601     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
  11602     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11603     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11604     esp = esp + 4; /* 0x40009A34: add esp, 4 */
  11605     _flag_k = FK_ADD;
  11606     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11607     eax = eax - 1; /* 0x40009A37: dec eax */
  11608     _flag_k = FK_DEC;
  11609     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
  11610     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
  11611     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
  11612     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
  11613     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
  11614     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
  11615     esp = ebp; /* 0x40009A43: mov esp, ebp */
  11616     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
  11617     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
  11618     RECOMP_REGS_OUT();
  11619 }
  11620 
  11621 void sub_40009A1C(void) {
  11622     int _fpu_cmp = 0;
  11623     uint32_t _cf = 0;
  11624     int _df = 1;
  11625     uint32_t _flag_k = FK_NONE;
  11626     uint32_t _flag_a = 0, _flag_b = 0;
  11627     uint32_t _itail_tgt = 0;
  11628     RECOMP_REGS_LOCALS
  11629     RECOMP_ENTER(0x40009A1Cu);
  11630 
  11631 L_40009A1C:
  11632     MEM32(edx + 0x8) = ecx; /* 0x40009A1C: mov dword ptr [edx + 8], ecx */
  11633     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
  11634     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
  11635     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
  11636     PUSH32(esp, edx); /* 0x40009A28: push edx */
  11637     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
  11638     RECOMP_FLAGS_IN();
  11639     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
  11640     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
  11641     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11643     esp = esp + 4; /* 0x40009A34: add esp, 4 */
  11644     _flag_k = FK_ADD;
  11645     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11646     eax = eax - 1; /* 0x40009A37: dec eax */
  11647     _flag_k = FK_DEC;
  11648     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
  11649     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
  11650     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
  11651     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
  11652     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
  11653     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
  11654     esp = ebp; /* 0x40009A43: mov esp, ebp */
  11655     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
  11656     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
  11657     RECOMP_REGS_OUT();
  11658 }
  11659 
  11660 void sub_40009A1F(void) {
  11661     int _fpu_cmp = 0;
  11662     uint32_t _cf = 0;
  11663     int _df = 1;
  11664     uint32_t _flag_k = FK_NONE;
  11665     uint32_t _flag_a = 0, _flag_b = 0;
  11666     uint32_t _itail_tgt = 0;
  11667     RECOMP_REGS_LOCALS
  11668     RECOMP_ENTER(0x40009A1Fu);
  11669 
  11670 L_40009A1F:
  11671     MEM32(ecx + 0x4) = edx; /* 0x40009A1F: mov dword ptr [ecx + 4], edx */
  11672     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
  11673     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
  11674     PUSH32(esp, edx); /* 0x40009A28: push edx */
  11675     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
  11676     RECOMP_FLAGS_IN();
  11677     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
  11678     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
  11679     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11680     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11681     esp = esp + 4; /* 0x40009A34: add esp, 4 */
  11682     _flag_k = FK_ADD;
  11683     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11684     eax = eax - 1; /* 0x40009A37: dec eax */
  11685     _flag_k = FK_DEC;
  11686     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
  11687     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
  11688     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
  11689     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
  11690     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
  11691     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
  11692     esp = ebp; /* 0x40009A43: mov esp, ebp */
  11693     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
  11694     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
  11695     RECOMP_REGS_OUT();
  11696 }
  11697 
  11698 void sub_40009A22(void) {
  11699     int _fpu_cmp = 0;
  11700     uint32_t _cf = 0;
  11701     int _df = 1;
  11702     uint32_t _flag_k = FK_NONE;
  11703     uint32_t _flag_a = 0, _flag_b = 0;
  11704     uint32_t _itail_tgt = 0;
  11705     RECOMP_REGS_LOCALS
  11706     RECOMP_ENTER(0x40009A22u);
  11707 
  11708 L_40009A22:
  11709     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x40009A22: mov byte ptr [eax + 0x14], bl */
  11710     edx = MEM32(ebp + (-0x4)); /* 0x40009A25: mov edx, dword ptr [ebp - 4] */
  11711     PUSH32(esp, edx); /* 0x40009A28: push edx */
  11712     RECOMP_ICALL(0x400146F2u); /* 0x40009A29: call 0x400146f2 */ /* not lifted */
  11713     RECOMP_FLAGS_IN();
  11714     eax = MEM32(edi + 0x10); /* 0x40009A2E: mov eax, dword ptr [edi + 0x10] */
  11715     ecx = MEM32(ebp + 0xC); /* 0x40009A31: mov ecx, dword ptr [ebp + 0xc] */
  11716     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11717     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11718     esp = esp + 4; /* 0x40009A34: add esp, 4 */
  11719     _flag_k = FK_ADD;
  11720     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11721     eax = eax - 1; /* 0x40009A37: dec eax */
  11722     _flag_k = FK_DEC;
  11723     MEM32(edi + 0x10) = eax; /* 0x40009A38: mov dword ptr [edi + 0x10], eax */
  11724     eax = MEM32(ebp + 0x8); /* 0x40009A3B: mov eax, dword ptr [ebp + 8] */
  11725     edi = POP32_VAL(esp); /* 0x40009A3E: pop edi */
  11726     esi = POP32_VAL(esp); /* 0x40009A3F: pop esi */
  11727     MEM32(eax) = ecx; /* 0x40009A40: mov dword ptr [eax], ecx */
  11728     ebx = POP32_VAL(esp); /* 0x40009A42: pop ebx */
  11729     esp = ebp; /* 0x40009A43: mov esp, ebp */
  11730     ebp = POP32_VAL(esp); /* 0x40009A45: pop ebp */
  11731     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009A46: ret 8 */
  11732     RECOMP_REGS_OUT();
  11733 }
  11734 
  11735 void sub_40009A50(void) {
  11736     int _fpu_cmp = 0;
  11737     uint32_t _cf = 0;
  11738     int _df = 1;
  11739     uint32_t _flag_k = FK_NONE;
  11740     uint32_t _flag_a = 0, _flag_b = 0;
  11741     uint32_t _itail_tgt = 0;
  11742     RECOMP_REGS_LOCALS
  11743     RECOMP_ENTER(0x40009A50u);
  11744 
  11745 L_40009A50:
  11746     PUSH32(esp, ebp); /* 0x40009A50: push ebp */
  11747     ebp = esp; /* 0x40009A51: mov ebp, esp */
  11748     PUSH32(esp, ebx); /* 0x40009A53: push ebx */
  11749     PUSH32(esp, esi); /* 0x40009A54: push esi */
  11750     ebx = ecx; /* 0x40009A55: mov ebx, ecx */
  11751     eax = MEM32(ebx + 0x8); /* 0x40009A57: mov eax, dword ptr [ebx + 8] */
  11752     PUSH32(esp, edi); /* 0x40009A5A: push edi */
  11753     edi = MEM32(ebp + 0x8); /* 0x40009A5B: mov edi, dword ptr [ebp + 8] */
  11754     /* cmp edi, eax */ /* 0x40009A5E: cmp edi, eax */
  11755     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  11756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11757     _flag_k = FK_CMP;
  11758     esi = edi; /* 0x40009A60: mov esi, edi */
  11759     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009A83; /* 0x40009A62: je 0x40009a83 */
  11760 L_40009A64:
  11761     eax = MEM32(esi + 0x8); /* 0x40009A64: mov eax, dword ptr [esi + 8] */
  11762     PUSH32(esp, eax); /* 0x40009A67: push eax */
  11763     ecx = ebx; /* 0x40009A68: mov ecx, ebx */
  11764     RECOMP_ICALL(0x40009A50u); /* 0x40009A6A: call 0x40009a50 */ /* not lifted */
  11765     RECOMP_FLAGS_IN();
  11766     esi = MEM32(esi); /* 0x40009A6F: mov esi, dword ptr [esi] */
  11767     PUSH32(esp, edi); /* 0x40009A71: push edi */
  11768     RECOMP_ICALL(0x400146F2u); /* 0x40009A72: call 0x400146f2 */ /* not lifted */
  11769     RECOMP_FLAGS_IN();
  11770     eax = MEM32(ebx + 0x8); /* 0x40009A77: mov eax, dword ptr [ebx + 8] */
  11771     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11772     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11773     esp = esp + 4; /* 0x40009A7A: add esp, 4 */
  11774     _flag_k = FK_ADD;
  11775     /* cmp esi, eax */ /* 0x40009A7D: cmp esi, eax */
  11776     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  11777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11778     _flag_k = FK_CMP;
  11779     edi = esi; /* 0x40009A7F: mov edi, esi */
  11780     RECOMP_BACKEDGE();
  11781     if (CMP_NE(_flag_a, _flag_b)) goto L_40009A64; /* 0x40009A81: jne 0x40009a64 */
  11782 L_40009A83:
  11783     edi = POP32_VAL(esp); /* 0x40009A83: pop edi */
  11784     esi = POP32_VAL(esp); /* 0x40009A84: pop esi */
  11785     ebx = POP32_VAL(esp); /* 0x40009A85: pop ebx */
  11786     ebp = POP32_VAL(esp); /* 0x40009A86: pop ebp */
  11787     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40009A87: ret 4 */
  11788     RECOMP_REGS_OUT();
  11789 }
  11790 
  11791 void sub_40009A90(void) {
  11792     int _fpu_cmp = 0;
  11793     uint32_t _cf = 0;
  11794     int _df = 1;
  11795     uint32_t _flag_k = FK_NONE;
  11796     uint32_t _flag_a = 0, _flag_b = 0;
  11797     uint32_t _itail_tgt = 0;
  11798     RECOMP_REGS_LOCALS
  11799     RECOMP_ENTER(0x40009A90u);
  11800 
  11801 L_40009A90:
  11802     PUSH32(esp, ebp); /* 0x40009A90: push ebp */
  11803     ebp = esp; /* 0x40009A91: mov ebp, esp */
  11804     PUSH32(esp, 0x18u); /* 0x40009A93: push 0x18 */
  11805     RECOMP_ICALL(0x40014704u); /* 0x40009A95: call 0x40014704 */ /* not lifted */
  11806     RECOMP_FLAGS_IN();
  11807     ecx = MEM32(ebp + 0x8); /* 0x40009A9A: mov ecx, dword ptr [ebp + 8] */
  11808     SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x40009A9D: mov dl, byte ptr [ebp + 0xc] */
  11809     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11810     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11811     esp = esp + 4; /* 0x40009AA0: add esp, 4 */
  11812     _flag_k = FK_ADD;
  11813     MEM32(eax + 0x4) = ecx; /* 0x40009AA3: mov dword ptr [eax + 4], ecx */
  11814     MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x40009AA6: mov byte ptr [eax + 0x14], dl */
  11815     MEM8(eax + 0x15) = (uint8_t)(0); /* 0x40009AA9: mov byte ptr [eax + 0x15], 0 */
  11816     ebp = POP32_VAL(esp); /* 0x40009AAD: pop ebp */
  11817     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009AAE: ret 8 */
  11818     RECOMP_REGS_OUT();
  11819 }
  11820 
  11821 void sub_40009AC0(void) {
  11822     int _fpu_cmp = 0;
  11823     uint32_t _cf = 0;
  11824     int _df = 1;
  11825     uint32_t _flag_k = FK_NONE;
  11826     uint32_t _flag_a = 0, _flag_b = 0;
  11827     uint32_t _itail_tgt = 0;
  11828     RECOMP_REGS_LOCALS
  11829     RECOMP_ENTER(0x40009AC0u);
  11830 
  11831 L_40009AC0:
  11832     PUSH32(esp, ebp); /* 0x40009AC0: push ebp */
  11833     ebp = esp; /* 0x40009AC1: mov ebp, esp */
  11834     PUSH32(esp, ecx); /* 0x40009AC3: push ecx */
  11835     PUSH32(esp, ebx); /* 0x40009AC4: push ebx */
  11836     PUSH32(esp, esi); /* 0x40009AC5: push esi */
  11837     esi = MEM32(ebp + 0xC); /* 0x40009AC6: mov esi, dword ptr [ebp + 0xc] */
  11838     PUSH32(esp, edi); /* 0x40009AC9: push edi */
  11839     edi = ecx; /* 0x40009ACA: mov edi, ecx */
  11840     ecx = ebp + 0xC; /* 0x40009ACC: lea ecx, [ebp + 0xc] */
  11841     RECOMP_ICALL(0x40008540u); /* 0x40009ACF: call 0x40008540 */ /* not lifted */
  11842     RECOMP_FLAGS_IN();
  11843     edx = MEM32(esi); /* 0x40009AD4: mov edx, dword ptr [esi] */
  11844     eax = MEM32(edi + 0x8); /* 0x40009AD6: mov eax, dword ptr [edi + 8] */
  11845     /* cmp edx, eax */ /* 0x40009AD9: cmp edx, eax */
  11846     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  11847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11848     _flag_k = FK_CMP;
  11849     MEM32(ebp + (-0x4)) = esi; /* 0x40009ADB: mov dword ptr [ebp - 4], esi */
  11850     if (CMP_NE(_flag_a, _flag_b)) goto L_40009B00; /* 0x40009ADE: jne 0x40009b00 */
  11851 L_40009AE0:
  11852     eax = MEM32(esi + 0x8); /* 0x40009AE0: mov eax, dword ptr [esi + 8] */
  11853 L_40009AE3:
  11854     ecx = MEM32(ebp + (-0x4)); /* 0x40009AE3: mov ecx, dword ptr [ebp - 4] */
  11855     edx = MEM32(ecx + 0x4); /* 0x40009AE6: mov edx, dword ptr [ecx + 4] */
  11856     MEM32(eax + 0x4) = edx; /* 0x40009AE9: mov dword ptr [eax + 4], edx */
  11857     ecx = MEM32(edi + 0x4); /* 0x40009AEC: mov ecx, dword ptr [edi + 4] */
  11858     /* cmp MEM32(ecx + 0x4), esi */ /* 0x40009AEF: cmp dword ptr [ecx + 4], esi */
  11859     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi);
  11860     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11861     _flag_k = FK_CMP;
  11862     if (CMP_NE(_flag_a, _flag_b)) goto L_40009B83; /* 0x40009AF2: jne 0x40009b83 */
  11863 L_40009AF8:
  11864     MEM32(ecx + 0x4) = eax; /* 0x40009AF8: mov dword ptr [ecx + 4], eax */
  11865     goto L_40009B91; /* 0x40009AFB: jmp 0x40009b91 */
  11866 L_40009B00:
  11867     ecx = MEM32(esi + 0x8); /* 0x40009B00: mov ecx, dword ptr [esi + 8] */
  11868     /* cmp ecx, eax */ /* 0x40009B03: cmp ecx, eax */
  11869     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  11870     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11871     _flag_k = FK_CMP;
  11872     if (CMP_NE(_flag_a, _flag_b)) goto L_40009B0B; /* 0x40009B05: jne 0x40009b0b */
  11873 L_40009B07:
  11874     eax = edx; /* 0x40009B07: mov eax, edx */
  11875     RECOMP_BACKEDGE();
  11876     goto L_40009AE3; /* 0x40009B09: jmp 0x40009ae3 */
  11877 L_40009B0B:
  11878     eax = MEM32(ecx); /* 0x40009B0B: mov eax, dword ptr [ecx] */
  11879     SET_LO8(ebx, MEM8(eax + 0x35)); /* 0x40009B0D: mov bl, byte ptr [eax + 0x35] */
  11880     /* test LO8(ebx), LO8(ebx) */ /* 0x40009B10: test bl, bl */
  11881     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11882     _cf = 0;
  11883     _flag_k = FK_NARROW(FK_TEST, 24);
  11884     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009B1F; /* 0x40009B12: jne 0x40009b1f */
  11885 L_40009B14:
  11886     ecx = eax; /* 0x40009B14: mov ecx, eax */
  11887     eax = MEM32(ecx); /* 0x40009B16: mov eax, dword ptr [ecx] */
  11888     SET_LO8(ebx, MEM8(eax + 0x35)); /* 0x40009B18: mov bl, byte ptr [eax + 0x35] */
  11889     /* test LO8(ebx), LO8(ebx) */ /* 0x40009B1B: test bl, bl */
  11890     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11891     _cf = 0;
  11892     _flag_k = FK_NARROW(FK_TEST, 24);
  11893     RECOMP_BACKEDGE();
  11894     if (TEST_Z(_flag_a, _flag_b)) goto L_40009B14; /* 0x40009B1D: je 0x40009b14 */
  11895 L_40009B1F:
  11896     /* cmp ecx, esi */ /* 0x40009B1F: cmp ecx, esi */
  11897     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  11898     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11899     _flag_k = FK_CMP;
  11900     eax = MEM32(ecx + 0x8); /* 0x40009B21: mov eax, dword ptr [ecx + 8] */
  11901     MEM32(ebp + (-0x4)) = ecx; /* 0x40009B24: mov dword ptr [ebp - 4], ecx */
  11902     RECOMP_BACKEDGE();
  11903     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009AE3; /* 0x40009B27: je 0x40009ae3 */
  11904 L_40009B29:
  11905     MEM32(edx + 0x4) = ecx; /* 0x40009B29: mov dword ptr [edx + 4], ecx */
  11906     edx = MEM32(esi); /* 0x40009B2C: mov edx, dword ptr [esi] */
  11907     MEM32(ecx) = edx; /* 0x40009B2E: mov dword ptr [ecx], edx */
  11908     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009B30: cmp ecx, dword ptr [esi + 8] */
  11909     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11910     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11911     _flag_k = FK_CMP;
  11912     if (CMP_NE(_flag_a, _flag_b)) goto L_40009B3A; /* 0x40009B33: jne 0x40009b3a */
  11913 L_40009B35:
  11914     MEM32(eax + 0x4) = ecx; /* 0x40009B35: mov dword ptr [eax + 4], ecx */
  11915     goto L_40009B51; /* 0x40009B38: jmp 0x40009b51 */
  11916 L_40009B3A:
  11917     edx = MEM32(ecx + 0x4); /* 0x40009B3A: mov edx, dword ptr [ecx + 4] */
  11918     MEM32(eax + 0x4) = edx; /* 0x40009B3D: mov dword ptr [eax + 4], edx */
  11919     edx = MEM32(ecx + 0x4); /* 0x40009B40: mov edx, dword ptr [ecx + 4] */
  11920     MEM32(edx) = eax; /* 0x40009B43: mov dword ptr [edx], eax */
  11921     edx = MEM32(esi + 0x8); /* 0x40009B45: mov edx, dword ptr [esi + 8] */
  11922     MEM32(ecx + 0x8) = edx; /* 0x40009B48: mov dword ptr [ecx + 8], edx */
  11923     edx = MEM32(esi + 0x8); /* 0x40009B4B: mov edx, dword ptr [esi + 8] */
  11924     MEM32(edx + 0x4) = ecx; /* 0x40009B4E: mov dword ptr [edx + 4], ecx */
  11925 L_40009B51:
  11926     edx = MEM32(edi + 0x4); /* 0x40009B51: mov edx, dword ptr [edi + 4] */
  11927     /* cmp MEM32(edx + 0x4), esi */ /* 0x40009B54: cmp dword ptr [edx + 4], esi */
  11928     _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi);
  11929     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11930     _flag_k = FK_CMP;
  11931     if (CMP_NE(_flag_a, _flag_b)) goto L_40009B5E; /* 0x40009B57: jne 0x40009b5e */
  11932 L_40009B59:
  11933     MEM32(edx + 0x4) = ecx; /* 0x40009B59: mov dword ptr [edx + 4], ecx */
  11934     goto L_40009B6C; /* 0x40009B5C: jmp 0x40009b6c */
  11935 L_40009B5E:
  11936     edx = MEM32(esi + 0x4); /* 0x40009B5E: mov edx, dword ptr [esi + 4] */
  11937     /* cmp MEM32(edx), esi */ /* 0x40009B61: cmp dword ptr [edx], esi */
  11938     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi);
  11939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11940     _flag_k = FK_CMP;
  11941     if (CMP_NE(_flag_a, _flag_b)) goto L_40009B69; /* 0x40009B63: jne 0x40009b69 */
  11942 L_40009B65:
  11943     MEM32(edx) = ecx; /* 0x40009B65: mov dword ptr [edx], ecx */
  11944     goto L_40009B6C; /* 0x40009B67: jmp 0x40009b6c */
  11945 L_40009B69:
  11946     MEM32(edx + 0x8) = ecx; /* 0x40009B69: mov dword ptr [edx + 8], ecx */
  11947 L_40009B6C:
  11948     edx = MEM32(esi + 0x4); /* 0x40009B6C: mov edx, dword ptr [esi + 4] */
  11949     MEM32(ecx + 0x4) = edx; /* 0x40009B6F: mov dword ptr [ecx + 4], edx */
  11950     SET_LO8(ebx, MEM8(esi + 0x34)); /* 0x40009B72: mov bl, byte ptr [esi + 0x34] */
  11951     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009B75: mov dl, byte ptr [ecx + 0x34] */
  11952     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009B78: mov byte ptr [ecx + 0x34], bl */
  11953     MEM8(esi + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009B7B: mov byte ptr [esi + 0x34], dl */
  11954     MEM32(ebp + (-0x4)) = esi; /* 0x40009B7E: mov dword ptr [ebp - 4], esi */
  11955     goto L_40009BE8; /* 0x40009B81: jmp 0x40009be8 */
  11956 L_40009B83:
  11957     ecx = MEM32(esi + 0x4); /* 0x40009B83: mov ecx, dword ptr [esi + 4] */
  11958     /* cmp MEM32(ecx), esi */ /* 0x40009B86: cmp dword ptr [ecx], esi */
  11959     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi);
  11960     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11961     _flag_k = FK_CMP;
  11962     if (CMP_NE(_flag_a, _flag_b)) goto L_40009B8E; /* 0x40009B88: jne 0x40009b8e */
  11963 L_40009B8A:
  11964     MEM32(ecx) = eax; /* 0x40009B8A: mov dword ptr [ecx], eax */
  11965     goto L_40009B91; /* 0x40009B8C: jmp 0x40009b91 */
  11966 L_40009B8E:
  11967     MEM32(ecx + 0x8) = eax; /* 0x40009B8E: mov dword ptr [ecx + 8], eax */
  11968 L_40009B91:
  11969     ebx = MEM32(edi + 0x4); /* 0x40009B91: mov ebx, dword ptr [edi + 4] */
  11970     /* cmp MEM32(ebx), esi */ /* 0x40009B94: cmp dword ptr [ebx], esi */
  11971     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi);
  11972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11973     _flag_k = FK_CMP;
  11974     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BBB; /* 0x40009B96: jne 0x40009bbb */
  11975 L_40009B98:
  11976     ecx = MEM32(esi + 0x8); /* 0x40009B98: mov ecx, dword ptr [esi + 8] */
  11977     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x40009B9B: cmp ecx, dword ptr [edi + 8] */
  11978     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11980     _flag_k = FK_CMP;
  11981     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BA5; /* 0x40009B9E: jne 0x40009ba5 */
  11982 L_40009BA0:
  11983     edx = MEM32(esi + 0x4); /* 0x40009BA0: mov edx, dword ptr [esi + 4] */
  11984     goto L_40009BB9; /* 0x40009BA3: jmp 0x40009bb9 */
  11985 L_40009BA5:
  11986     ecx = MEM32(eax); /* 0x40009BA5: mov ecx, dword ptr [eax] */
  11987     /* cmp MEM8(ecx + 0x35), 0 */ /* 0x40009BA7: cmp byte ptr [ecx + 0x35], 0 */
  11988     _flag_a = (uint32_t)(MEM8(ecx + 0x35)) << 24; _flag_b = (uint32_t)(0) << 24;
  11989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11990     _flag_k = FK_NARROW(FK_CMP, 24);
  11991     edx = eax; /* 0x40009BAB: mov edx, eax */
  11992     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BB9; /* 0x40009BAD: jne 0x40009bb9 */
  11993 L_40009BAF:
  11994     edx = ecx; /* 0x40009BAF: mov edx, ecx */
  11995     ecx = MEM32(edx); /* 0x40009BB1: mov ecx, dword ptr [edx] */
  11996     /* cmp MEM8(ecx + 0x35), 0 */ /* 0x40009BB3: cmp byte ptr [ecx + 0x35], 0 */
  11997     _flag_a = (uint32_t)(MEM8(ecx + 0x35)) << 24; _flag_b = (uint32_t)(0) << 24;
  11998     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11999     _flag_k = FK_NARROW(FK_CMP, 24);
  12000     RECOMP_BACKEDGE();
  12001     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009BAF; /* 0x40009BB7: je 0x40009baf */
  12002 L_40009BB9:
  12003     MEM32(ebx) = edx; /* 0x40009BB9: mov dword ptr [ebx], edx */
  12004 L_40009BBB:
  12005     ebx = MEM32(edi + 0x4); /* 0x40009BBB: mov ebx, dword ptr [edi + 4] */
  12006     /* cmp MEM32(ebx + 0x8), esi */ /* 0x40009BBE: cmp dword ptr [ebx + 8], esi */
  12007     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
  12008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12009     _flag_k = FK_CMP;
  12010     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BE8; /* 0x40009BC1: jne 0x40009be8 */
  12011 L_40009BC3:
  12012     ecx = MEM32(esi); /* 0x40009BC3: mov ecx, dword ptr [esi] */
  12013     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x40009BC5: cmp ecx, dword ptr [edi + 8] */
  12014     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12016     _flag_k = FK_CMP;
  12017     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BCF; /* 0x40009BC8: jne 0x40009bcf */
  12018 L_40009BCA:
  12019     edx = MEM32(esi + 0x4); /* 0x40009BCA: mov edx, dword ptr [esi + 4] */
  12020     goto L_40009BE5; /* 0x40009BCD: jmp 0x40009be5 */
  12021 L_40009BCF:
  12022     ecx = MEM32(eax + 0x8); /* 0x40009BCF: mov ecx, dword ptr [eax + 8] */
  12023     /* cmp MEM8(ecx + 0x35), 0 */ /* 0x40009BD2: cmp byte ptr [ecx + 0x35], 0 */
  12024     _flag_a = (uint32_t)(MEM8(ecx + 0x35)) << 24; _flag_b = (uint32_t)(0) << 24;
  12025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12026     _flag_k = FK_NARROW(FK_CMP, 24);
  12027     edx = eax; /* 0x40009BD6: mov edx, eax */
  12028     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BE5; /* 0x40009BD8: jne 0x40009be5 */
  12029 L_40009BDA:
  12030     edx = ecx; /* 0x40009BDA: mov edx, ecx */
  12031     ecx = MEM32(edx + 0x8); /* 0x40009BDC: mov ecx, dword ptr [edx + 8] */
  12032     /* cmp MEM8(ecx + 0x35), 0 */ /* 0x40009BDF: cmp byte ptr [ecx + 0x35], 0 */
  12033     _flag_a = (uint32_t)(MEM8(ecx + 0x35)) << 24; _flag_b = (uint32_t)(0) << 24;
  12034     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12035     _flag_k = FK_NARROW(FK_CMP, 24);
  12036     RECOMP_BACKEDGE();
  12037     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009BDA; /* 0x40009BE3: je 0x40009bda */
  12038 L_40009BE5:
  12039     MEM32(ebx + 0x8) = edx; /* 0x40009BE5: mov dword ptr [ebx + 8], edx */
  12040 L_40009BE8:
  12041     ecx = MEM32(ebp + (-0x4)); /* 0x40009BE8: mov ecx, dword ptr [ebp - 4] */
  12042     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009BEB: mov dl, byte ptr [ecx + 0x34] */
  12043     SET_LO8(ebx, 1); /* 0x40009BEE: mov bl, 1 */
  12044     /* cmp LO8(edx), LO8(ebx) */ /* 0x40009BF0: cmp dl, bl */
  12045     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12047     _flag_k = FK_NARROW(FK_CMP, 24);
  12048     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E55; /* 0x40009BF2: jne 0x40009e55 */
  12049 L_40009BF8:
  12050     edx = MEM32(edi + 0x4); /* 0x40009BF8: mov edx, dword ptr [edi + 4] */
  12051     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009BFB: cmp eax, dword ptr [edx + 4] */
  12052     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12054     _flag_k = FK_CMP;
  12055     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009BFE: je 0x40009e52 */
  12056 L_40009C04:
  12057     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  12058     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12059     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12060     _flag_k = FK_NARROW(FK_CMP, 24);
  12061     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  12062 L_40009C0D:
  12063     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  12064     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  12065     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  12066     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  12067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12068     _flag_k = FK_CMP;
  12069     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  12070 L_40009C16:
  12071     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  12072     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  12073     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  12074     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  12075     _cf = 0;
  12076     _flag_k = FK_NARROW(FK_TEST, 24);
  12077     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  12078 L_40009C20:
  12079     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  12080     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  12081     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  12082     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  12083     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  12084     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  12085     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  12086     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  12087     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  12088     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12089     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12090     _flag_k = FK_CMP;
  12091     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  12092 L_40009C3C:
  12093     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  12094 L_40009C3F:
  12095     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  12096     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  12097     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  12098     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  12099     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12101     _flag_k = FK_CMP;
  12102     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  12103 L_40009C4D:
  12104     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  12105     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  12106 L_40009C52:
  12107     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  12108     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  12109     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  12110     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12111     _flag_k = FK_CMP;
  12112     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  12113 L_40009C59:
  12114     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  12115     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  12116 L_40009C5D:
  12117     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  12118 L_40009C60:
  12119     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  12120     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  12121     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  12122     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  12123 L_40009C6B:
  12124     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  12125     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  12126     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12128     _flag_k = FK_NARROW(FK_CMP, 24);
  12129     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  12130 L_40009C76:
  12131     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  12132     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  12133     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12134     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12135     _flag_k = FK_NARROW(FK_CMP, 24);
  12136     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  12137 L_40009C82:
  12138     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  12139 L_40009C84:
  12140     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  12141     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  12142     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  12143     _cf = 0;
  12144     _flag_k = FK_NARROW(FK_TEST, 24);
  12145     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  12146 L_40009C8B:
  12147     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  12148     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  12149     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  12150     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  12151     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  12152     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  12153     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  12154     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  12155     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  12156     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12158     _flag_k = FK_CMP;
  12159     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  12160 L_40009CA7:
  12161     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  12162 L_40009CAA:
  12163     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  12164     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  12165     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  12166     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  12167     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12168     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12169     _flag_k = FK_CMP;
  12170     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  12171 L_40009CB8:
  12172     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  12173     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  12174 L_40009CBD:
  12175     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  12176     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  12177     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12178     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12179     _flag_k = FK_CMP;
  12180     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  12181 L_40009CC5:
  12182     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  12183     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  12184 L_40009CCA:
  12185     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  12186 L_40009CCC:
  12187     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  12188     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  12189     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  12190     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  12191 L_40009CD7:
  12192     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  12193     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  12194     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12196     _flag_k = FK_NARROW(FK_CMP, 24);
  12197     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  12198 L_40009CE3:
  12199     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  12200     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  12201     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12203     _flag_k = FK_NARROW(FK_CMP, 24);
  12204     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  12205 L_40009CEE:
  12206     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  12207     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  12208     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  12209     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  12210     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  12211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12212     _flag_k = FK_CMP;
  12213     RECOMP_BACKEDGE();
  12214     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  12215 L_40009D01:
  12216     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  12217 L_40009D06:
  12218     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  12219     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  12220     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12222     _flag_k = FK_NARROW(FK_CMP, 24);
  12223     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  12224 L_40009D0E:
  12225     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  12226     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  12227     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  12228     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  12229     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  12230     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  12231     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  12232     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  12233     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12235     _flag_k = FK_CMP;
  12236     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  12237 L_40009D26:
  12238     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  12239 L_40009D29:
  12240     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  12241     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  12242     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  12243     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  12244     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12246     _flag_k = FK_CMP;
  12247     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  12248 L_40009D37:
  12249     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  12250     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  12251 L_40009D3C:
  12252     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  12253     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  12254     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12256     _flag_k = FK_CMP;
  12257     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  12258 L_40009D44:
  12259     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  12260     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  12261 L_40009D49:
  12262     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  12263 L_40009D4B:
  12264     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  12265     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  12266     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  12267     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  12268 L_40009D57:
  12269     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  12270     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  12271     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  12272     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  12273     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  12274     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  12275     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  12276     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  12277     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  12278     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  12279     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  12280     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  12281     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  12282     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12284     _flag_k = FK_CMP;
  12285     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  12286 L_40009D7E:
  12287     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  12288 L_40009D81:
  12289     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  12290     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  12291     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  12292     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  12293     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12294     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12295     _flag_k = FK_CMP;
  12296     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  12297 L_40009D8F:
  12298     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  12299     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  12300     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  12301 L_40009D99:
  12302     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  12303     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  12304     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  12305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12306     _flag_k = FK_CMP;
  12307     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  12308 L_40009DA0:
  12309     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  12310     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  12311     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  12312 L_40009DA9:
  12313     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  12314     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  12315     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  12316 L_40009DB3:
  12317     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  12318     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  12319     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12321     _flag_k = FK_NARROW(FK_CMP, 24);
  12322     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  12323 L_40009DBA:
  12324     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  12325     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  12326     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  12327     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  12328     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  12329     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  12330     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  12331     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  12332     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12333     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12334     _flag_k = FK_CMP;
  12335     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  12336 L_40009DD3:
  12337     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  12338 L_40009DD6:
  12339     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  12340     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  12341     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  12342     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  12343     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12344     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12345     _flag_k = FK_CMP;
  12346     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  12347 L_40009DE4:
  12348     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  12349     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  12350 L_40009DE9:
  12351     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  12352     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  12353     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  12354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12355     _flag_k = FK_CMP;
  12356     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  12357 L_40009DF0:
  12358     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  12359     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  12360 L_40009DF4:
  12361     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  12362 L_40009DF7:
  12363     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  12364     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  12365     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  12366     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  12367 L_40009E01:
  12368     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  12369     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  12370     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  12371     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  12372     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  12373     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  12374     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  12375     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  12376     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  12377     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  12378     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  12379     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  12380     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  12381     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12383     _flag_k = FK_CMP;
  12384     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  12385 L_40009E27:
  12386     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  12387 L_40009E2A:
  12388     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  12389     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  12390     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  12391     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  12392     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12394     _flag_k = FK_CMP;
  12395     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  12396 L_40009E38:
  12397     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  12398     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  12399 L_40009E3D:
  12400     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  12401     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  12402     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12404     _flag_k = FK_CMP;
  12405     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  12406 L_40009E45:
  12407     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  12408     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  12409 L_40009E4A:
  12410     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  12411 L_40009E4C:
  12412     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  12413 L_40009E4F:
  12414     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  12415 L_40009E52:
  12416     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  12417 L_40009E55:
  12418     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  12419     PUSH32(esp, edx); /* 0x40009E58: push edx */
  12420     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  12421     RECOMP_FLAGS_IN();
  12422     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  12423     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  12424     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12425     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12426     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  12427     _flag_k = FK_ADD;
  12428     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  12429     eax = eax - 1; /* 0x40009E67: dec eax */
  12430     _flag_k = FK_DEC;
  12431     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  12432     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  12433     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  12434     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  12435     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  12436     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  12437     esp = ebp; /* 0x40009E73: mov esp, ebp */
  12438     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  12439     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  12440     RECOMP_REGS_OUT();
  12441 }
  12442 
  12443 void sub_40009B91(void) {
  12444     int _fpu_cmp = 0;
  12445     uint32_t _cf = 0;
  12446     int _df = 1;
  12447     uint32_t _flag_k = FK_NONE;
  12448     uint32_t _flag_a = 0, _flag_b = 0;
  12449     uint32_t _itail_tgt = 0;
  12450     RECOMP_REGS_LOCALS
  12451     RECOMP_ENTER(0x40009B91u);
  12452 
  12453 L_40009B91:
  12454     ebx = MEM32(edi + 0x4); /* 0x40009B91: mov ebx, dword ptr [edi + 4] */
  12455     /* cmp MEM32(ebx), esi */ /* 0x40009B94: cmp dword ptr [ebx], esi */
  12456     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi);
  12457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12458     _flag_k = FK_CMP;
  12459     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BBB; /* 0x40009B96: jne 0x40009bbb */
  12460 L_40009B98:
  12461     ecx = MEM32(esi + 0x8); /* 0x40009B98: mov ecx, dword ptr [esi + 8] */
  12462     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x40009B9B: cmp ecx, dword ptr [edi + 8] */
  12463     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12465     _flag_k = FK_CMP;
  12466     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BA5; /* 0x40009B9E: jne 0x40009ba5 */
  12467 L_40009BA0:
  12468     edx = MEM32(esi + 0x4); /* 0x40009BA0: mov edx, dword ptr [esi + 4] */
  12469     goto L_40009BB9; /* 0x40009BA3: jmp 0x40009bb9 */
  12470 L_40009BA5:
  12471     ecx = MEM32(eax); /* 0x40009BA5: mov ecx, dword ptr [eax] */
  12472     /* cmp MEM8(ecx + 0x35), 0 */ /* 0x40009BA7: cmp byte ptr [ecx + 0x35], 0 */
  12473     _flag_a = (uint32_t)(MEM8(ecx + 0x35)) << 24; _flag_b = (uint32_t)(0) << 24;
  12474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12475     _flag_k = FK_NARROW(FK_CMP, 24);
  12476     edx = eax; /* 0x40009BAB: mov edx, eax */
  12477     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BB9; /* 0x40009BAD: jne 0x40009bb9 */
  12478 L_40009BAF:
  12479     edx = ecx; /* 0x40009BAF: mov edx, ecx */
  12480     ecx = MEM32(edx); /* 0x40009BB1: mov ecx, dword ptr [edx] */
  12481     /* cmp MEM8(ecx + 0x35), 0 */ /* 0x40009BB3: cmp byte ptr [ecx + 0x35], 0 */
  12482     _flag_a = (uint32_t)(MEM8(ecx + 0x35)) << 24; _flag_b = (uint32_t)(0) << 24;
  12483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12484     _flag_k = FK_NARROW(FK_CMP, 24);
  12485     RECOMP_BACKEDGE();
  12486     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009BAF; /* 0x40009BB7: je 0x40009baf */
  12487 L_40009BB9:
  12488     MEM32(ebx) = edx; /* 0x40009BB9: mov dword ptr [ebx], edx */
  12489 L_40009BBB:
  12490     ebx = MEM32(edi + 0x4); /* 0x40009BBB: mov ebx, dword ptr [edi + 4] */
  12491     /* cmp MEM32(ebx + 0x8), esi */ /* 0x40009BBE: cmp dword ptr [ebx + 8], esi */
  12492     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
  12493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12494     _flag_k = FK_CMP;
  12495     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BE8; /* 0x40009BC1: jne 0x40009be8 */
  12496 L_40009BC3:
  12497     ecx = MEM32(esi); /* 0x40009BC3: mov ecx, dword ptr [esi] */
  12498     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x40009BC5: cmp ecx, dword ptr [edi + 8] */
  12499     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12500     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12501     _flag_k = FK_CMP;
  12502     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BCF; /* 0x40009BC8: jne 0x40009bcf */
  12503 L_40009BCA:
  12504     edx = MEM32(esi + 0x4); /* 0x40009BCA: mov edx, dword ptr [esi + 4] */
  12505     goto L_40009BE5; /* 0x40009BCD: jmp 0x40009be5 */
  12506 L_40009BCF:
  12507     ecx = MEM32(eax + 0x8); /* 0x40009BCF: mov ecx, dword ptr [eax + 8] */
  12508     /* cmp MEM8(ecx + 0x35), 0 */ /* 0x40009BD2: cmp byte ptr [ecx + 0x35], 0 */
  12509     _flag_a = (uint32_t)(MEM8(ecx + 0x35)) << 24; _flag_b = (uint32_t)(0) << 24;
  12510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12511     _flag_k = FK_NARROW(FK_CMP, 24);
  12512     edx = eax; /* 0x40009BD6: mov edx, eax */
  12513     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BE5; /* 0x40009BD8: jne 0x40009be5 */
  12514 L_40009BDA:
  12515     edx = ecx; /* 0x40009BDA: mov edx, ecx */
  12516     ecx = MEM32(edx + 0x8); /* 0x40009BDC: mov ecx, dword ptr [edx + 8] */
  12517     /* cmp MEM8(ecx + 0x35), 0 */ /* 0x40009BDF: cmp byte ptr [ecx + 0x35], 0 */
  12518     _flag_a = (uint32_t)(MEM8(ecx + 0x35)) << 24; _flag_b = (uint32_t)(0) << 24;
  12519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12520     _flag_k = FK_NARROW(FK_CMP, 24);
  12521     RECOMP_BACKEDGE();
  12522     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009BDA; /* 0x40009BE3: je 0x40009bda */
  12523 L_40009BE5:
  12524     MEM32(ebx + 0x8) = edx; /* 0x40009BE5: mov dword ptr [ebx + 8], edx */
  12525 L_40009BE8:
  12526     ecx = MEM32(ebp + (-0x4)); /* 0x40009BE8: mov ecx, dword ptr [ebp - 4] */
  12527     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009BEB: mov dl, byte ptr [ecx + 0x34] */
  12528     SET_LO8(ebx, 1); /* 0x40009BEE: mov bl, 1 */
  12529     /* cmp LO8(edx), LO8(ebx) */ /* 0x40009BF0: cmp dl, bl */
  12530     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12532     _flag_k = FK_NARROW(FK_CMP, 24);
  12533     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E55; /* 0x40009BF2: jne 0x40009e55 */
  12534 L_40009BF8:
  12535     edx = MEM32(edi + 0x4); /* 0x40009BF8: mov edx, dword ptr [edi + 4] */
  12536     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009BFB: cmp eax, dword ptr [edx + 4] */
  12537     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12538     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12539     _flag_k = FK_CMP;
  12540     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009BFE: je 0x40009e52 */
  12541 L_40009C04:
  12542     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  12543     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12545     _flag_k = FK_NARROW(FK_CMP, 24);
  12546     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  12547 L_40009C0D:
  12548     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  12549     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  12550     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  12551     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  12552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12553     _flag_k = FK_CMP;
  12554     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  12555 L_40009C16:
  12556     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  12557     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  12558     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  12559     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  12560     _cf = 0;
  12561     _flag_k = FK_NARROW(FK_TEST, 24);
  12562     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  12563 L_40009C20:
  12564     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  12565     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  12566     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  12567     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  12568     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  12569     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  12570     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  12571     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  12572     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  12573     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12575     _flag_k = FK_CMP;
  12576     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  12577 L_40009C3C:
  12578     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  12579 L_40009C3F:
  12580     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  12581     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  12582     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  12583     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  12584     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12585     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12586     _flag_k = FK_CMP;
  12587     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  12588 L_40009C4D:
  12589     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  12590     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  12591 L_40009C52:
  12592     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  12593     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  12594     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  12595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12596     _flag_k = FK_CMP;
  12597     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  12598 L_40009C59:
  12599     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  12600     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  12601 L_40009C5D:
  12602     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  12603 L_40009C60:
  12604     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  12605     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  12606     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  12607     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  12608 L_40009C6B:
  12609     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  12610     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  12611     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12613     _flag_k = FK_NARROW(FK_CMP, 24);
  12614     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  12615 L_40009C76:
  12616     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  12617     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  12618     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12620     _flag_k = FK_NARROW(FK_CMP, 24);
  12621     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  12622 L_40009C82:
  12623     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  12624 L_40009C84:
  12625     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  12626     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  12627     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  12628     _cf = 0;
  12629     _flag_k = FK_NARROW(FK_TEST, 24);
  12630     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  12631 L_40009C8B:
  12632     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  12633     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  12634     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  12635     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  12636     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  12637     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  12638     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  12639     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  12640     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  12641     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12643     _flag_k = FK_CMP;
  12644     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  12645 L_40009CA7:
  12646     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  12647 L_40009CAA:
  12648     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  12649     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  12650     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  12651     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  12652     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12653     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12654     _flag_k = FK_CMP;
  12655     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  12656 L_40009CB8:
  12657     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  12658     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  12659 L_40009CBD:
  12660     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  12661     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  12662     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12664     _flag_k = FK_CMP;
  12665     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  12666 L_40009CC5:
  12667     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  12668     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  12669 L_40009CCA:
  12670     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  12671 L_40009CCC:
  12672     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  12673     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  12674     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  12675     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  12676 L_40009CD7:
  12677     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  12678     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  12679     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12680     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12681     _flag_k = FK_NARROW(FK_CMP, 24);
  12682     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  12683 L_40009CE3:
  12684     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  12685     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  12686     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12688     _flag_k = FK_NARROW(FK_CMP, 24);
  12689     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  12690 L_40009CEE:
  12691     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  12692     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  12693     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  12694     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  12695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  12696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12697     _flag_k = FK_CMP;
  12698     RECOMP_BACKEDGE();
  12699     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  12700 L_40009D01:
  12701     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  12702 L_40009D06:
  12703     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  12704     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  12705     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12707     _flag_k = FK_NARROW(FK_CMP, 24);
  12708     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  12709 L_40009D0E:
  12710     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  12711     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  12712     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  12713     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  12714     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  12715     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  12716     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  12717     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  12718     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12720     _flag_k = FK_CMP;
  12721     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  12722 L_40009D26:
  12723     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  12724 L_40009D29:
  12725     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  12726     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  12727     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  12728     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  12729     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12731     _flag_k = FK_CMP;
  12732     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  12733 L_40009D37:
  12734     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  12735     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  12736 L_40009D3C:
  12737     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  12738     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  12739     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12741     _flag_k = FK_CMP;
  12742     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  12743 L_40009D44:
  12744     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  12745     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  12746 L_40009D49:
  12747     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  12748 L_40009D4B:
  12749     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  12750     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  12751     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  12752     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  12753 L_40009D57:
  12754     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  12755     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  12756     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  12757     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  12758     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  12759     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  12760     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  12761     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  12762     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  12763     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  12764     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  12765     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  12766     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  12767     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12768     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12769     _flag_k = FK_CMP;
  12770     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  12771 L_40009D7E:
  12772     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  12773 L_40009D81:
  12774     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  12775     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  12776     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  12777     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  12778     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12779     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12780     _flag_k = FK_CMP;
  12781     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  12782 L_40009D8F:
  12783     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  12784     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  12785     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  12786 L_40009D99:
  12787     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  12788     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  12789     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  12790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12791     _flag_k = FK_CMP;
  12792     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  12793 L_40009DA0:
  12794     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  12795     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  12796     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  12797 L_40009DA9:
  12798     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  12799     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  12800     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  12801 L_40009DB3:
  12802     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  12803     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  12804     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12806     _flag_k = FK_NARROW(FK_CMP, 24);
  12807     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  12808 L_40009DBA:
  12809     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  12810     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  12811     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  12812     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  12813     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  12814     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  12815     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  12816     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  12817     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12818     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12819     _flag_k = FK_CMP;
  12820     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  12821 L_40009DD3:
  12822     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  12823 L_40009DD6:
  12824     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  12825     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  12826     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  12827     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  12828     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12830     _flag_k = FK_CMP;
  12831     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  12832 L_40009DE4:
  12833     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  12834     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  12835 L_40009DE9:
  12836     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  12837     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  12838     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  12839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12840     _flag_k = FK_CMP;
  12841     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  12842 L_40009DF0:
  12843     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  12844     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  12845 L_40009DF4:
  12846     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  12847 L_40009DF7:
  12848     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  12849     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  12850     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  12851     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  12852 L_40009E01:
  12853     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  12854     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  12855     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  12856     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  12857     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  12858     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  12859     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  12860     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  12861     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  12862     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  12863     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  12864     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  12865     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  12866     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12867     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12868     _flag_k = FK_CMP;
  12869     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  12870 L_40009E27:
  12871     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  12872 L_40009E2A:
  12873     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  12874     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  12875     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  12876     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  12877     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  12878     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12879     _flag_k = FK_CMP;
  12880     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  12881 L_40009E38:
  12882     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  12883     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  12884 L_40009E3D:
  12885     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  12886     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  12887     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12888     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12889     _flag_k = FK_CMP;
  12890     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  12891 L_40009E45:
  12892     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  12893     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  12894 L_40009E4A:
  12895     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  12896 L_40009E4C:
  12897     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  12898 L_40009E4F:
  12899     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  12900 L_40009E52:
  12901     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  12902 L_40009E55:
  12903     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  12904     PUSH32(esp, edx); /* 0x40009E58: push edx */
  12905     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  12906     RECOMP_FLAGS_IN();
  12907     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  12908     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  12909     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12910     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12911     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  12912     _flag_k = FK_ADD;
  12913     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  12914     eax = eax - 1; /* 0x40009E67: dec eax */
  12915     _flag_k = FK_DEC;
  12916     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  12917     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  12918     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  12919     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  12920     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  12921     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  12922     esp = ebp; /* 0x40009E73: mov esp, ebp */
  12923     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  12924     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  12925     RECOMP_REGS_OUT();
  12926 }
  12927 
  12928 void sub_40009BB9(void) {
  12929     int _fpu_cmp = 0;
  12930     uint32_t _cf = 0;
  12931     int _df = 1;
  12932     uint32_t _flag_k = FK_NONE;
  12933     uint32_t _flag_a = 0, _flag_b = 0;
  12934     uint32_t _itail_tgt = 0;
  12935     RECOMP_REGS_LOCALS
  12936     RECOMP_ENTER(0x40009BB9u);
  12937 
  12938 L_40009BB9:
  12939     MEM32(ebx) = edx; /* 0x40009BB9: mov dword ptr [ebx], edx */
  12940     ebx = MEM32(edi + 0x4); /* 0x40009BBB: mov ebx, dword ptr [edi + 4] */
  12941     /* cmp MEM32(ebx + 0x8), esi */ /* 0x40009BBE: cmp dword ptr [ebx + 8], esi */
  12942     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
  12943     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12944     _flag_k = FK_CMP;
  12945     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BE8; /* 0x40009BC1: jne 0x40009be8 */
  12946 L_40009BC3:
  12947     ecx = MEM32(esi); /* 0x40009BC3: mov ecx, dword ptr [esi] */
  12948     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x40009BC5: cmp ecx, dword ptr [edi + 8] */
  12949     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12950     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12951     _flag_k = FK_CMP;
  12952     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BCF; /* 0x40009BC8: jne 0x40009bcf */
  12953 L_40009BCA:
  12954     edx = MEM32(esi + 0x4); /* 0x40009BCA: mov edx, dword ptr [esi + 4] */
  12955     goto L_40009BE5; /* 0x40009BCD: jmp 0x40009be5 */
  12956 L_40009BCF:
  12957     ecx = MEM32(eax + 0x8); /* 0x40009BCF: mov ecx, dword ptr [eax + 8] */
  12958     /* cmp MEM8(ecx + 0x35), 0 */ /* 0x40009BD2: cmp byte ptr [ecx + 0x35], 0 */
  12959     _flag_a = (uint32_t)(MEM8(ecx + 0x35)) << 24; _flag_b = (uint32_t)(0) << 24;
  12960     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12961     _flag_k = FK_NARROW(FK_CMP, 24);
  12962     edx = eax; /* 0x40009BD6: mov edx, eax */
  12963     if (CMP_NE(_flag_a, _flag_b)) goto L_40009BE5; /* 0x40009BD8: jne 0x40009be5 */
  12964 L_40009BDA:
  12965     edx = ecx; /* 0x40009BDA: mov edx, ecx */
  12966     ecx = MEM32(edx + 0x8); /* 0x40009BDC: mov ecx, dword ptr [edx + 8] */
  12967     /* cmp MEM8(ecx + 0x35), 0 */ /* 0x40009BDF: cmp byte ptr [ecx + 0x35], 0 */
  12968     _flag_a = (uint32_t)(MEM8(ecx + 0x35)) << 24; _flag_b = (uint32_t)(0) << 24;
  12969     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12970     _flag_k = FK_NARROW(FK_CMP, 24);
  12971     RECOMP_BACKEDGE();
  12972     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009BDA; /* 0x40009BE3: je 0x40009bda */
  12973 L_40009BE5:
  12974     MEM32(ebx + 0x8) = edx; /* 0x40009BE5: mov dword ptr [ebx + 8], edx */
  12975 L_40009BE8:
  12976     ecx = MEM32(ebp + (-0x4)); /* 0x40009BE8: mov ecx, dword ptr [ebp - 4] */
  12977     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009BEB: mov dl, byte ptr [ecx + 0x34] */
  12978     SET_LO8(ebx, 1); /* 0x40009BEE: mov bl, 1 */
  12979     /* cmp LO8(edx), LO8(ebx) */ /* 0x40009BF0: cmp dl, bl */
  12980     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12982     _flag_k = FK_NARROW(FK_CMP, 24);
  12983     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E55; /* 0x40009BF2: jne 0x40009e55 */
  12984 L_40009BF8:
  12985     edx = MEM32(edi + 0x4); /* 0x40009BF8: mov edx, dword ptr [edi + 4] */
  12986     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009BFB: cmp eax, dword ptr [edx + 4] */
  12987     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12988     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12989     _flag_k = FK_CMP;
  12990     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009BFE: je 0x40009e52 */
  12991 L_40009C04:
  12992     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  12993     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  12994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12995     _flag_k = FK_NARROW(FK_CMP, 24);
  12996     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  12997 L_40009C0D:
  12998     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  12999     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  13000     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  13001     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  13002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13003     _flag_k = FK_CMP;
  13004     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  13005 L_40009C16:
  13006     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  13007     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  13008     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  13009     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  13010     _cf = 0;
  13011     _flag_k = FK_NARROW(FK_TEST, 24);
  13012     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  13013 L_40009C20:
  13014     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  13015     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  13016     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  13017     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  13018     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  13019     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  13020     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  13021     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  13022     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  13023     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13025     _flag_k = FK_CMP;
  13026     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  13027 L_40009C3C:
  13028     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  13029 L_40009C3F:
  13030     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  13031     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  13032     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  13033     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  13034     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13036     _flag_k = FK_CMP;
  13037     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  13038 L_40009C4D:
  13039     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  13040     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  13041 L_40009C52:
  13042     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  13043     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  13044     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  13045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13046     _flag_k = FK_CMP;
  13047     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  13048 L_40009C59:
  13049     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  13050     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  13051 L_40009C5D:
  13052     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  13053 L_40009C60:
  13054     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  13055     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  13056     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  13057     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  13058 L_40009C6B:
  13059     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  13060     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  13061     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13063     _flag_k = FK_NARROW(FK_CMP, 24);
  13064     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  13065 L_40009C76:
  13066     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  13067     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  13068     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13069     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13070     _flag_k = FK_NARROW(FK_CMP, 24);
  13071     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  13072 L_40009C82:
  13073     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  13074 L_40009C84:
  13075     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  13076     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  13077     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  13078     _cf = 0;
  13079     _flag_k = FK_NARROW(FK_TEST, 24);
  13080     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  13081 L_40009C8B:
  13082     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  13083     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  13084     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  13085     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  13086     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  13087     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  13088     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  13089     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  13090     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  13091     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13092     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13093     _flag_k = FK_CMP;
  13094     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  13095 L_40009CA7:
  13096     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  13097 L_40009CAA:
  13098     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  13099     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  13100     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  13101     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  13102     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13104     _flag_k = FK_CMP;
  13105     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  13106 L_40009CB8:
  13107     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  13108     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  13109 L_40009CBD:
  13110     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  13111     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  13112     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13114     _flag_k = FK_CMP;
  13115     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  13116 L_40009CC5:
  13117     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  13118     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  13119 L_40009CCA:
  13120     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  13121 L_40009CCC:
  13122     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  13123     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  13124     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  13125     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  13126 L_40009CD7:
  13127     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  13128     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  13129     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13131     _flag_k = FK_NARROW(FK_CMP, 24);
  13132     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  13133 L_40009CE3:
  13134     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  13135     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  13136     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13137     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13138     _flag_k = FK_NARROW(FK_CMP, 24);
  13139     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  13140 L_40009CEE:
  13141     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  13142     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  13143     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  13144     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  13145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13147     _flag_k = FK_CMP;
  13148     RECOMP_BACKEDGE();
  13149     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  13150 L_40009D01:
  13151     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  13152 L_40009D06:
  13153     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  13154     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  13155     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13157     _flag_k = FK_NARROW(FK_CMP, 24);
  13158     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  13159 L_40009D0E:
  13160     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  13161     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  13162     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  13163     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  13164     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  13165     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  13166     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  13167     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  13168     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13170     _flag_k = FK_CMP;
  13171     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  13172 L_40009D26:
  13173     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  13174 L_40009D29:
  13175     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  13176     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  13177     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  13178     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  13179     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13181     _flag_k = FK_CMP;
  13182     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  13183 L_40009D37:
  13184     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  13185     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  13186 L_40009D3C:
  13187     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  13188     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  13189     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13191     _flag_k = FK_CMP;
  13192     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  13193 L_40009D44:
  13194     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  13195     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  13196 L_40009D49:
  13197     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  13198 L_40009D4B:
  13199     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  13200     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  13201     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  13202     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  13203 L_40009D57:
  13204     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  13205     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  13206     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  13207     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  13208     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  13209     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  13210     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  13211     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  13212     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  13213     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  13214     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  13215     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  13216     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  13217     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13218     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13219     _flag_k = FK_CMP;
  13220     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  13221 L_40009D7E:
  13222     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  13223 L_40009D81:
  13224     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  13225     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  13226     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  13227     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  13228     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13229     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13230     _flag_k = FK_CMP;
  13231     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  13232 L_40009D8F:
  13233     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  13234     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  13235     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  13236 L_40009D99:
  13237     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  13238     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  13239     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  13240     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13241     _flag_k = FK_CMP;
  13242     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  13243 L_40009DA0:
  13244     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  13245     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  13246     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  13247 L_40009DA9:
  13248     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  13249     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  13250     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  13251 L_40009DB3:
  13252     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  13253     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  13254     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13256     _flag_k = FK_NARROW(FK_CMP, 24);
  13257     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  13258 L_40009DBA:
  13259     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  13260     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  13261     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  13262     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  13263     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  13264     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  13265     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  13266     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  13267     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13269     _flag_k = FK_CMP;
  13270     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  13271 L_40009DD3:
  13272     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  13273 L_40009DD6:
  13274     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  13275     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  13276     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  13277     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  13278     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13280     _flag_k = FK_CMP;
  13281     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  13282 L_40009DE4:
  13283     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  13284     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  13285 L_40009DE9:
  13286     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  13287     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  13288     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  13289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13290     _flag_k = FK_CMP;
  13291     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  13292 L_40009DF0:
  13293     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  13294     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  13295 L_40009DF4:
  13296     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  13297 L_40009DF7:
  13298     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  13299     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  13300     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  13301     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  13302 L_40009E01:
  13303     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  13304     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  13305     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  13306     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  13307     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  13308     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  13309     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  13310     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  13311     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  13312     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  13313     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  13314     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  13315     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  13316     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13318     _flag_k = FK_CMP;
  13319     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  13320 L_40009E27:
  13321     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  13322 L_40009E2A:
  13323     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  13324     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  13325     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  13326     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  13327     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13329     _flag_k = FK_CMP;
  13330     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  13331 L_40009E38:
  13332     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  13333     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  13334 L_40009E3D:
  13335     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  13336     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  13337     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13339     _flag_k = FK_CMP;
  13340     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  13341 L_40009E45:
  13342     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  13343     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  13344 L_40009E4A:
  13345     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  13346 L_40009E4C:
  13347     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  13348 L_40009E4F:
  13349     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  13350 L_40009E52:
  13351     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  13352 L_40009E55:
  13353     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  13354     PUSH32(esp, edx); /* 0x40009E58: push edx */
  13355     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  13356     RECOMP_FLAGS_IN();
  13357     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  13358     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  13359     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13360     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13361     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  13362     _flag_k = FK_ADD;
  13363     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  13364     eax = eax - 1; /* 0x40009E67: dec eax */
  13365     _flag_k = FK_DEC;
  13366     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  13367     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  13368     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  13369     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  13370     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  13371     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  13372     esp = ebp; /* 0x40009E73: mov esp, ebp */
  13373     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  13374     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  13375     RECOMP_REGS_OUT();
  13376 }
  13377 
  13378 void sub_40009BE5(void) {
  13379     int _fpu_cmp = 0;
  13380     uint32_t _cf = 0;
  13381     int _df = 1;
  13382     uint32_t _flag_k = FK_NONE;
  13383     uint32_t _flag_a = 0, _flag_b = 0;
  13384     uint32_t _itail_tgt = 0;
  13385     RECOMP_REGS_LOCALS
  13386     RECOMP_ENTER(0x40009BE5u);
  13387 
  13388 L_40009BE5:
  13389     MEM32(ebx + 0x8) = edx; /* 0x40009BE5: mov dword ptr [ebx + 8], edx */
  13390     ecx = MEM32(ebp + (-0x4)); /* 0x40009BE8: mov ecx, dword ptr [ebp - 4] */
  13391     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009BEB: mov dl, byte ptr [ecx + 0x34] */
  13392     SET_LO8(ebx, 1); /* 0x40009BEE: mov bl, 1 */
  13393     /* cmp LO8(edx), LO8(ebx) */ /* 0x40009BF0: cmp dl, bl */
  13394     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13395     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13396     _flag_k = FK_NARROW(FK_CMP, 24);
  13397     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E55; /* 0x40009BF2: jne 0x40009e55 */
  13398 L_40009BF8:
  13399     edx = MEM32(edi + 0x4); /* 0x40009BF8: mov edx, dword ptr [edi + 4] */
  13400     /* cmp eax, MEM32(edx + 0x4) */ /* 0x40009BFB: cmp eax, dword ptr [edx + 4] */
  13401     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  13402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13403     _flag_k = FK_CMP;
  13404     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009BFE: je 0x40009e52 */
  13405 L_40009C04:
  13406     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  13407     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13408     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13409     _flag_k = FK_NARROW(FK_CMP, 24);
  13410     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  13411 L_40009C0D:
  13412     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  13413     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  13414     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  13415     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  13416     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13417     _flag_k = FK_CMP;
  13418     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  13419 L_40009C16:
  13420     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  13421     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  13422     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  13423     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  13424     _cf = 0;
  13425     _flag_k = FK_NARROW(FK_TEST, 24);
  13426     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  13427 L_40009C20:
  13428     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  13429     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  13430     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  13431     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  13432     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  13433     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  13434     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  13435     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  13436     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  13437     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13438     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13439     _flag_k = FK_CMP;
  13440     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  13441 L_40009C3C:
  13442     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  13443 L_40009C3F:
  13444     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  13445     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  13446     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  13447     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  13448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13450     _flag_k = FK_CMP;
  13451     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  13452 L_40009C4D:
  13453     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  13454     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  13455 L_40009C52:
  13456     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  13457     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  13458     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  13459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13460     _flag_k = FK_CMP;
  13461     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  13462 L_40009C59:
  13463     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  13464     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  13465 L_40009C5D:
  13466     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  13467 L_40009C60:
  13468     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  13469     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  13470     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  13471     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  13472 L_40009C6B:
  13473     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  13474     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  13475     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13477     _flag_k = FK_NARROW(FK_CMP, 24);
  13478     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  13479 L_40009C76:
  13480     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  13481     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  13482     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13484     _flag_k = FK_NARROW(FK_CMP, 24);
  13485     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  13486 L_40009C82:
  13487     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  13488 L_40009C84:
  13489     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  13490     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  13491     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  13492     _cf = 0;
  13493     _flag_k = FK_NARROW(FK_TEST, 24);
  13494     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  13495 L_40009C8B:
  13496     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  13497     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  13498     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  13499     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  13500     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  13501     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  13502     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  13503     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  13504     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  13505     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13507     _flag_k = FK_CMP;
  13508     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  13509 L_40009CA7:
  13510     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  13511 L_40009CAA:
  13512     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  13513     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  13514     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  13515     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  13516     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13518     _flag_k = FK_CMP;
  13519     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  13520 L_40009CB8:
  13521     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  13522     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  13523 L_40009CBD:
  13524     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  13525     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  13526     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13528     _flag_k = FK_CMP;
  13529     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  13530 L_40009CC5:
  13531     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  13532     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  13533 L_40009CCA:
  13534     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  13535 L_40009CCC:
  13536     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  13537     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  13538     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  13539     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  13540 L_40009CD7:
  13541     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  13542     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  13543     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13545     _flag_k = FK_NARROW(FK_CMP, 24);
  13546     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  13547 L_40009CE3:
  13548     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  13549     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  13550     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13551     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13552     _flag_k = FK_NARROW(FK_CMP, 24);
  13553     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  13554 L_40009CEE:
  13555     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  13556     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  13557     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  13558     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  13559     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13561     _flag_k = FK_CMP;
  13562     RECOMP_BACKEDGE();
  13563     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  13564 L_40009D01:
  13565     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  13566 L_40009D06:
  13567     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  13568     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  13569     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13571     _flag_k = FK_NARROW(FK_CMP, 24);
  13572     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  13573 L_40009D0E:
  13574     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  13575     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  13576     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  13577     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  13578     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  13579     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  13580     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  13581     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  13582     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13584     _flag_k = FK_CMP;
  13585     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  13586 L_40009D26:
  13587     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  13588 L_40009D29:
  13589     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  13590     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  13591     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  13592     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  13593     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13594     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13595     _flag_k = FK_CMP;
  13596     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  13597 L_40009D37:
  13598     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  13599     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  13600 L_40009D3C:
  13601     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  13602     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  13603     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13605     _flag_k = FK_CMP;
  13606     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  13607 L_40009D44:
  13608     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  13609     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  13610 L_40009D49:
  13611     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  13612 L_40009D4B:
  13613     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  13614     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  13615     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  13616     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  13617 L_40009D57:
  13618     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  13619     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  13620     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  13621     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  13622     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  13623     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  13624     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  13625     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  13626     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  13627     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  13628     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  13629     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  13630     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  13631     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13633     _flag_k = FK_CMP;
  13634     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  13635 L_40009D7E:
  13636     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  13637 L_40009D81:
  13638     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  13639     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  13640     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  13641     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  13642     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13644     _flag_k = FK_CMP;
  13645     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  13646 L_40009D8F:
  13647     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  13648     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  13649     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  13650 L_40009D99:
  13651     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  13652     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  13653     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  13654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13655     _flag_k = FK_CMP;
  13656     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  13657 L_40009DA0:
  13658     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  13659     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  13660     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  13661 L_40009DA9:
  13662     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  13663     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  13664     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  13665 L_40009DB3:
  13666     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  13667     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  13668     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13670     _flag_k = FK_NARROW(FK_CMP, 24);
  13671     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  13672 L_40009DBA:
  13673     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  13674     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  13675     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  13676     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  13677     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  13678     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  13679     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  13680     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  13681     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13683     _flag_k = FK_CMP;
  13684     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  13685 L_40009DD3:
  13686     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  13687 L_40009DD6:
  13688     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  13689     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  13690     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  13691     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  13692     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13694     _flag_k = FK_CMP;
  13695     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  13696 L_40009DE4:
  13697     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  13698     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  13699 L_40009DE9:
  13700     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  13701     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  13702     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  13703     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13704     _flag_k = FK_CMP;
  13705     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  13706 L_40009DF0:
  13707     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  13708     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  13709 L_40009DF4:
  13710     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  13711 L_40009DF7:
  13712     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  13713     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  13714     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  13715     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  13716 L_40009E01:
  13717     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  13718     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  13719     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  13720     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  13721     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  13722     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  13723     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  13724     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  13725     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  13726     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  13727     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  13728     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  13729     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  13730     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13731     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13732     _flag_k = FK_CMP;
  13733     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  13734 L_40009E27:
  13735     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  13736 L_40009E2A:
  13737     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  13738     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  13739     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  13740     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  13741     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13743     _flag_k = FK_CMP;
  13744     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  13745 L_40009E38:
  13746     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  13747     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  13748 L_40009E3D:
  13749     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  13750     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  13751     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13753     _flag_k = FK_CMP;
  13754     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  13755 L_40009E45:
  13756     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  13757     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  13758 L_40009E4A:
  13759     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  13760 L_40009E4C:
  13761     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  13762 L_40009E4F:
  13763     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  13764 L_40009E52:
  13765     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  13766 L_40009E55:
  13767     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  13768     PUSH32(esp, edx); /* 0x40009E58: push edx */
  13769     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  13770     RECOMP_FLAGS_IN();
  13771     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  13772     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  13773     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13774     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13775     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  13776     _flag_k = FK_ADD;
  13777     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  13778     eax = eax - 1; /* 0x40009E67: dec eax */
  13779     _flag_k = FK_DEC;
  13780     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  13781     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  13782     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  13783     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  13784     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  13785     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  13786     esp = ebp; /* 0x40009E73: mov esp, ebp */
  13787     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  13788     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  13789     RECOMP_REGS_OUT();
  13790 }
  13791 
  13792 void sub_40009C04(void) {
  13793     int _fpu_cmp = 0;
  13794     uint32_t _cf = 0;
  13795     int _df = 1;
  13796     uint32_t _flag_k = FK_NONE;
  13797     uint32_t _flag_a = 0, _flag_b = 0;
  13798     uint32_t _itail_tgt = 0;
  13799     RECOMP_REGS_LOCALS
  13800     RECOMP_ENTER(0x40009C04u);
  13801 
  13802 L_40009C04:
  13803     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  13804     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13806     _flag_k = FK_NARROW(FK_CMP, 24);
  13807     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  13808 L_40009C0D:
  13809     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  13810     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  13811     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  13812     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  13813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13814     _flag_k = FK_CMP;
  13815     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  13816 L_40009C16:
  13817     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  13818     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  13819     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  13820     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  13821     _cf = 0;
  13822     _flag_k = FK_NARROW(FK_TEST, 24);
  13823     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  13824 L_40009C20:
  13825     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  13826     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  13827     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  13828     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  13829     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  13830     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  13831     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  13832     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  13833     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  13834     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13835     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13836     _flag_k = FK_CMP;
  13837     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  13838 L_40009C3C:
  13839     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  13840 L_40009C3F:
  13841     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  13842     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  13843     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  13844     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  13845     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13847     _flag_k = FK_CMP;
  13848     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  13849 L_40009C4D:
  13850     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  13851     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  13852 L_40009C52:
  13853     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  13854     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  13855     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  13856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13857     _flag_k = FK_CMP;
  13858     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  13859 L_40009C59:
  13860     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  13861     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  13862 L_40009C5D:
  13863     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  13864 L_40009C60:
  13865     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  13866     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  13867     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  13868     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  13869 L_40009C6B:
  13870     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  13871     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  13872     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13874     _flag_k = FK_NARROW(FK_CMP, 24);
  13875     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  13876 L_40009C76:
  13877     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  13878     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  13879     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13881     _flag_k = FK_NARROW(FK_CMP, 24);
  13882     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  13883 L_40009C82:
  13884     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  13885 L_40009C84:
  13886     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  13887     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  13888     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  13889     _cf = 0;
  13890     _flag_k = FK_NARROW(FK_TEST, 24);
  13891     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  13892 L_40009C8B:
  13893     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  13894     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  13895     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  13896     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  13897     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  13898     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  13899     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  13900     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  13901     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  13902     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13904     _flag_k = FK_CMP;
  13905     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  13906 L_40009CA7:
  13907     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  13908 L_40009CAA:
  13909     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  13910     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  13911     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  13912     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  13913     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13915     _flag_k = FK_CMP;
  13916     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  13917 L_40009CB8:
  13918     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  13919     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  13920 L_40009CBD:
  13921     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  13922     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  13923     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13925     _flag_k = FK_CMP;
  13926     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  13927 L_40009CC5:
  13928     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  13929     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  13930 L_40009CCA:
  13931     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  13932 L_40009CCC:
  13933     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  13934     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  13935     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  13936     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  13937 L_40009CD7:
  13938     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  13939     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  13940     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13942     _flag_k = FK_NARROW(FK_CMP, 24);
  13943     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  13944 L_40009CE3:
  13945     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  13946     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  13947     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13948     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13949     _flag_k = FK_NARROW(FK_CMP, 24);
  13950     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  13951 L_40009CEE:
  13952     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  13953     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  13954     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  13955     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  13956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13958     _flag_k = FK_CMP;
  13959     RECOMP_BACKEDGE();
  13960     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  13961 L_40009D01:
  13962     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  13963 L_40009D06:
  13964     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  13965     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  13966     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  13967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13968     _flag_k = FK_NARROW(FK_CMP, 24);
  13969     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  13970 L_40009D0E:
  13971     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  13972     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  13973     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  13974     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  13975     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  13976     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  13977     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  13978     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  13979     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13980     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13981     _flag_k = FK_CMP;
  13982     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  13983 L_40009D26:
  13984     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  13985 L_40009D29:
  13986     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  13987     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  13988     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  13989     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  13990     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  13991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13992     _flag_k = FK_CMP;
  13993     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  13994 L_40009D37:
  13995     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  13996     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  13997 L_40009D3C:
  13998     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  13999     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  14000     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  14001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14002     _flag_k = FK_CMP;
  14003     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  14004 L_40009D44:
  14005     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  14006     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  14007 L_40009D49:
  14008     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  14009 L_40009D4B:
  14010     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  14011     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  14012     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  14013     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  14014 L_40009D57:
  14015     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  14016     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  14017     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  14018     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  14019     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  14020     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  14021     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  14022     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  14023     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  14024     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  14025     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  14026     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  14027     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  14028     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14030     _flag_k = FK_CMP;
  14031     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  14032 L_40009D7E:
  14033     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  14034 L_40009D81:
  14035     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  14036     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  14037     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  14038     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  14039     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14041     _flag_k = FK_CMP;
  14042     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  14043 L_40009D8F:
  14044     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  14045     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  14046     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  14047 L_40009D99:
  14048     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  14049     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  14050     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  14051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14052     _flag_k = FK_CMP;
  14053     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  14054 L_40009DA0:
  14055     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  14056     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  14057     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  14058 L_40009DA9:
  14059     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  14060     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  14061     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  14062 L_40009DB3:
  14063     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  14064     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  14065     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14067     _flag_k = FK_NARROW(FK_CMP, 24);
  14068     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  14069 L_40009DBA:
  14070     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  14071     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  14072     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  14073     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  14074     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  14075     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  14076     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  14077     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  14078     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14080     _flag_k = FK_CMP;
  14081     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  14082 L_40009DD3:
  14083     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  14084 L_40009DD6:
  14085     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  14086     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  14087     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  14088     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  14089     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14090     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14091     _flag_k = FK_CMP;
  14092     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  14093 L_40009DE4:
  14094     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  14095     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  14096 L_40009DE9:
  14097     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  14098     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  14099     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  14100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14101     _flag_k = FK_CMP;
  14102     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  14103 L_40009DF0:
  14104     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  14105     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  14106 L_40009DF4:
  14107     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  14108 L_40009DF7:
  14109     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  14110     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  14111     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  14112     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  14113 L_40009E01:
  14114     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  14115     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  14116     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  14117     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  14118     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  14119     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  14120     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  14121     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  14122     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  14123     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  14124     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  14125     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  14126     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  14127     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14128     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14129     _flag_k = FK_CMP;
  14130     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  14131 L_40009E27:
  14132     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  14133 L_40009E2A:
  14134     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  14135     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  14136     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  14137     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  14138     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14140     _flag_k = FK_CMP;
  14141     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  14142 L_40009E38:
  14143     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  14144     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  14145 L_40009E3D:
  14146     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  14147     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  14148     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  14149     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14150     _flag_k = FK_CMP;
  14151     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  14152 L_40009E45:
  14153     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  14154     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  14155 L_40009E4A:
  14156     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  14157 L_40009E4C:
  14158     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  14159 L_40009E4F:
  14160     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  14161 L_40009E52:
  14162     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  14163     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  14164     PUSH32(esp, edx); /* 0x40009E58: push edx */
  14165     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  14166     RECOMP_FLAGS_IN();
  14167     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  14168     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  14169     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14170     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14171     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  14172     _flag_k = FK_ADD;
  14173     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  14174     eax = eax - 1; /* 0x40009E67: dec eax */
  14175     _flag_k = FK_DEC;
  14176     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  14177     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  14178     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  14179     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  14180     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  14181     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  14182     esp = ebp; /* 0x40009E73: mov esp, ebp */
  14183     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  14184     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  14185     RECOMP_REGS_OUT();
  14186 }
  14187 
  14188 void sub_40009C60(void) {
  14189     int _fpu_cmp = 0;
  14190     uint32_t _cf = 0;
  14191     int _df = 1;
  14192     uint32_t _flag_k = FK_NONE;
  14193     uint32_t _flag_a = 0, _flag_b = 0;
  14194     uint32_t _itail_tgt = 0;
  14195     RECOMP_REGS_LOCALS
  14196     RECOMP_ENTER(0x40009C60u);
  14197 
  14198     goto L_40009C60;
  14199 L_40009C04:
  14200     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  14201     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14203     _flag_k = FK_NARROW(FK_CMP, 24);
  14204     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  14205 L_40009C0D:
  14206     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  14207     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  14208     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  14209     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  14210     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14211     _flag_k = FK_CMP;
  14212     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  14213 L_40009C16:
  14214     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  14215     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  14216     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  14217     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  14218     _cf = 0;
  14219     _flag_k = FK_NARROW(FK_TEST, 24);
  14220     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  14221 L_40009C20:
  14222     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  14223     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  14224     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  14225     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  14226     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  14227     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  14228     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  14229     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  14230     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  14231     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14233     _flag_k = FK_CMP;
  14234     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  14235 L_40009C3C:
  14236     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  14237 L_40009C3F:
  14238     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  14239     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  14240     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  14241     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  14242     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14244     _flag_k = FK_CMP;
  14245     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  14246 L_40009C4D:
  14247     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  14248     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  14249 L_40009C52:
  14250     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  14251     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  14252     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  14253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14254     _flag_k = FK_CMP;
  14255     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  14256 L_40009C59:
  14257     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  14258     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  14259 L_40009C5D:
  14260     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  14261 L_40009C60:
  14262     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  14263     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  14264     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  14265     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  14266 L_40009C6B:
  14267     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  14268     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  14269     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14270     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14271     _flag_k = FK_NARROW(FK_CMP, 24);
  14272     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  14273 L_40009C76:
  14274     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  14275     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  14276     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14278     _flag_k = FK_NARROW(FK_CMP, 24);
  14279     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  14280 L_40009C82:
  14281     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  14282 L_40009C84:
  14283     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  14284     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  14285     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  14286     _cf = 0;
  14287     _flag_k = FK_NARROW(FK_TEST, 24);
  14288     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  14289 L_40009C8B:
  14290     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  14291     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  14292     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  14293     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  14294     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  14295     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  14296     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  14297     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  14298     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  14299     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14301     _flag_k = FK_CMP;
  14302     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  14303 L_40009CA7:
  14304     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  14305 L_40009CAA:
  14306     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  14307     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  14308     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  14309     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  14310     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14312     _flag_k = FK_CMP;
  14313     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  14314 L_40009CB8:
  14315     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  14316     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  14317 L_40009CBD:
  14318     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  14319     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  14320     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  14321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14322     _flag_k = FK_CMP;
  14323     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  14324 L_40009CC5:
  14325     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  14326     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  14327 L_40009CCA:
  14328     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  14329 L_40009CCC:
  14330     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  14331     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  14332     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  14333     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  14334 L_40009CD7:
  14335     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  14336     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  14337     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14339     _flag_k = FK_NARROW(FK_CMP, 24);
  14340     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  14341 L_40009CE3:
  14342     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  14343     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  14344     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14346     _flag_k = FK_NARROW(FK_CMP, 24);
  14347     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  14348 L_40009CEE:
  14349     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  14350     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  14351     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  14352     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  14353     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  14354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14355     _flag_k = FK_CMP;
  14356     RECOMP_BACKEDGE();
  14357     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  14358 L_40009D01:
  14359     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  14360 L_40009D06:
  14361     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  14362     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  14363     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14365     _flag_k = FK_NARROW(FK_CMP, 24);
  14366     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  14367 L_40009D0E:
  14368     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  14369     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  14370     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  14371     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  14372     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  14373     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  14374     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  14375     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  14376     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14378     _flag_k = FK_CMP;
  14379     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  14380 L_40009D26:
  14381     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  14382 L_40009D29:
  14383     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  14384     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  14385     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  14386     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  14387     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14389     _flag_k = FK_CMP;
  14390     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  14391 L_40009D37:
  14392     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  14393     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  14394 L_40009D3C:
  14395     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  14396     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  14397     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  14398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14399     _flag_k = FK_CMP;
  14400     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  14401 L_40009D44:
  14402     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  14403     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  14404 L_40009D49:
  14405     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  14406 L_40009D4B:
  14407     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  14408     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  14409     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  14410     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  14411 L_40009D57:
  14412     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  14413     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  14414     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  14415     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  14416     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  14417     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  14418     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  14419     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  14420     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  14421     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  14422     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  14423     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  14424     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  14425     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14427     _flag_k = FK_CMP;
  14428     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  14429 L_40009D7E:
  14430     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  14431 L_40009D81:
  14432     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  14433     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  14434     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  14435     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  14436     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14438     _flag_k = FK_CMP;
  14439     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  14440 L_40009D8F:
  14441     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  14442     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  14443     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  14444 L_40009D99:
  14445     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  14446     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  14447     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  14448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14449     _flag_k = FK_CMP;
  14450     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  14451 L_40009DA0:
  14452     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  14453     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  14454     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  14455 L_40009DA9:
  14456     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  14457     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  14458     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  14459 L_40009DB3:
  14460     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  14461     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  14462     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14464     _flag_k = FK_NARROW(FK_CMP, 24);
  14465     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  14466 L_40009DBA:
  14467     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  14468     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  14469     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  14470     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  14471     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  14472     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  14473     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  14474     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  14475     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14477     _flag_k = FK_CMP;
  14478     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  14479 L_40009DD3:
  14480     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  14481 L_40009DD6:
  14482     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  14483     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  14484     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  14485     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  14486     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14487     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14488     _flag_k = FK_CMP;
  14489     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  14490 L_40009DE4:
  14491     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  14492     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  14493 L_40009DE9:
  14494     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  14495     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  14496     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  14497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14498     _flag_k = FK_CMP;
  14499     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  14500 L_40009DF0:
  14501     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  14502     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  14503 L_40009DF4:
  14504     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  14505 L_40009DF7:
  14506     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  14507     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  14508     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  14509     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  14510 L_40009E01:
  14511     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  14512     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  14513     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  14514     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  14515     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  14516     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  14517     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  14518     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  14519     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  14520     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  14521     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  14522     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  14523     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  14524     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14525     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14526     _flag_k = FK_CMP;
  14527     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  14528 L_40009E27:
  14529     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  14530 L_40009E2A:
  14531     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  14532     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  14533     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  14534     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  14535     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14537     _flag_k = FK_CMP;
  14538     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  14539 L_40009E38:
  14540     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  14541     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  14542 L_40009E3D:
  14543     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  14544     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  14545     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  14546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14547     _flag_k = FK_CMP;
  14548     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  14549 L_40009E45:
  14550     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  14551     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  14552 L_40009E4A:
  14553     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  14554 L_40009E4C:
  14555     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  14556 L_40009E4F:
  14557     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  14558 L_40009E52:
  14559     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  14560     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  14561     PUSH32(esp, edx); /* 0x40009E58: push edx */
  14562     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  14563     RECOMP_FLAGS_IN();
  14564     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  14565     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  14566     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14567     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14568     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  14569     _flag_k = FK_ADD;
  14570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  14571     eax = eax - 1; /* 0x40009E67: dec eax */
  14572     _flag_k = FK_DEC;
  14573     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  14574     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  14575     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  14576     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  14577     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  14578     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  14579     esp = ebp; /* 0x40009E73: mov esp, ebp */
  14580     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  14581     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  14582     RECOMP_REGS_OUT();
  14583 }
  14584 
  14585 void sub_40009C6B(void) {
  14586     int _fpu_cmp = 0;
  14587     uint32_t _cf = 0;
  14588     int _df = 1;
  14589     uint32_t _flag_k = FK_NONE;
  14590     uint32_t _flag_a = 0, _flag_b = 0;
  14591     uint32_t _itail_tgt = 0;
  14592     RECOMP_REGS_LOCALS
  14593     RECOMP_ENTER(0x40009C6Bu);
  14594 
  14595     goto L_40009C6B;
  14596 L_40009C04:
  14597     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  14598     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14600     _flag_k = FK_NARROW(FK_CMP, 24);
  14601     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  14602 L_40009C0D:
  14603     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  14604     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  14605     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  14606     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  14607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14608     _flag_k = FK_CMP;
  14609     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  14610 L_40009C16:
  14611     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  14612     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  14613     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  14614     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  14615     _cf = 0;
  14616     _flag_k = FK_NARROW(FK_TEST, 24);
  14617     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  14618 L_40009C20:
  14619     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  14620     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  14621     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  14622     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  14623     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  14624     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  14625     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  14626     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  14627     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  14628     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14630     _flag_k = FK_CMP;
  14631     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  14632 L_40009C3C:
  14633     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  14634 L_40009C3F:
  14635     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  14636     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  14637     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  14638     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  14639     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14641     _flag_k = FK_CMP;
  14642     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  14643 L_40009C4D:
  14644     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  14645     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  14646 L_40009C52:
  14647     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  14648     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  14649     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  14650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14651     _flag_k = FK_CMP;
  14652     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  14653 L_40009C59:
  14654     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  14655     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  14656 L_40009C5D:
  14657     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  14658 L_40009C60:
  14659     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  14660     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  14661     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  14662     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  14663 L_40009C6B:
  14664     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  14665     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  14666     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14668     _flag_k = FK_NARROW(FK_CMP, 24);
  14669     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  14670 L_40009C76:
  14671     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  14672     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  14673     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14675     _flag_k = FK_NARROW(FK_CMP, 24);
  14676     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  14677 L_40009C82:
  14678     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  14679 L_40009C84:
  14680     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  14681     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  14682     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  14683     _cf = 0;
  14684     _flag_k = FK_NARROW(FK_TEST, 24);
  14685     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  14686 L_40009C8B:
  14687     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  14688     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  14689     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  14690     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  14691     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  14692     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  14693     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  14694     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  14695     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  14696     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14698     _flag_k = FK_CMP;
  14699     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  14700 L_40009CA7:
  14701     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  14702 L_40009CAA:
  14703     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  14704     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  14705     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  14706     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  14707     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14708     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14709     _flag_k = FK_CMP;
  14710     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  14711 L_40009CB8:
  14712     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  14713     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  14714 L_40009CBD:
  14715     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  14716     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  14717     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  14718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14719     _flag_k = FK_CMP;
  14720     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  14721 L_40009CC5:
  14722     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  14723     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  14724 L_40009CCA:
  14725     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  14726 L_40009CCC:
  14727     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  14728     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  14729     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  14730     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  14731 L_40009CD7:
  14732     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  14733     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  14734     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14736     _flag_k = FK_NARROW(FK_CMP, 24);
  14737     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  14738 L_40009CE3:
  14739     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  14740     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  14741     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14743     _flag_k = FK_NARROW(FK_CMP, 24);
  14744     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  14745 L_40009CEE:
  14746     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  14747     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  14748     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  14749     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  14750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  14751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14752     _flag_k = FK_CMP;
  14753     RECOMP_BACKEDGE();
  14754     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  14755 L_40009D01:
  14756     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  14757 L_40009D06:
  14758     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  14759     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  14760     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14762     _flag_k = FK_NARROW(FK_CMP, 24);
  14763     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  14764 L_40009D0E:
  14765     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  14766     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  14767     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  14768     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  14769     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  14770     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  14771     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  14772     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  14773     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14774     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14775     _flag_k = FK_CMP;
  14776     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  14777 L_40009D26:
  14778     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  14779 L_40009D29:
  14780     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  14781     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  14782     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  14783     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  14784     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14785     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14786     _flag_k = FK_CMP;
  14787     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  14788 L_40009D37:
  14789     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  14790     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  14791 L_40009D3C:
  14792     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  14793     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  14794     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  14795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14796     _flag_k = FK_CMP;
  14797     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  14798 L_40009D44:
  14799     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  14800     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  14801 L_40009D49:
  14802     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  14803 L_40009D4B:
  14804     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  14805     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  14806     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  14807     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  14808 L_40009D57:
  14809     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  14810     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  14811     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  14812     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  14813     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  14814     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  14815     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  14816     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  14817     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  14818     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  14819     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  14820     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  14821     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  14822     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14824     _flag_k = FK_CMP;
  14825     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  14826 L_40009D7E:
  14827     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  14828 L_40009D81:
  14829     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  14830     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  14831     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  14832     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  14833     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14835     _flag_k = FK_CMP;
  14836     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  14837 L_40009D8F:
  14838     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  14839     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  14840     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  14841 L_40009D99:
  14842     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  14843     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  14844     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  14845     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14846     _flag_k = FK_CMP;
  14847     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  14848 L_40009DA0:
  14849     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  14850     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  14851     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  14852 L_40009DA9:
  14853     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  14854     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  14855     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  14856 L_40009DB3:
  14857     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  14858     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  14859     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14860     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14861     _flag_k = FK_NARROW(FK_CMP, 24);
  14862     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  14863 L_40009DBA:
  14864     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  14865     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  14866     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  14867     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  14868     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  14869     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  14870     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  14871     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  14872     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14874     _flag_k = FK_CMP;
  14875     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  14876 L_40009DD3:
  14877     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  14878 L_40009DD6:
  14879     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  14880     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  14881     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  14882     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  14883     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14884     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14885     _flag_k = FK_CMP;
  14886     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  14887 L_40009DE4:
  14888     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  14889     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  14890 L_40009DE9:
  14891     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  14892     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  14893     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  14894     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14895     _flag_k = FK_CMP;
  14896     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  14897 L_40009DF0:
  14898     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  14899     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  14900 L_40009DF4:
  14901     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  14902 L_40009DF7:
  14903     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  14904     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  14905     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  14906     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  14907 L_40009E01:
  14908     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  14909     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  14910     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  14911     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  14912     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  14913     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  14914     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  14915     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  14916     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  14917     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  14918     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  14919     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  14920     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  14921     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  14922     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14923     _flag_k = FK_CMP;
  14924     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  14925 L_40009E27:
  14926     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  14927 L_40009E2A:
  14928     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  14929     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  14930     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  14931     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  14932     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  14933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14934     _flag_k = FK_CMP;
  14935     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  14936 L_40009E38:
  14937     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  14938     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  14939 L_40009E3D:
  14940     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  14941     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  14942     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  14943     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14944     _flag_k = FK_CMP;
  14945     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  14946 L_40009E45:
  14947     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  14948     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  14949 L_40009E4A:
  14950     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  14951 L_40009E4C:
  14952     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  14953 L_40009E4F:
  14954     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  14955 L_40009E52:
  14956     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  14957     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  14958     PUSH32(esp, edx); /* 0x40009E58: push edx */
  14959     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  14960     RECOMP_FLAGS_IN();
  14961     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  14962     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  14963     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14964     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14965     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  14966     _flag_k = FK_ADD;
  14967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  14968     eax = eax - 1; /* 0x40009E67: dec eax */
  14969     _flag_k = FK_DEC;
  14970     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  14971     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  14972     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  14973     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  14974     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  14975     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  14976     esp = ebp; /* 0x40009E73: mov esp, ebp */
  14977     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  14978     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  14979     RECOMP_REGS_OUT();
  14980 }
  14981 
  14982 void sub_40009C84(void) {
  14983     int _fpu_cmp = 0;
  14984     uint32_t _cf = 0;
  14985     int _df = 1;
  14986     uint32_t _flag_k = FK_NONE;
  14987     uint32_t _flag_a = 0, _flag_b = 0;
  14988     uint32_t _itail_tgt = 0;
  14989     RECOMP_REGS_LOCALS
  14990     RECOMP_ENTER(0x40009C84u);
  14991 
  14992     goto L_40009C84;
  14993 L_40009C04:
  14994     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  14995     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  14996     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14997     _flag_k = FK_NARROW(FK_CMP, 24);
  14998     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  14999 L_40009C0D:
  15000     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  15001     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  15002     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  15003     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  15004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15005     _flag_k = FK_CMP;
  15006     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  15007 L_40009C16:
  15008     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  15009     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  15010     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  15011     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  15012     _cf = 0;
  15013     _flag_k = FK_NARROW(FK_TEST, 24);
  15014     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  15015 L_40009C20:
  15016     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  15017     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  15018     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  15019     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  15020     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  15021     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  15022     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  15023     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  15024     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  15025     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15027     _flag_k = FK_CMP;
  15028     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  15029 L_40009C3C:
  15030     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  15031 L_40009C3F:
  15032     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  15033     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  15034     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  15035     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  15036     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15038     _flag_k = FK_CMP;
  15039     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  15040 L_40009C4D:
  15041     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  15042     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  15043 L_40009C52:
  15044     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  15045     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  15046     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  15047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15048     _flag_k = FK_CMP;
  15049     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  15050 L_40009C59:
  15051     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  15052     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  15053 L_40009C5D:
  15054     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  15055 L_40009C60:
  15056     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  15057     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  15058     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  15059     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  15060 L_40009C6B:
  15061     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  15062     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  15063     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15065     _flag_k = FK_NARROW(FK_CMP, 24);
  15066     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  15067 L_40009C76:
  15068     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  15069     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  15070     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15072     _flag_k = FK_NARROW(FK_CMP, 24);
  15073     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  15074 L_40009C82:
  15075     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  15076 L_40009C84:
  15077     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  15078     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  15079     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  15080     _cf = 0;
  15081     _flag_k = FK_NARROW(FK_TEST, 24);
  15082     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  15083 L_40009C8B:
  15084     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  15085     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  15086     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  15087     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  15088     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  15089     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  15090     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  15091     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  15092     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  15093     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15094     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15095     _flag_k = FK_CMP;
  15096     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  15097 L_40009CA7:
  15098     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  15099 L_40009CAA:
  15100     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  15101     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  15102     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  15103     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  15104     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15106     _flag_k = FK_CMP;
  15107     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  15108 L_40009CB8:
  15109     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  15110     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  15111 L_40009CBD:
  15112     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  15113     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  15114     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  15115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15116     _flag_k = FK_CMP;
  15117     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  15118 L_40009CC5:
  15119     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  15120     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  15121 L_40009CCA:
  15122     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  15123 L_40009CCC:
  15124     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  15125     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  15126     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  15127     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  15128 L_40009CD7:
  15129     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  15130     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  15131     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15133     _flag_k = FK_NARROW(FK_CMP, 24);
  15134     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  15135 L_40009CE3:
  15136     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  15137     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  15138     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15140     _flag_k = FK_NARROW(FK_CMP, 24);
  15141     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  15142 L_40009CEE:
  15143     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  15144     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  15145     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  15146     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  15147     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  15148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15149     _flag_k = FK_CMP;
  15150     RECOMP_BACKEDGE();
  15151     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  15152 L_40009D01:
  15153     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  15154 L_40009D06:
  15155     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  15156     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  15157     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15159     _flag_k = FK_NARROW(FK_CMP, 24);
  15160     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  15161 L_40009D0E:
  15162     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  15163     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  15164     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  15165     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  15166     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  15167     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  15168     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  15169     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  15170     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15171     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15172     _flag_k = FK_CMP;
  15173     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  15174 L_40009D26:
  15175     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  15176 L_40009D29:
  15177     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  15178     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  15179     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  15180     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  15181     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15183     _flag_k = FK_CMP;
  15184     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  15185 L_40009D37:
  15186     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  15187     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  15188 L_40009D3C:
  15189     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  15190     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  15191     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  15192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15193     _flag_k = FK_CMP;
  15194     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  15195 L_40009D44:
  15196     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  15197     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  15198 L_40009D49:
  15199     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  15200 L_40009D4B:
  15201     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  15202     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  15203     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  15204     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  15205 L_40009D57:
  15206     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  15207     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  15208     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  15209     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  15210     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  15211     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  15212     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  15213     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  15214     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  15215     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  15216     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  15217     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  15218     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  15219     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15221     _flag_k = FK_CMP;
  15222     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  15223 L_40009D7E:
  15224     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  15225 L_40009D81:
  15226     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  15227     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  15228     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  15229     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  15230     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15231     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15232     _flag_k = FK_CMP;
  15233     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  15234 L_40009D8F:
  15235     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  15236     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  15237     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  15238 L_40009D99:
  15239     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  15240     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  15241     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  15242     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15243     _flag_k = FK_CMP;
  15244     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  15245 L_40009DA0:
  15246     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  15247     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  15248     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  15249 L_40009DA9:
  15250     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  15251     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  15252     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  15253 L_40009DB3:
  15254     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  15255     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  15256     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15258     _flag_k = FK_NARROW(FK_CMP, 24);
  15259     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  15260 L_40009DBA:
  15261     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  15262     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  15263     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  15264     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  15265     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  15266     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  15267     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  15268     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  15269     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15270     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15271     _flag_k = FK_CMP;
  15272     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  15273 L_40009DD3:
  15274     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  15275 L_40009DD6:
  15276     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  15277     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  15278     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  15279     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  15280     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15282     _flag_k = FK_CMP;
  15283     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  15284 L_40009DE4:
  15285     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  15286     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  15287 L_40009DE9:
  15288     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  15289     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  15290     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  15291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15292     _flag_k = FK_CMP;
  15293     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  15294 L_40009DF0:
  15295     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  15296     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  15297 L_40009DF4:
  15298     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  15299 L_40009DF7:
  15300     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  15301     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  15302     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  15303     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  15304 L_40009E01:
  15305     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  15306     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  15307     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  15308     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  15309     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  15310     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  15311     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  15312     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  15313     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  15314     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  15315     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  15316     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  15317     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  15318     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15320     _flag_k = FK_CMP;
  15321     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  15322 L_40009E27:
  15323     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  15324 L_40009E2A:
  15325     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  15326     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  15327     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  15328     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  15329     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15330     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15331     _flag_k = FK_CMP;
  15332     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  15333 L_40009E38:
  15334     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  15335     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  15336 L_40009E3D:
  15337     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  15338     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  15339     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  15340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15341     _flag_k = FK_CMP;
  15342     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  15343 L_40009E45:
  15344     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  15345     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  15346 L_40009E4A:
  15347     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  15348 L_40009E4C:
  15349     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  15350 L_40009E4F:
  15351     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  15352 L_40009E52:
  15353     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  15354     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  15355     PUSH32(esp, edx); /* 0x40009E58: push edx */
  15356     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  15357     RECOMP_FLAGS_IN();
  15358     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  15359     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  15360     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  15361     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15362     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  15363     _flag_k = FK_ADD;
  15364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15365     eax = eax - 1; /* 0x40009E67: dec eax */
  15366     _flag_k = FK_DEC;
  15367     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  15368     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  15369     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  15370     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  15371     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  15372     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  15373     esp = ebp; /* 0x40009E73: mov esp, ebp */
  15374     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  15375     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  15376     RECOMP_REGS_OUT();
  15377 }
  15378 
  15379 void sub_40009CCC(void) {
  15380     int _fpu_cmp = 0;
  15381     uint32_t _cf = 0;
  15382     int _df = 1;
  15383     uint32_t _flag_k = FK_NONE;
  15384     uint32_t _flag_a = 0, _flag_b = 0;
  15385     uint32_t _itail_tgt = 0;
  15386     RECOMP_REGS_LOCALS
  15387     RECOMP_ENTER(0x40009CCCu);
  15388 
  15389     goto L_40009CCC;
  15390 L_40009C04:
  15391     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  15392     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15394     _flag_k = FK_NARROW(FK_CMP, 24);
  15395     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  15396 L_40009C0D:
  15397     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  15398     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  15399     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  15400     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  15401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15402     _flag_k = FK_CMP;
  15403     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  15404 L_40009C16:
  15405     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  15406     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  15407     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  15408     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  15409     _cf = 0;
  15410     _flag_k = FK_NARROW(FK_TEST, 24);
  15411     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  15412 L_40009C20:
  15413     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  15414     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  15415     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  15416     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  15417     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  15418     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  15419     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  15420     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  15421     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  15422     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15424     _flag_k = FK_CMP;
  15425     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  15426 L_40009C3C:
  15427     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  15428 L_40009C3F:
  15429     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  15430     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  15431     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  15432     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  15433     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15434     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15435     _flag_k = FK_CMP;
  15436     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  15437 L_40009C4D:
  15438     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  15439     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  15440 L_40009C52:
  15441     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  15442     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  15443     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  15444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15445     _flag_k = FK_CMP;
  15446     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  15447 L_40009C59:
  15448     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  15449     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  15450 L_40009C5D:
  15451     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  15452 L_40009C60:
  15453     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  15454     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  15455     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  15456     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  15457 L_40009C6B:
  15458     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  15459     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  15460     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15462     _flag_k = FK_NARROW(FK_CMP, 24);
  15463     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  15464 L_40009C76:
  15465     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  15466     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  15467     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15469     _flag_k = FK_NARROW(FK_CMP, 24);
  15470     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  15471 L_40009C82:
  15472     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  15473 L_40009C84:
  15474     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  15475     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  15476     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  15477     _cf = 0;
  15478     _flag_k = FK_NARROW(FK_TEST, 24);
  15479     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  15480 L_40009C8B:
  15481     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  15482     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  15483     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  15484     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  15485     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  15486     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  15487     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  15488     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  15489     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  15490     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15491     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15492     _flag_k = FK_CMP;
  15493     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  15494 L_40009CA7:
  15495     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  15496 L_40009CAA:
  15497     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  15498     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  15499     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  15500     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  15501     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15503     _flag_k = FK_CMP;
  15504     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  15505 L_40009CB8:
  15506     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  15507     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  15508 L_40009CBD:
  15509     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  15510     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  15511     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  15512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15513     _flag_k = FK_CMP;
  15514     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  15515 L_40009CC5:
  15516     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  15517     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  15518 L_40009CCA:
  15519     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  15520 L_40009CCC:
  15521     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  15522     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  15523     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  15524     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  15525 L_40009CD7:
  15526     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  15527     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  15528     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15530     _flag_k = FK_NARROW(FK_CMP, 24);
  15531     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  15532 L_40009CE3:
  15533     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  15534     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  15535     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15537     _flag_k = FK_NARROW(FK_CMP, 24);
  15538     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  15539 L_40009CEE:
  15540     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  15541     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  15542     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  15543     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  15544     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  15545     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15546     _flag_k = FK_CMP;
  15547     RECOMP_BACKEDGE();
  15548     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  15549 L_40009D01:
  15550     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  15551 L_40009D06:
  15552     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  15553     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  15554     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15556     _flag_k = FK_NARROW(FK_CMP, 24);
  15557     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  15558 L_40009D0E:
  15559     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  15560     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  15561     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  15562     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  15563     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  15564     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  15565     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  15566     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  15567     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15569     _flag_k = FK_CMP;
  15570     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  15571 L_40009D26:
  15572     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  15573 L_40009D29:
  15574     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  15575     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  15576     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  15577     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  15578     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15579     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15580     _flag_k = FK_CMP;
  15581     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  15582 L_40009D37:
  15583     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  15584     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  15585 L_40009D3C:
  15586     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  15587     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  15588     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  15589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15590     _flag_k = FK_CMP;
  15591     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  15592 L_40009D44:
  15593     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  15594     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  15595 L_40009D49:
  15596     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  15597 L_40009D4B:
  15598     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  15599     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  15600     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  15601     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  15602 L_40009D57:
  15603     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  15604     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  15605     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  15606     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  15607     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  15608     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  15609     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  15610     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  15611     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  15612     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  15613     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  15614     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  15615     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  15616     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15618     _flag_k = FK_CMP;
  15619     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  15620 L_40009D7E:
  15621     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  15622 L_40009D81:
  15623     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  15624     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  15625     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  15626     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  15627     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15629     _flag_k = FK_CMP;
  15630     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  15631 L_40009D8F:
  15632     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  15633     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  15634     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  15635 L_40009D99:
  15636     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  15637     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  15638     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  15639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15640     _flag_k = FK_CMP;
  15641     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  15642 L_40009DA0:
  15643     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  15644     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  15645     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  15646 L_40009DA9:
  15647     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  15648     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  15649     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  15650 L_40009DB3:
  15651     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  15652     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  15653     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15655     _flag_k = FK_NARROW(FK_CMP, 24);
  15656     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  15657 L_40009DBA:
  15658     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  15659     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  15660     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  15661     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  15662     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  15663     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  15664     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  15665     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  15666     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15668     _flag_k = FK_CMP;
  15669     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  15670 L_40009DD3:
  15671     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  15672 L_40009DD6:
  15673     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  15674     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  15675     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  15676     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  15677     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15679     _flag_k = FK_CMP;
  15680     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  15681 L_40009DE4:
  15682     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  15683     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  15684 L_40009DE9:
  15685     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  15686     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  15687     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  15688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15689     _flag_k = FK_CMP;
  15690     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  15691 L_40009DF0:
  15692     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  15693     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  15694 L_40009DF4:
  15695     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  15696 L_40009DF7:
  15697     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  15698     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  15699     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  15700     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  15701 L_40009E01:
  15702     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  15703     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  15704     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  15705     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  15706     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  15707     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  15708     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  15709     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  15710     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  15711     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  15712     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  15713     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  15714     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  15715     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15717     _flag_k = FK_CMP;
  15718     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  15719 L_40009E27:
  15720     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  15721 L_40009E2A:
  15722     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  15723     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  15724     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  15725     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  15726     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15728     _flag_k = FK_CMP;
  15729     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  15730 L_40009E38:
  15731     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  15732     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  15733 L_40009E3D:
  15734     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  15735     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  15736     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  15737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15738     _flag_k = FK_CMP;
  15739     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  15740 L_40009E45:
  15741     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  15742     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  15743 L_40009E4A:
  15744     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  15745 L_40009E4C:
  15746     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  15747 L_40009E4F:
  15748     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  15749 L_40009E52:
  15750     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  15751     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  15752     PUSH32(esp, edx); /* 0x40009E58: push edx */
  15753     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  15754     RECOMP_FLAGS_IN();
  15755     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  15756     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  15757     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  15758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  15759     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  15760     _flag_k = FK_ADD;
  15761     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  15762     eax = eax - 1; /* 0x40009E67: dec eax */
  15763     _flag_k = FK_DEC;
  15764     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  15765     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  15766     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  15767     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  15768     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  15769     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  15770     esp = ebp; /* 0x40009E73: mov esp, ebp */
  15771     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  15772     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  15773     RECOMP_REGS_OUT();
  15774 }
  15775 
  15776 void sub_40009CD7(void) {
  15777     int _fpu_cmp = 0;
  15778     uint32_t _cf = 0;
  15779     int _df = 1;
  15780     uint32_t _flag_k = FK_NONE;
  15781     uint32_t _flag_a = 0, _flag_b = 0;
  15782     uint32_t _itail_tgt = 0;
  15783     RECOMP_REGS_LOCALS
  15784     RECOMP_ENTER(0x40009CD7u);
  15785 
  15786     goto L_40009CD7;
  15787 L_40009C04:
  15788     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  15789     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15791     _flag_k = FK_NARROW(FK_CMP, 24);
  15792     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  15793 L_40009C0D:
  15794     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  15795     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  15796     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  15797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  15798     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15799     _flag_k = FK_CMP;
  15800     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  15801 L_40009C16:
  15802     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  15803     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  15804     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  15805     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  15806     _cf = 0;
  15807     _flag_k = FK_NARROW(FK_TEST, 24);
  15808     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  15809 L_40009C20:
  15810     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  15811     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  15812     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  15813     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  15814     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  15815     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  15816     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  15817     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  15818     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  15819     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15821     _flag_k = FK_CMP;
  15822     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  15823 L_40009C3C:
  15824     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  15825 L_40009C3F:
  15826     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  15827     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  15828     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  15829     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  15830     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15832     _flag_k = FK_CMP;
  15833     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  15834 L_40009C4D:
  15835     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  15836     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  15837 L_40009C52:
  15838     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  15839     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  15840     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  15841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15842     _flag_k = FK_CMP;
  15843     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  15844 L_40009C59:
  15845     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  15846     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  15847 L_40009C5D:
  15848     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  15849 L_40009C60:
  15850     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  15851     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  15852     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  15853     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  15854 L_40009C6B:
  15855     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  15856     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  15857     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15859     _flag_k = FK_NARROW(FK_CMP, 24);
  15860     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  15861 L_40009C76:
  15862     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  15863     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  15864     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15866     _flag_k = FK_NARROW(FK_CMP, 24);
  15867     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  15868 L_40009C82:
  15869     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  15870 L_40009C84:
  15871     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  15872     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  15873     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  15874     _cf = 0;
  15875     _flag_k = FK_NARROW(FK_TEST, 24);
  15876     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  15877 L_40009C8B:
  15878     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  15879     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  15880     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  15881     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  15882     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  15883     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  15884     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  15885     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  15886     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  15887     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15888     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15889     _flag_k = FK_CMP;
  15890     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  15891 L_40009CA7:
  15892     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  15893 L_40009CAA:
  15894     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  15895     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  15896     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  15897     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  15898     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15899     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15900     _flag_k = FK_CMP;
  15901     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  15902 L_40009CB8:
  15903     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  15904     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  15905 L_40009CBD:
  15906     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  15907     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  15908     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  15909     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15910     _flag_k = FK_CMP;
  15911     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  15912 L_40009CC5:
  15913     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  15914     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  15915 L_40009CCA:
  15916     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  15917 L_40009CCC:
  15918     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  15919     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  15920     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  15921     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  15922 L_40009CD7:
  15923     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  15924     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  15925     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15927     _flag_k = FK_NARROW(FK_CMP, 24);
  15928     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  15929 L_40009CE3:
  15930     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  15931     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  15932     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15934     _flag_k = FK_NARROW(FK_CMP, 24);
  15935     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  15936 L_40009CEE:
  15937     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  15938     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  15939     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  15940     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  15941     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  15942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15943     _flag_k = FK_CMP;
  15944     RECOMP_BACKEDGE();
  15945     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  15946 L_40009D01:
  15947     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  15948 L_40009D06:
  15949     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  15950     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  15951     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  15952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15953     _flag_k = FK_NARROW(FK_CMP, 24);
  15954     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  15955 L_40009D0E:
  15956     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  15957     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  15958     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  15959     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  15960     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  15961     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  15962     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  15963     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  15964     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  15965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15966     _flag_k = FK_CMP;
  15967     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  15968 L_40009D26:
  15969     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  15970 L_40009D29:
  15971     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  15972     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  15973     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  15974     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  15975     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  15976     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15977     _flag_k = FK_CMP;
  15978     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  15979 L_40009D37:
  15980     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  15981     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  15982 L_40009D3C:
  15983     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  15984     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  15985     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  15986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  15987     _flag_k = FK_CMP;
  15988     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  15989 L_40009D44:
  15990     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  15991     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  15992 L_40009D49:
  15993     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  15994 L_40009D4B:
  15995     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  15996     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  15997     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  15998     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  15999 L_40009D57:
  16000     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  16001     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  16002     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  16003     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  16004     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  16005     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  16006     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  16007     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  16008     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  16009     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  16010     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  16011     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  16012     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  16013     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16015     _flag_k = FK_CMP;
  16016     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  16017 L_40009D7E:
  16018     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  16019 L_40009D81:
  16020     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  16021     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  16022     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  16023     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  16024     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16026     _flag_k = FK_CMP;
  16027     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  16028 L_40009D8F:
  16029     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  16030     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  16031     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  16032 L_40009D99:
  16033     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  16034     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  16035     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  16036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16037     _flag_k = FK_CMP;
  16038     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  16039 L_40009DA0:
  16040     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  16041     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  16042     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  16043 L_40009DA9:
  16044     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  16045     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  16046     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  16047 L_40009DB3:
  16048     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  16049     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  16050     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  16051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16052     _flag_k = FK_NARROW(FK_CMP, 24);
  16053     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  16054 L_40009DBA:
  16055     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  16056     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  16057     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  16058     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  16059     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  16060     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  16061     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  16062     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  16063     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16065     _flag_k = FK_CMP;
  16066     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  16067 L_40009DD3:
  16068     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  16069 L_40009DD6:
  16070     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  16071     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  16072     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  16073     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  16074     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16076     _flag_k = FK_CMP;
  16077     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  16078 L_40009DE4:
  16079     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  16080     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  16081 L_40009DE9:
  16082     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  16083     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  16084     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  16085     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16086     _flag_k = FK_CMP;
  16087     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  16088 L_40009DF0:
  16089     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  16090     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  16091 L_40009DF4:
  16092     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  16093 L_40009DF7:
  16094     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  16095     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  16096     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  16097     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  16098 L_40009E01:
  16099     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  16100     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  16101     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  16102     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  16103     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  16104     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  16105     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  16106     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  16107     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  16108     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  16109     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  16110     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  16111     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  16112     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16114     _flag_k = FK_CMP;
  16115     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  16116 L_40009E27:
  16117     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  16118 L_40009E2A:
  16119     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  16120     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  16121     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  16122     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  16123     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16124     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16125     _flag_k = FK_CMP;
  16126     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  16127 L_40009E38:
  16128     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  16129     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  16130 L_40009E3D:
  16131     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  16132     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  16133     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  16134     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16135     _flag_k = FK_CMP;
  16136     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  16137 L_40009E45:
  16138     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  16139     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  16140 L_40009E4A:
  16141     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  16142 L_40009E4C:
  16143     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  16144 L_40009E4F:
  16145     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  16146 L_40009E52:
  16147     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  16148     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  16149     PUSH32(esp, edx); /* 0x40009E58: push edx */
  16150     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  16151     RECOMP_FLAGS_IN();
  16152     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  16153     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  16154     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16155     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16156     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  16157     _flag_k = FK_ADD;
  16158     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16159     eax = eax - 1; /* 0x40009E67: dec eax */
  16160     _flag_k = FK_DEC;
  16161     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  16162     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  16163     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  16164     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  16165     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  16166     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  16167     esp = ebp; /* 0x40009E73: mov esp, ebp */
  16168     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  16169     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  16170     RECOMP_REGS_OUT();
  16171 }
  16172 
  16173 void sub_40009CEE(void) {
  16174     int _fpu_cmp = 0;
  16175     uint32_t _cf = 0;
  16176     int _df = 1;
  16177     uint32_t _flag_k = FK_NONE;
  16178     uint32_t _flag_a = 0, _flag_b = 0;
  16179     uint32_t _itail_tgt = 0;
  16180     RECOMP_REGS_LOCALS
  16181     RECOMP_ENTER(0x40009CEEu);
  16182 
  16183     goto L_40009CEE;
  16184 L_40009C04:
  16185     /* cmp MEM8(eax + 0x34), LO8(ebx) */ /* 0x40009C04: cmp byte ptr [eax + 0x34], bl */
  16186     _flag_a = (uint32_t)(MEM8(eax + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  16187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16188     _flag_k = FK_NARROW(FK_CMP, 24);
  16189     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E52; /* 0x40009C07: jne 0x40009e52 */
  16190 L_40009C0D:
  16191     edx = MEM32(eax + 0x4); /* 0x40009C0D: mov edx, dword ptr [eax + 4] */
  16192     ecx = MEM32(edx); /* 0x40009C10: mov ecx, dword ptr [edx] */
  16193     /* cmp eax, ecx */ /* 0x40009C12: cmp eax, ecx */
  16194     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  16195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16196     _flag_k = FK_CMP;
  16197     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C84; /* 0x40009C14: jne 0x40009c84 */
  16198 L_40009C16:
  16199     ecx = MEM32(edx + 0x8); /* 0x40009C16: mov ecx, dword ptr [edx + 8] */
  16200     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C19: mov dl, byte ptr [ecx + 0x34] */
  16201     /* test LO8(edx), LO8(edx) */ /* 0x40009C1C: test dl, dl */
  16202     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  16203     _cf = 0;
  16204     _flag_k = FK_NARROW(FK_TEST, 24);
  16205     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009C6B; /* 0x40009C1E: jne 0x40009c6b */
  16206 L_40009C20:
  16207     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C20: mov byte ptr [ecx + 0x34], bl */
  16208     ecx = MEM32(eax + 0x4); /* 0x40009C23: mov ecx, dword ptr [eax + 4] */
  16209     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C26: mov byte ptr [ecx + 0x34], 0 */
  16210     ecx = MEM32(eax + 0x4); /* 0x40009C2A: mov ecx, dword ptr [eax + 4] */
  16211     edx = MEM32(ecx + 0x8); /* 0x40009C2D: mov edx, dword ptr [ecx + 8] */
  16212     esi = MEM32(edx); /* 0x40009C30: mov esi, dword ptr [edx] */
  16213     MEM32(ecx + 0x8) = esi; /* 0x40009C32: mov dword ptr [ecx + 8], esi */
  16214     esi = MEM32(edx); /* 0x40009C35: mov esi, dword ptr [edx] */
  16215     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009C37: cmp esi, dword ptr [edi + 8] */
  16216     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16218     _flag_k = FK_CMP;
  16219     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009C3F; /* 0x40009C3A: je 0x40009c3f */
  16220 L_40009C3C:
  16221     MEM32(esi + 0x4) = ecx; /* 0x40009C3C: mov dword ptr [esi + 4], ecx */
  16222 L_40009C3F:
  16223     esi = MEM32(ecx + 0x4); /* 0x40009C3F: mov esi, dword ptr [ecx + 4] */
  16224     MEM32(edx + 0x4) = esi; /* 0x40009C42: mov dword ptr [edx + 4], esi */
  16225     esi = MEM32(edi + 0x4); /* 0x40009C45: mov esi, dword ptr [edi + 4] */
  16226     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009C48: cmp ecx, dword ptr [esi + 4] */
  16227     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16229     _flag_k = FK_CMP;
  16230     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C52; /* 0x40009C4B: jne 0x40009c52 */
  16231 L_40009C4D:
  16232     MEM32(esi + 0x4) = edx; /* 0x40009C4D: mov dword ptr [esi + 4], edx */
  16233     goto L_40009C60; /* 0x40009C50: jmp 0x40009c60 */
  16234 L_40009C52:
  16235     esi = MEM32(ecx + 0x4); /* 0x40009C52: mov esi, dword ptr [ecx + 4] */
  16236     /* cmp ecx, MEM32(esi) */ /* 0x40009C55: cmp ecx, dword ptr [esi] */
  16237     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  16238     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16239     _flag_k = FK_CMP;
  16240     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C5D; /* 0x40009C57: jne 0x40009c5d */
  16241 L_40009C59:
  16242     MEM32(esi) = edx; /* 0x40009C59: mov dword ptr [esi], edx */
  16243     goto L_40009C60; /* 0x40009C5B: jmp 0x40009c60 */
  16244 L_40009C5D:
  16245     MEM32(esi + 0x8) = edx; /* 0x40009C5D: mov dword ptr [esi + 8], edx */
  16246 L_40009C60:
  16247     MEM32(edx) = ecx; /* 0x40009C60: mov dword ptr [edx], ecx */
  16248     MEM32(ecx + 0x4) = edx; /* 0x40009C62: mov dword ptr [ecx + 4], edx */
  16249     edx = MEM32(eax + 0x4); /* 0x40009C65: mov edx, dword ptr [eax + 4] */
  16250     ecx = MEM32(edx + 0x8); /* 0x40009C68: mov ecx, dword ptr [edx + 8] */
  16251 L_40009C6B:
  16252     edx = MEM32(ecx); /* 0x40009C6B: mov edx, dword ptr [ecx] */
  16253     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C6D: cmp byte ptr [edx + 0x34], bl */
  16254     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  16255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16256     _flag_k = FK_NARROW(FK_CMP, 24);
  16257     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C70: jne 0x40009d06 */
  16258 L_40009C76:
  16259     edx = MEM32(ecx + 0x8); /* 0x40009C76: mov edx, dword ptr [ecx + 8] */
  16260     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009C79: cmp byte ptr [edx + 0x34], bl */
  16261     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  16262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16263     _flag_k = FK_NARROW(FK_CMP, 24);
  16264     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D06; /* 0x40009C7C: jne 0x40009d06 */
  16265 L_40009C82:
  16266     goto L_40009CEE; /* 0x40009C82: jmp 0x40009cee */
  16267 L_40009C84:
  16268     SET_LO8(edx, MEM8(ecx + 0x34)); /* 0x40009C84: mov dl, byte ptr [ecx + 0x34] */
  16269     /* test LO8(edx), LO8(edx) */ /* 0x40009C87: test dl, dl */
  16270     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  16271     _cf = 0;
  16272     _flag_k = FK_NARROW(FK_TEST, 24);
  16273     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009CD7; /* 0x40009C89: jne 0x40009cd7 */
  16274 L_40009C8B:
  16275     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009C8B: mov byte ptr [ecx + 0x34], bl */
  16276     ecx = MEM32(eax + 0x4); /* 0x40009C8E: mov ecx, dword ptr [eax + 4] */
  16277     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009C91: mov byte ptr [ecx + 0x34], 0 */
  16278     ecx = MEM32(eax + 0x4); /* 0x40009C95: mov ecx, dword ptr [eax + 4] */
  16279     edx = MEM32(ecx); /* 0x40009C98: mov edx, dword ptr [ecx] */
  16280     esi = MEM32(edx + 0x8); /* 0x40009C9A: mov esi, dword ptr [edx + 8] */
  16281     MEM32(ecx) = esi; /* 0x40009C9D: mov dword ptr [ecx], esi */
  16282     esi = MEM32(edx + 0x8); /* 0x40009C9F: mov esi, dword ptr [edx + 8] */
  16283     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009CA2: cmp esi, dword ptr [edi + 8] */
  16284     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16286     _flag_k = FK_CMP;
  16287     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009CAA; /* 0x40009CA5: je 0x40009caa */
  16288 L_40009CA7:
  16289     MEM32(esi + 0x4) = ecx; /* 0x40009CA7: mov dword ptr [esi + 4], ecx */
  16290 L_40009CAA:
  16291     esi = MEM32(ecx + 0x4); /* 0x40009CAA: mov esi, dword ptr [ecx + 4] */
  16292     MEM32(edx + 0x4) = esi; /* 0x40009CAD: mov dword ptr [edx + 4], esi */
  16293     esi = MEM32(edi + 0x4); /* 0x40009CB0: mov esi, dword ptr [edi + 4] */
  16294     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009CB3: cmp ecx, dword ptr [esi + 4] */
  16295     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16297     _flag_k = FK_CMP;
  16298     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CBD; /* 0x40009CB6: jne 0x40009cbd */
  16299 L_40009CB8:
  16300     MEM32(esi + 0x4) = edx; /* 0x40009CB8: mov dword ptr [esi + 4], edx */
  16301     goto L_40009CCC; /* 0x40009CBB: jmp 0x40009ccc */
  16302 L_40009CBD:
  16303     esi = MEM32(ecx + 0x4); /* 0x40009CBD: mov esi, dword ptr [ecx + 4] */
  16304     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009CC0: cmp ecx, dword ptr [esi + 8] */
  16305     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  16306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16307     _flag_k = FK_CMP;
  16308     if (CMP_NE(_flag_a, _flag_b)) goto L_40009CCA; /* 0x40009CC3: jne 0x40009cca */
  16309 L_40009CC5:
  16310     MEM32(esi + 0x8) = edx; /* 0x40009CC5: mov dword ptr [esi + 8], edx */
  16311     goto L_40009CCC; /* 0x40009CC8: jmp 0x40009ccc */
  16312 L_40009CCA:
  16313     MEM32(esi) = edx; /* 0x40009CCA: mov dword ptr [esi], edx */
  16314 L_40009CCC:
  16315     MEM32(edx + 0x8) = ecx; /* 0x40009CCC: mov dword ptr [edx + 8], ecx */
  16316     MEM32(ecx + 0x4) = edx; /* 0x40009CCF: mov dword ptr [ecx + 4], edx */
  16317     edx = MEM32(eax + 0x4); /* 0x40009CD2: mov edx, dword ptr [eax + 4] */
  16318     ecx = MEM32(edx); /* 0x40009CD5: mov ecx, dword ptr [edx] */
  16319 L_40009CD7:
  16320     edx = MEM32(ecx + 0x8); /* 0x40009CD7: mov edx, dword ptr [ecx + 8] */
  16321     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CDA: cmp byte ptr [edx + 0x34], bl */
  16322     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  16323     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16324     _flag_k = FK_NARROW(FK_CMP, 24);
  16325     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CDD: jne 0x40009db3 */
  16326 L_40009CE3:
  16327     edx = MEM32(ecx); /* 0x40009CE3: mov edx, dword ptr [ecx] */
  16328     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009CE5: cmp byte ptr [edx + 0x34], bl */
  16329     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  16330     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16331     _flag_k = FK_NARROW(FK_CMP, 24);
  16332     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DB3; /* 0x40009CE8: jne 0x40009db3 */
  16333 L_40009CEE:
  16334     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009CEE: mov byte ptr [ecx + 0x34], 0 */
  16335     ecx = MEM32(edi + 0x4); /* 0x40009CF2: mov ecx, dword ptr [edi + 4] */
  16336     eax = MEM32(eax + 0x4); /* 0x40009CF5: mov eax, dword ptr [eax + 4] */
  16337     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x40009CF8: cmp eax, dword ptr [ecx + 4] */
  16338     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  16339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16340     _flag_k = FK_CMP;
  16341     RECOMP_BACKEDGE();
  16342     if (CMP_NE(_flag_a, _flag_b)) goto L_40009C04; /* 0x40009CFB: jne 0x40009c04 */
  16343 L_40009D01:
  16344     goto L_40009E52; /* 0x40009D01: jmp 0x40009e52 */
  16345 L_40009D06:
  16346     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  16347     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  16348     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  16349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16350     _flag_k = FK_NARROW(FK_CMP, 24);
  16351     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  16352 L_40009D0E:
  16353     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  16354     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  16355     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  16356     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  16357     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  16358     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  16359     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  16360     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  16361     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16363     _flag_k = FK_CMP;
  16364     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  16365 L_40009D26:
  16366     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  16367 L_40009D29:
  16368     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  16369     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  16370     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  16371     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  16372     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16374     _flag_k = FK_CMP;
  16375     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  16376 L_40009D37:
  16377     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  16378     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  16379 L_40009D3C:
  16380     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  16381     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  16382     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  16383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16384     _flag_k = FK_CMP;
  16385     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  16386 L_40009D44:
  16387     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  16388     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  16389 L_40009D49:
  16390     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  16391 L_40009D4B:
  16392     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  16393     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  16394     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  16395     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  16396 L_40009D57:
  16397     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  16398     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  16399     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  16400     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  16401     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  16402     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  16403     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  16404     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  16405     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  16406     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  16407     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  16408     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  16409     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  16410     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16412     _flag_k = FK_CMP;
  16413     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  16414 L_40009D7E:
  16415     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  16416 L_40009D81:
  16417     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  16418     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  16419     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  16420     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  16421     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16423     _flag_k = FK_CMP;
  16424     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  16425 L_40009D8F:
  16426     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  16427     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  16428     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  16429 L_40009D99:
  16430     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  16431     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  16432     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  16433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16434     _flag_k = FK_CMP;
  16435     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  16436 L_40009DA0:
  16437     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  16438     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  16439     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  16440 L_40009DA9:
  16441     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  16442     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  16443     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  16444 L_40009DB3:
  16445     edx = MEM32(ecx); /* 0x40009DB3: mov edx, dword ptr [ecx] */
  16446     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009DB5: cmp byte ptr [edx + 0x34], bl */
  16447     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  16448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16449     _flag_k = FK_NARROW(FK_CMP, 24);
  16450     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E01; /* 0x40009DB8: jne 0x40009e01 */
  16451 L_40009DBA:
  16452     edx = MEM32(ecx + 0x8); /* 0x40009DBA: mov edx, dword ptr [ecx + 8] */
  16453     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009DBD: mov byte ptr [edx + 0x34], bl */
  16454     edx = MEM32(ecx + 0x8); /* 0x40009DC0: mov edx, dword ptr [ecx + 8] */
  16455     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009DC3: mov byte ptr [ecx + 0x34], 0 */
  16456     esi = MEM32(edx); /* 0x40009DC7: mov esi, dword ptr [edx] */
  16457     MEM32(ecx + 0x8) = esi; /* 0x40009DC9: mov dword ptr [ecx + 8], esi */
  16458     esi = MEM32(edx); /* 0x40009DCC: mov esi, dword ptr [edx] */
  16459     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009DCE: cmp esi, dword ptr [edi + 8] */
  16460     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16462     _flag_k = FK_CMP;
  16463     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009DD6; /* 0x40009DD1: je 0x40009dd6 */
  16464 L_40009DD3:
  16465     MEM32(esi + 0x4) = ecx; /* 0x40009DD3: mov dword ptr [esi + 4], ecx */
  16466 L_40009DD6:
  16467     esi = MEM32(ecx + 0x4); /* 0x40009DD6: mov esi, dword ptr [ecx + 4] */
  16468     MEM32(edx + 0x4) = esi; /* 0x40009DD9: mov dword ptr [edx + 4], esi */
  16469     esi = MEM32(edi + 0x4); /* 0x40009DDC: mov esi, dword ptr [edi + 4] */
  16470     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009DDF: cmp ecx, dword ptr [esi + 4] */
  16471     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16473     _flag_k = FK_CMP;
  16474     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DE9; /* 0x40009DE2: jne 0x40009de9 */
  16475 L_40009DE4:
  16476     MEM32(esi + 0x4) = edx; /* 0x40009DE4: mov dword ptr [esi + 4], edx */
  16477     goto L_40009DF7; /* 0x40009DE7: jmp 0x40009df7 */
  16478 L_40009DE9:
  16479     esi = MEM32(ecx + 0x4); /* 0x40009DE9: mov esi, dword ptr [ecx + 4] */
  16480     /* cmp ecx, MEM32(esi) */ /* 0x40009DEC: cmp ecx, dword ptr [esi] */
  16481     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  16482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16483     _flag_k = FK_CMP;
  16484     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DF4; /* 0x40009DEE: jne 0x40009df4 */
  16485 L_40009DF0:
  16486     MEM32(esi) = edx; /* 0x40009DF0: mov dword ptr [esi], edx */
  16487     goto L_40009DF7; /* 0x40009DF2: jmp 0x40009df7 */
  16488 L_40009DF4:
  16489     MEM32(esi + 0x8) = edx; /* 0x40009DF4: mov dword ptr [esi + 8], edx */
  16490 L_40009DF7:
  16491     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  16492     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  16493     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  16494     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  16495 L_40009E01:
  16496     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  16497     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  16498     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  16499     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  16500     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  16501     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  16502     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  16503     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  16504     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  16505     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  16506     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  16507     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  16508     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  16509     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16511     _flag_k = FK_CMP;
  16512     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  16513 L_40009E27:
  16514     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  16515 L_40009E2A:
  16516     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  16517     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  16518     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  16519     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  16520     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16522     _flag_k = FK_CMP;
  16523     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  16524 L_40009E38:
  16525     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  16526     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  16527 L_40009E3D:
  16528     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  16529     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  16530     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  16531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16532     _flag_k = FK_CMP;
  16533     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  16534 L_40009E45:
  16535     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  16536     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  16537 L_40009E4A:
  16538     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  16539 L_40009E4C:
  16540     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  16541 L_40009E4F:
  16542     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  16543 L_40009E52:
  16544     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  16545     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  16546     PUSH32(esp, edx); /* 0x40009E58: push edx */
  16547     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  16548     RECOMP_FLAGS_IN();
  16549     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  16550     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  16551     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16552     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16553     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  16554     _flag_k = FK_ADD;
  16555     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16556     eax = eax - 1; /* 0x40009E67: dec eax */
  16557     _flag_k = FK_DEC;
  16558     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  16559     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  16560     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  16561     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  16562     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  16563     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  16564     esp = ebp; /* 0x40009E73: mov esp, ebp */
  16565     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  16566     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  16567     RECOMP_REGS_OUT();
  16568 }
  16569 
  16570 void sub_40009D06(void) {
  16571     int _fpu_cmp = 0;
  16572     uint32_t _cf = 0;
  16573     int _df = 1;
  16574     uint32_t _flag_k = FK_NONE;
  16575     uint32_t _flag_a = 0, _flag_b = 0;
  16576     uint32_t _itail_tgt = 0;
  16577     RECOMP_REGS_LOCALS
  16578     RECOMP_ENTER(0x40009D06u);
  16579 
  16580 L_40009D06:
  16581     edx = MEM32(ecx + 0x8); /* 0x40009D06: mov edx, dword ptr [ecx + 8] */
  16582     /* cmp MEM8(edx + 0x34), LO8(ebx) */ /* 0x40009D09: cmp byte ptr [edx + 0x34], bl */
  16583     _flag_a = (uint32_t)(MEM8(edx + 0x34)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  16584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16585     _flag_k = FK_NARROW(FK_CMP, 24);
  16586     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D57; /* 0x40009D0C: jne 0x40009d57 */
  16587 L_40009D0E:
  16588     edx = MEM32(ecx); /* 0x40009D0E: mov edx, dword ptr [ecx] */
  16589     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D10: mov byte ptr [edx + 0x34], bl */
  16590     edx = MEM32(ecx); /* 0x40009D13: mov edx, dword ptr [ecx] */
  16591     MEM8(ecx + 0x34) = (uint8_t)(0); /* 0x40009D15: mov byte ptr [ecx + 0x34], 0 */
  16592     esi = MEM32(edx + 0x8); /* 0x40009D19: mov esi, dword ptr [edx + 8] */
  16593     MEM32(ecx) = esi; /* 0x40009D1C: mov dword ptr [ecx], esi */
  16594     esi = MEM32(edx + 0x8); /* 0x40009D1E: mov esi, dword ptr [edx + 8] */
  16595     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D21: cmp esi, dword ptr [edi + 8] */
  16596     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16598     _flag_k = FK_CMP;
  16599     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D29; /* 0x40009D24: je 0x40009d29 */
  16600 L_40009D26:
  16601     MEM32(esi + 0x4) = ecx; /* 0x40009D26: mov dword ptr [esi + 4], ecx */
  16602 L_40009D29:
  16603     esi = MEM32(ecx + 0x4); /* 0x40009D29: mov esi, dword ptr [ecx + 4] */
  16604     MEM32(edx + 0x4) = esi; /* 0x40009D2C: mov dword ptr [edx + 4], esi */
  16605     esi = MEM32(edi + 0x4); /* 0x40009D2F: mov esi, dword ptr [edi + 4] */
  16606     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D32: cmp ecx, dword ptr [esi + 4] */
  16607     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16609     _flag_k = FK_CMP;
  16610     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D3C; /* 0x40009D35: jne 0x40009d3c */
  16611 L_40009D37:
  16612     MEM32(esi + 0x4) = edx; /* 0x40009D37: mov dword ptr [esi + 4], edx */
  16613     goto L_40009D4B; /* 0x40009D3A: jmp 0x40009d4b */
  16614 L_40009D3C:
  16615     esi = MEM32(ecx + 0x4); /* 0x40009D3C: mov esi, dword ptr [ecx + 4] */
  16616     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009D3F: cmp ecx, dword ptr [esi + 8] */
  16617     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  16618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16619     _flag_k = FK_CMP;
  16620     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D49; /* 0x40009D42: jne 0x40009d49 */
  16621 L_40009D44:
  16622     MEM32(esi + 0x8) = edx; /* 0x40009D44: mov dword ptr [esi + 8], edx */
  16623     goto L_40009D4B; /* 0x40009D47: jmp 0x40009d4b */
  16624 L_40009D49:
  16625     MEM32(esi) = edx; /* 0x40009D49: mov dword ptr [esi], edx */
  16626 L_40009D4B:
  16627     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  16628     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  16629     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  16630     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  16631 L_40009D57:
  16632     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  16633     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  16634     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  16635     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  16636     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  16637     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  16638     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  16639     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  16640     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  16641     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  16642     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  16643     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  16644     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  16645     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16647     _flag_k = FK_CMP;
  16648     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  16649 L_40009D7E:
  16650     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  16651 L_40009D81:
  16652     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  16653     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  16654     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  16655     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  16656     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16658     _flag_k = FK_CMP;
  16659     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  16660 L_40009D8F:
  16661     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  16662     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  16663     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  16664 L_40009D99:
  16665     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  16666     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  16667     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  16668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16669     _flag_k = FK_CMP;
  16670     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  16671 L_40009DA0:
  16672     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  16673     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  16674     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  16675 L_40009DA9:
  16676     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  16677     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  16678     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  16679 L_40009E4F:
  16680     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  16681     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  16682     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  16683     PUSH32(esp, edx); /* 0x40009E58: push edx */
  16684     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  16685     RECOMP_FLAGS_IN();
  16686     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  16687     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  16688     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16689     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16690     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  16691     _flag_k = FK_ADD;
  16692     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16693     eax = eax - 1; /* 0x40009E67: dec eax */
  16694     _flag_k = FK_DEC;
  16695     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  16696     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  16697     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  16698     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  16699     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  16700     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  16701     esp = ebp; /* 0x40009E73: mov esp, ebp */
  16702     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  16703     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  16704     RECOMP_REGS_OUT();
  16705 }
  16706 
  16707 void sub_40009D4B(void) {
  16708     int _fpu_cmp = 0;
  16709     uint32_t _cf = 0;
  16710     int _df = 1;
  16711     uint32_t _flag_k = FK_NONE;
  16712     uint32_t _flag_a = 0, _flag_b = 0;
  16713     uint32_t _itail_tgt = 0;
  16714     RECOMP_REGS_LOCALS
  16715     RECOMP_ENTER(0x40009D4Bu);
  16716 
  16717 L_40009D4B:
  16718     MEM32(edx + 0x8) = ecx; /* 0x40009D4B: mov dword ptr [edx + 8], ecx */
  16719     MEM32(ecx + 0x4) = edx; /* 0x40009D4E: mov dword ptr [ecx + 4], edx */
  16720     ecx = MEM32(eax + 0x4); /* 0x40009D51: mov ecx, dword ptr [eax + 4] */
  16721     ecx = MEM32(ecx + 0x8); /* 0x40009D54: mov ecx, dword ptr [ecx + 8] */
  16722     edx = MEM32(eax + 0x4); /* 0x40009D57: mov edx, dword ptr [eax + 4] */
  16723     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009D5A: mov dl, byte ptr [edx + 0x34] */
  16724     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009D5D: mov byte ptr [ecx + 0x34], dl */
  16725     edx = MEM32(eax + 0x4); /* 0x40009D60: mov edx, dword ptr [eax + 4] */
  16726     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D63: mov byte ptr [edx + 0x34], bl */
  16727     ecx = MEM32(ecx + 0x8); /* 0x40009D66: mov ecx, dword ptr [ecx + 8] */
  16728     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009D69: mov byte ptr [ecx + 0x34], bl */
  16729     ecx = MEM32(eax + 0x4); /* 0x40009D6C: mov ecx, dword ptr [eax + 4] */
  16730     edx = MEM32(ecx + 0x8); /* 0x40009D6F: mov edx, dword ptr [ecx + 8] */
  16731     esi = MEM32(edx); /* 0x40009D72: mov esi, dword ptr [edx] */
  16732     MEM32(ecx + 0x8) = esi; /* 0x40009D74: mov dword ptr [ecx + 8], esi */
  16733     esi = MEM32(edx); /* 0x40009D77: mov esi, dword ptr [edx] */
  16734     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009D79: cmp esi, dword ptr [edi + 8] */
  16735     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16737     _flag_k = FK_CMP;
  16738     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009D81; /* 0x40009D7C: je 0x40009d81 */
  16739 L_40009D7E:
  16740     MEM32(esi + 0x4) = ecx; /* 0x40009D7E: mov dword ptr [esi + 4], ecx */
  16741 L_40009D81:
  16742     esi = MEM32(ecx + 0x4); /* 0x40009D81: mov esi, dword ptr [ecx + 4] */
  16743     MEM32(edx + 0x4) = esi; /* 0x40009D84: mov dword ptr [edx + 4], esi */
  16744     esi = MEM32(edi + 0x4); /* 0x40009D87: mov esi, dword ptr [edi + 4] */
  16745     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009D8A: cmp ecx, dword ptr [esi + 4] */
  16746     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16748     _flag_k = FK_CMP;
  16749     if (CMP_NE(_flag_a, _flag_b)) goto L_40009D99; /* 0x40009D8D: jne 0x40009d99 */
  16750 L_40009D8F:
  16751     MEM32(esi + 0x4) = edx; /* 0x40009D8F: mov dword ptr [esi + 4], edx */
  16752     MEM32(edx) = ecx; /* 0x40009D92: mov dword ptr [edx], ecx */
  16753     goto L_40009E4F; /* 0x40009D94: jmp 0x40009e4f */
  16754 L_40009D99:
  16755     esi = MEM32(ecx + 0x4); /* 0x40009D99: mov esi, dword ptr [ecx + 4] */
  16756     /* cmp ecx, MEM32(esi) */ /* 0x40009D9C: cmp ecx, dword ptr [esi] */
  16757     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  16758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16759     _flag_k = FK_CMP;
  16760     if (CMP_NE(_flag_a, _flag_b)) goto L_40009DA9; /* 0x40009D9E: jne 0x40009da9 */
  16761 L_40009DA0:
  16762     MEM32(esi) = edx; /* 0x40009DA0: mov dword ptr [esi], edx */
  16763     MEM32(edx) = ecx; /* 0x40009DA2: mov dword ptr [edx], ecx */
  16764     goto L_40009E4F; /* 0x40009DA4: jmp 0x40009e4f */
  16765 L_40009DA9:
  16766     MEM32(esi + 0x8) = edx; /* 0x40009DA9: mov dword ptr [esi + 8], edx */
  16767     MEM32(edx) = ecx; /* 0x40009DAC: mov dword ptr [edx], ecx */
  16768     goto L_40009E4F; /* 0x40009DAE: jmp 0x40009e4f */
  16769 L_40009E4F:
  16770     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  16771     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  16772     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  16773     PUSH32(esp, edx); /* 0x40009E58: push edx */
  16774     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  16775     RECOMP_FLAGS_IN();
  16776     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  16777     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  16778     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16779     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16780     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  16781     _flag_k = FK_ADD;
  16782     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16783     eax = eax - 1; /* 0x40009E67: dec eax */
  16784     _flag_k = FK_DEC;
  16785     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  16786     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  16787     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  16788     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  16789     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  16790     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  16791     esp = ebp; /* 0x40009E73: mov esp, ebp */
  16792     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  16793     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  16794     RECOMP_REGS_OUT();
  16795 }
  16796 
  16797 void sub_40009DF7(void) {
  16798     int _fpu_cmp = 0;
  16799     uint32_t _cf = 0;
  16800     int _df = 1;
  16801     uint32_t _flag_k = FK_NONE;
  16802     uint32_t _flag_a = 0, _flag_b = 0;
  16803     uint32_t _itail_tgt = 0;
  16804     RECOMP_REGS_LOCALS
  16805     RECOMP_ENTER(0x40009DF7u);
  16806 
  16807 L_40009DF7:
  16808     MEM32(edx) = ecx; /* 0x40009DF7: mov dword ptr [edx], ecx */
  16809     MEM32(ecx + 0x4) = edx; /* 0x40009DF9: mov dword ptr [ecx + 4], edx */
  16810     ecx = MEM32(eax + 0x4); /* 0x40009DFC: mov ecx, dword ptr [eax + 4] */
  16811     ecx = MEM32(ecx); /* 0x40009DFF: mov ecx, dword ptr [ecx] */
  16812     edx = MEM32(eax + 0x4); /* 0x40009E01: mov edx, dword ptr [eax + 4] */
  16813     SET_LO8(edx, MEM8(edx + 0x34)); /* 0x40009E04: mov dl, byte ptr [edx + 0x34] */
  16814     MEM8(ecx + 0x34) = (uint8_t)(LO8(edx)); /* 0x40009E07: mov byte ptr [ecx + 0x34], dl */
  16815     edx = MEM32(eax + 0x4); /* 0x40009E0A: mov edx, dword ptr [eax + 4] */
  16816     MEM8(edx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E0D: mov byte ptr [edx + 0x34], bl */
  16817     ecx = MEM32(ecx); /* 0x40009E10: mov ecx, dword ptr [ecx] */
  16818     MEM8(ecx + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E12: mov byte ptr [ecx + 0x34], bl */
  16819     ecx = MEM32(eax + 0x4); /* 0x40009E15: mov ecx, dword ptr [eax + 4] */
  16820     edx = MEM32(ecx); /* 0x40009E18: mov edx, dword ptr [ecx] */
  16821     esi = MEM32(edx + 0x8); /* 0x40009E1A: mov esi, dword ptr [edx + 8] */
  16822     MEM32(ecx) = esi; /* 0x40009E1D: mov dword ptr [ecx], esi */
  16823     esi = MEM32(edx + 0x8); /* 0x40009E1F: mov esi, dword ptr [edx + 8] */
  16824     /* cmp esi, MEM32(edi + 0x8) */ /* 0x40009E22: cmp esi, dword ptr [edi + 8] */
  16825     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  16826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16827     _flag_k = FK_CMP;
  16828     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009E2A; /* 0x40009E25: je 0x40009e2a */
  16829 L_40009E27:
  16830     MEM32(esi + 0x4) = ecx; /* 0x40009E27: mov dword ptr [esi + 4], ecx */
  16831 L_40009E2A:
  16832     esi = MEM32(ecx + 0x4); /* 0x40009E2A: mov esi, dword ptr [ecx + 4] */
  16833     MEM32(edx + 0x4) = esi; /* 0x40009E2D: mov dword ptr [edx + 4], esi */
  16834     esi = MEM32(edi + 0x4); /* 0x40009E30: mov esi, dword ptr [edi + 4] */
  16835     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x40009E33: cmp ecx, dword ptr [esi + 4] */
  16836     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  16837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16838     _flag_k = FK_CMP;
  16839     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E3D; /* 0x40009E36: jne 0x40009e3d */
  16840 L_40009E38:
  16841     MEM32(esi + 0x4) = edx; /* 0x40009E38: mov dword ptr [esi + 4], edx */
  16842     goto L_40009E4C; /* 0x40009E3B: jmp 0x40009e4c */
  16843 L_40009E3D:
  16844     esi = MEM32(ecx + 0x4); /* 0x40009E3D: mov esi, dword ptr [ecx + 4] */
  16845     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x40009E40: cmp ecx, dword ptr [esi + 8] */
  16846     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  16847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  16848     _flag_k = FK_CMP;
  16849     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E4A; /* 0x40009E43: jne 0x40009e4a */
  16850 L_40009E45:
  16851     MEM32(esi + 0x8) = edx; /* 0x40009E45: mov dword ptr [esi + 8], edx */
  16852     goto L_40009E4C; /* 0x40009E48: jmp 0x40009e4c */
  16853 L_40009E4A:
  16854     MEM32(esi) = edx; /* 0x40009E4A: mov dword ptr [esi], edx */
  16855 L_40009E4C:
  16856     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  16857     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  16858     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  16859     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  16860     PUSH32(esp, edx); /* 0x40009E58: push edx */
  16861     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  16862     RECOMP_FLAGS_IN();
  16863     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  16864     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  16865     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16866     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16867     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  16868     _flag_k = FK_ADD;
  16869     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16870     eax = eax - 1; /* 0x40009E67: dec eax */
  16871     _flag_k = FK_DEC;
  16872     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  16873     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  16874     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  16875     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  16876     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  16877     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  16878     esp = ebp; /* 0x40009E73: mov esp, ebp */
  16879     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  16880     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  16881     RECOMP_REGS_OUT();
  16882 }
  16883 
  16884 void sub_40009E4C(void) {
  16885     int _fpu_cmp = 0;
  16886     uint32_t _cf = 0;
  16887     int _df = 1;
  16888     uint32_t _flag_k = FK_NONE;
  16889     uint32_t _flag_a = 0, _flag_b = 0;
  16890     uint32_t _itail_tgt = 0;
  16891     RECOMP_REGS_LOCALS
  16892     RECOMP_ENTER(0x40009E4Cu);
  16893 
  16894 L_40009E4C:
  16895     MEM32(edx + 0x8) = ecx; /* 0x40009E4C: mov dword ptr [edx + 8], ecx */
  16896     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  16897     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  16898     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  16899     PUSH32(esp, edx); /* 0x40009E58: push edx */
  16900     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  16901     RECOMP_FLAGS_IN();
  16902     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  16903     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  16904     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16905     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16906     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  16907     _flag_k = FK_ADD;
  16908     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16909     eax = eax - 1; /* 0x40009E67: dec eax */
  16910     _flag_k = FK_DEC;
  16911     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  16912     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  16913     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  16914     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  16915     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  16916     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  16917     esp = ebp; /* 0x40009E73: mov esp, ebp */
  16918     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  16919     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  16920     RECOMP_REGS_OUT();
  16921 }
  16922 
  16923 void sub_40009E4F(void) {
  16924     int _fpu_cmp = 0;
  16925     uint32_t _cf = 0;
  16926     int _df = 1;
  16927     uint32_t _flag_k = FK_NONE;
  16928     uint32_t _flag_a = 0, _flag_b = 0;
  16929     uint32_t _itail_tgt = 0;
  16930     RECOMP_REGS_LOCALS
  16931     RECOMP_ENTER(0x40009E4Fu);
  16932 
  16933 L_40009E4F:
  16934     MEM32(ecx + 0x4) = edx; /* 0x40009E4F: mov dword ptr [ecx + 4], edx */
  16935     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  16936     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  16937     PUSH32(esp, edx); /* 0x40009E58: push edx */
  16938     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  16939     RECOMP_FLAGS_IN();
  16940     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  16941     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  16942     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16943     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16944     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  16945     _flag_k = FK_ADD;
  16946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16947     eax = eax - 1; /* 0x40009E67: dec eax */
  16948     _flag_k = FK_DEC;
  16949     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  16950     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  16951     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  16952     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  16953     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  16954     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  16955     esp = ebp; /* 0x40009E73: mov esp, ebp */
  16956     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  16957     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  16958     RECOMP_REGS_OUT();
  16959 }
  16960 
  16961 void sub_40009E52(void) {
  16962     int _fpu_cmp = 0;
  16963     uint32_t _cf = 0;
  16964     int _df = 1;
  16965     uint32_t _flag_k = FK_NONE;
  16966     uint32_t _flag_a = 0, _flag_b = 0;
  16967     uint32_t _itail_tgt = 0;
  16968     RECOMP_REGS_LOCALS
  16969     RECOMP_ENTER(0x40009E52u);
  16970 
  16971 L_40009E52:
  16972     MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x40009E52: mov byte ptr [eax + 0x34], bl */
  16973     edx = MEM32(ebp + (-0x4)); /* 0x40009E55: mov edx, dword ptr [ebp - 4] */
  16974     PUSH32(esp, edx); /* 0x40009E58: push edx */
  16975     RECOMP_ICALL(0x400146F2u); /* 0x40009E59: call 0x400146f2 */ /* not lifted */
  16976     RECOMP_FLAGS_IN();
  16977     eax = MEM32(edi + 0x10); /* 0x40009E5E: mov eax, dword ptr [edi + 0x10] */
  16978     ecx = MEM32(ebp + 0xC); /* 0x40009E61: mov ecx, dword ptr [ebp + 0xc] */
  16979     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  16980     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  16981     esp = esp + 4; /* 0x40009E64: add esp, 4 */
  16982     _flag_k = FK_ADD;
  16983     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  16984     eax = eax - 1; /* 0x40009E67: dec eax */
  16985     _flag_k = FK_DEC;
  16986     MEM32(edi + 0x10) = eax; /* 0x40009E68: mov dword ptr [edi + 0x10], eax */
  16987     eax = MEM32(ebp + 0x8); /* 0x40009E6B: mov eax, dword ptr [ebp + 8] */
  16988     edi = POP32_VAL(esp); /* 0x40009E6E: pop edi */
  16989     esi = POP32_VAL(esp); /* 0x40009E6F: pop esi */
  16990     MEM32(eax) = ecx; /* 0x40009E70: mov dword ptr [eax], ecx */
  16991     ebx = POP32_VAL(esp); /* 0x40009E72: pop ebx */
  16992     esp = ebp; /* 0x40009E73: mov esp, ebp */
  16993     ebp = POP32_VAL(esp); /* 0x40009E75: pop ebp */
  16994     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009E76: ret 8 */
  16995     RECOMP_REGS_OUT();
  16996 }
  16997 
  16998 void sub_40009E80(void) {
  16999     int _fpu_cmp = 0;
  17000     uint32_t _cf = 0;
  17001     int _df = 1;
  17002     uint32_t _flag_k = FK_NONE;
  17003     uint32_t _flag_a = 0, _flag_b = 0;
  17004     uint32_t _itail_tgt = 0;
  17005     RECOMP_REGS_LOCALS
  17006     RECOMP_ENTER(0x40009E80u);
  17007 
  17008 L_40009E80:
  17009     PUSH32(esp, ebp); /* 0x40009E80: push ebp */
  17010     ebp = esp; /* 0x40009E81: mov ebp, esp */
  17011     PUSH32(esp, ebx); /* 0x40009E83: push ebx */
  17012     PUSH32(esp, esi); /* 0x40009E84: push esi */
  17013     ebx = ecx; /* 0x40009E85: mov ebx, ecx */
  17014     eax = MEM32(ebx + 0x8); /* 0x40009E87: mov eax, dword ptr [ebx + 8] */
  17015     PUSH32(esp, edi); /* 0x40009E8A: push edi */
  17016     edi = MEM32(ebp + 0x8); /* 0x40009E8B: mov edi, dword ptr [ebp + 8] */
  17017     /* cmp edi, eax */ /* 0x40009E8E: cmp edi, eax */
  17018     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  17019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17020     _flag_k = FK_CMP;
  17021     esi = edi; /* 0x40009E90: mov esi, edi */
  17022     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009EB3; /* 0x40009E92: je 0x40009eb3 */
  17023 L_40009E94:
  17024     eax = MEM32(esi + 0x8); /* 0x40009E94: mov eax, dword ptr [esi + 8] */
  17025     PUSH32(esp, eax); /* 0x40009E97: push eax */
  17026     ecx = ebx; /* 0x40009E98: mov ecx, ebx */
  17027     RECOMP_ICALL(0x40009E80u); /* 0x40009E9A: call 0x40009e80 */ /* not lifted */
  17028     RECOMP_FLAGS_IN();
  17029     esi = MEM32(esi); /* 0x40009E9F: mov esi, dword ptr [esi] */
  17030     PUSH32(esp, edi); /* 0x40009EA1: push edi */
  17031     RECOMP_ICALL(0x400146F2u); /* 0x40009EA2: call 0x400146f2 */ /* not lifted */
  17032     RECOMP_FLAGS_IN();
  17033     eax = MEM32(ebx + 0x8); /* 0x40009EA7: mov eax, dword ptr [ebx + 8] */
  17034     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17035     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17036     esp = esp + 4; /* 0x40009EAA: add esp, 4 */
  17037     _flag_k = FK_ADD;
  17038     /* cmp esi, eax */ /* 0x40009EAD: cmp esi, eax */
  17039     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  17040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17041     _flag_k = FK_CMP;
  17042     edi = esi; /* 0x40009EAF: mov edi, esi */
  17043     RECOMP_BACKEDGE();
  17044     if (CMP_NE(_flag_a, _flag_b)) goto L_40009E94; /* 0x40009EB1: jne 0x40009e94 */
  17045 L_40009EB3:
  17046     edi = POP32_VAL(esp); /* 0x40009EB3: pop edi */
  17047     esi = POP32_VAL(esp); /* 0x40009EB4: pop esi */
  17048     ebx = POP32_VAL(esp); /* 0x40009EB5: pop ebx */
  17049     ebp = POP32_VAL(esp); /* 0x40009EB6: pop ebp */
  17050     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40009EB7: ret 4 */
  17051     RECOMP_REGS_OUT();
  17052 }
  17053 
  17054 void sub_40009EC0(void) {
  17055     int _fpu_cmp = 0;
  17056     uint32_t _cf = 0;
  17057     int _df = 1;
  17058     uint32_t _flag_k = FK_NONE;
  17059     uint32_t _flag_a = 0, _flag_b = 0;
  17060     uint32_t _itail_tgt = 0;
  17061     RECOMP_REGS_LOCALS
  17062     RECOMP_ENTER(0x40009EC0u);
  17063 
  17064 L_40009EC0:
  17065     PUSH32(esp, ebp); /* 0x40009EC0: push ebp */
  17066     ebp = esp; /* 0x40009EC1: mov ebp, esp */
  17067     edx = MEM32(ecx + 0x4); /* 0x40009EC3: mov edx, dword ptr [ecx + 4] */
  17068     eax = MEM32(edx + 0x4); /* 0x40009EC6: mov eax, dword ptr [edx + 4] */
  17069     PUSH32(esp, edi); /* 0x40009EC9: push edi */
  17070     edi = MEM32(ecx + 0x8); /* 0x40009ECA: mov edi, dword ptr [ecx + 8] */
  17071     /* cmp eax, edi */ /* 0x40009ECD: cmp eax, edi */
  17072     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  17073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17074     _flag_k = FK_CMP;
  17075     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009F0A; /* 0x40009ECF: je 0x40009f0a */
  17076 L_40009ED1:
  17077     PUSH32(esp, ebx); /* 0x40009ED1: push ebx */
  17078     ebx = MEM32(ebp + 0xC); /* 0x40009ED2: mov ebx, dword ptr [ebp + 0xc] */
  17079     PUSH32(esp, esi); /* 0x40009ED5: push esi */
  17080     esi = MEM32(ebx); /* 0x40009ED6: mov esi, dword ptr [ebx] */
  17081 L_40009ED8:
  17082     ecx = MEM32(eax + 0xC); /* 0x40009ED8: mov ecx, dword ptr [eax + 0xc] */
  17083     /* cmp ecx, esi */ /* 0x40009EDB: cmp ecx, esi */
  17084     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
  17085     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17086     _flag_k = FK_CMP;
  17087     if (CMP_NE(_flag_a, _flag_b)) goto L_40009EEA; /* 0x40009EDD: jne 0x40009eea */
  17088 L_40009EDF:
  17089     ecx = MEM32(eax + 0x10); /* 0x40009EDF: mov ecx, dword ptr [eax + 0x10] */
  17090     /* cmp ecx, MEM32(ebx + 0x4) */ /* 0x40009EE2: cmp ecx, dword ptr [ebx + 4] */
  17091     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x4));
  17092     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17093     _flag_k = FK_CMP;
  17094     SET_LO8(ecx, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x40009EE5: setb cl */
  17095     goto L_40009EED; /* 0x40009EE8: jmp 0x40009eed */
  17096 L_40009EEA:
  17097     SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x40009EEA: setl cl */
  17098 L_40009EED:
  17099     /* test LO8(ecx), LO8(ecx) */ /* 0x40009EED: test cl, cl */
  17100     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  17101     _cf = 0;
  17102     _flag_k = FK_NARROW(FK_TEST, 24);
  17103     if (TEST_Z(_flag_a, _flag_b)) goto L_40009EF6; /* 0x40009EEF: je 0x40009ef6 */
  17104 L_40009EF1:
  17105     eax = MEM32(eax + 0x8); /* 0x40009EF1: mov eax, dword ptr [eax + 8] */
  17106     goto L_40009EFA; /* 0x40009EF4: jmp 0x40009efa */
  17107 L_40009EF6:
  17108     edx = eax; /* 0x40009EF6: mov edx, eax */
  17109     eax = MEM32(eax); /* 0x40009EF8: mov eax, dword ptr [eax] */
  17110 L_40009EFA:
  17111     /* cmp eax, edi */ /* 0x40009EFA: cmp eax, edi */
  17112     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  17113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17114     _flag_k = FK_CMP;
  17115     RECOMP_BACKEDGE();
  17116     if (CMP_NE(_flag_a, _flag_b)) goto L_40009ED8; /* 0x40009EFC: jne 0x40009ed8 */
  17117 L_40009EFE:
  17118     eax = MEM32(ebp + 0x8); /* 0x40009EFE: mov eax, dword ptr [ebp + 8] */
  17119     esi = POP32_VAL(esp); /* 0x40009F01: pop esi */
  17120     ebx = POP32_VAL(esp); /* 0x40009F02: pop ebx */
  17121     MEM32(eax) = edx; /* 0x40009F03: mov dword ptr [eax], edx */
  17122     edi = POP32_VAL(esp); /* 0x40009F05: pop edi */
  17123     ebp = POP32_VAL(esp); /* 0x40009F06: pop ebp */
  17124     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009F07: ret 8 */
  17125 L_40009F0A:
  17126     eax = MEM32(ebp + 0x8); /* 0x40009F0A: mov eax, dword ptr [ebp + 8] */
  17127     MEM32(eax) = edx; /* 0x40009F0D: mov dword ptr [eax], edx */
  17128     edi = POP32_VAL(esp); /* 0x40009F0F: pop edi */
  17129     ebp = POP32_VAL(esp); /* 0x40009F10: pop ebp */
  17130     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40009F11: ret 8 */
  17131     RECOMP_REGS_OUT();
  17132 }
  17133 
  17134 void sub_40009F20(void) {
  17135     int _fpu_cmp = 0;
  17136     uint32_t _cf = 0;
  17137     int _df = 1;
  17138     uint32_t _flag_k = FK_NONE;
  17139     uint32_t _flag_a = 0, _flag_b = 0;
  17140     uint32_t _itail_tgt = 0;
  17141     RECOMP_REGS_LOCALS
  17142     RECOMP_ENTER(0x40009F20u);
  17143 
  17144 L_40009F20:
  17145     PUSH32(esp, ebp); /* 0x40009F20: push ebp */
  17146     ebp = esp; /* 0x40009F21: mov ebp, esp */
  17147     PUSH32(esp, ebx); /* 0x40009F23: push ebx */
  17148     PUSH32(esp, esi); /* 0x40009F24: push esi */
  17149     ebx = ecx; /* 0x40009F25: mov ebx, ecx */
  17150     eax = MEM32(ebx + 0x8); /* 0x40009F27: mov eax, dword ptr [ebx + 8] */
  17151     PUSH32(esp, edi); /* 0x40009F2A: push edi */
  17152     edi = MEM32(ebp + 0x8); /* 0x40009F2B: mov edi, dword ptr [ebp + 8] */
  17153     /* cmp edi, eax */ /* 0x40009F2E: cmp edi, eax */
  17154     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  17155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17156     _flag_k = FK_CMP;
  17157     esi = edi; /* 0x40009F30: mov esi, edi */
  17158     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009F53; /* 0x40009F32: je 0x40009f53 */
  17159 L_40009F34:
  17160     eax = MEM32(esi + 0x8); /* 0x40009F34: mov eax, dword ptr [esi + 8] */
  17161     PUSH32(esp, eax); /* 0x40009F37: push eax */
  17162     ecx = ebx; /* 0x40009F38: mov ecx, ebx */
  17163     RECOMP_ICALL(0x40009F20u); /* 0x40009F3A: call 0x40009f20 */ /* not lifted */
  17164     RECOMP_FLAGS_IN();
  17165     esi = MEM32(esi); /* 0x40009F3F: mov esi, dword ptr [esi] */
  17166     PUSH32(esp, edi); /* 0x40009F41: push edi */
  17167     RECOMP_ICALL(0x400146F2u); /* 0x40009F42: call 0x400146f2 */ /* not lifted */
  17168     RECOMP_FLAGS_IN();
  17169     eax = MEM32(ebx + 0x8); /* 0x40009F47: mov eax, dword ptr [ebx + 8] */
  17170     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  17171     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17172     esp = esp + 4; /* 0x40009F4A: add esp, 4 */
  17173     _flag_k = FK_ADD;
  17174     /* cmp esi, eax */ /* 0x40009F4D: cmp esi, eax */
  17175     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  17176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17177     _flag_k = FK_CMP;
  17178     edi = esi; /* 0x40009F4F: mov edi, esi */
  17179     RECOMP_BACKEDGE();
  17180     if (CMP_NE(_flag_a, _flag_b)) goto L_40009F34; /* 0x40009F51: jne 0x40009f34 */
  17181 L_40009F53:
  17182     edi = POP32_VAL(esp); /* 0x40009F53: pop edi */
  17183     esi = POP32_VAL(esp); /* 0x40009F54: pop esi */
  17184     ebx = POP32_VAL(esp); /* 0x40009F55: pop ebx */
  17185     ebp = POP32_VAL(esp); /* 0x40009F56: pop ebp */
  17186     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40009F57: ret 4 */
  17187     RECOMP_REGS_OUT();
  17188 }
  17189 
  17190 void sub_40009F60(void) {
  17191     int _fpu_cmp = 0;
  17192     uint32_t _cf = 0;
  17193     int _df = 1;
  17194     uint32_t _flag_k = FK_NONE;
  17195     uint32_t _flag_a = 0, _flag_b = 0;
  17196     uint32_t _itail_tgt = 0;
  17197     RECOMP_REGS_LOCALS
  17198     RECOMP_ENTER(0x40009F60u);
  17199 
  17200 L_40009F60:
  17201     PUSH32(esp, ebp); /* 0x40009F60: push ebp */
  17202     ebp = esp; /* 0x40009F61: mov ebp, esp */
  17203     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  17204     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17205     esp = esp - 0xCu; /* 0x40009F63: sub esp, 0xc */
  17206     _flag_k = FK_CMP;
  17207     PUSH32(esp, ebx); /* 0x40009F66: push ebx */
  17208     PUSH32(esp, esi); /* 0x40009F67: push esi */
  17209     PUSH32(esp, edi); /* 0x40009F68: push edi */
  17210     edi = ecx; /* 0x40009F69: mov edi, ecx */
  17211     esi = MEM32(edi + 0x4); /* 0x40009F6B: mov esi, dword ptr [edi + 4] */
  17212     ebx = MEM32(esi + 0x4); /* 0x40009F6E: mov ebx, dword ptr [esi + 4] */
  17213     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x40009F71: cmp ebx, dword ptr [edi + 8] */
  17214     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  17215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17216     _flag_k = FK_CMP;
  17217     SET_LO8(eax, 1); /* 0x40009F74: mov al, 1 */
  17218     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009F96; /* 0x40009F76: je 0x40009f96 */
  17219 L_40009F78:
  17220     ecx = MEM32(ebp + 0xC); /* 0x40009F78: mov ecx, dword ptr [ebp + 0xc] */
  17221     eax = ebx + 0xC; /* 0x40009F7B: lea eax, [ebx + 0xc] */
  17222     PUSH32(esp, eax); /* 0x40009F7E: push eax */
  17223     esi = ebx; /* 0x40009F7F: mov esi, ebx */
  17224     RECOMP_ICALL(0x400015C0u); /* 0x40009F81: call 0x400015c0 */ /* not lifted */
  17225     RECOMP_FLAGS_IN();
  17226     /* test LO8(eax), LO8(eax) */ /* 0x40009F86: test al, al */
  17227     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17228     _cf = 0;
  17229     _flag_k = FK_NARROW(FK_TEST, 24);
  17230     if (TEST_Z(_flag_a, _flag_b)) goto L_40009F8E; /* 0x40009F88: je 0x40009f8e */
  17231 L_40009F8A:
  17232     ebx = MEM32(ebx); /* 0x40009F8A: mov ebx, dword ptr [ebx] */
  17233     goto L_40009F91; /* 0x40009F8C: jmp 0x40009f91 */
  17234 L_40009F8E:
  17235     ebx = MEM32(ebx + 0x8); /* 0x40009F8E: mov ebx, dword ptr [ebx + 8] */
  17236 L_40009F91:
  17237     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x40009F91: cmp ebx, dword ptr [edi + 8] */
  17238     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  17239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17240     _flag_k = FK_CMP;
  17241     RECOMP_BACKEDGE();
  17242     if (CMP_NE(_flag_a, _flag_b)) goto L_40009F78; /* 0x40009F94: jne 0x40009f78 */
  17243 L_40009F96:
  17244     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x40009F96: mov cl, byte ptr [edi + 0xc] */
  17245     /* test LO8(ecx), LO8(ecx) */ /* 0x40009F99: test cl, cl */
  17246     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  17247     _cf = 0;
  17248     _flag_k = FK_NARROW(FK_TEST, 24);
  17249     if (TEST_Z(_flag_a, _flag_b)) goto L_4000A117; /* 0x40009F9B: je 0x4000a117 */
  17250 L_40009FA1:
  17251     PUSH32(esp, 0); /* 0x40009FA1: push 0 */
  17252     PUSH32(esp, esi); /* 0x40009FA3: push esi */
  17253     ecx = edi; /* 0x40009FA4: mov ecx, edi */
  17254     RECOMP_ICALL(0x4000B930u); /* 0x40009FA6: call 0x4000b930 */ /* not lifted */
  17255     RECOMP_FLAGS_IN();
  17256     ecx = MEM32(edi + 0x8); /* 0x40009FAB: mov ecx, dword ptr [edi + 8] */
  17257     MEM32(eax) = ecx; /* 0x40009FAE: mov dword ptr [eax], ecx */
  17258     edx = MEM32(edi + 0x8); /* 0x40009FB0: mov edx, dword ptr [edi + 8] */
  17259     ecx = MEM32(ebp + 0xC); /* 0x40009FB3: mov ecx, dword ptr [ebp + 0xc] */
  17260     MEM32(ebp + (-0x4)) = eax; /* 0x40009FB6: mov dword ptr [ebp - 4], eax */
  17261     MEM32(eax + 0x8) = edx; /* 0x40009FB9: mov dword ptr [eax + 8], edx */
  17262     PUSH32(esp, ecx); /* 0x40009FBC: push ecx */
  17263     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  17264     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17265     eax = eax + 0xCu; /* 0x40009FBD: add eax, 0xc */
  17266     _flag_k = FK_ADD;
  17267     PUSH32(esp, eax); /* 0x40009FC0: push eax */
  17268     RECOMP_ICALL(0x4000FC40u); /* 0x40009FC1: call 0x4000fc40 */ /* not lifted */
  17269     RECOMP_FLAGS_IN();
  17270     ecx = MEM32(edi + 0x10); /* 0x40009FC6: mov ecx, dword ptr [edi + 0x10] */
  17271     eax = MEM32(edi + 0x4); /* 0x40009FC9: mov eax, dword ptr [edi + 4] */
  17272     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  17273     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  17274     esp = esp + 8; /* 0x40009FCC: add esp, 8 */
  17275     _flag_k = FK_ADD;
  17276     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  17277     ecx = ecx + 1; /* 0x40009FCF: inc ecx */
  17278     _flag_k = FK_INC;
  17279     /* cmp esi, eax */ /* 0x40009FD0: cmp esi, eax */
  17280     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  17281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17282     _flag_k = FK_CMP;
  17283     MEM32(edi + 0x10) = ecx; /* 0x40009FD2: mov dword ptr [edi + 0x10], ecx */
  17284     if (CMP_EQ(_flag_a, _flag_b)) goto L_40009FFF; /* 0x40009FD5: je 0x40009fff */
  17285 L_40009FD7:
  17286     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x40009FD7: cmp ebx, dword ptr [edi + 8] */
  17287     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  17288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17289     _flag_k = FK_CMP;
  17290     if (CMP_NE(_flag_a, _flag_b)) goto L_40009FFF; /* 0x40009FDA: jne 0x40009fff */
  17291 L_40009FDC:
  17292     ecx = MEM32(ebp + 0xC); /* 0x40009FDC: mov ecx, dword ptr [ebp + 0xc] */
  17293     edx = esi + 0xC; /* 0x40009FDF: lea edx, [esi + 0xc] */
  17294     PUSH32(esp, edx); /* 0x40009FE2: push edx */
  17295     RECOMP_ICALL(0x400015C0u); /* 0x40009FE3: call 0x400015c0 */ /* not lifted */
  17296     RECOMP_FLAGS_IN();
  17297     /* test LO8(eax), LO8(eax) */ /* 0x40009FE8: test al, al */
  17298     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17299     _cf = 0;
  17300     _flag_k = FK_NARROW(FK_TEST, 24);
  17301     if (TEST_NZ(_flag_a, _flag_b)) goto L_40009FFF; /* 0x40009FEA: jne 0x40009fff */
  17302 L_40009FEC:
  17303     ebx = MEM32(ebp + (-0x4)); /* 0x40009FEC: mov ebx, dword ptr [ebp - 4] */
  17304     MEM32(esi + 0x8) = ebx; /* 0x40009FEF: mov dword ptr [esi + 8], ebx */
  17305     eax = MEM32(edi + 0x4); /* 0x40009FF2: mov eax, dword ptr [edi + 4] */
  17306     /* cmp esi, MEM32(eax + 0x8) */ /* 0x40009FF5: cmp esi, dword ptr [eax + 8] */
  17307     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  17308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17309     _flag_k = FK_CMP;
  17310     if (CMP_NE(_flag_a, _flag_b)) goto L_4000A022; /* 0x40009FF8: jne 0x4000a022 */
  17311 L_40009FFA:
  17312     MEM32(eax + 0x8) = ebx; /* 0x40009FFA: mov dword ptr [eax + 8], ebx */
  17313     goto L_4000A022; /* 0x40009FFD: jmp 0x4000a022 */
  17314 L_40009FFF:
  17315     ecx = MEM32(ebp + (-0x4)); /* 0x40009FFF: mov ecx, dword ptr [ebp - 4] */
  17316     MEM32(esi) = ecx; /* 0x4000A002: mov dword ptr [esi], ecx */
  17317     eax = MEM32(edi + 0x4); /* 0x4000A004: mov eax, dword ptr [edi + 4] */
  17318     /* cmp esi, eax */ /* 0x4000A007: cmp esi, eax */
  17319     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  17320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17321     _flag_k = FK_CMP;
  17322     if (CMP_NE(_flag_a, _flag_b)) goto L_4000A016; /* 0x4000A009: jne 0x4000a016 */
  17323 L_4000A00B:
  17324     MEM32(eax + 0x4) = ecx; /* 0x4000A00B: mov dword ptr [eax + 4], ecx */
  17325     eax = MEM32(edi + 0x4); /* 0x4000A00E: mov eax, dword ptr [edi + 4] */
  17326     MEM32(eax + 0x8) = ecx; /* 0x4000A011: mov dword ptr [eax + 8], ecx */
  17327     goto L_4000A01F; /* 0x4000A014: jmp 0x4000a01f */
  17328 L_4000A016:
  17329     /* cmp esi, MEM32(eax) */ /* 0x4000A016: cmp esi, dword ptr [eax] */
  17330     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
  17331     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17332     _flag_k = FK_CMP;
  17333     if (CMP_NE(_flag_a, _flag_b)) goto L_4000A01F; /* 0x4000A018: jne 0x4000a01f */
  17334 L_4000A01A:
  17335     ecx = MEM32(ebp + (-0x4)); /* 0x4000A01A: mov ecx, dword ptr [ebp - 4] */
  17336     MEM32(eax) = ecx; /* 0x4000A01D: mov dword ptr [eax], ecx */
  17337 L_4000A01F:
  17338     ebx = MEM32(ebp + (-0x4)); /* 0x4000A01F: mov ebx, dword ptr [ebp - 4] */
  17339 L_4000A022:
  17340     edx = MEM32(edi + 0x4); /* 0x4000A022: mov edx, dword ptr [edi + 4] */
  17341     /* cmp ebx, MEM32(edx + 0x4) */ /* 0x4000A025: cmp ebx, dword ptr [edx + 4] */
  17342     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  17343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17344     _flag_k = FK_CMP;
  17345     esi = ebx; /* 0x4000A028: mov esi, ebx */
  17346     if (CMP_EQ(_flag_a, _flag_b)) goto L_4000A0F5; /* 0x4000A02A: je 0x4000a0f5 */
  17347 L_4000A030:
  17348     eax = MEM32(esi + 0x4); /* 0x4000A030: mov eax, dword ptr [esi + 4] */
  17349     SET_LO8(ecx, MEM8(eax + 0x20)); /* 0x4000A033: mov cl, byte ptr [eax + 0x20] */
  17350     /* test LO8(ecx), LO8(ecx) */ /* 0x4000A036: test cl, cl */
  17351     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  17352     _cf = 0;
  17353     _flag_k = FK_NARROW(FK_TEST, 24);
  17354     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000A0F5; /* 0x4000A038: jne 0x4000a0f5 */
  17355 L_4000A03E:
  17356     edx = MEM32(eax + 0x4); /* 0x4000A03E: mov edx, dword ptr [eax + 4] */
  17357     ecx = MEM32(edx); /* 0x4000A041: mov ecx, dword ptr [edx] */
  17358     /* cmp eax, ecx */ /* 0x4000A043: cmp eax, ecx */
  17359     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  17360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17361     _flag_k = FK_CMP;
  17362     if (CMP_NE(_flag_a, _flag_b)) goto L_4000A09B; /* 0x4000A045: jne 0x4000a09b */
  17363 L_4000A047:
  17364     ecx = MEM32(edx + 0x8); /* 0x4000A047: mov ecx, dword ptr [edx + 8] */
  17365     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x4000A04A: mov dl, byte ptr [ecx + 0x20] */
  17366     /* test LO8(edx), LO8(edx) */ /* 0x4000A04D: test dl, dl */
  17367     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  17368     _cf = 0;
  17369     _flag_k = FK_NARROW(FK_TEST, 24);
  17370     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000A06B; /* 0x4000A04F: jne 0x4000a06b */
  17371 L_4000A051:
  17372     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x4000A051: mov byte ptr [eax + 0x20], 1 */
  17373     MEM8(ecx + 0x20) = (uint8_t)(1); /* 0x4000A055: mov byte ptr [ecx + 0x20], 1 */
  17374     eax = MEM32(esi + 0x4); /* 0x4000A059: mov eax, dword ptr [esi + 4] */
  17375     ecx = MEM32(eax + 0x4); /* 0x4000A05C: mov ecx, dword ptr [eax + 4] */
  17376     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x4000A05F: mov byte ptr [ecx + 0x20], 0 */
  17377     edx = MEM32(esi + 0x4); /* 0x4000A063: mov edx, dword ptr [esi + 4] */
  17378     esi = MEM32(edx + 0x4); /* 0x4000A066: mov esi, dword ptr [edx + 4] */
  17379     goto L_4000A0E9; /* 0x4000A069: jmp 0x4000a0e9 */
  17380 L_4000A06B:
  17381     /* cmp esi, MEM32(eax + 0x8) */ /* 0x4000A06B: cmp esi, dword ptr [eax + 8] */
  17382     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  17383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17384     _flag_k = FK_CMP;
  17385     if (CMP_NE(_flag_a, _flag_b)) goto L_4000A07A; /* 0x4000A06E: jne 0x4000a07a */
  17386 L_4000A070:
  17387     esi = eax; /* 0x4000A070: mov esi, eax */
  17388     PUSH32(esp, esi); /* 0x4000A072: push esi */
  17389     ecx = edi; /* 0x4000A073: mov ecx, edi */
  17390     RECOMP_ICALL(0x400092D0u); /* 0x4000A075: call 0x400092d0 */ /* not lifted */
  17391     RECOMP_FLAGS_IN();
  17392 L_4000A07A:
  17393     eax = MEM32(esi + 0x4); /* 0x4000A07A: mov eax, dword ptr [esi + 4] */
  17394     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x4000A07D: mov byte ptr [eax + 0x20], 1 */
  17395     ecx = MEM32(esi + 0x4); /* 0x4000A081: mov ecx, dword ptr [esi + 4] */
  17396     edx = MEM32(ecx + 0x4); /* 0x4000A084: mov edx, dword ptr [ecx + 4] */
  17397     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x4000A087: mov byte ptr [edx + 0x20], 0 */
  17398     eax = MEM32(esi + 0x4); /* 0x4000A08B: mov eax, dword ptr [esi + 4] */
  17399     ecx = MEM32(eax + 0x4); /* 0x4000A08E: mov ecx, dword ptr [eax + 4] */
  17400     PUSH32(esp, ecx); /* 0x4000A091: push ecx */
  17401     ecx = edi; /* 0x4000A092: mov ecx, edi */
  17402     RECOMP_ICALL(0x40009330u); /* 0x4000A094: call 0x40009330 */ /* not lifted */
  17403     RECOMP_FLAGS_IN();
  17404     goto L_4000A0E9; /* 0x4000A099: jmp 0x4000a0e9 */
  17405 L_4000A09B:
  17406     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x4000A09B: mov dl, byte ptr [ecx + 0x20] */
  17407     /* test LO8(edx), LO8(edx) */ /* 0x4000A09E: test dl, dl */
  17408     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  17409     _cf = 0;
  17410     _flag_k = FK_NARROW(FK_TEST, 24);
  17411     if (TEST_NZ(_flag_a, _flag_b)) goto L_4000A0BC; /* 0x4000A0A0: jne 0x4000a0bc */
  17412 L_4000A0A2:
  17413     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x4000A0A2: mov byte ptr [eax + 0x20], 1 */
  17414     MEM8(ecx + 0x20) = (uint8_t)(1); /* 0x4000A0A6: mov byte ptr [ecx + 0x20], 1 */
  17415     edx = MEM32(esi + 0x4); /* 0x4000A0AA: mov edx, dword ptr [esi + 4] */
  17416     eax = MEM32(edx + 0x4); /* 0x4000A0AD: mov eax, dword ptr [edx + 4] */
  17417     MEM8(eax + 0x20) = (uint8_t)(0); /* 0x4000A0B0: mov byte ptr [eax + 0x20], 0 */
  17418     ecx = MEM32(esi + 0x4); /* 0x4000A0B4: mov ecx, dword ptr [esi + 4] */
  17419     esi = MEM32(ecx + 0x4); /* 0x4000A0B7: mov esi, dword ptr [ecx + 4] */
  17420     goto L_4000A0E9; /* 0x4000A0BA: jmp 0x4000a0e9 */
  17421 L_4000A0BC:
  17422     /* cmp esi, MEM32(eax) */ /* 0x4000A0BC: cmp esi, dword ptr [eax] */
  17423     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
  17424     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17425     _flag_k = FK_CMP;
  17426     if (CMP_NE(_flag_a, _flag_b)) goto L_4000A0CA; /* 0x4000A0BE: jne 0x4000a0ca */
  17427 L_4000A0C0:
  17428     esi = eax; /* 0x4000A0C0: mov esi, eax */
  17429     PUSH32(esp, esi); /* 0x4000A0C2: push esi */
  17430     ecx = edi; /* 0x4000A0C3: mov ecx, edi */
  17431     RECOMP_ICALL(0x40009330u); /* 0x4000A0C5: call 0x40009330 */ /* not lifted */
  17432     RECOMP_FLAGS_IN();
  17433 L_4000A0CA:
  17434     edx = MEM32(esi + 0x4); /* 0x4000A0CA: mov edx, dword ptr [esi + 4] */
  17435     MEM8(edx + 0x20) = (uint8_t)(1); /* 0x4000A0CD: mov byte ptr [edx + 0x20], 1 */
  17436     eax = MEM32(esi + 0x4); /* 0x4000A0D1: mov eax, dword ptr [esi + 4] */
  17437     ecx = MEM32(eax + 0x4); /* 0x4000A0D4: mov ecx, dword ptr [eax + 4] */
  17438     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x4000A0D7: mov byte ptr [ecx + 0x20], 0 */
  17439     edx = MEM32(esi + 0x4); /* 0x4000A0DB: mov edx, dword ptr [esi + 4] */
  17440     eax = MEM32(edx + 0x4); /* 0x4000A0DE: mov eax, dword ptr [edx + 4] */
  17441     PUSH32(esp, eax); /* 0x4000A0E1: push eax */
  17442     ecx = edi; /* 0x4000A0E2: mov ecx, edi */
  17443     RECOMP_ICALL(0x400092D0u); /* 0x4000A0E4: call 0x400092d0 */ /* not lifted */
  17444     RECOMP_FLAGS_IN();
  17445 L_4000A0E9:
  17446     ecx = MEM32(edi + 0x4); /* 0x4000A0E9: mov ecx, dword ptr [edi + 4] */
  17447     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x4000A0EC: cmp esi, dword ptr [ecx + 4] */
  17448     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  17449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17450     _flag_k = FK_CMP;
  17451     RECOMP_BACKEDGE();
  17452     if (CMP_NE(_flag_a, _flag_b)) goto L_4000A030; /* 0x4000A0EF: jne 0x4000a030 */
  17453 L_4000A0F5:
  17454     edx = MEM32(edi + 0x4); /* 0x4000A0F5: mov edx, dword ptr [edi + 4] */
  17455     eax = MEM32(edx + 0x4); /* 0x4000A0F8: mov eax, dword ptr [edx + 4] */
  17456     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x4000A0FB: mov byte ptr [eax + 0x20], 1 */
  17457     eax = MEM32(ebp + 0x8); /* 0x4000A0FF: mov eax, dword ptr [ebp + 8] */
  17458     edi = POP32_VAL(esp); /* 0x4000A102: pop edi */
  17459     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x4000A103: mov byte ptr [ebp - 8], 1 */
  17460     ecx = MEM32(ebp + (-0x8)); /* 0x4000A107: mov ecx, dword ptr [ebp - 8] */
  17461     MEM32(eax) = ebx; /* 0x4000A10A: mov dword ptr [eax], ebx */
  17462     esi = POP32_VAL(esp); /* 0x4000A10C: pop esi */
  17463     MEM32(eax + 0x4) = ecx; /* 0x4000A10D: mov dword ptr [eax + 4], ecx */
  17464     ebx = POP32_VAL(esp); /* 0x4000A110: pop ebx */
  17465     esp = ebp; /* 0x4000A111: mov esp, ebp */
  17466     ebp = POP32_VAL(esp); /* 0x4000A113: pop ebp */
  17467     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4000A114: ret 8 */
  17468 L_4000A117:
  17469     /* test LO8(eax), LO8(eax) */ /* 0x4000A117: test al, al */
  17470     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17471     _cf = 0;
  17472     _flag_k = FK_NARROW(FK_TEST, 24);
  17473     MEM32(ebp + (-0x8)) = esi; /* 0x4000A119: mov dword ptr [ebp - 8], esi */
  17474     if (TEST_Z(_flag_a, _flag_b)) goto L_4000A158; /* 0x4000A11C: je 0x4000a158 */
  17475 L_4000A11E:
  17476     edx = MEM32(edi + 0x4); /* 0x4000A11E: mov edx, dword ptr [edi + 4] */
  17477     /* cmp esi, MEM32(edx) */ /* 0x4000A121: cmp esi, dword ptr [edx] */
  17478     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx));
  17479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  17480     _flag_k = FK_CMP;
  17481     if (CMP_NE(_flag_a, _flag_b)) goto L_4000A150; /* 0x4000A123: jne 0x4000a150 */
  17482 L_4000A125:
  17483     eax = MEM32(ebp + 0xC); /* 0x4000A125: mov eax, dword ptr [ebp + 0xc] */
  17484     PUSH32(esp, eax); /* 0x4000A128: push eax */
  17485     PUSH32(esp, esi); /* 0x4000A129: push esi */
  17486     PUSH32(esp, ebx); /* 0x4000A12A: push ebx */
  17487     ecx = ebp + 0xC; /* 0x4000A12B: lea ecx, [ebp + 0xc] */
  17488     PUSH32(esp, ecx); /* 0x4000A12E: push ecx */
  17489     ecx = edi; /* 0x4000A12F: mov ecx, edi */
  17490     RECOMP_ICALL(0x4000E850u); /* 0x4000A131: call 0x4000e850 */ /* not lifted */
  17491     RECOMP_FLAGS_IN();
  17492     ecx = MEM32(eax); /* 0x4000A136: mov ecx, dword ptr [eax] */
  17493     eax = MEM32(ebp + 0x8); /* 0x4000A138: mov eax, dword ptr [ebp + 8] */
  17494     edi = POP32_VAL(esp); /* 0x4000A13B: pop edi */
  17495     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x4000A13C: mov byte ptr [ebp - 8], 1 */
  17496     edx = MEM32(ebp + (-0x8)); /* 0x4000A140: mov edx, dword ptr [ebp - 8] */
  17497     esi = POP32_VAL(esp); /* 0x4000A143: pop esi */
  17498     MEM32(eax) = ecx; /* 0x4000A144: mov dword ptr [eax], ecx */
  17499     MEM32(eax + 0x4) = edx; /* 0x4000A146: mov dword ptr [eax + 4], edx */
  17500     ebx = POP32_VAL(esp); /* 0x4000A149: pop ebx */
  17501     esp = ebp; /* 0x4000A14A: mov esp, ebp */
  17502     ebp = POP32_VAL(esp); /* 0x4000A14C: pop ebp */
  17503     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4000A14D: ret 8 */
  17504 L_4000A150:
  17505     ecx = ebp + (-0x8); /* 0x4000A150: lea ecx, [ebp - 8] */
  17506     RECOMP_ICALL(0x4000F090u); /* 0x4000A153: call 0x4000f090 */ /* not lifted */
  17507     RECOMP_FLAGS_IN();
  17508 L_4000A158:
  17509     eax = MEM32(ebp + (-0x8)); /* 0x4000A158: mov eax, dword ptr [ebp - 8] */
  17510     edx = MEM32(ebp + 0xC); /* 0x4000A15B: mov edx, dword ptr [ebp + 0xc] */
  17511     ecx = eax + 0xC; /* 0x4000A15E: lea ecx, [eax + 0xc] */
  17512     PUSH32(esp, edx); /* 0x4000A161: push edx */
  17513     RECOMP_ICALL(0x400015C0u); /* 0x4000A162: call 0x400015c0 */ /* not lifted */
  17514     RECOMP_FLAGS_IN();
  17515     /* test LO8(eax), LO8(eax) */ /* 0x4000A167: test al, al */
  17516     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  17517     _cf = 0;
  17518     _flag_k = FK_NARROW(FK_TEST, 24);
  17519     if (TEST_Z(_flag_a, _flag_b)) goto L_4000A196; /* 0x4000A169: je 0x4000a196 */
  17520 L_4000A16B:
  17521     eax = MEM32(ebp + 0xC); /* 0x4000A16B: mov eax, dword ptr [ebp + 0xc] */
  17522     PUSH32(esp, eax); /* 0x4000A16E: push eax */
  17523     PUSH32(esp, esi); /* 0x4000A16F: push esi */
  17524     PUSH32(esp, ebx); /* 0x4000A170: push ebx */
  17525     ecx = ebp + 0xC; /* 0x4000A171: lea ecx, [ebp + 0xc] */
  17526     PUSH32(esp, ecx); /* 0x4000A174: push ecx */
  17527     ecx = edi; /* 0x4000A175: mov ecx, edi */
  17528     RECOMP_ICALL(0x4000E850u); /* 0x4000A177: call 0x4000e850 */ /* not lifted */
  17529     RECOMP_FLAGS_IN();
  17530     ecx = MEM32(eax); /* 0x4000A17C: mov ecx, dword ptr [eax] */
  17531     eax = MEM32(ebp + 0x8); /* 0x4000A17E: mov eax, dword ptr [ebp + 8] */
  17532     edi = POP32_VAL(esp); /* 0x4000A181: pop edi */
  17533     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x4000A182: mov byte ptr [ebp - 8], 1 */
  17534     edx = MEM32(ebp + (-0x8)); /* 0x4000A186: mov edx, dword ptr [ebp - 8] */
  17535     esi = POP32_VAL(esp); /* 0x4000A189: pop esi */
  17536     MEM32(eax) = ecx; /* 0x4000A18A: mov dword ptr [eax], ecx */
  17537     MEM32(eax + 0x4) = edx; /* 0x4000A18C: mov dword ptr [eax + 4], edx */
  17538     ebx = POP32_VAL(esp); /* 0x4000A18F: pop ebx */
  17539     esp = ebp; /* 0x4000A190: mov esp, ebp */
  17540     ebp = POP32_VAL(esp); /* 0x4000A192: pop ebp */
  17541     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4000A193: ret 8 */
  17542 L_4000A196:
  17543     ecx = MEM32(ebp + (-0x8)); /* 0x4000A196: mov ecx, dword ptr [ebp - 8] */
  17544     eax = MEM32(ebp + 0x8); /* 0x4000A199: mov eax, dword ptr [ebp + 8] */
  17545     edi = POP32_VAL(esp); /* 0x4000A19C: pop edi */
  17546     MEM32(eax) = ecx; /* 0x4000A19D: mov dword ptr [eax], ecx */
  17547     MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x4000A19F: mov byte ptr [ebp - 8], 0 */
  17548     ecx = MEM32(ebp + (-0x8)); /* 0x4000A1A3: mov ecx, dword ptr [ebp - 8] */
  17549     esi = POP32_VAL(esp); /* 0x4000A1A6: pop esi */
  17550     MEM32(eax + 0x4) = ecx; /* 0x4000A1A7: mov dword ptr [eax + 4], ecx */
  17551     ebx = POP32_VAL(esp); /* 0x4000A1AA: pop ebx */
  17552     esp = ebp; /* 0x4000A1AB: mov esp, ebp */
  17553     ebp = POP32_VAL(esp); /* 0x4000A1AD: pop ebp */
  17554     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4000A1AE: ret 8 */
  17555     RECOMP_REGS_OUT();
  17556 }
  17557 
  17558 void sub_4000A1C0(void) {
  17559     int _fpu_cmp = 0;
  17560     uint32_t _cf = 0;
  17561     int _df = 1;
  17562     uint32_t _flag_k = FK_NONE;
  17563     uint32_t _flag_a = 0, _flag_b = 0;
  17564     uint32_t _itail_tgt = 0;
  17565     RECOMP_REGS_LOCALS
  17566     RECOMP_ENTER(0x4000A1C0u);
  17567 
  17568 L_4000A1C0:
  17569     goto L_4000A1D0; /* 0x4000A1C0: jmp 0x4000a1d0 */
  17570 L_4000A1D0:
  17571     MEM32(0x4001D068) = 0x4001C9BCu; /* 0x4000A1D0: mov dword ptr [0x4001d068], 0x4001c9bc */
  17572     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000A1DA: ret  */
  17573     RECOMP_REGS_OUT();
  17574 }