aorecomp

Anarchy Online classic in the browser

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


client/game/ggr.dll/lifted-0001.c (628636B)


      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_30004360(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(0x30004360u);
     17 
     18 L_30004360:
     19     PUSH32(esp, ebx); /* 0x30004360: push ebx */
     20     PUSH32(esp, esi); /* 0x30004361: push esi */
     21     PUSH32(esp, edi); /* 0x30004362: push edi */
     22     edi = ecx; /* 0x30004363: mov edi, ecx */
     23     ebx = MEM32(edi + 0x8); /* 0x30004365: mov ebx, dword ptr [edi + 8] */
     24     esi = MEM32(edi + 0x4); /* 0x30004368: mov esi, dword ptr [edi + 4] */
     25     /* cmp esi, ebx */ /* 0x3000436B: cmp esi, ebx */
     26     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
     27     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     28     _flag_k = FK_CMP;
     29     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000437D; /* 0x3000436D: je 0x3000437d */
     30 L_3000436F:
     31     ecx = esi; /* 0x3000436F: mov ecx, esi */
     32     RECOMP_ICALL(0x3000A5D0u); /* 0x30004371: call 0x3000a5d0 */ /* not lifted */
     33     RECOMP_FLAGS_IN();
     34     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
     35     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     36     esi = esi + 0x30u; /* 0x30004376: add esi, 0x30 */
     37     _flag_k = FK_ADD;
     38     /* cmp esi, ebx */ /* 0x30004379: cmp esi, ebx */
     39     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
     40     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     41     _flag_k = FK_CMP;
     42     RECOMP_BACKEDGE();
     43     if (CMP_NE(_flag_a, _flag_b)) goto L_3000436F; /* 0x3000437B: jne 0x3000436f */
     44 L_3000437D:
     45     eax = MEM32(edi + 0x4); /* 0x3000437D: mov eax, dword ptr [edi + 4] */
     46     PUSH32(esp, eax); /* 0x30004380: push eax */
     47     RECOMP_ICALL(0x30018080u); /* 0x30004381: call 0x30018080 */ /* not lifted */
     48     RECOMP_FLAGS_IN();
     49     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     50     eax = 0; /* 0x30004386: xor eax, eax */
     51     _cf = 0;
     52     _flag_k = FK_TEST;
     53     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     54     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     55     esp = esp + 4; /* 0x30004388: add esp, 4 */
     56     _flag_k = FK_ADD;
     57     MEM32(edi + 0x4) = eax; /* 0x3000438B: mov dword ptr [edi + 4], eax */
     58     MEM32(edi + 0x8) = eax; /* 0x3000438E: mov dword ptr [edi + 8], eax */
     59     MEM32(edi + 0xC) = eax; /* 0x30004391: mov dword ptr [edi + 0xc], eax */
     60     edi = POP32_VAL(esp); /* 0x30004394: pop edi */
     61     esi = POP32_VAL(esp); /* 0x30004395: pop esi */
     62     ebx = POP32_VAL(esp); /* 0x30004396: pop ebx */
     63     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30004397: ret  */
     64     RECOMP_REGS_OUT();
     65 }
     66 
     67 void sub_300043A0(void) {
     68     int _fpu_cmp = 0;
     69     uint32_t _cf = 0;
     70     int _df = 1;
     71     uint32_t _flag_k = FK_NONE;
     72     uint32_t _flag_a = 0, _flag_b = 0;
     73     uint32_t _itail_tgt = 0;
     74     RECOMP_REGS_LOCALS
     75     RECOMP_ENTER(0x300043A0u);
     76 
     77 L_300043A0:
     78     RECOMP_ICALL(0x300043B0u); /* 0x300043A0: call 0x300043b0 */ /* not lifted */
     79     RECOMP_FLAGS_IN();
     80     goto L_300043C0; /* 0x300043A5: jmp 0x300043c0 */
     81 L_300043C0:
     82     PUSH32(esp, 0x300043D0u); /* 0x300043C0: push 0x300043d0 */
     83     RECOMP_ICALL(0x300180ECu); /* 0x300043C5: call 0x300180ec */ /* not lifted */
     84     RECOMP_FLAGS_IN();
     85     ecx = POP32_VAL(esp); /* 0x300043CA: pop ecx */
     86     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300043CB: ret  */
     87     RECOMP_REGS_OUT();
     88 }
     89 
     90 void sub_300043B0(void) {
     91     int _fpu_cmp = 0;
     92     uint32_t _cf = 0;
     93     int _df = 1;
     94     uint32_t _flag_k = FK_NONE;
     95     uint32_t _flag_a = 0, _flag_b = 0;
     96     uint32_t _itail_tgt = 0;
     97     RECOMP_REGS_LOCALS
     98     RECOMP_ENTER(0x300043B0u);
     99 
    100 L_300043B0:
    101     ecx = 0x3001E3B6u; /* 0x300043B0: mov ecx, 0x3001e3b6 */
    102 L_300043B5:
    103     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
    104     { RECOMP_REGS_OUT(); return; } /* end of function */
    105   _ljump:
    106     switch (_itail_tgt) {
    107       case 0x300043B0u: goto L_300043B0;
    108       case 0x300043B5u: goto L_300043B5;
    109       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    110     }
    111     RECOMP_REGS_OUT();
    112 }
    113 
    114 void sub_300043C0(void) {
    115     int _fpu_cmp = 0;
    116     uint32_t _cf = 0;
    117     int _df = 1;
    118     uint32_t _flag_k = FK_NONE;
    119     uint32_t _flag_a = 0, _flag_b = 0;
    120     uint32_t _itail_tgt = 0;
    121     RECOMP_REGS_LOCALS
    122     RECOMP_ENTER(0x300043C0u);
    123 
    124 L_300043C0:
    125     PUSH32(esp, 0x300043D0u); /* 0x300043C0: push 0x300043d0 */
    126     RECOMP_ICALL(0x300180ECu); /* 0x300043C5: call 0x300180ec */ /* not lifted */
    127     RECOMP_FLAGS_IN();
    128     ecx = POP32_VAL(esp); /* 0x300043CA: pop ecx */
    129     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300043CB: ret  */
    130     RECOMP_REGS_OUT();
    131 }
    132 
    133 void sub_300043D0(void) {
    134     int _fpu_cmp = 0;
    135     uint32_t _cf = 0;
    136     int _df = 1;
    137     uint32_t _flag_k = FK_NONE;
    138     uint32_t _flag_a = 0, _flag_b = 0;
    139     uint32_t _itail_tgt = 0;
    140     RECOMP_REGS_LOCALS
    141     RECOMP_ENTER(0x300043D0u);
    142 
    143 L_300043D0:
    144     ecx = 0x3001E3B6u; /* 0x300043D0: mov ecx, 0x3001e3b6 */
    145 L_300043D5:
    146     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
    147     { RECOMP_REGS_OUT(); return; } /* end of function */
    148   _ljump:
    149     switch (_itail_tgt) {
    150       case 0x300043D0u: goto L_300043D0;
    151       case 0x300043D5u: goto L_300043D5;
    152       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    153     }
    154     RECOMP_REGS_OUT();
    155 }
    156 
    157 void sub_300043E0(void) {
    158     int _fpu_cmp = 0;
    159     uint32_t _cf = 0;
    160     int _df = 1;
    161     uint32_t _flag_k = FK_NONE;
    162     uint32_t _flag_a = 0, _flag_b = 0;
    163     uint32_t _itail_tgt = 0;
    164     RECOMP_REGS_LOCALS
    165     RECOMP_ENTER(0x300043E0u);
    166 
    167 L_300043E0:
    168     RECOMP_ICALL(0x300043F0u); /* 0x300043E0: call 0x300043f0 */ /* not lifted */
    169     RECOMP_FLAGS_IN();
    170     goto L_30004400; /* 0x300043E5: jmp 0x30004400 */
    171 L_30004400:
    172     PUSH32(esp, 0x30004410u); /* 0x30004400: push 0x30004410 */
    173     RECOMP_ICALL(0x300180ECu); /* 0x30004405: call 0x300180ec */ /* not lifted */
    174     RECOMP_FLAGS_IN();
    175     ecx = POP32_VAL(esp); /* 0x3000440A: pop ecx */
    176     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000440B: ret  */
    177     RECOMP_REGS_OUT();
    178 }
    179 
    180 void sub_300043F0(void) {
    181     int _fpu_cmp = 0;
    182     uint32_t _cf = 0;
    183     int _df = 1;
    184     uint32_t _flag_k = FK_NONE;
    185     uint32_t _flag_a = 0, _flag_b = 0;
    186     uint32_t _itail_tgt = 0;
    187     RECOMP_REGS_LOCALS
    188     RECOMP_ENTER(0x300043F0u);
    189 
    190 L_300043F0:
    191     ecx = 0x3001E3B5u; /* 0x300043F0: mov ecx, 0x3001e3b5 */
    192 L_300043F5:
    193     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
    194     { RECOMP_REGS_OUT(); return; } /* end of function */
    195   _ljump:
    196     switch (_itail_tgt) {
    197       case 0x300043F0u: goto L_300043F0;
    198       case 0x300043F5u: goto L_300043F5;
    199       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    200     }
    201     RECOMP_REGS_OUT();
    202 }
    203 
    204 void sub_30004400(void) {
    205     int _fpu_cmp = 0;
    206     uint32_t _cf = 0;
    207     int _df = 1;
    208     uint32_t _flag_k = FK_NONE;
    209     uint32_t _flag_a = 0, _flag_b = 0;
    210     uint32_t _itail_tgt = 0;
    211     RECOMP_REGS_LOCALS
    212     RECOMP_ENTER(0x30004400u);
    213 
    214 L_30004400:
    215     PUSH32(esp, 0x30004410u); /* 0x30004400: push 0x30004410 */
    216     RECOMP_ICALL(0x300180ECu); /* 0x30004405: call 0x300180ec */ /* not lifted */
    217     RECOMP_FLAGS_IN();
    218     ecx = POP32_VAL(esp); /* 0x3000440A: pop ecx */
    219     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000440B: ret  */
    220     RECOMP_REGS_OUT();
    221 }
    222 
    223 void sub_30004410(void) {
    224     int _fpu_cmp = 0;
    225     uint32_t _cf = 0;
    226     int _df = 1;
    227     uint32_t _flag_k = FK_NONE;
    228     uint32_t _flag_a = 0, _flag_b = 0;
    229     uint32_t _itail_tgt = 0;
    230     RECOMP_REGS_LOCALS
    231     RECOMP_ENTER(0x30004410u);
    232 
    233 L_30004410:
    234     ecx = 0x3001E3B5u; /* 0x30004410: mov ecx, 0x3001e3b5 */
    235 L_30004415:
    236     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
    237     { RECOMP_REGS_OUT(); return; } /* end of function */
    238   _ljump:
    239     switch (_itail_tgt) {
    240       case 0x30004410u: goto L_30004410;
    241       case 0x30004415u: goto L_30004415;
    242       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    243     }
    244     RECOMP_REGS_OUT();
    245 }
    246 
    247 void sub_30004420(void) {
    248     int _fpu_cmp = 0;
    249     uint32_t _cf = 0;
    250     int _df = 1;
    251     uint32_t _flag_k = FK_NONE;
    252     uint32_t _flag_a = 0, _flag_b = 0;
    253     uint32_t _itail_tgt = 0;
    254     RECOMP_REGS_LOCALS
    255     RECOMP_ENTER(0x30004420u);
    256 
    257 L_30004420:
    258     PUSH32(esp, ebp); /* 0x30004420: push ebp */
    259     ebp = esp; /* 0x30004421: mov ebp, esp */
    260     eax = MEM32(ebp + 0x10); /* 0x30004423: mov eax, dword ptr [ebp + 0x10] */
    261     edx = MEM32(ebp + 0x8); /* 0x30004426: mov edx, dword ptr [ebp + 8] */
    262     PUSH32(esp, ebx); /* 0x30004429: push ebx */
    263     PUSH32(esp, esi); /* 0x3000442A: push esi */
    264     esi = ecx; /* 0x3000442B: mov esi, ecx */
    265     SET_LO8(ecx, MEM8(eax)); /* 0x3000442D: mov cl, byte ptr [eax] */
    266     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3000442F: mov byte ptr [esi], cl */
    267     SET_LO8(eax, MEM8(edx)); /* 0x30004431: mov al, byte ptr [edx] */
    268     SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x30004433: mov cl, byte ptr [ebp + 0xc] */
    269     PUSH32(esp, edi); /* 0x30004436: push edi */
    270     PUSH32(esp, 0x14u); /* 0x30004437: push 0x14 */
    271     MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x30004439: mov byte ptr [esi + 1], al */
    272     MEM8(esi + 0xC) = (uint8_t)(LO8(ecx)); /* 0x3000443C: mov byte ptr [esi + 0xc], cl */
    273     RECOMP_ICALL(0x300180A8u); /* 0x3000443F: call 0x300180a8 */ /* not lifted */
    274     RECOMP_FLAGS_IN();
    275     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    276     ebx = 0; /* 0x30004444: xor ebx, ebx */
    277     _cf = 0;
    278     _flag_k = FK_TEST;
    279     MEM32(eax + 0x4) = ebx; /* 0x30004446: mov dword ptr [eax + 4], ebx */
    280     MEM8(eax + 0x11) = (uint8_t)(LO8(ebx)); /* 0x30004449: mov byte ptr [eax + 0x11], bl */
    281     SET_LO8(ecx, 1); /* 0x3000444C: mov cl, 1 */
    282     MEM8(eax + 0x10) = (uint8_t)(LO8(ecx)); /* 0x3000444E: mov byte ptr [eax + 0x10], cl */
    283     MEM32(esi + 0x8) = eax; /* 0x30004451: mov dword ptr [esi + 8], eax */
    284     MEM8(eax + 0x11) = (uint8_t)(LO8(ecx)); /* 0x30004454: mov byte ptr [eax + 0x11], cl */
    285     edx = MEM32(esi + 0x8); /* 0x30004457: mov edx, dword ptr [esi + 8] */
    286     MEM32(edx) = ebx; /* 0x3000445A: mov dword ptr [edx], ebx */
    287     eax = MEM32(esi + 0x8); /* 0x3000445C: mov eax, dword ptr [esi + 8] */
    288     MEM32(eax + 0x8) = ebx; /* 0x3000445F: mov dword ptr [eax + 8], ebx */
    289     edi = MEM32(esi + 0x8); /* 0x30004462: mov edi, dword ptr [esi + 8] */
    290     PUSH32(esp, 0x14u); /* 0x30004465: push 0x14 */
    291     RECOMP_ICALL(0x300180A8u); /* 0x30004467: call 0x300180a8 */ /* not lifted */
    292     RECOMP_FLAGS_IN();
    293     MEM32(eax + 0x4) = edi; /* 0x3000446C: mov dword ptr [eax + 4], edi */
    294     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x3000446F: mov byte ptr [eax + 0x10], bl */
    295     MEM8(eax + 0x11) = (uint8_t)(LO8(ebx)); /* 0x30004472: mov byte ptr [eax + 0x11], bl */
    296     MEM32(esi + 0x4) = eax; /* 0x30004475: mov dword ptr [esi + 4], eax */
    297     MEM32(eax) = eax; /* 0x30004478: mov dword ptr [eax], eax */
    298     eax = MEM32(esi + 0x4); /* 0x3000447A: mov eax, dword ptr [esi + 4] */
    299     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    301     esp = esp + 8; /* 0x3000447D: add esp, 8 */
    302     _flag_k = FK_ADD;
    303     MEM32(eax + 0x8) = eax; /* 0x30004480: mov dword ptr [eax + 8], eax */
    304     edi = POP32_VAL(esp); /* 0x30004483: pop edi */
    305     MEM32(esi + 0x10) = ebx; /* 0x30004484: mov dword ptr [esi + 0x10], ebx */
    306     eax = esi; /* 0x30004487: mov eax, esi */
    307     esi = POP32_VAL(esp); /* 0x30004489: pop esi */
    308     ebx = POP32_VAL(esp); /* 0x3000448A: pop ebx */
    309     ebp = POP32_VAL(esp); /* 0x3000448B: pop ebp */
    310     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000448C: ret 0xc */
    311     RECOMP_REGS_OUT();
    312 }
    313 
    314 void sub_30004490(void) {
    315     int _fpu_cmp = 0;
    316     uint32_t _cf = 0;
    317     int _df = 1;
    318     uint32_t _flag_k = FK_NONE;
    319     uint32_t _flag_a = 0, _flag_b = 0;
    320     uint32_t _itail_tgt = 0;
    321     RECOMP_REGS_LOCALS
    322     RECOMP_ENTER(0x30004490u);
    323 
    324 L_30004490:
    325     PUSH32(esp, ebp); /* 0x30004490: push ebp */
    326     ebp = esp; /* 0x30004491: mov ebp, esp */
    327     PUSH32(esp, ebx); /* 0x30004493: push ebx */
    328     ebx = MEM32(ebp + 0x10); /* 0x30004494: mov ebx, dword ptr [ebp + 0x10] */
    329     PUSH32(esp, esi); /* 0x30004497: push esi */
    330     esi = ecx; /* 0x30004498: mov esi, ecx */
    331     eax = MEM32(esi + 0x10); /* 0x3000449A: mov eax, dword ptr [esi + 0x10] */
    332     /* test eax, eax */ /* 0x3000449D: test eax, eax */
    333     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    334     _cf = 0;
    335     _flag_k = FK_TEST;
    336     ecx = MEM32(ebp + 0xC); /* 0x3000449F: mov ecx, dword ptr [ebp + 0xc] */
    337     PUSH32(esp, edi); /* 0x300044A2: push edi */
    338     if (TEST_Z(_flag_a, _flag_b)) goto L_30004505; /* 0x300044A3: je 0x30004505 */
    339 L_300044A5:
    340     eax = MEM32(esi + 0x4); /* 0x300044A5: mov eax, dword ptr [esi + 4] */
    341     /* cmp ecx, MEM32(eax) */ /* 0x300044A8: cmp ecx, dword ptr [eax] */
    342     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
    343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    344     _flag_k = FK_CMP;
    345     if (CMP_NE(_flag_a, _flag_b)) goto L_30004505; /* 0x300044AA: jne 0x30004505 */
    346 L_300044AC:
    347     /* cmp ebx, eax */ /* 0x300044AC: cmp ebx, eax */
    348     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
    349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    350     _flag_k = FK_CMP;
    351     if (CMP_NE(_flag_a, _flag_b)) goto L_30004505; /* 0x300044AE: jne 0x30004505 */
    352 L_300044B0:
    353     ebx = MEM32(eax + 0x4); /* 0x300044B0: mov ebx, dword ptr [eax + 4] */
    354     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x300044B3: cmp ebx, dword ptr [esi + 8] */
    355     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    357     _flag_k = FK_CMP;
    358     edi = ebx; /* 0x300044B6: mov edi, ebx */
    359     if (CMP_EQ(_flag_a, _flag_b)) goto L_300044D9; /* 0x300044B8: je 0x300044d9 */
    360 L_300044BA:
    361     eax = MEM32(edi + 0x8); /* 0x300044BA: mov eax, dword ptr [edi + 8] */
    362     PUSH32(esp, eax); /* 0x300044BD: push eax */
    363     ecx = esi; /* 0x300044BE: mov ecx, esi */
    364     RECOMP_ICALL(0x30004DD0u); /* 0x300044C0: call 0x30004dd0 */ /* not lifted */
    365     RECOMP_FLAGS_IN();
    366     edi = MEM32(edi); /* 0x300044C5: mov edi, dword ptr [edi] */
    367     PUSH32(esp, ebx); /* 0x300044C7: push ebx */
    368     RECOMP_ICALL(0x30018080u); /* 0x300044C8: call 0x30018080 */ /* not lifted */
    369     RECOMP_FLAGS_IN();
    370     eax = MEM32(esi + 0x8); /* 0x300044CD: mov eax, dword ptr [esi + 8] */
    371     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    372     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    373     esp = esp + 4; /* 0x300044D0: add esp, 4 */
    374     _flag_k = FK_ADD;
    375     /* cmp edi, eax */ /* 0x300044D3: cmp edi, eax */
    376     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    378     _flag_k = FK_CMP;
    379     ebx = edi; /* 0x300044D5: mov ebx, edi */
    380     RECOMP_BACKEDGE();
    381     if (CMP_NE(_flag_a, _flag_b)) goto L_300044BA; /* 0x300044D7: jne 0x300044ba */
    382 L_300044D9:
    383     ecx = MEM32(esi + 0x4); /* 0x300044D9: mov ecx, dword ptr [esi + 4] */
    384     edx = MEM32(esi + 0x8); /* 0x300044DC: mov edx, dword ptr [esi + 8] */
    385     MEM32(ecx + 0x4) = edx; /* 0x300044DF: mov dword ptr [ecx + 4], edx */
    386     eax = MEM32(esi + 0x4); /* 0x300044E2: mov eax, dword ptr [esi + 4] */
    387     MEM32(esi + 0x10) = 0; /* 0x300044E5: mov dword ptr [esi + 0x10], 0 */
    388     MEM32(eax) = eax; /* 0x300044EC: mov dword ptr [eax], eax */
    389     eax = MEM32(esi + 0x4); /* 0x300044EE: mov eax, dword ptr [esi + 4] */
    390     MEM32(eax + 0x8) = eax; /* 0x300044F1: mov dword ptr [eax + 8], eax */
    391     eax = MEM32(esi + 0x4); /* 0x300044F4: mov eax, dword ptr [esi + 4] */
    392     ecx = MEM32(eax); /* 0x300044F7: mov ecx, dword ptr [eax] */
    393     eax = MEM32(ebp + 0x8); /* 0x300044F9: mov eax, dword ptr [ebp + 8] */
    394     edi = POP32_VAL(esp); /* 0x300044FC: pop edi */
    395     esi = POP32_VAL(esp); /* 0x300044FD: pop esi */
    396     MEM32(eax) = ecx; /* 0x300044FE: mov dword ptr [eax], ecx */
    397     ebx = POP32_VAL(esp); /* 0x30004500: pop ebx */
    398     ebp = POP32_VAL(esp); /* 0x30004501: pop ebp */
    399     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30004502: ret 0xc */
    400 L_30004505:
    401     /* cmp ecx, ebx */ /* 0x30004505: cmp ecx, ebx */
    402     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
    403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    404     _flag_k = FK_CMP;
    405     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004526; /* 0x30004507: je 0x30004526 */
    406 L_30004509:
    407     edi = ecx; /* 0x30004509: mov edi, ecx */
    408     ecx = ebp + 0xC; /* 0x3000450B: lea ecx, [ebp + 0xc] */
    409     RECOMP_ICALL(0x30004540u); /* 0x3000450E: call 0x30004540 */ /* not lifted */
    410     RECOMP_FLAGS_IN();
    411     PUSH32(esp, edi); /* 0x30004513: push edi */
    412     ecx = ebp + 0x10; /* 0x30004514: lea ecx, [ebp + 0x10] */
    413     PUSH32(esp, ecx); /* 0x30004517: push ecx */
    414     ecx = esi; /* 0x30004518: mov ecx, esi */
    415     RECOMP_ICALL(0x30004A10u); /* 0x3000451A: call 0x30004a10 */ /* not lifted */
    416     RECOMP_FLAGS_IN();
    417     ecx = MEM32(ebp + 0xC); /* 0x3000451F: mov ecx, dword ptr [ebp + 0xc] */
    418     /* cmp ecx, ebx */ /* 0x30004522: cmp ecx, ebx */
    419     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
    420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    421     _flag_k = FK_CMP;
    422     RECOMP_BACKEDGE();
    423     if (CMP_NE(_flag_a, _flag_b)) goto L_30004509; /* 0x30004524: jne 0x30004509 */
    424 L_30004526:
    425     eax = MEM32(ebp + 0x8); /* 0x30004526: mov eax, dword ptr [ebp + 8] */
    426     edi = POP32_VAL(esp); /* 0x30004529: pop edi */
    427     esi = POP32_VAL(esp); /* 0x3000452A: pop esi */
    428     MEM32(eax) = ecx; /* 0x3000452B: mov dword ptr [eax], ecx */
    429     ebx = POP32_VAL(esp); /* 0x3000452D: pop ebx */
    430     ebp = POP32_VAL(esp); /* 0x3000452E: pop ebp */
    431     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000452F: ret 0xc */
    432     RECOMP_REGS_OUT();
    433 }
    434 
    435 void sub_30004540(void) {
    436     int _fpu_cmp = 0;
    437     uint32_t _cf = 0;
    438     int _df = 1;
    439     uint32_t _flag_k = FK_NONE;
    440     uint32_t _flag_a = 0, _flag_b = 0;
    441     uint32_t _itail_tgt = 0;
    442     RECOMP_REGS_LOCALS
    443     RECOMP_ENTER(0x30004540u);
    444 
    445 L_30004540:
    446     eax = MEM32(ecx); /* 0x30004540: mov eax, dword ptr [ecx] */
    447     edx = MEM32(eax + 0x8); /* 0x30004542: mov edx, dword ptr [eax + 8] */
    448     PUSH32(esp, ebx); /* 0x30004545: push ebx */
    449     SET_LO8(ebx, MEM8(edx + 0x11)); /* 0x30004546: mov bl, byte ptr [edx + 0x11] */
    450     /* test LO8(ebx), LO8(ebx) */ /* 0x30004549: test bl, bl */
    451     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    452     _cf = 0;
    453     _flag_k = FK_NARROW(FK_TEST, 24);
    454     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004565; /* 0x3000454B: jne 0x30004565 */
    455 L_3000454D:
    456     eax = MEM32(edx); /* 0x3000454D: mov eax, dword ptr [edx] */
    457     SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x3000454F: mov bl, byte ptr [eax + 0x11] */
    458     /* test LO8(ebx), LO8(ebx) */ /* 0x30004552: test bl, bl */
    459     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    460     _cf = 0;
    461     _flag_k = FK_NARROW(FK_TEST, 24);
    462     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004561; /* 0x30004554: jne 0x30004561 */
    463 L_30004556:
    464     edx = eax; /* 0x30004556: mov edx, eax */
    465     eax = MEM32(edx); /* 0x30004558: mov eax, dword ptr [edx] */
    466     SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x3000455A: mov bl, byte ptr [eax + 0x11] */
    467     /* test LO8(ebx), LO8(ebx) */ /* 0x3000455D: test bl, bl */
    468     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    469     _cf = 0;
    470     _flag_k = FK_NARROW(FK_TEST, 24);
    471     RECOMP_BACKEDGE();
    472     if (TEST_Z(_flag_a, _flag_b)) goto L_30004556; /* 0x3000455F: je 0x30004556 */
    473 L_30004561:
    474     MEM32(ecx) = edx; /* 0x30004561: mov dword ptr [ecx], edx */
    475     ebx = POP32_VAL(esp); /* 0x30004563: pop ebx */
    476     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30004564: ret  */
    477 L_30004565:
    478     eax = MEM32(eax + 0x4); /* 0x30004565: mov eax, dword ptr [eax + 4] */
    479     edx = MEM32(ecx); /* 0x30004568: mov edx, dword ptr [ecx] */
    480     /* cmp edx, MEM32(eax + 0x8) */ /* 0x3000456A: cmp edx, dword ptr [eax + 8] */
    481     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    483     _flag_k = FK_CMP;
    484     if (CMP_NE(_flag_a, _flag_b)) goto L_3000457B; /* 0x3000456D: jne 0x3000457b */
    485 L_3000456F:
    486     MEM32(ecx) = eax; /* 0x3000456F: mov dword ptr [ecx], eax */
    487     eax = MEM32(eax + 0x4); /* 0x30004571: mov eax, dword ptr [eax + 4] */
    488     edx = MEM32(ecx); /* 0x30004574: mov edx, dword ptr [ecx] */
    489     /* cmp edx, MEM32(eax + 0x8) */ /* 0x30004576: cmp edx, dword ptr [eax + 8] */
    490     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    491     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    492     _flag_k = FK_CMP;
    493     RECOMP_BACKEDGE();
    494     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000456F; /* 0x30004579: je 0x3000456f */
    495 L_3000457B:
    496     edx = MEM32(ecx); /* 0x3000457B: mov edx, dword ptr [ecx] */
    497     /* cmp MEM32(edx + 0x8), eax */ /* 0x3000457D: cmp dword ptr [edx + 8], eax */
    498     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
    499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    500     _flag_k = FK_CMP;
    501     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004584; /* 0x30004580: je 0x30004584 */
    502 L_30004582:
    503     MEM32(ecx) = eax; /* 0x30004582: mov dword ptr [ecx], eax */
    504 L_30004584:
    505     ebx = POP32_VAL(esp); /* 0x30004584: pop ebx */
    506     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30004585: ret  */
    507     RECOMP_REGS_OUT();
    508 }
    509 
    510 void sub_30004590(void) {
    511     int _fpu_cmp = 0;
    512     uint32_t _cf = 0;
    513     int _df = 1;
    514     uint32_t _flag_k = FK_NONE;
    515     uint32_t _flag_a = 0, _flag_b = 0;
    516     uint32_t _itail_tgt = 0;
    517     RECOMP_REGS_LOCALS
    518     RECOMP_ENTER(0x30004590u);
    519 
    520 L_30004590:
    521     PUSH32(esp, ebp); /* 0x30004590: push ebp */
    522     ebp = esp; /* 0x30004591: mov ebp, esp */
    523     PUSH32(esp, edi); /* 0x30004593: push edi */
    524     edi = MEM32(ebp + 0xC); /* 0x30004594: mov edi, dword ptr [ebp + 0xc] */
    525     /* test edi, edi */ /* 0x30004597: test edi, edi */
    526     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    527     _cf = 0;
    528     _flag_k = FK_TEST;
    529     if (TEST_Z(_flag_a, _flag_b)) goto L_300045B5; /* 0x30004599: jbe 0x300045b5 */
    530 L_3000459B:
    531     PUSH32(esp, ebx); /* 0x3000459B: push ebx */
    532     ebx = MEM32(ebp + 0x10); /* 0x3000459C: mov ebx, dword ptr [ebp + 0x10] */
    533     PUSH32(esp, esi); /* 0x3000459F: push esi */
    534     esi = MEM32(ebp + 0x8); /* 0x300045A0: mov esi, dword ptr [ebp + 8] */
    535 L_300045A3:
    536     PUSH32(esp, ebx); /* 0x300045A3: push ebx */
    537     PUSH32(esp, esi); /* 0x300045A4: push esi */
    538     RECOMP_ICALL(0x300053F0u); /* 0x300045A5: call 0x300053f0 */ /* not lifted */
    539     RECOMP_FLAGS_IN();
    540     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    541     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    542     esp = esp + 8; /* 0x300045AA: add esp, 8 */
    543     _flag_k = FK_ADD;
    544     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
    545     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    546     esi = esi + 0x10u; /* 0x300045AD: add esi, 0x10 */
    547     _flag_k = FK_ADD;
    548     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
    549     edi = edi - 1; /* 0x300045B0: dec edi */
    550     _flag_k = FK_DEC;
    551     RECOMP_BACKEDGE();
    552     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300045A3; /* 0x300045B1: jne 0x300045a3 */
    553 L_300045B3:
    554     esi = POP32_VAL(esp); /* 0x300045B3: pop esi */
    555     ebx = POP32_VAL(esp); /* 0x300045B4: pop ebx */
    556 L_300045B5:
    557     edi = POP32_VAL(esp); /* 0x300045B5: pop edi */
    558     ebp = POP32_VAL(esp); /* 0x300045B6: pop ebp */
    559     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x300045B7: ret 0xc */
    560     RECOMP_REGS_OUT();
    561 }
    562 
    563 void sub_300045C0(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(0x300045C0u);
    572 
    573 L_300045C0:
    574     PUSH32(esp, ebp); /* 0x300045C0: push ebp */
    575     ebp = esp; /* 0x300045C1: mov ebp, esp */
    576     PUSH32(esp, esi); /* 0x300045C3: push esi */
    577     esi = MEM32(ebp + 0x8); /* 0x300045C4: mov esi, dword ptr [ebp + 8] */
    578     PUSH32(esp, edi); /* 0x300045C7: push edi */
    579     edi = MEM32(ebp + 0xC); /* 0x300045C8: mov edi, dword ptr [ebp + 0xc] */
    580     /* cmp esi, edi */ /* 0x300045CB: cmp esi, edi */
    581     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
    582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    583     _flag_k = FK_CMP;
    584     if (CMP_EQ(_flag_a, _flag_b)) goto L_300045DD; /* 0x300045CD: je 0x300045dd */
    585 L_300045CF:
    586     ecx = esi; /* 0x300045CF: mov ecx, esi */
    587     RECOMP_ICALL(0x3000A5D0u); /* 0x300045D1: call 0x3000a5d0 */ /* not lifted */
    588     RECOMP_FLAGS_IN();
    589     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
    590     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    591     esi = esi + 0x30u; /* 0x300045D6: add esi, 0x30 */
    592     _flag_k = FK_ADD;
    593     /* cmp esi, edi */ /* 0x300045D9: cmp esi, edi */
    594     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
    595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    596     _flag_k = FK_CMP;
    597     RECOMP_BACKEDGE();
    598     if (CMP_NE(_flag_a, _flag_b)) goto L_300045CF; /* 0x300045DB: jne 0x300045cf */
    599 L_300045DD:
    600     edi = POP32_VAL(esp); /* 0x300045DD: pop edi */
    601     esi = POP32_VAL(esp); /* 0x300045DE: pop esi */
    602     ebp = POP32_VAL(esp); /* 0x300045DF: pop ebp */
    603     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x300045E0: ret 8 */
    604     RECOMP_REGS_OUT();
    605 }
    606 
    607 void sub_300045F0(void) {
    608     int _fpu_cmp = 0;
    609     uint32_t _cf = 0;
    610     int _df = 1;
    611     uint32_t _flag_k = FK_NONE;
    612     uint32_t _flag_a = 0, _flag_b = 0;
    613     uint32_t _itail_tgt = 0;
    614     RECOMP_REGS_LOCALS
    615     RECOMP_ENTER(0x300045F0u);
    616 
    617 L_300045F0:
    618     PUSH32(esp, ebp); /* 0x300045F0: push ebp */
    619     ebp = esp; /* 0x300045F1: mov ebp, esp */
    620     SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x300045F3: mov al, byte ptr [ebp + 8] */
    621     MEM8(ecx + 0x2C) = (uint8_t)(LO8(eax)); /* 0x300045F6: mov byte ptr [ecx + 0x2c], al */
    622     ebp = POP32_VAL(esp); /* 0x300045F9: pop ebp */
    623     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300045FA: ret 4 */
    624     RECOMP_REGS_OUT();
    625 }
    626 
    627 void sub_30004600(void) {
    628     int _fpu_cmp = 0;
    629     uint32_t _cf = 0;
    630     int _df = 1;
    631     uint32_t _flag_k = FK_NONE;
    632     uint32_t _flag_a = 0, _flag_b = 0;
    633     uint32_t _itail_tgt = 0;
    634     RECOMP_REGS_LOCALS
    635     RECOMP_ENTER(0x30004600u);
    636 
    637 L_30004600:
    638     PUSH32(esp, ebp); /* 0x30004600: push ebp */
    639     ebp = esp; /* 0x30004601: mov ebp, esp */
    640     eax = MEM32(ecx + 0x8); /* 0x30004603: mov eax, dword ptr [ecx + 8] */
    641     ecx = MEM32(ebp + 0x8); /* 0x30004606: mov ecx, dword ptr [ebp + 8] */
    642     eax = MEM32(eax + ecx * 4); /* 0x30004609: mov eax, dword ptr [eax + ecx*4] */
    643     ebp = POP32_VAL(esp); /* 0x3000460C: pop ebp */
    644     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000460D: ret 4 */
    645     RECOMP_REGS_OUT();
    646 }
    647 
    648 void sub_30004610(void) {
    649     int _fpu_cmp = 0;
    650     uint32_t _cf = 0;
    651     int _df = 1;
    652     uint32_t _flag_k = FK_NONE;
    653     uint32_t _flag_a = 0, _flag_b = 0;
    654     uint32_t _itail_tgt = 0;
    655     RECOMP_REGS_LOCALS
    656     RECOMP_ENTER(0x30004610u);
    657 
    658 L_30004610:
    659     edx = MEM32(ecx + 0x8); /* 0x30004610: mov edx, dword ptr [ecx + 8] */
    660     /* test edx, edx */ /* 0x30004613: test edx, edx */
    661     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    662     _cf = 0;
    663     _flag_k = FK_TEST;
    664     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000461A; /* 0x30004615: jne 0x3000461a */
    665 L_30004617:
    666     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    667     eax = 0; /* 0x30004617: xor eax, eax */
    668     _cf = 0;
    669     _flag_k = FK_TEST;
    670     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30004619: ret  */
    671 L_3000461A:
    672     eax = MEM32(ecx + 0xC); /* 0x3000461A: mov eax, dword ptr [ecx + 0xc] */
    673     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    675     eax = eax - edx; /* 0x3000461D: sub eax, edx */
    676     _flag_k = FK_CMP;
    677     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000461F: sar eax, 2 */
    678     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    679     eax = (uint32_t)((int32_t)eax >> 2u);
    680     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30004622: ret  */
    681     RECOMP_REGS_OUT();
    682 }
    683 
    684 void sub_30004630(void) {
    685     int _fpu_cmp = 0;
    686     uint32_t _cf = 0;
    687     int _df = 1;
    688     uint32_t _flag_k = FK_NONE;
    689     uint32_t _flag_a = 0, _flag_b = 0;
    690     uint32_t _itail_tgt = 0;
    691     RECOMP_REGS_LOCALS
    692     RECOMP_ENTER(0x30004630u);
    693 
    694 L_30004630:
    695     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    696     SET_LO8(eax, 0); /* 0x30004630: xor al, al */
    697     _cf = 0;
    698     _flag_k = FK_NARROW(FK_TEST, 24);
    699     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30004632: ret 0xc */
    700     RECOMP_REGS_OUT();
    701 }
    702 
    703 void sub_30004640(void) {
    704     int _fpu_cmp = 0;
    705     uint32_t _cf = 0;
    706     int _df = 1;
    707     uint32_t _flag_k = FK_NONE;
    708     uint32_t _flag_a = 0, _flag_b = 0;
    709     uint32_t _itail_tgt = 0;
    710     RECOMP_REGS_LOCALS
    711     RECOMP_ENTER(0x30004640u);
    712 
    713 L_30004640:
    714     PUSH32(esp, ebp); /* 0x30004640: push ebp */
    715     ebp = esp; /* 0x30004641: mov ebp, esp */
    716     PUSH32(esp, 0xFFFFFFFFu); /* 0x30004643: push -1 */
    717     PUSH32(esp, 0x30018689u); /* 0x30004645: push 0x30018689 */
    718     eax = MEM32(FS_BASE + (0)); /* 0x3000464A: mov eax, dword ptr fs:[0] */
    719     PUSH32(esp, eax); /* 0x30004650: push eax */
    720     MEM32(FS_BASE + (0)) = esp; /* 0x30004651: mov dword ptr fs:[0], esp */
    721     PUSH32(esp, ecx); /* 0x30004658: push ecx */
    722     eax = MEM32(0x300190F8); /* 0x30004659: mov eax, dword ptr [0x300190f8] */
    723     PUSH32(esp, esi); /* 0x3000465E: push esi */
    724     esi = ecx; /* 0x3000465F: mov esi, ecx */
    725     PUSH32(esp, edi); /* 0x30004661: push edi */
    726     MEM32(ebp + (-0x10)) = esi; /* 0x30004662: mov dword ptr [ebp - 0x10], esi */
    727     MEM32(esi) = eax; /* 0x30004665: mov dword ptr [esi], eax */
    728     edi = MEM32(ebp + 0x8); /* 0x30004667: mov edi, dword ptr [ebp + 8] */
    729     SET_LO8(ecx, MEM8(edi + 0x4)); /* 0x3000466A: mov cl, byte ptr [edi + 4] */
    730     MEM8(esi + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3000466D: mov byte ptr [esi + 4], cl */
    731     ecx = MEM32(edi + 0x8); /* 0x30004670: mov ecx, dword ptr [edi + 8] */
    732     /* test ecx, ecx */ /* 0x30004673: test ecx, ecx */
    733     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    734     _cf = 0;
    735     _flag_k = FK_TEST;
    736     MEM32(ebp + (-0x4)) = 0; /* 0x30004675: mov dword ptr [ebp - 4], 0 */
    737     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004682; /* 0x3000467C: jne 0x30004682 */
    738 L_3000467E:
    739     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    740     eax = 0; /* 0x3000467E: xor eax, eax */
    741     _cf = 0;
    742     _flag_k = FK_TEST;
    743     goto L_3000468A; /* 0x30004680: jmp 0x3000468a */
    744 L_30004682:
    745     eax = MEM32(edi + 0xC); /* 0x30004682: mov eax, dword ptr [edi + 0xc] */
    746     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    748     eax = eax - ecx; /* 0x30004685: sub eax, ecx */
    749     _flag_k = FK_CMP;
    750     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x30004687: sar eax, 2 */
    751     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    752     eax = (uint32_t)((int32_t)eax >> 2u);
    753 L_3000468A:
    754     /* test eax, eax */ /* 0x3000468A: test eax, eax */
    755     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    756     _cf = 0;
    757     _flag_k = FK_TEST;
    758     if (TEST_NS(_flag_a, _flag_b)) goto L_30004690; /* 0x3000468C: jge 0x30004690 */
    759 L_3000468E:
    760     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    761     eax = 0; /* 0x3000468E: xor eax, eax */
    762     _cf = 0;
    763     _flag_k = FK_TEST;
    764 L_30004690:
    765     edx = eax * 4; /* 0x30004690: lea edx, [eax*4] */
    766     PUSH32(esp, edx); /* 0x30004697: push edx */
    767     RECOMP_ICALL(0x300180A8u); /* 0x30004698: call 0x300180a8 */ /* not lifted */
    768     RECOMP_FLAGS_IN();
    769     MEM32(esi + 0x8) = eax; /* 0x3000469D: mov dword ptr [esi + 8], eax */
    770     edx = MEM32(edi + 0xC); /* 0x300046A0: mov edx, dword ptr [edi + 0xc] */
    771     ecx = eax; /* 0x300046A3: mov ecx, eax */
    772     eax = MEM32(edi + 0x8); /* 0x300046A5: mov eax, dword ptr [edi + 8] */
    773     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    774     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    775     esp = esp + 4; /* 0x300046A8: add esp, 4 */
    776     _flag_k = FK_ADD;
    777     /* cmp eax, edx */ /* 0x300046AB: cmp eax, edx */
    778     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    779     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    780     _flag_k = FK_CMP;
    781     if (CMP_EQ(_flag_a, _flag_b)) goto L_300046C3; /* 0x300046AD: je 0x300046c3 */
    782 L_300046AF:
    783     PUSH32(esp, ebx); /* 0x300046AF: push ebx */
    784 L_300046B0:
    785     /* test ecx, ecx */ /* 0x300046B0: test ecx, ecx */
    786     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    787     _cf = 0;
    788     _flag_k = FK_TEST;
    789     if (TEST_Z(_flag_a, _flag_b)) goto L_300046B8; /* 0x300046B2: je 0x300046b8 */
    790 L_300046B4:
    791     ebx = MEM32(eax); /* 0x300046B4: mov ebx, dword ptr [eax] */
    792     MEM32(ecx) = ebx; /* 0x300046B6: mov dword ptr [ecx], ebx */
    793 L_300046B8:
    794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    796     eax = eax + 4; /* 0x300046B8: add eax, 4 */
    797     _flag_k = FK_ADD;
    798     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    800     ecx = ecx + 4; /* 0x300046BB: add ecx, 4 */
    801     _flag_k = FK_ADD;
    802     /* cmp eax, edx */ /* 0x300046BE: cmp eax, edx */
    803     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    805     _flag_k = FK_CMP;
    806     RECOMP_BACKEDGE();
    807     if (CMP_NE(_flag_a, _flag_b)) goto L_300046B0; /* 0x300046C0: jne 0x300046b0 */
    808 L_300046C2:
    809     ebx = POP32_VAL(esp); /* 0x300046C2: pop ebx */
    810 L_300046C3:
    811     MEM32(esi + 0xC) = ecx; /* 0x300046C3: mov dword ptr [esi + 0xc], ecx */
    812     MEM32(esi + 0x10) = ecx; /* 0x300046C6: mov dword ptr [esi + 0x10], ecx */
    813     eax = MEM32(edi + 0x14); /* 0x300046C9: mov eax, dword ptr [edi + 0x14] */
    814     MEM32(esi + 0x14) = eax; /* 0x300046CC: mov dword ptr [esi + 0x14], eax */
    815     ecx = MEM32(edi + 0x18); /* 0x300046CF: mov ecx, dword ptr [edi + 0x18] */
    816     MEM32(esi + 0x18) = ecx; /* 0x300046D2: mov dword ptr [esi + 0x18], ecx */
    817     edx = MEM32(edi + 0x1C); /* 0x300046D5: mov edx, dword ptr [edi + 0x1c] */
    818     MEM32(esi + 0x1C) = edx; /* 0x300046D8: mov dword ptr [esi + 0x1c], edx */
    819     eax = MEM32(edi + 0x20); /* 0x300046DB: mov eax, dword ptr [edi + 0x20] */
    820     MEM32(esi + 0x20) = eax; /* 0x300046DE: mov dword ptr [esi + 0x20], eax */
    821     ecx = MEM32(edi + 0x24); /* 0x300046E1: mov ecx, dword ptr [edi + 0x24] */
    822     MEM32(esi + 0x24) = ecx; /* 0x300046E4: mov dword ptr [esi + 0x24], ecx */
    823     edx = MEM32(edi + 0x28); /* 0x300046E7: mov edx, dword ptr [edi + 0x28] */
    824     ecx = MEM32(ebp + (-0xC)); /* 0x300046EA: mov ecx, dword ptr [ebp - 0xc] */
    825     MEM32(esi + 0x28) = edx; /* 0x300046ED: mov dword ptr [esi + 0x28], edx */
    826     SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x300046F0: mov al, byte ptr [edi + 0x2c] */
    827     MEM8(esi + 0x2C) = (uint8_t)(LO8(eax)); /* 0x300046F3: mov byte ptr [esi + 0x2c], al */
    828     MEM32(esi) = 0x30019124u; /* 0x300046F6: mov dword ptr [esi], 0x30019124 */
    829     edi = POP32_VAL(esp); /* 0x300046FC: pop edi */
    830     eax = esi; /* 0x300046FD: mov eax, esi */
    831     esi = POP32_VAL(esp); /* 0x300046FF: pop esi */
    832     MEM32(FS_BASE + (0)) = ecx; /* 0x30004700: mov dword ptr fs:[0], ecx */
    833     esp = ebp; /* 0x30004707: mov esp, ebp */
    834     ebp = POP32_VAL(esp); /* 0x30004709: pop ebp */
    835     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000470A: ret 4 */
    836     RECOMP_REGS_OUT();
    837 }
    838 
    839 void sub_30004710(void) {
    840     int _fpu_cmp = 0;
    841     uint32_t _cf = 0;
    842     int _df = 1;
    843     uint32_t _flag_k = FK_NONE;
    844     uint32_t _flag_a = 0, _flag_b = 0;
    845     uint32_t _itail_tgt = 0;
    846     RECOMP_REGS_LOCALS
    847     RECOMP_ENTER(0x30004710u);
    848 
    849 L_30004710:
    850     PUSH32(esp, ebp); /* 0x30004710: push ebp */
    851     ebp = esp; /* 0x30004711: mov ebp, esp */
    852     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    853     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    854     esp = esp - 8; /* 0x30004713: sub esp, 8 */
    855     _flag_k = FK_CMP;
    856     PUSH32(esp, ebx); /* 0x30004716: push ebx */
    857     eax = ecx; /* 0x30004717: mov eax, ecx */
    858     ecx = MEM32(ebp + 0x8); /* 0x30004719: mov ecx, dword ptr [ebp + 8] */
    859     PUSH32(esp, esi); /* 0x3000471C: push esi */
    860     PUSH32(esp, edi); /* 0x3000471D: push edi */
    861     edi = ecx + 0x4; /* 0x3000471E: lea edi, [ecx + 4] */
    862     esi = eax + 0x4; /* 0x30004721: lea esi, [eax + 4] */
    863     /* cmp esi, edi */ /* 0x30004724: cmp esi, edi */
    864     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
    865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    866     _flag_k = FK_CMP;
    867     MEM32(ebp + (-0x4)) = eax; /* 0x30004726: mov dword ptr [ebp - 4], eax */
    868     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004890; /* 0x30004729: je 0x30004890 */
    869 L_3000472F:
    870     eax = MEM32(edi + 0x4); /* 0x3000472F: mov eax, dword ptr [edi + 4] */
    871     /* test eax, eax */ /* 0x30004732: test eax, eax */
    872     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    873     _cf = 0;
    874     _flag_k = FK_TEST;
    875     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000473A; /* 0x30004734: jne 0x3000473a */
    876 L_30004736:
    877     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    878     ebx = 0; /* 0x30004736: xor ebx, ebx */
    879     _cf = 0;
    880     _flag_k = FK_TEST;
    881     goto L_30004742; /* 0x30004738: jmp 0x30004742 */
    882 L_3000473A:
    883     ebx = MEM32(edi + 0x8); /* 0x3000473A: mov ebx, dword ptr [edi + 8] */
    884     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
    885     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    886     ebx = ebx - eax; /* 0x3000473D: sub ebx, eax */
    887     _flag_k = FK_CMP;
    888     if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x3000473F: sar ebx, 2 */
    889     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    890     ebx = (uint32_t)((int32_t)ebx >> 2u);
    891 L_30004742:
    892     edx = MEM32(esi + 0x4); /* 0x30004742: mov edx, dword ptr [esi + 4] */
    893     /* test edx, edx */ /* 0x30004745: test edx, edx */
    894     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    895     _cf = 0;
    896     _flag_k = FK_TEST;
    897     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000474D; /* 0x30004747: jne 0x3000474d */
    898 L_30004749:
    899     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    900     ecx = 0; /* 0x30004749: xor ecx, ecx */
    901     _cf = 0;
    902     _flag_k = FK_TEST;
    903     goto L_30004755; /* 0x3000474B: jmp 0x30004755 */
    904 L_3000474D:
    905     ecx = MEM32(esi + 0x8); /* 0x3000474D: mov ecx, dword ptr [esi + 8] */
    906     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    908     ecx = ecx - edx; /* 0x30004750: sub ecx, edx */
    909     _flag_k = FK_CMP;
    910     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x30004752: sar ecx, 2 */
    911     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    912     ecx = (uint32_t)((int32_t)ecx >> 2u);
    913 L_30004755:
    914     /* cmp ebx, ecx */ /* 0x30004755: cmp ebx, ecx */
    915     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
    916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    917     _flag_k = FK_CMP;
    918     if (CMP_A(_flag_a, _flag_b)) goto L_300047A1; /* 0x30004757: ja 0x300047a1 */
    919 L_30004759:
    920     ecx = MEM32(edi + 0x8); /* 0x30004759: mov ecx, dword ptr [edi + 8] */
    921     /* cmp eax, ecx */ /* 0x3000475C: cmp eax, ecx */
    922     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    923     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    924     _flag_k = FK_CMP;
    925     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000476E; /* 0x3000475E: je 0x3000476e */
    926 L_30004760:
    927     esi = MEM32(eax); /* 0x30004760: mov esi, dword ptr [eax] */
    928     MEM32(edx) = esi; /* 0x30004762: mov dword ptr [edx], esi */
    929     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    930     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    931     eax = eax + 4; /* 0x30004764: add eax, 4 */
    932     _flag_k = FK_ADD;
    933     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
    934     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    935     edx = edx + 4; /* 0x30004767: add edx, 4 */
    936     _flag_k = FK_ADD;
    937     /* cmp eax, ecx */ /* 0x3000476A: cmp eax, ecx */
    938     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    940     _flag_k = FK_CMP;
    941     RECOMP_BACKEDGE();
    942     if (CMP_NE(_flag_a, _flag_b)) goto L_30004760; /* 0x3000476C: jne 0x30004760 */
    943 L_3000476E:
    944     eax = MEM32(edi + 0x4); /* 0x3000476E: mov eax, dword ptr [edi + 4] */
    945     /* test eax, eax */ /* 0x30004771: test eax, eax */
    946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    947     _cf = 0;
    948     _flag_k = FK_TEST;
    949     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004788; /* 0x30004773: jne 0x30004788 */
    950 L_30004775:
    951     eax = MEM32(ebp + (-0x4)); /* 0x30004775: mov eax, dword ptr [ebp - 4] */
    952     ecx = MEM32(eax + 0x8); /* 0x30004778: mov ecx, dword ptr [eax + 8] */
    953     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    954     edi = 0; /* 0x3000477B: xor edi, edi */
    955     _cf = 0;
    956     _flag_k = FK_TEST;
    957     edx = ecx + edi * 4; /* 0x3000477D: lea edx, [ecx + edi*4] */
    958     MEM32(eax + 0xC) = edx; /* 0x30004780: mov dword ptr [eax + 0xc], edx */
    959     goto L_3000488D; /* 0x30004783: jmp 0x3000488d */
    960 L_30004788:
    961     edi = MEM32(edi + 0x8); /* 0x30004788: mov edi, dword ptr [edi + 8] */
    962     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    964     edi = edi - eax; /* 0x3000478B: sub edi, eax */
    965     _flag_k = FK_CMP;
    966     eax = MEM32(ebp + (-0x4)); /* 0x3000478D: mov eax, dword ptr [ebp - 4] */
    967     ecx = MEM32(eax + 0x8); /* 0x30004790: mov ecx, dword ptr [eax + 8] */
    968     if (2u) _cf = (((edi) >> 1) & 1u); /* 0x30004793: sar edi, 2 */
    969     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    970     edi = (uint32_t)((int32_t)edi >> 2u);
    971     edx = ecx + edi * 4; /* 0x30004796: lea edx, [ecx + edi*4] */
    972     MEM32(eax + 0xC) = edx; /* 0x30004799: mov dword ptr [eax + 0xc], edx */
    973     goto L_3000488D; /* 0x3000479C: jmp 0x3000488d */
    974 L_300047A1:
    975     /* test eax, eax */ /* 0x300047A1: test eax, eax */
    976     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    977     _cf = 0;
    978     _flag_k = FK_TEST;
    979     if (TEST_NZ(_flag_a, _flag_b)) goto L_300047A9; /* 0x300047A3: jne 0x300047a9 */
    980 L_300047A5:
    981     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    982     ebx = 0; /* 0x300047A5: xor ebx, ebx */
    983     _cf = 0;
    984     _flag_k = FK_TEST;
    985     goto L_300047B1; /* 0x300047A7: jmp 0x300047b1 */
    986 L_300047A9:
    987     ebx = MEM32(edi + 0x8); /* 0x300047A9: mov ebx, dword ptr [edi + 8] */
    988     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
    989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    990     ebx = ebx - eax; /* 0x300047AC: sub ebx, eax */
    991     _flag_k = FK_CMP;
    992     if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x300047AE: sar ebx, 2 */
    993     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    994     ebx = (uint32_t)((int32_t)ebx >> 2u);
    995 L_300047B1:
    996     /* test edx, edx */ /* 0x300047B1: test edx, edx */
    997     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    998     _cf = 0;
    999     _flag_k = FK_TEST;
   1000     if (TEST_NZ(_flag_a, _flag_b)) goto L_300047B9; /* 0x300047B3: jne 0x300047b9 */
   1001 L_300047B5:
   1002     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1003     ecx = 0; /* 0x300047B5: xor ecx, ecx */
   1004     _cf = 0;
   1005     _flag_k = FK_TEST;
   1006     goto L_300047C1; /* 0x300047B7: jmp 0x300047c1 */
   1007 L_300047B9:
   1008     ecx = MEM32(esi + 0xC); /* 0x300047B9: mov ecx, dword ptr [esi + 0xc] */
   1009     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1010     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1011     ecx = ecx - edx; /* 0x300047BC: sub ecx, edx */
   1012     _flag_k = FK_CMP;
   1013     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x300047BE: sar ecx, 2 */
   1014     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1015     ecx = (uint32_t)((int32_t)ecx >> 2u);
   1016 L_300047C1:
   1017     /* cmp ebx, ecx */ /* 0x300047C1: cmp ebx, ecx */
   1018     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   1019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1020     _flag_k = FK_CMP;
   1021     if (CMP_A(_flag_a, _flag_b)) goto L_30004840; /* 0x300047C3: ja 0x30004840 */
   1022 L_300047C5:
   1023     /* test edx, edx */ /* 0x300047C5: test edx, edx */
   1024     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1025     _cf = 0;
   1026     _flag_k = FK_TEST;
   1027     if (TEST_NZ(_flag_a, _flag_b)) goto L_300047CD; /* 0x300047C7: jne 0x300047cd */
   1028 L_300047C9:
   1029     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1030     esi = 0; /* 0x300047C9: xor esi, esi */
   1031     _cf = 0;
   1032     _flag_k = FK_TEST;
   1033     goto L_300047D5; /* 0x300047CB: jmp 0x300047d5 */
   1034 L_300047CD:
   1035     esi = MEM32(esi + 0x8); /* 0x300047CD: mov esi, dword ptr [esi + 8] */
   1036     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1038     esi = esi - edx; /* 0x300047D0: sub esi, edx */
   1039     _flag_k = FK_CMP;
   1040     if (2u) _cf = (((esi) >> 1) & 1u); /* 0x300047D2: sar esi, 2 */
   1041     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1042     esi = (uint32_t)((int32_t)esi >> 2u);
   1043 L_300047D5:
   1044     ecx = eax + esi * 4; /* 0x300047D5: lea ecx, [eax + esi*4] */
   1045     /* cmp eax, ecx */ /* 0x300047D8: cmp eax, ecx */
   1046     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1048     _flag_k = FK_CMP;
   1049     if (CMP_EQ(_flag_a, _flag_b)) goto L_300047EA; /* 0x300047DA: je 0x300047ea */
   1050 L_300047DC:
   1051     esi = MEM32(eax); /* 0x300047DC: mov esi, dword ptr [eax] */
   1052     MEM32(edx) = esi; /* 0x300047DE: mov dword ptr [edx], esi */
   1053     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   1054     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1055     eax = eax + 4; /* 0x300047E0: add eax, 4 */
   1056     _flag_k = FK_ADD;
   1057     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   1058     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1059     edx = edx + 4; /* 0x300047E3: add edx, 4 */
   1060     _flag_k = FK_ADD;
   1061     /* cmp eax, ecx */ /* 0x300047E6: cmp eax, ecx */
   1062     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1063     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1064     _flag_k = FK_CMP;
   1065     RECOMP_BACKEDGE();
   1066     if (CMP_NE(_flag_a, _flag_b)) goto L_300047DC; /* 0x300047E8: jne 0x300047dc */
   1067 L_300047EA:
   1068     eax = MEM32(edi + 0x8); /* 0x300047EA: mov eax, dword ptr [edi + 8] */
   1069     edx = MEM32(ebp + (-0x4)); /* 0x300047ED: mov edx, dword ptr [ebp - 4] */
   1070     ebx = MEM32(edx + 0xC); /* 0x300047F0: mov ebx, dword ptr [edx + 0xc] */
   1071     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   1072     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1073     edx = edx + 4; /* 0x300047F3: add edx, 4 */
   1074     _flag_k = FK_ADD;
   1075     /* cmp ecx, eax */ /* 0x300047F6: cmp ecx, eax */
   1076     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1078     _flag_k = FK_CMP;
   1079     MEM32(ebp + (-0x8)) = eax; /* 0x300047F8: mov dword ptr [ebp - 8], eax */
   1080     esi = ecx; /* 0x300047FB: mov esi, ecx */
   1081     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004816; /* 0x300047FD: je 0x30004816 */
   1082 L_300047FF:
   1083     PUSH32(esp, esi); /* 0x300047FF: push esi */
   1084     PUSH32(esp, ebx); /* 0x30004800: push ebx */
   1085     RECOMP_ICALL(0x300053D0u); /* 0x30004801: call 0x300053d0 */ /* not lifted */
   1086     RECOMP_FLAGS_IN();
   1087     eax = MEM32(ebp + (-0x8)); /* 0x30004806: mov eax, dword ptr [ebp - 8] */
   1088     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   1089     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1090     esi = esi + 4; /* 0x30004809: add esi, 4 */
   1091     _flag_k = FK_ADD;
   1092     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1093     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1094     esp = esp + 8; /* 0x3000480C: add esp, 8 */
   1095     _flag_k = FK_ADD;
   1096     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   1097     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1098     ebx = ebx + 4; /* 0x3000480F: add ebx, 4 */
   1099     _flag_k = FK_ADD;
   1100     /* cmp esi, eax */ /* 0x30004812: cmp esi, eax */
   1101     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1103     _flag_k = FK_CMP;
   1104     RECOMP_BACKEDGE();
   1105     if (CMP_NE(_flag_a, _flag_b)) goto L_300047FF; /* 0x30004814: jne 0x300047ff */
   1106 L_30004816:
   1107     eax = MEM32(edi + 0x4); /* 0x30004816: mov eax, dword ptr [edi + 4] */
   1108     /* test eax, eax */ /* 0x30004819: test eax, eax */
   1109     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1110     _cf = 0;
   1111     _flag_k = FK_TEST;
   1112     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004821; /* 0x3000481B: jne 0x30004821 */
   1113 L_3000481D:
   1114     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1115     edi = 0; /* 0x3000481D: xor edi, edi */
   1116     _cf = 0;
   1117     _flag_k = FK_TEST;
   1118     goto L_30004829; /* 0x3000481F: jmp 0x30004829 */
   1119 L_30004821:
   1120     edi = MEM32(edi + 0x8); /* 0x30004821: mov edi, dword ptr [edi + 8] */
   1121     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1123     edi = edi - eax; /* 0x30004824: sub edi, eax */
   1124     _flag_k = FK_CMP;
   1125     if (2u) _cf = (((edi) >> 1) & 1u); /* 0x30004826: sar edi, 2 */
   1126     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1127     edi = (uint32_t)((int32_t)edi >> 2u);
   1128 L_30004829:
   1129     eax = MEM32(ebp + (-0x4)); /* 0x30004829: mov eax, dword ptr [ebp - 4] */
   1130     ecx = MEM32(eax + 0x8); /* 0x3000482C: mov ecx, dword ptr [eax + 8] */
   1131     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   1132     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1133     eax = eax + 4; /* 0x3000482F: add eax, 4 */
   1134     _flag_k = FK_ADD;
   1135     edx = ecx + edi * 4; /* 0x30004832: lea edx, [ecx + edi*4] */
   1136     ecx = MEM32(ebp + 0x8); /* 0x30004835: mov ecx, dword ptr [ebp + 8] */
   1137     MEM32(eax + 0x8) = edx; /* 0x30004838: mov dword ptr [eax + 8], edx */
   1138     eax = MEM32(ebp + (-0x4)); /* 0x3000483B: mov eax, dword ptr [ebp - 4] */
   1139     goto L_30004890; /* 0x3000483E: jmp 0x30004890 */
   1140 L_30004840:
   1141     PUSH32(esp, edx); /* 0x30004840: push edx */
   1142     MEM32(ebp + (-0x8)) = edx; /* 0x30004841: mov dword ptr [ebp - 8], edx */
   1143     RECOMP_ICALL(0x30018080u); /* 0x30004844: call 0x30018080 */ /* not lifted */
   1144     RECOMP_FLAGS_IN();
   1145     ecx = MEM32(edi + 0x4); /* 0x30004849: mov ecx, dword ptr [edi + 4] */
   1146     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1147     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1148     esp = esp + 4; /* 0x3000484C: add esp, 4 */
   1149     _flag_k = FK_ADD;
   1150     /* test ecx, ecx */ /* 0x3000484F: test ecx, ecx */
   1151     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1152     _cf = 0;
   1153     _flag_k = FK_TEST;
   1154     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004857; /* 0x30004851: jne 0x30004857 */
   1155 L_30004853:
   1156     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1157     eax = 0; /* 0x30004853: xor eax, eax */
   1158     _cf = 0;
   1159     _flag_k = FK_TEST;
   1160     goto L_3000485F; /* 0x30004855: jmp 0x3000485f */
   1161 L_30004857:
   1162     eax = MEM32(edi + 0x8); /* 0x30004857: mov eax, dword ptr [edi + 8] */
   1163     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1165     eax = eax - ecx; /* 0x3000485A: sub eax, ecx */
   1166     _flag_k = FK_CMP;
   1167     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000485C: sar eax, 2 */
   1168     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1169     eax = (uint32_t)((int32_t)eax >> 2u);
   1170 L_3000485F:
   1171     /* test eax, eax */ /* 0x3000485F: test eax, eax */
   1172     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1173     _cf = 0;
   1174     _flag_k = FK_TEST;
   1175     if (TEST_NS(_flag_a, _flag_b)) goto L_30004865; /* 0x30004861: jge 0x30004865 */
   1176 L_30004863:
   1177     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1178     eax = 0; /* 0x30004863: xor eax, eax */
   1179     _cf = 0;
   1180     _flag_k = FK_TEST;
   1181 L_30004865:
   1182     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x30004865: shl eax, 2 */
   1183     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1184     eax = eax << 2u; /* 0x30004865: shl eax, 2 */
   1185     PUSH32(esp, eax); /* 0x30004868: push eax */
   1186     RECOMP_ICALL(0x300180A8u); /* 0x30004869: call 0x300180a8 */ /* not lifted */
   1187     RECOMP_FLAGS_IN();
   1188     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1190     esp = esp + 4; /* 0x3000486E: add esp, 4 */
   1191     _flag_k = FK_ADD;
   1192     MEM32(esi + 0x4) = eax; /* 0x30004871: mov dword ptr [esi + 4], eax */
   1193     ecx = MEM32(edi + 0x8); /* 0x30004874: mov ecx, dword ptr [edi + 8] */
   1194     edi = MEM32(edi + 0x4); /* 0x30004877: mov edi, dword ptr [edi + 4] */
   1195     PUSH32(esp, eax); /* 0x3000487A: push eax */
   1196     PUSH32(esp, ecx); /* 0x3000487B: push ecx */
   1197     PUSH32(esp, edi); /* 0x3000487C: push edi */
   1198     ecx = esi; /* 0x3000487D: mov ecx, esi */
   1199     RECOMP_ICALL(0x30012BB0u); /* 0x3000487F: call 0x30012bb0 */ /* not lifted */
   1200     RECOMP_FLAGS_IN();
   1201     MEM32(esi + 0x8) = eax; /* 0x30004884: mov dword ptr [esi + 8], eax */
   1202     MEM32(esi + 0xC) = eax; /* 0x30004887: mov dword ptr [esi + 0xc], eax */
   1203     eax = MEM32(ebp + (-0x4)); /* 0x3000488A: mov eax, dword ptr [ebp - 4] */
   1204 L_3000488D:
   1205     ecx = MEM32(ebp + 0x8); /* 0x3000488D: mov ecx, dword ptr [ebp + 8] */
   1206 L_30004890:
   1207     edx = MEM32(ecx + 0x14); /* 0x30004890: mov edx, dword ptr [ecx + 0x14] */
   1208     MEM32(eax + 0x14) = edx; /* 0x30004893: mov dword ptr [eax + 0x14], edx */
   1209     edx = MEM32(ecx + 0x18); /* 0x30004896: mov edx, dword ptr [ecx + 0x18] */
   1210     MEM32(eax + 0x18) = edx; /* 0x30004899: mov dword ptr [eax + 0x18], edx */
   1211     edx = MEM32(ecx + 0x1C); /* 0x3000489C: mov edx, dword ptr [ecx + 0x1c] */
   1212     MEM32(eax + 0x1C) = edx; /* 0x3000489F: mov dword ptr [eax + 0x1c], edx */
   1213     edx = MEM32(ecx + 0x20); /* 0x300048A2: mov edx, dword ptr [ecx + 0x20] */
   1214     MEM32(eax + 0x20) = edx; /* 0x300048A5: mov dword ptr [eax + 0x20], edx */
   1215     edx = MEM32(ecx + 0x24); /* 0x300048A8: mov edx, dword ptr [ecx + 0x24] */
   1216     MEM32(eax + 0x24) = edx; /* 0x300048AB: mov dword ptr [eax + 0x24], edx */
   1217     edx = MEM32(ecx + 0x28); /* 0x300048AE: mov edx, dword ptr [ecx + 0x28] */
   1218     edi = POP32_VAL(esp); /* 0x300048B1: pop edi */
   1219     MEM32(eax + 0x28) = edx; /* 0x300048B2: mov dword ptr [eax + 0x28], edx */
   1220     SET_LO8(ecx, MEM8(ecx + 0x2C)); /* 0x300048B5: mov cl, byte ptr [ecx + 0x2c] */
   1221     esi = POP32_VAL(esp); /* 0x300048B8: pop esi */
   1222     MEM8(eax + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x300048B9: mov byte ptr [eax + 0x2c], cl */
   1223     ebx = POP32_VAL(esp); /* 0x300048BC: pop ebx */
   1224     esp = ebp; /* 0x300048BD: mov esp, ebp */
   1225     ebp = POP32_VAL(esp); /* 0x300048BF: pop ebp */
   1226     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300048C0: ret 4 */
   1227     RECOMP_REGS_OUT();
   1228 }
   1229 
   1230 void sub_3000488D(void) {
   1231     int _fpu_cmp = 0;
   1232     uint32_t _cf = 0;
   1233     int _df = 1;
   1234     uint32_t _flag_k = FK_NONE;
   1235     uint32_t _flag_a = 0, _flag_b = 0;
   1236     uint32_t _itail_tgt = 0;
   1237     RECOMP_REGS_LOCALS
   1238     RECOMP_ENTER(0x3000488Du);
   1239 
   1240 L_3000488D:
   1241     ecx = MEM32(ebp + 0x8); /* 0x3000488D: mov ecx, dword ptr [ebp + 8] */
   1242     edx = MEM32(ecx + 0x14); /* 0x30004890: mov edx, dword ptr [ecx + 0x14] */
   1243     MEM32(eax + 0x14) = edx; /* 0x30004893: mov dword ptr [eax + 0x14], edx */
   1244     edx = MEM32(ecx + 0x18); /* 0x30004896: mov edx, dword ptr [ecx + 0x18] */
   1245     MEM32(eax + 0x18) = edx; /* 0x30004899: mov dword ptr [eax + 0x18], edx */
   1246     edx = MEM32(ecx + 0x1C); /* 0x3000489C: mov edx, dword ptr [ecx + 0x1c] */
   1247     MEM32(eax + 0x1C) = edx; /* 0x3000489F: mov dword ptr [eax + 0x1c], edx */
   1248     edx = MEM32(ecx + 0x20); /* 0x300048A2: mov edx, dword ptr [ecx + 0x20] */
   1249     MEM32(eax + 0x20) = edx; /* 0x300048A5: mov dword ptr [eax + 0x20], edx */
   1250     edx = MEM32(ecx + 0x24); /* 0x300048A8: mov edx, dword ptr [ecx + 0x24] */
   1251     MEM32(eax + 0x24) = edx; /* 0x300048AB: mov dword ptr [eax + 0x24], edx */
   1252     edx = MEM32(ecx + 0x28); /* 0x300048AE: mov edx, dword ptr [ecx + 0x28] */
   1253     edi = POP32_VAL(esp); /* 0x300048B1: pop edi */
   1254     MEM32(eax + 0x28) = edx; /* 0x300048B2: mov dword ptr [eax + 0x28], edx */
   1255     SET_LO8(ecx, MEM8(ecx + 0x2C)); /* 0x300048B5: mov cl, byte ptr [ecx + 0x2c] */
   1256     esi = POP32_VAL(esp); /* 0x300048B8: pop esi */
   1257     MEM8(eax + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x300048B9: mov byte ptr [eax + 0x2c], cl */
   1258     ebx = POP32_VAL(esp); /* 0x300048BC: pop ebx */
   1259     esp = ebp; /* 0x300048BD: mov esp, ebp */
   1260     ebp = POP32_VAL(esp); /* 0x300048BF: pop ebp */
   1261     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300048C0: ret 4 */
   1262     RECOMP_REGS_OUT();
   1263 }
   1264 
   1265 void sub_300048D0(void) {
   1266     int _fpu_cmp = 0;
   1267     uint32_t _cf = 0;
   1268     int _df = 1;
   1269     uint32_t _flag_k = FK_NONE;
   1270     uint32_t _flag_a = 0, _flag_b = 0;
   1271     uint32_t _itail_tgt = 0;
   1272     RECOMP_REGS_LOCALS
   1273     RECOMP_ENTER(0x300048D0u);
   1274 
   1275 L_300048D0:
   1276     PUSH32(esp, ebp); /* 0x300048D0: push ebp */
   1277     ebp = esp; /* 0x300048D1: mov ebp, esp */
   1278     PUSH32(esp, ebx); /* 0x300048D3: push ebx */
   1279     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x300048D4: mov bl, byte ptr [ebp + 8] */
   1280     /* test LO8(ebx), 2 */ /* 0x300048D7: test bl, 2 */
   1281     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   1282     _cf = 0;
   1283     _flag_k = FK_NARROW(FK_TEST, 24);
   1284     PUSH32(esp, esi); /* 0x300048DA: push esi */
   1285     esi = ecx; /* 0x300048DB: mov esi, ecx */
   1286     if (TEST_Z(_flag_a, _flag_b)) goto L_3000490B; /* 0x300048DD: je 0x3000490b */
   1287 L_300048DF:
   1288     eax = MEM32(esi + (-0x4)); /* 0x300048DF: mov eax, dword ptr [esi - 4] */
   1289     PUSH32(esp, edi); /* 0x300048E2: push edi */
   1290     PUSH32(esp, 0x30003650u); /* 0x300048E3: push 0x30003650 */
   1291     edi = esi + (-0x4); /* 0x300048E8: lea edi, [esi - 4] */
   1292     PUSH32(esp, eax); /* 0x300048EB: push eax */
   1293     PUSH32(esp, 0x30u); /* 0x300048EC: push 0x30 */
   1294     PUSH32(esp, esi); /* 0x300048EE: push esi */
   1295     RECOMP_ICALL(0x300180FEu); /* 0x300048EF: call 0x300180fe */ /* not lifted */
   1296     RECOMP_FLAGS_IN();
   1297     /* test LO8(ebx), 1 */ /* 0x300048F4: test bl, 1 */
   1298     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1299     _cf = 0;
   1300     _flag_k = FK_NARROW(FK_TEST, 24);
   1301     if (TEST_Z(_flag_a, _flag_b)) goto L_30004902; /* 0x300048F7: je 0x30004902 */
   1302 L_300048F9:
   1303     PUSH32(esp, edi); /* 0x300048F9: push edi */
   1304     RECOMP_ICALL(0x30018080u); /* 0x300048FA: call 0x30018080 */ /* not lifted */
   1305     RECOMP_FLAGS_IN();
   1306     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1307     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1308     esp = esp + 4; /* 0x300048FF: add esp, 4 */
   1309     _flag_k = FK_ADD;
   1310 L_30004902:
   1311     eax = edi; /* 0x30004902: mov eax, edi */
   1312     edi = POP32_VAL(esp); /* 0x30004904: pop edi */
   1313     esi = POP32_VAL(esp); /* 0x30004905: pop esi */
   1314     ebx = POP32_VAL(esp); /* 0x30004906: pop ebx */
   1315     ebp = POP32_VAL(esp); /* 0x30004907: pop ebp */
   1316     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30004908: ret 4 */
   1317 L_3000490B:
   1318     ecx = esi; /* 0x3000490B: mov ecx, esi */
   1319     RECOMP_ICALL(0x30003650u); /* 0x3000490D: call 0x30003650 */ /* not lifted */
   1320     RECOMP_FLAGS_IN();
   1321     /* test LO8(ebx), 1 */ /* 0x30004912: test bl, 1 */
   1322     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1323     _cf = 0;
   1324     _flag_k = FK_NARROW(FK_TEST, 24);
   1325     if (TEST_Z(_flag_a, _flag_b)) goto L_30004920; /* 0x30004915: je 0x30004920 */
   1326 L_30004917:
   1327     PUSH32(esp, esi); /* 0x30004917: push esi */
   1328     RECOMP_ICALL(0x30018080u); /* 0x30004918: call 0x30018080 */ /* not lifted */
   1329     RECOMP_FLAGS_IN();
   1330     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1331     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1332     esp = esp + 4; /* 0x3000491D: add esp, 4 */
   1333     _flag_k = FK_ADD;
   1334 L_30004920:
   1335     eax = esi; /* 0x30004920: mov eax, esi */
   1336     esi = POP32_VAL(esp); /* 0x30004922: pop esi */
   1337     ebx = POP32_VAL(esp); /* 0x30004923: pop ebx */
   1338     ebp = POP32_VAL(esp); /* 0x30004924: pop ebp */
   1339     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30004925: ret 4 */
   1340     RECOMP_REGS_OUT();
   1341 }
   1342 
   1343 void sub_30004930(void) {
   1344     int _fpu_cmp = 0;
   1345     uint32_t _cf = 0;
   1346     int _df = 1;
   1347     uint32_t _flag_k = FK_NONE;
   1348     uint32_t _flag_a = 0, _flag_b = 0;
   1349     uint32_t _itail_tgt = 0;
   1350     RECOMP_REGS_LOCALS
   1351     RECOMP_ENTER(0x30004930u);
   1352 
   1353 L_30004930:
   1354     PUSH32(esp, ebp); /* 0x30004930: push ebp */
   1355     ebp = esp; /* 0x30004931: mov ebp, esp */
   1356     PUSH32(esp, ebx); /* 0x30004933: push ebx */
   1357     ebx = MEM32(ebp + 0x8); /* 0x30004934: mov ebx, dword ptr [ebp + 8] */
   1358     fp_push(*(float*)&MEM32(ebx)); /* 0x30004937: fld dword ptr [ebx] */
   1359     PUSH32(esp, esi); /* 0x30004939: push esi */
   1360     esi = ecx; /* 0x3000493A: mov esi, ecx */
   1361     _st[0] /= (double)*(float*)ADDR(esi + 0x24); /* 0x3000493C: fdiv dword ptr [esi + 0x24] */
   1362     PUSH32(esp, edi); /* 0x3000493F: push edi */
   1363     RECOMP_ICALL(0x300181F8u); /* 0x30004940: call 0x300181f8 */ /* not lifted */
   1364     RECOMP_FLAGS_IN();
   1365     fp_push(*(float*)&MEM32(ebx + 0x8)); /* 0x30004945: fld dword ptr [ebx + 8] */
   1366     _st[0] /= (double)*(float*)ADDR(esi + 0x28); /* 0x30004948: fdiv dword ptr [esi + 0x28] */
   1367     edi = eax; /* 0x3000494B: mov edi, eax */
   1368     RECOMP_ICALL(0x300181F8u); /* 0x3000494D: call 0x300181f8 */ /* not lifted */
   1369     RECOMP_FLAGS_IN();
   1370     /* test edi, edi */ /* 0x30004952: test edi, edi */
   1371     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1372     _cf = 0;
   1373     _flag_k = FK_TEST;
   1374     ecx = eax; /* 0x30004954: mov ecx, eax */
   1375     if (TEST_S(_flag_a, _flag_b)) goto L_30004974; /* 0x30004956: jl 0x30004974 */
   1376 L_30004958:
   1377     eax = MEM32(esi + 0x14); /* 0x30004958: mov eax, dword ptr [esi + 0x14] */
   1378     /* cmp edi, eax */ /* 0x3000495B: cmp edi, eax */
   1379     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1380     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1381     _flag_k = FK_CMP;
   1382     if (CMP_GE(_flag_a, _flag_b)) goto L_30004974; /* 0x3000495D: jge 0x30004974 */
   1383 L_3000495F:
   1384     /* test ecx, ecx */ /* 0x3000495F: test ecx, ecx */
   1385     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1386     _cf = 0;
   1387     _flag_k = FK_TEST;
   1388     if (TEST_S(_flag_a, _flag_b)) goto L_30004974; /* 0x30004961: jl 0x30004974 */
   1389 L_30004963:
   1390     /* cmp ecx, MEM32(esi + 0x18) */ /* 0x30004963: cmp ecx, dword ptr [esi + 0x18] */
   1391     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x18));
   1392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1393     _flag_k = FK_CMP;
   1394     if (CMP_GE(_flag_a, _flag_b)) goto L_30004974; /* 0x30004966: jge 0x30004974 */
   1395 L_30004968:
   1396     eax = (uint32_t)((int32_t)eax * (int32_t)ecx); /* 0x30004968: imul eax, ecx */
   1397     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1398     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1399     eax = eax + edi; /* 0x3000496B: add eax, edi */
   1400     _flag_k = FK_ADD;
   1401     edi = POP32_VAL(esp); /* 0x3000496D: pop edi */
   1402     esi = POP32_VAL(esp); /* 0x3000496E: pop esi */
   1403     ebx = POP32_VAL(esp); /* 0x3000496F: pop ebx */
   1404     ebp = POP32_VAL(esp); /* 0x30004970: pop ebp */
   1405     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30004971: ret 4 */
   1406 L_30004974:
   1407     edi = POP32_VAL(esp); /* 0x30004974: pop edi */
   1408     esi = POP32_VAL(esp); /* 0x30004975: pop esi */
   1409     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1410     eax = eax | 0xFFFFFFFFu; /* 0x30004976: or eax, 0xffffffff */
   1411     _cf = 0;
   1412     _flag_k = FK_TEST;
   1413     ebx = POP32_VAL(esp); /* 0x30004979: pop ebx */
   1414     ebp = POP32_VAL(esp); /* 0x3000497A: pop ebp */
   1415     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000497B: ret 4 */
   1416     RECOMP_REGS_OUT();
   1417 }
   1418 
   1419 void sub_30004980(void) {
   1420     int _fpu_cmp = 0;
   1421     uint32_t _cf = 0;
   1422     int _df = 1;
   1423     uint32_t _flag_k = FK_NONE;
   1424     uint32_t _flag_a = 0, _flag_b = 0;
   1425     uint32_t _itail_tgt = 0;
   1426     RECOMP_REGS_LOCALS
   1427     RECOMP_ENTER(0x30004980u);
   1428 
   1429 L_30004980:
   1430     MEM32(ecx) = 0x30019160u; /* 0x30004980: mov dword ptr [ecx], 0x30019160 */
   1431     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30004986: ret  */
   1432     RECOMP_REGS_OUT();
   1433 }
   1434 
   1435 void sub_30004990(void) {
   1436     int _fpu_cmp = 0;
   1437     uint32_t _cf = 0;
   1438     int _df = 1;
   1439     uint32_t _flag_k = FK_NONE;
   1440     uint32_t _flag_a = 0, _flag_b = 0;
   1441     uint32_t _itail_tgt = 0;
   1442     RECOMP_REGS_LOCALS
   1443     RECOMP_ENTER(0x30004990u);
   1444 
   1445 L_30004990:
   1446     eax = ecx; /* 0x30004990: mov eax, ecx */
   1447     MEM32(eax) = 0x30019160u; /* 0x30004992: mov dword ptr [eax], 0x30019160 */
   1448     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30004998: ret  */
   1449     RECOMP_REGS_OUT();
   1450 }
   1451 
   1452 void sub_300049A0(void) {
   1453     int _fpu_cmp = 0;
   1454     uint32_t _cf = 0;
   1455     int _df = 1;
   1456     uint32_t _flag_k = FK_NONE;
   1457     uint32_t _flag_a = 0, _flag_b = 0;
   1458     uint32_t _itail_tgt = 0;
   1459     RECOMP_REGS_LOCALS
   1460     RECOMP_ENTER(0x300049A0u);
   1461 
   1462 L_300049A0:
   1463     eax = ecx; /* 0x300049A0: mov eax, ecx */
   1464     MEM32(eax) = 0x30019160u; /* 0x300049A2: mov dword ptr [eax], 0x30019160 */
   1465     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300049A8: ret 4 */
   1466     RECOMP_REGS_OUT();
   1467 }
   1468 
   1469 void sub_300049B0(void) {
   1470     int _fpu_cmp = 0;
   1471     uint32_t _cf = 0;
   1472     int _df = 1;
   1473     uint32_t _flag_k = FK_NONE;
   1474     uint32_t _flag_a = 0, _flag_b = 0;
   1475     uint32_t _itail_tgt = 0;
   1476     RECOMP_REGS_LOCALS
   1477     RECOMP_ENTER(0x300049B0u);
   1478 
   1479 L_300049B0:
   1480     PUSH32(esp, ebp); /* 0x300049B0: push ebp */
   1481     ebp = esp; /* 0x300049B1: mov ebp, esp */
   1482     PUSH32(esp, ebx); /* 0x300049B3: push ebx */
   1483     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x300049B4: mov bl, byte ptr [ebp + 8] */
   1484     /* test LO8(ebx), 2 */ /* 0x300049B7: test bl, 2 */
   1485     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   1486     _cf = 0;
   1487     _flag_k = FK_NARROW(FK_TEST, 24);
   1488     PUSH32(esp, esi); /* 0x300049BA: push esi */
   1489     esi = ecx; /* 0x300049BB: mov esi, ecx */
   1490     if (TEST_Z(_flag_a, _flag_b)) goto L_300049EB; /* 0x300049BD: je 0x300049eb */
   1491 L_300049BF:
   1492     eax = MEM32(esi + (-0x4)); /* 0x300049BF: mov eax, dword ptr [esi - 4] */
   1493     PUSH32(esp, edi); /* 0x300049C2: push edi */
   1494     PUSH32(esp, 0x30004980u); /* 0x300049C3: push 0x30004980 */
   1495     edi = esi + (-0x4); /* 0x300049C8: lea edi, [esi - 4] */
   1496     PUSH32(esp, eax); /* 0x300049CB: push eax */
   1497     PUSH32(esp, 4); /* 0x300049CC: push 4 */
   1498     PUSH32(esp, esi); /* 0x300049CE: push esi */
   1499     RECOMP_ICALL(0x300180FEu); /* 0x300049CF: call 0x300180fe */ /* not lifted */
   1500     RECOMP_FLAGS_IN();
   1501     /* test LO8(ebx), 1 */ /* 0x300049D4: test bl, 1 */
   1502     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1503     _cf = 0;
   1504     _flag_k = FK_NARROW(FK_TEST, 24);
   1505     if (TEST_Z(_flag_a, _flag_b)) goto L_300049E2; /* 0x300049D7: je 0x300049e2 */
   1506 L_300049D9:
   1507     PUSH32(esp, edi); /* 0x300049D9: push edi */
   1508     RECOMP_ICALL(0x30018080u); /* 0x300049DA: call 0x30018080 */ /* not lifted */
   1509     RECOMP_FLAGS_IN();
   1510     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1511     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1512     esp = esp + 4; /* 0x300049DF: add esp, 4 */
   1513     _flag_k = FK_ADD;
   1514 L_300049E2:
   1515     eax = edi; /* 0x300049E2: mov eax, edi */
   1516     edi = POP32_VAL(esp); /* 0x300049E4: pop edi */
   1517     esi = POP32_VAL(esp); /* 0x300049E5: pop esi */
   1518     ebx = POP32_VAL(esp); /* 0x300049E6: pop ebx */
   1519     ebp = POP32_VAL(esp); /* 0x300049E7: pop ebp */
   1520     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300049E8: ret 4 */
   1521 L_300049EB:
   1522     /* test LO8(ebx), 1 */ /* 0x300049EB: test bl, 1 */
   1523     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   1524     _cf = 0;
   1525     _flag_k = FK_NARROW(FK_TEST, 24);
   1526     MEM32(esi) = 0x30019160u; /* 0x300049EE: mov dword ptr [esi], 0x30019160 */
   1527     if (TEST_Z(_flag_a, _flag_b)) goto L_300049FF; /* 0x300049F4: je 0x300049ff */
   1528 L_300049F6:
   1529     PUSH32(esp, esi); /* 0x300049F6: push esi */
   1530     RECOMP_ICALL(0x30018080u); /* 0x300049F7: call 0x30018080 */ /* not lifted */
   1531     RECOMP_FLAGS_IN();
   1532     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1533     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1534     esp = esp + 4; /* 0x300049FC: add esp, 4 */
   1535     _flag_k = FK_ADD;
   1536 L_300049FF:
   1537     eax = esi; /* 0x300049FF: mov eax, esi */
   1538     esi = POP32_VAL(esp); /* 0x30004A01: pop esi */
   1539     ebx = POP32_VAL(esp); /* 0x30004A02: pop ebx */
   1540     ebp = POP32_VAL(esp); /* 0x30004A03: pop ebp */
   1541     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30004A04: ret 4 */
   1542     RECOMP_REGS_OUT();
   1543 }
   1544 
   1545 void sub_30004A10(void) {
   1546     int _fpu_cmp = 0;
   1547     uint32_t _cf = 0;
   1548     int _df = 1;
   1549     uint32_t _flag_k = FK_NONE;
   1550     uint32_t _flag_a = 0, _flag_b = 0;
   1551     uint32_t _itail_tgt = 0;
   1552     RECOMP_REGS_LOCALS
   1553     RECOMP_ENTER(0x30004A10u);
   1554 
   1555 L_30004A10:
   1556     PUSH32(esp, ebp); /* 0x30004A10: push ebp */
   1557     ebp = esp; /* 0x30004A11: mov ebp, esp */
   1558     PUSH32(esp, ecx); /* 0x30004A13: push ecx */
   1559     PUSH32(esp, ebx); /* 0x30004A14: push ebx */
   1560     PUSH32(esp, esi); /* 0x30004A15: push esi */
   1561     esi = MEM32(ebp + 0xC); /* 0x30004A16: mov esi, dword ptr [ebp + 0xc] */
   1562     PUSH32(esp, edi); /* 0x30004A19: push edi */
   1563     edi = ecx; /* 0x30004A1A: mov edi, ecx */
   1564     ecx = ebp + 0xC; /* 0x30004A1C: lea ecx, [ebp + 0xc] */
   1565     RECOMP_ICALL(0x30004540u); /* 0x30004A1F: call 0x30004540 */ /* not lifted */
   1566     RECOMP_FLAGS_IN();
   1567     edx = MEM32(esi); /* 0x30004A24: mov edx, dword ptr [esi] */
   1568     eax = MEM32(edi + 0x8); /* 0x30004A26: mov eax, dword ptr [edi + 8] */
   1569     /* cmp edx, eax */ /* 0x30004A29: cmp edx, eax */
   1570     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1571     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1572     _flag_k = FK_CMP;
   1573     MEM32(ebp + (-0x4)) = esi; /* 0x30004A2B: mov dword ptr [ebp - 4], esi */
   1574     if (CMP_NE(_flag_a, _flag_b)) goto L_30004A50; /* 0x30004A2E: jne 0x30004a50 */
   1575 L_30004A30:
   1576     eax = MEM32(esi + 0x8); /* 0x30004A30: mov eax, dword ptr [esi + 8] */
   1577 L_30004A33:
   1578     ecx = MEM32(ebp + (-0x4)); /* 0x30004A33: mov ecx, dword ptr [ebp - 4] */
   1579     edx = MEM32(ecx + 0x4); /* 0x30004A36: mov edx, dword ptr [ecx + 4] */
   1580     MEM32(eax + 0x4) = edx; /* 0x30004A39: mov dword ptr [eax + 4], edx */
   1581     ecx = MEM32(edi + 0x4); /* 0x30004A3C: mov ecx, dword ptr [edi + 4] */
   1582     /* cmp MEM32(ecx + 0x4), esi */ /* 0x30004A3F: cmp dword ptr [ecx + 4], esi */
   1583     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi);
   1584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1585     _flag_k = FK_CMP;
   1586     if (CMP_NE(_flag_a, _flag_b)) goto L_30004AD3; /* 0x30004A42: jne 0x30004ad3 */
   1587 L_30004A48:
   1588     MEM32(ecx + 0x4) = eax; /* 0x30004A48: mov dword ptr [ecx + 4], eax */
   1589     goto L_30004AE1; /* 0x30004A4B: jmp 0x30004ae1 */
   1590 L_30004A50:
   1591     ecx = MEM32(esi + 0x8); /* 0x30004A50: mov ecx, dword ptr [esi + 8] */
   1592     /* cmp ecx, eax */ /* 0x30004A53: cmp ecx, eax */
   1593     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1594     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1595     _flag_k = FK_CMP;
   1596     if (CMP_NE(_flag_a, _flag_b)) goto L_30004A5B; /* 0x30004A55: jne 0x30004a5b */
   1597 L_30004A57:
   1598     eax = edx; /* 0x30004A57: mov eax, edx */
   1599     RECOMP_BACKEDGE();
   1600     goto L_30004A33; /* 0x30004A59: jmp 0x30004a33 */
   1601 L_30004A5B:
   1602     eax = MEM32(ecx); /* 0x30004A5B: mov eax, dword ptr [ecx] */
   1603     SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x30004A5D: mov bl, byte ptr [eax + 0x11] */
   1604     /* test LO8(ebx), LO8(ebx) */ /* 0x30004A60: test bl, bl */
   1605     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1606     _cf = 0;
   1607     _flag_k = FK_NARROW(FK_TEST, 24);
   1608     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004A6F; /* 0x30004A62: jne 0x30004a6f */
   1609 L_30004A64:
   1610     ecx = eax; /* 0x30004A64: mov ecx, eax */
   1611     eax = MEM32(ecx); /* 0x30004A66: mov eax, dword ptr [ecx] */
   1612     SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x30004A68: mov bl, byte ptr [eax + 0x11] */
   1613     /* test LO8(ebx), LO8(ebx) */ /* 0x30004A6B: test bl, bl */
   1614     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1615     _cf = 0;
   1616     _flag_k = FK_NARROW(FK_TEST, 24);
   1617     RECOMP_BACKEDGE();
   1618     if (TEST_Z(_flag_a, _flag_b)) goto L_30004A64; /* 0x30004A6D: je 0x30004a64 */
   1619 L_30004A6F:
   1620     /* cmp ecx, esi */ /* 0x30004A6F: cmp ecx, esi */
   1621     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   1622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1623     _flag_k = FK_CMP;
   1624     eax = MEM32(ecx + 0x8); /* 0x30004A71: mov eax, dword ptr [ecx + 8] */
   1625     MEM32(ebp + (-0x4)) = ecx; /* 0x30004A74: mov dword ptr [ebp - 4], ecx */
   1626     RECOMP_BACKEDGE();
   1627     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004A33; /* 0x30004A77: je 0x30004a33 */
   1628 L_30004A79:
   1629     MEM32(edx + 0x4) = ecx; /* 0x30004A79: mov dword ptr [edx + 4], ecx */
   1630     edx = MEM32(esi); /* 0x30004A7C: mov edx, dword ptr [esi] */
   1631     MEM32(ecx) = edx; /* 0x30004A7E: mov dword ptr [ecx], edx */
   1632     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004A80: cmp ecx, dword ptr [esi + 8] */
   1633     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1635     _flag_k = FK_CMP;
   1636     if (CMP_NE(_flag_a, _flag_b)) goto L_30004A8A; /* 0x30004A83: jne 0x30004a8a */
   1637 L_30004A85:
   1638     MEM32(eax + 0x4) = ecx; /* 0x30004A85: mov dword ptr [eax + 4], ecx */
   1639     goto L_30004AA1; /* 0x30004A88: jmp 0x30004aa1 */
   1640 L_30004A8A:
   1641     edx = MEM32(ecx + 0x4); /* 0x30004A8A: mov edx, dword ptr [ecx + 4] */
   1642     MEM32(eax + 0x4) = edx; /* 0x30004A8D: mov dword ptr [eax + 4], edx */
   1643     edx = MEM32(ecx + 0x4); /* 0x30004A90: mov edx, dword ptr [ecx + 4] */
   1644     MEM32(edx) = eax; /* 0x30004A93: mov dword ptr [edx], eax */
   1645     edx = MEM32(esi + 0x8); /* 0x30004A95: mov edx, dword ptr [esi + 8] */
   1646     MEM32(ecx + 0x8) = edx; /* 0x30004A98: mov dword ptr [ecx + 8], edx */
   1647     edx = MEM32(esi + 0x8); /* 0x30004A9B: mov edx, dword ptr [esi + 8] */
   1648     MEM32(edx + 0x4) = ecx; /* 0x30004A9E: mov dword ptr [edx + 4], ecx */
   1649 L_30004AA1:
   1650     edx = MEM32(edi + 0x4); /* 0x30004AA1: mov edx, dword ptr [edi + 4] */
   1651     /* cmp MEM32(edx + 0x4), esi */ /* 0x30004AA4: cmp dword ptr [edx + 4], esi */
   1652     _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi);
   1653     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1654     _flag_k = FK_CMP;
   1655     if (CMP_NE(_flag_a, _flag_b)) goto L_30004AAE; /* 0x30004AA7: jne 0x30004aae */
   1656 L_30004AA9:
   1657     MEM32(edx + 0x4) = ecx; /* 0x30004AA9: mov dword ptr [edx + 4], ecx */
   1658     goto L_30004ABC; /* 0x30004AAC: jmp 0x30004abc */
   1659 L_30004AAE:
   1660     edx = MEM32(esi + 0x4); /* 0x30004AAE: mov edx, dword ptr [esi + 4] */
   1661     /* cmp MEM32(edx), esi */ /* 0x30004AB1: cmp dword ptr [edx], esi */
   1662     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi);
   1663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1664     _flag_k = FK_CMP;
   1665     if (CMP_NE(_flag_a, _flag_b)) goto L_30004AB9; /* 0x30004AB3: jne 0x30004ab9 */
   1666 L_30004AB5:
   1667     MEM32(edx) = ecx; /* 0x30004AB5: mov dword ptr [edx], ecx */
   1668     goto L_30004ABC; /* 0x30004AB7: jmp 0x30004abc */
   1669 L_30004AB9:
   1670     MEM32(edx + 0x8) = ecx; /* 0x30004AB9: mov dword ptr [edx + 8], ecx */
   1671 L_30004ABC:
   1672     edx = MEM32(esi + 0x4); /* 0x30004ABC: mov edx, dword ptr [esi + 4] */
   1673     MEM32(ecx + 0x4) = edx; /* 0x30004ABF: mov dword ptr [ecx + 4], edx */
   1674     SET_LO8(ebx, MEM8(esi + 0x10)); /* 0x30004AC2: mov bl, byte ptr [esi + 0x10] */
   1675     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004AC5: mov dl, byte ptr [ecx + 0x10] */
   1676     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004AC8: mov byte ptr [ecx + 0x10], bl */
   1677     MEM8(esi + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004ACB: mov byte ptr [esi + 0x10], dl */
   1678     MEM32(ebp + (-0x4)) = esi; /* 0x30004ACE: mov dword ptr [ebp - 4], esi */
   1679     goto L_30004B38; /* 0x30004AD1: jmp 0x30004b38 */
   1680 L_30004AD3:
   1681     ecx = MEM32(esi + 0x4); /* 0x30004AD3: mov ecx, dword ptr [esi + 4] */
   1682     /* cmp MEM32(ecx), esi */ /* 0x30004AD6: cmp dword ptr [ecx], esi */
   1683     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi);
   1684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1685     _flag_k = FK_CMP;
   1686     if (CMP_NE(_flag_a, _flag_b)) goto L_30004ADE; /* 0x30004AD8: jne 0x30004ade */
   1687 L_30004ADA:
   1688     MEM32(ecx) = eax; /* 0x30004ADA: mov dword ptr [ecx], eax */
   1689     goto L_30004AE1; /* 0x30004ADC: jmp 0x30004ae1 */
   1690 L_30004ADE:
   1691     MEM32(ecx + 0x8) = eax; /* 0x30004ADE: mov dword ptr [ecx + 8], eax */
   1692 L_30004AE1:
   1693     ebx = MEM32(edi + 0x4); /* 0x30004AE1: mov ebx, dword ptr [edi + 4] */
   1694     /* cmp MEM32(ebx), esi */ /* 0x30004AE4: cmp dword ptr [ebx], esi */
   1695     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi);
   1696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1697     _flag_k = FK_CMP;
   1698     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B0B; /* 0x30004AE6: jne 0x30004b0b */
   1699 L_30004AE8:
   1700     ecx = MEM32(esi + 0x8); /* 0x30004AE8: mov ecx, dword ptr [esi + 8] */
   1701     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004AEB: cmp ecx, dword ptr [edi + 8] */
   1702     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1703     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1704     _flag_k = FK_CMP;
   1705     if (CMP_NE(_flag_a, _flag_b)) goto L_30004AF5; /* 0x30004AEE: jne 0x30004af5 */
   1706 L_30004AF0:
   1707     edx = MEM32(esi + 0x4); /* 0x30004AF0: mov edx, dword ptr [esi + 4] */
   1708     goto L_30004B09; /* 0x30004AF3: jmp 0x30004b09 */
   1709 L_30004AF5:
   1710     ecx = MEM32(eax); /* 0x30004AF5: mov ecx, dword ptr [eax] */
   1711     /* cmp MEM8(ecx + 0x11), 0 */ /* 0x30004AF7: cmp byte ptr [ecx + 0x11], 0 */
   1712     _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24;
   1713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1714     _flag_k = FK_NARROW(FK_CMP, 24);
   1715     edx = eax; /* 0x30004AFB: mov edx, eax */
   1716     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B09; /* 0x30004AFD: jne 0x30004b09 */
   1717 L_30004AFF:
   1718     edx = ecx; /* 0x30004AFF: mov edx, ecx */
   1719     ecx = MEM32(edx); /* 0x30004B01: mov ecx, dword ptr [edx] */
   1720     /* cmp MEM8(ecx + 0x11), 0 */ /* 0x30004B03: cmp byte ptr [ecx + 0x11], 0 */
   1721     _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24;
   1722     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1723     _flag_k = FK_NARROW(FK_CMP, 24);
   1724     RECOMP_BACKEDGE();
   1725     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004AFF; /* 0x30004B07: je 0x30004aff */
   1726 L_30004B09:
   1727     MEM32(ebx) = edx; /* 0x30004B09: mov dword ptr [ebx], edx */
   1728 L_30004B0B:
   1729     ebx = MEM32(edi + 0x4); /* 0x30004B0B: mov ebx, dword ptr [edi + 4] */
   1730     /* cmp MEM32(ebx + 0x8), esi */ /* 0x30004B0E: cmp dword ptr [ebx + 8], esi */
   1731     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   1732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1733     _flag_k = FK_CMP;
   1734     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B38; /* 0x30004B11: jne 0x30004b38 */
   1735 L_30004B13:
   1736     ecx = MEM32(esi); /* 0x30004B13: mov ecx, dword ptr [esi] */
   1737     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004B15: cmp ecx, dword ptr [edi + 8] */
   1738     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1739     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1740     _flag_k = FK_CMP;
   1741     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B1F; /* 0x30004B18: jne 0x30004b1f */
   1742 L_30004B1A:
   1743     edx = MEM32(esi + 0x4); /* 0x30004B1A: mov edx, dword ptr [esi + 4] */
   1744     goto L_30004B35; /* 0x30004B1D: jmp 0x30004b35 */
   1745 L_30004B1F:
   1746     ecx = MEM32(eax + 0x8); /* 0x30004B1F: mov ecx, dword ptr [eax + 8] */
   1747     /* cmp MEM8(ecx + 0x11), 0 */ /* 0x30004B22: cmp byte ptr [ecx + 0x11], 0 */
   1748     _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24;
   1749     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1750     _flag_k = FK_NARROW(FK_CMP, 24);
   1751     edx = eax; /* 0x30004B26: mov edx, eax */
   1752     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B35; /* 0x30004B28: jne 0x30004b35 */
   1753 L_30004B2A:
   1754     edx = ecx; /* 0x30004B2A: mov edx, ecx */
   1755     ecx = MEM32(edx + 0x8); /* 0x30004B2C: mov ecx, dword ptr [edx + 8] */
   1756     /* cmp MEM8(ecx + 0x11), 0 */ /* 0x30004B2F: cmp byte ptr [ecx + 0x11], 0 */
   1757     _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24;
   1758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1759     _flag_k = FK_NARROW(FK_CMP, 24);
   1760     RECOMP_BACKEDGE();
   1761     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B2A; /* 0x30004B33: je 0x30004b2a */
   1762 L_30004B35:
   1763     MEM32(ebx + 0x8) = edx; /* 0x30004B35: mov dword ptr [ebx + 8], edx */
   1764 L_30004B38:
   1765     ecx = MEM32(ebp + (-0x4)); /* 0x30004B38: mov ecx, dword ptr [ebp - 4] */
   1766     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B3B: mov dl, byte ptr [ecx + 0x10] */
   1767     SET_LO8(ebx, 1); /* 0x30004B3E: mov bl, 1 */
   1768     /* cmp LO8(edx), LO8(ebx) */ /* 0x30004B40: cmp dl, bl */
   1769     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1771     _flag_k = FK_NARROW(FK_CMP, 24);
   1772     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA5; /* 0x30004B42: jne 0x30004da5 */
   1773 L_30004B48:
   1774     edx = MEM32(edi + 0x4); /* 0x30004B48: mov edx, dword ptr [edi + 4] */
   1775     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004B4B: cmp eax, dword ptr [edx + 4] */
   1776     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1778     _flag_k = FK_CMP;
   1779     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B4E: je 0x30004da2 */
   1780 L_30004B54:
   1781     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   1782     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1783     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1784     _flag_k = FK_NARROW(FK_CMP, 24);
   1785     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   1786 L_30004B5D:
   1787     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   1788     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   1789     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   1790     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1792     _flag_k = FK_CMP;
   1793     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   1794 L_30004B66:
   1795     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   1796     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   1797     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   1798     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1799     _cf = 0;
   1800     _flag_k = FK_NARROW(FK_TEST, 24);
   1801     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   1802 L_30004B70:
   1803     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   1804     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   1805     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   1806     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   1807     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   1808     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   1809     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   1810     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   1811     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   1812     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1814     _flag_k = FK_CMP;
   1815     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   1816 L_30004B8C:
   1817     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   1818 L_30004B8F:
   1819     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   1820     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   1821     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   1822     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   1823     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   1824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1825     _flag_k = FK_CMP;
   1826     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   1827 L_30004B9D:
   1828     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   1829     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   1830 L_30004BA2:
   1831     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   1832     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   1833     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   1834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1835     _flag_k = FK_CMP;
   1836     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   1837 L_30004BA9:
   1838     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   1839     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   1840 L_30004BAD:
   1841     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   1842 L_30004BB0:
   1843     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   1844     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   1845     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   1846     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   1847 L_30004BBB:
   1848     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   1849     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   1850     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1851     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1852     _flag_k = FK_NARROW(FK_CMP, 24);
   1853     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   1854 L_30004BC6:
   1855     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   1856     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   1857     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1859     _flag_k = FK_NARROW(FK_CMP, 24);
   1860     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   1861 L_30004BD2:
   1862     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   1863 L_30004BD4:
   1864     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   1865     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   1866     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1867     _cf = 0;
   1868     _flag_k = FK_NARROW(FK_TEST, 24);
   1869     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   1870 L_30004BDB:
   1871     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   1872     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   1873     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   1874     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   1875     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   1876     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   1877     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   1878     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   1879     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   1880     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1882     _flag_k = FK_CMP;
   1883     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   1884 L_30004BF7:
   1885     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   1886 L_30004BFA:
   1887     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   1888     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   1889     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   1890     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   1891     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   1892     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1893     _flag_k = FK_CMP;
   1894     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   1895 L_30004C08:
   1896     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   1897     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   1898 L_30004C0D:
   1899     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   1900     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   1901     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1903     _flag_k = FK_CMP;
   1904     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   1905 L_30004C15:
   1906     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   1907     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   1908 L_30004C1A:
   1909     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   1910 L_30004C1C:
   1911     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   1912     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   1913     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   1914     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   1915 L_30004C27:
   1916     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   1917     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   1918     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1920     _flag_k = FK_NARROW(FK_CMP, 24);
   1921     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   1922 L_30004C33:
   1923     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   1924     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   1925     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1927     _flag_k = FK_NARROW(FK_CMP, 24);
   1928     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   1929 L_30004C3E:
   1930     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   1931     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   1932     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   1933     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   1934     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1935     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1936     _flag_k = FK_CMP;
   1937     RECOMP_BACKEDGE();
   1938     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   1939 L_30004C51:
   1940     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   1941 L_30004C56:
   1942     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   1943     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   1944     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1946     _flag_k = FK_NARROW(FK_CMP, 24);
   1947     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   1948 L_30004C5E:
   1949     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   1950     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   1951     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   1952     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   1953     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   1954     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   1955     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   1956     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   1957     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1959     _flag_k = FK_CMP;
   1960     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   1961 L_30004C76:
   1962     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   1963 L_30004C79:
   1964     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   1965     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   1966     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   1967     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   1968     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   1969     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1970     _flag_k = FK_CMP;
   1971     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   1972 L_30004C87:
   1973     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   1974     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   1975 L_30004C8C:
   1976     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   1977     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   1978     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1980     _flag_k = FK_CMP;
   1981     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   1982 L_30004C94:
   1983     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   1984     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   1985 L_30004C99:
   1986     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   1987 L_30004C9B:
   1988     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   1989     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   1990     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   1991     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   1992 L_30004CA7:
   1993     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   1994     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   1995     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   1996     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   1997     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   1998     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   1999     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   2000     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   2001     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   2002     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   2003     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   2004     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   2005     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   2006     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2007     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2008     _flag_k = FK_CMP;
   2009     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   2010 L_30004CCE:
   2011     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   2012 L_30004CD1:
   2013     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   2014     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   2015     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   2016     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   2017     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2019     _flag_k = FK_CMP;
   2020     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   2021 L_30004CDF:
   2022     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   2023     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   2024     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   2025 L_30004CE9:
   2026     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   2027     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   2028     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   2029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2030     _flag_k = FK_CMP;
   2031     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   2032 L_30004CF0:
   2033     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   2034     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   2035     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   2036 L_30004CF9:
   2037     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   2038     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   2039     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   2040 L_30004D03:
   2041     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   2042     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   2043     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2044     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2045     _flag_k = FK_NARROW(FK_CMP, 24);
   2046     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   2047 L_30004D0A:
   2048     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   2049     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   2050     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   2051     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   2052     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   2053     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   2054     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   2055     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   2056     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2058     _flag_k = FK_CMP;
   2059     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   2060 L_30004D23:
   2061     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   2062 L_30004D26:
   2063     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   2064     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   2065     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   2066     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   2067     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2069     _flag_k = FK_CMP;
   2070     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   2071 L_30004D34:
   2072     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   2073     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   2074 L_30004D39:
   2075     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   2076     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   2077     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   2078     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2079     _flag_k = FK_CMP;
   2080     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   2081 L_30004D40:
   2082     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   2083     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   2084 L_30004D44:
   2085     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   2086 L_30004D47:
   2087     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   2088     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   2089     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   2090     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   2091 L_30004D51:
   2092     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   2093     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   2094     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   2095     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   2096     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   2097     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   2098     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   2099     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   2100     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   2101     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   2102     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   2103     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   2104     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   2105     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2107     _flag_k = FK_CMP;
   2108     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   2109 L_30004D77:
   2110     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   2111 L_30004D7A:
   2112     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   2113     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   2114     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   2115     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   2116     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2118     _flag_k = FK_CMP;
   2119     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   2120 L_30004D88:
   2121     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   2122     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   2123 L_30004D8D:
   2124     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   2125     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   2126     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2128     _flag_k = FK_CMP;
   2129     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   2130 L_30004D95:
   2131     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   2132     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   2133 L_30004D9A:
   2134     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   2135 L_30004D9C:
   2136     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   2137 L_30004D9F:
   2138     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   2139 L_30004DA2:
   2140     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   2141 L_30004DA5:
   2142     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   2143     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   2144     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   2145     RECOMP_FLAGS_IN();
   2146     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   2147     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   2148     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2149     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2150     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   2151     _flag_k = FK_ADD;
   2152     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2153     eax = eax - 1; /* 0x30004DB7: dec eax */
   2154     _flag_k = FK_DEC;
   2155     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   2156     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   2157     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   2158     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   2159     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   2160     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   2161     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   2162     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   2163     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   2164     RECOMP_REGS_OUT();
   2165 }
   2166 
   2167 void sub_30004AE1(void) {
   2168     int _fpu_cmp = 0;
   2169     uint32_t _cf = 0;
   2170     int _df = 1;
   2171     uint32_t _flag_k = FK_NONE;
   2172     uint32_t _flag_a = 0, _flag_b = 0;
   2173     uint32_t _itail_tgt = 0;
   2174     RECOMP_REGS_LOCALS
   2175     RECOMP_ENTER(0x30004AE1u);
   2176 
   2177 L_30004AE1:
   2178     ebx = MEM32(edi + 0x4); /* 0x30004AE1: mov ebx, dword ptr [edi + 4] */
   2179     /* cmp MEM32(ebx), esi */ /* 0x30004AE4: cmp dword ptr [ebx], esi */
   2180     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi);
   2181     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2182     _flag_k = FK_CMP;
   2183     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B0B; /* 0x30004AE6: jne 0x30004b0b */
   2184 L_30004AE8:
   2185     ecx = MEM32(esi + 0x8); /* 0x30004AE8: mov ecx, dword ptr [esi + 8] */
   2186     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004AEB: cmp ecx, dword ptr [edi + 8] */
   2187     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2189     _flag_k = FK_CMP;
   2190     if (CMP_NE(_flag_a, _flag_b)) goto L_30004AF5; /* 0x30004AEE: jne 0x30004af5 */
   2191 L_30004AF0:
   2192     edx = MEM32(esi + 0x4); /* 0x30004AF0: mov edx, dword ptr [esi + 4] */
   2193     goto L_30004B09; /* 0x30004AF3: jmp 0x30004b09 */
   2194 L_30004AF5:
   2195     ecx = MEM32(eax); /* 0x30004AF5: mov ecx, dword ptr [eax] */
   2196     /* cmp MEM8(ecx + 0x11), 0 */ /* 0x30004AF7: cmp byte ptr [ecx + 0x11], 0 */
   2197     _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24;
   2198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2199     _flag_k = FK_NARROW(FK_CMP, 24);
   2200     edx = eax; /* 0x30004AFB: mov edx, eax */
   2201     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B09; /* 0x30004AFD: jne 0x30004b09 */
   2202 L_30004AFF:
   2203     edx = ecx; /* 0x30004AFF: mov edx, ecx */
   2204     ecx = MEM32(edx); /* 0x30004B01: mov ecx, dword ptr [edx] */
   2205     /* cmp MEM8(ecx + 0x11), 0 */ /* 0x30004B03: cmp byte ptr [ecx + 0x11], 0 */
   2206     _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24;
   2207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2208     _flag_k = FK_NARROW(FK_CMP, 24);
   2209     RECOMP_BACKEDGE();
   2210     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004AFF; /* 0x30004B07: je 0x30004aff */
   2211 L_30004B09:
   2212     MEM32(ebx) = edx; /* 0x30004B09: mov dword ptr [ebx], edx */
   2213 L_30004B0B:
   2214     ebx = MEM32(edi + 0x4); /* 0x30004B0B: mov ebx, dword ptr [edi + 4] */
   2215     /* cmp MEM32(ebx + 0x8), esi */ /* 0x30004B0E: cmp dword ptr [ebx + 8], esi */
   2216     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   2217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2218     _flag_k = FK_CMP;
   2219     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B38; /* 0x30004B11: jne 0x30004b38 */
   2220 L_30004B13:
   2221     ecx = MEM32(esi); /* 0x30004B13: mov ecx, dword ptr [esi] */
   2222     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004B15: cmp ecx, dword ptr [edi + 8] */
   2223     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2225     _flag_k = FK_CMP;
   2226     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B1F; /* 0x30004B18: jne 0x30004b1f */
   2227 L_30004B1A:
   2228     edx = MEM32(esi + 0x4); /* 0x30004B1A: mov edx, dword ptr [esi + 4] */
   2229     goto L_30004B35; /* 0x30004B1D: jmp 0x30004b35 */
   2230 L_30004B1F:
   2231     ecx = MEM32(eax + 0x8); /* 0x30004B1F: mov ecx, dword ptr [eax + 8] */
   2232     /* cmp MEM8(ecx + 0x11), 0 */ /* 0x30004B22: cmp byte ptr [ecx + 0x11], 0 */
   2233     _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24;
   2234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2235     _flag_k = FK_NARROW(FK_CMP, 24);
   2236     edx = eax; /* 0x30004B26: mov edx, eax */
   2237     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B35; /* 0x30004B28: jne 0x30004b35 */
   2238 L_30004B2A:
   2239     edx = ecx; /* 0x30004B2A: mov edx, ecx */
   2240     ecx = MEM32(edx + 0x8); /* 0x30004B2C: mov ecx, dword ptr [edx + 8] */
   2241     /* cmp MEM8(ecx + 0x11), 0 */ /* 0x30004B2F: cmp byte ptr [ecx + 0x11], 0 */
   2242     _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24;
   2243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2244     _flag_k = FK_NARROW(FK_CMP, 24);
   2245     RECOMP_BACKEDGE();
   2246     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B2A; /* 0x30004B33: je 0x30004b2a */
   2247 L_30004B35:
   2248     MEM32(ebx + 0x8) = edx; /* 0x30004B35: mov dword ptr [ebx + 8], edx */
   2249 L_30004B38:
   2250     ecx = MEM32(ebp + (-0x4)); /* 0x30004B38: mov ecx, dword ptr [ebp - 4] */
   2251     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B3B: mov dl, byte ptr [ecx + 0x10] */
   2252     SET_LO8(ebx, 1); /* 0x30004B3E: mov bl, 1 */
   2253     /* cmp LO8(edx), LO8(ebx) */ /* 0x30004B40: cmp dl, bl */
   2254     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2256     _flag_k = FK_NARROW(FK_CMP, 24);
   2257     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA5; /* 0x30004B42: jne 0x30004da5 */
   2258 L_30004B48:
   2259     edx = MEM32(edi + 0x4); /* 0x30004B48: mov edx, dword ptr [edi + 4] */
   2260     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004B4B: cmp eax, dword ptr [edx + 4] */
   2261     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2263     _flag_k = FK_CMP;
   2264     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B4E: je 0x30004da2 */
   2265 L_30004B54:
   2266     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   2267     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2269     _flag_k = FK_NARROW(FK_CMP, 24);
   2270     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   2271 L_30004B5D:
   2272     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   2273     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   2274     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   2275     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2276     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2277     _flag_k = FK_CMP;
   2278     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   2279 L_30004B66:
   2280     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   2281     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   2282     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   2283     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2284     _cf = 0;
   2285     _flag_k = FK_NARROW(FK_TEST, 24);
   2286     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   2287 L_30004B70:
   2288     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   2289     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   2290     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   2291     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   2292     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   2293     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   2294     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   2295     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   2296     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   2297     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2298     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2299     _flag_k = FK_CMP;
   2300     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   2301 L_30004B8C:
   2302     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   2303 L_30004B8F:
   2304     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   2305     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   2306     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   2307     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   2308     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2310     _flag_k = FK_CMP;
   2311     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   2312 L_30004B9D:
   2313     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   2314     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   2315 L_30004BA2:
   2316     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   2317     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   2318     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   2319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2320     _flag_k = FK_CMP;
   2321     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   2322 L_30004BA9:
   2323     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   2324     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   2325 L_30004BAD:
   2326     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   2327 L_30004BB0:
   2328     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   2329     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   2330     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   2331     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   2332 L_30004BBB:
   2333     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   2334     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   2335     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2336     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2337     _flag_k = FK_NARROW(FK_CMP, 24);
   2338     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   2339 L_30004BC6:
   2340     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   2341     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   2342     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2344     _flag_k = FK_NARROW(FK_CMP, 24);
   2345     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   2346 L_30004BD2:
   2347     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   2348 L_30004BD4:
   2349     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   2350     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   2351     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2352     _cf = 0;
   2353     _flag_k = FK_NARROW(FK_TEST, 24);
   2354     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   2355 L_30004BDB:
   2356     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   2357     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   2358     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   2359     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   2360     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   2361     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   2362     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   2363     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   2364     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   2365     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2367     _flag_k = FK_CMP;
   2368     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   2369 L_30004BF7:
   2370     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   2371 L_30004BFA:
   2372     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   2373     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   2374     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   2375     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   2376     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2378     _flag_k = FK_CMP;
   2379     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   2380 L_30004C08:
   2381     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   2382     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   2383 L_30004C0D:
   2384     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   2385     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   2386     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2388     _flag_k = FK_CMP;
   2389     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   2390 L_30004C15:
   2391     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   2392     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   2393 L_30004C1A:
   2394     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   2395 L_30004C1C:
   2396     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   2397     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   2398     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   2399     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   2400 L_30004C27:
   2401     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   2402     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   2403     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2405     _flag_k = FK_NARROW(FK_CMP, 24);
   2406     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   2407 L_30004C33:
   2408     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   2409     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   2410     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2412     _flag_k = FK_NARROW(FK_CMP, 24);
   2413     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   2414 L_30004C3E:
   2415     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   2416     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   2417     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   2418     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   2419     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2421     _flag_k = FK_CMP;
   2422     RECOMP_BACKEDGE();
   2423     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   2424 L_30004C51:
   2425     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   2426 L_30004C56:
   2427     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   2428     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   2429     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2431     _flag_k = FK_NARROW(FK_CMP, 24);
   2432     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   2433 L_30004C5E:
   2434     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   2435     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   2436     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   2437     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   2438     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   2439     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   2440     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   2441     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   2442     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2444     _flag_k = FK_CMP;
   2445     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   2446 L_30004C76:
   2447     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   2448 L_30004C79:
   2449     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   2450     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   2451     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   2452     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   2453     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2454     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2455     _flag_k = FK_CMP;
   2456     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   2457 L_30004C87:
   2458     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   2459     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   2460 L_30004C8C:
   2461     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   2462     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   2463     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2465     _flag_k = FK_CMP;
   2466     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   2467 L_30004C94:
   2468     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   2469     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   2470 L_30004C99:
   2471     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   2472 L_30004C9B:
   2473     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   2474     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   2475     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   2476     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   2477 L_30004CA7:
   2478     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   2479     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   2480     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   2481     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   2482     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   2483     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   2484     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   2485     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   2486     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   2487     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   2488     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   2489     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   2490     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   2491     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2493     _flag_k = FK_CMP;
   2494     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   2495 L_30004CCE:
   2496     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   2497 L_30004CD1:
   2498     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   2499     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   2500     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   2501     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   2502     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2503     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2504     _flag_k = FK_CMP;
   2505     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   2506 L_30004CDF:
   2507     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   2508     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   2509     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   2510 L_30004CE9:
   2511     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   2512     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   2513     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   2514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2515     _flag_k = FK_CMP;
   2516     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   2517 L_30004CF0:
   2518     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   2519     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   2520     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   2521 L_30004CF9:
   2522     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   2523     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   2524     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   2525 L_30004D03:
   2526     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   2527     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   2528     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2530     _flag_k = FK_NARROW(FK_CMP, 24);
   2531     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   2532 L_30004D0A:
   2533     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   2534     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   2535     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   2536     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   2537     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   2538     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   2539     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   2540     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   2541     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2543     _flag_k = FK_CMP;
   2544     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   2545 L_30004D23:
   2546     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   2547 L_30004D26:
   2548     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   2549     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   2550     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   2551     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   2552     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2553     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2554     _flag_k = FK_CMP;
   2555     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   2556 L_30004D34:
   2557     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   2558     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   2559 L_30004D39:
   2560     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   2561     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   2562     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   2563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2564     _flag_k = FK_CMP;
   2565     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   2566 L_30004D40:
   2567     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   2568     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   2569 L_30004D44:
   2570     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   2571 L_30004D47:
   2572     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   2573     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   2574     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   2575     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   2576 L_30004D51:
   2577     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   2578     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   2579     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   2580     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   2581     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   2582     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   2583     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   2584     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   2585     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   2586     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   2587     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   2588     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   2589     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   2590     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2591     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2592     _flag_k = FK_CMP;
   2593     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   2594 L_30004D77:
   2595     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   2596 L_30004D7A:
   2597     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   2598     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   2599     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   2600     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   2601     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2602     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2603     _flag_k = FK_CMP;
   2604     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   2605 L_30004D88:
   2606     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   2607     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   2608 L_30004D8D:
   2609     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   2610     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   2611     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2613     _flag_k = FK_CMP;
   2614     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   2615 L_30004D95:
   2616     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   2617     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   2618 L_30004D9A:
   2619     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   2620 L_30004D9C:
   2621     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   2622 L_30004D9F:
   2623     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   2624 L_30004DA2:
   2625     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   2626 L_30004DA5:
   2627     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   2628     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   2629     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   2630     RECOMP_FLAGS_IN();
   2631     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   2632     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   2633     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2635     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   2636     _flag_k = FK_ADD;
   2637     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2638     eax = eax - 1; /* 0x30004DB7: dec eax */
   2639     _flag_k = FK_DEC;
   2640     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   2641     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   2642     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   2643     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   2644     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   2645     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   2646     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   2647     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   2648     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   2649     RECOMP_REGS_OUT();
   2650 }
   2651 
   2652 void sub_30004B09(void) {
   2653     int _fpu_cmp = 0;
   2654     uint32_t _cf = 0;
   2655     int _df = 1;
   2656     uint32_t _flag_k = FK_NONE;
   2657     uint32_t _flag_a = 0, _flag_b = 0;
   2658     uint32_t _itail_tgt = 0;
   2659     RECOMP_REGS_LOCALS
   2660     RECOMP_ENTER(0x30004B09u);
   2661 
   2662 L_30004B09:
   2663     MEM32(ebx) = edx; /* 0x30004B09: mov dword ptr [ebx], edx */
   2664     ebx = MEM32(edi + 0x4); /* 0x30004B0B: mov ebx, dword ptr [edi + 4] */
   2665     /* cmp MEM32(ebx + 0x8), esi */ /* 0x30004B0E: cmp dword ptr [ebx + 8], esi */
   2666     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   2667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2668     _flag_k = FK_CMP;
   2669     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B38; /* 0x30004B11: jne 0x30004b38 */
   2670 L_30004B13:
   2671     ecx = MEM32(esi); /* 0x30004B13: mov ecx, dword ptr [esi] */
   2672     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004B15: cmp ecx, dword ptr [edi + 8] */
   2673     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2675     _flag_k = FK_CMP;
   2676     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B1F; /* 0x30004B18: jne 0x30004b1f */
   2677 L_30004B1A:
   2678     edx = MEM32(esi + 0x4); /* 0x30004B1A: mov edx, dword ptr [esi + 4] */
   2679     goto L_30004B35; /* 0x30004B1D: jmp 0x30004b35 */
   2680 L_30004B1F:
   2681     ecx = MEM32(eax + 0x8); /* 0x30004B1F: mov ecx, dword ptr [eax + 8] */
   2682     /* cmp MEM8(ecx + 0x11), 0 */ /* 0x30004B22: cmp byte ptr [ecx + 0x11], 0 */
   2683     _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24;
   2684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2685     _flag_k = FK_NARROW(FK_CMP, 24);
   2686     edx = eax; /* 0x30004B26: mov edx, eax */
   2687     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B35; /* 0x30004B28: jne 0x30004b35 */
   2688 L_30004B2A:
   2689     edx = ecx; /* 0x30004B2A: mov edx, ecx */
   2690     ecx = MEM32(edx + 0x8); /* 0x30004B2C: mov ecx, dword ptr [edx + 8] */
   2691     /* cmp MEM8(ecx + 0x11), 0 */ /* 0x30004B2F: cmp byte ptr [ecx + 0x11], 0 */
   2692     _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24;
   2693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2694     _flag_k = FK_NARROW(FK_CMP, 24);
   2695     RECOMP_BACKEDGE();
   2696     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B2A; /* 0x30004B33: je 0x30004b2a */
   2697 L_30004B35:
   2698     MEM32(ebx + 0x8) = edx; /* 0x30004B35: mov dword ptr [ebx + 8], edx */
   2699 L_30004B38:
   2700     ecx = MEM32(ebp + (-0x4)); /* 0x30004B38: mov ecx, dword ptr [ebp - 4] */
   2701     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B3B: mov dl, byte ptr [ecx + 0x10] */
   2702     SET_LO8(ebx, 1); /* 0x30004B3E: mov bl, 1 */
   2703     /* cmp LO8(edx), LO8(ebx) */ /* 0x30004B40: cmp dl, bl */
   2704     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2705     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2706     _flag_k = FK_NARROW(FK_CMP, 24);
   2707     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA5; /* 0x30004B42: jne 0x30004da5 */
   2708 L_30004B48:
   2709     edx = MEM32(edi + 0x4); /* 0x30004B48: mov edx, dword ptr [edi + 4] */
   2710     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004B4B: cmp eax, dword ptr [edx + 4] */
   2711     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2712     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2713     _flag_k = FK_CMP;
   2714     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B4E: je 0x30004da2 */
   2715 L_30004B54:
   2716     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   2717     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2719     _flag_k = FK_NARROW(FK_CMP, 24);
   2720     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   2721 L_30004B5D:
   2722     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   2723     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   2724     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   2725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2727     _flag_k = FK_CMP;
   2728     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   2729 L_30004B66:
   2730     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   2731     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   2732     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   2733     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2734     _cf = 0;
   2735     _flag_k = FK_NARROW(FK_TEST, 24);
   2736     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   2737 L_30004B70:
   2738     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   2739     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   2740     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   2741     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   2742     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   2743     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   2744     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   2745     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   2746     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   2747     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2749     _flag_k = FK_CMP;
   2750     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   2751 L_30004B8C:
   2752     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   2753 L_30004B8F:
   2754     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   2755     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   2756     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   2757     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   2758     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2760     _flag_k = FK_CMP;
   2761     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   2762 L_30004B9D:
   2763     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   2764     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   2765 L_30004BA2:
   2766     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   2767     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   2768     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   2769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2770     _flag_k = FK_CMP;
   2771     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   2772 L_30004BA9:
   2773     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   2774     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   2775 L_30004BAD:
   2776     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   2777 L_30004BB0:
   2778     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   2779     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   2780     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   2781     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   2782 L_30004BBB:
   2783     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   2784     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   2785     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2787     _flag_k = FK_NARROW(FK_CMP, 24);
   2788     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   2789 L_30004BC6:
   2790     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   2791     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   2792     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2794     _flag_k = FK_NARROW(FK_CMP, 24);
   2795     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   2796 L_30004BD2:
   2797     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   2798 L_30004BD4:
   2799     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   2800     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   2801     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2802     _cf = 0;
   2803     _flag_k = FK_NARROW(FK_TEST, 24);
   2804     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   2805 L_30004BDB:
   2806     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   2807     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   2808     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   2809     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   2810     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   2811     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   2812     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   2813     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   2814     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   2815     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2816     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2817     _flag_k = FK_CMP;
   2818     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   2819 L_30004BF7:
   2820     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   2821 L_30004BFA:
   2822     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   2823     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   2824     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   2825     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   2826     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2828     _flag_k = FK_CMP;
   2829     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   2830 L_30004C08:
   2831     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   2832     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   2833 L_30004C0D:
   2834     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   2835     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   2836     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2838     _flag_k = FK_CMP;
   2839     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   2840 L_30004C15:
   2841     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   2842     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   2843 L_30004C1A:
   2844     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   2845 L_30004C1C:
   2846     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   2847     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   2848     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   2849     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   2850 L_30004C27:
   2851     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   2852     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   2853     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2855     _flag_k = FK_NARROW(FK_CMP, 24);
   2856     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   2857 L_30004C33:
   2858     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   2859     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   2860     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2862     _flag_k = FK_NARROW(FK_CMP, 24);
   2863     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   2864 L_30004C3E:
   2865     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   2866     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   2867     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   2868     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   2869     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2870     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2871     _flag_k = FK_CMP;
   2872     RECOMP_BACKEDGE();
   2873     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   2874 L_30004C51:
   2875     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   2876 L_30004C56:
   2877     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   2878     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   2879     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2881     _flag_k = FK_NARROW(FK_CMP, 24);
   2882     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   2883 L_30004C5E:
   2884     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   2885     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   2886     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   2887     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   2888     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   2889     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   2890     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   2891     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   2892     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2894     _flag_k = FK_CMP;
   2895     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   2896 L_30004C76:
   2897     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   2898 L_30004C79:
   2899     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   2900     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   2901     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   2902     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   2903     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2904     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2905     _flag_k = FK_CMP;
   2906     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   2907 L_30004C87:
   2908     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   2909     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   2910 L_30004C8C:
   2911     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   2912     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   2913     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2915     _flag_k = FK_CMP;
   2916     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   2917 L_30004C94:
   2918     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   2919     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   2920 L_30004C99:
   2921     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   2922 L_30004C9B:
   2923     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   2924     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   2925     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   2926     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   2927 L_30004CA7:
   2928     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   2929     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   2930     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   2931     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   2932     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   2933     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   2934     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   2935     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   2936     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   2937     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   2938     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   2939     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   2940     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   2941     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2943     _flag_k = FK_CMP;
   2944     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   2945 L_30004CCE:
   2946     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   2947 L_30004CD1:
   2948     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   2949     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   2950     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   2951     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   2952     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2954     _flag_k = FK_CMP;
   2955     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   2956 L_30004CDF:
   2957     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   2958     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   2959     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   2960 L_30004CE9:
   2961     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   2962     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   2963     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   2964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2965     _flag_k = FK_CMP;
   2966     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   2967 L_30004CF0:
   2968     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   2969     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   2970     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   2971 L_30004CF9:
   2972     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   2973     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   2974     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   2975 L_30004D03:
   2976     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   2977     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   2978     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2980     _flag_k = FK_NARROW(FK_CMP, 24);
   2981     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   2982 L_30004D0A:
   2983     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   2984     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   2985     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   2986     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   2987     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   2988     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   2989     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   2990     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   2991     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2993     _flag_k = FK_CMP;
   2994     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   2995 L_30004D23:
   2996     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   2997 L_30004D26:
   2998     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   2999     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   3000     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   3001     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   3002     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3004     _flag_k = FK_CMP;
   3005     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   3006 L_30004D34:
   3007     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   3008     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   3009 L_30004D39:
   3010     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   3011     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   3012     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   3013     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3014     _flag_k = FK_CMP;
   3015     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   3016 L_30004D40:
   3017     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   3018     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   3019 L_30004D44:
   3020     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   3021 L_30004D47:
   3022     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   3023     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   3024     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   3025     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   3026 L_30004D51:
   3027     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   3028     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   3029     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   3030     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   3031     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   3032     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   3033     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   3034     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   3035     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   3036     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   3037     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   3038     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   3039     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   3040     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3041     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3042     _flag_k = FK_CMP;
   3043     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   3044 L_30004D77:
   3045     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   3046 L_30004D7A:
   3047     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   3048     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   3049     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   3050     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   3051     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3052     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3053     _flag_k = FK_CMP;
   3054     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   3055 L_30004D88:
   3056     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   3057     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   3058 L_30004D8D:
   3059     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   3060     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   3061     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3063     _flag_k = FK_CMP;
   3064     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   3065 L_30004D95:
   3066     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   3067     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   3068 L_30004D9A:
   3069     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   3070 L_30004D9C:
   3071     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   3072 L_30004D9F:
   3073     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   3074 L_30004DA2:
   3075     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   3076 L_30004DA5:
   3077     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   3078     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   3079     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   3080     RECOMP_FLAGS_IN();
   3081     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   3082     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   3083     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3084     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3085     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   3086     _flag_k = FK_ADD;
   3087     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3088     eax = eax - 1; /* 0x30004DB7: dec eax */
   3089     _flag_k = FK_DEC;
   3090     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   3091     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   3092     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   3093     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   3094     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   3095     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   3096     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   3097     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   3098     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   3099     RECOMP_REGS_OUT();
   3100 }
   3101 
   3102 void sub_30004B35(void) {
   3103     int _fpu_cmp = 0;
   3104     uint32_t _cf = 0;
   3105     int _df = 1;
   3106     uint32_t _flag_k = FK_NONE;
   3107     uint32_t _flag_a = 0, _flag_b = 0;
   3108     uint32_t _itail_tgt = 0;
   3109     RECOMP_REGS_LOCALS
   3110     RECOMP_ENTER(0x30004B35u);
   3111 
   3112 L_30004B35:
   3113     MEM32(ebx + 0x8) = edx; /* 0x30004B35: mov dword ptr [ebx + 8], edx */
   3114     ecx = MEM32(ebp + (-0x4)); /* 0x30004B38: mov ecx, dword ptr [ebp - 4] */
   3115     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B3B: mov dl, byte ptr [ecx + 0x10] */
   3116     SET_LO8(ebx, 1); /* 0x30004B3E: mov bl, 1 */
   3117     /* cmp LO8(edx), LO8(ebx) */ /* 0x30004B40: cmp dl, bl */
   3118     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3120     _flag_k = FK_NARROW(FK_CMP, 24);
   3121     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA5; /* 0x30004B42: jne 0x30004da5 */
   3122 L_30004B48:
   3123     edx = MEM32(edi + 0x4); /* 0x30004B48: mov edx, dword ptr [edi + 4] */
   3124     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004B4B: cmp eax, dword ptr [edx + 4] */
   3125     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3127     _flag_k = FK_CMP;
   3128     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B4E: je 0x30004da2 */
   3129 L_30004B54:
   3130     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   3131     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3133     _flag_k = FK_NARROW(FK_CMP, 24);
   3134     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   3135 L_30004B5D:
   3136     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   3137     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   3138     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   3139     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3141     _flag_k = FK_CMP;
   3142     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   3143 L_30004B66:
   3144     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   3145     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   3146     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   3147     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3148     _cf = 0;
   3149     _flag_k = FK_NARROW(FK_TEST, 24);
   3150     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   3151 L_30004B70:
   3152     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   3153     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   3154     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   3155     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   3156     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   3157     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   3158     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   3159     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   3160     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   3161     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3162     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3163     _flag_k = FK_CMP;
   3164     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   3165 L_30004B8C:
   3166     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   3167 L_30004B8F:
   3168     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   3169     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   3170     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   3171     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   3172     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3174     _flag_k = FK_CMP;
   3175     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   3176 L_30004B9D:
   3177     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   3178     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   3179 L_30004BA2:
   3180     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   3181     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   3182     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   3183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3184     _flag_k = FK_CMP;
   3185     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   3186 L_30004BA9:
   3187     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   3188     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   3189 L_30004BAD:
   3190     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   3191 L_30004BB0:
   3192     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   3193     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   3194     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   3195     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   3196 L_30004BBB:
   3197     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   3198     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   3199     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3201     _flag_k = FK_NARROW(FK_CMP, 24);
   3202     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   3203 L_30004BC6:
   3204     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   3205     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   3206     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3208     _flag_k = FK_NARROW(FK_CMP, 24);
   3209     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   3210 L_30004BD2:
   3211     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   3212 L_30004BD4:
   3213     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   3214     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   3215     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3216     _cf = 0;
   3217     _flag_k = FK_NARROW(FK_TEST, 24);
   3218     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   3219 L_30004BDB:
   3220     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   3221     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   3222     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   3223     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   3224     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   3225     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   3226     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   3227     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   3228     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   3229     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3231     _flag_k = FK_CMP;
   3232     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   3233 L_30004BF7:
   3234     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   3235 L_30004BFA:
   3236     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   3237     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   3238     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   3239     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   3240     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3242     _flag_k = FK_CMP;
   3243     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   3244 L_30004C08:
   3245     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   3246     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   3247 L_30004C0D:
   3248     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   3249     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   3250     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3251     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3252     _flag_k = FK_CMP;
   3253     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   3254 L_30004C15:
   3255     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   3256     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   3257 L_30004C1A:
   3258     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   3259 L_30004C1C:
   3260     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   3261     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   3262     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   3263     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   3264 L_30004C27:
   3265     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   3266     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   3267     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3269     _flag_k = FK_NARROW(FK_CMP, 24);
   3270     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   3271 L_30004C33:
   3272     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   3273     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   3274     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3276     _flag_k = FK_NARROW(FK_CMP, 24);
   3277     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   3278 L_30004C3E:
   3279     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   3280     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   3281     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   3282     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   3283     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3284     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3285     _flag_k = FK_CMP;
   3286     RECOMP_BACKEDGE();
   3287     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   3288 L_30004C51:
   3289     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   3290 L_30004C56:
   3291     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   3292     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   3293     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3294     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3295     _flag_k = FK_NARROW(FK_CMP, 24);
   3296     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   3297 L_30004C5E:
   3298     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   3299     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   3300     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   3301     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   3302     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   3303     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   3304     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   3305     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   3306     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3307     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3308     _flag_k = FK_CMP;
   3309     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   3310 L_30004C76:
   3311     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   3312 L_30004C79:
   3313     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   3314     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   3315     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   3316     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   3317     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3318     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3319     _flag_k = FK_CMP;
   3320     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   3321 L_30004C87:
   3322     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   3323     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   3324 L_30004C8C:
   3325     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   3326     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   3327     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3329     _flag_k = FK_CMP;
   3330     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   3331 L_30004C94:
   3332     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   3333     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   3334 L_30004C99:
   3335     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   3336 L_30004C9B:
   3337     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   3338     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   3339     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   3340     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   3341 L_30004CA7:
   3342     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   3343     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   3344     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   3345     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   3346     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   3347     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   3348     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   3349     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   3350     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   3351     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   3352     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   3353     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   3354     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   3355     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3357     _flag_k = FK_CMP;
   3358     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   3359 L_30004CCE:
   3360     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   3361 L_30004CD1:
   3362     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   3363     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   3364     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   3365     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   3366     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3368     _flag_k = FK_CMP;
   3369     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   3370 L_30004CDF:
   3371     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   3372     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   3373     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   3374 L_30004CE9:
   3375     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   3376     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   3377     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   3378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3379     _flag_k = FK_CMP;
   3380     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   3381 L_30004CF0:
   3382     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   3383     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   3384     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   3385 L_30004CF9:
   3386     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   3387     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   3388     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   3389 L_30004D03:
   3390     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   3391     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   3392     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3394     _flag_k = FK_NARROW(FK_CMP, 24);
   3395     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   3396 L_30004D0A:
   3397     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   3398     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   3399     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   3400     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   3401     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   3402     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   3403     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   3404     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   3405     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3407     _flag_k = FK_CMP;
   3408     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   3409 L_30004D23:
   3410     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   3411 L_30004D26:
   3412     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   3413     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   3414     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   3415     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   3416     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3418     _flag_k = FK_CMP;
   3419     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   3420 L_30004D34:
   3421     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   3422     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   3423 L_30004D39:
   3424     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   3425     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   3426     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   3427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3428     _flag_k = FK_CMP;
   3429     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   3430 L_30004D40:
   3431     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   3432     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   3433 L_30004D44:
   3434     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   3435 L_30004D47:
   3436     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   3437     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   3438     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   3439     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   3440 L_30004D51:
   3441     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   3442     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   3443     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   3444     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   3445     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   3446     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   3447     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   3448     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   3449     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   3450     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   3451     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   3452     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   3453     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   3454     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3456     _flag_k = FK_CMP;
   3457     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   3458 L_30004D77:
   3459     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   3460 L_30004D7A:
   3461     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   3462     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   3463     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   3464     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   3465     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3467     _flag_k = FK_CMP;
   3468     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   3469 L_30004D88:
   3470     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   3471     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   3472 L_30004D8D:
   3473     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   3474     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   3475     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3477     _flag_k = FK_CMP;
   3478     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   3479 L_30004D95:
   3480     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   3481     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   3482 L_30004D9A:
   3483     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   3484 L_30004D9C:
   3485     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   3486 L_30004D9F:
   3487     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   3488 L_30004DA2:
   3489     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   3490 L_30004DA5:
   3491     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   3492     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   3493     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   3494     RECOMP_FLAGS_IN();
   3495     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   3496     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   3497     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3498     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3499     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   3500     _flag_k = FK_ADD;
   3501     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3502     eax = eax - 1; /* 0x30004DB7: dec eax */
   3503     _flag_k = FK_DEC;
   3504     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   3505     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   3506     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   3507     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   3508     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   3509     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   3510     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   3511     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   3512     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   3513     RECOMP_REGS_OUT();
   3514 }
   3515 
   3516 void sub_30004B54(void) {
   3517     int _fpu_cmp = 0;
   3518     uint32_t _cf = 0;
   3519     int _df = 1;
   3520     uint32_t _flag_k = FK_NONE;
   3521     uint32_t _flag_a = 0, _flag_b = 0;
   3522     uint32_t _itail_tgt = 0;
   3523     RECOMP_REGS_LOCALS
   3524     RECOMP_ENTER(0x30004B54u);
   3525 
   3526 L_30004B54:
   3527     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   3528     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3530     _flag_k = FK_NARROW(FK_CMP, 24);
   3531     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   3532 L_30004B5D:
   3533     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   3534     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   3535     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   3536     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3538     _flag_k = FK_CMP;
   3539     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   3540 L_30004B66:
   3541     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   3542     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   3543     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   3544     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3545     _cf = 0;
   3546     _flag_k = FK_NARROW(FK_TEST, 24);
   3547     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   3548 L_30004B70:
   3549     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   3550     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   3551     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   3552     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   3553     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   3554     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   3555     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   3556     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   3557     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   3558     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3560     _flag_k = FK_CMP;
   3561     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   3562 L_30004B8C:
   3563     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   3564 L_30004B8F:
   3565     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   3566     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   3567     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   3568     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   3569     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3571     _flag_k = FK_CMP;
   3572     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   3573 L_30004B9D:
   3574     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   3575     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   3576 L_30004BA2:
   3577     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   3578     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   3579     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   3580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3581     _flag_k = FK_CMP;
   3582     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   3583 L_30004BA9:
   3584     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   3585     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   3586 L_30004BAD:
   3587     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   3588 L_30004BB0:
   3589     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   3590     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   3591     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   3592     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   3593 L_30004BBB:
   3594     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   3595     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   3596     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3598     _flag_k = FK_NARROW(FK_CMP, 24);
   3599     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   3600 L_30004BC6:
   3601     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   3602     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   3603     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3605     _flag_k = FK_NARROW(FK_CMP, 24);
   3606     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   3607 L_30004BD2:
   3608     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   3609 L_30004BD4:
   3610     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   3611     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   3612     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3613     _cf = 0;
   3614     _flag_k = FK_NARROW(FK_TEST, 24);
   3615     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   3616 L_30004BDB:
   3617     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   3618     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   3619     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   3620     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   3621     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   3622     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   3623     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   3624     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   3625     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   3626     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3627     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3628     _flag_k = FK_CMP;
   3629     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   3630 L_30004BF7:
   3631     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   3632 L_30004BFA:
   3633     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   3634     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   3635     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   3636     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   3637     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3638     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3639     _flag_k = FK_CMP;
   3640     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   3641 L_30004C08:
   3642     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   3643     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   3644 L_30004C0D:
   3645     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   3646     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   3647     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3649     _flag_k = FK_CMP;
   3650     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   3651 L_30004C15:
   3652     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   3653     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   3654 L_30004C1A:
   3655     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   3656 L_30004C1C:
   3657     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   3658     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   3659     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   3660     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   3661 L_30004C27:
   3662     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   3663     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   3664     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3666     _flag_k = FK_NARROW(FK_CMP, 24);
   3667     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   3668 L_30004C33:
   3669     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   3670     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   3671     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3673     _flag_k = FK_NARROW(FK_CMP, 24);
   3674     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   3675 L_30004C3E:
   3676     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   3677     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   3678     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   3679     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   3680     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3681     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3682     _flag_k = FK_CMP;
   3683     RECOMP_BACKEDGE();
   3684     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   3685 L_30004C51:
   3686     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   3687 L_30004C56:
   3688     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   3689     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   3690     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3691     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3692     _flag_k = FK_NARROW(FK_CMP, 24);
   3693     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   3694 L_30004C5E:
   3695     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   3696     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   3697     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   3698     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   3699     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   3700     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   3701     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   3702     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   3703     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3705     _flag_k = FK_CMP;
   3706     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   3707 L_30004C76:
   3708     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   3709 L_30004C79:
   3710     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   3711     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   3712     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   3713     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   3714     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3716     _flag_k = FK_CMP;
   3717     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   3718 L_30004C87:
   3719     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   3720     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   3721 L_30004C8C:
   3722     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   3723     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   3724     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3725     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3726     _flag_k = FK_CMP;
   3727     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   3728 L_30004C94:
   3729     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   3730     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   3731 L_30004C99:
   3732     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   3733 L_30004C9B:
   3734     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   3735     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   3736     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   3737     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   3738 L_30004CA7:
   3739     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   3740     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   3741     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   3742     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   3743     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   3744     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   3745     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   3746     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   3747     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   3748     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   3749     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   3750     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   3751     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   3752     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3754     _flag_k = FK_CMP;
   3755     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   3756 L_30004CCE:
   3757     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   3758 L_30004CD1:
   3759     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   3760     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   3761     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   3762     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   3763     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3765     _flag_k = FK_CMP;
   3766     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   3767 L_30004CDF:
   3768     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   3769     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   3770     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   3771 L_30004CE9:
   3772     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   3773     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   3774     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   3775     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3776     _flag_k = FK_CMP;
   3777     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   3778 L_30004CF0:
   3779     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   3780     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   3781     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   3782 L_30004CF9:
   3783     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   3784     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   3785     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   3786 L_30004D03:
   3787     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   3788     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   3789     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3791     _flag_k = FK_NARROW(FK_CMP, 24);
   3792     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   3793 L_30004D0A:
   3794     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   3795     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   3796     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   3797     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   3798     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   3799     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   3800     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   3801     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   3802     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3804     _flag_k = FK_CMP;
   3805     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   3806 L_30004D23:
   3807     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   3808 L_30004D26:
   3809     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   3810     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   3811     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   3812     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   3813     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3815     _flag_k = FK_CMP;
   3816     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   3817 L_30004D34:
   3818     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   3819     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   3820 L_30004D39:
   3821     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   3822     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   3823     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   3824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3825     _flag_k = FK_CMP;
   3826     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   3827 L_30004D40:
   3828     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   3829     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   3830 L_30004D44:
   3831     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   3832 L_30004D47:
   3833     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   3834     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   3835     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   3836     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   3837 L_30004D51:
   3838     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   3839     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   3840     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   3841     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   3842     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   3843     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   3844     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   3845     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   3846     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   3847     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   3848     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   3849     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   3850     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   3851     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3853     _flag_k = FK_CMP;
   3854     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   3855 L_30004D77:
   3856     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   3857 L_30004D7A:
   3858     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   3859     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   3860     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   3861     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   3862     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3864     _flag_k = FK_CMP;
   3865     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   3866 L_30004D88:
   3867     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   3868     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   3869 L_30004D8D:
   3870     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   3871     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   3872     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3874     _flag_k = FK_CMP;
   3875     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   3876 L_30004D95:
   3877     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   3878     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   3879 L_30004D9A:
   3880     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   3881 L_30004D9C:
   3882     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   3883 L_30004D9F:
   3884     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   3885 L_30004DA2:
   3886     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   3887     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   3888     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   3889     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   3890     RECOMP_FLAGS_IN();
   3891     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   3892     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   3893     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3894     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3895     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   3896     _flag_k = FK_ADD;
   3897     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3898     eax = eax - 1; /* 0x30004DB7: dec eax */
   3899     _flag_k = FK_DEC;
   3900     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   3901     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   3902     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   3903     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   3904     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   3905     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   3906     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   3907     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   3908     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   3909     RECOMP_REGS_OUT();
   3910 }
   3911 
   3912 void sub_30004BB0(void) {
   3913     int _fpu_cmp = 0;
   3914     uint32_t _cf = 0;
   3915     int _df = 1;
   3916     uint32_t _flag_k = FK_NONE;
   3917     uint32_t _flag_a = 0, _flag_b = 0;
   3918     uint32_t _itail_tgt = 0;
   3919     RECOMP_REGS_LOCALS
   3920     RECOMP_ENTER(0x30004BB0u);
   3921 
   3922     goto L_30004BB0;
   3923 L_30004B54:
   3924     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   3925     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3927     _flag_k = FK_NARROW(FK_CMP, 24);
   3928     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   3929 L_30004B5D:
   3930     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   3931     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   3932     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   3933     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3934     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3935     _flag_k = FK_CMP;
   3936     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   3937 L_30004B66:
   3938     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   3939     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   3940     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   3941     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3942     _cf = 0;
   3943     _flag_k = FK_NARROW(FK_TEST, 24);
   3944     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   3945 L_30004B70:
   3946     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   3947     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   3948     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   3949     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   3950     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   3951     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   3952     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   3953     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   3954     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   3955     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3957     _flag_k = FK_CMP;
   3958     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   3959 L_30004B8C:
   3960     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   3961 L_30004B8F:
   3962     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   3963     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   3964     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   3965     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   3966     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3968     _flag_k = FK_CMP;
   3969     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   3970 L_30004B9D:
   3971     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   3972     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   3973 L_30004BA2:
   3974     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   3975     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   3976     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   3977     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3978     _flag_k = FK_CMP;
   3979     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   3980 L_30004BA9:
   3981     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   3982     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   3983 L_30004BAD:
   3984     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   3985 L_30004BB0:
   3986     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   3987     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   3988     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   3989     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   3990 L_30004BBB:
   3991     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   3992     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   3993     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3995     _flag_k = FK_NARROW(FK_CMP, 24);
   3996     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   3997 L_30004BC6:
   3998     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   3999     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   4000     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4002     _flag_k = FK_NARROW(FK_CMP, 24);
   4003     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   4004 L_30004BD2:
   4005     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   4006 L_30004BD4:
   4007     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   4008     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   4009     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4010     _cf = 0;
   4011     _flag_k = FK_NARROW(FK_TEST, 24);
   4012     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   4013 L_30004BDB:
   4014     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   4015     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   4016     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   4017     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   4018     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   4019     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   4020     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   4021     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   4022     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   4023     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4025     _flag_k = FK_CMP;
   4026     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   4027 L_30004BF7:
   4028     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   4029 L_30004BFA:
   4030     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   4031     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   4032     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   4033     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   4034     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4036     _flag_k = FK_CMP;
   4037     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   4038 L_30004C08:
   4039     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   4040     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   4041 L_30004C0D:
   4042     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   4043     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   4044     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4046     _flag_k = FK_CMP;
   4047     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   4048 L_30004C15:
   4049     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   4050     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   4051 L_30004C1A:
   4052     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   4053 L_30004C1C:
   4054     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   4055     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   4056     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   4057     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   4058 L_30004C27:
   4059     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   4060     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   4061     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4063     _flag_k = FK_NARROW(FK_CMP, 24);
   4064     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   4065 L_30004C33:
   4066     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   4067     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   4068     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4069     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4070     _flag_k = FK_NARROW(FK_CMP, 24);
   4071     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   4072 L_30004C3E:
   4073     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   4074     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   4075     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   4076     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   4077     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4078     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4079     _flag_k = FK_CMP;
   4080     RECOMP_BACKEDGE();
   4081     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   4082 L_30004C51:
   4083     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   4084 L_30004C56:
   4085     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   4086     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   4087     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4089     _flag_k = FK_NARROW(FK_CMP, 24);
   4090     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   4091 L_30004C5E:
   4092     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   4093     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   4094     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   4095     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   4096     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   4097     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   4098     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   4099     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   4100     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4102     _flag_k = FK_CMP;
   4103     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   4104 L_30004C76:
   4105     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   4106 L_30004C79:
   4107     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   4108     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   4109     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   4110     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   4111     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4112     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4113     _flag_k = FK_CMP;
   4114     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   4115 L_30004C87:
   4116     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   4117     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   4118 L_30004C8C:
   4119     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   4120     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   4121     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4123     _flag_k = FK_CMP;
   4124     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   4125 L_30004C94:
   4126     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   4127     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   4128 L_30004C99:
   4129     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   4130 L_30004C9B:
   4131     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   4132     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   4133     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   4134     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   4135 L_30004CA7:
   4136     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   4137     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   4138     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   4139     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   4140     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   4141     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   4142     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   4143     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   4144     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   4145     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   4146     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   4147     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   4148     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   4149     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4150     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4151     _flag_k = FK_CMP;
   4152     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   4153 L_30004CCE:
   4154     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   4155 L_30004CD1:
   4156     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   4157     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   4158     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   4159     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   4160     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4162     _flag_k = FK_CMP;
   4163     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   4164 L_30004CDF:
   4165     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   4166     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   4167     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   4168 L_30004CE9:
   4169     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   4170     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   4171     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   4172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4173     _flag_k = FK_CMP;
   4174     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   4175 L_30004CF0:
   4176     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   4177     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   4178     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   4179 L_30004CF9:
   4180     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   4181     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   4182     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   4183 L_30004D03:
   4184     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   4185     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   4186     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4188     _flag_k = FK_NARROW(FK_CMP, 24);
   4189     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   4190 L_30004D0A:
   4191     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   4192     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   4193     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   4194     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   4195     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   4196     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   4197     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   4198     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   4199     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4201     _flag_k = FK_CMP;
   4202     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   4203 L_30004D23:
   4204     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   4205 L_30004D26:
   4206     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   4207     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   4208     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   4209     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   4210     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4212     _flag_k = FK_CMP;
   4213     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   4214 L_30004D34:
   4215     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   4216     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   4217 L_30004D39:
   4218     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   4219     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   4220     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   4221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4222     _flag_k = FK_CMP;
   4223     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   4224 L_30004D40:
   4225     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   4226     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   4227 L_30004D44:
   4228     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   4229 L_30004D47:
   4230     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   4231     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   4232     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   4233     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   4234 L_30004D51:
   4235     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   4236     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   4237     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   4238     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   4239     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   4240     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   4241     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   4242     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   4243     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   4244     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   4245     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   4246     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   4247     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   4248     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4250     _flag_k = FK_CMP;
   4251     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   4252 L_30004D77:
   4253     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   4254 L_30004D7A:
   4255     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   4256     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   4257     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   4258     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   4259     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4261     _flag_k = FK_CMP;
   4262     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   4263 L_30004D88:
   4264     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   4265     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   4266 L_30004D8D:
   4267     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   4268     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   4269     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4270     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4271     _flag_k = FK_CMP;
   4272     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   4273 L_30004D95:
   4274     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   4275     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   4276 L_30004D9A:
   4277     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   4278 L_30004D9C:
   4279     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   4280 L_30004D9F:
   4281     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   4282 L_30004DA2:
   4283     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   4284     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   4285     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   4286     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   4287     RECOMP_FLAGS_IN();
   4288     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   4289     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   4290     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4291     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4292     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   4293     _flag_k = FK_ADD;
   4294     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4295     eax = eax - 1; /* 0x30004DB7: dec eax */
   4296     _flag_k = FK_DEC;
   4297     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   4298     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   4299     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   4300     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   4301     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   4302     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   4303     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   4304     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   4305     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   4306     RECOMP_REGS_OUT();
   4307 }
   4308 
   4309 void sub_30004BBB(void) {
   4310     int _fpu_cmp = 0;
   4311     uint32_t _cf = 0;
   4312     int _df = 1;
   4313     uint32_t _flag_k = FK_NONE;
   4314     uint32_t _flag_a = 0, _flag_b = 0;
   4315     uint32_t _itail_tgt = 0;
   4316     RECOMP_REGS_LOCALS
   4317     RECOMP_ENTER(0x30004BBBu);
   4318 
   4319     goto L_30004BBB;
   4320 L_30004B54:
   4321     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   4322     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4323     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4324     _flag_k = FK_NARROW(FK_CMP, 24);
   4325     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   4326 L_30004B5D:
   4327     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   4328     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   4329     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   4330     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4331     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4332     _flag_k = FK_CMP;
   4333     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   4334 L_30004B66:
   4335     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   4336     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   4337     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   4338     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4339     _cf = 0;
   4340     _flag_k = FK_NARROW(FK_TEST, 24);
   4341     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   4342 L_30004B70:
   4343     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   4344     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   4345     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   4346     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   4347     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   4348     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   4349     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   4350     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   4351     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   4352     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4353     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4354     _flag_k = FK_CMP;
   4355     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   4356 L_30004B8C:
   4357     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   4358 L_30004B8F:
   4359     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   4360     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   4361     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   4362     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   4363     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4365     _flag_k = FK_CMP;
   4366     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   4367 L_30004B9D:
   4368     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   4369     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   4370 L_30004BA2:
   4371     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   4372     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   4373     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   4374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4375     _flag_k = FK_CMP;
   4376     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   4377 L_30004BA9:
   4378     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   4379     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   4380 L_30004BAD:
   4381     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   4382 L_30004BB0:
   4383     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   4384     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   4385     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   4386     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   4387 L_30004BBB:
   4388     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   4389     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   4390     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4392     _flag_k = FK_NARROW(FK_CMP, 24);
   4393     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   4394 L_30004BC6:
   4395     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   4396     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   4397     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4399     _flag_k = FK_NARROW(FK_CMP, 24);
   4400     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   4401 L_30004BD2:
   4402     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   4403 L_30004BD4:
   4404     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   4405     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   4406     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4407     _cf = 0;
   4408     _flag_k = FK_NARROW(FK_TEST, 24);
   4409     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   4410 L_30004BDB:
   4411     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   4412     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   4413     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   4414     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   4415     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   4416     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   4417     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   4418     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   4419     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   4420     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4422     _flag_k = FK_CMP;
   4423     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   4424 L_30004BF7:
   4425     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   4426 L_30004BFA:
   4427     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   4428     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   4429     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   4430     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   4431     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4433     _flag_k = FK_CMP;
   4434     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   4435 L_30004C08:
   4436     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   4437     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   4438 L_30004C0D:
   4439     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   4440     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   4441     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4442     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4443     _flag_k = FK_CMP;
   4444     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   4445 L_30004C15:
   4446     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   4447     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   4448 L_30004C1A:
   4449     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   4450 L_30004C1C:
   4451     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   4452     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   4453     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   4454     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   4455 L_30004C27:
   4456     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   4457     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   4458     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4460     _flag_k = FK_NARROW(FK_CMP, 24);
   4461     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   4462 L_30004C33:
   4463     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   4464     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   4465     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4467     _flag_k = FK_NARROW(FK_CMP, 24);
   4468     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   4469 L_30004C3E:
   4470     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   4471     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   4472     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   4473     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   4474     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4476     _flag_k = FK_CMP;
   4477     RECOMP_BACKEDGE();
   4478     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   4479 L_30004C51:
   4480     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   4481 L_30004C56:
   4482     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   4483     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   4484     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4486     _flag_k = FK_NARROW(FK_CMP, 24);
   4487     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   4488 L_30004C5E:
   4489     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   4490     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   4491     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   4492     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   4493     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   4494     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   4495     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   4496     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   4497     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4499     _flag_k = FK_CMP;
   4500     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   4501 L_30004C76:
   4502     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   4503 L_30004C79:
   4504     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   4505     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   4506     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   4507     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   4508     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4510     _flag_k = FK_CMP;
   4511     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   4512 L_30004C87:
   4513     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   4514     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   4515 L_30004C8C:
   4516     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   4517     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   4518     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4520     _flag_k = FK_CMP;
   4521     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   4522 L_30004C94:
   4523     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   4524     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   4525 L_30004C99:
   4526     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   4527 L_30004C9B:
   4528     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   4529     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   4530     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   4531     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   4532 L_30004CA7:
   4533     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   4534     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   4535     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   4536     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   4537     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   4538     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   4539     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   4540     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   4541     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   4542     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   4543     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   4544     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   4545     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   4546     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4547     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4548     _flag_k = FK_CMP;
   4549     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   4550 L_30004CCE:
   4551     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   4552 L_30004CD1:
   4553     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   4554     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   4555     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   4556     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   4557     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4558     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4559     _flag_k = FK_CMP;
   4560     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   4561 L_30004CDF:
   4562     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   4563     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   4564     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   4565 L_30004CE9:
   4566     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   4567     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   4568     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   4569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4570     _flag_k = FK_CMP;
   4571     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   4572 L_30004CF0:
   4573     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   4574     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   4575     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   4576 L_30004CF9:
   4577     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   4578     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   4579     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   4580 L_30004D03:
   4581     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   4582     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   4583     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4585     _flag_k = FK_NARROW(FK_CMP, 24);
   4586     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   4587 L_30004D0A:
   4588     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   4589     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   4590     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   4591     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   4592     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   4593     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   4594     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   4595     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   4596     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4598     _flag_k = FK_CMP;
   4599     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   4600 L_30004D23:
   4601     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   4602 L_30004D26:
   4603     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   4604     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   4605     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   4606     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   4607     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4609     _flag_k = FK_CMP;
   4610     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   4611 L_30004D34:
   4612     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   4613     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   4614 L_30004D39:
   4615     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   4616     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   4617     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   4618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4619     _flag_k = FK_CMP;
   4620     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   4621 L_30004D40:
   4622     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   4623     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   4624 L_30004D44:
   4625     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   4626 L_30004D47:
   4627     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   4628     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   4629     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   4630     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   4631 L_30004D51:
   4632     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   4633     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   4634     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   4635     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   4636     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   4637     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   4638     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   4639     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   4640     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   4641     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   4642     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   4643     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   4644     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   4645     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4647     _flag_k = FK_CMP;
   4648     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   4649 L_30004D77:
   4650     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   4651 L_30004D7A:
   4652     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   4653     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   4654     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   4655     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   4656     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4658     _flag_k = FK_CMP;
   4659     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   4660 L_30004D88:
   4661     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   4662     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   4663 L_30004D8D:
   4664     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   4665     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   4666     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4668     _flag_k = FK_CMP;
   4669     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   4670 L_30004D95:
   4671     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   4672     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   4673 L_30004D9A:
   4674     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   4675 L_30004D9C:
   4676     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   4677 L_30004D9F:
   4678     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   4679 L_30004DA2:
   4680     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   4681     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   4682     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   4683     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   4684     RECOMP_FLAGS_IN();
   4685     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   4686     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   4687     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4688     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4689     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   4690     _flag_k = FK_ADD;
   4691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4692     eax = eax - 1; /* 0x30004DB7: dec eax */
   4693     _flag_k = FK_DEC;
   4694     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   4695     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   4696     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   4697     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   4698     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   4699     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   4700     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   4701     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   4702     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   4703     RECOMP_REGS_OUT();
   4704 }
   4705 
   4706 void sub_30004BD4(void) {
   4707     int _fpu_cmp = 0;
   4708     uint32_t _cf = 0;
   4709     int _df = 1;
   4710     uint32_t _flag_k = FK_NONE;
   4711     uint32_t _flag_a = 0, _flag_b = 0;
   4712     uint32_t _itail_tgt = 0;
   4713     RECOMP_REGS_LOCALS
   4714     RECOMP_ENTER(0x30004BD4u);
   4715 
   4716     goto L_30004BD4;
   4717 L_30004B54:
   4718     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   4719     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4721     _flag_k = FK_NARROW(FK_CMP, 24);
   4722     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   4723 L_30004B5D:
   4724     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   4725     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   4726     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   4727     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4728     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4729     _flag_k = FK_CMP;
   4730     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   4731 L_30004B66:
   4732     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   4733     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   4734     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   4735     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4736     _cf = 0;
   4737     _flag_k = FK_NARROW(FK_TEST, 24);
   4738     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   4739 L_30004B70:
   4740     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   4741     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   4742     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   4743     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   4744     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   4745     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   4746     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   4747     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   4748     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   4749     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4750     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4751     _flag_k = FK_CMP;
   4752     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   4753 L_30004B8C:
   4754     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   4755 L_30004B8F:
   4756     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   4757     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   4758     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   4759     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   4760     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4762     _flag_k = FK_CMP;
   4763     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   4764 L_30004B9D:
   4765     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   4766     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   4767 L_30004BA2:
   4768     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   4769     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   4770     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   4771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4772     _flag_k = FK_CMP;
   4773     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   4774 L_30004BA9:
   4775     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   4776     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   4777 L_30004BAD:
   4778     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   4779 L_30004BB0:
   4780     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   4781     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   4782     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   4783     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   4784 L_30004BBB:
   4785     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   4786     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   4787     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4789     _flag_k = FK_NARROW(FK_CMP, 24);
   4790     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   4791 L_30004BC6:
   4792     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   4793     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   4794     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4796     _flag_k = FK_NARROW(FK_CMP, 24);
   4797     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   4798 L_30004BD2:
   4799     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   4800 L_30004BD4:
   4801     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   4802     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   4803     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4804     _cf = 0;
   4805     _flag_k = FK_NARROW(FK_TEST, 24);
   4806     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   4807 L_30004BDB:
   4808     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   4809     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   4810     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   4811     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   4812     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   4813     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   4814     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   4815     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   4816     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   4817     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4818     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4819     _flag_k = FK_CMP;
   4820     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   4821 L_30004BF7:
   4822     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   4823 L_30004BFA:
   4824     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   4825     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   4826     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   4827     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   4828     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4830     _flag_k = FK_CMP;
   4831     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   4832 L_30004C08:
   4833     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   4834     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   4835 L_30004C0D:
   4836     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   4837     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   4838     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4840     _flag_k = FK_CMP;
   4841     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   4842 L_30004C15:
   4843     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   4844     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   4845 L_30004C1A:
   4846     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   4847 L_30004C1C:
   4848     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   4849     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   4850     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   4851     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   4852 L_30004C27:
   4853     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   4854     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   4855     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4857     _flag_k = FK_NARROW(FK_CMP, 24);
   4858     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   4859 L_30004C33:
   4860     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   4861     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   4862     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4864     _flag_k = FK_NARROW(FK_CMP, 24);
   4865     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   4866 L_30004C3E:
   4867     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   4868     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   4869     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   4870     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   4871     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4873     _flag_k = FK_CMP;
   4874     RECOMP_BACKEDGE();
   4875     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   4876 L_30004C51:
   4877     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   4878 L_30004C56:
   4879     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   4880     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   4881     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4883     _flag_k = FK_NARROW(FK_CMP, 24);
   4884     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   4885 L_30004C5E:
   4886     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   4887     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   4888     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   4889     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   4890     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   4891     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   4892     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   4893     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   4894     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4896     _flag_k = FK_CMP;
   4897     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   4898 L_30004C76:
   4899     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   4900 L_30004C79:
   4901     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   4902     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   4903     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   4904     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   4905     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4906     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4907     _flag_k = FK_CMP;
   4908     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   4909 L_30004C87:
   4910     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   4911     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   4912 L_30004C8C:
   4913     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   4914     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   4915     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4917     _flag_k = FK_CMP;
   4918     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   4919 L_30004C94:
   4920     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   4921     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   4922 L_30004C99:
   4923     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   4924 L_30004C9B:
   4925     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   4926     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   4927     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   4928     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   4929 L_30004CA7:
   4930     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   4931     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   4932     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   4933     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   4934     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   4935     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   4936     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   4937     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   4938     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   4939     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   4940     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   4941     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   4942     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   4943     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4945     _flag_k = FK_CMP;
   4946     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   4947 L_30004CCE:
   4948     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   4949 L_30004CD1:
   4950     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   4951     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   4952     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   4953     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   4954     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   4955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4956     _flag_k = FK_CMP;
   4957     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   4958 L_30004CDF:
   4959     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   4960     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   4961     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   4962 L_30004CE9:
   4963     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   4964     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   4965     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   4966     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4967     _flag_k = FK_CMP;
   4968     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   4969 L_30004CF0:
   4970     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   4971     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   4972     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   4973 L_30004CF9:
   4974     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   4975     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   4976     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   4977 L_30004D03:
   4978     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   4979     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   4980     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4982     _flag_k = FK_NARROW(FK_CMP, 24);
   4983     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   4984 L_30004D0A:
   4985     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   4986     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   4987     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   4988     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   4989     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   4990     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   4991     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   4992     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   4993     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4995     _flag_k = FK_CMP;
   4996     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   4997 L_30004D23:
   4998     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   4999 L_30004D26:
   5000     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   5001     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   5002     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   5003     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   5004     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5006     _flag_k = FK_CMP;
   5007     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   5008 L_30004D34:
   5009     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   5010     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   5011 L_30004D39:
   5012     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   5013     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   5014     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5016     _flag_k = FK_CMP;
   5017     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   5018 L_30004D40:
   5019     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   5020     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   5021 L_30004D44:
   5022     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   5023 L_30004D47:
   5024     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   5025     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   5026     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   5027     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   5028 L_30004D51:
   5029     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   5030     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   5031     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   5032     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   5033     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   5034     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   5035     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   5036     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   5037     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   5038     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   5039     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   5040     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   5041     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   5042     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5044     _flag_k = FK_CMP;
   5045     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   5046 L_30004D77:
   5047     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   5048 L_30004D7A:
   5049     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   5050     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   5051     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   5052     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   5053     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5055     _flag_k = FK_CMP;
   5056     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   5057 L_30004D88:
   5058     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   5059     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   5060 L_30004D8D:
   5061     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   5062     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   5063     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5065     _flag_k = FK_CMP;
   5066     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   5067 L_30004D95:
   5068     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   5069     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   5070 L_30004D9A:
   5071     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   5072 L_30004D9C:
   5073     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   5074 L_30004D9F:
   5075     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   5076 L_30004DA2:
   5077     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   5078     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   5079     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   5080     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   5081     RECOMP_FLAGS_IN();
   5082     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   5083     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   5084     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5085     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5086     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   5087     _flag_k = FK_ADD;
   5088     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5089     eax = eax - 1; /* 0x30004DB7: dec eax */
   5090     _flag_k = FK_DEC;
   5091     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   5092     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   5093     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   5094     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   5095     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   5096     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   5097     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   5098     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   5099     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   5100     RECOMP_REGS_OUT();
   5101 }
   5102 
   5103 void sub_30004C1C(void) {
   5104     int _fpu_cmp = 0;
   5105     uint32_t _cf = 0;
   5106     int _df = 1;
   5107     uint32_t _flag_k = FK_NONE;
   5108     uint32_t _flag_a = 0, _flag_b = 0;
   5109     uint32_t _itail_tgt = 0;
   5110     RECOMP_REGS_LOCALS
   5111     RECOMP_ENTER(0x30004C1Cu);
   5112 
   5113     goto L_30004C1C;
   5114 L_30004B54:
   5115     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   5116     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5118     _flag_k = FK_NARROW(FK_CMP, 24);
   5119     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   5120 L_30004B5D:
   5121     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   5122     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   5123     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   5124     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5125     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5126     _flag_k = FK_CMP;
   5127     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   5128 L_30004B66:
   5129     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   5130     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   5131     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   5132     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5133     _cf = 0;
   5134     _flag_k = FK_NARROW(FK_TEST, 24);
   5135     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   5136 L_30004B70:
   5137     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   5138     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   5139     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   5140     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   5141     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   5142     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   5143     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   5144     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   5145     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   5146     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5148     _flag_k = FK_CMP;
   5149     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   5150 L_30004B8C:
   5151     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   5152 L_30004B8F:
   5153     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   5154     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   5155     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   5156     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   5157     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5159     _flag_k = FK_CMP;
   5160     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   5161 L_30004B9D:
   5162     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   5163     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   5164 L_30004BA2:
   5165     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   5166     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   5167     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5168     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5169     _flag_k = FK_CMP;
   5170     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   5171 L_30004BA9:
   5172     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   5173     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   5174 L_30004BAD:
   5175     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   5176 L_30004BB0:
   5177     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   5178     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   5179     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   5180     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   5181 L_30004BBB:
   5182     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   5183     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   5184     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5186     _flag_k = FK_NARROW(FK_CMP, 24);
   5187     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   5188 L_30004BC6:
   5189     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   5190     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   5191     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5193     _flag_k = FK_NARROW(FK_CMP, 24);
   5194     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   5195 L_30004BD2:
   5196     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   5197 L_30004BD4:
   5198     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   5199     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   5200     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5201     _cf = 0;
   5202     _flag_k = FK_NARROW(FK_TEST, 24);
   5203     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   5204 L_30004BDB:
   5205     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   5206     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   5207     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   5208     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   5209     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   5210     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   5211     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   5212     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   5213     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   5214     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5216     _flag_k = FK_CMP;
   5217     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   5218 L_30004BF7:
   5219     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   5220 L_30004BFA:
   5221     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   5222     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   5223     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   5224     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   5225     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5226     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5227     _flag_k = FK_CMP;
   5228     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   5229 L_30004C08:
   5230     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   5231     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   5232 L_30004C0D:
   5233     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   5234     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   5235     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5236     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5237     _flag_k = FK_CMP;
   5238     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   5239 L_30004C15:
   5240     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   5241     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   5242 L_30004C1A:
   5243     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   5244 L_30004C1C:
   5245     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   5246     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   5247     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   5248     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   5249 L_30004C27:
   5250     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   5251     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   5252     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5254     _flag_k = FK_NARROW(FK_CMP, 24);
   5255     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   5256 L_30004C33:
   5257     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   5258     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   5259     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5261     _flag_k = FK_NARROW(FK_CMP, 24);
   5262     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   5263 L_30004C3E:
   5264     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   5265     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   5266     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   5267     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   5268     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5269     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5270     _flag_k = FK_CMP;
   5271     RECOMP_BACKEDGE();
   5272     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   5273 L_30004C51:
   5274     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   5275 L_30004C56:
   5276     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   5277     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   5278     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5280     _flag_k = FK_NARROW(FK_CMP, 24);
   5281     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   5282 L_30004C5E:
   5283     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   5284     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   5285     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   5286     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   5287     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   5288     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   5289     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   5290     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   5291     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5292     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5293     _flag_k = FK_CMP;
   5294     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   5295 L_30004C76:
   5296     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   5297 L_30004C79:
   5298     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   5299     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   5300     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   5301     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   5302     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5304     _flag_k = FK_CMP;
   5305     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   5306 L_30004C87:
   5307     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   5308     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   5309 L_30004C8C:
   5310     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   5311     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   5312     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5314     _flag_k = FK_CMP;
   5315     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   5316 L_30004C94:
   5317     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   5318     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   5319 L_30004C99:
   5320     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   5321 L_30004C9B:
   5322     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   5323     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   5324     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   5325     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   5326 L_30004CA7:
   5327     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   5328     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   5329     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   5330     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   5331     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   5332     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   5333     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   5334     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   5335     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   5336     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   5337     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   5338     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   5339     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   5340     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5341     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5342     _flag_k = FK_CMP;
   5343     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   5344 L_30004CCE:
   5345     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   5346 L_30004CD1:
   5347     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   5348     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   5349     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   5350     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   5351     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5352     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5353     _flag_k = FK_CMP;
   5354     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   5355 L_30004CDF:
   5356     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   5357     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   5358     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   5359 L_30004CE9:
   5360     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   5361     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   5362     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5364     _flag_k = FK_CMP;
   5365     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   5366 L_30004CF0:
   5367     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   5368     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   5369     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   5370 L_30004CF9:
   5371     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   5372     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   5373     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   5374 L_30004D03:
   5375     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   5376     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   5377     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5379     _flag_k = FK_NARROW(FK_CMP, 24);
   5380     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   5381 L_30004D0A:
   5382     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   5383     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   5384     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   5385     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   5386     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   5387     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   5388     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   5389     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   5390     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5392     _flag_k = FK_CMP;
   5393     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   5394 L_30004D23:
   5395     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   5396 L_30004D26:
   5397     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   5398     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   5399     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   5400     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   5401     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5403     _flag_k = FK_CMP;
   5404     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   5405 L_30004D34:
   5406     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   5407     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   5408 L_30004D39:
   5409     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   5410     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   5411     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5412     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5413     _flag_k = FK_CMP;
   5414     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   5415 L_30004D40:
   5416     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   5417     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   5418 L_30004D44:
   5419     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   5420 L_30004D47:
   5421     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   5422     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   5423     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   5424     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   5425 L_30004D51:
   5426     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   5427     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   5428     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   5429     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   5430     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   5431     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   5432     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   5433     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   5434     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   5435     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   5436     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   5437     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   5438     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   5439     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5441     _flag_k = FK_CMP;
   5442     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   5443 L_30004D77:
   5444     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   5445 L_30004D7A:
   5446     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   5447     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   5448     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   5449     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   5450     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5451     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5452     _flag_k = FK_CMP;
   5453     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   5454 L_30004D88:
   5455     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   5456     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   5457 L_30004D8D:
   5458     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   5459     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   5460     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5462     _flag_k = FK_CMP;
   5463     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   5464 L_30004D95:
   5465     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   5466     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   5467 L_30004D9A:
   5468     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   5469 L_30004D9C:
   5470     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   5471 L_30004D9F:
   5472     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   5473 L_30004DA2:
   5474     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   5475     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   5476     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   5477     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   5478     RECOMP_FLAGS_IN();
   5479     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   5480     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   5481     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5482     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5483     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   5484     _flag_k = FK_ADD;
   5485     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5486     eax = eax - 1; /* 0x30004DB7: dec eax */
   5487     _flag_k = FK_DEC;
   5488     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   5489     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   5490     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   5491     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   5492     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   5493     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   5494     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   5495     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   5496     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   5497     RECOMP_REGS_OUT();
   5498 }
   5499 
   5500 void sub_30004C27(void) {
   5501     int _fpu_cmp = 0;
   5502     uint32_t _cf = 0;
   5503     int _df = 1;
   5504     uint32_t _flag_k = FK_NONE;
   5505     uint32_t _flag_a = 0, _flag_b = 0;
   5506     uint32_t _itail_tgt = 0;
   5507     RECOMP_REGS_LOCALS
   5508     RECOMP_ENTER(0x30004C27u);
   5509 
   5510     goto L_30004C27;
   5511 L_30004B54:
   5512     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   5513     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5515     _flag_k = FK_NARROW(FK_CMP, 24);
   5516     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   5517 L_30004B5D:
   5518     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   5519     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   5520     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   5521     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5523     _flag_k = FK_CMP;
   5524     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   5525 L_30004B66:
   5526     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   5527     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   5528     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   5529     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5530     _cf = 0;
   5531     _flag_k = FK_NARROW(FK_TEST, 24);
   5532     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   5533 L_30004B70:
   5534     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   5535     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   5536     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   5537     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   5538     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   5539     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   5540     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   5541     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   5542     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   5543     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5545     _flag_k = FK_CMP;
   5546     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   5547 L_30004B8C:
   5548     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   5549 L_30004B8F:
   5550     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   5551     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   5552     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   5553     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   5554     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5556     _flag_k = FK_CMP;
   5557     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   5558 L_30004B9D:
   5559     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   5560     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   5561 L_30004BA2:
   5562     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   5563     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   5564     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5566     _flag_k = FK_CMP;
   5567     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   5568 L_30004BA9:
   5569     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   5570     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   5571 L_30004BAD:
   5572     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   5573 L_30004BB0:
   5574     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   5575     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   5576     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   5577     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   5578 L_30004BBB:
   5579     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   5580     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   5581     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5583     _flag_k = FK_NARROW(FK_CMP, 24);
   5584     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   5585 L_30004BC6:
   5586     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   5587     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   5588     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5590     _flag_k = FK_NARROW(FK_CMP, 24);
   5591     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   5592 L_30004BD2:
   5593     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   5594 L_30004BD4:
   5595     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   5596     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   5597     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5598     _cf = 0;
   5599     _flag_k = FK_NARROW(FK_TEST, 24);
   5600     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   5601 L_30004BDB:
   5602     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   5603     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   5604     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   5605     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   5606     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   5607     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   5608     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   5609     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   5610     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   5611     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5613     _flag_k = FK_CMP;
   5614     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   5615 L_30004BF7:
   5616     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   5617 L_30004BFA:
   5618     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   5619     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   5620     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   5621     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   5622     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5623     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5624     _flag_k = FK_CMP;
   5625     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   5626 L_30004C08:
   5627     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   5628     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   5629 L_30004C0D:
   5630     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   5631     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   5632     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5633     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5634     _flag_k = FK_CMP;
   5635     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   5636 L_30004C15:
   5637     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   5638     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   5639 L_30004C1A:
   5640     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   5641 L_30004C1C:
   5642     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   5643     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   5644     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   5645     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   5646 L_30004C27:
   5647     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   5648     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   5649     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5651     _flag_k = FK_NARROW(FK_CMP, 24);
   5652     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   5653 L_30004C33:
   5654     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   5655     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   5656     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5658     _flag_k = FK_NARROW(FK_CMP, 24);
   5659     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   5660 L_30004C3E:
   5661     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   5662     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   5663     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   5664     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   5665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5667     _flag_k = FK_CMP;
   5668     RECOMP_BACKEDGE();
   5669     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   5670 L_30004C51:
   5671     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   5672 L_30004C56:
   5673     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   5674     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   5675     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5677     _flag_k = FK_NARROW(FK_CMP, 24);
   5678     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   5679 L_30004C5E:
   5680     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   5681     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   5682     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   5683     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   5684     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   5685     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   5686     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   5687     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   5688     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5690     _flag_k = FK_CMP;
   5691     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   5692 L_30004C76:
   5693     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   5694 L_30004C79:
   5695     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   5696     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   5697     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   5698     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   5699     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5700     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5701     _flag_k = FK_CMP;
   5702     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   5703 L_30004C87:
   5704     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   5705     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   5706 L_30004C8C:
   5707     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   5708     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   5709     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5711     _flag_k = FK_CMP;
   5712     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   5713 L_30004C94:
   5714     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   5715     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   5716 L_30004C99:
   5717     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   5718 L_30004C9B:
   5719     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   5720     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   5721     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   5722     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   5723 L_30004CA7:
   5724     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   5725     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   5726     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   5727     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   5728     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   5729     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   5730     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   5731     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   5732     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   5733     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   5734     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   5735     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   5736     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   5737     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5739     _flag_k = FK_CMP;
   5740     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   5741 L_30004CCE:
   5742     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   5743 L_30004CD1:
   5744     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   5745     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   5746     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   5747     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   5748     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5749     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5750     _flag_k = FK_CMP;
   5751     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   5752 L_30004CDF:
   5753     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   5754     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   5755     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   5756 L_30004CE9:
   5757     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   5758     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   5759     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5760     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5761     _flag_k = FK_CMP;
   5762     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   5763 L_30004CF0:
   5764     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   5765     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   5766     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   5767 L_30004CF9:
   5768     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   5769     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   5770     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   5771 L_30004D03:
   5772     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   5773     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   5774     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5775     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5776     _flag_k = FK_NARROW(FK_CMP, 24);
   5777     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   5778 L_30004D0A:
   5779     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   5780     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   5781     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   5782     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   5783     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   5784     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   5785     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   5786     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   5787     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5789     _flag_k = FK_CMP;
   5790     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   5791 L_30004D23:
   5792     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   5793 L_30004D26:
   5794     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   5795     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   5796     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   5797     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   5798     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5799     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5800     _flag_k = FK_CMP;
   5801     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   5802 L_30004D34:
   5803     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   5804     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   5805 L_30004D39:
   5806     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   5807     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   5808     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5809     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5810     _flag_k = FK_CMP;
   5811     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   5812 L_30004D40:
   5813     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   5814     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   5815 L_30004D44:
   5816     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   5817 L_30004D47:
   5818     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   5819     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   5820     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   5821     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   5822 L_30004D51:
   5823     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   5824     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   5825     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   5826     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   5827     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   5828     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   5829     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   5830     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   5831     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   5832     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   5833     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   5834     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   5835     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   5836     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5838     _flag_k = FK_CMP;
   5839     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   5840 L_30004D77:
   5841     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   5842 L_30004D7A:
   5843     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   5844     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   5845     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   5846     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   5847     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5849     _flag_k = FK_CMP;
   5850     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   5851 L_30004D88:
   5852     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   5853     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   5854 L_30004D8D:
   5855     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   5856     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   5857     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5859     _flag_k = FK_CMP;
   5860     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   5861 L_30004D95:
   5862     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   5863     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   5864 L_30004D9A:
   5865     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   5866 L_30004D9C:
   5867     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   5868 L_30004D9F:
   5869     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   5870 L_30004DA2:
   5871     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   5872     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   5873     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   5874     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   5875     RECOMP_FLAGS_IN();
   5876     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   5877     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   5878     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5879     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5880     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   5881     _flag_k = FK_ADD;
   5882     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5883     eax = eax - 1; /* 0x30004DB7: dec eax */
   5884     _flag_k = FK_DEC;
   5885     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   5886     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   5887     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   5888     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   5889     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   5890     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   5891     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   5892     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   5893     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   5894     RECOMP_REGS_OUT();
   5895 }
   5896 
   5897 void sub_30004C3E(void) {
   5898     int _fpu_cmp = 0;
   5899     uint32_t _cf = 0;
   5900     int _df = 1;
   5901     uint32_t _flag_k = FK_NONE;
   5902     uint32_t _flag_a = 0, _flag_b = 0;
   5903     uint32_t _itail_tgt = 0;
   5904     RECOMP_REGS_LOCALS
   5905     RECOMP_ENTER(0x30004C3Eu);
   5906 
   5907     goto L_30004C3E;
   5908 L_30004B54:
   5909     /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x30004B54: cmp byte ptr [eax + 0x10], bl */
   5910     _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5911     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5912     _flag_k = FK_NARROW(FK_CMP, 24);
   5913     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DA2; /* 0x30004B57: jne 0x30004da2 */
   5914 L_30004B5D:
   5915     edx = MEM32(eax + 0x4); /* 0x30004B5D: mov edx, dword ptr [eax + 4] */
   5916     ecx = MEM32(edx); /* 0x30004B60: mov ecx, dword ptr [edx] */
   5917     /* cmp eax, ecx */ /* 0x30004B62: cmp eax, ecx */
   5918     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5920     _flag_k = FK_CMP;
   5921     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BD4; /* 0x30004B64: jne 0x30004bd4 */
   5922 L_30004B66:
   5923     ecx = MEM32(edx + 0x8); /* 0x30004B66: mov ecx, dword ptr [edx + 8] */
   5924     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004B69: mov dl, byte ptr [ecx + 0x10] */
   5925     /* test LO8(edx), LO8(edx) */ /* 0x30004B6C: test dl, dl */
   5926     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5927     _cf = 0;
   5928     _flag_k = FK_NARROW(FK_TEST, 24);
   5929     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004BBB; /* 0x30004B6E: jne 0x30004bbb */
   5930 L_30004B70:
   5931     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004B70: mov byte ptr [ecx + 0x10], bl */
   5932     ecx = MEM32(eax + 0x4); /* 0x30004B73: mov ecx, dword ptr [eax + 4] */
   5933     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004B76: mov byte ptr [ecx + 0x10], 0 */
   5934     ecx = MEM32(eax + 0x4); /* 0x30004B7A: mov ecx, dword ptr [eax + 4] */
   5935     edx = MEM32(ecx + 0x8); /* 0x30004B7D: mov edx, dword ptr [ecx + 8] */
   5936     esi = MEM32(edx); /* 0x30004B80: mov esi, dword ptr [edx] */
   5937     MEM32(ecx + 0x8) = esi; /* 0x30004B82: mov dword ptr [ecx + 8], esi */
   5938     esi = MEM32(edx); /* 0x30004B85: mov esi, dword ptr [edx] */
   5939     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004B87: cmp esi, dword ptr [edi + 8] */
   5940     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5942     _flag_k = FK_CMP;
   5943     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004B8F; /* 0x30004B8A: je 0x30004b8f */
   5944 L_30004B8C:
   5945     MEM32(esi + 0x4) = ecx; /* 0x30004B8C: mov dword ptr [esi + 4], ecx */
   5946 L_30004B8F:
   5947     esi = MEM32(ecx + 0x4); /* 0x30004B8F: mov esi, dword ptr [ecx + 4] */
   5948     MEM32(edx + 0x4) = esi; /* 0x30004B92: mov dword ptr [edx + 4], esi */
   5949     esi = MEM32(edi + 0x4); /* 0x30004B95: mov esi, dword ptr [edi + 4] */
   5950     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004B98: cmp ecx, dword ptr [esi + 4] */
   5951     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5953     _flag_k = FK_CMP;
   5954     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BA2; /* 0x30004B9B: jne 0x30004ba2 */
   5955 L_30004B9D:
   5956     MEM32(esi + 0x4) = edx; /* 0x30004B9D: mov dword ptr [esi + 4], edx */
   5957     goto L_30004BB0; /* 0x30004BA0: jmp 0x30004bb0 */
   5958 L_30004BA2:
   5959     esi = MEM32(ecx + 0x4); /* 0x30004BA2: mov esi, dword ptr [ecx + 4] */
   5960     /* cmp ecx, MEM32(esi) */ /* 0x30004BA5: cmp ecx, dword ptr [esi] */
   5961     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5963     _flag_k = FK_CMP;
   5964     if (CMP_NE(_flag_a, _flag_b)) goto L_30004BAD; /* 0x30004BA7: jne 0x30004bad */
   5965 L_30004BA9:
   5966     MEM32(esi) = edx; /* 0x30004BA9: mov dword ptr [esi], edx */
   5967     goto L_30004BB0; /* 0x30004BAB: jmp 0x30004bb0 */
   5968 L_30004BAD:
   5969     MEM32(esi + 0x8) = edx; /* 0x30004BAD: mov dword ptr [esi + 8], edx */
   5970 L_30004BB0:
   5971     MEM32(edx) = ecx; /* 0x30004BB0: mov dword ptr [edx], ecx */
   5972     MEM32(ecx + 0x4) = edx; /* 0x30004BB2: mov dword ptr [ecx + 4], edx */
   5973     edx = MEM32(eax + 0x4); /* 0x30004BB5: mov edx, dword ptr [eax + 4] */
   5974     ecx = MEM32(edx + 0x8); /* 0x30004BB8: mov ecx, dword ptr [edx + 8] */
   5975 L_30004BBB:
   5976     edx = MEM32(ecx); /* 0x30004BBB: mov edx, dword ptr [ecx] */
   5977     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BBD: cmp byte ptr [edx + 0x10], bl */
   5978     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5980     _flag_k = FK_NARROW(FK_CMP, 24);
   5981     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BC0: jne 0x30004c56 */
   5982 L_30004BC6:
   5983     edx = MEM32(ecx + 0x8); /* 0x30004BC6: mov edx, dword ptr [ecx + 8] */
   5984     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004BC9: cmp byte ptr [edx + 0x10], bl */
   5985     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5987     _flag_k = FK_NARROW(FK_CMP, 24);
   5988     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C56; /* 0x30004BCC: jne 0x30004c56 */
   5989 L_30004BD2:
   5990     goto L_30004C3E; /* 0x30004BD2: jmp 0x30004c3e */
   5991 L_30004BD4:
   5992     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004BD4: mov dl, byte ptr [ecx + 0x10] */
   5993     /* test LO8(edx), LO8(edx) */ /* 0x30004BD7: test dl, dl */
   5994     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5995     _cf = 0;
   5996     _flag_k = FK_NARROW(FK_TEST, 24);
   5997     if (TEST_NZ(_flag_a, _flag_b)) goto L_30004C27; /* 0x30004BD9: jne 0x30004c27 */
   5998 L_30004BDB:
   5999     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004BDB: mov byte ptr [ecx + 0x10], bl */
   6000     ecx = MEM32(eax + 0x4); /* 0x30004BDE: mov ecx, dword ptr [eax + 4] */
   6001     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004BE1: mov byte ptr [ecx + 0x10], 0 */
   6002     ecx = MEM32(eax + 0x4); /* 0x30004BE5: mov ecx, dword ptr [eax + 4] */
   6003     edx = MEM32(ecx); /* 0x30004BE8: mov edx, dword ptr [ecx] */
   6004     esi = MEM32(edx + 0x8); /* 0x30004BEA: mov esi, dword ptr [edx + 8] */
   6005     MEM32(ecx) = esi; /* 0x30004BED: mov dword ptr [ecx], esi */
   6006     esi = MEM32(edx + 0x8); /* 0x30004BEF: mov esi, dword ptr [edx + 8] */
   6007     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004BF2: cmp esi, dword ptr [edi + 8] */
   6008     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6009     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6010     _flag_k = FK_CMP;
   6011     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004BFA; /* 0x30004BF5: je 0x30004bfa */
   6012 L_30004BF7:
   6013     MEM32(esi + 0x4) = ecx; /* 0x30004BF7: mov dword ptr [esi + 4], ecx */
   6014 L_30004BFA:
   6015     esi = MEM32(ecx + 0x4); /* 0x30004BFA: mov esi, dword ptr [ecx + 4] */
   6016     MEM32(edx + 0x4) = esi; /* 0x30004BFD: mov dword ptr [edx + 4], esi */
   6017     esi = MEM32(edi + 0x4); /* 0x30004C00: mov esi, dword ptr [edi + 4] */
   6018     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C03: cmp ecx, dword ptr [esi + 4] */
   6019     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6021     _flag_k = FK_CMP;
   6022     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C0D; /* 0x30004C06: jne 0x30004c0d */
   6023 L_30004C08:
   6024     MEM32(esi + 0x4) = edx; /* 0x30004C08: mov dword ptr [esi + 4], edx */
   6025     goto L_30004C1C; /* 0x30004C0B: jmp 0x30004c1c */
   6026 L_30004C0D:
   6027     esi = MEM32(ecx + 0x4); /* 0x30004C0D: mov esi, dword ptr [ecx + 4] */
   6028     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C10: cmp ecx, dword ptr [esi + 8] */
   6029     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6031     _flag_k = FK_CMP;
   6032     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C1A; /* 0x30004C13: jne 0x30004c1a */
   6033 L_30004C15:
   6034     MEM32(esi + 0x8) = edx; /* 0x30004C15: mov dword ptr [esi + 8], edx */
   6035     goto L_30004C1C; /* 0x30004C18: jmp 0x30004c1c */
   6036 L_30004C1A:
   6037     MEM32(esi) = edx; /* 0x30004C1A: mov dword ptr [esi], edx */
   6038 L_30004C1C:
   6039     MEM32(edx + 0x8) = ecx; /* 0x30004C1C: mov dword ptr [edx + 8], ecx */
   6040     MEM32(ecx + 0x4) = edx; /* 0x30004C1F: mov dword ptr [ecx + 4], edx */
   6041     edx = MEM32(eax + 0x4); /* 0x30004C22: mov edx, dword ptr [eax + 4] */
   6042     ecx = MEM32(edx); /* 0x30004C25: mov ecx, dword ptr [edx] */
   6043 L_30004C27:
   6044     edx = MEM32(ecx + 0x8); /* 0x30004C27: mov edx, dword ptr [ecx + 8] */
   6045     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C2A: cmp byte ptr [edx + 0x10], bl */
   6046     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6048     _flag_k = FK_NARROW(FK_CMP, 24);
   6049     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C2D: jne 0x30004d03 */
   6050 L_30004C33:
   6051     edx = MEM32(ecx); /* 0x30004C33: mov edx, dword ptr [ecx] */
   6052     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C35: cmp byte ptr [edx + 0x10], bl */
   6053     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6055     _flag_k = FK_NARROW(FK_CMP, 24);
   6056     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D03; /* 0x30004C38: jne 0x30004d03 */
   6057 L_30004C3E:
   6058     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C3E: mov byte ptr [ecx + 0x10], 0 */
   6059     ecx = MEM32(edi + 0x4); /* 0x30004C42: mov ecx, dword ptr [edi + 4] */
   6060     eax = MEM32(eax + 0x4); /* 0x30004C45: mov eax, dword ptr [eax + 4] */
   6061     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30004C48: cmp eax, dword ptr [ecx + 4] */
   6062     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6063     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6064     _flag_k = FK_CMP;
   6065     RECOMP_BACKEDGE();
   6066     if (CMP_NE(_flag_a, _flag_b)) goto L_30004B54; /* 0x30004C4B: jne 0x30004b54 */
   6067 L_30004C51:
   6068     goto L_30004DA2; /* 0x30004C51: jmp 0x30004da2 */
   6069 L_30004C56:
   6070     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   6071     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   6072     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6074     _flag_k = FK_NARROW(FK_CMP, 24);
   6075     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   6076 L_30004C5E:
   6077     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   6078     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   6079     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   6080     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   6081     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   6082     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   6083     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   6084     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   6085     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6087     _flag_k = FK_CMP;
   6088     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   6089 L_30004C76:
   6090     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   6091 L_30004C79:
   6092     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   6093     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   6094     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   6095     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   6096     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6098     _flag_k = FK_CMP;
   6099     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   6100 L_30004C87:
   6101     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   6102     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   6103 L_30004C8C:
   6104     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   6105     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   6106     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6108     _flag_k = FK_CMP;
   6109     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   6110 L_30004C94:
   6111     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   6112     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   6113 L_30004C99:
   6114     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   6115 L_30004C9B:
   6116     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   6117     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   6118     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   6119     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   6120 L_30004CA7:
   6121     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   6122     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   6123     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   6124     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   6125     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   6126     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   6127     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   6128     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   6129     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   6130     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   6131     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   6132     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   6133     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   6134     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6135     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6136     _flag_k = FK_CMP;
   6137     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   6138 L_30004CCE:
   6139     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   6140 L_30004CD1:
   6141     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   6142     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   6143     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   6144     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   6145     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6147     _flag_k = FK_CMP;
   6148     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   6149 L_30004CDF:
   6150     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   6151     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   6152     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   6153 L_30004CE9:
   6154     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   6155     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   6156     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6158     _flag_k = FK_CMP;
   6159     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   6160 L_30004CF0:
   6161     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   6162     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   6163     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   6164 L_30004CF9:
   6165     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   6166     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   6167     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   6168 L_30004D03:
   6169     edx = MEM32(ecx); /* 0x30004D03: mov edx, dword ptr [ecx] */
   6170     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004D05: cmp byte ptr [edx + 0x10], bl */
   6171     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6173     _flag_k = FK_NARROW(FK_CMP, 24);
   6174     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D51; /* 0x30004D08: jne 0x30004d51 */
   6175 L_30004D0A:
   6176     edx = MEM32(ecx + 0x8); /* 0x30004D0A: mov edx, dword ptr [ecx + 8] */
   6177     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D0D: mov byte ptr [edx + 0x10], bl */
   6178     edx = MEM32(ecx + 0x8); /* 0x30004D10: mov edx, dword ptr [ecx + 8] */
   6179     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004D13: mov byte ptr [ecx + 0x10], 0 */
   6180     esi = MEM32(edx); /* 0x30004D17: mov esi, dword ptr [edx] */
   6181     MEM32(ecx + 0x8) = esi; /* 0x30004D19: mov dword ptr [ecx + 8], esi */
   6182     esi = MEM32(edx); /* 0x30004D1C: mov esi, dword ptr [edx] */
   6183     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D1E: cmp esi, dword ptr [edi + 8] */
   6184     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6186     _flag_k = FK_CMP;
   6187     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D26; /* 0x30004D21: je 0x30004d26 */
   6188 L_30004D23:
   6189     MEM32(esi + 0x4) = ecx; /* 0x30004D23: mov dword ptr [esi + 4], ecx */
   6190 L_30004D26:
   6191     esi = MEM32(ecx + 0x4); /* 0x30004D26: mov esi, dword ptr [ecx + 4] */
   6192     MEM32(edx + 0x4) = esi; /* 0x30004D29: mov dword ptr [edx + 4], esi */
   6193     esi = MEM32(edi + 0x4); /* 0x30004D2C: mov esi, dword ptr [edi + 4] */
   6194     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D2F: cmp ecx, dword ptr [esi + 4] */
   6195     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6197     _flag_k = FK_CMP;
   6198     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D39; /* 0x30004D32: jne 0x30004d39 */
   6199 L_30004D34:
   6200     MEM32(esi + 0x4) = edx; /* 0x30004D34: mov dword ptr [esi + 4], edx */
   6201     goto L_30004D47; /* 0x30004D37: jmp 0x30004d47 */
   6202 L_30004D39:
   6203     esi = MEM32(ecx + 0x4); /* 0x30004D39: mov esi, dword ptr [ecx + 4] */
   6204     /* cmp ecx, MEM32(esi) */ /* 0x30004D3C: cmp ecx, dword ptr [esi] */
   6205     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6207     _flag_k = FK_CMP;
   6208     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D44; /* 0x30004D3E: jne 0x30004d44 */
   6209 L_30004D40:
   6210     MEM32(esi) = edx; /* 0x30004D40: mov dword ptr [esi], edx */
   6211     goto L_30004D47; /* 0x30004D42: jmp 0x30004d47 */
   6212 L_30004D44:
   6213     MEM32(esi + 0x8) = edx; /* 0x30004D44: mov dword ptr [esi + 8], edx */
   6214 L_30004D47:
   6215     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   6216     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   6217     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   6218     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   6219 L_30004D51:
   6220     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   6221     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   6222     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   6223     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   6224     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   6225     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   6226     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   6227     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   6228     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   6229     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   6230     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   6231     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   6232     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   6233     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6235     _flag_k = FK_CMP;
   6236     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   6237 L_30004D77:
   6238     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   6239 L_30004D7A:
   6240     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   6241     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   6242     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   6243     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   6244     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6246     _flag_k = FK_CMP;
   6247     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   6248 L_30004D88:
   6249     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   6250     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   6251 L_30004D8D:
   6252     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   6253     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   6254     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6256     _flag_k = FK_CMP;
   6257     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   6258 L_30004D95:
   6259     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   6260     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   6261 L_30004D9A:
   6262     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   6263 L_30004D9C:
   6264     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   6265 L_30004D9F:
   6266     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   6267 L_30004DA2:
   6268     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   6269     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   6270     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   6271     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   6272     RECOMP_FLAGS_IN();
   6273     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   6274     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   6275     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6276     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6277     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   6278     _flag_k = FK_ADD;
   6279     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6280     eax = eax - 1; /* 0x30004DB7: dec eax */
   6281     _flag_k = FK_DEC;
   6282     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   6283     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   6284     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   6285     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   6286     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   6287     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   6288     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   6289     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   6290     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   6291     RECOMP_REGS_OUT();
   6292 }
   6293 
   6294 void sub_30004C56(void) {
   6295     int _fpu_cmp = 0;
   6296     uint32_t _cf = 0;
   6297     int _df = 1;
   6298     uint32_t _flag_k = FK_NONE;
   6299     uint32_t _flag_a = 0, _flag_b = 0;
   6300     uint32_t _itail_tgt = 0;
   6301     RECOMP_REGS_LOCALS
   6302     RECOMP_ENTER(0x30004C56u);
   6303 
   6304 L_30004C56:
   6305     edx = MEM32(ecx + 0x8); /* 0x30004C56: mov edx, dword ptr [ecx + 8] */
   6306     /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x30004C59: cmp byte ptr [edx + 0x10], bl */
   6307     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6309     _flag_k = FK_NARROW(FK_CMP, 24);
   6310     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CA7; /* 0x30004C5C: jne 0x30004ca7 */
   6311 L_30004C5E:
   6312     edx = MEM32(ecx); /* 0x30004C5E: mov edx, dword ptr [ecx] */
   6313     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004C60: mov byte ptr [edx + 0x10], bl */
   6314     edx = MEM32(ecx); /* 0x30004C63: mov edx, dword ptr [ecx] */
   6315     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004C65: mov byte ptr [ecx + 0x10], 0 */
   6316     esi = MEM32(edx + 0x8); /* 0x30004C69: mov esi, dword ptr [edx + 8] */
   6317     MEM32(ecx) = esi; /* 0x30004C6C: mov dword ptr [ecx], esi */
   6318     esi = MEM32(edx + 0x8); /* 0x30004C6E: mov esi, dword ptr [edx + 8] */
   6319     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004C71: cmp esi, dword ptr [edi + 8] */
   6320     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6322     _flag_k = FK_CMP;
   6323     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004C79; /* 0x30004C74: je 0x30004c79 */
   6324 L_30004C76:
   6325     MEM32(esi + 0x4) = ecx; /* 0x30004C76: mov dword ptr [esi + 4], ecx */
   6326 L_30004C79:
   6327     esi = MEM32(ecx + 0x4); /* 0x30004C79: mov esi, dword ptr [ecx + 4] */
   6328     MEM32(edx + 0x4) = esi; /* 0x30004C7C: mov dword ptr [edx + 4], esi */
   6329     esi = MEM32(edi + 0x4); /* 0x30004C7F: mov esi, dword ptr [edi + 4] */
   6330     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004C82: cmp ecx, dword ptr [esi + 4] */
   6331     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6332     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6333     _flag_k = FK_CMP;
   6334     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C8C; /* 0x30004C85: jne 0x30004c8c */
   6335 L_30004C87:
   6336     MEM32(esi + 0x4) = edx; /* 0x30004C87: mov dword ptr [esi + 4], edx */
   6337     goto L_30004C9B; /* 0x30004C8A: jmp 0x30004c9b */
   6338 L_30004C8C:
   6339     esi = MEM32(ecx + 0x4); /* 0x30004C8C: mov esi, dword ptr [ecx + 4] */
   6340     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004C8F: cmp ecx, dword ptr [esi + 8] */
   6341     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6343     _flag_k = FK_CMP;
   6344     if (CMP_NE(_flag_a, _flag_b)) goto L_30004C99; /* 0x30004C92: jne 0x30004c99 */
   6345 L_30004C94:
   6346     MEM32(esi + 0x8) = edx; /* 0x30004C94: mov dword ptr [esi + 8], edx */
   6347     goto L_30004C9B; /* 0x30004C97: jmp 0x30004c9b */
   6348 L_30004C99:
   6349     MEM32(esi) = edx; /* 0x30004C99: mov dword ptr [esi], edx */
   6350 L_30004C9B:
   6351     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   6352     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   6353     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   6354     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   6355 L_30004CA7:
   6356     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   6357     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   6358     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   6359     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   6360     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   6361     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   6362     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   6363     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   6364     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   6365     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   6366     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   6367     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   6368     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   6369     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6370     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6371     _flag_k = FK_CMP;
   6372     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   6373 L_30004CCE:
   6374     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   6375 L_30004CD1:
   6376     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   6377     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   6378     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   6379     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   6380     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6381     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6382     _flag_k = FK_CMP;
   6383     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   6384 L_30004CDF:
   6385     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   6386     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   6387     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   6388 L_30004CE9:
   6389     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   6390     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   6391     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6393     _flag_k = FK_CMP;
   6394     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   6395 L_30004CF0:
   6396     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   6397     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   6398     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   6399 L_30004CF9:
   6400     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   6401     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   6402     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   6403 L_30004D9F:
   6404     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   6405     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   6406     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   6407     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   6408     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   6409     RECOMP_FLAGS_IN();
   6410     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   6411     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   6412     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6413     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6414     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   6415     _flag_k = FK_ADD;
   6416     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6417     eax = eax - 1; /* 0x30004DB7: dec eax */
   6418     _flag_k = FK_DEC;
   6419     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   6420     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   6421     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   6422     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   6423     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   6424     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   6425     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   6426     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   6427     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   6428     RECOMP_REGS_OUT();
   6429 }
   6430 
   6431 void sub_30004C9B(void) {
   6432     int _fpu_cmp = 0;
   6433     uint32_t _cf = 0;
   6434     int _df = 1;
   6435     uint32_t _flag_k = FK_NONE;
   6436     uint32_t _flag_a = 0, _flag_b = 0;
   6437     uint32_t _itail_tgt = 0;
   6438     RECOMP_REGS_LOCALS
   6439     RECOMP_ENTER(0x30004C9Bu);
   6440 
   6441 L_30004C9B:
   6442     MEM32(edx + 0x8) = ecx; /* 0x30004C9B: mov dword ptr [edx + 8], ecx */
   6443     MEM32(ecx + 0x4) = edx; /* 0x30004C9E: mov dword ptr [ecx + 4], edx */
   6444     ecx = MEM32(eax + 0x4); /* 0x30004CA1: mov ecx, dword ptr [eax + 4] */
   6445     ecx = MEM32(ecx + 0x8); /* 0x30004CA4: mov ecx, dword ptr [ecx + 8] */
   6446     edx = MEM32(eax + 0x4); /* 0x30004CA7: mov edx, dword ptr [eax + 4] */
   6447     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004CAA: mov dl, byte ptr [edx + 0x10] */
   6448     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004CAD: mov byte ptr [ecx + 0x10], dl */
   6449     edx = MEM32(eax + 0x4); /* 0x30004CB0: mov edx, dword ptr [eax + 4] */
   6450     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB3: mov byte ptr [edx + 0x10], bl */
   6451     ecx = MEM32(ecx + 0x8); /* 0x30004CB6: mov ecx, dword ptr [ecx + 8] */
   6452     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004CB9: mov byte ptr [ecx + 0x10], bl */
   6453     ecx = MEM32(eax + 0x4); /* 0x30004CBC: mov ecx, dword ptr [eax + 4] */
   6454     edx = MEM32(ecx + 0x8); /* 0x30004CBF: mov edx, dword ptr [ecx + 8] */
   6455     esi = MEM32(edx); /* 0x30004CC2: mov esi, dword ptr [edx] */
   6456     MEM32(ecx + 0x8) = esi; /* 0x30004CC4: mov dword ptr [ecx + 8], esi */
   6457     esi = MEM32(edx); /* 0x30004CC7: mov esi, dword ptr [edx] */
   6458     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004CC9: cmp esi, dword ptr [edi + 8] */
   6459     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6461     _flag_k = FK_CMP;
   6462     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004CD1; /* 0x30004CCC: je 0x30004cd1 */
   6463 L_30004CCE:
   6464     MEM32(esi + 0x4) = ecx; /* 0x30004CCE: mov dword ptr [esi + 4], ecx */
   6465 L_30004CD1:
   6466     esi = MEM32(ecx + 0x4); /* 0x30004CD1: mov esi, dword ptr [ecx + 4] */
   6467     MEM32(edx + 0x4) = esi; /* 0x30004CD4: mov dword ptr [edx + 4], esi */
   6468     esi = MEM32(edi + 0x4); /* 0x30004CD7: mov esi, dword ptr [edi + 4] */
   6469     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004CDA: cmp ecx, dword ptr [esi + 4] */
   6470     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6471     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6472     _flag_k = FK_CMP;
   6473     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CE9; /* 0x30004CDD: jne 0x30004ce9 */
   6474 L_30004CDF:
   6475     MEM32(esi + 0x4) = edx; /* 0x30004CDF: mov dword ptr [esi + 4], edx */
   6476     MEM32(edx) = ecx; /* 0x30004CE2: mov dword ptr [edx], ecx */
   6477     goto L_30004D9F; /* 0x30004CE4: jmp 0x30004d9f */
   6478 L_30004CE9:
   6479     esi = MEM32(ecx + 0x4); /* 0x30004CE9: mov esi, dword ptr [ecx + 4] */
   6480     /* cmp ecx, MEM32(esi) */ /* 0x30004CEC: cmp ecx, dword ptr [esi] */
   6481     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6483     _flag_k = FK_CMP;
   6484     if (CMP_NE(_flag_a, _flag_b)) goto L_30004CF9; /* 0x30004CEE: jne 0x30004cf9 */
   6485 L_30004CF0:
   6486     MEM32(esi) = edx; /* 0x30004CF0: mov dword ptr [esi], edx */
   6487     MEM32(edx) = ecx; /* 0x30004CF2: mov dword ptr [edx], ecx */
   6488     goto L_30004D9F; /* 0x30004CF4: jmp 0x30004d9f */
   6489 L_30004CF9:
   6490     MEM32(esi + 0x8) = edx; /* 0x30004CF9: mov dword ptr [esi + 8], edx */
   6491     MEM32(edx) = ecx; /* 0x30004CFC: mov dword ptr [edx], ecx */
   6492     goto L_30004D9F; /* 0x30004CFE: jmp 0x30004d9f */
   6493 L_30004D9F:
   6494     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   6495     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   6496     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   6497     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   6498     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   6499     RECOMP_FLAGS_IN();
   6500     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   6501     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   6502     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6503     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6504     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   6505     _flag_k = FK_ADD;
   6506     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6507     eax = eax - 1; /* 0x30004DB7: dec eax */
   6508     _flag_k = FK_DEC;
   6509     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   6510     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   6511     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   6512     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   6513     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   6514     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   6515     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   6516     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   6517     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   6518     RECOMP_REGS_OUT();
   6519 }
   6520 
   6521 void sub_30004D47(void) {
   6522     int _fpu_cmp = 0;
   6523     uint32_t _cf = 0;
   6524     int _df = 1;
   6525     uint32_t _flag_k = FK_NONE;
   6526     uint32_t _flag_a = 0, _flag_b = 0;
   6527     uint32_t _itail_tgt = 0;
   6528     RECOMP_REGS_LOCALS
   6529     RECOMP_ENTER(0x30004D47u);
   6530 
   6531 L_30004D47:
   6532     MEM32(edx) = ecx; /* 0x30004D47: mov dword ptr [edx], ecx */
   6533     MEM32(ecx + 0x4) = edx; /* 0x30004D49: mov dword ptr [ecx + 4], edx */
   6534     ecx = MEM32(eax + 0x4); /* 0x30004D4C: mov ecx, dword ptr [eax + 4] */
   6535     ecx = MEM32(ecx); /* 0x30004D4F: mov ecx, dword ptr [ecx] */
   6536     edx = MEM32(eax + 0x4); /* 0x30004D51: mov edx, dword ptr [eax + 4] */
   6537     SET_LO8(edx, MEM8(edx + 0x10)); /* 0x30004D54: mov dl, byte ptr [edx + 0x10] */
   6538     MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x30004D57: mov byte ptr [ecx + 0x10], dl */
   6539     edx = MEM32(eax + 0x4); /* 0x30004D5A: mov edx, dword ptr [eax + 4] */
   6540     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D5D: mov byte ptr [edx + 0x10], bl */
   6541     ecx = MEM32(ecx); /* 0x30004D60: mov ecx, dword ptr [ecx] */
   6542     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004D62: mov byte ptr [ecx + 0x10], bl */
   6543     ecx = MEM32(eax + 0x4); /* 0x30004D65: mov ecx, dword ptr [eax + 4] */
   6544     edx = MEM32(ecx); /* 0x30004D68: mov edx, dword ptr [ecx] */
   6545     esi = MEM32(edx + 0x8); /* 0x30004D6A: mov esi, dword ptr [edx + 8] */
   6546     MEM32(ecx) = esi; /* 0x30004D6D: mov dword ptr [ecx], esi */
   6547     esi = MEM32(edx + 0x8); /* 0x30004D6F: mov esi, dword ptr [edx + 8] */
   6548     /* cmp esi, MEM32(edi + 0x8) */ /* 0x30004D72: cmp esi, dword ptr [edi + 8] */
   6549     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6551     _flag_k = FK_CMP;
   6552     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004D7A; /* 0x30004D75: je 0x30004d7a */
   6553 L_30004D77:
   6554     MEM32(esi + 0x4) = ecx; /* 0x30004D77: mov dword ptr [esi + 4], ecx */
   6555 L_30004D7A:
   6556     esi = MEM32(ecx + 0x4); /* 0x30004D7A: mov esi, dword ptr [ecx + 4] */
   6557     MEM32(edx + 0x4) = esi; /* 0x30004D7D: mov dword ptr [edx + 4], esi */
   6558     esi = MEM32(edi + 0x4); /* 0x30004D80: mov esi, dword ptr [edi + 4] */
   6559     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30004D83: cmp ecx, dword ptr [esi + 4] */
   6560     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6561     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6562     _flag_k = FK_CMP;
   6563     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D8D; /* 0x30004D86: jne 0x30004d8d */
   6564 L_30004D88:
   6565     MEM32(esi + 0x4) = edx; /* 0x30004D88: mov dword ptr [esi + 4], edx */
   6566     goto L_30004D9C; /* 0x30004D8B: jmp 0x30004d9c */
   6567 L_30004D8D:
   6568     esi = MEM32(ecx + 0x4); /* 0x30004D8D: mov esi, dword ptr [ecx + 4] */
   6569     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30004D90: cmp ecx, dword ptr [esi + 8] */
   6570     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6571     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6572     _flag_k = FK_CMP;
   6573     if (CMP_NE(_flag_a, _flag_b)) goto L_30004D9A; /* 0x30004D93: jne 0x30004d9a */
   6574 L_30004D95:
   6575     MEM32(esi + 0x8) = edx; /* 0x30004D95: mov dword ptr [esi + 8], edx */
   6576     goto L_30004D9C; /* 0x30004D98: jmp 0x30004d9c */
   6577 L_30004D9A:
   6578     MEM32(esi) = edx; /* 0x30004D9A: mov dword ptr [esi], edx */
   6579 L_30004D9C:
   6580     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   6581     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   6582     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   6583     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   6584     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   6585     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   6586     RECOMP_FLAGS_IN();
   6587     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   6588     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   6589     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6590     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6591     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   6592     _flag_k = FK_ADD;
   6593     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6594     eax = eax - 1; /* 0x30004DB7: dec eax */
   6595     _flag_k = FK_DEC;
   6596     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   6597     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   6598     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   6599     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   6600     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   6601     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   6602     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   6603     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   6604     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   6605     RECOMP_REGS_OUT();
   6606 }
   6607 
   6608 void sub_30004D9C(void) {
   6609     int _fpu_cmp = 0;
   6610     uint32_t _cf = 0;
   6611     int _df = 1;
   6612     uint32_t _flag_k = FK_NONE;
   6613     uint32_t _flag_a = 0, _flag_b = 0;
   6614     uint32_t _itail_tgt = 0;
   6615     RECOMP_REGS_LOCALS
   6616     RECOMP_ENTER(0x30004D9Cu);
   6617 
   6618 L_30004D9C:
   6619     MEM32(edx + 0x8) = ecx; /* 0x30004D9C: mov dword ptr [edx + 8], ecx */
   6620     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   6621     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   6622     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   6623     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   6624     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   6625     RECOMP_FLAGS_IN();
   6626     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   6627     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   6628     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6629     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6630     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   6631     _flag_k = FK_ADD;
   6632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6633     eax = eax - 1; /* 0x30004DB7: dec eax */
   6634     _flag_k = FK_DEC;
   6635     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   6636     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   6637     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   6638     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   6639     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   6640     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   6641     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   6642     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   6643     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   6644     RECOMP_REGS_OUT();
   6645 }
   6646 
   6647 void sub_30004D9F(void) {
   6648     int _fpu_cmp = 0;
   6649     uint32_t _cf = 0;
   6650     int _df = 1;
   6651     uint32_t _flag_k = FK_NONE;
   6652     uint32_t _flag_a = 0, _flag_b = 0;
   6653     uint32_t _itail_tgt = 0;
   6654     RECOMP_REGS_LOCALS
   6655     RECOMP_ENTER(0x30004D9Fu);
   6656 
   6657 L_30004D9F:
   6658     MEM32(ecx + 0x4) = edx; /* 0x30004D9F: mov dword ptr [ecx + 4], edx */
   6659     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   6660     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   6661     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   6662     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   6663     RECOMP_FLAGS_IN();
   6664     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   6665     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   6666     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6667     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6668     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   6669     _flag_k = FK_ADD;
   6670     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6671     eax = eax - 1; /* 0x30004DB7: dec eax */
   6672     _flag_k = FK_DEC;
   6673     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   6674     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   6675     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   6676     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   6677     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   6678     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   6679     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   6680     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   6681     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   6682     RECOMP_REGS_OUT();
   6683 }
   6684 
   6685 void sub_30004DA2(void) {
   6686     int _fpu_cmp = 0;
   6687     uint32_t _cf = 0;
   6688     int _df = 1;
   6689     uint32_t _flag_k = FK_NONE;
   6690     uint32_t _flag_a = 0, _flag_b = 0;
   6691     uint32_t _itail_tgt = 0;
   6692     RECOMP_REGS_LOCALS
   6693     RECOMP_ENTER(0x30004DA2u);
   6694 
   6695 L_30004DA2:
   6696     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004DA2: mov byte ptr [eax + 0x10], bl */
   6697     edx = MEM32(ebp + (-0x4)); /* 0x30004DA5: mov edx, dword ptr [ebp - 4] */
   6698     PUSH32(esp, edx); /* 0x30004DA8: push edx */
   6699     RECOMP_ICALL(0x30018080u); /* 0x30004DA9: call 0x30018080 */ /* not lifted */
   6700     RECOMP_FLAGS_IN();
   6701     eax = MEM32(edi + 0x10); /* 0x30004DAE: mov eax, dword ptr [edi + 0x10] */
   6702     ecx = MEM32(ebp + 0xC); /* 0x30004DB1: mov ecx, dword ptr [ebp + 0xc] */
   6703     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6704     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6705     esp = esp + 4; /* 0x30004DB4: add esp, 4 */
   6706     _flag_k = FK_ADD;
   6707     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6708     eax = eax - 1; /* 0x30004DB7: dec eax */
   6709     _flag_k = FK_DEC;
   6710     MEM32(edi + 0x10) = eax; /* 0x30004DB8: mov dword ptr [edi + 0x10], eax */
   6711     eax = MEM32(ebp + 0x8); /* 0x30004DBB: mov eax, dword ptr [ebp + 8] */
   6712     edi = POP32_VAL(esp); /* 0x30004DBE: pop edi */
   6713     esi = POP32_VAL(esp); /* 0x30004DBF: pop esi */
   6714     MEM32(eax) = ecx; /* 0x30004DC0: mov dword ptr [eax], ecx */
   6715     ebx = POP32_VAL(esp); /* 0x30004DC2: pop ebx */
   6716     esp = ebp; /* 0x30004DC3: mov esp, ebp */
   6717     ebp = POP32_VAL(esp); /* 0x30004DC5: pop ebp */
   6718     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30004DC6: ret 8 */
   6719     RECOMP_REGS_OUT();
   6720 }
   6721 
   6722 void sub_30004DD0(void) {
   6723     int _fpu_cmp = 0;
   6724     uint32_t _cf = 0;
   6725     int _df = 1;
   6726     uint32_t _flag_k = FK_NONE;
   6727     uint32_t _flag_a = 0, _flag_b = 0;
   6728     uint32_t _itail_tgt = 0;
   6729     RECOMP_REGS_LOCALS
   6730     RECOMP_ENTER(0x30004DD0u);
   6731 
   6732 L_30004DD0:
   6733     PUSH32(esp, ebp); /* 0x30004DD0: push ebp */
   6734     ebp = esp; /* 0x30004DD1: mov ebp, esp */
   6735     PUSH32(esp, ebx); /* 0x30004DD3: push ebx */
   6736     PUSH32(esp, esi); /* 0x30004DD4: push esi */
   6737     ebx = ecx; /* 0x30004DD5: mov ebx, ecx */
   6738     eax = MEM32(ebx + 0x8); /* 0x30004DD7: mov eax, dword ptr [ebx + 8] */
   6739     PUSH32(esp, edi); /* 0x30004DDA: push edi */
   6740     edi = MEM32(ebp + 0x8); /* 0x30004DDB: mov edi, dword ptr [ebp + 8] */
   6741     /* cmp edi, eax */ /* 0x30004DDE: cmp edi, eax */
   6742     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6744     _flag_k = FK_CMP;
   6745     esi = edi; /* 0x30004DE0: mov esi, edi */
   6746     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004E03; /* 0x30004DE2: je 0x30004e03 */
   6747 L_30004DE4:
   6748     eax = MEM32(esi + 0x8); /* 0x30004DE4: mov eax, dword ptr [esi + 8] */
   6749     PUSH32(esp, eax); /* 0x30004DE7: push eax */
   6750     ecx = ebx; /* 0x30004DE8: mov ecx, ebx */
   6751     RECOMP_ICALL(0x30004DD0u); /* 0x30004DEA: call 0x30004dd0 */ /* not lifted */
   6752     RECOMP_FLAGS_IN();
   6753     esi = MEM32(esi); /* 0x30004DEF: mov esi, dword ptr [esi] */
   6754     PUSH32(esp, edi); /* 0x30004DF1: push edi */
   6755     RECOMP_ICALL(0x30018080u); /* 0x30004DF2: call 0x30018080 */ /* not lifted */
   6756     RECOMP_FLAGS_IN();
   6757     eax = MEM32(ebx + 0x8); /* 0x30004DF7: mov eax, dword ptr [ebx + 8] */
   6758     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6759     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6760     esp = esp + 4; /* 0x30004DFA: add esp, 4 */
   6761     _flag_k = FK_ADD;
   6762     /* cmp esi, eax */ /* 0x30004DFD: cmp esi, eax */
   6763     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6765     _flag_k = FK_CMP;
   6766     edi = esi; /* 0x30004DFF: mov edi, esi */
   6767     RECOMP_BACKEDGE();
   6768     if (CMP_NE(_flag_a, _flag_b)) goto L_30004DE4; /* 0x30004E01: jne 0x30004de4 */
   6769 L_30004E03:
   6770     edi = POP32_VAL(esp); /* 0x30004E03: pop edi */
   6771     esi = POP32_VAL(esp); /* 0x30004E04: pop esi */
   6772     ebx = POP32_VAL(esp); /* 0x30004E05: pop ebx */
   6773     ebp = POP32_VAL(esp); /* 0x30004E06: pop ebp */
   6774     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30004E07: ret 4 */
   6775     RECOMP_REGS_OUT();
   6776 }
   6777 
   6778 void sub_30004E10(void) {
   6779     int _fpu_cmp = 0;
   6780     uint32_t _cf = 0;
   6781     int _df = 1;
   6782     uint32_t _flag_k = FK_NONE;
   6783     uint32_t _flag_a = 0, _flag_b = 0;
   6784     uint32_t _itail_tgt = 0;
   6785     RECOMP_REGS_LOCALS
   6786     RECOMP_ENTER(0x30004E10u);
   6787 
   6788 L_30004E10:
   6789     PUSH32(esp, ebp); /* 0x30004E10: push ebp */
   6790     ebp = esp; /* 0x30004E11: mov ebp, esp */
   6791     PUSH32(esp, ecx); /* 0x30004E13: push ecx */
   6792     PUSH32(esp, ebx); /* 0x30004E14: push ebx */
   6793     PUSH32(esp, esi); /* 0x30004E15: push esi */
   6794     PUSH32(esp, edi); /* 0x30004E16: push edi */
   6795     PUSH32(esp, 0x14u); /* 0x30004E17: push 0x14 */
   6796     esi = ecx; /* 0x30004E19: mov esi, ecx */
   6797     RECOMP_ICALL(0x300180A8u); /* 0x30004E1B: call 0x300180a8 */ /* not lifted */
   6798     RECOMP_FLAGS_IN();
   6799     edi = MEM32(ebp + 0x10); /* 0x30004E20: mov edi, dword ptr [ebp + 0x10] */
   6800     ebx = MEM32(ebp + 0x14); /* 0x30004E23: mov ebx, dword ptr [ebp + 0x14] */
   6801     MEM32(eax + 0x4) = edi; /* 0x30004E26: mov dword ptr [eax + 4], edi */
   6802     MEM8(eax + 0x10) = (uint8_t)(0); /* 0x30004E29: mov byte ptr [eax + 0x10], 0 */
   6803     MEM8(eax + 0x11) = (uint8_t)(0); /* 0x30004E2D: mov byte ptr [eax + 0x11], 0 */
   6804     ecx = MEM32(esi + 0x8); /* 0x30004E31: mov ecx, dword ptr [esi + 8] */
   6805     MEM32(eax) = ecx; /* 0x30004E34: mov dword ptr [eax], ecx */
   6806     edx = MEM32(esi + 0x8); /* 0x30004E36: mov edx, dword ptr [esi + 8] */
   6807     MEM32(ebp + (-0x4)) = eax; /* 0x30004E39: mov dword ptr [ebp - 4], eax */
   6808     MEM32(eax + 0x8) = edx; /* 0x30004E3C: mov dword ptr [eax + 8], edx */
   6809     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6810     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6811     eax = eax + 0xCu; /* 0x30004E3F: add eax, 0xc */
   6812     _flag_k = FK_ADD;
   6813     PUSH32(esp, ebx); /* 0x30004E42: push ebx */
   6814     PUSH32(esp, eax); /* 0x30004E43: push eax */
   6815     RECOMP_ICALL(0x300053D0u); /* 0x30004E44: call 0x300053d0 */ /* not lifted */
   6816     RECOMP_FLAGS_IN();
   6817     ecx = MEM32(esi + 0x10); /* 0x30004E49: mov ecx, dword ptr [esi + 0x10] */
   6818     eax = MEM32(esi + 0x4); /* 0x30004E4C: mov eax, dword ptr [esi + 4] */
   6819     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6820     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6821     esp = esp + 0xCu; /* 0x30004E4F: add esp, 0xc */
   6822     _flag_k = FK_ADD;
   6823     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6824     ecx = ecx + 1; /* 0x30004E52: inc ecx */
   6825     _flag_k = FK_INC;
   6826     /* cmp edi, eax */ /* 0x30004E53: cmp edi, eax */
   6827     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6829     _flag_k = FK_CMP;
   6830     MEM32(esi + 0x10) = ecx; /* 0x30004E55: mov dword ptr [esi + 0x10], ecx */
   6831     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004E7C; /* 0x30004E58: je 0x30004e7c */
   6832 L_30004E5A:
   6833     eax = MEM32(ebp + 0xC); /* 0x30004E5A: mov eax, dword ptr [ebp + 0xc] */
   6834     /* cmp eax, MEM32(esi + 0x8) */ /* 0x30004E5D: cmp eax, dword ptr [esi + 8] */
   6835     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6836     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6837     _flag_k = FK_CMP;
   6838     if (CMP_NE(_flag_a, _flag_b)) goto L_30004E7C; /* 0x30004E60: jne 0x30004e7c */
   6839 L_30004E62:
   6840     ecx = MEM32(ebx); /* 0x30004E62: mov ecx, dword ptr [ebx] */
   6841     /* cmp ecx, MEM32(edi + 0xC) */ /* 0x30004E64: cmp ecx, dword ptr [edi + 0xc] */
   6842     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC));
   6843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6844     _flag_k = FK_CMP;
   6845     if (CMP_L(_flag_a, _flag_b)) goto L_30004E7C; /* 0x30004E67: jl 0x30004e7c */
   6846 L_30004E69:
   6847     ecx = MEM32(ebp + (-0x4)); /* 0x30004E69: mov ecx, dword ptr [ebp - 4] */
   6848     MEM32(edi + 0x8) = ecx; /* 0x30004E6C: mov dword ptr [edi + 8], ecx */
   6849     eax = MEM32(esi + 0x4); /* 0x30004E6F: mov eax, dword ptr [esi + 4] */
   6850     /* cmp edi, MEM32(eax + 0x8) */ /* 0x30004E72: cmp edi, dword ptr [eax + 8] */
   6851     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6853     _flag_k = FK_CMP;
   6854     if (CMP_NE(_flag_a, _flag_b)) goto L_30004E9C; /* 0x30004E75: jne 0x30004e9c */
   6855 L_30004E77:
   6856     MEM32(eax + 0x8) = ecx; /* 0x30004E77: mov dword ptr [eax + 8], ecx */
   6857     goto L_30004E9C; /* 0x30004E7A: jmp 0x30004e9c */
   6858 L_30004E7C:
   6859     ecx = MEM32(ebp + (-0x4)); /* 0x30004E7C: mov ecx, dword ptr [ebp - 4] */
   6860     MEM32(edi) = ecx; /* 0x30004E7F: mov dword ptr [edi], ecx */
   6861     eax = MEM32(esi + 0x4); /* 0x30004E81: mov eax, dword ptr [esi + 4] */
   6862     /* cmp edi, eax */ /* 0x30004E84: cmp edi, eax */
   6863     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6865     _flag_k = FK_CMP;
   6866     if (CMP_NE(_flag_a, _flag_b)) goto L_30004E93; /* 0x30004E86: jne 0x30004e93 */
   6867 L_30004E88:
   6868     MEM32(eax + 0x4) = ecx; /* 0x30004E88: mov dword ptr [eax + 4], ecx */
   6869     edx = MEM32(esi + 0x4); /* 0x30004E8B: mov edx, dword ptr [esi + 4] */
   6870     MEM32(edx + 0x8) = ecx; /* 0x30004E8E: mov dword ptr [edx + 8], ecx */
   6871     goto L_30004E9C; /* 0x30004E91: jmp 0x30004e9c */
   6872 L_30004E93:
   6873     /* cmp edi, MEM32(eax) */ /* 0x30004E93: cmp edi, dword ptr [eax] */
   6874     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   6875     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6876     _flag_k = FK_CMP;
   6877     if (CMP_NE(_flag_a, _flag_b)) goto L_30004E9C; /* 0x30004E95: jne 0x30004e9c */
   6878 L_30004E97:
   6879     ecx = MEM32(ebp + (-0x4)); /* 0x30004E97: mov ecx, dword ptr [ebp - 4] */
   6880     MEM32(eax) = ecx; /* 0x30004E9A: mov dword ptr [eax], ecx */
   6881 L_30004E9C:
   6882     edx = MEM32(esi + 0x4); /* 0x30004E9C: mov edx, dword ptr [esi + 4] */
   6883     eax = MEM32(ebp + (-0x4)); /* 0x30004E9F: mov eax, dword ptr [ebp - 4] */
   6884     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004EA2: cmp eax, dword ptr [edx + 4] */
   6885     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6887     _flag_k = FK_CMP;
   6888     SET_LO8(ebx, 1); /* 0x30004EA5: mov bl, 1 */
   6889     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EA7: je 0x3000502d */
   6890 L_30004EAD:
   6891     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   6892     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   6893     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   6894     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6895     _cf = 0;
   6896     _flag_k = FK_NARROW(FK_TEST, 24);
   6897     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   6898 L_30004EBB:
   6899     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   6900     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   6901     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   6902     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6904     _flag_k = FK_CMP;
   6905     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   6906 L_30004EC8:
   6907     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   6908     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   6909     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   6910     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6911     _flag_k = FK_NARROW(FK_CMP, 24);
   6912     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   6913 L_30004ED1:
   6914     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   6915     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   6916     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   6917     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   6918     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   6919     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   6920     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   6921     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   6922 L_30004EEC:
   6923     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   6924     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6926     _flag_k = FK_CMP;
   6927     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   6928 L_30004EF1:
   6929     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   6930     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   6931     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   6932     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   6933     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   6934     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   6935     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6937     _flag_k = FK_CMP;
   6938     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   6939 L_30004F02:
   6940     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   6941 L_30004F05:
   6942     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   6943     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   6944     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   6945     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   6946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6948     _flag_k = FK_CMP;
   6949     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   6950 L_30004F13:
   6951     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   6952     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   6953 L_30004F18:
   6954     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   6955     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   6956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   6957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6958     _flag_k = FK_CMP;
   6959     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   6960 L_30004F1F:
   6961     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   6962     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   6963 L_30004F23:
   6964     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   6965 L_30004F26:
   6966     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   6967     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   6968 L_30004F2B:
   6969     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   6970     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   6971     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   6972     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   6973     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   6974     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   6975     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   6976     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   6977     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   6978     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   6979     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   6980     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   6981     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6983     _flag_k = FK_CMP;
   6984     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F53; /* 0x30004F4E: je 0x30004f53 */
   6985 L_30004F50:
   6986     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   6987 L_30004F53:
   6988     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   6989     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   6990     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   6991     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   6992     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6994     _flag_k = FK_CMP;
   6995     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   6996 L_30004F61:
   6997     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   6998     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   6999     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   7000 L_30004F6C:
   7001     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   7002     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   7003     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7005     _flag_k = FK_CMP;
   7006     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   7007 L_30004F74:
   7008     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   7009     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   7010     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   7011 L_30004F7F:
   7012     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   7013     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   7014     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   7015 L_30004F89:
   7016     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   7017     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   7018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7019     _flag_k = FK_NARROW(FK_CMP, 24);
   7020     RECOMP_BACKEDGE();
   7021     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   7022 L_30004F93:
   7023     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   7024     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   7025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7026     _flag_k = FK_CMP;
   7027     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   7028 L_30004F97:
   7029     eax = ecx; /* 0x30004F97: mov eax, ecx */
   7030     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   7031     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   7032     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   7033     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   7034     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   7035     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7037     _flag_k = FK_CMP;
   7038     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   7039 L_30004FA8:
   7040     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   7041 L_30004FAB:
   7042     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   7043     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   7044     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   7045     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   7046     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7048     _flag_k = FK_CMP;
   7049     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   7050 L_30004FB9:
   7051     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   7052     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   7053 L_30004FBE:
   7054     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   7055     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   7056     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   7057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7058     _flag_k = FK_CMP;
   7059     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   7060 L_30004FC6:
   7061     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   7062     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   7063 L_30004FCB:
   7064     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   7065 L_30004FCD:
   7066     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   7067     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   7068 L_30004FD3:
   7069     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   7070     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   7071     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   7072     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   7073     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   7074     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   7075     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   7076     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   7077     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   7078     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   7079     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   7080     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   7081     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7083     _flag_k = FK_CMP;
   7084     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   7085 L_30004FF8:
   7086     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   7087 L_30004FFB:
   7088     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   7089     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   7090     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   7091     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   7092     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7094     _flag_k = FK_CMP;
   7095     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   7096 L_30005009:
   7097     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   7098     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   7099 L_3000500E:
   7100     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   7101     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   7102     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   7103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7104     _flag_k = FK_CMP;
   7105     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   7106 L_30005015:
   7107     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   7108     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   7109 L_30005019:
   7110     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   7111 L_3000501C:
   7112     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   7113 L_3000501E:
   7114     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   7115 L_30005021:
   7116     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   7117     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   7118     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7120     _flag_k = FK_CMP;
   7121     RECOMP_BACKEDGE();
   7122     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   7123 L_3000502D:
   7124     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   7125     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   7126     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   7127     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   7128     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   7129     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   7130     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   7131     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   7132     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   7133     esp = ebp; /* 0x30005041: mov esp, ebp */
   7134     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   7135     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   7136     RECOMP_REGS_OUT();
   7137 }
   7138 
   7139 void sub_30004EAD(void) {
   7140     int _fpu_cmp = 0;
   7141     uint32_t _cf = 0;
   7142     int _df = 1;
   7143     uint32_t _flag_k = FK_NONE;
   7144     uint32_t _flag_a = 0, _flag_b = 0;
   7145     uint32_t _itail_tgt = 0;
   7146     RECOMP_REGS_LOCALS
   7147     RECOMP_ENTER(0x30004EADu);
   7148 
   7149 L_30004EAD:
   7150     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   7151     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   7152     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   7153     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7154     _cf = 0;
   7155     _flag_k = FK_NARROW(FK_TEST, 24);
   7156     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   7157 L_30004EBB:
   7158     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   7159     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   7160     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   7161     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7162     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7163     _flag_k = FK_CMP;
   7164     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   7165 L_30004EC8:
   7166     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   7167     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   7168     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   7169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7170     _flag_k = FK_NARROW(FK_CMP, 24);
   7171     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   7172 L_30004ED1:
   7173     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   7174     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   7175     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   7176     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   7177     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   7178     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   7179     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   7180     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   7181 L_30004EEC:
   7182     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   7183     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   7184     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7185     _flag_k = FK_CMP;
   7186     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   7187 L_30004EF1:
   7188     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   7189     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   7190     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   7191     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   7192     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   7193     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   7194     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7196     _flag_k = FK_CMP;
   7197     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   7198 L_30004F02:
   7199     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   7200 L_30004F05:
   7201     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   7202     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   7203     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   7204     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   7205     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7207     _flag_k = FK_CMP;
   7208     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   7209 L_30004F13:
   7210     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   7211     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   7212 L_30004F18:
   7213     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   7214     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   7215     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   7216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7217     _flag_k = FK_CMP;
   7218     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   7219 L_30004F1F:
   7220     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   7221     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   7222 L_30004F23:
   7223     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   7224 L_30004F26:
   7225     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   7226     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   7227 L_30004F2B:
   7228     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   7229     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   7230     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   7231     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   7232     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   7233     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   7234     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   7235     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   7236     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   7237     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   7238     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   7239     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   7240     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7242     _flag_k = FK_CMP;
   7243     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F53; /* 0x30004F4E: je 0x30004f53 */
   7244 L_30004F50:
   7245     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   7246 L_30004F53:
   7247     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   7248     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   7249     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   7250     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   7251     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7253     _flag_k = FK_CMP;
   7254     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   7255 L_30004F61:
   7256     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   7257     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   7258     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   7259 L_30004F6C:
   7260     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   7261     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   7262     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7263     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7264     _flag_k = FK_CMP;
   7265     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   7266 L_30004F74:
   7267     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   7268     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   7269     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   7270 L_30004F7F:
   7271     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   7272     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   7273     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   7274 L_30004F89:
   7275     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   7276     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   7277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7278     _flag_k = FK_NARROW(FK_CMP, 24);
   7279     RECOMP_BACKEDGE();
   7280     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   7281 L_30004F93:
   7282     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   7283     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   7284     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7285     _flag_k = FK_CMP;
   7286     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   7287 L_30004F97:
   7288     eax = ecx; /* 0x30004F97: mov eax, ecx */
   7289     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   7290     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   7291     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   7292     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   7293     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   7294     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7296     _flag_k = FK_CMP;
   7297     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   7298 L_30004FA8:
   7299     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   7300 L_30004FAB:
   7301     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   7302     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   7303     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   7304     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   7305     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7307     _flag_k = FK_CMP;
   7308     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   7309 L_30004FB9:
   7310     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   7311     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   7312 L_30004FBE:
   7313     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   7314     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   7315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   7316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7317     _flag_k = FK_CMP;
   7318     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   7319 L_30004FC6:
   7320     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   7321     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   7322 L_30004FCB:
   7323     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   7324 L_30004FCD:
   7325     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   7326     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   7327 L_30004FD3:
   7328     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   7329     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   7330     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   7331     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   7332     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   7333     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   7334     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   7335     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   7336     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   7337     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   7338     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   7339     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   7340     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7341     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7342     _flag_k = FK_CMP;
   7343     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   7344 L_30004FF8:
   7345     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   7346 L_30004FFB:
   7347     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   7348     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   7349     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   7350     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   7351     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7352     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7353     _flag_k = FK_CMP;
   7354     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   7355 L_30005009:
   7356     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   7357     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   7358 L_3000500E:
   7359     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   7360     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   7361     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   7362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7363     _flag_k = FK_CMP;
   7364     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   7365 L_30005015:
   7366     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   7367     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   7368 L_30005019:
   7369     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   7370 L_3000501C:
   7371     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   7372 L_3000501E:
   7373     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   7374 L_30005021:
   7375     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   7376     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   7377     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7379     _flag_k = FK_CMP;
   7380     RECOMP_BACKEDGE();
   7381     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   7382 L_3000502D:
   7383     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   7384     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   7385     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   7386     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   7387     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   7388     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   7389     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   7390     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   7391     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   7392     esp = ebp; /* 0x30005041: mov esp, ebp */
   7393     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   7394     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   7395     RECOMP_REGS_OUT();
   7396 }
   7397 
   7398 void sub_30004ED1(void) {
   7399     int _fpu_cmp = 0;
   7400     uint32_t _cf = 0;
   7401     int _df = 1;
   7402     uint32_t _flag_k = FK_NONE;
   7403     uint32_t _flag_a = 0, _flag_b = 0;
   7404     uint32_t _itail_tgt = 0;
   7405     RECOMP_REGS_LOCALS
   7406     RECOMP_ENTER(0x30004ED1u);
   7407 
   7408     goto L_30004ED1;
   7409 L_30004EAD:
   7410     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   7411     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   7412     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   7413     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7414     _cf = 0;
   7415     _flag_k = FK_NARROW(FK_TEST, 24);
   7416     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   7417 L_30004EBB:
   7418     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   7419     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   7420     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   7421     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7423     _flag_k = FK_CMP;
   7424     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   7425 L_30004EC8:
   7426     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   7427     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   7428     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   7429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7430     _flag_k = FK_NARROW(FK_CMP, 24);
   7431     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   7432 L_30004ED1:
   7433     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   7434     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   7435     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   7436     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   7437     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   7438     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   7439     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   7440     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   7441 L_30004EEC:
   7442     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   7443     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   7444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7445     _flag_k = FK_CMP;
   7446     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   7447 L_30004EF1:
   7448     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   7449     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   7450     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   7451     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   7452     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   7453     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   7454     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7456     _flag_k = FK_CMP;
   7457     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   7458 L_30004F02:
   7459     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   7460 L_30004F05:
   7461     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   7462     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   7463     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   7464     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   7465     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7467     _flag_k = FK_CMP;
   7468     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   7469 L_30004F13:
   7470     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   7471     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   7472 L_30004F18:
   7473     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   7474     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   7475     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   7476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7477     _flag_k = FK_CMP;
   7478     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   7479 L_30004F1F:
   7480     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   7481     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   7482 L_30004F23:
   7483     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   7484 L_30004F26:
   7485     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   7486     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   7487 L_30004F2B:
   7488     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   7489     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   7490     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   7491     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   7492     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   7493     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   7494     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   7495     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   7496     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   7497     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   7498     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   7499     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   7500     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7501     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7502     _flag_k = FK_CMP;
   7503     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F53; /* 0x30004F4E: je 0x30004f53 */
   7504 L_30004F50:
   7505     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   7506 L_30004F53:
   7507     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   7508     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   7509     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   7510     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   7511     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7513     _flag_k = FK_CMP;
   7514     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   7515 L_30004F61:
   7516     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   7517     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   7518     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   7519 L_30004F6C:
   7520     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   7521     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   7522     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7524     _flag_k = FK_CMP;
   7525     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   7526 L_30004F74:
   7527     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   7528     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   7529     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   7530 L_30004F7F:
   7531     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   7532     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   7533     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   7534 L_30004F89:
   7535     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   7536     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   7537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7538     _flag_k = FK_NARROW(FK_CMP, 24);
   7539     RECOMP_BACKEDGE();
   7540     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   7541 L_30004F93:
   7542     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   7543     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   7544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7545     _flag_k = FK_CMP;
   7546     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   7547 L_30004F97:
   7548     eax = ecx; /* 0x30004F97: mov eax, ecx */
   7549     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   7550     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   7551     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   7552     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   7553     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   7554     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7556     _flag_k = FK_CMP;
   7557     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   7558 L_30004FA8:
   7559     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   7560 L_30004FAB:
   7561     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   7562     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   7563     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   7564     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   7565     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7566     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7567     _flag_k = FK_CMP;
   7568     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   7569 L_30004FB9:
   7570     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   7571     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   7572 L_30004FBE:
   7573     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   7574     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   7575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   7576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7577     _flag_k = FK_CMP;
   7578     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   7579 L_30004FC6:
   7580     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   7581     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   7582 L_30004FCB:
   7583     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   7584 L_30004FCD:
   7585     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   7586     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   7587 L_30004FD3:
   7588     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   7589     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   7590     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   7591     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   7592     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   7593     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   7594     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   7595     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   7596     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   7597     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   7598     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   7599     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   7600     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7602     _flag_k = FK_CMP;
   7603     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   7604 L_30004FF8:
   7605     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   7606 L_30004FFB:
   7607     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   7608     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   7609     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   7610     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   7611     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7613     _flag_k = FK_CMP;
   7614     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   7615 L_30005009:
   7616     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   7617     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   7618 L_3000500E:
   7619     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   7620     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   7621     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   7622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7623     _flag_k = FK_CMP;
   7624     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   7625 L_30005015:
   7626     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   7627     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   7628 L_30005019:
   7629     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   7630 L_3000501C:
   7631     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   7632 L_3000501E:
   7633     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   7634 L_30005021:
   7635     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   7636     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   7637     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7638     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7639     _flag_k = FK_CMP;
   7640     RECOMP_BACKEDGE();
   7641     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   7642 L_3000502D:
   7643     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   7644     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   7645     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   7646     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   7647     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   7648     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   7649     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   7650     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   7651     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   7652     esp = ebp; /* 0x30005041: mov esp, ebp */
   7653     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   7654     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   7655     RECOMP_REGS_OUT();
   7656 }
   7657 
   7658 void sub_30004F26(void) {
   7659     int _fpu_cmp = 0;
   7660     uint32_t _cf = 0;
   7661     int _df = 1;
   7662     uint32_t _flag_k = FK_NONE;
   7663     uint32_t _flag_a = 0, _flag_b = 0;
   7664     uint32_t _itail_tgt = 0;
   7665     RECOMP_REGS_LOCALS
   7666     RECOMP_ENTER(0x30004F26u);
   7667 
   7668     goto L_30004F26;
   7669 L_30004EAD:
   7670     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   7671     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   7672     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   7673     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7674     _cf = 0;
   7675     _flag_k = FK_NARROW(FK_TEST, 24);
   7676     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   7677 L_30004EBB:
   7678     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   7679     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   7680     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   7681     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7683     _flag_k = FK_CMP;
   7684     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   7685 L_30004EC8:
   7686     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   7687     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   7688     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   7689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7690     _flag_k = FK_NARROW(FK_CMP, 24);
   7691     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   7692 L_30004ED1:
   7693     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   7694     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   7695     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   7696     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   7697     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   7698     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   7699     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   7700     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   7701 L_30004EEC:
   7702     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   7703     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   7704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7705     _flag_k = FK_CMP;
   7706     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   7707 L_30004EF1:
   7708     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   7709     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   7710     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   7711     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   7712     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   7713     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   7714     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7716     _flag_k = FK_CMP;
   7717     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   7718 L_30004F02:
   7719     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   7720 L_30004F05:
   7721     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   7722     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   7723     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   7724     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   7725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7727     _flag_k = FK_CMP;
   7728     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   7729 L_30004F13:
   7730     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   7731     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   7732 L_30004F18:
   7733     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   7734     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   7735     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   7736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7737     _flag_k = FK_CMP;
   7738     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   7739 L_30004F1F:
   7740     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   7741     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   7742 L_30004F23:
   7743     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   7744 L_30004F26:
   7745     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   7746     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   7747 L_30004F2B:
   7748     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   7749     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   7750     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   7751     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   7752     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   7753     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   7754     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   7755     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   7756     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   7757     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   7758     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   7759     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   7760     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7762     _flag_k = FK_CMP;
   7763     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F53; /* 0x30004F4E: je 0x30004f53 */
   7764 L_30004F50:
   7765     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   7766 L_30004F53:
   7767     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   7768     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   7769     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   7770     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   7771     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7773     _flag_k = FK_CMP;
   7774     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   7775 L_30004F61:
   7776     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   7777     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   7778     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   7779 L_30004F6C:
   7780     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   7781     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   7782     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7783     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7784     _flag_k = FK_CMP;
   7785     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   7786 L_30004F74:
   7787     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   7788     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   7789     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   7790 L_30004F7F:
   7791     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   7792     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   7793     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   7794 L_30004F89:
   7795     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   7796     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   7797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7798     _flag_k = FK_NARROW(FK_CMP, 24);
   7799     RECOMP_BACKEDGE();
   7800     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   7801 L_30004F93:
   7802     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   7803     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   7804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7805     _flag_k = FK_CMP;
   7806     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   7807 L_30004F97:
   7808     eax = ecx; /* 0x30004F97: mov eax, ecx */
   7809     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   7810     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   7811     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   7812     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   7813     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   7814     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7816     _flag_k = FK_CMP;
   7817     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   7818 L_30004FA8:
   7819     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   7820 L_30004FAB:
   7821     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   7822     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   7823     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   7824     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   7825     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7827     _flag_k = FK_CMP;
   7828     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   7829 L_30004FB9:
   7830     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   7831     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   7832 L_30004FBE:
   7833     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   7834     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   7835     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   7836     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7837     _flag_k = FK_CMP;
   7838     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   7839 L_30004FC6:
   7840     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   7841     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   7842 L_30004FCB:
   7843     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   7844 L_30004FCD:
   7845     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   7846     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   7847 L_30004FD3:
   7848     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   7849     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   7850     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   7851     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   7852     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   7853     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   7854     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   7855     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   7856     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   7857     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   7858     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   7859     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   7860     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7862     _flag_k = FK_CMP;
   7863     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   7864 L_30004FF8:
   7865     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   7866 L_30004FFB:
   7867     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   7868     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   7869     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   7870     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   7871     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7873     _flag_k = FK_CMP;
   7874     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   7875 L_30005009:
   7876     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   7877     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   7878 L_3000500E:
   7879     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   7880     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   7881     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   7882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7883     _flag_k = FK_CMP;
   7884     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   7885 L_30005015:
   7886     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   7887     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   7888 L_30005019:
   7889     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   7890 L_3000501C:
   7891     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   7892 L_3000501E:
   7893     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   7894 L_30005021:
   7895     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   7896     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   7897     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7898     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7899     _flag_k = FK_CMP;
   7900     RECOMP_BACKEDGE();
   7901     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   7902 L_3000502D:
   7903     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   7904     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   7905     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   7906     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   7907     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   7908     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   7909     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   7910     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   7911     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   7912     esp = ebp; /* 0x30005041: mov esp, ebp */
   7913     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   7914     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   7915     RECOMP_REGS_OUT();
   7916 }
   7917 
   7918 void sub_30004F2B(void) {
   7919     int _fpu_cmp = 0;
   7920     uint32_t _cf = 0;
   7921     int _df = 1;
   7922     uint32_t _flag_k = FK_NONE;
   7923     uint32_t _flag_a = 0, _flag_b = 0;
   7924     uint32_t _itail_tgt = 0;
   7925     RECOMP_REGS_LOCALS
   7926     RECOMP_ENTER(0x30004F2Bu);
   7927 
   7928     goto L_30004F2B;
   7929 L_30004EAD:
   7930     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   7931     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   7932     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   7933     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7934     _cf = 0;
   7935     _flag_k = FK_NARROW(FK_TEST, 24);
   7936     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   7937 L_30004EBB:
   7938     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   7939     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   7940     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   7941     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7943     _flag_k = FK_CMP;
   7944     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   7945 L_30004EC8:
   7946     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   7947     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   7948     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   7949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7950     _flag_k = FK_NARROW(FK_CMP, 24);
   7951     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   7952 L_30004ED1:
   7953     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   7954     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   7955     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   7956     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   7957     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   7958     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   7959     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   7960     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   7961 L_30004EEC:
   7962     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   7963     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   7964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7965     _flag_k = FK_CMP;
   7966     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   7967 L_30004EF1:
   7968     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   7969     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   7970     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   7971     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   7972     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   7973     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   7974     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7976     _flag_k = FK_CMP;
   7977     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   7978 L_30004F02:
   7979     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   7980 L_30004F05:
   7981     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   7982     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   7983     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   7984     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   7985     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7987     _flag_k = FK_CMP;
   7988     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   7989 L_30004F13:
   7990     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   7991     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   7992 L_30004F18:
   7993     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   7994     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   7995     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   7996     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7997     _flag_k = FK_CMP;
   7998     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   7999 L_30004F1F:
   8000     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   8001     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   8002 L_30004F23:
   8003     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   8004 L_30004F26:
   8005     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   8006     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   8007 L_30004F2B:
   8008     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   8009     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   8010     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   8011     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   8012     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   8013     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   8014     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   8015     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   8016     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   8017     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   8018     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   8019     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   8020     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8022     _flag_k = FK_CMP;
   8023     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F53; /* 0x30004F4E: je 0x30004f53 */
   8024 L_30004F50:
   8025     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   8026 L_30004F53:
   8027     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   8028     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   8029     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   8030     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   8031     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8033     _flag_k = FK_CMP;
   8034     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   8035 L_30004F61:
   8036     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   8037     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   8038     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   8039 L_30004F6C:
   8040     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   8041     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   8042     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8044     _flag_k = FK_CMP;
   8045     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   8046 L_30004F74:
   8047     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   8048     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   8049     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   8050 L_30004F7F:
   8051     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   8052     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   8053     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   8054 L_30004F89:
   8055     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   8056     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   8057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8058     _flag_k = FK_NARROW(FK_CMP, 24);
   8059     RECOMP_BACKEDGE();
   8060     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   8061 L_30004F93:
   8062     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   8063     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8065     _flag_k = FK_CMP;
   8066     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   8067 L_30004F97:
   8068     eax = ecx; /* 0x30004F97: mov eax, ecx */
   8069     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   8070     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   8071     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   8072     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   8073     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   8074     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8076     _flag_k = FK_CMP;
   8077     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   8078 L_30004FA8:
   8079     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   8080 L_30004FAB:
   8081     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   8082     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   8083     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   8084     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   8085     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8087     _flag_k = FK_CMP;
   8088     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   8089 L_30004FB9:
   8090     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   8091     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   8092 L_30004FBE:
   8093     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   8094     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   8095     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8096     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8097     _flag_k = FK_CMP;
   8098     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   8099 L_30004FC6:
   8100     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   8101     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   8102 L_30004FCB:
   8103     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   8104 L_30004FCD:
   8105     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   8106     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   8107 L_30004FD3:
   8108     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   8109     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   8110     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   8111     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   8112     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   8113     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   8114     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   8115     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   8116     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   8117     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   8118     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   8119     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   8120     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8122     _flag_k = FK_CMP;
   8123     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   8124 L_30004FF8:
   8125     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   8126 L_30004FFB:
   8127     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   8128     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   8129     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   8130     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   8131     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8133     _flag_k = FK_CMP;
   8134     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   8135 L_30005009:
   8136     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   8137     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   8138 L_3000500E:
   8139     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   8140     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   8141     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8142     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8143     _flag_k = FK_CMP;
   8144     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   8145 L_30005015:
   8146     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   8147     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   8148 L_30005019:
   8149     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   8150 L_3000501C:
   8151     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   8152 L_3000501E:
   8153     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   8154 L_30005021:
   8155     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   8156     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   8157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8159     _flag_k = FK_CMP;
   8160     RECOMP_BACKEDGE();
   8161     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   8162 L_3000502D:
   8163     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   8164     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   8165     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   8166     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   8167     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   8168     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   8169     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   8170     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   8171     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   8172     esp = ebp; /* 0x30005041: mov esp, ebp */
   8173     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   8174     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   8175     RECOMP_REGS_OUT();
   8176 }
   8177 
   8178 void sub_30004F89(void) {
   8179     int _fpu_cmp = 0;
   8180     uint32_t _cf = 0;
   8181     int _df = 1;
   8182     uint32_t _flag_k = FK_NONE;
   8183     uint32_t _flag_a = 0, _flag_b = 0;
   8184     uint32_t _itail_tgt = 0;
   8185     RECOMP_REGS_LOCALS
   8186     RECOMP_ENTER(0x30004F89u);
   8187 
   8188     goto L_30004F89;
   8189 L_30004EAD:
   8190     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   8191     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   8192     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   8193     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8194     _cf = 0;
   8195     _flag_k = FK_NARROW(FK_TEST, 24);
   8196     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   8197 L_30004EBB:
   8198     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   8199     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   8200     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   8201     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8203     _flag_k = FK_CMP;
   8204     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   8205 L_30004EC8:
   8206     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   8207     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   8208     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   8209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8210     _flag_k = FK_NARROW(FK_CMP, 24);
   8211     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   8212 L_30004ED1:
   8213     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   8214     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   8215     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   8216     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   8217     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   8218     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   8219     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   8220     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   8221 L_30004EEC:
   8222     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   8223     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8225     _flag_k = FK_CMP;
   8226     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   8227 L_30004EF1:
   8228     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   8229     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   8230     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   8231     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   8232     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   8233     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   8234     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8236     _flag_k = FK_CMP;
   8237     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   8238 L_30004F02:
   8239     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   8240 L_30004F05:
   8241     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   8242     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   8243     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   8244     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   8245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8247     _flag_k = FK_CMP;
   8248     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   8249 L_30004F13:
   8250     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   8251     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   8252 L_30004F18:
   8253     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   8254     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   8255     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   8256     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8257     _flag_k = FK_CMP;
   8258     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   8259 L_30004F1F:
   8260     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   8261     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   8262 L_30004F23:
   8263     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   8264 L_30004F26:
   8265     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   8266     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   8267 L_30004F2B:
   8268     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   8269     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   8270     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   8271     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   8272     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   8273     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   8274     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   8275     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   8276     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   8277     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   8278     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   8279     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   8280     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8282     _flag_k = FK_CMP;
   8283     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F53; /* 0x30004F4E: je 0x30004f53 */
   8284 L_30004F50:
   8285     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   8286 L_30004F53:
   8287     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   8288     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   8289     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   8290     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   8291     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8292     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8293     _flag_k = FK_CMP;
   8294     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   8295 L_30004F61:
   8296     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   8297     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   8298     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   8299 L_30004F6C:
   8300     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   8301     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   8302     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8304     _flag_k = FK_CMP;
   8305     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   8306 L_30004F74:
   8307     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   8308     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   8309     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   8310 L_30004F7F:
   8311     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   8312     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   8313     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   8314 L_30004F89:
   8315     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   8316     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   8317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8318     _flag_k = FK_NARROW(FK_CMP, 24);
   8319     RECOMP_BACKEDGE();
   8320     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   8321 L_30004F93:
   8322     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   8323     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8325     _flag_k = FK_CMP;
   8326     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   8327 L_30004F97:
   8328     eax = ecx; /* 0x30004F97: mov eax, ecx */
   8329     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   8330     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   8331     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   8332     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   8333     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   8334     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8335     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8336     _flag_k = FK_CMP;
   8337     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   8338 L_30004FA8:
   8339     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   8340 L_30004FAB:
   8341     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   8342     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   8343     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   8344     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   8345     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8346     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8347     _flag_k = FK_CMP;
   8348     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   8349 L_30004FB9:
   8350     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   8351     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   8352 L_30004FBE:
   8353     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   8354     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   8355     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8357     _flag_k = FK_CMP;
   8358     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   8359 L_30004FC6:
   8360     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   8361     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   8362 L_30004FCB:
   8363     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   8364 L_30004FCD:
   8365     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   8366     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   8367 L_30004FD3:
   8368     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   8369     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   8370     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   8371     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   8372     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   8373     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   8374     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   8375     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   8376     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   8377     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   8378     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   8379     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   8380     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8381     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8382     _flag_k = FK_CMP;
   8383     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   8384 L_30004FF8:
   8385     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   8386 L_30004FFB:
   8387     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   8388     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   8389     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   8390     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   8391     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8393     _flag_k = FK_CMP;
   8394     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   8395 L_30005009:
   8396     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   8397     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   8398 L_3000500E:
   8399     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   8400     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   8401     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8403     _flag_k = FK_CMP;
   8404     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   8405 L_30005015:
   8406     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   8407     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   8408 L_30005019:
   8409     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   8410 L_3000501C:
   8411     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   8412 L_3000501E:
   8413     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   8414 L_30005021:
   8415     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   8416     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   8417     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8419     _flag_k = FK_CMP;
   8420     RECOMP_BACKEDGE();
   8421     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   8422 L_3000502D:
   8423     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   8424     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   8425     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   8426     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   8427     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   8428     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   8429     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   8430     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   8431     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   8432     esp = ebp; /* 0x30005041: mov esp, ebp */
   8433     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   8434     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   8435     RECOMP_REGS_OUT();
   8436 }
   8437 
   8438 void sub_30004FCD(void) {
   8439     int _fpu_cmp = 0;
   8440     uint32_t _cf = 0;
   8441     int _df = 1;
   8442     uint32_t _flag_k = FK_NONE;
   8443     uint32_t _flag_a = 0, _flag_b = 0;
   8444     uint32_t _itail_tgt = 0;
   8445     RECOMP_REGS_LOCALS
   8446     RECOMP_ENTER(0x30004FCDu);
   8447 
   8448     goto L_30004FCD;
   8449 L_30004EAD:
   8450     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   8451     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   8452     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   8453     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8454     _cf = 0;
   8455     _flag_k = FK_NARROW(FK_TEST, 24);
   8456     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   8457 L_30004EBB:
   8458     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   8459     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   8460     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   8461     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8463     _flag_k = FK_CMP;
   8464     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   8465 L_30004EC8:
   8466     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   8467     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   8468     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   8469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8470     _flag_k = FK_NARROW(FK_CMP, 24);
   8471     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   8472 L_30004ED1:
   8473     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   8474     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   8475     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   8476     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   8477     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   8478     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   8479     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   8480     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   8481 L_30004EEC:
   8482     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   8483     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8485     _flag_k = FK_CMP;
   8486     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   8487 L_30004EF1:
   8488     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   8489     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   8490     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   8491     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   8492     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   8493     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   8494     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8496     _flag_k = FK_CMP;
   8497     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   8498 L_30004F02:
   8499     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   8500 L_30004F05:
   8501     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   8502     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   8503     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   8504     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   8505     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8507     _flag_k = FK_CMP;
   8508     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   8509 L_30004F13:
   8510     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   8511     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   8512 L_30004F18:
   8513     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   8514     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   8515     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   8516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8517     _flag_k = FK_CMP;
   8518     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   8519 L_30004F1F:
   8520     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   8521     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   8522 L_30004F23:
   8523     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   8524 L_30004F26:
   8525     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   8526     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   8527 L_30004F2B:
   8528     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   8529     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   8530     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   8531     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   8532     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   8533     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   8534     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   8535     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   8536     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   8537     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   8538     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   8539     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   8540     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 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_30004F53; /* 0x30004F4E: je 0x30004f53 */
   8544 L_30004F50:
   8545     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   8546 L_30004F53:
   8547     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   8548     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   8549     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   8550     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   8551     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8553     _flag_k = FK_CMP;
   8554     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   8555 L_30004F61:
   8556     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   8557     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   8558     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   8559 L_30004F6C:
   8560     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   8561     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   8562     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8564     _flag_k = FK_CMP;
   8565     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   8566 L_30004F74:
   8567     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   8568     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   8569     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   8570 L_30004F7F:
   8571     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   8572     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   8573     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   8574 L_30004F89:
   8575     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   8576     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   8577     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8578     _flag_k = FK_NARROW(FK_CMP, 24);
   8579     RECOMP_BACKEDGE();
   8580     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   8581 L_30004F93:
   8582     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   8583     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8585     _flag_k = FK_CMP;
   8586     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   8587 L_30004F97:
   8588     eax = ecx; /* 0x30004F97: mov eax, ecx */
   8589     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   8590     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   8591     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   8592     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   8593     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   8594     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8596     _flag_k = FK_CMP;
   8597     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   8598 L_30004FA8:
   8599     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   8600 L_30004FAB:
   8601     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   8602     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   8603     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   8604     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   8605     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8607     _flag_k = FK_CMP;
   8608     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   8609 L_30004FB9:
   8610     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   8611     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   8612 L_30004FBE:
   8613     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   8614     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   8615     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8616     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8617     _flag_k = FK_CMP;
   8618     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   8619 L_30004FC6:
   8620     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   8621     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   8622 L_30004FCB:
   8623     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   8624 L_30004FCD:
   8625     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   8626     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   8627 L_30004FD3:
   8628     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   8629     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   8630     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   8631     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   8632     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   8633     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   8634     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   8635     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   8636     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   8637     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   8638     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   8639     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   8640     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8642     _flag_k = FK_CMP;
   8643     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   8644 L_30004FF8:
   8645     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   8646 L_30004FFB:
   8647     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   8648     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   8649     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   8650     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   8651     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8653     _flag_k = FK_CMP;
   8654     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   8655 L_30005009:
   8656     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   8657     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   8658 L_3000500E:
   8659     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   8660     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   8661     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8663     _flag_k = FK_CMP;
   8664     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   8665 L_30005015:
   8666     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   8667     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   8668 L_30005019:
   8669     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   8670 L_3000501C:
   8671     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   8672 L_3000501E:
   8673     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   8674 L_30005021:
   8675     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   8676     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   8677     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8679     _flag_k = FK_CMP;
   8680     RECOMP_BACKEDGE();
   8681     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   8682 L_3000502D:
   8683     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   8684     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   8685     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   8686     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   8687     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   8688     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   8689     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   8690     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   8691     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   8692     esp = ebp; /* 0x30005041: mov esp, ebp */
   8693     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   8694     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   8695     RECOMP_REGS_OUT();
   8696 }
   8697 
   8698 void sub_30004FD3(void) {
   8699     int _fpu_cmp = 0;
   8700     uint32_t _cf = 0;
   8701     int _df = 1;
   8702     uint32_t _flag_k = FK_NONE;
   8703     uint32_t _flag_a = 0, _flag_b = 0;
   8704     uint32_t _itail_tgt = 0;
   8705     RECOMP_REGS_LOCALS
   8706     RECOMP_ENTER(0x30004FD3u);
   8707 
   8708     goto L_30004FD3;
   8709 L_30004EAD:
   8710     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   8711     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   8712     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   8713     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8714     _cf = 0;
   8715     _flag_k = FK_NARROW(FK_TEST, 24);
   8716     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   8717 L_30004EBB:
   8718     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   8719     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   8720     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   8721     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8722     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8723     _flag_k = FK_CMP;
   8724     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   8725 L_30004EC8:
   8726     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   8727     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   8728     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   8729     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8730     _flag_k = FK_NARROW(FK_CMP, 24);
   8731     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   8732 L_30004ED1:
   8733     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   8734     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   8735     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   8736     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   8737     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   8738     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   8739     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   8740     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   8741 L_30004EEC:
   8742     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   8743     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8745     _flag_k = FK_CMP;
   8746     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   8747 L_30004EF1:
   8748     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   8749     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   8750     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   8751     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   8752     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   8753     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   8754     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8756     _flag_k = FK_CMP;
   8757     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   8758 L_30004F02:
   8759     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   8760 L_30004F05:
   8761     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   8762     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   8763     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   8764     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   8765     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8767     _flag_k = FK_CMP;
   8768     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   8769 L_30004F13:
   8770     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   8771     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   8772 L_30004F18:
   8773     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   8774     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   8775     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   8776     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8777     _flag_k = FK_CMP;
   8778     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   8779 L_30004F1F:
   8780     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   8781     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   8782 L_30004F23:
   8783     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   8784 L_30004F26:
   8785     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   8786     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   8787 L_30004F2B:
   8788     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   8789     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   8790     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   8791     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   8792     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   8793     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   8794     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   8795     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   8796     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   8797     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   8798     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   8799     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   8800     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8802     _flag_k = FK_CMP;
   8803     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F53; /* 0x30004F4E: je 0x30004f53 */
   8804 L_30004F50:
   8805     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   8806 L_30004F53:
   8807     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   8808     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   8809     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   8810     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   8811     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8813     _flag_k = FK_CMP;
   8814     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   8815 L_30004F61:
   8816     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   8817     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   8818     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   8819 L_30004F6C:
   8820     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   8821     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   8822     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8824     _flag_k = FK_CMP;
   8825     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   8826 L_30004F74:
   8827     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   8828     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   8829     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   8830 L_30004F7F:
   8831     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   8832     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   8833     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   8834 L_30004F89:
   8835     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   8836     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   8837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8838     _flag_k = FK_NARROW(FK_CMP, 24);
   8839     RECOMP_BACKEDGE();
   8840     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   8841 L_30004F93:
   8842     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   8843     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8845     _flag_k = FK_CMP;
   8846     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   8847 L_30004F97:
   8848     eax = ecx; /* 0x30004F97: mov eax, ecx */
   8849     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   8850     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   8851     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   8852     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   8853     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   8854     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8856     _flag_k = FK_CMP;
   8857     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   8858 L_30004FA8:
   8859     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   8860 L_30004FAB:
   8861     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   8862     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   8863     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   8864     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   8865     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8866     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8867     _flag_k = FK_CMP;
   8868     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   8869 L_30004FB9:
   8870     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   8871     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   8872 L_30004FBE:
   8873     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   8874     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   8875     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8877     _flag_k = FK_CMP;
   8878     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   8879 L_30004FC6:
   8880     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   8881     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   8882 L_30004FCB:
   8883     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   8884 L_30004FCD:
   8885     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   8886     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   8887 L_30004FD3:
   8888     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   8889     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   8890     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   8891     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   8892     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   8893     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   8894     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   8895     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   8896     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   8897     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   8898     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   8899     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   8900     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8902     _flag_k = FK_CMP;
   8903     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   8904 L_30004FF8:
   8905     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   8906 L_30004FFB:
   8907     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   8908     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   8909     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   8910     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   8911     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8913     _flag_k = FK_CMP;
   8914     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   8915 L_30005009:
   8916     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   8917     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   8918 L_3000500E:
   8919     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   8920     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   8921     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8922     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8923     _flag_k = FK_CMP;
   8924     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   8925 L_30005015:
   8926     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   8927     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   8928 L_30005019:
   8929     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   8930 L_3000501C:
   8931     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   8932 L_3000501E:
   8933     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   8934 L_30005021:
   8935     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   8936     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   8937     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8938     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8939     _flag_k = FK_CMP;
   8940     RECOMP_BACKEDGE();
   8941     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   8942 L_3000502D:
   8943     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   8944     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   8945     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   8946     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   8947     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   8948     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   8949     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   8950     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   8951     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   8952     esp = ebp; /* 0x30005041: mov esp, ebp */
   8953     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   8954     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   8955     RECOMP_REGS_OUT();
   8956 }
   8957 
   8958 void sub_3000501C(void) {
   8959     int _fpu_cmp = 0;
   8960     uint32_t _cf = 0;
   8961     int _df = 1;
   8962     uint32_t _flag_k = FK_NONE;
   8963     uint32_t _flag_a = 0, _flag_b = 0;
   8964     uint32_t _itail_tgt = 0;
   8965     RECOMP_REGS_LOCALS
   8966     RECOMP_ENTER(0x3000501Cu);
   8967 
   8968     goto L_3000501C;
   8969 L_30004EAD:
   8970     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   8971     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   8972     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   8973     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8974     _cf = 0;
   8975     _flag_k = FK_NARROW(FK_TEST, 24);
   8976     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   8977 L_30004EBB:
   8978     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   8979     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   8980     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   8981     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8983     _flag_k = FK_CMP;
   8984     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   8985 L_30004EC8:
   8986     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   8987     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   8988     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   8989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8990     _flag_k = FK_NARROW(FK_CMP, 24);
   8991     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   8992 L_30004ED1:
   8993     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   8994     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   8995     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   8996     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   8997     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   8998     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   8999     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   9000     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   9001 L_30004EEC:
   9002     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   9003     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   9004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9005     _flag_k = FK_CMP;
   9006     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   9007 L_30004EF1:
   9008     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   9009     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   9010     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   9011     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   9012     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   9013     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   9014     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9016     _flag_k = FK_CMP;
   9017     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   9018 L_30004F02:
   9019     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   9020 L_30004F05:
   9021     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   9022     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   9023     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   9024     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   9025     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9027     _flag_k = FK_CMP;
   9028     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   9029 L_30004F13:
   9030     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   9031     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   9032 L_30004F18:
   9033     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   9034     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   9035     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   9036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9037     _flag_k = FK_CMP;
   9038     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   9039 L_30004F1F:
   9040     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   9041     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   9042 L_30004F23:
   9043     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   9044 L_30004F26:
   9045     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   9046     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   9047 L_30004F2B:
   9048     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   9049     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   9050     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   9051     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   9052     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   9053     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   9054     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   9055     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   9056     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   9057     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   9058     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   9059     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   9060     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9061     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9062     _flag_k = FK_CMP;
   9063     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F53; /* 0x30004F4E: je 0x30004f53 */
   9064 L_30004F50:
   9065     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   9066 L_30004F53:
   9067     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   9068     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   9069     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   9070     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   9071     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9072     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9073     _flag_k = FK_CMP;
   9074     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   9075 L_30004F61:
   9076     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   9077     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   9078     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   9079 L_30004F6C:
   9080     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   9081     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   9082     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9084     _flag_k = FK_CMP;
   9085     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   9086 L_30004F74:
   9087     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   9088     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   9089     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   9090 L_30004F7F:
   9091     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   9092     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   9093     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   9094 L_30004F89:
   9095     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   9096     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   9097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9098     _flag_k = FK_NARROW(FK_CMP, 24);
   9099     RECOMP_BACKEDGE();
   9100     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   9101 L_30004F93:
   9102     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   9103     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9104     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9105     _flag_k = FK_CMP;
   9106     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   9107 L_30004F97:
   9108     eax = ecx; /* 0x30004F97: mov eax, ecx */
   9109     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   9110     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   9111     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   9112     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   9113     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   9114     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9116     _flag_k = FK_CMP;
   9117     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   9118 L_30004FA8:
   9119     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   9120 L_30004FAB:
   9121     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   9122     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   9123     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   9124     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   9125     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9127     _flag_k = FK_CMP;
   9128     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   9129 L_30004FB9:
   9130     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   9131     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   9132 L_30004FBE:
   9133     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   9134     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   9135     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9137     _flag_k = FK_CMP;
   9138     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   9139 L_30004FC6:
   9140     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   9141     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   9142 L_30004FCB:
   9143     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   9144 L_30004FCD:
   9145     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   9146     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   9147 L_30004FD3:
   9148     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   9149     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   9150     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   9151     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   9152     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   9153     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   9154     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   9155     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   9156     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   9157     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   9158     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   9159     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   9160     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9162     _flag_k = FK_CMP;
   9163     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   9164 L_30004FF8:
   9165     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   9166 L_30004FFB:
   9167     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   9168     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   9169     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   9170     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   9171     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9173     _flag_k = FK_CMP;
   9174     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   9175 L_30005009:
   9176     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   9177     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   9178 L_3000500E:
   9179     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   9180     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   9181     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9183     _flag_k = FK_CMP;
   9184     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   9185 L_30005015:
   9186     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   9187     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   9188 L_30005019:
   9189     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   9190 L_3000501C:
   9191     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   9192 L_3000501E:
   9193     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   9194 L_30005021:
   9195     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   9196     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   9197     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9199     _flag_k = FK_CMP;
   9200     RECOMP_BACKEDGE();
   9201     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   9202 L_3000502D:
   9203     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   9204     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   9205     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   9206     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   9207     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   9208     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   9209     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   9210     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   9211     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   9212     esp = ebp; /* 0x30005041: mov esp, ebp */
   9213     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   9214     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   9215     RECOMP_REGS_OUT();
   9216 }
   9217 
   9218 void sub_3000501E(void) {
   9219     int _fpu_cmp = 0;
   9220     uint32_t _cf = 0;
   9221     int _df = 1;
   9222     uint32_t _flag_k = FK_NONE;
   9223     uint32_t _flag_a = 0, _flag_b = 0;
   9224     uint32_t _itail_tgt = 0;
   9225     RECOMP_REGS_LOCALS
   9226     RECOMP_ENTER(0x3000501Eu);
   9227 
   9228     goto L_3000501E;
   9229 L_30004EAD:
   9230     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   9231     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   9232     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   9233     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9234     _cf = 0;
   9235     _flag_k = FK_NARROW(FK_TEST, 24);
   9236     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   9237 L_30004EBB:
   9238     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   9239     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   9240     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   9241     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   9242     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9243     _flag_k = FK_CMP;
   9244     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   9245 L_30004EC8:
   9246     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   9247     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   9248     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   9249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9250     _flag_k = FK_NARROW(FK_CMP, 24);
   9251     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   9252 L_30004ED1:
   9253     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   9254     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   9255     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   9256     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   9257     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   9258     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   9259     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   9260     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   9261 L_30004EEC:
   9262     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   9263     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   9264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9265     _flag_k = FK_CMP;
   9266     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   9267 L_30004EF1:
   9268     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   9269     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   9270     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   9271     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   9272     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   9273     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   9274     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9276     _flag_k = FK_CMP;
   9277     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   9278 L_30004F02:
   9279     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   9280 L_30004F05:
   9281     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   9282     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   9283     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   9284     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   9285     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9287     _flag_k = FK_CMP;
   9288     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   9289 L_30004F13:
   9290     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   9291     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   9292 L_30004F18:
   9293     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   9294     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   9295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   9296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9297     _flag_k = FK_CMP;
   9298     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   9299 L_30004F1F:
   9300     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   9301     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   9302 L_30004F23:
   9303     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   9304 L_30004F26:
   9305     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   9306     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   9307 L_30004F2B:
   9308     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   9309     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   9310     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   9311     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   9312     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   9313     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   9314     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   9315     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   9316     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   9317     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   9318     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   9319     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   9320     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9322     _flag_k = FK_CMP;
   9323     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F53; /* 0x30004F4E: je 0x30004f53 */
   9324 L_30004F50:
   9325     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   9326 L_30004F53:
   9327     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   9328     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   9329     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   9330     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   9331     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9332     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9333     _flag_k = FK_CMP;
   9334     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   9335 L_30004F61:
   9336     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   9337     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   9338     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   9339 L_30004F6C:
   9340     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   9341     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   9342     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9344     _flag_k = FK_CMP;
   9345     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   9346 L_30004F74:
   9347     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   9348     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   9349     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   9350 L_30004F7F:
   9351     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   9352     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   9353     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   9354 L_30004F89:
   9355     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   9356     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   9357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9358     _flag_k = FK_NARROW(FK_CMP, 24);
   9359     RECOMP_BACKEDGE();
   9360     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   9361 L_30004F93:
   9362     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   9363     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9365     _flag_k = FK_CMP;
   9366     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   9367 L_30004F97:
   9368     eax = ecx; /* 0x30004F97: mov eax, ecx */
   9369     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   9370     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   9371     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   9372     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   9373     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   9374     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9375     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9376     _flag_k = FK_CMP;
   9377     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   9378 L_30004FA8:
   9379     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   9380 L_30004FAB:
   9381     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   9382     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   9383     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   9384     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   9385     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9386     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9387     _flag_k = FK_CMP;
   9388     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   9389 L_30004FB9:
   9390     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   9391     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   9392 L_30004FBE:
   9393     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   9394     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   9395     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9396     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9397     _flag_k = FK_CMP;
   9398     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   9399 L_30004FC6:
   9400     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   9401     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   9402 L_30004FCB:
   9403     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   9404 L_30004FCD:
   9405     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   9406     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   9407 L_30004FD3:
   9408     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   9409     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   9410     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   9411     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   9412     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   9413     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   9414     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   9415     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   9416     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   9417     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   9418     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   9419     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   9420     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9422     _flag_k = FK_CMP;
   9423     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   9424 L_30004FF8:
   9425     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   9426 L_30004FFB:
   9427     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   9428     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   9429     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   9430     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   9431     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9433     _flag_k = FK_CMP;
   9434     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   9435 L_30005009:
   9436     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   9437     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   9438 L_3000500E:
   9439     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   9440     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   9441     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9442     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9443     _flag_k = FK_CMP;
   9444     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   9445 L_30005015:
   9446     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   9447     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   9448 L_30005019:
   9449     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   9450 L_3000501C:
   9451     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   9452 L_3000501E:
   9453     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   9454 L_30005021:
   9455     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   9456     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   9457     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9458     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9459     _flag_k = FK_CMP;
   9460     RECOMP_BACKEDGE();
   9461     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   9462 L_3000502D:
   9463     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   9464     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   9465     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   9466     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   9467     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   9468     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   9469     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   9470     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   9471     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   9472     esp = ebp; /* 0x30005041: mov esp, ebp */
   9473     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   9474     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   9475     RECOMP_REGS_OUT();
   9476 }
   9477 
   9478 void sub_30005021(void) {
   9479     int _fpu_cmp = 0;
   9480     uint32_t _cf = 0;
   9481     int _df = 1;
   9482     uint32_t _flag_k = FK_NONE;
   9483     uint32_t _flag_a = 0, _flag_b = 0;
   9484     uint32_t _itail_tgt = 0;
   9485     RECOMP_REGS_LOCALS
   9486     RECOMP_ENTER(0x30005021u);
   9487 
   9488     goto L_30005021;
   9489 L_30004EAD:
   9490     ecx = MEM32(eax + 0x4); /* 0x30004EAD: mov ecx, dword ptr [eax + 4] */
   9491     SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x30004EB0: mov dl, byte ptr [ecx + 0x10] */
   9492     /* test LO8(edx), LO8(edx) */ /* 0x30004EB3: test dl, dl */
   9493     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9494     _cf = 0;
   9495     _flag_k = FK_NARROW(FK_TEST, 24);
   9496     if (TEST_NZ(_flag_a, _flag_b)) goto L_3000502D; /* 0x30004EB5: jne 0x3000502d */
   9497 L_30004EBB:
   9498     edi = MEM32(ecx + 0x4); /* 0x30004EBB: mov edi, dword ptr [ecx + 4] */
   9499     edx = MEM32(edi); /* 0x30004EBE: mov edx, dword ptr [edi] */
   9500     /* cmp ecx, edx */ /* 0x30004EC0: cmp ecx, edx */
   9501     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   9502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9503     _flag_k = FK_CMP;
   9504     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F89; /* 0x30004EC2: jne 0x30004f89 */
   9505 L_30004EC8:
   9506     edx = MEM32(edi + 0x8); /* 0x30004EC8: mov edx, dword ptr [edi + 8] */
   9507     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004ECB: cmp byte ptr [edx + 0x10], 0 */
   9508     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   9509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9510     _flag_k = FK_NARROW(FK_CMP, 24);
   9511     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EEC; /* 0x30004ECF: jne 0x30004eec */
   9512 L_30004ED1:
   9513     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED1: mov byte ptr [ecx + 0x10], bl */
   9514     MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004ED4: mov byte ptr [edx + 0x10], bl */
   9515     ecx = MEM32(eax + 0x4); /* 0x30004ED7: mov ecx, dword ptr [eax + 4] */
   9516     edx = MEM32(ecx + 0x4); /* 0x30004EDA: mov edx, dword ptr [ecx + 4] */
   9517     MEM8(edx + 0x10) = (uint8_t)(0); /* 0x30004EDD: mov byte ptr [edx + 0x10], 0 */
   9518     eax = MEM32(eax + 0x4); /* 0x30004EE1: mov eax, dword ptr [eax + 4] */
   9519     eax = MEM32(eax + 0x4); /* 0x30004EE4: mov eax, dword ptr [eax + 4] */
   9520     goto L_30005021; /* 0x30004EE7: jmp 0x30005021 */
   9521 L_30004EEC:
   9522     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30004EEC: cmp eax, dword ptr [ecx + 8] */
   9523     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   9524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9525     _flag_k = FK_CMP;
   9526     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F2B; /* 0x30004EEF: jne 0x30004f2b */
   9527 L_30004EF1:
   9528     eax = ecx; /* 0x30004EF1: mov eax, ecx */
   9529     ecx = MEM32(eax + 0x8); /* 0x30004EF3: mov ecx, dword ptr [eax + 8] */
   9530     edx = MEM32(ecx); /* 0x30004EF6: mov edx, dword ptr [ecx] */
   9531     MEM32(eax + 0x8) = edx; /* 0x30004EF8: mov dword ptr [eax + 8], edx */
   9532     edx = MEM32(ecx); /* 0x30004EFB: mov edx, dword ptr [ecx] */
   9533     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004EFD: cmp edx, dword ptr [esi + 8] */
   9534     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9535     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9536     _flag_k = FK_CMP;
   9537     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F05; /* 0x30004F00: je 0x30004f05 */
   9538 L_30004F02:
   9539     MEM32(edx + 0x4) = eax; /* 0x30004F02: mov dword ptr [edx + 4], eax */
   9540 L_30004F05:
   9541     edx = MEM32(eax + 0x4); /* 0x30004F05: mov edx, dword ptr [eax + 4] */
   9542     MEM32(ecx + 0x4) = edx; /* 0x30004F08: mov dword ptr [ecx + 4], edx */
   9543     edx = MEM32(esi + 0x4); /* 0x30004F0B: mov edx, dword ptr [esi + 4] */
   9544     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004F0E: cmp eax, dword ptr [edx + 4] */
   9545     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9547     _flag_k = FK_CMP;
   9548     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F18; /* 0x30004F11: jne 0x30004f18 */
   9549 L_30004F13:
   9550     MEM32(edx + 0x4) = ecx; /* 0x30004F13: mov dword ptr [edx + 4], ecx */
   9551     goto L_30004F26; /* 0x30004F16: jmp 0x30004f26 */
   9552 L_30004F18:
   9553     edx = MEM32(eax + 0x4); /* 0x30004F18: mov edx, dword ptr [eax + 4] */
   9554     /* cmp eax, MEM32(edx) */ /* 0x30004F1B: cmp eax, dword ptr [edx] */
   9555     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   9556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9557     _flag_k = FK_CMP;
   9558     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F23; /* 0x30004F1D: jne 0x30004f23 */
   9559 L_30004F1F:
   9560     MEM32(edx) = ecx; /* 0x30004F1F: mov dword ptr [edx], ecx */
   9561     goto L_30004F26; /* 0x30004F21: jmp 0x30004f26 */
   9562 L_30004F23:
   9563     MEM32(edx + 0x8) = ecx; /* 0x30004F23: mov dword ptr [edx + 8], ecx */
   9564 L_30004F26:
   9565     MEM32(ecx) = eax; /* 0x30004F26: mov dword ptr [ecx], eax */
   9566     MEM32(eax + 0x4) = ecx; /* 0x30004F28: mov dword ptr [eax + 4], ecx */
   9567 L_30004F2B:
   9568     ecx = MEM32(eax + 0x4); /* 0x30004F2B: mov ecx, dword ptr [eax + 4] */
   9569     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004F2E: mov byte ptr [ecx + 0x10], bl */
   9570     edx = MEM32(eax + 0x4); /* 0x30004F31: mov edx, dword ptr [eax + 4] */
   9571     ecx = MEM32(edx + 0x4); /* 0x30004F34: mov ecx, dword ptr [edx + 4] */
   9572     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004F37: mov byte ptr [ecx + 0x10], 0 */
   9573     edx = MEM32(eax + 0x4); /* 0x30004F3B: mov edx, dword ptr [eax + 4] */
   9574     ecx = MEM32(edx + 0x4); /* 0x30004F3E: mov ecx, dword ptr [edx + 4] */
   9575     edx = MEM32(ecx); /* 0x30004F41: mov edx, dword ptr [ecx] */
   9576     edi = MEM32(edx + 0x8); /* 0x30004F43: mov edi, dword ptr [edx + 8] */
   9577     MEM32(ecx) = edi; /* 0x30004F46: mov dword ptr [ecx], edi */
   9578     edi = MEM32(edx + 0x8); /* 0x30004F48: mov edi, dword ptr [edx + 8] */
   9579     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004F4B: cmp edi, dword ptr [esi + 8] */
   9580     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9582     _flag_k = FK_CMP;
   9583     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004F53; /* 0x30004F4E: je 0x30004f53 */
   9584 L_30004F50:
   9585     MEM32(edi + 0x4) = ecx; /* 0x30004F50: mov dword ptr [edi + 4], ecx */
   9586 L_30004F53:
   9587     edi = MEM32(ecx + 0x4); /* 0x30004F53: mov edi, dword ptr [ecx + 4] */
   9588     MEM32(edx + 0x4) = edi; /* 0x30004F56: mov dword ptr [edx + 4], edi */
   9589     edi = MEM32(esi + 0x4); /* 0x30004F59: mov edi, dword ptr [esi + 4] */
   9590     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30004F5C: cmp ecx, dword ptr [edi + 4] */
   9591     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9592     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9593     _flag_k = FK_CMP;
   9594     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F6C; /* 0x30004F5F: jne 0x30004f6c */
   9595 L_30004F61:
   9596     MEM32(edi + 0x4) = edx; /* 0x30004F61: mov dword ptr [edi + 4], edx */
   9597     MEM32(edx + 0x8) = ecx; /* 0x30004F64: mov dword ptr [edx + 8], ecx */
   9598     goto L_3000501E; /* 0x30004F67: jmp 0x3000501e */
   9599 L_30004F6C:
   9600     edi = MEM32(ecx + 0x4); /* 0x30004F6C: mov edi, dword ptr [ecx + 4] */
   9601     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x30004F6F: cmp ecx, dword ptr [edi + 8] */
   9602     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9604     _flag_k = FK_CMP;
   9605     if (CMP_NE(_flag_a, _flag_b)) goto L_30004F7F; /* 0x30004F72: jne 0x30004f7f */
   9606 L_30004F74:
   9607     MEM32(edi + 0x8) = edx; /* 0x30004F74: mov dword ptr [edi + 8], edx */
   9608     MEM32(edx + 0x8) = ecx; /* 0x30004F77: mov dword ptr [edx + 8], ecx */
   9609     goto L_3000501E; /* 0x30004F7A: jmp 0x3000501e */
   9610 L_30004F7F:
   9611     MEM32(edi) = edx; /* 0x30004F7F: mov dword ptr [edi], edx */
   9612     MEM32(edx + 0x8) = ecx; /* 0x30004F81: mov dword ptr [edx + 8], ecx */
   9613     goto L_3000501E; /* 0x30004F84: jmp 0x3000501e */
   9614 L_30004F89:
   9615     /* cmp MEM8(edx + 0x10), 0 */ /* 0x30004F89: cmp byte ptr [edx + 0x10], 0 */
   9616     _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24;
   9617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9618     _flag_k = FK_NARROW(FK_CMP, 24);
   9619     RECOMP_BACKEDGE();
   9620     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004ED1; /* 0x30004F8D: je 0x30004ed1 */
   9621 L_30004F93:
   9622     /* cmp eax, MEM32(ecx) */ /* 0x30004F93: cmp eax, dword ptr [ecx] */
   9623     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9625     _flag_k = FK_CMP;
   9626     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FD3; /* 0x30004F95: jne 0x30004fd3 */
   9627 L_30004F97:
   9628     eax = ecx; /* 0x30004F97: mov eax, ecx */
   9629     ecx = MEM32(eax); /* 0x30004F99: mov ecx, dword ptr [eax] */
   9630     edx = MEM32(ecx + 0x8); /* 0x30004F9B: mov edx, dword ptr [ecx + 8] */
   9631     MEM32(eax) = edx; /* 0x30004F9E: mov dword ptr [eax], edx */
   9632     edx = MEM32(ecx + 0x8); /* 0x30004FA0: mov edx, dword ptr [ecx + 8] */
   9633     /* cmp edx, MEM32(esi + 0x8) */ /* 0x30004FA3: cmp edx, dword ptr [esi + 8] */
   9634     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9635     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9636     _flag_k = FK_CMP;
   9637     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FAB; /* 0x30004FA6: je 0x30004fab */
   9638 L_30004FA8:
   9639     MEM32(edx + 0x4) = eax; /* 0x30004FA8: mov dword ptr [edx + 4], eax */
   9640 L_30004FAB:
   9641     edx = MEM32(eax + 0x4); /* 0x30004FAB: mov edx, dword ptr [eax + 4] */
   9642     MEM32(ecx + 0x4) = edx; /* 0x30004FAE: mov dword ptr [ecx + 4], edx */
   9643     edx = MEM32(esi + 0x4); /* 0x30004FB1: mov edx, dword ptr [esi + 4] */
   9644     /* cmp eax, MEM32(edx + 0x4) */ /* 0x30004FB4: cmp eax, dword ptr [edx + 4] */
   9645     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9647     _flag_k = FK_CMP;
   9648     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FBE; /* 0x30004FB7: jne 0x30004fbe */
   9649 L_30004FB9:
   9650     MEM32(edx + 0x4) = ecx; /* 0x30004FB9: mov dword ptr [edx + 4], ecx */
   9651     goto L_30004FCD; /* 0x30004FBC: jmp 0x30004fcd */
   9652 L_30004FBE:
   9653     edx = MEM32(eax + 0x4); /* 0x30004FBE: mov edx, dword ptr [eax + 4] */
   9654     /* cmp eax, MEM32(edx + 0x8) */ /* 0x30004FC1: cmp eax, dword ptr [edx + 8] */
   9655     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9657     _flag_k = FK_CMP;
   9658     if (CMP_NE(_flag_a, _flag_b)) goto L_30004FCB; /* 0x30004FC4: jne 0x30004fcb */
   9659 L_30004FC6:
   9660     MEM32(edx + 0x8) = ecx; /* 0x30004FC6: mov dword ptr [edx + 8], ecx */
   9661     goto L_30004FCD; /* 0x30004FC9: jmp 0x30004fcd */
   9662 L_30004FCB:
   9663     MEM32(edx) = ecx; /* 0x30004FCB: mov dword ptr [edx], ecx */
   9664 L_30004FCD:
   9665     MEM32(ecx + 0x8) = eax; /* 0x30004FCD: mov dword ptr [ecx + 8], eax */
   9666     MEM32(eax + 0x4) = ecx; /* 0x30004FD0: mov dword ptr [eax + 4], ecx */
   9667 L_30004FD3:
   9668     ecx = MEM32(eax + 0x4); /* 0x30004FD3: mov ecx, dword ptr [eax + 4] */
   9669     MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30004FD6: mov byte ptr [ecx + 0x10], bl */
   9670     edx = MEM32(eax + 0x4); /* 0x30004FD9: mov edx, dword ptr [eax + 4] */
   9671     ecx = MEM32(edx + 0x4); /* 0x30004FDC: mov ecx, dword ptr [edx + 4] */
   9672     MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x30004FDF: mov byte ptr [ecx + 0x10], 0 */
   9673     edx = MEM32(eax + 0x4); /* 0x30004FE3: mov edx, dword ptr [eax + 4] */
   9674     ecx = MEM32(edx + 0x4); /* 0x30004FE6: mov ecx, dword ptr [edx + 4] */
   9675     edx = MEM32(ecx + 0x8); /* 0x30004FE9: mov edx, dword ptr [ecx + 8] */
   9676     edi = MEM32(edx); /* 0x30004FEC: mov edi, dword ptr [edx] */
   9677     MEM32(ecx + 0x8) = edi; /* 0x30004FEE: mov dword ptr [ecx + 8], edi */
   9678     edi = MEM32(edx); /* 0x30004FF1: mov edi, dword ptr [edx] */
   9679     /* cmp edi, MEM32(esi + 0x8) */ /* 0x30004FF3: cmp edi, dword ptr [esi + 8] */
   9680     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9681     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9682     _flag_k = FK_CMP;
   9683     if (CMP_EQ(_flag_a, _flag_b)) goto L_30004FFB; /* 0x30004FF6: je 0x30004ffb */
   9684 L_30004FF8:
   9685     MEM32(edi + 0x4) = ecx; /* 0x30004FF8: mov dword ptr [edi + 4], ecx */
   9686 L_30004FFB:
   9687     edi = MEM32(ecx + 0x4); /* 0x30004FFB: mov edi, dword ptr [ecx + 4] */
   9688     MEM32(edx + 0x4) = edi; /* 0x30004FFE: mov dword ptr [edx + 4], edi */
   9689     edi = MEM32(esi + 0x4); /* 0x30005001: mov edi, dword ptr [esi + 4] */
   9690     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x30005004: cmp ecx, dword ptr [edi + 4] */
   9691     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9693     _flag_k = FK_CMP;
   9694     if (CMP_NE(_flag_a, _flag_b)) goto L_3000500E; /* 0x30005007: jne 0x3000500e */
   9695 L_30005009:
   9696     MEM32(edi + 0x4) = edx; /* 0x30005009: mov dword ptr [edi + 4], edx */
   9697     goto L_3000501C; /* 0x3000500C: jmp 0x3000501c */
   9698 L_3000500E:
   9699     edi = MEM32(ecx + 0x4); /* 0x3000500E: mov edi, dword ptr [ecx + 4] */
   9700     /* cmp ecx, MEM32(edi) */ /* 0x30005011: cmp ecx, dword ptr [edi] */
   9701     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9703     _flag_k = FK_CMP;
   9704     if (CMP_NE(_flag_a, _flag_b)) goto L_30005019; /* 0x30005013: jne 0x30005019 */
   9705 L_30005015:
   9706     MEM32(edi) = edx; /* 0x30005015: mov dword ptr [edi], edx */
   9707     goto L_3000501C; /* 0x30005017: jmp 0x3000501c */
   9708 L_30005019:
   9709     MEM32(edi + 0x8) = edx; /* 0x30005019: mov dword ptr [edi + 8], edx */
   9710 L_3000501C:
   9711     MEM32(edx) = ecx; /* 0x3000501C: mov dword ptr [edx], ecx */
   9712 L_3000501E:
   9713     MEM32(ecx + 0x4) = edx; /* 0x3000501E: mov dword ptr [ecx + 4], edx */
   9714 L_30005021:
   9715     ecx = MEM32(esi + 0x4); /* 0x30005021: mov ecx, dword ptr [esi + 4] */
   9716     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x30005024: cmp eax, dword ptr [ecx + 4] */
   9717     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9719     _flag_k = FK_CMP;
   9720     RECOMP_BACKEDGE();
   9721     if (CMP_NE(_flag_a, _flag_b)) goto L_30004EAD; /* 0x30005027: jne 0x30004ead */
   9722 L_3000502D:
   9723     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   9724     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   9725     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   9726     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   9727     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   9728     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   9729     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   9730     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   9731     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   9732     esp = ebp; /* 0x30005041: mov esp, ebp */
   9733     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   9734     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   9735     RECOMP_REGS_OUT();
   9736 }
   9737 
   9738 void sub_3000502D(void) {
   9739     int _fpu_cmp = 0;
   9740     uint32_t _cf = 0;
   9741     int _df = 1;
   9742     uint32_t _flag_k = FK_NONE;
   9743     uint32_t _flag_a = 0, _flag_b = 0;
   9744     uint32_t _itail_tgt = 0;
   9745     RECOMP_REGS_LOCALS
   9746     RECOMP_ENTER(0x3000502Du);
   9747 
   9748 L_3000502D:
   9749     edx = MEM32(esi + 0x4); /* 0x3000502D: mov edx, dword ptr [esi + 4] */
   9750     eax = MEM32(edx + 0x4); /* 0x30005030: mov eax, dword ptr [edx + 4] */
   9751     ecx = MEM32(ebp + (-0x4)); /* 0x30005033: mov ecx, dword ptr [ebp - 4] */
   9752     MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x30005036: mov byte ptr [eax + 0x10], bl */
   9753     eax = MEM32(ebp + 0x8); /* 0x30005039: mov eax, dword ptr [ebp + 8] */
   9754     edi = POP32_VAL(esp); /* 0x3000503C: pop edi */
   9755     esi = POP32_VAL(esp); /* 0x3000503D: pop esi */
   9756     MEM32(eax) = ecx; /* 0x3000503E: mov dword ptr [eax], ecx */
   9757     ebx = POP32_VAL(esp); /* 0x30005040: pop ebx */
   9758     esp = ebp; /* 0x30005041: mov esp, ebp */
   9759     ebp = POP32_VAL(esp); /* 0x30005043: pop ebp */
   9760     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30005044: ret 0x10 */
   9761     RECOMP_REGS_OUT();
   9762 }
   9763 
   9764 void sub_30005050(void) {
   9765     int _fpu_cmp = 0;
   9766     uint32_t _cf = 0;
   9767     int _df = 1;
   9768     uint32_t _flag_k = FK_NONE;
   9769     uint32_t _flag_a = 0, _flag_b = 0;
   9770     uint32_t _itail_tgt = 0;
   9771     RECOMP_REGS_LOCALS
   9772     RECOMP_ENTER(0x30005050u);
   9773 
   9774 L_30005050:
   9775     PUSH32(esp, ebp); /* 0x30005050: push ebp */
   9776     ebp = esp; /* 0x30005051: mov ebp, esp */
   9777     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   9778     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9779     esp = esp - 0x10u; /* 0x30005053: sub esp, 0x10 */
   9780     _flag_k = FK_CMP;
   9781     edx = MEM32(ecx + 0xC); /* 0x30005056: mov edx, dword ptr [ecx + 0xc] */
   9782     PUSH32(esp, ebx); /* 0x30005059: push ebx */
   9783     PUSH32(esp, esi); /* 0x3000505A: push esi */
   9784     esi = MEM32(ecx + 0x8); /* 0x3000505B: mov esi, dword ptr [ecx + 8] */
   9785     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   9786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9787     edx = edx - esi; /* 0x3000505E: sub edx, esi */
   9788     _flag_k = FK_CMP;
   9789     eax = 0x2AAAAAABu; /* 0x30005060: mov eax, 0x2aaaaaab */
   9790     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x30005065: imul edx */
   9791       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   9792       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   9793     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x30005067: sar edx, 3 */
   9794     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9795     edx = (uint32_t)((int32_t)edx >> 3u);
   9796     eax = edx; /* 0x3000506A: mov eax, edx */
   9797     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3000506C: shr eax, 0x1f */
   9798     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9799     eax = eax >> 31u; /* 0x3000506C: shr eax, 0x1f */
   9800     PUSH32(esp, edi); /* 0x3000506F: push edi */
   9801     edi = MEM32(ebp + 0xC); /* 0x30005070: mov edi, dword ptr [ebp + 0xc] */
   9802     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   9803     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9804     edx = edx + eax; /* 0x30005073: add edx, eax */
   9805     _flag_k = FK_ADD;
   9806     /* cmp edx, edi */ /* 0x30005075: cmp edx, edi */
   9807     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   9808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9809     _flag_k = FK_CMP;
   9810     MEM32(ebp + (-0x4)) = ecx; /* 0x30005077: mov dword ptr [ebp - 4], ecx */
   9811     if (CMP_AE(_flag_a, _flag_b)) goto L_300051E1; /* 0x3000507A: jae 0x300051e1 */
   9812 L_30005080:
   9813     ecx = MEM32(ecx + 0x4); /* 0x30005080: mov ecx, dword ptr [ecx + 4] */
   9814     /* test ecx, ecx */ /* 0x30005083: test ecx, ecx */
   9815     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9816     _cf = 0;
   9817     _flag_k = FK_TEST;
   9818     if (TEST_Z(_flag_a, _flag_b)) goto L_300050A2; /* 0x30005085: je 0x300050a2 */
   9819 L_30005087:
   9820     edx = esi; /* 0x30005087: mov edx, esi */
   9821     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   9822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9823     edx = edx - ecx; /* 0x30005089: sub edx, ecx */
   9824     _flag_k = FK_CMP;
   9825     eax = 0x2AAAAAABu; /* 0x3000508B: mov eax, 0x2aaaaaab */
   9826     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x30005090: imul edx */
   9827       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   9828       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   9829     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x30005092: sar edx, 3 */
   9830     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9831     edx = (uint32_t)((int32_t)edx >> 3u);
   9832     eax = edx; /* 0x30005095: mov eax, edx */
   9833     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x30005097: shr eax, 0x1f */
   9834     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9835     eax = eax >> 31u; /* 0x30005097: shr eax, 0x1f */
   9836     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   9837     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9838     edx = edx + eax; /* 0x3000509A: add edx, eax */
   9839     _flag_k = FK_ADD;
   9840     /* cmp edi, edx */ /* 0x3000509C: cmp edi, edx */
   9841     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   9842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9843     _flag_k = FK_CMP;
   9844     ebx = edx; /* 0x3000509E: mov ebx, edx */
   9845     if (CMP_B(_flag_a, _flag_b)) goto L_300050A4; /* 0x300050A0: jb 0x300050a4 */
   9846 L_300050A2:
   9847     ebx = edi; /* 0x300050A2: mov ebx, edi */
   9848 L_300050A4:
   9849     /* test ecx, ecx */ /* 0x300050A4: test ecx, ecx */
   9850     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9851     _cf = 0;
   9852     _flag_k = FK_TEST;
   9853     if (TEST_NZ(_flag_a, _flag_b)) goto L_300050AC; /* 0x300050A6: jne 0x300050ac */
   9854 L_300050A8:
   9855     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9856     edx = 0; /* 0x300050A8: xor edx, edx */
   9857     _cf = 0;
   9858     _flag_k = FK_TEST;
   9859     goto L_300050BF; /* 0x300050AA: jmp 0x300050bf */
   9860 L_300050AC:
   9861     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   9862     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9863     esi = esi - ecx; /* 0x300050AC: sub esi, ecx */
   9864     _flag_k = FK_CMP;
   9865     eax = 0x2AAAAAABu; /* 0x300050AE: mov eax, 0x2aaaaaab */
   9866     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(esi); /* 0x300050B3: imul esi */
   9867       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   9868       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   9869     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x300050B5: sar edx, 3 */
   9870     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9871     edx = (uint32_t)((int32_t)edx >> 3u);
   9872     ecx = edx; /* 0x300050B8: mov ecx, edx */
   9873     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x300050BA: shr ecx, 0x1f */
   9874     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9875     ecx = ecx >> 31u; /* 0x300050BA: shr ecx, 0x1f */
   9876     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   9877     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9878     edx = edx + ecx; /* 0x300050BD: add edx, ecx */
   9879     _flag_k = FK_ADD;
   9880 L_300050BF:
   9881     eax = edx + ebx; /* 0x300050BF: lea eax, [edx + ebx] */
   9882     /* test eax, eax */ /* 0x300050C2: test eax, eax */
   9883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9884     _cf = 0;
   9885     _flag_k = FK_TEST;
   9886     MEM32(ebp + (-0xC)) = eax; /* 0x300050C4: mov dword ptr [ebp - 0xc], eax */
   9887     if (TEST_NS(_flag_a, _flag_b)) goto L_300050CB; /* 0x300050C7: jge 0x300050cb */
   9888 L_300050C9:
   9889     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9890     eax = 0; /* 0x300050C9: xor eax, eax */
   9891     _cf = 0;
   9892     _flag_k = FK_TEST;
   9893 L_300050CB:
   9894     edx = eax + eax * 2; /* 0x300050CB: lea edx, [eax + eax*2] */
   9895     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x300050CE: shl edx, 4 */
   9896     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9897     edx = edx << 4u; /* 0x300050CE: shl edx, 4 */
   9898     PUSH32(esp, edx); /* 0x300050D1: push edx */
   9899     RECOMP_ICALL(0x300180A8u); /* 0x300050D2: call 0x300180a8 */ /* not lifted */
   9900     RECOMP_FLAGS_IN();
   9901     ebx = MEM32(ebp + (-0x4)); /* 0x300050D7: mov ebx, dword ptr [ebp - 4] */
   9902     esi = MEM32(ebx + 0x4); /* 0x300050DA: mov esi, dword ptr [ebx + 4] */
   9903     MEM32(ebp + (-0x10)) = eax; /* 0x300050DD: mov dword ptr [ebp - 0x10], eax */
   9904     MEM32(ebp + 0xC) = eax; /* 0x300050E0: mov dword ptr [ebp + 0xc], eax */
   9905     eax = MEM32(ebp + 0x8); /* 0x300050E3: mov eax, dword ptr [ebp + 8] */
   9906     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9907     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9908     esp = esp + 4; /* 0x300050E6: add esp, 4 */
   9909     _flag_k = FK_ADD;
   9910     /* cmp esi, eax */ /* 0x300050E9: cmp esi, eax */
   9911     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   9912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9913     _flag_k = FK_CMP;
   9914     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000510D; /* 0x300050EB: je 0x3000510d */
   9915 L_300050ED:
   9916     eax = MEM32(ebp + 0xC); /* 0x300050ED: mov eax, dword ptr [ebp + 0xc] */
   9917     PUSH32(esp, esi); /* 0x300050F0: push esi */
   9918     PUSH32(esp, eax); /* 0x300050F1: push eax */
   9919     RECOMP_ICALL(0x300054D0u); /* 0x300050F2: call 0x300054d0 */ /* not lifted */
   9920     RECOMP_FLAGS_IN();
   9921     edx = MEM32(ebp + 0xC); /* 0x300050F7: mov edx, dword ptr [ebp + 0xc] */
   9922     eax = MEM32(ebp + 0x8); /* 0x300050FA: mov eax, dword ptr [ebp + 8] */
   9923     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x30u);
   9924     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9925     edx = edx + 0x30u; /* 0x300050FD: add edx, 0x30 */
   9926     _flag_k = FK_ADD;
   9927     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
   9928     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9929     esi = esi + 0x30u; /* 0x30005100: add esi, 0x30 */
   9930     _flag_k = FK_ADD;
   9931     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9932     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9933     esp = esp + 8; /* 0x30005103: add esp, 8 */
   9934     _flag_k = FK_ADD;
   9935     /* cmp esi, eax */ /* 0x30005106: cmp esi, eax */
   9936     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   9937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9938     _flag_k = FK_CMP;
   9939     MEM32(ebp + 0xC) = edx; /* 0x30005108: mov dword ptr [ebp + 0xc], edx */
   9940     RECOMP_BACKEDGE();
   9941     if (CMP_NE(_flag_a, _flag_b)) goto L_300050ED; /* 0x3000510B: jne 0x300050ed */
   9942 L_3000510D:
   9943     /* test edi, edi */ /* 0x3000510D: test edi, edi */
   9944     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9945     _cf = 0;
   9946     _flag_k = FK_TEST;
   9947     esi = MEM32(ebp + 0xC); /* 0x3000510F: mov esi, dword ptr [ebp + 0xc] */
   9948     if (TEST_Z(_flag_a, _flag_b)) goto L_30005130; /* 0x30005112: jbe 0x30005130 */
   9949 L_30005114:
   9950     MEM32(ebp + (-0x8)) = edi; /* 0x30005114: mov dword ptr [ebp - 8], edi */
   9951 L_30005117:
   9952     ecx = MEM32(ebp + 0x10); /* 0x30005117: mov ecx, dword ptr [ebp + 0x10] */
   9953     PUSH32(esp, ecx); /* 0x3000511A: push ecx */
   9954     PUSH32(esp, esi); /* 0x3000511B: push esi */
   9955     RECOMP_ICALL(0x300054D0u); /* 0x3000511C: call 0x300054d0 */ /* not lifted */
   9956     RECOMP_FLAGS_IN();
   9957     eax = MEM32(ebp + (-0x8)); /* 0x30005121: mov eax, dword ptr [ebp - 8] */
   9958     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9959     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9960     esp = esp + 8; /* 0x30005124: add esp, 8 */
   9961     _flag_k = FK_ADD;
   9962     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
   9963     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9964     esi = esi + 0x30u; /* 0x30005127: add esi, 0x30 */
   9965     _flag_k = FK_ADD;
   9966     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9967     eax = eax - 1; /* 0x3000512A: dec eax */
   9968     _flag_k = FK_DEC;
   9969     MEM32(ebp + (-0x8)) = eax; /* 0x3000512B: mov dword ptr [ebp - 8], eax */
   9970     RECOMP_BACKEDGE();
   9971     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30005117; /* 0x3000512E: jne 0x30005117 */
   9972 L_30005130:
   9973     eax = MEM32(ebp + 0xC); /* 0x30005130: mov eax, dword ptr [ebp + 0xc] */
   9974     esi = MEM32(ebp + 0x8); /* 0x30005133: mov esi, dword ptr [ebp + 8] */
   9975     edx = edi + edi * 2; /* 0x30005136: lea edx, [edi + edi*2] */
   9976     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x30005139: shl edx, 4 */
   9977     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9978     edx = edx << 4u; /* 0x30005139: shl edx, 4 */
   9979     ecx = edx + eax; /* 0x3000513C: lea ecx, [edx + eax] */
   9980     eax = MEM32(ebx + 0x8); /* 0x3000513F: mov eax, dword ptr [ebx + 8] */
   9981     /* cmp esi, eax */ /* 0x30005142: cmp esi, eax */
   9982     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   9983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9984     _flag_k = FK_CMP;
   9985     MEM32(ebp + 0x10) = eax; /* 0x30005144: mov dword ptr [ebp + 0x10], eax */
   9986     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000516C; /* 0x30005147: je 0x3000516c */
   9987 L_30005149:
   9988     MEM32(ebp + 0x8) = ecx; /* 0x30005149: mov dword ptr [ebp + 8], ecx */
   9989 L_3000514C:
   9990     ecx = MEM32(ebp + 0x8); /* 0x3000514C: mov ecx, dword ptr [ebp + 8] */
   9991     PUSH32(esp, esi); /* 0x3000514F: push esi */
   9992     PUSH32(esp, ecx); /* 0x30005150: push ecx */
   9993     RECOMP_ICALL(0x300054D0u); /* 0x30005151: call 0x300054d0 */ /* not lifted */
   9994     RECOMP_FLAGS_IN();
   9995     ecx = MEM32(ebp + 0x8); /* 0x30005156: mov ecx, dword ptr [ebp + 8] */
   9996     eax = MEM32(ebp + 0x10); /* 0x30005159: mov eax, dword ptr [ebp + 0x10] */
   9997     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
   9998     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9999     esi = esi + 0x30u; /* 0x3000515C: add esi, 0x30 */
  10000     _flag_k = FK_ADD;
  10001     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u);
  10002     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10003     ecx = ecx + 0x30u; /* 0x3000515F: add ecx, 0x30 */
  10004     _flag_k = FK_ADD;
  10005     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10006     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10007     esp = esp + 8; /* 0x30005162: add esp, 8 */
  10008     _flag_k = FK_ADD;
  10009     /* cmp esi, eax */ /* 0x30005165: cmp esi, eax */
  10010     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  10011     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10012     _flag_k = FK_CMP;
  10013     MEM32(ebp + 0x8) = ecx; /* 0x30005167: mov dword ptr [ebp + 8], ecx */
  10014     RECOMP_BACKEDGE();
  10015     if (CMP_NE(_flag_a, _flag_b)) goto L_3000514C; /* 0x3000516A: jne 0x3000514c */
  10016 L_3000516C:
  10017     eax = MEM32(ebx + 0x8); /* 0x3000516C: mov eax, dword ptr [ebx + 8] */
  10018     esi = MEM32(ebx + 0x4); /* 0x3000516F: mov esi, dword ptr [ebx + 4] */
  10019     /* cmp esi, eax */ /* 0x30005172: cmp esi, eax */
  10020     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  10021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10022     _flag_k = FK_CMP;
  10023     MEM32(ebp + 0x8) = eax; /* 0x30005174: mov dword ptr [ebp + 8], eax */
  10024     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000518A; /* 0x30005177: je 0x3000518a */
  10025 L_30005179:
  10026     ecx = esi; /* 0x30005179: mov ecx, esi */
  10027     RECOMP_ICALL(0x3000A5D0u); /* 0x3000517B: call 0x3000a5d0 */ /* not lifted */
  10028     RECOMP_FLAGS_IN();
  10029     eax = MEM32(ebp + 0x8); /* 0x30005180: mov eax, dword ptr [ebp + 8] */
  10030     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
  10031     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10032     esi = esi + 0x30u; /* 0x30005183: add esi, 0x30 */
  10033     _flag_k = FK_ADD;
  10034     /* cmp esi, eax */ /* 0x30005186: cmp esi, eax */
  10035     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  10036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10037     _flag_k = FK_CMP;
  10038     RECOMP_BACKEDGE();
  10039     if (CMP_NE(_flag_a, _flag_b)) goto L_30005179; /* 0x30005188: jne 0x30005179 */
  10040 L_3000518A:
  10041     edx = MEM32(ebx + 0x4); /* 0x3000518A: mov edx, dword ptr [ebx + 4] */
  10042     PUSH32(esp, edx); /* 0x3000518D: push edx */
  10043     RECOMP_ICALL(0x30018080u); /* 0x3000518E: call 0x30018080 */ /* not lifted */
  10044     RECOMP_FLAGS_IN();
  10045     eax = MEM32(ebp + (-0xC)); /* 0x30005193: mov eax, dword ptr [ebp - 0xc] */
  10046     esi = MEM32(ebp + (-0x10)); /* 0x30005196: mov esi, dword ptr [ebp - 0x10] */
  10047     eax = eax + eax * 2; /* 0x30005199: lea eax, [eax + eax*2] */
  10048     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3000519C: shl eax, 4 */
  10049     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10050     eax = eax << 4u; /* 0x3000519C: shl eax, 4 */
  10051     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  10052     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10053     eax = eax + esi; /* 0x3000519F: add eax, esi */
  10054     _flag_k = FK_ADD;
  10055     MEM32(ebx + 0xC) = eax; /* 0x300051A1: mov dword ptr [ebx + 0xc], eax */
  10056     eax = MEM32(ebx + 0x4); /* 0x300051A4: mov eax, dword ptr [ebx + 4] */
  10057     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10058     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10059     esp = esp + 4; /* 0x300051A7: add esp, 4 */
  10060     _flag_k = FK_ADD;
  10061     /* test eax, eax */ /* 0x300051AA: test eax, eax */
  10062     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10063     _cf = 0;
  10064     _flag_k = FK_TEST;
  10065     if (TEST_NZ(_flag_a, _flag_b)) goto L_300051B2; /* 0x300051AC: jne 0x300051b2 */
  10066 L_300051AE:
  10067     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10068     edx = 0; /* 0x300051AE: xor edx, edx */
  10069     _cf = 0;
  10070     _flag_k = FK_TEST;
  10071     goto L_300051C8; /* 0x300051B0: jmp 0x300051c8 */
  10072 L_300051B2:
  10073     ecx = MEM32(ebx + 0x8); /* 0x300051B2: mov ecx, dword ptr [ebx + 8] */
  10074     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  10075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10076     ecx = ecx - eax; /* 0x300051B5: sub ecx, eax */
  10077     _flag_k = FK_CMP;
  10078     eax = 0x2AAAAAABu; /* 0x300051B7: mov eax, 0x2aaaaaab */
  10079     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x300051BC: imul ecx */
  10080       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  10081       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  10082     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x300051BE: sar edx, 3 */
  10083     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10084     edx = (uint32_t)((int32_t)edx >> 3u);
  10085     ecx = edx; /* 0x300051C1: mov ecx, edx */
  10086     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x300051C3: shr ecx, 0x1f */
  10087     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10088     ecx = ecx >> 31u; /* 0x300051C3: shr ecx, 0x1f */
  10089     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  10090     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10091     edx = edx + ecx; /* 0x300051C6: add edx, ecx */
  10092     _flag_k = FK_ADD;
  10093 L_300051C8:
  10094     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  10095     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10096     edi = edi + edx; /* 0x300051C8: add edi, edx */
  10097     _flag_k = FK_ADD;
  10098     edx = edi + edi * 2; /* 0x300051CA: lea edx, [edi + edi*2] */
  10099     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x300051CD: shl edx, 4 */
  10100     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10101     edx = edx << 4u; /* 0x300051CD: shl edx, 4 */
  10102     edi = POP32_VAL(esp); /* 0x300051D0: pop edi */
  10103     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  10104     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10105     edx = edx + esi; /* 0x300051D1: add edx, esi */
  10106     _flag_k = FK_ADD;
  10107     MEM32(ebx + 0x4) = esi; /* 0x300051D3: mov dword ptr [ebx + 4], esi */
  10108     esi = POP32_VAL(esp); /* 0x300051D6: pop esi */
  10109     MEM32(ebx + 0x8) = edx; /* 0x300051D7: mov dword ptr [ebx + 8], edx */
  10110     ebx = POP32_VAL(esp); /* 0x300051DA: pop ebx */
  10111     esp = ebp; /* 0x300051DB: mov esp, ebp */
  10112     ebp = POP32_VAL(esp); /* 0x300051DD: pop ebp */
  10113     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x300051DE: ret 0xc */
  10114 L_300051E1:
  10115     ebx = MEM32(ebp + 0x8); /* 0x300051E1: mov ebx, dword ptr [ebp + 8] */
  10116     edx = esi; /* 0x300051E4: mov edx, esi */
  10117     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10118     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10119     edx = edx - ebx; /* 0x300051E6: sub edx, ebx */
  10120     _flag_k = FK_CMP;
  10121     eax = 0x2AAAAAABu; /* 0x300051E8: mov eax, 0x2aaaaaab */
  10122     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x300051ED: imul edx */
  10123       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  10124       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  10125     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x300051EF: sar edx, 3 */
  10126     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10127     edx = (uint32_t)((int32_t)edx >> 3u);
  10128     eax = edx; /* 0x300051F2: mov eax, edx */
  10129     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x300051F4: shr eax, 0x1f */
  10130     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10131     eax = eax >> 31u; /* 0x300051F4: shr eax, 0x1f */
  10132     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  10133     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10134     edx = edx + eax; /* 0x300051F7: add edx, eax */
  10135     _flag_k = FK_ADD;
  10136     /* cmp edx, edi */ /* 0x300051F9: cmp edx, edi */
  10137     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  10138     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10139     _flag_k = FK_CMP;
  10140     if (CMP_AE(_flag_a, _flag_b)) goto L_300052A9; /* 0x300051FB: jae 0x300052a9 */
  10141 L_30005201:
  10142     eax = edi + edi * 2; /* 0x30005201: lea eax, [edi + edi*2] */
  10143     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x30005204: shl eax, 4 */
  10144     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10145     eax = eax << 4u; /* 0x30005204: shl eax, 4 */
  10146     MEM32(ebp + 0x8) = eax; /* 0x30005207: mov dword ptr [ebp + 8], eax */
  10147     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  10148     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10149     eax = eax + ebx; /* 0x3000520A: add eax, ebx */
  10150     _flag_k = FK_ADD;
  10151     /* cmp ebx, esi */ /* 0x3000520C: cmp ebx, esi */
  10152     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
  10153     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10154     _flag_k = FK_CMP;
  10155     MEM32(ebp + 0xC) = ebx; /* 0x3000520E: mov dword ptr [ebp + 0xc], ebx */
  10156     if (CMP_EQ(_flag_a, _flag_b)) goto L_3000523F; /* 0x30005211: je 0x3000523f */
  10157 L_30005213:
  10158     MEM32(ebp + (-0x8)) = eax; /* 0x30005213: mov dword ptr [ebp - 8], eax */
  10159 L_30005216:
  10160     ecx = MEM32(ebp + 0xC); /* 0x30005216: mov ecx, dword ptr [ebp + 0xc] */
  10161     edx = MEM32(ebp + (-0x8)); /* 0x30005219: mov edx, dword ptr [ebp - 8] */
  10162     PUSH32(esp, ecx); /* 0x3000521C: push ecx */
  10163     PUSH32(esp, edx); /* 0x3000521D: push edx */
  10164     RECOMP_ICALL(0x300054D0u); /* 0x3000521E: call 0x300054d0 */ /* not lifted */
  10165     RECOMP_FLAGS_IN();
  10166     eax = MEM32(ebp + 0xC); /* 0x30005223: mov eax, dword ptr [ebp + 0xc] */
  10167     edx = MEM32(ebp + (-0x8)); /* 0x30005226: mov edx, dword ptr [ebp - 8] */
  10168     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u);
  10169     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10170     eax = eax + 0x30u; /* 0x30005229: add eax, 0x30 */
  10171     _flag_k = FK_ADD;
  10172     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x30u);
  10173     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10174     edx = edx + 0x30u; /* 0x3000522C: add edx, 0x30 */
  10175     _flag_k = FK_ADD;
  10176     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10177     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10178     esp = esp + 8; /* 0x3000522F: add esp, 8 */
  10179     _flag_k = FK_ADD;
  10180     /* cmp eax, esi */ /* 0x30005232: cmp eax, esi */
  10181     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  10182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10183     _flag_k = FK_CMP;
  10184     MEM32(ebp + 0xC) = eax; /* 0x30005234: mov dword ptr [ebp + 0xc], eax */
  10185     MEM32(ebp + (-0x8)) = edx; /* 0x30005237: mov dword ptr [ebp - 8], edx */
  10186     RECOMP_BACKEDGE();
  10187     if (CMP_NE(_flag_a, _flag_b)) goto L_30005216; /* 0x3000523A: jne 0x30005216 */
  10188 L_3000523C:
  10189     ecx = MEM32(ebp + (-0x4)); /* 0x3000523C: mov ecx, dword ptr [ebp - 4] */
  10190 L_3000523F:
  10191     esi = MEM32(ecx + 0x8); /* 0x3000523F: mov esi, dword ptr [ecx + 8] */
  10192     edx = esi; /* 0x30005242: mov edx, esi */
  10193     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10195     edx = edx - ebx; /* 0x30005244: sub edx, ebx */
  10196     _flag_k = FK_CMP;
  10197     eax = 0x2AAAAAABu; /* 0x30005246: mov eax, 0x2aaaaaab */
  10198     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3000524B: imul edx */
  10199       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  10200       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  10201     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3000524D: sar edx, 3 */
  10202     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10203     edx = (uint32_t)((int32_t)edx >> 3u);
  10204     eax = edx; /* 0x30005250: mov eax, edx */
  10205     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x30005252: shr eax, 0x1f */
  10206     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10207     eax = eax >> 31u; /* 0x30005252: shr eax, 0x1f */
  10208     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
  10209     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10210     edx = edx + eax; /* 0x30005255: add edx, eax */
  10211     _flag_k = FK_ADD;
  10212     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  10213     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10214     edi = edi - edx; /* 0x30005257: sub edi, edx */
  10215     _flag_k = FK_CMP;
  10216     eax = edi; /* 0x30005259: mov eax, edi */
  10217     edi = MEM32(ebp + 0x10); /* 0x3000525B: mov edi, dword ptr [ebp + 0x10] */
  10218     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3000527C; /* 0x3000525E: je 0x3000527c */
  10219 L_30005260:
  10220     MEM32(ebp + 0x10) = eax; /* 0x30005260: mov dword ptr [ebp + 0x10], eax */
  10221 L_30005263:
  10222     PUSH32(esp, edi); /* 0x30005263: push edi */
  10223     PUSH32(esp, esi); /* 0x30005264: push esi */
  10224     RECOMP_ICALL(0x300054D0u); /* 0x30005265: call 0x300054d0 */ /* not lifted */
  10225     RECOMP_FLAGS_IN();
  10226     eax = MEM32(ebp + 0x10); /* 0x3000526A: mov eax, dword ptr [ebp + 0x10] */
  10227     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10228     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10229     esp = esp + 8; /* 0x3000526D: add esp, 8 */
  10230     _flag_k = FK_ADD;
  10231     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
  10232     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10233     esi = esi + 0x30u; /* 0x30005270: add esi, 0x30 */
  10234     _flag_k = FK_ADD;
  10235     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10236     eax = eax - 1; /* 0x30005273: dec eax */
  10237     _flag_k = FK_DEC;
  10238     MEM32(ebp + 0x10) = eax; /* 0x30005274: mov dword ptr [ebp + 0x10], eax */
  10239     RECOMP_BACKEDGE();
  10240     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30005263; /* 0x30005277: jne 0x30005263 */
  10241 L_30005279:
  10242     ecx = MEM32(ebp + (-0x4)); /* 0x30005279: mov ecx, dword ptr [ebp - 4] */
  10243 L_3000527C:
  10244     esi = MEM32(ecx + 0x8); /* 0x3000527C: mov esi, dword ptr [ecx + 8] */
  10245     /* cmp ebx, esi */ /* 0x3000527F: cmp ebx, esi */
  10246     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
  10247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10248     _flag_k = FK_CMP;
  10249     if (CMP_EQ(_flag_a, _flag_b)) goto L_30005295; /* 0x30005281: je 0x30005295 */
  10250 L_30005283:
  10251     PUSH32(esp, edi); /* 0x30005283: push edi */
  10252     ecx = ebx; /* 0x30005284: mov ecx, ebx */
  10253     RECOMP_ICALL(0x3000A650u); /* 0x30005286: call 0x3000a650 */ /* not lifted */
  10254     RECOMP_FLAGS_IN();
  10255     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u);
  10256     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10257     ebx = ebx + 0x30u; /* 0x3000528B: add ebx, 0x30 */
  10258     _flag_k = FK_ADD;
  10259     /* cmp ebx, esi */ /* 0x3000528E: cmp ebx, esi */
  10260     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
  10261     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10262     _flag_k = FK_CMP;
  10263     RECOMP_BACKEDGE();
  10264     if (CMP_NE(_flag_a, _flag_b)) goto L_30005283; /* 0x30005290: jne 0x30005283 */
  10265 L_30005292:
  10266     ecx = MEM32(ebp + (-0x4)); /* 0x30005292: mov ecx, dword ptr [ebp - 4] */
  10267 L_30005295:
  10268     eax = MEM32(ecx + 0x8); /* 0x30005295: mov eax, dword ptr [ecx + 8] */
  10269     edx = MEM32(ebp + 0x8); /* 0x30005298: mov edx, dword ptr [ebp + 8] */
  10270     edi = POP32_VAL(esp); /* 0x3000529B: pop edi */
  10271     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  10272     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10273     eax = eax + edx; /* 0x3000529C: add eax, edx */
  10274     _flag_k = FK_ADD;
  10275     esi = POP32_VAL(esp); /* 0x3000529E: pop esi */
  10276     MEM32(ecx + 0x8) = eax; /* 0x3000529F: mov dword ptr [ecx + 8], eax */
  10277     ebx = POP32_VAL(esp); /* 0x300052A2: pop ebx */
  10278     esp = ebp; /* 0x300052A3: mov esp, ebp */
  10279     ebp = POP32_VAL(esp); /* 0x300052A5: pop ebp */
  10280     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x300052A6: ret 0xc */
  10281 L_300052A9:
  10282     /* test edi, edi */ /* 0x300052A9: test edi, edi */
  10283     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  10284     _cf = 0;
  10285     _flag_k = FK_TEST;
  10286     if (TEST_Z(_flag_a, _flag_b)) goto L_30005329; /* 0x300052AB: jbe 0x30005329 */
  10287 L_300052AD:
  10288     eax = edi + edi * 2; /* 0x300052AD: lea eax, [edi + edi*2] */
  10289     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x300052B0: shl eax, 4 */
  10290     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10291     eax = eax << 4u; /* 0x300052B0: shl eax, 4 */
  10292     edi = esi; /* 0x300052B3: mov edi, esi */
  10293     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  10294     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10295     edi = edi - eax; /* 0x300052B5: sub edi, eax */
  10296     _flag_k = FK_CMP;
  10297     /* cmp edi, esi */ /* 0x300052B7: cmp edi, esi */
  10298     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
  10299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10300     _flag_k = FK_CMP;
  10301     MEM32(ebp + 0xC) = esi; /* 0x300052B9: mov dword ptr [ebp + 0xc], esi */
  10302     MEM32(ebp + 0x8) = eax; /* 0x300052BC: mov dword ptr [ebp + 8], eax */
  10303     if (CMP_EQ(_flag_a, _flag_b)) goto L_300052E4; /* 0x300052BF: je 0x300052e4 */
  10304 L_300052C1:
  10305     eax = MEM32(ebp + 0xC); /* 0x300052C1: mov eax, dword ptr [ebp + 0xc] */
  10306     PUSH32(esp, edi); /* 0x300052C4: push edi */
  10307     PUSH32(esp, eax); /* 0x300052C5: push eax */
  10308     RECOMP_ICALL(0x300054D0u); /* 0x300052C6: call 0x300054d0 */ /* not lifted */
  10309     RECOMP_FLAGS_IN();
  10310     edx = MEM32(ebp + 0xC); /* 0x300052CB: mov edx, dword ptr [ebp + 0xc] */
  10311     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x30u);
  10312     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10313     edx = edx + 0x30u; /* 0x300052CE: add edx, 0x30 */
  10314     _flag_k = FK_ADD;
  10315     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u);
  10316     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10317     edi = edi + 0x30u; /* 0x300052D1: add edi, 0x30 */
  10318     _flag_k = FK_ADD;
  10319     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10320     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10321     esp = esp + 8; /* 0x300052D4: add esp, 8 */
  10322     _flag_k = FK_ADD;
  10323     /* cmp edi, esi */ /* 0x300052D7: cmp edi, esi */
  10324     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
  10325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10326     _flag_k = FK_CMP;
  10327     MEM32(ebp + 0xC) = edx; /* 0x300052D9: mov dword ptr [ebp + 0xc], edx */
  10328     RECOMP_BACKEDGE();
  10329     if (CMP_NE(_flag_a, _flag_b)) goto L_300052C1; /* 0x300052DC: jne 0x300052c1 */
  10330 L_300052DE:
  10331     ecx = MEM32(ebp + (-0x4)); /* 0x300052DE: mov ecx, dword ptr [ebp - 4] */
  10332     eax = MEM32(ebp + 0x8); /* 0x300052E1: mov eax, dword ptr [ebp + 8] */
  10333 L_300052E4:
  10334     edi = MEM32(ecx + 0x8); /* 0x300052E4: mov edi, dword ptr [ecx + 8] */
  10335     esi = edi; /* 0x300052E7: mov esi, edi */
  10336     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  10337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10338     esi = esi - eax; /* 0x300052E9: sub esi, eax */
  10339     _flag_k = FK_CMP;
  10340     /* cmp ebx, esi */ /* 0x300052EB: cmp ebx, esi */
  10341     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
  10342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10343     _flag_k = FK_CMP;
  10344     if (CMP_EQ(_flag_a, _flag_b)) goto L_30005307; /* 0x300052ED: je 0x30005307 */
  10345 L_300052EF:
  10346     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
  10347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10348     esi = esi - 0x30u; /* 0x300052EF: sub esi, 0x30 */
  10349     _flag_k = FK_CMP;
  10350     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u);
  10351     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10352     edi = edi - 0x30u; /* 0x300052F2: sub edi, 0x30 */
  10353     _flag_k = FK_CMP;
  10354     PUSH32(esp, esi); /* 0x300052F5: push esi */
  10355     ecx = edi; /* 0x300052F6: mov ecx, edi */
  10356     RECOMP_ICALL(0x3000A650u); /* 0x300052F8: call 0x3000a650 */ /* not lifted */
  10357     RECOMP_FLAGS_IN();
  10358     /* cmp esi, ebx */ /* 0x300052FD: cmp esi, ebx */
  10359     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  10360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10361     _flag_k = FK_CMP;
  10362     RECOMP_BACKEDGE();
  10363     if (CMP_NE(_flag_a, _flag_b)) goto L_300052EF; /* 0x300052FF: jne 0x300052ef */
  10364 L_30005301:
  10365     ecx = MEM32(ebp + (-0x4)); /* 0x30005301: mov ecx, dword ptr [ebp - 4] */
  10366     eax = MEM32(ebp + 0x8); /* 0x30005304: mov eax, dword ptr [ebp + 8] */
  10367 L_30005307:
  10368     esi = eax + ebx; /* 0x30005307: lea esi, [eax + ebx] */
  10369     /* cmp ebx, esi */ /* 0x3000530A: cmp ebx, esi */
  10370     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
  10371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10372     _flag_k = FK_CMP;
  10373     if (CMP_EQ(_flag_a, _flag_b)) goto L_30005326; /* 0x3000530C: je 0x30005326 */
  10374 L_3000530E:
  10375     edi = MEM32(ebp + 0x10); /* 0x3000530E: mov edi, dword ptr [ebp + 0x10] */
  10376 L_30005311:
  10377     PUSH32(esp, edi); /* 0x30005311: push edi */
  10378     ecx = ebx; /* 0x30005312: mov ecx, ebx */
  10379     RECOMP_ICALL(0x3000A650u); /* 0x30005314: call 0x3000a650 */ /* not lifted */
  10380     RECOMP_FLAGS_IN();
  10381     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u);
  10382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10383     ebx = ebx + 0x30u; /* 0x30005319: add ebx, 0x30 */
  10384     _flag_k = FK_ADD;
  10385     /* cmp ebx, esi */ /* 0x3000531C: cmp ebx, esi */
  10386     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
  10387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10388     _flag_k = FK_CMP;
  10389     RECOMP_BACKEDGE();
  10390     if (CMP_NE(_flag_a, _flag_b)) goto L_30005311; /* 0x3000531E: jne 0x30005311 */
  10391 L_30005320:
  10392     ecx = MEM32(ebp + (-0x4)); /* 0x30005320: mov ecx, dword ptr [ebp - 4] */
  10393     eax = MEM32(ebp + 0x8); /* 0x30005323: mov eax, dword ptr [ebp + 8] */
  10394 L_30005326:
  10395     _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(eax);
  10396     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10397     MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + eax; /* 0x30005326: add dword ptr [ecx + 8], eax */
  10398     _flag_k = FK_ADD;
  10399 L_30005329:
  10400     edi = POP32_VAL(esp); /* 0x30005329: pop edi */
  10401     esi = POP32_VAL(esp); /* 0x3000532A: pop esi */
  10402     ebx = POP32_VAL(esp); /* 0x3000532B: pop ebx */
  10403     esp = ebp; /* 0x3000532C: mov esp, ebp */
  10404     ebp = POP32_VAL(esp); /* 0x3000532E: pop ebp */
  10405     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3000532F: ret 0xc */
  10406     RECOMP_REGS_OUT();
  10407 }
  10408 
  10409 void sub_30005340(void) {
  10410     int _fpu_cmp = 0;
  10411     uint32_t _cf = 0;
  10412     int _df = 1;
  10413     uint32_t _flag_k = FK_NONE;
  10414     uint32_t _flag_a = 0, _flag_b = 0;
  10415     uint32_t _itail_tgt = 0;
  10416     RECOMP_REGS_LOCALS
  10417     RECOMP_ENTER(0x30005340u);
  10418 
  10419 L_30005340:
  10420     PUSH32(esp, ebp); /* 0x30005340: push ebp */
  10421     ebp = esp; /* 0x30005341: mov ebp, esp */
  10422     eax = MEM32(ebp + 0xC); /* 0x30005343: mov eax, dword ptr [ebp + 0xc] */
  10423     /* test eax, eax */ /* 0x30005346: test eax, eax */
  10424     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10425     _cf = 0;
  10426     _flag_k = FK_TEST;
  10427     if (TEST_Z(_flag_a, _flag_b)) goto L_30005362; /* 0x30005348: jbe 0x30005362 */
  10428 L_3000534A:
  10429     edx = MEM32(ebp + 0x10); /* 0x3000534A: mov edx, dword ptr [ebp + 0x10] */
  10430     ecx = eax; /* 0x3000534D: mov ecx, eax */
  10431     eax = MEM32(ebp + 0x8); /* 0x3000534F: mov eax, dword ptr [ebp + 8] */
  10432     PUSH32(esp, esi); /* 0x30005352: push esi */
  10433 L_30005353:
  10434     /* test eax, eax */ /* 0x30005353: test eax, eax */
  10435     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10436     _cf = 0;
  10437     _flag_k = FK_TEST;
  10438     if (TEST_Z(_flag_a, _flag_b)) goto L_3000535B; /* 0x30005355: je 0x3000535b */
  10439 L_30005357:
  10440     esi = MEM32(edx); /* 0x30005357: mov esi, dword ptr [edx] */
  10441     MEM32(eax) = esi; /* 0x30005359: mov dword ptr [eax], esi */
  10442 L_3000535B:
  10443     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  10444     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10445     eax = eax + 4; /* 0x3000535B: add eax, 4 */
  10446     _flag_k = FK_ADD;
  10447     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10448     ecx = ecx - 1; /* 0x3000535E: dec ecx */
  10449     _flag_k = FK_DEC;
  10450     RECOMP_BACKEDGE();
  10451     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30005353; /* 0x3000535F: jne 0x30005353 */
  10452 L_30005361:
  10453     esi = POP32_VAL(esp); /* 0x30005361: pop esi */
  10454 L_30005362:
  10455     ebp = POP32_VAL(esp); /* 0x30005362: pop ebp */
  10456     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30005363: ret 0xc */
  10457     RECOMP_REGS_OUT();
  10458 }
  10459 
  10460 void sub_30005370(void) {
  10461     int _fpu_cmp = 0;
  10462     uint32_t _cf = 0;
  10463     int _df = 1;
  10464     uint32_t _flag_k = FK_NONE;
  10465     uint32_t _flag_a = 0, _flag_b = 0;
  10466     uint32_t _itail_tgt = 0;
  10467     RECOMP_REGS_LOCALS
  10468     RECOMP_ENTER(0x30005370u);
  10469 
  10470 L_30005370:
  10471     eax = MEM32(ecx); /* 0x30005370: mov eax, dword ptr [ecx] */
  10472     SET_LO8(edx, MEM8(eax + 0x10)); /* 0x30005372: mov dl, byte ptr [eax + 0x10] */
  10473     /* test LO8(edx), LO8(edx) */ /* 0x30005375: test dl, dl */
  10474     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10475     _cf = 0;
  10476     _flag_k = FK_NARROW(FK_TEST, 24);
  10477     PUSH32(esp, ebx); /* 0x30005377: push ebx */
  10478     if (TEST_NZ(_flag_a, _flag_b)) goto L_30005389; /* 0x30005378: jne 0x30005389 */
  10479 L_3000537A:
  10480     edx = MEM32(eax + 0x4); /* 0x3000537A: mov edx, dword ptr [eax + 4] */
  10481     /* cmp MEM32(edx + 0x4), eax */ /* 0x3000537D: cmp dword ptr [edx + 4], eax */
  10482     _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax);
  10483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10484     _flag_k = FK_CMP;
  10485     if (CMP_NE(_flag_a, _flag_b)) goto L_30005389; /* 0x30005380: jne 0x30005389 */
  10486 L_30005382:
  10487     eax = MEM32(eax + 0x8); /* 0x30005382: mov eax, dword ptr [eax + 8] */
  10488     MEM32(ecx) = eax; /* 0x30005385: mov dword ptr [ecx], eax */
  10489     ebx = POP32_VAL(esp); /* 0x30005387: pop ebx */
  10490     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005388: ret  */
  10491 L_30005389:
  10492     edx = MEM32(eax); /* 0x30005389: mov edx, dword ptr [eax] */
  10493     SET_LO8(ebx, MEM8(edx + 0x11)); /* 0x3000538B: mov bl, byte ptr [edx + 0x11] */
  10494     /* test LO8(ebx), LO8(ebx) */ /* 0x3000538E: test bl, bl */
  10495     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10496     _cf = 0;
  10497     _flag_k = FK_NARROW(FK_TEST, 24);
  10498     if (TEST_NZ(_flag_a, _flag_b)) goto L_300053AC; /* 0x30005390: jne 0x300053ac */
  10499 L_30005392:
  10500     eax = MEM32(edx + 0x8); /* 0x30005392: mov eax, dword ptr [edx + 8] */
  10501     SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x30005395: mov bl, byte ptr [eax + 0x11] */
  10502     /* test LO8(ebx), LO8(ebx) */ /* 0x30005398: test bl, bl */
  10503     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10504     _cf = 0;
  10505     _flag_k = FK_NARROW(FK_TEST, 24);
  10506     if (TEST_NZ(_flag_a, _flag_b)) goto L_300053A8; /* 0x3000539A: jne 0x300053a8 */
  10507 L_3000539C:
  10508     edx = eax; /* 0x3000539C: mov edx, eax */
  10509     eax = MEM32(edx + 0x8); /* 0x3000539E: mov eax, dword ptr [edx + 8] */
  10510     SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x300053A1: mov bl, byte ptr [eax + 0x11] */
  10511     /* test LO8(ebx), LO8(ebx) */ /* 0x300053A4: test bl, bl */
  10512     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10513     _cf = 0;
  10514     _flag_k = FK_NARROW(FK_TEST, 24);
  10515     RECOMP_BACKEDGE();
  10516     if (TEST_Z(_flag_a, _flag_b)) goto L_3000539C; /* 0x300053A6: je 0x3000539c */
  10517 L_300053A8:
  10518     MEM32(ecx) = edx; /* 0x300053A8: mov dword ptr [ecx], edx */
  10519     ebx = POP32_VAL(esp); /* 0x300053AA: pop ebx */
  10520     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300053AB: ret  */
  10521 L_300053AC:
  10522     eax = MEM32(eax + 0x4); /* 0x300053AC: mov eax, dword ptr [eax + 4] */
  10523     edx = MEM32(ecx); /* 0x300053AF: mov edx, dword ptr [ecx] */
  10524     /* cmp edx, MEM32(eax) */ /* 0x300053B1: cmp edx, dword ptr [eax] */
  10525     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
  10526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10527     _flag_k = FK_CMP;
  10528     if (CMP_NE(_flag_a, _flag_b)) goto L_300053C0; /* 0x300053B3: jne 0x300053c0 */
  10529 L_300053B5:
  10530     MEM32(ecx) = eax; /* 0x300053B5: mov dword ptr [ecx], eax */
  10531     eax = MEM32(eax + 0x4); /* 0x300053B7: mov eax, dword ptr [eax + 4] */
  10532     edx = MEM32(ecx); /* 0x300053BA: mov edx, dword ptr [ecx] */
  10533     /* cmp edx, MEM32(eax) */ /* 0x300053BC: cmp edx, dword ptr [eax] */
  10534     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
  10535     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10536     _flag_k = FK_CMP;
  10537     RECOMP_BACKEDGE();
  10538     if (CMP_EQ(_flag_a, _flag_b)) goto L_300053B5; /* 0x300053BE: je 0x300053b5 */
  10539 L_300053C0:
  10540     MEM32(ecx) = eax; /* 0x300053C0: mov dword ptr [ecx], eax */
  10541     ebx = POP32_VAL(esp); /* 0x300053C2: pop ebx */
  10542     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300053C3: ret  */
  10543     RECOMP_REGS_OUT();
  10544 }
  10545 
  10546 void sub_300053D0(void) {
  10547     int _fpu_cmp = 0;
  10548     uint32_t _cf = 0;
  10549     int _df = 1;
  10550     uint32_t _flag_k = FK_NONE;
  10551     uint32_t _flag_a = 0, _flag_b = 0;
  10552     uint32_t _itail_tgt = 0;
  10553     RECOMP_REGS_LOCALS
  10554     RECOMP_ENTER(0x300053D0u);
  10555 
  10556 L_300053D0:
  10557     PUSH32(esp, ebp); /* 0x300053D0: push ebp */
  10558     ebp = esp; /* 0x300053D1: mov ebp, esp */
  10559     eax = MEM32(ebp + 0x8); /* 0x300053D3: mov eax, dword ptr [ebp + 8] */
  10560     /* test eax, eax */ /* 0x300053D6: test eax, eax */
  10561     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10562     _cf = 0;
  10563     _flag_k = FK_TEST;
  10564     if (TEST_Z(_flag_a, _flag_b)) goto L_300053E1; /* 0x300053D8: je 0x300053e1 */
  10565 L_300053DA:
  10566     ecx = MEM32(ebp + 0xC); /* 0x300053DA: mov ecx, dword ptr [ebp + 0xc] */
  10567     edx = MEM32(ecx); /* 0x300053DD: mov edx, dword ptr [ecx] */
  10568     MEM32(eax) = edx; /* 0x300053DF: mov dword ptr [eax], edx */
  10569 L_300053E1:
  10570     ebp = POP32_VAL(esp); /* 0x300053E1: pop ebp */
  10571     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300053E2: ret  */
  10572     RECOMP_REGS_OUT();
  10573 }
  10574 
  10575 void sub_300053F0(void) {
  10576     int _fpu_cmp = 0;
  10577     uint32_t _cf = 0;
  10578     int _df = 1;
  10579     uint32_t _flag_k = FK_NONE;
  10580     uint32_t _flag_a = 0, _flag_b = 0;
  10581     uint32_t _itail_tgt = 0;
  10582     RECOMP_REGS_LOCALS
  10583     RECOMP_ENTER(0x300053F0u);
  10584 
  10585 L_300053F0:
  10586     PUSH32(esp, ebp); /* 0x300053F0: push ebp */
  10587     ebp = esp; /* 0x300053F1: mov ebp, esp */
  10588     PUSH32(esp, 0xFFFFFFFFu); /* 0x300053F3: push -1 */
  10589     PUSH32(esp, 0x300186C2u); /* 0x300053F5: push 0x300186c2 */
  10590     eax = MEM32(FS_BASE + (0)); /* 0x300053FA: mov eax, dword ptr fs:[0] */
  10591     PUSH32(esp, eax); /* 0x30005400: push eax */
  10592     MEM32(FS_BASE + (0)) = esp; /* 0x30005401: mov dword ptr fs:[0], esp */
  10593     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10594     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10595     esp = esp - 8; /* 0x30005408: sub esp, 8 */
  10596     _flag_k = FK_CMP;
  10597     PUSH32(esp, esi); /* 0x3000540B: push esi */
  10598     esi = MEM32(ebp + 0x8); /* 0x3000540C: mov esi, dword ptr [ebp + 8] */
  10599     MEM32(ebp + (-0x10)) = esi; /* 0x3000540F: mov dword ptr [ebp - 0x10], esi */
  10600     /* test esi, esi */ /* 0x30005412: test esi, esi */
  10601     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  10602     _cf = 0;
  10603     _flag_k = FK_TEST;
  10604     MEM32(ebp + (-0x4)) = 0; /* 0x30005414: mov dword ptr [ebp - 4], 0 */
  10605     if (TEST_Z(_flag_a, _flag_b)) goto L_300054A3; /* 0x3000541B: je 0x300054a3 */
  10606 L_30005421:
  10607     PUSH32(esp, ebx); /* 0x30005421: push ebx */
  10608     PUSH32(esp, edi); /* 0x30005422: push edi */
  10609     edi = MEM32(ebp + 0xC); /* 0x30005423: mov edi, dword ptr [ebp + 0xc] */
  10610     SET_LO8(eax, MEM8(edi)); /* 0x30005426: mov al, byte ptr [edi] */
  10611     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x30005428: mov byte ptr [esi], al */
  10612     eax = MEM32(edi + 0x4); /* 0x3000542A: mov eax, dword ptr [edi + 4] */
  10613     /* test eax, eax */ /* 0x3000542D: test eax, eax */
  10614     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10615     _cf = 0;
  10616     _flag_k = FK_TEST;
  10617     if (TEST_NZ(_flag_a, _flag_b)) goto L_30005435; /* 0x3000542F: jne 0x30005435 */
  10618 L_30005431:
  10619     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10620     edx = 0; /* 0x30005431: xor edx, edx */
  10621     _cf = 0;
  10622     _flag_k = FK_TEST;
  10623     goto L_3000544B; /* 0x30005433: jmp 0x3000544b */
  10624 L_30005435:
  10625     ecx = MEM32(edi + 0x8); /* 0x30005435: mov ecx, dword ptr [edi + 8] */
  10626     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  10627     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10628     ecx = ecx - eax; /* 0x30005438: sub ecx, eax */
  10629     _flag_k = FK_CMP;
  10630     eax = 0x2AAAAAABu; /* 0x3000543A: mov eax, 0x2aaaaaab */
  10631     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3000543F: imul ecx */
  10632       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  10633       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  10634     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x30005441: sar edx, 3 */
  10635     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10636     edx = (uint32_t)((int32_t)edx >> 3u);
  10637     ecx = edx; /* 0x30005444: mov ecx, edx */
  10638     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x30005446: shr ecx, 0x1f */
  10639     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10640     ecx = ecx >> 31u; /* 0x30005446: shr ecx, 0x1f */
  10641     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  10642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10643     edx = edx + ecx; /* 0x30005449: add edx, ecx */
  10644     _flag_k = FK_ADD;
  10645 L_3000544B:
  10646     /* test edx, edx */ /* 0x3000544B: test edx, edx */
  10647     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  10648     _cf = 0;
  10649     _flag_k = FK_TEST;
  10650     eax = edx; /* 0x3000544D: mov eax, edx */
  10651     if (TEST_NS(_flag_a, _flag_b)) goto L_30005453; /* 0x3000544F: jge 0x30005453 */
  10652 L_30005451:
  10653     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10654     eax = 0; /* 0x30005451: xor eax, eax */
  10655     _cf = 0;
  10656     _flag_k = FK_TEST;
  10657 L_30005453:
  10658     edx = eax + eax * 2; /* 0x30005453: lea edx, [eax + eax*2] */
  10659     if (4u) _cf = (((edx) >> 28) & 1u); /* 0x30005456: shl edx, 4 */
  10660     if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10661     edx = edx << 4u; /* 0x30005456: shl edx, 4 */
  10662     PUSH32(esp, edx); /* 0x30005459: push edx */
  10663     RECOMP_ICALL(0x300180A8u); /* 0x3000545A: call 0x300180a8 */ /* not lifted */
  10664     RECOMP_FLAGS_IN();
  10665     MEM32(esi + 0x4) = eax; /* 0x3000545F: mov dword ptr [esi + 4], eax */
  10666     ebx = MEM32(edi + 0x8); /* 0x30005462: mov ebx, dword ptr [edi + 8] */
  10667     edi = MEM32(edi + 0x4); /* 0x30005465: mov edi, dword ptr [edi + 4] */
  10668     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10669     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10670     esp = esp + 4; /* 0x30005468: add esp, 4 */
  10671     _flag_k = FK_ADD;
  10672     /* cmp edi, ebx */ /* 0x3000546B: cmp edi, ebx */
  10673     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
  10674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10675     _flag_k = FK_CMP;
  10676     esi = eax; /* 0x3000546D: mov esi, eax */
  10677     MEM32(ebp + 0xC) = esi; /* 0x3000546F: mov dword ptr [ebp + 0xc], esi */
  10678     if (CMP_EQ(_flag_a, _flag_b)) goto L_30005498; /* 0x30005472: je 0x30005498 */
  10679 L_30005474:
  10680     MEM32(ebp + (-0x14)) = esi; /* 0x30005474: mov dword ptr [ebp - 0x14], esi */
  10681     /* test esi, esi */ /* 0x30005477: test esi, esi */
  10682     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  10683     _cf = 0;
  10684     _flag_k = FK_TEST;
  10685     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x30005479: mov byte ptr [ebp - 4], 1 */
  10686     if (TEST_Z(_flag_a, _flag_b)) goto L_30005487; /* 0x3000547D: je 0x30005487 */
  10687 L_3000547F:
  10688     PUSH32(esp, edi); /* 0x3000547F: push edi */
  10689     ecx = esi; /* 0x30005480: mov ecx, esi */
  10690     RECOMP_ICALL(0x3000A560u); /* 0x30005482: call 0x3000a560 */ /* not lifted */
  10691     RECOMP_FLAGS_IN();
  10692 L_30005487:
  10693     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u);
  10694     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10695     esi = esi + 0x30u; /* 0x30005487: add esi, 0x30 */
  10696     _flag_k = FK_ADD;
  10697     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u);
  10698     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10699     edi = edi + 0x30u; /* 0x3000548A: add edi, 0x30 */
  10700     _flag_k = FK_ADD;
  10701     /* cmp edi, ebx */ /* 0x3000548D: cmp edi, ebx */
  10702     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
  10703     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10704     _flag_k = FK_CMP;
  10705     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3000548F: mov byte ptr [ebp - 4], 0 */
  10706     MEM32(ebp + 0xC) = esi; /* 0x30005493: mov dword ptr [ebp + 0xc], esi */
  10707     RECOMP_BACKEDGE();
  10708     if (CMP_NE(_flag_a, _flag_b)) goto L_30005474; /* 0x30005496: jne 0x30005474 */
  10709 L_30005498:
  10710     eax = MEM32(ebp + 0x8); /* 0x30005498: mov eax, dword ptr [ebp + 8] */
  10711     edi = POP32_VAL(esp); /* 0x3000549B: pop edi */
  10712     MEM32(eax + 0x8) = esi; /* 0x3000549C: mov dword ptr [eax + 8], esi */
  10713     MEM32(eax + 0xC) = esi; /* 0x3000549F: mov dword ptr [eax + 0xc], esi */
  10714     ebx = POP32_VAL(esp); /* 0x300054A2: pop ebx */
  10715 L_300054A3:
  10716     ecx = MEM32(ebp + (-0xC)); /* 0x300054A3: mov ecx, dword ptr [ebp - 0xc] */
  10717     esi = POP32_VAL(esp); /* 0x300054A6: pop esi */
  10718     MEM32(FS_BASE + (0)) = ecx; /* 0x300054A7: mov dword ptr fs:[0], ecx */
  10719     esp = ebp; /* 0x300054AE: mov esp, ebp */
  10720     ebp = POP32_VAL(esp); /* 0x300054B0: pop ebp */
  10721     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300054B1: ret  */
  10722     RECOMP_REGS_OUT();
  10723 }
  10724 
  10725 void sub_300054C0(void) {
  10726     int _fpu_cmp = 0;
  10727     uint32_t _cf = 0;
  10728     int _df = 1;
  10729     uint32_t _flag_k = FK_NONE;
  10730     uint32_t _flag_a = 0, _flag_b = 0;
  10731     uint32_t _itail_tgt = 0;
  10732     RECOMP_REGS_LOCALS
  10733     RECOMP_ENTER(0x300054C0u);
  10734 
  10735 L_300054C0:
  10736     PUSH32(esp, ebp); /* 0x300054C0: push ebp */
  10737     ebp = esp; /* 0x300054C1: mov ebp, esp */
  10738     ecx = MEM32(ebp + 0x8); /* 0x300054C3: mov ecx, dword ptr [ebp + 8] */
  10739     RECOMP_ICALL(0x3000A5D0u); /* 0x300054C6: call 0x3000a5d0 */ /* not lifted */
  10740     RECOMP_FLAGS_IN();
  10741     ebp = POP32_VAL(esp); /* 0x300054CB: pop ebp */
  10742     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300054CC: ret  */
  10743     RECOMP_REGS_OUT();
  10744 }
  10745 
  10746 void sub_300054D0(void) {
  10747     int _fpu_cmp = 0;
  10748     uint32_t _cf = 0;
  10749     int _df = 1;
  10750     uint32_t _flag_k = FK_NONE;
  10751     uint32_t _flag_a = 0, _flag_b = 0;
  10752     uint32_t _itail_tgt = 0;
  10753     RECOMP_REGS_LOCALS
  10754     RECOMP_ENTER(0x300054D0u);
  10755 
  10756 L_300054D0:
  10757     PUSH32(esp, ebp); /* 0x300054D0: push ebp */
  10758     ebp = esp; /* 0x300054D1: mov ebp, esp */
  10759     PUSH32(esp, 0xFFFFFFFFu); /* 0x300054D3: push -1 */
  10760     PUSH32(esp, 0x300186E1u); /* 0x300054D5: push 0x300186e1 */
  10761     eax = MEM32(FS_BASE + (0)); /* 0x300054DA: mov eax, dword ptr fs:[0] */
  10762     PUSH32(esp, eax); /* 0x300054E0: push eax */
  10763     MEM32(FS_BASE + (0)) = esp; /* 0x300054E1: mov dword ptr fs:[0], esp */
  10764     PUSH32(esp, ecx); /* 0x300054E8: push ecx */
  10765     ecx = MEM32(ebp + 0x8); /* 0x300054E9: mov ecx, dword ptr [ebp + 8] */
  10766     MEM32(ebp + (-0x10)) = ecx; /* 0x300054EC: mov dword ptr [ebp - 0x10], ecx */
  10767     /* test ecx, ecx */ /* 0x300054EF: test ecx, ecx */
  10768     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  10769     _cf = 0;
  10770     _flag_k = FK_TEST;
  10771     MEM32(ebp + (-0x4)) = 0; /* 0x300054F1: mov dword ptr [ebp - 4], 0 */
  10772     if (TEST_Z(_flag_a, _flag_b)) goto L_30005503; /* 0x300054F8: je 0x30005503 */
  10773 L_300054FA:
  10774     eax = MEM32(ebp + 0xC); /* 0x300054FA: mov eax, dword ptr [ebp + 0xc] */
  10775     PUSH32(esp, eax); /* 0x300054FD: push eax */
  10776     RECOMP_ICALL(0x3000A560u); /* 0x300054FE: call 0x3000a560 */ /* not lifted */
  10777     RECOMP_FLAGS_IN();
  10778 L_30005503:
  10779     ecx = MEM32(ebp + (-0xC)); /* 0x30005503: mov ecx, dword ptr [ebp - 0xc] */
  10780     MEM32(FS_BASE + (0)) = ecx; /* 0x30005506: mov dword ptr fs:[0], ecx */
  10781     esp = ebp; /* 0x3000550D: mov esp, ebp */
  10782     ebp = POP32_VAL(esp); /* 0x3000550F: pop ebp */
  10783     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005510: ret  */
  10784     RECOMP_REGS_OUT();
  10785 }
  10786 
  10787 void sub_30005520(void) {
  10788     int _fpu_cmp = 0;
  10789     uint32_t _cf = 0;
  10790     int _df = 1;
  10791     uint32_t _flag_k = FK_NONE;
  10792     uint32_t _flag_a = 0, _flag_b = 0;
  10793     uint32_t _itail_tgt = 0;
  10794     RECOMP_REGS_LOCALS
  10795     RECOMP_ENTER(0x30005520u);
  10796 
  10797 L_30005520:
  10798     PUSH32(esp, ebp); /* 0x30005520: push ebp */
  10799     ebp = esp; /* 0x30005521: mov ebp, esp */
  10800     PUSH32(esp, esi); /* 0x30005523: push esi */
  10801     esi = ecx; /* 0x30005524: mov esi, ecx */
  10802     RECOMP_ICALL(0x3000A5D0u); /* 0x30005526: call 0x3000a5d0 */ /* not lifted */
  10803     RECOMP_FLAGS_IN();
  10804     /* test MEM8(ebp + 0x8), 1 */ /* 0x3000552B: test byte ptr [ebp + 8], 1 */
  10805     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  10806     _cf = 0;
  10807     _flag_k = FK_NARROW(FK_TEST, 24);
  10808     if (TEST_Z(_flag_a, _flag_b)) goto L_3000553A; /* 0x3000552F: je 0x3000553a */
  10809 L_30005531:
  10810     PUSH32(esp, esi); /* 0x30005531: push esi */
  10811     RECOMP_ICALL(0x30018080u); /* 0x30005532: call 0x30018080 */ /* not lifted */
  10812     RECOMP_FLAGS_IN();
  10813     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10814     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10815     esp = esp + 4; /* 0x30005537: add esp, 4 */
  10816     _flag_k = FK_ADD;
  10817 L_3000553A:
  10818     eax = esi; /* 0x3000553A: mov eax, esi */
  10819     esi = POP32_VAL(esp); /* 0x3000553C: pop esi */
  10820     ebp = POP32_VAL(esp); /* 0x3000553D: pop ebp */
  10821     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000553E: ret 4 */
  10822     RECOMP_REGS_OUT();
  10823 }
  10824 
  10825 void sub_30005550(void) {
  10826     int _fpu_cmp = 0;
  10827     uint32_t _cf = 0;
  10828     int _df = 1;
  10829     uint32_t _flag_k = FK_NONE;
  10830     uint32_t _flag_a = 0, _flag_b = 0;
  10831     uint32_t _itail_tgt = 0;
  10832     RECOMP_REGS_LOCALS
  10833     RECOMP_ENTER(0x30005550u);
  10834 
  10835 L_30005550:
  10836     PUSH32(esp, ebp); /* 0x30005550: push ebp */
  10837     ebp = esp; /* 0x30005551: mov ebp, esp */
  10838     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10840     esp = esp - 8; /* 0x30005553: sub esp, 8 */
  10841     _flag_k = FK_CMP;
  10842     PUSH32(esp, esi); /* 0x30005556: push esi */
  10843     esi = ecx; /* 0x30005557: mov esi, ecx */
  10844     PUSH32(esp, 4); /* 0x30005559: push 4 */
  10845     RECOMP_ICALL(0x30006420u); /* 0x3000555B: call 0x30006420 */ /* not lifted */
  10846     RECOMP_FLAGS_IN();
  10847     fp_push(*(double*)ADDR(0x300191A0)); /* 0x30005560: fld qword ptr [0x300191a0] */
  10848     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x30005566: fsin  */
  10849     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10850     eax = 0; /* 0x30005568: xor eax, eax */
  10851     _cf = 0;
  10852     _flag_k = FK_TEST;
  10853     MEM32(esi + 0x18) = eax; /* 0x3000556A: mov dword ptr [esi + 0x18], eax */
  10854     MEM32(esi + 0x1C) = eax; /* 0x3000556D: mov dword ptr [esi + 0x1c], eax */
  10855     MEM32(esi + 0x20) = eax; /* 0x30005570: mov dword ptr [esi + 0x20], eax */
  10856     MEM32(esi + 0x24) = eax; /* 0x30005573: mov dword ptr [esi + 0x24], eax */
  10857     MEM32(esi + 0x28) = eax; /* 0x30005576: mov dword ptr [esi + 0x28], eax */
  10858     MEM32(esi + 0x2C) = eax; /* 0x30005579: mov dword ptr [esi + 0x2c], eax */
  10859     fp_push(_st[0]); /* 0x3000557C: fld st(0) */
  10860     fp_push(*(float*)&MEM32(0x3001919C)); /* 0x3000557E: fld dword ptr [0x3001919c] */
  10861     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x30005584: fst dword ptr [ebp - 4] */
  10862     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x30005587: fstp dword ptr [esi + 0x30] */
  10863     ecx = MEM32(ebp + (-0x4)); /* 0x3000558A: mov ecx, dword ptr [ebp - 4] */
  10864     MEM32(esi + 0x38) = ecx; /* 0x3000558D: mov dword ptr [esi + 0x38], ecx */
  10865     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x30005590: fstp dword ptr [esi + 0x34] */
  10866     fp_push(*(double*)ADDR(0x300191A0)); /* 0x30005593: fld qword ptr [0x300191a0] */
  10867     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x30005599: fcos  */
  10868     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3000559B: fst dword ptr [ebp - 8] */
  10869     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3C) = _v; } /* 0x3000559E: fstp dword ptr [esi + 0x3c] */
  10870     fp_push(*(float*)&MEM32(0x3001919C)); /* 0x300055A1: fld dword ptr [0x3001919c] */
  10871     ecx = MEM32(ebp + (-0x8)); /* 0x300055A7: mov ecx, dword ptr [ebp - 8] */
  10872     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x300055AA: fst dword ptr [ebp - 4] */
  10873     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x40) = _v; } /* 0x300055AD: fstp dword ptr [esi + 0x40] */
  10874     MEM32(esi + 0x4C) = ecx; /* 0x300055B0: mov dword ptr [esi + 0x4c], ecx */
  10875     edx = MEM32(ebp + (-0x4)); /* 0x300055B3: mov edx, dword ptr [ebp - 4] */
  10876     MEM32(esi + 0x48) = edx; /* 0x300055B6: mov dword ptr [esi + 0x48], edx */
  10877     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x44) = _v; } /* 0x300055B9: fstp dword ptr [esi + 0x44] */
  10878     MEM8(esi + 0x50) = (uint8_t)(LO8(eax)); /* 0x300055BC: mov byte ptr [esi + 0x50], al */
  10879     MEM32(esi) = 0x30019188u; /* 0x300055BF: mov dword ptr [esi], 0x30019188 */
  10880     eax = esi; /* 0x300055C5: mov eax, esi */
  10881     esi = POP32_VAL(esp); /* 0x300055C7: pop esi */
  10882     esp = ebp; /* 0x300055C8: mov esp, ebp */
  10883     ebp = POP32_VAL(esp); /* 0x300055CA: pop ebp */
  10884     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300055CB: ret  */
  10885     RECOMP_REGS_OUT();
  10886 }
  10887 
  10888 void sub_300055D0(void) {
  10889     int _fpu_cmp = 0;
  10890     uint32_t _cf = 0;
  10891     int _df = 1;
  10892     uint32_t _flag_k = FK_NONE;
  10893     uint32_t _flag_a = 0, _flag_b = 0;
  10894     uint32_t _itail_tgt = 0;
  10895     RECOMP_REGS_LOCALS
  10896     RECOMP_ENTER(0x300055D0u);
  10897 
  10898 L_300055D0:
  10899     PUSH32(esp, ebp); /* 0x300055D0: push ebp */
  10900     ebp = esp; /* 0x300055D1: mov ebp, esp */
  10901     PUSH32(esp, esi); /* 0x300055D3: push esi */
  10902     esi = ecx; /* 0x300055D4: mov esi, ecx */
  10903     PUSH32(esp, 4); /* 0x300055D6: push 4 */
  10904     RECOMP_ICALL(0x30006420u); /* 0x300055D8: call 0x30006420 */ /* not lifted */
  10905     RECOMP_FLAGS_IN();
  10906     fp_push(*(double*)ADDR(0x300191A0)); /* 0x300055DD: fld qword ptr [0x300191a0] */
  10907     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x300055E3: fsin  */
  10908     ecx = MEM32(ebp + 0x8); /* 0x300055E5: mov ecx, dword ptr [ebp + 8] */
  10909     edx = MEM32(ecx); /* 0x300055E8: mov edx, dword ptr [ecx] */
  10910     eax = esi + 0x18; /* 0x300055EA: lea eax, [esi + 0x18] */
  10911     MEM32(eax) = edx; /* 0x300055ED: mov dword ptr [eax], edx */
  10912     edx = MEM32(ecx + 0x4); /* 0x300055EF: mov edx, dword ptr [ecx + 4] */
  10913     MEM32(eax + 0x4) = edx; /* 0x300055F2: mov dword ptr [eax + 4], edx */
  10914     ecx = MEM32(ecx + 0x8); /* 0x300055F5: mov ecx, dword ptr [ecx + 8] */
  10915     MEM32(eax + 0x8) = ecx; /* 0x300055F8: mov dword ptr [eax + 8], ecx */
  10916     eax = MEM32(ebp + 0xC); /* 0x300055FB: mov eax, dword ptr [ebp + 0xc] */
  10917     ecx = MEM32(eax); /* 0x300055FE: mov ecx, dword ptr [eax] */
  10918     edx = esi + 0x24; /* 0x30005600: lea edx, [esi + 0x24] */
  10919     MEM32(edx) = ecx; /* 0x30005603: mov dword ptr [edx], ecx */
  10920     ecx = MEM32(eax + 0x4); /* 0x30005605: mov ecx, dword ptr [eax + 4] */
  10921     MEM32(edx + 0x4) = ecx; /* 0x30005608: mov dword ptr [edx + 4], ecx */
  10922     eax = MEM32(eax + 0x8); /* 0x3000560B: mov eax, dword ptr [eax + 8] */
  10923     MEM32(edx + 0x8) = eax; /* 0x3000560E: mov dword ptr [edx + 8], eax */
  10924     fp_push(_st[0]); /* 0x30005611: fld st(0) */
  10925     fp_push(*(float*)&MEM32(0x3001919C)); /* 0x30005613: fld dword ptr [0x3001919c] */
  10926     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x30005619: fst dword ptr [ebp + 8] */
  10927     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x3000561C: fstp dword ptr [esi + 0x30] */
  10928     ecx = MEM32(ebp + 0x8); /* 0x3000561F: mov ecx, dword ptr [ebp + 8] */
  10929     MEM32(esi + 0x38) = ecx; /* 0x30005622: mov dword ptr [esi + 0x38], ecx */
  10930     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x30005625: fstp dword ptr [esi + 0x34] */
  10931     fp_push(*(double*)ADDR(0x300191A0)); /* 0x30005628: fld qword ptr [0x300191a0] */
  10932     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3000562E: fcos  */
  10933     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x30005630: fst dword ptr [ebp + 0xc] */
  10934     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3C) = _v; } /* 0x30005633: fstp dword ptr [esi + 0x3c] */
  10935     fp_push(*(float*)&MEM32(0x3001919C)); /* 0x30005636: fld dword ptr [0x3001919c] */
  10936     eax = MEM32(ebp + 0xC); /* 0x3000563C: mov eax, dword ptr [ebp + 0xc] */
  10937     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3000563F: fst dword ptr [ebp + 8] */
  10938     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x40) = _v; } /* 0x30005642: fstp dword ptr [esi + 0x40] */
  10939     MEM32(esi + 0x4C) = eax; /* 0x30005645: mov dword ptr [esi + 0x4c], eax */
  10940     eax = esi; /* 0x30005648: mov eax, esi */
  10941     edx = MEM32(ebp + 0x8); /* 0x3000564A: mov edx, dword ptr [ebp + 8] */
  10942     MEM32(esi + 0x48) = edx; /* 0x3000564D: mov dword ptr [esi + 0x48], edx */
  10943     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x44) = _v; } /* 0x30005650: fstp dword ptr [esi + 0x44] */
  10944     MEM8(esi + 0x50) = (uint8_t)(0); /* 0x30005653: mov byte ptr [esi + 0x50], 0 */
  10945     MEM32(esi) = 0x30019188u; /* 0x30005657: mov dword ptr [esi], 0x30019188 */
  10946     esi = POP32_VAL(esp); /* 0x3000565D: pop esi */
  10947     ebp = POP32_VAL(esp); /* 0x3000565E: pop ebp */
  10948     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3000565F: ret 8 */
  10949     RECOMP_REGS_OUT();
  10950 }
  10951 
  10952 void sub_30005670(void) {
  10953     int _fpu_cmp = 0;
  10954     uint32_t _cf = 0;
  10955     int _df = 1;
  10956     uint32_t _flag_k = FK_NONE;
  10957     uint32_t _flag_a = 0, _flag_b = 0;
  10958     uint32_t _itail_tgt = 0;
  10959     RECOMP_REGS_LOCALS
  10960     RECOMP_ENTER(0x30005670u);
  10961 
  10962 L_30005670:
  10963     MEM32(ecx) = 0x30019188u; /* 0x30005670: mov dword ptr [ecx], 0x30019188 */
  10964     goto L_30006450; /* 0x30005676: jmp 0x30006450 */
  10965 L_30006450:
  10966     MEM32(ecx) = 0x300191C0u; /* 0x30006450: mov dword ptr [ecx], 0x300191c0 */
  10967     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30006456: ret  */
  10968     RECOMP_REGS_OUT();
  10969 }
  10970 
  10971 void sub_30005680(void) {
  10972     int _fpu_cmp = 0;
  10973     uint32_t _cf = 0;
  10974     int _df = 1;
  10975     uint32_t _flag_k = FK_NONE;
  10976     uint32_t _flag_a = 0, _flag_b = 0;
  10977     uint32_t _itail_tgt = 0;
  10978     RECOMP_REGS_LOCALS
  10979     RECOMP_ENTER(0x30005680u);
  10980 
  10981 L_30005680:
  10982     eax = ecx; /* 0x30005680: mov eax, ecx */
  10983     MEM32(eax) = 0x300191ACu; /* 0x30005682: mov dword ptr [eax], 0x300191ac */
  10984     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005688: ret  */
  10985     RECOMP_REGS_OUT();
  10986 }
  10987 
  10988 void sub_30005690(void) {
  10989     int _fpu_cmp = 0;
  10990     uint32_t _cf = 0;
  10991     int _df = 1;
  10992     uint32_t _flag_k = FK_NONE;
  10993     uint32_t _flag_a = 0, _flag_b = 0;
  10994     uint32_t _itail_tgt = 0;
  10995     RECOMP_REGS_LOCALS
  10996     RECOMP_ENTER(0x30005690u);
  10997 
  10998 L_30005690:
  10999     PUSH32(esp, ebp); /* 0x30005690: push ebp */
  11000     ebp = esp; /* 0x30005691: mov ebp, esp */
  11001     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
  11002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11003     esp = esp - 0x10u; /* 0x30005693: sub esp, 0x10 */
  11004     _flag_k = FK_CMP;
  11005     eax = MEM32(ebp + 0x8); /* 0x30005696: mov eax, dword ptr [ebp + 8] */
  11006     PUSH32(esp, esi); /* 0x30005699: push esi */
  11007     esi = eax; /* 0x3000569A: mov esi, eax */
  11008     PUSH32(esp, edi); /* 0x3000569C: push edi */
  11009     edi = MEM32(esi); /* 0x3000569D: mov edi, dword ptr [esi] */
  11010     edx = ecx + 0x30; /* 0x3000569F: lea edx, [ecx + 0x30] */
  11011     MEM32(edx) = edi; /* 0x300056A2: mov dword ptr [edx], edi */
  11012     edi = MEM32(esi + 0x4); /* 0x300056A4: mov edi, dword ptr [esi + 4] */
  11013     MEM32(edx + 0x4) = edi; /* 0x300056A7: mov dword ptr [edx + 4], edi */
  11014     edi = MEM32(esi + 0x8); /* 0x300056AA: mov edi, dword ptr [esi + 8] */
  11015     MEM32(edx + 0x8) = edi; /* 0x300056AD: mov dword ptr [edx + 8], edi */
  11016     esi = MEM32(esi + 0xC); /* 0x300056B0: mov esi, dword ptr [esi + 0xc] */
  11017     MEM32(edx + 0xC) = esi; /* 0x300056B3: mov dword ptr [edx + 0xc], esi */
  11018     edx = MEM32(eax); /* 0x300056B6: mov edx, dword ptr [eax] */
  11019     MEM32(ebp + (-0x10)) = edx; /* 0x300056B8: mov dword ptr [ebp - 0x10], edx */
  11020     edx = MEM32(eax + 0x4); /* 0x300056BB: mov edx, dword ptr [eax + 4] */
  11021     MEM32(ebp + (-0xC)) = edx; /* 0x300056BE: mov dword ptr [ebp - 0xc], edx */
  11022     edx = MEM32(eax + 0x8); /* 0x300056C1: mov edx, dword ptr [eax + 8] */
  11023     eax = MEM32(eax + 0xC); /* 0x300056C4: mov eax, dword ptr [eax + 0xc] */
  11024     MEM32(ebp + (-0x4)) = eax; /* 0x300056C7: mov dword ptr [ebp - 4], eax */
  11025     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x300056CA: fld dword ptr [ebp - 4] */
  11026     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x300056CD: fmul dword ptr [ebp - 4] */
  11027     MEM32(ebp + (-0x8)) = edx; /* 0x300056D0: mov dword ptr [ebp - 8], edx */
  11028     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x300056D3: fld dword ptr [ebp - 8] */
  11029     edx = ecx + 0x40; /* 0x300056D6: lea edx, [ecx + 0x40] */
  11030     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x300056D9: fmul dword ptr [ebp - 8] */
  11031     edi = POP32_VAL(esp); /* 0x300056DC: pop edi */
  11032     esi = POP32_VAL(esp); /* 0x300056DD: pop esi */
  11033     { double _v = fp_pop(); _st[0] += _v; } /* 0x300056DE: faddp st(1) */
  11034     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x300056E0: fld dword ptr [ebp - 0xc] */
  11035     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x300056E3: fmul dword ptr [ebp - 0xc] */
  11036     { double _v = fp_pop(); _st[0] += _v; } /* 0x300056E6: faddp st(1) */
  11037     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x300056E8: fld dword ptr [ebp - 0x10] */
  11038     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x300056EB: fmul dword ptr [ebp - 0x10] */
  11039     { double _v = fp_pop(); _st[0] += _v; } /* 0x300056EE: faddp st(1) */
  11040     _st[0] = (double)*(float*)ADDR(0x300191B8) / _st[0]; /* 0x300056F0: fdivr dword ptr [0x300191b8] */
  11041     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x300056F6: fld dword ptr [ebp - 0x10] */
  11042     _st[0] *= _st[1]; /* 0x300056F9: fmul st(1) */
  11043     _st[0] = -_st[0]; /* 0x300056FB: fchs  */
  11044     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x300056FD: fstp dword ptr [ebp - 0x10] */
  11045     eax = MEM32(ebp + (-0x10)); /* 0x30005700: mov eax, dword ptr [ebp - 0x10] */
  11046     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x30005703: fld dword ptr [ebp - 0xc] */
  11047     MEM32(edx) = eax; /* 0x30005706: mov dword ptr [edx], eax */
  11048     _st[0] *= _st[1]; /* 0x30005708: fmul st(1) */
  11049     _st[0] = -_st[0]; /* 0x3000570A: fchs  */
  11050     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3000570C: fstp dword ptr [ebp - 0xc] */
  11051     eax = MEM32(ebp + (-0xC)); /* 0x3000570F: mov eax, dword ptr [ebp - 0xc] */
  11052     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x30005712: fld dword ptr [ebp - 8] */
  11053     MEM32(edx + 0x4) = eax; /* 0x30005715: mov dword ptr [edx + 4], eax */
  11054     _st[0] *= _st[1]; /* 0x30005718: fmul st(1) */
  11055     _st[0] = -_st[0]; /* 0x3000571A: fchs  */
  11056     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3000571C: fstp dword ptr [ebp - 8] */
  11057     eax = MEM32(ebp + (-0x8)); /* 0x3000571F: mov eax, dword ptr [ebp - 8] */
  11058     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x30005722: fld dword ptr [ebp - 4] */
  11059     MEM32(edx + 0x8) = eax; /* 0x30005725: mov dword ptr [edx + 8], eax */
  11060     _st[0] *= _st[1]; /* 0x30005728: fmul st(1) */
  11061     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3000572A: fstp dword ptr [ebp - 4] */
  11062     eax = MEM32(ebp + (-0x4)); /* 0x3000572D: mov eax, dword ptr [ebp - 4] */
  11063     MEM32(edx + 0xC) = eax; /* 0x30005730: mov dword ptr [edx + 0xc], eax */
  11064     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x30005733: fstp st(0) */
  11065     fp_push(*(float*)&MEM32(ecx + 0x3C)); /* 0x30005735: fld dword ptr [ecx + 0x3c] */
  11066     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x300191B0)); /* 0x30005738: fcomp qword ptr [0x300191b0] */
  11067     fp_pop();
  11068     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000573E: fnstsw ax */
  11069     /* test HI8(eax), 0x40u */ /* 0x30005740: test ah, 0x40 */
  11070     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  11071     _cf = 0;
  11072     _flag_k = FK_NARROW(FK_TEST, 24);
  11073     if (TEST_Z(_flag_a, _flag_b)) goto L_3000574F; /* 0x30005743: je 0x3000574f */
  11074 L_30005745:
  11075     MEM8(ecx + 0x50) = (uint8_t)(0); /* 0x30005745: mov byte ptr [ecx + 0x50], 0 */
  11076     esp = ebp; /* 0x30005749: mov esp, ebp */
  11077     ebp = POP32_VAL(esp); /* 0x3000574B: pop ebp */
  11078     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000574C: ret 4 */
  11079 L_3000574F:
  11080     MEM8(ecx + 0x50) = (uint8_t)(1); /* 0x3000574F: mov byte ptr [ecx + 0x50], 1 */
  11081     esp = ebp; /* 0x30005753: mov esp, ebp */
  11082     ebp = POP32_VAL(esp); /* 0x30005755: pop ebp */
  11083     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005756: ret 4 */
  11084     RECOMP_REGS_OUT();
  11085 }
  11086 
  11087 void sub_30005760(void) {
  11088     int _fpu_cmp = 0;
  11089     uint32_t _cf = 0;
  11090     int _df = 1;
  11091     uint32_t _flag_k = FK_NONE;
  11092     uint32_t _flag_a = 0, _flag_b = 0;
  11093     uint32_t _itail_tgt = 0;
  11094     RECOMP_REGS_LOCALS
  11095     RECOMP_ENTER(0x30005760u);
  11096 
  11097 L_30005760:
  11098     eax = ecx; /* 0x30005760: mov eax, ecx */
  11099     MEM32(eax) = 0x300191ACu; /* 0x30005762: mov dword ptr [eax], 0x300191ac */
  11100     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005768: ret 4 */
  11101     RECOMP_REGS_OUT();
  11102 }
  11103 
  11104 void sub_30005770(void) {
  11105     int _fpu_cmp = 0;
  11106     uint32_t _cf = 0;
  11107     int _df = 1;
  11108     uint32_t _flag_k = FK_NONE;
  11109     uint32_t _flag_a = 0, _flag_b = 0;
  11110     uint32_t _itail_tgt = 0;
  11111     RECOMP_REGS_LOCALS
  11112     RECOMP_ENTER(0x30005770u);
  11113 
  11114 L_30005770:
  11115     eax = ecx; /* 0x30005770: mov eax, ecx */
  11116     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005772: ret 4 */
  11117     RECOMP_REGS_OUT();
  11118 }
  11119 
  11120 void sub_30005780(void) {
  11121     int _fpu_cmp = 0;
  11122     uint32_t _cf = 0;
  11123     int _df = 1;
  11124     uint32_t _flag_k = FK_NONE;
  11125     uint32_t _flag_a = 0, _flag_b = 0;
  11126     uint32_t _itail_tgt = 0;
  11127     RECOMP_REGS_LOCALS
  11128     RECOMP_ENTER(0x30005780u);
  11129 
  11130 L_30005780:
  11131     SET_LO8(eax, MEM8(ecx + 0x50)); /* 0x30005780: mov al, byte ptr [ecx + 0x50] */
  11132     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005783: ret  */
  11133     RECOMP_REGS_OUT();
  11134 }
  11135 
  11136 void sub_30005790(void) {
  11137     int _fpu_cmp = 0;
  11138     uint32_t _cf = 0;
  11139     int _df = 1;
  11140     uint32_t _flag_k = FK_NONE;
  11141     uint32_t _flag_a = 0, _flag_b = 0;
  11142     uint32_t _itail_tgt = 0;
  11143     RECOMP_REGS_LOCALS
  11144     RECOMP_ENTER(0x30005790u);
  11145 
  11146 L_30005790:
  11147     RECOMP_ICALL(0x300057A0u); /* 0x30005790: call 0x300057a0 */ /* not lifted */
  11148     RECOMP_FLAGS_IN();
  11149     goto L_300057B0; /* 0x30005795: jmp 0x300057b0 */
  11150 L_300057B0:
  11151     PUSH32(esp, 0x300057C0u); /* 0x300057B0: push 0x300057c0 */
  11152     RECOMP_ICALL(0x300180ECu); /* 0x300057B5: call 0x300180ec */ /* not lifted */
  11153     RECOMP_FLAGS_IN();
  11154     ecx = POP32_VAL(esp); /* 0x300057BA: pop ecx */
  11155     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300057BB: ret  */
  11156     RECOMP_REGS_OUT();
  11157 }
  11158 
  11159 void sub_300057A0(void) {
  11160     int _fpu_cmp = 0;
  11161     uint32_t _cf = 0;
  11162     int _df = 1;
  11163     uint32_t _flag_k = FK_NONE;
  11164     uint32_t _flag_a = 0, _flag_b = 0;
  11165     uint32_t _itail_tgt = 0;
  11166     RECOMP_REGS_LOCALS
  11167     RECOMP_ENTER(0x300057A0u);
  11168 
  11169 L_300057A0:
  11170     ecx = 0x3001E3B9u; /* 0x300057A0: mov ecx, 0x3001e3b9 */
  11171 L_300057A5:
  11172     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
  11173     { RECOMP_REGS_OUT(); return; } /* end of function */
  11174   _ljump:
  11175     switch (_itail_tgt) {
  11176       case 0x300057A0u: goto L_300057A0;
  11177       case 0x300057A5u: goto L_300057A5;
  11178       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  11179     }
  11180     RECOMP_REGS_OUT();
  11181 }
  11182 
  11183 void sub_300057B0(void) {
  11184     int _fpu_cmp = 0;
  11185     uint32_t _cf = 0;
  11186     int _df = 1;
  11187     uint32_t _flag_k = FK_NONE;
  11188     uint32_t _flag_a = 0, _flag_b = 0;
  11189     uint32_t _itail_tgt = 0;
  11190     RECOMP_REGS_LOCALS
  11191     RECOMP_ENTER(0x300057B0u);
  11192 
  11193 L_300057B0:
  11194     PUSH32(esp, 0x300057C0u); /* 0x300057B0: push 0x300057c0 */
  11195     RECOMP_ICALL(0x300180ECu); /* 0x300057B5: call 0x300180ec */ /* not lifted */
  11196     RECOMP_FLAGS_IN();
  11197     ecx = POP32_VAL(esp); /* 0x300057BA: pop ecx */
  11198     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300057BB: ret  */
  11199     RECOMP_REGS_OUT();
  11200 }
  11201 
  11202 void sub_300057C0(void) {
  11203     int _fpu_cmp = 0;
  11204     uint32_t _cf = 0;
  11205     int _df = 1;
  11206     uint32_t _flag_k = FK_NONE;
  11207     uint32_t _flag_a = 0, _flag_b = 0;
  11208     uint32_t _itail_tgt = 0;
  11209     RECOMP_REGS_LOCALS
  11210     RECOMP_ENTER(0x300057C0u);
  11211 
  11212 L_300057C0:
  11213     ecx = 0x3001E3B9u; /* 0x300057C0: mov ecx, 0x3001e3b9 */
  11214 L_300057C5:
  11215     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
  11216     { RECOMP_REGS_OUT(); return; } /* end of function */
  11217   _ljump:
  11218     switch (_itail_tgt) {
  11219       case 0x300057C0u: goto L_300057C0;
  11220       case 0x300057C5u: goto L_300057C5;
  11221       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  11222     }
  11223     RECOMP_REGS_OUT();
  11224 }
  11225 
  11226 void sub_300057D0(void) {
  11227     int _fpu_cmp = 0;
  11228     uint32_t _cf = 0;
  11229     int _df = 1;
  11230     uint32_t _flag_k = FK_NONE;
  11231     uint32_t _flag_a = 0, _flag_b = 0;
  11232     uint32_t _itail_tgt = 0;
  11233     RECOMP_REGS_LOCALS
  11234     RECOMP_ENTER(0x300057D0u);
  11235 
  11236 L_300057D0:
  11237     RECOMP_ICALL(0x300057E0u); /* 0x300057D0: call 0x300057e0 */ /* not lifted */
  11238     RECOMP_FLAGS_IN();
  11239     goto L_300057F0; /* 0x300057D5: jmp 0x300057f0 */
  11240 L_300057F0:
  11241     PUSH32(esp, 0x30005800u); /* 0x300057F0: push 0x30005800 */
  11242     RECOMP_ICALL(0x300180ECu); /* 0x300057F5: call 0x300180ec */ /* not lifted */
  11243     RECOMP_FLAGS_IN();
  11244     ecx = POP32_VAL(esp); /* 0x300057FA: pop ecx */
  11245     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300057FB: ret  */
  11246     RECOMP_REGS_OUT();
  11247 }
  11248 
  11249 void sub_300057E0(void) {
  11250     int _fpu_cmp = 0;
  11251     uint32_t _cf = 0;
  11252     int _df = 1;
  11253     uint32_t _flag_k = FK_NONE;
  11254     uint32_t _flag_a = 0, _flag_b = 0;
  11255     uint32_t _itail_tgt = 0;
  11256     RECOMP_REGS_LOCALS
  11257     RECOMP_ENTER(0x300057E0u);
  11258 
  11259 L_300057E0:
  11260     ecx = 0x3001E3B8u; /* 0x300057E0: mov ecx, 0x3001e3b8 */
  11261 L_300057E5:
  11262     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
  11263     { RECOMP_REGS_OUT(); return; } /* end of function */
  11264   _ljump:
  11265     switch (_itail_tgt) {
  11266       case 0x300057E0u: goto L_300057E0;
  11267       case 0x300057E5u: goto L_300057E5;
  11268       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  11269     }
  11270     RECOMP_REGS_OUT();
  11271 }
  11272 
  11273 void sub_300057F0(void) {
  11274     int _fpu_cmp = 0;
  11275     uint32_t _cf = 0;
  11276     int _df = 1;
  11277     uint32_t _flag_k = FK_NONE;
  11278     uint32_t _flag_a = 0, _flag_b = 0;
  11279     uint32_t _itail_tgt = 0;
  11280     RECOMP_REGS_LOCALS
  11281     RECOMP_ENTER(0x300057F0u);
  11282 
  11283 L_300057F0:
  11284     PUSH32(esp, 0x30005800u); /* 0x300057F0: push 0x30005800 */
  11285     RECOMP_ICALL(0x300180ECu); /* 0x300057F5: call 0x300180ec */ /* not lifted */
  11286     RECOMP_FLAGS_IN();
  11287     ecx = POP32_VAL(esp); /* 0x300057FA: pop ecx */
  11288     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300057FB: ret  */
  11289     RECOMP_REGS_OUT();
  11290 }
  11291 
  11292 void sub_30005800(void) {
  11293     int _fpu_cmp = 0;
  11294     uint32_t _cf = 0;
  11295     int _df = 1;
  11296     uint32_t _flag_k = FK_NONE;
  11297     uint32_t _flag_a = 0, _flag_b = 0;
  11298     uint32_t _itail_tgt = 0;
  11299     RECOMP_REGS_LOCALS
  11300     RECOMP_ENTER(0x30005800u);
  11301 
  11302 L_30005800:
  11303     ecx = 0x3001E3B8u; /* 0x30005800: mov ecx, 0x3001e3b8 */
  11304 L_30005805:
  11305     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
  11306     { RECOMP_REGS_OUT(); return; } /* end of function */
  11307   _ljump:
  11308     switch (_itail_tgt) {
  11309       case 0x30005800u: goto L_30005800;
  11310       case 0x30005805u: goto L_30005805;
  11311       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  11312     }
  11313     RECOMP_REGS_OUT();
  11314 }
  11315 
  11316 void sub_30005810(void) {
  11317     int _fpu_cmp = 0;
  11318     uint32_t _cf = 0;
  11319     int _df = 1;
  11320     uint32_t _flag_k = FK_NONE;
  11321     uint32_t _flag_a = 0, _flag_b = 0;
  11322     uint32_t _itail_tgt = 0;
  11323     RECOMP_REGS_LOCALS
  11324     RECOMP_ENTER(0x30005810u);
  11325 
  11326 L_30005810:
  11327     PUSH32(esp, ebp); /* 0x30005810: push ebp */
  11328     ebp = esp; /* 0x30005811: mov ebp, esp */
  11329     eax = MEM32(ebp + 0x8); /* 0x30005813: mov eax, dword ptr [ebp + 8] */
  11330     edx = MEM32(eax); /* 0x30005816: mov edx, dword ptr [eax] */
  11331     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  11332     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11333     ecx = ecx + 4; /* 0x30005818: add ecx, 4 */
  11334     _flag_k = FK_ADD;
  11335     MEM32(ecx) = edx; /* 0x3000581B: mov dword ptr [ecx], edx */
  11336     edx = MEM32(eax + 0x4); /* 0x3000581D: mov edx, dword ptr [eax + 4] */
  11337     MEM32(ecx + 0x4) = edx; /* 0x30005820: mov dword ptr [ecx + 4], edx */
  11338     eax = MEM32(eax + 0x8); /* 0x30005823: mov eax, dword ptr [eax + 8] */
  11339     MEM32(ecx + 0x8) = eax; /* 0x30005826: mov dword ptr [ecx + 8], eax */
  11340     ebp = POP32_VAL(esp); /* 0x30005829: pop ebp */
  11341     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000582A: ret 4 */
  11342     RECOMP_REGS_OUT();
  11343 }
  11344 
  11345 void sub_30005830(void) {
  11346     int _fpu_cmp = 0;
  11347     uint32_t _cf = 0;
  11348     int _df = 1;
  11349     uint32_t _flag_k = FK_NONE;
  11350     uint32_t _flag_a = 0, _flag_b = 0;
  11351     uint32_t _itail_tgt = 0;
  11352     RECOMP_REGS_LOCALS
  11353     RECOMP_ENTER(0x30005830u);
  11354 
  11355 L_30005830:
  11356     eax = ecx + 0x4; /* 0x30005830: lea eax, [ecx + 4] */
  11357     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005833: ret  */
  11358     RECOMP_REGS_OUT();
  11359 }
  11360 
  11361 void sub_30005840(void) {
  11362     int _fpu_cmp = 0;
  11363     uint32_t _cf = 0;
  11364     int _df = 1;
  11365     uint32_t _flag_k = FK_NONE;
  11366     uint32_t _flag_a = 0, _flag_b = 0;
  11367     uint32_t _itail_tgt = 0;
  11368     RECOMP_REGS_LOCALS
  11369     RECOMP_ENTER(0x30005840u);
  11370 
  11371 L_30005840:
  11372     PUSH32(esp, ebp); /* 0x30005840: push ebp */
  11373     ebp = esp; /* 0x30005841: mov ebp, esp */
  11374     eax = ecx; /* 0x30005843: mov eax, ecx */
  11375     ecx = MEM32(ebp + 0x8); /* 0x30005845: mov ecx, dword ptr [ebp + 8] */
  11376     PUSH32(esp, esi); /* 0x30005848: push esi */
  11377     MEM32(eax) = 0x300191ACu; /* 0x30005849: mov dword ptr [eax], 0x300191ac */
  11378     PUSH32(esp, edi); /* 0x3000584F: push edi */
  11379     edx = ecx + 0x4; /* 0x30005850: lea edx, [ecx + 4] */
  11380     edi = MEM32(edx); /* 0x30005853: mov edi, dword ptr [edx] */
  11381     esi = eax + 0x4; /* 0x30005855: lea esi, [eax + 4] */
  11382     MEM32(esi) = edi; /* 0x30005858: mov dword ptr [esi], edi */
  11383     edi = MEM32(edx + 0x4); /* 0x3000585A: mov edi, dword ptr [edx + 4] */
  11384     MEM32(esi + 0x4) = edi; /* 0x3000585D: mov dword ptr [esi + 4], edi */
  11385     edx = MEM32(edx + 0x8); /* 0x30005860: mov edx, dword ptr [edx + 8] */
  11386     MEM32(esi + 0x8) = edx; /* 0x30005863: mov dword ptr [esi + 8], edx */
  11387     edx = MEM32(ecx + 0x10); /* 0x30005866: mov edx, dword ptr [ecx + 0x10] */
  11388     MEM32(eax + 0x10) = edx; /* 0x30005869: mov dword ptr [eax + 0x10], edx */
  11389     ecx = MEM32(ecx + 0x14); /* 0x3000586C: mov ecx, dword ptr [ecx + 0x14] */
  11390     edi = POP32_VAL(esp); /* 0x3000586F: pop edi */
  11391     MEM32(eax + 0x14) = ecx; /* 0x30005870: mov dword ptr [eax + 0x14], ecx */
  11392     MEM32(eax) = 0x300191C0u; /* 0x30005873: mov dword ptr [eax], 0x300191c0 */
  11393     esi = POP32_VAL(esp); /* 0x30005879: pop esi */
  11394     ebp = POP32_VAL(esp); /* 0x3000587A: pop ebp */
  11395     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3000587B: ret 4 */
  11396     RECOMP_REGS_OUT();
  11397 }
  11398 
  11399 void sub_30005880(void) {
  11400     int _fpu_cmp = 0;
  11401     uint32_t _cf = 0;
  11402     int _df = 1;
  11403     uint32_t _flag_k = FK_NONE;
  11404     uint32_t _flag_a = 0, _flag_b = 0;
  11405     uint32_t _itail_tgt = 0;
  11406     RECOMP_REGS_LOCALS
  11407     RECOMP_ENTER(0x30005880u);
  11408 
  11409 L_30005880:
  11410     PUSH32(esp, ebp); /* 0x30005880: push ebp */
  11411     ebp = esp; /* 0x30005881: mov ebp, esp */
  11412     eax = ecx; /* 0x30005883: mov eax, ecx */
  11413     ecx = MEM32(ebp + 0x8); /* 0x30005885: mov ecx, dword ptr [ebp + 8] */
  11414     PUSH32(esp, esi); /* 0x30005888: push esi */
  11415     PUSH32(esp, edi); /* 0x30005889: push edi */
  11416     edx = ecx + 0x4; /* 0x3000588A: lea edx, [ecx + 4] */
  11417     edi = MEM32(edx); /* 0x3000588D: mov edi, dword ptr [edx] */
  11418     esi = eax + 0x4; /* 0x3000588F: lea esi, [eax + 4] */
  11419     MEM32(esi) = edi; /* 0x30005892: mov dword ptr [esi], edi */
  11420     edi = MEM32(edx + 0x4); /* 0x30005894: mov edi, dword ptr [edx + 4] */
  11421     MEM32(esi + 0x4) = edi; /* 0x30005897: mov dword ptr [esi + 4], edi */
  11422     edx = MEM32(edx + 0x8); /* 0x3000589A: mov edx, dword ptr [edx + 8] */
  11423     MEM32(esi + 0x8) = edx; /* 0x3000589D: mov dword ptr [esi + 8], edx */
  11424     edx = MEM32(ecx + 0x10); /* 0x300058A0: mov edx, dword ptr [ecx + 0x10] */
  11425     MEM32(eax + 0x10) = edx; /* 0x300058A3: mov dword ptr [eax + 0x10], edx */
  11426     ecx = MEM32(ecx + 0x14); /* 0x300058A6: mov ecx, dword ptr [ecx + 0x14] */
  11427     edi = POP32_VAL(esp); /* 0x300058A9: pop edi */
  11428     MEM32(eax + 0x14) = ecx; /* 0x300058AA: mov dword ptr [eax + 0x14], ecx */
  11429     esi = POP32_VAL(esp); /* 0x300058AD: pop esi */
  11430     ebp = POP32_VAL(esp); /* 0x300058AE: pop ebp */
  11431     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300058AF: ret 4 */
  11432     RECOMP_REGS_OUT();
  11433 }
  11434 
  11435 void sub_300058C0(void) {
  11436     int _fpu_cmp = 0;
  11437     uint32_t _cf = 0;
  11438     int _df = 1;
  11439     uint32_t _flag_k = FK_NONE;
  11440     uint32_t _flag_a = 0, _flag_b = 0;
  11441     uint32_t _itail_tgt = 0;
  11442     RECOMP_REGS_LOCALS
  11443     RECOMP_ENTER(0x300058C0u);
  11444 
  11445 L_300058C0:
  11446     PUSH32(esp, ebp); /* 0x300058C0: push ebp */
  11447     ebp = esp; /* 0x300058C1: mov ebp, esp */
  11448     PUSH32(esp, ebx); /* 0x300058C3: push ebx */
  11449     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x300058C4: mov bl, byte ptr [ebp + 8] */
  11450     /* test LO8(ebx), 2 */ /* 0x300058C7: test bl, 2 */
  11451     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
  11452     _cf = 0;
  11453     _flag_k = FK_NARROW(FK_TEST, 24);
  11454     PUSH32(esp, esi); /* 0x300058CA: push esi */
  11455     esi = ecx; /* 0x300058CB: mov esi, ecx */
  11456     if (TEST_Z(_flag_a, _flag_b)) goto L_300058FB; /* 0x300058CD: je 0x300058fb */
  11457 L_300058CF:
  11458     eax = MEM32(esi + (-0x4)); /* 0x300058CF: mov eax, dword ptr [esi - 4] */
  11459     PUSH32(esp, edi); /* 0x300058D2: push edi */
  11460     PUSH32(esp, 0x30006450u); /* 0x300058D3: push 0x30006450 */
  11461     edi = esi + (-0x4); /* 0x300058D8: lea edi, [esi - 4] */
  11462     PUSH32(esp, eax); /* 0x300058DB: push eax */
  11463     PUSH32(esp, 0x18u); /* 0x300058DC: push 0x18 */
  11464     PUSH32(esp, esi); /* 0x300058DE: push esi */
  11465     RECOMP_ICALL(0x300180FEu); /* 0x300058DF: call 0x300180fe */ /* not lifted */
  11466     RECOMP_FLAGS_IN();
  11467     /* test LO8(ebx), 1 */ /* 0x300058E4: test bl, 1 */
  11468     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
  11469     _cf = 0;
  11470     _flag_k = FK_NARROW(FK_TEST, 24);
  11471     if (TEST_Z(_flag_a, _flag_b)) goto L_300058F2; /* 0x300058E7: je 0x300058f2 */
  11472 L_300058E9:
  11473     PUSH32(esp, edi); /* 0x300058E9: push edi */
  11474     RECOMP_ICALL(0x30018080u); /* 0x300058EA: call 0x30018080 */ /* not lifted */
  11475     RECOMP_FLAGS_IN();
  11476     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11477     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11478     esp = esp + 4; /* 0x300058EF: add esp, 4 */
  11479     _flag_k = FK_ADD;
  11480 L_300058F2:
  11481     eax = edi; /* 0x300058F2: mov eax, edi */
  11482     edi = POP32_VAL(esp); /* 0x300058F4: pop edi */
  11483     esi = POP32_VAL(esp); /* 0x300058F5: pop esi */
  11484     ebx = POP32_VAL(esp); /* 0x300058F6: pop ebx */
  11485     ebp = POP32_VAL(esp); /* 0x300058F7: pop ebp */
  11486     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300058F8: ret 4 */
  11487 L_300058FB:
  11488     ecx = esi; /* 0x300058FB: mov ecx, esi */
  11489     RECOMP_ICALL(0x30006450u); /* 0x300058FD: call 0x30006450 */ /* not lifted */
  11490     RECOMP_FLAGS_IN();
  11491     /* test LO8(ebx), 1 */ /* 0x30005902: test bl, 1 */
  11492     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
  11493     _cf = 0;
  11494     _flag_k = FK_NARROW(FK_TEST, 24);
  11495     if (TEST_Z(_flag_a, _flag_b)) goto L_30005910; /* 0x30005905: je 0x30005910 */
  11496 L_30005907:
  11497     PUSH32(esp, esi); /* 0x30005907: push esi */
  11498     RECOMP_ICALL(0x30018080u); /* 0x30005908: call 0x30018080 */ /* not lifted */
  11499     RECOMP_FLAGS_IN();
  11500     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11501     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11502     esp = esp + 4; /* 0x3000590D: add esp, 4 */
  11503     _flag_k = FK_ADD;
  11504 L_30005910:
  11505     eax = esi; /* 0x30005910: mov eax, esi */
  11506     esi = POP32_VAL(esp); /* 0x30005912: pop esi */
  11507     ebx = POP32_VAL(esp); /* 0x30005913: pop ebx */
  11508     ebp = POP32_VAL(esp); /* 0x30005914: pop ebp */
  11509     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005915: ret 4 */
  11510     RECOMP_REGS_OUT();
  11511 }
  11512 
  11513 void sub_30005920(void) {
  11514     int _fpu_cmp = 0;
  11515     uint32_t _cf = 0;
  11516     int _df = 1;
  11517     uint32_t _flag_k = FK_NONE;
  11518     uint32_t _flag_a = 0, _flag_b = 0;
  11519     uint32_t _itail_tgt = 0;
  11520     RECOMP_REGS_LOCALS
  11521     RECOMP_ENTER(0x30005920u);
  11522 
  11523 L_30005920:
  11524     eax = ecx + 0x30; /* 0x30005920: lea eax, [ecx + 0x30] */
  11525     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005923: ret  */
  11526     RECOMP_REGS_OUT();
  11527 }
  11528 
  11529 void sub_30005930(void) {
  11530     int _fpu_cmp = 0;
  11531     uint32_t _cf = 0;
  11532     int _df = 1;
  11533     uint32_t _flag_k = FK_NONE;
  11534     uint32_t _flag_a = 0, _flag_b = 0;
  11535     uint32_t _itail_tgt = 0;
  11536     RECOMP_REGS_LOCALS
  11537     RECOMP_ENTER(0x30005930u);
  11538 
  11539 L_30005930:
  11540     eax = ecx + 0x40; /* 0x30005930: lea eax, [ecx + 0x40] */
  11541     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005933: ret  */
  11542     RECOMP_REGS_OUT();
  11543 }
  11544 
  11545 void sub_30005940(void) {
  11546     int _fpu_cmp = 0;
  11547     uint32_t _cf = 0;
  11548     int _df = 1;
  11549     uint32_t _flag_k = FK_NONE;
  11550     uint32_t _flag_a = 0, _flag_b = 0;
  11551     uint32_t _itail_tgt = 0;
  11552     RECOMP_REGS_LOCALS
  11553     RECOMP_ENTER(0x30005940u);
  11554 
  11555 L_30005940:
  11556     PUSH32(esp, ebp); /* 0x30005940: push ebp */
  11557     ebp = esp; /* 0x30005941: mov ebp, esp */
  11558     PUSH32(esp, esi); /* 0x30005943: push esi */
  11559     eax = ecx; /* 0x30005944: mov eax, ecx */
  11560     ecx = MEM32(ebp + 0x8); /* 0x30005946: mov ecx, dword ptr [ebp + 8] */
  11561     MEM32(eax) = 0x300191ACu; /* 0x30005949: mov dword ptr [eax], 0x300191ac */
  11562     PUSH32(esp, edi); /* 0x3000594F: push edi */
  11563     edx = ecx + 0x4; /* 0x30005950: lea edx, [ecx + 4] */
  11564     edi = MEM32(edx); /* 0x30005953: mov edi, dword ptr [edx] */
  11565     esi = eax + 0x4; /* 0x30005955: lea esi, [eax + 4] */
  11566     MEM32(esi) = edi; /* 0x30005958: mov dword ptr [esi], edi */
  11567     edi = MEM32(edx + 0x4); /* 0x3000595A: mov edi, dword ptr [edx + 4] */
  11568     MEM32(esi + 0x4) = edi; /* 0x3000595D: mov dword ptr [esi + 4], edi */
  11569     edx = MEM32(edx + 0x8); /* 0x30005960: mov edx, dword ptr [edx + 8] */
  11570     MEM32(esi + 0x8) = edx; /* 0x30005963: mov dword ptr [esi + 8], edx */
  11571     edx = MEM32(ecx + 0x10); /* 0x30005966: mov edx, dword ptr [ecx + 0x10] */
  11572     MEM32(eax + 0x10) = edx; /* 0x30005969: mov dword ptr [eax + 0x10], edx */
  11573     edx = MEM32(ecx + 0x14); /* 0x3000596C: mov edx, dword ptr [ecx + 0x14] */
  11574     MEM32(eax + 0x14) = edx; /* 0x3000596F: mov dword ptr [eax + 0x14], edx */
  11575     MEM32(eax) = 0x300191C0u; /* 0x30005972: mov dword ptr [eax], 0x300191c0 */
  11576     edx = ecx + 0x18; /* 0x30005978: lea edx, [ecx + 0x18] */
  11577     edi = MEM32(edx); /* 0x3000597B: mov edi, dword ptr [edx] */
  11578     esi = eax + 0x18; /* 0x3000597D: lea esi, [eax + 0x18] */
  11579     MEM32(esi) = edi; /* 0x30005980: mov dword ptr [esi], edi */
  11580     edi = MEM32(edx + 0x4); /* 0x30005982: mov edi, dword ptr [edx + 4] */
  11581     MEM32(esi + 0x4) = edi; /* 0x30005985: mov dword ptr [esi + 4], edi */
  11582     edx = MEM32(edx + 0x8); /* 0x30005988: mov edx, dword ptr [edx + 8] */
  11583     MEM32(esi + 0x8) = edx; /* 0x3000598B: mov dword ptr [esi + 8], edx */
  11584     edx = ecx + 0x24; /* 0x3000598E: lea edx, [ecx + 0x24] */
  11585     edi = MEM32(edx); /* 0x30005991: mov edi, dword ptr [edx] */
  11586     esi = eax + 0x24; /* 0x30005993: lea esi, [eax + 0x24] */
  11587     MEM32(esi) = edi; /* 0x30005996: mov dword ptr [esi], edi */
  11588     edi = MEM32(edx + 0x4); /* 0x30005998: mov edi, dword ptr [edx + 4] */
  11589     MEM32(esi + 0x4) = edi; /* 0x3000599B: mov dword ptr [esi + 4], edi */
  11590     edx = MEM32(edx + 0x8); /* 0x3000599E: mov edx, dword ptr [edx + 8] */
  11591     MEM32(esi + 0x8) = edx; /* 0x300059A1: mov dword ptr [esi + 8], edx */
  11592     edx = ecx + 0x30; /* 0x300059A4: lea edx, [ecx + 0x30] */
  11593     edi = MEM32(edx); /* 0x300059A7: mov edi, dword ptr [edx] */
  11594     esi = eax + 0x30; /* 0x300059A9: lea esi, [eax + 0x30] */
  11595     MEM32(esi) = edi; /* 0x300059AC: mov dword ptr [esi], edi */
  11596     edi = MEM32(edx + 0x4); /* 0x300059AE: mov edi, dword ptr [edx + 4] */
  11597     MEM32(esi + 0x4) = edi; /* 0x300059B1: mov dword ptr [esi + 4], edi */
  11598     edi = MEM32(edx + 0x8); /* 0x300059B4: mov edi, dword ptr [edx + 8] */
  11599     MEM32(esi + 0x8) = edi; /* 0x300059B7: mov dword ptr [esi + 8], edi */
  11600     edx = MEM32(edx + 0xC); /* 0x300059BA: mov edx, dword ptr [edx + 0xc] */
  11601     MEM32(esi + 0xC) = edx; /* 0x300059BD: mov dword ptr [esi + 0xc], edx */
  11602     edx = ecx + 0x40; /* 0x300059C0: lea edx, [ecx + 0x40] */
  11603     edi = MEM32(edx); /* 0x300059C3: mov edi, dword ptr [edx] */
  11604     esi = eax + 0x40; /* 0x300059C5: lea esi, [eax + 0x40] */
  11605     MEM32(esi) = edi; /* 0x300059C8: mov dword ptr [esi], edi */
  11606     edi = MEM32(edx + 0x4); /* 0x300059CA: mov edi, dword ptr [edx + 4] */
  11607     MEM32(esi + 0x4) = edi; /* 0x300059CD: mov dword ptr [esi + 4], edi */
  11608     edi = MEM32(edx + 0x8); /* 0x300059D0: mov edi, dword ptr [edx + 8] */
  11609     MEM32(esi + 0x8) = edi; /* 0x300059D3: mov dword ptr [esi + 8], edi */
  11610     edx = MEM32(edx + 0xC); /* 0x300059D6: mov edx, dword ptr [edx + 0xc] */
  11611     MEM32(esi + 0xC) = edx; /* 0x300059D9: mov dword ptr [esi + 0xc], edx */
  11612     SET_LO8(ecx, MEM8(ecx + 0x50)); /* 0x300059DC: mov cl, byte ptr [ecx + 0x50] */
  11613     edi = POP32_VAL(esp); /* 0x300059DF: pop edi */
  11614     MEM8(eax + 0x50) = (uint8_t)(LO8(ecx)); /* 0x300059E0: mov byte ptr [eax + 0x50], cl */
  11615     MEM32(eax) = 0x30019188u; /* 0x300059E3: mov dword ptr [eax], 0x30019188 */
  11616     esi = POP32_VAL(esp); /* 0x300059E9: pop esi */
  11617     ebp = POP32_VAL(esp); /* 0x300059EA: pop ebp */
  11618     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300059EB: ret 4 */
  11619     RECOMP_REGS_OUT();
  11620 }
  11621 
  11622 void sub_300059F0(void) {
  11623     int _fpu_cmp = 0;
  11624     uint32_t _cf = 0;
  11625     int _df = 1;
  11626     uint32_t _flag_k = FK_NONE;
  11627     uint32_t _flag_a = 0, _flag_b = 0;
  11628     uint32_t _itail_tgt = 0;
  11629     RECOMP_REGS_LOCALS
  11630     RECOMP_ENTER(0x300059F0u);
  11631 
  11632 L_300059F0:
  11633     PUSH32(esp, ebp); /* 0x300059F0: push ebp */
  11634     ebp = esp; /* 0x300059F1: mov ebp, esp */
  11635     PUSH32(esp, esi); /* 0x300059F3: push esi */
  11636     PUSH32(esp, edi); /* 0x300059F4: push edi */
  11637     eax = ecx; /* 0x300059F5: mov eax, ecx */
  11638     ecx = MEM32(ebp + 0x8); /* 0x300059F7: mov ecx, dword ptr [ebp + 8] */
  11639     edx = ecx + 0x4; /* 0x300059FA: lea edx, [ecx + 4] */
  11640     edi = MEM32(edx); /* 0x300059FD: mov edi, dword ptr [edx] */
  11641     esi = eax + 0x4; /* 0x300059FF: lea esi, [eax + 4] */
  11642     MEM32(esi) = edi; /* 0x30005A02: mov dword ptr [esi], edi */
  11643     edi = MEM32(edx + 0x4); /* 0x30005A04: mov edi, dword ptr [edx + 4] */
  11644     MEM32(esi + 0x4) = edi; /* 0x30005A07: mov dword ptr [esi + 4], edi */
  11645     edx = MEM32(edx + 0x8); /* 0x30005A0A: mov edx, dword ptr [edx + 8] */
  11646     MEM32(esi + 0x8) = edx; /* 0x30005A0D: mov dword ptr [esi + 8], edx */
  11647     edx = MEM32(ecx + 0x10); /* 0x30005A10: mov edx, dword ptr [ecx + 0x10] */
  11648     MEM32(eax + 0x10) = edx; /* 0x30005A13: mov dword ptr [eax + 0x10], edx */
  11649     edx = MEM32(ecx + 0x14); /* 0x30005A16: mov edx, dword ptr [ecx + 0x14] */
  11650     MEM32(eax + 0x14) = edx; /* 0x30005A19: mov dword ptr [eax + 0x14], edx */
  11651     edx = ecx + 0x18; /* 0x30005A1C: lea edx, [ecx + 0x18] */
  11652     edi = MEM32(edx); /* 0x30005A1F: mov edi, dword ptr [edx] */
  11653     esi = eax + 0x18; /* 0x30005A21: lea esi, [eax + 0x18] */
  11654     MEM32(esi) = edi; /* 0x30005A24: mov dword ptr [esi], edi */
  11655     edi = MEM32(edx + 0x4); /* 0x30005A26: mov edi, dword ptr [edx + 4] */
  11656     MEM32(esi + 0x4) = edi; /* 0x30005A29: mov dword ptr [esi + 4], edi */
  11657     edx = MEM32(edx + 0x8); /* 0x30005A2C: mov edx, dword ptr [edx + 8] */
  11658     MEM32(esi + 0x8) = edx; /* 0x30005A2F: mov dword ptr [esi + 8], edx */
  11659     edx = ecx + 0x24; /* 0x30005A32: lea edx, [ecx + 0x24] */
  11660     edi = MEM32(edx); /* 0x30005A35: mov edi, dword ptr [edx] */
  11661     esi = eax + 0x24; /* 0x30005A37: lea esi, [eax + 0x24] */
  11662     MEM32(esi) = edi; /* 0x30005A3A: mov dword ptr [esi], edi */
  11663     edi = MEM32(edx + 0x4); /* 0x30005A3C: mov edi, dword ptr [edx + 4] */
  11664     MEM32(esi + 0x4) = edi; /* 0x30005A3F: mov dword ptr [esi + 4], edi */
  11665     edx = MEM32(edx + 0x8); /* 0x30005A42: mov edx, dword ptr [edx + 8] */
  11666     MEM32(esi + 0x8) = edx; /* 0x30005A45: mov dword ptr [esi + 8], edx */
  11667     edx = ecx + 0x30; /* 0x30005A48: lea edx, [ecx + 0x30] */
  11668     edi = MEM32(edx); /* 0x30005A4B: mov edi, dword ptr [edx] */
  11669     esi = eax + 0x30; /* 0x30005A4D: lea esi, [eax + 0x30] */
  11670     MEM32(esi) = edi; /* 0x30005A50: mov dword ptr [esi], edi */
  11671     edi = MEM32(edx + 0x4); /* 0x30005A52: mov edi, dword ptr [edx + 4] */
  11672     MEM32(esi + 0x4) = edi; /* 0x30005A55: mov dword ptr [esi + 4], edi */
  11673     edi = MEM32(edx + 0x8); /* 0x30005A58: mov edi, dword ptr [edx + 8] */
  11674     MEM32(esi + 0x8) = edi; /* 0x30005A5B: mov dword ptr [esi + 8], edi */
  11675     edx = MEM32(edx + 0xC); /* 0x30005A5E: mov edx, dword ptr [edx + 0xc] */
  11676     MEM32(esi + 0xC) = edx; /* 0x30005A61: mov dword ptr [esi + 0xc], edx */
  11677     edx = ecx + 0x40; /* 0x30005A64: lea edx, [ecx + 0x40] */
  11678     edi = MEM32(edx); /* 0x30005A67: mov edi, dword ptr [edx] */
  11679     esi = eax + 0x40; /* 0x30005A69: lea esi, [eax + 0x40] */
  11680     MEM32(esi) = edi; /* 0x30005A6C: mov dword ptr [esi], edi */
  11681     edi = MEM32(edx + 0x4); /* 0x30005A6E: mov edi, dword ptr [edx + 4] */
  11682     MEM32(esi + 0x4) = edi; /* 0x30005A71: mov dword ptr [esi + 4], edi */
  11683     edi = MEM32(edx + 0x8); /* 0x30005A74: mov edi, dword ptr [edx + 8] */
  11684     MEM32(esi + 0x8) = edi; /* 0x30005A77: mov dword ptr [esi + 8], edi */
  11685     edx = MEM32(edx + 0xC); /* 0x30005A7A: mov edx, dword ptr [edx + 0xc] */
  11686     MEM32(esi + 0xC) = edx; /* 0x30005A7D: mov dword ptr [esi + 0xc], edx */
  11687     SET_LO8(ecx, MEM8(ecx + 0x50)); /* 0x30005A80: mov cl, byte ptr [ecx + 0x50] */
  11688     edi = POP32_VAL(esp); /* 0x30005A83: pop edi */
  11689     MEM8(eax + 0x50) = (uint8_t)(LO8(ecx)); /* 0x30005A84: mov byte ptr [eax + 0x50], cl */
  11690     esi = POP32_VAL(esp); /* 0x30005A87: pop esi */
  11691     ebp = POP32_VAL(esp); /* 0x30005A88: pop ebp */
  11692     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005A89: ret 4 */
  11693     RECOMP_REGS_OUT();
  11694 }
  11695 
  11696 void sub_30005A90(void) {
  11697     int _fpu_cmp = 0;
  11698     uint32_t _cf = 0;
  11699     int _df = 1;
  11700     uint32_t _flag_k = FK_NONE;
  11701     uint32_t _flag_a = 0, _flag_b = 0;
  11702     uint32_t _itail_tgt = 0;
  11703     RECOMP_REGS_LOCALS
  11704     RECOMP_ENTER(0x30005A90u);
  11705 
  11706 L_30005A90:
  11707     PUSH32(esp, ebp); /* 0x30005A90: push ebp */
  11708     ebp = esp; /* 0x30005A91: mov ebp, esp */
  11709     PUSH32(esp, ebx); /* 0x30005A93: push ebx */
  11710     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x30005A94: mov bl, byte ptr [ebp + 8] */
  11711     /* test LO8(ebx), 2 */ /* 0x30005A97: test bl, 2 */
  11712     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
  11713     _cf = 0;
  11714     _flag_k = FK_NARROW(FK_TEST, 24);
  11715     PUSH32(esp, esi); /* 0x30005A9A: push esi */
  11716     esi = ecx; /* 0x30005A9B: mov esi, ecx */
  11717     if (TEST_Z(_flag_a, _flag_b)) goto L_30005ACB; /* 0x30005A9D: je 0x30005acb */
  11718 L_30005A9F:
  11719     eax = MEM32(esi + (-0x4)); /* 0x30005A9F: mov eax, dword ptr [esi - 4] */
  11720     PUSH32(esp, edi); /* 0x30005AA2: push edi */
  11721     PUSH32(esp, 0x30005670u); /* 0x30005AA3: push 0x30005670 */
  11722     edi = esi + (-0x4); /* 0x30005AA8: lea edi, [esi - 4] */
  11723     PUSH32(esp, eax); /* 0x30005AAB: push eax */
  11724     PUSH32(esp, 0x54u); /* 0x30005AAC: push 0x54 */
  11725     PUSH32(esp, esi); /* 0x30005AAE: push esi */
  11726     RECOMP_ICALL(0x300180FEu); /* 0x30005AAF: call 0x300180fe */ /* not lifted */
  11727     RECOMP_FLAGS_IN();
  11728     /* test LO8(ebx), 1 */ /* 0x30005AB4: test bl, 1 */
  11729     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
  11730     _cf = 0;
  11731     _flag_k = FK_NARROW(FK_TEST, 24);
  11732     if (TEST_Z(_flag_a, _flag_b)) goto L_30005AC2; /* 0x30005AB7: je 0x30005ac2 */
  11733 L_30005AB9:
  11734     PUSH32(esp, edi); /* 0x30005AB9: push edi */
  11735     RECOMP_ICALL(0x30018080u); /* 0x30005ABA: call 0x30018080 */ /* not lifted */
  11736     RECOMP_FLAGS_IN();
  11737     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11738     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11739     esp = esp + 4; /* 0x30005ABF: add esp, 4 */
  11740     _flag_k = FK_ADD;
  11741 L_30005AC2:
  11742     eax = edi; /* 0x30005AC2: mov eax, edi */
  11743     edi = POP32_VAL(esp); /* 0x30005AC4: pop edi */
  11744     esi = POP32_VAL(esp); /* 0x30005AC5: pop esi */
  11745     ebx = POP32_VAL(esp); /* 0x30005AC6: pop ebx */
  11746     ebp = POP32_VAL(esp); /* 0x30005AC7: pop ebp */
  11747     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005AC8: ret 4 */
  11748 L_30005ACB:
  11749     ecx = esi; /* 0x30005ACB: mov ecx, esi */
  11750     RECOMP_ICALL(0x30005670u); /* 0x30005ACD: call 0x30005670 */ /* not lifted */
  11751     RECOMP_FLAGS_IN();
  11752     /* test LO8(ebx), 1 */ /* 0x30005AD2: test bl, 1 */
  11753     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
  11754     _cf = 0;
  11755     _flag_k = FK_NARROW(FK_TEST, 24);
  11756     if (TEST_Z(_flag_a, _flag_b)) goto L_30005AE0; /* 0x30005AD5: je 0x30005ae0 */
  11757 L_30005AD7:
  11758     PUSH32(esp, esi); /* 0x30005AD7: push esi */
  11759     RECOMP_ICALL(0x30018080u); /* 0x30005AD8: call 0x30018080 */ /* not lifted */
  11760     RECOMP_FLAGS_IN();
  11761     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11762     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11763     esp = esp + 4; /* 0x30005ADD: add esp, 4 */
  11764     _flag_k = FK_ADD;
  11765 L_30005AE0:
  11766     eax = esi; /* 0x30005AE0: mov eax, esi */
  11767     esi = POP32_VAL(esp); /* 0x30005AE2: pop esi */
  11768     ebx = POP32_VAL(esp); /* 0x30005AE3: pop ebx */
  11769     ebp = POP32_VAL(esp); /* 0x30005AE4: pop ebp */
  11770     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005AE5: ret 4 */
  11771     RECOMP_REGS_OUT();
  11772 }
  11773 
  11774 void sub_30005AF0(void) {
  11775     int _fpu_cmp = 0;
  11776     uint32_t _cf = 0;
  11777     int _df = 1;
  11778     uint32_t _flag_k = FK_NONE;
  11779     uint32_t _flag_a = 0, _flag_b = 0;
  11780     uint32_t _itail_tgt = 0;
  11781     RECOMP_REGS_LOCALS
  11782     RECOMP_ENTER(0x30005AF0u);
  11783 
  11784 L_30005AF0:
  11785     RECOMP_ICALL(0x30005B00u); /* 0x30005AF0: call 0x30005b00 */ /* not lifted */
  11786     RECOMP_FLAGS_IN();
  11787     goto L_30005B10; /* 0x30005AF5: jmp 0x30005b10 */
  11788 L_30005B10:
  11789     PUSH32(esp, 0x30005B20u); /* 0x30005B10: push 0x30005b20 */
  11790     RECOMP_ICALL(0x300180ECu); /* 0x30005B15: call 0x300180ec */ /* not lifted */
  11791     RECOMP_FLAGS_IN();
  11792     ecx = POP32_VAL(esp); /* 0x30005B1A: pop ecx */
  11793     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005B1B: ret  */
  11794     RECOMP_REGS_OUT();
  11795 }
  11796 
  11797 void sub_30005B00(void) {
  11798     int _fpu_cmp = 0;
  11799     uint32_t _cf = 0;
  11800     int _df = 1;
  11801     uint32_t _flag_k = FK_NONE;
  11802     uint32_t _flag_a = 0, _flag_b = 0;
  11803     uint32_t _itail_tgt = 0;
  11804     RECOMP_REGS_LOCALS
  11805     RECOMP_ENTER(0x30005B00u);
  11806 
  11807 L_30005B00:
  11808     ecx = 0x3001E3BDu; /* 0x30005B00: mov ecx, 0x3001e3bd */
  11809 L_30005B05:
  11810     { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; }
  11811     { RECOMP_REGS_OUT(); return; } /* end of function */
  11812   _ljump:
  11813     switch (_itail_tgt) {
  11814       case 0x30005B00u: goto L_30005B00;
  11815       case 0x30005B05u: goto L_30005B05;
  11816       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  11817     }
  11818     RECOMP_REGS_OUT();
  11819 }
  11820 
  11821 void sub_30005B10(void) {
  11822     int _fpu_cmp = 0;
  11823     uint32_t _cf = 0;
  11824     int _df = 1;
  11825     uint32_t _flag_k = FK_NONE;
  11826     uint32_t _flag_a = 0, _flag_b = 0;
  11827     uint32_t _itail_tgt = 0;
  11828     RECOMP_REGS_LOCALS
  11829     RECOMP_ENTER(0x30005B10u);
  11830 
  11831 L_30005B10:
  11832     PUSH32(esp, 0x30005B20u); /* 0x30005B10: push 0x30005b20 */
  11833     RECOMP_ICALL(0x300180ECu); /* 0x30005B15: call 0x300180ec */ /* not lifted */
  11834     RECOMP_FLAGS_IN();
  11835     ecx = POP32_VAL(esp); /* 0x30005B1A: pop ecx */
  11836     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005B1B: ret  */
  11837     RECOMP_REGS_OUT();
  11838 }
  11839 
  11840 void sub_30005B20(void) {
  11841     int _fpu_cmp = 0;
  11842     uint32_t _cf = 0;
  11843     int _df = 1;
  11844     uint32_t _flag_k = FK_NONE;
  11845     uint32_t _flag_a = 0, _flag_b = 0;
  11846     uint32_t _itail_tgt = 0;
  11847     RECOMP_REGS_LOCALS
  11848     RECOMP_ENTER(0x30005B20u);
  11849 
  11850 L_30005B20:
  11851     ecx = 0x3001E3BDu; /* 0x30005B20: mov ecx, 0x3001e3bd */
  11852 L_30005B25:
  11853     { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; }
  11854     { RECOMP_REGS_OUT(); return; } /* end of function */
  11855   _ljump:
  11856     switch (_itail_tgt) {
  11857       case 0x30005B20u: goto L_30005B20;
  11858       case 0x30005B25u: goto L_30005B25;
  11859       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  11860     }
  11861     RECOMP_REGS_OUT();
  11862 }
  11863 
  11864 void sub_30005B30(void) {
  11865     int _fpu_cmp = 0;
  11866     uint32_t _cf = 0;
  11867     int _df = 1;
  11868     uint32_t _flag_k = FK_NONE;
  11869     uint32_t _flag_a = 0, _flag_b = 0;
  11870     uint32_t _itail_tgt = 0;
  11871     RECOMP_REGS_LOCALS
  11872     RECOMP_ENTER(0x30005B30u);
  11873 
  11874 L_30005B30:
  11875     RECOMP_ICALL(0x30005B40u); /* 0x30005B30: call 0x30005b40 */ /* not lifted */
  11876     RECOMP_FLAGS_IN();
  11877     goto L_30005B50; /* 0x30005B35: jmp 0x30005b50 */
  11878 L_30005B50:
  11879     PUSH32(esp, 0x30005B60u); /* 0x30005B50: push 0x30005b60 */
  11880     RECOMP_ICALL(0x300180ECu); /* 0x30005B55: call 0x300180ec */ /* not lifted */
  11881     RECOMP_FLAGS_IN();
  11882     ecx = POP32_VAL(esp); /* 0x30005B5A: pop ecx */
  11883     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005B5B: ret  */
  11884     RECOMP_REGS_OUT();
  11885 }
  11886 
  11887 void sub_30005B40(void) {
  11888     int _fpu_cmp = 0;
  11889     uint32_t _cf = 0;
  11890     int _df = 1;
  11891     uint32_t _flag_k = FK_NONE;
  11892     uint32_t _flag_a = 0, _flag_b = 0;
  11893     uint32_t _itail_tgt = 0;
  11894     RECOMP_REGS_LOCALS
  11895     RECOMP_ENTER(0x30005B40u);
  11896 
  11897 L_30005B40:
  11898     ecx = 0x3001E3BCu; /* 0x30005B40: mov ecx, 0x3001e3bc */
  11899 L_30005B45:
  11900     { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; }
  11901     { RECOMP_REGS_OUT(); return; } /* end of function */
  11902   _ljump:
  11903     switch (_itail_tgt) {
  11904       case 0x30005B40u: goto L_30005B40;
  11905       case 0x30005B45u: goto L_30005B45;
  11906       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  11907     }
  11908     RECOMP_REGS_OUT();
  11909 }
  11910 
  11911 void sub_30005B50(void) {
  11912     int _fpu_cmp = 0;
  11913     uint32_t _cf = 0;
  11914     int _df = 1;
  11915     uint32_t _flag_k = FK_NONE;
  11916     uint32_t _flag_a = 0, _flag_b = 0;
  11917     uint32_t _itail_tgt = 0;
  11918     RECOMP_REGS_LOCALS
  11919     RECOMP_ENTER(0x30005B50u);
  11920 
  11921 L_30005B50:
  11922     PUSH32(esp, 0x30005B60u); /* 0x30005B50: push 0x30005b60 */
  11923     RECOMP_ICALL(0x300180ECu); /* 0x30005B55: call 0x300180ec */ /* not lifted */
  11924     RECOMP_FLAGS_IN();
  11925     ecx = POP32_VAL(esp); /* 0x30005B5A: pop ecx */
  11926     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30005B5B: ret  */
  11927     RECOMP_REGS_OUT();
  11928 }
  11929 
  11930 void sub_30005B60(void) {
  11931     int _fpu_cmp = 0;
  11932     uint32_t _cf = 0;
  11933     int _df = 1;
  11934     uint32_t _flag_k = FK_NONE;
  11935     uint32_t _flag_a = 0, _flag_b = 0;
  11936     uint32_t _itail_tgt = 0;
  11937     RECOMP_REGS_LOCALS
  11938     RECOMP_ENTER(0x30005B60u);
  11939 
  11940 L_30005B60:
  11941     ecx = 0x3001E3BCu; /* 0x30005B60: mov ecx, 0x3001e3bc */
  11942 L_30005B65:
  11943     { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; }
  11944     { RECOMP_REGS_OUT(); return; } /* end of function */
  11945   _ljump:
  11946     switch (_itail_tgt) {
  11947       case 0x30005B60u: goto L_30005B60;
  11948       case 0x30005B65u: goto L_30005B65;
  11949       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  11950     }
  11951     RECOMP_REGS_OUT();
  11952 }
  11953 
  11954 void sub_30005B70(void) {
  11955     int _fpu_cmp = 0;
  11956     uint32_t _cf = 0;
  11957     int _df = 1;
  11958     uint32_t _flag_k = FK_NONE;
  11959     uint32_t _flag_a = 0, _flag_b = 0;
  11960     uint32_t _itail_tgt = 0;
  11961     RECOMP_REGS_LOCALS
  11962     RECOMP_ENTER(0x30005B70u);
  11963 
  11964 L_30005B70:
  11965     PUSH32(esp, ebp); /* 0x30005B70: push ebp */
  11966     ebp = esp; /* 0x30005B71: mov ebp, esp */
  11967     eax = ecx; /* 0x30005B73: mov eax, ecx */
  11968     ecx = MEM32(ebp + 0x8); /* 0x30005B75: mov ecx, dword ptr [ebp + 8] */
  11969     MEM32(eax) = 0x300191ACu; /* 0x30005B78: mov dword ptr [eax], 0x300191ac */
  11970     PUSH32(esp, esi); /* 0x30005B7E: push esi */
  11971     PUSH32(esp, edi); /* 0x30005B7F: push edi */
  11972     edx = ecx + 0x4; /* 0x30005B80: lea edx, [ecx + 4] */
  11973     edi = MEM32(edx); /* 0x30005B83: mov edi, dword ptr [edx] */
  11974     esi = eax + 0x4; /* 0x30005B85: lea esi, [eax + 4] */
  11975     MEM32(esi) = edi; /* 0x30005B88: mov dword ptr [esi], edi */
  11976     edi = MEM32(edx + 0x4); /* 0x30005B8A: mov edi, dword ptr [edx + 4] */
  11977     MEM32(esi + 0x4) = edi; /* 0x30005B8D: mov dword ptr [esi + 4], edi */
  11978     edx = MEM32(edx + 0x8); /* 0x30005B90: mov edx, dword ptr [edx + 8] */
  11979     MEM32(esi + 0x8) = edx; /* 0x30005B93: mov dword ptr [esi + 8], edx */
  11980     edx = MEM32(ecx + 0x10); /* 0x30005B96: mov edx, dword ptr [ecx + 0x10] */
  11981     MEM32(eax + 0x10) = edx; /* 0x30005B99: mov dword ptr [eax + 0x10], edx */
  11982     edx = MEM32(ecx + 0x14); /* 0x30005B9C: mov edx, dword ptr [ecx + 0x14] */
  11983     MEM32(eax) = 0x300191C0u; /* 0x30005B9F: mov dword ptr [eax], 0x300191c0 */
  11984     MEM32(eax + 0x14) = edx; /* 0x30005BA5: mov dword ptr [eax + 0x14], edx */
  11985     edx = MEM32(ecx + 0x18); /* 0x30005BA8: mov edx, dword ptr [ecx + 0x18] */
  11986     MEM32(eax + 0x18) = edx; /* 0x30005BAB: mov dword ptr [eax + 0x18], edx */
  11987     ecx = MEM32(ecx + 0x1C); /* 0x30005BAE: mov ecx, dword ptr [ecx + 0x1c] */
  11988     edi = POP32_VAL(esp); /* 0x30005BB1: pop edi */
  11989     MEM32(eax + 0x1C) = ecx; /* 0x30005BB2: mov dword ptr [eax + 0x1c], ecx */
  11990     MEM32(eax) = 0x300191D8u; /* 0x30005BB5: mov dword ptr [eax], 0x300191d8 */
  11991     esi = POP32_VAL(esp); /* 0x30005BBB: pop esi */
  11992     ebp = POP32_VAL(esp); /* 0x30005BBC: pop ebp */
  11993     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30005BBD: ret 4 */
  11994     RECOMP_REGS_OUT();
  11995 }