aorecomp

Anarchy Online classic in the browser

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


client/game/qqr.dll/lifted-0003.c (649158B)


      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_42006F70(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(0x42006F70u);
     17 
     18 L_42006F70:
     19     PUSH32(esp, ebp); /* 0x42006F70: push ebp */
     20     ebp = esp; /* 0x42006F71: mov ebp, esp */
     21     edx = MEM32(ecx + 0xC); /* 0x42006F73: mov edx, dword ptr [ecx + 0xc] */
     22     eax = MEM32(ecx + 0x8); /* 0x42006F76: mov eax, dword ptr [ecx + 8] */
     23     /* cmp eax, edx */ /* 0x42006F79: cmp eax, edx */
     24     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
     25     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     26     _flag_k = FK_CMP;
     27     if (CMP_EQ(_flag_a, _flag_b)) goto L_42006F8D; /* 0x42006F7B: je 0x42006f8d */
     28 L_42006F7D:
     29     ecx = MEM32(ebp + 0x8); /* 0x42006F7D: mov ecx, dword ptr [ebp + 8] */
     30 L_42006F80:
     31     /* cmp MEM32(eax), ecx */ /* 0x42006F80: cmp dword ptr [eax], ecx */
     32     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ecx);
     33     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     34     _flag_k = FK_CMP;
     35     if (CMP_EQ(_flag_a, _flag_b)) goto L_42006F8B; /* 0x42006F82: je 0x42006f8b */
     36 L_42006F84:
     37     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
     38     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     39     eax = eax + 4; /* 0x42006F84: add eax, 4 */
     40     _flag_k = FK_ADD;
     41     /* cmp eax, edx */ /* 0x42006F87: cmp eax, edx */
     42     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
     43     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     44     _flag_k = FK_CMP;
     45     RECOMP_BACKEDGE();
     46     if (CMP_NE(_flag_a, _flag_b)) goto L_42006F80; /* 0x42006F89: jne 0x42006f80 */
     47 L_42006F8B:
     48     /* cmp eax, edx */ /* 0x42006F8B: cmp eax, edx */
     49     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
     50     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     51     _flag_k = FK_CMP;
     52 L_42006F8D:
     53     SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x42006F8D: setne al */
     54     ebp = POP32_VAL(esp); /* 0x42006F90: pop ebp */
     55     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42006F91: ret 4 */
     56     RECOMP_REGS_OUT();
     57 }
     58 
     59 void sub_42006FA0(void) {
     60     int _fpu_cmp = 0;
     61     uint32_t _cf = 0;
     62     int _df = 1;
     63     uint32_t _flag_k = FK_NONE;
     64     uint32_t _flag_a = 0, _flag_b = 0;
     65     uint32_t _itail_tgt = 0;
     66     RECOMP_REGS_LOCALS
     67     RECOMP_ENTER(0x42006FA0u);
     68 
     69 L_42006FA0:
     70     PUSH32(esp, ebp); /* 0x42006FA0: push ebp */
     71     ebp = esp; /* 0x42006FA1: mov ebp, esp */
     72     PUSH32(esp, ebx); /* 0x42006FA3: push ebx */
     73     PUSH32(esp, esi); /* 0x42006FA4: push esi */
     74     PUSH32(esp, edi); /* 0x42006FA5: push edi */
     75     edi = ecx; /* 0x42006FA6: mov edi, ecx */
     76     esi = MEM32(edi + 0x8); /* 0x42006FA8: mov esi, dword ptr [edi + 8] */
     77     ebx = MEM32(edi + 0xC); /* 0x42006FAB: mov ebx, dword ptr [edi + 0xc] */
     78     /* cmp esi, ebx */ /* 0x42006FAE: cmp esi, ebx */
     79     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
     80     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     81     _flag_k = FK_CMP;
     82     if (CMP_EQ(_flag_a, _flag_b)) goto L_42006FC2; /* 0x42006FB0: je 0x42006fc2 */
     83 L_42006FB2:
     84     eax = MEM32(ebp + 0x8); /* 0x42006FB2: mov eax, dword ptr [ebp + 8] */
     85     ecx = MEM32(esi); /* 0x42006FB5: mov ecx, dword ptr [esi] */
     86     PUSH32(esp, eax); /* 0x42006FB7: push eax */
     87     RECOMP_ICALL(MEM32(edi + 0x14)); /* 0x42006FB8: call dword ptr [edi + 0x14] */
     88     RECOMP_FLAGS_IN();
     89     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
     90     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     91     esi = esi + 4; /* 0x42006FBB: add esi, 4 */
     92     _flag_k = FK_ADD;
     93     /* cmp esi, ebx */ /* 0x42006FBE: cmp esi, ebx */
     94     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
     95     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     96     _flag_k = FK_CMP;
     97     RECOMP_BACKEDGE();
     98     if (CMP_NE(_flag_a, _flag_b)) goto L_42006FB2; /* 0x42006FC0: jne 0x42006fb2 */
     99 L_42006FC2:
    100     edi = POP32_VAL(esp); /* 0x42006FC2: pop edi */
    101     esi = POP32_VAL(esp); /* 0x42006FC3: pop esi */
    102     ebx = POP32_VAL(esp); /* 0x42006FC4: pop ebx */
    103     ebp = POP32_VAL(esp); /* 0x42006FC5: pop ebp */
    104     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42006FC6: ret 4 */
    105     RECOMP_REGS_OUT();
    106 }
    107 
    108 void sub_42006FD0(void) {
    109     int _fpu_cmp = 0;
    110     uint32_t _cf = 0;
    111     int _df = 1;
    112     uint32_t _flag_k = FK_NONE;
    113     uint32_t _flag_a = 0, _flag_b = 0;
    114     uint32_t _itail_tgt = 0;
    115     RECOMP_REGS_LOCALS
    116     RECOMP_ENTER(0x42006FD0u);
    117 
    118 L_42006FD0:
    119     PUSH32(esp, ebp); /* 0x42006FD0: push ebp */
    120     ebp = esp; /* 0x42006FD1: mov ebp, esp */
    121     PUSH32(esp, esi); /* 0x42006FD3: push esi */
    122     esi = ecx; /* 0x42006FD4: mov esi, ecx */
    123     RECOMP_ICALL(0x42007000u); /* 0x42006FD6: call 0x42007000 */ /* not lifted */
    124     RECOMP_FLAGS_IN();
    125     /* test MEM8(ebp + 0x8), 1 */ /* 0x42006FDB: test byte ptr [ebp + 8], 1 */
    126     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    127     _cf = 0;
    128     _flag_k = FK_NARROW(FK_TEST, 24);
    129     if (TEST_Z(_flag_a, _flag_b)) goto L_42006FEA; /* 0x42006FDF: je 0x42006fea */
    130 L_42006FE1:
    131     PUSH32(esp, esi); /* 0x42006FE1: push esi */
    132     RECOMP_ICALL(0x42016DD0u); /* 0x42006FE2: call 0x42016dd0 */ /* not lifted */
    133     RECOMP_FLAGS_IN();
    134     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    135     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    136     esp = esp + 4; /* 0x42006FE7: add esp, 4 */
    137     _flag_k = FK_ADD;
    138 L_42006FEA:
    139     eax = esi; /* 0x42006FEA: mov eax, esi */
    140     esi = POP32_VAL(esp); /* 0x42006FEC: pop esi */
    141     ebp = POP32_VAL(esp); /* 0x42006FED: pop ebp */
    142     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42006FEE: ret 4 */
    143     RECOMP_REGS_OUT();
    144 }
    145 
    146 void sub_42007000(void) {
    147     int _fpu_cmp = 0;
    148     uint32_t _cf = 0;
    149     int _df = 1;
    150     uint32_t _flag_k = FK_NONE;
    151     uint32_t _flag_a = 0, _flag_b = 0;
    152     uint32_t _itail_tgt = 0;
    153     RECOMP_REGS_LOCALS
    154     RECOMP_ENTER(0x42007000u);
    155 
    156 L_42007000:
    157     PUSH32(esp, ebp); /* 0x42007000: push ebp */
    158     ebp = esp; /* 0x42007001: mov ebp, esp */
    159     PUSH32(esp, ecx); /* 0x42007003: push ecx */
    160     PUSH32(esp, esi); /* 0x42007004: push esi */
    161     esi = ecx; /* 0x42007005: mov esi, ecx */
    162     MEM32(esi) = 0x42018444u; /* 0x42007007: mov dword ptr [esi], 0x42018444 */
    163     edx = MEM32(esi + 0xC); /* 0x4200700D: mov edx, dword ptr [esi + 0xc] */
    164     ecx = MEM32(esi + 0x8); /* 0x42007010: mov ecx, dword ptr [esi + 8] */
    165     eax = edx; /* 0x42007013: mov eax, edx */
    166     /* cmp eax, edx */ /* 0x42007015: cmp eax, edx */
    167     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    168     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    169     _flag_k = FK_CMP;
    170     if (CMP_EQ(_flag_a, _flag_b)) goto L_42007029; /* 0x42007017: je 0x42007029 */
    171 L_42007019:
    172     PUSH32(esp, edi); /* 0x42007019: push edi */
    173 L_4200701A:
    174     edi = MEM32(eax); /* 0x4200701A: mov edi, dword ptr [eax] */
    175     MEM32(ecx) = edi; /* 0x4200701C: mov dword ptr [ecx], edi */
    176     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    177     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    178     eax = eax + 4; /* 0x4200701E: add eax, 4 */
    179     _flag_k = FK_ADD;
    180     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    181     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    182     ecx = ecx + 4; /* 0x42007021: add ecx, 4 */
    183     _flag_k = FK_ADD;
    184     /* cmp eax, edx */ /* 0x42007024: cmp eax, edx */
    185     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    187     _flag_k = FK_CMP;
    188     RECOMP_BACKEDGE();
    189     if (CMP_NE(_flag_a, _flag_b)) goto L_4200701A; /* 0x42007026: jne 0x4200701a */
    190 L_42007028:
    191     edi = POP32_VAL(esp); /* 0x42007028: pop edi */
    192 L_42007029:
    193     eax = MEM32(esi + 0xC); /* 0x42007029: mov eax, dword ptr [esi + 0xc] */
    194     MEM32(ebp + (-0x4)) = eax; /* 0x4200702C: mov dword ptr [ebp - 4], eax */
    195     MEM32(esi + 0xC) = ecx; /* 0x4200702F: mov dword ptr [esi + 0xc], ecx */
    196     eax = MEM32(esi + 0x8); /* 0x42007032: mov eax, dword ptr [esi + 8] */
    197     PUSH32(esp, eax); /* 0x42007035: push eax */
    198     MEM32(ebp + (-0x4)) = eax; /* 0x42007036: mov dword ptr [ebp - 4], eax */
    199     RECOMP_ICALL(0x42016DD0u); /* 0x42007039: call 0x42016dd0 */ /* not lifted */
    200     RECOMP_FLAGS_IN();
    201     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    202     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    203     esp = esp + 4; /* 0x4200703E: add esp, 4 */
    204     _flag_k = FK_ADD;
    205     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    206     eax = 0; /* 0x42007041: xor eax, eax */
    207     _cf = 0;
    208     _flag_k = FK_TEST;
    209     MEM32(esi + 0x8) = eax; /* 0x42007043: mov dword ptr [esi + 8], eax */
    210     MEM32(esi + 0xC) = eax; /* 0x42007046: mov dword ptr [esi + 0xc], eax */
    211     MEM32(esi + 0x10) = eax; /* 0x42007049: mov dword ptr [esi + 0x10], eax */
    212     esi = POP32_VAL(esp); /* 0x4200704C: pop esi */
    213     esp = ebp; /* 0x4200704D: mov esp, ebp */
    214     ebp = POP32_VAL(esp); /* 0x4200704F: pop ebp */
    215     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42007050: ret  */
    216     RECOMP_REGS_OUT();
    217 }
    218 
    219 void sub_42007060(void) {
    220     int _fpu_cmp = 0;
    221     uint32_t _cf = 0;
    222     int _df = 1;
    223     uint32_t _flag_k = FK_NONE;
    224     uint32_t _flag_a = 0, _flag_b = 0;
    225     uint32_t _itail_tgt = 0;
    226     RECOMP_REGS_LOCALS
    227     RECOMP_ENTER(0x42007060u);
    228 
    229 L_42007060:
    230     eax = MEM32(ecx); /* 0x42007060: mov eax, dword ptr [ecx] */
    231 L_42007062:
    232     { _itail_tgt = (uint32_t)(MEM32(eax)); goto _ljump; }
    233     { RECOMP_REGS_OUT(); return; } /* end of function */
    234   _ljump:
    235     switch (_itail_tgt) {
    236       case 0x42007060u: goto L_42007060;
    237       case 0x42007062u: goto L_42007062;
    238       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    239     }
    240     RECOMP_REGS_OUT();
    241 }
    242 
    243 void sub_42007070(void) {
    244     int _fpu_cmp = 0;
    245     uint32_t _cf = 0;
    246     int _df = 1;
    247     uint32_t _flag_k = FK_NONE;
    248     uint32_t _flag_a = 0, _flag_b = 0;
    249     uint32_t _itail_tgt = 0;
    250     RECOMP_REGS_LOCALS
    251     RECOMP_ENTER(0x42007070u);
    252 
    253 L_42007070:
    254     eax = ecx; /* 0x42007070: mov eax, ecx */
    255     MEM32(eax) = 0x42018120u; /* 0x42007072: mov dword ptr [eax], 0x42018120 */
    256     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42007078: ret  */
    257     RECOMP_REGS_OUT();
    258 }
    259 
    260 void sub_42007080(void) {
    261     int _fpu_cmp = 0;
    262     uint32_t _cf = 0;
    263     int _df = 1;
    264     uint32_t _flag_k = FK_NONE;
    265     uint32_t _flag_a = 0, _flag_b = 0;
    266     uint32_t _itail_tgt = 0;
    267     RECOMP_REGS_LOCALS
    268     RECOMP_ENTER(0x42007080u);
    269 
    270 L_42007080:
    271     MEM32(ecx) = 0x42018120u; /* 0x42007080: mov dword ptr [ecx], 0x42018120 */
    272     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42007086: ret  */
    273     RECOMP_REGS_OUT();
    274 }
    275 
    276 void sub_42007090(void) {
    277     int _fpu_cmp = 0;
    278     uint32_t _cf = 0;
    279     int _df = 1;
    280     uint32_t _flag_k = FK_NONE;
    281     uint32_t _flag_a = 0, _flag_b = 0;
    282     uint32_t _itail_tgt = 0;
    283     RECOMP_REGS_LOCALS
    284     RECOMP_ENTER(0x42007090u);
    285 
    286 L_42007090:
    287     RECOMP_ICALL(0x420070A0u); /* 0x42007090: call 0x420070a0 */ /* not lifted */
    288     RECOMP_FLAGS_IN();
    289     goto L_420070B0; /* 0x42007095: jmp 0x420070b0 */
    290 L_420070B0:
    291     PUSH32(esp, 0x420070C0u); /* 0x420070B0: push 0x420070c0 */
    292     RECOMP_ICALL(0x42016E07u); /* 0x420070B5: call 0x42016e07 */ /* not lifted */
    293     RECOMP_FLAGS_IN();
    294     ecx = POP32_VAL(esp); /* 0x420070BA: pop ecx */
    295     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420070BB: ret  */
    296     RECOMP_REGS_OUT();
    297 }
    298 
    299 void sub_420070A0(void) {
    300     int _fpu_cmp = 0;
    301     uint32_t _cf = 0;
    302     int _df = 1;
    303     uint32_t _flag_k = FK_NONE;
    304     uint32_t _flag_a = 0, _flag_b = 0;
    305     uint32_t _itail_tgt = 0;
    306     RECOMP_REGS_LOCALS
    307     RECOMP_ENTER(0x420070A0u);
    308 
    309 L_420070A0:
    310     ecx = 0x42023061u; /* 0x420070A0: mov ecx, 0x42023061 */
    311 L_420070A5:
    312     { _itail_tgt = (uint32_t)(MEM32(0x42018014)); goto _ljump; }
    313     { RECOMP_REGS_OUT(); return; } /* end of function */
    314   _ljump:
    315     switch (_itail_tgt) {
    316       case 0x420070A0u: goto L_420070A0;
    317       case 0x420070A5u: goto L_420070A5;
    318       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    319     }
    320     RECOMP_REGS_OUT();
    321 }
    322 
    323 void sub_420070B0(void) {
    324     int _fpu_cmp = 0;
    325     uint32_t _cf = 0;
    326     int _df = 1;
    327     uint32_t _flag_k = FK_NONE;
    328     uint32_t _flag_a = 0, _flag_b = 0;
    329     uint32_t _itail_tgt = 0;
    330     RECOMP_REGS_LOCALS
    331     RECOMP_ENTER(0x420070B0u);
    332 
    333 L_420070B0:
    334     PUSH32(esp, 0x420070C0u); /* 0x420070B0: push 0x420070c0 */
    335     RECOMP_ICALL(0x42016E07u); /* 0x420070B5: call 0x42016e07 */ /* not lifted */
    336     RECOMP_FLAGS_IN();
    337     ecx = POP32_VAL(esp); /* 0x420070BA: pop ecx */
    338     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420070BB: ret  */
    339     RECOMP_REGS_OUT();
    340 }
    341 
    342 void sub_420070C0(void) {
    343     int _fpu_cmp = 0;
    344     uint32_t _cf = 0;
    345     int _df = 1;
    346     uint32_t _flag_k = FK_NONE;
    347     uint32_t _flag_a = 0, _flag_b = 0;
    348     uint32_t _itail_tgt = 0;
    349     RECOMP_REGS_LOCALS
    350     RECOMP_ENTER(0x420070C0u);
    351 
    352 L_420070C0:
    353     ecx = 0x42023061u; /* 0x420070C0: mov ecx, 0x42023061 */
    354 L_420070C5:
    355     { _itail_tgt = (uint32_t)(MEM32(0x42018010)); goto _ljump; }
    356     { RECOMP_REGS_OUT(); return; } /* end of function */
    357   _ljump:
    358     switch (_itail_tgt) {
    359       case 0x420070C0u: goto L_420070C0;
    360       case 0x420070C5u: goto L_420070C5;
    361       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    362     }
    363     RECOMP_REGS_OUT();
    364 }
    365 
    366 void sub_420070D0(void) {
    367     int _fpu_cmp = 0;
    368     uint32_t _cf = 0;
    369     int _df = 1;
    370     uint32_t _flag_k = FK_NONE;
    371     uint32_t _flag_a = 0, _flag_b = 0;
    372     uint32_t _itail_tgt = 0;
    373     RECOMP_REGS_LOCALS
    374     RECOMP_ENTER(0x420070D0u);
    375 
    376 L_420070D0:
    377     RECOMP_ICALL(0x420070E0u); /* 0x420070D0: call 0x420070e0 */ /* not lifted */
    378     RECOMP_FLAGS_IN();
    379     goto L_420070F0; /* 0x420070D5: jmp 0x420070f0 */
    380 L_420070F0:
    381     PUSH32(esp, 0x42007100u); /* 0x420070F0: push 0x42007100 */
    382     RECOMP_ICALL(0x42016E07u); /* 0x420070F5: call 0x42016e07 */ /* not lifted */
    383     RECOMP_FLAGS_IN();
    384     ecx = POP32_VAL(esp); /* 0x420070FA: pop ecx */
    385     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420070FB: ret  */
    386     RECOMP_REGS_OUT();
    387 }
    388 
    389 void sub_420070E0(void) {
    390     int _fpu_cmp = 0;
    391     uint32_t _cf = 0;
    392     int _df = 1;
    393     uint32_t _flag_k = FK_NONE;
    394     uint32_t _flag_a = 0, _flag_b = 0;
    395     uint32_t _itail_tgt = 0;
    396     RECOMP_REGS_LOCALS
    397     RECOMP_ENTER(0x420070E0u);
    398 
    399 L_420070E0:
    400     ecx = 0x42023060u; /* 0x420070E0: mov ecx, 0x42023060 */
    401 L_420070E5:
    402     { _itail_tgt = (uint32_t)(MEM32(0x42018008)); goto _ljump; }
    403     { RECOMP_REGS_OUT(); return; } /* end of function */
    404   _ljump:
    405     switch (_itail_tgt) {
    406       case 0x420070E0u: goto L_420070E0;
    407       case 0x420070E5u: goto L_420070E5;
    408       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    409     }
    410     RECOMP_REGS_OUT();
    411 }
    412 
    413 void sub_420070F0(void) {
    414     int _fpu_cmp = 0;
    415     uint32_t _cf = 0;
    416     int _df = 1;
    417     uint32_t _flag_k = FK_NONE;
    418     uint32_t _flag_a = 0, _flag_b = 0;
    419     uint32_t _itail_tgt = 0;
    420     RECOMP_REGS_LOCALS
    421     RECOMP_ENTER(0x420070F0u);
    422 
    423 L_420070F0:
    424     PUSH32(esp, 0x42007100u); /* 0x420070F0: push 0x42007100 */
    425     RECOMP_ICALL(0x42016E07u); /* 0x420070F5: call 0x42016e07 */ /* not lifted */
    426     RECOMP_FLAGS_IN();
    427     ecx = POP32_VAL(esp); /* 0x420070FA: pop ecx */
    428     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420070FB: ret  */
    429     RECOMP_REGS_OUT();
    430 }
    431 
    432 void sub_42007100(void) {
    433     int _fpu_cmp = 0;
    434     uint32_t _cf = 0;
    435     int _df = 1;
    436     uint32_t _flag_k = FK_NONE;
    437     uint32_t _flag_a = 0, _flag_b = 0;
    438     uint32_t _itail_tgt = 0;
    439     RECOMP_REGS_LOCALS
    440     RECOMP_ENTER(0x42007100u);
    441 
    442 L_42007100:
    443     ecx = 0x42023060u; /* 0x42007100: mov ecx, 0x42023060 */
    444 L_42007105:
    445     { _itail_tgt = (uint32_t)(MEM32(0x4201800C)); goto _ljump; }
    446     { RECOMP_REGS_OUT(); return; } /* end of function */
    447   _ljump:
    448     switch (_itail_tgt) {
    449       case 0x42007100u: goto L_42007100;
    450       case 0x42007105u: goto L_42007105;
    451       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    452     }
    453     RECOMP_REGS_OUT();
    454 }
    455 
    456 void sub_42007110(void) {
    457     int _fpu_cmp = 0;
    458     uint32_t _cf = 0;
    459     int _df = 1;
    460     uint32_t _flag_k = FK_NONE;
    461     uint32_t _flag_a = 0, _flag_b = 0;
    462     uint32_t _itail_tgt = 0;
    463     RECOMP_REGS_LOCALS
    464     RECOMP_ENTER(0x42007110u);
    465 
    466 L_42007110:
    467     eax = MEM32(ecx + 0x8); /* 0x42007110: mov eax, dword ptr [ecx + 8] */
    468     /* test eax, eax */ /* 0x42007113: test eax, eax */
    469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    470     _cf = 0;
    471     _flag_k = FK_TEST;
    472     if (TEST_NZ(_flag_a, _flag_b)) goto L_42007118; /* 0x42007115: jne 0x42007118 */
    473 L_42007117:
    474     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42007117: ret  */
    475 L_42007118:
    476     ecx = MEM32(ecx + 0xC); /* 0x42007118: mov ecx, dword ptr [ecx + 0xc] */
    477     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    478     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    479     ecx = ecx - eax; /* 0x4200711B: sub ecx, eax */
    480     _flag_k = FK_CMP;
    481     eax = 0x2AAAAAABu; /* 0x4200711D: mov eax, 0x2aaaaaab */
    482     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42007122: imul ecx */
    483       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    484       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    485     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42007124: sar edx, 1 */
    486     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    487     edx = (uint32_t)((int32_t)edx >> 1u);
    488     eax = edx; /* 0x42007126: mov eax, edx */
    489     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42007128: shr eax, 0x1f */
    490     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    491     eax = eax >> 31u; /* 0x42007128: shr eax, 0x1f */
    492     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    493     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    494     edx = edx + eax; /* 0x4200712B: add edx, eax */
    495     _flag_k = FK_ADD;
    496     eax = edx; /* 0x4200712D: mov eax, edx */
    497     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200712F: ret  */
    498     RECOMP_REGS_OUT();
    499 }
    500 
    501 void sub_42007130(void) {
    502     int _fpu_cmp = 0;
    503     uint32_t _cf = 0;
    504     int _df = 1;
    505     uint32_t _flag_k = FK_NONE;
    506     uint32_t _flag_a = 0, _flag_b = 0;
    507     uint32_t _itail_tgt = 0;
    508     RECOMP_REGS_LOCALS
    509     RECOMP_ENTER(0x42007130u);
    510 
    511 L_42007130:
    512     eax = MEM32(ecx + 0x8); /* 0x42007130: mov eax, dword ptr [ecx + 8] */
    513     /* test eax, eax */ /* 0x42007133: test eax, eax */
    514     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    515     _cf = 0;
    516     _flag_k = FK_TEST;
    517     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200713F; /* 0x42007135: jne 0x4200713f */
    518 L_42007137:
    519     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    520     edx = 0; /* 0x42007137: xor edx, edx */
    521     _cf = 0;
    522     _flag_k = FK_TEST;
    523     /* test edx, edx */ /* 0x42007139: test edx, edx */
    524     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    525     _cf = 0;
    526     _flag_k = FK_TEST;
    527     SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x4200713B: sete al */
    528     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200713E: ret  */
    529 L_4200713F:
    530     ecx = MEM32(ecx + 0xC); /* 0x4200713F: mov ecx, dword ptr [ecx + 0xc] */
    531     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    532     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    533     ecx = ecx - eax; /* 0x42007142: sub ecx, eax */
    534     _flag_k = FK_CMP;
    535     eax = 0x2AAAAAABu; /* 0x42007144: mov eax, 0x2aaaaaab */
    536     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42007149: imul ecx */
    537       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    538       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    539     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x4200714B: sar edx, 1 */
    540     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    541     edx = (uint32_t)((int32_t)edx >> 1u);
    542     eax = edx; /* 0x4200714D: mov eax, edx */
    543     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x4200714F: shr eax, 0x1f */
    544     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    545     eax = eax >> 31u; /* 0x4200714F: shr eax, 0x1f */
    546     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    547     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    548     edx = edx + eax; /* 0x42007152: add edx, eax */
    549     _flag_k = FK_ADD;
    550     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    551     eax = 0; /* 0x42007154: xor eax, eax */
    552     _cf = 0;
    553     _flag_k = FK_TEST;
    554     /* test edx, edx */ /* 0x42007156: test edx, edx */
    555     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    556     _cf = 0;
    557     _flag_k = FK_TEST;
    558     SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x42007158: sete al */
    559     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200715B: ret  */
    560     RECOMP_REGS_OUT();
    561 }
    562 
    563 void sub_42007160(void) {
    564     int _fpu_cmp = 0;
    565     uint32_t _cf = 0;
    566     int _df = 1;
    567     uint32_t _flag_k = FK_NONE;
    568     uint32_t _flag_a = 0, _flag_b = 0;
    569     uint32_t _itail_tgt = 0;
    570     RECOMP_REGS_LOCALS
    571     RECOMP_ENTER(0x42007160u);
    572 
    573 L_42007160:
    574     PUSH32(esp, ebp); /* 0x42007160: push ebp */
    575     ebp = esp; /* 0x42007161: mov ebp, esp */
    576     eax = MEM32(ebp + 0x8); /* 0x42007163: mov eax, dword ptr [ebp + 8] */
    577     ecx = MEM32(ecx + 0x8); /* 0x42007166: mov ecx, dword ptr [ecx + 8] */
    578     eax = eax + eax * 2; /* 0x42007169: lea eax, [eax + eax*2] */
    579     eax = ecx + eax * 4; /* 0x4200716C: lea eax, [ecx + eax*4] */
    580     ebp = POP32_VAL(esp); /* 0x4200716F: pop ebp */
    581     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42007170: ret 4 */
    582     RECOMP_REGS_OUT();
    583 }
    584 
    585 void sub_42007180(void) {
    586     int _fpu_cmp = 0;
    587     uint32_t _cf = 0;
    588     int _df = 1;
    589     uint32_t _flag_k = FK_NONE;
    590     uint32_t _flag_a = 0, _flag_b = 0;
    591     uint32_t _itail_tgt = 0;
    592     RECOMP_REGS_LOCALS
    593     RECOMP_ENTER(0x42007180u);
    594 
    595 L_42007180:
    596     eax = MEM32(ecx + 0xC); /* 0x42007180: mov eax, dword ptr [ecx + 0xc] */
    597     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    599     eax = eax - 0xCu; /* 0x42007183: sub eax, 0xc */
    600     _flag_k = FK_CMP;
    601     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42007186: ret  */
    602     RECOMP_REGS_OUT();
    603 }
    604 
    605 void sub_42007190(void) {
    606     int _fpu_cmp = 0;
    607     uint32_t _cf = 0;
    608     int _df = 1;
    609     uint32_t _flag_k = FK_NONE;
    610     uint32_t _flag_a = 0, _flag_b = 0;
    611     uint32_t _itail_tgt = 0;
    612     RECOMP_REGS_LOCALS
    613     RECOMP_ENTER(0x42007190u);
    614 
    615 L_42007190:
    616     eax = ecx + 0x14; /* 0x42007190: lea eax, [ecx + 0x14] */
    617     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42007193: ret  */
    618     RECOMP_REGS_OUT();
    619 }
    620 
    621 void sub_420071A0(void) {
    622     int _fpu_cmp = 0;
    623     uint32_t _cf = 0;
    624     int _df = 1;
    625     uint32_t _flag_k = FK_NONE;
    626     uint32_t _flag_a = 0, _flag_b = 0;
    627     uint32_t _itail_tgt = 0;
    628     RECOMP_REGS_LOCALS
    629     RECOMP_ENTER(0x420071A0u);
    630 
    631 L_420071A0:
    632     eax = MEM32(ecx + 0x1C); /* 0x420071A0: mov eax, dword ptr [ecx + 0x1c] */
    633     fp_push(*(float*)&MEM32(eax + (-0x4))); /* 0x420071A3: fld dword ptr [eax - 4] */
    634     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420071A6: ret  */
    635     RECOMP_REGS_OUT();
    636 }
    637 
    638 void sub_420071B0(void) {
    639     int _fpu_cmp = 0;
    640     uint32_t _cf = 0;
    641     int _df = 1;
    642     uint32_t _flag_k = FK_NONE;
    643     uint32_t _flag_a = 0, _flag_b = 0;
    644     uint32_t _itail_tgt = 0;
    645     RECOMP_REGS_LOCALS
    646     RECOMP_ENTER(0x420071B0u);
    647 
    648 L_420071B0:
    649     fp_push(*(float*)&MEM32(ecx + 0x28)); /* 0x420071B0: fld dword ptr [ecx + 0x28] */
    650     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420071B3: ret  */
    651     RECOMP_REGS_OUT();
    652 }
    653 
    654 void sub_420071C0(void) {
    655     int _fpu_cmp = 0;
    656     uint32_t _cf = 0;
    657     int _df = 1;
    658     uint32_t _flag_k = FK_NONE;
    659     uint32_t _flag_a = 0, _flag_b = 0;
    660     uint32_t _itail_tgt = 0;
    661     RECOMP_REGS_LOCALS
    662     RECOMP_ENTER(0x420071C0u);
    663 
    664 L_420071C0:
    665     PUSH32(esp, ebp); /* 0x420071C0: push ebp */
    666     ebp = esp; /* 0x420071C1: mov ebp, esp */
    667     eax = MEM32(ebp + 0x8); /* 0x420071C3: mov eax, dword ptr [ebp + 8] */
    668     edx = MEM32(ecx + 0x18); /* 0x420071C6: mov edx, dword ptr [ecx + 0x18] */
    669     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x420071C9: shl eax, 4 */
    670     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    671     eax = eax << 4u; /* 0x420071C9: shl eax, 4 */
    672     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    673     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    674     eax = eax + edx; /* 0x420071CC: add eax, edx */
    675     _flag_k = FK_ADD;
    676     ebp = POP32_VAL(esp); /* 0x420071CE: pop ebp */
    677     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420071CF: ret 4 */
    678     RECOMP_REGS_OUT();
    679 }
    680 
    681 void sub_420071E0(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(0x420071E0u);
    690 
    691 L_420071E0:
    692     PUSH32(esp, ebp); /* 0x420071E0: push ebp */
    693     ebp = esp; /* 0x420071E1: mov ebp, esp */
    694     eax = MEM32(ebp + 0x8); /* 0x420071E3: mov eax, dword ptr [ebp + 8] */
    695     ecx = MEM32(ecx + 0x18); /* 0x420071E6: mov ecx, dword ptr [ecx + 0x18] */
    696     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x420071E9: shl eax, 4 */
    697     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    698     eax = eax << 4u; /* 0x420071E9: shl eax, 4 */
    699     fp_push(*(float*)&MEM32(eax + ecx + 0xC)); /* 0x420071EC: fld dword ptr [eax + ecx + 0xc] */
    700     ebp = POP32_VAL(esp); /* 0x420071F0: pop ebp */
    701     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420071F1: ret 4 */
    702     RECOMP_REGS_OUT();
    703 }
    704 
    705 void sub_42007200(void) {
    706     int _fpu_cmp = 0;
    707     uint32_t _cf = 0;
    708     int _df = 1;
    709     uint32_t _flag_k = FK_NONE;
    710     uint32_t _flag_a = 0, _flag_b = 0;
    711     uint32_t _itail_tgt = 0;
    712     RECOMP_REGS_LOCALS
    713     RECOMP_ENTER(0x42007200u);
    714 
    715 L_42007200:
    716     PUSH32(esp, ebp); /* 0x42007200: push ebp */
    717     ebp = esp; /* 0x42007201: mov ebp, esp */
    718     PUSH32(esp, 0xFFFFFFFFu); /* 0x42007203: push -1 */
    719     PUSH32(esp, 0x4201737Bu); /* 0x42007205: push 0x4201737b */
    720     eax = MEM32(FS_BASE + (0)); /* 0x4200720A: mov eax, dword ptr fs:[0] */
    721     PUSH32(esp, eax); /* 0x42007210: push eax */
    722     MEM32(FS_BASE + (0)) = esp; /* 0x42007211: mov dword ptr fs:[0], esp */
    723     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    724     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    725     esp = esp - 8; /* 0x42007218: sub esp, 8 */
    726     _flag_k = FK_CMP;
    727     PUSH32(esp, ebx); /* 0x4200721B: push ebx */
    728     PUSH32(esp, esi); /* 0x4200721C: push esi */
    729     esi = MEM32(ebp + 0x8); /* 0x4200721D: mov esi, dword ptr [ebp + 8] */
    730     SET_LO8(eax, MEM8(esi + 0x4)); /* 0x42007220: mov al, byte ptr [esi + 4] */
    731     PUSH32(esp, edi); /* 0x42007223: push edi */
    732     edi = ecx; /* 0x42007224: mov edi, ecx */
    733     MEM8(edi + 0x4) = (uint8_t)(LO8(eax)); /* 0x42007226: mov byte ptr [edi + 4], al */
    734     eax = MEM32(esi + 0x8); /* 0x42007229: mov eax, dword ptr [esi + 8] */
    735     /* test eax, eax */ /* 0x4200722C: test eax, eax */
    736     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    737     _cf = 0;
    738     _flag_k = FK_TEST;
    739     MEM32(ebp + (-0x14)) = edi; /* 0x4200722E: mov dword ptr [ebp - 0x14], edi */
    740     if (TEST_NZ(_flag_a, _flag_b)) goto L_42007237; /* 0x42007231: jne 0x42007237 */
    741 L_42007233:
    742     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    743     edx = 0; /* 0x42007233: xor edx, edx */
    744     _cf = 0;
    745     _flag_k = FK_TEST;
    746     goto L_4200724C; /* 0x42007235: jmp 0x4200724c */
    747 L_42007237:
    748     ecx = MEM32(esi + 0xC); /* 0x42007237: mov ecx, dword ptr [esi + 0xc] */
    749     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    750     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    751     ecx = ecx - eax; /* 0x4200723A: sub ecx, eax */
    752     _flag_k = FK_CMP;
    753     eax = 0x2AAAAAABu; /* 0x4200723C: mov eax, 0x2aaaaaab */
    754     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42007241: imul ecx */
    755       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    756       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    757     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42007243: sar edx, 1 */
    758     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    759     edx = (uint32_t)((int32_t)edx >> 1u);
    760     ecx = edx; /* 0x42007245: mov ecx, edx */
    761     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x42007247: shr ecx, 0x1f */
    762     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    763     ecx = ecx >> 31u; /* 0x42007247: shr ecx, 0x1f */
    764     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    765     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    766     edx = edx + ecx; /* 0x4200724A: add edx, ecx */
    767     _flag_k = FK_ADD;
    768 L_4200724C:
    769     /* test edx, edx */ /* 0x4200724C: test edx, edx */
    770     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    771     _cf = 0;
    772     _flag_k = FK_TEST;
    773     eax = edx; /* 0x4200724E: mov eax, edx */
    774     if (TEST_NS(_flag_a, _flag_b)) goto L_42007254; /* 0x42007250: jge 0x42007254 */
    775 L_42007252:
    776     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    777     eax = 0; /* 0x42007252: xor eax, eax */
    778     _cf = 0;
    779     _flag_k = FK_TEST;
    780 L_42007254:
    781     edx = eax + eax * 2; /* 0x42007254: lea edx, [eax + eax*2] */
    782     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x42007257: shl edx, 2 */
    783     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    784     edx = edx << 2u; /* 0x42007257: shl edx, 2 */
    785     PUSH32(esp, edx); /* 0x4200725A: push edx */
    786     RECOMP_ICALL(0x42016F36u); /* 0x4200725B: call 0x42016f36 */ /* not lifted */
    787     RECOMP_FLAGS_IN();
    788     MEM32(edi + 0x8) = eax; /* 0x42007260: mov dword ptr [edi + 8], eax */
    789     edx = MEM32(esi + 0xC); /* 0x42007263: mov edx, dword ptr [esi + 0xc] */
    790     ecx = MEM32(esi + 0x8); /* 0x42007266: mov ecx, dword ptr [esi + 8] */
    791     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    792     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    793     esp = esp + 4; /* 0x42007269: add esp, 4 */
    794     _flag_k = FK_ADD;
    795     /* cmp ecx, edx */ /* 0x4200726C: cmp ecx, edx */
    796     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    798     _flag_k = FK_CMP;
    799     MEM32(ebp + (-0x10)) = edx; /* 0x4200726E: mov dword ptr [ebp - 0x10], edx */
    800     MEM32(ebp + 0x8) = ecx; /* 0x42007271: mov dword ptr [ebp + 8], ecx */
    801     if (CMP_EQ(_flag_a, _flag_b)) goto L_4200729F; /* 0x42007274: je 0x4200729f */
    802 L_42007276:
    803     /* test eax, eax */ /* 0x42007276: test eax, eax */
    804     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    805     _cf = 0;
    806     _flag_k = FK_TEST;
    807     if (TEST_Z(_flag_a, _flag_b)) goto L_42007292; /* 0x42007278: je 0x42007292 */
    808 L_4200727A:
    809     ebx = MEM32(ecx); /* 0x4200727A: mov ebx, dword ptr [ecx] */
    810     edx = eax; /* 0x4200727C: mov edx, eax */
    811     MEM32(edx) = ebx; /* 0x4200727E: mov dword ptr [edx], ebx */
    812     ebx = MEM32(ecx + 0x4); /* 0x42007280: mov ebx, dword ptr [ecx + 4] */
    813     MEM32(edx + 0x4) = ebx; /* 0x42007283: mov dword ptr [edx + 4], ebx */
    814     ecx = MEM32(ecx + 0x8); /* 0x42007286: mov ecx, dword ptr [ecx + 8] */
    815     MEM32(edx + 0x8) = ecx; /* 0x42007289: mov dword ptr [edx + 8], ecx */
    816     ecx = MEM32(ebp + 0x8); /* 0x4200728C: mov ecx, dword ptr [ebp + 8] */
    817     edx = MEM32(ebp + (-0x10)); /* 0x4200728F: mov edx, dword ptr [ebp - 0x10] */
    818 L_42007292:
    819     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
    820     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    821     ecx = ecx + 0xCu; /* 0x42007292: add ecx, 0xc */
    822     _flag_k = FK_ADD;
    823     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    824     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    825     eax = eax + 0xCu; /* 0x42007295: add eax, 0xc */
    826     _flag_k = FK_ADD;
    827     /* cmp ecx, edx */ /* 0x42007298: cmp ecx, edx */
    828     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    830     _flag_k = FK_CMP;
    831     MEM32(ebp + 0x8) = ecx; /* 0x4200729A: mov dword ptr [ebp + 8], ecx */
    832     RECOMP_BACKEDGE();
    833     if (CMP_NE(_flag_a, _flag_b)) goto L_42007276; /* 0x4200729D: jne 0x42007276 */
    834 L_4200729F:
    835     MEM32(edi + 0xC) = eax; /* 0x4200729F: mov dword ptr [edi + 0xc], eax */
    836     MEM32(edi + 0x10) = eax; /* 0x420072A2: mov dword ptr [edi + 0x10], eax */
    837     SET_LO8(edx, MEM8(esi + 0x14)); /* 0x420072A5: mov dl, byte ptr [esi + 0x14] */
    838     MEM8(edi + 0x14) = (uint8_t)(LO8(edx)); /* 0x420072A8: mov byte ptr [edi + 0x14], dl */
    839     ecx = MEM32(esi + 0x18); /* 0x420072AB: mov ecx, dword ptr [esi + 0x18] */
    840     /* test ecx, ecx */ /* 0x420072AE: test ecx, ecx */
    841     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    842     _cf = 0;
    843     _flag_k = FK_TEST;
    844     MEM32(ebp + (-0x4)) = 0; /* 0x420072B0: mov dword ptr [ebp - 4], 0 */
    845     if (TEST_NZ(_flag_a, _flag_b)) goto L_420072BD; /* 0x420072B7: jne 0x420072bd */
    846 L_420072B9:
    847     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    848     eax = 0; /* 0x420072B9: xor eax, eax */
    849     _cf = 0;
    850     _flag_k = FK_TEST;
    851     goto L_420072C5; /* 0x420072BB: jmp 0x420072c5 */
    852 L_420072BD:
    853     eax = MEM32(esi + 0x1C); /* 0x420072BD: mov eax, dword ptr [esi + 0x1c] */
    854     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    856     eax = eax - ecx; /* 0x420072C0: sub eax, ecx */
    857     _flag_k = FK_CMP;
    858     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x420072C2: sar eax, 4 */
    859     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    860     eax = (uint32_t)((int32_t)eax >> 4u);
    861 L_420072C5:
    862     /* test eax, eax */ /* 0x420072C5: test eax, eax */
    863     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    864     _cf = 0;
    865     _flag_k = FK_TEST;
    866     if (TEST_NS(_flag_a, _flag_b)) goto L_420072CB; /* 0x420072C7: jge 0x420072cb */
    867 L_420072C9:
    868     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    869     eax = 0; /* 0x420072C9: xor eax, eax */
    870     _cf = 0;
    871     _flag_k = FK_TEST;
    872 L_420072CB:
    873     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x420072CB: shl eax, 4 */
    874     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    875     eax = eax << 4u; /* 0x420072CB: shl eax, 4 */
    876     PUSH32(esp, eax); /* 0x420072CE: push eax */
    877     RECOMP_ICALL(0x42016F36u); /* 0x420072CF: call 0x42016f36 */ /* not lifted */
    878     RECOMP_FLAGS_IN();
    879     MEM32(edi + 0x18) = eax; /* 0x420072D4: mov dword ptr [edi + 0x18], eax */
    880     edx = MEM32(esi + 0x1C); /* 0x420072D7: mov edx, dword ptr [esi + 0x1c] */
    881     ecx = eax; /* 0x420072DA: mov ecx, eax */
    882     eax = MEM32(esi + 0x18); /* 0x420072DC: mov eax, dword ptr [esi + 0x18] */
    883     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    884     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    885     esp = esp + 4; /* 0x420072DF: add esp, 4 */
    886     _flag_k = FK_ADD;
    887     /* cmp eax, edx */ /* 0x420072E2: cmp eax, edx */
    888     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    890     _flag_k = FK_CMP;
    891     MEM32(ebp + 0x8) = edx; /* 0x420072E4: mov dword ptr [ebp + 8], edx */
    892     if (CMP_EQ(_flag_a, _flag_b)) goto L_42007317; /* 0x420072E7: je 0x42007317 */
    893 L_420072E9:
    894     /* test ecx, ecx */ /* 0x420072E9: test ecx, ecx */
    895     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    896     _cf = 0;
    897     _flag_k = FK_TEST;
    898     if (TEST_Z(_flag_a, _flag_b)) goto L_4200730D; /* 0x420072EB: je 0x4200730d */
    899 L_420072ED:
    900     edx = eax; /* 0x420072ED: mov edx, eax */
    901     ebx = MEM32(edx); /* 0x420072EF: mov ebx, dword ptr [edx] */
    902     edi = ecx; /* 0x420072F1: mov edi, ecx */
    903     MEM32(edi) = ebx; /* 0x420072F3: mov dword ptr [edi], ebx */
    904     ebx = MEM32(edx + 0x4); /* 0x420072F5: mov ebx, dword ptr [edx + 4] */
    905     MEM32(edi + 0x4) = ebx; /* 0x420072F8: mov dword ptr [edi + 4], ebx */
    906     ebx = MEM32(edx + 0x8); /* 0x420072FB: mov ebx, dword ptr [edx + 8] */
    907     MEM32(edi + 0x8) = ebx; /* 0x420072FE: mov dword ptr [edi + 8], ebx */
    908     edx = MEM32(edx + 0xC); /* 0x42007301: mov edx, dword ptr [edx + 0xc] */
    909     MEM32(edi + 0xC) = edx; /* 0x42007304: mov dword ptr [edi + 0xc], edx */
    910     edx = MEM32(ebp + 0x8); /* 0x42007307: mov edx, dword ptr [ebp + 8] */
    911     edi = MEM32(ebp + (-0x14)); /* 0x4200730A: mov edi, dword ptr [ebp - 0x14] */
    912 L_4200730D:
    913     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
    914     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    915     eax = eax + 0x10u; /* 0x4200730D: add eax, 0x10 */
    916     _flag_k = FK_ADD;
    917     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
    918     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    919     ecx = ecx + 0x10u; /* 0x42007310: add ecx, 0x10 */
    920     _flag_k = FK_ADD;
    921     /* cmp eax, edx */ /* 0x42007313: cmp eax, edx */
    922     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    923     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    924     _flag_k = FK_CMP;
    925     RECOMP_BACKEDGE();
    926     if (CMP_NE(_flag_a, _flag_b)) goto L_420072E9; /* 0x42007315: jne 0x420072e9 */
    927 L_42007317:
    928     MEM32(edi + 0x1C) = ecx; /* 0x42007317: mov dword ptr [edi + 0x1c], ecx */
    929     MEM32(edi + 0x20) = ecx; /* 0x4200731A: mov dword ptr [edi + 0x20], ecx */
    930     eax = MEM32(esi + 0x24); /* 0x4200731D: mov eax, dword ptr [esi + 0x24] */
    931     MEM32(edi + 0x24) = eax; /* 0x42007320: mov dword ptr [edi + 0x24], eax */
    932     ecx = MEM32(esi + 0x28); /* 0x42007323: mov ecx, dword ptr [esi + 0x28] */
    933     MEM32(edi + 0x28) = ecx; /* 0x42007326: mov dword ptr [edi + 0x28], ecx */
    934     ecx = MEM32(ebp + (-0xC)); /* 0x42007329: mov ecx, dword ptr [ebp - 0xc] */
    935     MEM32(edi) = 0x4201846Cu; /* 0x4200732C: mov dword ptr [edi], 0x4201846c */
    936     eax = edi; /* 0x42007332: mov eax, edi */
    937     edi = POP32_VAL(esp); /* 0x42007334: pop edi */
    938     esi = POP32_VAL(esp); /* 0x42007335: pop esi */
    939     ebx = POP32_VAL(esp); /* 0x42007336: pop ebx */
    940     MEM32(FS_BASE + (0)) = ecx; /* 0x42007337: mov dword ptr fs:[0], ecx */
    941     esp = ebp; /* 0x4200733E: mov esp, ebp */
    942     ebp = POP32_VAL(esp); /* 0x42007340: pop ebp */
    943     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42007341: ret 4 */
    944     RECOMP_REGS_OUT();
    945 }
    946 
    947 void sub_42007350(void) {
    948     int _fpu_cmp = 0;
    949     uint32_t _cf = 0;
    950     int _df = 1;
    951     uint32_t _flag_k = FK_NONE;
    952     uint32_t _flag_a = 0, _flag_b = 0;
    953     uint32_t _itail_tgt = 0;
    954     RECOMP_REGS_LOCALS
    955     RECOMP_ENTER(0x42007350u);
    956 
    957 L_42007350:
    958     PUSH32(esp, ebp); /* 0x42007350: push ebp */
    959     ebp = esp; /* 0x42007351: mov ebp, esp */
    960     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    961     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    962     esp = esp - 0x10u; /* 0x42007353: sub esp, 0x10 */
    963     _flag_k = FK_CMP;
    964     eax = MEM32(ebp + 0x8); /* 0x42007356: mov eax, dword ptr [ebp + 8] */
    965     PUSH32(esp, ebx); /* 0x42007359: push ebx */
    966     PUSH32(esp, esi); /* 0x4200735A: push esi */
    967     ebx = ecx; /* 0x4200735B: mov ebx, ecx */
    968     PUSH32(esp, edi); /* 0x4200735D: push edi */
    969     edi = eax + 0x4; /* 0x4200735E: lea edi, [eax + 4] */
    970     esi = ebx + 0x4; /* 0x42007361: lea esi, [ebx + 4] */
    971     /* cmp esi, edi */ /* 0x42007364: cmp esi, edi */
    972     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
    973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    974     _flag_k = FK_CMP;
    975     MEM32(ebp + (-0x8)) = ebx; /* 0x42007366: mov dword ptr [ebp - 8], ebx */
    976     if (CMP_EQ(_flag_a, _flag_b)) goto L_4200750C; /* 0x42007369: je 0x4200750c */
    977 L_4200736F:
    978     eax = MEM32(edi + 0x4); /* 0x4200736F: mov eax, dword ptr [edi + 4] */
    979     /* test eax, eax */ /* 0x42007372: test eax, eax */
    980     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    981     _cf = 0;
    982     _flag_k = FK_TEST;
    983     MEM32(ebp + (-0x4)) = eax; /* 0x42007374: mov dword ptr [ebp - 4], eax */
    984     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200737E; /* 0x42007377: jne 0x4200737e */
    985 L_42007379:
    986     MEM32(ebp + (-0xC)) = eax; /* 0x42007379: mov dword ptr [ebp - 0xc], eax */
    987     goto L_42007396; /* 0x4200737C: jmp 0x42007396 */
    988 L_4200737E:
    989     ecx = MEM32(edi + 0x8); /* 0x4200737E: mov ecx, dword ptr [edi + 8] */
    990     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    992     ecx = ecx - eax; /* 0x42007381: sub ecx, eax */
    993     _flag_k = FK_CMP;
    994     eax = 0x2AAAAAABu; /* 0x42007383: mov eax, 0x2aaaaaab */
    995     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42007388: imul ecx */
    996       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    997       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    998     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x4200738A: sar edx, 1 */
    999     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1000     edx = (uint32_t)((int32_t)edx >> 1u);
   1001     ecx = edx; /* 0x4200738C: mov ecx, edx */
   1002     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x4200738E: shr ecx, 0x1f */
   1003     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1004     ecx = ecx >> 31u; /* 0x4200738E: shr ecx, 0x1f */
   1005     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1006     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1007     edx = edx + ecx; /* 0x42007391: add edx, ecx */
   1008     _flag_k = FK_ADD;
   1009     MEM32(ebp + (-0xC)) = edx; /* 0x42007393: mov dword ptr [ebp - 0xc], edx */
   1010 L_42007396:
   1011     ebx = MEM32(esi + 0x4); /* 0x42007396: mov ebx, dword ptr [esi + 4] */
   1012     /* test ebx, ebx */ /* 0x42007399: test ebx, ebx */
   1013     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1014     _cf = 0;
   1015     _flag_k = FK_TEST;
   1016     if (TEST_NZ(_flag_a, _flag_b)) goto L_420073A1; /* 0x4200739B: jne 0x420073a1 */
   1017 L_4200739D:
   1018     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1019     edx = 0; /* 0x4200739D: xor edx, edx */
   1020     _cf = 0;
   1021     _flag_k = FK_TEST;
   1022     goto L_420073B6; /* 0x4200739F: jmp 0x420073b6 */
   1023 L_420073A1:
   1024     ecx = MEM32(esi + 0x8); /* 0x420073A1: mov ecx, dword ptr [esi + 8] */
   1025     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1027     ecx = ecx - ebx; /* 0x420073A4: sub ecx, ebx */
   1028     _flag_k = FK_CMP;
   1029     eax = 0x2AAAAAABu; /* 0x420073A6: mov eax, 0x2aaaaaab */
   1030     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x420073AB: imul ecx */
   1031       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1032       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1033     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x420073AD: sar edx, 1 */
   1034     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1035     edx = (uint32_t)((int32_t)edx >> 1u);
   1036     eax = edx; /* 0x420073AF: mov eax, edx */
   1037     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x420073B1: shr eax, 0x1f */
   1038     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1039     eax = eax >> 31u; /* 0x420073B1: shr eax, 0x1f */
   1040     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1041     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1042     edx = edx + eax; /* 0x420073B4: add edx, eax */
   1043     _flag_k = FK_ADD;
   1044 L_420073B6:
   1045     /* cmp MEM32(ebp + (-0xC)), edx */ /* 0x420073B6: cmp dword ptr [ebp - 0xc], edx */
   1046     _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(edx);
   1047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1048     _flag_k = FK_CMP;
   1049     if (CMP_A(_flag_a, _flag_b)) goto L_42007430; /* 0x420073B9: ja 0x42007430 */
   1050 L_420073BB:
   1051     ecx = MEM32(edi + 0x8); /* 0x420073BB: mov ecx, dword ptr [edi + 8] */
   1052     eax = MEM32(ebp + (-0x4)); /* 0x420073BE: mov eax, dword ptr [ebp - 4] */
   1053     /* cmp eax, ecx */ /* 0x420073C1: cmp eax, ecx */
   1054     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1056     _flag_k = FK_CMP;
   1057     MEM32(ebp + (-0x10)) = ecx; /* 0x420073C3: mov dword ptr [ebp - 0x10], ecx */
   1058     MEM32(ebp + (-0xC)) = ebx; /* 0x420073C6: mov dword ptr [ebp - 0xc], ebx */
   1059     if (CMP_EQ(_flag_a, _flag_b)) goto L_420073F0; /* 0x420073C9: je 0x420073f0 */
   1060 L_420073CB:
   1061     ecx = eax; /* 0x420073CB: mov ecx, eax */
   1062     edx = MEM32(ecx); /* 0x420073CD: mov edx, dword ptr [ecx] */
   1063     MEM32(ebx) = edx; /* 0x420073CF: mov dword ptr [ebx], edx */
   1064     edx = MEM32(ecx + 0x4); /* 0x420073D1: mov edx, dword ptr [ecx + 4] */
   1065     MEM32(ebx + 0x4) = edx; /* 0x420073D4: mov dword ptr [ebx + 4], edx */
   1066     ecx = MEM32(ecx + 0x8); /* 0x420073D7: mov ecx, dword ptr [ecx + 8] */
   1067     MEM32(ebx + 0x8) = ecx; /* 0x420073DA: mov dword ptr [ebx + 8], ecx */
   1068     ebx = MEM32(ebp + (-0xC)); /* 0x420073DD: mov ebx, dword ptr [ebp - 0xc] */
   1069     ecx = MEM32(ebp + (-0x10)); /* 0x420073E0: mov ecx, dword ptr [ebp - 0x10] */
   1070     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1071     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1072     ebx = ebx + 0xCu; /* 0x420073E3: add ebx, 0xc */
   1073     _flag_k = FK_ADD;
   1074     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1075     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1076     eax = eax + 0xCu; /* 0x420073E6: add eax, 0xc */
   1077     _flag_k = FK_ADD;
   1078     /* cmp eax, ecx */ /* 0x420073E9: cmp eax, ecx */
   1079     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1081     _flag_k = FK_CMP;
   1082     MEM32(ebp + (-0xC)) = ebx; /* 0x420073EB: mov dword ptr [ebp - 0xc], ebx */
   1083     RECOMP_BACKEDGE();
   1084     if (CMP_NE(_flag_a, _flag_b)) goto L_420073CB; /* 0x420073EE: jne 0x420073cb */
   1085 L_420073F0:
   1086     eax = MEM32(edi + 0x4); /* 0x420073F0: mov eax, dword ptr [edi + 4] */
   1087     /* test eax, eax */ /* 0x420073F3: test eax, eax */
   1088     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1089     _cf = 0;
   1090     _flag_k = FK_TEST;
   1091     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200740A; /* 0x420073F5: jne 0x4200740a */
   1092 L_420073F7:
   1093     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1094     edx = 0; /* 0x420073F7: xor edx, edx */
   1095     _cf = 0;
   1096     _flag_k = FK_TEST;
   1097     ecx = edx + edx * 2; /* 0x420073F9: lea ecx, [edx + edx*2] */
   1098     edx = MEM32(esi + 0x4); /* 0x420073FC: mov edx, dword ptr [esi + 4] */
   1099     eax = edx + ecx * 4; /* 0x420073FF: lea eax, [edx + ecx*4] */
   1100     MEM32(esi + 0x8) = eax; /* 0x42007402: mov dword ptr [esi + 8], eax */
   1101     goto L_42007509; /* 0x42007405: jmp 0x42007509 */
   1102 L_4200740A:
   1103     edi = MEM32(edi + 0x8); /* 0x4200740A: mov edi, dword ptr [edi + 8] */
   1104     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1106     edi = edi - eax; /* 0x4200740D: sub edi, eax */
   1107     _flag_k = FK_CMP;
   1108     eax = 0x2AAAAAABu; /* 0x4200740F: mov eax, 0x2aaaaaab */
   1109     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edi); /* 0x42007414: imul edi */
   1110       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1111       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1112     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42007416: sar edx, 1 */
   1113     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1114     edx = (uint32_t)((int32_t)edx >> 1u);
   1115     eax = edx; /* 0x42007418: mov eax, edx */
   1116     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x4200741A: shr eax, 0x1f */
   1117     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1118     eax = eax >> 31u; /* 0x4200741A: shr eax, 0x1f */
   1119     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1120     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1121     edx = edx + eax; /* 0x4200741D: add edx, eax */
   1122     _flag_k = FK_ADD;
   1123     ecx = edx + edx * 2; /* 0x4200741F: lea ecx, [edx + edx*2] */
   1124     edx = MEM32(esi + 0x4); /* 0x42007422: mov edx, dword ptr [esi + 4] */
   1125     eax = edx + ecx * 4; /* 0x42007425: lea eax, [edx + ecx*4] */
   1126     MEM32(esi + 0x8) = eax; /* 0x42007428: mov dword ptr [esi + 8], eax */
   1127     goto L_42007509; /* 0x4200742B: jmp 0x42007509 */
   1128 L_42007430:
   1129     eax = MEM32(ebp + (-0x4)); /* 0x42007430: mov eax, dword ptr [ebp - 4] */
   1130     /* test eax, eax */ /* 0x42007433: test eax, eax */
   1131     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1132     _cf = 0;
   1133     _flag_k = FK_TEST;
   1134     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200743C; /* 0x42007435: jne 0x4200743c */
   1135 L_42007437:
   1136     MEM32(ebp + (-0xC)) = eax; /* 0x42007437: mov dword ptr [ebp - 0xc], eax */
   1137     goto L_42007454; /* 0x4200743A: jmp 0x42007454 */
   1138 L_4200743C:
   1139     ecx = MEM32(edi + 0x8); /* 0x4200743C: mov ecx, dword ptr [edi + 8] */
   1140     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1142     ecx = ecx - eax; /* 0x4200743F: sub ecx, eax */
   1143     _flag_k = FK_CMP;
   1144     eax = 0x2AAAAAABu; /* 0x42007441: mov eax, 0x2aaaaaab */
   1145     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42007446: imul ecx */
   1146       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1147       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1148     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42007448: sar edx, 1 */
   1149     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1150     edx = (uint32_t)((int32_t)edx >> 1u);
   1151     ecx = edx; /* 0x4200744A: mov ecx, edx */
   1152     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x4200744C: shr ecx, 0x1f */
   1153     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1154     ecx = ecx >> 31u; /* 0x4200744C: shr ecx, 0x1f */
   1155     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1156     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1157     edx = edx + ecx; /* 0x4200744F: add edx, ecx */
   1158     _flag_k = FK_ADD;
   1159     MEM32(ebp + (-0xC)) = edx; /* 0x42007451: mov dword ptr [ebp - 0xc], edx */
   1160 L_42007454:
   1161     /* test ebx, ebx */ /* 0x42007454: test ebx, ebx */
   1162     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1163     _cf = 0;
   1164     _flag_k = FK_TEST;
   1165     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200745C; /* 0x42007456: jne 0x4200745c */
   1166 L_42007458:
   1167     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1168     edx = 0; /* 0x42007458: xor edx, edx */
   1169     _cf = 0;
   1170     _flag_k = FK_TEST;
   1171     goto L_42007471; /* 0x4200745A: jmp 0x42007471 */
   1172 L_4200745C:
   1173     ecx = MEM32(esi + 0xC); /* 0x4200745C: mov ecx, dword ptr [esi + 0xc] */
   1174     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1176     ecx = ecx - ebx; /* 0x4200745F: sub ecx, ebx */
   1177     _flag_k = FK_CMP;
   1178     eax = 0x2AAAAAABu; /* 0x42007461: mov eax, 0x2aaaaaab */
   1179     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42007466: imul ecx */
   1180       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1181       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1182     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42007468: sar edx, 1 */
   1183     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1184     edx = (uint32_t)((int32_t)edx >> 1u);
   1185     eax = edx; /* 0x4200746A: mov eax, edx */
   1186     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x4200746C: shr eax, 0x1f */
   1187     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1188     eax = eax >> 31u; /* 0x4200746C: shr eax, 0x1f */
   1189     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1190     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1191     edx = edx + eax; /* 0x4200746F: add edx, eax */
   1192     _flag_k = FK_ADD;
   1193 L_42007471:
   1194     /* cmp MEM32(ebp + (-0xC)), edx */ /* 0x42007471: cmp dword ptr [ebp - 0xc], edx */
   1195     _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(edx);
   1196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1197     _flag_k = FK_CMP;
   1198     if (CMP_A(_flag_a, _flag_b)) goto L_420074BC; /* 0x42007474: ja 0x420074bc */
   1199 L_42007476:
   1200     ecx = esi; /* 0x42007476: mov ecx, esi */
   1201     RECOMP_ICALL(0x42008960u); /* 0x42007478: call 0x42008960 */ /* not lifted */
   1202     RECOMP_FLAGS_IN();
   1203     edx = MEM32(ebp + (-0x4)); /* 0x4200747D: mov edx, dword ptr [ebp - 4] */
   1204     ecx = eax + eax * 2; /* 0x42007480: lea ecx, [eax + eax*2] */
   1205     eax = MEM32(esi + 0x4); /* 0x42007483: mov eax, dword ptr [esi + 4] */
   1206     ebx = edx + ecx * 4; /* 0x42007486: lea ebx, [edx + ecx*4] */
   1207     ecx = MEM32(edi + 0x4); /* 0x42007489: mov ecx, dword ptr [edi + 4] */
   1208     PUSH32(esp, eax); /* 0x4200748C: push eax */
   1209     PUSH32(esp, ebx); /* 0x4200748D: push ebx */
   1210     PUSH32(esp, ecx); /* 0x4200748E: push ecx */
   1211     RECOMP_ICALL(0x42009210u); /* 0x4200748F: call 0x42009210 */ /* not lifted */
   1212     RECOMP_FLAGS_IN();
   1213     edx = MEM32(esi + 0x8); /* 0x42007494: mov edx, dword ptr [esi + 8] */
   1214     eax = MEM32(edi + 0x8); /* 0x42007497: mov eax, dword ptr [edi + 8] */
   1215     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1216     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1217     esp = esp + 0xCu; /* 0x4200749A: add esp, 0xc */
   1218     _flag_k = FK_ADD;
   1219     PUSH32(esp, edx); /* 0x4200749D: push edx */
   1220     PUSH32(esp, eax); /* 0x4200749E: push eax */
   1221     PUSH32(esp, ebx); /* 0x4200749F: push ebx */
   1222     ecx = esi; /* 0x420074A0: mov ecx, esi */
   1223     RECOMP_ICALL(0x42008B80u); /* 0x420074A2: call 0x42008b80 */ /* not lifted */
   1224     RECOMP_FLAGS_IN();
   1225     ecx = edi; /* 0x420074A7: mov ecx, edi */
   1226     RECOMP_ICALL(0x42008960u); /* 0x420074A9: call 0x42008960 */ /* not lifted */
   1227     RECOMP_FLAGS_IN();
   1228     edx = MEM32(esi + 0x4); /* 0x420074AE: mov edx, dword ptr [esi + 4] */
   1229     ecx = eax + eax * 2; /* 0x420074B1: lea ecx, [eax + eax*2] */
   1230     eax = edx + ecx * 4; /* 0x420074B4: lea eax, [edx + ecx*4] */
   1231     MEM32(esi + 0x8) = eax; /* 0x420074B7: mov dword ptr [esi + 8], eax */
   1232     goto L_42007509; /* 0x420074BA: jmp 0x42007509 */
   1233 L_420074BC:
   1234     ecx = MEM32(esi + 0x8); /* 0x420074BC: mov ecx, dword ptr [esi + 8] */
   1235     PUSH32(esp, ecx); /* 0x420074BF: push ecx */
   1236     PUSH32(esp, ebx); /* 0x420074C0: push ebx */
   1237     ecx = esi; /* 0x420074C1: mov ecx, esi */
   1238     RECOMP_ICALL(0x42002690u); /* 0x420074C3: call 0x42002690 */ /* not lifted */
   1239     RECOMP_FLAGS_IN();
   1240     edx = MEM32(esi + 0x4); /* 0x420074C8: mov edx, dword ptr [esi + 4] */
   1241     PUSH32(esp, edx); /* 0x420074CB: push edx */
   1242     RECOMP_ICALL(0x42016DD0u); /* 0x420074CC: call 0x42016dd0 */ /* not lifted */
   1243     RECOMP_FLAGS_IN();
   1244     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1245     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1246     esp = esp + 4; /* 0x420074D1: add esp, 4 */
   1247     _flag_k = FK_ADD;
   1248     ecx = edi; /* 0x420074D4: mov ecx, edi */
   1249     RECOMP_ICALL(0x42008960u); /* 0x420074D6: call 0x42008960 */ /* not lifted */
   1250     RECOMP_FLAGS_IN();
   1251     /* test eax, eax */ /* 0x420074DB: test eax, eax */
   1252     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1253     _cf = 0;
   1254     _flag_k = FK_TEST;
   1255     if (TEST_NS(_flag_a, _flag_b)) goto L_420074E1; /* 0x420074DD: jge 0x420074e1 */
   1256 L_420074DF:
   1257     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1258     eax = 0; /* 0x420074DF: xor eax, eax */
   1259     _cf = 0;
   1260     _flag_k = FK_TEST;
   1261 L_420074E1:
   1262     eax = eax + eax * 2; /* 0x420074E1: lea eax, [eax + eax*2] */
   1263     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x420074E4: shl eax, 2 */
   1264     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1265     eax = eax << 2u; /* 0x420074E4: shl eax, 2 */
   1266     PUSH32(esp, eax); /* 0x420074E7: push eax */
   1267     RECOMP_ICALL(0x42016F36u); /* 0x420074E8: call 0x42016f36 */ /* not lifted */
   1268     RECOMP_FLAGS_IN();
   1269     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1270     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1271     esp = esp + 4; /* 0x420074ED: add esp, 4 */
   1272     _flag_k = FK_ADD;
   1273     MEM32(esi + 0x4) = eax; /* 0x420074F0: mov dword ptr [esi + 4], eax */
   1274     ecx = MEM32(edi + 0x8); /* 0x420074F3: mov ecx, dword ptr [edi + 8] */
   1275     edi = MEM32(edi + 0x4); /* 0x420074F6: mov edi, dword ptr [edi + 4] */
   1276     PUSH32(esp, eax); /* 0x420074F9: push eax */
   1277     PUSH32(esp, ecx); /* 0x420074FA: push ecx */
   1278     PUSH32(esp, edi); /* 0x420074FB: push edi */
   1279     ecx = esi; /* 0x420074FC: mov ecx, esi */
   1280     RECOMP_ICALL(0x42008B80u); /* 0x420074FE: call 0x42008b80 */ /* not lifted */
   1281     RECOMP_FLAGS_IN();
   1282     MEM32(esi + 0x8) = eax; /* 0x42007503: mov dword ptr [esi + 8], eax */
   1283     MEM32(esi + 0xC) = eax; /* 0x42007506: mov dword ptr [esi + 0xc], eax */
   1284 L_42007509:
   1285     ebx = MEM32(ebp + (-0x8)); /* 0x42007509: mov ebx, dword ptr [ebp - 8] */
   1286 L_4200750C:
   1287     ecx = MEM32(ebp + 0x8); /* 0x4200750C: mov ecx, dword ptr [ebp + 8] */
   1288     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
   1289     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1290     ecx = ecx + 0x14u; /* 0x4200750F: add ecx, 0x14 */
   1291     _flag_k = FK_ADD;
   1292     PUSH32(esp, ecx); /* 0x42007512: push ecx */
   1293     ecx = ebx + 0x14; /* 0x42007513: lea ecx, [ebx + 0x14] */
   1294     RECOMP_ICALL(0x42008980u); /* 0x42007516: call 0x42008980 */ /* not lifted */
   1295     RECOMP_FLAGS_IN();
   1296     eax = MEM32(ebp + 0x8); /* 0x4200751B: mov eax, dword ptr [ebp + 8] */
   1297     edx = MEM32(eax + 0x24); /* 0x4200751E: mov edx, dword ptr [eax + 0x24] */
   1298     MEM32(ebx + 0x24) = edx; /* 0x42007521: mov dword ptr [ebx + 0x24], edx */
   1299     eax = MEM32(eax + 0x28); /* 0x42007524: mov eax, dword ptr [eax + 0x28] */
   1300     edi = POP32_VAL(esp); /* 0x42007527: pop edi */
   1301     MEM32(ebx + 0x28) = eax; /* 0x42007528: mov dword ptr [ebx + 0x28], eax */
   1302     esi = POP32_VAL(esp); /* 0x4200752B: pop esi */
   1303     eax = ebx; /* 0x4200752C: mov eax, ebx */
   1304     ebx = POP32_VAL(esp); /* 0x4200752E: pop ebx */
   1305     esp = ebp; /* 0x4200752F: mov esp, ebp */
   1306     ebp = POP32_VAL(esp); /* 0x42007531: pop ebp */
   1307     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42007532: ret 4 */
   1308     RECOMP_REGS_OUT();
   1309 }
   1310 
   1311 void sub_42007509(void) {
   1312     int _fpu_cmp = 0;
   1313     uint32_t _cf = 0;
   1314     int _df = 1;
   1315     uint32_t _flag_k = FK_NONE;
   1316     uint32_t _flag_a = 0, _flag_b = 0;
   1317     uint32_t _itail_tgt = 0;
   1318     RECOMP_REGS_LOCALS
   1319     RECOMP_ENTER(0x42007509u);
   1320 
   1321 L_42007509:
   1322     ebx = MEM32(ebp + (-0x8)); /* 0x42007509: mov ebx, dword ptr [ebp - 8] */
   1323     ecx = MEM32(ebp + 0x8); /* 0x4200750C: mov ecx, dword ptr [ebp + 8] */
   1324     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
   1325     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1326     ecx = ecx + 0x14u; /* 0x4200750F: add ecx, 0x14 */
   1327     _flag_k = FK_ADD;
   1328     PUSH32(esp, ecx); /* 0x42007512: push ecx */
   1329     ecx = ebx + 0x14; /* 0x42007513: lea ecx, [ebx + 0x14] */
   1330     RECOMP_ICALL(0x42008980u); /* 0x42007516: call 0x42008980 */ /* not lifted */
   1331     RECOMP_FLAGS_IN();
   1332     eax = MEM32(ebp + 0x8); /* 0x4200751B: mov eax, dword ptr [ebp + 8] */
   1333     edx = MEM32(eax + 0x24); /* 0x4200751E: mov edx, dword ptr [eax + 0x24] */
   1334     MEM32(ebx + 0x24) = edx; /* 0x42007521: mov dword ptr [ebx + 0x24], edx */
   1335     eax = MEM32(eax + 0x28); /* 0x42007524: mov eax, dword ptr [eax + 0x28] */
   1336     edi = POP32_VAL(esp); /* 0x42007527: pop edi */
   1337     MEM32(ebx + 0x28) = eax; /* 0x42007528: mov dword ptr [ebx + 0x28], eax */
   1338     esi = POP32_VAL(esp); /* 0x4200752B: pop esi */
   1339     eax = ebx; /* 0x4200752C: mov eax, ebx */
   1340     ebx = POP32_VAL(esp); /* 0x4200752E: pop ebx */
   1341     esp = ebp; /* 0x4200752F: mov esp, ebp */
   1342     ebp = POP32_VAL(esp); /* 0x42007531: pop ebp */
   1343     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42007532: ret 4 */
   1344     RECOMP_REGS_OUT();
   1345 }
   1346 
   1347 void sub_42007540(void) {
   1348     int _fpu_cmp = 0;
   1349     uint32_t _cf = 0;
   1350     int _df = 1;
   1351     uint32_t _flag_k = FK_NONE;
   1352     uint32_t _flag_a = 0, _flag_b = 0;
   1353     uint32_t _itail_tgt = 0;
   1354     RECOMP_REGS_LOCALS
   1355     RECOMP_ENTER(0x42007540u);
   1356 
   1357 L_42007540:
   1358     PUSH32(esp, ebp); /* 0x42007540: push ebp */
   1359     ebp = esp; /* 0x42007541: mov ebp, esp */
   1360     PUSH32(esp, ebx); /* 0x42007543: push ebx */
   1361     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x42007544: mov bl, byte ptr [ebp + 8] */
   1362     /* test LO8(ebx), 2 */ /* 0x42007547: test bl, 2 */
   1363     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   1364     _cf = 0;
   1365     _flag_k = FK_NARROW(FK_TEST, 24);
   1366     PUSH32(esp, esi); /* 0x4200754A: push esi */
   1367     esi = ecx; /* 0x4200754B: mov esi, ecx */
   1368     if (TEST_Z(_flag_a, _flag_b)) goto L_4200757B; /* 0x4200754D: je 0x4200757b */
   1369 L_4200754F:
   1370     eax = MEM32(esi + (-0x4)); /* 0x4200754F: mov eax, dword ptr [esi - 4] */
   1371     PUSH32(esp, edi); /* 0x42007552: push edi */
   1372     PUSH32(esp, 0x420075E0u); /* 0x42007553: push 0x420075e0 */
   1373     edi = esi + (-0x4); /* 0x42007558: lea edi, [esi - 4] */
   1374     PUSH32(esp, eax); /* 0x4200755B: push eax */
   1375     PUSH32(esp, 0x2Cu); /* 0x4200755C: push 0x2c */
   1376     PUSH32(esp, esi); /* 0x4200755E: push esi */
   1377     RECOMP_ICALL(0x42016E3Cu); /* 0x4200755F: call 0x42016e3c */ /* not lifted */
   1378     RECOMP_FLAGS_IN();
   1379     /* test LO8(ebx), 1 */ /* 0x42007564: test bl, 1 */
   1380     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1381     _cf = 0;
   1382     _flag_k = FK_NARROW(FK_TEST, 24);
   1383     if (TEST_Z(_flag_a, _flag_b)) goto L_42007572; /* 0x42007567: je 0x42007572 */
   1384 L_42007569:
   1385     PUSH32(esp, edi); /* 0x42007569: push edi */
   1386     RECOMP_ICALL(0x42016DD0u); /* 0x4200756A: call 0x42016dd0 */ /* not lifted */
   1387     RECOMP_FLAGS_IN();
   1388     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1389     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1390     esp = esp + 4; /* 0x4200756F: add esp, 4 */
   1391     _flag_k = FK_ADD;
   1392 L_42007572:
   1393     eax = edi; /* 0x42007572: mov eax, edi */
   1394     edi = POP32_VAL(esp); /* 0x42007574: pop edi */
   1395     esi = POP32_VAL(esp); /* 0x42007575: pop esi */
   1396     ebx = POP32_VAL(esp); /* 0x42007576: pop ebx */
   1397     ebp = POP32_VAL(esp); /* 0x42007577: pop ebp */
   1398     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42007578: ret 4 */
   1399 L_4200757B:
   1400     ecx = esi; /* 0x4200757B: mov ecx, esi */
   1401     RECOMP_ICALL(0x420075E0u); /* 0x4200757D: call 0x420075e0 */ /* not lifted */
   1402     RECOMP_FLAGS_IN();
   1403     /* test LO8(ebx), 1 */ /* 0x42007582: test bl, 1 */
   1404     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1405     _cf = 0;
   1406     _flag_k = FK_NARROW(FK_TEST, 24);
   1407     if (TEST_Z(_flag_a, _flag_b)) goto L_42007590; /* 0x42007585: je 0x42007590 */
   1408 L_42007587:
   1409     PUSH32(esp, esi); /* 0x42007587: push esi */
   1410     RECOMP_ICALL(0x42016DD0u); /* 0x42007588: call 0x42016dd0 */ /* not lifted */
   1411     RECOMP_FLAGS_IN();
   1412     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1413     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1414     esp = esp + 4; /* 0x4200758D: add esp, 4 */
   1415     _flag_k = FK_ADD;
   1416 L_42007590:
   1417     eax = esi; /* 0x42007590: mov eax, esi */
   1418     esi = POP32_VAL(esp); /* 0x42007592: pop esi */
   1419     ebx = POP32_VAL(esp); /* 0x42007593: pop ebx */
   1420     ebp = POP32_VAL(esp); /* 0x42007594: pop ebp */
   1421     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42007595: ret 4 */
   1422     RECOMP_REGS_OUT();
   1423 }
   1424 
   1425 void sub_420075A0(void) {
   1426     int _fpu_cmp = 0;
   1427     uint32_t _cf = 0;
   1428     int _df = 1;
   1429     uint32_t _flag_k = FK_NONE;
   1430     uint32_t _flag_a = 0, _flag_b = 0;
   1431     uint32_t _itail_tgt = 0;
   1432     RECOMP_REGS_LOCALS
   1433     RECOMP_ENTER(0x420075A0u);
   1434 
   1435 L_420075A0:
   1436     PUSH32(esp, ebp); /* 0x420075A0: push ebp */
   1437     ebp = esp; /* 0x420075A1: mov ebp, esp */
   1438     PUSH32(esp, ecx); /* 0x420075A3: push ecx */
   1439     SET_LO8(edx, MEM8(ebp + (-0x1))); /* 0x420075A4: mov dl, byte ptr [ebp - 1] */
   1440     eax = ecx; /* 0x420075A7: mov eax, ecx */
   1441     SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x420075A9: mov cl, byte ptr [ebp - 1] */
   1442     MEM8(eax + 0x4) = (uint8_t)(LO8(ecx)); /* 0x420075AC: mov byte ptr [eax + 4], cl */
   1443     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1444     ecx = 0; /* 0x420075AF: xor ecx, ecx */
   1445     _cf = 0;
   1446     _flag_k = FK_TEST;
   1447     MEM32(eax + 0x8) = ecx; /* 0x420075B1: mov dword ptr [eax + 8], ecx */
   1448     MEM32(eax + 0xC) = ecx; /* 0x420075B4: mov dword ptr [eax + 0xc], ecx */
   1449     MEM32(eax + 0x10) = ecx; /* 0x420075B7: mov dword ptr [eax + 0x10], ecx */
   1450     MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x420075BA: mov byte ptr [eax + 0x14], dl */
   1451     MEM32(eax + 0x18) = ecx; /* 0x420075BD: mov dword ptr [eax + 0x18], ecx */
   1452     MEM32(eax + 0x1C) = ecx; /* 0x420075C0: mov dword ptr [eax + 0x1c], ecx */
   1453     MEM32(eax + 0x20) = ecx; /* 0x420075C3: mov dword ptr [eax + 0x20], ecx */
   1454     MEM32(eax) = 0x4201846Cu; /* 0x420075C6: mov dword ptr [eax], 0x4201846c */
   1455     MEM32(eax + 0x24) = 0x3F000000u; /* 0x420075CC: mov dword ptr [eax + 0x24], 0x3f000000 */
   1456     MEM32(eax + 0x28) = ecx; /* 0x420075D3: mov dword ptr [eax + 0x28], ecx */
   1457     esp = ebp; /* 0x420075D6: mov esp, ebp */
   1458     ebp = POP32_VAL(esp); /* 0x420075D8: pop ebp */
   1459     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420075D9: ret  */
   1460     RECOMP_REGS_OUT();
   1461 }
   1462 
   1463 void sub_420075E0(void) {
   1464     int _fpu_cmp = 0;
   1465     uint32_t _cf = 0;
   1466     int _df = 1;
   1467     uint32_t _flag_k = FK_NONE;
   1468     uint32_t _flag_a = 0, _flag_b = 0;
   1469     uint32_t _itail_tgt = 0;
   1470     RECOMP_REGS_LOCALS
   1471     RECOMP_ENTER(0x420075E0u);
   1472 
   1473 L_420075E0:
   1474     PUSH32(esp, ebp); /* 0x420075E0: push ebp */
   1475     ebp = esp; /* 0x420075E1: mov ebp, esp */
   1476     PUSH32(esp, ecx); /* 0x420075E3: push ecx */
   1477     PUSH32(esp, esi); /* 0x420075E4: push esi */
   1478     esi = ecx; /* 0x420075E5: mov esi, ecx */
   1479     MEM32(esi) = 0x4201846Cu; /* 0x420075E7: mov dword ptr [esi], 0x4201846c */
   1480     eax = MEM32(esi + 0x18); /* 0x420075ED: mov eax, dword ptr [esi + 0x18] */
   1481     PUSH32(esp, edi); /* 0x420075F0: push edi */
   1482     PUSH32(esp, eax); /* 0x420075F1: push eax */
   1483     MEM32(ebp + (-0x4)) = eax; /* 0x420075F2: mov dword ptr [ebp - 4], eax */
   1484     RECOMP_ICALL(0x42016DD0u); /* 0x420075F5: call 0x42016dd0 */ /* not lifted */
   1485     RECOMP_FLAGS_IN();
   1486     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1487     edi = 0; /* 0x420075FA: xor edi, edi */
   1488     _cf = 0;
   1489     _flag_k = FK_TEST;
   1490     MEM32(esi + 0x18) = edi; /* 0x420075FC: mov dword ptr [esi + 0x18], edi */
   1491     MEM32(esi + 0x1C) = edi; /* 0x420075FF: mov dword ptr [esi + 0x1c], edi */
   1492     MEM32(esi + 0x20) = edi; /* 0x42007602: mov dword ptr [esi + 0x20], edi */
   1493     eax = MEM32(esi + 0x8); /* 0x42007605: mov eax, dword ptr [esi + 8] */
   1494     PUSH32(esp, eax); /* 0x42007608: push eax */
   1495     MEM32(ebp + (-0x4)) = eax; /* 0x42007609: mov dword ptr [ebp - 4], eax */
   1496     RECOMP_ICALL(0x42016DD0u); /* 0x4200760C: call 0x42016dd0 */ /* not lifted */
   1497     RECOMP_FLAGS_IN();
   1498     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1499     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1500     esp = esp + 8; /* 0x42007611: add esp, 8 */
   1501     _flag_k = FK_ADD;
   1502     MEM32(esi + 0x8) = edi; /* 0x42007614: mov dword ptr [esi + 8], edi */
   1503     MEM32(esi + 0xC) = edi; /* 0x42007617: mov dword ptr [esi + 0xc], edi */
   1504     MEM32(esi + 0x10) = edi; /* 0x4200761A: mov dword ptr [esi + 0x10], edi */
   1505     edi = POP32_VAL(esp); /* 0x4200761D: pop edi */
   1506     esi = POP32_VAL(esp); /* 0x4200761E: pop esi */
   1507     esp = ebp; /* 0x4200761F: mov esp, ebp */
   1508     ebp = POP32_VAL(esp); /* 0x42007621: pop ebp */
   1509     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42007622: ret  */
   1510     RECOMP_REGS_OUT();
   1511 }
   1512 
   1513 void sub_42007630(void) {
   1514     int _fpu_cmp = 0;
   1515     uint32_t _cf = 0;
   1516     int _df = 1;
   1517     uint32_t _flag_k = FK_NONE;
   1518     uint32_t _flag_a = 0, _flag_b = 0;
   1519     uint32_t _itail_tgt = 0;
   1520     RECOMP_REGS_LOCALS
   1521     RECOMP_ENTER(0x42007630u);
   1522 
   1523 L_42007630:
   1524     PUSH32(esp, ebp); /* 0x42007630: push ebp */
   1525     ebp = esp; /* 0x42007631: mov ebp, esp */
   1526     PUSH32(esp, ecx); /* 0x42007633: push ecx */
   1527     eax = MEM32(ecx + 0xC); /* 0x42007634: mov eax, dword ptr [ecx + 0xc] */
   1528     /* cmp eax, eax */ /* 0x42007637: cmp eax, eax */
   1529     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1530     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1531     _flag_k = FK_CMP;
   1532     edx = MEM32(ecx + 0x8); /* 0x42007639: mov edx, dword ptr [ecx + 8] */
   1533     PUSH32(esp, ebx); /* 0x4200763C: push ebx */
   1534     PUSH32(esp, esi); /* 0x4200763D: push esi */
   1535     PUSH32(esp, edi); /* 0x4200763E: push edi */
   1536     MEM32(ebp + (-0x4)) = eax; /* 0x4200763F: mov dword ptr [ebp - 4], eax */
   1537     if (CMP_EQ(_flag_a, _flag_b)) goto L_42007665; /* 0x42007642: je 0x42007665 */
   1538 L_42007644:
   1539     esi = eax; /* 0x42007644: mov esi, eax */
   1540     ebx = MEM32(esi); /* 0x42007646: mov ebx, dword ptr [esi] */
   1541     edi = edx; /* 0x42007648: mov edi, edx */
   1542     MEM32(edi) = ebx; /* 0x4200764A: mov dword ptr [edi], ebx */
   1543     ebx = MEM32(esi + 0x4); /* 0x4200764C: mov ebx, dword ptr [esi + 4] */
   1544     MEM32(edi + 0x4) = ebx; /* 0x4200764F: mov dword ptr [edi + 4], ebx */
   1545     esi = MEM32(esi + 0x8); /* 0x42007652: mov esi, dword ptr [esi + 8] */
   1546     MEM32(edi + 0x8) = esi; /* 0x42007655: mov dword ptr [edi + 8], esi */
   1547     esi = MEM32(ebp + (-0x4)); /* 0x42007658: mov esi, dword ptr [ebp - 4] */
   1548     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1549     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1550     eax = eax + 0xCu; /* 0x4200765B: add eax, 0xc */
   1551     _flag_k = FK_ADD;
   1552     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   1553     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1554     edx = edx + 0xCu; /* 0x4200765E: add edx, 0xc */
   1555     _flag_k = FK_ADD;
   1556     /* cmp eax, esi */ /* 0x42007661: cmp eax, esi */
   1557     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1558     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1559     _flag_k = FK_CMP;
   1560     RECOMP_BACKEDGE();
   1561     if (CMP_NE(_flag_a, _flag_b)) goto L_42007644; /* 0x42007663: jne 0x42007644 */
   1562 L_42007665:
   1563     eax = MEM32(ecx + 0xC); /* 0x42007665: mov eax, dword ptr [ecx + 0xc] */
   1564     MEM32(ebp + (-0x4)) = eax; /* 0x42007668: mov dword ptr [ebp - 4], eax */
   1565     MEM32(ecx + 0xC) = edx; /* 0x4200766B: mov dword ptr [ecx + 0xc], edx */
   1566     eax = MEM32(ecx + 0x1C); /* 0x4200766E: mov eax, dword ptr [ecx + 0x1c] */
   1567     /* cmp eax, eax */ /* 0x42007671: cmp eax, eax */
   1568     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1570     _flag_k = FK_CMP;
   1571     edx = MEM32(ecx + 0x18); /* 0x42007673: mov edx, dword ptr [ecx + 0x18] */
   1572     MEM32(ebp + (-0x4)) = eax; /* 0x42007676: mov dword ptr [ebp - 4], eax */
   1573     if (CMP_EQ(_flag_a, _flag_b)) goto L_420076A2; /* 0x42007679: je 0x420076a2 */
   1574 L_4200767B:
   1575     esi = eax; /* 0x4200767B: mov esi, eax */
   1576     ebx = MEM32(esi); /* 0x4200767D: mov ebx, dword ptr [esi] */
   1577     edi = edx; /* 0x4200767F: mov edi, edx */
   1578     MEM32(edi) = ebx; /* 0x42007681: mov dword ptr [edi], ebx */
   1579     ebx = MEM32(esi + 0x4); /* 0x42007683: mov ebx, dword ptr [esi + 4] */
   1580     MEM32(edi + 0x4) = ebx; /* 0x42007686: mov dword ptr [edi + 4], ebx */
   1581     ebx = MEM32(esi + 0x8); /* 0x42007689: mov ebx, dword ptr [esi + 8] */
   1582     MEM32(edi + 0x8) = ebx; /* 0x4200768C: mov dword ptr [edi + 8], ebx */
   1583     esi = MEM32(esi + 0xC); /* 0x4200768F: mov esi, dword ptr [esi + 0xc] */
   1584     MEM32(edi + 0xC) = esi; /* 0x42007692: mov dword ptr [edi + 0xc], esi */
   1585     esi = MEM32(ebp + (-0x4)); /* 0x42007695: mov esi, dword ptr [ebp - 4] */
   1586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   1587     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1588     eax = eax + 0x10u; /* 0x42007698: add eax, 0x10 */
   1589     _flag_k = FK_ADD;
   1590     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   1591     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1592     edx = edx + 0x10u; /* 0x4200769B: add edx, 0x10 */
   1593     _flag_k = FK_ADD;
   1594     /* cmp eax, esi */ /* 0x4200769E: cmp eax, esi */
   1595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1597     _flag_k = FK_CMP;
   1598     RECOMP_BACKEDGE();
   1599     if (CMP_NE(_flag_a, _flag_b)) goto L_4200767B; /* 0x420076A0: jne 0x4200767b */
   1600 L_420076A2:
   1601     eax = MEM32(ecx + 0x1C); /* 0x420076A2: mov eax, dword ptr [ecx + 0x1c] */
   1602     edi = POP32_VAL(esp); /* 0x420076A5: pop edi */
   1603     esi = POP32_VAL(esp); /* 0x420076A6: pop esi */
   1604     MEM32(ecx + 0x1C) = edx; /* 0x420076A7: mov dword ptr [ecx + 0x1c], edx */
   1605     MEM32(ebp + (-0x4)) = eax; /* 0x420076AA: mov dword ptr [ebp - 4], eax */
   1606     MEM32(ecx + 0x28) = 0; /* 0x420076AD: mov dword ptr [ecx + 0x28], 0 */
   1607     ebx = POP32_VAL(esp); /* 0x420076B4: pop ebx */
   1608     esp = ebp; /* 0x420076B5: mov esp, ebp */
   1609     ebp = POP32_VAL(esp); /* 0x420076B7: pop ebp */
   1610     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420076B8: ret  */
   1611     RECOMP_REGS_OUT();
   1612 }
   1613 
   1614 void sub_420076C0(void) {
   1615     int _fpu_cmp = 0;
   1616     uint32_t _cf = 0;
   1617     int _df = 1;
   1618     uint32_t _flag_k = FK_NONE;
   1619     uint32_t _flag_a = 0, _flag_b = 0;
   1620     uint32_t _itail_tgt = 0;
   1621     RECOMP_REGS_LOCALS
   1622     RECOMP_ENTER(0x420076C0u);
   1623 
   1624 L_420076C0:
   1625     PUSH32(esp, ebp); /* 0x420076C0: push ebp */
   1626     ebp = esp; /* 0x420076C1: mov ebp, esp */
   1627     edx = MEM32(ecx + 0x18); /* 0x420076C3: mov edx, dword ptr [ecx + 0x18] */
   1628     eax = MEM32(ebp + 0x8); /* 0x420076C6: mov eax, dword ptr [ebp + 8] */
   1629     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x420076C9: shl eax, 4 */
   1630     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1631     eax = eax << 4u; /* 0x420076C9: shl eax, 4 */
   1632     ecx = MEM32(eax + edx + 0xC); /* 0x420076CC: mov ecx, dword ptr [eax + edx + 0xc] */
   1633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1635     eax = eax + edx; /* 0x420076D0: add eax, edx */
   1636     _flag_k = FK_ADD;
   1637     edx = MEM32(ebp + 0xC); /* 0x420076D2: mov edx, dword ptr [ebp + 0xc] */
   1638     MEM32(edx) = ecx; /* 0x420076D5: mov dword ptr [edx], ecx */
   1639     ebp = POP32_VAL(esp); /* 0x420076D7: pop ebp */
   1640     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x420076D8: ret 8 */
   1641     RECOMP_REGS_OUT();
   1642 }
   1643 
   1644 void sub_420076E0(void) {
   1645     int _fpu_cmp = 0;
   1646     uint32_t _cf = 0;
   1647     int _df = 1;
   1648     uint32_t _flag_k = FK_NONE;
   1649     uint32_t _flag_a = 0, _flag_b = 0;
   1650     uint32_t _itail_tgt = 0;
   1651     RECOMP_REGS_LOCALS
   1652     RECOMP_ENTER(0x420076E0u);
   1653 
   1654 L_420076E0:
   1655     PUSH32(esp, ebp); /* 0x420076E0: push ebp */
   1656     ebp = esp; /* 0x420076E1: mov ebp, esp */
   1657     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   1658     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1659     esp = esp - 0x28u; /* 0x420076E3: sub esp, 0x28 */
   1660     _flag_k = FK_CMP;
   1661     eax = MEM32(ebp + 0x8); /* 0x420076E6: mov eax, dword ptr [ebp + 8] */
   1662     fp_push(*(float*)&MEM32(eax)); /* 0x420076E9: fld dword ptr [eax] */
   1663     PUSH32(esp, esi); /* 0x420076EB: push esi */
   1664     PUSH32(esp, edi); /* 0x420076EC: push edi */
   1665     edi = ecx; /* 0x420076ED: mov edi, ecx */
   1666     ecx = MEM32(edi + 0xC); /* 0x420076EF: mov ecx, dword ptr [edi + 0xc] */
   1667     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x420076F2: fstp dword ptr [ebp - 0x28] */
   1668     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x420076F5: fld dword ptr [eax + 8] */
   1669     eax = ebp + (-0x28); /* 0x420076F8: lea eax, [ebp - 0x28] */
   1670     PUSH32(esp, eax); /* 0x420076FB: push eax */
   1671     esi = edi + 0x4; /* 0x420076FC: lea esi, [edi + 4] */
   1672     PUSH32(esp, 1); /* 0x420076FF: push 1 */
   1673     PUSH32(esp, ecx); /* 0x42007701: push ecx */
   1674     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x42007702: fstp dword ptr [ebp - 0x20] */
   1675     ecx = esi; /* 0x42007705: mov ecx, esi */
   1676     MEM32(ebp + (-0x24)) = 0; /* 0x42007707: mov dword ptr [ebp - 0x24], 0 */
   1677     RECOMP_ICALL(0x42008BD0u); /* 0x4200770E: call 0x42008bd0 */ /* not lifted */
   1678     RECOMP_FLAGS_IN();
   1679     eax = MEM32(esi + 0x4); /* 0x42007713: mov eax, dword ptr [esi + 4] */
   1680     /* test eax, eax */ /* 0x42007716: test eax, eax */
   1681     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1682     _cf = 0;
   1683     _flag_k = FK_TEST;
   1684     if (TEST_Z(_flag_a, _flag_b)) goto L_42007868; /* 0x42007718: je 0x42007868 */
   1685 L_4200771E:
   1686     ecx = MEM32(esi + 0x8); /* 0x4200771E: mov ecx, dword ptr [esi + 8] */
   1687     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1689     ecx = ecx - eax; /* 0x42007721: sub ecx, eax */
   1690     _flag_k = FK_CMP;
   1691     eax = 0x2AAAAAABu; /* 0x42007723: mov eax, 0x2aaaaaab */
   1692     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42007728: imul ecx */
   1693       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1694       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1695     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x4200772A: sar edx, 1 */
   1696     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1697     edx = (uint32_t)((int32_t)edx >> 1u);
   1698     eax = edx; /* 0x4200772C: mov eax, edx */
   1699     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x4200772E: shr eax, 0x1f */
   1700     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1701     eax = eax >> 31u; /* 0x4200772E: shr eax, 0x1f */
   1702     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1703     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1704     edx = edx + eax; /* 0x42007731: add edx, eax */
   1705     _flag_k = FK_ADD;
   1706     /* cmp edx, 1 */ /* 0x42007733: cmp edx, 1 */
   1707     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   1708     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1709     _flag_k = FK_CMP;
   1710     if (CMP_LE(_flag_a, _flag_b)) goto L_42007868; /* 0x42007736: jle 0x42007868 */
   1711 L_4200773C:
   1712     eax = MEM32(esi + 0x4); /* 0x4200773C: mov eax, dword ptr [esi + 4] */
   1713     /* test eax, eax */ /* 0x4200773F: test eax, eax */
   1714     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1715     _cf = 0;
   1716     _flag_k = FK_TEST;
   1717     if (TEST_NZ(_flag_a, _flag_b)) goto L_42007747; /* 0x42007741: jne 0x42007747 */
   1718 L_42007743:
   1719     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1720     edx = 0; /* 0x42007743: xor edx, edx */
   1721     _cf = 0;
   1722     _flag_k = FK_TEST;
   1723     goto L_4200775C; /* 0x42007745: jmp 0x4200775c */
   1724 L_42007747:
   1725     ecx = MEM32(esi + 0x8); /* 0x42007747: mov ecx, dword ptr [esi + 8] */
   1726     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1728     ecx = ecx - eax; /* 0x4200774A: sub ecx, eax */
   1729     _flag_k = FK_CMP;
   1730     eax = 0x2AAAAAABu; /* 0x4200774C: mov eax, 0x2aaaaaab */
   1731     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42007751: imul ecx */
   1732       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1733       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1734     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42007753: sar edx, 1 */
   1735     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1736     edx = (uint32_t)((int32_t)edx >> 1u);
   1737     ecx = edx; /* 0x42007755: mov ecx, edx */
   1738     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x42007757: shr ecx, 0x1f */
   1739     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1740     ecx = ecx >> 31u; /* 0x42007757: shr ecx, 0x1f */
   1741     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1742     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1743     edx = edx + ecx; /* 0x4200775A: add edx, ecx */
   1744     _flag_k = FK_ADD;
   1745 L_4200775C:
   1746     eax = MEM32(edi + 0x8); /* 0x4200775C: mov eax, dword ptr [edi + 8] */
   1747     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x4200775F: fld dword ptr [ebp - 0x28] */
   1748     ecx = MEM32(ebp + (-0x28)); /* 0x42007762: mov ecx, dword ptr [ebp - 0x28] */
   1749     edx = edx + edx * 2 + (-0x6); /* 0x42007765: lea edx, [edx + edx*2 - 6] */
   1750     _st[0] -= (double)*(float*)ADDR(eax + edx * 4); /* 0x42007769: fsub dword ptr [eax + edx*4] */
   1751     eax = eax + edx * 4; /* 0x4200776C: lea eax, [eax + edx*4] */
   1752     edx = MEM32(ebp + (-0x24)); /* 0x4200776F: mov edx, dword ptr [ebp - 0x24] */
   1753     MEM32(ebp + (-0xC)) = ecx; /* 0x42007772: mov dword ptr [ebp - 0xc], ecx */
   1754     ecx = MEM32(ebp + (-0x20)); /* 0x42007775: mov ecx, dword ptr [ebp - 0x20] */
   1755     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x42007778: fstp dword ptr [ebp - 0xc] */
   1756     MEM32(ebp + (-0x8)) = edx; /* 0x4200777B: mov dword ptr [ebp - 8], edx */
   1757     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x4200777E: fld dword ptr [ebp - 8] */
   1758     _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x42007781: fsub dword ptr [eax + 4] */
   1759     MEM32(ebp + (-0x4)) = ecx; /* 0x42007784: mov dword ptr [ebp - 4], ecx */
   1760     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42007787: fstp dword ptr [ebp - 8] */
   1761     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x4200778A: fld dword ptr [ebp - 4] */
   1762     _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x4200778D: fsub dword ptr [eax + 8] */
   1763     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42007790: fstp dword ptr [ebp - 4] */
   1764     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42007793: fld dword ptr [ebp - 0xc] */
   1765     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x42007796: fcomp dword ptr [0x420180f8] */
   1766     fp_pop();
   1767     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200779C: fnstsw ax */
   1768     /* test HI8(eax), 0x40u */ /* 0x4200779E: test ah, 0x40 */
   1769     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   1770     _cf = 0;
   1771     _flag_k = FK_NARROW(FK_TEST, 24);
   1772     if (TEST_Z(_flag_a, _flag_b)) goto L_420077F7; /* 0x420077A1: je 0x420077f7 */
   1773 L_420077A3:
   1774     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x420077A3: fld dword ptr [ebp - 8] */
   1775     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x420077A6: fcomp dword ptr [0x420180f8] */
   1776     fp_pop();
   1777     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420077AC: fnstsw ax */
   1778     /* test HI8(eax), 0x40u */ /* 0x420077AE: test ah, 0x40 */
   1779     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   1780     _cf = 0;
   1781     _flag_k = FK_NARROW(FK_TEST, 24);
   1782     if (TEST_Z(_flag_a, _flag_b)) goto L_420077F7; /* 0x420077B1: je 0x420077f7 */
   1783 L_420077B3:
   1784     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x420077B3: fld dword ptr [ebp - 4] */
   1785     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x420180F8)); /* 0x420077B6: fcomp dword ptr [0x420180f8] */
   1786     fp_pop();
   1787     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420077BC: fnstsw ax */
   1788     /* test HI8(eax), 0x40u */ /* 0x420077BE: test ah, 0x40 */
   1789     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   1790     _cf = 0;
   1791     _flag_k = FK_NARROW(FK_TEST, 24);
   1792     if (TEST_Z(_flag_a, _flag_b)) goto L_420077F7; /* 0x420077C1: je 0x420077f7 */
   1793 L_420077C3:
   1794     eax = MEM32(esi + 0x8); /* 0x420077C3: mov eax, dword ptr [esi + 8] */
   1795     ecx = eax + (-0xC); /* 0x420077C6: lea ecx, [eax - 0xc] */
   1796     PUSH32(esp, ecx); /* 0x420077C9: push ecx */
   1797     PUSH32(esp, eax); /* 0x420077CA: push eax */
   1798     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   1799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1800     ecx = ecx + 0xCu; /* 0x420077CB: add ecx, 0xc */
   1801     _flag_k = FK_ADD;
   1802     PUSH32(esp, ecx); /* 0x420077CE: push ecx */
   1803     RECOMP_ICALL(0x42009210u); /* 0x420077CF: call 0x42009210 */ /* not lifted */
   1804     RECOMP_FLAGS_IN();
   1805     eax = MEM32(esi + 0x8); /* 0x420077D4: mov eax, dword ptr [esi + 8] */
   1806     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1807     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1808     esp = esp + 0xCu; /* 0x420077D7: add esp, 0xc */
   1809     _flag_k = FK_ADD;
   1810     PUSH32(esp, eax); /* 0x420077DA: push eax */
   1811     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF4u);
   1812     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1813     eax = eax + 0xFFFFFFF4u; /* 0x420077DB: add eax, -0xc */
   1814     _flag_k = FK_ADD;
   1815     PUSH32(esp, eax); /* 0x420077DE: push eax */
   1816     ecx = esi; /* 0x420077DF: mov ecx, esi */
   1817     RECOMP_ICALL(0x42002690u); /* 0x420077E1: call 0x42002690 */ /* not lifted */
   1818     RECOMP_FLAGS_IN();
   1819     eax = MEM32(esi + 0x8); /* 0x420077E6: mov eax, dword ptr [esi + 8] */
   1820     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF4u);
   1821     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1822     eax = eax + 0xFFFFFFF4u; /* 0x420077E9: add eax, -0xc */
   1823     _flag_k = FK_ADD;
   1824     edi = POP32_VAL(esp); /* 0x420077EC: pop edi */
   1825     MEM32(esi + 0x8) = eax; /* 0x420077ED: mov dword ptr [esi + 8], eax */
   1826     esi = POP32_VAL(esp); /* 0x420077F0: pop esi */
   1827     esp = ebp; /* 0x420077F1: mov esp, ebp */
   1828     ebp = POP32_VAL(esp); /* 0x420077F3: pop ebp */
   1829     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420077F4: ret 4 */
   1830 L_420077F7:
   1831     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x420077F7: fld dword ptr [ebp - 8] */
   1832     edx = MEM32(ebp + (-0xC)); /* 0x420077FA: mov edx, dword ptr [ebp - 0xc] */
   1833     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x420077FD: fmul dword ptr [ebp - 8] */
   1834     eax = MEM32(ebp + (-0x8)); /* 0x42007800: mov eax, dword ptr [ebp - 8] */
   1835     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42007803: fld dword ptr [ebp - 4] */
   1836     MEM32(ebp + (-0x1C)) = edx; /* 0x42007806: mov dword ptr [ebp - 0x1c], edx */
   1837     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x42007809: fmul dword ptr [ebp - 4] */
   1838     MEM32(ebp + (-0x18)) = eax; /* 0x4200780C: mov dword ptr [ebp - 0x18], eax */
   1839     ecx = MEM32(ebp + (-0x4)); /* 0x4200780F: mov ecx, dword ptr [ebp - 4] */
   1840     MEM32(ebp + (-0x14)) = ecx; /* 0x42007812: mov dword ptr [ebp - 0x14], ecx */
   1841     { double _v = fp_pop(); _st[0] += _v; } /* 0x42007815: faddp st(1) */
   1842     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42007817: fld dword ptr [ebp - 0xc] */
   1843     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x4200781A: fmul dword ptr [ebp - 0xc] */
   1844     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200781D: faddp st(1) */
   1845     _st[0] = sqrt(_st[0]); /* 0x4200781F: fsqrt  */
   1846     fp_push(_st[0]); /* 0x42007821: fld st(0) */
   1847     _st[0] += (double)*(float*)ADDR(edi + 0x28); /* 0x42007823: fadd dword ptr [edi + 0x28] */
   1848     { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x28) = _v; } /* 0x42007826: fstp dword ptr [edi + 0x28] */
   1849     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x42007829: fld dword ptr [ebp - 0xc] */
   1850     _st[0] /= _st[1]; /* 0x4200782C: fdiv st(1) */
   1851     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x4200782E: fstp dword ptr [ebp - 0x1c] */
   1852     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42007831: fld dword ptr [ebp - 0x18] */
   1853     _st[0] /= _st[1]; /* 0x42007834: fdiv st(1) */
   1854     edx = MEM32(ebp + (-0x1C)); /* 0x42007836: mov edx, dword ptr [ebp - 0x1c] */
   1855     MEM32(ebp + (-0x10)) = edx; /* 0x42007839: mov dword ptr [ebp - 0x10], edx */
   1856     edx = ebp + (-0x10); /* 0x4200783C: lea edx, [ebp - 0x10] */
   1857     PUSH32(esp, edx); /* 0x4200783F: push edx */
   1858     PUSH32(esp, 1); /* 0x42007840: push 1 */
   1859     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x42007842: fstp dword ptr [ebp - 0x18] */
   1860     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42007845: fld dword ptr [ebp - 0x14] */
   1861     _st[0] /= _st[1]; /* 0x42007848: fdiv st(1) */
   1862     eax = MEM32(ebp + (-0x18)); /* 0x4200784A: mov eax, dword ptr [ebp - 0x18] */
   1863     MEM32(ebp + (-0xC)) = eax; /* 0x4200784D: mov dword ptr [ebp - 0xc], eax */
   1864     eax = MEM32(edi + 0x1C); /* 0x42007850: mov eax, dword ptr [edi + 0x1c] */
   1865     PUSH32(esp, eax); /* 0x42007853: push eax */
   1866     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42007854: fstp dword ptr [ebp - 0x14] */
   1867     ecx = MEM32(ebp + (-0x14)); /* 0x42007857: mov ecx, dword ptr [ebp - 0x14] */
   1868     MEM32(ebp + (-0x8)) = ecx; /* 0x4200785A: mov dword ptr [ebp - 8], ecx */
   1869     ecx = edi + 0x14; /* 0x4200785D: lea ecx, [edi + 0x14] */
   1870     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42007860: fstp dword ptr [ebp - 4] */
   1871     RECOMP_ICALL(0x42008F00u); /* 0x42007863: call 0x42008f00 */ /* not lifted */
   1872     RECOMP_FLAGS_IN();
   1873 L_42007868:
   1874     edi = POP32_VAL(esp); /* 0x42007868: pop edi */
   1875     esi = POP32_VAL(esp); /* 0x42007869: pop esi */
   1876     esp = ebp; /* 0x4200786A: mov esp, ebp */
   1877     ebp = POP32_VAL(esp); /* 0x4200786C: pop ebp */
   1878     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200786D: ret 4 */
   1879     RECOMP_REGS_OUT();
   1880 }
   1881 
   1882 void sub_42007870(void) {
   1883     int _fpu_cmp = 0;
   1884     uint32_t _cf = 0;
   1885     int _df = 1;
   1886     uint32_t _flag_k = FK_NONE;
   1887     uint32_t _flag_a = 0, _flag_b = 0;
   1888     uint32_t _itail_tgt = 0;
   1889     RECOMP_REGS_LOCALS
   1890     RECOMP_ENTER(0x42007870u);
   1891 
   1892 L_42007870:
   1893     PUSH32(esp, ebp); /* 0x42007870: push ebp */
   1894     ebp = esp; /* 0x42007871: mov ebp, esp */
   1895     PUSH32(esp, ebx); /* 0x42007873: push ebx */
   1896     PUSH32(esp, esi); /* 0x42007874: push esi */
   1897     PUSH32(esp, edi); /* 0x42007875: push edi */
   1898     edi = MEM32(ebp + 0x8); /* 0x42007876: mov edi, dword ptr [ebp + 8] */
   1899     esi = MEM32(edi + 0x4); /* 0x42007879: mov esi, dword ptr [edi + 4] */
   1900     /* cmp esi, MEM32(edi + 0x8) */ /* 0x4200787C: cmp esi, dword ptr [edi + 8] */
   1901     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1903     _flag_k = FK_CMP;
   1904     ebx = ecx; /* 0x4200787F: mov ebx, ecx */
   1905     if (CMP_EQ(_flag_a, _flag_b)) goto L_42007895; /* 0x42007881: je 0x42007895 */
   1906 L_42007883:
   1907     PUSH32(esp, esi); /* 0x42007883: push esi */
   1908     ecx = ebx; /* 0x42007884: mov ecx, ebx */
   1909     RECOMP_ICALL(0x420076E0u); /* 0x42007886: call 0x420076e0 */ /* not lifted */
   1910     RECOMP_FLAGS_IN();
   1911     eax = MEM32(edi + 0x8); /* 0x4200788B: mov eax, dword ptr [edi + 8] */
   1912     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   1913     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1914     esi = esi + 0xCu; /* 0x4200788E: add esi, 0xc */
   1915     _flag_k = FK_ADD;
   1916     /* cmp esi, eax */ /* 0x42007891: cmp esi, eax */
   1917     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1919     _flag_k = FK_CMP;
   1920     RECOMP_BACKEDGE();
   1921     if (CMP_NE(_flag_a, _flag_b)) goto L_42007883; /* 0x42007893: jne 0x42007883 */
   1922 L_42007895:
   1923     edi = POP32_VAL(esp); /* 0x42007895: pop edi */
   1924     esi = POP32_VAL(esp); /* 0x42007896: pop esi */
   1925     ebx = POP32_VAL(esp); /* 0x42007897: pop ebx */
   1926     ebp = POP32_VAL(esp); /* 0x42007898: pop ebp */
   1927     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42007899: ret 4 */
   1928     RECOMP_REGS_OUT();
   1929 }
   1930 
   1931 void sub_420078A0(void) {
   1932     int _fpu_cmp = 0;
   1933     uint32_t _cf = 0;
   1934     int _df = 1;
   1935     uint32_t _flag_k = FK_NONE;
   1936     uint32_t _flag_a = 0, _flag_b = 0;
   1937     uint32_t _itail_tgt = 0;
   1938     RECOMP_REGS_LOCALS
   1939     RECOMP_ENTER(0x420078A0u);
   1940 
   1941 L_420078A0:
   1942     PUSH32(esp, ebp); /* 0x420078A0: push ebp */
   1943     ebp = esp; /* 0x420078A1: mov ebp, esp */
   1944     eax = MEM32(ebp + 0x8); /* 0x420078A3: mov eax, dword ptr [ebp + 8] */
   1945     MEM32(ecx + 0x24) = eax; /* 0x420078A6: mov dword ptr [ecx + 0x24], eax */
   1946     ebp = POP32_VAL(esp); /* 0x420078A9: pop ebp */
   1947     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x420078AA: ret 4 */
   1948     RECOMP_REGS_OUT();
   1949 }
   1950 
   1951 void sub_420078B0(void) {
   1952     int _fpu_cmp = 0;
   1953     uint32_t _cf = 0;
   1954     int _df = 1;
   1955     uint32_t _flag_k = FK_NONE;
   1956     uint32_t _flag_a = 0, _flag_b = 0;
   1957     uint32_t _itail_tgt = 0;
   1958     RECOMP_REGS_LOCALS
   1959     RECOMP_ENTER(0x420078B0u);
   1960 
   1961 L_420078B0:
   1962     PUSH32(esp, ebp); /* 0x420078B0: push ebp */
   1963     ebp = esp; /* 0x420078B1: mov ebp, esp */
   1964     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u);
   1965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1966     esp = esp - 0x40u; /* 0x420078B3: sub esp, 0x40 */
   1967     _flag_k = FK_CMP;
   1968     eax = MEM32(ecx + 0x8); /* 0x420078B6: mov eax, dword ptr [ecx + 8] */
   1969     fp_push(*(float*)&MEM32(0x42018470)); /* 0x420078B9: fld dword ptr [0x42018470] */
   1970     /* test eax, eax */ /* 0x420078BF: test eax, eax */
   1971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1972     _cf = 0;
   1973     _flag_k = FK_TEST;
   1974     MEM32(ebp + (-0x10)) = ecx; /* 0x420078C1: mov dword ptr [ebp - 0x10], ecx */
   1975     if (TEST_NZ(_flag_a, _flag_b)) goto L_420078CA; /* 0x420078C4: jne 0x420078ca */
   1976 L_420078C6:
   1977     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1978     edx = 0; /* 0x420078C6: xor edx, edx */
   1979     _cf = 0;
   1980     _flag_k = FK_TEST;
   1981     goto L_420078DF; /* 0x420078C8: jmp 0x420078df */
   1982 L_420078CA:
   1983     edx = MEM32(ecx + 0xC); /* 0x420078CA: mov edx, dword ptr [ecx + 0xc] */
   1984     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1985     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1986     edx = edx - eax; /* 0x420078CD: sub edx, eax */
   1987     _flag_k = FK_CMP;
   1988     eax = 0x2AAAAAABu; /* 0x420078CF: mov eax, 0x2aaaaaab */
   1989     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x420078D4: imul edx */
   1990       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1991       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1992     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x420078D6: sar edx, 1 */
   1993     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1994     edx = (uint32_t)((int32_t)edx >> 1u);
   1995     eax = edx; /* 0x420078D8: mov eax, edx */
   1996     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x420078DA: shr eax, 0x1f */
   1997     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1998     eax = eax >> 31u; /* 0x420078DA: shr eax, 0x1f */
   1999     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2000     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2001     edx = edx + eax; /* 0x420078DD: add edx, eax */
   2002     _flag_k = FK_ADD;
   2003 L_420078DF:
   2004     eax = edx + (-0x1); /* 0x420078DF: lea eax, [edx - 1] */
   2005     /* test eax, eax */ /* 0x420078E2: test eax, eax */
   2006     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2007     _cf = 0;
   2008     _flag_k = FK_TEST;
   2009     if (TEST_LE(_flag_a, _flag_b)) goto L_42007A4A; /* 0x420078E4: jle 0x42007a4a */
   2010 L_420078EA:
   2011     PUSH32(esp, ebx); /* 0x420078EA: push ebx */
   2012     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2013     edx = 0; /* 0x420078EB: xor edx, edx */
   2014     _cf = 0;
   2015     _flag_k = FK_TEST;
   2016     PUSH32(esp, esi); /* 0x420078ED: push esi */
   2017     PUSH32(esp, edi); /* 0x420078EE: push edi */
   2018     MEM32(ebp + (-0x8)) = edx; /* 0x420078EF: mov dword ptr [ebp - 8], edx */
   2019     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2020     ebx = 0; /* 0x420078F2: xor ebx, ebx */
   2021     _cf = 0;
   2022     _flag_k = FK_TEST;
   2023     MEM32(ebp + (-0xC)) = eax; /* 0x420078F4: mov dword ptr [ebp - 0xc], eax */
   2024 L_420078F7:
   2025     eax = MEM32(ecx + 0x18); /* 0x420078F7: mov eax, dword ptr [ecx + 0x18] */
   2026     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2027     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2028     edx = edx + eax; /* 0x420078FA: add edx, eax */
   2029     _flag_k = FK_ADD;
   2030     eax = edx; /* 0x420078FC: mov eax, edx */
   2031     esi = MEM32(eax); /* 0x420078FE: mov esi, dword ptr [eax] */
   2032     MEM32(ebp + (-0x40)) = esi; /* 0x42007900: mov dword ptr [ebp - 0x40], esi */
   2033     esi = MEM32(eax + 0x4); /* 0x42007903: mov esi, dword ptr [eax + 4] */
   2034     eax = MEM32(eax + 0x8); /* 0x42007906: mov eax, dword ptr [eax + 8] */
   2035     MEM32(ebp + (-0x38)) = eax; /* 0x42007909: mov dword ptr [ebp - 0x38], eax */
   2036     eax = MEM32(ecx + 0x8); /* 0x4200790C: mov eax, dword ptr [ecx + 8] */
   2037     MEM32(ebp + (-0x3C)) = esi; /* 0x4200790F: mov dword ptr [ebp - 0x3c], esi */
   2038     esi = ebx + eax; /* 0x42007912: lea esi, [ebx + eax] */
   2039     ecx = esi; /* 0x42007915: mov ecx, esi */
   2040     edi = MEM32(ecx); /* 0x42007917: mov edi, dword ptr [ecx] */
   2041     MEM32(ebp + (-0x28)) = edi; /* 0x42007919: mov dword ptr [ebp - 0x28], edi */
   2042     edi = MEM32(ecx + 0x4); /* 0x4200791C: mov edi, dword ptr [ecx + 4] */
   2043     ecx = MEM32(ecx + 0x8); /* 0x4200791F: mov ecx, dword ptr [ecx + 8] */
   2044     MEM32(ebp + (-0x24)) = edi; /* 0x42007922: mov dword ptr [ebp - 0x24], edi */
   2045     edi = ebx + eax + 0xC; /* 0x42007925: lea edi, [ebx + eax + 0xc] */
   2046     eax = MEM32(ebp + 0x8); /* 0x42007929: mov eax, dword ptr [ebp + 8] */
   2047     MEM32(ebp + (-0x20)) = ecx; /* 0x4200792C: mov dword ptr [ebp - 0x20], ecx */
   2048     ecx = MEM32(eax); /* 0x4200792F: mov ecx, dword ptr [eax] */
   2049     MEM32(ebp + (-0x34)) = ecx; /* 0x42007931: mov dword ptr [ebp - 0x34], ecx */
   2050     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x42007934: fld dword ptr [ebp - 0x34] */
   2051     _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x42007937: fsub dword ptr [ebp - 0x28] */
   2052     ecx = MEM32(eax + 0x4); /* 0x4200793A: mov ecx, dword ptr [eax + 4] */
   2053     eax = MEM32(eax + 0x8); /* 0x4200793D: mov eax, dword ptr [eax + 8] */
   2054     MEM32(ebp + (-0x30)) = ecx; /* 0x42007940: mov dword ptr [ebp - 0x30], ecx */
   2055     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x42007943: fld dword ptr [ebp - 0x30] */
   2056     _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x42007946: fsub dword ptr [ebp - 0x24] */
   2057     MEM32(ebp + (-0x2C)) = eax; /* 0x42007949: mov dword ptr [ebp - 0x2c], eax */
   2058     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x4200794C: fld dword ptr [ebp - 0x2c] */
   2059     _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x4200794F: fsub dword ptr [ebp - 0x20] */
   2060     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x42007952: fmul dword ptr [ebp - 0x38] */
   2061     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x42007955: fld dword ptr [ebp - 0x40] */
   2062     _st[0] *= _st[3]; /* 0x42007958: fmul st(3) */
   2063     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200795A: faddp st(1) */
   2064     fp_xch(1); /* 0x4200795C: fxch st(1) */
   2065     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x4200795E: fmul dword ptr [ebp - 0x3c] */
   2066     { double _v = fp_pop(); _st[0] += _v; } /* 0x42007961: faddp st(1) */
   2067     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42007963: fstp dword ptr [ebp - 4] */
   2068     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007966: fstp st(0) */
   2069     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42007968: fld dword ptr [ebp - 4] */
   2070     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x4200796B: fcomp qword ptr [0x420180d8] */
   2071     fp_pop();
   2072     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007971: fnstsw ax */
   2073     /* test HI8(eax), 1 */ /* 0x42007973: test ah, 1 */
   2074     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2075     _cf = 0;
   2076     _flag_k = FK_NARROW(FK_TEST, 24);
   2077     if (TEST_Z(_flag_a, _flag_b)) goto L_42007988; /* 0x42007976: je 0x42007988 */
   2078 L_42007978:
   2079     ecx = MEM32(esi); /* 0x42007978: mov ecx, dword ptr [esi] */
   2080     edx = MEM32(esi + 0x8); /* 0x4200797A: mov edx, dword ptr [esi + 8] */
   2081     MEM32(ebp + (-0x1C)) = ecx; /* 0x4200797D: mov dword ptr [ebp - 0x1c], ecx */
   2082     ecx = MEM32(esi + 0x4); /* 0x42007980: mov ecx, dword ptr [esi + 4] */
   2083     MEM32(ebp + (-0x14)) = edx; /* 0x42007983: mov dword ptr [ebp - 0x14], edx */
   2084     goto L_420079ED; /* 0x42007986: jmp 0x420079ed */
   2085 L_42007988:
   2086     fp_push(*(float*)&MEM32(edx + 0xC)); /* 0x42007988: fld dword ptr [edx + 0xc] */
   2087     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x4200798B: fcomp dword ptr [ebp - 4] */
   2088     fp_pop();
   2089     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200798E: fnstsw ax */
   2090     /* test HI8(eax), 1 */ /* 0x42007990: test ah, 1 */
   2091     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2092     _cf = 0;
   2093     _flag_k = FK_NARROW(FK_TEST, 24);
   2094     if (TEST_Z(_flag_a, _flag_b)) goto L_420079A5; /* 0x42007993: je 0x420079a5 */
   2095 L_42007995:
   2096     eax = MEM32(edi); /* 0x42007995: mov eax, dword ptr [edi] */
   2097     edx = MEM32(edi + 0x8); /* 0x42007997: mov edx, dword ptr [edi + 8] */
   2098     ecx = MEM32(edi + 0x4); /* 0x4200799A: mov ecx, dword ptr [edi + 4] */
   2099     MEM32(ebp + (-0x1C)) = eax; /* 0x4200799D: mov dword ptr [ebp - 0x1c], eax */
   2100     MEM32(ebp + (-0x14)) = edx; /* 0x420079A0: mov dword ptr [ebp - 0x14], edx */
   2101     goto L_420079ED; /* 0x420079A3: jmp 0x420079ed */
   2102 L_420079A5:
   2103     eax = MEM32(edx); /* 0x420079A5: mov eax, dword ptr [edx] */
   2104     ecx = MEM32(edx + 0x4); /* 0x420079A7: mov ecx, dword ptr [edx + 4] */
   2105     edx = MEM32(edx + 0x8); /* 0x420079AA: mov edx, dword ptr [edx + 8] */
   2106     MEM32(ebp + (-0x1C)) = eax; /* 0x420079AD: mov dword ptr [ebp - 0x1c], eax */
   2107     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x420079B0: fld dword ptr [ebp - 0x1c] */
   2108     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x420079B3: fmul dword ptr [ebp - 4] */
   2109     MEM32(ebp + (-0x18)) = ecx; /* 0x420079B6: mov dword ptr [ebp - 0x18], ecx */
   2110     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x420079B9: fld dword ptr [ebp - 0x18] */
   2111     MEM32(ebp + (-0x14)) = edx; /* 0x420079BC: mov dword ptr [ebp - 0x14], edx */
   2112     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x420079BF: fmul dword ptr [ebp - 4] */
   2113     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x420079C2: fstp dword ptr [ebp - 0x18] */
   2114     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x420079C5: fld dword ptr [ebp - 0x14] */
   2115     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x420079C8: fmul dword ptr [ebp - 4] */
   2116     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x420079CB: fstp dword ptr [ebp - 0x14] */
   2117     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420079CE: fld dword ptr [ebp - 0x28] */
   2118     _st[0] += _st[1]; /* 0x420079D1: fadd st(1) */
   2119     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x420079D3: fstp dword ptr [ebp - 0x1c] */
   2120     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420079D6: fstp st(0) */
   2121     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x420079D8: fld dword ptr [ebp - 0x18] */
   2122     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x420079DB: fadd dword ptr [ebp - 0x24] */
   2123     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x420079DE: fstp dword ptr [ebp - 0x18] */
   2124     ecx = MEM32(ebp + (-0x18)); /* 0x420079E1: mov ecx, dword ptr [ebp - 0x18] */
   2125     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x420079E4: fld dword ptr [ebp - 0x14] */
   2126     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x420079E7: fadd dword ptr [ebp - 0x20] */
   2127     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x420079EA: fstp dword ptr [ebp - 0x14] */
   2128 L_420079ED:
   2129     eax = MEM32(ebp + 0x8); /* 0x420079ED: mov eax, dword ptr [ebp + 8] */
   2130     fp_push(*(float*)&MEM32(eax)); /* 0x420079F0: fld dword ptr [eax] */
   2131     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x420079F2: fsub dword ptr [ebp - 0x1c] */
   2132     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x420079F5: fld dword ptr [eax + 8] */
   2133     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x420079F8: fsub dword ptr [ebp - 0x14] */
   2134     fp_push(_st[0]); /* 0x420079FB: fld st(0) */
   2135     _st[0] *= _st[1]; /* 0x420079FD: fmul st(1) */
   2136     fp_push(_st[2]); /* 0x420079FF: fld st(2) */
   2137     _st[0] *= _st[3]; /* 0x42007A01: fmul st(3) */
   2138     { double _v = fp_pop(); _st[0] += _v; } /* 0x42007A03: faddp st(1) */
   2139     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42007A05: fst dword ptr [ebp - 4] */
   2140     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x42007A08: fstp st(2) */
   2141     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007A0A: fstp st(0) */
   2142     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42007A0C: fcomp st(1) */
   2143     fp_pop();
   2144     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007A0E: fnstsw ax */
   2145     /* test HI8(eax), 1 */ /* 0x42007A10: test ah, 1 */
   2146     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2147     _cf = 0;
   2148     _flag_k = FK_NARROW(FK_TEST, 24);
   2149     if (TEST_Z(_flag_a, _flag_b)) goto L_42007A2B; /* 0x42007A13: je 0x42007a2b */
   2150 L_42007A15:
   2151     eax = MEM32(ebp + 0xC); /* 0x42007A15: mov eax, dword ptr [ebp + 0xc] */
   2152     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007A18: fstp st(0) */
   2153     edx = MEM32(ebp + (-0x1C)); /* 0x42007A1A: mov edx, dword ptr [ebp - 0x1c] */
   2154     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42007A1D: fld dword ptr [ebp - 4] */
   2155     MEM32(eax) = edx; /* 0x42007A20: mov dword ptr [eax], edx */
   2156     MEM32(eax + 0x4) = ecx; /* 0x42007A22: mov dword ptr [eax + 4], ecx */
   2157     ecx = MEM32(ebp + (-0x14)); /* 0x42007A25: mov ecx, dword ptr [ebp - 0x14] */
   2158     MEM32(eax + 0x8) = ecx; /* 0x42007A28: mov dword ptr [eax + 8], ecx */
   2159 L_42007A2B:
   2160     edx = MEM32(ebp + (-0x8)); /* 0x42007A2B: mov edx, dword ptr [ebp - 8] */
   2161     eax = MEM32(ebp + (-0xC)); /* 0x42007A2E: mov eax, dword ptr [ebp - 0xc] */
   2162     ecx = MEM32(ebp + (-0x10)); /* 0x42007A31: mov ecx, dword ptr [ebp - 0x10] */
   2163     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   2164     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2165     edx = edx + 0x10u; /* 0x42007A34: add edx, 0x10 */
   2166     _flag_k = FK_ADD;
   2167     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   2168     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2169     ebx = ebx + 0xCu; /* 0x42007A37: add ebx, 0xc */
   2170     _flag_k = FK_ADD;
   2171     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2172     eax = eax - 1; /* 0x42007A3A: dec eax */
   2173     _flag_k = FK_DEC;
   2174     MEM32(ebp + (-0x8)) = edx; /* 0x42007A3B: mov dword ptr [ebp - 8], edx */
   2175     MEM32(ebp + (-0xC)) = eax; /* 0x42007A3E: mov dword ptr [ebp - 0xc], eax */
   2176     RECOMP_BACKEDGE();
   2177     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_420078F7; /* 0x42007A41: jne 0x420078f7 */
   2178 L_42007A47:
   2179     edi = POP32_VAL(esp); /* 0x42007A47: pop edi */
   2180     esi = POP32_VAL(esp); /* 0x42007A48: pop esi */
   2181     ebx = POP32_VAL(esp); /* 0x42007A49: pop ebx */
   2182 L_42007A4A:
   2183     fp_push(*(float*)&MEM32(ecx + 0x24)); /* 0x42007A4A: fld dword ptr [ecx + 0x24] */
   2184     fp_push(_st[0]); /* 0x42007A4D: fld st(0) */
   2185     _st[0] *= _st[1]; /* 0x42007A4F: fmul st(1) */
   2186     fp_xch(1); /* 0x42007A51: fxch st(1) */
   2187     fp_xch(2); /* 0x42007A53: fxch st(2) */
   2188     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42007A55: fcompp  */
   2189     fp_pop(); fp_pop();
   2190     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007A57: fnstsw ax */
   2191     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007A59: fstp st(0) */
   2192     /* test HI8(eax), 1 */ /* 0x42007A5B: test ah, 1 */
   2193     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2194     _cf = 0;
   2195     _flag_k = FK_NARROW(FK_TEST, 24);
   2196     if (TEST_Z(_flag_a, _flag_b)) goto L_42007A6B; /* 0x42007A5E: je 0x42007a6b */
   2197 L_42007A60:
   2198     eax = 1; /* 0x42007A60: mov eax, 1 */
   2199     esp = ebp; /* 0x42007A65: mov esp, ebp */
   2200     ebp = POP32_VAL(esp); /* 0x42007A67: pop ebp */
   2201     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42007A68: ret 0xc */
   2202 L_42007A6B:
   2203     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2204     eax = 0; /* 0x42007A6B: xor eax, eax */
   2205     _cf = 0;
   2206     _flag_k = FK_TEST;
   2207     esp = ebp; /* 0x42007A6D: mov esp, ebp */
   2208     ebp = POP32_VAL(esp); /* 0x42007A6F: pop ebp */
   2209     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42007A70: ret 0xc */
   2210     RECOMP_REGS_OUT();
   2211 }
   2212 
   2213 void sub_42007A80(void) {
   2214     int _fpu_cmp = 0;
   2215     uint32_t _cf = 0;
   2216     int _df = 1;
   2217     uint32_t _flag_k = FK_NONE;
   2218     uint32_t _flag_a = 0, _flag_b = 0;
   2219     uint32_t _itail_tgt = 0;
   2220     RECOMP_REGS_LOCALS
   2221     RECOMP_ENTER(0x42007A80u);
   2222 
   2223 L_42007A80:
   2224     PUSH32(esp, ebp); /* 0x42007A80: push ebp */
   2225     ebp = esp; /* 0x42007A81: mov ebp, esp */
   2226     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   2227     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2228     esp = esp - 0x24u; /* 0x42007A83: sub esp, 0x24 */
   2229     _flag_k = FK_CMP;
   2230     edx = MEM32(ebp + 0x14); /* 0x42007A86: mov edx, dword ptr [ebp + 0x14] */
   2231     fp_push(*(float*)&MEM32(0x420180F8)); /* 0x42007A89: fld dword ptr [0x420180f8] */
   2232     eax = MEM32(ecx + 0x18); /* 0x42007A8F: mov eax, dword ptr [ecx + 0x18] */
   2233     PUSH32(esp, esi); /* 0x42007A92: push esi */
   2234     MEM32(edx) = 0; /* 0x42007A93: mov dword ptr [edx], 0 */
   2235     esi = MEM32(ecx + 0x18); /* 0x42007A99: mov esi, dword ptr [ecx + 0x18] */
   2236     edx = MEM32(ecx + 0x8); /* 0x42007A9C: mov edx, dword ptr [ecx + 8] */
   2237     PUSH32(esp, edi); /* 0x42007A9F: push edi */
   2238     edi = MEM32(ecx + 0x1C); /* 0x42007AA0: mov edi, dword ptr [ecx + 0x1c] */
   2239     /* cmp esi, edi */ /* 0x42007AA3: cmp esi, edi */
   2240     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   2241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2242     _flag_k = FK_CMP;
   2243     MEM32(ebp + (-0x4)) = 0x7F7FFFFFu; /* 0x42007AA5: mov dword ptr [ebp - 4], 0x7f7fffff */
   2244     MEM32(ebp + (-0x8)) = eax; /* 0x42007AAC: mov dword ptr [ebp - 8], eax */
   2245     MEM32(ebp + (-0xC)) = edi; /* 0x42007AAF: mov dword ptr [ebp - 0xc], edi */
   2246     if (CMP_AE(_flag_a, _flag_b)) goto L_42007BE2; /* 0x42007AB2: jae 0x42007be2 */
   2247 L_42007AB8:
   2248     PUSH32(esp, ebx); /* 0x42007AB8: push ebx */
   2249 L_42007AB9:
   2250     eax = MEM32(ebp + 0x8); /* 0x42007AB9: mov eax, dword ptr [ebp + 8] */
   2251     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x42007ABC: fld dword ptr [esi + 0xc] */
   2252     edi = MEM32(eax); /* 0x42007ABF: mov edi, dword ptr [eax] */
   2253     MEM32(ebp + (-0x24)) = edi; /* 0x42007AC1: mov dword ptr [ebp - 0x24], edi */
   2254     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x42007AC4: fld dword ptr [ebp - 0x24] */
   2255     _st[0] -= (double)*(float*)ADDR(edx); /* 0x42007AC7: fsub dword ptr [edx] */
   2256     edi = MEM32(eax + 0x4); /* 0x42007AC9: mov edi, dword ptr [eax + 4] */
   2257     eax = MEM32(eax + 0x8); /* 0x42007ACC: mov eax, dword ptr [eax + 8] */
   2258     MEM32(ebp + (-0x20)) = edi; /* 0x42007ACF: mov dword ptr [ebp - 0x20], edi */
   2259     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x42007AD2: fld dword ptr [ebp - 0x20] */
   2260     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x42007AD5: fsub dword ptr [edx + 4] */
   2261     MEM32(ebp + (-0x1C)) = eax; /* 0x42007AD8: mov dword ptr [ebp - 0x1c], eax */
   2262     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42007ADB: fld dword ptr [ebp - 0x1c] */
   2263     ebx = edx + 0xC; /* 0x42007ADE: lea ebx, [edx + 0xc] */
   2264     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x42007AE1: fsub dword ptr [edx + 8] */
   2265     fp_xch(1); /* 0x42007AE4: fxch st(1) */
   2266     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42007AE6: fmul dword ptr [esi + 4] */
   2267     fp_xch(1); /* 0x42007AE9: fxch st(1) */
   2268     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x42007AEB: fmul dword ptr [esi + 8] */
   2269     { double _v = fp_pop(); _st[0] += _v; } /* 0x42007AEE: faddp st(1) */
   2270     fp_xch(1); /* 0x42007AF0: fxch st(1) */
   2271     _st[0] *= (double)*(float*)ADDR(esi); /* 0x42007AF2: fmul dword ptr [esi] */
   2272     { double _v = fp_pop(); _st[0] += _v; } /* 0x42007AF4: faddp st(1) */
   2273     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42007AF6: fcom qword ptr [0x420180d8] */
   2274     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007AFC: fnstsw ax */
   2275     /* test HI8(eax), 1 */ /* 0x42007AFE: test ah, 1 */
   2276     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2277     _cf = 0;
   2278     _flag_k = FK_NARROW(FK_TEST, 24);
   2279     if (TEST_Z(_flag_a, _flag_b)) goto L_42007B1B; /* 0x42007B01: je 0x42007b1b */
   2280 L_42007B03:
   2281     eax = MEM32(edx); /* 0x42007B03: mov eax, dword ptr [edx] */
   2282     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007B05: fstp st(0) */
   2283     edi = MEM32(edx + 0x4); /* 0x42007B07: mov edi, dword ptr [edx + 4] */
   2284     fp_push(*(float*)&MEM32(0x420180F8)); /* 0x42007B0A: fld dword ptr [0x420180f8] */
   2285     edx = MEM32(edx + 0x8); /* 0x42007B10: mov edx, dword ptr [edx + 8] */
   2286     MEM32(ebp + (-0x18)) = eax; /* 0x42007B13: mov dword ptr [ebp - 0x18], eax */
   2287     MEM32(ebp + (-0x10)) = edx; /* 0x42007B16: mov dword ptr [ebp - 0x10], edx */
   2288     goto L_42007B7C; /* 0x42007B19: jmp 0x42007b7c */
   2289 L_42007B1B:
   2290     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42007B1B: fcom st(1) */
   2291     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007B1D: fnstsw ax */
   2292     /* test HI8(eax), 0x41u */ /* 0x42007B1F: test ah, 0x41 */
   2293     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2294     _cf = 0;
   2295     _flag_k = FK_NARROW(FK_TEST, 24);
   2296     if (TEST_NZ(_flag_a, _flag_b)) goto L_42007B3A; /* 0x42007B22: jne 0x42007b3a */
   2297 L_42007B24:
   2298     eax = ebx; /* 0x42007B24: mov eax, ebx */
   2299     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007B26: fstp st(0) */
   2300     edx = MEM32(eax); /* 0x42007B28: mov edx, dword ptr [eax] */
   2301     fp_push(_st[0]); /* 0x42007B2A: fld st(0) */
   2302     edi = MEM32(eax + 0x4); /* 0x42007B2C: mov edi, dword ptr [eax + 4] */
   2303     eax = MEM32(eax + 0x8); /* 0x42007B2F: mov eax, dword ptr [eax + 8] */
   2304     MEM32(ebp + (-0x18)) = edx; /* 0x42007B32: mov dword ptr [ebp - 0x18], edx */
   2305     MEM32(ebp + (-0x10)) = eax; /* 0x42007B35: mov dword ptr [ebp - 0x10], eax */
   2306     goto L_42007B7C; /* 0x42007B38: jmp 0x42007b7c */
   2307 L_42007B3A:
   2308     eax = esi; /* 0x42007B3A: mov eax, esi */
   2309     edi = MEM32(eax); /* 0x42007B3C: mov edi, dword ptr [eax] */
   2310     MEM32(ebp + (-0x18)) = edi; /* 0x42007B3E: mov dword ptr [ebp - 0x18], edi */
   2311     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42007B41: fld dword ptr [ebp - 0x18] */
   2312     edi = MEM32(eax + 0x4); /* 0x42007B44: mov edi, dword ptr [eax + 4] */
   2313     _st[0] *= _st[1]; /* 0x42007B47: fmul st(1) */
   2314     eax = MEM32(eax + 0x8); /* 0x42007B49: mov eax, dword ptr [eax + 8] */
   2315     MEM32(ebp + (-0x14)) = edi; /* 0x42007B4C: mov dword ptr [ebp - 0x14], edi */
   2316     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42007B4F: fld dword ptr [ebp - 0x14] */
   2317     _st[0] *= _st[2]; /* 0x42007B52: fmul st(2) */
   2318     MEM32(ebp + (-0x10)) = eax; /* 0x42007B54: mov dword ptr [ebp - 0x10], eax */
   2319     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42007B57: fstp dword ptr [ebp - 0x14] */
   2320     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42007B5A: fld dword ptr [ebp - 0x10] */
   2321     _st[0] *= _st[2]; /* 0x42007B5D: fmul st(2) */
   2322     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42007B5F: fstp dword ptr [ebp - 0x10] */
   2323     _st[0] += (double)*(float*)ADDR(edx); /* 0x42007B62: fadd dword ptr [edx] */
   2324     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x42007B64: fstp dword ptr [ebp - 0x18] */
   2325     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x42007B67: fld dword ptr [ebp - 0x14] */
   2326     _st[0] += (double)*(float*)ADDR(edx + 0x4); /* 0x42007B6A: fadd dword ptr [edx + 4] */
   2327     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42007B6D: fstp dword ptr [ebp - 0x14] */
   2328     edi = MEM32(ebp + (-0x14)); /* 0x42007B70: mov edi, dword ptr [ebp - 0x14] */
   2329     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x42007B73: fld dword ptr [ebp - 0x10] */
   2330     _st[0] += (double)*(float*)ADDR(edx + 0x8); /* 0x42007B76: fadd dword ptr [edx + 8] */
   2331     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x42007B79: fstp dword ptr [ebp - 0x10] */
   2332 L_42007B7C:
   2333     eax = MEM32(ebp + 0x8); /* 0x42007B7C: mov eax, dword ptr [ebp + 8] */
   2334     fp_push(*(float*)&MEM32(eax)); /* 0x42007B7F: fld dword ptr [eax] */
   2335     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x42007B81: fsub dword ptr [ebp - 0x18] */
   2336     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x42007B84: fld dword ptr [eax + 8] */
   2337     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x42007B87: fsub dword ptr [ebp - 0x10] */
   2338     fp_push(_st[0]); /* 0x42007B8A: fld st(0) */
   2339     _st[0] *= _st[1]; /* 0x42007B8C: fmul st(1) */
   2340     fp_push(_st[2]); /* 0x42007B8E: fld st(2) */
   2341     _st[0] *= _st[3]; /* 0x42007B90: fmul st(3) */
   2342     { double _v = fp_pop(); _st[0] += _v; } /* 0x42007B92: faddp st(1) */
   2343     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x42007B94: fstp st(2) */
   2344     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007B96: fstp st(0) */
   2345     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x42007B98: fcom dword ptr [ebp - 4] */
   2346     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007B9B: fnstsw ax */
   2347     /* test HI8(eax), 1 */ /* 0x42007B9D: test ah, 1 */
   2348     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2349     _cf = 0;
   2350     _flag_k = FK_NARROW(FK_TEST, 24);
   2351     if (TEST_Z(_flag_a, _flag_b)) goto L_42007BC4; /* 0x42007BA0: je 0x42007bc4 */
   2352 L_42007BA2:
   2353     eax = MEM32(ebp + (-0x18)); /* 0x42007BA2: mov eax, dword ptr [ebp - 0x18] */
   2354     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42007BA5: fstp dword ptr [ebp - 4] */
   2355     edx = MEM32(ebp + 0xC); /* 0x42007BA8: mov edx, dword ptr [ebp + 0xc] */
   2356     fp_push(_st[2]); /* 0x42007BAB: fld st(2) */
   2357     MEM32(edx) = eax; /* 0x42007BAD: mov dword ptr [edx], eax */
   2358     _st[0] += _st[1]; /* 0x42007BAF: fadd st(1) */
   2359     eax = MEM32(ebp + (-0x10)); /* 0x42007BB1: mov eax, dword ptr [ebp - 0x10] */
   2360     MEM32(edx + 0x4) = edi; /* 0x42007BB4: mov dword ptr [edx + 4], edi */
   2361     MEM32(edx + 0x8) = eax; /* 0x42007BB7: mov dword ptr [edx + 8], eax */
   2362     edx = MEM32(ebp + 0x14); /* 0x42007BBA: mov edx, dword ptr [ebp + 0x14] */
   2363     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x42007BBD: fstp dword ptr [edx] */
   2364     MEM32(ebp + (-0x8)) = esi; /* 0x42007BBF: mov dword ptr [ebp - 8], esi */
   2365     goto L_42007BC6; /* 0x42007BC2: jmp 0x42007bc6 */
   2366 L_42007BC4:
   2367     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007BC4: fstp st(0) */
   2368 L_42007BC6:
   2369     eax = MEM32(ebp + (-0xC)); /* 0x42007BC6: mov eax, dword ptr [ebp - 0xc] */
   2370     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007BC9: fstp st(0) */
   2371     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2372     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2373     esi = esi + 0x10u; /* 0x42007BCB: add esi, 0x10 */
   2374     _flag_k = FK_ADD;
   2375     { double _v = fp_pop(); _st[0] += _v; } /* 0x42007BCE: faddp st(1) */
   2376     /* cmp esi, eax */ /* 0x42007BD0: cmp esi, eax */
   2377     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2379     _flag_k = FK_CMP;
   2380     edx = ebx; /* 0x42007BD2: mov edx, ebx */
   2381     RECOMP_BACKEDGE();
   2382     if (CMP_B(_flag_a, _flag_b)) goto L_42007AB9; /* 0x42007BD4: jb 0x42007ab9 */
   2383 L_42007BDA:
   2384     eax = MEM32(ebp + (-0x8)); /* 0x42007BDA: mov eax, dword ptr [ebp - 8] */
   2385     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007BDD: fstp st(0) */
   2386     ebx = POP32_VAL(esp); /* 0x42007BDF: pop ebx */
   2387     goto L_42007BE4; /* 0x42007BE0: jmp 0x42007be4 */
   2388 L_42007BE2:
   2389     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007BE2: fstp st(0) */
   2390 L_42007BE4:
   2391     esi = MEM32(eax); /* 0x42007BE4: mov esi, dword ptr [eax] */
   2392     edx = MEM32(ebp + 0x10); /* 0x42007BE6: mov edx, dword ptr [ebp + 0x10] */
   2393     MEM32(edx) = esi; /* 0x42007BE9: mov dword ptr [edx], esi */
   2394     esi = MEM32(eax + 0x4); /* 0x42007BEB: mov esi, dword ptr [eax + 4] */
   2395     MEM32(edx + 0x4) = esi; /* 0x42007BEE: mov dword ptr [edx + 4], esi */
   2396     eax = MEM32(eax + 0x8); /* 0x42007BF1: mov eax, dword ptr [eax + 8] */
   2397     MEM32(edx + 0x8) = eax; /* 0x42007BF4: mov dword ptr [edx + 8], eax */
   2398     fp_push(*(float*)&MEM32(ecx + 0x24)); /* 0x42007BF7: fld dword ptr [ecx + 0x24] */
   2399     fp_push(_st[0]); /* 0x42007BFA: fld st(0) */
   2400     edi = POP32_VAL(esp); /* 0x42007BFC: pop edi */
   2401     _st[0] *= _st[1]; /* 0x42007BFD: fmul st(1) */
   2402     esi = POP32_VAL(esp); /* 0x42007BFF: pop esi */
   2403     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42007C00: fld dword ptr [ebp - 4] */
   2404     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42007C03: fcompp  */
   2405     fp_pop(); fp_pop();
   2406     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007C05: fnstsw ax */
   2407     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007C07: fstp st(0) */
   2408     /* test HI8(eax), 1 */ /* 0x42007C09: test ah, 1 */
   2409     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2410     _cf = 0;
   2411     _flag_k = FK_NARROW(FK_TEST, 24);
   2412     if (TEST_Z(_flag_a, _flag_b)) goto L_42007C19; /* 0x42007C0C: je 0x42007c19 */
   2413 L_42007C0E:
   2414     eax = 1; /* 0x42007C0E: mov eax, 1 */
   2415     esp = ebp; /* 0x42007C13: mov esp, ebp */
   2416     ebp = POP32_VAL(esp); /* 0x42007C15: pop ebp */
   2417     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42007C16: ret 0x10 */
   2418 L_42007C19:
   2419     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2420     eax = 0; /* 0x42007C19: xor eax, eax */
   2421     _cf = 0;
   2422     _flag_k = FK_TEST;
   2423     esp = ebp; /* 0x42007C1B: mov esp, ebp */
   2424     ebp = POP32_VAL(esp); /* 0x42007C1D: pop ebp */
   2425     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42007C1E: ret 0x10 */
   2426     RECOMP_REGS_OUT();
   2427 }
   2428 
   2429 void sub_42007C30(void) {
   2430     int _fpu_cmp = 0;
   2431     uint32_t _cf = 0;
   2432     int _df = 1;
   2433     uint32_t _flag_k = FK_NONE;
   2434     uint32_t _flag_a = 0, _flag_b = 0;
   2435     uint32_t _itail_tgt = 0;
   2436     RECOMP_REGS_LOCALS
   2437     RECOMP_ENTER(0x42007C30u);
   2438 
   2439 L_42007C30:
   2440     PUSH32(esp, ebp); /* 0x42007C30: push ebp */
   2441     ebp = esp; /* 0x42007C31: mov ebp, esp */
   2442     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u);
   2443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2444     esp = esp - 0x30u; /* 0x42007C33: sub esp, 0x30 */
   2445     _flag_k = FK_CMP;
   2446     eax = MEM32(ecx + 0x8); /* 0x42007C36: mov eax, dword ptr [ecx + 8] */
   2447     fp_push(*(float*)&MEM32(0x420180F8)); /* 0x42007C39: fld dword ptr [0x420180f8] */
   2448     /* test eax, eax */ /* 0x42007C3F: test eax, eax */
   2449     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2450     _cf = 0;
   2451     _flag_k = FK_TEST;
   2452     MEM32(ebp + (-0x10)) = 0x7F7FFFFFu; /* 0x42007C41: mov dword ptr [ebp - 0x10], 0x7f7fffff */
   2453     MEM32(ebp + (-0x8)) = 0; /* 0x42007C48: mov dword ptr [ebp - 8], 0 */
   2454     if (TEST_NZ(_flag_a, _flag_b)) goto L_42007C55; /* 0x42007C4F: jne 0x42007c55 */
   2455 L_42007C51:
   2456     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2457     edx = 0; /* 0x42007C51: xor edx, edx */
   2458     _cf = 0;
   2459     _flag_k = FK_TEST;
   2460     goto L_42007C6A; /* 0x42007C53: jmp 0x42007c6a */
   2461 L_42007C55:
   2462     edx = MEM32(ecx + 0xC); /* 0x42007C55: mov edx, dword ptr [ecx + 0xc] */
   2463     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2465     edx = edx - eax; /* 0x42007C58: sub edx, eax */
   2466     _flag_k = FK_CMP;
   2467     eax = 0x2AAAAAABu; /* 0x42007C5A: mov eax, 0x2aaaaaab */
   2468     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x42007C5F: imul edx */
   2469       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2470       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2471     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42007C61: sar edx, 1 */
   2472     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2473     edx = (uint32_t)((int32_t)edx >> 1u);
   2474     eax = edx; /* 0x42007C63: mov eax, edx */
   2475     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42007C65: shr eax, 0x1f */
   2476     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2477     eax = eax >> 31u; /* 0x42007C65: shr eax, 0x1f */
   2478     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2479     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2480     edx = edx + eax; /* 0x42007C68: add edx, eax */
   2481     _flag_k = FK_ADD;
   2482 L_42007C6A:
   2483     eax = edx + (-0x1); /* 0x42007C6A: lea eax, [edx - 1] */
   2484     /* test eax, eax */ /* 0x42007C6D: test eax, eax */
   2485     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2486     _cf = 0;
   2487     _flag_k = FK_TEST;
   2488     if (TEST_LE(_flag_a, _flag_b)) goto L_42007D99; /* 0x42007C6F: jle 0x42007d99 */
   2489 L_42007C75:
   2490     edx = MEM32(ecx + 0x18); /* 0x42007C75: mov edx, dword ptr [ecx + 0x18] */
   2491     ecx = MEM32(ecx + 0x8); /* 0x42007C78: mov ecx, dword ptr [ecx + 8] */
   2492     PUSH32(esp, ebx); /* 0x42007C7B: push ebx */
   2493     ebx = MEM32(ebp + 0x8); /* 0x42007C7C: mov ebx, dword ptr [ebp + 8] */
   2494     PUSH32(esp, esi); /* 0x42007C7F: push esi */
   2495     PUSH32(esp, edi); /* 0x42007C80: push edi */
   2496     edi = eax; /* 0x42007C81: mov edi, eax */
   2497 L_42007C83:
   2498     eax = MEM32(edx + 0xC); /* 0x42007C83: mov eax, dword ptr [edx + 0xc] */
   2499     MEM32(ebp + (-0x18)) = eax; /* 0x42007C86: mov dword ptr [ebp - 0x18], eax */
   2500     eax = ebx; /* 0x42007C89: mov eax, ebx */
   2501     esi = MEM32(eax); /* 0x42007C8B: mov esi, dword ptr [eax] */
   2502     MEM32(ebp + (-0x30)) = esi; /* 0x42007C8D: mov dword ptr [ebp - 0x30], esi */
   2503     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x42007C90: fld dword ptr [ebp - 0x30] */
   2504     _st[0] -= (double)*(float*)ADDR(ecx); /* 0x42007C93: fsub dword ptr [ecx] */
   2505     esi = MEM32(eax + 0x4); /* 0x42007C95: mov esi, dword ptr [eax + 4] */
   2506     eax = MEM32(eax + 0x8); /* 0x42007C98: mov eax, dword ptr [eax + 8] */
   2507     MEM32(ebp + (-0x2C)) = esi; /* 0x42007C9B: mov dword ptr [ebp - 0x2c], esi */
   2508     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x42007C9E: fld dword ptr [ebp - 0x2c] */
   2509     _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x42007CA1: fsub dword ptr [ecx + 4] */
   2510     MEM32(ebp + (-0x28)) = eax; /* 0x42007CA4: mov dword ptr [ebp - 0x28], eax */
   2511     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x42007CA7: fld dword ptr [ebp - 0x28] */
   2512     eax = MEM32(edx + 0xC); /* 0x42007CAA: mov eax, dword ptr [edx + 0xc] */
   2513     _st[0] -= (double)*(float*)ADDR(ecx + 0x8); /* 0x42007CAD: fsub dword ptr [ecx + 8] */
   2514     esi = ecx + 0xC; /* 0x42007CB0: lea esi, [ecx + 0xc] */
   2515     MEM32(ebp + (-0xC)) = eax; /* 0x42007CB3: mov dword ptr [ebp - 0xc], eax */
   2516     _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x42007CB6: fmul dword ptr [edx + 8] */
   2517     fp_xch(1); /* 0x42007CB9: fxch st(1) */
   2518     _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x42007CBB: fmul dword ptr [edx + 4] */
   2519     { double _v = fp_pop(); _st[0] += _v; } /* 0x42007CBE: faddp st(1) */
   2520     fp_xch(1); /* 0x42007CC0: fxch st(1) */
   2521     _st[0] *= (double)*(float*)ADDR(edx); /* 0x42007CC2: fmul dword ptr [edx] */
   2522     { double _v = fp_pop(); _st[0] += _v; } /* 0x42007CC4: faddp st(1) */
   2523     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42007CC6: fst dword ptr [ebp - 4] */
   2524     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42007CC9: fcomp qword ptr [0x420180d8] */
   2525     fp_pop();
   2526     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007CCF: fnstsw ax */
   2527     /* test HI8(eax), 1 */ /* 0x42007CD1: test ah, 1 */
   2528     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2529     _cf = 0;
   2530     _flag_k = FK_NARROW(FK_TEST, 24);
   2531     if (TEST_Z(_flag_a, _flag_b)) goto L_42007CF0; /* 0x42007CD4: je 0x42007cf0 */
   2532 L_42007CD6:
   2533     eax = MEM32(ecx); /* 0x42007CD6: mov eax, dword ptr [ecx] */
   2534     MEM32(ebp + (-0x24)) = eax; /* 0x42007CD8: mov dword ptr [ebp - 0x24], eax */
   2535     eax = MEM32(ecx + 0x4); /* 0x42007CDB: mov eax, dword ptr [ecx + 4] */
   2536     ecx = MEM32(ecx + 0x8); /* 0x42007CDE: mov ecx, dword ptr [ecx + 8] */
   2537     MEM32(ebp + (-0x20)) = eax; /* 0x42007CE1: mov dword ptr [ebp - 0x20], eax */
   2538     MEM32(ebp + (-0x1C)) = ecx; /* 0x42007CE4: mov dword ptr [ebp - 0x1c], ecx */
   2539     MEM32(ebp + (-0x4)) = 0; /* 0x42007CE7: mov dword ptr [ebp - 4], 0 */
   2540     goto L_42007D4B; /* 0x42007CEE: jmp 0x42007d4b */
   2541 L_42007CF0:
   2542     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42007CF0: fld dword ptr [ebp - 4] */
   2543     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0xC))); /* 0x42007CF3: fcomp dword ptr [ebp - 0xc] */
   2544     fp_pop();
   2545     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007CF6: fnstsw ax */
   2546     /* test HI8(eax), 0x41u */ /* 0x42007CF8: test ah, 0x41 */
   2547     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2548     _cf = 0;
   2549     _flag_k = FK_NARROW(FK_TEST, 24);
   2550     if (TEST_NZ(_flag_a, _flag_b)) goto L_42007D18; /* 0x42007CFB: jne 0x42007d18 */
   2551 L_42007CFD:
   2552     eax = esi; /* 0x42007CFD: mov eax, esi */
   2553     ecx = MEM32(eax); /* 0x42007CFF: mov ecx, dword ptr [eax] */
   2554     MEM32(ebp + (-0x24)) = ecx; /* 0x42007D01: mov dword ptr [ebp - 0x24], ecx */
   2555     ecx = MEM32(eax + 0x4); /* 0x42007D04: mov ecx, dword ptr [eax + 4] */
   2556     eax = MEM32(eax + 0x8); /* 0x42007D07: mov eax, dword ptr [eax + 8] */
   2557     MEM32(ebp + (-0x20)) = ecx; /* 0x42007D0A: mov dword ptr [ebp - 0x20], ecx */
   2558     ecx = MEM32(ebp + (-0xC)); /* 0x42007D0D: mov ecx, dword ptr [ebp - 0xc] */
   2559     MEM32(ebp + (-0x1C)) = eax; /* 0x42007D10: mov dword ptr [ebp - 0x1c], eax */
   2560     MEM32(ebp + (-0x4)) = ecx; /* 0x42007D13: mov dword ptr [ebp - 4], ecx */
   2561     goto L_42007D4B; /* 0x42007D16: jmp 0x42007d4b */
   2562 L_42007D18:
   2563     eax = edx; /* 0x42007D18: mov eax, edx */
   2564     ebx = MEM32(eax); /* 0x42007D1A: mov ebx, dword ptr [eax] */
   2565     MEM32(ebp + (-0x24)) = ebx; /* 0x42007D1C: mov dword ptr [ebp - 0x24], ebx */
   2566     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x42007D1F: fld dword ptr [ebp - 0x24] */
   2567     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x42007D22: fmul dword ptr [ebp - 4] */
   2568     ebx = MEM32(eax + 0x4); /* 0x42007D25: mov ebx, dword ptr [eax + 4] */
   2569     eax = MEM32(eax + 0x8); /* 0x42007D28: mov eax, dword ptr [eax + 8] */
   2570     MEM32(ebp + (-0x1C)) = eax; /* 0x42007D2B: mov dword ptr [ebp - 0x1c], eax */
   2571     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42007D2E: fld dword ptr [ebp - 0x1c] */
   2572     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x42007D31: fmul dword ptr [ebp - 4] */
   2573     MEM32(ebp + (-0x20)) = ebx; /* 0x42007D34: mov dword ptr [ebp - 0x20], ebx */
   2574     ebx = MEM32(ebp + 0x8); /* 0x42007D37: mov ebx, dword ptr [ebp + 8] */
   2575     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x42007D3A: fstp dword ptr [ebp - 0x1c] */
   2576     _st[0] += (double)*(float*)ADDR(ecx); /* 0x42007D3D: fadd dword ptr [ecx] */
   2577     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x42007D3F: fstp dword ptr [ebp - 0x24] */
   2578     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42007D42: fld dword ptr [ebp - 0x1c] */
   2579     _st[0] += (double)*(float*)ADDR(ecx + 0x8); /* 0x42007D45: fadd dword ptr [ecx + 8] */
   2580     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x42007D48: fstp dword ptr [ebp - 0x1c] */
   2581 L_42007D4B:
   2582     fp_push(*(float*)&MEM32(ebx)); /* 0x42007D4B: fld dword ptr [ebx] */
   2583     _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x42007D4D: fsub dword ptr [ebp - 0x24] */
   2584     fp_push(*(float*)&MEM32(ebx + 0x8)); /* 0x42007D50: fld dword ptr [ebx + 8] */
   2585     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x42007D53: fsub dword ptr [ebp - 0x1c] */
   2586     fp_push(_st[0]); /* 0x42007D56: fld st(0) */
   2587     _st[0] *= _st[1]; /* 0x42007D58: fmul st(1) */
   2588     fp_push(_st[2]); /* 0x42007D5A: fld st(2) */
   2589     _st[0] *= _st[3]; /* 0x42007D5C: fmul st(3) */
   2590     { double _v = fp_pop(); _st[0] += _v; } /* 0x42007D5E: faddp st(1) */
   2591     _st[0] = sqrt(_st[0]); /* 0x42007D60: fsqrt  */
   2592     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x42007D62: fst dword ptr [ebp - 0x14] */
   2593     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x42007D65: fstp st(2) */
   2594     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007D67: fstp st(0) */
   2595     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x10))); /* 0x42007D69: fcomp dword ptr [ebp - 0x10] */
   2596     fp_pop();
   2597     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007D6C: fnstsw ax */
   2598     /* test HI8(eax), 1 */ /* 0x42007D6E: test ah, 1 */
   2599     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2600     _cf = 0;
   2601     _flag_k = FK_NARROW(FK_TEST, 24);
   2602     if (TEST_Z(_flag_a, _flag_b)) goto L_42007D81; /* 0x42007D71: je 0x42007d81 */
   2603 L_42007D73:
   2604     ecx = MEM32(ebp + (-0x14)); /* 0x42007D73: mov ecx, dword ptr [ebp - 0x14] */
   2605     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007D76: fstp st(0) */
   2606     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42007D78: fld dword ptr [ebp - 4] */
   2607     MEM32(ebp + (-0x10)) = ecx; /* 0x42007D7B: mov dword ptr [ebp - 0x10], ecx */
   2608     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x42007D7E: fadd dword ptr [ebp - 8] */
   2609 L_42007D81:
   2610     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42007D81: fld dword ptr [ebp - 0x18] */
   2611     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   2612     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2613     edx = edx + 0x10u; /* 0x42007D84: add edx, 0x10 */
   2614     _flag_k = FK_ADD;
   2615     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   2616     edi = edi - 1; /* 0x42007D87: dec edi */
   2617     _flag_k = FK_DEC;
   2618     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x42007D88: fadd dword ptr [ebp - 8] */
   2619     ecx = esi; /* 0x42007D8B: mov ecx, esi */
   2620     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x42007D8D: fstp dword ptr [ebp - 8] */
   2621     RECOMP_BACKEDGE();
   2622     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_42007C83; /* 0x42007D90: jne 0x42007c83 */
   2623 L_42007D96:
   2624     edi = POP32_VAL(esp); /* 0x42007D96: pop edi */
   2625     esi = POP32_VAL(esp); /* 0x42007D97: pop esi */
   2626     ebx = POP32_VAL(esp); /* 0x42007D98: pop ebx */
   2627 L_42007D99:
   2628     esp = ebp; /* 0x42007D99: mov esp, ebp */
   2629     ebp = POP32_VAL(esp); /* 0x42007D9B: pop ebp */
   2630     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42007D9C: ret 4 */
   2631     RECOMP_REGS_OUT();
   2632 }
   2633 
   2634 void sub_42007DA0(void) {
   2635     int _fpu_cmp = 0;
   2636     uint32_t _cf = 0;
   2637     int _df = 1;
   2638     uint32_t _flag_k = FK_NONE;
   2639     uint32_t _flag_a = 0, _flag_b = 0;
   2640     uint32_t _itail_tgt = 0;
   2641     RECOMP_REGS_LOCALS
   2642     RECOMP_ENTER(0x42007DA0u);
   2643 
   2644 L_42007DA0:
   2645     PUSH32(esp, ebp); /* 0x42007DA0: push ebp */
   2646     ebp = esp; /* 0x42007DA1: mov ebp, esp */
   2647     eax = MEM32(ecx + 0x8); /* 0x42007DA3: mov eax, dword ptr [ecx + 8] */
   2648     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42007DA6: fld dword ptr [ebp + 8] */
   2649     /* test eax, eax */ /* 0x42007DA9: test eax, eax */
   2650     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2651     _cf = 0;
   2652     _flag_k = FK_TEST;
   2653     if (TEST_NZ(_flag_a, _flag_b)) goto L_42007DB1; /* 0x42007DAB: jne 0x42007db1 */
   2654 L_42007DAD:
   2655     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2656     edx = 0; /* 0x42007DAD: xor edx, edx */
   2657     _cf = 0;
   2658     _flag_k = FK_TEST;
   2659     goto L_42007DC6; /* 0x42007DAF: jmp 0x42007dc6 */
   2660 L_42007DB1:
   2661     edx = MEM32(ecx + 0xC); /* 0x42007DB1: mov edx, dword ptr [ecx + 0xc] */
   2662     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2664     edx = edx - eax; /* 0x42007DB4: sub edx, eax */
   2665     _flag_k = FK_CMP;
   2666     eax = 0x2AAAAAABu; /* 0x42007DB6: mov eax, 0x2aaaaaab */
   2667     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x42007DBB: imul edx */
   2668       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2669       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2670     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42007DBD: sar edx, 1 */
   2671     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2672     edx = (uint32_t)((int32_t)edx >> 1u);
   2673     eax = edx; /* 0x42007DBF: mov eax, edx */
   2674     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42007DC1: shr eax, 0x1f */
   2675     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2676     eax = eax >> 31u; /* 0x42007DC1: shr eax, 0x1f */
   2677     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2678     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2679     edx = edx + eax; /* 0x42007DC4: add edx, eax */
   2680     _flag_k = FK_ADD;
   2681 L_42007DC6:
   2682     PUSH32(esp, esi); /* 0x42007DC6: push esi */
   2683     PUSH32(esp, edi); /* 0x42007DC7: push edi */
   2684     edi = edx + (-0x1); /* 0x42007DC8: lea edi, [edx - 1] */
   2685     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2686     edx = 0; /* 0x42007DCB: xor edx, edx */
   2687     _cf = 0;
   2688     _flag_k = FK_TEST;
   2689     /* test edi, edi */ /* 0x42007DCD: test edi, edi */
   2690     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2691     _cf = 0;
   2692     _flag_k = FK_TEST;
   2693     if (TEST_LE(_flag_a, _flag_b)) goto L_42007DF0; /* 0x42007DCF: jle 0x42007df0 */
   2694 L_42007DD1:
   2695     esi = MEM32(ecx + 0x18); /* 0x42007DD1: mov esi, dword ptr [ecx + 0x18] */
   2696 L_42007DD4:
   2697     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x42007DD4: fld dword ptr [esi + 0xc] */
   2698     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42007DD7: fcom st(1) */
   2699     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007DD9: fnstsw ax */
   2700     /* test HI8(eax), 1 */ /* 0x42007DDB: test ah, 1 */
   2701     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2702     _cf = 0;
   2703     _flag_k = FK_NARROW(FK_TEST, 24);
   2704     if (TEST_Z(_flag_a, _flag_b)) goto L_42007E11; /* 0x42007DDE: je 0x42007e11 */
   2705 L_42007DE0:
   2706     fp_xch(1); /* 0x42007DE0: fxch st(1) */
   2707     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2708     edx = edx + 1; /* 0x42007DE2: inc edx */
   2709     _flag_k = FK_INC;
   2710     _st[0] -= _st[1]; /* 0x42007DE3: fsub st(1) */
   2711     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2712     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2713     esi = esi + 0x10u; /* 0x42007DE5: add esi, 0x10 */
   2714     _flag_k = FK_ADD;
   2715     /* cmp edx, edi */ /* 0x42007DE8: cmp edx, edi */
   2716     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   2717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2718     _flag_k = FK_CMP;
   2719     fp_xch(1); /* 0x42007DEA: fxch st(1) */
   2720     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007DEC: fstp st(0) */
   2721     RECOMP_BACKEDGE();
   2722     if (CMP_L(_flag_a, _flag_b)) goto L_42007DD4; /* 0x42007DEE: jl 0x42007dd4 */
   2723 L_42007DF0:
   2724     edx = MEM32(ecx + 0xC); /* 0x42007DF0: mov edx, dword ptr [ecx + 0xc] */
   2725     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007DF3: fstp st(0) */
   2726     eax = MEM32(ebp + 0xC); /* 0x42007DF5: mov eax, dword ptr [ebp + 0xc] */
   2727     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   2728     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2729     edx = edx - 0xCu; /* 0x42007DF8: sub edx, 0xc */
   2730     _flag_k = FK_CMP;
   2731     ecx = MEM32(edx); /* 0x42007DFB: mov ecx, dword ptr [edx] */
   2732     MEM32(eax) = ecx; /* 0x42007DFD: mov dword ptr [eax], ecx */
   2733     ecx = MEM32(edx + 0x4); /* 0x42007DFF: mov ecx, dword ptr [edx + 4] */
   2734     MEM32(eax + 0x4) = ecx; /* 0x42007E02: mov dword ptr [eax + 4], ecx */
   2735     edx = MEM32(edx + 0x8); /* 0x42007E05: mov edx, dword ptr [edx + 8] */
   2736     edi = POP32_VAL(esp); /* 0x42007E08: pop edi */
   2737     MEM32(eax + 0x8) = edx; /* 0x42007E09: mov dword ptr [eax + 8], edx */
   2738     esi = POP32_VAL(esp); /* 0x42007E0C: pop esi */
   2739     ebp = POP32_VAL(esp); /* 0x42007E0D: pop ebp */
   2740     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42007E0E: ret 8 */
   2741 L_42007E11:
   2742     eax = MEM32(ebp + 0xC); /* 0x42007E11: mov eax, dword ptr [ebp + 0xc] */
   2743     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007E14: fstp st(0) */
   2744     fp_push(_st[0]); /* 0x42007E16: fld st(0) */
   2745     PUSH32(esp, ebx); /* 0x42007E18: push ebx */
   2746     ebx = MEM32(esi); /* 0x42007E19: mov ebx, dword ptr [esi] */
   2747     edi = eax; /* 0x42007E1B: mov edi, eax */
   2748     MEM32(edi) = ebx; /* 0x42007E1D: mov dword ptr [edi], ebx */
   2749     ebx = MEM32(esi + 0x4); /* 0x42007E1F: mov ebx, dword ptr [esi + 4] */
   2750     MEM32(edi + 0x4) = ebx; /* 0x42007E22: mov dword ptr [edi + 4], ebx */
   2751     esi = MEM32(esi + 0x8); /* 0x42007E25: mov esi, dword ptr [esi + 8] */
   2752     MEM32(edi + 0x8) = esi; /* 0x42007E28: mov dword ptr [edi + 8], esi */
   2753     _st[0] *= (double)*(float*)ADDR(eax); /* 0x42007E2B: fmul dword ptr [eax] */
   2754     edx = edx + edx * 2; /* 0x42007E2D: lea edx, [edx + edx*2] */
   2755     ebx = POP32_VAL(esp); /* 0x42007E30: pop ebx */
   2756     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x42007E31: fst dword ptr [ebp + 0xc] */
   2757     edi = POP32_VAL(esp); /* 0x42007E34: pop edi */
   2758     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42007E35: fstp dword ptr [eax] */
   2759     esi = POP32_VAL(esp); /* 0x42007E37: pop esi */
   2760     fp_push(_st[0]); /* 0x42007E38: fld st(0) */
   2761     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x42007E3A: fmul dword ptr [eax + 4] */
   2762     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42007E3D: fst dword ptr [ebp + 8] */
   2763     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x42007E40: fstp dword ptr [eax + 4] */
   2764     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x42007E43: fmul dword ptr [eax + 8] */
   2765     { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x8) = _v; } /* 0x42007E46: fst dword ptr [eax + 8] */
   2766     ecx = MEM32(ecx + 0x8); /* 0x42007E49: mov ecx, dword ptr [ecx + 8] */
   2767     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x42007E4C: fld dword ptr [ebp + 0xc] */
   2768     ecx = ecx + edx * 4; /* 0x42007E4F: lea ecx, [ecx + edx*4] */
   2769     _st[0] += (double)*(float*)ADDR(ecx); /* 0x42007E52: fadd dword ptr [ecx] */
   2770     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42007E54: fstp dword ptr [eax] */
   2771     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42007E56: fld dword ptr [ebp + 8] */
   2772     _st[0] += (double)*(float*)ADDR(ecx + 0x4); /* 0x42007E59: fadd dword ptr [ecx + 4] */
   2773     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x42007E5C: fstp dword ptr [eax + 4] */
   2774     _st[0] += (double)*(float*)ADDR(ecx + 0x8); /* 0x42007E5F: fadd dword ptr [ecx + 8] */
   2775     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x42007E62: fstp dword ptr [eax + 8] */
   2776     ebp = POP32_VAL(esp); /* 0x42007E65: pop ebp */
   2777     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42007E66: ret 8 */
   2778     RECOMP_REGS_OUT();
   2779 }
   2780 
   2781 void sub_42007E70(void) {
   2782     int _fpu_cmp = 0;
   2783     uint32_t _cf = 0;
   2784     int _df = 1;
   2785     uint32_t _flag_k = FK_NONE;
   2786     uint32_t _flag_a = 0, _flag_b = 0;
   2787     uint32_t _itail_tgt = 0;
   2788     RECOMP_REGS_LOCALS
   2789     RECOMP_ENTER(0x42007E70u);
   2790 
   2791 L_42007E70:
   2792     PUSH32(esp, ebp); /* 0x42007E70: push ebp */
   2793     ebp = esp; /* 0x42007E71: mov ebp, esp */
   2794     eax = MEM32(ecx + 0x8); /* 0x42007E73: mov eax, dword ptr [ecx + 8] */
   2795     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x42007E76: fld dword ptr [ebp + 0xc] */
   2796     /* test eax, eax */ /* 0x42007E79: test eax, eax */
   2797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2798     _cf = 0;
   2799     _flag_k = FK_TEST;
   2800     if (TEST_NZ(_flag_a, _flag_b)) goto L_42007E81; /* 0x42007E7B: jne 0x42007e81 */
   2801 L_42007E7D:
   2802     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2803     edx = 0; /* 0x42007E7D: xor edx, edx */
   2804     _cf = 0;
   2805     _flag_k = FK_TEST;
   2806     goto L_42007E96; /* 0x42007E7F: jmp 0x42007e96 */
   2807 L_42007E81:
   2808     edx = MEM32(ecx + 0xC); /* 0x42007E81: mov edx, dword ptr [ecx + 0xc] */
   2809     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2811     edx = edx - eax; /* 0x42007E84: sub edx, eax */
   2812     _flag_k = FK_CMP;
   2813     eax = 0x2AAAAAABu; /* 0x42007E86: mov eax, 0x2aaaaaab */
   2814     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x42007E8B: imul edx */
   2815       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   2816       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   2817     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42007E8D: sar edx, 1 */
   2818     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2819     edx = (uint32_t)((int32_t)edx >> 1u);
   2820     eax = edx; /* 0x42007E8F: mov eax, edx */
   2821     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42007E91: shr eax, 0x1f */
   2822     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2823     eax = eax >> 31u; /* 0x42007E91: shr eax, 0x1f */
   2824     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2825     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2826     edx = edx + eax; /* 0x42007E94: add edx, eax */
   2827     _flag_k = FK_ADD;
   2828 L_42007E96:
   2829     PUSH32(esp, esi); /* 0x42007E96: push esi */
   2830     PUSH32(esp, edi); /* 0x42007E97: push edi */
   2831     edi = edx + (-0x1); /* 0x42007E98: lea edi, [edx - 1] */
   2832     edx = MEM32(ebp + 0x8); /* 0x42007E9B: mov edx, dword ptr [ebp + 8] */
   2833     /* cmp edx, edi */ /* 0x42007E9E: cmp edx, edi */
   2834     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   2835     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2836     _flag_k = FK_CMP;
   2837     esi = edx; /* 0x42007EA0: mov esi, edx */
   2838     if (CMP_GE(_flag_a, _flag_b)) goto L_42007EC8; /* 0x42007EA2: jge 0x42007ec8 */
   2839 L_42007EA4:
   2840     eax = MEM32(ecx + 0x18); /* 0x42007EA4: mov eax, dword ptr [ecx + 0x18] */
   2841     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x42007EA7: shl edx, 4 */
   2842     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2843     edx = edx << 4u; /* 0x42007EA7: shl edx, 4 */
   2844     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2845     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2846     edx = edx + eax; /* 0x42007EAA: add edx, eax */
   2847     _flag_k = FK_ADD;
   2848 L_42007EAC:
   2849     fp_push(*(float*)&MEM32(edx + 0xC)); /* 0x42007EAC: fld dword ptr [edx + 0xc] */
   2850     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42007EAF: fcom st(1) */
   2851     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42007EB1: fnstsw ax */
   2852     /* test HI8(eax), 1 */ /* 0x42007EB3: test ah, 1 */
   2853     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2854     _cf = 0;
   2855     _flag_k = FK_NARROW(FK_TEST, 24);
   2856     if (TEST_Z(_flag_a, _flag_b)) goto L_42007EE9; /* 0x42007EB6: je 0x42007ee9 */
   2857 L_42007EB8:
   2858     fp_xch(1); /* 0x42007EB8: fxch st(1) */
   2859     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   2860     esi = esi + 1; /* 0x42007EBA: inc esi */
   2861     _flag_k = FK_INC;
   2862     _st[0] -= _st[1]; /* 0x42007EBB: fsub st(1) */
   2863     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   2864     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2865     edx = edx + 0x10u; /* 0x42007EBD: add edx, 0x10 */
   2866     _flag_k = FK_ADD;
   2867     /* cmp esi, edi */ /* 0x42007EC0: cmp esi, edi */
   2868     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   2869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2870     _flag_k = FK_CMP;
   2871     fp_xch(1); /* 0x42007EC2: fxch st(1) */
   2872     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007EC4: fstp st(0) */
   2873     RECOMP_BACKEDGE();
   2874     if (CMP_L(_flag_a, _flag_b)) goto L_42007EAC; /* 0x42007EC6: jl 0x42007eac */
   2875 L_42007EC8:
   2876     edx = MEM32(ecx + 0xC); /* 0x42007EC8: mov edx, dword ptr [ecx + 0xc] */
   2877     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007ECB: fstp st(0) */
   2878     eax = MEM32(ebp + 0x10); /* 0x42007ECD: mov eax, dword ptr [ebp + 0x10] */
   2879     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   2880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2881     edx = edx - 0xCu; /* 0x42007ED0: sub edx, 0xc */
   2882     _flag_k = FK_CMP;
   2883     ecx = MEM32(edx); /* 0x42007ED3: mov ecx, dword ptr [edx] */
   2884     MEM32(eax) = ecx; /* 0x42007ED5: mov dword ptr [eax], ecx */
   2885     ecx = MEM32(edx + 0x4); /* 0x42007ED7: mov ecx, dword ptr [edx + 4] */
   2886     MEM32(eax + 0x4) = ecx; /* 0x42007EDA: mov dword ptr [eax + 4], ecx */
   2887     edx = MEM32(edx + 0x8); /* 0x42007EDD: mov edx, dword ptr [edx + 8] */
   2888     edi = POP32_VAL(esp); /* 0x42007EE0: pop edi */
   2889     MEM32(eax + 0x8) = edx; /* 0x42007EE1: mov dword ptr [eax + 8], edx */
   2890     esi = POP32_VAL(esp); /* 0x42007EE4: pop esi */
   2891     ebp = POP32_VAL(esp); /* 0x42007EE5: pop ebp */
   2892     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42007EE6: ret 0xc */
   2893 L_42007EE9:
   2894     eax = MEM32(ebp + 0x10); /* 0x42007EE9: mov eax, dword ptr [ebp + 0x10] */
   2895     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42007EEC: fstp st(0) */
   2896     fp_push(_st[0]); /* 0x42007EEE: fld st(0) */
   2897     PUSH32(esp, ebx); /* 0x42007EF0: push ebx */
   2898     ebx = MEM32(edx); /* 0x42007EF1: mov ebx, dword ptr [edx] */
   2899     edi = eax; /* 0x42007EF3: mov edi, eax */
   2900     MEM32(edi) = ebx; /* 0x42007EF5: mov dword ptr [edi], ebx */
   2901     ebx = MEM32(edx + 0x4); /* 0x42007EF7: mov ebx, dword ptr [edx + 4] */
   2902     MEM32(edi + 0x4) = ebx; /* 0x42007EFA: mov dword ptr [edi + 4], ebx */
   2903     edx = MEM32(edx + 0x8); /* 0x42007EFD: mov edx, dword ptr [edx + 8] */
   2904     MEM32(edi + 0x8) = edx; /* 0x42007F00: mov dword ptr [edi + 8], edx */
   2905     _st[0] *= (double)*(float*)ADDR(eax); /* 0x42007F03: fmul dword ptr [eax] */
   2906     edx = esi + esi * 2; /* 0x42007F05: lea edx, [esi + esi*2] */
   2907     ebx = POP32_VAL(esp); /* 0x42007F08: pop ebx */
   2908     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x10) = _v; } /* 0x42007F09: fst dword ptr [ebp + 0x10] */
   2909     edi = POP32_VAL(esp); /* 0x42007F0C: pop edi */
   2910     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42007F0D: fstp dword ptr [eax] */
   2911     esi = POP32_VAL(esp); /* 0x42007F0F: pop esi */
   2912     fp_push(_st[0]); /* 0x42007F10: fld st(0) */
   2913     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x42007F12: fmul dword ptr [eax + 4] */
   2914     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x42007F15: fst dword ptr [ebp + 0xc] */
   2915     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x42007F18: fstp dword ptr [eax + 4] */
   2916     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x42007F1B: fmul dword ptr [eax + 8] */
   2917     { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x8) = _v; } /* 0x42007F1E: fst dword ptr [eax + 8] */
   2918     ecx = MEM32(ecx + 0x8); /* 0x42007F21: mov ecx, dword ptr [ecx + 8] */
   2919     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x42007F24: fld dword ptr [ebp + 0x10] */
   2920     ecx = ecx + edx * 4; /* 0x42007F27: lea ecx, [ecx + edx*4] */
   2921     _st[0] += (double)*(float*)ADDR(ecx); /* 0x42007F2A: fadd dword ptr [ecx] */
   2922     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42007F2C: fstp dword ptr [eax] */
   2923     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x42007F2E: fld dword ptr [ebp + 0xc] */
   2924     _st[0] += (double)*(float*)ADDR(ecx + 0x4); /* 0x42007F31: fadd dword ptr [ecx + 4] */
   2925     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x42007F34: fstp dword ptr [eax + 4] */
   2926     _st[0] += (double)*(float*)ADDR(ecx + 0x8); /* 0x42007F37: fadd dword ptr [ecx + 8] */
   2927     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x42007F3A: fstp dword ptr [eax + 8] */
   2928     ebp = POP32_VAL(esp); /* 0x42007F3D: pop ebp */
   2929     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42007F3E: ret 0xc */
   2930     RECOMP_REGS_OUT();
   2931 }
   2932 
   2933 void sub_42007F50(void) {
   2934     int _fpu_cmp = 0;
   2935     uint32_t _cf = 0;
   2936     int _df = 1;
   2937     uint32_t _flag_k = FK_NONE;
   2938     uint32_t _flag_a = 0, _flag_b = 0;
   2939     uint32_t _itail_tgt = 0;
   2940     RECOMP_REGS_LOCALS
   2941     RECOMP_ENTER(0x42007F50u);
   2942 
   2943 L_42007F50:
   2944     PUSH32(esp, ebp); /* 0x42007F50: push ebp */
   2945     ebp = esp; /* 0x42007F51: mov ebp, esp */
   2946     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   2947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2948     esp = esp - 0x20u; /* 0x42007F53: sub esp, 0x20 */
   2949     _flag_k = FK_CMP;
   2950     SET_LO8(eax, MEM8(0x42023062)); /* 0x42007F56: mov al, byte ptr [0x42023062] */
   2951     /* test LO8(eax), 1 */ /* 0x42007F5B: test al, 1 */
   2952     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2953     _cf = 0;
   2954     _flag_k = FK_NARROW(FK_TEST, 24);
   2955     PUSH32(esp, ebx); /* 0x42007F5D: push ebx */
   2956     PUSH32(esp, esi); /* 0x42007F5E: push esi */
   2957     ebx = ecx; /* 0x42007F5F: mov ebx, ecx */
   2958     PUSH32(esp, edi); /* 0x42007F61: push edi */
   2959     MEM32(ebp + (-0x14)) = ebx; /* 0x42007F62: mov dword ptr [ebp - 0x14], ebx */
   2960     if (TEST_NZ(_flag_a, _flag_b)) goto L_42007F9D; /* 0x42007F65: jne 0x42007f9d */
   2961 L_42007F67:
   2962     SET_LO8(edx, LO8(eax)); /* 0x42007F67: mov dl, al */
   2963     _flag_a = (uint32_t)((LO8(edx) | 1)) << 24; _flag_b = (uint32_t)((LO8(edx) | 1)) << 24;
   2964     SET_LO8(edx, LO8(edx) | 1); /* 0x42007F69: or dl, 1 */
   2965     _cf = 0;
   2966     _flag_k = FK_NARROW(FK_TEST, 24);
   2967     PUSH32(esp, 0x42008190u); /* 0x42007F6C: push 0x42008190 */
   2968     MEM8(0x42023062) = (uint8_t)(LO8(edx)); /* 0x42007F71: mov byte ptr [0x42023062], dl */
   2969     MEM32(0x42023068) = 0; /* 0x42007F77: mov dword ptr [0x42023068], 0 */
   2970     MEM32(0x4202306C) = 0; /* 0x42007F81: mov dword ptr [0x4202306c], 0 */
   2971     MEM32(0x42023070) = 0; /* 0x42007F8B: mov dword ptr [0x42023070], 0 */
   2972     RECOMP_ICALL(0x42016E07u); /* 0x42007F95: call 0x42016e07 */ /* not lifted */
   2973     RECOMP_FLAGS_IN();
   2974     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2975     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2976     esp = esp + 4; /* 0x42007F9A: add esp, 4 */
   2977     _flag_k = FK_ADD;
   2978 L_42007F9D:
   2979     eax = MEM32(ebp + 0x14); /* 0x42007F9D: mov eax, dword ptr [ebp + 0x14] */
   2980     esi = MEM32(eax); /* 0x42007FA0: mov esi, dword ptr [eax] */
   2981     edx = MEM32(ebx + 0x8); /* 0x42007FA2: mov edx, dword ptr [ebx + 8] */
   2982     edi = MEM32(ebx + 0x18); /* 0x42007FA5: mov edi, dword ptr [ebx + 0x18] */
   2983     ebx = MEM32(ebx + 0x1C); /* 0x42007FA8: mov ebx, dword ptr [ebx + 0x1c] */
   2984     ecx = esi + esi * 2; /* 0x42007FAB: lea ecx, [esi + esi*2] */
   2985     edx = edx + ecx * 4; /* 0x42007FAE: lea edx, [edx + ecx*4] */
   2986     eax = esi + 0x2; /* 0x42007FB1: lea eax, [esi + 2] */
   2987     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42007FB4: shl eax, 4 */
   2988     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2989     eax = eax << 4u; /* 0x42007FB4: shl eax, 4 */
   2990     ecx = esi; /* 0x42007FB7: mov ecx, esi */
   2991     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x42007FB9: shl ecx, 4 */
   2992     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2993     ecx = ecx << 4u; /* 0x42007FB9: shl ecx, 4 */
   2994     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2995     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2996     eax = eax + edi; /* 0x42007FBC: add eax, edi */
   2997     _flag_k = FK_ADD;
   2998     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2999     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3000     ecx = ecx + edi; /* 0x42007FBE: add ecx, edi */
   3001     _flag_k = FK_ADD;
   3002     MEM32(ebp + (-0x8)) = eax; /* 0x42007FC0: mov dword ptr [ebp - 8], eax */
   3003     /* cmp eax, ebx */ /* 0x42007FC3: cmp eax, ebx */
   3004     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3006     _flag_k = FK_CMP;
   3007     MEM32(ebp + (-0x4)) = 0x7F7FFFFFu; /* 0x42007FC5: mov dword ptr [ebp - 4], 0x7f7fffff */
   3008     MEM32(ebp + (-0xC)) = 0; /* 0x42007FCC: mov dword ptr [ebp - 0xc], 0 */
   3009     MEM32(ebp + (-0x10)) = ebx; /* 0x42007FD3: mov dword ptr [ebp - 0x10], ebx */
   3010     eax = ebp + (-0x8); /* 0x42007FD6: lea eax, [ebp - 8] */
   3011     if (CMP_B(_flag_a, _flag_b)) goto L_42007FDE; /* 0x42007FD9: jb 0x42007fde */
   3012 L_42007FDB:
   3013     eax = ebp + (-0x10); /* 0x42007FDB: lea eax, [ebp - 0x10] */
   3014 L_42007FDE:
   3015     eax = MEM32(eax); /* 0x42007FDE: mov eax, dword ptr [eax] */
   3016     /* cmp ecx, eax */ /* 0x42007FE0: cmp ecx, eax */
   3017     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3019     _flag_k = FK_CMP;
   3020     MEM32(ebp + (-0x10)) = eax; /* 0x42007FE2: mov dword ptr [ebp - 0x10], eax */
   3021     if (CMP_AE(_flag_a, _flag_b)) goto L_4200814B; /* 0x42007FE5: jae 0x4200814b */
   3022 L_42007FEB:
   3023     ebx = MEM32(ebp + 0x8); /* 0x42007FEB: mov ebx, dword ptr [ebp + 8] */
   3024 L_42007FEE:
   3025     eax = MEM32(ecx + 0xC); /* 0x42007FEE: mov eax, dword ptr [ecx + 0xc] */
   3026     MEM32(ebp + (-0x8)) = eax; /* 0x42007FF1: mov dword ptr [ebp - 8], eax */
   3027     eax = MEM32(ebx); /* 0x42007FF4: mov eax, dword ptr [ebx] */
   3028     MEM32(ebp + (-0x20)) = eax; /* 0x42007FF6: mov dword ptr [ebp - 0x20], eax */
   3029     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x42007FF9: fld dword ptr [ebp - 0x20] */
   3030     _st[0] -= (double)*(float*)ADDR(edx); /* 0x42007FFC: fsub dword ptr [edx] */
   3031     eax = MEM32(ebx + 0x4); /* 0x42007FFE: mov eax, dword ptr [ebx + 4] */
   3032     MEM32(ebp + (-0x1C)) = eax; /* 0x42008001: mov dword ptr [ebp - 0x1c], eax */
   3033     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42008004: fld dword ptr [ebp - 0x1c] */
   3034     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x42008007: fsub dword ptr [edx + 4] */
   3035     eax = MEM32(ebx + 0x8); /* 0x4200800A: mov eax, dword ptr [ebx + 8] */
   3036     MEM32(ebp + (-0x18)) = eax; /* 0x4200800D: mov dword ptr [ebp - 0x18], eax */
   3037     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42008010: fld dword ptr [ebp - 0x18] */
   3038     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x42008013: fsub dword ptr [edx + 8] */
   3039     edi = edx + 0xC; /* 0x42008016: lea edi, [edx + 0xc] */
   3040     _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x42008019: fmul dword ptr [ecx + 8] */
   3041     fp_xch(1); /* 0x4200801C: fxch st(1) */
   3042     _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x4200801E: fmul dword ptr [ecx + 4] */
   3043     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008021: faddp st(1) */
   3044     fp_xch(1); /* 0x42008023: fxch st(1) */
   3045     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x42008025: fmul dword ptr [ecx] */
   3046     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008027: faddp st(1) */
   3047     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42008029: fcom qword ptr [0x420180d8] */
   3048     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200802F: fnstsw ax */
   3049     /* test HI8(eax), 1 */ /* 0x42008031: test ah, 1 */
   3050     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3051     _cf = 0;
   3052     _flag_k = FK_NARROW(FK_TEST, 24);
   3053     if (TEST_Z(_flag_a, _flag_b)) goto L_4200805B; /* 0x42008034: je 0x4200805b */
   3054 L_42008036:
   3055     eax = MEM32(edx); /* 0x42008036: mov eax, dword ptr [edx] */
   3056     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008038: fstp st(0) */
   3057     fp_push(*(float*)&MEM32(0x420180F8)); /* 0x4200803A: fld dword ptr [0x420180f8] */
   3058     MEM32(0x42023068) = eax; /* 0x42008040: mov dword ptr [0x42023068], eax */
   3059     eax = MEM32(edx + 0x4); /* 0x42008045: mov eax, dword ptr [edx + 4] */
   3060     MEM32(0x4202306C) = eax; /* 0x42008048: mov dword ptr [0x4202306c], eax */
   3061     edx = MEM32(edx + 0x8); /* 0x4200804D: mov edx, dword ptr [edx + 8] */
   3062     MEM32(0x42023070) = edx; /* 0x42008050: mov dword ptr [0x42023070], edx */
   3063     goto L_420080F8; /* 0x42008056: jmp 0x420080f8 */
   3064 L_4200805B:
   3065     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x4200805B: fcom dword ptr [ebp - 8] */
   3066     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200805E: fnstsw ax */
   3067     /* test HI8(eax), 0x41u */ /* 0x42008060: test ah, 0x41 */
   3068     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3069     _cf = 0;
   3070     _flag_k = FK_NARROW(FK_TEST, 24);
   3071     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008087; /* 0x42008063: jne 0x42008087 */
   3072 L_42008065:
   3073     eax = edi; /* 0x42008065: mov eax, edi */
   3074     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008067: fstp st(0) */
   3075     edx = MEM32(eax); /* 0x42008069: mov edx, dword ptr [eax] */
   3076     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x4200806B: fld dword ptr [ebp - 8] */
   3077     MEM32(0x42023068) = edx; /* 0x4200806E: mov dword ptr [0x42023068], edx */
   3078     edx = MEM32(eax + 0x4); /* 0x42008074: mov edx, dword ptr [eax + 4] */
   3079     MEM32(0x4202306C) = edx; /* 0x42008077: mov dword ptr [0x4202306c], edx */
   3080     eax = MEM32(eax + 0x8); /* 0x4200807D: mov eax, dword ptr [eax + 8] */
   3081     MEM32(0x42023070) = eax; /* 0x42008080: mov dword ptr [0x42023070], eax */
   3082     goto L_420080F8; /* 0x42008085: jmp 0x420080f8 */
   3083 L_42008087:
   3084     eax = ecx; /* 0x42008087: mov eax, ecx */
   3085     ebx = MEM32(eax); /* 0x42008089: mov ebx, dword ptr [eax] */
   3086     MEM32(0x42023068) = ebx; /* 0x4200808B: mov dword ptr [0x42023068], ebx */
   3087     fp_push(*(float*)&MEM32(0x42023068)); /* 0x42008091: fld dword ptr [0x42023068] */
   3088     ebx = MEM32(eax + 0x4); /* 0x42008097: mov ebx, dword ptr [eax + 4] */
   3089     _st[0] *= _st[1]; /* 0x4200809A: fmul st(1) */
   3090     MEM32(0x4202306C) = ebx; /* 0x4200809C: mov dword ptr [0x4202306c], ebx */
   3091     eax = MEM32(eax + 0x8); /* 0x420080A2: mov eax, dword ptr [eax + 8] */
   3092     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023068) = _v; } /* 0x420080A5: fstp dword ptr [0x42023068] */
   3093     MEM32(0x42023070) = eax; /* 0x420080AB: mov dword ptr [0x42023070], eax */
   3094     fp_push(*(float*)&MEM32(0x4202306C)); /* 0x420080B0: fld dword ptr [0x4202306c] */
   3095     _st[0] *= _st[1]; /* 0x420080B6: fmul st(1) */
   3096     { float _v = (float)fp_pop(); *(float*)ADDR(0x4202306C) = _v; } /* 0x420080B8: fstp dword ptr [0x4202306c] */
   3097     fp_push(*(float*)&MEM32(0x42023070)); /* 0x420080BE: fld dword ptr [0x42023070] */
   3098     _st[0] *= _st[1]; /* 0x420080C4: fmul st(1) */
   3099     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023070) = _v; } /* 0x420080C6: fstp dword ptr [0x42023070] */
   3100     fp_push(*(float*)&MEM32(0x42023068)); /* 0x420080CC: fld dword ptr [0x42023068] */
   3101     _st[0] += (double)*(float*)ADDR(edx); /* 0x420080D2: fadd dword ptr [edx] */
   3102     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023068) = _v; } /* 0x420080D4: fstp dword ptr [0x42023068] */
   3103     fp_push(*(float*)&MEM32(0x4202306C)); /* 0x420080DA: fld dword ptr [0x4202306c] */
   3104     _st[0] += (double)*(float*)ADDR(edx + 0x4); /* 0x420080E0: fadd dword ptr [edx + 4] */
   3105     { float _v = (float)fp_pop(); *(float*)ADDR(0x4202306C) = _v; } /* 0x420080E3: fstp dword ptr [0x4202306c] */
   3106     fp_push(*(float*)&MEM32(0x42023070)); /* 0x420080E9: fld dword ptr [0x42023070] */
   3107     _st[0] += (double)*(float*)ADDR(edx + 0x8); /* 0x420080EF: fadd dword ptr [edx + 8] */
   3108     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023070) = _v; } /* 0x420080F2: fstp dword ptr [0x42023070] */
   3109 L_420080F8:
   3110     ebx = MEM32(ebp + 0x8); /* 0x420080F8: mov ebx, dword ptr [ebp + 8] */
   3111     fp_push(*(float*)&MEM32(ebx)); /* 0x420080FB: fld dword ptr [ebx] */
   3112     _st[0] -= (double)*(float*)ADDR(0x42023068); /* 0x420080FD: fsub dword ptr [0x42023068] */
   3113     fp_push(*(float*)&MEM32(ebx + 0x8)); /* 0x42008103: fld dword ptr [ebx + 8] */
   3114     _st[0] -= (double)*(float*)ADDR(0x42023070); /* 0x42008106: fsub dword ptr [0x42023070] */
   3115     fp_push(_st[0]); /* 0x4200810C: fld st(0) */
   3116     _st[0] *= _st[1]; /* 0x4200810E: fmul st(1) */
   3117     fp_push(_st[2]); /* 0x42008110: fld st(2) */
   3118     _st[0] *= _st[3]; /* 0x42008112: fmul st(3) */
   3119     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008114: faddp st(1) */
   3120     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x42008116: fstp st(2) */
   3121     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008118: fstp st(0) */
   3122     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x4200811A: fcom dword ptr [ebp - 4] */
   3123     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200811D: fnstsw ax */
   3124     /* test HI8(eax), 1 */ /* 0x4200811F: test ah, 1 */
   3125     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3126     _cf = 0;
   3127     _flag_k = FK_NARROW(FK_TEST, 24);
   3128     if (TEST_Z(_flag_a, _flag_b)) goto L_42008136; /* 0x42008122: je 0x42008136 */
   3129 L_42008124:
   3130     edx = MEM32(ebp + 0x14); /* 0x42008124: mov edx, dword ptr [ebp + 0x14] */
   3131     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42008127: fstp dword ptr [ebp - 4] */
   3132     eax = MEM32(ebp + 0x10); /* 0x4200812A: mov eax, dword ptr [ebp + 0x10] */
   3133     MEM32(edx) = esi; /* 0x4200812D: mov dword ptr [edx], esi */
   3134     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x4200812F: fstp dword ptr [eax] */
   3135     MEM32(ebp + (-0xC)) = ecx; /* 0x42008131: mov dword ptr [ebp - 0xc], ecx */
   3136     goto L_4200813A; /* 0x42008134: jmp 0x4200813a */
   3137 L_42008136:
   3138     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008136: fstp st(0) */
   3139     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008138: fstp st(0) */
   3140 L_4200813A:
   3141     eax = MEM32(ebp + (-0x10)); /* 0x4200813A: mov eax, dword ptr [ebp - 0x10] */
   3142     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   3143     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3144     ecx = ecx + 0x10u; /* 0x4200813D: add ecx, 0x10 */
   3145     _flag_k = FK_ADD;
   3146     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   3147     esi = esi + 1; /* 0x42008140: inc esi */
   3148     _flag_k = FK_INC;
   3149     /* cmp ecx, eax */ /* 0x42008141: cmp ecx, eax */
   3150     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3152     _flag_k = FK_CMP;
   3153     edx = edi; /* 0x42008143: mov edx, edi */
   3154     RECOMP_BACKEDGE();
   3155     if (CMP_B(_flag_a, _flag_b)) goto L_42007FEE; /* 0x42008145: jb 0x42007fee */
   3156 L_4200814B:
   3157     eax = MEM32(ebp + (-0xC)); /* 0x4200814B: mov eax, dword ptr [ebp - 0xc] */
   3158     edx = MEM32(eax); /* 0x4200814E: mov edx, dword ptr [eax] */
   3159     ecx = MEM32(ebp + 0xC); /* 0x42008150: mov ecx, dword ptr [ebp + 0xc] */
   3160     MEM32(ecx) = edx; /* 0x42008153: mov dword ptr [ecx], edx */
   3161     edx = MEM32(eax + 0x4); /* 0x42008155: mov edx, dword ptr [eax + 4] */
   3162     MEM32(ecx + 0x4) = edx; /* 0x42008158: mov dword ptr [ecx + 4], edx */
   3163     eax = MEM32(eax + 0x8); /* 0x4200815B: mov eax, dword ptr [eax + 8] */
   3164     MEM32(ecx + 0x8) = eax; /* 0x4200815E: mov dword ptr [ecx + 8], eax */
   3165     ecx = MEM32(ebp + (-0x14)); /* 0x42008161: mov ecx, dword ptr [ebp - 0x14] */
   3166     fp_push(*(float*)&MEM32(ecx + 0x24)); /* 0x42008164: fld dword ptr [ecx + 0x24] */
   3167     edi = POP32_VAL(esp); /* 0x42008167: pop edi */
   3168     fp_push(_st[0]); /* 0x42008168: fld st(0) */
   3169     esi = POP32_VAL(esp); /* 0x4200816A: pop esi */
   3170     _st[0] *= _st[1]; /* 0x4200816B: fmul st(1) */
   3171     ebx = POP32_VAL(esp); /* 0x4200816D: pop ebx */
   3172     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x4200816E: fld dword ptr [ebp - 4] */
   3173     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008171: fcompp  */
   3174     fp_pop(); fp_pop();
   3175     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008173: fnstsw ax */
   3176     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008175: fstp st(0) */
   3177     /* test HI8(eax), 1 */ /* 0x42008177: test ah, 1 */
   3178     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3179     _cf = 0;
   3180     _flag_k = FK_NARROW(FK_TEST, 24);
   3181     if (TEST_Z(_flag_a, _flag_b)) goto L_42008187; /* 0x4200817A: je 0x42008187 */
   3182 L_4200817C:
   3183     eax = 1; /* 0x4200817C: mov eax, 1 */
   3184     esp = ebp; /* 0x42008181: mov esp, ebp */
   3185     ebp = POP32_VAL(esp); /* 0x42008183: pop ebp */
   3186     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42008184: ret 0x10 */
   3187 L_42008187:
   3188     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3189     eax = 0; /* 0x42008187: xor eax, eax */
   3190     _cf = 0;
   3191     _flag_k = FK_TEST;
   3192     esp = ebp; /* 0x42008189: mov esp, ebp */
   3193     ebp = POP32_VAL(esp); /* 0x4200818B: pop ebp */
   3194     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200818C: ret 0x10 */
   3195     RECOMP_REGS_OUT();
   3196 }
   3197 
   3198 void sub_42007FEE(void) {
   3199     int _fpu_cmp = 0;
   3200     uint32_t _cf = 0;
   3201     int _df = 1;
   3202     uint32_t _flag_k = FK_NONE;
   3203     uint32_t _flag_a = 0, _flag_b = 0;
   3204     uint32_t _itail_tgt = 0;
   3205     RECOMP_REGS_LOCALS
   3206     RECOMP_ENTER(0x42007FEEu);
   3207 
   3208 L_42007FEE:
   3209     eax = MEM32(ecx + 0xC); /* 0x42007FEE: mov eax, dword ptr [ecx + 0xc] */
   3210     MEM32(ebp + (-0x8)) = eax; /* 0x42007FF1: mov dword ptr [ebp - 8], eax */
   3211     eax = MEM32(ebx); /* 0x42007FF4: mov eax, dword ptr [ebx] */
   3212     MEM32(ebp + (-0x20)) = eax; /* 0x42007FF6: mov dword ptr [ebp - 0x20], eax */
   3213     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x42007FF9: fld dword ptr [ebp - 0x20] */
   3214     _st[0] -= (double)*(float*)ADDR(edx); /* 0x42007FFC: fsub dword ptr [edx] */
   3215     eax = MEM32(ebx + 0x4); /* 0x42007FFE: mov eax, dword ptr [ebx + 4] */
   3216     MEM32(ebp + (-0x1C)) = eax; /* 0x42008001: mov dword ptr [ebp - 0x1c], eax */
   3217     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42008004: fld dword ptr [ebp - 0x1c] */
   3218     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x42008007: fsub dword ptr [edx + 4] */
   3219     eax = MEM32(ebx + 0x8); /* 0x4200800A: mov eax, dword ptr [ebx + 8] */
   3220     MEM32(ebp + (-0x18)) = eax; /* 0x4200800D: mov dword ptr [ebp - 0x18], eax */
   3221     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42008010: fld dword ptr [ebp - 0x18] */
   3222     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x42008013: fsub dword ptr [edx + 8] */
   3223     edi = edx + 0xC; /* 0x42008016: lea edi, [edx + 0xc] */
   3224     _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x42008019: fmul dword ptr [ecx + 8] */
   3225     fp_xch(1); /* 0x4200801C: fxch st(1) */
   3226     _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x4200801E: fmul dword ptr [ecx + 4] */
   3227     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008021: faddp st(1) */
   3228     fp_xch(1); /* 0x42008023: fxch st(1) */
   3229     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x42008025: fmul dword ptr [ecx] */
   3230     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008027: faddp st(1) */
   3231     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42008029: fcom qword ptr [0x420180d8] */
   3232     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200802F: fnstsw ax */
   3233     /* test HI8(eax), 1 */ /* 0x42008031: test ah, 1 */
   3234     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3235     _cf = 0;
   3236     _flag_k = FK_NARROW(FK_TEST, 24);
   3237     if (TEST_Z(_flag_a, _flag_b)) goto L_4200805B; /* 0x42008034: je 0x4200805b */
   3238 L_42008036:
   3239     eax = MEM32(edx); /* 0x42008036: mov eax, dword ptr [edx] */
   3240     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008038: fstp st(0) */
   3241     fp_push(*(float*)&MEM32(0x420180F8)); /* 0x4200803A: fld dword ptr [0x420180f8] */
   3242     MEM32(0x42023068) = eax; /* 0x42008040: mov dword ptr [0x42023068], eax */
   3243     eax = MEM32(edx + 0x4); /* 0x42008045: mov eax, dword ptr [edx + 4] */
   3244     MEM32(0x4202306C) = eax; /* 0x42008048: mov dword ptr [0x4202306c], eax */
   3245     edx = MEM32(edx + 0x8); /* 0x4200804D: mov edx, dword ptr [edx + 8] */
   3246     MEM32(0x42023070) = edx; /* 0x42008050: mov dword ptr [0x42023070], edx */
   3247     goto L_420080F8; /* 0x42008056: jmp 0x420080f8 */
   3248 L_4200805B:
   3249     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x4200805B: fcom dword ptr [ebp - 8] */
   3250     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200805E: fnstsw ax */
   3251     /* test HI8(eax), 0x41u */ /* 0x42008060: test ah, 0x41 */
   3252     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3253     _cf = 0;
   3254     _flag_k = FK_NARROW(FK_TEST, 24);
   3255     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008087; /* 0x42008063: jne 0x42008087 */
   3256 L_42008065:
   3257     eax = edi; /* 0x42008065: mov eax, edi */
   3258     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008067: fstp st(0) */
   3259     edx = MEM32(eax); /* 0x42008069: mov edx, dword ptr [eax] */
   3260     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x4200806B: fld dword ptr [ebp - 8] */
   3261     MEM32(0x42023068) = edx; /* 0x4200806E: mov dword ptr [0x42023068], edx */
   3262     edx = MEM32(eax + 0x4); /* 0x42008074: mov edx, dword ptr [eax + 4] */
   3263     MEM32(0x4202306C) = edx; /* 0x42008077: mov dword ptr [0x4202306c], edx */
   3264     eax = MEM32(eax + 0x8); /* 0x4200807D: mov eax, dword ptr [eax + 8] */
   3265     MEM32(0x42023070) = eax; /* 0x42008080: mov dword ptr [0x42023070], eax */
   3266     goto L_420080F8; /* 0x42008085: jmp 0x420080f8 */
   3267 L_42008087:
   3268     eax = ecx; /* 0x42008087: mov eax, ecx */
   3269     ebx = MEM32(eax); /* 0x42008089: mov ebx, dword ptr [eax] */
   3270     MEM32(0x42023068) = ebx; /* 0x4200808B: mov dword ptr [0x42023068], ebx */
   3271     fp_push(*(float*)&MEM32(0x42023068)); /* 0x42008091: fld dword ptr [0x42023068] */
   3272     ebx = MEM32(eax + 0x4); /* 0x42008097: mov ebx, dword ptr [eax + 4] */
   3273     _st[0] *= _st[1]; /* 0x4200809A: fmul st(1) */
   3274     MEM32(0x4202306C) = ebx; /* 0x4200809C: mov dword ptr [0x4202306c], ebx */
   3275     eax = MEM32(eax + 0x8); /* 0x420080A2: mov eax, dword ptr [eax + 8] */
   3276     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023068) = _v; } /* 0x420080A5: fstp dword ptr [0x42023068] */
   3277     MEM32(0x42023070) = eax; /* 0x420080AB: mov dword ptr [0x42023070], eax */
   3278     fp_push(*(float*)&MEM32(0x4202306C)); /* 0x420080B0: fld dword ptr [0x4202306c] */
   3279     _st[0] *= _st[1]; /* 0x420080B6: fmul st(1) */
   3280     { float _v = (float)fp_pop(); *(float*)ADDR(0x4202306C) = _v; } /* 0x420080B8: fstp dword ptr [0x4202306c] */
   3281     fp_push(*(float*)&MEM32(0x42023070)); /* 0x420080BE: fld dword ptr [0x42023070] */
   3282     _st[0] *= _st[1]; /* 0x420080C4: fmul st(1) */
   3283     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023070) = _v; } /* 0x420080C6: fstp dword ptr [0x42023070] */
   3284     fp_push(*(float*)&MEM32(0x42023068)); /* 0x420080CC: fld dword ptr [0x42023068] */
   3285     _st[0] += (double)*(float*)ADDR(edx); /* 0x420080D2: fadd dword ptr [edx] */
   3286     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023068) = _v; } /* 0x420080D4: fstp dword ptr [0x42023068] */
   3287     fp_push(*(float*)&MEM32(0x4202306C)); /* 0x420080DA: fld dword ptr [0x4202306c] */
   3288     _st[0] += (double)*(float*)ADDR(edx + 0x4); /* 0x420080E0: fadd dword ptr [edx + 4] */
   3289     { float _v = (float)fp_pop(); *(float*)ADDR(0x4202306C) = _v; } /* 0x420080E3: fstp dword ptr [0x4202306c] */
   3290     fp_push(*(float*)&MEM32(0x42023070)); /* 0x420080E9: fld dword ptr [0x42023070] */
   3291     _st[0] += (double)*(float*)ADDR(edx + 0x8); /* 0x420080EF: fadd dword ptr [edx + 8] */
   3292     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023070) = _v; } /* 0x420080F2: fstp dword ptr [0x42023070] */
   3293 L_420080F8:
   3294     ebx = MEM32(ebp + 0x8); /* 0x420080F8: mov ebx, dword ptr [ebp + 8] */
   3295     fp_push(*(float*)&MEM32(ebx)); /* 0x420080FB: fld dword ptr [ebx] */
   3296     _st[0] -= (double)*(float*)ADDR(0x42023068); /* 0x420080FD: fsub dword ptr [0x42023068] */
   3297     fp_push(*(float*)&MEM32(ebx + 0x8)); /* 0x42008103: fld dword ptr [ebx + 8] */
   3298     _st[0] -= (double)*(float*)ADDR(0x42023070); /* 0x42008106: fsub dword ptr [0x42023070] */
   3299     fp_push(_st[0]); /* 0x4200810C: fld st(0) */
   3300     _st[0] *= _st[1]; /* 0x4200810E: fmul st(1) */
   3301     fp_push(_st[2]); /* 0x42008110: fld st(2) */
   3302     _st[0] *= _st[3]; /* 0x42008112: fmul st(3) */
   3303     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008114: faddp st(1) */
   3304     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x42008116: fstp st(2) */
   3305     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008118: fstp st(0) */
   3306     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x4200811A: fcom dword ptr [ebp - 4] */
   3307     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200811D: fnstsw ax */
   3308     /* test HI8(eax), 1 */ /* 0x4200811F: test ah, 1 */
   3309     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3310     _cf = 0;
   3311     _flag_k = FK_NARROW(FK_TEST, 24);
   3312     if (TEST_Z(_flag_a, _flag_b)) goto L_42008136; /* 0x42008122: je 0x42008136 */
   3313 L_42008124:
   3314     edx = MEM32(ebp + 0x14); /* 0x42008124: mov edx, dword ptr [ebp + 0x14] */
   3315     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42008127: fstp dword ptr [ebp - 4] */
   3316     eax = MEM32(ebp + 0x10); /* 0x4200812A: mov eax, dword ptr [ebp + 0x10] */
   3317     MEM32(edx) = esi; /* 0x4200812D: mov dword ptr [edx], esi */
   3318     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x4200812F: fstp dword ptr [eax] */
   3319     MEM32(ebp + (-0xC)) = ecx; /* 0x42008131: mov dword ptr [ebp - 0xc], ecx */
   3320     goto L_4200813A; /* 0x42008134: jmp 0x4200813a */
   3321 L_42008136:
   3322     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008136: fstp st(0) */
   3323     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008138: fstp st(0) */
   3324 L_4200813A:
   3325     eax = MEM32(ebp + (-0x10)); /* 0x4200813A: mov eax, dword ptr [ebp - 0x10] */
   3326     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   3327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3328     ecx = ecx + 0x10u; /* 0x4200813D: add ecx, 0x10 */
   3329     _flag_k = FK_ADD;
   3330     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   3331     esi = esi + 1; /* 0x42008140: inc esi */
   3332     _flag_k = FK_INC;
   3333     /* cmp ecx, eax */ /* 0x42008141: cmp ecx, eax */
   3334     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3335     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3336     _flag_k = FK_CMP;
   3337     edx = edi; /* 0x42008143: mov edx, edi */
   3338     RECOMP_BACKEDGE();
   3339     if (CMP_B(_flag_a, _flag_b)) goto L_42007FEE; /* 0x42008145: jb 0x42007fee */
   3340 L_4200814B:
   3341     eax = MEM32(ebp + (-0xC)); /* 0x4200814B: mov eax, dword ptr [ebp - 0xc] */
   3342     edx = MEM32(eax); /* 0x4200814E: mov edx, dword ptr [eax] */
   3343     ecx = MEM32(ebp + 0xC); /* 0x42008150: mov ecx, dword ptr [ebp + 0xc] */
   3344     MEM32(ecx) = edx; /* 0x42008153: mov dword ptr [ecx], edx */
   3345     edx = MEM32(eax + 0x4); /* 0x42008155: mov edx, dword ptr [eax + 4] */
   3346     MEM32(ecx + 0x4) = edx; /* 0x42008158: mov dword ptr [ecx + 4], edx */
   3347     eax = MEM32(eax + 0x8); /* 0x4200815B: mov eax, dword ptr [eax + 8] */
   3348     MEM32(ecx + 0x8) = eax; /* 0x4200815E: mov dword ptr [ecx + 8], eax */
   3349     ecx = MEM32(ebp + (-0x14)); /* 0x42008161: mov ecx, dword ptr [ebp - 0x14] */
   3350     fp_push(*(float*)&MEM32(ecx + 0x24)); /* 0x42008164: fld dword ptr [ecx + 0x24] */
   3351     edi = POP32_VAL(esp); /* 0x42008167: pop edi */
   3352     fp_push(_st[0]); /* 0x42008168: fld st(0) */
   3353     esi = POP32_VAL(esp); /* 0x4200816A: pop esi */
   3354     _st[0] *= _st[1]; /* 0x4200816B: fmul st(1) */
   3355     ebx = POP32_VAL(esp); /* 0x4200816D: pop ebx */
   3356     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x4200816E: fld dword ptr [ebp - 4] */
   3357     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008171: fcompp  */
   3358     fp_pop(); fp_pop();
   3359     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008173: fnstsw ax */
   3360     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008175: fstp st(0) */
   3361     /* test HI8(eax), 1 */ /* 0x42008177: test ah, 1 */
   3362     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3363     _cf = 0;
   3364     _flag_k = FK_NARROW(FK_TEST, 24);
   3365     if (TEST_Z(_flag_a, _flag_b)) goto L_42008187; /* 0x4200817A: je 0x42008187 */
   3366 L_4200817C:
   3367     eax = 1; /* 0x4200817C: mov eax, 1 */
   3368     esp = ebp; /* 0x42008181: mov esp, ebp */
   3369     ebp = POP32_VAL(esp); /* 0x42008183: pop ebp */
   3370     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42008184: ret 0x10 */
   3371 L_42008187:
   3372     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3373     eax = 0; /* 0x42008187: xor eax, eax */
   3374     _cf = 0;
   3375     _flag_k = FK_TEST;
   3376     esp = ebp; /* 0x42008189: mov esp, ebp */
   3377     ebp = POP32_VAL(esp); /* 0x4200818B: pop ebp */
   3378     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200818C: ret 0x10 */
   3379     RECOMP_REGS_OUT();
   3380 }
   3381 
   3382 void sub_420080F8(void) {
   3383     int _fpu_cmp = 0;
   3384     uint32_t _cf = 0;
   3385     int _df = 1;
   3386     uint32_t _flag_k = FK_NONE;
   3387     uint32_t _flag_a = 0, _flag_b = 0;
   3388     uint32_t _itail_tgt = 0;
   3389     RECOMP_REGS_LOCALS
   3390     RECOMP_ENTER(0x420080F8u);
   3391 
   3392     goto L_420080F8;
   3393 L_42007FEE:
   3394     eax = MEM32(ecx + 0xC); /* 0x42007FEE: mov eax, dword ptr [ecx + 0xc] */
   3395     MEM32(ebp + (-0x8)) = eax; /* 0x42007FF1: mov dword ptr [ebp - 8], eax */
   3396     eax = MEM32(ebx); /* 0x42007FF4: mov eax, dword ptr [ebx] */
   3397     MEM32(ebp + (-0x20)) = eax; /* 0x42007FF6: mov dword ptr [ebp - 0x20], eax */
   3398     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x42007FF9: fld dword ptr [ebp - 0x20] */
   3399     _st[0] -= (double)*(float*)ADDR(edx); /* 0x42007FFC: fsub dword ptr [edx] */
   3400     eax = MEM32(ebx + 0x4); /* 0x42007FFE: mov eax, dword ptr [ebx + 4] */
   3401     MEM32(ebp + (-0x1C)) = eax; /* 0x42008001: mov dword ptr [ebp - 0x1c], eax */
   3402     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42008004: fld dword ptr [ebp - 0x1c] */
   3403     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x42008007: fsub dword ptr [edx + 4] */
   3404     eax = MEM32(ebx + 0x8); /* 0x4200800A: mov eax, dword ptr [ebx + 8] */
   3405     MEM32(ebp + (-0x18)) = eax; /* 0x4200800D: mov dword ptr [ebp - 0x18], eax */
   3406     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42008010: fld dword ptr [ebp - 0x18] */
   3407     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x42008013: fsub dword ptr [edx + 8] */
   3408     edi = edx + 0xC; /* 0x42008016: lea edi, [edx + 0xc] */
   3409     _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x42008019: fmul dword ptr [ecx + 8] */
   3410     fp_xch(1); /* 0x4200801C: fxch st(1) */
   3411     _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x4200801E: fmul dword ptr [ecx + 4] */
   3412     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008021: faddp st(1) */
   3413     fp_xch(1); /* 0x42008023: fxch st(1) */
   3414     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x42008025: fmul dword ptr [ecx] */
   3415     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008027: faddp st(1) */
   3416     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42008029: fcom qword ptr [0x420180d8] */
   3417     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200802F: fnstsw ax */
   3418     /* test HI8(eax), 1 */ /* 0x42008031: test ah, 1 */
   3419     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3420     _cf = 0;
   3421     _flag_k = FK_NARROW(FK_TEST, 24);
   3422     if (TEST_Z(_flag_a, _flag_b)) goto L_4200805B; /* 0x42008034: je 0x4200805b */
   3423 L_42008036:
   3424     eax = MEM32(edx); /* 0x42008036: mov eax, dword ptr [edx] */
   3425     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008038: fstp st(0) */
   3426     fp_push(*(float*)&MEM32(0x420180F8)); /* 0x4200803A: fld dword ptr [0x420180f8] */
   3427     MEM32(0x42023068) = eax; /* 0x42008040: mov dword ptr [0x42023068], eax */
   3428     eax = MEM32(edx + 0x4); /* 0x42008045: mov eax, dword ptr [edx + 4] */
   3429     MEM32(0x4202306C) = eax; /* 0x42008048: mov dword ptr [0x4202306c], eax */
   3430     edx = MEM32(edx + 0x8); /* 0x4200804D: mov edx, dword ptr [edx + 8] */
   3431     MEM32(0x42023070) = edx; /* 0x42008050: mov dword ptr [0x42023070], edx */
   3432     goto L_420080F8; /* 0x42008056: jmp 0x420080f8 */
   3433 L_4200805B:
   3434     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x4200805B: fcom dword ptr [ebp - 8] */
   3435     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200805E: fnstsw ax */
   3436     /* test HI8(eax), 0x41u */ /* 0x42008060: test ah, 0x41 */
   3437     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3438     _cf = 0;
   3439     _flag_k = FK_NARROW(FK_TEST, 24);
   3440     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008087; /* 0x42008063: jne 0x42008087 */
   3441 L_42008065:
   3442     eax = edi; /* 0x42008065: mov eax, edi */
   3443     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008067: fstp st(0) */
   3444     edx = MEM32(eax); /* 0x42008069: mov edx, dword ptr [eax] */
   3445     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x4200806B: fld dword ptr [ebp - 8] */
   3446     MEM32(0x42023068) = edx; /* 0x4200806E: mov dword ptr [0x42023068], edx */
   3447     edx = MEM32(eax + 0x4); /* 0x42008074: mov edx, dword ptr [eax + 4] */
   3448     MEM32(0x4202306C) = edx; /* 0x42008077: mov dword ptr [0x4202306c], edx */
   3449     eax = MEM32(eax + 0x8); /* 0x4200807D: mov eax, dword ptr [eax + 8] */
   3450     MEM32(0x42023070) = eax; /* 0x42008080: mov dword ptr [0x42023070], eax */
   3451     goto L_420080F8; /* 0x42008085: jmp 0x420080f8 */
   3452 L_42008087:
   3453     eax = ecx; /* 0x42008087: mov eax, ecx */
   3454     ebx = MEM32(eax); /* 0x42008089: mov ebx, dword ptr [eax] */
   3455     MEM32(0x42023068) = ebx; /* 0x4200808B: mov dword ptr [0x42023068], ebx */
   3456     fp_push(*(float*)&MEM32(0x42023068)); /* 0x42008091: fld dword ptr [0x42023068] */
   3457     ebx = MEM32(eax + 0x4); /* 0x42008097: mov ebx, dword ptr [eax + 4] */
   3458     _st[0] *= _st[1]; /* 0x4200809A: fmul st(1) */
   3459     MEM32(0x4202306C) = ebx; /* 0x4200809C: mov dword ptr [0x4202306c], ebx */
   3460     eax = MEM32(eax + 0x8); /* 0x420080A2: mov eax, dword ptr [eax + 8] */
   3461     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023068) = _v; } /* 0x420080A5: fstp dword ptr [0x42023068] */
   3462     MEM32(0x42023070) = eax; /* 0x420080AB: mov dword ptr [0x42023070], eax */
   3463     fp_push(*(float*)&MEM32(0x4202306C)); /* 0x420080B0: fld dword ptr [0x4202306c] */
   3464     _st[0] *= _st[1]; /* 0x420080B6: fmul st(1) */
   3465     { float _v = (float)fp_pop(); *(float*)ADDR(0x4202306C) = _v; } /* 0x420080B8: fstp dword ptr [0x4202306c] */
   3466     fp_push(*(float*)&MEM32(0x42023070)); /* 0x420080BE: fld dword ptr [0x42023070] */
   3467     _st[0] *= _st[1]; /* 0x420080C4: fmul st(1) */
   3468     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023070) = _v; } /* 0x420080C6: fstp dword ptr [0x42023070] */
   3469     fp_push(*(float*)&MEM32(0x42023068)); /* 0x420080CC: fld dword ptr [0x42023068] */
   3470     _st[0] += (double)*(float*)ADDR(edx); /* 0x420080D2: fadd dword ptr [edx] */
   3471     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023068) = _v; } /* 0x420080D4: fstp dword ptr [0x42023068] */
   3472     fp_push(*(float*)&MEM32(0x4202306C)); /* 0x420080DA: fld dword ptr [0x4202306c] */
   3473     _st[0] += (double)*(float*)ADDR(edx + 0x4); /* 0x420080E0: fadd dword ptr [edx + 4] */
   3474     { float _v = (float)fp_pop(); *(float*)ADDR(0x4202306C) = _v; } /* 0x420080E3: fstp dword ptr [0x4202306c] */
   3475     fp_push(*(float*)&MEM32(0x42023070)); /* 0x420080E9: fld dword ptr [0x42023070] */
   3476     _st[0] += (double)*(float*)ADDR(edx + 0x8); /* 0x420080EF: fadd dword ptr [edx + 8] */
   3477     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023070) = _v; } /* 0x420080F2: fstp dword ptr [0x42023070] */
   3478 L_420080F8:
   3479     ebx = MEM32(ebp + 0x8); /* 0x420080F8: mov ebx, dword ptr [ebp + 8] */
   3480     fp_push(*(float*)&MEM32(ebx)); /* 0x420080FB: fld dword ptr [ebx] */
   3481     _st[0] -= (double)*(float*)ADDR(0x42023068); /* 0x420080FD: fsub dword ptr [0x42023068] */
   3482     fp_push(*(float*)&MEM32(ebx + 0x8)); /* 0x42008103: fld dword ptr [ebx + 8] */
   3483     _st[0] -= (double)*(float*)ADDR(0x42023070); /* 0x42008106: fsub dword ptr [0x42023070] */
   3484     fp_push(_st[0]); /* 0x4200810C: fld st(0) */
   3485     _st[0] *= _st[1]; /* 0x4200810E: fmul st(1) */
   3486     fp_push(_st[2]); /* 0x42008110: fld st(2) */
   3487     _st[0] *= _st[3]; /* 0x42008112: fmul st(3) */
   3488     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008114: faddp st(1) */
   3489     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x42008116: fstp st(2) */
   3490     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008118: fstp st(0) */
   3491     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x4200811A: fcom dword ptr [ebp - 4] */
   3492     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200811D: fnstsw ax */
   3493     /* test HI8(eax), 1 */ /* 0x4200811F: test ah, 1 */
   3494     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3495     _cf = 0;
   3496     _flag_k = FK_NARROW(FK_TEST, 24);
   3497     if (TEST_Z(_flag_a, _flag_b)) goto L_42008136; /* 0x42008122: je 0x42008136 */
   3498 L_42008124:
   3499     edx = MEM32(ebp + 0x14); /* 0x42008124: mov edx, dword ptr [ebp + 0x14] */
   3500     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42008127: fstp dword ptr [ebp - 4] */
   3501     eax = MEM32(ebp + 0x10); /* 0x4200812A: mov eax, dword ptr [ebp + 0x10] */
   3502     MEM32(edx) = esi; /* 0x4200812D: mov dword ptr [edx], esi */
   3503     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x4200812F: fstp dword ptr [eax] */
   3504     MEM32(ebp + (-0xC)) = ecx; /* 0x42008131: mov dword ptr [ebp - 0xc], ecx */
   3505     goto L_4200813A; /* 0x42008134: jmp 0x4200813a */
   3506 L_42008136:
   3507     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008136: fstp st(0) */
   3508     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008138: fstp st(0) */
   3509 L_4200813A:
   3510     eax = MEM32(ebp + (-0x10)); /* 0x4200813A: mov eax, dword ptr [ebp - 0x10] */
   3511     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   3512     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3513     ecx = ecx + 0x10u; /* 0x4200813D: add ecx, 0x10 */
   3514     _flag_k = FK_ADD;
   3515     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   3516     esi = esi + 1; /* 0x42008140: inc esi */
   3517     _flag_k = FK_INC;
   3518     /* cmp ecx, eax */ /* 0x42008141: cmp ecx, eax */
   3519     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3521     _flag_k = FK_CMP;
   3522     edx = edi; /* 0x42008143: mov edx, edi */
   3523     RECOMP_BACKEDGE();
   3524     if (CMP_B(_flag_a, _flag_b)) goto L_42007FEE; /* 0x42008145: jb 0x42007fee */
   3525 L_4200814B:
   3526     eax = MEM32(ebp + (-0xC)); /* 0x4200814B: mov eax, dword ptr [ebp - 0xc] */
   3527     edx = MEM32(eax); /* 0x4200814E: mov edx, dword ptr [eax] */
   3528     ecx = MEM32(ebp + 0xC); /* 0x42008150: mov ecx, dword ptr [ebp + 0xc] */
   3529     MEM32(ecx) = edx; /* 0x42008153: mov dword ptr [ecx], edx */
   3530     edx = MEM32(eax + 0x4); /* 0x42008155: mov edx, dword ptr [eax + 4] */
   3531     MEM32(ecx + 0x4) = edx; /* 0x42008158: mov dword ptr [ecx + 4], edx */
   3532     eax = MEM32(eax + 0x8); /* 0x4200815B: mov eax, dword ptr [eax + 8] */
   3533     MEM32(ecx + 0x8) = eax; /* 0x4200815E: mov dword ptr [ecx + 8], eax */
   3534     ecx = MEM32(ebp + (-0x14)); /* 0x42008161: mov ecx, dword ptr [ebp - 0x14] */
   3535     fp_push(*(float*)&MEM32(ecx + 0x24)); /* 0x42008164: fld dword ptr [ecx + 0x24] */
   3536     edi = POP32_VAL(esp); /* 0x42008167: pop edi */
   3537     fp_push(_st[0]); /* 0x42008168: fld st(0) */
   3538     esi = POP32_VAL(esp); /* 0x4200816A: pop esi */
   3539     _st[0] *= _st[1]; /* 0x4200816B: fmul st(1) */
   3540     ebx = POP32_VAL(esp); /* 0x4200816D: pop ebx */
   3541     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x4200816E: fld dword ptr [ebp - 4] */
   3542     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008171: fcompp  */
   3543     fp_pop(); fp_pop();
   3544     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008173: fnstsw ax */
   3545     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008175: fstp st(0) */
   3546     /* test HI8(eax), 1 */ /* 0x42008177: test ah, 1 */
   3547     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3548     _cf = 0;
   3549     _flag_k = FK_NARROW(FK_TEST, 24);
   3550     if (TEST_Z(_flag_a, _flag_b)) goto L_42008187; /* 0x4200817A: je 0x42008187 */
   3551 L_4200817C:
   3552     eax = 1; /* 0x4200817C: mov eax, 1 */
   3553     esp = ebp; /* 0x42008181: mov esp, ebp */
   3554     ebp = POP32_VAL(esp); /* 0x42008183: pop ebp */
   3555     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42008184: ret 0x10 */
   3556 L_42008187:
   3557     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3558     eax = 0; /* 0x42008187: xor eax, eax */
   3559     _cf = 0;
   3560     _flag_k = FK_TEST;
   3561     esp = ebp; /* 0x42008189: mov esp, ebp */
   3562     ebp = POP32_VAL(esp); /* 0x4200818B: pop ebp */
   3563     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200818C: ret 0x10 */
   3564     RECOMP_REGS_OUT();
   3565 }
   3566 
   3567 void sub_4200813A(void) {
   3568     int _fpu_cmp = 0;
   3569     uint32_t _cf = 0;
   3570     int _df = 1;
   3571     uint32_t _flag_k = FK_NONE;
   3572     uint32_t _flag_a = 0, _flag_b = 0;
   3573     uint32_t _itail_tgt = 0;
   3574     RECOMP_REGS_LOCALS
   3575     RECOMP_ENTER(0x4200813Au);
   3576 
   3577     goto L_4200813A;
   3578 L_42007FEE:
   3579     eax = MEM32(ecx + 0xC); /* 0x42007FEE: mov eax, dword ptr [ecx + 0xc] */
   3580     MEM32(ebp + (-0x8)) = eax; /* 0x42007FF1: mov dword ptr [ebp - 8], eax */
   3581     eax = MEM32(ebx); /* 0x42007FF4: mov eax, dword ptr [ebx] */
   3582     MEM32(ebp + (-0x20)) = eax; /* 0x42007FF6: mov dword ptr [ebp - 0x20], eax */
   3583     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x42007FF9: fld dword ptr [ebp - 0x20] */
   3584     _st[0] -= (double)*(float*)ADDR(edx); /* 0x42007FFC: fsub dword ptr [edx] */
   3585     eax = MEM32(ebx + 0x4); /* 0x42007FFE: mov eax, dword ptr [ebx + 4] */
   3586     MEM32(ebp + (-0x1C)) = eax; /* 0x42008001: mov dword ptr [ebp - 0x1c], eax */
   3587     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42008004: fld dword ptr [ebp - 0x1c] */
   3588     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x42008007: fsub dword ptr [edx + 4] */
   3589     eax = MEM32(ebx + 0x8); /* 0x4200800A: mov eax, dword ptr [ebx + 8] */
   3590     MEM32(ebp + (-0x18)) = eax; /* 0x4200800D: mov dword ptr [ebp - 0x18], eax */
   3591     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42008010: fld dword ptr [ebp - 0x18] */
   3592     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x42008013: fsub dword ptr [edx + 8] */
   3593     edi = edx + 0xC; /* 0x42008016: lea edi, [edx + 0xc] */
   3594     _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x42008019: fmul dword ptr [ecx + 8] */
   3595     fp_xch(1); /* 0x4200801C: fxch st(1) */
   3596     _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x4200801E: fmul dword ptr [ecx + 4] */
   3597     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008021: faddp st(1) */
   3598     fp_xch(1); /* 0x42008023: fxch st(1) */
   3599     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x42008025: fmul dword ptr [ecx] */
   3600     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008027: faddp st(1) */
   3601     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42008029: fcom qword ptr [0x420180d8] */
   3602     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200802F: fnstsw ax */
   3603     /* test HI8(eax), 1 */ /* 0x42008031: test ah, 1 */
   3604     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3605     _cf = 0;
   3606     _flag_k = FK_NARROW(FK_TEST, 24);
   3607     if (TEST_Z(_flag_a, _flag_b)) goto L_4200805B; /* 0x42008034: je 0x4200805b */
   3608 L_42008036:
   3609     eax = MEM32(edx); /* 0x42008036: mov eax, dword ptr [edx] */
   3610     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008038: fstp st(0) */
   3611     fp_push(*(float*)&MEM32(0x420180F8)); /* 0x4200803A: fld dword ptr [0x420180f8] */
   3612     MEM32(0x42023068) = eax; /* 0x42008040: mov dword ptr [0x42023068], eax */
   3613     eax = MEM32(edx + 0x4); /* 0x42008045: mov eax, dword ptr [edx + 4] */
   3614     MEM32(0x4202306C) = eax; /* 0x42008048: mov dword ptr [0x4202306c], eax */
   3615     edx = MEM32(edx + 0x8); /* 0x4200804D: mov edx, dword ptr [edx + 8] */
   3616     MEM32(0x42023070) = edx; /* 0x42008050: mov dword ptr [0x42023070], edx */
   3617     goto L_420080F8; /* 0x42008056: jmp 0x420080f8 */
   3618 L_4200805B:
   3619     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x4200805B: fcom dword ptr [ebp - 8] */
   3620     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200805E: fnstsw ax */
   3621     /* test HI8(eax), 0x41u */ /* 0x42008060: test ah, 0x41 */
   3622     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3623     _cf = 0;
   3624     _flag_k = FK_NARROW(FK_TEST, 24);
   3625     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008087; /* 0x42008063: jne 0x42008087 */
   3626 L_42008065:
   3627     eax = edi; /* 0x42008065: mov eax, edi */
   3628     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008067: fstp st(0) */
   3629     edx = MEM32(eax); /* 0x42008069: mov edx, dword ptr [eax] */
   3630     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x4200806B: fld dword ptr [ebp - 8] */
   3631     MEM32(0x42023068) = edx; /* 0x4200806E: mov dword ptr [0x42023068], edx */
   3632     edx = MEM32(eax + 0x4); /* 0x42008074: mov edx, dword ptr [eax + 4] */
   3633     MEM32(0x4202306C) = edx; /* 0x42008077: mov dword ptr [0x4202306c], edx */
   3634     eax = MEM32(eax + 0x8); /* 0x4200807D: mov eax, dword ptr [eax + 8] */
   3635     MEM32(0x42023070) = eax; /* 0x42008080: mov dword ptr [0x42023070], eax */
   3636     goto L_420080F8; /* 0x42008085: jmp 0x420080f8 */
   3637 L_42008087:
   3638     eax = ecx; /* 0x42008087: mov eax, ecx */
   3639     ebx = MEM32(eax); /* 0x42008089: mov ebx, dword ptr [eax] */
   3640     MEM32(0x42023068) = ebx; /* 0x4200808B: mov dword ptr [0x42023068], ebx */
   3641     fp_push(*(float*)&MEM32(0x42023068)); /* 0x42008091: fld dword ptr [0x42023068] */
   3642     ebx = MEM32(eax + 0x4); /* 0x42008097: mov ebx, dword ptr [eax + 4] */
   3643     _st[0] *= _st[1]; /* 0x4200809A: fmul st(1) */
   3644     MEM32(0x4202306C) = ebx; /* 0x4200809C: mov dword ptr [0x4202306c], ebx */
   3645     eax = MEM32(eax + 0x8); /* 0x420080A2: mov eax, dword ptr [eax + 8] */
   3646     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023068) = _v; } /* 0x420080A5: fstp dword ptr [0x42023068] */
   3647     MEM32(0x42023070) = eax; /* 0x420080AB: mov dword ptr [0x42023070], eax */
   3648     fp_push(*(float*)&MEM32(0x4202306C)); /* 0x420080B0: fld dword ptr [0x4202306c] */
   3649     _st[0] *= _st[1]; /* 0x420080B6: fmul st(1) */
   3650     { float _v = (float)fp_pop(); *(float*)ADDR(0x4202306C) = _v; } /* 0x420080B8: fstp dword ptr [0x4202306c] */
   3651     fp_push(*(float*)&MEM32(0x42023070)); /* 0x420080BE: fld dword ptr [0x42023070] */
   3652     _st[0] *= _st[1]; /* 0x420080C4: fmul st(1) */
   3653     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023070) = _v; } /* 0x420080C6: fstp dword ptr [0x42023070] */
   3654     fp_push(*(float*)&MEM32(0x42023068)); /* 0x420080CC: fld dword ptr [0x42023068] */
   3655     _st[0] += (double)*(float*)ADDR(edx); /* 0x420080D2: fadd dword ptr [edx] */
   3656     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023068) = _v; } /* 0x420080D4: fstp dword ptr [0x42023068] */
   3657     fp_push(*(float*)&MEM32(0x4202306C)); /* 0x420080DA: fld dword ptr [0x4202306c] */
   3658     _st[0] += (double)*(float*)ADDR(edx + 0x4); /* 0x420080E0: fadd dword ptr [edx + 4] */
   3659     { float _v = (float)fp_pop(); *(float*)ADDR(0x4202306C) = _v; } /* 0x420080E3: fstp dword ptr [0x4202306c] */
   3660     fp_push(*(float*)&MEM32(0x42023070)); /* 0x420080E9: fld dword ptr [0x42023070] */
   3661     _st[0] += (double)*(float*)ADDR(edx + 0x8); /* 0x420080EF: fadd dword ptr [edx + 8] */
   3662     { float _v = (float)fp_pop(); *(float*)ADDR(0x42023070) = _v; } /* 0x420080F2: fstp dword ptr [0x42023070] */
   3663 L_420080F8:
   3664     ebx = MEM32(ebp + 0x8); /* 0x420080F8: mov ebx, dword ptr [ebp + 8] */
   3665     fp_push(*(float*)&MEM32(ebx)); /* 0x420080FB: fld dword ptr [ebx] */
   3666     _st[0] -= (double)*(float*)ADDR(0x42023068); /* 0x420080FD: fsub dword ptr [0x42023068] */
   3667     fp_push(*(float*)&MEM32(ebx + 0x8)); /* 0x42008103: fld dword ptr [ebx + 8] */
   3668     _st[0] -= (double)*(float*)ADDR(0x42023070); /* 0x42008106: fsub dword ptr [0x42023070] */
   3669     fp_push(_st[0]); /* 0x4200810C: fld st(0) */
   3670     _st[0] *= _st[1]; /* 0x4200810E: fmul st(1) */
   3671     fp_push(_st[2]); /* 0x42008110: fld st(2) */
   3672     _st[0] *= _st[3]; /* 0x42008112: fmul st(3) */
   3673     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008114: faddp st(1) */
   3674     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x42008116: fstp st(2) */
   3675     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008118: fstp st(0) */
   3676     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x4200811A: fcom dword ptr [ebp - 4] */
   3677     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200811D: fnstsw ax */
   3678     /* test HI8(eax), 1 */ /* 0x4200811F: test ah, 1 */
   3679     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3680     _cf = 0;
   3681     _flag_k = FK_NARROW(FK_TEST, 24);
   3682     if (TEST_Z(_flag_a, _flag_b)) goto L_42008136; /* 0x42008122: je 0x42008136 */
   3683 L_42008124:
   3684     edx = MEM32(ebp + 0x14); /* 0x42008124: mov edx, dword ptr [ebp + 0x14] */
   3685     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x42008127: fstp dword ptr [ebp - 4] */
   3686     eax = MEM32(ebp + 0x10); /* 0x4200812A: mov eax, dword ptr [ebp + 0x10] */
   3687     MEM32(edx) = esi; /* 0x4200812D: mov dword ptr [edx], esi */
   3688     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x4200812F: fstp dword ptr [eax] */
   3689     MEM32(ebp + (-0xC)) = ecx; /* 0x42008131: mov dword ptr [ebp - 0xc], ecx */
   3690     goto L_4200813A; /* 0x42008134: jmp 0x4200813a */
   3691 L_42008136:
   3692     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008136: fstp st(0) */
   3693     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008138: fstp st(0) */
   3694 L_4200813A:
   3695     eax = MEM32(ebp + (-0x10)); /* 0x4200813A: mov eax, dword ptr [ebp - 0x10] */
   3696     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   3697     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3698     ecx = ecx + 0x10u; /* 0x4200813D: add ecx, 0x10 */
   3699     _flag_k = FK_ADD;
   3700     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   3701     esi = esi + 1; /* 0x42008140: inc esi */
   3702     _flag_k = FK_INC;
   3703     /* cmp ecx, eax */ /* 0x42008141: cmp ecx, eax */
   3704     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3705     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3706     _flag_k = FK_CMP;
   3707     edx = edi; /* 0x42008143: mov edx, edi */
   3708     RECOMP_BACKEDGE();
   3709     if (CMP_B(_flag_a, _flag_b)) goto L_42007FEE; /* 0x42008145: jb 0x42007fee */
   3710 L_4200814B:
   3711     eax = MEM32(ebp + (-0xC)); /* 0x4200814B: mov eax, dword ptr [ebp - 0xc] */
   3712     edx = MEM32(eax); /* 0x4200814E: mov edx, dword ptr [eax] */
   3713     ecx = MEM32(ebp + 0xC); /* 0x42008150: mov ecx, dword ptr [ebp + 0xc] */
   3714     MEM32(ecx) = edx; /* 0x42008153: mov dword ptr [ecx], edx */
   3715     edx = MEM32(eax + 0x4); /* 0x42008155: mov edx, dword ptr [eax + 4] */
   3716     MEM32(ecx + 0x4) = edx; /* 0x42008158: mov dword ptr [ecx + 4], edx */
   3717     eax = MEM32(eax + 0x8); /* 0x4200815B: mov eax, dword ptr [eax + 8] */
   3718     MEM32(ecx + 0x8) = eax; /* 0x4200815E: mov dword ptr [ecx + 8], eax */
   3719     ecx = MEM32(ebp + (-0x14)); /* 0x42008161: mov ecx, dword ptr [ebp - 0x14] */
   3720     fp_push(*(float*)&MEM32(ecx + 0x24)); /* 0x42008164: fld dword ptr [ecx + 0x24] */
   3721     edi = POP32_VAL(esp); /* 0x42008167: pop edi */
   3722     fp_push(_st[0]); /* 0x42008168: fld st(0) */
   3723     esi = POP32_VAL(esp); /* 0x4200816A: pop esi */
   3724     _st[0] *= _st[1]; /* 0x4200816B: fmul st(1) */
   3725     ebx = POP32_VAL(esp); /* 0x4200816D: pop ebx */
   3726     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x4200816E: fld dword ptr [ebp - 4] */
   3727     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008171: fcompp  */
   3728     fp_pop(); fp_pop();
   3729     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008173: fnstsw ax */
   3730     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008175: fstp st(0) */
   3731     /* test HI8(eax), 1 */ /* 0x42008177: test ah, 1 */
   3732     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3733     _cf = 0;
   3734     _flag_k = FK_NARROW(FK_TEST, 24);
   3735     if (TEST_Z(_flag_a, _flag_b)) goto L_42008187; /* 0x4200817A: je 0x42008187 */
   3736 L_4200817C:
   3737     eax = 1; /* 0x4200817C: mov eax, 1 */
   3738     esp = ebp; /* 0x42008181: mov esp, ebp */
   3739     ebp = POP32_VAL(esp); /* 0x42008183: pop ebp */
   3740     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42008184: ret 0x10 */
   3741 L_42008187:
   3742     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3743     eax = 0; /* 0x42008187: xor eax, eax */
   3744     _cf = 0;
   3745     _flag_k = FK_TEST;
   3746     esp = ebp; /* 0x42008189: mov esp, ebp */
   3747     ebp = POP32_VAL(esp); /* 0x4200818B: pop ebp */
   3748     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200818C: ret 0x10 */
   3749     RECOMP_REGS_OUT();
   3750 }
   3751 
   3752 void sub_42008190(void) {
   3753     int _fpu_cmp = 0;
   3754     uint32_t _cf = 0;
   3755     int _df = 1;
   3756     uint32_t _flag_k = FK_NONE;
   3757     uint32_t _flag_a = 0, _flag_b = 0;
   3758     uint32_t _itail_tgt = 0;
   3759     RECOMP_REGS_LOCALS
   3760     RECOMP_ENTER(0x42008190u);
   3761 
   3762 L_42008190:
   3763     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42008190: ret  */
   3764     RECOMP_REGS_OUT();
   3765 }
   3766 
   3767 void sub_420081A0(void) {
   3768     int _fpu_cmp = 0;
   3769     uint32_t _cf = 0;
   3770     int _df = 1;
   3771     uint32_t _flag_k = FK_NONE;
   3772     uint32_t _flag_a = 0, _flag_b = 0;
   3773     uint32_t _itail_tgt = 0;
   3774     RECOMP_REGS_LOCALS
   3775     RECOMP_ENTER(0x420081A0u);
   3776 
   3777 L_420081A0:
   3778     PUSH32(esp, ebp); /* 0x420081A0: push ebp */
   3779     ebp = esp; /* 0x420081A1: mov ebp, esp */
   3780     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3782     esp = esp - 0xCu; /* 0x420081A3: sub esp, 0xc */
   3783     _flag_k = FK_CMP;
   3784     PUSH32(esp, ebx); /* 0x420081A6: push ebx */
   3785     PUSH32(esp, esi); /* 0x420081A7: push esi */
   3786     PUSH32(esp, edi); /* 0x420081A8: push edi */
   3787     edi = MEM32(ebp + 0x8); /* 0x420081A9: mov edi, dword ptr [ebp + 8] */
   3788     eax = edi; /* 0x420081AC: mov eax, edi */
   3789     ecx = MEM32(eax); /* 0x420081AE: mov ecx, dword ptr [eax] */
   3790     edx = MEM32(eax + 0x4); /* 0x420081B0: mov edx, dword ptr [eax + 4] */
   3791     eax = MEM32(eax + 0x8); /* 0x420081B3: mov eax, dword ptr [eax + 8] */
   3792     MEM32(ebp + (-0xC)) = ecx; /* 0x420081B6: mov dword ptr [ebp - 0xc], ecx */
   3793     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x420081B9: fld dword ptr [ebp - 0xc] */
   3794     ecx = MEM32(ebp + 0xC); /* 0x420081BC: mov ecx, dword ptr [ebp + 0xc] */
   3795     _st[0] -= (double)*(float*)ADDR(ecx); /* 0x420081BF: fsub dword ptr [ecx] */
   3796     esi = MEM32(ebp + 0x20); /* 0x420081C1: mov esi, dword ptr [ebp + 0x20] */
   3797     MEM32(ebp + (-0x8)) = edx; /* 0x420081C4: mov dword ptr [ebp - 8], edx */
   3798     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x420081C7: fld dword ptr [ebp - 8] */
   3799     _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x420081CA: fsub dword ptr [ecx + 4] */
   3800     edx = MEM32(ebp + 0x14); /* 0x420081CD: mov edx, dword ptr [ebp + 0x14] */
   3801     MEM32(ebp + (-0x4)) = eax; /* 0x420081D0: mov dword ptr [ebp - 4], eax */
   3802     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x420081D3: fld dword ptr [ebp - 4] */
   3803     _st[0] -= (double)*(float*)ADDR(ecx + 0x8); /* 0x420081D6: fsub dword ptr [ecx + 8] */
   3804     _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x420081D9: fmul dword ptr [edx + 8] */
   3805     fp_xch(1); /* 0x420081DC: fxch st(1) */
   3806     _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x420081DE: fmul dword ptr [edx + 4] */
   3807     { double _v = fp_pop(); _st[0] += _v; } /* 0x420081E1: faddp st(1) */
   3808     fp_xch(1); /* 0x420081E3: fxch st(1) */
   3809     _st[0] *= (double)*(float*)ADDR(edx); /* 0x420081E5: fmul dword ptr [edx] */
   3810     { double _v = fp_pop(); _st[0] += _v; } /* 0x420081E7: faddp st(1) */
   3811     fp_push(_st[0]); /* 0x420081E9: fld st(0) */
   3812     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x420081EB: fstp dword ptr [esi] */
   3813     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x420081ED: fcom qword ptr [0x420180d8] */
   3814     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420081F3: fnstsw ax */
   3815     /* test HI8(eax), 1 */ /* 0x420081F5: test ah, 1 */
   3816     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3817     _cf = 0;
   3818     _flag_k = FK_NARROW(FK_TEST, 24);
   3819     if (TEST_Z(_flag_a, _flag_b)) goto L_42008219; /* 0x420081F8: je 0x42008219 */
   3820 L_420081FA:
   3821     ebx = MEM32(ecx); /* 0x420081FA: mov ebx, dword ptr [ecx] */
   3822     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420081FC: fstp st(0) */
   3823     eax = MEM32(ebp + 0x1C); /* 0x420081FE: mov eax, dword ptr [ebp + 0x1c] */
   3824     edx = eax; /* 0x42008201: mov edx, eax */
   3825     MEM32(edx) = ebx; /* 0x42008203: mov dword ptr [edx], ebx */
   3826     ebx = MEM32(ecx + 0x4); /* 0x42008205: mov ebx, dword ptr [ecx + 4] */
   3827     MEM32(edx + 0x4) = ebx; /* 0x42008208: mov dword ptr [edx + 4], ebx */
   3828     ecx = MEM32(ecx + 0x8); /* 0x4200820B: mov ecx, dword ptr [ecx + 8] */
   3829     MEM32(edx + 0x8) = ecx; /* 0x4200820E: mov dword ptr [edx + 8], ecx */
   3830     MEM32(esi) = 0; /* 0x42008211: mov dword ptr [esi], 0 */
   3831     goto L_4200828C; /* 0x42008217: jmp 0x4200828c */
   3832 L_42008219:
   3833     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x18)); /* 0x42008219: fcomp dword ptr [ebp + 0x18] */
   3834     fp_pop();
   3835     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200821C: fnstsw ax */
   3836     /* test HI8(eax), 0x41u */ /* 0x4200821E: test ah, 0x41 */
   3837     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3838     _cf = 0;
   3839     _flag_k = FK_NARROW(FK_TEST, 24);
   3840     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008242; /* 0x42008221: jne 0x42008242 */
   3841 L_42008223:
   3842     edx = MEM32(ebp + 0x10); /* 0x42008223: mov edx, dword ptr [ebp + 0x10] */
   3843     ebx = MEM32(edx); /* 0x42008226: mov ebx, dword ptr [edx] */
   3844     eax = MEM32(ebp + 0x1C); /* 0x42008228: mov eax, dword ptr [ebp + 0x1c] */
   3845     ecx = eax; /* 0x4200822B: mov ecx, eax */
   3846     MEM32(ecx) = ebx; /* 0x4200822D: mov dword ptr [ecx], ebx */
   3847     ebx = MEM32(edx + 0x4); /* 0x4200822F: mov ebx, dword ptr [edx + 4] */
   3848     MEM32(ecx + 0x4) = ebx; /* 0x42008232: mov dword ptr [ecx + 4], ebx */
   3849     edx = MEM32(edx + 0x8); /* 0x42008235: mov edx, dword ptr [edx + 8] */
   3850     MEM32(ecx + 0x8) = edx; /* 0x42008238: mov dword ptr [ecx + 8], edx */
   3851     ecx = MEM32(ebp + 0x18); /* 0x4200823B: mov ecx, dword ptr [ebp + 0x18] */
   3852     MEM32(esi) = ecx; /* 0x4200823E: mov dword ptr [esi], ecx */
   3853     goto L_4200828C; /* 0x42008240: jmp 0x4200828c */
   3854 L_42008242:
   3855     eax = MEM32(ebp + 0x1C); /* 0x42008242: mov eax, dword ptr [ebp + 0x1c] */
   3856     ebx = MEM32(edx); /* 0x42008245: mov ebx, dword ptr [edx] */
   3857     edi = eax; /* 0x42008247: mov edi, eax */
   3858     MEM32(edi) = ebx; /* 0x42008249: mov dword ptr [edi], ebx */
   3859     ebx = MEM32(edx + 0x4); /* 0x4200824B: mov ebx, dword ptr [edx + 4] */
   3860     MEM32(edi + 0x4) = ebx; /* 0x4200824E: mov dword ptr [edi + 4], ebx */
   3861     edx = MEM32(edx + 0x8); /* 0x42008251: mov edx, dword ptr [edx + 8] */
   3862     MEM32(edi + 0x8) = edx; /* 0x42008254: mov dword ptr [edi + 8], edx */
   3863     fp_push(*(float*)&MEM32(esi)); /* 0x42008257: fld dword ptr [esi] */
   3864     fp_push(_st[0]); /* 0x42008259: fld st(0) */
   3865     edi = MEM32(ebp + 0x8); /* 0x4200825B: mov edi, dword ptr [ebp + 8] */
   3866     _st[0] *= (double)*(float*)ADDR(eax); /* 0x4200825E: fmul dword ptr [eax] */
   3867     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x42008260: fst dword ptr [ebp + 0x1c] */
   3868     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42008263: fstp dword ptr [eax] */
   3869     fp_push(_st[0]); /* 0x42008265: fld st(0) */
   3870     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x42008267: fmul dword ptr [eax + 4] */
   3871     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x4200826A: fst dword ptr [ebp + 0x18] */
   3872     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x4200826D: fstp dword ptr [eax + 4] */
   3873     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x42008270: fmul dword ptr [eax + 8] */
   3874     { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x8) = _v; } /* 0x42008273: fst dword ptr [eax + 8] */
   3875     fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x42008276: fld dword ptr [ebp + 0x1c] */
   3876     _st[0] += (double)*(float*)ADDR(ecx); /* 0x42008279: fadd dword ptr [ecx] */
   3877     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x4200827B: fstp dword ptr [eax] */
   3878     fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x4200827D: fld dword ptr [ebp + 0x18] */
   3879     _st[0] += (double)*(float*)ADDR(ecx + 0x4); /* 0x42008280: fadd dword ptr [ecx + 4] */
   3880     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x42008283: fstp dword ptr [eax + 4] */
   3881     _st[0] += (double)*(float*)ADDR(ecx + 0x8); /* 0x42008286: fadd dword ptr [ecx + 8] */
   3882     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x42008289: fstp dword ptr [eax + 8] */
   3883 L_4200828C:
   3884     fp_push(*(float*)&MEM32(edi)); /* 0x4200828C: fld dword ptr [edi] */
   3885     _st[0] -= (double)*(float*)ADDR(eax); /* 0x4200828E: fsub dword ptr [eax] */
   3886     fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x42008290: fld dword ptr [edi + 8] */
   3887     edi = POP32_VAL(esp); /* 0x42008293: pop edi */
   3888     _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x42008294: fsub dword ptr [eax + 8] */
   3889     esi = POP32_VAL(esp); /* 0x42008297: pop esi */
   3890     ebx = POP32_VAL(esp); /* 0x42008298: pop ebx */
   3891     fp_push(_st[0]); /* 0x42008299: fld st(0) */
   3892     _st[0] *= _st[1]; /* 0x4200829B: fmul st(1) */
   3893     fp_push(_st[2]); /* 0x4200829D: fld st(2) */
   3894     _st[0] *= _st[3]; /* 0x4200829F: fmul st(3) */
   3895     { double _v = fp_pop(); _st[0] += _v; } /* 0x420082A1: faddp st(1) */
   3896     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x420082A3: fstp st(2) */
   3897     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420082A5: fstp st(0) */
   3898     esp = ebp; /* 0x420082A7: mov esp, ebp */
   3899     ebp = POP32_VAL(esp); /* 0x420082A9: pop ebp */
   3900     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x420082AA: ret 0x1c */
   3901     RECOMP_REGS_OUT();
   3902 }
   3903 
   3904 void sub_420082B0(void) {
   3905     int _fpu_cmp = 0;
   3906     uint32_t _cf = 0;
   3907     int _df = 1;
   3908     uint32_t _flag_k = FK_NONE;
   3909     uint32_t _flag_a = 0, _flag_b = 0;
   3910     uint32_t _itail_tgt = 0;
   3911     RECOMP_REGS_LOCALS
   3912     RECOMP_ENTER(0x420082B0u);
   3913 
   3914 L_420082B0:
   3915     PUSH32(esp, ebp); /* 0x420082B0: push ebp */
   3916     ebp = esp; /* 0x420082B1: mov ebp, esp */
   3917     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3919     esp = esp - 0xCu; /* 0x420082B3: sub esp, 0xc */
   3920     _flag_k = FK_CMP;
   3921     PUSH32(esp, ebx); /* 0x420082B6: push ebx */
   3922     PUSH32(esp, esi); /* 0x420082B7: push esi */
   3923     PUSH32(esp, edi); /* 0x420082B8: push edi */
   3924     edi = MEM32(ebp + 0x8); /* 0x420082B9: mov edi, dword ptr [ebp + 8] */
   3925     eax = edi; /* 0x420082BC: mov eax, edi */
   3926     ecx = MEM32(eax); /* 0x420082BE: mov ecx, dword ptr [eax] */
   3927     edx = MEM32(eax + 0x4); /* 0x420082C0: mov edx, dword ptr [eax + 4] */
   3928     eax = MEM32(eax + 0x8); /* 0x420082C3: mov eax, dword ptr [eax + 8] */
   3929     MEM32(ebp + (-0xC)) = ecx; /* 0x420082C6: mov dword ptr [ebp - 0xc], ecx */
   3930     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x420082C9: fld dword ptr [ebp - 0xc] */
   3931     ecx = MEM32(ebp + 0xC); /* 0x420082CC: mov ecx, dword ptr [ebp + 0xc] */
   3932     _st[0] -= (double)*(float*)ADDR(ecx); /* 0x420082CF: fsub dword ptr [ecx] */
   3933     esi = MEM32(ebp + 0x20); /* 0x420082D1: mov esi, dword ptr [ebp + 0x20] */
   3934     MEM32(ebp + (-0x8)) = edx; /* 0x420082D4: mov dword ptr [ebp - 8], edx */
   3935     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x420082D7: fld dword ptr [ebp - 8] */
   3936     _st[0] -= (double)*(float*)ADDR(ecx + 0x4); /* 0x420082DA: fsub dword ptr [ecx + 4] */
   3937     edx = MEM32(ebp + 0x14); /* 0x420082DD: mov edx, dword ptr [ebp + 0x14] */
   3938     MEM32(ebp + (-0x4)) = eax; /* 0x420082E0: mov dword ptr [ebp - 4], eax */
   3939     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x420082E3: fld dword ptr [ebp - 4] */
   3940     _st[0] -= (double)*(float*)ADDR(ecx + 0x8); /* 0x420082E6: fsub dword ptr [ecx + 8] */
   3941     _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x420082E9: fmul dword ptr [edx + 8] */
   3942     fp_xch(1); /* 0x420082EC: fxch st(1) */
   3943     _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x420082EE: fmul dword ptr [edx + 4] */
   3944     { double _v = fp_pop(); _st[0] += _v; } /* 0x420082F1: faddp st(1) */
   3945     fp_xch(1); /* 0x420082F3: fxch st(1) */
   3946     _st[0] *= (double)*(float*)ADDR(edx); /* 0x420082F5: fmul dword ptr [edx] */
   3947     { double _v = fp_pop(); _st[0] += _v; } /* 0x420082F7: faddp st(1) */
   3948     fp_push(_st[0]); /* 0x420082F9: fld st(0) */
   3949     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x420082FB: fstp dword ptr [esi] */
   3950     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x420082FD: fcom qword ptr [0x420180d8] */
   3951     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008303: fnstsw ax */
   3952     /* test HI8(eax), 1 */ /* 0x42008305: test ah, 1 */
   3953     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3954     _cf = 0;
   3955     _flag_k = FK_NARROW(FK_TEST, 24);
   3956     if (TEST_Z(_flag_a, _flag_b)) goto L_42008329; /* 0x42008308: je 0x42008329 */
   3957 L_4200830A:
   3958     ebx = MEM32(ecx); /* 0x4200830A: mov ebx, dword ptr [ecx] */
   3959     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200830C: fstp st(0) */
   3960     eax = MEM32(ebp + 0x1C); /* 0x4200830E: mov eax, dword ptr [ebp + 0x1c] */
   3961     edx = eax; /* 0x42008311: mov edx, eax */
   3962     MEM32(edx) = ebx; /* 0x42008313: mov dword ptr [edx], ebx */
   3963     ebx = MEM32(ecx + 0x4); /* 0x42008315: mov ebx, dword ptr [ecx + 4] */
   3964     MEM32(edx + 0x4) = ebx; /* 0x42008318: mov dword ptr [edx + 4], ebx */
   3965     ecx = MEM32(ecx + 0x8); /* 0x4200831B: mov ecx, dword ptr [ecx + 8] */
   3966     MEM32(edx + 0x8) = ecx; /* 0x4200831E: mov dword ptr [edx + 8], ecx */
   3967     MEM32(esi) = 0; /* 0x42008321: mov dword ptr [esi], 0 */
   3968     goto L_4200839C; /* 0x42008327: jmp 0x4200839c */
   3969 L_42008329:
   3970     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x18)); /* 0x42008329: fcomp dword ptr [ebp + 0x18] */
   3971     fp_pop();
   3972     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200832C: fnstsw ax */
   3973     /* test HI8(eax), 0x41u */ /* 0x4200832E: test ah, 0x41 */
   3974     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3975     _cf = 0;
   3976     _flag_k = FK_NARROW(FK_TEST, 24);
   3977     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008352; /* 0x42008331: jne 0x42008352 */
   3978 L_42008333:
   3979     edx = MEM32(ebp + 0x10); /* 0x42008333: mov edx, dword ptr [ebp + 0x10] */
   3980     ebx = MEM32(edx); /* 0x42008336: mov ebx, dword ptr [edx] */
   3981     eax = MEM32(ebp + 0x1C); /* 0x42008338: mov eax, dword ptr [ebp + 0x1c] */
   3982     ecx = eax; /* 0x4200833B: mov ecx, eax */
   3983     MEM32(ecx) = ebx; /* 0x4200833D: mov dword ptr [ecx], ebx */
   3984     ebx = MEM32(edx + 0x4); /* 0x4200833F: mov ebx, dword ptr [edx + 4] */
   3985     MEM32(ecx + 0x4) = ebx; /* 0x42008342: mov dword ptr [ecx + 4], ebx */
   3986     edx = MEM32(edx + 0x8); /* 0x42008345: mov edx, dword ptr [edx + 8] */
   3987     MEM32(ecx + 0x8) = edx; /* 0x42008348: mov dword ptr [ecx + 8], edx */
   3988     ecx = MEM32(ebp + 0x18); /* 0x4200834B: mov ecx, dword ptr [ebp + 0x18] */
   3989     MEM32(esi) = ecx; /* 0x4200834E: mov dword ptr [esi], ecx */
   3990     goto L_4200839C; /* 0x42008350: jmp 0x4200839c */
   3991 L_42008352:
   3992     eax = MEM32(ebp + 0x1C); /* 0x42008352: mov eax, dword ptr [ebp + 0x1c] */
   3993     ebx = MEM32(edx); /* 0x42008355: mov ebx, dword ptr [edx] */
   3994     edi = eax; /* 0x42008357: mov edi, eax */
   3995     MEM32(edi) = ebx; /* 0x42008359: mov dword ptr [edi], ebx */
   3996     ebx = MEM32(edx + 0x4); /* 0x4200835B: mov ebx, dword ptr [edx + 4] */
   3997     MEM32(edi + 0x4) = ebx; /* 0x4200835E: mov dword ptr [edi + 4], ebx */
   3998     edx = MEM32(edx + 0x8); /* 0x42008361: mov edx, dword ptr [edx + 8] */
   3999     MEM32(edi + 0x8) = edx; /* 0x42008364: mov dword ptr [edi + 8], edx */
   4000     fp_push(*(float*)&MEM32(esi)); /* 0x42008367: fld dword ptr [esi] */
   4001     fp_push(_st[0]); /* 0x42008369: fld st(0) */
   4002     edi = MEM32(ebp + 0x8); /* 0x4200836B: mov edi, dword ptr [ebp + 8] */
   4003     _st[0] *= (double)*(float*)ADDR(eax); /* 0x4200836E: fmul dword ptr [eax] */
   4004     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x42008370: fst dword ptr [ebp + 0x1c] */
   4005     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x42008373: fstp dword ptr [eax] */
   4006     fp_push(_st[0]); /* 0x42008375: fld st(0) */
   4007     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x42008377: fmul dword ptr [eax + 4] */
   4008     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x4200837A: fst dword ptr [ebp + 0x18] */
   4009     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x4200837D: fstp dword ptr [eax + 4] */
   4010     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x42008380: fmul dword ptr [eax + 8] */
   4011     { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x8) = _v; } /* 0x42008383: fst dword ptr [eax + 8] */
   4012     fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x42008386: fld dword ptr [ebp + 0x1c] */
   4013     _st[0] += (double)*(float*)ADDR(ecx); /* 0x42008389: fadd dword ptr [ecx] */
   4014     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x4200838B: fstp dword ptr [eax] */
   4015     fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x4200838D: fld dword ptr [ebp + 0x18] */
   4016     _st[0] += (double)*(float*)ADDR(ecx + 0x4); /* 0x42008390: fadd dword ptr [ecx + 4] */
   4017     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x42008393: fstp dword ptr [eax + 4] */
   4018     _st[0] += (double)*(float*)ADDR(ecx + 0x8); /* 0x42008396: fadd dword ptr [ecx + 8] */
   4019     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x42008399: fstp dword ptr [eax + 8] */
   4020 L_4200839C:
   4021     fp_push(*(float*)&MEM32(edi)); /* 0x4200839C: fld dword ptr [edi] */
   4022     _st[0] -= (double)*(float*)ADDR(eax); /* 0x4200839E: fsub dword ptr [eax] */
   4023     fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x420083A0: fld dword ptr [edi + 8] */
   4024     edi = POP32_VAL(esp); /* 0x420083A3: pop edi */
   4025     _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x420083A4: fsub dword ptr [eax + 8] */
   4026     esi = POP32_VAL(esp); /* 0x420083A7: pop esi */
   4027     ebx = POP32_VAL(esp); /* 0x420083A8: pop ebx */
   4028     fp_push(_st[0]); /* 0x420083A9: fld st(0) */
   4029     _st[0] *= _st[1]; /* 0x420083AB: fmul st(1) */
   4030     fp_push(_st[2]); /* 0x420083AD: fld st(2) */
   4031     _st[0] *= _st[3]; /* 0x420083AF: fmul st(3) */
   4032     { double _v = fp_pop(); _st[0] += _v; } /* 0x420083B1: faddp st(1) */
   4033     _st[0] = sqrt(_st[0]); /* 0x420083B3: fsqrt  */
   4034     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x420083B5: fstp st(2) */
   4035     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420083B7: fstp st(0) */
   4036     esp = ebp; /* 0x420083B9: mov esp, ebp */
   4037     ebp = POP32_VAL(esp); /* 0x420083BB: pop ebp */
   4038     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x420083BC: ret 0x1c */
   4039     RECOMP_REGS_OUT();
   4040 }
   4041 
   4042 void sub_420083C0(void) {
   4043     int _fpu_cmp = 0;
   4044     uint32_t _cf = 0;
   4045     int _df = 1;
   4046     uint32_t _flag_k = FK_NONE;
   4047     uint32_t _flag_a = 0, _flag_b = 0;
   4048     uint32_t _itail_tgt = 0;
   4049     RECOMP_REGS_LOCALS
   4050     RECOMP_ENTER(0x420083C0u);
   4051 
   4052 L_420083C0:
   4053     PUSH32(esp, ebp); /* 0x420083C0: push ebp */
   4054     ebp = esp; /* 0x420083C1: mov ebp, esp */
   4055     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4057     esp = esp - 0xCu; /* 0x420083C3: sub esp, 0xc */
   4058     _flag_k = FK_CMP;
   4059     eax = MEM32(ebp + 0x8); /* 0x420083C6: mov eax, dword ptr [ebp + 8] */
   4060     edx = MEM32(eax); /* 0x420083C9: mov edx, dword ptr [eax] */
   4061     PUSH32(esp, ebx); /* 0x420083CB: push ebx */
   4062     MEM32(ebp + (-0xC)) = edx; /* 0x420083CC: mov dword ptr [ebp - 0xc], edx */
   4063     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x420083CF: fld dword ptr [ebp - 0xc] */
   4064     edx = MEM32(eax + 0x4); /* 0x420083D2: mov edx, dword ptr [eax + 4] */
   4065     eax = MEM32(eax + 0x8); /* 0x420083D5: mov eax, dword ptr [eax + 8] */
   4066     PUSH32(esp, esi); /* 0x420083D8: push esi */
   4067     esi = MEM32(ecx + 0x18); /* 0x420083D9: mov esi, dword ptr [ecx + 0x18] */
   4068     MEM32(ebp + (-0x4)) = eax; /* 0x420083DC: mov dword ptr [ebp - 4], eax */
   4069     eax = MEM32(ecx + 0x8); /* 0x420083DF: mov eax, dword ptr [ecx + 8] */
   4070     PUSH32(esp, edi); /* 0x420083E2: push edi */
   4071     edi = MEM32(ebp + 0xC); /* 0x420083E3: mov edi, dword ptr [ebp + 0xc] */
   4072     MEM32(ebp + (-0x8)) = edx; /* 0x420083E6: mov dword ptr [ebp - 8], edx */
   4073     edx = edi + edi * 2; /* 0x420083E9: lea edx, [edi + edi*2] */
   4074     _st[0] -= (double)*(float*)ADDR(eax + edx * 4); /* 0x420083EC: fsub dword ptr [eax + edx*4] */
   4075     edx = eax + edx * 4; /* 0x420083EF: lea edx, [eax + edx*4] */
   4076     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x420083F2: fld dword ptr [ebp - 8] */
   4077     ebx = MEM32(ebp + 0x14); /* 0x420083F5: mov ebx, dword ptr [ebp + 0x14] */
   4078     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x420083F8: fsub dword ptr [edx + 4] */
   4079     eax = edi; /* 0x420083FB: mov eax, edi */
   4080     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x420083FD: fld dword ptr [ebp - 4] */
   4081     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42008400: shl eax, 4 */
   4082     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4083     eax = eax << 4u; /* 0x42008400: shl eax, 4 */
   4084     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x42008403: fsub dword ptr [edx + 8] */
   4085     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4086     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4087     esi = esi + eax; /* 0x42008406: add esi, eax */
   4088     _flag_k = FK_ADD;
   4089     eax = MEM32(esi + 0xC); /* 0x42008408: mov eax, dword ptr [esi + 0xc] */
   4090     MEM32(ebp + 0xC) = eax; /* 0x4200840B: mov dword ptr [ebp + 0xc], eax */
   4091     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x4200840E: fmul dword ptr [esi + 8] */
   4092     fp_xch(1); /* 0x42008411: fxch st(1) */
   4093     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42008413: fmul dword ptr [esi + 4] */
   4094     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008416: faddp st(1) */
   4095     fp_xch(1); /* 0x42008418: fxch st(1) */
   4096     _st[0] *= (double)*(float*)ADDR(esi); /* 0x4200841A: fmul dword ptr [esi] */
   4097     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200841C: faddp st(1) */
   4098     fp_push(_st[0]); /* 0x4200841E: fld st(0) */
   4099     { float _v = (float)fp_pop(); *(float*)ADDR(ebx) = _v; } /* 0x42008420: fstp dword ptr [ebx] */
   4100     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42008422: fcom qword ptr [0x420180d8] */
   4101     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008428: fnstsw ax */
   4102     /* test HI8(eax), 1 */ /* 0x4200842A: test ah, 1 */
   4103     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4104     _cf = 0;
   4105     _flag_k = FK_NARROW(FK_TEST, 24);
   4106     if (TEST_Z(_flag_a, _flag_b)) goto L_4200844E; /* 0x4200842D: je 0x4200844e */
   4107 L_4200842F:
   4108     esi = MEM32(edx); /* 0x4200842F: mov esi, dword ptr [edx] */
   4109     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008431: fstp st(0) */
   4110     eax = MEM32(ebp + 0x10); /* 0x42008433: mov eax, dword ptr [ebp + 0x10] */
   4111     ecx = eax; /* 0x42008436: mov ecx, eax */
   4112     MEM32(ecx) = esi; /* 0x42008438: mov dword ptr [ecx], esi */
   4113     esi = MEM32(edx + 0x4); /* 0x4200843A: mov esi, dword ptr [edx + 4] */
   4114     MEM32(ecx + 0x4) = esi; /* 0x4200843D: mov dword ptr [ecx + 4], esi */
   4115     edx = MEM32(edx + 0x8); /* 0x42008440: mov edx, dword ptr [edx + 8] */
   4116     MEM32(ecx + 0x8) = edx; /* 0x42008443: mov dword ptr [ecx + 8], edx */
   4117     MEM32(ebx) = 0; /* 0x42008446: mov dword ptr [ebx], 0 */
   4118     goto L_420084C5; /* 0x4200844C: jmp 0x420084c5 */
   4119 L_4200844E:
   4120     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0xC)); /* 0x4200844E: fcomp dword ptr [ebp + 0xc] */
   4121     fp_pop();
   4122     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008451: fnstsw ax */
   4123     /* test HI8(eax), 0x41u */ /* 0x42008453: test ah, 0x41 */
   4124     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4125     _cf = 0;
   4126     _flag_k = FK_NARROW(FK_TEST, 24);
   4127     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200847E; /* 0x42008456: jne 0x4200847e */
   4128 L_42008458:
   4129     ecx = MEM32(ecx + 0x8); /* 0x42008458: mov ecx, dword ptr [ecx + 8] */
   4130     eax = edi + edi * 2 + 0x3; /* 0x4200845B: lea eax, [edi + edi*2 + 3] */
   4131     edx = ecx + eax * 4; /* 0x4200845F: lea edx, [ecx + eax*4] */
   4132     esi = MEM32(edx); /* 0x42008462: mov esi, dword ptr [edx] */
   4133     eax = MEM32(ebp + 0x10); /* 0x42008464: mov eax, dword ptr [ebp + 0x10] */
   4134     ecx = eax; /* 0x42008467: mov ecx, eax */
   4135     MEM32(ecx) = esi; /* 0x42008469: mov dword ptr [ecx], esi */
   4136     esi = MEM32(edx + 0x4); /* 0x4200846B: mov esi, dword ptr [edx + 4] */
   4137     MEM32(ecx + 0x4) = esi; /* 0x4200846E: mov dword ptr [ecx + 4], esi */
   4138     edx = MEM32(edx + 0x8); /* 0x42008471: mov edx, dword ptr [edx + 8] */
   4139     MEM32(ecx + 0x8) = edx; /* 0x42008474: mov dword ptr [ecx + 8], edx */
   4140     ecx = MEM32(ebp + 0xC); /* 0x42008477: mov ecx, dword ptr [ebp + 0xc] */
   4141     MEM32(ebx) = ecx; /* 0x4200847A: mov dword ptr [ebx], ecx */
   4142     goto L_420084C5; /* 0x4200847C: jmp 0x420084c5 */
   4143 L_4200847E:
   4144     eax = MEM32(ebp + 0x10); /* 0x4200847E: mov eax, dword ptr [ebp + 0x10] */
   4145     edi = MEM32(esi); /* 0x42008481: mov edi, dword ptr [esi] */
   4146     ecx = eax; /* 0x42008483: mov ecx, eax */
   4147     MEM32(ecx) = edi; /* 0x42008485: mov dword ptr [ecx], edi */
   4148     edi = MEM32(esi + 0x4); /* 0x42008487: mov edi, dword ptr [esi + 4] */
   4149     MEM32(ecx + 0x4) = edi; /* 0x4200848A: mov dword ptr [ecx + 4], edi */
   4150     esi = MEM32(esi + 0x8); /* 0x4200848D: mov esi, dword ptr [esi + 8] */
   4151     MEM32(ecx + 0x8) = esi; /* 0x42008490: mov dword ptr [ecx + 8], esi */
   4152     fp_push(*(float*)&MEM32(ebx)); /* 0x42008493: fld dword ptr [ebx] */
   4153     fp_push(_st[0]); /* 0x42008495: fld st(0) */
   4154     _st[0] *= (double)*(float*)ADDR(eax); /* 0x42008497: fmul dword ptr [eax] */
   4155     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x10) = _v; } /* 0x42008499: fst dword ptr [ebp + 0x10] */
   4156     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x4200849C: fstp dword ptr [eax] */
   4157     fp_push(_st[0]); /* 0x4200849E: fld st(0) */
   4158     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x420084A0: fmul dword ptr [eax + 4] */
   4159     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x420084A3: fst dword ptr [ebp + 0xc] */
   4160     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x420084A6: fstp dword ptr [eax + 4] */
   4161     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x420084A9: fmul dword ptr [eax + 8] */
   4162     { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x8) = _v; } /* 0x420084AC: fst dword ptr [eax + 8] */
   4163     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x420084AF: fld dword ptr [ebp + 0x10] */
   4164     _st[0] += (double)*(float*)ADDR(edx); /* 0x420084B2: fadd dword ptr [edx] */
   4165     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x420084B4: fstp dword ptr [eax] */
   4166     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x420084B6: fld dword ptr [ebp + 0xc] */
   4167     _st[0] += (double)*(float*)ADDR(edx + 0x4); /* 0x420084B9: fadd dword ptr [edx + 4] */
   4168     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x420084BC: fstp dword ptr [eax + 4] */
   4169     _st[0] += (double)*(float*)ADDR(edx + 0x8); /* 0x420084BF: fadd dword ptr [edx + 8] */
   4170     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x420084C2: fstp dword ptr [eax + 8] */
   4171 L_420084C5:
   4172     ecx = MEM32(ebp + 0x8); /* 0x420084C5: mov ecx, dword ptr [ebp + 8] */
   4173     fp_push(*(float*)&MEM32(ecx)); /* 0x420084C8: fld dword ptr [ecx] */
   4174     edi = POP32_VAL(esp); /* 0x420084CA: pop edi */
   4175     _st[0] -= (double)*(float*)ADDR(eax); /* 0x420084CB: fsub dword ptr [eax] */
   4176     esi = POP32_VAL(esp); /* 0x420084CD: pop esi */
   4177     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x420084CE: fld dword ptr [ecx + 8] */
   4178     ebx = POP32_VAL(esp); /* 0x420084D1: pop ebx */
   4179     _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x420084D2: fsub dword ptr [eax + 8] */
   4180     fp_push(_st[0]); /* 0x420084D5: fld st(0) */
   4181     _st[0] *= _st[1]; /* 0x420084D7: fmul st(1) */
   4182     fp_push(_st[2]); /* 0x420084D9: fld st(2) */
   4183     _st[0] *= _st[3]; /* 0x420084DB: fmul st(3) */
   4184     { double _v = fp_pop(); _st[0] += _v; } /* 0x420084DD: faddp st(1) */
   4185     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x420084DF: fstp st(2) */
   4186     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420084E1: fstp st(0) */
   4187     esp = ebp; /* 0x420084E3: mov esp, ebp */
   4188     ebp = POP32_VAL(esp); /* 0x420084E5: pop ebp */
   4189     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x420084E6: ret 0x10 */
   4190     RECOMP_REGS_OUT();
   4191 }
   4192 
   4193 void sub_420084F0(void) {
   4194     int _fpu_cmp = 0;
   4195     uint32_t _cf = 0;
   4196     int _df = 1;
   4197     uint32_t _flag_k = FK_NONE;
   4198     uint32_t _flag_a = 0, _flag_b = 0;
   4199     uint32_t _itail_tgt = 0;
   4200     RECOMP_REGS_LOCALS
   4201     RECOMP_ENTER(0x420084F0u);
   4202 
   4203 L_420084F0:
   4204     PUSH32(esp, ebp); /* 0x420084F0: push ebp */
   4205     ebp = esp; /* 0x420084F1: mov ebp, esp */
   4206     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4208     esp = esp - 0xCu; /* 0x420084F3: sub esp, 0xc */
   4209     _flag_k = FK_CMP;
   4210     eax = MEM32(ebp + 0x8); /* 0x420084F6: mov eax, dword ptr [ebp + 8] */
   4211     edx = MEM32(eax); /* 0x420084F9: mov edx, dword ptr [eax] */
   4212     PUSH32(esp, ebx); /* 0x420084FB: push ebx */
   4213     MEM32(ebp + (-0xC)) = edx; /* 0x420084FC: mov dword ptr [ebp - 0xc], edx */
   4214     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x420084FF: fld dword ptr [ebp - 0xc] */
   4215     edx = MEM32(eax + 0x4); /* 0x42008502: mov edx, dword ptr [eax + 4] */
   4216     eax = MEM32(eax + 0x8); /* 0x42008505: mov eax, dword ptr [eax + 8] */
   4217     PUSH32(esp, esi); /* 0x42008508: push esi */
   4218     esi = MEM32(ecx + 0x18); /* 0x42008509: mov esi, dword ptr [ecx + 0x18] */
   4219     MEM32(ebp + (-0x4)) = eax; /* 0x4200850C: mov dword ptr [ebp - 4], eax */
   4220     eax = MEM32(ecx + 0x8); /* 0x4200850F: mov eax, dword ptr [ecx + 8] */
   4221     PUSH32(esp, edi); /* 0x42008512: push edi */
   4222     edi = MEM32(ebp + 0xC); /* 0x42008513: mov edi, dword ptr [ebp + 0xc] */
   4223     MEM32(ebp + (-0x8)) = edx; /* 0x42008516: mov dword ptr [ebp - 8], edx */
   4224     edx = edi + edi * 2; /* 0x42008519: lea edx, [edi + edi*2] */
   4225     _st[0] -= (double)*(float*)ADDR(eax + edx * 4); /* 0x4200851C: fsub dword ptr [eax + edx*4] */
   4226     edx = eax + edx * 4; /* 0x4200851F: lea edx, [eax + edx*4] */
   4227     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x42008522: fld dword ptr [ebp - 8] */
   4228     ebx = MEM32(ebp + 0x14); /* 0x42008525: mov ebx, dword ptr [ebp + 0x14] */
   4229     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x42008528: fsub dword ptr [edx + 4] */
   4230     eax = edi; /* 0x4200852B: mov eax, edi */
   4231     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x4200852D: fld dword ptr [ebp - 4] */
   4232     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42008530: shl eax, 4 */
   4233     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4234     eax = eax << 4u; /* 0x42008530: shl eax, 4 */
   4235     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x42008533: fsub dword ptr [edx + 8] */
   4236     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4237     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4238     esi = esi + eax; /* 0x42008536: add esi, eax */
   4239     _flag_k = FK_ADD;
   4240     eax = MEM32(esi + 0xC); /* 0x42008538: mov eax, dword ptr [esi + 0xc] */
   4241     MEM32(ebp + 0xC) = eax; /* 0x4200853B: mov dword ptr [ebp + 0xc], eax */
   4242     _st[0] *= (double)*(float*)ADDR(esi + 0x8); /* 0x4200853E: fmul dword ptr [esi + 8] */
   4243     fp_xch(1); /* 0x42008541: fxch st(1) */
   4244     _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x42008543: fmul dword ptr [esi + 4] */
   4245     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008546: faddp st(1) */
   4246     fp_xch(1); /* 0x42008548: fxch st(1) */
   4247     _st[0] *= (double)*(float*)ADDR(esi); /* 0x4200854A: fmul dword ptr [esi] */
   4248     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200854C: faddp st(1) */
   4249     fp_push(_st[0]); /* 0x4200854E: fld st(0) */
   4250     { float _v = (float)fp_pop(); *(float*)ADDR(ebx) = _v; } /* 0x42008550: fstp dword ptr [ebx] */
   4251     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42008552: fcom qword ptr [0x420180d8] */
   4252     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008558: fnstsw ax */
   4253     /* test HI8(eax), 1 */ /* 0x4200855A: test ah, 1 */
   4254     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4255     _cf = 0;
   4256     _flag_k = FK_NARROW(FK_TEST, 24);
   4257     if (TEST_Z(_flag_a, _flag_b)) goto L_4200857E; /* 0x4200855D: je 0x4200857e */
   4258 L_4200855F:
   4259     esi = MEM32(edx); /* 0x4200855F: mov esi, dword ptr [edx] */
   4260     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008561: fstp st(0) */
   4261     eax = MEM32(ebp + 0x10); /* 0x42008563: mov eax, dword ptr [ebp + 0x10] */
   4262     ecx = eax; /* 0x42008566: mov ecx, eax */
   4263     MEM32(ecx) = esi; /* 0x42008568: mov dword ptr [ecx], esi */
   4264     esi = MEM32(edx + 0x4); /* 0x4200856A: mov esi, dword ptr [edx + 4] */
   4265     MEM32(ecx + 0x4) = esi; /* 0x4200856D: mov dword ptr [ecx + 4], esi */
   4266     edx = MEM32(edx + 0x8); /* 0x42008570: mov edx, dword ptr [edx + 8] */
   4267     MEM32(ecx + 0x8) = edx; /* 0x42008573: mov dword ptr [ecx + 8], edx */
   4268     MEM32(ebx) = 0; /* 0x42008576: mov dword ptr [ebx], 0 */
   4269     goto L_420085F5; /* 0x4200857C: jmp 0x420085f5 */
   4270 L_4200857E:
   4271     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0xC)); /* 0x4200857E: fcomp dword ptr [ebp + 0xc] */
   4272     fp_pop();
   4273     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008581: fnstsw ax */
   4274     /* test HI8(eax), 0x41u */ /* 0x42008583: test ah, 0x41 */
   4275     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4276     _cf = 0;
   4277     _flag_k = FK_NARROW(FK_TEST, 24);
   4278     if (TEST_NZ(_flag_a, _flag_b)) goto L_420085AE; /* 0x42008586: jne 0x420085ae */
   4279 L_42008588:
   4280     ecx = MEM32(ecx + 0x8); /* 0x42008588: mov ecx, dword ptr [ecx + 8] */
   4281     eax = edi + edi * 2 + 0x3; /* 0x4200858B: lea eax, [edi + edi*2 + 3] */
   4282     edx = ecx + eax * 4; /* 0x4200858F: lea edx, [ecx + eax*4] */
   4283     esi = MEM32(edx); /* 0x42008592: mov esi, dword ptr [edx] */
   4284     eax = MEM32(ebp + 0x10); /* 0x42008594: mov eax, dword ptr [ebp + 0x10] */
   4285     ecx = eax; /* 0x42008597: mov ecx, eax */
   4286     MEM32(ecx) = esi; /* 0x42008599: mov dword ptr [ecx], esi */
   4287     esi = MEM32(edx + 0x4); /* 0x4200859B: mov esi, dword ptr [edx + 4] */
   4288     MEM32(ecx + 0x4) = esi; /* 0x4200859E: mov dword ptr [ecx + 4], esi */
   4289     edx = MEM32(edx + 0x8); /* 0x420085A1: mov edx, dword ptr [edx + 8] */
   4290     MEM32(ecx + 0x8) = edx; /* 0x420085A4: mov dword ptr [ecx + 8], edx */
   4291     ecx = MEM32(ebp + 0xC); /* 0x420085A7: mov ecx, dword ptr [ebp + 0xc] */
   4292     MEM32(ebx) = ecx; /* 0x420085AA: mov dword ptr [ebx], ecx */
   4293     goto L_420085F5; /* 0x420085AC: jmp 0x420085f5 */
   4294 L_420085AE:
   4295     eax = MEM32(ebp + 0x10); /* 0x420085AE: mov eax, dword ptr [ebp + 0x10] */
   4296     edi = MEM32(esi); /* 0x420085B1: mov edi, dword ptr [esi] */
   4297     ecx = eax; /* 0x420085B3: mov ecx, eax */
   4298     MEM32(ecx) = edi; /* 0x420085B5: mov dword ptr [ecx], edi */
   4299     edi = MEM32(esi + 0x4); /* 0x420085B7: mov edi, dword ptr [esi + 4] */
   4300     MEM32(ecx + 0x4) = edi; /* 0x420085BA: mov dword ptr [ecx + 4], edi */
   4301     esi = MEM32(esi + 0x8); /* 0x420085BD: mov esi, dword ptr [esi + 8] */
   4302     MEM32(ecx + 0x8) = esi; /* 0x420085C0: mov dword ptr [ecx + 8], esi */
   4303     fp_push(*(float*)&MEM32(ebx)); /* 0x420085C3: fld dword ptr [ebx] */
   4304     fp_push(_st[0]); /* 0x420085C5: fld st(0) */
   4305     _st[0] *= (double)*(float*)ADDR(eax); /* 0x420085C7: fmul dword ptr [eax] */
   4306     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x10) = _v; } /* 0x420085C9: fst dword ptr [ebp + 0x10] */
   4307     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x420085CC: fstp dword ptr [eax] */
   4308     fp_push(_st[0]); /* 0x420085CE: fld st(0) */
   4309     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x420085D0: fmul dword ptr [eax + 4] */
   4310     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x420085D3: fst dword ptr [ebp + 0xc] */
   4311     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x420085D6: fstp dword ptr [eax + 4] */
   4312     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x420085D9: fmul dword ptr [eax + 8] */
   4313     { float _v = (float)_st[0]; *(float*)ADDR(eax + 0x8) = _v; } /* 0x420085DC: fst dword ptr [eax + 8] */
   4314     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x420085DF: fld dword ptr [ebp + 0x10] */
   4315     _st[0] += (double)*(float*)ADDR(edx); /* 0x420085E2: fadd dword ptr [edx] */
   4316     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x420085E4: fstp dword ptr [eax] */
   4317     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x420085E6: fld dword ptr [ebp + 0xc] */
   4318     _st[0] += (double)*(float*)ADDR(edx + 0x4); /* 0x420085E9: fadd dword ptr [edx + 4] */
   4319     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x420085EC: fstp dword ptr [eax + 4] */
   4320     _st[0] += (double)*(float*)ADDR(edx + 0x8); /* 0x420085EF: fadd dword ptr [edx + 8] */
   4321     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x420085F2: fstp dword ptr [eax + 8] */
   4322 L_420085F5:
   4323     ecx = MEM32(ebp + 0x8); /* 0x420085F5: mov ecx, dword ptr [ebp + 8] */
   4324     fp_push(*(float*)&MEM32(ecx)); /* 0x420085F8: fld dword ptr [ecx] */
   4325     edi = POP32_VAL(esp); /* 0x420085FA: pop edi */
   4326     _st[0] -= (double)*(float*)ADDR(eax); /* 0x420085FB: fsub dword ptr [eax] */
   4327     esi = POP32_VAL(esp); /* 0x420085FD: pop esi */
   4328     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x420085FE: fld dword ptr [ecx + 8] */
   4329     ebx = POP32_VAL(esp); /* 0x42008601: pop ebx */
   4330     _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x42008602: fsub dword ptr [eax + 8] */
   4331     fp_push(_st[0]); /* 0x42008605: fld st(0) */
   4332     _st[0] *= _st[1]; /* 0x42008607: fmul st(1) */
   4333     fp_push(_st[2]); /* 0x42008609: fld st(2) */
   4334     _st[0] *= _st[3]; /* 0x4200860B: fmul st(3) */
   4335     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200860D: faddp st(1) */
   4336     _st[0] = sqrt(_st[0]); /* 0x4200860F: fsqrt  */
   4337     { _st[2] = _st[0]; g_st_i64[2] = g_st_i64[0]; fp_pop(); } /* 0x42008611: fstp st(2) */
   4338     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008613: fstp st(0) */
   4339     esp = ebp; /* 0x42008615: mov esp, ebp */
   4340     ebp = POP32_VAL(esp); /* 0x42008617: pop ebp */
   4341     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x42008618: ret 0x10 */
   4342     RECOMP_REGS_OUT();
   4343 }
   4344 
   4345 void sub_42008620(void) {
   4346     int _fpu_cmp = 0;
   4347     uint32_t _cf = 0;
   4348     int _df = 1;
   4349     uint32_t _flag_k = FK_NONE;
   4350     uint32_t _flag_a = 0, _flag_b = 0;
   4351     uint32_t _itail_tgt = 0;
   4352     RECOMP_REGS_LOCALS
   4353     RECOMP_ENTER(0x42008620u);
   4354 
   4355 L_42008620:
   4356     PUSH32(esp, ebp); /* 0x42008620: push ebp */
   4357     ebp = esp; /* 0x42008621: mov ebp, esp */
   4358     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu);
   4359     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4360     esp = esp - 0x4Cu; /* 0x42008623: sub esp, 0x4c */
   4361     _flag_k = FK_CMP;
   4362     fp_push(*(float*)&MEM32(0x42018474)); /* 0x42008626: fld dword ptr [0x42018474] */
   4363     PUSH32(esp, esi); /* 0x4200862C: push esi */
   4364     esi = ecx; /* 0x4200862D: mov esi, ecx */
   4365     eax = MEM32(esi + 0x8); /* 0x4200862F: mov eax, dword ptr [esi + 8] */
   4366     /* test eax, eax */ /* 0x42008632: test eax, eax */
   4367     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4368     _cf = 0;
   4369     _flag_k = FK_TEST;
   4370     MEM32(ebp + (-0x10)) = esi; /* 0x42008634: mov dword ptr [ebp - 0x10], esi */
   4371     MEM32(ebp + (-0x4)) = 0; /* 0x42008637: mov dword ptr [ebp - 4], 0 */
   4372     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008644; /* 0x4200863E: jne 0x42008644 */
   4373 L_42008640:
   4374     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4375     edx = 0; /* 0x42008640: xor edx, edx */
   4376     _cf = 0;
   4377     _flag_k = FK_TEST;
   4378     goto L_42008659; /* 0x42008642: jmp 0x42008659 */
   4379 L_42008644:
   4380     ecx = MEM32(esi + 0xC); /* 0x42008644: mov ecx, dword ptr [esi + 0xc] */
   4381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4383     ecx = ecx - eax; /* 0x42008647: sub ecx, eax */
   4384     _flag_k = FK_CMP;
   4385     eax = 0x2AAAAAABu; /* 0x42008649: mov eax, 0x2aaaaaab */
   4386     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x4200864E: imul ecx */
   4387       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4388       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4389     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42008650: sar edx, 1 */
   4390     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4391     edx = (uint32_t)((int32_t)edx >> 1u);
   4392     eax = edx; /* 0x42008652: mov eax, edx */
   4393     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42008654: shr eax, 0x1f */
   4394     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4395     eax = eax >> 31u; /* 0x42008654: shr eax, 0x1f */
   4396     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4397     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4398     edx = edx + eax; /* 0x42008657: add edx, eax */
   4399     _flag_k = FK_ADD;
   4400 L_42008659:
   4401     eax = edx + (-0x1); /* 0x42008659: lea eax, [edx - 1] */
   4402     /* test eax, eax */ /* 0x4200865C: test eax, eax */
   4403     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4404     _cf = 0;
   4405     _flag_k = FK_TEST;
   4406     if (TEST_LE(_flag_a, _flag_b)) goto L_4200891F; /* 0x4200865E: jle 0x4200891f */
   4407 L_42008664:
   4408     PUSH32(esp, ebx); /* 0x42008664: push ebx */
   4409     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4410     ebx = 0; /* 0x42008665: xor ebx, ebx */
   4411     _cf = 0;
   4412     _flag_k = FK_TEST;
   4413     PUSH32(esp, edi); /* 0x42008667: push edi */
   4414     edi = MEM32(ebp + 0x8); /* 0x42008668: mov edi, dword ptr [ebp + 8] */
   4415     MEM32(ebp + (-0x8)) = ebx; /* 0x4200866B: mov dword ptr [ebp - 8], ebx */
   4416     MEM32(ebp + (-0xC)) = eax; /* 0x4200866E: mov dword ptr [ebp - 0xc], eax */
   4417     goto L_42008676; /* 0x42008671: jmp 0x42008676 */
   4418 L_42008673:
   4419     esi = MEM32(ebp + (-0x10)); /* 0x42008673: mov esi, dword ptr [ebp - 0x10] */
   4420 L_42008676:
   4421     ecx = edi; /* 0x42008676: mov ecx, edi */
   4422     edx = MEM32(ecx); /* 0x42008678: mov edx, dword ptr [ecx] */
   4423     eax = MEM32(ecx + 0x4); /* 0x4200867A: mov eax, dword ptr [ecx + 4] */
   4424     ecx = MEM32(ecx + 0x8); /* 0x4200867D: mov ecx, dword ptr [ecx + 8] */
   4425     MEM32(ebp + (-0x18)) = eax; /* 0x42008680: mov dword ptr [ebp - 0x18], eax */
   4426     eax = MEM32(esi + 0x8); /* 0x42008683: mov eax, dword ptr [esi + 8] */
   4427     MEM32(ebp + (-0x1C)) = edx; /* 0x42008686: mov dword ptr [ebp - 0x1c], edx */
   4428     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42008689: fld dword ptr [ebp - 0x1c] */
   4429     _st[0] -= (double)*(float*)ADDR(ebx + eax); /* 0x4200868C: fsub dword ptr [ebx + eax] */
   4430     edx = ebx + eax; /* 0x4200868F: lea edx, [ebx + eax] */
   4431     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42008692: fld dword ptr [ebp - 0x18] */
   4432     esi = ebx + eax + 0xC; /* 0x42008695: lea esi, [ebx + eax + 0xc] */
   4433     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x42008699: fsub dword ptr [edx + 4] */
   4434     MEM32(ebp + (-0x14)) = ecx; /* 0x4200869C: mov dword ptr [ebp - 0x14], ecx */
   4435     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4200869F: fld dword ptr [ebp - 0x14] */
   4436     eax = esi; /* 0x420086A2: mov eax, esi */
   4437     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x420086A4: fsub dword ptr [edx + 8] */
   4438     ecx = MEM32(eax); /* 0x420086A7: mov ecx, dword ptr [eax] */
   4439     MEM32(ebp + (-0x28)) = ecx; /* 0x420086A9: mov dword ptr [ebp - 0x28], ecx */
   4440     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086AC: fld dword ptr [ebp - 0x28] */
   4441     _st[0] -= (double)*(float*)ADDR(edx); /* 0x420086AF: fsub dword ptr [edx] */
   4442     ecx = MEM32(eax + 0x4); /* 0x420086B1: mov ecx, dword ptr [eax + 4] */
   4443     eax = MEM32(eax + 0x8); /* 0x420086B4: mov eax, dword ptr [eax + 8] */
   4444     MEM32(ebp + (-0x24)) = ecx; /* 0x420086B7: mov dword ptr [ebp - 0x24], ecx */
   4445     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x420086BA: fstp dword ptr [ebp - 0x28] */
   4446     MEM32(ebp + (-0x20)) = eax; /* 0x420086BD: mov dword ptr [ebp - 0x20], eax */
   4447     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x420086C0: fld dword ptr [ebp - 0x24] */
   4448     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x420086C3: fsub dword ptr [edx + 4] */
   4449     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x420086C6: fstp dword ptr [ebp - 0x24] */
   4450     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x420086C9: fld dword ptr [ebp - 0x20] */
   4451     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x420086CC: fsub dword ptr [edx + 8] */
   4452     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x420086CF: fst dword ptr [ebp - 0x20] */
   4453     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x420086D2: fmul dword ptr [ebp - 0x20] */
   4454     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x420086D5: fld dword ptr [ebp - 0x24] */
   4455     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x420086D8: fmul dword ptr [ebp - 0x24] */
   4456     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086DB: faddp st(1) */
   4457     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086DD: fld dword ptr [ebp - 0x28] */
   4458     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x420086E0: fmul dword ptr [ebp - 0x28] */
   4459     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086E3: faddp st(1) */
   4460     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x420086E5: fstp dword ptr [ebp - 4] */
   4461     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x420086E8: fmul dword ptr [ebp - 0x20] */
   4462     fp_xch(1); /* 0x420086EB: fxch st(1) */
   4463     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x420086ED: fmul dword ptr [ebp - 0x24] */
   4464     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086F0: faddp st(1) */
   4465     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086F2: fld dword ptr [ebp - 0x28] */
   4466     _st[0] *= _st[2]; /* 0x420086F5: fmul st(2) */
   4467     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086F7: faddp st(1) */
   4468     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x420086F9: fstp dword ptr [ebp + 8] */
   4469     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420086FC: fstp st(0) */
   4470     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420086FE: fld dword ptr [ebp + 8] */
   4471     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42008701: fcomp qword ptr [0x420180d8] */
   4472     fp_pop();
   4473     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008707: fnstsw ax */
   4474     /* test HI8(eax), 1 */ /* 0x42008709: test ah, 1 */
   4475     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4476     _cf = 0;
   4477     _flag_k = FK_NARROW(FK_TEST, 24);
   4478     if (TEST_Z(_flag_a, _flag_b)) goto L_420087A0; /* 0x4200870C: je 0x420087a0 */
   4479 L_42008712:
   4480     ecx = MEM32(edx); /* 0x42008712: mov ecx, dword ptr [edx] */
   4481     esi = MEM32(edx + 0x4); /* 0x42008714: mov esi, dword ptr [edx + 4] */
   4482     edx = MEM32(edx + 0x8); /* 0x42008717: mov edx, dword ptr [edx + 8] */
   4483     MEM32(ebp + (-0x14)) = edx; /* 0x4200871A: mov dword ptr [ebp - 0x14], edx */
   4484     eax = edi; /* 0x4200871D: mov eax, edi */
   4485     edx = MEM32(eax); /* 0x4200871F: mov edx, dword ptr [eax] */
   4486     MEM32(ebp + (-0x34)) = edx; /* 0x42008721: mov dword ptr [ebp - 0x34], edx */
   4487     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x42008724: fld dword ptr [ebp - 0x34] */
   4488     edx = MEM32(eax + 0x4); /* 0x42008727: mov edx, dword ptr [eax + 4] */
   4489     eax = MEM32(eax + 0x8); /* 0x4200872A: mov eax, dword ptr [eax + 8] */
   4490     MEM32(ebp + (-0x1C)) = ecx; /* 0x4200872D: mov dword ptr [ebp - 0x1c], ecx */
   4491     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x42008730: fsub dword ptr [ebp - 0x1c] */
   4492     MEM32(ebp + (-0x30)) = edx; /* 0x42008733: mov dword ptr [ebp - 0x30], edx */
   4493     MEM32(ebp + (-0x18)) = esi; /* 0x42008736: mov dword ptr [ebp - 0x18], esi */
   4494     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x42008739: fstp dword ptr [ebp - 0x34] */
   4495     MEM32(ebp + (-0x2C)) = eax; /* 0x4200873C: mov dword ptr [ebp - 0x2c], eax */
   4496     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x4200873F: fld dword ptr [ebp - 0x30] */
   4497     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x42008742: fsub dword ptr [ebp - 0x18] */
   4498     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x42008745: fstp dword ptr [ebp - 0x30] */
   4499     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x42008748: fld dword ptr [ebp - 0x2c] */
   4500     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x4200874B: fsub dword ptr [ebp - 0x14] */
   4501     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x4200874E: fst dword ptr [ebp - 0x2c] */
   4502     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x42008751: fmul dword ptr [ebp - 0x2c] */
   4503     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x42008754: fld dword ptr [ebp - 0x30] */
   4504     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x42008757: fmul dword ptr [ebp - 0x30] */
   4505     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200875A: faddp st(1) */
   4506     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x4200875C: fld dword ptr [ebp - 0x34] */
   4507     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x4200875F: fmul dword ptr [ebp - 0x34] */
   4508     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008762: faddp st(1) */
   4509     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42008764: fst dword ptr [ebp + 8] */
   4510     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008767: fcomp st(1) */
   4511     fp_pop();
   4512     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008769: fnstsw ax */
   4513     /* test HI8(eax), 1 */ /* 0x4200876B: test ah, 1 */
   4514     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4515     _cf = 0;
   4516     _flag_k = FK_NARROW(FK_TEST, 24);
   4517     if (TEST_Z(_flag_a, _flag_b)) goto L_42008836; /* 0x4200876E: je 0x42008836 */
   4518 L_42008774:
   4519     edx = MEM32(ebp + 0xC); /* 0x42008774: mov edx, dword ptr [ebp + 0xc] */
   4520     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008777: fstp st(0) */
   4521     eax = MEM32(ebp + (-0x14)); /* 0x42008779: mov eax, dword ptr [ebp - 0x14] */
   4522     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x4200877C: fld dword ptr [ebp + 8] */
   4523     MEM32(edx) = ecx; /* 0x4200877F: mov dword ptr [edx], ecx */
   4524     ecx = MEM32(ebp + 0x10); /* 0x42008781: mov ecx, dword ptr [ebp + 0x10] */
   4525     MEM32(edx + 0x4) = esi; /* 0x42008784: mov dword ptr [edx + 4], esi */
   4526     MEM32(edx + 0x8) = eax; /* 0x42008787: mov dword ptr [edx + 8], eax */
   4527     edx = MEM32(ebp + (-0x34)); /* 0x4200878A: mov edx, dword ptr [ebp - 0x34] */
   4528     eax = MEM32(ebp + (-0x30)); /* 0x4200878D: mov eax, dword ptr [ebp - 0x30] */
   4529     MEM32(ecx) = edx; /* 0x42008790: mov dword ptr [ecx], edx */
   4530     edx = MEM32(ebp + (-0x2C)); /* 0x42008792: mov edx, dword ptr [ebp - 0x2c] */
   4531     MEM32(ecx + 0x4) = eax; /* 0x42008795: mov dword ptr [ecx + 4], eax */
   4532     MEM32(ecx + 0x8) = edx; /* 0x42008798: mov dword ptr [ecx + 8], edx */
   4533     goto L_42008836; /* 0x4200879B: jmp 0x42008836 */
   4534 L_420087A0:
   4535     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420087A0: fld dword ptr [ebp + 8] */
   4536     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x420087A3: fcomp dword ptr [ebp - 4] */
   4537     fp_pop();
   4538     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420087A6: fnstsw ax */
   4539     /* test HI8(eax), 0x41u */ /* 0x420087A8: test ah, 0x41 */
   4540     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4541     _cf = 0;
   4542     _flag_k = FK_NARROW(FK_TEST, 24);
   4543     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008850; /* 0x420087AB: jne 0x42008850 */
   4544 L_420087B1:
   4545     edx = MEM32(esi); /* 0x420087B1: mov edx, dword ptr [esi] */
   4546     ebx = MEM32(esi + 0x4); /* 0x420087B3: mov ebx, dword ptr [esi + 4] */
   4547     esi = MEM32(esi + 0x8); /* 0x420087B6: mov esi, dword ptr [esi + 8] */
   4548     eax = edi; /* 0x420087B9: mov eax, edi */
   4549     ecx = MEM32(eax); /* 0x420087BB: mov ecx, dword ptr [eax] */
   4550     MEM32(ebp + (-0x40)) = ecx; /* 0x420087BD: mov dword ptr [ebp - 0x40], ecx */
   4551     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x420087C0: fld dword ptr [ebp - 0x40] */
   4552     ecx = MEM32(eax + 0x4); /* 0x420087C3: mov ecx, dword ptr [eax + 4] */
   4553     eax = MEM32(eax + 0x8); /* 0x420087C6: mov eax, dword ptr [eax + 8] */
   4554     MEM32(ebp + (-0x1C)) = edx; /* 0x420087C9: mov dword ptr [ebp - 0x1c], edx */
   4555     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x420087CC: fsub dword ptr [ebp - 0x1c] */
   4556     MEM32(ebp + (-0x3C)) = ecx; /* 0x420087CF: mov dword ptr [ebp - 0x3c], ecx */
   4557     MEM32(ebp + (-0x18)) = ebx; /* 0x420087D2: mov dword ptr [ebp - 0x18], ebx */
   4558     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x420087D5: fstp dword ptr [ebp - 0x40] */
   4559     MEM32(ebp + (-0x38)) = eax; /* 0x420087D8: mov dword ptr [ebp - 0x38], eax */
   4560     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x420087DB: fld dword ptr [ebp - 0x3c] */
   4561     MEM32(ebp + (-0x14)) = esi; /* 0x420087DE: mov dword ptr [ebp - 0x14], esi */
   4562     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x420087E1: fsub dword ptr [ebp - 0x18] */
   4563     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x420087E4: fstp dword ptr [ebp - 0x3c] */
   4564     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x420087E7: fld dword ptr [ebp - 0x38] */
   4565     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x420087EA: fsub dword ptr [ebp - 0x14] */
   4566     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x420087ED: fst dword ptr [ebp - 0x38] */
   4567     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x420087F0: fmul dword ptr [ebp - 0x38] */
   4568     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x420087F3: fld dword ptr [ebp - 0x3c] */
   4569     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x420087F6: fmul dword ptr [ebp - 0x3c] */
   4570     { double _v = fp_pop(); _st[0] += _v; } /* 0x420087F9: faddp st(1) */
   4571     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x420087FB: fld dword ptr [ebp - 0x40] */
   4572     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x420087FE: fmul dword ptr [ebp - 0x40] */
   4573     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008801: faddp st(1) */
   4574     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42008803: fst dword ptr [ebp + 8] */
   4575     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008806: fcomp st(1) */
   4576     fp_pop();
   4577     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008808: fnstsw ax */
   4578     /* test HI8(eax), 1 */ /* 0x4200880A: test ah, 1 */
   4579     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4580     _cf = 0;
   4581     _flag_k = FK_NARROW(FK_TEST, 24);
   4582     if (TEST_Z(_flag_a, _flag_b)) goto L_42008833; /* 0x4200880D: je 0x42008833 */
   4583 L_4200880F:
   4584     ecx = MEM32(ebp + 0xC); /* 0x4200880F: mov ecx, dword ptr [ebp + 0xc] */
   4585     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008812: fstp st(0) */
   4586     eax = MEM32(ebp + (-0x40)); /* 0x42008814: mov eax, dword ptr [ebp - 0x40] */
   4587     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42008817: fld dword ptr [ebp + 8] */
   4588     MEM32(ecx) = edx; /* 0x4200881A: mov dword ptr [ecx], edx */
   4589     edx = MEM32(ebp + 0x10); /* 0x4200881C: mov edx, dword ptr [ebp + 0x10] */
   4590     MEM32(ecx + 0x4) = ebx; /* 0x4200881F: mov dword ptr [ecx + 4], ebx */
   4591     MEM32(ecx + 0x8) = esi; /* 0x42008822: mov dword ptr [ecx + 8], esi */
   4592     ecx = MEM32(ebp + (-0x3C)); /* 0x42008825: mov ecx, dword ptr [ebp - 0x3c] */
   4593     MEM32(edx) = eax; /* 0x42008828: mov dword ptr [edx], eax */
   4594     eax = MEM32(ebp + (-0x38)); /* 0x4200882A: mov eax, dword ptr [ebp - 0x38] */
   4595     MEM32(edx + 0x4) = ecx; /* 0x4200882D: mov dword ptr [edx + 4], ecx */
   4596     MEM32(edx + 0x8) = eax; /* 0x42008830: mov dword ptr [edx + 8], eax */
   4597 L_42008833:
   4598     ebx = MEM32(ebp + (-0x8)); /* 0x42008833: mov ebx, dword ptr [ebp - 8] */
   4599 L_42008836:
   4600     eax = MEM32(ebp + (-0xC)); /* 0x42008836: mov eax, dword ptr [ebp - 0xc] */
   4601     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   4602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4603     ebx = ebx + 0xCu; /* 0x42008839: add ebx, 0xc */
   4604     _flag_k = FK_ADD;
   4605     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4606     eax = eax - 1; /* 0x4200883C: dec eax */
   4607     _flag_k = FK_DEC;
   4608     MEM32(ebp + (-0x8)) = ebx; /* 0x4200883D: mov dword ptr [ebp - 8], ebx */
   4609     MEM32(ebp + (-0xC)) = eax; /* 0x42008840: mov dword ptr [ebp - 0xc], eax */
   4610     RECOMP_BACKEDGE();
   4611     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_42008673; /* 0x42008843: jne 0x42008673 */
   4612 L_42008849:
   4613     edi = POP32_VAL(esp); /* 0x42008849: pop edi */
   4614     ebx = POP32_VAL(esp); /* 0x4200884A: pop ebx */
   4615     goto L_42008923; /* 0x4200884B: jmp 0x42008923 */
   4616 L_42008850:
   4617     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42008850: fld dword ptr [ebp + 8] */
   4618     ecx = MEM32(edx); /* 0x42008853: mov ecx, dword ptr [edx] */
   4619     _st[0] = sqrt(_st[0]); /* 0x42008855: fsqrt  */
   4620     eax = MEM32(edx + 0x4); /* 0x42008857: mov eax, dword ptr [edx + 4] */
   4621     MEM32(ebp + (-0x1C)) = ecx; /* 0x4200885A: mov dword ptr [ebp - 0x1c], ecx */
   4622     ecx = MEM32(edx + 0x8); /* 0x4200885D: mov ecx, dword ptr [edx + 8] */
   4623     MEM32(ebp + (-0x18)) = eax; /* 0x42008860: mov dword ptr [ebp - 0x18], eax */
   4624     MEM32(ebp + (-0x14)) = ecx; /* 0x42008863: mov dword ptr [ebp - 0x14], ecx */
   4625     edx = edi; /* 0x42008866: mov edx, edi */
   4626     eax = MEM32(edx); /* 0x42008868: mov eax, dword ptr [edx] */
   4627     ecx = MEM32(edx + 0x4); /* 0x4200886A: mov ecx, dword ptr [edx + 4] */
   4628     edx = MEM32(edx + 0x8); /* 0x4200886D: mov edx, dword ptr [edx + 8] */
   4629     MEM32(ebp + (-0x4C)) = eax; /* 0x42008870: mov dword ptr [ebp - 0x4c], eax */
   4630     MEM32(ebp + (-0x48)) = ecx; /* 0x42008873: mov dword ptr [ebp - 0x48], ecx */
   4631     MEM32(ebp + (-0x44)) = edx; /* 0x42008876: mov dword ptr [ebp - 0x44], edx */
   4632     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42008879: fld dword ptr [ebp - 4] */
   4633     _st[0] = sqrt(_st[0]); /* 0x4200887C: fsqrt  */
   4634     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x4200887E: fdivp st(1) */
   4635     fp_push(_st[0]); /* 0x42008880: fld st(0) */
   4636     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x42008882: fmul dword ptr [ebp - 0x28] */
   4637     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x42008885: fstp dword ptr [ebp - 0x28] */
   4638     fp_push(_st[0]); /* 0x42008888: fld st(0) */
   4639     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x4200888A: fmul dword ptr [ebp - 0x24] */
   4640     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x4200888D: fstp dword ptr [ebp - 0x24] */
   4641     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x42008890: fmul dword ptr [ebp - 0x20] */
   4642     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x42008893: fld dword ptr [ebp - 0x28] */
   4643     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x42008896: fadd dword ptr [ebp - 0x1c] */
   4644     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x42008899: fstp dword ptr [ebp - 0x1c] */
   4645     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x4200889C: fld dword ptr [ebp - 0x18] */
   4646     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x4200889F: fadd dword ptr [ebp - 0x24] */
   4647     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x420088A2: fstp dword ptr [ebp - 0x18] */
   4648     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x420088A5: fld dword ptr [ebp - 0x14] */
   4649     _st[0] += _st[1]; /* 0x420088A8: fadd st(1) */
   4650     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x420088AA: fstp dword ptr [ebp - 0x14] */
   4651     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420088AD: fstp st(0) */
   4652     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x420088AF: fld dword ptr [ebp - 0x4c] */
   4653     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x420088B2: fsub dword ptr [ebp - 0x1c] */
   4654     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x420088B5: fstp dword ptr [ebp - 0x4c] */
   4655     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x420088B8: fld dword ptr [ebp - 0x48] */
   4656     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x420088BB: fsub dword ptr [ebp - 0x18] */
   4657     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x420088BE: fstp dword ptr [ebp - 0x48] */
   4658     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x420088C1: fld dword ptr [ebp - 0x44] */
   4659     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x420088C4: fsub dword ptr [ebp - 0x14] */
   4660     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x420088C7: fst dword ptr [ebp - 0x44] */
   4661     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x420088CA: fmul dword ptr [ebp - 0x44] */
   4662     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x420088CD: fld dword ptr [ebp - 0x48] */
   4663     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x420088D0: fmul dword ptr [ebp - 0x48] */
   4664     { double _v = fp_pop(); _st[0] += _v; } /* 0x420088D3: faddp st(1) */
   4665     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x420088D5: fld dword ptr [ebp - 0x4c] */
   4666     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x420088D8: fmul dword ptr [ebp - 0x4c] */
   4667     { double _v = fp_pop(); _st[0] += _v; } /* 0x420088DB: faddp st(1) */
   4668     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x420088DD: fst dword ptr [ebp + 8] */
   4669     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x420088E0: fcomp st(1) */
   4670     fp_pop();
   4671     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420088E2: fnstsw ax */
   4672     /* test HI8(eax), 1 */ /* 0x420088E4: test ah, 1 */
   4673     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4674     _cf = 0;
   4675     _flag_k = FK_NARROW(FK_TEST, 24);
   4676     RECOMP_BACKEDGE();
   4677     if (TEST_Z(_flag_a, _flag_b)) goto L_42008836; /* 0x420088E7: je 0x42008836 */
   4678 L_420088ED:
   4679     ecx = MEM32(ebp + (-0x1C)); /* 0x420088ED: mov ecx, dword ptr [ebp - 0x1c] */
   4680     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420088F0: fstp st(0) */
   4681     eax = MEM32(ebp + 0xC); /* 0x420088F2: mov eax, dword ptr [ebp + 0xc] */
   4682     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420088F5: fld dword ptr [ebp + 8] */
   4683     edx = MEM32(ebp + (-0x18)); /* 0x420088F8: mov edx, dword ptr [ebp - 0x18] */
   4684     MEM32(eax) = ecx; /* 0x420088FB: mov dword ptr [eax], ecx */
   4685     ecx = MEM32(ebp + (-0x14)); /* 0x420088FD: mov ecx, dword ptr [ebp - 0x14] */
   4686     MEM32(eax + 0x4) = edx; /* 0x42008900: mov dword ptr [eax + 4], edx */
   4687     edx = MEM32(ebp + 0x10); /* 0x42008903: mov edx, dword ptr [ebp + 0x10] */
   4688     MEM32(eax + 0x8) = ecx; /* 0x42008906: mov dword ptr [eax + 8], ecx */
   4689     eax = MEM32(ebp + (-0x4C)); /* 0x42008909: mov eax, dword ptr [ebp - 0x4c] */
   4690     ecx = MEM32(ebp + (-0x48)); /* 0x4200890C: mov ecx, dword ptr [ebp - 0x48] */
   4691     MEM32(edx) = eax; /* 0x4200890F: mov dword ptr [edx], eax */
   4692     eax = MEM32(ebp + (-0x44)); /* 0x42008911: mov eax, dword ptr [ebp - 0x44] */
   4693     MEM32(edx + 0x4) = ecx; /* 0x42008914: mov dword ptr [edx + 4], ecx */
   4694     MEM32(edx + 0x8) = eax; /* 0x42008917: mov dword ptr [edx + 8], eax */
   4695     RECOMP_BACKEDGE();
   4696     goto L_42008836; /* 0x4200891A: jmp 0x42008836 */
   4697 L_4200891F:
   4698     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x4200891F: fstp st(0) */
   4699     goto L_42008928; /* 0x42008921: jmp 0x42008928 */
   4700 L_42008923:
   4701     esi = MEM32(ebp + (-0x10)); /* 0x42008923: mov esi, dword ptr [ebp - 0x10] */
   4702     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008926: fstp st(0) */
   4703 L_42008928:
   4704     fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x42008928: fld dword ptr [esi + 0x24] */
   4705     esi = POP32_VAL(esp); /* 0x4200892B: pop esi */
   4706     fp_push(_st[0]); /* 0x4200892C: fld st(0) */
   4707     _st[0] *= _st[1]; /* 0x4200892E: fmul st(1) */
   4708     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42008930: fld dword ptr [ebp - 4] */
   4709     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008933: fcompp  */
   4710     fp_pop(); fp_pop();
   4711     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008935: fnstsw ax */
   4712     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008937: fstp st(0) */
   4713     /* test HI8(eax), 1 */ /* 0x42008939: test ah, 1 */
   4714     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4715     _cf = 0;
   4716     _flag_k = FK_NARROW(FK_TEST, 24);
   4717     if (TEST_Z(_flag_a, _flag_b)) goto L_42008949; /* 0x4200893C: je 0x42008949 */
   4718 L_4200893E:
   4719     eax = 1; /* 0x4200893E: mov eax, 1 */
   4720     esp = ebp; /* 0x42008943: mov esp, ebp */
   4721     ebp = POP32_VAL(esp); /* 0x42008945: pop ebp */
   4722     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008946: ret 0xc */
   4723 L_42008949:
   4724     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4725     eax = 0; /* 0x42008949: xor eax, eax */
   4726     _cf = 0;
   4727     _flag_k = FK_TEST;
   4728     esp = ebp; /* 0x4200894B: mov esp, ebp */
   4729     ebp = POP32_VAL(esp); /* 0x4200894D: pop ebp */
   4730     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200894E: ret 0xc */
   4731     RECOMP_REGS_OUT();
   4732 }
   4733 
   4734 void sub_42008673(void) {
   4735     int _fpu_cmp = 0;
   4736     uint32_t _cf = 0;
   4737     int _df = 1;
   4738     uint32_t _flag_k = FK_NONE;
   4739     uint32_t _flag_a = 0, _flag_b = 0;
   4740     uint32_t _itail_tgt = 0;
   4741     RECOMP_REGS_LOCALS
   4742     RECOMP_ENTER(0x42008673u);
   4743 
   4744 L_42008673:
   4745     esi = MEM32(ebp + (-0x10)); /* 0x42008673: mov esi, dword ptr [ebp - 0x10] */
   4746     ecx = edi; /* 0x42008676: mov ecx, edi */
   4747     edx = MEM32(ecx); /* 0x42008678: mov edx, dword ptr [ecx] */
   4748     eax = MEM32(ecx + 0x4); /* 0x4200867A: mov eax, dword ptr [ecx + 4] */
   4749     ecx = MEM32(ecx + 0x8); /* 0x4200867D: mov ecx, dword ptr [ecx + 8] */
   4750     MEM32(ebp + (-0x18)) = eax; /* 0x42008680: mov dword ptr [ebp - 0x18], eax */
   4751     eax = MEM32(esi + 0x8); /* 0x42008683: mov eax, dword ptr [esi + 8] */
   4752     MEM32(ebp + (-0x1C)) = edx; /* 0x42008686: mov dword ptr [ebp - 0x1c], edx */
   4753     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42008689: fld dword ptr [ebp - 0x1c] */
   4754     _st[0] -= (double)*(float*)ADDR(ebx + eax); /* 0x4200868C: fsub dword ptr [ebx + eax] */
   4755     edx = ebx + eax; /* 0x4200868F: lea edx, [ebx + eax] */
   4756     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42008692: fld dword ptr [ebp - 0x18] */
   4757     esi = ebx + eax + 0xC; /* 0x42008695: lea esi, [ebx + eax + 0xc] */
   4758     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x42008699: fsub dword ptr [edx + 4] */
   4759     MEM32(ebp + (-0x14)) = ecx; /* 0x4200869C: mov dword ptr [ebp - 0x14], ecx */
   4760     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4200869F: fld dword ptr [ebp - 0x14] */
   4761     eax = esi; /* 0x420086A2: mov eax, esi */
   4762     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x420086A4: fsub dword ptr [edx + 8] */
   4763     ecx = MEM32(eax); /* 0x420086A7: mov ecx, dword ptr [eax] */
   4764     MEM32(ebp + (-0x28)) = ecx; /* 0x420086A9: mov dword ptr [ebp - 0x28], ecx */
   4765     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086AC: fld dword ptr [ebp - 0x28] */
   4766     _st[0] -= (double)*(float*)ADDR(edx); /* 0x420086AF: fsub dword ptr [edx] */
   4767     ecx = MEM32(eax + 0x4); /* 0x420086B1: mov ecx, dword ptr [eax + 4] */
   4768     eax = MEM32(eax + 0x8); /* 0x420086B4: mov eax, dword ptr [eax + 8] */
   4769     MEM32(ebp + (-0x24)) = ecx; /* 0x420086B7: mov dword ptr [ebp - 0x24], ecx */
   4770     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x420086BA: fstp dword ptr [ebp - 0x28] */
   4771     MEM32(ebp + (-0x20)) = eax; /* 0x420086BD: mov dword ptr [ebp - 0x20], eax */
   4772     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x420086C0: fld dword ptr [ebp - 0x24] */
   4773     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x420086C3: fsub dword ptr [edx + 4] */
   4774     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x420086C6: fstp dword ptr [ebp - 0x24] */
   4775     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x420086C9: fld dword ptr [ebp - 0x20] */
   4776     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x420086CC: fsub dword ptr [edx + 8] */
   4777     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x420086CF: fst dword ptr [ebp - 0x20] */
   4778     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x420086D2: fmul dword ptr [ebp - 0x20] */
   4779     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x420086D5: fld dword ptr [ebp - 0x24] */
   4780     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x420086D8: fmul dword ptr [ebp - 0x24] */
   4781     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086DB: faddp st(1) */
   4782     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086DD: fld dword ptr [ebp - 0x28] */
   4783     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x420086E0: fmul dword ptr [ebp - 0x28] */
   4784     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086E3: faddp st(1) */
   4785     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x420086E5: fstp dword ptr [ebp - 4] */
   4786     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x420086E8: fmul dword ptr [ebp - 0x20] */
   4787     fp_xch(1); /* 0x420086EB: fxch st(1) */
   4788     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x420086ED: fmul dword ptr [ebp - 0x24] */
   4789     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086F0: faddp st(1) */
   4790     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086F2: fld dword ptr [ebp - 0x28] */
   4791     _st[0] *= _st[2]; /* 0x420086F5: fmul st(2) */
   4792     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086F7: faddp st(1) */
   4793     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x420086F9: fstp dword ptr [ebp + 8] */
   4794     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420086FC: fstp st(0) */
   4795     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420086FE: fld dword ptr [ebp + 8] */
   4796     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42008701: fcomp qword ptr [0x420180d8] */
   4797     fp_pop();
   4798     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008707: fnstsw ax */
   4799     /* test HI8(eax), 1 */ /* 0x42008709: test ah, 1 */
   4800     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4801     _cf = 0;
   4802     _flag_k = FK_NARROW(FK_TEST, 24);
   4803     if (TEST_Z(_flag_a, _flag_b)) goto L_420087A0; /* 0x4200870C: je 0x420087a0 */
   4804 L_42008712:
   4805     ecx = MEM32(edx); /* 0x42008712: mov ecx, dword ptr [edx] */
   4806     esi = MEM32(edx + 0x4); /* 0x42008714: mov esi, dword ptr [edx + 4] */
   4807     edx = MEM32(edx + 0x8); /* 0x42008717: mov edx, dword ptr [edx + 8] */
   4808     MEM32(ebp + (-0x14)) = edx; /* 0x4200871A: mov dword ptr [ebp - 0x14], edx */
   4809     eax = edi; /* 0x4200871D: mov eax, edi */
   4810     edx = MEM32(eax); /* 0x4200871F: mov edx, dword ptr [eax] */
   4811     MEM32(ebp + (-0x34)) = edx; /* 0x42008721: mov dword ptr [ebp - 0x34], edx */
   4812     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x42008724: fld dword ptr [ebp - 0x34] */
   4813     edx = MEM32(eax + 0x4); /* 0x42008727: mov edx, dword ptr [eax + 4] */
   4814     eax = MEM32(eax + 0x8); /* 0x4200872A: mov eax, dword ptr [eax + 8] */
   4815     MEM32(ebp + (-0x1C)) = ecx; /* 0x4200872D: mov dword ptr [ebp - 0x1c], ecx */
   4816     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x42008730: fsub dword ptr [ebp - 0x1c] */
   4817     MEM32(ebp + (-0x30)) = edx; /* 0x42008733: mov dword ptr [ebp - 0x30], edx */
   4818     MEM32(ebp + (-0x18)) = esi; /* 0x42008736: mov dword ptr [ebp - 0x18], esi */
   4819     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x42008739: fstp dword ptr [ebp - 0x34] */
   4820     MEM32(ebp + (-0x2C)) = eax; /* 0x4200873C: mov dword ptr [ebp - 0x2c], eax */
   4821     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x4200873F: fld dword ptr [ebp - 0x30] */
   4822     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x42008742: fsub dword ptr [ebp - 0x18] */
   4823     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x42008745: fstp dword ptr [ebp - 0x30] */
   4824     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x42008748: fld dword ptr [ebp - 0x2c] */
   4825     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x4200874B: fsub dword ptr [ebp - 0x14] */
   4826     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x4200874E: fst dword ptr [ebp - 0x2c] */
   4827     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x42008751: fmul dword ptr [ebp - 0x2c] */
   4828     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x42008754: fld dword ptr [ebp - 0x30] */
   4829     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x42008757: fmul dword ptr [ebp - 0x30] */
   4830     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200875A: faddp st(1) */
   4831     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x4200875C: fld dword ptr [ebp - 0x34] */
   4832     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x4200875F: fmul dword ptr [ebp - 0x34] */
   4833     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008762: faddp st(1) */
   4834     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42008764: fst dword ptr [ebp + 8] */
   4835     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008767: fcomp st(1) */
   4836     fp_pop();
   4837     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008769: fnstsw ax */
   4838     /* test HI8(eax), 1 */ /* 0x4200876B: test ah, 1 */
   4839     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4840     _cf = 0;
   4841     _flag_k = FK_NARROW(FK_TEST, 24);
   4842     if (TEST_Z(_flag_a, _flag_b)) goto L_42008836; /* 0x4200876E: je 0x42008836 */
   4843 L_42008774:
   4844     edx = MEM32(ebp + 0xC); /* 0x42008774: mov edx, dword ptr [ebp + 0xc] */
   4845     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008777: fstp st(0) */
   4846     eax = MEM32(ebp + (-0x14)); /* 0x42008779: mov eax, dword ptr [ebp - 0x14] */
   4847     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x4200877C: fld dword ptr [ebp + 8] */
   4848     MEM32(edx) = ecx; /* 0x4200877F: mov dword ptr [edx], ecx */
   4849     ecx = MEM32(ebp + 0x10); /* 0x42008781: mov ecx, dword ptr [ebp + 0x10] */
   4850     MEM32(edx + 0x4) = esi; /* 0x42008784: mov dword ptr [edx + 4], esi */
   4851     MEM32(edx + 0x8) = eax; /* 0x42008787: mov dword ptr [edx + 8], eax */
   4852     edx = MEM32(ebp + (-0x34)); /* 0x4200878A: mov edx, dword ptr [ebp - 0x34] */
   4853     eax = MEM32(ebp + (-0x30)); /* 0x4200878D: mov eax, dword ptr [ebp - 0x30] */
   4854     MEM32(ecx) = edx; /* 0x42008790: mov dword ptr [ecx], edx */
   4855     edx = MEM32(ebp + (-0x2C)); /* 0x42008792: mov edx, dword ptr [ebp - 0x2c] */
   4856     MEM32(ecx + 0x4) = eax; /* 0x42008795: mov dword ptr [ecx + 4], eax */
   4857     MEM32(ecx + 0x8) = edx; /* 0x42008798: mov dword ptr [ecx + 8], edx */
   4858     goto L_42008836; /* 0x4200879B: jmp 0x42008836 */
   4859 L_420087A0:
   4860     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420087A0: fld dword ptr [ebp + 8] */
   4861     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x420087A3: fcomp dword ptr [ebp - 4] */
   4862     fp_pop();
   4863     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420087A6: fnstsw ax */
   4864     /* test HI8(eax), 0x41u */ /* 0x420087A8: test ah, 0x41 */
   4865     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4866     _cf = 0;
   4867     _flag_k = FK_NARROW(FK_TEST, 24);
   4868     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008850; /* 0x420087AB: jne 0x42008850 */
   4869 L_420087B1:
   4870     edx = MEM32(esi); /* 0x420087B1: mov edx, dword ptr [esi] */
   4871     ebx = MEM32(esi + 0x4); /* 0x420087B3: mov ebx, dword ptr [esi + 4] */
   4872     esi = MEM32(esi + 0x8); /* 0x420087B6: mov esi, dword ptr [esi + 8] */
   4873     eax = edi; /* 0x420087B9: mov eax, edi */
   4874     ecx = MEM32(eax); /* 0x420087BB: mov ecx, dword ptr [eax] */
   4875     MEM32(ebp + (-0x40)) = ecx; /* 0x420087BD: mov dword ptr [ebp - 0x40], ecx */
   4876     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x420087C0: fld dword ptr [ebp - 0x40] */
   4877     ecx = MEM32(eax + 0x4); /* 0x420087C3: mov ecx, dword ptr [eax + 4] */
   4878     eax = MEM32(eax + 0x8); /* 0x420087C6: mov eax, dword ptr [eax + 8] */
   4879     MEM32(ebp + (-0x1C)) = edx; /* 0x420087C9: mov dword ptr [ebp - 0x1c], edx */
   4880     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x420087CC: fsub dword ptr [ebp - 0x1c] */
   4881     MEM32(ebp + (-0x3C)) = ecx; /* 0x420087CF: mov dword ptr [ebp - 0x3c], ecx */
   4882     MEM32(ebp + (-0x18)) = ebx; /* 0x420087D2: mov dword ptr [ebp - 0x18], ebx */
   4883     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x420087D5: fstp dword ptr [ebp - 0x40] */
   4884     MEM32(ebp + (-0x38)) = eax; /* 0x420087D8: mov dword ptr [ebp - 0x38], eax */
   4885     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x420087DB: fld dword ptr [ebp - 0x3c] */
   4886     MEM32(ebp + (-0x14)) = esi; /* 0x420087DE: mov dword ptr [ebp - 0x14], esi */
   4887     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x420087E1: fsub dword ptr [ebp - 0x18] */
   4888     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x420087E4: fstp dword ptr [ebp - 0x3c] */
   4889     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x420087E7: fld dword ptr [ebp - 0x38] */
   4890     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x420087EA: fsub dword ptr [ebp - 0x14] */
   4891     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x420087ED: fst dword ptr [ebp - 0x38] */
   4892     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x420087F0: fmul dword ptr [ebp - 0x38] */
   4893     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x420087F3: fld dword ptr [ebp - 0x3c] */
   4894     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x420087F6: fmul dword ptr [ebp - 0x3c] */
   4895     { double _v = fp_pop(); _st[0] += _v; } /* 0x420087F9: faddp st(1) */
   4896     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x420087FB: fld dword ptr [ebp - 0x40] */
   4897     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x420087FE: fmul dword ptr [ebp - 0x40] */
   4898     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008801: faddp st(1) */
   4899     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42008803: fst dword ptr [ebp + 8] */
   4900     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008806: fcomp st(1) */
   4901     fp_pop();
   4902     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008808: fnstsw ax */
   4903     /* test HI8(eax), 1 */ /* 0x4200880A: test ah, 1 */
   4904     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4905     _cf = 0;
   4906     _flag_k = FK_NARROW(FK_TEST, 24);
   4907     if (TEST_Z(_flag_a, _flag_b)) goto L_42008833; /* 0x4200880D: je 0x42008833 */
   4908 L_4200880F:
   4909     ecx = MEM32(ebp + 0xC); /* 0x4200880F: mov ecx, dword ptr [ebp + 0xc] */
   4910     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008812: fstp st(0) */
   4911     eax = MEM32(ebp + (-0x40)); /* 0x42008814: mov eax, dword ptr [ebp - 0x40] */
   4912     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42008817: fld dword ptr [ebp + 8] */
   4913     MEM32(ecx) = edx; /* 0x4200881A: mov dword ptr [ecx], edx */
   4914     edx = MEM32(ebp + 0x10); /* 0x4200881C: mov edx, dword ptr [ebp + 0x10] */
   4915     MEM32(ecx + 0x4) = ebx; /* 0x4200881F: mov dword ptr [ecx + 4], ebx */
   4916     MEM32(ecx + 0x8) = esi; /* 0x42008822: mov dword ptr [ecx + 8], esi */
   4917     ecx = MEM32(ebp + (-0x3C)); /* 0x42008825: mov ecx, dword ptr [ebp - 0x3c] */
   4918     MEM32(edx) = eax; /* 0x42008828: mov dword ptr [edx], eax */
   4919     eax = MEM32(ebp + (-0x38)); /* 0x4200882A: mov eax, dword ptr [ebp - 0x38] */
   4920     MEM32(edx + 0x4) = ecx; /* 0x4200882D: mov dword ptr [edx + 4], ecx */
   4921     MEM32(edx + 0x8) = eax; /* 0x42008830: mov dword ptr [edx + 8], eax */
   4922 L_42008833:
   4923     ebx = MEM32(ebp + (-0x8)); /* 0x42008833: mov ebx, dword ptr [ebp - 8] */
   4924 L_42008836:
   4925     eax = MEM32(ebp + (-0xC)); /* 0x42008836: mov eax, dword ptr [ebp - 0xc] */
   4926     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   4927     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4928     ebx = ebx + 0xCu; /* 0x42008839: add ebx, 0xc */
   4929     _flag_k = FK_ADD;
   4930     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4931     eax = eax - 1; /* 0x4200883C: dec eax */
   4932     _flag_k = FK_DEC;
   4933     MEM32(ebp + (-0x8)) = ebx; /* 0x4200883D: mov dword ptr [ebp - 8], ebx */
   4934     MEM32(ebp + (-0xC)) = eax; /* 0x42008840: mov dword ptr [ebp - 0xc], eax */
   4935     RECOMP_BACKEDGE();
   4936     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_42008673; /* 0x42008843: jne 0x42008673 */
   4937 L_42008849:
   4938     edi = POP32_VAL(esp); /* 0x42008849: pop edi */
   4939     ebx = POP32_VAL(esp); /* 0x4200884A: pop ebx */
   4940     goto L_42008923; /* 0x4200884B: jmp 0x42008923 */
   4941 L_42008850:
   4942     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42008850: fld dword ptr [ebp + 8] */
   4943     ecx = MEM32(edx); /* 0x42008853: mov ecx, dword ptr [edx] */
   4944     _st[0] = sqrt(_st[0]); /* 0x42008855: fsqrt  */
   4945     eax = MEM32(edx + 0x4); /* 0x42008857: mov eax, dword ptr [edx + 4] */
   4946     MEM32(ebp + (-0x1C)) = ecx; /* 0x4200885A: mov dword ptr [ebp - 0x1c], ecx */
   4947     ecx = MEM32(edx + 0x8); /* 0x4200885D: mov ecx, dword ptr [edx + 8] */
   4948     MEM32(ebp + (-0x18)) = eax; /* 0x42008860: mov dword ptr [ebp - 0x18], eax */
   4949     MEM32(ebp + (-0x14)) = ecx; /* 0x42008863: mov dword ptr [ebp - 0x14], ecx */
   4950     edx = edi; /* 0x42008866: mov edx, edi */
   4951     eax = MEM32(edx); /* 0x42008868: mov eax, dword ptr [edx] */
   4952     ecx = MEM32(edx + 0x4); /* 0x4200886A: mov ecx, dword ptr [edx + 4] */
   4953     edx = MEM32(edx + 0x8); /* 0x4200886D: mov edx, dword ptr [edx + 8] */
   4954     MEM32(ebp + (-0x4C)) = eax; /* 0x42008870: mov dword ptr [ebp - 0x4c], eax */
   4955     MEM32(ebp + (-0x48)) = ecx; /* 0x42008873: mov dword ptr [ebp - 0x48], ecx */
   4956     MEM32(ebp + (-0x44)) = edx; /* 0x42008876: mov dword ptr [ebp - 0x44], edx */
   4957     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42008879: fld dword ptr [ebp - 4] */
   4958     _st[0] = sqrt(_st[0]); /* 0x4200887C: fsqrt  */
   4959     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x4200887E: fdivp st(1) */
   4960     fp_push(_st[0]); /* 0x42008880: fld st(0) */
   4961     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x42008882: fmul dword ptr [ebp - 0x28] */
   4962     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x42008885: fstp dword ptr [ebp - 0x28] */
   4963     fp_push(_st[0]); /* 0x42008888: fld st(0) */
   4964     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x4200888A: fmul dword ptr [ebp - 0x24] */
   4965     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x4200888D: fstp dword ptr [ebp - 0x24] */
   4966     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x42008890: fmul dword ptr [ebp - 0x20] */
   4967     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x42008893: fld dword ptr [ebp - 0x28] */
   4968     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x42008896: fadd dword ptr [ebp - 0x1c] */
   4969     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x42008899: fstp dword ptr [ebp - 0x1c] */
   4970     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x4200889C: fld dword ptr [ebp - 0x18] */
   4971     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x4200889F: fadd dword ptr [ebp - 0x24] */
   4972     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x420088A2: fstp dword ptr [ebp - 0x18] */
   4973     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x420088A5: fld dword ptr [ebp - 0x14] */
   4974     _st[0] += _st[1]; /* 0x420088A8: fadd st(1) */
   4975     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x420088AA: fstp dword ptr [ebp - 0x14] */
   4976     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420088AD: fstp st(0) */
   4977     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x420088AF: fld dword ptr [ebp - 0x4c] */
   4978     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x420088B2: fsub dword ptr [ebp - 0x1c] */
   4979     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x420088B5: fstp dword ptr [ebp - 0x4c] */
   4980     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x420088B8: fld dword ptr [ebp - 0x48] */
   4981     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x420088BB: fsub dword ptr [ebp - 0x18] */
   4982     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x420088BE: fstp dword ptr [ebp - 0x48] */
   4983     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x420088C1: fld dword ptr [ebp - 0x44] */
   4984     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x420088C4: fsub dword ptr [ebp - 0x14] */
   4985     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x420088C7: fst dword ptr [ebp - 0x44] */
   4986     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x420088CA: fmul dword ptr [ebp - 0x44] */
   4987     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x420088CD: fld dword ptr [ebp - 0x48] */
   4988     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x420088D0: fmul dword ptr [ebp - 0x48] */
   4989     { double _v = fp_pop(); _st[0] += _v; } /* 0x420088D3: faddp st(1) */
   4990     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x420088D5: fld dword ptr [ebp - 0x4c] */
   4991     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x420088D8: fmul dword ptr [ebp - 0x4c] */
   4992     { double _v = fp_pop(); _st[0] += _v; } /* 0x420088DB: faddp st(1) */
   4993     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x420088DD: fst dword ptr [ebp + 8] */
   4994     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x420088E0: fcomp st(1) */
   4995     fp_pop();
   4996     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420088E2: fnstsw ax */
   4997     /* test HI8(eax), 1 */ /* 0x420088E4: test ah, 1 */
   4998     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4999     _cf = 0;
   5000     _flag_k = FK_NARROW(FK_TEST, 24);
   5001     RECOMP_BACKEDGE();
   5002     if (TEST_Z(_flag_a, _flag_b)) goto L_42008836; /* 0x420088E7: je 0x42008836 */
   5003 L_420088ED:
   5004     ecx = MEM32(ebp + (-0x1C)); /* 0x420088ED: mov ecx, dword ptr [ebp - 0x1c] */
   5005     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420088F0: fstp st(0) */
   5006     eax = MEM32(ebp + 0xC); /* 0x420088F2: mov eax, dword ptr [ebp + 0xc] */
   5007     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420088F5: fld dword ptr [ebp + 8] */
   5008     edx = MEM32(ebp + (-0x18)); /* 0x420088F8: mov edx, dword ptr [ebp - 0x18] */
   5009     MEM32(eax) = ecx; /* 0x420088FB: mov dword ptr [eax], ecx */
   5010     ecx = MEM32(ebp + (-0x14)); /* 0x420088FD: mov ecx, dword ptr [ebp - 0x14] */
   5011     MEM32(eax + 0x4) = edx; /* 0x42008900: mov dword ptr [eax + 4], edx */
   5012     edx = MEM32(ebp + 0x10); /* 0x42008903: mov edx, dword ptr [ebp + 0x10] */
   5013     MEM32(eax + 0x8) = ecx; /* 0x42008906: mov dword ptr [eax + 8], ecx */
   5014     eax = MEM32(ebp + (-0x4C)); /* 0x42008909: mov eax, dword ptr [ebp - 0x4c] */
   5015     ecx = MEM32(ebp + (-0x48)); /* 0x4200890C: mov ecx, dword ptr [ebp - 0x48] */
   5016     MEM32(edx) = eax; /* 0x4200890F: mov dword ptr [edx], eax */
   5017     eax = MEM32(ebp + (-0x44)); /* 0x42008911: mov eax, dword ptr [ebp - 0x44] */
   5018     MEM32(edx + 0x4) = ecx; /* 0x42008914: mov dword ptr [edx + 4], ecx */
   5019     MEM32(edx + 0x8) = eax; /* 0x42008917: mov dword ptr [edx + 8], eax */
   5020     RECOMP_BACKEDGE();
   5021     goto L_42008836; /* 0x4200891A: jmp 0x42008836 */
   5022 L_42008923:
   5023     esi = MEM32(ebp + (-0x10)); /* 0x42008923: mov esi, dword ptr [ebp - 0x10] */
   5024     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008926: fstp st(0) */
   5025     fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x42008928: fld dword ptr [esi + 0x24] */
   5026     esi = POP32_VAL(esp); /* 0x4200892B: pop esi */
   5027     fp_push(_st[0]); /* 0x4200892C: fld st(0) */
   5028     _st[0] *= _st[1]; /* 0x4200892E: fmul st(1) */
   5029     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42008930: fld dword ptr [ebp - 4] */
   5030     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008933: fcompp  */
   5031     fp_pop(); fp_pop();
   5032     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008935: fnstsw ax */
   5033     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008937: fstp st(0) */
   5034     /* test HI8(eax), 1 */ /* 0x42008939: test ah, 1 */
   5035     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5036     _cf = 0;
   5037     _flag_k = FK_NARROW(FK_TEST, 24);
   5038     if (TEST_Z(_flag_a, _flag_b)) goto L_42008949; /* 0x4200893C: je 0x42008949 */
   5039 L_4200893E:
   5040     eax = 1; /* 0x4200893E: mov eax, 1 */
   5041     esp = ebp; /* 0x42008943: mov esp, ebp */
   5042     ebp = POP32_VAL(esp); /* 0x42008945: pop ebp */
   5043     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008946: ret 0xc */
   5044 L_42008949:
   5045     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5046     eax = 0; /* 0x42008949: xor eax, eax */
   5047     _cf = 0;
   5048     _flag_k = FK_TEST;
   5049     esp = ebp; /* 0x4200894B: mov esp, ebp */
   5050     ebp = POP32_VAL(esp); /* 0x4200894D: pop ebp */
   5051     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200894E: ret 0xc */
   5052     RECOMP_REGS_OUT();
   5053 }
   5054 
   5055 void sub_42008836(void) {
   5056     int _fpu_cmp = 0;
   5057     uint32_t _cf = 0;
   5058     int _df = 1;
   5059     uint32_t _flag_k = FK_NONE;
   5060     uint32_t _flag_a = 0, _flag_b = 0;
   5061     uint32_t _itail_tgt = 0;
   5062     RECOMP_REGS_LOCALS
   5063     RECOMP_ENTER(0x42008836u);
   5064 
   5065     goto L_42008836;
   5066 L_42008673:
   5067     esi = MEM32(ebp + (-0x10)); /* 0x42008673: mov esi, dword ptr [ebp - 0x10] */
   5068     ecx = edi; /* 0x42008676: mov ecx, edi */
   5069     edx = MEM32(ecx); /* 0x42008678: mov edx, dword ptr [ecx] */
   5070     eax = MEM32(ecx + 0x4); /* 0x4200867A: mov eax, dword ptr [ecx + 4] */
   5071     ecx = MEM32(ecx + 0x8); /* 0x4200867D: mov ecx, dword ptr [ecx + 8] */
   5072     MEM32(ebp + (-0x18)) = eax; /* 0x42008680: mov dword ptr [ebp - 0x18], eax */
   5073     eax = MEM32(esi + 0x8); /* 0x42008683: mov eax, dword ptr [esi + 8] */
   5074     MEM32(ebp + (-0x1C)) = edx; /* 0x42008686: mov dword ptr [ebp - 0x1c], edx */
   5075     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42008689: fld dword ptr [ebp - 0x1c] */
   5076     _st[0] -= (double)*(float*)ADDR(ebx + eax); /* 0x4200868C: fsub dword ptr [ebx + eax] */
   5077     edx = ebx + eax; /* 0x4200868F: lea edx, [ebx + eax] */
   5078     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42008692: fld dword ptr [ebp - 0x18] */
   5079     esi = ebx + eax + 0xC; /* 0x42008695: lea esi, [ebx + eax + 0xc] */
   5080     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x42008699: fsub dword ptr [edx + 4] */
   5081     MEM32(ebp + (-0x14)) = ecx; /* 0x4200869C: mov dword ptr [ebp - 0x14], ecx */
   5082     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4200869F: fld dword ptr [ebp - 0x14] */
   5083     eax = esi; /* 0x420086A2: mov eax, esi */
   5084     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x420086A4: fsub dword ptr [edx + 8] */
   5085     ecx = MEM32(eax); /* 0x420086A7: mov ecx, dword ptr [eax] */
   5086     MEM32(ebp + (-0x28)) = ecx; /* 0x420086A9: mov dword ptr [ebp - 0x28], ecx */
   5087     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086AC: fld dword ptr [ebp - 0x28] */
   5088     _st[0] -= (double)*(float*)ADDR(edx); /* 0x420086AF: fsub dword ptr [edx] */
   5089     ecx = MEM32(eax + 0x4); /* 0x420086B1: mov ecx, dword ptr [eax + 4] */
   5090     eax = MEM32(eax + 0x8); /* 0x420086B4: mov eax, dword ptr [eax + 8] */
   5091     MEM32(ebp + (-0x24)) = ecx; /* 0x420086B7: mov dword ptr [ebp - 0x24], ecx */
   5092     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x420086BA: fstp dword ptr [ebp - 0x28] */
   5093     MEM32(ebp + (-0x20)) = eax; /* 0x420086BD: mov dword ptr [ebp - 0x20], eax */
   5094     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x420086C0: fld dword ptr [ebp - 0x24] */
   5095     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x420086C3: fsub dword ptr [edx + 4] */
   5096     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x420086C6: fstp dword ptr [ebp - 0x24] */
   5097     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x420086C9: fld dword ptr [ebp - 0x20] */
   5098     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x420086CC: fsub dword ptr [edx + 8] */
   5099     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x420086CF: fst dword ptr [ebp - 0x20] */
   5100     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x420086D2: fmul dword ptr [ebp - 0x20] */
   5101     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x420086D5: fld dword ptr [ebp - 0x24] */
   5102     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x420086D8: fmul dword ptr [ebp - 0x24] */
   5103     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086DB: faddp st(1) */
   5104     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086DD: fld dword ptr [ebp - 0x28] */
   5105     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x420086E0: fmul dword ptr [ebp - 0x28] */
   5106     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086E3: faddp st(1) */
   5107     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x420086E5: fstp dword ptr [ebp - 4] */
   5108     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x420086E8: fmul dword ptr [ebp - 0x20] */
   5109     fp_xch(1); /* 0x420086EB: fxch st(1) */
   5110     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x420086ED: fmul dword ptr [ebp - 0x24] */
   5111     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086F0: faddp st(1) */
   5112     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086F2: fld dword ptr [ebp - 0x28] */
   5113     _st[0] *= _st[2]; /* 0x420086F5: fmul st(2) */
   5114     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086F7: faddp st(1) */
   5115     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x420086F9: fstp dword ptr [ebp + 8] */
   5116     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420086FC: fstp st(0) */
   5117     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420086FE: fld dword ptr [ebp + 8] */
   5118     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42008701: fcomp qword ptr [0x420180d8] */
   5119     fp_pop();
   5120     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008707: fnstsw ax */
   5121     /* test HI8(eax), 1 */ /* 0x42008709: test ah, 1 */
   5122     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5123     _cf = 0;
   5124     _flag_k = FK_NARROW(FK_TEST, 24);
   5125     if (TEST_Z(_flag_a, _flag_b)) goto L_420087A0; /* 0x4200870C: je 0x420087a0 */
   5126 L_42008712:
   5127     ecx = MEM32(edx); /* 0x42008712: mov ecx, dword ptr [edx] */
   5128     esi = MEM32(edx + 0x4); /* 0x42008714: mov esi, dword ptr [edx + 4] */
   5129     edx = MEM32(edx + 0x8); /* 0x42008717: mov edx, dword ptr [edx + 8] */
   5130     MEM32(ebp + (-0x14)) = edx; /* 0x4200871A: mov dword ptr [ebp - 0x14], edx */
   5131     eax = edi; /* 0x4200871D: mov eax, edi */
   5132     edx = MEM32(eax); /* 0x4200871F: mov edx, dword ptr [eax] */
   5133     MEM32(ebp + (-0x34)) = edx; /* 0x42008721: mov dword ptr [ebp - 0x34], edx */
   5134     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x42008724: fld dword ptr [ebp - 0x34] */
   5135     edx = MEM32(eax + 0x4); /* 0x42008727: mov edx, dword ptr [eax + 4] */
   5136     eax = MEM32(eax + 0x8); /* 0x4200872A: mov eax, dword ptr [eax + 8] */
   5137     MEM32(ebp + (-0x1C)) = ecx; /* 0x4200872D: mov dword ptr [ebp - 0x1c], ecx */
   5138     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x42008730: fsub dword ptr [ebp - 0x1c] */
   5139     MEM32(ebp + (-0x30)) = edx; /* 0x42008733: mov dword ptr [ebp - 0x30], edx */
   5140     MEM32(ebp + (-0x18)) = esi; /* 0x42008736: mov dword ptr [ebp - 0x18], esi */
   5141     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x42008739: fstp dword ptr [ebp - 0x34] */
   5142     MEM32(ebp + (-0x2C)) = eax; /* 0x4200873C: mov dword ptr [ebp - 0x2c], eax */
   5143     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x4200873F: fld dword ptr [ebp - 0x30] */
   5144     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x42008742: fsub dword ptr [ebp - 0x18] */
   5145     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x42008745: fstp dword ptr [ebp - 0x30] */
   5146     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x42008748: fld dword ptr [ebp - 0x2c] */
   5147     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x4200874B: fsub dword ptr [ebp - 0x14] */
   5148     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x4200874E: fst dword ptr [ebp - 0x2c] */
   5149     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x42008751: fmul dword ptr [ebp - 0x2c] */
   5150     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x42008754: fld dword ptr [ebp - 0x30] */
   5151     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x42008757: fmul dword ptr [ebp - 0x30] */
   5152     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200875A: faddp st(1) */
   5153     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x4200875C: fld dword ptr [ebp - 0x34] */
   5154     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x4200875F: fmul dword ptr [ebp - 0x34] */
   5155     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008762: faddp st(1) */
   5156     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42008764: fst dword ptr [ebp + 8] */
   5157     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008767: fcomp st(1) */
   5158     fp_pop();
   5159     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008769: fnstsw ax */
   5160     /* test HI8(eax), 1 */ /* 0x4200876B: test ah, 1 */
   5161     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5162     _cf = 0;
   5163     _flag_k = FK_NARROW(FK_TEST, 24);
   5164     if (TEST_Z(_flag_a, _flag_b)) goto L_42008836; /* 0x4200876E: je 0x42008836 */
   5165 L_42008774:
   5166     edx = MEM32(ebp + 0xC); /* 0x42008774: mov edx, dword ptr [ebp + 0xc] */
   5167     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008777: fstp st(0) */
   5168     eax = MEM32(ebp + (-0x14)); /* 0x42008779: mov eax, dword ptr [ebp - 0x14] */
   5169     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x4200877C: fld dword ptr [ebp + 8] */
   5170     MEM32(edx) = ecx; /* 0x4200877F: mov dword ptr [edx], ecx */
   5171     ecx = MEM32(ebp + 0x10); /* 0x42008781: mov ecx, dword ptr [ebp + 0x10] */
   5172     MEM32(edx + 0x4) = esi; /* 0x42008784: mov dword ptr [edx + 4], esi */
   5173     MEM32(edx + 0x8) = eax; /* 0x42008787: mov dword ptr [edx + 8], eax */
   5174     edx = MEM32(ebp + (-0x34)); /* 0x4200878A: mov edx, dword ptr [ebp - 0x34] */
   5175     eax = MEM32(ebp + (-0x30)); /* 0x4200878D: mov eax, dword ptr [ebp - 0x30] */
   5176     MEM32(ecx) = edx; /* 0x42008790: mov dword ptr [ecx], edx */
   5177     edx = MEM32(ebp + (-0x2C)); /* 0x42008792: mov edx, dword ptr [ebp - 0x2c] */
   5178     MEM32(ecx + 0x4) = eax; /* 0x42008795: mov dword ptr [ecx + 4], eax */
   5179     MEM32(ecx + 0x8) = edx; /* 0x42008798: mov dword ptr [ecx + 8], edx */
   5180     goto L_42008836; /* 0x4200879B: jmp 0x42008836 */
   5181 L_420087A0:
   5182     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420087A0: fld dword ptr [ebp + 8] */
   5183     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x420087A3: fcomp dword ptr [ebp - 4] */
   5184     fp_pop();
   5185     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420087A6: fnstsw ax */
   5186     /* test HI8(eax), 0x41u */ /* 0x420087A8: test ah, 0x41 */
   5187     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5188     _cf = 0;
   5189     _flag_k = FK_NARROW(FK_TEST, 24);
   5190     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008850; /* 0x420087AB: jne 0x42008850 */
   5191 L_420087B1:
   5192     edx = MEM32(esi); /* 0x420087B1: mov edx, dword ptr [esi] */
   5193     ebx = MEM32(esi + 0x4); /* 0x420087B3: mov ebx, dword ptr [esi + 4] */
   5194     esi = MEM32(esi + 0x8); /* 0x420087B6: mov esi, dword ptr [esi + 8] */
   5195     eax = edi; /* 0x420087B9: mov eax, edi */
   5196     ecx = MEM32(eax); /* 0x420087BB: mov ecx, dword ptr [eax] */
   5197     MEM32(ebp + (-0x40)) = ecx; /* 0x420087BD: mov dword ptr [ebp - 0x40], ecx */
   5198     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x420087C0: fld dword ptr [ebp - 0x40] */
   5199     ecx = MEM32(eax + 0x4); /* 0x420087C3: mov ecx, dword ptr [eax + 4] */
   5200     eax = MEM32(eax + 0x8); /* 0x420087C6: mov eax, dword ptr [eax + 8] */
   5201     MEM32(ebp + (-0x1C)) = edx; /* 0x420087C9: mov dword ptr [ebp - 0x1c], edx */
   5202     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x420087CC: fsub dword ptr [ebp - 0x1c] */
   5203     MEM32(ebp + (-0x3C)) = ecx; /* 0x420087CF: mov dword ptr [ebp - 0x3c], ecx */
   5204     MEM32(ebp + (-0x18)) = ebx; /* 0x420087D2: mov dword ptr [ebp - 0x18], ebx */
   5205     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x420087D5: fstp dword ptr [ebp - 0x40] */
   5206     MEM32(ebp + (-0x38)) = eax; /* 0x420087D8: mov dword ptr [ebp - 0x38], eax */
   5207     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x420087DB: fld dword ptr [ebp - 0x3c] */
   5208     MEM32(ebp + (-0x14)) = esi; /* 0x420087DE: mov dword ptr [ebp - 0x14], esi */
   5209     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x420087E1: fsub dword ptr [ebp - 0x18] */
   5210     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x420087E4: fstp dword ptr [ebp - 0x3c] */
   5211     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x420087E7: fld dword ptr [ebp - 0x38] */
   5212     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x420087EA: fsub dword ptr [ebp - 0x14] */
   5213     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x420087ED: fst dword ptr [ebp - 0x38] */
   5214     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x420087F0: fmul dword ptr [ebp - 0x38] */
   5215     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x420087F3: fld dword ptr [ebp - 0x3c] */
   5216     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x420087F6: fmul dword ptr [ebp - 0x3c] */
   5217     { double _v = fp_pop(); _st[0] += _v; } /* 0x420087F9: faddp st(1) */
   5218     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x420087FB: fld dword ptr [ebp - 0x40] */
   5219     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x420087FE: fmul dword ptr [ebp - 0x40] */
   5220     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008801: faddp st(1) */
   5221     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42008803: fst dword ptr [ebp + 8] */
   5222     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008806: fcomp st(1) */
   5223     fp_pop();
   5224     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008808: fnstsw ax */
   5225     /* test HI8(eax), 1 */ /* 0x4200880A: test ah, 1 */
   5226     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5227     _cf = 0;
   5228     _flag_k = FK_NARROW(FK_TEST, 24);
   5229     if (TEST_Z(_flag_a, _flag_b)) goto L_42008833; /* 0x4200880D: je 0x42008833 */
   5230 L_4200880F:
   5231     ecx = MEM32(ebp + 0xC); /* 0x4200880F: mov ecx, dword ptr [ebp + 0xc] */
   5232     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008812: fstp st(0) */
   5233     eax = MEM32(ebp + (-0x40)); /* 0x42008814: mov eax, dword ptr [ebp - 0x40] */
   5234     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42008817: fld dword ptr [ebp + 8] */
   5235     MEM32(ecx) = edx; /* 0x4200881A: mov dword ptr [ecx], edx */
   5236     edx = MEM32(ebp + 0x10); /* 0x4200881C: mov edx, dword ptr [ebp + 0x10] */
   5237     MEM32(ecx + 0x4) = ebx; /* 0x4200881F: mov dword ptr [ecx + 4], ebx */
   5238     MEM32(ecx + 0x8) = esi; /* 0x42008822: mov dword ptr [ecx + 8], esi */
   5239     ecx = MEM32(ebp + (-0x3C)); /* 0x42008825: mov ecx, dword ptr [ebp - 0x3c] */
   5240     MEM32(edx) = eax; /* 0x42008828: mov dword ptr [edx], eax */
   5241     eax = MEM32(ebp + (-0x38)); /* 0x4200882A: mov eax, dword ptr [ebp - 0x38] */
   5242     MEM32(edx + 0x4) = ecx; /* 0x4200882D: mov dword ptr [edx + 4], ecx */
   5243     MEM32(edx + 0x8) = eax; /* 0x42008830: mov dword ptr [edx + 8], eax */
   5244 L_42008833:
   5245     ebx = MEM32(ebp + (-0x8)); /* 0x42008833: mov ebx, dword ptr [ebp - 8] */
   5246 L_42008836:
   5247     eax = MEM32(ebp + (-0xC)); /* 0x42008836: mov eax, dword ptr [ebp - 0xc] */
   5248     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   5249     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5250     ebx = ebx + 0xCu; /* 0x42008839: add ebx, 0xc */
   5251     _flag_k = FK_ADD;
   5252     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5253     eax = eax - 1; /* 0x4200883C: dec eax */
   5254     _flag_k = FK_DEC;
   5255     MEM32(ebp + (-0x8)) = ebx; /* 0x4200883D: mov dword ptr [ebp - 8], ebx */
   5256     MEM32(ebp + (-0xC)) = eax; /* 0x42008840: mov dword ptr [ebp - 0xc], eax */
   5257     RECOMP_BACKEDGE();
   5258     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_42008673; /* 0x42008843: jne 0x42008673 */
   5259 L_42008849:
   5260     edi = POP32_VAL(esp); /* 0x42008849: pop edi */
   5261     ebx = POP32_VAL(esp); /* 0x4200884A: pop ebx */
   5262     goto L_42008923; /* 0x4200884B: jmp 0x42008923 */
   5263 L_42008850:
   5264     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42008850: fld dword ptr [ebp + 8] */
   5265     ecx = MEM32(edx); /* 0x42008853: mov ecx, dword ptr [edx] */
   5266     _st[0] = sqrt(_st[0]); /* 0x42008855: fsqrt  */
   5267     eax = MEM32(edx + 0x4); /* 0x42008857: mov eax, dword ptr [edx + 4] */
   5268     MEM32(ebp + (-0x1C)) = ecx; /* 0x4200885A: mov dword ptr [ebp - 0x1c], ecx */
   5269     ecx = MEM32(edx + 0x8); /* 0x4200885D: mov ecx, dword ptr [edx + 8] */
   5270     MEM32(ebp + (-0x18)) = eax; /* 0x42008860: mov dword ptr [ebp - 0x18], eax */
   5271     MEM32(ebp + (-0x14)) = ecx; /* 0x42008863: mov dword ptr [ebp - 0x14], ecx */
   5272     edx = edi; /* 0x42008866: mov edx, edi */
   5273     eax = MEM32(edx); /* 0x42008868: mov eax, dword ptr [edx] */
   5274     ecx = MEM32(edx + 0x4); /* 0x4200886A: mov ecx, dword ptr [edx + 4] */
   5275     edx = MEM32(edx + 0x8); /* 0x4200886D: mov edx, dword ptr [edx + 8] */
   5276     MEM32(ebp + (-0x4C)) = eax; /* 0x42008870: mov dword ptr [ebp - 0x4c], eax */
   5277     MEM32(ebp + (-0x48)) = ecx; /* 0x42008873: mov dword ptr [ebp - 0x48], ecx */
   5278     MEM32(ebp + (-0x44)) = edx; /* 0x42008876: mov dword ptr [ebp - 0x44], edx */
   5279     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42008879: fld dword ptr [ebp - 4] */
   5280     _st[0] = sqrt(_st[0]); /* 0x4200887C: fsqrt  */
   5281     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x4200887E: fdivp st(1) */
   5282     fp_push(_st[0]); /* 0x42008880: fld st(0) */
   5283     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x42008882: fmul dword ptr [ebp - 0x28] */
   5284     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x42008885: fstp dword ptr [ebp - 0x28] */
   5285     fp_push(_st[0]); /* 0x42008888: fld st(0) */
   5286     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x4200888A: fmul dword ptr [ebp - 0x24] */
   5287     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x4200888D: fstp dword ptr [ebp - 0x24] */
   5288     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x42008890: fmul dword ptr [ebp - 0x20] */
   5289     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x42008893: fld dword ptr [ebp - 0x28] */
   5290     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x42008896: fadd dword ptr [ebp - 0x1c] */
   5291     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x42008899: fstp dword ptr [ebp - 0x1c] */
   5292     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x4200889C: fld dword ptr [ebp - 0x18] */
   5293     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x4200889F: fadd dword ptr [ebp - 0x24] */
   5294     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x420088A2: fstp dword ptr [ebp - 0x18] */
   5295     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x420088A5: fld dword ptr [ebp - 0x14] */
   5296     _st[0] += _st[1]; /* 0x420088A8: fadd st(1) */
   5297     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x420088AA: fstp dword ptr [ebp - 0x14] */
   5298     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420088AD: fstp st(0) */
   5299     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x420088AF: fld dword ptr [ebp - 0x4c] */
   5300     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x420088B2: fsub dword ptr [ebp - 0x1c] */
   5301     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x420088B5: fstp dword ptr [ebp - 0x4c] */
   5302     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x420088B8: fld dword ptr [ebp - 0x48] */
   5303     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x420088BB: fsub dword ptr [ebp - 0x18] */
   5304     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x420088BE: fstp dword ptr [ebp - 0x48] */
   5305     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x420088C1: fld dword ptr [ebp - 0x44] */
   5306     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x420088C4: fsub dword ptr [ebp - 0x14] */
   5307     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x420088C7: fst dword ptr [ebp - 0x44] */
   5308     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x420088CA: fmul dword ptr [ebp - 0x44] */
   5309     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x420088CD: fld dword ptr [ebp - 0x48] */
   5310     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x420088D0: fmul dword ptr [ebp - 0x48] */
   5311     { double _v = fp_pop(); _st[0] += _v; } /* 0x420088D3: faddp st(1) */
   5312     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x420088D5: fld dword ptr [ebp - 0x4c] */
   5313     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x420088D8: fmul dword ptr [ebp - 0x4c] */
   5314     { double _v = fp_pop(); _st[0] += _v; } /* 0x420088DB: faddp st(1) */
   5315     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x420088DD: fst dword ptr [ebp + 8] */
   5316     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x420088E0: fcomp st(1) */
   5317     fp_pop();
   5318     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420088E2: fnstsw ax */
   5319     /* test HI8(eax), 1 */ /* 0x420088E4: test ah, 1 */
   5320     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5321     _cf = 0;
   5322     _flag_k = FK_NARROW(FK_TEST, 24);
   5323     RECOMP_BACKEDGE();
   5324     if (TEST_Z(_flag_a, _flag_b)) goto L_42008836; /* 0x420088E7: je 0x42008836 */
   5325 L_420088ED:
   5326     ecx = MEM32(ebp + (-0x1C)); /* 0x420088ED: mov ecx, dword ptr [ebp - 0x1c] */
   5327     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420088F0: fstp st(0) */
   5328     eax = MEM32(ebp + 0xC); /* 0x420088F2: mov eax, dword ptr [ebp + 0xc] */
   5329     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420088F5: fld dword ptr [ebp + 8] */
   5330     edx = MEM32(ebp + (-0x18)); /* 0x420088F8: mov edx, dword ptr [ebp - 0x18] */
   5331     MEM32(eax) = ecx; /* 0x420088FB: mov dword ptr [eax], ecx */
   5332     ecx = MEM32(ebp + (-0x14)); /* 0x420088FD: mov ecx, dword ptr [ebp - 0x14] */
   5333     MEM32(eax + 0x4) = edx; /* 0x42008900: mov dword ptr [eax + 4], edx */
   5334     edx = MEM32(ebp + 0x10); /* 0x42008903: mov edx, dword ptr [ebp + 0x10] */
   5335     MEM32(eax + 0x8) = ecx; /* 0x42008906: mov dword ptr [eax + 8], ecx */
   5336     eax = MEM32(ebp + (-0x4C)); /* 0x42008909: mov eax, dword ptr [ebp - 0x4c] */
   5337     ecx = MEM32(ebp + (-0x48)); /* 0x4200890C: mov ecx, dword ptr [ebp - 0x48] */
   5338     MEM32(edx) = eax; /* 0x4200890F: mov dword ptr [edx], eax */
   5339     eax = MEM32(ebp + (-0x44)); /* 0x42008911: mov eax, dword ptr [ebp - 0x44] */
   5340     MEM32(edx + 0x4) = ecx; /* 0x42008914: mov dword ptr [edx + 4], ecx */
   5341     MEM32(edx + 0x8) = eax; /* 0x42008917: mov dword ptr [edx + 8], eax */
   5342     RECOMP_BACKEDGE();
   5343     goto L_42008836; /* 0x4200891A: jmp 0x42008836 */
   5344 L_42008923:
   5345     esi = MEM32(ebp + (-0x10)); /* 0x42008923: mov esi, dword ptr [ebp - 0x10] */
   5346     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008926: fstp st(0) */
   5347     fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x42008928: fld dword ptr [esi + 0x24] */
   5348     esi = POP32_VAL(esp); /* 0x4200892B: pop esi */
   5349     fp_push(_st[0]); /* 0x4200892C: fld st(0) */
   5350     _st[0] *= _st[1]; /* 0x4200892E: fmul st(1) */
   5351     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42008930: fld dword ptr [ebp - 4] */
   5352     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008933: fcompp  */
   5353     fp_pop(); fp_pop();
   5354     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008935: fnstsw ax */
   5355     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008937: fstp st(0) */
   5356     /* test HI8(eax), 1 */ /* 0x42008939: test ah, 1 */
   5357     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5358     _cf = 0;
   5359     _flag_k = FK_NARROW(FK_TEST, 24);
   5360     if (TEST_Z(_flag_a, _flag_b)) goto L_42008949; /* 0x4200893C: je 0x42008949 */
   5361 L_4200893E:
   5362     eax = 1; /* 0x4200893E: mov eax, 1 */
   5363     esp = ebp; /* 0x42008943: mov esp, ebp */
   5364     ebp = POP32_VAL(esp); /* 0x42008945: pop ebp */
   5365     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008946: ret 0xc */
   5366 L_42008949:
   5367     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5368     eax = 0; /* 0x42008949: xor eax, eax */
   5369     _cf = 0;
   5370     _flag_k = FK_TEST;
   5371     esp = ebp; /* 0x4200894B: mov esp, ebp */
   5372     ebp = POP32_VAL(esp); /* 0x4200894D: pop ebp */
   5373     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200894E: ret 0xc */
   5374     RECOMP_REGS_OUT();
   5375 }
   5376 
   5377 void sub_42008850(void) {
   5378     int _fpu_cmp = 0;
   5379     uint32_t _cf = 0;
   5380     int _df = 1;
   5381     uint32_t _flag_k = FK_NONE;
   5382     uint32_t _flag_a = 0, _flag_b = 0;
   5383     uint32_t _itail_tgt = 0;
   5384     RECOMP_REGS_LOCALS
   5385     RECOMP_ENTER(0x42008850u);
   5386 
   5387     goto L_42008850;
   5388 L_42008673:
   5389     esi = MEM32(ebp + (-0x10)); /* 0x42008673: mov esi, dword ptr [ebp - 0x10] */
   5390     ecx = edi; /* 0x42008676: mov ecx, edi */
   5391     edx = MEM32(ecx); /* 0x42008678: mov edx, dword ptr [ecx] */
   5392     eax = MEM32(ecx + 0x4); /* 0x4200867A: mov eax, dword ptr [ecx + 4] */
   5393     ecx = MEM32(ecx + 0x8); /* 0x4200867D: mov ecx, dword ptr [ecx + 8] */
   5394     MEM32(ebp + (-0x18)) = eax; /* 0x42008680: mov dword ptr [ebp - 0x18], eax */
   5395     eax = MEM32(esi + 0x8); /* 0x42008683: mov eax, dword ptr [esi + 8] */
   5396     MEM32(ebp + (-0x1C)) = edx; /* 0x42008686: mov dword ptr [ebp - 0x1c], edx */
   5397     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x42008689: fld dword ptr [ebp - 0x1c] */
   5398     _st[0] -= (double)*(float*)ADDR(ebx + eax); /* 0x4200868C: fsub dword ptr [ebx + eax] */
   5399     edx = ebx + eax; /* 0x4200868F: lea edx, [ebx + eax] */
   5400     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x42008692: fld dword ptr [ebp - 0x18] */
   5401     esi = ebx + eax + 0xC; /* 0x42008695: lea esi, [ebx + eax + 0xc] */
   5402     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x42008699: fsub dword ptr [edx + 4] */
   5403     MEM32(ebp + (-0x14)) = ecx; /* 0x4200869C: mov dword ptr [ebp - 0x14], ecx */
   5404     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x4200869F: fld dword ptr [ebp - 0x14] */
   5405     eax = esi; /* 0x420086A2: mov eax, esi */
   5406     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x420086A4: fsub dword ptr [edx + 8] */
   5407     ecx = MEM32(eax); /* 0x420086A7: mov ecx, dword ptr [eax] */
   5408     MEM32(ebp + (-0x28)) = ecx; /* 0x420086A9: mov dword ptr [ebp - 0x28], ecx */
   5409     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086AC: fld dword ptr [ebp - 0x28] */
   5410     _st[0] -= (double)*(float*)ADDR(edx); /* 0x420086AF: fsub dword ptr [edx] */
   5411     ecx = MEM32(eax + 0x4); /* 0x420086B1: mov ecx, dword ptr [eax + 4] */
   5412     eax = MEM32(eax + 0x8); /* 0x420086B4: mov eax, dword ptr [eax + 8] */
   5413     MEM32(ebp + (-0x24)) = ecx; /* 0x420086B7: mov dword ptr [ebp - 0x24], ecx */
   5414     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x420086BA: fstp dword ptr [ebp - 0x28] */
   5415     MEM32(ebp + (-0x20)) = eax; /* 0x420086BD: mov dword ptr [ebp - 0x20], eax */
   5416     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x420086C0: fld dword ptr [ebp - 0x24] */
   5417     _st[0] -= (double)*(float*)ADDR(edx + 0x4); /* 0x420086C3: fsub dword ptr [edx + 4] */
   5418     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x420086C6: fstp dword ptr [ebp - 0x24] */
   5419     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x420086C9: fld dword ptr [ebp - 0x20] */
   5420     _st[0] -= (double)*(float*)ADDR(edx + 0x8); /* 0x420086CC: fsub dword ptr [edx + 8] */
   5421     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x420086CF: fst dword ptr [ebp - 0x20] */
   5422     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x420086D2: fmul dword ptr [ebp - 0x20] */
   5423     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x420086D5: fld dword ptr [ebp - 0x24] */
   5424     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x420086D8: fmul dword ptr [ebp - 0x24] */
   5425     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086DB: faddp st(1) */
   5426     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086DD: fld dword ptr [ebp - 0x28] */
   5427     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x420086E0: fmul dword ptr [ebp - 0x28] */
   5428     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086E3: faddp st(1) */
   5429     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x420086E5: fstp dword ptr [ebp - 4] */
   5430     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x420086E8: fmul dword ptr [ebp - 0x20] */
   5431     fp_xch(1); /* 0x420086EB: fxch st(1) */
   5432     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x420086ED: fmul dword ptr [ebp - 0x24] */
   5433     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086F0: faddp st(1) */
   5434     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x420086F2: fld dword ptr [ebp - 0x28] */
   5435     _st[0] *= _st[2]; /* 0x420086F5: fmul st(2) */
   5436     { double _v = fp_pop(); _st[0] += _v; } /* 0x420086F7: faddp st(1) */
   5437     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x420086F9: fstp dword ptr [ebp + 8] */
   5438     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420086FC: fstp st(0) */
   5439     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420086FE: fld dword ptr [ebp + 8] */
   5440     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x420180D8)); /* 0x42008701: fcomp qword ptr [0x420180d8] */
   5441     fp_pop();
   5442     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008707: fnstsw ax */
   5443     /* test HI8(eax), 1 */ /* 0x42008709: test ah, 1 */
   5444     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5445     _cf = 0;
   5446     _flag_k = FK_NARROW(FK_TEST, 24);
   5447     if (TEST_Z(_flag_a, _flag_b)) goto L_420087A0; /* 0x4200870C: je 0x420087a0 */
   5448 L_42008712:
   5449     ecx = MEM32(edx); /* 0x42008712: mov ecx, dword ptr [edx] */
   5450     esi = MEM32(edx + 0x4); /* 0x42008714: mov esi, dword ptr [edx + 4] */
   5451     edx = MEM32(edx + 0x8); /* 0x42008717: mov edx, dword ptr [edx + 8] */
   5452     MEM32(ebp + (-0x14)) = edx; /* 0x4200871A: mov dword ptr [ebp - 0x14], edx */
   5453     eax = edi; /* 0x4200871D: mov eax, edi */
   5454     edx = MEM32(eax); /* 0x4200871F: mov edx, dword ptr [eax] */
   5455     MEM32(ebp + (-0x34)) = edx; /* 0x42008721: mov dword ptr [ebp - 0x34], edx */
   5456     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x42008724: fld dword ptr [ebp - 0x34] */
   5457     edx = MEM32(eax + 0x4); /* 0x42008727: mov edx, dword ptr [eax + 4] */
   5458     eax = MEM32(eax + 0x8); /* 0x4200872A: mov eax, dword ptr [eax + 8] */
   5459     MEM32(ebp + (-0x1C)) = ecx; /* 0x4200872D: mov dword ptr [ebp - 0x1c], ecx */
   5460     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x42008730: fsub dword ptr [ebp - 0x1c] */
   5461     MEM32(ebp + (-0x30)) = edx; /* 0x42008733: mov dword ptr [ebp - 0x30], edx */
   5462     MEM32(ebp + (-0x18)) = esi; /* 0x42008736: mov dword ptr [ebp - 0x18], esi */
   5463     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x42008739: fstp dword ptr [ebp - 0x34] */
   5464     MEM32(ebp + (-0x2C)) = eax; /* 0x4200873C: mov dword ptr [ebp - 0x2c], eax */
   5465     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x4200873F: fld dword ptr [ebp - 0x30] */
   5466     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x42008742: fsub dword ptr [ebp - 0x18] */
   5467     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x42008745: fstp dword ptr [ebp - 0x30] */
   5468     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x42008748: fld dword ptr [ebp - 0x2c] */
   5469     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x4200874B: fsub dword ptr [ebp - 0x14] */
   5470     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x4200874E: fst dword ptr [ebp - 0x2c] */
   5471     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x42008751: fmul dword ptr [ebp - 0x2c] */
   5472     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x42008754: fld dword ptr [ebp - 0x30] */
   5473     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x42008757: fmul dword ptr [ebp - 0x30] */
   5474     { double _v = fp_pop(); _st[0] += _v; } /* 0x4200875A: faddp st(1) */
   5475     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x4200875C: fld dword ptr [ebp - 0x34] */
   5476     _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x4200875F: fmul dword ptr [ebp - 0x34] */
   5477     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008762: faddp st(1) */
   5478     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42008764: fst dword ptr [ebp + 8] */
   5479     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008767: fcomp st(1) */
   5480     fp_pop();
   5481     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008769: fnstsw ax */
   5482     /* test HI8(eax), 1 */ /* 0x4200876B: test ah, 1 */
   5483     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5484     _cf = 0;
   5485     _flag_k = FK_NARROW(FK_TEST, 24);
   5486     if (TEST_Z(_flag_a, _flag_b)) goto L_42008836; /* 0x4200876E: je 0x42008836 */
   5487 L_42008774:
   5488     edx = MEM32(ebp + 0xC); /* 0x42008774: mov edx, dword ptr [ebp + 0xc] */
   5489     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008777: fstp st(0) */
   5490     eax = MEM32(ebp + (-0x14)); /* 0x42008779: mov eax, dword ptr [ebp - 0x14] */
   5491     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x4200877C: fld dword ptr [ebp + 8] */
   5492     MEM32(edx) = ecx; /* 0x4200877F: mov dword ptr [edx], ecx */
   5493     ecx = MEM32(ebp + 0x10); /* 0x42008781: mov ecx, dword ptr [ebp + 0x10] */
   5494     MEM32(edx + 0x4) = esi; /* 0x42008784: mov dword ptr [edx + 4], esi */
   5495     MEM32(edx + 0x8) = eax; /* 0x42008787: mov dword ptr [edx + 8], eax */
   5496     edx = MEM32(ebp + (-0x34)); /* 0x4200878A: mov edx, dword ptr [ebp - 0x34] */
   5497     eax = MEM32(ebp + (-0x30)); /* 0x4200878D: mov eax, dword ptr [ebp - 0x30] */
   5498     MEM32(ecx) = edx; /* 0x42008790: mov dword ptr [ecx], edx */
   5499     edx = MEM32(ebp + (-0x2C)); /* 0x42008792: mov edx, dword ptr [ebp - 0x2c] */
   5500     MEM32(ecx + 0x4) = eax; /* 0x42008795: mov dword ptr [ecx + 4], eax */
   5501     MEM32(ecx + 0x8) = edx; /* 0x42008798: mov dword ptr [ecx + 8], edx */
   5502     goto L_42008836; /* 0x4200879B: jmp 0x42008836 */
   5503 L_420087A0:
   5504     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420087A0: fld dword ptr [ebp + 8] */
   5505     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x420087A3: fcomp dword ptr [ebp - 4] */
   5506     fp_pop();
   5507     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420087A6: fnstsw ax */
   5508     /* test HI8(eax), 0x41u */ /* 0x420087A8: test ah, 0x41 */
   5509     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5510     _cf = 0;
   5511     _flag_k = FK_NARROW(FK_TEST, 24);
   5512     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008850; /* 0x420087AB: jne 0x42008850 */
   5513 L_420087B1:
   5514     edx = MEM32(esi); /* 0x420087B1: mov edx, dword ptr [esi] */
   5515     ebx = MEM32(esi + 0x4); /* 0x420087B3: mov ebx, dword ptr [esi + 4] */
   5516     esi = MEM32(esi + 0x8); /* 0x420087B6: mov esi, dword ptr [esi + 8] */
   5517     eax = edi; /* 0x420087B9: mov eax, edi */
   5518     ecx = MEM32(eax); /* 0x420087BB: mov ecx, dword ptr [eax] */
   5519     MEM32(ebp + (-0x40)) = ecx; /* 0x420087BD: mov dword ptr [ebp - 0x40], ecx */
   5520     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x420087C0: fld dword ptr [ebp - 0x40] */
   5521     ecx = MEM32(eax + 0x4); /* 0x420087C3: mov ecx, dword ptr [eax + 4] */
   5522     eax = MEM32(eax + 0x8); /* 0x420087C6: mov eax, dword ptr [eax + 8] */
   5523     MEM32(ebp + (-0x1C)) = edx; /* 0x420087C9: mov dword ptr [ebp - 0x1c], edx */
   5524     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x420087CC: fsub dword ptr [ebp - 0x1c] */
   5525     MEM32(ebp + (-0x3C)) = ecx; /* 0x420087CF: mov dword ptr [ebp - 0x3c], ecx */
   5526     MEM32(ebp + (-0x18)) = ebx; /* 0x420087D2: mov dword ptr [ebp - 0x18], ebx */
   5527     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x420087D5: fstp dword ptr [ebp - 0x40] */
   5528     MEM32(ebp + (-0x38)) = eax; /* 0x420087D8: mov dword ptr [ebp - 0x38], eax */
   5529     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x420087DB: fld dword ptr [ebp - 0x3c] */
   5530     MEM32(ebp + (-0x14)) = esi; /* 0x420087DE: mov dword ptr [ebp - 0x14], esi */
   5531     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x420087E1: fsub dword ptr [ebp - 0x18] */
   5532     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x420087E4: fstp dword ptr [ebp - 0x3c] */
   5533     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x420087E7: fld dword ptr [ebp - 0x38] */
   5534     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x420087EA: fsub dword ptr [ebp - 0x14] */
   5535     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x420087ED: fst dword ptr [ebp - 0x38] */
   5536     _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x420087F0: fmul dword ptr [ebp - 0x38] */
   5537     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x420087F3: fld dword ptr [ebp - 0x3c] */
   5538     _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x420087F6: fmul dword ptr [ebp - 0x3c] */
   5539     { double _v = fp_pop(); _st[0] += _v; } /* 0x420087F9: faddp st(1) */
   5540     fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x420087FB: fld dword ptr [ebp - 0x40] */
   5541     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x420087FE: fmul dword ptr [ebp - 0x40] */
   5542     { double _v = fp_pop(); _st[0] += _v; } /* 0x42008801: faddp st(1) */
   5543     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42008803: fst dword ptr [ebp + 8] */
   5544     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008806: fcomp st(1) */
   5545     fp_pop();
   5546     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008808: fnstsw ax */
   5547     /* test HI8(eax), 1 */ /* 0x4200880A: test ah, 1 */
   5548     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5549     _cf = 0;
   5550     _flag_k = FK_NARROW(FK_TEST, 24);
   5551     if (TEST_Z(_flag_a, _flag_b)) goto L_42008833; /* 0x4200880D: je 0x42008833 */
   5552 L_4200880F:
   5553     ecx = MEM32(ebp + 0xC); /* 0x4200880F: mov ecx, dword ptr [ebp + 0xc] */
   5554     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008812: fstp st(0) */
   5555     eax = MEM32(ebp + (-0x40)); /* 0x42008814: mov eax, dword ptr [ebp - 0x40] */
   5556     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42008817: fld dword ptr [ebp + 8] */
   5557     MEM32(ecx) = edx; /* 0x4200881A: mov dword ptr [ecx], edx */
   5558     edx = MEM32(ebp + 0x10); /* 0x4200881C: mov edx, dword ptr [ebp + 0x10] */
   5559     MEM32(ecx + 0x4) = ebx; /* 0x4200881F: mov dword ptr [ecx + 4], ebx */
   5560     MEM32(ecx + 0x8) = esi; /* 0x42008822: mov dword ptr [ecx + 8], esi */
   5561     ecx = MEM32(ebp + (-0x3C)); /* 0x42008825: mov ecx, dword ptr [ebp - 0x3c] */
   5562     MEM32(edx) = eax; /* 0x42008828: mov dword ptr [edx], eax */
   5563     eax = MEM32(ebp + (-0x38)); /* 0x4200882A: mov eax, dword ptr [ebp - 0x38] */
   5564     MEM32(edx + 0x4) = ecx; /* 0x4200882D: mov dword ptr [edx + 4], ecx */
   5565     MEM32(edx + 0x8) = eax; /* 0x42008830: mov dword ptr [edx + 8], eax */
   5566 L_42008833:
   5567     ebx = MEM32(ebp + (-0x8)); /* 0x42008833: mov ebx, dword ptr [ebp - 8] */
   5568 L_42008836:
   5569     eax = MEM32(ebp + (-0xC)); /* 0x42008836: mov eax, dword ptr [ebp - 0xc] */
   5570     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   5571     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5572     ebx = ebx + 0xCu; /* 0x42008839: add ebx, 0xc */
   5573     _flag_k = FK_ADD;
   5574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5575     eax = eax - 1; /* 0x4200883C: dec eax */
   5576     _flag_k = FK_DEC;
   5577     MEM32(ebp + (-0x8)) = ebx; /* 0x4200883D: mov dword ptr [ebp - 8], ebx */
   5578     MEM32(ebp + (-0xC)) = eax; /* 0x42008840: mov dword ptr [ebp - 0xc], eax */
   5579     RECOMP_BACKEDGE();
   5580     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_42008673; /* 0x42008843: jne 0x42008673 */
   5581 L_42008849:
   5582     edi = POP32_VAL(esp); /* 0x42008849: pop edi */
   5583     ebx = POP32_VAL(esp); /* 0x4200884A: pop ebx */
   5584     goto L_42008923; /* 0x4200884B: jmp 0x42008923 */
   5585 L_42008850:
   5586     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42008850: fld dword ptr [ebp + 8] */
   5587     ecx = MEM32(edx); /* 0x42008853: mov ecx, dword ptr [edx] */
   5588     _st[0] = sqrt(_st[0]); /* 0x42008855: fsqrt  */
   5589     eax = MEM32(edx + 0x4); /* 0x42008857: mov eax, dword ptr [edx + 4] */
   5590     MEM32(ebp + (-0x1C)) = ecx; /* 0x4200885A: mov dword ptr [ebp - 0x1c], ecx */
   5591     ecx = MEM32(edx + 0x8); /* 0x4200885D: mov ecx, dword ptr [edx + 8] */
   5592     MEM32(ebp + (-0x18)) = eax; /* 0x42008860: mov dword ptr [ebp - 0x18], eax */
   5593     MEM32(ebp + (-0x14)) = ecx; /* 0x42008863: mov dword ptr [ebp - 0x14], ecx */
   5594     edx = edi; /* 0x42008866: mov edx, edi */
   5595     eax = MEM32(edx); /* 0x42008868: mov eax, dword ptr [edx] */
   5596     ecx = MEM32(edx + 0x4); /* 0x4200886A: mov ecx, dword ptr [edx + 4] */
   5597     edx = MEM32(edx + 0x8); /* 0x4200886D: mov edx, dword ptr [edx + 8] */
   5598     MEM32(ebp + (-0x4C)) = eax; /* 0x42008870: mov dword ptr [ebp - 0x4c], eax */
   5599     MEM32(ebp + (-0x48)) = ecx; /* 0x42008873: mov dword ptr [ebp - 0x48], ecx */
   5600     MEM32(ebp + (-0x44)) = edx; /* 0x42008876: mov dword ptr [ebp - 0x44], edx */
   5601     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42008879: fld dword ptr [ebp - 4] */
   5602     _st[0] = sqrt(_st[0]); /* 0x4200887C: fsqrt  */
   5603     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x4200887E: fdivp st(1) */
   5604     fp_push(_st[0]); /* 0x42008880: fld st(0) */
   5605     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x42008882: fmul dword ptr [ebp - 0x28] */
   5606     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x42008885: fstp dword ptr [ebp - 0x28] */
   5607     fp_push(_st[0]); /* 0x42008888: fld st(0) */
   5608     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x4200888A: fmul dword ptr [ebp - 0x24] */
   5609     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x4200888D: fstp dword ptr [ebp - 0x24] */
   5610     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x42008890: fmul dword ptr [ebp - 0x20] */
   5611     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x42008893: fld dword ptr [ebp - 0x28] */
   5612     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x42008896: fadd dword ptr [ebp - 0x1c] */
   5613     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x42008899: fstp dword ptr [ebp - 0x1c] */
   5614     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x4200889C: fld dword ptr [ebp - 0x18] */
   5615     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x4200889F: fadd dword ptr [ebp - 0x24] */
   5616     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x420088A2: fstp dword ptr [ebp - 0x18] */
   5617     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x420088A5: fld dword ptr [ebp - 0x14] */
   5618     _st[0] += _st[1]; /* 0x420088A8: fadd st(1) */
   5619     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x420088AA: fstp dword ptr [ebp - 0x14] */
   5620     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420088AD: fstp st(0) */
   5621     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x420088AF: fld dword ptr [ebp - 0x4c] */
   5622     _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x420088B2: fsub dword ptr [ebp - 0x1c] */
   5623     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x420088B5: fstp dword ptr [ebp - 0x4c] */
   5624     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x420088B8: fld dword ptr [ebp - 0x48] */
   5625     _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x420088BB: fsub dword ptr [ebp - 0x18] */
   5626     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x420088BE: fstp dword ptr [ebp - 0x48] */
   5627     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x420088C1: fld dword ptr [ebp - 0x44] */
   5628     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x420088C4: fsub dword ptr [ebp - 0x14] */
   5629     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x420088C7: fst dword ptr [ebp - 0x44] */
   5630     _st[0] *= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x420088CA: fmul dword ptr [ebp - 0x44] */
   5631     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x420088CD: fld dword ptr [ebp - 0x48] */
   5632     _st[0] *= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x420088D0: fmul dword ptr [ebp - 0x48] */
   5633     { double _v = fp_pop(); _st[0] += _v; } /* 0x420088D3: faddp st(1) */
   5634     fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x420088D5: fld dword ptr [ebp - 0x4c] */
   5635     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x420088D8: fmul dword ptr [ebp - 0x4c] */
   5636     { double _v = fp_pop(); _st[0] += _v; } /* 0x420088DB: faddp st(1) */
   5637     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x420088DD: fst dword ptr [ebp + 8] */
   5638     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x420088E0: fcomp st(1) */
   5639     fp_pop();
   5640     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420088E2: fnstsw ax */
   5641     /* test HI8(eax), 1 */ /* 0x420088E4: test ah, 1 */
   5642     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5643     _cf = 0;
   5644     _flag_k = FK_NARROW(FK_TEST, 24);
   5645     RECOMP_BACKEDGE();
   5646     if (TEST_Z(_flag_a, _flag_b)) goto L_42008836; /* 0x420088E7: je 0x42008836 */
   5647 L_420088ED:
   5648     ecx = MEM32(ebp + (-0x1C)); /* 0x420088ED: mov ecx, dword ptr [ebp - 0x1c] */
   5649     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x420088F0: fstp st(0) */
   5650     eax = MEM32(ebp + 0xC); /* 0x420088F2: mov eax, dword ptr [ebp + 0xc] */
   5651     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x420088F5: fld dword ptr [ebp + 8] */
   5652     edx = MEM32(ebp + (-0x18)); /* 0x420088F8: mov edx, dword ptr [ebp - 0x18] */
   5653     MEM32(eax) = ecx; /* 0x420088FB: mov dword ptr [eax], ecx */
   5654     ecx = MEM32(ebp + (-0x14)); /* 0x420088FD: mov ecx, dword ptr [ebp - 0x14] */
   5655     MEM32(eax + 0x4) = edx; /* 0x42008900: mov dword ptr [eax + 4], edx */
   5656     edx = MEM32(ebp + 0x10); /* 0x42008903: mov edx, dword ptr [ebp + 0x10] */
   5657     MEM32(eax + 0x8) = ecx; /* 0x42008906: mov dword ptr [eax + 8], ecx */
   5658     eax = MEM32(ebp + (-0x4C)); /* 0x42008909: mov eax, dword ptr [ebp - 0x4c] */
   5659     ecx = MEM32(ebp + (-0x48)); /* 0x4200890C: mov ecx, dword ptr [ebp - 0x48] */
   5660     MEM32(edx) = eax; /* 0x4200890F: mov dword ptr [edx], eax */
   5661     eax = MEM32(ebp + (-0x44)); /* 0x42008911: mov eax, dword ptr [ebp - 0x44] */
   5662     MEM32(edx + 0x4) = ecx; /* 0x42008914: mov dword ptr [edx + 4], ecx */
   5663     MEM32(edx + 0x8) = eax; /* 0x42008917: mov dword ptr [edx + 8], eax */
   5664     RECOMP_BACKEDGE();
   5665     goto L_42008836; /* 0x4200891A: jmp 0x42008836 */
   5666 L_42008923:
   5667     esi = MEM32(ebp + (-0x10)); /* 0x42008923: mov esi, dword ptr [ebp - 0x10] */
   5668     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008926: fstp st(0) */
   5669     fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x42008928: fld dword ptr [esi + 0x24] */
   5670     esi = POP32_VAL(esp); /* 0x4200892B: pop esi */
   5671     fp_push(_st[0]); /* 0x4200892C: fld st(0) */
   5672     _st[0] *= _st[1]; /* 0x4200892E: fmul st(1) */
   5673     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42008930: fld dword ptr [ebp - 4] */
   5674     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008933: fcompp  */
   5675     fp_pop(); fp_pop();
   5676     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008935: fnstsw ax */
   5677     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008937: fstp st(0) */
   5678     /* test HI8(eax), 1 */ /* 0x42008939: test ah, 1 */
   5679     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5680     _cf = 0;
   5681     _flag_k = FK_NARROW(FK_TEST, 24);
   5682     if (TEST_Z(_flag_a, _flag_b)) goto L_42008949; /* 0x4200893C: je 0x42008949 */
   5683 L_4200893E:
   5684     eax = 1; /* 0x4200893E: mov eax, 1 */
   5685     esp = ebp; /* 0x42008943: mov esp, ebp */
   5686     ebp = POP32_VAL(esp); /* 0x42008945: pop ebp */
   5687     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008946: ret 0xc */
   5688 L_42008949:
   5689     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5690     eax = 0; /* 0x42008949: xor eax, eax */
   5691     _cf = 0;
   5692     _flag_k = FK_TEST;
   5693     esp = ebp; /* 0x4200894B: mov esp, ebp */
   5694     ebp = POP32_VAL(esp); /* 0x4200894D: pop ebp */
   5695     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200894E: ret 0xc */
   5696     RECOMP_REGS_OUT();
   5697 }
   5698 
   5699 void sub_42008923(void) {
   5700     int _fpu_cmp = 0;
   5701     uint32_t _cf = 0;
   5702     int _df = 1;
   5703     uint32_t _flag_k = FK_NONE;
   5704     uint32_t _flag_a = 0, _flag_b = 0;
   5705     uint32_t _itail_tgt = 0;
   5706     RECOMP_REGS_LOCALS
   5707     RECOMP_ENTER(0x42008923u);
   5708 
   5709 L_42008923:
   5710     esi = MEM32(ebp + (-0x10)); /* 0x42008923: mov esi, dword ptr [ebp - 0x10] */
   5711     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008926: fstp st(0) */
   5712     fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x42008928: fld dword ptr [esi + 0x24] */
   5713     esi = POP32_VAL(esp); /* 0x4200892B: pop esi */
   5714     fp_push(_st[0]); /* 0x4200892C: fld st(0) */
   5715     _st[0] *= _st[1]; /* 0x4200892E: fmul st(1) */
   5716     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42008930: fld dword ptr [ebp - 4] */
   5717     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008933: fcompp  */
   5718     fp_pop(); fp_pop();
   5719     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008935: fnstsw ax */
   5720     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008937: fstp st(0) */
   5721     /* test HI8(eax), 1 */ /* 0x42008939: test ah, 1 */
   5722     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5723     _cf = 0;
   5724     _flag_k = FK_NARROW(FK_TEST, 24);
   5725     if (TEST_Z(_flag_a, _flag_b)) goto L_42008949; /* 0x4200893C: je 0x42008949 */
   5726 L_4200893E:
   5727     eax = 1; /* 0x4200893E: mov eax, 1 */
   5728     esp = ebp; /* 0x42008943: mov esp, ebp */
   5729     ebp = POP32_VAL(esp); /* 0x42008945: pop ebp */
   5730     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008946: ret 0xc */
   5731 L_42008949:
   5732     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5733     eax = 0; /* 0x42008949: xor eax, eax */
   5734     _cf = 0;
   5735     _flag_k = FK_TEST;
   5736     esp = ebp; /* 0x4200894B: mov esp, ebp */
   5737     ebp = POP32_VAL(esp); /* 0x4200894D: pop ebp */
   5738     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200894E: ret 0xc */
   5739     RECOMP_REGS_OUT();
   5740 }
   5741 
   5742 void sub_42008928(void) {
   5743     int _fpu_cmp = 0;
   5744     uint32_t _cf = 0;
   5745     int _df = 1;
   5746     uint32_t _flag_k = FK_NONE;
   5747     uint32_t _flag_a = 0, _flag_b = 0;
   5748     uint32_t _itail_tgt = 0;
   5749     RECOMP_REGS_LOCALS
   5750     RECOMP_ENTER(0x42008928u);
   5751 
   5752 L_42008928:
   5753     fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x42008928: fld dword ptr [esi + 0x24] */
   5754     esi = POP32_VAL(esp); /* 0x4200892B: pop esi */
   5755     fp_push(_st[0]); /* 0x4200892C: fld st(0) */
   5756     _st[0] *= _st[1]; /* 0x4200892E: fmul st(1) */
   5757     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x42008930: fld dword ptr [ebp - 4] */
   5758     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x42008933: fcompp  */
   5759     fp_pop(); fp_pop();
   5760     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42008935: fnstsw ax */
   5761     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42008937: fstp st(0) */
   5762     /* test HI8(eax), 1 */ /* 0x42008939: test ah, 1 */
   5763     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5764     _cf = 0;
   5765     _flag_k = FK_NARROW(FK_TEST, 24);
   5766     if (TEST_Z(_flag_a, _flag_b)) goto L_42008949; /* 0x4200893C: je 0x42008949 */
   5767 L_4200893E:
   5768     eax = 1; /* 0x4200893E: mov eax, 1 */
   5769     esp = ebp; /* 0x42008943: mov esp, ebp */
   5770     ebp = POP32_VAL(esp); /* 0x42008945: pop ebp */
   5771     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008946: ret 0xc */
   5772 L_42008949:
   5773     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5774     eax = 0; /* 0x42008949: xor eax, eax */
   5775     _cf = 0;
   5776     _flag_k = FK_TEST;
   5777     esp = ebp; /* 0x4200894B: mov esp, ebp */
   5778     ebp = POP32_VAL(esp); /* 0x4200894D: pop ebp */
   5779     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200894E: ret 0xc */
   5780     RECOMP_REGS_OUT();
   5781 }
   5782 
   5783 void sub_42008960(void) {
   5784     int _fpu_cmp = 0;
   5785     uint32_t _cf = 0;
   5786     int _df = 1;
   5787     uint32_t _flag_k = FK_NONE;
   5788     uint32_t _flag_a = 0, _flag_b = 0;
   5789     uint32_t _itail_tgt = 0;
   5790     RECOMP_REGS_LOCALS
   5791     RECOMP_ENTER(0x42008960u);
   5792 
   5793 L_42008960:
   5794     eax = MEM32(ecx + 0x4); /* 0x42008960: mov eax, dword ptr [ecx + 4] */
   5795     /* test eax, eax */ /* 0x42008963: test eax, eax */
   5796     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5797     _cf = 0;
   5798     _flag_k = FK_TEST;
   5799     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008968; /* 0x42008965: jne 0x42008968 */
   5800 L_42008967:
   5801     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42008967: ret  */
   5802 L_42008968:
   5803     ecx = MEM32(ecx + 0x8); /* 0x42008968: mov ecx, dword ptr [ecx + 8] */
   5804     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5806     ecx = ecx - eax; /* 0x4200896B: sub ecx, eax */
   5807     _flag_k = FK_CMP;
   5808     eax = 0x2AAAAAABu; /* 0x4200896D: mov eax, 0x2aaaaaab */
   5809     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42008972: imul ecx */
   5810       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5811       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5812     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42008974: sar edx, 1 */
   5813     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5814     edx = (uint32_t)((int32_t)edx >> 1u);
   5815     eax = edx; /* 0x42008976: mov eax, edx */
   5816     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42008978: shr eax, 0x1f */
   5817     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5818     eax = eax >> 31u; /* 0x42008978: shr eax, 0x1f */
   5819     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5820     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5821     edx = edx + eax; /* 0x4200897B: add edx, eax */
   5822     _flag_k = FK_ADD;
   5823     eax = edx; /* 0x4200897D: mov eax, edx */
   5824     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200897F: ret  */
   5825     RECOMP_REGS_OUT();
   5826 }
   5827 
   5828 void sub_42008980(void) {
   5829     int _fpu_cmp = 0;
   5830     uint32_t _cf = 0;
   5831     int _df = 1;
   5832     uint32_t _flag_k = FK_NONE;
   5833     uint32_t _flag_a = 0, _flag_b = 0;
   5834     uint32_t _itail_tgt = 0;
   5835     RECOMP_REGS_LOCALS
   5836     RECOMP_ENTER(0x42008980u);
   5837 
   5838 L_42008980:
   5839     PUSH32(esp, ebp); /* 0x42008980: push ebp */
   5840     ebp = esp; /* 0x42008981: mov ebp, esp */
   5841     PUSH32(esp, ecx); /* 0x42008983: push ecx */
   5842     PUSH32(esp, ebx); /* 0x42008984: push ebx */
   5843     PUSH32(esp, esi); /* 0x42008985: push esi */
   5844     esi = MEM32(ebp + 0x8); /* 0x42008986: mov esi, dword ptr [ebp + 8] */
   5845     ebx = ecx; /* 0x42008989: mov ebx, ecx */
   5846     /* cmp ebx, esi */ /* 0x4200898B: cmp ebx, esi */
   5847     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   5848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5849     _flag_k = FK_CMP;
   5850     PUSH32(esp, edi); /* 0x4200898D: push edi */
   5851     MEM32(ebp + (-0x4)) = ebx; /* 0x4200898E: mov dword ptr [ebp - 4], ebx */
   5852     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008B6E; /* 0x42008991: je 0x42008b6e */
   5853 L_42008997:
   5854     ecx = MEM32(esi + 0x4); /* 0x42008997: mov ecx, dword ptr [esi + 4] */
   5855     /* test ecx, ecx */ /* 0x4200899A: test ecx, ecx */
   5856     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5857     _cf = 0;
   5858     _flag_k = FK_TEST;
   5859     if (TEST_NZ(_flag_a, _flag_b)) goto L_420089A2; /* 0x4200899C: jne 0x420089a2 */
   5860 L_4200899E:
   5861     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5862     edi = 0; /* 0x4200899E: xor edi, edi */
   5863     _cf = 0;
   5864     _flag_k = FK_TEST;
   5865     goto L_420089AA; /* 0x420089A0: jmp 0x420089aa */
   5866 L_420089A2:
   5867     edi = MEM32(esi + 0x8); /* 0x420089A2: mov edi, dword ptr [esi + 8] */
   5868     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   5869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5870     edi = edi - ecx; /* 0x420089A5: sub edi, ecx */
   5871     _flag_k = FK_CMP;
   5872     if (4u) _cf = (((edi) >> 3) & 1u); /* 0x420089A7: sar edi, 4 */
   5873     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5874     edi = (uint32_t)((int32_t)edi >> 4u);
   5875 L_420089AA:
   5876     edx = MEM32(ebx + 0x4); /* 0x420089AA: mov edx, dword ptr [ebx + 4] */
   5877     /* test edx, edx */ /* 0x420089AD: test edx, edx */
   5878     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   5879     _cf = 0;
   5880     _flag_k = FK_TEST;
   5881     if (TEST_NZ(_flag_a, _flag_b)) goto L_420089B5; /* 0x420089AF: jne 0x420089b5 */
   5882 L_420089B1:
   5883     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5884     eax = 0; /* 0x420089B1: xor eax, eax */
   5885     _cf = 0;
   5886     _flag_k = FK_TEST;
   5887     goto L_420089BD; /* 0x420089B3: jmp 0x420089bd */
   5888 L_420089B5:
   5889     eax = MEM32(ebx + 0x8); /* 0x420089B5: mov eax, dword ptr [ebx + 8] */
   5890     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5892     eax = eax - edx; /* 0x420089B8: sub eax, edx */
   5893     _flag_k = FK_CMP;
   5894     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x420089BA: sar eax, 4 */
   5895     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5896     eax = (uint32_t)((int32_t)eax >> 4u);
   5897 L_420089BD:
   5898     /* cmp edi, eax */ /* 0x420089BD: cmp edi, eax */
   5899     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   5900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5901     _flag_k = FK_CMP;
   5902     if (CMP_A(_flag_a, _flag_b)) goto L_42008A1A; /* 0x420089BF: ja 0x42008a1a */
   5903 L_420089C1:
   5904     edi = MEM32(esi + 0x8); /* 0x420089C1: mov edi, dword ptr [esi + 8] */
   5905     eax = ecx; /* 0x420089C4: mov eax, ecx */
   5906     /* cmp eax, edi */ /* 0x420089C6: cmp eax, edi */
   5907     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5909     _flag_k = FK_CMP;
   5910     MEM32(ebp + 0x8) = edi; /* 0x420089C8: mov dword ptr [ebp + 8], edi */
   5911     if (CMP_EQ(_flag_a, _flag_b)) goto L_420089F7; /* 0x420089CB: je 0x420089f7 */
   5912 L_420089CD:
   5913     ecx = eax; /* 0x420089CD: mov ecx, eax */
   5914     ebx = MEM32(ecx); /* 0x420089CF: mov ebx, dword ptr [ecx] */
   5915     edi = edx; /* 0x420089D1: mov edi, edx */
   5916     MEM32(edi) = ebx; /* 0x420089D3: mov dword ptr [edi], ebx */
   5917     ebx = MEM32(ecx + 0x4); /* 0x420089D5: mov ebx, dword ptr [ecx + 4] */
   5918     MEM32(edi + 0x4) = ebx; /* 0x420089D8: mov dword ptr [edi + 4], ebx */
   5919     ebx = MEM32(ecx + 0x8); /* 0x420089DB: mov ebx, dword ptr [ecx + 8] */
   5920     MEM32(edi + 0x8) = ebx; /* 0x420089DE: mov dword ptr [edi + 8], ebx */
   5921     ecx = MEM32(ecx + 0xC); /* 0x420089E1: mov ecx, dword ptr [ecx + 0xc] */
   5922     MEM32(edi + 0xC) = ecx; /* 0x420089E4: mov dword ptr [edi + 0xc], ecx */
   5923     ecx = MEM32(ebp + 0x8); /* 0x420089E7: mov ecx, dword ptr [ebp + 8] */
   5924     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   5925     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5926     eax = eax + 0x10u; /* 0x420089EA: add eax, 0x10 */
   5927     _flag_k = FK_ADD;
   5928     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   5929     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5930     edx = edx + 0x10u; /* 0x420089ED: add edx, 0x10 */
   5931     _flag_k = FK_ADD;
   5932     /* cmp eax, ecx */ /* 0x420089F0: cmp eax, ecx */
   5933     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5934     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5935     _flag_k = FK_CMP;
   5936     RECOMP_BACKEDGE();
   5937     if (CMP_NE(_flag_a, _flag_b)) goto L_420089CD; /* 0x420089F2: jne 0x420089cd */
   5938 L_420089F4:
   5939     ebx = MEM32(ebp + (-0x4)); /* 0x420089F4: mov ebx, dword ptr [ebp - 4] */
   5940 L_420089F7:
   5941     ecx = MEM32(esi + 0x4); /* 0x420089F7: mov ecx, dword ptr [esi + 4] */
   5942     /* test ecx, ecx */ /* 0x420089FA: test ecx, ecx */
   5943     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5944     _cf = 0;
   5945     _flag_k = FK_TEST;
   5946     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008ADF; /* 0x420089FC: jne 0x42008adf */
   5947 L_42008A02:
   5948     ecx = MEM32(ebx + 0x4); /* 0x42008A02: mov ecx, dword ptr [ebx + 4] */
   5949     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5950     eax = 0; /* 0x42008A05: xor eax, eax */
   5951     _cf = 0;
   5952     _flag_k = FK_TEST;
   5953     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42008A07: shl eax, 4 */
   5954     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5955     eax = eax << 4u; /* 0x42008A07: shl eax, 4 */
   5956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5957     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5958     eax = eax + ecx; /* 0x42008A0A: add eax, ecx */
   5959     _flag_k = FK_ADD;
   5960     edi = POP32_VAL(esp); /* 0x42008A0C: pop edi */
   5961     MEM32(ebx + 0x8) = eax; /* 0x42008A0D: mov dword ptr [ebx + 8], eax */
   5962     esi = POP32_VAL(esp); /* 0x42008A10: pop esi */
   5963     eax = ebx; /* 0x42008A11: mov eax, ebx */
   5964     ebx = POP32_VAL(esp); /* 0x42008A13: pop ebx */
   5965     esp = ebp; /* 0x42008A14: mov esp, ebp */
   5966     ebp = POP32_VAL(esp); /* 0x42008A16: pop ebp */
   5967     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42008A17: ret 4 */
   5968 L_42008A1A:
   5969     /* test ecx, ecx */ /* 0x42008A1A: test ecx, ecx */
   5970     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5971     _cf = 0;
   5972     _flag_k = FK_TEST;
   5973     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008A22; /* 0x42008A1C: jne 0x42008a22 */
   5974 L_42008A1E:
   5975     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5976     edi = 0; /* 0x42008A1E: xor edi, edi */
   5977     _cf = 0;
   5978     _flag_k = FK_TEST;
   5979     goto L_42008A2A; /* 0x42008A20: jmp 0x42008a2a */
   5980 L_42008A22:
   5981     edi = MEM32(esi + 0x8); /* 0x42008A22: mov edi, dword ptr [esi + 8] */
   5982     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   5983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5984     edi = edi - ecx; /* 0x42008A25: sub edi, ecx */
   5985     _flag_k = FK_CMP;
   5986     if (4u) _cf = (((edi) >> 3) & 1u); /* 0x42008A27: sar edi, 4 */
   5987     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5988     edi = (uint32_t)((int32_t)edi >> 4u);
   5989 L_42008A2A:
   5990     /* test edx, edx */ /* 0x42008A2A: test edx, edx */
   5991     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   5992     _cf = 0;
   5993     _flag_k = FK_TEST;
   5994     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008A32; /* 0x42008A2C: jne 0x42008a32 */
   5995 L_42008A2E:
   5996     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5997     eax = 0; /* 0x42008A2E: xor eax, eax */
   5998     _cf = 0;
   5999     _flag_k = FK_TEST;
   6000     goto L_42008A3A; /* 0x42008A30: jmp 0x42008a3a */
   6001 L_42008A32:
   6002     eax = MEM32(ebx + 0xC); /* 0x42008A32: mov eax, dword ptr [ebx + 0xc] */
   6003     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6005     eax = eax - edx; /* 0x42008A35: sub eax, edx */
   6006     _flag_k = FK_CMP;
   6007     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x42008A37: sar eax, 4 */
   6008     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6009     eax = (uint32_t)((int32_t)eax >> 4u);
   6010 L_42008A3A:
   6011     /* cmp edi, eax */ /* 0x42008A3A: cmp edi, eax */
   6012     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6013     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6014     _flag_k = FK_CMP;
   6015     if (CMP_A(_flag_a, _flag_b)) goto L_42008AFD; /* 0x42008A3C: ja 0x42008afd */
   6016 L_42008A42:
   6017     /* test edx, edx */ /* 0x42008A42: test edx, edx */
   6018     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   6019     _cf = 0;
   6020     _flag_k = FK_TEST;
   6021     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008A4A; /* 0x42008A44: jne 0x42008a4a */
   6022 L_42008A46:
   6023     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6024     eax = 0; /* 0x42008A46: xor eax, eax */
   6025     _cf = 0;
   6026     _flag_k = FK_TEST;
   6027     goto L_42008A52; /* 0x42008A48: jmp 0x42008a52 */
   6028 L_42008A4A:
   6029     eax = MEM32(ebx + 0x8); /* 0x42008A4A: mov eax, dword ptr [ebx + 8] */
   6030     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6032     eax = eax - edx; /* 0x42008A4D: sub eax, edx */
   6033     _flag_k = FK_CMP;
   6034     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x42008A4F: sar eax, 4 */
   6035     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6036     eax = (uint32_t)((int32_t)eax >> 4u);
   6037 L_42008A52:
   6038     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42008A52: shl eax, 4 */
   6039     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6040     eax = eax << 4u; /* 0x42008A52: shl eax, 4 */
   6041     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6042     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6043     eax = eax + ecx; /* 0x42008A55: add eax, ecx */
   6044     _flag_k = FK_ADD;
   6045     /* cmp ecx, eax */ /* 0x42008A57: cmp ecx, eax */
   6046     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6048     _flag_k = FK_CMP;
   6049     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008A85; /* 0x42008A59: je 0x42008a85 */
   6050 L_42008A5B:
   6051     esi = ecx; /* 0x42008A5B: mov esi, ecx */
   6052     ebx = MEM32(esi); /* 0x42008A5D: mov ebx, dword ptr [esi] */
   6053     edi = edx; /* 0x42008A5F: mov edi, edx */
   6054     MEM32(edi) = ebx; /* 0x42008A61: mov dword ptr [edi], ebx */
   6055     ebx = MEM32(esi + 0x4); /* 0x42008A63: mov ebx, dword ptr [esi + 4] */
   6056     MEM32(edi + 0x4) = ebx; /* 0x42008A66: mov dword ptr [edi + 4], ebx */
   6057     ebx = MEM32(esi + 0x8); /* 0x42008A69: mov ebx, dword ptr [esi + 8] */
   6058     MEM32(edi + 0x8) = ebx; /* 0x42008A6C: mov dword ptr [edi + 8], ebx */
   6059     esi = MEM32(esi + 0xC); /* 0x42008A6F: mov esi, dword ptr [esi + 0xc] */
   6060     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   6061     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6062     ecx = ecx + 0x10u; /* 0x42008A72: add ecx, 0x10 */
   6063     _flag_k = FK_ADD;
   6064     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   6065     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6066     edx = edx + 0x10u; /* 0x42008A75: add edx, 0x10 */
   6067     _flag_k = FK_ADD;
   6068     /* cmp ecx, eax */ /* 0x42008A78: cmp ecx, eax */
   6069     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6070     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6071     _flag_k = FK_CMP;
   6072     MEM32(edi + 0xC) = esi; /* 0x42008A7A: mov dword ptr [edi + 0xc], esi */
   6073     RECOMP_BACKEDGE();
   6074     if (CMP_NE(_flag_a, _flag_b)) goto L_42008A5B; /* 0x42008A7D: jne 0x42008a5b */
   6075 L_42008A7F:
   6076     esi = MEM32(ebp + 0x8); /* 0x42008A7F: mov esi, dword ptr [ebp + 8] */
   6077     ebx = MEM32(ebp + (-0x4)); /* 0x42008A82: mov ebx, dword ptr [ebp - 4] */
   6078 L_42008A85:
   6079     edx = MEM32(esi + 0x8); /* 0x42008A85: mov edx, dword ptr [esi + 8] */
   6080     /* cmp eax, edx */ /* 0x42008A88: cmp eax, edx */
   6081     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6083     _flag_k = FK_CMP;
   6084     ecx = MEM32(ebx + 0x8); /* 0x42008A8A: mov ecx, dword ptr [ebx + 8] */
   6085     MEM32(ebp + 0x8) = edx; /* 0x42008A8D: mov dword ptr [ebp + 8], edx */
   6086     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008AC0; /* 0x42008A90: je 0x42008ac0 */
   6087 L_42008A92:
   6088     /* test ecx, ecx */ /* 0x42008A92: test ecx, ecx */
   6089     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6090     _cf = 0;
   6091     _flag_k = FK_TEST;
   6092     if (TEST_Z(_flag_a, _flag_b)) goto L_42008AB6; /* 0x42008A94: je 0x42008ab6 */
   6093 L_42008A96:
   6094     edx = eax; /* 0x42008A96: mov edx, eax */
   6095     ebx = MEM32(edx); /* 0x42008A98: mov ebx, dword ptr [edx] */
   6096     edi = ecx; /* 0x42008A9A: mov edi, ecx */
   6097     MEM32(edi) = ebx; /* 0x42008A9C: mov dword ptr [edi], ebx */
   6098     ebx = MEM32(edx + 0x4); /* 0x42008A9E: mov ebx, dword ptr [edx + 4] */
   6099     MEM32(edi + 0x4) = ebx; /* 0x42008AA1: mov dword ptr [edi + 4], ebx */
   6100     ebx = MEM32(edx + 0x8); /* 0x42008AA4: mov ebx, dword ptr [edx + 8] */
   6101     MEM32(edi + 0x8) = ebx; /* 0x42008AA7: mov dword ptr [edi + 8], ebx */
   6102     edx = MEM32(edx + 0xC); /* 0x42008AAA: mov edx, dword ptr [edx + 0xc] */
   6103     ebx = MEM32(ebp + (-0x4)); /* 0x42008AAD: mov ebx, dword ptr [ebp - 4] */
   6104     MEM32(edi + 0xC) = edx; /* 0x42008AB0: mov dword ptr [edi + 0xc], edx */
   6105     edx = MEM32(ebp + 0x8); /* 0x42008AB3: mov edx, dword ptr [ebp + 8] */
   6106 L_42008AB6:
   6107     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   6108     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6109     eax = eax + 0x10u; /* 0x42008AB6: add eax, 0x10 */
   6110     _flag_k = FK_ADD;
   6111     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   6112     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6113     ecx = ecx + 0x10u; /* 0x42008AB9: add ecx, 0x10 */
   6114     _flag_k = FK_ADD;
   6115     /* cmp eax, edx */ /* 0x42008ABC: cmp eax, edx */
   6116     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6118     _flag_k = FK_CMP;
   6119     RECOMP_BACKEDGE();
   6120     if (CMP_NE(_flag_a, _flag_b)) goto L_42008A92; /* 0x42008ABE: jne 0x42008a92 */
   6121 L_42008AC0:
   6122     ecx = MEM32(esi + 0x4); /* 0x42008AC0: mov ecx, dword ptr [esi + 4] */
   6123     /* test ecx, ecx */ /* 0x42008AC3: test ecx, ecx */
   6124     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6125     _cf = 0;
   6126     _flag_k = FK_TEST;
   6127     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008ADF; /* 0x42008AC5: jne 0x42008adf */
   6128 L_42008AC7:
   6129     ecx = MEM32(ebx + 0x4); /* 0x42008AC7: mov ecx, dword ptr [ebx + 4] */
   6130     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6131     eax = 0; /* 0x42008ACA: xor eax, eax */
   6132     _cf = 0;
   6133     _flag_k = FK_TEST;
   6134     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42008ACC: shl eax, 4 */
   6135     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6136     eax = eax << 4u; /* 0x42008ACC: shl eax, 4 */
   6137     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6138     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6139     eax = eax + ecx; /* 0x42008ACF: add eax, ecx */
   6140     _flag_k = FK_ADD;
   6141     edi = POP32_VAL(esp); /* 0x42008AD1: pop edi */
   6142     MEM32(ebx + 0x8) = eax; /* 0x42008AD2: mov dword ptr [ebx + 8], eax */
   6143     esi = POP32_VAL(esp); /* 0x42008AD5: pop esi */
   6144     eax = ebx; /* 0x42008AD6: mov eax, ebx */
   6145     ebx = POP32_VAL(esp); /* 0x42008AD8: pop ebx */
   6146     esp = ebp; /* 0x42008AD9: mov esp, ebp */
   6147     ebp = POP32_VAL(esp); /* 0x42008ADB: pop ebp */
   6148     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42008ADC: ret 4 */
   6149 L_42008ADF:
   6150     eax = MEM32(esi + 0x8); /* 0x42008ADF: mov eax, dword ptr [esi + 8] */
   6151     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6153     eax = eax - ecx; /* 0x42008AE2: sub eax, ecx */
   6154     _flag_k = FK_CMP;
   6155     ecx = MEM32(ebx + 0x4); /* 0x42008AE4: mov ecx, dword ptr [ebx + 4] */
   6156     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x42008AE7: sar eax, 4 */
   6157     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6158     eax = (uint32_t)((int32_t)eax >> 4u);
   6159     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42008AEA: shl eax, 4 */
   6160     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6161     eax = eax << 4u; /* 0x42008AEA: shl eax, 4 */
   6162     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6163     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6164     eax = eax + ecx; /* 0x42008AED: add eax, ecx */
   6165     _flag_k = FK_ADD;
   6166     edi = POP32_VAL(esp); /* 0x42008AEF: pop edi */
   6167     MEM32(ebx + 0x8) = eax; /* 0x42008AF0: mov dword ptr [ebx + 8], eax */
   6168     esi = POP32_VAL(esp); /* 0x42008AF3: pop esi */
   6169     eax = ebx; /* 0x42008AF4: mov eax, ebx */
   6170     ebx = POP32_VAL(esp); /* 0x42008AF6: pop ebx */
   6171     esp = ebp; /* 0x42008AF7: mov esp, ebp */
   6172     ebp = POP32_VAL(esp); /* 0x42008AF9: pop ebp */
   6173     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42008AFA: ret 4 */
   6174 L_42008AFD:
   6175     PUSH32(esp, edx); /* 0x42008AFD: push edx */
   6176     MEM32(ebp + 0x8) = edx; /* 0x42008AFE: mov dword ptr [ebp + 8], edx */
   6177     RECOMP_ICALL(0x42016DD0u); /* 0x42008B01: call 0x42016dd0 */ /* not lifted */
   6178     RECOMP_FLAGS_IN();
   6179     ecx = MEM32(esi + 0x4); /* 0x42008B06: mov ecx, dword ptr [esi + 4] */
   6180     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6181     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6182     esp = esp + 4; /* 0x42008B09: add esp, 4 */
   6183     _flag_k = FK_ADD;
   6184     /* test ecx, ecx */ /* 0x42008B0C: test ecx, ecx */
   6185     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6186     _cf = 0;
   6187     _flag_k = FK_TEST;
   6188     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008B14; /* 0x42008B0E: jne 0x42008b14 */
   6189 L_42008B10:
   6190     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6191     eax = 0; /* 0x42008B10: xor eax, eax */
   6192     _cf = 0;
   6193     _flag_k = FK_TEST;
   6194     goto L_42008B1C; /* 0x42008B12: jmp 0x42008b1c */
   6195 L_42008B14:
   6196     eax = MEM32(esi + 0x8); /* 0x42008B14: mov eax, dword ptr [esi + 8] */
   6197     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6199     eax = eax - ecx; /* 0x42008B17: sub eax, ecx */
   6200     _flag_k = FK_CMP;
   6201     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x42008B19: sar eax, 4 */
   6202     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6203     eax = (uint32_t)((int32_t)eax >> 4u);
   6204 L_42008B1C:
   6205     /* test eax, eax */ /* 0x42008B1C: test eax, eax */
   6206     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6207     _cf = 0;
   6208     _flag_k = FK_TEST;
   6209     if (TEST_NS(_flag_a, _flag_b)) goto L_42008B22; /* 0x42008B1E: jge 0x42008b22 */
   6210 L_42008B20:
   6211     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6212     eax = 0; /* 0x42008B20: xor eax, eax */
   6213     _cf = 0;
   6214     _flag_k = FK_TEST;
   6215 L_42008B22:
   6216     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42008B22: shl eax, 4 */
   6217     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6218     eax = eax << 4u; /* 0x42008B22: shl eax, 4 */
   6219     PUSH32(esp, eax); /* 0x42008B25: push eax */
   6220     RECOMP_ICALL(0x42016F36u); /* 0x42008B26: call 0x42016f36 */ /* not lifted */
   6221     RECOMP_FLAGS_IN();
   6222     MEM32(ebx + 0x4) = eax; /* 0x42008B2B: mov dword ptr [ebx + 4], eax */
   6223     edx = MEM32(esi + 0x8); /* 0x42008B2E: mov edx, dword ptr [esi + 8] */
   6224     ecx = eax; /* 0x42008B31: mov ecx, eax */
   6225     eax = MEM32(esi + 0x4); /* 0x42008B33: mov eax, dword ptr [esi + 4] */
   6226     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6227     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6228     esp = esp + 4; /* 0x42008B36: add esp, 4 */
   6229     _flag_k = FK_ADD;
   6230     /* cmp eax, edx */ /* 0x42008B39: cmp eax, edx */
   6231     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6233     _flag_k = FK_CMP;
   6234     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008B68; /* 0x42008B3B: je 0x42008b68 */
   6235 L_42008B3D:
   6236     /* test ecx, ecx */ /* 0x42008B3D: test ecx, ecx */
   6237     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6238     _cf = 0;
   6239     _flag_k = FK_TEST;
   6240     if (TEST_Z(_flag_a, _flag_b)) goto L_42008B5E; /* 0x42008B3F: je 0x42008b5e */
   6241 L_42008B41:
   6242     esi = eax; /* 0x42008B41: mov esi, eax */
   6243     ebx = MEM32(esi); /* 0x42008B43: mov ebx, dword ptr [esi] */
   6244     edi = ecx; /* 0x42008B45: mov edi, ecx */
   6245     MEM32(edi) = ebx; /* 0x42008B47: mov dword ptr [edi], ebx */
   6246     ebx = MEM32(esi + 0x4); /* 0x42008B49: mov ebx, dword ptr [esi + 4] */
   6247     MEM32(edi + 0x4) = ebx; /* 0x42008B4C: mov dword ptr [edi + 4], ebx */
   6248     ebx = MEM32(esi + 0x8); /* 0x42008B4F: mov ebx, dword ptr [esi + 8] */
   6249     MEM32(edi + 0x8) = ebx; /* 0x42008B52: mov dword ptr [edi + 8], ebx */
   6250     esi = MEM32(esi + 0xC); /* 0x42008B55: mov esi, dword ptr [esi + 0xc] */
   6251     ebx = MEM32(ebp + (-0x4)); /* 0x42008B58: mov ebx, dword ptr [ebp - 4] */
   6252     MEM32(edi + 0xC) = esi; /* 0x42008B5B: mov dword ptr [edi + 0xc], esi */
   6253 L_42008B5E:
   6254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   6255     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6256     eax = eax + 0x10u; /* 0x42008B5E: add eax, 0x10 */
   6257     _flag_k = FK_ADD;
   6258     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   6259     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6260     ecx = ecx + 0x10u; /* 0x42008B61: add ecx, 0x10 */
   6261     _flag_k = FK_ADD;
   6262     /* cmp eax, edx */ /* 0x42008B64: cmp eax, edx */
   6263     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6265     _flag_k = FK_CMP;
   6266     RECOMP_BACKEDGE();
   6267     if (CMP_NE(_flag_a, _flag_b)) goto L_42008B3D; /* 0x42008B66: jne 0x42008b3d */
   6268 L_42008B68:
   6269     MEM32(ebx + 0x8) = ecx; /* 0x42008B68: mov dword ptr [ebx + 8], ecx */
   6270     MEM32(ebx + 0xC) = ecx; /* 0x42008B6B: mov dword ptr [ebx + 0xc], ecx */
   6271 L_42008B6E:
   6272     edi = POP32_VAL(esp); /* 0x42008B6E: pop edi */
   6273     esi = POP32_VAL(esp); /* 0x42008B6F: pop esi */
   6274     eax = ebx; /* 0x42008B70: mov eax, ebx */
   6275     ebx = POP32_VAL(esp); /* 0x42008B72: pop ebx */
   6276     esp = ebp; /* 0x42008B73: mov esp, ebp */
   6277     ebp = POP32_VAL(esp); /* 0x42008B75: pop ebp */
   6278     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42008B76: ret 4 */
   6279     RECOMP_REGS_OUT();
   6280 }
   6281 
   6282 void sub_42008B80(void) {
   6283     int _fpu_cmp = 0;
   6284     uint32_t _cf = 0;
   6285     int _df = 1;
   6286     uint32_t _flag_k = FK_NONE;
   6287     uint32_t _flag_a = 0, _flag_b = 0;
   6288     uint32_t _itail_tgt = 0;
   6289     RECOMP_REGS_LOCALS
   6290     RECOMP_ENTER(0x42008B80u);
   6291 
   6292 L_42008B80:
   6293     PUSH32(esp, ebp); /* 0x42008B80: push ebp */
   6294     ebp = esp; /* 0x42008B81: mov ebp, esp */
   6295     ecx = MEM32(ebp + 0x8); /* 0x42008B83: mov ecx, dword ptr [ebp + 8] */
   6296     edx = MEM32(ebp + 0xC); /* 0x42008B86: mov edx, dword ptr [ebp + 0xc] */
   6297     /* cmp ecx, edx */ /* 0x42008B89: cmp ecx, edx */
   6298     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6300     _flag_k = FK_CMP;
   6301     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008BBC; /* 0x42008B8B: je 0x42008bbc */
   6302 L_42008B8D:
   6303     eax = MEM32(ebp + 0x10); /* 0x42008B8D: mov eax, dword ptr [ebp + 0x10] */
   6304     PUSH32(esp, ebx); /* 0x42008B90: push ebx */
   6305     PUSH32(esp, esi); /* 0x42008B91: push esi */
   6306     PUSH32(esp, edi); /* 0x42008B92: push edi */
   6307 L_42008B93:
   6308     /* test eax, eax */ /* 0x42008B93: test eax, eax */
   6309     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6310     _cf = 0;
   6311     _flag_k = FK_TEST;
   6312     if (TEST_Z(_flag_a, _flag_b)) goto L_42008BAB; /* 0x42008B95: je 0x42008bab */
   6313 L_42008B97:
   6314     esi = ecx; /* 0x42008B97: mov esi, ecx */
   6315     ebx = MEM32(esi); /* 0x42008B99: mov ebx, dword ptr [esi] */
   6316     edi = eax; /* 0x42008B9B: mov edi, eax */
   6317     MEM32(edi) = ebx; /* 0x42008B9D: mov dword ptr [edi], ebx */
   6318     ebx = MEM32(esi + 0x4); /* 0x42008B9F: mov ebx, dword ptr [esi + 4] */
   6319     MEM32(edi + 0x4) = ebx; /* 0x42008BA2: mov dword ptr [edi + 4], ebx */
   6320     esi = MEM32(esi + 0x8); /* 0x42008BA5: mov esi, dword ptr [esi + 8] */
   6321     MEM32(edi + 0x8) = esi; /* 0x42008BA8: mov dword ptr [edi + 8], esi */
   6322 L_42008BAB:
   6323     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   6324     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6325     ecx = ecx + 0xCu; /* 0x42008BAB: add ecx, 0xc */
   6326     _flag_k = FK_ADD;
   6327     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6328     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6329     eax = eax + 0xCu; /* 0x42008BAE: add eax, 0xc */
   6330     _flag_k = FK_ADD;
   6331     /* cmp ecx, edx */ /* 0x42008BB1: cmp ecx, edx */
   6332     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6333     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6334     _flag_k = FK_CMP;
   6335     RECOMP_BACKEDGE();
   6336     if (CMP_NE(_flag_a, _flag_b)) goto L_42008B93; /* 0x42008BB3: jne 0x42008b93 */
   6337 L_42008BB5:
   6338     edi = POP32_VAL(esp); /* 0x42008BB5: pop edi */
   6339     esi = POP32_VAL(esp); /* 0x42008BB6: pop esi */
   6340     ebx = POP32_VAL(esp); /* 0x42008BB7: pop ebx */
   6341     ebp = POP32_VAL(esp); /* 0x42008BB8: pop ebp */
   6342     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008BB9: ret 0xc */
   6343 L_42008BBC:
   6344     eax = MEM32(ebp + 0x10); /* 0x42008BBC: mov eax, dword ptr [ebp + 0x10] */
   6345     ebp = POP32_VAL(esp); /* 0x42008BBF: pop ebp */
   6346     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008BC0: ret 0xc */
   6347     RECOMP_REGS_OUT();
   6348 }
   6349 
   6350 void sub_42008BD0(void) {
   6351     int _fpu_cmp = 0;
   6352     uint32_t _cf = 0;
   6353     int _df = 1;
   6354     uint32_t _flag_k = FK_NONE;
   6355     uint32_t _flag_a = 0, _flag_b = 0;
   6356     uint32_t _itail_tgt = 0;
   6357     RECOMP_REGS_LOCALS
   6358     RECOMP_ENTER(0x42008BD0u);
   6359 
   6360 L_42008BD0:
   6361     PUSH32(esp, ebp); /* 0x42008BD0: push ebp */
   6362     ebp = esp; /* 0x42008BD1: mov ebp, esp */
   6363     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6365     esp = esp - 0xCu; /* 0x42008BD3: sub esp, 0xc */
   6366     _flag_k = FK_CMP;
   6367     PUSH32(esp, ebx); /* 0x42008BD6: push ebx */
   6368     ebx = ecx; /* 0x42008BD7: mov ebx, ecx */
   6369     ecx = MEM32(ebx + 0x8); /* 0x42008BD9: mov ecx, dword ptr [ebx + 8] */
   6370     edx = MEM32(ebx + 0xC); /* 0x42008BDC: mov edx, dword ptr [ebx + 0xc] */
   6371     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6373     edx = edx - ecx; /* 0x42008BDF: sub edx, ecx */
   6374     _flag_k = FK_CMP;
   6375     eax = 0x2AAAAAABu; /* 0x42008BE1: mov eax, 0x2aaaaaab */
   6376     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x42008BE6: imul edx */
   6377       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6378       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6379     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42008BE8: sar edx, 1 */
   6380     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6381     edx = (uint32_t)((int32_t)edx >> 1u);
   6382     eax = edx; /* 0x42008BEA: mov eax, edx */
   6383     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42008BEC: shr eax, 0x1f */
   6384     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6385     eax = eax >> 31u; /* 0x42008BEC: shr eax, 0x1f */
   6386     PUSH32(esp, esi); /* 0x42008BEF: push esi */
   6387     esi = MEM32(ebp + 0xC); /* 0x42008BF0: mov esi, dword ptr [ebp + 0xc] */
   6388     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6389     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6390     edx = edx + eax; /* 0x42008BF3: add edx, eax */
   6391     _flag_k = FK_ADD;
   6392     /* cmp edx, esi */ /* 0x42008BF5: cmp edx, esi */
   6393     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   6394     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6395     _flag_k = FK_CMP;
   6396     PUSH32(esp, edi); /* 0x42008BF7: push edi */
   6397     MEM32(ebp + (-0x4)) = ebx; /* 0x42008BF8: mov dword ptr [ebp - 4], ebx */
   6398     if (CMP_AE(_flag_a, _flag_b)) goto L_42008D74; /* 0x42008BFB: jae 0x42008d74 */
   6399 L_42008C01:
   6400     edi = MEM32(ebx + 0x4); /* 0x42008C01: mov edi, dword ptr [ebx + 4] */
   6401     /* test edi, edi */ /* 0x42008C04: test edi, edi */
   6402     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6403     _cf = 0;
   6404     _flag_k = FK_TEST;
   6405     if (TEST_Z(_flag_a, _flag_b)) goto L_42008C22; /* 0x42008C06: je 0x42008c22 */
   6406 L_42008C08:
   6407     edx = ecx; /* 0x42008C08: mov edx, ecx */
   6408     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6410     edx = edx - edi; /* 0x42008C0A: sub edx, edi */
   6411     _flag_k = FK_CMP;
   6412     eax = 0x2AAAAAABu; /* 0x42008C0C: mov eax, 0x2aaaaaab */
   6413     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x42008C11: imul edx */
   6414       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6415       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6416     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42008C13: sar edx, 1 */
   6417     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6418     edx = (uint32_t)((int32_t)edx >> 1u);
   6419     eax = edx; /* 0x42008C15: mov eax, edx */
   6420     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42008C17: shr eax, 0x1f */
   6421     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6422     eax = eax >> 31u; /* 0x42008C17: shr eax, 0x1f */
   6423     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6424     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6425     edx = edx + eax; /* 0x42008C1A: add edx, eax */
   6426     _flag_k = FK_ADD;
   6427     /* cmp esi, edx */ /* 0x42008C1C: cmp esi, edx */
   6428     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   6429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6430     _flag_k = FK_CMP;
   6431     ebx = edx; /* 0x42008C1E: mov ebx, edx */
   6432     if (CMP_B(_flag_a, _flag_b)) goto L_42008C24; /* 0x42008C20: jb 0x42008c24 */
   6433 L_42008C22:
   6434     ebx = esi; /* 0x42008C22: mov ebx, esi */
   6435 L_42008C24:
   6436     /* test edi, edi */ /* 0x42008C24: test edi, edi */
   6437     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6438     _cf = 0;
   6439     _flag_k = FK_TEST;
   6440     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008C2C; /* 0x42008C26: jne 0x42008c2c */
   6441 L_42008C28:
   6442     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6443     edx = 0; /* 0x42008C28: xor edx, edx */
   6444     _cf = 0;
   6445     _flag_k = FK_TEST;
   6446     goto L_42008C3E; /* 0x42008C2A: jmp 0x42008c3e */
   6447 L_42008C2C:
   6448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6450     ecx = ecx - edi; /* 0x42008C2C: sub ecx, edi */
   6451     _flag_k = FK_CMP;
   6452     eax = 0x2AAAAAABu; /* 0x42008C2E: mov eax, 0x2aaaaaab */
   6453     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42008C33: imul ecx */
   6454       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6455       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6456     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42008C35: sar edx, 1 */
   6457     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6458     edx = (uint32_t)((int32_t)edx >> 1u);
   6459     ecx = edx; /* 0x42008C37: mov ecx, edx */
   6460     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x42008C39: shr ecx, 0x1f */
   6461     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6462     ecx = ecx >> 31u; /* 0x42008C39: shr ecx, 0x1f */
   6463     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6464     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6465     edx = edx + ecx; /* 0x42008C3C: add edx, ecx */
   6466     _flag_k = FK_ADD;
   6467 L_42008C3E:
   6468     eax = edx + ebx; /* 0x42008C3E: lea eax, [edx + ebx] */
   6469     /* test eax, eax */ /* 0x42008C41: test eax, eax */
   6470     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6471     _cf = 0;
   6472     _flag_k = FK_TEST;
   6473     MEM32(ebp + (-0x8)) = eax; /* 0x42008C43: mov dword ptr [ebp - 8], eax */
   6474     if (TEST_NS(_flag_a, _flag_b)) goto L_42008C4A; /* 0x42008C46: jge 0x42008c4a */
   6475 L_42008C48:
   6476     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6477     eax = 0; /* 0x42008C48: xor eax, eax */
   6478     _cf = 0;
   6479     _flag_k = FK_TEST;
   6480 L_42008C4A:
   6481     edx = eax + eax * 2; /* 0x42008C4A: lea edx, [eax + eax*2] */
   6482     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x42008C4D: shl edx, 2 */
   6483     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6484     edx = edx << 2u; /* 0x42008C4D: shl edx, 2 */
   6485     PUSH32(esp, edx); /* 0x42008C50: push edx */
   6486     RECOMP_ICALL(0x42016F36u); /* 0x42008C51: call 0x42016f36 */ /* not lifted */
   6487     RECOMP_FLAGS_IN();
   6488     ecx = MEM32(ebp + 0x8); /* 0x42008C56: mov ecx, dword ptr [ebp + 8] */
   6489     MEM32(ebp + (-0xC)) = eax; /* 0x42008C59: mov dword ptr [ebp - 0xc], eax */
   6490     edx = eax; /* 0x42008C5C: mov edx, eax */
   6491     eax = MEM32(ebp + (-0x4)); /* 0x42008C5E: mov eax, dword ptr [ebp - 4] */
   6492     eax = MEM32(eax + 0x4); /* 0x42008C61: mov eax, dword ptr [eax + 4] */
   6493     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6494     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6495     esp = esp + 4; /* 0x42008C64: add esp, 4 */
   6496     _flag_k = FK_ADD;
   6497     /* cmp eax, ecx */ /* 0x42008C67: cmp eax, ecx */
   6498     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6500     _flag_k = FK_CMP;
   6501     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008C90; /* 0x42008C69: je 0x42008c90 */
   6502 L_42008C6B:
   6503     /* test edx, edx */ /* 0x42008C6B: test edx, edx */
   6504     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   6505     _cf = 0;
   6506     _flag_k = FK_TEST;
   6507     if (TEST_Z(_flag_a, _flag_b)) goto L_42008C83; /* 0x42008C6D: je 0x42008c83 */
   6508 L_42008C6F:
   6509     ecx = eax; /* 0x42008C6F: mov ecx, eax */
   6510     ebx = MEM32(ecx); /* 0x42008C71: mov ebx, dword ptr [ecx] */
   6511     edi = edx; /* 0x42008C73: mov edi, edx */
   6512     MEM32(edi) = ebx; /* 0x42008C75: mov dword ptr [edi], ebx */
   6513     ebx = MEM32(ecx + 0x4); /* 0x42008C77: mov ebx, dword ptr [ecx + 4] */
   6514     MEM32(edi + 0x4) = ebx; /* 0x42008C7A: mov dword ptr [edi + 4], ebx */
   6515     ecx = MEM32(ecx + 0x8); /* 0x42008C7D: mov ecx, dword ptr [ecx + 8] */
   6516     MEM32(edi + 0x8) = ecx; /* 0x42008C80: mov dword ptr [edi + 8], ecx */
   6517 L_42008C83:
   6518     ecx = MEM32(ebp + 0x8); /* 0x42008C83: mov ecx, dword ptr [ebp + 8] */
   6519     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6520     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6521     eax = eax + 0xCu; /* 0x42008C86: add eax, 0xc */
   6522     _flag_k = FK_ADD;
   6523     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   6524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6525     edx = edx + 0xCu; /* 0x42008C89: add edx, 0xc */
   6526     _flag_k = FK_ADD;
   6527     /* cmp eax, ecx */ /* 0x42008C8C: cmp eax, ecx */
   6528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6530     _flag_k = FK_CMP;
   6531     RECOMP_BACKEDGE();
   6532     if (CMP_NE(_flag_a, _flag_b)) goto L_42008C6B; /* 0x42008C8E: jne 0x42008c6b */
   6533 L_42008C90:
   6534     /* test esi, esi */ /* 0x42008C90: test esi, esi */
   6535     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6536     _cf = 0;
   6537     _flag_k = FK_TEST;
   6538     eax = edx; /* 0x42008C92: mov eax, edx */
   6539     if (TEST_Z(_flag_a, _flag_b)) goto L_42008CBE; /* 0x42008C94: jbe 0x42008cbe */
   6540 L_42008C96:
   6541     MEM32(ebp + 0xC) = esi; /* 0x42008C96: mov dword ptr [ebp + 0xc], esi */
   6542 L_42008C99:
   6543     /* test eax, eax */ /* 0x42008C99: test eax, eax */
   6544     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6545     _cf = 0;
   6546     _flag_k = FK_TEST;
   6547     if (TEST_Z(_flag_a, _flag_b)) goto L_42008CB2; /* 0x42008C9B: je 0x42008cb2 */
   6548 L_42008C9D:
   6549     ecx = MEM32(ebp + 0x10); /* 0x42008C9D: mov ecx, dword ptr [ebp + 0x10] */
   6550     ebx = MEM32(ecx); /* 0x42008CA0: mov ebx, dword ptr [ecx] */
   6551     edi = eax; /* 0x42008CA2: mov edi, eax */
   6552     MEM32(edi) = ebx; /* 0x42008CA4: mov dword ptr [edi], ebx */
   6553     ebx = MEM32(ecx + 0x4); /* 0x42008CA6: mov ebx, dword ptr [ecx + 4] */
   6554     MEM32(edi + 0x4) = ebx; /* 0x42008CA9: mov dword ptr [edi + 4], ebx */
   6555     ecx = MEM32(ecx + 0x8); /* 0x42008CAC: mov ecx, dword ptr [ecx + 8] */
   6556     MEM32(edi + 0x8) = ecx; /* 0x42008CAF: mov dword ptr [edi + 8], ecx */
   6557 L_42008CB2:
   6558     ecx = MEM32(ebp + 0xC); /* 0x42008CB2: mov ecx, dword ptr [ebp + 0xc] */
   6559     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6560     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6561     eax = eax + 0xCu; /* 0x42008CB5: add eax, 0xc */
   6562     _flag_k = FK_ADD;
   6563     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6564     ecx = ecx - 1; /* 0x42008CB8: dec ecx */
   6565     _flag_k = FK_DEC;
   6566     MEM32(ebp + 0xC) = ecx; /* 0x42008CB9: mov dword ptr [ebp + 0xc], ecx */
   6567     RECOMP_BACKEDGE();
   6568     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_42008C99; /* 0x42008CBC: jne 0x42008c99 */
   6569 L_42008CBE:
   6570     eax = MEM32(ebp + (-0x4)); /* 0x42008CBE: mov eax, dword ptr [ebp - 4] */
   6571     ebx = MEM32(eax + 0x8); /* 0x42008CC1: mov ebx, dword ptr [eax + 8] */
   6572     eax = MEM32(ebp + 0x8); /* 0x42008CC4: mov eax, dword ptr [ebp + 8] */
   6573     ecx = esi + esi * 2; /* 0x42008CC7: lea ecx, [esi + esi*2] */
   6574     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x42008CCA: shl ecx, 2 */
   6575     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6576     ecx = ecx << 2u; /* 0x42008CCA: shl ecx, 2 */
   6577     /* cmp eax, ebx */ /* 0x42008CCD: cmp eax, ebx */
   6578     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6579     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6580     _flag_k = FK_CMP;
   6581     edi = ecx + edx; /* 0x42008CCF: lea edi, [ecx + edx] */
   6582     MEM32(ebp + 0x10) = ebx; /* 0x42008CD2: mov dword ptr [ebp + 0x10], ebx */
   6583     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008D07; /* 0x42008CD5: je 0x42008d07 */
   6584 L_42008CD7:
   6585     eax = edi; /* 0x42008CD7: mov eax, edi */
   6586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6588     eax = eax - ecx; /* 0x42008CD9: sub eax, ecx */
   6589     _flag_k = FK_CMP;
   6590     ecx = MEM32(ebp + 0x8); /* 0x42008CDB: mov ecx, dword ptr [ebp + 8] */
   6591     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6592     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6593     eax = eax - edx; /* 0x42008CDE: sub eax, edx */
   6594     _flag_k = FK_CMP;
   6595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6596     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6597     eax = eax + ecx; /* 0x42008CE0: add eax, ecx */
   6598     _flag_k = FK_ADD;
   6599 L_42008CE2:
   6600     /* test edi, edi */ /* 0x42008CE2: test edi, edi */
   6601     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6602     _cf = 0;
   6603     _flag_k = FK_TEST;
   6604     if (TEST_Z(_flag_a, _flag_b)) goto L_42008CFD; /* 0x42008CE4: je 0x42008cfd */
   6605 L_42008CE6:
   6606     ecx = eax; /* 0x42008CE6: mov ecx, eax */
   6607     ebx = MEM32(ecx); /* 0x42008CE8: mov ebx, dword ptr [ecx] */
   6608     edx = edi; /* 0x42008CEA: mov edx, edi */
   6609     MEM32(edx) = ebx; /* 0x42008CEC: mov dword ptr [edx], ebx */
   6610     ebx = MEM32(ecx + 0x4); /* 0x42008CEE: mov ebx, dword ptr [ecx + 4] */
   6611     MEM32(edx + 0x4) = ebx; /* 0x42008CF1: mov dword ptr [edx + 4], ebx */
   6612     ecx = MEM32(ecx + 0x8); /* 0x42008CF4: mov ecx, dword ptr [ecx + 8] */
   6613     ebx = MEM32(ebp + 0x10); /* 0x42008CF7: mov ebx, dword ptr [ebp + 0x10] */
   6614     MEM32(edx + 0x8) = ecx; /* 0x42008CFA: mov dword ptr [edx + 8], ecx */
   6615 L_42008CFD:
   6616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6617     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6618     eax = eax + 0xCu; /* 0x42008CFD: add eax, 0xc */
   6619     _flag_k = FK_ADD;
   6620     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   6621     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6622     edi = edi + 0xCu; /* 0x42008D00: add edi, 0xc */
   6623     _flag_k = FK_ADD;
   6624     /* cmp eax, ebx */ /* 0x42008D03: cmp eax, ebx */
   6625     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6627     _flag_k = FK_CMP;
   6628     RECOMP_BACKEDGE();
   6629     if (CMP_NE(_flag_a, _flag_b)) goto L_42008CE2; /* 0x42008D05: jne 0x42008ce2 */
   6630 L_42008D07:
   6631     edi = MEM32(ebp + (-0x4)); /* 0x42008D07: mov edi, dword ptr [ebp - 4] */
   6632     eax = MEM32(edi + 0x4); /* 0x42008D0A: mov eax, dword ptr [edi + 4] */
   6633     PUSH32(esp, eax); /* 0x42008D0D: push eax */
   6634     MEM32(ebp + 0x8) = eax; /* 0x42008D0E: mov dword ptr [ebp + 8], eax */
   6635     RECOMP_ICALL(0x42016DD0u); /* 0x42008D11: call 0x42016dd0 */ /* not lifted */
   6636     RECOMP_FLAGS_IN();
   6637     eax = MEM32(ebp + (-0x8)); /* 0x42008D16: mov eax, dword ptr [ebp - 8] */
   6638     ebx = MEM32(ebp + (-0xC)); /* 0x42008D19: mov ebx, dword ptr [ebp - 0xc] */
   6639     edx = eax + eax * 2; /* 0x42008D1C: lea edx, [eax + eax*2] */
   6640     eax = ebx + edx * 4; /* 0x42008D1F: lea eax, [ebx + edx*4] */
   6641     MEM32(edi + 0xC) = eax; /* 0x42008D22: mov dword ptr [edi + 0xc], eax */
   6642     eax = MEM32(edi + 0x4); /* 0x42008D25: mov eax, dword ptr [edi + 4] */
   6643     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6644     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6645     esp = esp + 4; /* 0x42008D28: add esp, 4 */
   6646     _flag_k = FK_ADD;
   6647     /* test eax, eax */ /* 0x42008D2B: test eax, eax */
   6648     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6649     _cf = 0;
   6650     _flag_k = FK_TEST;
   6651     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008D48; /* 0x42008D2D: jne 0x42008d48 */
   6652 L_42008D2F:
   6653     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6654     edx = 0; /* 0x42008D2F: xor edx, edx */
   6655     _cf = 0;
   6656     _flag_k = FK_TEST;
   6657     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   6658     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6659     esi = esi + edx; /* 0x42008D31: add esi, edx */
   6660     _flag_k = FK_ADD;
   6661     edx = esi + esi * 2; /* 0x42008D33: lea edx, [esi + esi*2] */
   6662     eax = ebx + edx * 4; /* 0x42008D36: lea eax, [ebx + edx*4] */
   6663     MEM32(edi + 0x4) = ebx; /* 0x42008D39: mov dword ptr [edi + 4], ebx */
   6664     MEM32(edi + 0x8) = eax; /* 0x42008D3C: mov dword ptr [edi + 8], eax */
   6665     edi = POP32_VAL(esp); /* 0x42008D3F: pop edi */
   6666     esi = POP32_VAL(esp); /* 0x42008D40: pop esi */
   6667     ebx = POP32_VAL(esp); /* 0x42008D41: pop ebx */
   6668     esp = ebp; /* 0x42008D42: mov esp, ebp */
   6669     ebp = POP32_VAL(esp); /* 0x42008D44: pop ebp */
   6670     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008D45: ret 0xc */
   6671 L_42008D48:
   6672     ecx = MEM32(edi + 0x8); /* 0x42008D48: mov ecx, dword ptr [edi + 8] */
   6673     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6675     ecx = ecx - eax; /* 0x42008D4B: sub ecx, eax */
   6676     _flag_k = FK_CMP;
   6677     eax = 0x2AAAAAABu; /* 0x42008D4D: mov eax, 0x2aaaaaab */
   6678     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42008D52: imul ecx */
   6679       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6680       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6681     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42008D54: sar edx, 1 */
   6682     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6683     edx = (uint32_t)((int32_t)edx >> 1u);
   6684     ecx = edx; /* 0x42008D56: mov ecx, edx */
   6685     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x42008D58: shr ecx, 0x1f */
   6686     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6687     ecx = ecx >> 31u; /* 0x42008D58: shr ecx, 0x1f */
   6688     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6689     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6690     edx = edx + ecx; /* 0x42008D5B: add edx, ecx */
   6691     _flag_k = FK_ADD;
   6692     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   6693     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6694     esi = esi + edx; /* 0x42008D5D: add esi, edx */
   6695     _flag_k = FK_ADD;
   6696     edx = esi + esi * 2; /* 0x42008D5F: lea edx, [esi + esi*2] */
   6697     eax = ebx + edx * 4; /* 0x42008D62: lea eax, [ebx + edx*4] */
   6698     MEM32(edi + 0x4) = ebx; /* 0x42008D65: mov dword ptr [edi + 4], ebx */
   6699     MEM32(edi + 0x8) = eax; /* 0x42008D68: mov dword ptr [edi + 8], eax */
   6700     edi = POP32_VAL(esp); /* 0x42008D6B: pop edi */
   6701     esi = POP32_VAL(esp); /* 0x42008D6C: pop esi */
   6702     ebx = POP32_VAL(esp); /* 0x42008D6D: pop ebx */
   6703     esp = ebp; /* 0x42008D6E: mov esp, ebp */
   6704     ebp = POP32_VAL(esp); /* 0x42008D70: pop ebp */
   6705     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008D71: ret 0xc */
   6706 L_42008D74:
   6707     edi = MEM32(ebp + 0x8); /* 0x42008D74: mov edi, dword ptr [ebp + 8] */
   6708     edx = ecx; /* 0x42008D77: mov edx, ecx */
   6709     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6711     edx = edx - edi; /* 0x42008D79: sub edx, edi */
   6712     _flag_k = FK_CMP;
   6713     eax = 0x2AAAAAABu; /* 0x42008D7B: mov eax, 0x2aaaaaab */
   6714     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x42008D80: imul edx */
   6715       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6716       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6717     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42008D82: sar edx, 1 */
   6718     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6719     edx = (uint32_t)((int32_t)edx >> 1u);
   6720     eax = edx; /* 0x42008D84: mov eax, edx */
   6721     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42008D86: shr eax, 0x1f */
   6722     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6723     eax = eax >> 31u; /* 0x42008D86: shr eax, 0x1f */
   6724     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6725     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6726     edx = edx + eax; /* 0x42008D89: add edx, eax */
   6727     _flag_k = FK_ADD;
   6728     /* cmp edx, esi */ /* 0x42008D8B: cmp edx, esi */
   6729     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   6730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6731     _flag_k = FK_CMP;
   6732     if (CMP_AE(_flag_a, _flag_b)) goto L_42008E53; /* 0x42008D8D: jae 0x42008e53 */
   6733 L_42008D93:
   6734     ebx = esi + esi * 2; /* 0x42008D93: lea ebx, [esi + esi*2] */
   6735     if (2u) _cf = (((ebx) >> 30) & 1u); /* 0x42008D96: shl ebx, 2 */
   6736     if (2u) { _flag_a = recomp_flags_pack((ebx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6737     ebx = ebx << 2u; /* 0x42008D96: shl ebx, 2 */
   6738     /* cmp edi, ecx */ /* 0x42008D99: cmp edi, ecx */
   6739     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   6740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6741     _flag_k = FK_CMP;
   6742     edx = ebx + edi; /* 0x42008D9B: lea edx, [ebx + edi] */
   6743     MEM32(ebp + 0x8) = ebx; /* 0x42008D9E: mov dword ptr [ebp + 8], ebx */
   6744     MEM32(ebp + 0xC) = edx; /* 0x42008DA1: mov dword ptr [ebp + 0xc], edx */
   6745     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008DD7; /* 0x42008DA4: je 0x42008dd7 */
   6746 L_42008DA6:
   6747     eax = edx; /* 0x42008DA6: mov eax, edx */
   6748     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6749     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6750     eax = eax - ebx; /* 0x42008DA8: sub eax, ebx */
   6751     _flag_k = FK_CMP;
   6752     MEM32(ebp + (-0x8)) = eax; /* 0x42008DAA: mov dword ptr [ebp - 8], eax */
   6753 L_42008DAD:
   6754     /* test edx, edx */ /* 0x42008DAD: test edx, edx */
   6755     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   6756     _cf = 0;
   6757     _flag_k = FK_TEST;
   6758     if (TEST_Z(_flag_a, _flag_b)) goto L_42008DC7; /* 0x42008DAF: je 0x42008dc7 */
   6759 L_42008DB1:
   6760     ebx = MEM32(eax); /* 0x42008DB1: mov ebx, dword ptr [eax] */
   6761     MEM32(edx) = ebx; /* 0x42008DB3: mov dword ptr [edx], ebx */
   6762     ebx = MEM32(eax + 0x4); /* 0x42008DB5: mov ebx, dword ptr [eax + 4] */
   6763     MEM32(edx + 0x4) = ebx; /* 0x42008DB8: mov dword ptr [edx + 4], ebx */
   6764     eax = MEM32(eax + 0x8); /* 0x42008DBB: mov eax, dword ptr [eax + 8] */
   6765     MEM32(edx + 0x8) = eax; /* 0x42008DBE: mov dword ptr [edx + 8], eax */
   6766     edx = MEM32(ebp + 0xC); /* 0x42008DC1: mov edx, dword ptr [ebp + 0xc] */
   6767     eax = MEM32(ebp + (-0x8)); /* 0x42008DC4: mov eax, dword ptr [ebp - 8] */
   6768 L_42008DC7:
   6769     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6770     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6771     eax = eax + 0xCu; /* 0x42008DC7: add eax, 0xc */
   6772     _flag_k = FK_ADD;
   6773     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   6774     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6775     edx = edx + 0xCu; /* 0x42008DCA: add edx, 0xc */
   6776     _flag_k = FK_ADD;
   6777     /* cmp eax, ecx */ /* 0x42008DCD: cmp eax, ecx */
   6778     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6779     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6780     _flag_k = FK_CMP;
   6781     MEM32(ebp + 0xC) = edx; /* 0x42008DCF: mov dword ptr [ebp + 0xc], edx */
   6782     MEM32(ebp + (-0x8)) = eax; /* 0x42008DD2: mov dword ptr [ebp - 8], eax */
   6783     RECOMP_BACKEDGE();
   6784     if (CMP_NE(_flag_a, _flag_b)) goto L_42008DAD; /* 0x42008DD5: jne 0x42008dad */
   6785 L_42008DD7:
   6786     ecx = MEM32(ebp + (-0x4)); /* 0x42008DD7: mov ecx, dword ptr [ebp - 4] */
   6787     ebx = MEM32(ecx + 0x8); /* 0x42008DDA: mov ebx, dword ptr [ecx + 8] */
   6788     ecx = ebx; /* 0x42008DDD: mov ecx, ebx */
   6789     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6791     ecx = ecx - edi; /* 0x42008DDF: sub ecx, edi */
   6792     _flag_k = FK_CMP;
   6793     eax = 0x2AAAAAABu; /* 0x42008DE1: mov eax, 0x2aaaaaab */
   6794     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x42008DE6: imul ecx */
   6795       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6796       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6797     ecx = MEM32(ebp + 0x10); /* 0x42008DE8: mov ecx, dword ptr [ebp + 0x10] */
   6798     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42008DEB: sar edx, 1 */
   6799     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6800     edx = (uint32_t)((int32_t)edx >> 1u);
   6801     eax = edx; /* 0x42008DED: mov eax, edx */
   6802     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x42008DEF: shr eax, 0x1f */
   6803     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6804     eax = eax >> 31u; /* 0x42008DEF: shr eax, 0x1f */
   6805     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6806     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6807     edx = edx + eax; /* 0x42008DF2: add edx, eax */
   6808     _flag_k = FK_ADD;
   6809     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   6810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6811     esi = esi - edx; /* 0x42008DF4: sub esi, edx */
   6812     _flag_k = FK_CMP;
   6813     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_42008E17; /* 0x42008DF6: je 0x42008e17 */
   6814 L_42008DF8:
   6815     /* test ebx, ebx */ /* 0x42008DF8: test ebx, ebx */
   6816     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6817     _cf = 0;
   6818     _flag_k = FK_TEST;
   6819     if (TEST_Z(_flag_a, _flag_b)) goto L_42008E11; /* 0x42008DFA: je 0x42008e11 */
   6820 L_42008DFC:
   6821     eax = MEM32(ecx); /* 0x42008DFC: mov eax, dword ptr [ecx] */
   6822     edx = ebx; /* 0x42008DFE: mov edx, ebx */
   6823     MEM32(edx) = eax; /* 0x42008E00: mov dword ptr [edx], eax */
   6824     eax = MEM32(ecx + 0x4); /* 0x42008E02: mov eax, dword ptr [ecx + 4] */
   6825     MEM32(edx + 0x4) = eax; /* 0x42008E05: mov dword ptr [edx + 4], eax */
   6826     ecx = MEM32(ecx + 0x8); /* 0x42008E08: mov ecx, dword ptr [ecx + 8] */
   6827     MEM32(edx + 0x8) = ecx; /* 0x42008E0B: mov dword ptr [edx + 8], ecx */
   6828     ecx = MEM32(ebp + 0x10); /* 0x42008E0E: mov ecx, dword ptr [ebp + 0x10] */
   6829 L_42008E11:
   6830     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   6831     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6832     ebx = ebx + 0xCu; /* 0x42008E11: add ebx, 0xc */
   6833     _flag_k = FK_ADD;
   6834     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   6835     esi = esi - 1; /* 0x42008E14: dec esi */
   6836     _flag_k = FK_DEC;
   6837     RECOMP_BACKEDGE();
   6838     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_42008DF8; /* 0x42008E15: jne 0x42008df8 */
   6839 L_42008E17:
   6840     edx = MEM32(ebp + (-0x4)); /* 0x42008E17: mov edx, dword ptr [ebp - 4] */
   6841     eax = MEM32(edx + 0x8); /* 0x42008E1A: mov eax, dword ptr [edx + 8] */
   6842     /* cmp edi, eax */ /* 0x42008E1D: cmp edi, eax */
   6843     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6845     _flag_k = FK_CMP;
   6846     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008E3F; /* 0x42008E1F: je 0x42008e3f */
   6847 L_42008E21:
   6848     edx = ecx; /* 0x42008E21: mov edx, ecx */
   6849     ebx = MEM32(edx); /* 0x42008E23: mov ebx, dword ptr [edx] */
   6850     esi = edi; /* 0x42008E25: mov esi, edi */
   6851     MEM32(esi) = ebx; /* 0x42008E27: mov dword ptr [esi], ebx */
   6852     ebx = MEM32(edx + 0x4); /* 0x42008E29: mov ebx, dword ptr [edx + 4] */
   6853     MEM32(esi + 0x4) = ebx; /* 0x42008E2C: mov dword ptr [esi + 4], ebx */
   6854     edx = MEM32(edx + 0x8); /* 0x42008E2F: mov edx, dword ptr [edx + 8] */
   6855     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   6856     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6857     edi = edi + 0xCu; /* 0x42008E32: add edi, 0xc */
   6858     _flag_k = FK_ADD;
   6859     /* cmp edi, eax */ /* 0x42008E35: cmp edi, eax */
   6860     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6862     _flag_k = FK_CMP;
   6863     MEM32(esi + 0x8) = edx; /* 0x42008E37: mov dword ptr [esi + 8], edx */
   6864     RECOMP_BACKEDGE();
   6865     if (CMP_NE(_flag_a, _flag_b)) goto L_42008E21; /* 0x42008E3A: jne 0x42008e21 */
   6866 L_42008E3C:
   6867     edx = MEM32(ebp + (-0x4)); /* 0x42008E3C: mov edx, dword ptr [ebp - 4] */
   6868 L_42008E3F:
   6869     ecx = MEM32(edx + 0x8); /* 0x42008E3F: mov ecx, dword ptr [edx + 8] */
   6870     eax = MEM32(ebp + 0x8); /* 0x42008E42: mov eax, dword ptr [ebp + 8] */
   6871     edi = POP32_VAL(esp); /* 0x42008E45: pop edi */
   6872     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6873     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6874     ecx = ecx + eax; /* 0x42008E46: add ecx, eax */
   6875     _flag_k = FK_ADD;
   6876     esi = POP32_VAL(esp); /* 0x42008E48: pop esi */
   6877     MEM32(edx + 0x8) = ecx; /* 0x42008E49: mov dword ptr [edx + 8], ecx */
   6878     ebx = POP32_VAL(esp); /* 0x42008E4C: pop ebx */
   6879     esp = ebp; /* 0x42008E4D: mov esp, ebp */
   6880     ebp = POP32_VAL(esp); /* 0x42008E4F: pop ebp */
   6881     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008E50: ret 0xc */
   6882 L_42008E53:
   6883     /* test esi, esi */ /* 0x42008E53: test esi, esi */
   6884     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6885     _cf = 0;
   6886     _flag_k = FK_TEST;
   6887     if (TEST_Z(_flag_a, _flag_b)) goto L_42008EF5; /* 0x42008E55: jbe 0x42008ef5 */
   6888 L_42008E5B:
   6889     esi = esi + esi * 2; /* 0x42008E5B: lea esi, [esi + esi*2] */
   6890     if (2u) _cf = (((esi) >> 30) & 1u); /* 0x42008E5E: shl esi, 2 */
   6891     if (2u) { _flag_a = recomp_flags_pack((esi << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6892     esi = esi << 2u; /* 0x42008E5E: shl esi, 2 */
   6893     eax = ecx; /* 0x42008E61: mov eax, ecx */
   6894     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   6895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6896     eax = eax - esi; /* 0x42008E63: sub eax, esi */
   6897     _flag_k = FK_CMP;
   6898     /* cmp eax, ecx */ /* 0x42008E65: cmp eax, ecx */
   6899     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6901     _flag_k = FK_CMP;
   6902     edx = ecx; /* 0x42008E67: mov edx, ecx */
   6903     MEM32(ebp + 0xC) = edx; /* 0x42008E69: mov dword ptr [ebp + 0xc], edx */
   6904     MEM32(ebp + 0x8) = esi; /* 0x42008E6C: mov dword ptr [ebp + 8], esi */
   6905     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008E9D; /* 0x42008E6F: je 0x42008e9d */
   6906 L_42008E71:
   6907     /* test edx, edx */ /* 0x42008E71: test edx, edx */
   6908     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   6909     _cf = 0;
   6910     _flag_k = FK_TEST;
   6911     if (TEST_Z(_flag_a, _flag_b)) goto L_42008E90; /* 0x42008E73: je 0x42008e90 */
   6912 L_42008E75:
   6913     esi = eax; /* 0x42008E75: mov esi, eax */
   6914     ebx = MEM32(esi); /* 0x42008E77: mov ebx, dword ptr [esi] */
   6915     MEM32(edx) = ebx; /* 0x42008E79: mov dword ptr [edx], ebx */
   6916     ebx = MEM32(esi + 0x4); /* 0x42008E7B: mov ebx, dword ptr [esi + 4] */
   6917     MEM32(edx + 0x4) = ebx; /* 0x42008E7E: mov dword ptr [edx + 4], ebx */
   6918     esi = MEM32(esi + 0x8); /* 0x42008E81: mov esi, dword ptr [esi + 8] */
   6919     ebx = MEM32(ebp + (-0x4)); /* 0x42008E84: mov ebx, dword ptr [ebp - 4] */
   6920     MEM32(edx + 0x8) = esi; /* 0x42008E87: mov dword ptr [edx + 8], esi */
   6921     edx = MEM32(ebp + 0xC); /* 0x42008E8A: mov edx, dword ptr [ebp + 0xc] */
   6922     esi = MEM32(ebp + 0x8); /* 0x42008E8D: mov esi, dword ptr [ebp + 8] */
   6923 L_42008E90:
   6924     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   6925     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6926     edx = edx + 0xCu; /* 0x42008E90: add edx, 0xc */
   6927     _flag_k = FK_ADD;
   6928     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6929     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6930     eax = eax + 0xCu; /* 0x42008E93: add eax, 0xc */
   6931     _flag_k = FK_ADD;
   6932     /* cmp eax, ecx */ /* 0x42008E96: cmp eax, ecx */
   6933     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6934     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6935     _flag_k = FK_CMP;
   6936     MEM32(ebp + 0xC) = edx; /* 0x42008E98: mov dword ptr [ebp + 0xc], edx */
   6937     RECOMP_BACKEDGE();
   6938     if (CMP_NE(_flag_a, _flag_b)) goto L_42008E71; /* 0x42008E9B: jne 0x42008e71 */
   6939 L_42008E9D:
   6940     ecx = MEM32(ebx + 0x8); /* 0x42008E9D: mov ecx, dword ptr [ebx + 8] */
   6941     eax = ecx; /* 0x42008EA0: mov eax, ecx */
   6942     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   6943     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6944     eax = eax - esi; /* 0x42008EA2: sub eax, esi */
   6945     _flag_k = FK_CMP;
   6946     /* cmp edi, eax */ /* 0x42008EA4: cmp edi, eax */
   6947     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6948     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6949     _flag_k = FK_CMP;
   6950     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008ECC; /* 0x42008EA6: je 0x42008ecc */
   6951 L_42008EA8:
   6952     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6954     eax = eax - 0xCu; /* 0x42008EA8: sub eax, 0xc */
   6955     _flag_k = FK_CMP;
   6956     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   6957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6958     ecx = ecx - 0xCu; /* 0x42008EAB: sub ecx, 0xc */
   6959     _flag_k = FK_CMP;
   6960     /* cmp eax, edi */ /* 0x42008EAE: cmp eax, edi */
   6961     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6963     _flag_k = FK_CMP;
   6964     edx = eax; /* 0x42008EB0: mov edx, eax */
   6965     ebx = MEM32(edx); /* 0x42008EB2: mov ebx, dword ptr [edx] */
   6966     esi = ecx; /* 0x42008EB4: mov esi, ecx */
   6967     MEM32(esi) = ebx; /* 0x42008EB6: mov dword ptr [esi], ebx */
   6968     ebx = MEM32(edx + 0x4); /* 0x42008EB8: mov ebx, dword ptr [edx + 4] */
   6969     MEM32(esi + 0x4) = ebx; /* 0x42008EBB: mov dword ptr [esi + 4], ebx */
   6970     edx = MEM32(edx + 0x8); /* 0x42008EBE: mov edx, dword ptr [edx + 8] */
   6971     MEM32(esi + 0x8) = edx; /* 0x42008EC1: mov dword ptr [esi + 8], edx */
   6972     RECOMP_BACKEDGE();
   6973     if (CMP_NE(_flag_a, _flag_b)) goto L_42008EA8; /* 0x42008EC4: jne 0x42008ea8 */
   6974 L_42008EC6:
   6975     esi = MEM32(ebp + 0x8); /* 0x42008EC6: mov esi, dword ptr [ebp + 8] */
   6976     ebx = MEM32(ebp + (-0x4)); /* 0x42008EC9: mov ebx, dword ptr [ebp - 4] */
   6977 L_42008ECC:
   6978     eax = esi + edi; /* 0x42008ECC: lea eax, [esi + edi] */
   6979     /* cmp edi, eax */ /* 0x42008ECF: cmp edi, eax */
   6980     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6982     _flag_k = FK_CMP;
   6983     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008EF2; /* 0x42008ED1: je 0x42008ef2 */
   6984 L_42008ED3:
   6985     ecx = MEM32(ebp + 0x10); /* 0x42008ED3: mov ecx, dword ptr [ebp + 0x10] */
   6986     ebx = MEM32(ecx); /* 0x42008ED6: mov ebx, dword ptr [ecx] */
   6987     edx = edi; /* 0x42008ED8: mov edx, edi */
   6988     MEM32(edx) = ebx; /* 0x42008EDA: mov dword ptr [edx], ebx */
   6989     ebx = MEM32(ecx + 0x4); /* 0x42008EDC: mov ebx, dword ptr [ecx + 4] */
   6990     MEM32(edx + 0x4) = ebx; /* 0x42008EDF: mov dword ptr [edx + 4], ebx */
   6991     ecx = MEM32(ecx + 0x8); /* 0x42008EE2: mov ecx, dword ptr [ecx + 8] */
   6992     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   6993     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6994     edi = edi + 0xCu; /* 0x42008EE5: add edi, 0xc */
   6995     _flag_k = FK_ADD;
   6996     /* cmp edi, eax */ /* 0x42008EE8: cmp edi, eax */
   6997     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6998     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6999     _flag_k = FK_CMP;
   7000     MEM32(edx + 0x8) = ecx; /* 0x42008EEA: mov dword ptr [edx + 8], ecx */
   7001     RECOMP_BACKEDGE();
   7002     if (CMP_NE(_flag_a, _flag_b)) goto L_42008ED3; /* 0x42008EED: jne 0x42008ed3 */
   7003 L_42008EEF:
   7004     ebx = MEM32(ebp + (-0x4)); /* 0x42008EEF: mov ebx, dword ptr [ebp - 4] */
   7005 L_42008EF2:
   7006     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   7007     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7008     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + esi; /* 0x42008EF2: add dword ptr [ebx + 8], esi */
   7009     _flag_k = FK_ADD;
   7010 L_42008EF5:
   7011     edi = POP32_VAL(esp); /* 0x42008EF5: pop edi */
   7012     esi = POP32_VAL(esp); /* 0x42008EF6: pop esi */
   7013     ebx = POP32_VAL(esp); /* 0x42008EF7: pop ebx */
   7014     esp = ebp; /* 0x42008EF8: mov esp, ebp */
   7015     ebp = POP32_VAL(esp); /* 0x42008EFA: pop ebp */
   7016     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42008EFB: ret 0xc */
   7017     RECOMP_REGS_OUT();
   7018 }
   7019 
   7020 void sub_42008F00(void) {
   7021     int _fpu_cmp = 0;
   7022     uint32_t _cf = 0;
   7023     int _df = 1;
   7024     uint32_t _flag_k = FK_NONE;
   7025     uint32_t _flag_a = 0, _flag_b = 0;
   7026     uint32_t _itail_tgt = 0;
   7027     RECOMP_REGS_LOCALS
   7028     RECOMP_ENTER(0x42008F00u);
   7029 
   7030 L_42008F00:
   7031     PUSH32(esp, ebp); /* 0x42008F00: push ebp */
   7032     ebp = esp; /* 0x42008F01: mov ebp, esp */
   7033     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7034     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7035     esp = esp - 0xCu; /* 0x42008F03: sub esp, 0xc */
   7036     _flag_k = FK_CMP;
   7037     eax = MEM32(ecx + 0x8); /* 0x42008F06: mov eax, dword ptr [ecx + 8] */
   7038     edx = MEM32(ecx + 0xC); /* 0x42008F09: mov edx, dword ptr [ecx + 0xc] */
   7039     PUSH32(esp, ebx); /* 0x42008F0C: push ebx */
   7040     PUSH32(esp, esi); /* 0x42008F0D: push esi */
   7041     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7043     edx = edx - eax; /* 0x42008F0E: sub edx, eax */
   7044     _flag_k = FK_CMP;
   7045     PUSH32(esp, edi); /* 0x42008F10: push edi */
   7046     edi = MEM32(ebp + 0xC); /* 0x42008F11: mov edi, dword ptr [ebp + 0xc] */
   7047     if (4u) _cf = (((edx) >> 3) & 1u); /* 0x42008F14: sar edx, 4 */
   7048     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7049     edx = (uint32_t)((int32_t)edx >> 4u);
   7050     /* cmp edx, edi */ /* 0x42008F17: cmp edx, edi */
   7051     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7052     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7053     _flag_k = FK_CMP;
   7054     MEM32(ebp + (-0x4)) = ecx; /* 0x42008F19: mov dword ptr [ebp - 4], ecx */
   7055     if (CMP_AE(_flag_a, _flag_b)) goto L_42009076; /* 0x42008F1C: jae 0x42009076 */
   7056 L_42008F22:
   7057     edx = MEM32(ecx + 0x4); /* 0x42008F22: mov edx, dword ptr [ecx + 4] */
   7058     /* test edx, edx */ /* 0x42008F25: test edx, edx */
   7059     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   7060     _cf = 0;
   7061     _flag_k = FK_TEST;
   7062     if (TEST_Z(_flag_a, _flag_b)) goto L_42008F34; /* 0x42008F27: je 0x42008f34 */
   7063 L_42008F29:
   7064     ecx = eax; /* 0x42008F29: mov ecx, eax */
   7065     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7067     ecx = ecx - edx; /* 0x42008F2B: sub ecx, edx */
   7068     _flag_k = FK_CMP;
   7069     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x42008F2D: sar ecx, 4 */
   7070     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7071     ecx = (uint32_t)((int32_t)ecx >> 4u);
   7072     /* cmp edi, ecx */ /* 0x42008F30: cmp edi, ecx */
   7073     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   7074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7075     _flag_k = FK_CMP;
   7076     if (CMP_B(_flag_a, _flag_b)) goto L_42008F36; /* 0x42008F32: jb 0x42008f36 */
   7077 L_42008F34:
   7078     ecx = edi; /* 0x42008F34: mov ecx, edi */
   7079 L_42008F36:
   7080     /* test edx, edx */ /* 0x42008F36: test edx, edx */
   7081     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   7082     _cf = 0;
   7083     _flag_k = FK_TEST;
   7084     if (TEST_NZ(_flag_a, _flag_b)) goto L_42008F3E; /* 0x42008F38: jne 0x42008f3e */
   7085 L_42008F3A:
   7086     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7087     eax = 0; /* 0x42008F3A: xor eax, eax */
   7088     _cf = 0;
   7089     _flag_k = FK_TEST;
   7090     goto L_42008F43; /* 0x42008F3C: jmp 0x42008f43 */
   7091 L_42008F3E:
   7092     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7094     eax = eax - edx; /* 0x42008F3E: sub eax, edx */
   7095     _flag_k = FK_CMP;
   7096     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x42008F40: sar eax, 4 */
   7097     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7098     eax = (uint32_t)((int32_t)eax >> 4u);
   7099 L_42008F43:
   7100     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7101     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7102     eax = eax + ecx; /* 0x42008F43: add eax, ecx */
   7103     _flag_k = FK_ADD;
   7104     /* test eax, eax */ /* 0x42008F45: test eax, eax */
   7105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7106     _cf = 0;
   7107     _flag_k = FK_TEST;
   7108     MEM32(ebp + (-0x8)) = eax; /* 0x42008F47: mov dword ptr [ebp - 8], eax */
   7109     if (TEST_NS(_flag_a, _flag_b)) goto L_42008F4E; /* 0x42008F4A: jge 0x42008f4e */
   7110 L_42008F4C:
   7111     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7112     eax = 0; /* 0x42008F4C: xor eax, eax */
   7113     _cf = 0;
   7114     _flag_k = FK_TEST;
   7115 L_42008F4E:
   7116     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42008F4E: shl eax, 4 */
   7117     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7118     eax = eax << 4u; /* 0x42008F4E: shl eax, 4 */
   7119     PUSH32(esp, eax); /* 0x42008F51: push eax */
   7120     RECOMP_ICALL(0x42016F36u); /* 0x42008F52: call 0x42016f36 */ /* not lifted */
   7121     RECOMP_FLAGS_IN();
   7122     ecx = MEM32(ebp + 0x8); /* 0x42008F57: mov ecx, dword ptr [ebp + 8] */
   7123     MEM32(ebp + (-0xC)) = eax; /* 0x42008F5A: mov dword ptr [ebp - 0xc], eax */
   7124     edx = eax; /* 0x42008F5D: mov edx, eax */
   7125     eax = MEM32(ebp + (-0x4)); /* 0x42008F5F: mov eax, dword ptr [ebp - 4] */
   7126     eax = MEM32(eax + 0x4); /* 0x42008F62: mov eax, dword ptr [eax + 4] */
   7127     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7128     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7129     esp = esp + 4; /* 0x42008F65: add esp, 4 */
   7130     _flag_k = FK_ADD;
   7131     /* cmp eax, ecx */ /* 0x42008F68: cmp eax, ecx */
   7132     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7133     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7134     _flag_k = FK_CMP;
   7135     if (CMP_EQ(_flag_a, _flag_b)) goto L_42008F97; /* 0x42008F6A: je 0x42008f97 */
   7136 L_42008F6C:
   7137     /* test edx, edx */ /* 0x42008F6C: test edx, edx */
   7138     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   7139     _cf = 0;
   7140     _flag_k = FK_TEST;
   7141     if (TEST_Z(_flag_a, _flag_b)) goto L_42008F8A; /* 0x42008F6E: je 0x42008f8a */
   7142 L_42008F70:
   7143     ecx = eax; /* 0x42008F70: mov ecx, eax */
   7144     ebx = MEM32(ecx); /* 0x42008F72: mov ebx, dword ptr [ecx] */
   7145     esi = edx; /* 0x42008F74: mov esi, edx */
   7146     MEM32(esi) = ebx; /* 0x42008F76: mov dword ptr [esi], ebx */
   7147     ebx = MEM32(ecx + 0x4); /* 0x42008F78: mov ebx, dword ptr [ecx + 4] */
   7148     MEM32(esi + 0x4) = ebx; /* 0x42008F7B: mov dword ptr [esi + 4], ebx */
   7149     ebx = MEM32(ecx + 0x8); /* 0x42008F7E: mov ebx, dword ptr [ecx + 8] */
   7150     MEM32(esi + 0x8) = ebx; /* 0x42008F81: mov dword ptr [esi + 8], ebx */
   7151     ecx = MEM32(ecx + 0xC); /* 0x42008F84: mov ecx, dword ptr [ecx + 0xc] */
   7152     MEM32(esi + 0xC) = ecx; /* 0x42008F87: mov dword ptr [esi + 0xc], ecx */
   7153 L_42008F8A:
   7154     ecx = MEM32(ebp + 0x8); /* 0x42008F8A: mov ecx, dword ptr [ebp + 8] */
   7155     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   7156     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7157     eax = eax + 0x10u; /* 0x42008F8D: add eax, 0x10 */
   7158     _flag_k = FK_ADD;
   7159     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   7160     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7161     edx = edx + 0x10u; /* 0x42008F90: add edx, 0x10 */
   7162     _flag_k = FK_ADD;
   7163     /* cmp eax, ecx */ /* 0x42008F93: cmp eax, ecx */
   7164     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7165     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7166     _flag_k = FK_CMP;
   7167     RECOMP_BACKEDGE();
   7168     if (CMP_NE(_flag_a, _flag_b)) goto L_42008F6C; /* 0x42008F95: jne 0x42008f6c */
   7169 L_42008F97:
   7170     /* test edi, edi */ /* 0x42008F97: test edi, edi */
   7171     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7172     _cf = 0;
   7173     _flag_k = FK_TEST;
   7174     eax = edx; /* 0x42008F99: mov eax, edx */
   7175     if (TEST_Z(_flag_a, _flag_b)) goto L_42008FCB; /* 0x42008F9B: jbe 0x42008fcb */
   7176 L_42008F9D:
   7177     MEM32(ebp + 0xC) = edi; /* 0x42008F9D: mov dword ptr [ebp + 0xc], edi */
   7178 L_42008FA0:
   7179     /* test eax, eax */ /* 0x42008FA0: test eax, eax */
   7180     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7181     _cf = 0;
   7182     _flag_k = FK_TEST;
   7183     if (TEST_Z(_flag_a, _flag_b)) goto L_42008FBF; /* 0x42008FA2: je 0x42008fbf */
   7184 L_42008FA4:
   7185     ecx = MEM32(ebp + 0x10); /* 0x42008FA4: mov ecx, dword ptr [ebp + 0x10] */
   7186     ebx = MEM32(ecx); /* 0x42008FA7: mov ebx, dword ptr [ecx] */
   7187     esi = eax; /* 0x42008FA9: mov esi, eax */
   7188     MEM32(esi) = ebx; /* 0x42008FAB: mov dword ptr [esi], ebx */
   7189     ebx = MEM32(ecx + 0x4); /* 0x42008FAD: mov ebx, dword ptr [ecx + 4] */
   7190     MEM32(esi + 0x4) = ebx; /* 0x42008FB0: mov dword ptr [esi + 4], ebx */
   7191     ebx = MEM32(ecx + 0x8); /* 0x42008FB3: mov ebx, dword ptr [ecx + 8] */
   7192     MEM32(esi + 0x8) = ebx; /* 0x42008FB6: mov dword ptr [esi + 8], ebx */
   7193     ecx = MEM32(ecx + 0xC); /* 0x42008FB9: mov ecx, dword ptr [ecx + 0xc] */
   7194     MEM32(esi + 0xC) = ecx; /* 0x42008FBC: mov dword ptr [esi + 0xc], ecx */
   7195 L_42008FBF:
   7196     ecx = MEM32(ebp + 0xC); /* 0x42008FBF: mov ecx, dword ptr [ebp + 0xc] */
   7197     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   7198     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7199     eax = eax + 0x10u; /* 0x42008FC2: add eax, 0x10 */
   7200     _flag_k = FK_ADD;
   7201     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7202     ecx = ecx - 1; /* 0x42008FC5: dec ecx */
   7203     _flag_k = FK_DEC;
   7204     MEM32(ebp + 0xC) = ecx; /* 0x42008FC6: mov dword ptr [ebp + 0xc], ecx */
   7205     RECOMP_BACKEDGE();
   7206     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_42008FA0; /* 0x42008FC9: jne 0x42008fa0 */
   7207 L_42008FCB:
   7208     eax = MEM32(ebp + (-0x4)); /* 0x42008FCB: mov eax, dword ptr [ebp - 4] */
   7209     ebx = MEM32(eax + 0x8); /* 0x42008FCE: mov ebx, dword ptr [eax + 8] */
   7210     eax = MEM32(ebp + 0x8); /* 0x42008FD1: mov eax, dword ptr [ebp + 8] */
   7211     ecx = edi; /* 0x42008FD4: mov ecx, edi */
   7212     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x42008FD6: shl ecx, 4 */
   7213     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7214     ecx = ecx << 4u; /* 0x42008FD6: shl ecx, 4 */
   7215     /* cmp eax, ebx */ /* 0x42008FD9: cmp eax, ebx */
   7216     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7218     _flag_k = FK_CMP;
   7219     esi = ecx + edx; /* 0x42008FDB: lea esi, [ecx + edx] */
   7220     MEM32(ebp + 0x10) = ebx; /* 0x42008FDE: mov dword ptr [ebp + 0x10], ebx */
   7221     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009019; /* 0x42008FE1: je 0x42009019 */
   7222 L_42008FE3:
   7223     eax = esi; /* 0x42008FE3: mov eax, esi */
   7224     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7226     eax = eax - ecx; /* 0x42008FE5: sub eax, ecx */
   7227     _flag_k = FK_CMP;
   7228     ecx = MEM32(ebp + 0x8); /* 0x42008FE7: mov ecx, dword ptr [ebp + 8] */
   7229     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7231     eax = eax - edx; /* 0x42008FEA: sub eax, edx */
   7232     _flag_k = FK_CMP;
   7233     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7234     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7235     eax = eax + ecx; /* 0x42008FEC: add eax, ecx */
   7236     _flag_k = FK_ADD;
   7237 L_42008FEE:
   7238     /* test esi, esi */ /* 0x42008FEE: test esi, esi */
   7239     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   7240     _cf = 0;
   7241     _flag_k = FK_TEST;
   7242     if (TEST_Z(_flag_a, _flag_b)) goto L_4200900F; /* 0x42008FF0: je 0x4200900f */
   7243 L_42008FF2:
   7244     ecx = eax; /* 0x42008FF2: mov ecx, eax */
   7245     ebx = MEM32(ecx); /* 0x42008FF4: mov ebx, dword ptr [ecx] */
   7246     edx = esi; /* 0x42008FF6: mov edx, esi */
   7247     MEM32(edx) = ebx; /* 0x42008FF8: mov dword ptr [edx], ebx */
   7248     ebx = MEM32(ecx + 0x4); /* 0x42008FFA: mov ebx, dword ptr [ecx + 4] */
   7249     MEM32(edx + 0x4) = ebx; /* 0x42008FFD: mov dword ptr [edx + 4], ebx */
   7250     ebx = MEM32(ecx + 0x8); /* 0x42009000: mov ebx, dword ptr [ecx + 8] */
   7251     MEM32(edx + 0x8) = ebx; /* 0x42009003: mov dword ptr [edx + 8], ebx */
   7252     ecx = MEM32(ecx + 0xC); /* 0x42009006: mov ecx, dword ptr [ecx + 0xc] */
   7253     ebx = MEM32(ebp + 0x10); /* 0x42009009: mov ebx, dword ptr [ebp + 0x10] */
   7254     MEM32(edx + 0xC) = ecx; /* 0x4200900C: mov dword ptr [edx + 0xc], ecx */
   7255 L_4200900F:
   7256     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   7257     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7258     eax = eax + 0x10u; /* 0x4200900F: add eax, 0x10 */
   7259     _flag_k = FK_ADD;
   7260     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   7261     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7262     esi = esi + 0x10u; /* 0x42009012: add esi, 0x10 */
   7263     _flag_k = FK_ADD;
   7264     /* cmp eax, ebx */ /* 0x42009015: cmp eax, ebx */
   7265     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7267     _flag_k = FK_CMP;
   7268     RECOMP_BACKEDGE();
   7269     if (CMP_NE(_flag_a, _flag_b)) goto L_42008FEE; /* 0x42009017: jne 0x42008fee */
   7270 L_42009019:
   7271     esi = MEM32(ebp + (-0x4)); /* 0x42009019: mov esi, dword ptr [ebp - 4] */
   7272     eax = MEM32(esi + 0x4); /* 0x4200901C: mov eax, dword ptr [esi + 4] */
   7273     PUSH32(esp, eax); /* 0x4200901F: push eax */
   7274     MEM32(ebp + 0x8) = eax; /* 0x42009020: mov dword ptr [ebp + 8], eax */
   7275     RECOMP_ICALL(0x42016DD0u); /* 0x42009023: call 0x42016dd0 */ /* not lifted */
   7276     RECOMP_FLAGS_IN();
   7277     eax = MEM32(ebp + (-0x8)); /* 0x42009028: mov eax, dword ptr [ebp - 8] */
   7278     edx = MEM32(ebp + (-0xC)); /* 0x4200902B: mov edx, dword ptr [ebp - 0xc] */
   7279     ecx = MEM32(esi + 0x4); /* 0x4200902E: mov ecx, dword ptr [esi + 4] */
   7280     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42009031: shl eax, 4 */
   7281     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7282     eax = eax << 4u; /* 0x42009031: shl eax, 4 */
   7283     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7284     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7285     eax = eax + edx; /* 0x42009034: add eax, edx */
   7286     _flag_k = FK_ADD;
   7287     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7288     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7289     esp = esp + 4; /* 0x42009036: add esp, 4 */
   7290     _flag_k = FK_ADD;
   7291     /* test ecx, ecx */ /* 0x42009039: test ecx, ecx */
   7292     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7293     _cf = 0;
   7294     _flag_k = FK_TEST;
   7295     MEM32(esi + 0xC) = eax; /* 0x4200903B: mov dword ptr [esi + 0xc], eax */
   7296     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009058; /* 0x4200903E: jne 0x42009058 */
   7297 L_42009040:
   7298     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7299     eax = 0; /* 0x42009040: xor eax, eax */
   7300     _cf = 0;
   7301     _flag_k = FK_TEST;
   7302     eax = edi; /* 0x42009042: mov eax, edi */
   7303     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42009044: shl eax, 4 */
   7304     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7305     eax = eax << 4u; /* 0x42009044: shl eax, 4 */
   7306     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7307     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7308     eax = eax + edx; /* 0x42009047: add eax, edx */
   7309     _flag_k = FK_ADD;
   7310     edi = POP32_VAL(esp); /* 0x42009049: pop edi */
   7311     MEM32(esi + 0x8) = eax; /* 0x4200904A: mov dword ptr [esi + 8], eax */
   7312     MEM32(esi + 0x4) = edx; /* 0x4200904D: mov dword ptr [esi + 4], edx */
   7313     esi = POP32_VAL(esp); /* 0x42009050: pop esi */
   7314     ebx = POP32_VAL(esp); /* 0x42009051: pop ebx */
   7315     esp = ebp; /* 0x42009052: mov esp, ebp */
   7316     ebp = POP32_VAL(esp); /* 0x42009054: pop ebp */
   7317     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42009055: ret 0xc */
   7318 L_42009058:
   7319     eax = MEM32(esi + 0x8); /* 0x42009058: mov eax, dword ptr [esi + 8] */
   7320     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7322     eax = eax - ecx; /* 0x4200905B: sub eax, ecx */
   7323     _flag_k = FK_CMP;
   7324     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x4200905D: sar eax, 4 */
   7325     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7326     eax = (uint32_t)((int32_t)eax >> 4u);
   7327     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7328     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7329     eax = eax + edi; /* 0x42009060: add eax, edi */
   7330     _flag_k = FK_ADD;
   7331     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x42009062: shl eax, 4 */
   7332     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7333     eax = eax << 4u; /* 0x42009062: shl eax, 4 */
   7334     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7336     eax = eax + edx; /* 0x42009065: add eax, edx */
   7337     _flag_k = FK_ADD;
   7338     edi = POP32_VAL(esp); /* 0x42009067: pop edi */
   7339     MEM32(esi + 0x8) = eax; /* 0x42009068: mov dword ptr [esi + 8], eax */
   7340     MEM32(esi + 0x4) = edx; /* 0x4200906B: mov dword ptr [esi + 4], edx */
   7341     esi = POP32_VAL(esp); /* 0x4200906E: pop esi */
   7342     ebx = POP32_VAL(esp); /* 0x4200906F: pop ebx */
   7343     esp = ebp; /* 0x42009070: mov esp, ebp */
   7344     ebp = POP32_VAL(esp); /* 0x42009072: pop ebp */
   7345     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42009073: ret 0xc */
   7346 L_42009076:
   7347     edx = MEM32(ebp + 0x8); /* 0x42009076: mov edx, dword ptr [ebp + 8] */
   7348     esi = eax; /* 0x42009079: mov esi, eax */
   7349     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   7350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7351     esi = esi - edx; /* 0x4200907B: sub esi, edx */
   7352     _flag_k = FK_CMP;
   7353     if (4u) _cf = (((esi) >> 3) & 1u); /* 0x4200907D: sar esi, 4 */
   7354     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7355     esi = (uint32_t)((int32_t)esi >> 4u);
   7356     /* cmp esi, edi */ /* 0x42009080: cmp esi, edi */
   7357     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7359     _flag_k = FK_CMP;
   7360     if (CMP_AE(_flag_a, _flag_b)) goto L_42009151; /* 0x42009082: jae 0x42009151 */
   7361 L_42009088:
   7362     ebx = edi; /* 0x42009088: mov ebx, edi */
   7363     if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x4200908A: shl ebx, 4 */
   7364     if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7365     ebx = ebx << 4u; /* 0x4200908A: shl ebx, 4 */
   7366     /* cmp edx, eax */ /* 0x4200908D: cmp edx, eax */
   7367     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7368     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7369     _flag_k = FK_CMP;
   7370     esi = ebx + edx; /* 0x4200908F: lea esi, [ebx + edx] */
   7371     MEM32(ebp + 0x8) = ebx; /* 0x42009092: mov dword ptr [ebp + 8], ebx */
   7372     MEM32(ebp + (-0x8)) = esi; /* 0x42009095: mov dword ptr [ebp - 8], esi */
   7373     if (CMP_EQ(_flag_a, _flag_b)) goto L_420090D3; /* 0x42009098: je 0x420090d3 */
   7374 L_4200909A:
   7375     ecx = esi; /* 0x4200909A: mov ecx, esi */
   7376     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7378     ecx = ecx - ebx; /* 0x4200909C: sub ecx, ebx */
   7379     _flag_k = FK_CMP;
   7380 L_4200909E:
   7381     /* test esi, esi */ /* 0x4200909E: test esi, esi */
   7382     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   7383     _cf = 0;
   7384     _flag_k = FK_TEST;
   7385     if (TEST_Z(_flag_a, _flag_b)) goto L_420090C3; /* 0x420090A0: je 0x420090c3 */
   7386 L_420090A2:
   7387     edi = ecx; /* 0x420090A2: mov edi, ecx */
   7388     ebx = MEM32(edi); /* 0x420090A4: mov ebx, dword ptr [edi] */
   7389     MEM32(esi) = ebx; /* 0x420090A6: mov dword ptr [esi], ebx */
   7390     ebx = MEM32(edi + 0x4); /* 0x420090A8: mov ebx, dword ptr [edi + 4] */
   7391     MEM32(esi + 0x4) = ebx; /* 0x420090AB: mov dword ptr [esi + 4], ebx */
   7392     ebx = MEM32(edi + 0x8); /* 0x420090AE: mov ebx, dword ptr [edi + 8] */
   7393     MEM32(esi + 0x8) = ebx; /* 0x420090B1: mov dword ptr [esi + 8], ebx */
   7394     edi = MEM32(edi + 0xC); /* 0x420090B4: mov edi, dword ptr [edi + 0xc] */
   7395     ebx = MEM32(ebp + 0x8); /* 0x420090B7: mov ebx, dword ptr [ebp + 8] */
   7396     MEM32(esi + 0xC) = edi; /* 0x420090BA: mov dword ptr [esi + 0xc], edi */
   7397     esi = MEM32(ebp + (-0x8)); /* 0x420090BD: mov esi, dword ptr [ebp - 8] */
   7398     edi = MEM32(ebp + 0xC); /* 0x420090C0: mov edi, dword ptr [ebp + 0xc] */
   7399 L_420090C3:
   7400     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   7401     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7402     esi = esi + 0x10u; /* 0x420090C3: add esi, 0x10 */
   7403     _flag_k = FK_ADD;
   7404     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   7405     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7406     ecx = ecx + 0x10u; /* 0x420090C6: add ecx, 0x10 */
   7407     _flag_k = FK_ADD;
   7408     /* cmp ecx, eax */ /* 0x420090C9: cmp ecx, eax */
   7409     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7411     _flag_k = FK_CMP;
   7412     MEM32(ebp + (-0x8)) = esi; /* 0x420090CB: mov dword ptr [ebp - 8], esi */
   7413     RECOMP_BACKEDGE();
   7414     if (CMP_NE(_flag_a, _flag_b)) goto L_4200909E; /* 0x420090CE: jne 0x4200909e */
   7415 L_420090D0:
   7416     ecx = MEM32(ebp + (-0x4)); /* 0x420090D0: mov ecx, dword ptr [ebp - 4] */
   7417 L_420090D3:
   7418     eax = MEM32(ecx + 0x8); /* 0x420090D3: mov eax, dword ptr [ecx + 8] */
   7419     esi = eax; /* 0x420090D6: mov esi, eax */
   7420     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   7421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7422     esi = esi - edx; /* 0x420090D8: sub esi, edx */
   7423     _flag_k = FK_CMP;
   7424     if (4u) _cf = (((esi) >> 3) & 1u); /* 0x420090DA: sar esi, 4 */
   7425     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7426     esi = (uint32_t)((int32_t)esi >> 4u);
   7427     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   7428     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7429     edi = edi - esi; /* 0x420090DD: sub edi, esi */
   7430     _flag_k = FK_CMP;
   7431     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_42009112; /* 0x420090DF: je 0x42009112 */
   7432 L_420090E1:
   7433     MEM32(ebp + 0x8) = edi; /* 0x420090E1: mov dword ptr [ebp + 8], edi */
   7434 L_420090E4:
   7435     /* test eax, eax */ /* 0x420090E4: test eax, eax */
   7436     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7437     _cf = 0;
   7438     _flag_k = FK_TEST;
   7439     if (TEST_Z(_flag_a, _flag_b)) goto L_42009106; /* 0x420090E6: je 0x42009106 */
   7440 L_420090E8:
   7441     ecx = MEM32(ebp + 0x10); /* 0x420090E8: mov ecx, dword ptr [ebp + 0x10] */
   7442     edi = MEM32(ecx); /* 0x420090EB: mov edi, dword ptr [ecx] */
   7443     esi = eax; /* 0x420090ED: mov esi, eax */
   7444     MEM32(esi) = edi; /* 0x420090EF: mov dword ptr [esi], edi */
   7445     edi = MEM32(ecx + 0x4); /* 0x420090F1: mov edi, dword ptr [ecx + 4] */
   7446     MEM32(esi + 0x4) = edi; /* 0x420090F4: mov dword ptr [esi + 4], edi */
   7447     edi = MEM32(ecx + 0x8); /* 0x420090F7: mov edi, dword ptr [ecx + 8] */
   7448     MEM32(esi + 0x8) = edi; /* 0x420090FA: mov dword ptr [esi + 8], edi */
   7449     ecx = MEM32(ecx + 0xC); /* 0x420090FD: mov ecx, dword ptr [ecx + 0xc] */
   7450     MEM32(esi + 0xC) = ecx; /* 0x42009100: mov dword ptr [esi + 0xc], ecx */
   7451     ecx = MEM32(ebp + (-0x4)); /* 0x42009103: mov ecx, dword ptr [ebp - 4] */
   7452 L_42009106:
   7453     esi = MEM32(ebp + 0x8); /* 0x42009106: mov esi, dword ptr [ebp + 8] */
   7454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   7455     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7456     eax = eax + 0x10u; /* 0x42009109: add eax, 0x10 */
   7457     _flag_k = FK_ADD;
   7458     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   7459     esi = esi - 1; /* 0x4200910C: dec esi */
   7460     _flag_k = FK_DEC;
   7461     MEM32(ebp + 0x8) = esi; /* 0x4200910D: mov dword ptr [ebp + 8], esi */
   7462     RECOMP_BACKEDGE();
   7463     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_420090E4; /* 0x42009110: jne 0x420090e4 */
   7464 L_42009112:
   7465     ecx = MEM32(ecx + 0x8); /* 0x42009112: mov ecx, dword ptr [ecx + 8] */
   7466     /* cmp edx, ecx */ /* 0x42009115: cmp edx, ecx */
   7467     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7469     _flag_k = FK_CMP;
   7470     eax = edx; /* 0x42009117: mov eax, edx */
   7471     if (CMP_EQ(_flag_a, _flag_b)) goto L_4200913D; /* 0x42009119: je 0x4200913d */
   7472 L_4200911B:
   7473     edx = MEM32(ebp + 0x10); /* 0x4200911B: mov edx, dword ptr [ebp + 0x10] */
   7474     edi = MEM32(edx); /* 0x4200911E: mov edi, dword ptr [edx] */
   7475     esi = eax; /* 0x42009120: mov esi, eax */
   7476     MEM32(esi) = edi; /* 0x42009122: mov dword ptr [esi], edi */
   7477     edi = MEM32(edx + 0x4); /* 0x42009124: mov edi, dword ptr [edx + 4] */
   7478     MEM32(esi + 0x4) = edi; /* 0x42009127: mov dword ptr [esi + 4], edi */
   7479     edi = MEM32(edx + 0x8); /* 0x4200912A: mov edi, dword ptr [edx + 8] */
   7480     MEM32(esi + 0x8) = edi; /* 0x4200912D: mov dword ptr [esi + 8], edi */
   7481     edx = MEM32(edx + 0xC); /* 0x42009130: mov edx, dword ptr [edx + 0xc] */
   7482     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   7483     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7484     eax = eax + 0x10u; /* 0x42009133: add eax, 0x10 */
   7485     _flag_k = FK_ADD;
   7486     /* cmp eax, ecx */ /* 0x42009136: cmp eax, ecx */
   7487     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7489     _flag_k = FK_CMP;
   7490     MEM32(esi + 0xC) = edx; /* 0x42009138: mov dword ptr [esi + 0xc], edx */
   7491     RECOMP_BACKEDGE();
   7492     if (CMP_NE(_flag_a, _flag_b)) goto L_4200911B; /* 0x4200913B: jne 0x4200911b */
   7493 L_4200913D:
   7494     eax = MEM32(ebp + (-0x4)); /* 0x4200913D: mov eax, dword ptr [ebp - 4] */
   7495     ecx = MEM32(eax + 0x8); /* 0x42009140: mov ecx, dword ptr [eax + 8] */
   7496     edi = POP32_VAL(esp); /* 0x42009143: pop edi */
   7497     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7498     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7499     ecx = ecx + ebx; /* 0x42009144: add ecx, ebx */
   7500     _flag_k = FK_ADD;
   7501     esi = POP32_VAL(esp); /* 0x42009146: pop esi */
   7502     MEM32(eax + 0x8) = ecx; /* 0x42009147: mov dword ptr [eax + 8], ecx */
   7503     ebx = POP32_VAL(esp); /* 0x4200914A: pop ebx */
   7504     esp = ebp; /* 0x4200914B: mov esp, ebp */
   7505     ebp = POP32_VAL(esp); /* 0x4200914D: pop ebp */
   7506     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200914E: ret 0xc */
   7507 L_42009151:
   7508     /* test edi, edi */ /* 0x42009151: test edi, edi */
   7509     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7510     _cf = 0;
   7511     _flag_k = FK_TEST;
   7512     if (TEST_Z(_flag_a, _flag_b)) goto L_42009201; /* 0x42009153: jbe 0x42009201 */
   7513 L_42009159:
   7514     if (4u) _cf = (((edi) >> 28) & 1u); /* 0x42009159: shl edi, 4 */
   7515     if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7516     edi = edi << 4u; /* 0x42009159: shl edi, 4 */
   7517     ecx = eax; /* 0x4200915C: mov ecx, eax */
   7518     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   7519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7520     ecx = ecx - edi; /* 0x4200915E: sub ecx, edi */
   7521     _flag_k = FK_CMP;
   7522     /* cmp ecx, eax */ /* 0x42009160: cmp ecx, eax */
   7523     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7525     _flag_k = FK_CMP;
   7526     esi = eax; /* 0x42009162: mov esi, eax */
   7527     MEM32(ebp + 0xC) = esi; /* 0x42009164: mov dword ptr [ebp + 0xc], esi */
   7528     MEM32(ebp + 0x8) = edi; /* 0x42009167: mov dword ptr [ebp + 8], edi */
   7529     if (CMP_EQ(_flag_a, _flag_b)) goto L_4200919B; /* 0x4200916A: je 0x4200919b */
   7530 L_4200916C:
   7531     /* test esi, esi */ /* 0x4200916C: test esi, esi */
   7532     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   7533     _cf = 0;
   7534     _flag_k = FK_TEST;
   7535     if (TEST_Z(_flag_a, _flag_b)) goto L_4200918E; /* 0x4200916E: je 0x4200918e */
   7536 L_42009170:
   7537     edi = ecx; /* 0x42009170: mov edi, ecx */
   7538     ebx = MEM32(edi); /* 0x42009172: mov ebx, dword ptr [edi] */
   7539     MEM32(esi) = ebx; /* 0x42009174: mov dword ptr [esi], ebx */
   7540     ebx = MEM32(edi + 0x4); /* 0x42009176: mov ebx, dword ptr [edi + 4] */
   7541     MEM32(esi + 0x4) = ebx; /* 0x42009179: mov dword ptr [esi + 4], ebx */
   7542     ebx = MEM32(edi + 0x8); /* 0x4200917C: mov ebx, dword ptr [edi + 8] */
   7543     MEM32(esi + 0x8) = ebx; /* 0x4200917F: mov dword ptr [esi + 8], ebx */
   7544     edi = MEM32(edi + 0xC); /* 0x42009182: mov edi, dword ptr [edi + 0xc] */
   7545     MEM32(esi + 0xC) = edi; /* 0x42009185: mov dword ptr [esi + 0xc], edi */
   7546     esi = MEM32(ebp + 0xC); /* 0x42009188: mov esi, dword ptr [ebp + 0xc] */
   7547     edi = MEM32(ebp + 0x8); /* 0x4200918B: mov edi, dword ptr [ebp + 8] */
   7548 L_4200918E:
   7549     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   7550     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7551     esi = esi + 0x10u; /* 0x4200918E: add esi, 0x10 */
   7552     _flag_k = FK_ADD;
   7553     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   7554     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7555     ecx = ecx + 0x10u; /* 0x42009191: add ecx, 0x10 */
   7556     _flag_k = FK_ADD;
   7557     /* cmp ecx, eax */ /* 0x42009194: cmp ecx, eax */
   7558     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7560     _flag_k = FK_CMP;
   7561     MEM32(ebp + 0xC) = esi; /* 0x42009196: mov dword ptr [ebp + 0xc], esi */
   7562     RECOMP_BACKEDGE();
   7563     if (CMP_NE(_flag_a, _flag_b)) goto L_4200916C; /* 0x42009199: jne 0x4200916c */
   7564 L_4200919B:
   7565     eax = MEM32(ebp + (-0x4)); /* 0x4200919B: mov eax, dword ptr [ebp - 4] */
   7566     ecx = MEM32(eax + 0x8); /* 0x4200919E: mov ecx, dword ptr [eax + 8] */
   7567     eax = ecx; /* 0x420091A1: mov eax, ecx */
   7568     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7570     eax = eax - edi; /* 0x420091A3: sub eax, edi */
   7571     _flag_k = FK_CMP;
   7572     /* cmp edx, eax */ /* 0x420091A5: cmp edx, eax */
   7573     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7575     _flag_k = FK_CMP;
   7576     if (CMP_EQ(_flag_a, _flag_b)) goto L_420091D0; /* 0x420091A7: je 0x420091d0 */
   7577 L_420091A9:
   7578     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   7579     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7580     eax = eax - 0x10u; /* 0x420091A9: sub eax, 0x10 */
   7581     _flag_k = FK_CMP;
   7582     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   7583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7584     ecx = ecx - 0x10u; /* 0x420091AC: sub ecx, 0x10 */
   7585     _flag_k = FK_CMP;
   7586     /* cmp eax, edx */ /* 0x420091AF: cmp eax, edx */
   7587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7589     _flag_k = FK_CMP;
   7590     esi = eax; /* 0x420091B1: mov esi, eax */
   7591     ebx = MEM32(esi); /* 0x420091B3: mov ebx, dword ptr [esi] */
   7592     edi = ecx; /* 0x420091B5: mov edi, ecx */
   7593     MEM32(edi) = ebx; /* 0x420091B7: mov dword ptr [edi], ebx */
   7594     ebx = MEM32(esi + 0x4); /* 0x420091B9: mov ebx, dword ptr [esi + 4] */
   7595     MEM32(edi + 0x4) = ebx; /* 0x420091BC: mov dword ptr [edi + 4], ebx */
   7596     ebx = MEM32(esi + 0x8); /* 0x420091BF: mov ebx, dword ptr [esi + 8] */
   7597     MEM32(edi + 0x8) = ebx; /* 0x420091C2: mov dword ptr [edi + 8], ebx */
   7598     esi = MEM32(esi + 0xC); /* 0x420091C5: mov esi, dword ptr [esi + 0xc] */
   7599     MEM32(edi + 0xC) = esi; /* 0x420091C8: mov dword ptr [edi + 0xc], esi */
   7600     RECOMP_BACKEDGE();
   7601     if (CMP_NE(_flag_a, _flag_b)) goto L_420091A9; /* 0x420091CB: jne 0x420091a9 */
   7602 L_420091CD:
   7603     edi = MEM32(ebp + 0x8); /* 0x420091CD: mov edi, dword ptr [ebp + 8] */
   7604 L_420091D0:
   7605     ecx = edi + edx; /* 0x420091D0: lea ecx, [edi + edx] */
   7606     /* cmp edx, ecx */ /* 0x420091D3: cmp edx, ecx */
   7607     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7609     _flag_k = FK_CMP;
   7610     eax = edx; /* 0x420091D5: mov eax, edx */
   7611     if (CMP_EQ(_flag_a, _flag_b)) goto L_420091FB; /* 0x420091D7: je 0x420091fb */
   7612 L_420091D9:
   7613     edx = MEM32(ebp + 0x10); /* 0x420091D9: mov edx, dword ptr [ebp + 0x10] */
   7614     ebx = MEM32(edx); /* 0x420091DC: mov ebx, dword ptr [edx] */
   7615     esi = eax; /* 0x420091DE: mov esi, eax */
   7616     MEM32(esi) = ebx; /* 0x420091E0: mov dword ptr [esi], ebx */
   7617     ebx = MEM32(edx + 0x4); /* 0x420091E2: mov ebx, dword ptr [edx + 4] */
   7618     MEM32(esi + 0x4) = ebx; /* 0x420091E5: mov dword ptr [esi + 4], ebx */
   7619     ebx = MEM32(edx + 0x8); /* 0x420091E8: mov ebx, dword ptr [edx + 8] */
   7620     MEM32(esi + 0x8) = ebx; /* 0x420091EB: mov dword ptr [esi + 8], ebx */
   7621     edx = MEM32(edx + 0xC); /* 0x420091EE: mov edx, dword ptr [edx + 0xc] */
   7622     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   7623     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7624     eax = eax + 0x10u; /* 0x420091F1: add eax, 0x10 */
   7625     _flag_k = FK_ADD;
   7626     /* cmp eax, ecx */ /* 0x420091F4: cmp eax, ecx */
   7627     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7629     _flag_k = FK_CMP;
   7630     MEM32(esi + 0xC) = edx; /* 0x420091F6: mov dword ptr [esi + 0xc], edx */
   7631     RECOMP_BACKEDGE();
   7632     if (CMP_NE(_flag_a, _flag_b)) goto L_420091D9; /* 0x420091F9: jne 0x420091d9 */
   7633 L_420091FB:
   7634     eax = MEM32(ebp + (-0x4)); /* 0x420091FB: mov eax, dword ptr [ebp - 4] */
   7635     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(edi);
   7636     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7637     MEM32(eax + 0x8) = MEM32(eax + 0x8) + edi; /* 0x420091FE: add dword ptr [eax + 8], edi */
   7638     _flag_k = FK_ADD;
   7639 L_42009201:
   7640     edi = POP32_VAL(esp); /* 0x42009201: pop edi */
   7641     esi = POP32_VAL(esp); /* 0x42009202: pop esi */
   7642     ebx = POP32_VAL(esp); /* 0x42009203: pop ebx */
   7643     esp = ebp; /* 0x42009204: mov esp, ebp */
   7644     ebp = POP32_VAL(esp); /* 0x42009206: pop ebp */
   7645     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42009207: ret 0xc */
   7646     RECOMP_REGS_OUT();
   7647 }
   7648 
   7649 void sub_42009210(void) {
   7650     int _fpu_cmp = 0;
   7651     uint32_t _cf = 0;
   7652     int _df = 1;
   7653     uint32_t _flag_k = FK_NONE;
   7654     uint32_t _flag_a = 0, _flag_b = 0;
   7655     uint32_t _itail_tgt = 0;
   7656     RECOMP_REGS_LOCALS
   7657     RECOMP_ENTER(0x42009210u);
   7658 
   7659 L_42009210:
   7660     PUSH32(esp, ebp); /* 0x42009210: push ebp */
   7661     ebp = esp; /* 0x42009211: mov ebp, esp */
   7662     ecx = MEM32(ebp + 0x8); /* 0x42009213: mov ecx, dword ptr [ebp + 8] */
   7663     edx = MEM32(ebp + 0xC); /* 0x42009216: mov edx, dword ptr [ebp + 0xc] */
   7664     /* cmp ecx, edx */ /* 0x42009219: cmp ecx, edx */
   7665     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7667     _flag_k = FK_CMP;
   7668     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009246; /* 0x4200921B: je 0x42009246 */
   7669 L_4200921D:
   7670     eax = MEM32(ebp + 0x10); /* 0x4200921D: mov eax, dword ptr [ebp + 0x10] */
   7671     PUSH32(esp, ebx); /* 0x42009220: push ebx */
   7672     PUSH32(esp, esi); /* 0x42009221: push esi */
   7673     PUSH32(esp, edi); /* 0x42009222: push edi */
   7674 L_42009223:
   7675     esi = ecx; /* 0x42009223: mov esi, ecx */
   7676     ebx = MEM32(esi); /* 0x42009225: mov ebx, dword ptr [esi] */
   7677     edi = eax; /* 0x42009227: mov edi, eax */
   7678     MEM32(edi) = ebx; /* 0x42009229: mov dword ptr [edi], ebx */
   7679     ebx = MEM32(esi + 0x4); /* 0x4200922B: mov ebx, dword ptr [esi + 4] */
   7680     MEM32(edi + 0x4) = ebx; /* 0x4200922E: mov dword ptr [edi + 4], ebx */
   7681     esi = MEM32(esi + 0x8); /* 0x42009231: mov esi, dword ptr [esi + 8] */
   7682     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   7683     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7684     ecx = ecx + 0xCu; /* 0x42009234: add ecx, 0xc */
   7685     _flag_k = FK_ADD;
   7686     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   7687     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7688     eax = eax + 0xCu; /* 0x42009237: add eax, 0xc */
   7689     _flag_k = FK_ADD;
   7690     /* cmp ecx, edx */ /* 0x4200923A: cmp ecx, edx */
   7691     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7693     _flag_k = FK_CMP;
   7694     MEM32(edi + 0x8) = esi; /* 0x4200923C: mov dword ptr [edi + 8], esi */
   7695     RECOMP_BACKEDGE();
   7696     if (CMP_NE(_flag_a, _flag_b)) goto L_42009223; /* 0x4200923F: jne 0x42009223 */
   7697 L_42009241:
   7698     edi = POP32_VAL(esp); /* 0x42009241: pop edi */
   7699     esi = POP32_VAL(esp); /* 0x42009242: pop esi */
   7700     ebx = POP32_VAL(esp); /* 0x42009243: pop ebx */
   7701     ebp = POP32_VAL(esp); /* 0x42009244: pop ebp */
   7702     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42009245: ret  */
   7703 L_42009246:
   7704     eax = MEM32(ebp + 0x10); /* 0x42009246: mov eax, dword ptr [ebp + 0x10] */
   7705     ebp = POP32_VAL(esp); /* 0x42009249: pop ebp */
   7706     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200924A: ret  */
   7707     RECOMP_REGS_OUT();
   7708 }
   7709 
   7710 void sub_42009250(void) {
   7711     int _fpu_cmp = 0;
   7712     uint32_t _cf = 0;
   7713     int _df = 1;
   7714     uint32_t _flag_k = FK_NONE;
   7715     uint32_t _flag_a = 0, _flag_b = 0;
   7716     uint32_t _itail_tgt = 0;
   7717     RECOMP_REGS_LOCALS
   7718     RECOMP_ENTER(0x42009250u);
   7719 
   7720 L_42009250:
   7721     RECOMP_ICALL(0x42009260u); /* 0x42009250: call 0x42009260 */ /* not lifted */
   7722     RECOMP_FLAGS_IN();
   7723     goto L_42009270; /* 0x42009255: jmp 0x42009270 */
   7724 L_42009270:
   7725     PUSH32(esp, 0x42009280u); /* 0x42009270: push 0x42009280 */
   7726     RECOMP_ICALL(0x42016E07u); /* 0x42009275: call 0x42016e07 */ /* not lifted */
   7727     RECOMP_FLAGS_IN();
   7728     ecx = POP32_VAL(esp); /* 0x4200927A: pop ecx */
   7729     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200927B: ret  */
   7730     RECOMP_REGS_OUT();
   7731 }
   7732 
   7733 void sub_42009260(void) {
   7734     int _fpu_cmp = 0;
   7735     uint32_t _cf = 0;
   7736     int _df = 1;
   7737     uint32_t _flag_k = FK_NONE;
   7738     uint32_t _flag_a = 0, _flag_b = 0;
   7739     uint32_t _itail_tgt = 0;
   7740     RECOMP_REGS_LOCALS
   7741     RECOMP_ENTER(0x42009260u);
   7742 
   7743 L_42009260:
   7744     ecx = 0x42023075u; /* 0x42009260: mov ecx, 0x42023075 */
   7745 L_42009265:
   7746     { _itail_tgt = (uint32_t)(MEM32(0x42018014)); goto _ljump; }
   7747     { RECOMP_REGS_OUT(); return; } /* end of function */
   7748   _ljump:
   7749     switch (_itail_tgt) {
   7750       case 0x42009260u: goto L_42009260;
   7751       case 0x42009265u: goto L_42009265;
   7752       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7753     }
   7754     RECOMP_REGS_OUT();
   7755 }
   7756 
   7757 void sub_42009270(void) {
   7758     int _fpu_cmp = 0;
   7759     uint32_t _cf = 0;
   7760     int _df = 1;
   7761     uint32_t _flag_k = FK_NONE;
   7762     uint32_t _flag_a = 0, _flag_b = 0;
   7763     uint32_t _itail_tgt = 0;
   7764     RECOMP_REGS_LOCALS
   7765     RECOMP_ENTER(0x42009270u);
   7766 
   7767 L_42009270:
   7768     PUSH32(esp, 0x42009280u); /* 0x42009270: push 0x42009280 */
   7769     RECOMP_ICALL(0x42016E07u); /* 0x42009275: call 0x42016e07 */ /* not lifted */
   7770     RECOMP_FLAGS_IN();
   7771     ecx = POP32_VAL(esp); /* 0x4200927A: pop ecx */
   7772     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200927B: ret  */
   7773     RECOMP_REGS_OUT();
   7774 }
   7775 
   7776 void sub_42009280(void) {
   7777     int _fpu_cmp = 0;
   7778     uint32_t _cf = 0;
   7779     int _df = 1;
   7780     uint32_t _flag_k = FK_NONE;
   7781     uint32_t _flag_a = 0, _flag_b = 0;
   7782     uint32_t _itail_tgt = 0;
   7783     RECOMP_REGS_LOCALS
   7784     RECOMP_ENTER(0x42009280u);
   7785 
   7786 L_42009280:
   7787     ecx = 0x42023075u; /* 0x42009280: mov ecx, 0x42023075 */
   7788 L_42009285:
   7789     { _itail_tgt = (uint32_t)(MEM32(0x42018010)); goto _ljump; }
   7790     { RECOMP_REGS_OUT(); return; } /* end of function */
   7791   _ljump:
   7792     switch (_itail_tgt) {
   7793       case 0x42009280u: goto L_42009280;
   7794       case 0x42009285u: goto L_42009285;
   7795       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7796     }
   7797     RECOMP_REGS_OUT();
   7798 }
   7799 
   7800 void sub_42009290(void) {
   7801     int _fpu_cmp = 0;
   7802     uint32_t _cf = 0;
   7803     int _df = 1;
   7804     uint32_t _flag_k = FK_NONE;
   7805     uint32_t _flag_a = 0, _flag_b = 0;
   7806     uint32_t _itail_tgt = 0;
   7807     RECOMP_REGS_LOCALS
   7808     RECOMP_ENTER(0x42009290u);
   7809 
   7810 L_42009290:
   7811     RECOMP_ICALL(0x420092A0u); /* 0x42009290: call 0x420092a0 */ /* not lifted */
   7812     RECOMP_FLAGS_IN();
   7813     goto L_420092B0; /* 0x42009295: jmp 0x420092b0 */
   7814 L_420092B0:
   7815     PUSH32(esp, 0x420092C0u); /* 0x420092B0: push 0x420092c0 */
   7816     RECOMP_ICALL(0x42016E07u); /* 0x420092B5: call 0x42016e07 */ /* not lifted */
   7817     RECOMP_FLAGS_IN();
   7818     ecx = POP32_VAL(esp); /* 0x420092BA: pop ecx */
   7819     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420092BB: ret  */
   7820     RECOMP_REGS_OUT();
   7821 }
   7822 
   7823 void sub_420092A0(void) {
   7824     int _fpu_cmp = 0;
   7825     uint32_t _cf = 0;
   7826     int _df = 1;
   7827     uint32_t _flag_k = FK_NONE;
   7828     uint32_t _flag_a = 0, _flag_b = 0;
   7829     uint32_t _itail_tgt = 0;
   7830     RECOMP_REGS_LOCALS
   7831     RECOMP_ENTER(0x420092A0u);
   7832 
   7833 L_420092A0:
   7834     ecx = 0x42023074u; /* 0x420092A0: mov ecx, 0x42023074 */
   7835 L_420092A5:
   7836     { _itail_tgt = (uint32_t)(MEM32(0x42018008)); goto _ljump; }
   7837     { RECOMP_REGS_OUT(); return; } /* end of function */
   7838   _ljump:
   7839     switch (_itail_tgt) {
   7840       case 0x420092A0u: goto L_420092A0;
   7841       case 0x420092A5u: goto L_420092A5;
   7842       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7843     }
   7844     RECOMP_REGS_OUT();
   7845 }
   7846 
   7847 void sub_420092B0(void) {
   7848     int _fpu_cmp = 0;
   7849     uint32_t _cf = 0;
   7850     int _df = 1;
   7851     uint32_t _flag_k = FK_NONE;
   7852     uint32_t _flag_a = 0, _flag_b = 0;
   7853     uint32_t _itail_tgt = 0;
   7854     RECOMP_REGS_LOCALS
   7855     RECOMP_ENTER(0x420092B0u);
   7856 
   7857 L_420092B0:
   7858     PUSH32(esp, 0x420092C0u); /* 0x420092B0: push 0x420092c0 */
   7859     RECOMP_ICALL(0x42016E07u); /* 0x420092B5: call 0x42016e07 */ /* not lifted */
   7860     RECOMP_FLAGS_IN();
   7861     ecx = POP32_VAL(esp); /* 0x420092BA: pop ecx */
   7862     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420092BB: ret  */
   7863     RECOMP_REGS_OUT();
   7864 }
   7865 
   7866 void sub_420092C0(void) {
   7867     int _fpu_cmp = 0;
   7868     uint32_t _cf = 0;
   7869     int _df = 1;
   7870     uint32_t _flag_k = FK_NONE;
   7871     uint32_t _flag_a = 0, _flag_b = 0;
   7872     uint32_t _itail_tgt = 0;
   7873     RECOMP_REGS_LOCALS
   7874     RECOMP_ENTER(0x420092C0u);
   7875 
   7876 L_420092C0:
   7877     ecx = 0x42023074u; /* 0x420092C0: mov ecx, 0x42023074 */
   7878 L_420092C5:
   7879     { _itail_tgt = (uint32_t)(MEM32(0x4201800C)); goto _ljump; }
   7880     { RECOMP_REGS_OUT(); return; } /* end of function */
   7881   _ljump:
   7882     switch (_itail_tgt) {
   7883       case 0x420092C0u: goto L_420092C0;
   7884       case 0x420092C5u: goto L_420092C5;
   7885       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7886     }
   7887     RECOMP_REGS_OUT();
   7888 }
   7889 
   7890 void sub_420092D0(void) {
   7891     int _fpu_cmp = 0;
   7892     uint32_t _cf = 0;
   7893     int _df = 1;
   7894     uint32_t _flag_k = FK_NONE;
   7895     uint32_t _flag_a = 0, _flag_b = 0;
   7896     uint32_t _itail_tgt = 0;
   7897     RECOMP_REGS_LOCALS
   7898     RECOMP_ENTER(0x420092D0u);
   7899 
   7900 L_420092D0:
   7901     PUSH32(esp, ebp); /* 0x420092D0: push ebp */
   7902     ebp = esp; /* 0x420092D1: mov ebp, esp */
   7903     edx = MEM32(ebp + 0x10); /* 0x420092D3: mov edx, dword ptr [ebp + 0x10] */
   7904     eax = ecx; /* 0x420092D6: mov eax, ecx */
   7905     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7906     ecx = 0; /* 0x420092D8: xor ecx, ecx */
   7907     _cf = 0;
   7908     _flag_k = FK_TEST;
   7909     MEM32(eax + 0x8) = ecx; /* 0x420092DA: mov dword ptr [eax + 8], ecx */
   7910     MEM32(eax + 0xC) = ecx; /* 0x420092DD: mov dword ptr [eax + 0xc], ecx */
   7911     MEM32(eax + 0x10) = ecx; /* 0x420092E0: mov dword ptr [eax + 0x10], ecx */
   7912     ecx = MEM32(ebp + 0xC); /* 0x420092E3: mov ecx, dword ptr [ebp + 0xc] */
   7913     MEM32(eax) = ecx; /* 0x420092E6: mov dword ptr [eax], ecx */
   7914     ecx = MEM32(ebp + 0x8); /* 0x420092E8: mov ecx, dword ptr [ebp + 8] */
   7915     MEM32(eax + 0x4) = edx; /* 0x420092EB: mov dword ptr [eax + 4], edx */
   7916     MEM32(eax + 0x14) = ecx; /* 0x420092EE: mov dword ptr [eax + 0x14], ecx */
   7917     ebp = POP32_VAL(esp); /* 0x420092F1: pop ebp */
   7918     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x420092F2: ret 0xc */
   7919     RECOMP_REGS_OUT();
   7920 }
   7921 
   7922 void sub_42009300(void) {
   7923     int _fpu_cmp = 0;
   7924     uint32_t _cf = 0;
   7925     int _df = 1;
   7926     uint32_t _flag_k = FK_NONE;
   7927     uint32_t _flag_a = 0, _flag_b = 0;
   7928     uint32_t _itail_tgt = 0;
   7929     RECOMP_REGS_LOCALS
   7930     RECOMP_ENTER(0x42009300u);
   7931 
   7932 L_42009300:
   7933     eax = ecx; /* 0x42009300: mov eax, ecx */
   7934     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7935     ecx = 0; /* 0x42009302: xor ecx, ecx */
   7936     _cf = 0;
   7937     _flag_k = FK_TEST;
   7938     MEM32(eax + 0x8) = ecx; /* 0x42009304: mov dword ptr [eax + 8], ecx */
   7939     MEM32(eax + 0xC) = ecx; /* 0x42009307: mov dword ptr [eax + 0xc], ecx */
   7940     MEM32(eax + 0x10) = ecx; /* 0x4200930A: mov dword ptr [eax + 0x10], ecx */
   7941     MEM32(eax) = ecx; /* 0x4200930D: mov dword ptr [eax], ecx */
   7942     MEM32(eax + 0x4) = ecx; /* 0x4200930F: mov dword ptr [eax + 4], ecx */
   7943     MEM32(eax + 0x14) = ecx; /* 0x42009312: mov dword ptr [eax + 0x14], ecx */
   7944     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x42009315: ret  */
   7945     RECOMP_REGS_OUT();
   7946 }
   7947 
   7948 void sub_42009320(void) {
   7949     int _fpu_cmp = 0;
   7950     uint32_t _cf = 0;
   7951     int _df = 1;
   7952     uint32_t _flag_k = FK_NONE;
   7953     uint32_t _flag_a = 0, _flag_b = 0;
   7954     uint32_t _itail_tgt = 0;
   7955     RECOMP_REGS_LOCALS
   7956     RECOMP_ENTER(0x42009320u);
   7957 
   7958 L_42009320:
   7959     PUSH32(esp, ebp); /* 0x42009320: push ebp */
   7960     ebp = esp; /* 0x42009321: mov ebp, esp */
   7961     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42009323: fld dword ptr [ebp + 8] */
   7962     eax = ecx + 0x8; /* 0x42009326: lea eax, [ecx + 8] */
   7963     _st[0] += (double)*(float*)ADDR(ecx + 0x4); /* 0x42009329: fadd dword ptr [ecx + 4] */
   7964     PUSH32(esp, eax); /* 0x4200932C: push eax */
   7965     PUSH32(esp, ecx); /* 0x4200932D: push ecx */
   7966     { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0x4) = _v; } /* 0x4200932E: fst dword ptr [ecx + 4] */
   7967     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x42009331: fmul dword ptr [ecx] */
   7968     ecx = MEM32(ecx + 0x14); /* 0x42009333: mov ecx, dword ptr [ecx + 0x14] */
   7969     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x42009336: fstp dword ptr [esp] */
   7970     RECOMP_ICALL(0x42007DA0u); /* 0x42009339: call 0x42007da0 */ /* not lifted */
   7971     RECOMP_FLAGS_IN();
   7972     ebp = POP32_VAL(esp); /* 0x4200933E: pop ebp */
   7973     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200933F: ret 4 */
   7974     RECOMP_REGS_OUT();
   7975 }
   7976 
   7977 void sub_42009350(void) {
   7978     int _fpu_cmp = 0;
   7979     uint32_t _cf = 0;
   7980     int _df = 1;
   7981     uint32_t _flag_k = FK_NONE;
   7982     uint32_t _flag_a = 0, _flag_b = 0;
   7983     uint32_t _itail_tgt = 0;
   7984     RECOMP_REGS_LOCALS
   7985     RECOMP_ENTER(0x42009350u);
   7986 
   7987 L_42009350:
   7988     PUSH32(esp, ebp); /* 0x42009350: push ebp */
   7989     ebp = esp; /* 0x42009351: mov ebp, esp */
   7990     eax = MEM32(ebp + 0x8); /* 0x42009353: mov eax, dword ptr [ebp + 8] */
   7991     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x42009356: fld dword ptr [ebp + 8] */
   7992     _st[0] *= (double)*(float*)ADDR(ecx); /* 0x42009359: fmul dword ptr [ecx] */
   7993     PUSH32(esp, esi); /* 0x4200935B: push esi */
   7994     esi = MEM32(ecx + 0x14); /* 0x4200935C: mov esi, dword ptr [ecx + 0x14] */
   7995     MEM32(ecx + 0x4) = eax; /* 0x4200935F: mov dword ptr [ecx + 4], eax */
   7996     eax = MEM32(esi + 0x8); /* 0x42009362: mov eax, dword ptr [esi + 8] */
   7997     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x42009365: fstp dword ptr [ebp + 8] */
   7998     /* test eax, eax */ /* 0x42009368: test eax, eax */
   7999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8000     _cf = 0;
   8001     _flag_k = FK_TEST;
   8002     if (TEST_Z(_flag_a, _flag_b)) goto L_42009392; /* 0x4200936A: je 0x42009392 */
   8003 L_4200936C:
   8004     edx = MEM32(esi + 0xC); /* 0x4200936C: mov edx, dword ptr [esi + 0xc] */
   8005     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8007     edx = edx - eax; /* 0x4200936F: sub edx, eax */
   8008     _flag_k = FK_CMP;
   8009     eax = 0x2AAAAAABu; /* 0x42009371: mov eax, 0x2aaaaaab */
   8010     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x42009376: imul edx */
   8011       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8012       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8013     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x42009378: sar edx, 1 */
   8014     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8015     edx = (uint32_t)((int32_t)edx >> 1u);
   8016     eax = edx; /* 0x4200937A: mov eax, edx */
   8017     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x4200937C: shr eax, 0x1f */
   8018     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8019     eax = eax >> 31u; /* 0x4200937C: shr eax, 0x1f */
   8020     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8021     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8022     edx = edx + eax; /* 0x4200937F: add edx, eax */
   8023     _flag_k = FK_ADD;
   8024     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_42009392; /* 0x42009381: je 0x42009392 */
   8025 L_42009383:
   8026     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   8027     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8028     ecx = ecx + 8; /* 0x42009383: add ecx, 8 */
   8029     _flag_k = FK_ADD;
   8030     PUSH32(esp, ecx); /* 0x42009386: push ecx */
   8031     ecx = MEM32(ebp + 0x8); /* 0x42009387: mov ecx, dword ptr [ebp + 8] */
   8032     PUSH32(esp, ecx); /* 0x4200938A: push ecx */
   8033     ecx = esi; /* 0x4200938B: mov ecx, esi */
   8034     RECOMP_ICALL(0x42007DA0u); /* 0x4200938D: call 0x42007da0 */ /* not lifted */
   8035     RECOMP_FLAGS_IN();
   8036 L_42009392:
   8037     esi = POP32_VAL(esp); /* 0x42009392: pop esi */
   8038     ebp = POP32_VAL(esp); /* 0x42009393: pop ebp */
   8039     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42009394: ret 4 */
   8040     RECOMP_REGS_OUT();
   8041 }
   8042 
   8043 void sub_420093A0(void) {
   8044     int _fpu_cmp = 0;
   8045     uint32_t _cf = 0;
   8046     int _df = 1;
   8047     uint32_t _flag_k = FK_NONE;
   8048     uint32_t _flag_a = 0, _flag_b = 0;
   8049     uint32_t _itail_tgt = 0;
   8050     RECOMP_REGS_LOCALS
   8051     RECOMP_ENTER(0x420093A0u);
   8052 
   8053 L_420093A0:
   8054     eax = ecx + 0x8; /* 0x420093A0: lea eax, [ecx + 8] */
   8055     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420093A3: ret  */
   8056     RECOMP_REGS_OUT();
   8057 }
   8058 
   8059 void sub_420093B0(void) {
   8060     int _fpu_cmp = 0;
   8061     uint32_t _cf = 0;
   8062     int _df = 1;
   8063     uint32_t _flag_k = FK_NONE;
   8064     uint32_t _flag_a = 0, _flag_b = 0;
   8065     uint32_t _itail_tgt = 0;
   8066     RECOMP_REGS_LOCALS
   8067     RECOMP_ENTER(0x420093B0u);
   8068 
   8069 L_420093B0:
   8070     PUSH32(esp, ebp); /* 0x420093B0: push ebp */
   8071     ebp = esp; /* 0x420093B1: mov ebp, esp */
   8072     eax = MEM32(ebp + 0xC); /* 0x420093B3: mov eax, dword ptr [ebp + 0xc] */
   8073     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x420093B6: fld dword ptr [ebp + 0xc] */
   8074     edx = MEM32(ebp + 0x10); /* 0x420093B9: mov edx, dword ptr [ebp + 0x10] */
   8075     _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x420093BC: fmul dword ptr [ebp + 0x10] */
   8076     PUSH32(esp, esi); /* 0x420093BF: push esi */
   8077     esi = MEM32(ebp + 0x8); /* 0x420093C0: mov esi, dword ptr [ebp + 8] */
   8078     MEM32(ecx) = eax; /* 0x420093C3: mov dword ptr [ecx], eax */
   8079     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x420093C5: fstp dword ptr [ebp + 0xc] */
   8080     MEM32(ecx + 0x4) = edx; /* 0x420093C8: mov dword ptr [ecx + 4], edx */
   8081     MEM32(ecx + 0x14) = esi; /* 0x420093CB: mov dword ptr [ecx + 0x14], esi */
   8082     eax = MEM32(esi + 0x8); /* 0x420093CE: mov eax, dword ptr [esi + 8] */
   8083     /* test eax, eax */ /* 0x420093D1: test eax, eax */
   8084     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8085     _cf = 0;
   8086     _flag_k = FK_TEST;
   8087     if (TEST_Z(_flag_a, _flag_b)) goto L_420093FB; /* 0x420093D3: je 0x420093fb */
   8088 L_420093D5:
   8089     edx = MEM32(esi + 0xC); /* 0x420093D5: mov edx, dword ptr [esi + 0xc] */
   8090     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8091     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8092     edx = edx - eax; /* 0x420093D8: sub edx, eax */
   8093     _flag_k = FK_CMP;
   8094     eax = 0x2AAAAAABu; /* 0x420093DA: mov eax, 0x2aaaaaab */
   8095     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x420093DF: imul edx */
   8096       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   8097       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   8098     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x420093E1: sar edx, 1 */
   8099     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8100     edx = (uint32_t)((int32_t)edx >> 1u);
   8101     eax = edx; /* 0x420093E3: mov eax, edx */
   8102     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x420093E5: shr eax, 0x1f */
   8103     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8104     eax = eax >> 31u; /* 0x420093E5: shr eax, 0x1f */
   8105     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   8106     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8107     edx = edx + eax; /* 0x420093E8: add edx, eax */
   8108     _flag_k = FK_ADD;
   8109     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_420093FB; /* 0x420093EA: je 0x420093fb */
   8110 L_420093EC:
   8111     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   8112     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8113     ecx = ecx + 8; /* 0x420093EC: add ecx, 8 */
   8114     _flag_k = FK_ADD;
   8115     PUSH32(esp, ecx); /* 0x420093EF: push ecx */
   8116     ecx = MEM32(ebp + 0xC); /* 0x420093F0: mov ecx, dword ptr [ebp + 0xc] */
   8117     PUSH32(esp, ecx); /* 0x420093F3: push ecx */
   8118     ecx = esi; /* 0x420093F4: mov ecx, esi */
   8119     RECOMP_ICALL(0x42007DA0u); /* 0x420093F6: call 0x42007da0 */ /* not lifted */
   8120     RECOMP_FLAGS_IN();
   8121 L_420093FB:
   8122     esi = POP32_VAL(esp); /* 0x420093FB: pop esi */
   8123     ebp = POP32_VAL(esp); /* 0x420093FC: pop ebp */
   8124     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x420093FD: ret 0xc */
   8125     RECOMP_REGS_OUT();
   8126 }
   8127 
   8128 void sub_42009400(void) {
   8129     int _fpu_cmp = 0;
   8130     uint32_t _cf = 0;
   8131     int _df = 1;
   8132     uint32_t _flag_k = FK_NONE;
   8133     uint32_t _flag_a = 0, _flag_b = 0;
   8134     uint32_t _itail_tgt = 0;
   8135     RECOMP_REGS_LOCALS
   8136     RECOMP_ENTER(0x42009400u);
   8137 
   8138 L_42009400:
   8139     PUSH32(esp, ebp); /* 0x42009400: push ebp */
   8140     ebp = esp; /* 0x42009401: mov ebp, esp */
   8141     eax = MEM32(ebp + 0x8); /* 0x42009403: mov eax, dword ptr [ebp + 8] */
   8142     MEM32(ecx) = eax; /* 0x42009406: mov dword ptr [ecx], eax */
   8143     ebp = POP32_VAL(esp); /* 0x42009408: pop ebp */
   8144     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42009409: ret 4 */
   8145     RECOMP_REGS_OUT();
   8146 }
   8147 
   8148 void sub_42009410(void) {
   8149     int _fpu_cmp = 0;
   8150     uint32_t _cf = 0;
   8151     int _df = 1;
   8152     uint32_t _flag_k = FK_NONE;
   8153     uint32_t _flag_a = 0, _flag_b = 0;
   8154     uint32_t _itail_tgt = 0;
   8155     RECOMP_REGS_LOCALS
   8156     RECOMP_ENTER(0x42009410u);
   8157 
   8158 L_42009410:
   8159     RECOMP_ICALL(0x42009420u); /* 0x42009410: call 0x42009420 */ /* not lifted */
   8160     RECOMP_FLAGS_IN();
   8161     goto L_42009430; /* 0x42009415: jmp 0x42009430 */
   8162 L_42009430:
   8163     PUSH32(esp, 0x42009440u); /* 0x42009430: push 0x42009440 */
   8164     RECOMP_ICALL(0x42016E07u); /* 0x42009435: call 0x42016e07 */ /* not lifted */
   8165     RECOMP_FLAGS_IN();
   8166     ecx = POP32_VAL(esp); /* 0x4200943A: pop ecx */
   8167     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200943B: ret  */
   8168     RECOMP_REGS_OUT();
   8169 }
   8170 
   8171 void sub_42009420(void) {
   8172     int _fpu_cmp = 0;
   8173     uint32_t _cf = 0;
   8174     int _df = 1;
   8175     uint32_t _flag_k = FK_NONE;
   8176     uint32_t _flag_a = 0, _flag_b = 0;
   8177     uint32_t _itail_tgt = 0;
   8178     RECOMP_REGS_LOCALS
   8179     RECOMP_ENTER(0x42009420u);
   8180 
   8181 L_42009420:
   8182     ecx = 0x42023079u; /* 0x42009420: mov ecx, 0x42023079 */
   8183 L_42009425:
   8184     { _itail_tgt = (uint32_t)(MEM32(0x42018014)); goto _ljump; }
   8185     { RECOMP_REGS_OUT(); return; } /* end of function */
   8186   _ljump:
   8187     switch (_itail_tgt) {
   8188       case 0x42009420u: goto L_42009420;
   8189       case 0x42009425u: goto L_42009425;
   8190       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8191     }
   8192     RECOMP_REGS_OUT();
   8193 }
   8194 
   8195 void sub_42009430(void) {
   8196     int _fpu_cmp = 0;
   8197     uint32_t _cf = 0;
   8198     int _df = 1;
   8199     uint32_t _flag_k = FK_NONE;
   8200     uint32_t _flag_a = 0, _flag_b = 0;
   8201     uint32_t _itail_tgt = 0;
   8202     RECOMP_REGS_LOCALS
   8203     RECOMP_ENTER(0x42009430u);
   8204 
   8205 L_42009430:
   8206     PUSH32(esp, 0x42009440u); /* 0x42009430: push 0x42009440 */
   8207     RECOMP_ICALL(0x42016E07u); /* 0x42009435: call 0x42016e07 */ /* not lifted */
   8208     RECOMP_FLAGS_IN();
   8209     ecx = POP32_VAL(esp); /* 0x4200943A: pop ecx */
   8210     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200943B: ret  */
   8211     RECOMP_REGS_OUT();
   8212 }
   8213 
   8214 void sub_42009440(void) {
   8215     int _fpu_cmp = 0;
   8216     uint32_t _cf = 0;
   8217     int _df = 1;
   8218     uint32_t _flag_k = FK_NONE;
   8219     uint32_t _flag_a = 0, _flag_b = 0;
   8220     uint32_t _itail_tgt = 0;
   8221     RECOMP_REGS_LOCALS
   8222     RECOMP_ENTER(0x42009440u);
   8223 
   8224 L_42009440:
   8225     ecx = 0x42023079u; /* 0x42009440: mov ecx, 0x42023079 */
   8226 L_42009445:
   8227     { _itail_tgt = (uint32_t)(MEM32(0x42018010)); goto _ljump; }
   8228     { RECOMP_REGS_OUT(); return; } /* end of function */
   8229   _ljump:
   8230     switch (_itail_tgt) {
   8231       case 0x42009440u: goto L_42009440;
   8232       case 0x42009445u: goto L_42009445;
   8233       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8234     }
   8235     RECOMP_REGS_OUT();
   8236 }
   8237 
   8238 void sub_42009450(void) {
   8239     int _fpu_cmp = 0;
   8240     uint32_t _cf = 0;
   8241     int _df = 1;
   8242     uint32_t _flag_k = FK_NONE;
   8243     uint32_t _flag_a = 0, _flag_b = 0;
   8244     uint32_t _itail_tgt = 0;
   8245     RECOMP_REGS_LOCALS
   8246     RECOMP_ENTER(0x42009450u);
   8247 
   8248 L_42009450:
   8249     RECOMP_ICALL(0x42009460u); /* 0x42009450: call 0x42009460 */ /* not lifted */
   8250     RECOMP_FLAGS_IN();
   8251     goto L_42009470; /* 0x42009455: jmp 0x42009470 */
   8252 L_42009470:
   8253     PUSH32(esp, 0x42009480u); /* 0x42009470: push 0x42009480 */
   8254     RECOMP_ICALL(0x42016E07u); /* 0x42009475: call 0x42016e07 */ /* not lifted */
   8255     RECOMP_FLAGS_IN();
   8256     ecx = POP32_VAL(esp); /* 0x4200947A: pop ecx */
   8257     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200947B: ret  */
   8258     RECOMP_REGS_OUT();
   8259 }
   8260 
   8261 void sub_42009460(void) {
   8262     int _fpu_cmp = 0;
   8263     uint32_t _cf = 0;
   8264     int _df = 1;
   8265     uint32_t _flag_k = FK_NONE;
   8266     uint32_t _flag_a = 0, _flag_b = 0;
   8267     uint32_t _itail_tgt = 0;
   8268     RECOMP_REGS_LOCALS
   8269     RECOMP_ENTER(0x42009460u);
   8270 
   8271 L_42009460:
   8272     ecx = 0x42023078u; /* 0x42009460: mov ecx, 0x42023078 */
   8273 L_42009465:
   8274     { _itail_tgt = (uint32_t)(MEM32(0x42018008)); goto _ljump; }
   8275     { RECOMP_REGS_OUT(); return; } /* end of function */
   8276   _ljump:
   8277     switch (_itail_tgt) {
   8278       case 0x42009460u: goto L_42009460;
   8279       case 0x42009465u: goto L_42009465;
   8280       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8281     }
   8282     RECOMP_REGS_OUT();
   8283 }
   8284 
   8285 void sub_42009470(void) {
   8286     int _fpu_cmp = 0;
   8287     uint32_t _cf = 0;
   8288     int _df = 1;
   8289     uint32_t _flag_k = FK_NONE;
   8290     uint32_t _flag_a = 0, _flag_b = 0;
   8291     uint32_t _itail_tgt = 0;
   8292     RECOMP_REGS_LOCALS
   8293     RECOMP_ENTER(0x42009470u);
   8294 
   8295 L_42009470:
   8296     PUSH32(esp, 0x42009480u); /* 0x42009470: push 0x42009480 */
   8297     RECOMP_ICALL(0x42016E07u); /* 0x42009475: call 0x42016e07 */ /* not lifted */
   8298     RECOMP_FLAGS_IN();
   8299     ecx = POP32_VAL(esp); /* 0x4200947A: pop ecx */
   8300     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4200947B: ret  */
   8301     RECOMP_REGS_OUT();
   8302 }
   8303 
   8304 void sub_42009480(void) {
   8305     int _fpu_cmp = 0;
   8306     uint32_t _cf = 0;
   8307     int _df = 1;
   8308     uint32_t _flag_k = FK_NONE;
   8309     uint32_t _flag_a = 0, _flag_b = 0;
   8310     uint32_t _itail_tgt = 0;
   8311     RECOMP_REGS_LOCALS
   8312     RECOMP_ENTER(0x42009480u);
   8313 
   8314 L_42009480:
   8315     ecx = 0x42023078u; /* 0x42009480: mov ecx, 0x42023078 */
   8316 L_42009485:
   8317     { _itail_tgt = (uint32_t)(MEM32(0x4201800C)); goto _ljump; }
   8318     { RECOMP_REGS_OUT(); return; } /* end of function */
   8319   _ljump:
   8320     switch (_itail_tgt) {
   8321       case 0x42009480u: goto L_42009480;
   8322       case 0x42009485u: goto L_42009485;
   8323       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8324     }
   8325     RECOMP_REGS_OUT();
   8326 }
   8327 
   8328 void sub_42009490(void) {
   8329     int _fpu_cmp = 0;
   8330     uint32_t _cf = 0;
   8331     int _df = 1;
   8332     uint32_t _flag_k = FK_NONE;
   8333     uint32_t _flag_a = 0, _flag_b = 0;
   8334     uint32_t _itail_tgt = 0;
   8335     RECOMP_REGS_LOCALS
   8336     RECOMP_ENTER(0x42009490u);
   8337 
   8338 L_42009490:
   8339     PUSH32(esp, ebp); /* 0x42009490: push ebp */
   8340     ebp = esp; /* 0x42009491: mov ebp, esp */
   8341     eax = MEM32(ebp + 0x8); /* 0x42009493: mov eax, dword ptr [ebp + 8] */
   8342     ebp = POP32_VAL(esp); /* 0x42009496: pop ebp */
   8343     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42009497: ret 4 */
   8344     RECOMP_REGS_OUT();
   8345 }
   8346 
   8347 void sub_420094A0(void) {
   8348     int _fpu_cmp = 0;
   8349     uint32_t _cf = 0;
   8350     int _df = 1;
   8351     uint32_t _flag_k = FK_NONE;
   8352     uint32_t _flag_a = 0, _flag_b = 0;
   8353     uint32_t _itail_tgt = 0;
   8354     RECOMP_REGS_LOCALS
   8355     RECOMP_ENTER(0x420094A0u);
   8356 
   8357 L_420094A0:
   8358     PUSH32(esp, ebp); /* 0x420094A0: push ebp */
   8359     ebp = esp; /* 0x420094A1: mov ebp, esp */
   8360     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8362     esp = esp - 0xCu; /* 0x420094A3: sub esp, 0xc */
   8363     _flag_k = FK_CMP;
   8364     PUSH32(esp, ebx); /* 0x420094A6: push ebx */
   8365     ebx = MEM32(ebp + 0x8); /* 0x420094A7: mov ebx, dword ptr [ebp + 8] */
   8366     SET_LO8(eax, MEM8(ebx + 0x8)); /* 0x420094AA: mov al, byte ptr [ebx + 8] */
   8367     PUSH32(esp, esi); /* 0x420094AD: push esi */
   8368     PUSH32(esp, edi); /* 0x420094AE: push edi */
   8369     edi = ecx; /* 0x420094AF: mov edi, ecx */
   8370     MEM8(edi + 0x8) = (uint8_t)(LO8(eax)); /* 0x420094B1: mov byte ptr [edi + 8], al */
   8371     ecx = ebx + 0xC; /* 0x420094B4: lea ecx, [ebx + 0xc] */
   8372     eax = edi + 0xC; /* 0x420094B7: lea eax, [edi + 0xc] */
   8373     /* cmp eax, ecx */ /* 0x420094BA: cmp eax, ecx */
   8374     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8375     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8376     _flag_k = FK_CMP;
   8377     MEM32(ebp + (-0x4)) = edi; /* 0x420094BC: mov dword ptr [ebp - 4], edi */
   8378     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009521; /* 0x420094BF: je 0x42009521 */
   8379 L_420094C1:
   8380     ebx = MEM32(eax + 0x4); /* 0x420094C1: mov ebx, dword ptr [eax + 4] */
   8381     esi = MEM32(ebx); /* 0x420094C4: mov esi, dword ptr [ebx] */
   8382     edx = ebp + (-0xC); /* 0x420094C6: lea edx, [ebp - 0xc] */
   8383     PUSH32(esp, edx); /* 0x420094C9: push edx */
   8384     RECOMP_ICALL(0x4200CD70u); /* 0x420094CA: call 0x4200cd70 */ /* not lifted */
   8385     RECOMP_FLAGS_IN();
   8386     edi = MEM32(eax); /* 0x420094CF: mov edi, dword ptr [eax] */
   8387     ecx = MEM32(ebp + 0x8); /* 0x420094D1: mov ecx, dword ptr [ebp + 8] */
   8388     eax = ebp + (-0x8); /* 0x420094D4: lea eax, [ebp - 8] */
   8389     PUSH32(esp, eax); /* 0x420094D7: push eax */
   8390     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   8391     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8392     ecx = ecx + 0xCu; /* 0x420094D8: add ecx, 0xc */
   8393     _flag_k = FK_ADD;
   8394     RECOMP_ICALL(0x4200CD90u); /* 0x420094DB: call 0x4200cd90 */ /* not lifted */
   8395     RECOMP_FLAGS_IN();
   8396     /* cmp esi, ebx */ /* 0x420094E0: cmp esi, ebx */
   8397     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8399     _flag_k = FK_CMP;
   8400     eax = MEM32(eax); /* 0x420094E2: mov eax, dword ptr [eax] */
   8401     MEM32(ebp + (-0x8)) = eax; /* 0x420094E4: mov dword ptr [ebp - 8], eax */
   8402     if (CMP_EQ(_flag_a, _flag_b)) goto L_420094FB; /* 0x420094E7: je 0x420094fb */
   8403 L_420094E9:
   8404     /* cmp edi, eax */ /* 0x420094E9: cmp edi, eax */
   8405     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8407     _flag_k = FK_CMP;
   8408     if (CMP_EQ(_flag_a, _flag_b)) goto L_420094FB; /* 0x420094EB: je 0x420094fb */
   8409 L_420094ED:
   8410     edx = MEM32(edi + 0x8); /* 0x420094ED: mov edx, dword ptr [edi + 8] */
   8411     MEM32(esi + 0x8) = edx; /* 0x420094F0: mov dword ptr [esi + 8], edx */
   8412     esi = MEM32(esi); /* 0x420094F3: mov esi, dword ptr [esi] */
   8413     /* cmp esi, ebx */ /* 0x420094F5: cmp esi, ebx */
   8414     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8416     _flag_k = FK_CMP;
   8417     edi = MEM32(edi); /* 0x420094F7: mov edi, dword ptr [edi] */
   8418     RECOMP_BACKEDGE();
   8419     if (CMP_NE(_flag_a, _flag_b)) goto L_420094E9; /* 0x420094F9: jne 0x420094e9 */
   8420 L_420094FB:
   8421     ecx = MEM32(ebp + (-0x4)); /* 0x420094FB: mov ecx, dword ptr [ebp - 4] */
   8422     PUSH32(esp, ebx); /* 0x420094FE: push ebx */
   8423     PUSH32(esp, esi); /* 0x420094FF: push esi */
   8424     eax = ebp + (-0xC); /* 0x42009500: lea eax, [ebp - 0xc] */
   8425     esi = ecx + 0xC; /* 0x42009503: lea esi, [ecx + 0xc] */
   8426     PUSH32(esp, eax); /* 0x42009506: push eax */
   8427     ecx = esi; /* 0x42009507: mov ecx, esi */
   8428     RECOMP_ICALL(0x42009880u); /* 0x42009509: call 0x42009880 */ /* not lifted */
   8429     RECOMP_FLAGS_IN();
   8430     edx = MEM32(ebp + (-0x8)); /* 0x4200950E: mov edx, dword ptr [ebp - 8] */
   8431     PUSH32(esp, edx); /* 0x42009511: push edx */
   8432     PUSH32(esp, edi); /* 0x42009512: push edi */
   8433     PUSH32(esp, ebx); /* 0x42009513: push ebx */
   8434     ecx = esi; /* 0x42009514: mov ecx, esi */
   8435     RECOMP_ICALL(0x42009810u); /* 0x42009516: call 0x42009810 */ /* not lifted */
   8436     RECOMP_FLAGS_IN();
   8437     edi = MEM32(ebp + (-0x4)); /* 0x4200951B: mov edi, dword ptr [ebp - 4] */
   8438     ebx = MEM32(ebp + 0x8); /* 0x4200951E: mov ebx, dword ptr [ebp + 8] */
   8439 L_42009521:
   8440     eax = MEM32(ebx + 0x18); /* 0x42009521: mov eax, dword ptr [ebx + 0x18] */
   8441     MEM32(edi + 0x18) = eax; /* 0x42009524: mov dword ptr [edi + 0x18], eax */
   8442     ecx = MEM32(ebx + 0x1C); /* 0x42009527: mov ecx, dword ptr [ebx + 0x1c] */
   8443     MEM32(edi + 0x1C) = ecx; /* 0x4200952A: mov dword ptr [edi + 0x1c], ecx */
   8444     edx = MEM32(ebx + 0x20); /* 0x4200952D: mov edx, dword ptr [ebx + 0x20] */
   8445     MEM32(edi + 0x20) = edx; /* 0x42009530: mov dword ptr [edi + 0x20], edx */
   8446     eax = MEM32(ebx + 0x24); /* 0x42009533: mov eax, dword ptr [ebx + 0x24] */
   8447     MEM32(edi + 0x24) = eax; /* 0x42009536: mov dword ptr [edi + 0x24], eax */
   8448     eax = ebx + 0x28; /* 0x42009539: lea eax, [ebx + 0x28] */
   8449     esi = edi + 0x28; /* 0x4200953C: lea esi, [edi + 0x28] */
   8450     /* cmp esi, eax */ /* 0x4200953F: cmp esi, eax */
   8451     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   8452     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8453     _flag_k = FK_CMP;
   8454     if (CMP_EQ(_flag_a, _flag_b)) goto L_420095B3; /* 0x42009541: je 0x420095b3 */
   8455 L_42009543:
   8456     eax = MEM32(esi + 0x4); /* 0x42009543: mov eax, dword ptr [esi + 4] */
   8457     ecx = MEM32(eax); /* 0x42009546: mov ecx, dword ptr [eax] */
   8458     PUSH32(esp, eax); /* 0x42009548: push eax */
   8459     PUSH32(esp, ecx); /* 0x42009549: push ecx */
   8460     ecx = ebp + 0x8; /* 0x4200954A: lea ecx, [ebp + 8] */
   8461     PUSH32(esp, ecx); /* 0x4200954D: push ecx */
   8462     ecx = esi; /* 0x4200954E: mov ecx, esi */
   8463     RECOMP_ICALL(0x42009940u); /* 0x42009550: call 0x42009940 */ /* not lifted */
   8464     RECOMP_FLAGS_IN();
   8465     eax = MEM32(esi + 0x4); /* 0x42009555: mov eax, dword ptr [esi + 4] */
   8466     SET_LO8(edx, MEM8(ebx + 0x29)); /* 0x42009558: mov dl, byte ptr [ebx + 0x29] */
   8467     MEM8(esi + 0x1) = (uint8_t)(LO8(edx)); /* 0x4200955B: mov byte ptr [esi + 1], dl */
   8468     PUSH32(esp, eax); /* 0x4200955E: push eax */
   8469     MEM32(ebp + 0x8) = eax; /* 0x4200955F: mov dword ptr [ebp + 8], eax */
   8470     eax = MEM32(ebx + 0x2C); /* 0x42009562: mov eax, dword ptr [ebx + 0x2c] */
   8471     ecx = MEM32(eax + 0x4); /* 0x42009565: mov ecx, dword ptr [eax + 4] */
   8472     PUSH32(esp, ecx); /* 0x42009568: push ecx */
   8473     ecx = esi; /* 0x42009569: mov ecx, esi */
   8474     RECOMP_ICALL(0x42009DC0u); /* 0x4200956B: call 0x42009dc0 */ /* not lifted */
   8475     RECOMP_FLAGS_IN();
   8476     edx = MEM32(ebp + 0x8); /* 0x42009570: mov edx, dword ptr [ebp + 8] */
   8477     MEM32(edx + 0x4) = eax; /* 0x42009573: mov dword ptr [edx + 4], eax */
   8478     eax = MEM32(ebx + 0x38); /* 0x42009576: mov eax, dword ptr [ebx + 0x38] */
   8479     edx = MEM32(esi + 0x8); /* 0x42009579: mov edx, dword ptr [esi + 8] */
   8480     MEM32(esi + 0x10) = eax; /* 0x4200957C: mov dword ptr [esi + 0x10], eax */
   8481     eax = MEM32(esi + 0x4); /* 0x4200957F: mov eax, dword ptr [esi + 4] */
   8482     ecx = MEM32(eax + 0x4); /* 0x42009582: mov ecx, dword ptr [eax + 4] */
   8483     /* cmp ecx, edx */ /* 0x42009585: cmp ecx, edx */
   8484     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8486     _flag_k = FK_CMP;
   8487     MEM32(ebp + 0x8) = eax; /* 0x42009587: mov dword ptr [ebp + 8], eax */
   8488     if (CMP_EQ(_flag_a, _flag_b)) goto L_420095AB; /* 0x4200958A: je 0x420095ab */
   8489 L_4200958C:
   8490     PUSH32(esp, ecx); /* 0x4200958C: push ecx */
   8491     RECOMP_ICALL(0x42009EC0u); /* 0x4200958D: call 0x42009ec0 */ /* not lifted */
   8492     RECOMP_FLAGS_IN();
   8493     ecx = MEM32(ebp + 0x8); /* 0x42009592: mov ecx, dword ptr [ebp + 8] */
   8494     MEM32(ecx) = eax; /* 0x42009595: mov dword ptr [ecx], eax */
   8495     esi = MEM32(esi + 0x4); /* 0x42009597: mov esi, dword ptr [esi + 4] */
   8496     edx = MEM32(esi + 0x4); /* 0x4200959A: mov edx, dword ptr [esi + 4] */
   8497     PUSH32(esp, edx); /* 0x4200959D: push edx */
   8498     RECOMP_ICALL(0x42009EA0u); /* 0x4200959E: call 0x42009ea0 */ /* not lifted */
   8499     RECOMP_FLAGS_IN();
   8500     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8501     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8502     esp = esp + 8; /* 0x420095A3: add esp, 8 */
   8503     _flag_k = FK_ADD;
   8504     MEM32(esi + 0x8) = eax; /* 0x420095A6: mov dword ptr [esi + 8], eax */
   8505     goto L_420095B3; /* 0x420095A9: jmp 0x420095b3 */
   8506 L_420095AB:
   8507     MEM32(eax) = eax; /* 0x420095AB: mov dword ptr [eax], eax */
   8508     esi = MEM32(esi + 0x4); /* 0x420095AD: mov esi, dword ptr [esi + 4] */
   8509     MEM32(esi + 0x8) = esi; /* 0x420095B0: mov dword ptr [esi + 8], esi */
   8510 L_420095B3:
   8511     eax = MEM32(ebx + 0x3C); /* 0x420095B3: mov eax, dword ptr [ebx + 0x3c] */
   8512     MEM32(edi + 0x3C) = eax; /* 0x420095B6: mov dword ptr [edi + 0x3c], eax */
   8513     ecx = MEM32(ebx + 0x40); /* 0x420095B9: mov ecx, dword ptr [ebx + 0x40] */
   8514     MEM32(edi + 0x40) = ecx; /* 0x420095BC: mov dword ptr [edi + 0x40], ecx */
   8515     ecx = ebx + 0x44; /* 0x420095BF: lea ecx, [ebx + 0x44] */
   8516     eax = edi + 0x44; /* 0x420095C2: lea eax, [edi + 0x44] */
   8517     /* cmp eax, ecx */ /* 0x420095C5: cmp eax, ecx */
   8518     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8520     _flag_k = FK_CMP;
   8521     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009634; /* 0x420095C7: je 0x42009634 */
   8522 L_420095C9:
   8523     ebx = MEM32(eax + 0x4); /* 0x420095C9: mov ebx, dword ptr [eax + 4] */
   8524     edx = MEM32(ecx + 0x4); /* 0x420095CC: mov edx, dword ptr [ecx + 4] */
   8525     esi = MEM32(ebx); /* 0x420095CF: mov esi, dword ptr [ebx] */
   8526     edi = MEM32(edx); /* 0x420095D1: mov edi, dword ptr [edx] */
   8527     eax = ebp + 0x8; /* 0x420095D3: lea eax, [ebp + 8] */
   8528     PUSH32(esp, eax); /* 0x420095D6: push eax */
   8529     RECOMP_ICALL(0x4200CD90u); /* 0x420095D7: call 0x4200cd90 */ /* not lifted */
   8530     RECOMP_FLAGS_IN();
   8531     /* cmp esi, ebx */ /* 0x420095DC: cmp esi, ebx */
   8532     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8534     _flag_k = FK_CMP;
   8535     ecx = MEM32(eax); /* 0x420095DE: mov ecx, dword ptr [eax] */
   8536     MEM32(ebp + 0x8) = ecx; /* 0x420095E0: mov dword ptr [ebp + 8], ecx */
   8537     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009608; /* 0x420095E3: je 0x42009608 */
   8538 L_420095E5:
   8539     /* cmp edi, MEM32(ebp + 0x8) */ /* 0x420095E5: cmp edi, dword ptr [ebp + 8] */
   8540     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + 0x8));
   8541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8542     _flag_k = FK_CMP;
   8543     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009608; /* 0x420095E8: je 0x42009608 */
   8544 L_420095EA:
   8545     edx = edi + 0x8; /* 0x420095EA: lea edx, [edi + 8] */
   8546     ecx = MEM32(edx); /* 0x420095ED: mov ecx, dword ptr [edx] */
   8547     eax = esi + 0x8; /* 0x420095EF: lea eax, [esi + 8] */
   8548     MEM32(eax) = ecx; /* 0x420095F2: mov dword ptr [eax], ecx */
   8549     ecx = MEM32(edx + 0x4); /* 0x420095F4: mov ecx, dword ptr [edx + 4] */
   8550     MEM32(eax + 0x4) = ecx; /* 0x420095F7: mov dword ptr [eax + 4], ecx */
   8551     edx = MEM32(edx + 0x8); /* 0x420095FA: mov edx, dword ptr [edx + 8] */
   8552     MEM32(eax + 0x8) = edx; /* 0x420095FD: mov dword ptr [eax + 8], edx */
   8553     esi = MEM32(esi); /* 0x42009600: mov esi, dword ptr [esi] */
   8554     /* cmp esi, ebx */ /* 0x42009602: cmp esi, ebx */
   8555     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8557     _flag_k = FK_CMP;
   8558     edi = MEM32(edi); /* 0x42009604: mov edi, dword ptr [edi] */
   8559     RECOMP_BACKEDGE();
   8560     if (CMP_NE(_flag_a, _flag_b)) goto L_420095E5; /* 0x42009606: jne 0x420095e5 */
   8561 L_42009608:
   8562     ecx = MEM32(ebp + (-0x4)); /* 0x42009608: mov ecx, dword ptr [ebp - 4] */
   8563     PUSH32(esp, ebx); /* 0x4200960B: push ebx */
   8564     PUSH32(esp, esi); /* 0x4200960C: push esi */
   8565     eax = ebp + (-0xC); /* 0x4200960D: lea eax, [ebp - 0xc] */
   8566     esi = ecx + 0x44; /* 0x42009610: lea esi, [ecx + 0x44] */
   8567     PUSH32(esp, eax); /* 0x42009613: push eax */
   8568     ecx = esi; /* 0x42009614: mov ecx, esi */
   8569     RECOMP_ICALL(0x42009880u); /* 0x42009616: call 0x42009880 */ /* not lifted */
   8570     RECOMP_FLAGS_IN();
   8571     edx = MEM32(ebp + 0x8); /* 0x4200961B: mov edx, dword ptr [ebp + 8] */
   8572     PUSH32(esp, edx); /* 0x4200961E: push edx */
   8573     PUSH32(esp, edi); /* 0x4200961F: push edi */
   8574     PUSH32(esp, ebx); /* 0x42009620: push ebx */
   8575     ecx = esi; /* 0x42009621: mov ecx, esi */
   8576     RECOMP_ICALL(0x420098D0u); /* 0x42009623: call 0x420098d0 */ /* not lifted */
   8577     RECOMP_FLAGS_IN();
   8578     eax = MEM32(ebp + (-0x4)); /* 0x42009628: mov eax, dword ptr [ebp - 4] */
   8579     edi = POP32_VAL(esp); /* 0x4200962B: pop edi */
   8580     esi = POP32_VAL(esp); /* 0x4200962C: pop esi */
   8581     ebx = POP32_VAL(esp); /* 0x4200962D: pop ebx */
   8582     esp = ebp; /* 0x4200962E: mov esp, ebp */
   8583     ebp = POP32_VAL(esp); /* 0x42009630: pop ebp */
   8584     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42009631: ret 4 */
   8585 L_42009634:
   8586     eax = edi; /* 0x42009634: mov eax, edi */
   8587     edi = POP32_VAL(esp); /* 0x42009636: pop edi */
   8588     esi = POP32_VAL(esp); /* 0x42009637: pop esi */
   8589     ebx = POP32_VAL(esp); /* 0x42009638: pop ebx */
   8590     esp = ebp; /* 0x42009639: mov esp, ebp */
   8591     ebp = POP32_VAL(esp); /* 0x4200963B: pop ebp */
   8592     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200963C: ret 4 */
   8593     RECOMP_REGS_OUT();
   8594 }
   8595 
   8596 void sub_42009640(void) {
   8597     int _fpu_cmp = 0;
   8598     uint32_t _cf = 0;
   8599     int _df = 1;
   8600     uint32_t _flag_k = FK_NONE;
   8601     uint32_t _flag_a = 0, _flag_b = 0;
   8602     uint32_t _itail_tgt = 0;
   8603     RECOMP_REGS_LOCALS
   8604     RECOMP_ENTER(0x42009640u);
   8605 
   8606 L_42009640:
   8607     PUSH32(esp, ebp); /* 0x42009640: push ebp */
   8608     ebp = esp; /* 0x42009641: mov ebp, esp */
   8609     eax = ecx; /* 0x42009643: mov eax, ecx */
   8610     ecx = MEM32(ebp + 0x8); /* 0x42009645: mov ecx, dword ptr [ebp + 8] */
   8611     MEM32(eax) = ecx; /* 0x42009648: mov dword ptr [eax], ecx */
   8612     ecx = MEM32(ebp + 0xC); /* 0x4200964A: mov ecx, dword ptr [ebp + 0xc] */
   8613     PUSH32(esp, esi); /* 0x4200964D: push esi */
   8614     esi = MEM32(ecx); /* 0x4200964E: mov esi, dword ptr [ecx] */
   8615     edx = eax + 0x4; /* 0x42009650: lea edx, [eax + 4] */
   8616     MEM32(edx) = esi; /* 0x42009653: mov dword ptr [edx], esi */
   8617     esi = MEM32(ecx + 0x4); /* 0x42009655: mov esi, dword ptr [ecx + 4] */
   8618     MEM32(edx + 0x4) = esi; /* 0x42009658: mov dword ptr [edx + 4], esi */
   8619     ecx = MEM32(ecx + 0x8); /* 0x4200965B: mov ecx, dword ptr [ecx + 8] */
   8620     MEM32(edx + 0x8) = ecx; /* 0x4200965E: mov dword ptr [edx + 8], ecx */
   8621     ecx = MEM32(ebp + 0x10); /* 0x42009661: mov ecx, dword ptr [ebp + 0x10] */
   8622     esi = MEM32(ecx); /* 0x42009664: mov esi, dword ptr [ecx] */
   8623     edx = eax + 0x10; /* 0x42009666: lea edx, [eax + 0x10] */
   8624     MEM32(edx) = esi; /* 0x42009669: mov dword ptr [edx], esi */
   8625     esi = MEM32(ecx + 0x4); /* 0x4200966B: mov esi, dword ptr [ecx + 4] */
   8626     MEM32(edx + 0x4) = esi; /* 0x4200966E: mov dword ptr [edx + 4], esi */
   8627     ecx = MEM32(ecx + 0x8); /* 0x42009671: mov ecx, dword ptr [ecx + 8] */
   8628     MEM32(edx + 0x8) = ecx; /* 0x42009674: mov dword ptr [edx + 8], ecx */
   8629     ecx = MEM32(ebp + 0x14); /* 0x42009677: mov ecx, dword ptr [ebp + 0x14] */
   8630     esi = MEM32(ecx); /* 0x4200967A: mov esi, dword ptr [ecx] */
   8631     edx = eax + 0x1C; /* 0x4200967C: lea edx, [eax + 0x1c] */
   8632     MEM32(edx) = esi; /* 0x4200967F: mov dword ptr [edx], esi */
   8633     esi = MEM32(ecx + 0x4); /* 0x42009681: mov esi, dword ptr [ecx + 4] */
   8634     MEM32(edx + 0x4) = esi; /* 0x42009684: mov dword ptr [edx + 4], esi */
   8635     ecx = MEM32(ecx + 0x8); /* 0x42009687: mov ecx, dword ptr [ecx + 8] */
   8636     MEM32(edx + 0x8) = ecx; /* 0x4200968A: mov dword ptr [edx + 8], ecx */
   8637     esi = POP32_VAL(esp); /* 0x4200968D: pop esi */
   8638     ebp = POP32_VAL(esp); /* 0x4200968E: pop ebp */
   8639     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4200968F: ret 0x10 */
   8640     RECOMP_REGS_OUT();
   8641 }
   8642 
   8643 void sub_420096A0(void) {
   8644     int _fpu_cmp = 0;
   8645     uint32_t _cf = 0;
   8646     int _df = 1;
   8647     uint32_t _flag_k = FK_NONE;
   8648     uint32_t _flag_a = 0, _flag_b = 0;
   8649     uint32_t _itail_tgt = 0;
   8650     RECOMP_REGS_LOCALS
   8651     RECOMP_ENTER(0x420096A0u);
   8652 
   8653 L_420096A0:
   8654     PUSH32(esp, esi); /* 0x420096A0: push esi */
   8655     PUSH32(esp, edi); /* 0x420096A1: push edi */
   8656     edi = ecx; /* 0x420096A2: mov edi, ecx */
   8657     esi = MEM32(edi); /* 0x420096A4: mov esi, dword ptr [edi] */
   8658     /* test esi, esi */ /* 0x420096A6: test esi, esi */
   8659     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8660     _cf = 0;
   8661     _flag_k = FK_TEST;
   8662     if (TEST_Z(_flag_a, _flag_b)) goto L_420096E0; /* 0x420096A8: je 0x420096e0 */
   8663 L_420096AA:
   8664     eax = MEM32(esi + 0xC); /* 0x420096AA: mov eax, dword ptr [esi + 0xc] */
   8665     /* test eax, eax */ /* 0x420096AD: test eax, eax */
   8666     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8667     _cf = 0;
   8668     _flag_k = FK_TEST;
   8669     if (TEST_Z(_flag_a, _flag_b)) goto L_420096D0; /* 0x420096AF: je 0x420096d0 */
   8670 L_420096B1:
   8671     ecx = MEM32(eax + (-0x4)); /* 0x420096B1: mov ecx, dword ptr [eax - 4] */
   8672     PUSH32(esp, ebx); /* 0x420096B4: push ebx */
   8673     ebx = eax + (-0x4); /* 0x420096B5: lea ebx, [eax - 4] */
   8674     PUSH32(esp, 0x4200A0C0u); /* 0x420096B8: push 0x4200a0c0 */
   8675     PUSH32(esp, ecx); /* 0x420096BD: push ecx */
   8676     PUSH32(esp, 0x10u); /* 0x420096BE: push 0x10 */
   8677     PUSH32(esp, eax); /* 0x420096C0: push eax */
   8678     RECOMP_ICALL(0x42016E3Cu); /* 0x420096C1: call 0x42016e3c */ /* not lifted */
   8679     RECOMP_FLAGS_IN();
   8680     PUSH32(esp, ebx); /* 0x420096C6: push ebx */
   8681     RECOMP_ICALL(0x42016DD0u); /* 0x420096C7: call 0x42016dd0 */ /* not lifted */
   8682     RECOMP_FLAGS_IN();
   8683     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8684     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8685     esp = esp + 4; /* 0x420096CC: add esp, 4 */
   8686     _flag_k = FK_ADD;
   8687     ebx = POP32_VAL(esp); /* 0x420096CF: pop ebx */
   8688 L_420096D0:
   8689     PUSH32(esp, esi); /* 0x420096D0: push esi */
   8690     MEM32(esi + 0xC) = 0; /* 0x420096D1: mov dword ptr [esi + 0xc], 0 */
   8691     RECOMP_ICALL(0x42016DD0u); /* 0x420096D8: call 0x42016dd0 */ /* not lifted */
   8692     RECOMP_FLAGS_IN();
   8693     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8694     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8695     esp = esp + 4; /* 0x420096DD: add esp, 4 */
   8696     _flag_k = FK_ADD;
   8697 L_420096E0:
   8698     MEM32(edi) = 0; /* 0x420096E0: mov dword ptr [edi], 0 */
   8699     edi = POP32_VAL(esp); /* 0x420096E6: pop edi */
   8700     esi = POP32_VAL(esp); /* 0x420096E7: pop esi */
   8701     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x420096E8: ret  */
   8702     RECOMP_REGS_OUT();
   8703 }
   8704 
   8705 void sub_420096F0(void) {
   8706     int _fpu_cmp = 0;
   8707     uint32_t _cf = 0;
   8708     int _df = 1;
   8709     uint32_t _flag_k = FK_NONE;
   8710     uint32_t _flag_a = 0, _flag_b = 0;
   8711     uint32_t _itail_tgt = 0;
   8712     RECOMP_REGS_LOCALS
   8713     RECOMP_ENTER(0x420096F0u);
   8714 
   8715 L_420096F0:
   8716     PUSH32(esp, ebp); /* 0x420096F0: push ebp */
   8717     ebp = esp; /* 0x420096F1: mov ebp, esp */
   8718     edx = MEM32(ebp + 0x8); /* 0x420096F3: mov edx, dword ptr [ebp + 8] */
   8719     fp_push(*(float*)&MEM32(edx)); /* 0x420096F6: fld dword ptr [edx] */
   8720     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x8)); /* 0x420096F8: fcom dword ptr [ecx + 8] */
   8721     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x420096FB: fnstsw ax */
   8722     /* test HI8(eax), 1 */ /* 0x420096FD: test ah, 1 */
   8723     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8724     _cf = 0;
   8725     _flag_k = FK_NARROW(FK_TEST, 24);
   8726     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009740; /* 0x42009700: jne 0x42009740 */
   8727 L_42009702:
   8728     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0xC)); /* 0x42009702: fcomp dword ptr [ecx + 0xc] */
   8729     fp_pop();
   8730     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42009705: fnstsw ax */
   8731     /* test HI8(eax), 1 */ /* 0x42009707: test ah, 1 */
   8732     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8733     _cf = 0;
   8734     _flag_k = FK_NARROW(FK_TEST, 24);
   8735     if (TEST_Z(_flag_a, _flag_b)) goto L_42009742; /* 0x4200970A: je 0x42009742 */
   8736 L_4200970C:
   8737     fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x4200970C: fld dword ptr [edx + 4] */
   8738     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x14)); /* 0x4200970F: fcom dword ptr [ecx + 0x14] */
   8739     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42009712: fnstsw ax */
   8740     /* test HI8(eax), 1 */ /* 0x42009714: test ah, 1 */
   8741     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8742     _cf = 0;
   8743     _flag_k = FK_NARROW(FK_TEST, 24);
   8744     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009740; /* 0x42009717: jne 0x42009740 */
   8745 L_42009719:
   8746     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x18)); /* 0x42009719: fcomp dword ptr [ecx + 0x18] */
   8747     fp_pop();
   8748     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x4200971C: fnstsw ax */
   8749     /* test HI8(eax), 1 */ /* 0x4200971E: test ah, 1 */
   8750     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8751     _cf = 0;
   8752     _flag_k = FK_NARROW(FK_TEST, 24);
   8753     if (TEST_Z(_flag_a, _flag_b)) goto L_42009742; /* 0x42009721: je 0x42009742 */
   8754 L_42009723:
   8755     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x42009723: fld dword ptr [edx + 8] */
   8756     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x20)); /* 0x42009726: fcom dword ptr [ecx + 0x20] */
   8757     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42009729: fnstsw ax */
   8758     /* test HI8(eax), 1 */ /* 0x4200972B: test ah, 1 */
   8759     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8760     _cf = 0;
   8761     _flag_k = FK_NARROW(FK_TEST, 24);
   8762     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009740; /* 0x4200972E: jne 0x42009740 */
   8763 L_42009730:
   8764     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x24)); /* 0x42009730: fcomp dword ptr [ecx + 0x24] */
   8765     fp_pop();
   8766     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x42009733: fnstsw ax */
   8767     /* test HI8(eax), 1 */ /* 0x42009735: test ah, 1 */
   8768     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8769     _cf = 0;
   8770     _flag_k = FK_NARROW(FK_TEST, 24);
   8771     if (TEST_Z(_flag_a, _flag_b)) goto L_42009742; /* 0x42009738: je 0x42009742 */
   8772 L_4200973A:
   8773     SET_LO8(eax, 1); /* 0x4200973A: mov al, 1 */
   8774     ebp = POP32_VAL(esp); /* 0x4200973C: pop ebp */
   8775     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4200973D: ret 4 */
   8776 L_42009740:
   8777     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x42009740: fstp st(0) */
   8778 L_42009742:
   8779     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   8780     SET_LO8(eax, 0); /* 0x42009742: xor al, al */
   8781     _cf = 0;
   8782     _flag_k = FK_NARROW(FK_TEST, 24);
   8783     ebp = POP32_VAL(esp); /* 0x42009744: pop ebp */
   8784     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42009745: ret 4 */
   8785     RECOMP_REGS_OUT();
   8786 }
   8787 
   8788 void sub_42009750(void) {
   8789     int _fpu_cmp = 0;
   8790     uint32_t _cf = 0;
   8791     int _df = 1;
   8792     uint32_t _flag_k = FK_NONE;
   8793     uint32_t _flag_a = 0, _flag_b = 0;
   8794     uint32_t _itail_tgt = 0;
   8795     RECOMP_REGS_LOCALS
   8796     RECOMP_ENTER(0x42009750u);
   8797 
   8798 L_42009750:
   8799     PUSH32(esp, ebp); /* 0x42009750: push ebp */
   8800     ebp = esp; /* 0x42009751: mov ebp, esp */
   8801     PUSH32(esp, esi); /* 0x42009753: push esi */
   8802     esi = MEM32(ebp + 0x8); /* 0x42009754: mov esi, dword ptr [ebp + 8] */
   8803     PUSH32(esp, edi); /* 0x42009757: push edi */
   8804     eax = ecx; /* 0x42009758: mov eax, ecx */
   8805     ecx = 0xAu; /* 0x4200975A: mov ecx, 0xa */
   8806     edi = eax; /* 0x4200975F: mov edi, eax */
   8807     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x42009761: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   8808     edi = POP32_VAL(esp); /* 0x42009763: pop edi */
   8809     esi = POP32_VAL(esp); /* 0x42009764: pop esi */
   8810     ebp = POP32_VAL(esp); /* 0x42009765: pop ebp */
   8811     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42009766: ret 4 */
   8812     RECOMP_REGS_OUT();
   8813 }
   8814 
   8815 void sub_42009770(void) {
   8816     int _fpu_cmp = 0;
   8817     uint32_t _cf = 0;
   8818     int _df = 1;
   8819     uint32_t _flag_k = FK_NONE;
   8820     uint32_t _flag_a = 0, _flag_b = 0;
   8821     uint32_t _itail_tgt = 0;
   8822     RECOMP_REGS_LOCALS
   8823     RECOMP_ENTER(0x42009770u);
   8824 
   8825 L_42009770:
   8826     PUSH32(esp, ebp); /* 0x42009770: push ebp */
   8827     ebp = esp; /* 0x42009771: mov ebp, esp */
   8828     PUSH32(esp, ebx); /* 0x42009773: push ebx */
   8829     PUSH32(esp, esi); /* 0x42009774: push esi */
   8830     PUSH32(esp, edi); /* 0x42009775: push edi */
   8831     edi = MEM32(ebp + 0x8); /* 0x42009776: mov edi, dword ptr [ebp + 8] */
   8832     fp_push(*(float*)&MEM32(edi)); /* 0x42009779: fld dword ptr [edi] */
   8833     esi = ecx; /* 0x4200977B: mov esi, ecx */
   8834     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x4200977D: fsub dword ptr [esi + 8] */
   8835     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8836     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8837     esp = esp - 8; /* 0x42009780: sub esp, 8 */
   8838     _flag_k = FK_CMP;
   8839     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x42009783: fld dword ptr [esi + 0xc] */
   8840     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x42009786: fsub dword ptr [esi + 8] */
   8841     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x42009789: fdivp st(1) */
   8842     _st[0] = _st[0] * (double)(int32_t)MEM32(esi + 0x4); /* 0x4200978B: fimul dword ptr [esi + 4] */
   8843     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x4200978E: fstp qword ptr [esp] */
   8844     RECOMP_ICALL(MEM32(0x42018054)); /* 0x42009791: call dword ptr [0x42018054] */
   8845     RECOMP_FLAGS_IN();
   8846     RECOMP_ICALL(0x42016F3Cu); /* 0x42009797: call 0x42016f3c */ /* not lifted */
   8847     RECOMP_FLAGS_IN();
   8848     fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x4200979C: fld dword ptr [edi + 4] */
   8849     _st[0] -= (double)*(float*)ADDR(esi + 0x14); /* 0x4200979F: fsub dword ptr [esi + 0x14] */
   8850     ebx = eax; /* 0x420097A2: mov ebx, eax */
   8851     fp_push(*(float*)&MEM32(esi + 0x18)); /* 0x420097A4: fld dword ptr [esi + 0x18] */
   8852     _st[0] -= (double)*(float*)ADDR(esi + 0x14); /* 0x420097A7: fsub dword ptr [esi + 0x14] */
   8853     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x420097AA: fdivp st(1) */
   8854     _st[0] = _st[0] * (double)(int32_t)MEM32(esi + 0x10); /* 0x420097AC: fimul dword ptr [esi + 0x10] */
   8855     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x420097AF: fstp qword ptr [esp] */
   8856     RECOMP_ICALL(MEM32(0x42018054)); /* 0x420097B2: call dword ptr [0x42018054] */
   8857     RECOMP_FLAGS_IN();
   8858     RECOMP_ICALL(0x42016F3Cu); /* 0x420097B8: call 0x42016f3c */ /* not lifted */
   8859     RECOMP_FLAGS_IN();
   8860     fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x420097BD: fld dword ptr [edi + 8] */
   8861     _st[0] -= (double)*(float*)ADDR(esi + 0x20); /* 0x420097C0: fsub dword ptr [esi + 0x20] */
   8862     MEM32(ebp + 0x8) = eax; /* 0x420097C3: mov dword ptr [ebp + 8], eax */
   8863     fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x420097C6: fld dword ptr [esi + 0x24] */
   8864     _st[0] -= (double)*(float*)ADDR(esi + 0x20); /* 0x420097C9: fsub dword ptr [esi + 0x20] */
   8865     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x420097CC: fdivp st(1) */
   8866     _st[0] = _st[0] * (double)(int32_t)MEM32(esi + 0x1C); /* 0x420097CE: fimul dword ptr [esi + 0x1c] */
   8867     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x420097D1: fstp qword ptr [esp] */
   8868     RECOMP_ICALL(MEM32(0x42018054)); /* 0x420097D4: call dword ptr [0x42018054] */
   8869     RECOMP_FLAGS_IN();
   8870     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8871     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8872     esp = esp + 8; /* 0x420097DA: add esp, 8 */
   8873     _flag_k = FK_ADD;
   8874     RECOMP_ICALL(0x42016F3Cu); /* 0x420097DD: call 0x42016f3c */ /* not lifted */
   8875     RECOMP_FLAGS_IN();
   8876     esi = MEM32(esi); /* 0x420097E2: mov esi, dword ptr [esi] */
   8877     ecx = eax; /* 0x420097E4: mov ecx, eax */
   8878     eax = MEM32(esi + 0x4); /* 0x420097E6: mov eax, dword ptr [esi + 4] */
   8879     eax = (uint32_t)((int32_t)eax * (int32_t)ecx); /* 0x420097E9: imul eax, ecx */
   8880     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8));
   8881     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8882     eax = eax + MEM32(ebp + 0x8); /* 0x420097EC: add eax, dword ptr [ebp + 8] */
   8883     _flag_k = FK_ADD;
   8884     eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(esi)); /* 0x420097EF: imul eax, dword ptr [esi] */
   8885     ecx = MEM32(esi + 0xC); /* 0x420097F2: mov ecx, dword ptr [esi + 0xc] */
   8886     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   8887     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8888     eax = eax + ebx; /* 0x420097F5: add eax, ebx */
   8889     _flag_k = FK_ADD;
   8890     edi = POP32_VAL(esp); /* 0x420097F7: pop edi */
   8891     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x420097F8: shl eax, 4 */
   8892     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8893     eax = eax << 4u; /* 0x420097F8: shl eax, 4 */
   8894     esi = POP32_VAL(esp); /* 0x420097FB: pop esi */
   8895     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8896     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8897     eax = eax + ecx; /* 0x420097FC: add eax, ecx */
   8898     _flag_k = FK_ADD;
   8899     ebx = POP32_VAL(esp); /* 0x420097FE: pop ebx */
   8900     ebp = POP32_VAL(esp); /* 0x420097FF: pop ebp */
   8901     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x42009800: ret 4 */
   8902     RECOMP_REGS_OUT();
   8903 }
   8904 
   8905 void sub_42009810(void) {
   8906     int _fpu_cmp = 0;
   8907     uint32_t _cf = 0;
   8908     int _df = 1;
   8909     uint32_t _flag_k = FK_NONE;
   8910     uint32_t _flag_a = 0, _flag_b = 0;
   8911     uint32_t _itail_tgt = 0;
   8912     RECOMP_REGS_LOCALS
   8913     RECOMP_ENTER(0x42009810u);
   8914 
   8915 L_42009810:
   8916     PUSH32(esp, ebp); /* 0x42009810: push ebp */
   8917     ebp = esp; /* 0x42009811: mov ebp, esp */
   8918     PUSH32(esp, ecx); /* 0x42009813: push ecx */
   8919     eax = MEM32(ebp + 0x10); /* 0x42009814: mov eax, dword ptr [ebp + 0x10] */
   8920     PUSH32(esp, ebx); /* 0x42009817: push ebx */
   8921     ebx = MEM32(ebp + 0xC); /* 0x42009818: mov ebx, dword ptr [ebp + 0xc] */
   8922     /* cmp ebx, eax */ /* 0x4200981B: cmp ebx, eax */
   8923     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   8924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8925     _flag_k = FK_CMP;
   8926     MEM32(ebp + (-0x4)) = ecx; /* 0x4200981D: mov dword ptr [ebp - 4], ecx */
   8927     if (CMP_EQ(_flag_a, _flag_b)) goto L_4200986C; /* 0x42009820: je 0x4200986c */
   8928 L_42009822:
   8929     PUSH32(esp, esi); /* 0x42009822: push esi */
   8930     PUSH32(esp, edi); /* 0x42009823: push edi */
   8931     edi = MEM32(ebp + 0x8); /* 0x42009824: mov edi, dword ptr [ebp + 8] */
   8932 L_42009827:
   8933     esi = MEM32(edi + 0x4); /* 0x42009827: mov esi, dword ptr [edi + 4] */
   8934     PUSH32(esp, 0xCu); /* 0x4200982A: push 0xc */
   8935     RECOMP_ICALL(0x42016F36u); /* 0x4200982C: call 0x42016f36 */ /* not lifted */
   8936     RECOMP_FLAGS_IN();
   8937     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8938     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8939     esp = esp + 4; /* 0x42009831: add esp, 4 */
   8940     _flag_k = FK_ADD;
   8941     /* test edi, edi */ /* 0x42009834: test edi, edi */
   8942     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8943     _cf = 0;
   8944     _flag_k = FK_TEST;
   8945     ecx = edi; /* 0x42009836: mov ecx, edi */
   8946     if (TEST_NZ(_flag_a, _flag_b)) goto L_4200983C; /* 0x42009838: jne 0x4200983c */
   8947 L_4200983A:
   8948     ecx = eax; /* 0x4200983A: mov ecx, eax */
   8949 L_4200983C:
   8950     /* test esi, esi */ /* 0x4200983C: test esi, esi */
   8951     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8952     _cf = 0;
   8953     _flag_k = FK_TEST;
   8954     MEM32(eax) = ecx; /* 0x4200983E: mov dword ptr [eax], ecx */
   8955     ecx = esi; /* 0x42009840: mov ecx, esi */
   8956     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009846; /* 0x42009842: jne 0x42009846 */
   8957 L_42009844:
   8958     ecx = eax; /* 0x42009844: mov ecx, eax */
   8959 L_42009846:
   8960     MEM32(eax + 0x4) = ecx; /* 0x42009846: mov dword ptr [eax + 4], ecx */
   8961     MEM32(edi + 0x4) = eax; /* 0x42009849: mov dword ptr [edi + 4], eax */
   8962     ecx = MEM32(eax + 0x4); /* 0x4200984C: mov ecx, dword ptr [eax + 4] */
   8963     MEM32(ecx) = eax; /* 0x4200984F: mov dword ptr [ecx], eax */
   8964     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   8965     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8966     eax = eax + 8; /* 0x42009851: add eax, 8 */
   8967     _flag_k = FK_ADD;
   8968     /* test eax, eax */ /* 0x42009854: test eax, eax */
   8969     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8970     _cf = 0;
   8971     _flag_k = FK_TEST;
   8972     if (TEST_Z(_flag_a, _flag_b)) goto L_4200985D; /* 0x42009856: je 0x4200985d */
   8973 L_42009858:
   8974     edx = MEM32(ebx + 0x8); /* 0x42009858: mov edx, dword ptr [ebx + 8] */
   8975     MEM32(eax) = edx; /* 0x4200985B: mov dword ptr [eax], edx */
   8976 L_4200985D:
   8977     eax = MEM32(ebp + (-0x4)); /* 0x4200985D: mov eax, dword ptr [ebp - 4] */
   8978     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(1);
   8979     MEM32(eax + 0x8) = MEM32(eax + 0x8) + 1; /* 0x42009860: inc dword ptr [eax + 8] */
   8980     _flag_k = FK_INC;
   8981     ebx = MEM32(ebx); /* 0x42009863: mov ebx, dword ptr [ebx] */
   8982     /* cmp ebx, MEM32(ebp + 0x10) */ /* 0x42009865: cmp ebx, dword ptr [ebp + 0x10] */
   8983     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0x10));
   8984     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8985     _flag_k = FK_CMP;
   8986     RECOMP_BACKEDGE();
   8987     if (CMP_NE(_flag_a, _flag_b)) goto L_42009827; /* 0x42009868: jne 0x42009827 */
   8988 L_4200986A:
   8989     edi = POP32_VAL(esp); /* 0x4200986A: pop edi */
   8990     esi = POP32_VAL(esp); /* 0x4200986B: pop esi */
   8991 L_4200986C:
   8992     ebx = POP32_VAL(esp); /* 0x4200986C: pop ebx */
   8993     esp = ebp; /* 0x4200986D: mov esp, ebp */
   8994     ebp = POP32_VAL(esp); /* 0x4200986F: pop ebp */
   8995     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x42009870: ret 0xc */
   8996     RECOMP_REGS_OUT();
   8997 }
   8998 
   8999 void sub_42009880(void) {
   9000     int _fpu_cmp = 0;
   9001     uint32_t _cf = 0;
   9002     int _df = 1;
   9003     uint32_t _flag_k = FK_NONE;
   9004     uint32_t _flag_a = 0, _flag_b = 0;
   9005     uint32_t _itail_tgt = 0;
   9006     RECOMP_REGS_LOCALS
   9007     RECOMP_ENTER(0x42009880u);
   9008 
   9009 L_42009880:
   9010     PUSH32(esp, ebp); /* 0x42009880: push ebp */
   9011     ebp = esp; /* 0x42009881: mov ebp, esp */
   9012     PUSH32(esp, ebx); /* 0x42009883: push ebx */
   9013     ebx = MEM32(ebp + 0x10); /* 0x42009884: mov ebx, dword ptr [ebp + 0x10] */
   9014     PUSH32(esp, esi); /* 0x42009887: push esi */
   9015     esi = MEM32(ebp + 0xC); /* 0x42009888: mov esi, dword ptr [ebp + 0xc] */
   9016     /* cmp esi, ebx */ /* 0x4200988B: cmp esi, ebx */
   9017     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   9018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9019     _flag_k = FK_CMP;
   9020     PUSH32(esp, edi); /* 0x4200988D: push edi */
   9021     edi = ecx; /* 0x4200988E: mov edi, ecx */
   9022     if (CMP_EQ(_flag_a, _flag_b)) goto L_420098B9; /* 0x42009890: je 0x420098b9 */
   9023 L_42009892:
   9024     eax = esi; /* 0x42009892: mov eax, esi */
   9025     ecx = MEM32(eax + 0x4); /* 0x42009894: mov ecx, dword ptr [eax + 4] */
   9026     edx = MEM32(eax); /* 0x42009897: mov edx, dword ptr [eax] */
   9027     esi = MEM32(esi); /* 0x42009899: mov esi, dword ptr [esi] */
   9028     MEM32(ecx) = edx; /* 0x4200989B: mov dword ptr [ecx], edx */
   9029     ecx = MEM32(eax); /* 0x4200989D: mov ecx, dword ptr [eax] */
   9030     edx = MEM32(eax + 0x4); /* 0x4200989F: mov edx, dword ptr [eax + 4] */
   9031     PUSH32(esp, eax); /* 0x420098A2: push eax */
   9032     MEM32(ecx + 0x4) = edx; /* 0x420098A3: mov dword ptr [ecx + 4], edx */
   9033     RECOMP_ICALL(0x42016DD0u); /* 0x420098A6: call 0x42016dd0 */ /* not lifted */
   9034     RECOMP_FLAGS_IN();
   9035     ecx = MEM32(edi + 0x8); /* 0x420098AB: mov ecx, dword ptr [edi + 8] */
   9036     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9037     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9038     esp = esp + 4; /* 0x420098AE: add esp, 4 */
   9039     _flag_k = FK_ADD;
   9040     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   9041     ecx = ecx - 1; /* 0x420098B1: dec ecx */
   9042     _flag_k = FK_DEC;
   9043     /* cmp esi, ebx */ /* 0x420098B2: cmp esi, ebx */
   9044     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   9045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9046     _flag_k = FK_CMP;
   9047     MEM32(edi + 0x8) = ecx; /* 0x420098B4: mov dword ptr [edi + 8], ecx */
   9048     RECOMP_BACKEDGE();
   9049     if (CMP_NE(_flag_a, _flag_b)) goto L_42009892; /* 0x420098B7: jne 0x42009892 */
   9050 L_420098B9:
   9051     eax = MEM32(ebp + 0x8); /* 0x420098B9: mov eax, dword ptr [ebp + 8] */
   9052     edi = POP32_VAL(esp); /* 0x420098BC: pop edi */
   9053     MEM32(eax) = esi; /* 0x420098BD: mov dword ptr [eax], esi */
   9054     esi = POP32_VAL(esp); /* 0x420098BF: pop esi */
   9055     ebx = POP32_VAL(esp); /* 0x420098C0: pop ebx */
   9056     ebp = POP32_VAL(esp); /* 0x420098C1: pop ebp */
   9057     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x420098C2: ret 0xc */
   9058     RECOMP_REGS_OUT();
   9059 }
   9060 
   9061 void sub_420098D0(void) {
   9062     int _fpu_cmp = 0;
   9063     uint32_t _cf = 0;
   9064     int _df = 1;
   9065     uint32_t _flag_k = FK_NONE;
   9066     uint32_t _flag_a = 0, _flag_b = 0;
   9067     uint32_t _itail_tgt = 0;
   9068     RECOMP_REGS_LOCALS
   9069     RECOMP_ENTER(0x420098D0u);
   9070 
   9071 L_420098D0:
   9072     PUSH32(esp, ebp); /* 0x420098D0: push ebp */
   9073     ebp = esp; /* 0x420098D1: mov ebp, esp */
   9074     PUSH32(esp, ecx); /* 0x420098D3: push ecx */
   9075     eax = MEM32(ebp + 0x10); /* 0x420098D4: mov eax, dword ptr [ebp + 0x10] */
   9076     PUSH32(esp, ebx); /* 0x420098D7: push ebx */
   9077     ebx = MEM32(ebp + 0xC); /* 0x420098D8: mov ebx, dword ptr [ebp + 0xc] */
   9078     /* cmp ebx, eax */ /* 0x420098DB: cmp ebx, eax */
   9079     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   9080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9081     _flag_k = FK_CMP;
   9082     MEM32(ebp + (-0x4)) = ecx; /* 0x420098DD: mov dword ptr [ebp - 4], ecx */
   9083     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009936; /* 0x420098E0: je 0x42009936 */
   9084 L_420098E2:
   9085     PUSH32(esp, esi); /* 0x420098E2: push esi */
   9086     esi = MEM32(ebp + 0x8); /* 0x420098E3: mov esi, dword ptr [ebp + 8] */
   9087     PUSH32(esp, edi); /* 0x420098E6: push edi */
   9088 L_420098E7:
   9089     edi = MEM32(esi + 0x4); /* 0x420098E7: mov edi, dword ptr [esi + 4] */
   9090     PUSH32(esp, 0x14u); /* 0x420098EA: push 0x14 */
   9091     RECOMP_ICALL(0x42016F36u); /* 0x420098EC: call 0x42016f36 */ /* not lifted */
   9092     RECOMP_FLAGS_IN();
   9093     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9094     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9095     esp = esp + 4; /* 0x420098F1: add esp, 4 */
   9096     _flag_k = FK_ADD;
   9097     /* test esi, esi */ /* 0x420098F4: test esi, esi */
   9098     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   9099     _cf = 0;
   9100     _flag_k = FK_TEST;
   9101     ecx = esi; /* 0x420098F6: mov ecx, esi */
   9102     if (TEST_NZ(_flag_a, _flag_b)) goto L_420098FC; /* 0x420098F8: jne 0x420098fc */
   9103 L_420098FA:
   9104     ecx = eax; /* 0x420098FA: mov ecx, eax */
   9105 L_420098FC:
   9106     /* test edi, edi */ /* 0x420098FC: test edi, edi */
   9107     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9108     _cf = 0;
   9109     _flag_k = FK_TEST;
   9110     MEM32(eax) = ecx; /* 0x420098FE: mov dword ptr [eax], ecx */
   9111     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009904; /* 0x42009900: jne 0x42009904 */
   9112 L_42009902:
   9113     edi = eax; /* 0x42009902: mov edi, eax */
   9114 L_42009904:
   9115     MEM32(eax + 0x4) = edi; /* 0x42009904: mov dword ptr [eax + 4], edi */
   9116     MEM32(esi + 0x4) = eax; /* 0x42009907: mov dword ptr [esi + 4], eax */
   9117     ecx = MEM32(eax + 0x4); /* 0x4200990A: mov ecx, dword ptr [eax + 4] */
   9118     MEM32(ecx) = eax; /* 0x4200990D: mov dword ptr [ecx], eax */
   9119     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   9120     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9121     eax = eax + 8; /* 0x4200990F: add eax, 8 */
   9122     _flag_k = FK_ADD;
   9123     /* test eax, eax */ /* 0x42009912: test eax, eax */
   9124     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9125     _cf = 0;
   9126     _flag_k = FK_TEST;
   9127     if (TEST_Z(_flag_a, _flag_b)) goto L_42009927; /* 0x42009914: je 0x42009927 */
   9128 L_42009916:
   9129     edx = MEM32(ebx + 0x8); /* 0x42009916: mov edx, dword ptr [ebx + 8] */
   9130     MEM32(eax) = edx; /* 0x42009919: mov dword ptr [eax], edx */
   9131     ecx = MEM32(ebx + 0xC); /* 0x4200991B: mov ecx, dword ptr [ebx + 0xc] */
   9132     MEM32(eax + 0x4) = ecx; /* 0x4200991E: mov dword ptr [eax + 4], ecx */
   9133     edx = MEM32(ebx + 0x10); /* 0x42009921: mov edx, dword ptr [ebx + 0x10] */
   9134     MEM32(eax + 0x8) = edx; /* 0x42009924: mov dword ptr [eax + 8], edx */
   9135 L_42009927:
   9136     eax = MEM32(ebp + (-0x4)); /* 0x42009927: mov eax, dword ptr [ebp - 4] */
   9137     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(1);
   9138     MEM32(eax + 0x8) = MEM32(eax + 0x8) + 1; /* 0x4200992A: inc dword ptr [eax + 8] */
   9139     _flag_k = FK_INC;
   9140     ebx = MEM32(ebx); /* 0x4200992D: mov ebx, dword ptr [ebx] */
   9141     /* cmp ebx, MEM32(ebp + 0x10) */ /* 0x4200992F: cmp ebx, dword ptr [ebp + 0x10] */
   9142     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0x10));
   9143     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9144     _flag_k = FK_CMP;
   9145     RECOMP_BACKEDGE();
   9146     if (CMP_NE(_flag_a, _flag_b)) goto L_420098E7; /* 0x42009932: jne 0x420098e7 */
   9147 L_42009934:
   9148     edi = POP32_VAL(esp); /* 0x42009934: pop edi */
   9149     esi = POP32_VAL(esp); /* 0x42009935: pop esi */
   9150 L_42009936:
   9151     ebx = POP32_VAL(esp); /* 0x42009936: pop ebx */
   9152     esp = ebp; /* 0x42009937: mov esp, ebp */
   9153     ebp = POP32_VAL(esp); /* 0x42009939: pop ebp */
   9154     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4200993A: ret 0xc */
   9155     RECOMP_REGS_OUT();
   9156 }
   9157 
   9158 void sub_42009940(void) {
   9159     int _fpu_cmp = 0;
   9160     uint32_t _cf = 0;
   9161     int _df = 1;
   9162     uint32_t _flag_k = FK_NONE;
   9163     uint32_t _flag_a = 0, _flag_b = 0;
   9164     uint32_t _itail_tgt = 0;
   9165     RECOMP_REGS_LOCALS
   9166     RECOMP_ENTER(0x42009940u);
   9167 
   9168 L_42009940:
   9169     PUSH32(esp, ebp); /* 0x42009940: push ebp */
   9170     ebp = esp; /* 0x42009941: mov ebp, esp */
   9171     PUSH32(esp, ebx); /* 0x42009943: push ebx */
   9172     ebx = MEM32(ebp + 0x10); /* 0x42009944: mov ebx, dword ptr [ebp + 0x10] */
   9173     PUSH32(esp, esi); /* 0x42009947: push esi */
   9174     esi = ecx; /* 0x42009948: mov esi, ecx */
   9175     eax = MEM32(esi + 0x10); /* 0x4200994A: mov eax, dword ptr [esi + 0x10] */
   9176     /* test eax, eax */ /* 0x4200994D: test eax, eax */
   9177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9178     _cf = 0;
   9179     _flag_k = FK_TEST;
   9180     ecx = MEM32(ebp + 0xC); /* 0x4200994F: mov ecx, dword ptr [ebp + 0xc] */
   9181     PUSH32(esp, edi); /* 0x42009952: push edi */
   9182     if (TEST_Z(_flag_a, _flag_b)) goto L_420099BD; /* 0x42009953: je 0x420099bd */
   9183 L_42009955:
   9184     eax = MEM32(esi + 0x4); /* 0x42009955: mov eax, dword ptr [esi + 4] */
   9185     /* cmp ecx, MEM32(eax) */ /* 0x42009958: cmp ecx, dword ptr [eax] */
   9186     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   9187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9188     _flag_k = FK_CMP;
   9189     if (CMP_NE(_flag_a, _flag_b)) goto L_420099BD; /* 0x4200995A: jne 0x420099bd */
   9190 L_4200995C:
   9191     /* cmp ebx, eax */ /* 0x4200995C: cmp ebx, eax */
   9192     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   9193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9194     _flag_k = FK_CMP;
   9195     if (CMP_NE(_flag_a, _flag_b)) goto L_420099BD; /* 0x4200995E: jne 0x420099bd */
   9196 L_42009960:
   9197     ebx = MEM32(eax + 0x4); /* 0x42009960: mov ebx, dword ptr [eax + 4] */
   9198     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x42009963: cmp ebx, dword ptr [esi + 8] */
   9199     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9201     _flag_k = FK_CMP;
   9202     edi = ebx; /* 0x42009966: mov edi, ebx */
   9203     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009991; /* 0x42009968: je 0x42009991 */
   9204 L_4200996A:
   9205     eax = MEM32(edi + 0x8); /* 0x4200996A: mov eax, dword ptr [edi + 8] */
   9206     PUSH32(esp, eax); /* 0x4200996D: push eax */
   9207     ecx = esi; /* 0x4200996E: mov ecx, esi */
   9208     RECOMP_ICALL(0x42009E50u); /* 0x42009970: call 0x42009e50 */ /* not lifted */
   9209     RECOMP_FLAGS_IN();
   9210     edi = MEM32(edi); /* 0x42009975: mov edi, dword ptr [edi] */
   9211     ecx = ebx + 0xC; /* 0x42009977: lea ecx, [ebx + 0xc] */
   9212     RECOMP_ICALL(0x4200A0F0u); /* 0x4200997A: call 0x4200a0f0 */ /* not lifted */
   9213     RECOMP_FLAGS_IN();
   9214     PUSH32(esp, ebx); /* 0x4200997F: push ebx */
   9215     RECOMP_ICALL(0x42016DD0u); /* 0x42009980: call 0x42016dd0 */ /* not lifted */
   9216     RECOMP_FLAGS_IN();
   9217     eax = MEM32(esi + 0x8); /* 0x42009985: mov eax, dword ptr [esi + 8] */
   9218     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9219     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9220     esp = esp + 4; /* 0x42009988: add esp, 4 */
   9221     _flag_k = FK_ADD;
   9222     /* cmp edi, eax */ /* 0x4200998B: cmp edi, eax */
   9223     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   9224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9225     _flag_k = FK_CMP;
   9226     ebx = edi; /* 0x4200998D: mov ebx, edi */
   9227     RECOMP_BACKEDGE();
   9228     if (CMP_NE(_flag_a, _flag_b)) goto L_4200996A; /* 0x4200998F: jne 0x4200996a */
   9229 L_42009991:
   9230     ecx = MEM32(esi + 0x4); /* 0x42009991: mov ecx, dword ptr [esi + 4] */
   9231     edx = MEM32(esi + 0x8); /* 0x42009994: mov edx, dword ptr [esi + 8] */
   9232     MEM32(ecx + 0x4) = edx; /* 0x42009997: mov dword ptr [ecx + 4], edx */
   9233     eax = MEM32(esi + 0x4); /* 0x4200999A: mov eax, dword ptr [esi + 4] */
   9234     MEM32(esi + 0x10) = 0; /* 0x4200999D: mov dword ptr [esi + 0x10], 0 */
   9235     MEM32(eax) = eax; /* 0x420099A4: mov dword ptr [eax], eax */
   9236     eax = MEM32(esi + 0x4); /* 0x420099A6: mov eax, dword ptr [esi + 4] */
   9237     MEM32(eax + 0x8) = eax; /* 0x420099A9: mov dword ptr [eax + 8], eax */
   9238     eax = MEM32(esi + 0x4); /* 0x420099AC: mov eax, dword ptr [esi + 4] */
   9239     ecx = MEM32(eax); /* 0x420099AF: mov ecx, dword ptr [eax] */
   9240     eax = MEM32(ebp + 0x8); /* 0x420099B1: mov eax, dword ptr [ebp + 8] */
   9241     edi = POP32_VAL(esp); /* 0x420099B4: pop edi */
   9242     esi = POP32_VAL(esp); /* 0x420099B5: pop esi */
   9243     MEM32(eax) = ecx; /* 0x420099B6: mov dword ptr [eax], ecx */
   9244     ebx = POP32_VAL(esp); /* 0x420099B8: pop ebx */
   9245     ebp = POP32_VAL(esp); /* 0x420099B9: pop ebp */
   9246     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x420099BA: ret 0xc */
   9247 L_420099BD:
   9248     /* cmp ecx, ebx */ /* 0x420099BD: cmp ecx, ebx */
   9249     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9251     _flag_k = FK_CMP;
   9252     if (CMP_EQ(_flag_a, _flag_b)) goto L_420099DE; /* 0x420099BF: je 0x420099de */
   9253 L_420099C1:
   9254     edi = ecx; /* 0x420099C1: mov edi, ecx */
   9255     ecx = ebp + 0xC; /* 0x420099C3: lea ecx, [ebp + 0xc] */
   9256     RECOMP_ICALL(0x42009EE0u); /* 0x420099C6: call 0x42009ee0 */ /* not lifted */
   9257     RECOMP_FLAGS_IN();
   9258     PUSH32(esp, edi); /* 0x420099CB: push edi */
   9259     ecx = ebp + 0x10; /* 0x420099CC: lea ecx, [ebp + 0x10] */
   9260     PUSH32(esp, ecx); /* 0x420099CF: push ecx */
   9261     ecx = esi; /* 0x420099D0: mov ecx, esi */
   9262     RECOMP_ICALL(0x420099F0u); /* 0x420099D2: call 0x420099f0 */ /* not lifted */
   9263     RECOMP_FLAGS_IN();
   9264     ecx = MEM32(ebp + 0xC); /* 0x420099D7: mov ecx, dword ptr [ebp + 0xc] */
   9265     /* cmp ecx, ebx */ /* 0x420099DA: cmp ecx, ebx */
   9266     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9268     _flag_k = FK_CMP;
   9269     RECOMP_BACKEDGE();
   9270     if (CMP_NE(_flag_a, _flag_b)) goto L_420099C1; /* 0x420099DC: jne 0x420099c1 */
   9271 L_420099DE:
   9272     eax = MEM32(ebp + 0x8); /* 0x420099DE: mov eax, dword ptr [ebp + 8] */
   9273     edi = POP32_VAL(esp); /* 0x420099E1: pop edi */
   9274     esi = POP32_VAL(esp); /* 0x420099E2: pop esi */
   9275     MEM32(eax) = ecx; /* 0x420099E3: mov dword ptr [eax], ecx */
   9276     ebx = POP32_VAL(esp); /* 0x420099E5: pop ebx */
   9277     ebp = POP32_VAL(esp); /* 0x420099E6: pop ebp */
   9278     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x420099E7: ret 0xc */
   9279     RECOMP_REGS_OUT();
   9280 }
   9281 
   9282 void sub_420099F0(void) {
   9283     int _fpu_cmp = 0;
   9284     uint32_t _cf = 0;
   9285     int _df = 1;
   9286     uint32_t _flag_k = FK_NONE;
   9287     uint32_t _flag_a = 0, _flag_b = 0;
   9288     uint32_t _itail_tgt = 0;
   9289     RECOMP_REGS_LOCALS
   9290     RECOMP_ENTER(0x420099F0u);
   9291 
   9292 L_420099F0:
   9293     PUSH32(esp, ebp); /* 0x420099F0: push ebp */
   9294     ebp = esp; /* 0x420099F1: mov ebp, esp */
   9295     PUSH32(esp, ecx); /* 0x420099F3: push ecx */
   9296     PUSH32(esp, ebx); /* 0x420099F4: push ebx */
   9297     PUSH32(esp, esi); /* 0x420099F5: push esi */
   9298     esi = MEM32(ebp + 0xC); /* 0x420099F6: mov esi, dword ptr [ebp + 0xc] */
   9299     PUSH32(esp, edi); /* 0x420099F9: push edi */
   9300     edi = ecx; /* 0x420099FA: mov edi, ecx */
   9301     ecx = ebp + 0xC; /* 0x420099FC: lea ecx, [ebp + 0xc] */
   9302     RECOMP_ICALL(0x42009EE0u); /* 0x420099FF: call 0x42009ee0 */ /* not lifted */
   9303     RECOMP_FLAGS_IN();
   9304     edx = MEM32(esi); /* 0x42009A04: mov edx, dword ptr [esi] */
   9305     eax = MEM32(edi + 0x8); /* 0x42009A06: mov eax, dword ptr [edi + 8] */
   9306     /* cmp edx, eax */ /* 0x42009A09: cmp edx, eax */
   9307     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   9308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9309     _flag_k = FK_CMP;
   9310     MEM32(ebp + (-0x4)) = esi; /* 0x42009A0B: mov dword ptr [ebp - 4], esi */
   9311     if (CMP_NE(_flag_a, _flag_b)) goto L_42009A30; /* 0x42009A0E: jne 0x42009a30 */
   9312 L_42009A10:
   9313     eax = MEM32(esi + 0x8); /* 0x42009A10: mov eax, dword ptr [esi + 8] */
   9314 L_42009A13:
   9315     ecx = MEM32(ebp + (-0x4)); /* 0x42009A13: mov ecx, dword ptr [ebp - 4] */
   9316     edx = MEM32(ecx + 0x4); /* 0x42009A16: mov edx, dword ptr [ecx + 4] */
   9317     MEM32(eax + 0x4) = edx; /* 0x42009A19: mov dword ptr [eax + 4], edx */
   9318     ecx = MEM32(edi + 0x4); /* 0x42009A1C: mov ecx, dword ptr [edi + 4] */
   9319     /* cmp MEM32(ecx + 0x4), esi */ /* 0x42009A1F: cmp dword ptr [ecx + 4], esi */
   9320     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi);
   9321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9322     _flag_k = FK_CMP;
   9323     if (CMP_NE(_flag_a, _flag_b)) goto L_42009AB3; /* 0x42009A22: jne 0x42009ab3 */
   9324 L_42009A28:
   9325     MEM32(ecx + 0x4) = eax; /* 0x42009A28: mov dword ptr [ecx + 4], eax */
   9326     goto L_42009AC1; /* 0x42009A2B: jmp 0x42009ac1 */
   9327 L_42009A30:
   9328     ecx = MEM32(esi + 0x8); /* 0x42009A30: mov ecx, dword ptr [esi + 8] */
   9329     /* cmp ecx, eax */ /* 0x42009A33: cmp ecx, eax */
   9330     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   9331     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9332     _flag_k = FK_CMP;
   9333     if (CMP_NE(_flag_a, _flag_b)) goto L_42009A3B; /* 0x42009A35: jne 0x42009a3b */
   9334 L_42009A37:
   9335     eax = edx; /* 0x42009A37: mov eax, edx */
   9336     RECOMP_BACKEDGE();
   9337     goto L_42009A13; /* 0x42009A39: jmp 0x42009a13 */
   9338 L_42009A3B:
   9339     eax = MEM32(ecx); /* 0x42009A3B: mov eax, dword ptr [ecx] */
   9340     SET_LO8(ebx, MEM8(eax + 0x5D)); /* 0x42009A3D: mov bl, byte ptr [eax + 0x5d] */
   9341     /* test LO8(ebx), LO8(ebx) */ /* 0x42009A40: test bl, bl */
   9342     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9343     _cf = 0;
   9344     _flag_k = FK_NARROW(FK_TEST, 24);
   9345     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009A4F; /* 0x42009A42: jne 0x42009a4f */
   9346 L_42009A44:
   9347     ecx = eax; /* 0x42009A44: mov ecx, eax */
   9348     eax = MEM32(ecx); /* 0x42009A46: mov eax, dword ptr [ecx] */
   9349     SET_LO8(ebx, MEM8(eax + 0x5D)); /* 0x42009A48: mov bl, byte ptr [eax + 0x5d] */
   9350     /* test LO8(ebx), LO8(ebx) */ /* 0x42009A4B: test bl, bl */
   9351     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9352     _cf = 0;
   9353     _flag_k = FK_NARROW(FK_TEST, 24);
   9354     RECOMP_BACKEDGE();
   9355     if (TEST_Z(_flag_a, _flag_b)) goto L_42009A44; /* 0x42009A4D: je 0x42009a44 */
   9356 L_42009A4F:
   9357     /* cmp ecx, esi */ /* 0x42009A4F: cmp ecx, esi */
   9358     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   9359     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9360     _flag_k = FK_CMP;
   9361     eax = MEM32(ecx + 0x8); /* 0x42009A51: mov eax, dword ptr [ecx + 8] */
   9362     MEM32(ebp + (-0x4)) = ecx; /* 0x42009A54: mov dword ptr [ebp - 4], ecx */
   9363     RECOMP_BACKEDGE();
   9364     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009A13; /* 0x42009A57: je 0x42009a13 */
   9365 L_42009A59:
   9366     MEM32(edx + 0x4) = ecx; /* 0x42009A59: mov dword ptr [edx + 4], ecx */
   9367     edx = MEM32(esi); /* 0x42009A5C: mov edx, dword ptr [esi] */
   9368     MEM32(ecx) = edx; /* 0x42009A5E: mov dword ptr [ecx], edx */
   9369     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009A60: cmp ecx, dword ptr [esi + 8] */
   9370     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9372     _flag_k = FK_CMP;
   9373     if (CMP_NE(_flag_a, _flag_b)) goto L_42009A6A; /* 0x42009A63: jne 0x42009a6a */
   9374 L_42009A65:
   9375     MEM32(eax + 0x4) = ecx; /* 0x42009A65: mov dword ptr [eax + 4], ecx */
   9376     goto L_42009A81; /* 0x42009A68: jmp 0x42009a81 */
   9377 L_42009A6A:
   9378     edx = MEM32(ecx + 0x4); /* 0x42009A6A: mov edx, dword ptr [ecx + 4] */
   9379     MEM32(eax + 0x4) = edx; /* 0x42009A6D: mov dword ptr [eax + 4], edx */
   9380     edx = MEM32(ecx + 0x4); /* 0x42009A70: mov edx, dword ptr [ecx + 4] */
   9381     MEM32(edx) = eax; /* 0x42009A73: mov dword ptr [edx], eax */
   9382     edx = MEM32(esi + 0x8); /* 0x42009A75: mov edx, dword ptr [esi + 8] */
   9383     MEM32(ecx + 0x8) = edx; /* 0x42009A78: mov dword ptr [ecx + 8], edx */
   9384     edx = MEM32(esi + 0x8); /* 0x42009A7B: mov edx, dword ptr [esi + 8] */
   9385     MEM32(edx + 0x4) = ecx; /* 0x42009A7E: mov dword ptr [edx + 4], ecx */
   9386 L_42009A81:
   9387     edx = MEM32(edi + 0x4); /* 0x42009A81: mov edx, dword ptr [edi + 4] */
   9388     /* cmp MEM32(edx + 0x4), esi */ /* 0x42009A84: cmp dword ptr [edx + 4], esi */
   9389     _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi);
   9390     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9391     _flag_k = FK_CMP;
   9392     if (CMP_NE(_flag_a, _flag_b)) goto L_42009A8E; /* 0x42009A87: jne 0x42009a8e */
   9393 L_42009A89:
   9394     MEM32(edx + 0x4) = ecx; /* 0x42009A89: mov dword ptr [edx + 4], ecx */
   9395     goto L_42009A9C; /* 0x42009A8C: jmp 0x42009a9c */
   9396 L_42009A8E:
   9397     edx = MEM32(esi + 0x4); /* 0x42009A8E: mov edx, dword ptr [esi + 4] */
   9398     /* cmp MEM32(edx), esi */ /* 0x42009A91: cmp dword ptr [edx], esi */
   9399     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi);
   9400     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9401     _flag_k = FK_CMP;
   9402     if (CMP_NE(_flag_a, _flag_b)) goto L_42009A99; /* 0x42009A93: jne 0x42009a99 */
   9403 L_42009A95:
   9404     MEM32(edx) = ecx; /* 0x42009A95: mov dword ptr [edx], ecx */
   9405     goto L_42009A9C; /* 0x42009A97: jmp 0x42009a9c */
   9406 L_42009A99:
   9407     MEM32(edx + 0x8) = ecx; /* 0x42009A99: mov dword ptr [edx + 8], ecx */
   9408 L_42009A9C:
   9409     edx = MEM32(esi + 0x4); /* 0x42009A9C: mov edx, dword ptr [esi + 4] */
   9410     MEM32(ecx + 0x4) = edx; /* 0x42009A9F: mov dword ptr [ecx + 4], edx */
   9411     SET_LO8(ebx, MEM8(esi + 0x5C)); /* 0x42009AA2: mov bl, byte ptr [esi + 0x5c] */
   9412     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009AA5: mov dl, byte ptr [ecx + 0x5c] */
   9413     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009AA8: mov byte ptr [ecx + 0x5c], bl */
   9414     MEM8(esi + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009AAB: mov byte ptr [esi + 0x5c], dl */
   9415     MEM32(ebp + (-0x4)) = esi; /* 0x42009AAE: mov dword ptr [ebp - 4], esi */
   9416     goto L_42009B18; /* 0x42009AB1: jmp 0x42009b18 */
   9417 L_42009AB3:
   9418     ecx = MEM32(esi + 0x4); /* 0x42009AB3: mov ecx, dword ptr [esi + 4] */
   9419     /* cmp MEM32(ecx), esi */ /* 0x42009AB6: cmp dword ptr [ecx], esi */
   9420     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi);
   9421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9422     _flag_k = FK_CMP;
   9423     if (CMP_NE(_flag_a, _flag_b)) goto L_42009ABE; /* 0x42009AB8: jne 0x42009abe */
   9424 L_42009ABA:
   9425     MEM32(ecx) = eax; /* 0x42009ABA: mov dword ptr [ecx], eax */
   9426     goto L_42009AC1; /* 0x42009ABC: jmp 0x42009ac1 */
   9427 L_42009ABE:
   9428     MEM32(ecx + 0x8) = eax; /* 0x42009ABE: mov dword ptr [ecx + 8], eax */
   9429 L_42009AC1:
   9430     ebx = MEM32(edi + 0x4); /* 0x42009AC1: mov ebx, dword ptr [edi + 4] */
   9431     /* cmp MEM32(ebx), esi */ /* 0x42009AC4: cmp dword ptr [ebx], esi */
   9432     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi);
   9433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9434     _flag_k = FK_CMP;
   9435     if (CMP_NE(_flag_a, _flag_b)) goto L_42009AEB; /* 0x42009AC6: jne 0x42009aeb */
   9436 L_42009AC8:
   9437     ecx = MEM32(esi + 0x8); /* 0x42009AC8: mov ecx, dword ptr [esi + 8] */
   9438     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x42009ACB: cmp ecx, dword ptr [edi + 8] */
   9439     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9441     _flag_k = FK_CMP;
   9442     if (CMP_NE(_flag_a, _flag_b)) goto L_42009AD5; /* 0x42009ACE: jne 0x42009ad5 */
   9443 L_42009AD0:
   9444     edx = MEM32(esi + 0x4); /* 0x42009AD0: mov edx, dword ptr [esi + 4] */
   9445     goto L_42009AE9; /* 0x42009AD3: jmp 0x42009ae9 */
   9446 L_42009AD5:
   9447     ecx = MEM32(eax); /* 0x42009AD5: mov ecx, dword ptr [eax] */
   9448     /* cmp MEM8(ecx + 0x5D), 0 */ /* 0x42009AD7: cmp byte ptr [ecx + 0x5d], 0 */
   9449     _flag_a = (uint32_t)(MEM8(ecx + 0x5D)) << 24; _flag_b = (uint32_t)(0) << 24;
   9450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9451     _flag_k = FK_NARROW(FK_CMP, 24);
   9452     edx = eax; /* 0x42009ADB: mov edx, eax */
   9453     if (CMP_NE(_flag_a, _flag_b)) goto L_42009AE9; /* 0x42009ADD: jne 0x42009ae9 */
   9454 L_42009ADF:
   9455     edx = ecx; /* 0x42009ADF: mov edx, ecx */
   9456     ecx = MEM32(edx); /* 0x42009AE1: mov ecx, dword ptr [edx] */
   9457     /* cmp MEM8(ecx + 0x5D), 0 */ /* 0x42009AE3: cmp byte ptr [ecx + 0x5d], 0 */
   9458     _flag_a = (uint32_t)(MEM8(ecx + 0x5D)) << 24; _flag_b = (uint32_t)(0) << 24;
   9459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9460     _flag_k = FK_NARROW(FK_CMP, 24);
   9461     RECOMP_BACKEDGE();
   9462     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009ADF; /* 0x42009AE7: je 0x42009adf */
   9463 L_42009AE9:
   9464     MEM32(ebx) = edx; /* 0x42009AE9: mov dword ptr [ebx], edx */
   9465 L_42009AEB:
   9466     ebx = MEM32(edi + 0x4); /* 0x42009AEB: mov ebx, dword ptr [edi + 4] */
   9467     /* cmp MEM32(ebx + 0x8), esi */ /* 0x42009AEE: cmp dword ptr [ebx + 8], esi */
   9468     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   9469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9470     _flag_k = FK_CMP;
   9471     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B18; /* 0x42009AF1: jne 0x42009b18 */
   9472 L_42009AF3:
   9473     ecx = MEM32(esi); /* 0x42009AF3: mov ecx, dword ptr [esi] */
   9474     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x42009AF5: cmp ecx, dword ptr [edi + 8] */
   9475     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9477     _flag_k = FK_CMP;
   9478     if (CMP_NE(_flag_a, _flag_b)) goto L_42009AFF; /* 0x42009AF8: jne 0x42009aff */
   9479 L_42009AFA:
   9480     edx = MEM32(esi + 0x4); /* 0x42009AFA: mov edx, dword ptr [esi + 4] */
   9481     goto L_42009B15; /* 0x42009AFD: jmp 0x42009b15 */
   9482 L_42009AFF:
   9483     ecx = MEM32(eax + 0x8); /* 0x42009AFF: mov ecx, dword ptr [eax + 8] */
   9484     /* cmp MEM8(ecx + 0x5D), 0 */ /* 0x42009B02: cmp byte ptr [ecx + 0x5d], 0 */
   9485     _flag_a = (uint32_t)(MEM8(ecx + 0x5D)) << 24; _flag_b = (uint32_t)(0) << 24;
   9486     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9487     _flag_k = FK_NARROW(FK_CMP, 24);
   9488     edx = eax; /* 0x42009B06: mov edx, eax */
   9489     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B15; /* 0x42009B08: jne 0x42009b15 */
   9490 L_42009B0A:
   9491     edx = ecx; /* 0x42009B0A: mov edx, ecx */
   9492     ecx = MEM32(edx + 0x8); /* 0x42009B0C: mov ecx, dword ptr [edx + 8] */
   9493     /* cmp MEM8(ecx + 0x5D), 0 */ /* 0x42009B0F: cmp byte ptr [ecx + 0x5d], 0 */
   9494     _flag_a = (uint32_t)(MEM8(ecx + 0x5D)) << 24; _flag_b = (uint32_t)(0) << 24;
   9495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9496     _flag_k = FK_NARROW(FK_CMP, 24);
   9497     RECOMP_BACKEDGE();
   9498     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009B0A; /* 0x42009B13: je 0x42009b0a */
   9499 L_42009B15:
   9500     MEM32(ebx + 0x8) = edx; /* 0x42009B15: mov dword ptr [ebx + 8], edx */
   9501 L_42009B18:
   9502     esi = MEM32(ebp + (-0x4)); /* 0x42009B18: mov esi, dword ptr [ebp - 4] */
   9503     SET_LO8(ecx, MEM8(esi + 0x5C)); /* 0x42009B1B: mov cl, byte ptr [esi + 0x5c] */
   9504     SET_LO8(ebx, 1); /* 0x42009B1E: mov bl, 1 */
   9505     /* cmp LO8(ecx), LO8(ebx) */ /* 0x42009B20: cmp cl, bl */
   9506     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9508     _flag_k = FK_NARROW(FK_CMP, 24);
   9509     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D88; /* 0x42009B22: jne 0x42009d88 */
   9510 L_42009B28:
   9511     ecx = MEM32(edi + 0x4); /* 0x42009B28: mov ecx, dword ptr [edi + 4] */
   9512     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x42009B2B: cmp eax, dword ptr [ecx + 4] */
   9513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9515     _flag_k = FK_CMP;
   9516     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D82; /* 0x42009B2E: je 0x42009d82 */
   9517 L_42009B34:
   9518     /* cmp MEM8(eax + 0x5C), LO8(ebx) */ /* 0x42009B34: cmp byte ptr [eax + 0x5c], bl */
   9519     _flag_a = (uint32_t)(MEM8(eax + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9521     _flag_k = FK_NARROW(FK_CMP, 24);
   9522     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D82; /* 0x42009B37: jne 0x42009d82 */
   9523 L_42009B3D:
   9524     edx = MEM32(eax + 0x4); /* 0x42009B3D: mov edx, dword ptr [eax + 4] */
   9525     ecx = MEM32(edx); /* 0x42009B40: mov ecx, dword ptr [edx] */
   9526     /* cmp eax, ecx */ /* 0x42009B42: cmp eax, ecx */
   9527     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9529     _flag_k = FK_CMP;
   9530     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BB4; /* 0x42009B44: jne 0x42009bb4 */
   9531 L_42009B46:
   9532     ecx = MEM32(edx + 0x8); /* 0x42009B46: mov ecx, dword ptr [edx + 8] */
   9533     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009B49: mov dl, byte ptr [ecx + 0x5c] */
   9534     /* test LO8(edx), LO8(edx) */ /* 0x42009B4C: test dl, dl */
   9535     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9536     _cf = 0;
   9537     _flag_k = FK_NARROW(FK_TEST, 24);
   9538     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009B9B; /* 0x42009B4E: jne 0x42009b9b */
   9539 L_42009B50:
   9540     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009B50: mov byte ptr [ecx + 0x5c], bl */
   9541     edx = MEM32(eax + 0x4); /* 0x42009B53: mov edx, dword ptr [eax + 4] */
   9542     MEM8(edx + 0x5C) = (uint8_t)(0); /* 0x42009B56: mov byte ptr [edx + 0x5c], 0 */
   9543     ecx = MEM32(eax + 0x4); /* 0x42009B5A: mov ecx, dword ptr [eax + 4] */
   9544     edx = MEM32(ecx + 0x8); /* 0x42009B5D: mov edx, dword ptr [ecx + 8] */
   9545     esi = MEM32(edx); /* 0x42009B60: mov esi, dword ptr [edx] */
   9546     MEM32(ecx + 0x8) = esi; /* 0x42009B62: mov dword ptr [ecx + 8], esi */
   9547     esi = MEM32(edx); /* 0x42009B65: mov esi, dword ptr [edx] */
   9548     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009B67: cmp esi, dword ptr [edi + 8] */
   9549     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9551     _flag_k = FK_CMP;
   9552     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009B6F; /* 0x42009B6A: je 0x42009b6f */
   9553 L_42009B6C:
   9554     MEM32(esi + 0x4) = ecx; /* 0x42009B6C: mov dword ptr [esi + 4], ecx */
   9555 L_42009B6F:
   9556     esi = MEM32(ecx + 0x4); /* 0x42009B6F: mov esi, dword ptr [ecx + 4] */
   9557     MEM32(edx + 0x4) = esi; /* 0x42009B72: mov dword ptr [edx + 4], esi */
   9558     esi = MEM32(edi + 0x4); /* 0x42009B75: mov esi, dword ptr [edi + 4] */
   9559     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009B78: cmp ecx, dword ptr [esi + 4] */
   9560     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9561     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9562     _flag_k = FK_CMP;
   9563     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B82; /* 0x42009B7B: jne 0x42009b82 */
   9564 L_42009B7D:
   9565     MEM32(esi + 0x4) = edx; /* 0x42009B7D: mov dword ptr [esi + 4], edx */
   9566     goto L_42009B90; /* 0x42009B80: jmp 0x42009b90 */
   9567 L_42009B82:
   9568     esi = MEM32(ecx + 0x4); /* 0x42009B82: mov esi, dword ptr [ecx + 4] */
   9569     /* cmp ecx, MEM32(esi) */ /* 0x42009B85: cmp ecx, dword ptr [esi] */
   9570     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   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_42009B8D; /* 0x42009B87: jne 0x42009b8d */
   9574 L_42009B89:
   9575     MEM32(esi) = edx; /* 0x42009B89: mov dword ptr [esi], edx */
   9576     goto L_42009B90; /* 0x42009B8B: jmp 0x42009b90 */
   9577 L_42009B8D:
   9578     MEM32(esi + 0x8) = edx; /* 0x42009B8D: mov dword ptr [esi + 8], edx */
   9579 L_42009B90:
   9580     MEM32(edx) = ecx; /* 0x42009B90: mov dword ptr [edx], ecx */
   9581     MEM32(ecx + 0x4) = edx; /* 0x42009B92: mov dword ptr [ecx + 4], edx */
   9582     ecx = MEM32(eax + 0x4); /* 0x42009B95: mov ecx, dword ptr [eax + 4] */
   9583     ecx = MEM32(ecx + 0x8); /* 0x42009B98: mov ecx, dword ptr [ecx + 8] */
   9584 L_42009B9B:
   9585     edx = MEM32(ecx); /* 0x42009B9B: mov edx, dword ptr [ecx] */
   9586     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009B9D: cmp byte ptr [edx + 0x5c], bl */
   9587     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9589     _flag_k = FK_NARROW(FK_CMP, 24);
   9590     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C36; /* 0x42009BA0: jne 0x42009c36 */
   9591 L_42009BA6:
   9592     edx = MEM32(ecx + 0x8); /* 0x42009BA6: mov edx, dword ptr [ecx + 8] */
   9593     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009BA9: cmp byte ptr [edx + 0x5c], bl */
   9594     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9596     _flag_k = FK_NARROW(FK_CMP, 24);
   9597     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C36; /* 0x42009BAC: jne 0x42009c36 */
   9598 L_42009BB2:
   9599     goto L_42009C1E; /* 0x42009BB2: jmp 0x42009c1e */
   9600 L_42009BB4:
   9601     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009BB4: mov dl, byte ptr [ecx + 0x5c] */
   9602     /* test LO8(edx), LO8(edx) */ /* 0x42009BB7: test dl, dl */
   9603     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9604     _cf = 0;
   9605     _flag_k = FK_NARROW(FK_TEST, 24);
   9606     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009C07; /* 0x42009BB9: jne 0x42009c07 */
   9607 L_42009BBB:
   9608     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009BBB: mov byte ptr [ecx + 0x5c], bl */
   9609     ecx = MEM32(eax + 0x4); /* 0x42009BBE: mov ecx, dword ptr [eax + 4] */
   9610     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009BC1: mov byte ptr [ecx + 0x5c], 0 */
   9611     ecx = MEM32(eax + 0x4); /* 0x42009BC5: mov ecx, dword ptr [eax + 4] */
   9612     edx = MEM32(ecx); /* 0x42009BC8: mov edx, dword ptr [ecx] */
   9613     esi = MEM32(edx + 0x8); /* 0x42009BCA: mov esi, dword ptr [edx + 8] */
   9614     MEM32(ecx) = esi; /* 0x42009BCD: mov dword ptr [ecx], esi */
   9615     esi = MEM32(edx + 0x8); /* 0x42009BCF: mov esi, dword ptr [edx + 8] */
   9616     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009BD2: cmp esi, dword ptr [edi + 8] */
   9617     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9619     _flag_k = FK_CMP;
   9620     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009BDA; /* 0x42009BD5: je 0x42009bda */
   9621 L_42009BD7:
   9622     MEM32(esi + 0x4) = ecx; /* 0x42009BD7: mov dword ptr [esi + 4], ecx */
   9623 L_42009BDA:
   9624     esi = MEM32(ecx + 0x4); /* 0x42009BDA: mov esi, dword ptr [ecx + 4] */
   9625     MEM32(edx + 0x4) = esi; /* 0x42009BDD: mov dword ptr [edx + 4], esi */
   9626     esi = MEM32(edi + 0x4); /* 0x42009BE0: mov esi, dword ptr [edi + 4] */
   9627     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009BE3: cmp ecx, dword ptr [esi + 4] */
   9628     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9630     _flag_k = FK_CMP;
   9631     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BED; /* 0x42009BE6: jne 0x42009bed */
   9632 L_42009BE8:
   9633     MEM32(esi + 0x4) = edx; /* 0x42009BE8: mov dword ptr [esi + 4], edx */
   9634     goto L_42009BFC; /* 0x42009BEB: jmp 0x42009bfc */
   9635 L_42009BED:
   9636     esi = MEM32(ecx + 0x4); /* 0x42009BED: mov esi, dword ptr [ecx + 4] */
   9637     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009BF0: cmp ecx, dword ptr [esi + 8] */
   9638     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9640     _flag_k = FK_CMP;
   9641     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BFA; /* 0x42009BF3: jne 0x42009bfa */
   9642 L_42009BF5:
   9643     MEM32(esi + 0x8) = edx; /* 0x42009BF5: mov dword ptr [esi + 8], edx */
   9644     goto L_42009BFC; /* 0x42009BF8: jmp 0x42009bfc */
   9645 L_42009BFA:
   9646     MEM32(esi) = edx; /* 0x42009BFA: mov dword ptr [esi], edx */
   9647 L_42009BFC:
   9648     MEM32(edx + 0x8) = ecx; /* 0x42009BFC: mov dword ptr [edx + 8], ecx */
   9649     MEM32(ecx + 0x4) = edx; /* 0x42009BFF: mov dword ptr [ecx + 4], edx */
   9650     edx = MEM32(eax + 0x4); /* 0x42009C02: mov edx, dword ptr [eax + 4] */
   9651     ecx = MEM32(edx); /* 0x42009C05: mov ecx, dword ptr [edx] */
   9652 L_42009C07:
   9653     edx = MEM32(ecx + 0x8); /* 0x42009C07: mov edx, dword ptr [ecx + 8] */
   9654     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C0A: cmp byte ptr [edx + 0x5c], bl */
   9655     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9657     _flag_k = FK_NARROW(FK_CMP, 24);
   9658     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CE3; /* 0x42009C0D: jne 0x42009ce3 */
   9659 L_42009C13:
   9660     edx = MEM32(ecx); /* 0x42009C13: mov edx, dword ptr [ecx] */
   9661     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C15: cmp byte ptr [edx + 0x5c], bl */
   9662     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9664     _flag_k = FK_NARROW(FK_CMP, 24);
   9665     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CE3; /* 0x42009C18: jne 0x42009ce3 */
   9666 L_42009C1E:
   9667     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009C1E: mov byte ptr [ecx + 0x5c], 0 */
   9668     ecx = MEM32(edi + 0x4); /* 0x42009C22: mov ecx, dword ptr [edi + 4] */
   9669     eax = MEM32(eax + 0x4); /* 0x42009C25: mov eax, dword ptr [eax + 4] */
   9670     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x42009C28: cmp eax, dword ptr [ecx + 4] */
   9671     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9673     _flag_k = FK_CMP;
   9674     RECOMP_BACKEDGE();
   9675     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B34; /* 0x42009C2B: jne 0x42009b34 */
   9676 L_42009C31:
   9677     goto L_42009D82; /* 0x42009C31: jmp 0x42009d82 */
   9678 L_42009C36:
   9679     edx = MEM32(ecx + 0x8); /* 0x42009C36: mov edx, dword ptr [ecx + 8] */
   9680     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C39: cmp byte ptr [edx + 0x5c], bl */
   9681     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9683     _flag_k = FK_NARROW(FK_CMP, 24);
   9684     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C87; /* 0x42009C3C: jne 0x42009c87 */
   9685 L_42009C3E:
   9686     edx = MEM32(ecx); /* 0x42009C3E: mov edx, dword ptr [ecx] */
   9687     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C40: mov byte ptr [edx + 0x5c], bl */
   9688     edx = MEM32(ecx); /* 0x42009C43: mov edx, dword ptr [ecx] */
   9689     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009C45: mov byte ptr [ecx + 0x5c], 0 */
   9690     esi = MEM32(edx + 0x8); /* 0x42009C49: mov esi, dword ptr [edx + 8] */
   9691     MEM32(ecx) = esi; /* 0x42009C4C: mov dword ptr [ecx], esi */
   9692     esi = MEM32(edx + 0x8); /* 0x42009C4E: mov esi, dword ptr [edx + 8] */
   9693     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009C51: cmp esi, dword ptr [edi + 8] */
   9694     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9696     _flag_k = FK_CMP;
   9697     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009C59; /* 0x42009C54: je 0x42009c59 */
   9698 L_42009C56:
   9699     MEM32(esi + 0x4) = ecx; /* 0x42009C56: mov dword ptr [esi + 4], ecx */
   9700 L_42009C59:
   9701     esi = MEM32(ecx + 0x4); /* 0x42009C59: mov esi, dword ptr [ecx + 4] */
   9702     MEM32(edx + 0x4) = esi; /* 0x42009C5C: mov dword ptr [edx + 4], esi */
   9703     esi = MEM32(edi + 0x4); /* 0x42009C5F: mov esi, dword ptr [edi + 4] */
   9704     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009C62: cmp ecx, dword ptr [esi + 4] */
   9705     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9707     _flag_k = FK_CMP;
   9708     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C6C; /* 0x42009C65: jne 0x42009c6c */
   9709 L_42009C67:
   9710     MEM32(esi + 0x4) = edx; /* 0x42009C67: mov dword ptr [esi + 4], edx */
   9711     goto L_42009C7B; /* 0x42009C6A: jmp 0x42009c7b */
   9712 L_42009C6C:
   9713     esi = MEM32(ecx + 0x4); /* 0x42009C6C: mov esi, dword ptr [ecx + 4] */
   9714     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009C6F: cmp ecx, dword ptr [esi + 8] */
   9715     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9717     _flag_k = FK_CMP;
   9718     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C79; /* 0x42009C72: jne 0x42009c79 */
   9719 L_42009C74:
   9720     MEM32(esi + 0x8) = edx; /* 0x42009C74: mov dword ptr [esi + 8], edx */
   9721     goto L_42009C7B; /* 0x42009C77: jmp 0x42009c7b */
   9722 L_42009C79:
   9723     MEM32(esi) = edx; /* 0x42009C79: mov dword ptr [esi], edx */
   9724 L_42009C7B:
   9725     MEM32(edx + 0x8) = ecx; /* 0x42009C7B: mov dword ptr [edx + 8], ecx */
   9726     MEM32(ecx + 0x4) = edx; /* 0x42009C7E: mov dword ptr [ecx + 4], edx */
   9727     ecx = MEM32(eax + 0x4); /* 0x42009C81: mov ecx, dword ptr [eax + 4] */
   9728     ecx = MEM32(ecx + 0x8); /* 0x42009C84: mov ecx, dword ptr [ecx + 8] */
   9729 L_42009C87:
   9730     edx = MEM32(eax + 0x4); /* 0x42009C87: mov edx, dword ptr [eax + 4] */
   9731     SET_LO8(edx, MEM8(edx + 0x5C)); /* 0x42009C8A: mov dl, byte ptr [edx + 0x5c] */
   9732     MEM8(ecx + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009C8D: mov byte ptr [ecx + 0x5c], dl */
   9733     edx = MEM32(eax + 0x4); /* 0x42009C90: mov edx, dword ptr [eax + 4] */
   9734     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C93: mov byte ptr [edx + 0x5c], bl */
   9735     ecx = MEM32(ecx + 0x8); /* 0x42009C96: mov ecx, dword ptr [ecx + 8] */
   9736     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C99: mov byte ptr [ecx + 0x5c], bl */
   9737     ecx = MEM32(eax + 0x4); /* 0x42009C9C: mov ecx, dword ptr [eax + 4] */
   9738     edx = MEM32(ecx + 0x8); /* 0x42009C9F: mov edx, dword ptr [ecx + 8] */
   9739     esi = MEM32(edx); /* 0x42009CA2: mov esi, dword ptr [edx] */
   9740     MEM32(ecx + 0x8) = esi; /* 0x42009CA4: mov dword ptr [ecx + 8], esi */
   9741     esi = MEM32(edx); /* 0x42009CA7: mov esi, dword ptr [edx] */
   9742     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009CA9: cmp esi, dword ptr [edi + 8] */
   9743     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9745     _flag_k = FK_CMP;
   9746     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009CB1; /* 0x42009CAC: je 0x42009cb1 */
   9747 L_42009CAE:
   9748     MEM32(esi + 0x4) = ecx; /* 0x42009CAE: mov dword ptr [esi + 4], ecx */
   9749 L_42009CB1:
   9750     esi = MEM32(ecx + 0x4); /* 0x42009CB1: mov esi, dword ptr [ecx + 4] */
   9751     MEM32(edx + 0x4) = esi; /* 0x42009CB4: mov dword ptr [edx + 4], esi */
   9752     esi = MEM32(edi + 0x4); /* 0x42009CB7: mov esi, dword ptr [edi + 4] */
   9753     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009CBA: cmp ecx, dword ptr [esi + 4] */
   9754     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9756     _flag_k = FK_CMP;
   9757     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CC9; /* 0x42009CBD: jne 0x42009cc9 */
   9758 L_42009CBF:
   9759     MEM32(esi + 0x4) = edx; /* 0x42009CBF: mov dword ptr [esi + 4], edx */
   9760     MEM32(edx) = ecx; /* 0x42009CC2: mov dword ptr [edx], ecx */
   9761     goto L_42009D7F; /* 0x42009CC4: jmp 0x42009d7f */
   9762 L_42009CC9:
   9763     esi = MEM32(ecx + 0x4); /* 0x42009CC9: mov esi, dword ptr [ecx + 4] */
   9764     /* cmp ecx, MEM32(esi) */ /* 0x42009CCC: cmp ecx, dword ptr [esi] */
   9765     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9767     _flag_k = FK_CMP;
   9768     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CD9; /* 0x42009CCE: jne 0x42009cd9 */
   9769 L_42009CD0:
   9770     MEM32(esi) = edx; /* 0x42009CD0: mov dword ptr [esi], edx */
   9771     MEM32(edx) = ecx; /* 0x42009CD2: mov dword ptr [edx], ecx */
   9772     goto L_42009D7F; /* 0x42009CD4: jmp 0x42009d7f */
   9773 L_42009CD9:
   9774     MEM32(esi + 0x8) = edx; /* 0x42009CD9: mov dword ptr [esi + 8], edx */
   9775     MEM32(edx) = ecx; /* 0x42009CDC: mov dword ptr [edx], ecx */
   9776     goto L_42009D7F; /* 0x42009CDE: jmp 0x42009d7f */
   9777 L_42009CE3:
   9778     edx = MEM32(ecx); /* 0x42009CE3: mov edx, dword ptr [ecx] */
   9779     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009CE5: cmp byte ptr [edx + 0x5c], bl */
   9780     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9782     _flag_k = FK_NARROW(FK_CMP, 24);
   9783     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D31; /* 0x42009CE8: jne 0x42009d31 */
   9784 L_42009CEA:
   9785     edx = MEM32(ecx + 0x8); /* 0x42009CEA: mov edx, dword ptr [ecx + 8] */
   9786     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009CED: mov byte ptr [edx + 0x5c], bl */
   9787     edx = MEM32(ecx + 0x8); /* 0x42009CF0: mov edx, dword ptr [ecx + 8] */
   9788     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009CF3: mov byte ptr [ecx + 0x5c], 0 */
   9789     esi = MEM32(edx); /* 0x42009CF7: mov esi, dword ptr [edx] */
   9790     MEM32(ecx + 0x8) = esi; /* 0x42009CF9: mov dword ptr [ecx + 8], esi */
   9791     esi = MEM32(edx); /* 0x42009CFC: mov esi, dword ptr [edx] */
   9792     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009CFE: cmp esi, dword ptr [edi + 8] */
   9793     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9794     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9795     _flag_k = FK_CMP;
   9796     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D06; /* 0x42009D01: je 0x42009d06 */
   9797 L_42009D03:
   9798     MEM32(esi + 0x4) = ecx; /* 0x42009D03: mov dword ptr [esi + 4], ecx */
   9799 L_42009D06:
   9800     esi = MEM32(ecx + 0x4); /* 0x42009D06: mov esi, dword ptr [ecx + 4] */
   9801     MEM32(edx + 0x4) = esi; /* 0x42009D09: mov dword ptr [edx + 4], esi */
   9802     esi = MEM32(edi + 0x4); /* 0x42009D0C: mov esi, dword ptr [edi + 4] */
   9803     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009D0F: cmp ecx, dword ptr [esi + 4] */
   9804     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9806     _flag_k = FK_CMP;
   9807     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D19; /* 0x42009D12: jne 0x42009d19 */
   9808 L_42009D14:
   9809     MEM32(esi + 0x4) = edx; /* 0x42009D14: mov dword ptr [esi + 4], edx */
   9810     goto L_42009D27; /* 0x42009D17: jmp 0x42009d27 */
   9811 L_42009D19:
   9812     esi = MEM32(ecx + 0x4); /* 0x42009D19: mov esi, dword ptr [ecx + 4] */
   9813     /* cmp ecx, MEM32(esi) */ /* 0x42009D1C: cmp ecx, dword ptr [esi] */
   9814     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9816     _flag_k = FK_CMP;
   9817     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D24; /* 0x42009D1E: jne 0x42009d24 */
   9818 L_42009D20:
   9819     MEM32(esi) = edx; /* 0x42009D20: mov dword ptr [esi], edx */
   9820     goto L_42009D27; /* 0x42009D22: jmp 0x42009d27 */
   9821 L_42009D24:
   9822     MEM32(esi + 0x8) = edx; /* 0x42009D24: mov dword ptr [esi + 8], edx */
   9823 L_42009D27:
   9824     MEM32(edx) = ecx; /* 0x42009D27: mov dword ptr [edx], ecx */
   9825     MEM32(ecx + 0x4) = edx; /* 0x42009D29: mov dword ptr [ecx + 4], edx */
   9826     ecx = MEM32(eax + 0x4); /* 0x42009D2C: mov ecx, dword ptr [eax + 4] */
   9827     ecx = MEM32(ecx); /* 0x42009D2F: mov ecx, dword ptr [ecx] */
   9828 L_42009D31:
   9829     edx = MEM32(eax + 0x4); /* 0x42009D31: mov edx, dword ptr [eax + 4] */
   9830     SET_LO8(edx, MEM8(edx + 0x5C)); /* 0x42009D34: mov dl, byte ptr [edx + 0x5c] */
   9831     MEM8(ecx + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009D37: mov byte ptr [ecx + 0x5c], dl */
   9832     edx = MEM32(eax + 0x4); /* 0x42009D3A: mov edx, dword ptr [eax + 4] */
   9833     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D3D: mov byte ptr [edx + 0x5c], bl */
   9834     ecx = MEM32(ecx); /* 0x42009D40: mov ecx, dword ptr [ecx] */
   9835     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D42: mov byte ptr [ecx + 0x5c], bl */
   9836     ecx = MEM32(eax + 0x4); /* 0x42009D45: mov ecx, dword ptr [eax + 4] */
   9837     edx = MEM32(ecx); /* 0x42009D48: mov edx, dword ptr [ecx] */
   9838     esi = MEM32(edx + 0x8); /* 0x42009D4A: mov esi, dword ptr [edx + 8] */
   9839     MEM32(ecx) = esi; /* 0x42009D4D: mov dword ptr [ecx], esi */
   9840     esi = MEM32(edx + 0x8); /* 0x42009D4F: mov esi, dword ptr [edx + 8] */
   9841     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009D52: cmp esi, dword ptr [edi + 8] */
   9842     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9844     _flag_k = FK_CMP;
   9845     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D5A; /* 0x42009D55: je 0x42009d5a */
   9846 L_42009D57:
   9847     MEM32(esi + 0x4) = ecx; /* 0x42009D57: mov dword ptr [esi + 4], ecx */
   9848 L_42009D5A:
   9849     esi = MEM32(ecx + 0x4); /* 0x42009D5A: mov esi, dword ptr [ecx + 4] */
   9850     MEM32(edx + 0x4) = esi; /* 0x42009D5D: mov dword ptr [edx + 4], esi */
   9851     esi = MEM32(edi + 0x4); /* 0x42009D60: mov esi, dword ptr [edi + 4] */
   9852     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009D63: cmp ecx, dword ptr [esi + 4] */
   9853     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9855     _flag_k = FK_CMP;
   9856     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D6D; /* 0x42009D66: jne 0x42009d6d */
   9857 L_42009D68:
   9858     MEM32(esi + 0x4) = edx; /* 0x42009D68: mov dword ptr [esi + 4], edx */
   9859     goto L_42009D7C; /* 0x42009D6B: jmp 0x42009d7c */
   9860 L_42009D6D:
   9861     esi = MEM32(ecx + 0x4); /* 0x42009D6D: mov esi, dword ptr [ecx + 4] */
   9862     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009D70: cmp ecx, dword ptr [esi + 8] */
   9863     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9865     _flag_k = FK_CMP;
   9866     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D7A; /* 0x42009D73: jne 0x42009d7a */
   9867 L_42009D75:
   9868     MEM32(esi + 0x8) = edx; /* 0x42009D75: mov dword ptr [esi + 8], edx */
   9869     goto L_42009D7C; /* 0x42009D78: jmp 0x42009d7c */
   9870 L_42009D7A:
   9871     MEM32(esi) = edx; /* 0x42009D7A: mov dword ptr [esi], edx */
   9872 L_42009D7C:
   9873     MEM32(edx + 0x8) = ecx; /* 0x42009D7C: mov dword ptr [edx + 8], ecx */
   9874 L_42009D7F:
   9875     MEM32(ecx + 0x4) = edx; /* 0x42009D7F: mov dword ptr [ecx + 4], edx */
   9876 L_42009D82:
   9877     esi = MEM32(ebp + (-0x4)); /* 0x42009D82: mov esi, dword ptr [ebp - 4] */
   9878     MEM8(eax + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D85: mov byte ptr [eax + 0x5c], bl */
   9879 L_42009D88:
   9880     ecx = esi + 0xC; /* 0x42009D88: lea ecx, [esi + 0xc] */
   9881     RECOMP_ICALL(0x4200A0F0u); /* 0x42009D8B: call 0x4200a0f0 */ /* not lifted */
   9882     RECOMP_FLAGS_IN();
   9883     PUSH32(esp, esi); /* 0x42009D90: push esi */
   9884     RECOMP_ICALL(0x42016DD0u); /* 0x42009D91: call 0x42016dd0 */ /* not lifted */
   9885     RECOMP_FLAGS_IN();
   9886     eax = MEM32(edi + 0x10); /* 0x42009D96: mov eax, dword ptr [edi + 0x10] */
   9887     edx = MEM32(ebp + 0xC); /* 0x42009D99: mov edx, dword ptr [ebp + 0xc] */
   9888     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9889     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9890     esp = esp + 4; /* 0x42009D9C: add esp, 4 */
   9891     _flag_k = FK_ADD;
   9892     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9893     eax = eax - 1; /* 0x42009D9F: dec eax */
   9894     _flag_k = FK_DEC;
   9895     MEM32(edi + 0x10) = eax; /* 0x42009DA0: mov dword ptr [edi + 0x10], eax */
   9896     eax = MEM32(ebp + 0x8); /* 0x42009DA3: mov eax, dword ptr [ebp + 8] */
   9897     edi = POP32_VAL(esp); /* 0x42009DA6: pop edi */
   9898     esi = POP32_VAL(esp); /* 0x42009DA7: pop esi */
   9899     MEM32(eax) = edx; /* 0x42009DA8: mov dword ptr [eax], edx */
   9900     ebx = POP32_VAL(esp); /* 0x42009DAA: pop ebx */
   9901     esp = ebp; /* 0x42009DAB: mov esp, ebp */
   9902     ebp = POP32_VAL(esp); /* 0x42009DAD: pop ebp */
   9903     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42009DAE: ret 8 */
   9904     RECOMP_REGS_OUT();
   9905 }
   9906 
   9907 void sub_42009AC1(void) {
   9908     int _fpu_cmp = 0;
   9909     uint32_t _cf = 0;
   9910     int _df = 1;
   9911     uint32_t _flag_k = FK_NONE;
   9912     uint32_t _flag_a = 0, _flag_b = 0;
   9913     uint32_t _itail_tgt = 0;
   9914     RECOMP_REGS_LOCALS
   9915     RECOMP_ENTER(0x42009AC1u);
   9916 
   9917 L_42009AC1:
   9918     ebx = MEM32(edi + 0x4); /* 0x42009AC1: mov ebx, dword ptr [edi + 4] */
   9919     /* cmp MEM32(ebx), esi */ /* 0x42009AC4: cmp dword ptr [ebx], esi */
   9920     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi);
   9921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9922     _flag_k = FK_CMP;
   9923     if (CMP_NE(_flag_a, _flag_b)) goto L_42009AEB; /* 0x42009AC6: jne 0x42009aeb */
   9924 L_42009AC8:
   9925     ecx = MEM32(esi + 0x8); /* 0x42009AC8: mov ecx, dword ptr [esi + 8] */
   9926     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x42009ACB: cmp ecx, dword ptr [edi + 8] */
   9927     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9928     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9929     _flag_k = FK_CMP;
   9930     if (CMP_NE(_flag_a, _flag_b)) goto L_42009AD5; /* 0x42009ACE: jne 0x42009ad5 */
   9931 L_42009AD0:
   9932     edx = MEM32(esi + 0x4); /* 0x42009AD0: mov edx, dword ptr [esi + 4] */
   9933     goto L_42009AE9; /* 0x42009AD3: jmp 0x42009ae9 */
   9934 L_42009AD5:
   9935     ecx = MEM32(eax); /* 0x42009AD5: mov ecx, dword ptr [eax] */
   9936     /* cmp MEM8(ecx + 0x5D), 0 */ /* 0x42009AD7: cmp byte ptr [ecx + 0x5d], 0 */
   9937     _flag_a = (uint32_t)(MEM8(ecx + 0x5D)) << 24; _flag_b = (uint32_t)(0) << 24;
   9938     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9939     _flag_k = FK_NARROW(FK_CMP, 24);
   9940     edx = eax; /* 0x42009ADB: mov edx, eax */
   9941     if (CMP_NE(_flag_a, _flag_b)) goto L_42009AE9; /* 0x42009ADD: jne 0x42009ae9 */
   9942 L_42009ADF:
   9943     edx = ecx; /* 0x42009ADF: mov edx, ecx */
   9944     ecx = MEM32(edx); /* 0x42009AE1: mov ecx, dword ptr [edx] */
   9945     /* cmp MEM8(ecx + 0x5D), 0 */ /* 0x42009AE3: cmp byte ptr [ecx + 0x5d], 0 */
   9946     _flag_a = (uint32_t)(MEM8(ecx + 0x5D)) << 24; _flag_b = (uint32_t)(0) << 24;
   9947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9948     _flag_k = FK_NARROW(FK_CMP, 24);
   9949     RECOMP_BACKEDGE();
   9950     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009ADF; /* 0x42009AE7: je 0x42009adf */
   9951 L_42009AE9:
   9952     MEM32(ebx) = edx; /* 0x42009AE9: mov dword ptr [ebx], edx */
   9953 L_42009AEB:
   9954     ebx = MEM32(edi + 0x4); /* 0x42009AEB: mov ebx, dword ptr [edi + 4] */
   9955     /* cmp MEM32(ebx + 0x8), esi */ /* 0x42009AEE: cmp dword ptr [ebx + 8], esi */
   9956     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   9957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9958     _flag_k = FK_CMP;
   9959     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B18; /* 0x42009AF1: jne 0x42009b18 */
   9960 L_42009AF3:
   9961     ecx = MEM32(esi); /* 0x42009AF3: mov ecx, dword ptr [esi] */
   9962     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x42009AF5: cmp ecx, dword ptr [edi + 8] */
   9963     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9965     _flag_k = FK_CMP;
   9966     if (CMP_NE(_flag_a, _flag_b)) goto L_42009AFF; /* 0x42009AF8: jne 0x42009aff */
   9967 L_42009AFA:
   9968     edx = MEM32(esi + 0x4); /* 0x42009AFA: mov edx, dword ptr [esi + 4] */
   9969     goto L_42009B15; /* 0x42009AFD: jmp 0x42009b15 */
   9970 L_42009AFF:
   9971     ecx = MEM32(eax + 0x8); /* 0x42009AFF: mov ecx, dword ptr [eax + 8] */
   9972     /* cmp MEM8(ecx + 0x5D), 0 */ /* 0x42009B02: cmp byte ptr [ecx + 0x5d], 0 */
   9973     _flag_a = (uint32_t)(MEM8(ecx + 0x5D)) << 24; _flag_b = (uint32_t)(0) << 24;
   9974     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9975     _flag_k = FK_NARROW(FK_CMP, 24);
   9976     edx = eax; /* 0x42009B06: mov edx, eax */
   9977     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B15; /* 0x42009B08: jne 0x42009b15 */
   9978 L_42009B0A:
   9979     edx = ecx; /* 0x42009B0A: mov edx, ecx */
   9980     ecx = MEM32(edx + 0x8); /* 0x42009B0C: mov ecx, dword ptr [edx + 8] */
   9981     /* cmp MEM8(ecx + 0x5D), 0 */ /* 0x42009B0F: cmp byte ptr [ecx + 0x5d], 0 */
   9982     _flag_a = (uint32_t)(MEM8(ecx + 0x5D)) << 24; _flag_b = (uint32_t)(0) << 24;
   9983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9984     _flag_k = FK_NARROW(FK_CMP, 24);
   9985     RECOMP_BACKEDGE();
   9986     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009B0A; /* 0x42009B13: je 0x42009b0a */
   9987 L_42009B15:
   9988     MEM32(ebx + 0x8) = edx; /* 0x42009B15: mov dword ptr [ebx + 8], edx */
   9989 L_42009B18:
   9990     esi = MEM32(ebp + (-0x4)); /* 0x42009B18: mov esi, dword ptr [ebp - 4] */
   9991     SET_LO8(ecx, MEM8(esi + 0x5C)); /* 0x42009B1B: mov cl, byte ptr [esi + 0x5c] */
   9992     SET_LO8(ebx, 1); /* 0x42009B1E: mov bl, 1 */
   9993     /* cmp LO8(ecx), LO8(ebx) */ /* 0x42009B20: cmp cl, bl */
   9994     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9995     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9996     _flag_k = FK_NARROW(FK_CMP, 24);
   9997     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D88; /* 0x42009B22: jne 0x42009d88 */
   9998 L_42009B28:
   9999     ecx = MEM32(edi + 0x4); /* 0x42009B28: mov ecx, dword ptr [edi + 4] */
  10000     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x42009B2B: cmp eax, dword ptr [ecx + 4] */
  10001     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10003     _flag_k = FK_CMP;
  10004     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D82; /* 0x42009B2E: je 0x42009d82 */
  10005 L_42009B34:
  10006     /* cmp MEM8(eax + 0x5C), LO8(ebx) */ /* 0x42009B34: cmp byte ptr [eax + 0x5c], bl */
  10007     _flag_a = (uint32_t)(MEM8(eax + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10009     _flag_k = FK_NARROW(FK_CMP, 24);
  10010     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D82; /* 0x42009B37: jne 0x42009d82 */
  10011 L_42009B3D:
  10012     edx = MEM32(eax + 0x4); /* 0x42009B3D: mov edx, dword ptr [eax + 4] */
  10013     ecx = MEM32(edx); /* 0x42009B40: mov ecx, dword ptr [edx] */
  10014     /* cmp eax, ecx */ /* 0x42009B42: cmp eax, ecx */
  10015     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10017     _flag_k = FK_CMP;
  10018     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BB4; /* 0x42009B44: jne 0x42009bb4 */
  10019 L_42009B46:
  10020     ecx = MEM32(edx + 0x8); /* 0x42009B46: mov ecx, dword ptr [edx + 8] */
  10021     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009B49: mov dl, byte ptr [ecx + 0x5c] */
  10022     /* test LO8(edx), LO8(edx) */ /* 0x42009B4C: test dl, dl */
  10023     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10024     _cf = 0;
  10025     _flag_k = FK_NARROW(FK_TEST, 24);
  10026     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009B9B; /* 0x42009B4E: jne 0x42009b9b */
  10027 L_42009B50:
  10028     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009B50: mov byte ptr [ecx + 0x5c], bl */
  10029     edx = MEM32(eax + 0x4); /* 0x42009B53: mov edx, dword ptr [eax + 4] */
  10030     MEM8(edx + 0x5C) = (uint8_t)(0); /* 0x42009B56: mov byte ptr [edx + 0x5c], 0 */
  10031     ecx = MEM32(eax + 0x4); /* 0x42009B5A: mov ecx, dword ptr [eax + 4] */
  10032     edx = MEM32(ecx + 0x8); /* 0x42009B5D: mov edx, dword ptr [ecx + 8] */
  10033     esi = MEM32(edx); /* 0x42009B60: mov esi, dword ptr [edx] */
  10034     MEM32(ecx + 0x8) = esi; /* 0x42009B62: mov dword ptr [ecx + 8], esi */
  10035     esi = MEM32(edx); /* 0x42009B65: mov esi, dword ptr [edx] */
  10036     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009B67: cmp esi, dword ptr [edi + 8] */
  10037     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10039     _flag_k = FK_CMP;
  10040     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009B6F; /* 0x42009B6A: je 0x42009b6f */
  10041 L_42009B6C:
  10042     MEM32(esi + 0x4) = ecx; /* 0x42009B6C: mov dword ptr [esi + 4], ecx */
  10043 L_42009B6F:
  10044     esi = MEM32(ecx + 0x4); /* 0x42009B6F: mov esi, dword ptr [ecx + 4] */
  10045     MEM32(edx + 0x4) = esi; /* 0x42009B72: mov dword ptr [edx + 4], esi */
  10046     esi = MEM32(edi + 0x4); /* 0x42009B75: mov esi, dword ptr [edi + 4] */
  10047     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009B78: cmp ecx, dword ptr [esi + 4] */
  10048     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10050     _flag_k = FK_CMP;
  10051     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B82; /* 0x42009B7B: jne 0x42009b82 */
  10052 L_42009B7D:
  10053     MEM32(esi + 0x4) = edx; /* 0x42009B7D: mov dword ptr [esi + 4], edx */
  10054     goto L_42009B90; /* 0x42009B80: jmp 0x42009b90 */
  10055 L_42009B82:
  10056     esi = MEM32(ecx + 0x4); /* 0x42009B82: mov esi, dword ptr [ecx + 4] */
  10057     /* cmp ecx, MEM32(esi) */ /* 0x42009B85: cmp ecx, dword ptr [esi] */
  10058     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10059     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10060     _flag_k = FK_CMP;
  10061     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B8D; /* 0x42009B87: jne 0x42009b8d */
  10062 L_42009B89:
  10063     MEM32(esi) = edx; /* 0x42009B89: mov dword ptr [esi], edx */
  10064     goto L_42009B90; /* 0x42009B8B: jmp 0x42009b90 */
  10065 L_42009B8D:
  10066     MEM32(esi + 0x8) = edx; /* 0x42009B8D: mov dword ptr [esi + 8], edx */
  10067 L_42009B90:
  10068     MEM32(edx) = ecx; /* 0x42009B90: mov dword ptr [edx], ecx */
  10069     MEM32(ecx + 0x4) = edx; /* 0x42009B92: mov dword ptr [ecx + 4], edx */
  10070     ecx = MEM32(eax + 0x4); /* 0x42009B95: mov ecx, dword ptr [eax + 4] */
  10071     ecx = MEM32(ecx + 0x8); /* 0x42009B98: mov ecx, dword ptr [ecx + 8] */
  10072 L_42009B9B:
  10073     edx = MEM32(ecx); /* 0x42009B9B: mov edx, dword ptr [ecx] */
  10074     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009B9D: cmp byte ptr [edx + 0x5c], bl */
  10075     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10077     _flag_k = FK_NARROW(FK_CMP, 24);
  10078     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C36; /* 0x42009BA0: jne 0x42009c36 */
  10079 L_42009BA6:
  10080     edx = MEM32(ecx + 0x8); /* 0x42009BA6: mov edx, dword ptr [ecx + 8] */
  10081     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009BA9: cmp byte ptr [edx + 0x5c], bl */
  10082     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10084     _flag_k = FK_NARROW(FK_CMP, 24);
  10085     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C36; /* 0x42009BAC: jne 0x42009c36 */
  10086 L_42009BB2:
  10087     goto L_42009C1E; /* 0x42009BB2: jmp 0x42009c1e */
  10088 L_42009BB4:
  10089     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009BB4: mov dl, byte ptr [ecx + 0x5c] */
  10090     /* test LO8(edx), LO8(edx) */ /* 0x42009BB7: test dl, dl */
  10091     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10092     _cf = 0;
  10093     _flag_k = FK_NARROW(FK_TEST, 24);
  10094     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009C07; /* 0x42009BB9: jne 0x42009c07 */
  10095 L_42009BBB:
  10096     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009BBB: mov byte ptr [ecx + 0x5c], bl */
  10097     ecx = MEM32(eax + 0x4); /* 0x42009BBE: mov ecx, dword ptr [eax + 4] */
  10098     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009BC1: mov byte ptr [ecx + 0x5c], 0 */
  10099     ecx = MEM32(eax + 0x4); /* 0x42009BC5: mov ecx, dword ptr [eax + 4] */
  10100     edx = MEM32(ecx); /* 0x42009BC8: mov edx, dword ptr [ecx] */
  10101     esi = MEM32(edx + 0x8); /* 0x42009BCA: mov esi, dword ptr [edx + 8] */
  10102     MEM32(ecx) = esi; /* 0x42009BCD: mov dword ptr [ecx], esi */
  10103     esi = MEM32(edx + 0x8); /* 0x42009BCF: mov esi, dword ptr [edx + 8] */
  10104     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009BD2: cmp esi, dword ptr [edi + 8] */
  10105     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10107     _flag_k = FK_CMP;
  10108     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009BDA; /* 0x42009BD5: je 0x42009bda */
  10109 L_42009BD7:
  10110     MEM32(esi + 0x4) = ecx; /* 0x42009BD7: mov dword ptr [esi + 4], ecx */
  10111 L_42009BDA:
  10112     esi = MEM32(ecx + 0x4); /* 0x42009BDA: mov esi, dword ptr [ecx + 4] */
  10113     MEM32(edx + 0x4) = esi; /* 0x42009BDD: mov dword ptr [edx + 4], esi */
  10114     esi = MEM32(edi + 0x4); /* 0x42009BE0: mov esi, dword ptr [edi + 4] */
  10115     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009BE3: cmp ecx, dword ptr [esi + 4] */
  10116     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10118     _flag_k = FK_CMP;
  10119     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BED; /* 0x42009BE6: jne 0x42009bed */
  10120 L_42009BE8:
  10121     MEM32(esi + 0x4) = edx; /* 0x42009BE8: mov dword ptr [esi + 4], edx */
  10122     goto L_42009BFC; /* 0x42009BEB: jmp 0x42009bfc */
  10123 L_42009BED:
  10124     esi = MEM32(ecx + 0x4); /* 0x42009BED: mov esi, dword ptr [ecx + 4] */
  10125     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009BF0: cmp ecx, dword ptr [esi + 8] */
  10126     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10128     _flag_k = FK_CMP;
  10129     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BFA; /* 0x42009BF3: jne 0x42009bfa */
  10130 L_42009BF5:
  10131     MEM32(esi + 0x8) = edx; /* 0x42009BF5: mov dword ptr [esi + 8], edx */
  10132     goto L_42009BFC; /* 0x42009BF8: jmp 0x42009bfc */
  10133 L_42009BFA:
  10134     MEM32(esi) = edx; /* 0x42009BFA: mov dword ptr [esi], edx */
  10135 L_42009BFC:
  10136     MEM32(edx + 0x8) = ecx; /* 0x42009BFC: mov dword ptr [edx + 8], ecx */
  10137     MEM32(ecx + 0x4) = edx; /* 0x42009BFF: mov dword ptr [ecx + 4], edx */
  10138     edx = MEM32(eax + 0x4); /* 0x42009C02: mov edx, dword ptr [eax + 4] */
  10139     ecx = MEM32(edx); /* 0x42009C05: mov ecx, dword ptr [edx] */
  10140 L_42009C07:
  10141     edx = MEM32(ecx + 0x8); /* 0x42009C07: mov edx, dword ptr [ecx + 8] */
  10142     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C0A: cmp byte ptr [edx + 0x5c], bl */
  10143     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10144     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10145     _flag_k = FK_NARROW(FK_CMP, 24);
  10146     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CE3; /* 0x42009C0D: jne 0x42009ce3 */
  10147 L_42009C13:
  10148     edx = MEM32(ecx); /* 0x42009C13: mov edx, dword ptr [ecx] */
  10149     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C15: cmp byte ptr [edx + 0x5c], bl */
  10150     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10152     _flag_k = FK_NARROW(FK_CMP, 24);
  10153     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CE3; /* 0x42009C18: jne 0x42009ce3 */
  10154 L_42009C1E:
  10155     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009C1E: mov byte ptr [ecx + 0x5c], 0 */
  10156     ecx = MEM32(edi + 0x4); /* 0x42009C22: mov ecx, dword ptr [edi + 4] */
  10157     eax = MEM32(eax + 0x4); /* 0x42009C25: mov eax, dword ptr [eax + 4] */
  10158     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x42009C28: cmp eax, dword ptr [ecx + 4] */
  10159     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10161     _flag_k = FK_CMP;
  10162     RECOMP_BACKEDGE();
  10163     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B34; /* 0x42009C2B: jne 0x42009b34 */
  10164 L_42009C31:
  10165     goto L_42009D82; /* 0x42009C31: jmp 0x42009d82 */
  10166 L_42009C36:
  10167     edx = MEM32(ecx + 0x8); /* 0x42009C36: mov edx, dword ptr [ecx + 8] */
  10168     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C39: cmp byte ptr [edx + 0x5c], bl */
  10169     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10170     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10171     _flag_k = FK_NARROW(FK_CMP, 24);
  10172     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C87; /* 0x42009C3C: jne 0x42009c87 */
  10173 L_42009C3E:
  10174     edx = MEM32(ecx); /* 0x42009C3E: mov edx, dword ptr [ecx] */
  10175     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C40: mov byte ptr [edx + 0x5c], bl */
  10176     edx = MEM32(ecx); /* 0x42009C43: mov edx, dword ptr [ecx] */
  10177     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009C45: mov byte ptr [ecx + 0x5c], 0 */
  10178     esi = MEM32(edx + 0x8); /* 0x42009C49: mov esi, dword ptr [edx + 8] */
  10179     MEM32(ecx) = esi; /* 0x42009C4C: mov dword ptr [ecx], esi */
  10180     esi = MEM32(edx + 0x8); /* 0x42009C4E: mov esi, dword ptr [edx + 8] */
  10181     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009C51: cmp esi, dword ptr [edi + 8] */
  10182     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10184     _flag_k = FK_CMP;
  10185     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009C59; /* 0x42009C54: je 0x42009c59 */
  10186 L_42009C56:
  10187     MEM32(esi + 0x4) = ecx; /* 0x42009C56: mov dword ptr [esi + 4], ecx */
  10188 L_42009C59:
  10189     esi = MEM32(ecx + 0x4); /* 0x42009C59: mov esi, dword ptr [ecx + 4] */
  10190     MEM32(edx + 0x4) = esi; /* 0x42009C5C: mov dword ptr [edx + 4], esi */
  10191     esi = MEM32(edi + 0x4); /* 0x42009C5F: mov esi, dword ptr [edi + 4] */
  10192     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009C62: cmp ecx, dword ptr [esi + 4] */
  10193     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10195     _flag_k = FK_CMP;
  10196     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C6C; /* 0x42009C65: jne 0x42009c6c */
  10197 L_42009C67:
  10198     MEM32(esi + 0x4) = edx; /* 0x42009C67: mov dword ptr [esi + 4], edx */
  10199     goto L_42009C7B; /* 0x42009C6A: jmp 0x42009c7b */
  10200 L_42009C6C:
  10201     esi = MEM32(ecx + 0x4); /* 0x42009C6C: mov esi, dword ptr [ecx + 4] */
  10202     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009C6F: cmp ecx, dword ptr [esi + 8] */
  10203     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10204     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10205     _flag_k = FK_CMP;
  10206     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C79; /* 0x42009C72: jne 0x42009c79 */
  10207 L_42009C74:
  10208     MEM32(esi + 0x8) = edx; /* 0x42009C74: mov dword ptr [esi + 8], edx */
  10209     goto L_42009C7B; /* 0x42009C77: jmp 0x42009c7b */
  10210 L_42009C79:
  10211     MEM32(esi) = edx; /* 0x42009C79: mov dword ptr [esi], edx */
  10212 L_42009C7B:
  10213     MEM32(edx + 0x8) = ecx; /* 0x42009C7B: mov dword ptr [edx + 8], ecx */
  10214     MEM32(ecx + 0x4) = edx; /* 0x42009C7E: mov dword ptr [ecx + 4], edx */
  10215     ecx = MEM32(eax + 0x4); /* 0x42009C81: mov ecx, dword ptr [eax + 4] */
  10216     ecx = MEM32(ecx + 0x8); /* 0x42009C84: mov ecx, dword ptr [ecx + 8] */
  10217 L_42009C87:
  10218     edx = MEM32(eax + 0x4); /* 0x42009C87: mov edx, dword ptr [eax + 4] */
  10219     SET_LO8(edx, MEM8(edx + 0x5C)); /* 0x42009C8A: mov dl, byte ptr [edx + 0x5c] */
  10220     MEM8(ecx + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009C8D: mov byte ptr [ecx + 0x5c], dl */
  10221     edx = MEM32(eax + 0x4); /* 0x42009C90: mov edx, dword ptr [eax + 4] */
  10222     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C93: mov byte ptr [edx + 0x5c], bl */
  10223     ecx = MEM32(ecx + 0x8); /* 0x42009C96: mov ecx, dword ptr [ecx + 8] */
  10224     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C99: mov byte ptr [ecx + 0x5c], bl */
  10225     ecx = MEM32(eax + 0x4); /* 0x42009C9C: mov ecx, dword ptr [eax + 4] */
  10226     edx = MEM32(ecx + 0x8); /* 0x42009C9F: mov edx, dword ptr [ecx + 8] */
  10227     esi = MEM32(edx); /* 0x42009CA2: mov esi, dword ptr [edx] */
  10228     MEM32(ecx + 0x8) = esi; /* 0x42009CA4: mov dword ptr [ecx + 8], esi */
  10229     esi = MEM32(edx); /* 0x42009CA7: mov esi, dword ptr [edx] */
  10230     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009CA9: cmp esi, dword ptr [edi + 8] */
  10231     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10233     _flag_k = FK_CMP;
  10234     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009CB1; /* 0x42009CAC: je 0x42009cb1 */
  10235 L_42009CAE:
  10236     MEM32(esi + 0x4) = ecx; /* 0x42009CAE: mov dword ptr [esi + 4], ecx */
  10237 L_42009CB1:
  10238     esi = MEM32(ecx + 0x4); /* 0x42009CB1: mov esi, dword ptr [ecx + 4] */
  10239     MEM32(edx + 0x4) = esi; /* 0x42009CB4: mov dword ptr [edx + 4], esi */
  10240     esi = MEM32(edi + 0x4); /* 0x42009CB7: mov esi, dword ptr [edi + 4] */
  10241     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009CBA: cmp ecx, dword ptr [esi + 4] */
  10242     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10244     _flag_k = FK_CMP;
  10245     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CC9; /* 0x42009CBD: jne 0x42009cc9 */
  10246 L_42009CBF:
  10247     MEM32(esi + 0x4) = edx; /* 0x42009CBF: mov dword ptr [esi + 4], edx */
  10248     MEM32(edx) = ecx; /* 0x42009CC2: mov dword ptr [edx], ecx */
  10249     goto L_42009D7F; /* 0x42009CC4: jmp 0x42009d7f */
  10250 L_42009CC9:
  10251     esi = MEM32(ecx + 0x4); /* 0x42009CC9: mov esi, dword ptr [ecx + 4] */
  10252     /* cmp ecx, MEM32(esi) */ /* 0x42009CCC: cmp ecx, dword ptr [esi] */
  10253     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10255     _flag_k = FK_CMP;
  10256     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CD9; /* 0x42009CCE: jne 0x42009cd9 */
  10257 L_42009CD0:
  10258     MEM32(esi) = edx; /* 0x42009CD0: mov dword ptr [esi], edx */
  10259     MEM32(edx) = ecx; /* 0x42009CD2: mov dword ptr [edx], ecx */
  10260     goto L_42009D7F; /* 0x42009CD4: jmp 0x42009d7f */
  10261 L_42009CD9:
  10262     MEM32(esi + 0x8) = edx; /* 0x42009CD9: mov dword ptr [esi + 8], edx */
  10263     MEM32(edx) = ecx; /* 0x42009CDC: mov dword ptr [edx], ecx */
  10264     goto L_42009D7F; /* 0x42009CDE: jmp 0x42009d7f */
  10265 L_42009CE3:
  10266     edx = MEM32(ecx); /* 0x42009CE3: mov edx, dword ptr [ecx] */
  10267     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009CE5: cmp byte ptr [edx + 0x5c], bl */
  10268     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10269     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10270     _flag_k = FK_NARROW(FK_CMP, 24);
  10271     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D31; /* 0x42009CE8: jne 0x42009d31 */
  10272 L_42009CEA:
  10273     edx = MEM32(ecx + 0x8); /* 0x42009CEA: mov edx, dword ptr [ecx + 8] */
  10274     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009CED: mov byte ptr [edx + 0x5c], bl */
  10275     edx = MEM32(ecx + 0x8); /* 0x42009CF0: mov edx, dword ptr [ecx + 8] */
  10276     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009CF3: mov byte ptr [ecx + 0x5c], 0 */
  10277     esi = MEM32(edx); /* 0x42009CF7: mov esi, dword ptr [edx] */
  10278     MEM32(ecx + 0x8) = esi; /* 0x42009CF9: mov dword ptr [ecx + 8], esi */
  10279     esi = MEM32(edx); /* 0x42009CFC: mov esi, dword ptr [edx] */
  10280     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009CFE: cmp esi, dword ptr [edi + 8] */
  10281     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10283     _flag_k = FK_CMP;
  10284     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D06; /* 0x42009D01: je 0x42009d06 */
  10285 L_42009D03:
  10286     MEM32(esi + 0x4) = ecx; /* 0x42009D03: mov dword ptr [esi + 4], ecx */
  10287 L_42009D06:
  10288     esi = MEM32(ecx + 0x4); /* 0x42009D06: mov esi, dword ptr [ecx + 4] */
  10289     MEM32(edx + 0x4) = esi; /* 0x42009D09: mov dword ptr [edx + 4], esi */
  10290     esi = MEM32(edi + 0x4); /* 0x42009D0C: mov esi, dword ptr [edi + 4] */
  10291     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009D0F: cmp ecx, dword ptr [esi + 4] */
  10292     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10294     _flag_k = FK_CMP;
  10295     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D19; /* 0x42009D12: jne 0x42009d19 */
  10296 L_42009D14:
  10297     MEM32(esi + 0x4) = edx; /* 0x42009D14: mov dword ptr [esi + 4], edx */
  10298     goto L_42009D27; /* 0x42009D17: jmp 0x42009d27 */
  10299 L_42009D19:
  10300     esi = MEM32(ecx + 0x4); /* 0x42009D19: mov esi, dword ptr [ecx + 4] */
  10301     /* cmp ecx, MEM32(esi) */ /* 0x42009D1C: cmp ecx, dword ptr [esi] */
  10302     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10304     _flag_k = FK_CMP;
  10305     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D24; /* 0x42009D1E: jne 0x42009d24 */
  10306 L_42009D20:
  10307     MEM32(esi) = edx; /* 0x42009D20: mov dword ptr [esi], edx */
  10308     goto L_42009D27; /* 0x42009D22: jmp 0x42009d27 */
  10309 L_42009D24:
  10310     MEM32(esi + 0x8) = edx; /* 0x42009D24: mov dword ptr [esi + 8], edx */
  10311 L_42009D27:
  10312     MEM32(edx) = ecx; /* 0x42009D27: mov dword ptr [edx], ecx */
  10313     MEM32(ecx + 0x4) = edx; /* 0x42009D29: mov dword ptr [ecx + 4], edx */
  10314     ecx = MEM32(eax + 0x4); /* 0x42009D2C: mov ecx, dword ptr [eax + 4] */
  10315     ecx = MEM32(ecx); /* 0x42009D2F: mov ecx, dword ptr [ecx] */
  10316 L_42009D31:
  10317     edx = MEM32(eax + 0x4); /* 0x42009D31: mov edx, dword ptr [eax + 4] */
  10318     SET_LO8(edx, MEM8(edx + 0x5C)); /* 0x42009D34: mov dl, byte ptr [edx + 0x5c] */
  10319     MEM8(ecx + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009D37: mov byte ptr [ecx + 0x5c], dl */
  10320     edx = MEM32(eax + 0x4); /* 0x42009D3A: mov edx, dword ptr [eax + 4] */
  10321     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D3D: mov byte ptr [edx + 0x5c], bl */
  10322     ecx = MEM32(ecx); /* 0x42009D40: mov ecx, dword ptr [ecx] */
  10323     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D42: mov byte ptr [ecx + 0x5c], bl */
  10324     ecx = MEM32(eax + 0x4); /* 0x42009D45: mov ecx, dword ptr [eax + 4] */
  10325     edx = MEM32(ecx); /* 0x42009D48: mov edx, dword ptr [ecx] */
  10326     esi = MEM32(edx + 0x8); /* 0x42009D4A: mov esi, dword ptr [edx + 8] */
  10327     MEM32(ecx) = esi; /* 0x42009D4D: mov dword ptr [ecx], esi */
  10328     esi = MEM32(edx + 0x8); /* 0x42009D4F: mov esi, dword ptr [edx + 8] */
  10329     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009D52: cmp esi, dword ptr [edi + 8] */
  10330     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10331     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10332     _flag_k = FK_CMP;
  10333     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D5A; /* 0x42009D55: je 0x42009d5a */
  10334 L_42009D57:
  10335     MEM32(esi + 0x4) = ecx; /* 0x42009D57: mov dword ptr [esi + 4], ecx */
  10336 L_42009D5A:
  10337     esi = MEM32(ecx + 0x4); /* 0x42009D5A: mov esi, dword ptr [ecx + 4] */
  10338     MEM32(edx + 0x4) = esi; /* 0x42009D5D: mov dword ptr [edx + 4], esi */
  10339     esi = MEM32(edi + 0x4); /* 0x42009D60: mov esi, dword ptr [edi + 4] */
  10340     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009D63: cmp ecx, dword ptr [esi + 4] */
  10341     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10343     _flag_k = FK_CMP;
  10344     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D6D; /* 0x42009D66: jne 0x42009d6d */
  10345 L_42009D68:
  10346     MEM32(esi + 0x4) = edx; /* 0x42009D68: mov dword ptr [esi + 4], edx */
  10347     goto L_42009D7C; /* 0x42009D6B: jmp 0x42009d7c */
  10348 L_42009D6D:
  10349     esi = MEM32(ecx + 0x4); /* 0x42009D6D: mov esi, dword ptr [ecx + 4] */
  10350     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009D70: cmp ecx, dword ptr [esi + 8] */
  10351     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10352     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10353     _flag_k = FK_CMP;
  10354     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D7A; /* 0x42009D73: jne 0x42009d7a */
  10355 L_42009D75:
  10356     MEM32(esi + 0x8) = edx; /* 0x42009D75: mov dword ptr [esi + 8], edx */
  10357     goto L_42009D7C; /* 0x42009D78: jmp 0x42009d7c */
  10358 L_42009D7A:
  10359     MEM32(esi) = edx; /* 0x42009D7A: mov dword ptr [esi], edx */
  10360 L_42009D7C:
  10361     MEM32(edx + 0x8) = ecx; /* 0x42009D7C: mov dword ptr [edx + 8], ecx */
  10362 L_42009D7F:
  10363     MEM32(ecx + 0x4) = edx; /* 0x42009D7F: mov dword ptr [ecx + 4], edx */
  10364 L_42009D82:
  10365     esi = MEM32(ebp + (-0x4)); /* 0x42009D82: mov esi, dword ptr [ebp - 4] */
  10366     MEM8(eax + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D85: mov byte ptr [eax + 0x5c], bl */
  10367 L_42009D88:
  10368     ecx = esi + 0xC; /* 0x42009D88: lea ecx, [esi + 0xc] */
  10369     RECOMP_ICALL(0x4200A0F0u); /* 0x42009D8B: call 0x4200a0f0 */ /* not lifted */
  10370     RECOMP_FLAGS_IN();
  10371     PUSH32(esp, esi); /* 0x42009D90: push esi */
  10372     RECOMP_ICALL(0x42016DD0u); /* 0x42009D91: call 0x42016dd0 */ /* not lifted */
  10373     RECOMP_FLAGS_IN();
  10374     eax = MEM32(edi + 0x10); /* 0x42009D96: mov eax, dword ptr [edi + 0x10] */
  10375     edx = MEM32(ebp + 0xC); /* 0x42009D99: mov edx, dword ptr [ebp + 0xc] */
  10376     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10377     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10378     esp = esp + 4; /* 0x42009D9C: add esp, 4 */
  10379     _flag_k = FK_ADD;
  10380     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10381     eax = eax - 1; /* 0x42009D9F: dec eax */
  10382     _flag_k = FK_DEC;
  10383     MEM32(edi + 0x10) = eax; /* 0x42009DA0: mov dword ptr [edi + 0x10], eax */
  10384     eax = MEM32(ebp + 0x8); /* 0x42009DA3: mov eax, dword ptr [ebp + 8] */
  10385     edi = POP32_VAL(esp); /* 0x42009DA6: pop edi */
  10386     esi = POP32_VAL(esp); /* 0x42009DA7: pop esi */
  10387     MEM32(eax) = edx; /* 0x42009DA8: mov dword ptr [eax], edx */
  10388     ebx = POP32_VAL(esp); /* 0x42009DAA: pop ebx */
  10389     esp = ebp; /* 0x42009DAB: mov esp, ebp */
  10390     ebp = POP32_VAL(esp); /* 0x42009DAD: pop ebp */
  10391     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42009DAE: ret 8 */
  10392     RECOMP_REGS_OUT();
  10393 }
  10394 
  10395 void sub_42009AE9(void) {
  10396     int _fpu_cmp = 0;
  10397     uint32_t _cf = 0;
  10398     int _df = 1;
  10399     uint32_t _flag_k = FK_NONE;
  10400     uint32_t _flag_a = 0, _flag_b = 0;
  10401     uint32_t _itail_tgt = 0;
  10402     RECOMP_REGS_LOCALS
  10403     RECOMP_ENTER(0x42009AE9u);
  10404 
  10405 L_42009AE9:
  10406     MEM32(ebx) = edx; /* 0x42009AE9: mov dword ptr [ebx], edx */
  10407     ebx = MEM32(edi + 0x4); /* 0x42009AEB: mov ebx, dword ptr [edi + 4] */
  10408     /* cmp MEM32(ebx + 0x8), esi */ /* 0x42009AEE: cmp dword ptr [ebx + 8], esi */
  10409     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
  10410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10411     _flag_k = FK_CMP;
  10412     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B18; /* 0x42009AF1: jne 0x42009b18 */
  10413 L_42009AF3:
  10414     ecx = MEM32(esi); /* 0x42009AF3: mov ecx, dword ptr [esi] */
  10415     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x42009AF5: cmp ecx, dword ptr [edi + 8] */
  10416     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10418     _flag_k = FK_CMP;
  10419     if (CMP_NE(_flag_a, _flag_b)) goto L_42009AFF; /* 0x42009AF8: jne 0x42009aff */
  10420 L_42009AFA:
  10421     edx = MEM32(esi + 0x4); /* 0x42009AFA: mov edx, dword ptr [esi + 4] */
  10422     goto L_42009B15; /* 0x42009AFD: jmp 0x42009b15 */
  10423 L_42009AFF:
  10424     ecx = MEM32(eax + 0x8); /* 0x42009AFF: mov ecx, dword ptr [eax + 8] */
  10425     /* cmp MEM8(ecx + 0x5D), 0 */ /* 0x42009B02: cmp byte ptr [ecx + 0x5d], 0 */
  10426     _flag_a = (uint32_t)(MEM8(ecx + 0x5D)) << 24; _flag_b = (uint32_t)(0) << 24;
  10427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10428     _flag_k = FK_NARROW(FK_CMP, 24);
  10429     edx = eax; /* 0x42009B06: mov edx, eax */
  10430     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B15; /* 0x42009B08: jne 0x42009b15 */
  10431 L_42009B0A:
  10432     edx = ecx; /* 0x42009B0A: mov edx, ecx */
  10433     ecx = MEM32(edx + 0x8); /* 0x42009B0C: mov ecx, dword ptr [edx + 8] */
  10434     /* cmp MEM8(ecx + 0x5D), 0 */ /* 0x42009B0F: cmp byte ptr [ecx + 0x5d], 0 */
  10435     _flag_a = (uint32_t)(MEM8(ecx + 0x5D)) << 24; _flag_b = (uint32_t)(0) << 24;
  10436     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10437     _flag_k = FK_NARROW(FK_CMP, 24);
  10438     RECOMP_BACKEDGE();
  10439     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009B0A; /* 0x42009B13: je 0x42009b0a */
  10440 L_42009B15:
  10441     MEM32(ebx + 0x8) = edx; /* 0x42009B15: mov dword ptr [ebx + 8], edx */
  10442 L_42009B18:
  10443     esi = MEM32(ebp + (-0x4)); /* 0x42009B18: mov esi, dword ptr [ebp - 4] */
  10444     SET_LO8(ecx, MEM8(esi + 0x5C)); /* 0x42009B1B: mov cl, byte ptr [esi + 0x5c] */
  10445     SET_LO8(ebx, 1); /* 0x42009B1E: mov bl, 1 */
  10446     /* cmp LO8(ecx), LO8(ebx) */ /* 0x42009B20: cmp cl, bl */
  10447     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10449     _flag_k = FK_NARROW(FK_CMP, 24);
  10450     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D88; /* 0x42009B22: jne 0x42009d88 */
  10451 L_42009B28:
  10452     ecx = MEM32(edi + 0x4); /* 0x42009B28: mov ecx, dword ptr [edi + 4] */
  10453     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x42009B2B: cmp eax, dword ptr [ecx + 4] */
  10454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10456     _flag_k = FK_CMP;
  10457     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D82; /* 0x42009B2E: je 0x42009d82 */
  10458 L_42009B34:
  10459     /* cmp MEM8(eax + 0x5C), LO8(ebx) */ /* 0x42009B34: cmp byte ptr [eax + 0x5c], bl */
  10460     _flag_a = (uint32_t)(MEM8(eax + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10462     _flag_k = FK_NARROW(FK_CMP, 24);
  10463     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D82; /* 0x42009B37: jne 0x42009d82 */
  10464 L_42009B3D:
  10465     edx = MEM32(eax + 0x4); /* 0x42009B3D: mov edx, dword ptr [eax + 4] */
  10466     ecx = MEM32(edx); /* 0x42009B40: mov ecx, dword ptr [edx] */
  10467     /* cmp eax, ecx */ /* 0x42009B42: cmp eax, ecx */
  10468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10470     _flag_k = FK_CMP;
  10471     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BB4; /* 0x42009B44: jne 0x42009bb4 */
  10472 L_42009B46:
  10473     ecx = MEM32(edx + 0x8); /* 0x42009B46: mov ecx, dword ptr [edx + 8] */
  10474     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009B49: mov dl, byte ptr [ecx + 0x5c] */
  10475     /* test LO8(edx), LO8(edx) */ /* 0x42009B4C: test dl, dl */
  10476     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10477     _cf = 0;
  10478     _flag_k = FK_NARROW(FK_TEST, 24);
  10479     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009B9B; /* 0x42009B4E: jne 0x42009b9b */
  10480 L_42009B50:
  10481     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009B50: mov byte ptr [ecx + 0x5c], bl */
  10482     edx = MEM32(eax + 0x4); /* 0x42009B53: mov edx, dword ptr [eax + 4] */
  10483     MEM8(edx + 0x5C) = (uint8_t)(0); /* 0x42009B56: mov byte ptr [edx + 0x5c], 0 */
  10484     ecx = MEM32(eax + 0x4); /* 0x42009B5A: mov ecx, dword ptr [eax + 4] */
  10485     edx = MEM32(ecx + 0x8); /* 0x42009B5D: mov edx, dword ptr [ecx + 8] */
  10486     esi = MEM32(edx); /* 0x42009B60: mov esi, dword ptr [edx] */
  10487     MEM32(ecx + 0x8) = esi; /* 0x42009B62: mov dword ptr [ecx + 8], esi */
  10488     esi = MEM32(edx); /* 0x42009B65: mov esi, dword ptr [edx] */
  10489     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009B67: cmp esi, dword ptr [edi + 8] */
  10490     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10491     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10492     _flag_k = FK_CMP;
  10493     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009B6F; /* 0x42009B6A: je 0x42009b6f */
  10494 L_42009B6C:
  10495     MEM32(esi + 0x4) = ecx; /* 0x42009B6C: mov dword ptr [esi + 4], ecx */
  10496 L_42009B6F:
  10497     esi = MEM32(ecx + 0x4); /* 0x42009B6F: mov esi, dword ptr [ecx + 4] */
  10498     MEM32(edx + 0x4) = esi; /* 0x42009B72: mov dword ptr [edx + 4], esi */
  10499     esi = MEM32(edi + 0x4); /* 0x42009B75: mov esi, dword ptr [edi + 4] */
  10500     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009B78: cmp ecx, dword ptr [esi + 4] */
  10501     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10503     _flag_k = FK_CMP;
  10504     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B82; /* 0x42009B7B: jne 0x42009b82 */
  10505 L_42009B7D:
  10506     MEM32(esi + 0x4) = edx; /* 0x42009B7D: mov dword ptr [esi + 4], edx */
  10507     goto L_42009B90; /* 0x42009B80: jmp 0x42009b90 */
  10508 L_42009B82:
  10509     esi = MEM32(ecx + 0x4); /* 0x42009B82: mov esi, dword ptr [ecx + 4] */
  10510     /* cmp ecx, MEM32(esi) */ /* 0x42009B85: cmp ecx, dword ptr [esi] */
  10511     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10513     _flag_k = FK_CMP;
  10514     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B8D; /* 0x42009B87: jne 0x42009b8d */
  10515 L_42009B89:
  10516     MEM32(esi) = edx; /* 0x42009B89: mov dword ptr [esi], edx */
  10517     goto L_42009B90; /* 0x42009B8B: jmp 0x42009b90 */
  10518 L_42009B8D:
  10519     MEM32(esi + 0x8) = edx; /* 0x42009B8D: mov dword ptr [esi + 8], edx */
  10520 L_42009B90:
  10521     MEM32(edx) = ecx; /* 0x42009B90: mov dword ptr [edx], ecx */
  10522     MEM32(ecx + 0x4) = edx; /* 0x42009B92: mov dword ptr [ecx + 4], edx */
  10523     ecx = MEM32(eax + 0x4); /* 0x42009B95: mov ecx, dword ptr [eax + 4] */
  10524     ecx = MEM32(ecx + 0x8); /* 0x42009B98: mov ecx, dword ptr [ecx + 8] */
  10525 L_42009B9B:
  10526     edx = MEM32(ecx); /* 0x42009B9B: mov edx, dword ptr [ecx] */
  10527     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009B9D: cmp byte ptr [edx + 0x5c], bl */
  10528     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10530     _flag_k = FK_NARROW(FK_CMP, 24);
  10531     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C36; /* 0x42009BA0: jne 0x42009c36 */
  10532 L_42009BA6:
  10533     edx = MEM32(ecx + 0x8); /* 0x42009BA6: mov edx, dword ptr [ecx + 8] */
  10534     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009BA9: cmp byte ptr [edx + 0x5c], bl */
  10535     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10537     _flag_k = FK_NARROW(FK_CMP, 24);
  10538     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C36; /* 0x42009BAC: jne 0x42009c36 */
  10539 L_42009BB2:
  10540     goto L_42009C1E; /* 0x42009BB2: jmp 0x42009c1e */
  10541 L_42009BB4:
  10542     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009BB4: mov dl, byte ptr [ecx + 0x5c] */
  10543     /* test LO8(edx), LO8(edx) */ /* 0x42009BB7: test dl, dl */
  10544     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10545     _cf = 0;
  10546     _flag_k = FK_NARROW(FK_TEST, 24);
  10547     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009C07; /* 0x42009BB9: jne 0x42009c07 */
  10548 L_42009BBB:
  10549     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009BBB: mov byte ptr [ecx + 0x5c], bl */
  10550     ecx = MEM32(eax + 0x4); /* 0x42009BBE: mov ecx, dword ptr [eax + 4] */
  10551     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009BC1: mov byte ptr [ecx + 0x5c], 0 */
  10552     ecx = MEM32(eax + 0x4); /* 0x42009BC5: mov ecx, dword ptr [eax + 4] */
  10553     edx = MEM32(ecx); /* 0x42009BC8: mov edx, dword ptr [ecx] */
  10554     esi = MEM32(edx + 0x8); /* 0x42009BCA: mov esi, dword ptr [edx + 8] */
  10555     MEM32(ecx) = esi; /* 0x42009BCD: mov dword ptr [ecx], esi */
  10556     esi = MEM32(edx + 0x8); /* 0x42009BCF: mov esi, dword ptr [edx + 8] */
  10557     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009BD2: cmp esi, dword ptr [edi + 8] */
  10558     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10560     _flag_k = FK_CMP;
  10561     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009BDA; /* 0x42009BD5: je 0x42009bda */
  10562 L_42009BD7:
  10563     MEM32(esi + 0x4) = ecx; /* 0x42009BD7: mov dword ptr [esi + 4], ecx */
  10564 L_42009BDA:
  10565     esi = MEM32(ecx + 0x4); /* 0x42009BDA: mov esi, dword ptr [ecx + 4] */
  10566     MEM32(edx + 0x4) = esi; /* 0x42009BDD: mov dword ptr [edx + 4], esi */
  10567     esi = MEM32(edi + 0x4); /* 0x42009BE0: mov esi, dword ptr [edi + 4] */
  10568     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009BE3: cmp ecx, dword ptr [esi + 4] */
  10569     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10571     _flag_k = FK_CMP;
  10572     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BED; /* 0x42009BE6: jne 0x42009bed */
  10573 L_42009BE8:
  10574     MEM32(esi + 0x4) = edx; /* 0x42009BE8: mov dword ptr [esi + 4], edx */
  10575     goto L_42009BFC; /* 0x42009BEB: jmp 0x42009bfc */
  10576 L_42009BED:
  10577     esi = MEM32(ecx + 0x4); /* 0x42009BED: mov esi, dword ptr [ecx + 4] */
  10578     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009BF0: cmp ecx, dword ptr [esi + 8] */
  10579     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10581     _flag_k = FK_CMP;
  10582     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BFA; /* 0x42009BF3: jne 0x42009bfa */
  10583 L_42009BF5:
  10584     MEM32(esi + 0x8) = edx; /* 0x42009BF5: mov dword ptr [esi + 8], edx */
  10585     goto L_42009BFC; /* 0x42009BF8: jmp 0x42009bfc */
  10586 L_42009BFA:
  10587     MEM32(esi) = edx; /* 0x42009BFA: mov dword ptr [esi], edx */
  10588 L_42009BFC:
  10589     MEM32(edx + 0x8) = ecx; /* 0x42009BFC: mov dword ptr [edx + 8], ecx */
  10590     MEM32(ecx + 0x4) = edx; /* 0x42009BFF: mov dword ptr [ecx + 4], edx */
  10591     edx = MEM32(eax + 0x4); /* 0x42009C02: mov edx, dword ptr [eax + 4] */
  10592     ecx = MEM32(edx); /* 0x42009C05: mov ecx, dword ptr [edx] */
  10593 L_42009C07:
  10594     edx = MEM32(ecx + 0x8); /* 0x42009C07: mov edx, dword ptr [ecx + 8] */
  10595     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C0A: cmp byte ptr [edx + 0x5c], bl */
  10596     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10598     _flag_k = FK_NARROW(FK_CMP, 24);
  10599     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CE3; /* 0x42009C0D: jne 0x42009ce3 */
  10600 L_42009C13:
  10601     edx = MEM32(ecx); /* 0x42009C13: mov edx, dword ptr [ecx] */
  10602     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C15: cmp byte ptr [edx + 0x5c], bl */
  10603     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10605     _flag_k = FK_NARROW(FK_CMP, 24);
  10606     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CE3; /* 0x42009C18: jne 0x42009ce3 */
  10607 L_42009C1E:
  10608     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009C1E: mov byte ptr [ecx + 0x5c], 0 */
  10609     ecx = MEM32(edi + 0x4); /* 0x42009C22: mov ecx, dword ptr [edi + 4] */
  10610     eax = MEM32(eax + 0x4); /* 0x42009C25: mov eax, dword ptr [eax + 4] */
  10611     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x42009C28: cmp eax, dword ptr [ecx + 4] */
  10612     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10614     _flag_k = FK_CMP;
  10615     RECOMP_BACKEDGE();
  10616     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B34; /* 0x42009C2B: jne 0x42009b34 */
  10617 L_42009C31:
  10618     goto L_42009D82; /* 0x42009C31: jmp 0x42009d82 */
  10619 L_42009C36:
  10620     edx = MEM32(ecx + 0x8); /* 0x42009C36: mov edx, dword ptr [ecx + 8] */
  10621     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C39: cmp byte ptr [edx + 0x5c], bl */
  10622     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10623     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10624     _flag_k = FK_NARROW(FK_CMP, 24);
  10625     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C87; /* 0x42009C3C: jne 0x42009c87 */
  10626 L_42009C3E:
  10627     edx = MEM32(ecx); /* 0x42009C3E: mov edx, dword ptr [ecx] */
  10628     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C40: mov byte ptr [edx + 0x5c], bl */
  10629     edx = MEM32(ecx); /* 0x42009C43: mov edx, dword ptr [ecx] */
  10630     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009C45: mov byte ptr [ecx + 0x5c], 0 */
  10631     esi = MEM32(edx + 0x8); /* 0x42009C49: mov esi, dword ptr [edx + 8] */
  10632     MEM32(ecx) = esi; /* 0x42009C4C: mov dword ptr [ecx], esi */
  10633     esi = MEM32(edx + 0x8); /* 0x42009C4E: mov esi, dword ptr [edx + 8] */
  10634     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009C51: cmp esi, dword ptr [edi + 8] */
  10635     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10637     _flag_k = FK_CMP;
  10638     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009C59; /* 0x42009C54: je 0x42009c59 */
  10639 L_42009C56:
  10640     MEM32(esi + 0x4) = ecx; /* 0x42009C56: mov dword ptr [esi + 4], ecx */
  10641 L_42009C59:
  10642     esi = MEM32(ecx + 0x4); /* 0x42009C59: mov esi, dword ptr [ecx + 4] */
  10643     MEM32(edx + 0x4) = esi; /* 0x42009C5C: mov dword ptr [edx + 4], esi */
  10644     esi = MEM32(edi + 0x4); /* 0x42009C5F: mov esi, dword ptr [edi + 4] */
  10645     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009C62: cmp ecx, dword ptr [esi + 4] */
  10646     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10648     _flag_k = FK_CMP;
  10649     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C6C; /* 0x42009C65: jne 0x42009c6c */
  10650 L_42009C67:
  10651     MEM32(esi + 0x4) = edx; /* 0x42009C67: mov dword ptr [esi + 4], edx */
  10652     goto L_42009C7B; /* 0x42009C6A: jmp 0x42009c7b */
  10653 L_42009C6C:
  10654     esi = MEM32(ecx + 0x4); /* 0x42009C6C: mov esi, dword ptr [ecx + 4] */
  10655     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009C6F: cmp ecx, dword ptr [esi + 8] */
  10656     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10658     _flag_k = FK_CMP;
  10659     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C79; /* 0x42009C72: jne 0x42009c79 */
  10660 L_42009C74:
  10661     MEM32(esi + 0x8) = edx; /* 0x42009C74: mov dword ptr [esi + 8], edx */
  10662     goto L_42009C7B; /* 0x42009C77: jmp 0x42009c7b */
  10663 L_42009C79:
  10664     MEM32(esi) = edx; /* 0x42009C79: mov dword ptr [esi], edx */
  10665 L_42009C7B:
  10666     MEM32(edx + 0x8) = ecx; /* 0x42009C7B: mov dword ptr [edx + 8], ecx */
  10667     MEM32(ecx + 0x4) = edx; /* 0x42009C7E: mov dword ptr [ecx + 4], edx */
  10668     ecx = MEM32(eax + 0x4); /* 0x42009C81: mov ecx, dword ptr [eax + 4] */
  10669     ecx = MEM32(ecx + 0x8); /* 0x42009C84: mov ecx, dword ptr [ecx + 8] */
  10670 L_42009C87:
  10671     edx = MEM32(eax + 0x4); /* 0x42009C87: mov edx, dword ptr [eax + 4] */
  10672     SET_LO8(edx, MEM8(edx + 0x5C)); /* 0x42009C8A: mov dl, byte ptr [edx + 0x5c] */
  10673     MEM8(ecx + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009C8D: mov byte ptr [ecx + 0x5c], dl */
  10674     edx = MEM32(eax + 0x4); /* 0x42009C90: mov edx, dword ptr [eax + 4] */
  10675     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C93: mov byte ptr [edx + 0x5c], bl */
  10676     ecx = MEM32(ecx + 0x8); /* 0x42009C96: mov ecx, dword ptr [ecx + 8] */
  10677     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C99: mov byte ptr [ecx + 0x5c], bl */
  10678     ecx = MEM32(eax + 0x4); /* 0x42009C9C: mov ecx, dword ptr [eax + 4] */
  10679     edx = MEM32(ecx + 0x8); /* 0x42009C9F: mov edx, dword ptr [ecx + 8] */
  10680     esi = MEM32(edx); /* 0x42009CA2: mov esi, dword ptr [edx] */
  10681     MEM32(ecx + 0x8) = esi; /* 0x42009CA4: mov dword ptr [ecx + 8], esi */
  10682     esi = MEM32(edx); /* 0x42009CA7: mov esi, dword ptr [edx] */
  10683     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009CA9: cmp esi, dword ptr [edi + 8] */
  10684     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10686     _flag_k = FK_CMP;
  10687     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009CB1; /* 0x42009CAC: je 0x42009cb1 */
  10688 L_42009CAE:
  10689     MEM32(esi + 0x4) = ecx; /* 0x42009CAE: mov dword ptr [esi + 4], ecx */
  10690 L_42009CB1:
  10691     esi = MEM32(ecx + 0x4); /* 0x42009CB1: mov esi, dword ptr [ecx + 4] */
  10692     MEM32(edx + 0x4) = esi; /* 0x42009CB4: mov dword ptr [edx + 4], esi */
  10693     esi = MEM32(edi + 0x4); /* 0x42009CB7: mov esi, dword ptr [edi + 4] */
  10694     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009CBA: cmp ecx, dword ptr [esi + 4] */
  10695     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10697     _flag_k = FK_CMP;
  10698     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CC9; /* 0x42009CBD: jne 0x42009cc9 */
  10699 L_42009CBF:
  10700     MEM32(esi + 0x4) = edx; /* 0x42009CBF: mov dword ptr [esi + 4], edx */
  10701     MEM32(edx) = ecx; /* 0x42009CC2: mov dword ptr [edx], ecx */
  10702     goto L_42009D7F; /* 0x42009CC4: jmp 0x42009d7f */
  10703 L_42009CC9:
  10704     esi = MEM32(ecx + 0x4); /* 0x42009CC9: mov esi, dword ptr [ecx + 4] */
  10705     /* cmp ecx, MEM32(esi) */ /* 0x42009CCC: cmp ecx, dword ptr [esi] */
  10706     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10707     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10708     _flag_k = FK_CMP;
  10709     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CD9; /* 0x42009CCE: jne 0x42009cd9 */
  10710 L_42009CD0:
  10711     MEM32(esi) = edx; /* 0x42009CD0: mov dword ptr [esi], edx */
  10712     MEM32(edx) = ecx; /* 0x42009CD2: mov dword ptr [edx], ecx */
  10713     goto L_42009D7F; /* 0x42009CD4: jmp 0x42009d7f */
  10714 L_42009CD9:
  10715     MEM32(esi + 0x8) = edx; /* 0x42009CD9: mov dword ptr [esi + 8], edx */
  10716     MEM32(edx) = ecx; /* 0x42009CDC: mov dword ptr [edx], ecx */
  10717     goto L_42009D7F; /* 0x42009CDE: jmp 0x42009d7f */
  10718 L_42009CE3:
  10719     edx = MEM32(ecx); /* 0x42009CE3: mov edx, dword ptr [ecx] */
  10720     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009CE5: cmp byte ptr [edx + 0x5c], bl */
  10721     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10722     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10723     _flag_k = FK_NARROW(FK_CMP, 24);
  10724     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D31; /* 0x42009CE8: jne 0x42009d31 */
  10725 L_42009CEA:
  10726     edx = MEM32(ecx + 0x8); /* 0x42009CEA: mov edx, dword ptr [ecx + 8] */
  10727     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009CED: mov byte ptr [edx + 0x5c], bl */
  10728     edx = MEM32(ecx + 0x8); /* 0x42009CF0: mov edx, dword ptr [ecx + 8] */
  10729     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009CF3: mov byte ptr [ecx + 0x5c], 0 */
  10730     esi = MEM32(edx); /* 0x42009CF7: mov esi, dword ptr [edx] */
  10731     MEM32(ecx + 0x8) = esi; /* 0x42009CF9: mov dword ptr [ecx + 8], esi */
  10732     esi = MEM32(edx); /* 0x42009CFC: mov esi, dword ptr [edx] */
  10733     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009CFE: cmp esi, dword ptr [edi + 8] */
  10734     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10736     _flag_k = FK_CMP;
  10737     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D06; /* 0x42009D01: je 0x42009d06 */
  10738 L_42009D03:
  10739     MEM32(esi + 0x4) = ecx; /* 0x42009D03: mov dword ptr [esi + 4], ecx */
  10740 L_42009D06:
  10741     esi = MEM32(ecx + 0x4); /* 0x42009D06: mov esi, dword ptr [ecx + 4] */
  10742     MEM32(edx + 0x4) = esi; /* 0x42009D09: mov dword ptr [edx + 4], esi */
  10743     esi = MEM32(edi + 0x4); /* 0x42009D0C: mov esi, dword ptr [edi + 4] */
  10744     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009D0F: cmp ecx, dword ptr [esi + 4] */
  10745     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10746     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10747     _flag_k = FK_CMP;
  10748     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D19; /* 0x42009D12: jne 0x42009d19 */
  10749 L_42009D14:
  10750     MEM32(esi + 0x4) = edx; /* 0x42009D14: mov dword ptr [esi + 4], edx */
  10751     goto L_42009D27; /* 0x42009D17: jmp 0x42009d27 */
  10752 L_42009D19:
  10753     esi = MEM32(ecx + 0x4); /* 0x42009D19: mov esi, dword ptr [ecx + 4] */
  10754     /* cmp ecx, MEM32(esi) */ /* 0x42009D1C: cmp ecx, dword ptr [esi] */
  10755     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10757     _flag_k = FK_CMP;
  10758     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D24; /* 0x42009D1E: jne 0x42009d24 */
  10759 L_42009D20:
  10760     MEM32(esi) = edx; /* 0x42009D20: mov dword ptr [esi], edx */
  10761     goto L_42009D27; /* 0x42009D22: jmp 0x42009d27 */
  10762 L_42009D24:
  10763     MEM32(esi + 0x8) = edx; /* 0x42009D24: mov dword ptr [esi + 8], edx */
  10764 L_42009D27:
  10765     MEM32(edx) = ecx; /* 0x42009D27: mov dword ptr [edx], ecx */
  10766     MEM32(ecx + 0x4) = edx; /* 0x42009D29: mov dword ptr [ecx + 4], edx */
  10767     ecx = MEM32(eax + 0x4); /* 0x42009D2C: mov ecx, dword ptr [eax + 4] */
  10768     ecx = MEM32(ecx); /* 0x42009D2F: mov ecx, dword ptr [ecx] */
  10769 L_42009D31:
  10770     edx = MEM32(eax + 0x4); /* 0x42009D31: mov edx, dword ptr [eax + 4] */
  10771     SET_LO8(edx, MEM8(edx + 0x5C)); /* 0x42009D34: mov dl, byte ptr [edx + 0x5c] */
  10772     MEM8(ecx + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009D37: mov byte ptr [ecx + 0x5c], dl */
  10773     edx = MEM32(eax + 0x4); /* 0x42009D3A: mov edx, dword ptr [eax + 4] */
  10774     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D3D: mov byte ptr [edx + 0x5c], bl */
  10775     ecx = MEM32(ecx); /* 0x42009D40: mov ecx, dword ptr [ecx] */
  10776     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D42: mov byte ptr [ecx + 0x5c], bl */
  10777     ecx = MEM32(eax + 0x4); /* 0x42009D45: mov ecx, dword ptr [eax + 4] */
  10778     edx = MEM32(ecx); /* 0x42009D48: mov edx, dword ptr [ecx] */
  10779     esi = MEM32(edx + 0x8); /* 0x42009D4A: mov esi, dword ptr [edx + 8] */
  10780     MEM32(ecx) = esi; /* 0x42009D4D: mov dword ptr [ecx], esi */
  10781     esi = MEM32(edx + 0x8); /* 0x42009D4F: mov esi, dword ptr [edx + 8] */
  10782     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009D52: cmp esi, dword ptr [edi + 8] */
  10783     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10784     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10785     _flag_k = FK_CMP;
  10786     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D5A; /* 0x42009D55: je 0x42009d5a */
  10787 L_42009D57:
  10788     MEM32(esi + 0x4) = ecx; /* 0x42009D57: mov dword ptr [esi + 4], ecx */
  10789 L_42009D5A:
  10790     esi = MEM32(ecx + 0x4); /* 0x42009D5A: mov esi, dword ptr [ecx + 4] */
  10791     MEM32(edx + 0x4) = esi; /* 0x42009D5D: mov dword ptr [edx + 4], esi */
  10792     esi = MEM32(edi + 0x4); /* 0x42009D60: mov esi, dword ptr [edi + 4] */
  10793     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009D63: cmp ecx, dword ptr [esi + 4] */
  10794     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10796     _flag_k = FK_CMP;
  10797     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D6D; /* 0x42009D66: jne 0x42009d6d */
  10798 L_42009D68:
  10799     MEM32(esi + 0x4) = edx; /* 0x42009D68: mov dword ptr [esi + 4], edx */
  10800     goto L_42009D7C; /* 0x42009D6B: jmp 0x42009d7c */
  10801 L_42009D6D:
  10802     esi = MEM32(ecx + 0x4); /* 0x42009D6D: mov esi, dword ptr [ecx + 4] */
  10803     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009D70: cmp ecx, dword ptr [esi + 8] */
  10804     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10806     _flag_k = FK_CMP;
  10807     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D7A; /* 0x42009D73: jne 0x42009d7a */
  10808 L_42009D75:
  10809     MEM32(esi + 0x8) = edx; /* 0x42009D75: mov dword ptr [esi + 8], edx */
  10810     goto L_42009D7C; /* 0x42009D78: jmp 0x42009d7c */
  10811 L_42009D7A:
  10812     MEM32(esi) = edx; /* 0x42009D7A: mov dword ptr [esi], edx */
  10813 L_42009D7C:
  10814     MEM32(edx + 0x8) = ecx; /* 0x42009D7C: mov dword ptr [edx + 8], ecx */
  10815 L_42009D7F:
  10816     MEM32(ecx + 0x4) = edx; /* 0x42009D7F: mov dword ptr [ecx + 4], edx */
  10817 L_42009D82:
  10818     esi = MEM32(ebp + (-0x4)); /* 0x42009D82: mov esi, dword ptr [ebp - 4] */
  10819     MEM8(eax + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D85: mov byte ptr [eax + 0x5c], bl */
  10820 L_42009D88:
  10821     ecx = esi + 0xC; /* 0x42009D88: lea ecx, [esi + 0xc] */
  10822     RECOMP_ICALL(0x4200A0F0u); /* 0x42009D8B: call 0x4200a0f0 */ /* not lifted */
  10823     RECOMP_FLAGS_IN();
  10824     PUSH32(esp, esi); /* 0x42009D90: push esi */
  10825     RECOMP_ICALL(0x42016DD0u); /* 0x42009D91: call 0x42016dd0 */ /* not lifted */
  10826     RECOMP_FLAGS_IN();
  10827     eax = MEM32(edi + 0x10); /* 0x42009D96: mov eax, dword ptr [edi + 0x10] */
  10828     edx = MEM32(ebp + 0xC); /* 0x42009D99: mov edx, dword ptr [ebp + 0xc] */
  10829     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10830     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10831     esp = esp + 4; /* 0x42009D9C: add esp, 4 */
  10832     _flag_k = FK_ADD;
  10833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10834     eax = eax - 1; /* 0x42009D9F: dec eax */
  10835     _flag_k = FK_DEC;
  10836     MEM32(edi + 0x10) = eax; /* 0x42009DA0: mov dword ptr [edi + 0x10], eax */
  10837     eax = MEM32(ebp + 0x8); /* 0x42009DA3: mov eax, dword ptr [ebp + 8] */
  10838     edi = POP32_VAL(esp); /* 0x42009DA6: pop edi */
  10839     esi = POP32_VAL(esp); /* 0x42009DA7: pop esi */
  10840     MEM32(eax) = edx; /* 0x42009DA8: mov dword ptr [eax], edx */
  10841     ebx = POP32_VAL(esp); /* 0x42009DAA: pop ebx */
  10842     esp = ebp; /* 0x42009DAB: mov esp, ebp */
  10843     ebp = POP32_VAL(esp); /* 0x42009DAD: pop ebp */
  10844     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42009DAE: ret 8 */
  10845     RECOMP_REGS_OUT();
  10846 }
  10847 
  10848 void sub_42009B15(void) {
  10849     int _fpu_cmp = 0;
  10850     uint32_t _cf = 0;
  10851     int _df = 1;
  10852     uint32_t _flag_k = FK_NONE;
  10853     uint32_t _flag_a = 0, _flag_b = 0;
  10854     uint32_t _itail_tgt = 0;
  10855     RECOMP_REGS_LOCALS
  10856     RECOMP_ENTER(0x42009B15u);
  10857 
  10858 L_42009B15:
  10859     MEM32(ebx + 0x8) = edx; /* 0x42009B15: mov dword ptr [ebx + 8], edx */
  10860     esi = MEM32(ebp + (-0x4)); /* 0x42009B18: mov esi, dword ptr [ebp - 4] */
  10861     SET_LO8(ecx, MEM8(esi + 0x5C)); /* 0x42009B1B: mov cl, byte ptr [esi + 0x5c] */
  10862     SET_LO8(ebx, 1); /* 0x42009B1E: mov bl, 1 */
  10863     /* cmp LO8(ecx), LO8(ebx) */ /* 0x42009B20: cmp cl, bl */
  10864     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10866     _flag_k = FK_NARROW(FK_CMP, 24);
  10867     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D88; /* 0x42009B22: jne 0x42009d88 */
  10868 L_42009B28:
  10869     ecx = MEM32(edi + 0x4); /* 0x42009B28: mov ecx, dword ptr [edi + 4] */
  10870     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x42009B2B: cmp eax, dword ptr [ecx + 4] */
  10871     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10873     _flag_k = FK_CMP;
  10874     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D82; /* 0x42009B2E: je 0x42009d82 */
  10875 L_42009B34:
  10876     /* cmp MEM8(eax + 0x5C), LO8(ebx) */ /* 0x42009B34: cmp byte ptr [eax + 0x5c], bl */
  10877     _flag_a = (uint32_t)(MEM8(eax + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10878     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10879     _flag_k = FK_NARROW(FK_CMP, 24);
  10880     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D82; /* 0x42009B37: jne 0x42009d82 */
  10881 L_42009B3D:
  10882     edx = MEM32(eax + 0x4); /* 0x42009B3D: mov edx, dword ptr [eax + 4] */
  10883     ecx = MEM32(edx); /* 0x42009B40: mov ecx, dword ptr [edx] */
  10884     /* cmp eax, ecx */ /* 0x42009B42: cmp eax, ecx */
  10885     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10887     _flag_k = FK_CMP;
  10888     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BB4; /* 0x42009B44: jne 0x42009bb4 */
  10889 L_42009B46:
  10890     ecx = MEM32(edx + 0x8); /* 0x42009B46: mov ecx, dword ptr [edx + 8] */
  10891     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009B49: mov dl, byte ptr [ecx + 0x5c] */
  10892     /* test LO8(edx), LO8(edx) */ /* 0x42009B4C: test dl, dl */
  10893     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10894     _cf = 0;
  10895     _flag_k = FK_NARROW(FK_TEST, 24);
  10896     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009B9B; /* 0x42009B4E: jne 0x42009b9b */
  10897 L_42009B50:
  10898     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009B50: mov byte ptr [ecx + 0x5c], bl */
  10899     edx = MEM32(eax + 0x4); /* 0x42009B53: mov edx, dword ptr [eax + 4] */
  10900     MEM8(edx + 0x5C) = (uint8_t)(0); /* 0x42009B56: mov byte ptr [edx + 0x5c], 0 */
  10901     ecx = MEM32(eax + 0x4); /* 0x42009B5A: mov ecx, dword ptr [eax + 4] */
  10902     edx = MEM32(ecx + 0x8); /* 0x42009B5D: mov edx, dword ptr [ecx + 8] */
  10903     esi = MEM32(edx); /* 0x42009B60: mov esi, dword ptr [edx] */
  10904     MEM32(ecx + 0x8) = esi; /* 0x42009B62: mov dword ptr [ecx + 8], esi */
  10905     esi = MEM32(edx); /* 0x42009B65: mov esi, dword ptr [edx] */
  10906     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009B67: cmp esi, dword ptr [edi + 8] */
  10907     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10909     _flag_k = FK_CMP;
  10910     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009B6F; /* 0x42009B6A: je 0x42009b6f */
  10911 L_42009B6C:
  10912     MEM32(esi + 0x4) = ecx; /* 0x42009B6C: mov dword ptr [esi + 4], ecx */
  10913 L_42009B6F:
  10914     esi = MEM32(ecx + 0x4); /* 0x42009B6F: mov esi, dword ptr [ecx + 4] */
  10915     MEM32(edx + 0x4) = esi; /* 0x42009B72: mov dword ptr [edx + 4], esi */
  10916     esi = MEM32(edi + 0x4); /* 0x42009B75: mov esi, dword ptr [edi + 4] */
  10917     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009B78: cmp ecx, dword ptr [esi + 4] */
  10918     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10920     _flag_k = FK_CMP;
  10921     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B82; /* 0x42009B7B: jne 0x42009b82 */
  10922 L_42009B7D:
  10923     MEM32(esi + 0x4) = edx; /* 0x42009B7D: mov dword ptr [esi + 4], edx */
  10924     goto L_42009B90; /* 0x42009B80: jmp 0x42009b90 */
  10925 L_42009B82:
  10926     esi = MEM32(ecx + 0x4); /* 0x42009B82: mov esi, dword ptr [ecx + 4] */
  10927     /* cmp ecx, MEM32(esi) */ /* 0x42009B85: cmp ecx, dword ptr [esi] */
  10928     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10929     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10930     _flag_k = FK_CMP;
  10931     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B8D; /* 0x42009B87: jne 0x42009b8d */
  10932 L_42009B89:
  10933     MEM32(esi) = edx; /* 0x42009B89: mov dword ptr [esi], edx */
  10934     goto L_42009B90; /* 0x42009B8B: jmp 0x42009b90 */
  10935 L_42009B8D:
  10936     MEM32(esi + 0x8) = edx; /* 0x42009B8D: mov dword ptr [esi + 8], edx */
  10937 L_42009B90:
  10938     MEM32(edx) = ecx; /* 0x42009B90: mov dword ptr [edx], ecx */
  10939     MEM32(ecx + 0x4) = edx; /* 0x42009B92: mov dword ptr [ecx + 4], edx */
  10940     ecx = MEM32(eax + 0x4); /* 0x42009B95: mov ecx, dword ptr [eax + 4] */
  10941     ecx = MEM32(ecx + 0x8); /* 0x42009B98: mov ecx, dword ptr [ecx + 8] */
  10942 L_42009B9B:
  10943     edx = MEM32(ecx); /* 0x42009B9B: mov edx, dword ptr [ecx] */
  10944     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009B9D: cmp byte ptr [edx + 0x5c], bl */
  10945     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10947     _flag_k = FK_NARROW(FK_CMP, 24);
  10948     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C36; /* 0x42009BA0: jne 0x42009c36 */
  10949 L_42009BA6:
  10950     edx = MEM32(ecx + 0x8); /* 0x42009BA6: mov edx, dword ptr [ecx + 8] */
  10951     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009BA9: cmp byte ptr [edx + 0x5c], bl */
  10952     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10954     _flag_k = FK_NARROW(FK_CMP, 24);
  10955     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C36; /* 0x42009BAC: jne 0x42009c36 */
  10956 L_42009BB2:
  10957     goto L_42009C1E; /* 0x42009BB2: jmp 0x42009c1e */
  10958 L_42009BB4:
  10959     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009BB4: mov dl, byte ptr [ecx + 0x5c] */
  10960     /* test LO8(edx), LO8(edx) */ /* 0x42009BB7: test dl, dl */
  10961     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10962     _cf = 0;
  10963     _flag_k = FK_NARROW(FK_TEST, 24);
  10964     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009C07; /* 0x42009BB9: jne 0x42009c07 */
  10965 L_42009BBB:
  10966     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009BBB: mov byte ptr [ecx + 0x5c], bl */
  10967     ecx = MEM32(eax + 0x4); /* 0x42009BBE: mov ecx, dword ptr [eax + 4] */
  10968     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009BC1: mov byte ptr [ecx + 0x5c], 0 */
  10969     ecx = MEM32(eax + 0x4); /* 0x42009BC5: mov ecx, dword ptr [eax + 4] */
  10970     edx = MEM32(ecx); /* 0x42009BC8: mov edx, dword ptr [ecx] */
  10971     esi = MEM32(edx + 0x8); /* 0x42009BCA: mov esi, dword ptr [edx + 8] */
  10972     MEM32(ecx) = esi; /* 0x42009BCD: mov dword ptr [ecx], esi */
  10973     esi = MEM32(edx + 0x8); /* 0x42009BCF: mov esi, dword ptr [edx + 8] */
  10974     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009BD2: cmp esi, dword ptr [edi + 8] */
  10975     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10976     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10977     _flag_k = FK_CMP;
  10978     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009BDA; /* 0x42009BD5: je 0x42009bda */
  10979 L_42009BD7:
  10980     MEM32(esi + 0x4) = ecx; /* 0x42009BD7: mov dword ptr [esi + 4], ecx */
  10981 L_42009BDA:
  10982     esi = MEM32(ecx + 0x4); /* 0x42009BDA: mov esi, dword ptr [ecx + 4] */
  10983     MEM32(edx + 0x4) = esi; /* 0x42009BDD: mov dword ptr [edx + 4], esi */
  10984     esi = MEM32(edi + 0x4); /* 0x42009BE0: mov esi, dword ptr [edi + 4] */
  10985     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009BE3: cmp ecx, dword ptr [esi + 4] */
  10986     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10987     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10988     _flag_k = FK_CMP;
  10989     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BED; /* 0x42009BE6: jne 0x42009bed */
  10990 L_42009BE8:
  10991     MEM32(esi + 0x4) = edx; /* 0x42009BE8: mov dword ptr [esi + 4], edx */
  10992     goto L_42009BFC; /* 0x42009BEB: jmp 0x42009bfc */
  10993 L_42009BED:
  10994     esi = MEM32(ecx + 0x4); /* 0x42009BED: mov esi, dword ptr [ecx + 4] */
  10995     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009BF0: cmp ecx, dword ptr [esi + 8] */
  10996     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10998     _flag_k = FK_CMP;
  10999     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BFA; /* 0x42009BF3: jne 0x42009bfa */
  11000 L_42009BF5:
  11001     MEM32(esi + 0x8) = edx; /* 0x42009BF5: mov dword ptr [esi + 8], edx */
  11002     goto L_42009BFC; /* 0x42009BF8: jmp 0x42009bfc */
  11003 L_42009BFA:
  11004     MEM32(esi) = edx; /* 0x42009BFA: mov dword ptr [esi], edx */
  11005 L_42009BFC:
  11006     MEM32(edx + 0x8) = ecx; /* 0x42009BFC: mov dword ptr [edx + 8], ecx */
  11007     MEM32(ecx + 0x4) = edx; /* 0x42009BFF: mov dword ptr [ecx + 4], edx */
  11008     edx = MEM32(eax + 0x4); /* 0x42009C02: mov edx, dword ptr [eax + 4] */
  11009     ecx = MEM32(edx); /* 0x42009C05: mov ecx, dword ptr [edx] */
  11010 L_42009C07:
  11011     edx = MEM32(ecx + 0x8); /* 0x42009C07: mov edx, dword ptr [ecx + 8] */
  11012     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C0A: cmp byte ptr [edx + 0x5c], bl */
  11013     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11015     _flag_k = FK_NARROW(FK_CMP, 24);
  11016     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CE3; /* 0x42009C0D: jne 0x42009ce3 */
  11017 L_42009C13:
  11018     edx = MEM32(ecx); /* 0x42009C13: mov edx, dword ptr [ecx] */
  11019     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C15: cmp byte ptr [edx + 0x5c], bl */
  11020     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11022     _flag_k = FK_NARROW(FK_CMP, 24);
  11023     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CE3; /* 0x42009C18: jne 0x42009ce3 */
  11024 L_42009C1E:
  11025     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009C1E: mov byte ptr [ecx + 0x5c], 0 */
  11026     ecx = MEM32(edi + 0x4); /* 0x42009C22: mov ecx, dword ptr [edi + 4] */
  11027     eax = MEM32(eax + 0x4); /* 0x42009C25: mov eax, dword ptr [eax + 4] */
  11028     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x42009C28: cmp eax, dword ptr [ecx + 4] */
  11029     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  11030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11031     _flag_k = FK_CMP;
  11032     RECOMP_BACKEDGE();
  11033     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B34; /* 0x42009C2B: jne 0x42009b34 */
  11034 L_42009C31:
  11035     goto L_42009D82; /* 0x42009C31: jmp 0x42009d82 */
  11036 L_42009C36:
  11037     edx = MEM32(ecx + 0x8); /* 0x42009C36: mov edx, dword ptr [ecx + 8] */
  11038     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C39: cmp byte ptr [edx + 0x5c], bl */
  11039     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11041     _flag_k = FK_NARROW(FK_CMP, 24);
  11042     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C87; /* 0x42009C3C: jne 0x42009c87 */
  11043 L_42009C3E:
  11044     edx = MEM32(ecx); /* 0x42009C3E: mov edx, dword ptr [ecx] */
  11045     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C40: mov byte ptr [edx + 0x5c], bl */
  11046     edx = MEM32(ecx); /* 0x42009C43: mov edx, dword ptr [ecx] */
  11047     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009C45: mov byte ptr [ecx + 0x5c], 0 */
  11048     esi = MEM32(edx + 0x8); /* 0x42009C49: mov esi, dword ptr [edx + 8] */
  11049     MEM32(ecx) = esi; /* 0x42009C4C: mov dword ptr [ecx], esi */
  11050     esi = MEM32(edx + 0x8); /* 0x42009C4E: mov esi, dword ptr [edx + 8] */
  11051     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009C51: cmp esi, dword ptr [edi + 8] */
  11052     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11054     _flag_k = FK_CMP;
  11055     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009C59; /* 0x42009C54: je 0x42009c59 */
  11056 L_42009C56:
  11057     MEM32(esi + 0x4) = ecx; /* 0x42009C56: mov dword ptr [esi + 4], ecx */
  11058 L_42009C59:
  11059     esi = MEM32(ecx + 0x4); /* 0x42009C59: mov esi, dword ptr [ecx + 4] */
  11060     MEM32(edx + 0x4) = esi; /* 0x42009C5C: mov dword ptr [edx + 4], esi */
  11061     esi = MEM32(edi + 0x4); /* 0x42009C5F: mov esi, dword ptr [edi + 4] */
  11062     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009C62: cmp ecx, dword ptr [esi + 4] */
  11063     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11065     _flag_k = FK_CMP;
  11066     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C6C; /* 0x42009C65: jne 0x42009c6c */
  11067 L_42009C67:
  11068     MEM32(esi + 0x4) = edx; /* 0x42009C67: mov dword ptr [esi + 4], edx */
  11069     goto L_42009C7B; /* 0x42009C6A: jmp 0x42009c7b */
  11070 L_42009C6C:
  11071     esi = MEM32(ecx + 0x4); /* 0x42009C6C: mov esi, dword ptr [ecx + 4] */
  11072     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009C6F: cmp ecx, dword ptr [esi + 8] */
  11073     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11075     _flag_k = FK_CMP;
  11076     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C79; /* 0x42009C72: jne 0x42009c79 */
  11077 L_42009C74:
  11078     MEM32(esi + 0x8) = edx; /* 0x42009C74: mov dword ptr [esi + 8], edx */
  11079     goto L_42009C7B; /* 0x42009C77: jmp 0x42009c7b */
  11080 L_42009C79:
  11081     MEM32(esi) = edx; /* 0x42009C79: mov dword ptr [esi], edx */
  11082 L_42009C7B:
  11083     MEM32(edx + 0x8) = ecx; /* 0x42009C7B: mov dword ptr [edx + 8], ecx */
  11084     MEM32(ecx + 0x4) = edx; /* 0x42009C7E: mov dword ptr [ecx + 4], edx */
  11085     ecx = MEM32(eax + 0x4); /* 0x42009C81: mov ecx, dword ptr [eax + 4] */
  11086     ecx = MEM32(ecx + 0x8); /* 0x42009C84: mov ecx, dword ptr [ecx + 8] */
  11087 L_42009C87:
  11088     edx = MEM32(eax + 0x4); /* 0x42009C87: mov edx, dword ptr [eax + 4] */
  11089     SET_LO8(edx, MEM8(edx + 0x5C)); /* 0x42009C8A: mov dl, byte ptr [edx + 0x5c] */
  11090     MEM8(ecx + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009C8D: mov byte ptr [ecx + 0x5c], dl */
  11091     edx = MEM32(eax + 0x4); /* 0x42009C90: mov edx, dword ptr [eax + 4] */
  11092     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C93: mov byte ptr [edx + 0x5c], bl */
  11093     ecx = MEM32(ecx + 0x8); /* 0x42009C96: mov ecx, dword ptr [ecx + 8] */
  11094     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C99: mov byte ptr [ecx + 0x5c], bl */
  11095     ecx = MEM32(eax + 0x4); /* 0x42009C9C: mov ecx, dword ptr [eax + 4] */
  11096     edx = MEM32(ecx + 0x8); /* 0x42009C9F: mov edx, dword ptr [ecx + 8] */
  11097     esi = MEM32(edx); /* 0x42009CA2: mov esi, dword ptr [edx] */
  11098     MEM32(ecx + 0x8) = esi; /* 0x42009CA4: mov dword ptr [ecx + 8], esi */
  11099     esi = MEM32(edx); /* 0x42009CA7: mov esi, dword ptr [edx] */
  11100     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009CA9: cmp esi, dword ptr [edi + 8] */
  11101     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11103     _flag_k = FK_CMP;
  11104     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009CB1; /* 0x42009CAC: je 0x42009cb1 */
  11105 L_42009CAE:
  11106     MEM32(esi + 0x4) = ecx; /* 0x42009CAE: mov dword ptr [esi + 4], ecx */
  11107 L_42009CB1:
  11108     esi = MEM32(ecx + 0x4); /* 0x42009CB1: mov esi, dword ptr [ecx + 4] */
  11109     MEM32(edx + 0x4) = esi; /* 0x42009CB4: mov dword ptr [edx + 4], esi */
  11110     esi = MEM32(edi + 0x4); /* 0x42009CB7: mov esi, dword ptr [edi + 4] */
  11111     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009CBA: cmp ecx, dword ptr [esi + 4] */
  11112     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11114     _flag_k = FK_CMP;
  11115     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CC9; /* 0x42009CBD: jne 0x42009cc9 */
  11116 L_42009CBF:
  11117     MEM32(esi + 0x4) = edx; /* 0x42009CBF: mov dword ptr [esi + 4], edx */
  11118     MEM32(edx) = ecx; /* 0x42009CC2: mov dword ptr [edx], ecx */
  11119     goto L_42009D7F; /* 0x42009CC4: jmp 0x42009d7f */
  11120 L_42009CC9:
  11121     esi = MEM32(ecx + 0x4); /* 0x42009CC9: mov esi, dword ptr [ecx + 4] */
  11122     /* cmp ecx, MEM32(esi) */ /* 0x42009CCC: cmp ecx, dword ptr [esi] */
  11123     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  11124     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11125     _flag_k = FK_CMP;
  11126     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CD9; /* 0x42009CCE: jne 0x42009cd9 */
  11127 L_42009CD0:
  11128     MEM32(esi) = edx; /* 0x42009CD0: mov dword ptr [esi], edx */
  11129     MEM32(edx) = ecx; /* 0x42009CD2: mov dword ptr [edx], ecx */
  11130     goto L_42009D7F; /* 0x42009CD4: jmp 0x42009d7f */
  11131 L_42009CD9:
  11132     MEM32(esi + 0x8) = edx; /* 0x42009CD9: mov dword ptr [esi + 8], edx */
  11133     MEM32(edx) = ecx; /* 0x42009CDC: mov dword ptr [edx], ecx */
  11134     goto L_42009D7F; /* 0x42009CDE: jmp 0x42009d7f */
  11135 L_42009CE3:
  11136     edx = MEM32(ecx); /* 0x42009CE3: mov edx, dword ptr [ecx] */
  11137     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009CE5: cmp byte ptr [edx + 0x5c], bl */
  11138     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11140     _flag_k = FK_NARROW(FK_CMP, 24);
  11141     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D31; /* 0x42009CE8: jne 0x42009d31 */
  11142 L_42009CEA:
  11143     edx = MEM32(ecx + 0x8); /* 0x42009CEA: mov edx, dword ptr [ecx + 8] */
  11144     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009CED: mov byte ptr [edx + 0x5c], bl */
  11145     edx = MEM32(ecx + 0x8); /* 0x42009CF0: mov edx, dword ptr [ecx + 8] */
  11146     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009CF3: mov byte ptr [ecx + 0x5c], 0 */
  11147     esi = MEM32(edx); /* 0x42009CF7: mov esi, dword ptr [edx] */
  11148     MEM32(ecx + 0x8) = esi; /* 0x42009CF9: mov dword ptr [ecx + 8], esi */
  11149     esi = MEM32(edx); /* 0x42009CFC: mov esi, dword ptr [edx] */
  11150     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009CFE: cmp esi, dword ptr [edi + 8] */
  11151     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11153     _flag_k = FK_CMP;
  11154     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D06; /* 0x42009D01: je 0x42009d06 */
  11155 L_42009D03:
  11156     MEM32(esi + 0x4) = ecx; /* 0x42009D03: mov dword ptr [esi + 4], ecx */
  11157 L_42009D06:
  11158     esi = MEM32(ecx + 0x4); /* 0x42009D06: mov esi, dword ptr [ecx + 4] */
  11159     MEM32(edx + 0x4) = esi; /* 0x42009D09: mov dword ptr [edx + 4], esi */
  11160     esi = MEM32(edi + 0x4); /* 0x42009D0C: mov esi, dword ptr [edi + 4] */
  11161     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009D0F: cmp ecx, dword ptr [esi + 4] */
  11162     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11164     _flag_k = FK_CMP;
  11165     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D19; /* 0x42009D12: jne 0x42009d19 */
  11166 L_42009D14:
  11167     MEM32(esi + 0x4) = edx; /* 0x42009D14: mov dword ptr [esi + 4], edx */
  11168     goto L_42009D27; /* 0x42009D17: jmp 0x42009d27 */
  11169 L_42009D19:
  11170     esi = MEM32(ecx + 0x4); /* 0x42009D19: mov esi, dword ptr [ecx + 4] */
  11171     /* cmp ecx, MEM32(esi) */ /* 0x42009D1C: cmp ecx, dword ptr [esi] */
  11172     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  11173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11174     _flag_k = FK_CMP;
  11175     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D24; /* 0x42009D1E: jne 0x42009d24 */
  11176 L_42009D20:
  11177     MEM32(esi) = edx; /* 0x42009D20: mov dword ptr [esi], edx */
  11178     goto L_42009D27; /* 0x42009D22: jmp 0x42009d27 */
  11179 L_42009D24:
  11180     MEM32(esi + 0x8) = edx; /* 0x42009D24: mov dword ptr [esi + 8], edx */
  11181 L_42009D27:
  11182     MEM32(edx) = ecx; /* 0x42009D27: mov dword ptr [edx], ecx */
  11183     MEM32(ecx + 0x4) = edx; /* 0x42009D29: mov dword ptr [ecx + 4], edx */
  11184     ecx = MEM32(eax + 0x4); /* 0x42009D2C: mov ecx, dword ptr [eax + 4] */
  11185     ecx = MEM32(ecx); /* 0x42009D2F: mov ecx, dword ptr [ecx] */
  11186 L_42009D31:
  11187     edx = MEM32(eax + 0x4); /* 0x42009D31: mov edx, dword ptr [eax + 4] */
  11188     SET_LO8(edx, MEM8(edx + 0x5C)); /* 0x42009D34: mov dl, byte ptr [edx + 0x5c] */
  11189     MEM8(ecx + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009D37: mov byte ptr [ecx + 0x5c], dl */
  11190     edx = MEM32(eax + 0x4); /* 0x42009D3A: mov edx, dword ptr [eax + 4] */
  11191     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D3D: mov byte ptr [edx + 0x5c], bl */
  11192     ecx = MEM32(ecx); /* 0x42009D40: mov ecx, dword ptr [ecx] */
  11193     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D42: mov byte ptr [ecx + 0x5c], bl */
  11194     ecx = MEM32(eax + 0x4); /* 0x42009D45: mov ecx, dword ptr [eax + 4] */
  11195     edx = MEM32(ecx); /* 0x42009D48: mov edx, dword ptr [ecx] */
  11196     esi = MEM32(edx + 0x8); /* 0x42009D4A: mov esi, dword ptr [edx + 8] */
  11197     MEM32(ecx) = esi; /* 0x42009D4D: mov dword ptr [ecx], esi */
  11198     esi = MEM32(edx + 0x8); /* 0x42009D4F: mov esi, dword ptr [edx + 8] */
  11199     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009D52: cmp esi, dword ptr [edi + 8] */
  11200     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11201     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11202     _flag_k = FK_CMP;
  11203     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D5A; /* 0x42009D55: je 0x42009d5a */
  11204 L_42009D57:
  11205     MEM32(esi + 0x4) = ecx; /* 0x42009D57: mov dword ptr [esi + 4], ecx */
  11206 L_42009D5A:
  11207     esi = MEM32(ecx + 0x4); /* 0x42009D5A: mov esi, dword ptr [ecx + 4] */
  11208     MEM32(edx + 0x4) = esi; /* 0x42009D5D: mov dword ptr [edx + 4], esi */
  11209     esi = MEM32(edi + 0x4); /* 0x42009D60: mov esi, dword ptr [edi + 4] */
  11210     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009D63: cmp ecx, dword ptr [esi + 4] */
  11211     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11212     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11213     _flag_k = FK_CMP;
  11214     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D6D; /* 0x42009D66: jne 0x42009d6d */
  11215 L_42009D68:
  11216     MEM32(esi + 0x4) = edx; /* 0x42009D68: mov dword ptr [esi + 4], edx */
  11217     goto L_42009D7C; /* 0x42009D6B: jmp 0x42009d7c */
  11218 L_42009D6D:
  11219     esi = MEM32(ecx + 0x4); /* 0x42009D6D: mov esi, dword ptr [ecx + 4] */
  11220     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009D70: cmp ecx, dword ptr [esi + 8] */
  11221     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11223     _flag_k = FK_CMP;
  11224     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D7A; /* 0x42009D73: jne 0x42009d7a */
  11225 L_42009D75:
  11226     MEM32(esi + 0x8) = edx; /* 0x42009D75: mov dword ptr [esi + 8], edx */
  11227     goto L_42009D7C; /* 0x42009D78: jmp 0x42009d7c */
  11228 L_42009D7A:
  11229     MEM32(esi) = edx; /* 0x42009D7A: mov dword ptr [esi], edx */
  11230 L_42009D7C:
  11231     MEM32(edx + 0x8) = ecx; /* 0x42009D7C: mov dword ptr [edx + 8], ecx */
  11232 L_42009D7F:
  11233     MEM32(ecx + 0x4) = edx; /* 0x42009D7F: mov dword ptr [ecx + 4], edx */
  11234 L_42009D82:
  11235     esi = MEM32(ebp + (-0x4)); /* 0x42009D82: mov esi, dword ptr [ebp - 4] */
  11236     MEM8(eax + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D85: mov byte ptr [eax + 0x5c], bl */
  11237 L_42009D88:
  11238     ecx = esi + 0xC; /* 0x42009D88: lea ecx, [esi + 0xc] */
  11239     RECOMP_ICALL(0x4200A0F0u); /* 0x42009D8B: call 0x4200a0f0 */ /* not lifted */
  11240     RECOMP_FLAGS_IN();
  11241     PUSH32(esp, esi); /* 0x42009D90: push esi */
  11242     RECOMP_ICALL(0x42016DD0u); /* 0x42009D91: call 0x42016dd0 */ /* not lifted */
  11243     RECOMP_FLAGS_IN();
  11244     eax = MEM32(edi + 0x10); /* 0x42009D96: mov eax, dword ptr [edi + 0x10] */
  11245     edx = MEM32(ebp + 0xC); /* 0x42009D99: mov edx, dword ptr [ebp + 0xc] */
  11246     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11247     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11248     esp = esp + 4; /* 0x42009D9C: add esp, 4 */
  11249     _flag_k = FK_ADD;
  11250     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11251     eax = eax - 1; /* 0x42009D9F: dec eax */
  11252     _flag_k = FK_DEC;
  11253     MEM32(edi + 0x10) = eax; /* 0x42009DA0: mov dword ptr [edi + 0x10], eax */
  11254     eax = MEM32(ebp + 0x8); /* 0x42009DA3: mov eax, dword ptr [ebp + 8] */
  11255     edi = POP32_VAL(esp); /* 0x42009DA6: pop edi */
  11256     esi = POP32_VAL(esp); /* 0x42009DA7: pop esi */
  11257     MEM32(eax) = edx; /* 0x42009DA8: mov dword ptr [eax], edx */
  11258     ebx = POP32_VAL(esp); /* 0x42009DAA: pop ebx */
  11259     esp = ebp; /* 0x42009DAB: mov esp, ebp */
  11260     ebp = POP32_VAL(esp); /* 0x42009DAD: pop ebp */
  11261     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42009DAE: ret 8 */
  11262     RECOMP_REGS_OUT();
  11263 }
  11264 
  11265 void sub_42009B34(void) {
  11266     int _fpu_cmp = 0;
  11267     uint32_t _cf = 0;
  11268     int _df = 1;
  11269     uint32_t _flag_k = FK_NONE;
  11270     uint32_t _flag_a = 0, _flag_b = 0;
  11271     uint32_t _itail_tgt = 0;
  11272     RECOMP_REGS_LOCALS
  11273     RECOMP_ENTER(0x42009B34u);
  11274 
  11275 L_42009B34:
  11276     /* cmp MEM8(eax + 0x5C), LO8(ebx) */ /* 0x42009B34: cmp byte ptr [eax + 0x5c], bl */
  11277     _flag_a = (uint32_t)(MEM8(eax + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11278     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11279     _flag_k = FK_NARROW(FK_CMP, 24);
  11280     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D82; /* 0x42009B37: jne 0x42009d82 */
  11281 L_42009B3D:
  11282     edx = MEM32(eax + 0x4); /* 0x42009B3D: mov edx, dword ptr [eax + 4] */
  11283     ecx = MEM32(edx); /* 0x42009B40: mov ecx, dword ptr [edx] */
  11284     /* cmp eax, ecx */ /* 0x42009B42: cmp eax, ecx */
  11285     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  11286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11287     _flag_k = FK_CMP;
  11288     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BB4; /* 0x42009B44: jne 0x42009bb4 */
  11289 L_42009B46:
  11290     ecx = MEM32(edx + 0x8); /* 0x42009B46: mov ecx, dword ptr [edx + 8] */
  11291     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009B49: mov dl, byte ptr [ecx + 0x5c] */
  11292     /* test LO8(edx), LO8(edx) */ /* 0x42009B4C: test dl, dl */
  11293     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  11294     _cf = 0;
  11295     _flag_k = FK_NARROW(FK_TEST, 24);
  11296     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009B9B; /* 0x42009B4E: jne 0x42009b9b */
  11297 L_42009B50:
  11298     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009B50: mov byte ptr [ecx + 0x5c], bl */
  11299     edx = MEM32(eax + 0x4); /* 0x42009B53: mov edx, dword ptr [eax + 4] */
  11300     MEM8(edx + 0x5C) = (uint8_t)(0); /* 0x42009B56: mov byte ptr [edx + 0x5c], 0 */
  11301     ecx = MEM32(eax + 0x4); /* 0x42009B5A: mov ecx, dword ptr [eax + 4] */
  11302     edx = MEM32(ecx + 0x8); /* 0x42009B5D: mov edx, dword ptr [ecx + 8] */
  11303     esi = MEM32(edx); /* 0x42009B60: mov esi, dword ptr [edx] */
  11304     MEM32(ecx + 0x8) = esi; /* 0x42009B62: mov dword ptr [ecx + 8], esi */
  11305     esi = MEM32(edx); /* 0x42009B65: mov esi, dword ptr [edx] */
  11306     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009B67: cmp esi, dword ptr [edi + 8] */
  11307     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11309     _flag_k = FK_CMP;
  11310     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009B6F; /* 0x42009B6A: je 0x42009b6f */
  11311 L_42009B6C:
  11312     MEM32(esi + 0x4) = ecx; /* 0x42009B6C: mov dword ptr [esi + 4], ecx */
  11313 L_42009B6F:
  11314     esi = MEM32(ecx + 0x4); /* 0x42009B6F: mov esi, dword ptr [ecx + 4] */
  11315     MEM32(edx + 0x4) = esi; /* 0x42009B72: mov dword ptr [edx + 4], esi */
  11316     esi = MEM32(edi + 0x4); /* 0x42009B75: mov esi, dword ptr [edi + 4] */
  11317     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009B78: cmp ecx, dword ptr [esi + 4] */
  11318     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11320     _flag_k = FK_CMP;
  11321     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B82; /* 0x42009B7B: jne 0x42009b82 */
  11322 L_42009B7D:
  11323     MEM32(esi + 0x4) = edx; /* 0x42009B7D: mov dword ptr [esi + 4], edx */
  11324     goto L_42009B90; /* 0x42009B80: jmp 0x42009b90 */
  11325 L_42009B82:
  11326     esi = MEM32(ecx + 0x4); /* 0x42009B82: mov esi, dword ptr [ecx + 4] */
  11327     /* cmp ecx, MEM32(esi) */ /* 0x42009B85: cmp ecx, dword ptr [esi] */
  11328     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  11329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11330     _flag_k = FK_CMP;
  11331     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B8D; /* 0x42009B87: jne 0x42009b8d */
  11332 L_42009B89:
  11333     MEM32(esi) = edx; /* 0x42009B89: mov dword ptr [esi], edx */
  11334     goto L_42009B90; /* 0x42009B8B: jmp 0x42009b90 */
  11335 L_42009B8D:
  11336     MEM32(esi + 0x8) = edx; /* 0x42009B8D: mov dword ptr [esi + 8], edx */
  11337 L_42009B90:
  11338     MEM32(edx) = ecx; /* 0x42009B90: mov dword ptr [edx], ecx */
  11339     MEM32(ecx + 0x4) = edx; /* 0x42009B92: mov dword ptr [ecx + 4], edx */
  11340     ecx = MEM32(eax + 0x4); /* 0x42009B95: mov ecx, dword ptr [eax + 4] */
  11341     ecx = MEM32(ecx + 0x8); /* 0x42009B98: mov ecx, dword ptr [ecx + 8] */
  11342 L_42009B9B:
  11343     edx = MEM32(ecx); /* 0x42009B9B: mov edx, dword ptr [ecx] */
  11344     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009B9D: cmp byte ptr [edx + 0x5c], bl */
  11345     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11346     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11347     _flag_k = FK_NARROW(FK_CMP, 24);
  11348     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C36; /* 0x42009BA0: jne 0x42009c36 */
  11349 L_42009BA6:
  11350     edx = MEM32(ecx + 0x8); /* 0x42009BA6: mov edx, dword ptr [ecx + 8] */
  11351     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009BA9: cmp byte ptr [edx + 0x5c], bl */
  11352     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11353     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11354     _flag_k = FK_NARROW(FK_CMP, 24);
  11355     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C36; /* 0x42009BAC: jne 0x42009c36 */
  11356 L_42009BB2:
  11357     goto L_42009C1E; /* 0x42009BB2: jmp 0x42009c1e */
  11358 L_42009BB4:
  11359     SET_LO8(edx, MEM8(ecx + 0x5C)); /* 0x42009BB4: mov dl, byte ptr [ecx + 0x5c] */
  11360     /* test LO8(edx), LO8(edx) */ /* 0x42009BB7: test dl, dl */
  11361     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  11362     _cf = 0;
  11363     _flag_k = FK_NARROW(FK_TEST, 24);
  11364     if (TEST_NZ(_flag_a, _flag_b)) goto L_42009C07; /* 0x42009BB9: jne 0x42009c07 */
  11365 L_42009BBB:
  11366     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009BBB: mov byte ptr [ecx + 0x5c], bl */
  11367     ecx = MEM32(eax + 0x4); /* 0x42009BBE: mov ecx, dword ptr [eax + 4] */
  11368     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009BC1: mov byte ptr [ecx + 0x5c], 0 */
  11369     ecx = MEM32(eax + 0x4); /* 0x42009BC5: mov ecx, dword ptr [eax + 4] */
  11370     edx = MEM32(ecx); /* 0x42009BC8: mov edx, dword ptr [ecx] */
  11371     esi = MEM32(edx + 0x8); /* 0x42009BCA: mov esi, dword ptr [edx + 8] */
  11372     MEM32(ecx) = esi; /* 0x42009BCD: mov dword ptr [ecx], esi */
  11373     esi = MEM32(edx + 0x8); /* 0x42009BCF: mov esi, dword ptr [edx + 8] */
  11374     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009BD2: cmp esi, dword ptr [edi + 8] */
  11375     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11377     _flag_k = FK_CMP;
  11378     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009BDA; /* 0x42009BD5: je 0x42009bda */
  11379 L_42009BD7:
  11380     MEM32(esi + 0x4) = ecx; /* 0x42009BD7: mov dword ptr [esi + 4], ecx */
  11381 L_42009BDA:
  11382     esi = MEM32(ecx + 0x4); /* 0x42009BDA: mov esi, dword ptr [ecx + 4] */
  11383     MEM32(edx + 0x4) = esi; /* 0x42009BDD: mov dword ptr [edx + 4], esi */
  11384     esi = MEM32(edi + 0x4); /* 0x42009BE0: mov esi, dword ptr [edi + 4] */
  11385     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009BE3: cmp ecx, dword ptr [esi + 4] */
  11386     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11388     _flag_k = FK_CMP;
  11389     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BED; /* 0x42009BE6: jne 0x42009bed */
  11390 L_42009BE8:
  11391     MEM32(esi + 0x4) = edx; /* 0x42009BE8: mov dword ptr [esi + 4], edx */
  11392     goto L_42009BFC; /* 0x42009BEB: jmp 0x42009bfc */
  11393 L_42009BED:
  11394     esi = MEM32(ecx + 0x4); /* 0x42009BED: mov esi, dword ptr [ecx + 4] */
  11395     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009BF0: cmp ecx, dword ptr [esi + 8] */
  11396     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11398     _flag_k = FK_CMP;
  11399     if (CMP_NE(_flag_a, _flag_b)) goto L_42009BFA; /* 0x42009BF3: jne 0x42009bfa */
  11400 L_42009BF5:
  11401     MEM32(esi + 0x8) = edx; /* 0x42009BF5: mov dword ptr [esi + 8], edx */
  11402     goto L_42009BFC; /* 0x42009BF8: jmp 0x42009bfc */
  11403 L_42009BFA:
  11404     MEM32(esi) = edx; /* 0x42009BFA: mov dword ptr [esi], edx */
  11405 L_42009BFC:
  11406     MEM32(edx + 0x8) = ecx; /* 0x42009BFC: mov dword ptr [edx + 8], ecx */
  11407     MEM32(ecx + 0x4) = edx; /* 0x42009BFF: mov dword ptr [ecx + 4], edx */
  11408     edx = MEM32(eax + 0x4); /* 0x42009C02: mov edx, dword ptr [eax + 4] */
  11409     ecx = MEM32(edx); /* 0x42009C05: mov ecx, dword ptr [edx] */
  11410 L_42009C07:
  11411     edx = MEM32(ecx + 0x8); /* 0x42009C07: mov edx, dword ptr [ecx + 8] */
  11412     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C0A: cmp byte ptr [edx + 0x5c], bl */
  11413     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11414     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11415     _flag_k = FK_NARROW(FK_CMP, 24);
  11416     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CE3; /* 0x42009C0D: jne 0x42009ce3 */
  11417 L_42009C13:
  11418     edx = MEM32(ecx); /* 0x42009C13: mov edx, dword ptr [ecx] */
  11419     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C15: cmp byte ptr [edx + 0x5c], bl */
  11420     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11422     _flag_k = FK_NARROW(FK_CMP, 24);
  11423     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CE3; /* 0x42009C18: jne 0x42009ce3 */
  11424 L_42009C1E:
  11425     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009C1E: mov byte ptr [ecx + 0x5c], 0 */
  11426     ecx = MEM32(edi + 0x4); /* 0x42009C22: mov ecx, dword ptr [edi + 4] */
  11427     eax = MEM32(eax + 0x4); /* 0x42009C25: mov eax, dword ptr [eax + 4] */
  11428     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x42009C28: cmp eax, dword ptr [ecx + 4] */
  11429     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  11430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11431     _flag_k = FK_CMP;
  11432     RECOMP_BACKEDGE();
  11433     if (CMP_NE(_flag_a, _flag_b)) goto L_42009B34; /* 0x42009C2B: jne 0x42009b34 */
  11434 L_42009C31:
  11435     goto L_42009D82; /* 0x42009C31: jmp 0x42009d82 */
  11436 L_42009C36:
  11437     edx = MEM32(ecx + 0x8); /* 0x42009C36: mov edx, dword ptr [ecx + 8] */
  11438     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009C39: cmp byte ptr [edx + 0x5c], bl */
  11439     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11441     _flag_k = FK_NARROW(FK_CMP, 24);
  11442     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C87; /* 0x42009C3C: jne 0x42009c87 */
  11443 L_42009C3E:
  11444     edx = MEM32(ecx); /* 0x42009C3E: mov edx, dword ptr [ecx] */
  11445     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C40: mov byte ptr [edx + 0x5c], bl */
  11446     edx = MEM32(ecx); /* 0x42009C43: mov edx, dword ptr [ecx] */
  11447     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009C45: mov byte ptr [ecx + 0x5c], 0 */
  11448     esi = MEM32(edx + 0x8); /* 0x42009C49: mov esi, dword ptr [edx + 8] */
  11449     MEM32(ecx) = esi; /* 0x42009C4C: mov dword ptr [ecx], esi */
  11450     esi = MEM32(edx + 0x8); /* 0x42009C4E: mov esi, dword ptr [edx + 8] */
  11451     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009C51: cmp esi, dword ptr [edi + 8] */
  11452     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11454     _flag_k = FK_CMP;
  11455     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009C59; /* 0x42009C54: je 0x42009c59 */
  11456 L_42009C56:
  11457     MEM32(esi + 0x4) = ecx; /* 0x42009C56: mov dword ptr [esi + 4], ecx */
  11458 L_42009C59:
  11459     esi = MEM32(ecx + 0x4); /* 0x42009C59: mov esi, dword ptr [ecx + 4] */
  11460     MEM32(edx + 0x4) = esi; /* 0x42009C5C: mov dword ptr [edx + 4], esi */
  11461     esi = MEM32(edi + 0x4); /* 0x42009C5F: mov esi, dword ptr [edi + 4] */
  11462     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009C62: cmp ecx, dword ptr [esi + 4] */
  11463     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11465     _flag_k = FK_CMP;
  11466     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C6C; /* 0x42009C65: jne 0x42009c6c */
  11467 L_42009C67:
  11468     MEM32(esi + 0x4) = edx; /* 0x42009C67: mov dword ptr [esi + 4], edx */
  11469     goto L_42009C7B; /* 0x42009C6A: jmp 0x42009c7b */
  11470 L_42009C6C:
  11471     esi = MEM32(ecx + 0x4); /* 0x42009C6C: mov esi, dword ptr [ecx + 4] */
  11472     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009C6F: cmp ecx, dword ptr [esi + 8] */
  11473     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11475     _flag_k = FK_CMP;
  11476     if (CMP_NE(_flag_a, _flag_b)) goto L_42009C79; /* 0x42009C72: jne 0x42009c79 */
  11477 L_42009C74:
  11478     MEM32(esi + 0x8) = edx; /* 0x42009C74: mov dword ptr [esi + 8], edx */
  11479     goto L_42009C7B; /* 0x42009C77: jmp 0x42009c7b */
  11480 L_42009C79:
  11481     MEM32(esi) = edx; /* 0x42009C79: mov dword ptr [esi], edx */
  11482 L_42009C7B:
  11483     MEM32(edx + 0x8) = ecx; /* 0x42009C7B: mov dword ptr [edx + 8], ecx */
  11484     MEM32(ecx + 0x4) = edx; /* 0x42009C7E: mov dword ptr [ecx + 4], edx */
  11485     ecx = MEM32(eax + 0x4); /* 0x42009C81: mov ecx, dword ptr [eax + 4] */
  11486     ecx = MEM32(ecx + 0x8); /* 0x42009C84: mov ecx, dword ptr [ecx + 8] */
  11487 L_42009C87:
  11488     edx = MEM32(eax + 0x4); /* 0x42009C87: mov edx, dword ptr [eax + 4] */
  11489     SET_LO8(edx, MEM8(edx + 0x5C)); /* 0x42009C8A: mov dl, byte ptr [edx + 0x5c] */
  11490     MEM8(ecx + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009C8D: mov byte ptr [ecx + 0x5c], dl */
  11491     edx = MEM32(eax + 0x4); /* 0x42009C90: mov edx, dword ptr [eax + 4] */
  11492     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C93: mov byte ptr [edx + 0x5c], bl */
  11493     ecx = MEM32(ecx + 0x8); /* 0x42009C96: mov ecx, dword ptr [ecx + 8] */
  11494     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009C99: mov byte ptr [ecx + 0x5c], bl */
  11495     ecx = MEM32(eax + 0x4); /* 0x42009C9C: mov ecx, dword ptr [eax + 4] */
  11496     edx = MEM32(ecx + 0x8); /* 0x42009C9F: mov edx, dword ptr [ecx + 8] */
  11497     esi = MEM32(edx); /* 0x42009CA2: mov esi, dword ptr [edx] */
  11498     MEM32(ecx + 0x8) = esi; /* 0x42009CA4: mov dword ptr [ecx + 8], esi */
  11499     esi = MEM32(edx); /* 0x42009CA7: mov esi, dword ptr [edx] */
  11500     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009CA9: cmp esi, dword ptr [edi + 8] */
  11501     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11503     _flag_k = FK_CMP;
  11504     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009CB1; /* 0x42009CAC: je 0x42009cb1 */
  11505 L_42009CAE:
  11506     MEM32(esi + 0x4) = ecx; /* 0x42009CAE: mov dword ptr [esi + 4], ecx */
  11507 L_42009CB1:
  11508     esi = MEM32(ecx + 0x4); /* 0x42009CB1: mov esi, dword ptr [ecx + 4] */
  11509     MEM32(edx + 0x4) = esi; /* 0x42009CB4: mov dword ptr [edx + 4], esi */
  11510     esi = MEM32(edi + 0x4); /* 0x42009CB7: mov esi, dword ptr [edi + 4] */
  11511     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009CBA: cmp ecx, dword ptr [esi + 4] */
  11512     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11514     _flag_k = FK_CMP;
  11515     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CC9; /* 0x42009CBD: jne 0x42009cc9 */
  11516 L_42009CBF:
  11517     MEM32(esi + 0x4) = edx; /* 0x42009CBF: mov dword ptr [esi + 4], edx */
  11518     MEM32(edx) = ecx; /* 0x42009CC2: mov dword ptr [edx], ecx */
  11519     goto L_42009D7F; /* 0x42009CC4: jmp 0x42009d7f */
  11520 L_42009CC9:
  11521     esi = MEM32(ecx + 0x4); /* 0x42009CC9: mov esi, dword ptr [ecx + 4] */
  11522     /* cmp ecx, MEM32(esi) */ /* 0x42009CCC: cmp ecx, dword ptr [esi] */
  11523     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  11524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11525     _flag_k = FK_CMP;
  11526     if (CMP_NE(_flag_a, _flag_b)) goto L_42009CD9; /* 0x42009CCE: jne 0x42009cd9 */
  11527 L_42009CD0:
  11528     MEM32(esi) = edx; /* 0x42009CD0: mov dword ptr [esi], edx */
  11529     MEM32(edx) = ecx; /* 0x42009CD2: mov dword ptr [edx], ecx */
  11530     goto L_42009D7F; /* 0x42009CD4: jmp 0x42009d7f */
  11531 L_42009CD9:
  11532     MEM32(esi + 0x8) = edx; /* 0x42009CD9: mov dword ptr [esi + 8], edx */
  11533     MEM32(edx) = ecx; /* 0x42009CDC: mov dword ptr [edx], ecx */
  11534     goto L_42009D7F; /* 0x42009CDE: jmp 0x42009d7f */
  11535 L_42009CE3:
  11536     edx = MEM32(ecx); /* 0x42009CE3: mov edx, dword ptr [ecx] */
  11537     /* cmp MEM8(edx + 0x5C), LO8(ebx) */ /* 0x42009CE5: cmp byte ptr [edx + 0x5c], bl */
  11538     _flag_a = (uint32_t)(MEM8(edx + 0x5C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11539     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11540     _flag_k = FK_NARROW(FK_CMP, 24);
  11541     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D31; /* 0x42009CE8: jne 0x42009d31 */
  11542 L_42009CEA:
  11543     edx = MEM32(ecx + 0x8); /* 0x42009CEA: mov edx, dword ptr [ecx + 8] */
  11544     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009CED: mov byte ptr [edx + 0x5c], bl */
  11545     edx = MEM32(ecx + 0x8); /* 0x42009CF0: mov edx, dword ptr [ecx + 8] */
  11546     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x42009CF3: mov byte ptr [ecx + 0x5c], 0 */
  11547     esi = MEM32(edx); /* 0x42009CF7: mov esi, dword ptr [edx] */
  11548     MEM32(ecx + 0x8) = esi; /* 0x42009CF9: mov dword ptr [ecx + 8], esi */
  11549     esi = MEM32(edx); /* 0x42009CFC: mov esi, dword ptr [edx] */
  11550     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009CFE: cmp esi, dword ptr [edi + 8] */
  11551     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11553     _flag_k = FK_CMP;
  11554     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D06; /* 0x42009D01: je 0x42009d06 */
  11555 L_42009D03:
  11556     MEM32(esi + 0x4) = ecx; /* 0x42009D03: mov dword ptr [esi + 4], ecx */
  11557 L_42009D06:
  11558     esi = MEM32(ecx + 0x4); /* 0x42009D06: mov esi, dword ptr [ecx + 4] */
  11559     MEM32(edx + 0x4) = esi; /* 0x42009D09: mov dword ptr [edx + 4], esi */
  11560     esi = MEM32(edi + 0x4); /* 0x42009D0C: mov esi, dword ptr [edi + 4] */
  11561     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009D0F: cmp ecx, dword ptr [esi + 4] */
  11562     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11564     _flag_k = FK_CMP;
  11565     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D19; /* 0x42009D12: jne 0x42009d19 */
  11566 L_42009D14:
  11567     MEM32(esi + 0x4) = edx; /* 0x42009D14: mov dword ptr [esi + 4], edx */
  11568     goto L_42009D27; /* 0x42009D17: jmp 0x42009d27 */
  11569 L_42009D19:
  11570     esi = MEM32(ecx + 0x4); /* 0x42009D19: mov esi, dword ptr [ecx + 4] */
  11571     /* cmp ecx, MEM32(esi) */ /* 0x42009D1C: cmp ecx, dword ptr [esi] */
  11572     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  11573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11574     _flag_k = FK_CMP;
  11575     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D24; /* 0x42009D1E: jne 0x42009d24 */
  11576 L_42009D20:
  11577     MEM32(esi) = edx; /* 0x42009D20: mov dword ptr [esi], edx */
  11578     goto L_42009D27; /* 0x42009D22: jmp 0x42009d27 */
  11579 L_42009D24:
  11580     MEM32(esi + 0x8) = edx; /* 0x42009D24: mov dword ptr [esi + 8], edx */
  11581 L_42009D27:
  11582     MEM32(edx) = ecx; /* 0x42009D27: mov dword ptr [edx], ecx */
  11583     MEM32(ecx + 0x4) = edx; /* 0x42009D29: mov dword ptr [ecx + 4], edx */
  11584     ecx = MEM32(eax + 0x4); /* 0x42009D2C: mov ecx, dword ptr [eax + 4] */
  11585     ecx = MEM32(ecx); /* 0x42009D2F: mov ecx, dword ptr [ecx] */
  11586 L_42009D31:
  11587     edx = MEM32(eax + 0x4); /* 0x42009D31: mov edx, dword ptr [eax + 4] */
  11588     SET_LO8(edx, MEM8(edx + 0x5C)); /* 0x42009D34: mov dl, byte ptr [edx + 0x5c] */
  11589     MEM8(ecx + 0x5C) = (uint8_t)(LO8(edx)); /* 0x42009D37: mov byte ptr [ecx + 0x5c], dl */
  11590     edx = MEM32(eax + 0x4); /* 0x42009D3A: mov edx, dword ptr [eax + 4] */
  11591     MEM8(edx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D3D: mov byte ptr [edx + 0x5c], bl */
  11592     ecx = MEM32(ecx); /* 0x42009D40: mov ecx, dword ptr [ecx] */
  11593     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D42: mov byte ptr [ecx + 0x5c], bl */
  11594     ecx = MEM32(eax + 0x4); /* 0x42009D45: mov ecx, dword ptr [eax + 4] */
  11595     edx = MEM32(ecx); /* 0x42009D48: mov edx, dword ptr [ecx] */
  11596     esi = MEM32(edx + 0x8); /* 0x42009D4A: mov esi, dword ptr [edx + 8] */
  11597     MEM32(ecx) = esi; /* 0x42009D4D: mov dword ptr [ecx], esi */
  11598     esi = MEM32(edx + 0x8); /* 0x42009D4F: mov esi, dword ptr [edx + 8] */
  11599     /* cmp esi, MEM32(edi + 0x8) */ /* 0x42009D52: cmp esi, dword ptr [edi + 8] */
  11600     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11602     _flag_k = FK_CMP;
  11603     if (CMP_EQ(_flag_a, _flag_b)) goto L_42009D5A; /* 0x42009D55: je 0x42009d5a */
  11604 L_42009D57:
  11605     MEM32(esi + 0x4) = ecx; /* 0x42009D57: mov dword ptr [esi + 4], ecx */
  11606 L_42009D5A:
  11607     esi = MEM32(ecx + 0x4); /* 0x42009D5A: mov esi, dword ptr [ecx + 4] */
  11608     MEM32(edx + 0x4) = esi; /* 0x42009D5D: mov dword ptr [edx + 4], esi */
  11609     esi = MEM32(edi + 0x4); /* 0x42009D60: mov esi, dword ptr [edi + 4] */
  11610     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x42009D63: cmp ecx, dword ptr [esi + 4] */
  11611     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  11612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11613     _flag_k = FK_CMP;
  11614     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D6D; /* 0x42009D66: jne 0x42009d6d */
  11615 L_42009D68:
  11616     MEM32(esi + 0x4) = edx; /* 0x42009D68: mov dword ptr [esi + 4], edx */
  11617     goto L_42009D7C; /* 0x42009D6B: jmp 0x42009d7c */
  11618 L_42009D6D:
  11619     esi = MEM32(ecx + 0x4); /* 0x42009D6D: mov esi, dword ptr [ecx + 4] */
  11620     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x42009D70: cmp ecx, dword ptr [esi + 8] */
  11621     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11623     _flag_k = FK_CMP;
  11624     if (CMP_NE(_flag_a, _flag_b)) goto L_42009D7A; /* 0x42009D73: jne 0x42009d7a */
  11625 L_42009D75:
  11626     MEM32(esi + 0x8) = edx; /* 0x42009D75: mov dword ptr [esi + 8], edx */
  11627     goto L_42009D7C; /* 0x42009D78: jmp 0x42009d7c */
  11628 L_42009D7A:
  11629     MEM32(esi) = edx; /* 0x42009D7A: mov dword ptr [esi], edx */
  11630 L_42009D7C:
  11631     MEM32(edx + 0x8) = ecx; /* 0x42009D7C: mov dword ptr [edx + 8], ecx */
  11632 L_42009D7F:
  11633     MEM32(ecx + 0x4) = edx; /* 0x42009D7F: mov dword ptr [ecx + 4], edx */
  11634 L_42009D82:
  11635     esi = MEM32(ebp + (-0x4)); /* 0x42009D82: mov esi, dword ptr [ebp - 4] */
  11636     MEM8(eax + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x42009D85: mov byte ptr [eax + 0x5c], bl */
  11637     ecx = esi + 0xC; /* 0x42009D88: lea ecx, [esi + 0xc] */
  11638     RECOMP_ICALL(0x4200A0F0u); /* 0x42009D8B: call 0x4200a0f0 */ /* not lifted */
  11639     RECOMP_FLAGS_IN();
  11640     PUSH32(esp, esi); /* 0x42009D90: push esi */
  11641     RECOMP_ICALL(0x42016DD0u); /* 0x42009D91: call 0x42016dd0 */ /* not lifted */
  11642     RECOMP_FLAGS_IN();
  11643     eax = MEM32(edi + 0x10); /* 0x42009D96: mov eax, dword ptr [edi + 0x10] */
  11644     edx = MEM32(ebp + 0xC); /* 0x42009D99: mov edx, dword ptr [ebp + 0xc] */
  11645     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11646     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11647     esp = esp + 4; /* 0x42009D9C: add esp, 4 */
  11648     _flag_k = FK_ADD;
  11649     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11650     eax = eax - 1; /* 0x42009D9F: dec eax */
  11651     _flag_k = FK_DEC;
  11652     MEM32(edi + 0x10) = eax; /* 0x42009DA0: mov dword ptr [edi + 0x10], eax */
  11653     eax = MEM32(ebp + 0x8); /* 0x42009DA3: mov eax, dword ptr [ebp + 8] */
  11654     edi = POP32_VAL(esp); /* 0x42009DA6: pop edi */
  11655     esi = POP32_VAL(esp); /* 0x42009DA7: pop esi */
  11656     MEM32(eax) = edx; /* 0x42009DA8: mov dword ptr [eax], edx */
  11657     ebx = POP32_VAL(esp); /* 0x42009DAA: pop ebx */
  11658     esp = ebp; /* 0x42009DAB: mov esp, ebp */
  11659     ebp = POP32_VAL(esp); /* 0x42009DAD: pop ebp */
  11660     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x42009DAE: ret 8 */
  11661     RECOMP_REGS_OUT();
  11662 }