aorecomp

Anarchy Online classic in the browser

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


client/game/nnr.dll/lifted-0000.c (444787B)


      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_3C001000(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(0x3C001000u);
     17 
     18 L_3C001000:
     19     RECOMP_ICALL(0x3C001010u); /* 0x3C001000: call 0x3c001010 */ /* not lifted */
     20     RECOMP_FLAGS_IN();
     21     goto L_3C001020; /* 0x3C001005: jmp 0x3c001020 */
     22 L_3C001020:
     23     PUSH32(esp, 0x3C001030u); /* 0x3C001020: push 0x3c001030 */
     24     RECOMP_ICALL(0x3C008A15u); /* 0x3C001025: call 0x3c008a15 */ /* not lifted */
     25     RECOMP_FLAGS_IN();
     26     ecx = POP32_VAL(esp); /* 0x3C00102A: pop ecx */
     27     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00102B: ret  */
     28     RECOMP_REGS_OUT();
     29 }
     30 
     31 void sub_3C001010(void) {
     32     int _fpu_cmp = 0;
     33     uint32_t _cf = 0;
     34     int _df = 1;
     35     uint32_t _flag_k = FK_NONE;
     36     uint32_t _flag_a = 0, _flag_b = 0;
     37     uint32_t _itail_tgt = 0;
     38     RECOMP_REGS_LOCALS
     39     RECOMP_ENTER(0x3C001010u);
     40 
     41 L_3C001010:
     42     ecx = 0x3C00D381u; /* 0x3C001010: mov ecx, 0x3c00d381 */
     43 L_3C001015:
     44     { _itail_tgt = (uint32_t)(MEM32(0x3C009014)); goto _ljump; }
     45     { RECOMP_REGS_OUT(); return; } /* end of function */
     46   _ljump:
     47     switch (_itail_tgt) {
     48       case 0x3C001010u: goto L_3C001010;
     49       case 0x3C001015u: goto L_3C001015;
     50       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     51     }
     52     RECOMP_REGS_OUT();
     53 }
     54 
     55 void sub_3C001020(void) {
     56     int _fpu_cmp = 0;
     57     uint32_t _cf = 0;
     58     int _df = 1;
     59     uint32_t _flag_k = FK_NONE;
     60     uint32_t _flag_a = 0, _flag_b = 0;
     61     uint32_t _itail_tgt = 0;
     62     RECOMP_REGS_LOCALS
     63     RECOMP_ENTER(0x3C001020u);
     64 
     65 L_3C001020:
     66     PUSH32(esp, 0x3C001030u); /* 0x3C001020: push 0x3c001030 */
     67     RECOMP_ICALL(0x3C008A15u); /* 0x3C001025: call 0x3c008a15 */ /* not lifted */
     68     RECOMP_FLAGS_IN();
     69     ecx = POP32_VAL(esp); /* 0x3C00102A: pop ecx */
     70     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00102B: ret  */
     71     RECOMP_REGS_OUT();
     72 }
     73 
     74 void sub_3C001030(void) {
     75     int _fpu_cmp = 0;
     76     uint32_t _cf = 0;
     77     int _df = 1;
     78     uint32_t _flag_k = FK_NONE;
     79     uint32_t _flag_a = 0, _flag_b = 0;
     80     uint32_t _itail_tgt = 0;
     81     RECOMP_REGS_LOCALS
     82     RECOMP_ENTER(0x3C001030u);
     83 
     84 L_3C001030:
     85     ecx = 0x3C00D381u; /* 0x3C001030: mov ecx, 0x3c00d381 */
     86 L_3C001035:
     87     { _itail_tgt = (uint32_t)(MEM32(0x3C009008)); goto _ljump; }
     88     { RECOMP_REGS_OUT(); return; } /* end of function */
     89   _ljump:
     90     switch (_itail_tgt) {
     91       case 0x3C001030u: goto L_3C001030;
     92       case 0x3C001035u: goto L_3C001035;
     93       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     94     }
     95     RECOMP_REGS_OUT();
     96 }
     97 
     98 void sub_3C001040(void) {
     99     int _fpu_cmp = 0;
    100     uint32_t _cf = 0;
    101     int _df = 1;
    102     uint32_t _flag_k = FK_NONE;
    103     uint32_t _flag_a = 0, _flag_b = 0;
    104     uint32_t _itail_tgt = 0;
    105     RECOMP_REGS_LOCALS
    106     RECOMP_ENTER(0x3C001040u);
    107 
    108 L_3C001040:
    109     RECOMP_ICALL(0x3C001050u); /* 0x3C001040: call 0x3c001050 */ /* not lifted */
    110     RECOMP_FLAGS_IN();
    111     goto L_3C001060; /* 0x3C001045: jmp 0x3c001060 */
    112 L_3C001060:
    113     PUSH32(esp, 0x3C001070u); /* 0x3C001060: push 0x3c001070 */
    114     RECOMP_ICALL(0x3C008A15u); /* 0x3C001065: call 0x3c008a15 */ /* not lifted */
    115     RECOMP_FLAGS_IN();
    116     ecx = POP32_VAL(esp); /* 0x3C00106A: pop ecx */
    117     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00106B: ret  */
    118     RECOMP_REGS_OUT();
    119 }
    120 
    121 void sub_3C001050(void) {
    122     int _fpu_cmp = 0;
    123     uint32_t _cf = 0;
    124     int _df = 1;
    125     uint32_t _flag_k = FK_NONE;
    126     uint32_t _flag_a = 0, _flag_b = 0;
    127     uint32_t _itail_tgt = 0;
    128     RECOMP_REGS_LOCALS
    129     RECOMP_ENTER(0x3C001050u);
    130 
    131 L_3C001050:
    132     ecx = 0x3C00D380u; /* 0x3C001050: mov ecx, 0x3c00d380 */
    133 L_3C001055:
    134     { _itail_tgt = (uint32_t)(MEM32(0x3C00900C)); goto _ljump; }
    135     { RECOMP_REGS_OUT(); return; } /* end of function */
    136   _ljump:
    137     switch (_itail_tgt) {
    138       case 0x3C001050u: goto L_3C001050;
    139       case 0x3C001055u: goto L_3C001055;
    140       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    141     }
    142     RECOMP_REGS_OUT();
    143 }
    144 
    145 void sub_3C001060(void) {
    146     int _fpu_cmp = 0;
    147     uint32_t _cf = 0;
    148     int _df = 1;
    149     uint32_t _flag_k = FK_NONE;
    150     uint32_t _flag_a = 0, _flag_b = 0;
    151     uint32_t _itail_tgt = 0;
    152     RECOMP_REGS_LOCALS
    153     RECOMP_ENTER(0x3C001060u);
    154 
    155 L_3C001060:
    156     PUSH32(esp, 0x3C001070u); /* 0x3C001060: push 0x3c001070 */
    157     RECOMP_ICALL(0x3C008A15u); /* 0x3C001065: call 0x3c008a15 */ /* not lifted */
    158     RECOMP_FLAGS_IN();
    159     ecx = POP32_VAL(esp); /* 0x3C00106A: pop ecx */
    160     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00106B: ret  */
    161     RECOMP_REGS_OUT();
    162 }
    163 
    164 void sub_3C001070(void) {
    165     int _fpu_cmp = 0;
    166     uint32_t _cf = 0;
    167     int _df = 1;
    168     uint32_t _flag_k = FK_NONE;
    169     uint32_t _flag_a = 0, _flag_b = 0;
    170     uint32_t _itail_tgt = 0;
    171     RECOMP_REGS_LOCALS
    172     RECOMP_ENTER(0x3C001070u);
    173 
    174 L_3C001070:
    175     ecx = 0x3C00D380u; /* 0x3C001070: mov ecx, 0x3c00d380 */
    176 L_3C001075:
    177     { _itail_tgt = (uint32_t)(MEM32(0x3C009010)); goto _ljump; }
    178     { RECOMP_REGS_OUT(); return; } /* end of function */
    179   _ljump:
    180     switch (_itail_tgt) {
    181       case 0x3C001070u: goto L_3C001070;
    182       case 0x3C001075u: goto L_3C001075;
    183       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    184     }
    185     RECOMP_REGS_OUT();
    186 }
    187 
    188 void sub_3C001080(void) {
    189     int _fpu_cmp = 0;
    190     uint32_t _cf = 0;
    191     int _df = 1;
    192     uint32_t _flag_k = FK_NONE;
    193     uint32_t _flag_a = 0, _flag_b = 0;
    194     uint32_t _itail_tgt = 0;
    195     RECOMP_REGS_LOCALS
    196     RECOMP_ENTER(0x3C001080u);
    197 
    198 L_3C001080:
    199     eax = ecx; /* 0x3C001080: mov eax, ecx */
    200     MEM32(eax) = 0x3C00915Cu; /* 0x3C001082: mov dword ptr [eax], 0x3c00915c */
    201     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C001088: ret 4 */
    202     RECOMP_REGS_OUT();
    203 }
    204 
    205 void sub_3C001090(void) {
    206     int _fpu_cmp = 0;
    207     uint32_t _cf = 0;
    208     int _df = 1;
    209     uint32_t _flag_k = FK_NONE;
    210     uint32_t _flag_a = 0, _flag_b = 0;
    211     uint32_t _itail_tgt = 0;
    212     RECOMP_REGS_LOCALS
    213     RECOMP_ENTER(0x3C001090u);
    214 
    215 L_3C001090:
    216     eax = ecx; /* 0x3C001090: mov eax, ecx */
    217     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C001092: ret 4 */
    218     RECOMP_REGS_OUT();
    219 }
    220 
    221 void sub_3C0010A0(void) {
    222     int _fpu_cmp = 0;
    223     uint32_t _cf = 0;
    224     int _df = 1;
    225     uint32_t _flag_k = FK_NONE;
    226     uint32_t _flag_a = 0, _flag_b = 0;
    227     uint32_t _itail_tgt = 0;
    228     RECOMP_REGS_LOCALS
    229     RECOMP_ENTER(0x3C0010A0u);
    230 
    231 L_3C0010A0:
    232     PUSH32(esp, ebp); /* 0x3C0010A0: push ebp */
    233     ebp = esp; /* 0x3C0010A1: mov ebp, esp */
    234     PUSH32(esp, ebx); /* 0x3C0010A3: push ebx */
    235     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3C0010A4: mov bl, byte ptr [ebp + 8] */
    236     /* test LO8(ebx), 2 */ /* 0x3C0010A7: test bl, 2 */
    237     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
    238     _cf = 0;
    239     _flag_k = FK_NARROW(FK_TEST, 24);
    240     PUSH32(esp, esi); /* 0x3C0010AA: push esi */
    241     esi = ecx; /* 0x3C0010AB: mov esi, ecx */
    242     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0010DB; /* 0x3C0010AD: je 0x3c0010db */
    243 L_3C0010AF:
    244     eax = MEM32(esi + (-0x4)); /* 0x3C0010AF: mov eax, dword ptr [esi - 4] */
    245     PUSH32(esp, edi); /* 0x3C0010B2: push edi */
    246     PUSH32(esp, 0x3C005FD0u); /* 0x3C0010B3: push 0x3c005fd0 */
    247     edi = esi + (-0x4); /* 0x3C0010B8: lea edi, [esi - 4] */
    248     PUSH32(esp, eax); /* 0x3C0010BB: push eax */
    249     PUSH32(esp, 4); /* 0x3C0010BC: push 4 */
    250     PUSH32(esp, esi); /* 0x3C0010BE: push esi */
    251     RECOMP_ICALL(0x3C008A4Au); /* 0x3C0010BF: call 0x3c008a4a */ /* not lifted */
    252     RECOMP_FLAGS_IN();
    253     /* test LO8(ebx), 1 */ /* 0x3C0010C4: test bl, 1 */
    254     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    255     _cf = 0;
    256     _flag_k = FK_NARROW(FK_TEST, 24);
    257     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0010D2; /* 0x3C0010C7: je 0x3c0010d2 */
    258 L_3C0010C9:
    259     PUSH32(esp, edi); /* 0x3C0010C9: push edi */
    260     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0010CA: call 0x3c0089de */ /* not lifted */
    261     RECOMP_FLAGS_IN();
    262     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    263     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    264     esp = esp + 4; /* 0x3C0010CF: add esp, 4 */
    265     _flag_k = FK_ADD;
    266 L_3C0010D2:
    267     eax = edi; /* 0x3C0010D2: mov eax, edi */
    268     edi = POP32_VAL(esp); /* 0x3C0010D4: pop edi */
    269     esi = POP32_VAL(esp); /* 0x3C0010D5: pop esi */
    270     ebx = POP32_VAL(esp); /* 0x3C0010D6: pop ebx */
    271     ebp = POP32_VAL(esp); /* 0x3C0010D7: pop ebp */
    272     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0010D8: ret 4 */
    273 L_3C0010DB:
    274     ecx = esi; /* 0x3C0010DB: mov ecx, esi */
    275     RECOMP_ICALL(0x3C005FD0u); /* 0x3C0010DD: call 0x3c005fd0 */ /* not lifted */
    276     RECOMP_FLAGS_IN();
    277     /* test LO8(ebx), 1 */ /* 0x3C0010E2: test bl, 1 */
    278     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    279     _cf = 0;
    280     _flag_k = FK_NARROW(FK_TEST, 24);
    281     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0010F0; /* 0x3C0010E5: je 0x3c0010f0 */
    282 L_3C0010E7:
    283     PUSH32(esp, esi); /* 0x3C0010E7: push esi */
    284     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0010E8: call 0x3c0089de */ /* not lifted */
    285     RECOMP_FLAGS_IN();
    286     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    287     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    288     esp = esp + 4; /* 0x3C0010ED: add esp, 4 */
    289     _flag_k = FK_ADD;
    290 L_3C0010F0:
    291     eax = esi; /* 0x3C0010F0: mov eax, esi */
    292     esi = POP32_VAL(esp); /* 0x3C0010F2: pop esi */
    293     ebx = POP32_VAL(esp); /* 0x3C0010F3: pop ebx */
    294     ebp = POP32_VAL(esp); /* 0x3C0010F4: pop ebp */
    295     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0010F5: ret 4 */
    296     RECOMP_REGS_OUT();
    297 }
    298 
    299 void sub_3C001100(void) {
    300     int _fpu_cmp = 0;
    301     uint32_t _cf = 0;
    302     int _df = 1;
    303     uint32_t _flag_k = FK_NONE;
    304     uint32_t _flag_a = 0, _flag_b = 0;
    305     uint32_t _itail_tgt = 0;
    306     RECOMP_REGS_LOCALS
    307     RECOMP_ENTER(0x3C001100u);
    308 
    309 L_3C001100:
    310     PUSH32(esp, ebp); /* 0x3C001100: push ebp */
    311     ebp = esp; /* 0x3C001101: mov ebp, esp */
    312     eax = ecx; /* 0x3C001103: mov eax, ecx */
    313     ecx = MEM32(ebp + 0x8); /* 0x3C001105: mov ecx, dword ptr [ebp + 8] */
    314     SET_LO8(edx, MEM8(ecx)); /* 0x3C001108: mov dl, byte ptr [ecx] */
    315     MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x3C00110A: mov byte ptr [eax], dl */
    316     ebp = POP32_VAL(esp); /* 0x3C00110C: pop ebp */
    317     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C00110D: ret 4 */
    318     RECOMP_REGS_OUT();
    319 }
    320 
    321 void sub_3C001110(void) {
    322     int _fpu_cmp = 0;
    323     uint32_t _cf = 0;
    324     int _df = 1;
    325     uint32_t _flag_k = FK_NONE;
    326     uint32_t _flag_a = 0, _flag_b = 0;
    327     uint32_t _itail_tgt = 0;
    328     RECOMP_REGS_LOCALS
    329     RECOMP_ENTER(0x3C001110u);
    330 
    331 L_3C001110:
    332     PUSH32(esp, ebp); /* 0x3C001110: push ebp */
    333     ebp = esp; /* 0x3C001111: mov ebp, esp */
    334     eax = ecx; /* 0x3C001113: mov eax, ecx */
    335     ecx = MEM32(ebp + 0xC); /* 0x3C001115: mov ecx, dword ptr [ebp + 0xc] */
    336     MEM32(eax) = ecx; /* 0x3C001118: mov dword ptr [eax], ecx */
    337     ecx = MEM32(ebp + 0x10); /* 0x3C00111A: mov ecx, dword ptr [ebp + 0x10] */
    338     PUSH32(esp, esi); /* 0x3C00111D: push esi */
    339     esi = MEM32(ecx); /* 0x3C00111E: mov esi, dword ptr [ecx] */
    340     edx = eax + 0x4; /* 0x3C001120: lea edx, [eax + 4] */
    341     MEM32(edx) = esi; /* 0x3C001123: mov dword ptr [edx], esi */
    342     esi = MEM32(ecx + 0x4); /* 0x3C001125: mov esi, dword ptr [ecx + 4] */
    343     MEM32(edx + 0x4) = esi; /* 0x3C001128: mov dword ptr [edx + 4], esi */
    344     ecx = MEM32(ecx + 0x8); /* 0x3C00112B: mov ecx, dword ptr [ecx + 8] */
    345     MEM32(edx + 0x8) = ecx; /* 0x3C00112E: mov dword ptr [edx + 8], ecx */
    346     edx = MEM32(ebp + 0x8); /* 0x3C001131: mov edx, dword ptr [ebp + 8] */
    347     MEM32(eax + 0x10) = edx; /* 0x3C001134: mov dword ptr [eax + 0x10], edx */
    348     esi = POP32_VAL(esp); /* 0x3C001137: pop esi */
    349     ebp = POP32_VAL(esp); /* 0x3C001138: pop ebp */
    350     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C001139: ret 0xc */
    351     RECOMP_REGS_OUT();
    352 }
    353 
    354 void sub_3C001140(void) {
    355     int _fpu_cmp = 0;
    356     uint32_t _cf = 0;
    357     int _df = 1;
    358     uint32_t _flag_k = FK_NONE;
    359     uint32_t _flag_a = 0, _flag_b = 0;
    360     uint32_t _itail_tgt = 0;
    361     RECOMP_REGS_LOCALS
    362     RECOMP_ENTER(0x3C001140u);
    363 
    364 L_3C001140:
    365     PUSH32(esp, ebp); /* 0x3C001140: push ebp */
    366     ebp = esp; /* 0x3C001141: mov ebp, esp */
    367     PUSH32(esp, esi); /* 0x3C001143: push esi */
    368     esi = MEM32(ebp + 0x8); /* 0x3C001144: mov esi, dword ptr [ebp + 8] */
    369     PUSH32(esp, edi); /* 0x3C001147: push edi */
    370     eax = ecx; /* 0x3C001148: mov eax, ecx */
    371     ecx = 5; /* 0x3C00114A: mov ecx, 5 */
    372     edi = eax; /* 0x3C00114F: mov edi, eax */
    373     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3C001151: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
    374     edi = POP32_VAL(esp); /* 0x3C001153: pop edi */
    375     esi = POP32_VAL(esp); /* 0x3C001154: pop esi */
    376     ebp = POP32_VAL(esp); /* 0x3C001155: pop ebp */
    377     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C001156: ret 4 */
    378     RECOMP_REGS_OUT();
    379 }
    380 
    381 void sub_3C001160(void) {
    382     int _fpu_cmp = 0;
    383     uint32_t _cf = 0;
    384     int _df = 1;
    385     uint32_t _flag_k = FK_NONE;
    386     uint32_t _flag_a = 0, _flag_b = 0;
    387     uint32_t _itail_tgt = 0;
    388     RECOMP_REGS_LOCALS
    389     RECOMP_ENTER(0x3C001160u);
    390 
    391 L_3C001160:
    392     eax = ecx; /* 0x3C001160: mov eax, ecx */
    393     MEM32(eax) = 0x3C009168u; /* 0x3C001162: mov dword ptr [eax], 0x3c009168 */
    394     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001168: ret  */
    395     RECOMP_REGS_OUT();
    396 }
    397 
    398 void sub_3C001170(void) {
    399     int _fpu_cmp = 0;
    400     uint32_t _cf = 0;
    401     int _df = 1;
    402     uint32_t _flag_k = FK_NONE;
    403     uint32_t _flag_a = 0, _flag_b = 0;
    404     uint32_t _itail_tgt = 0;
    405     RECOMP_REGS_LOCALS
    406     RECOMP_ENTER(0x3C001170u);
    407 
    408 L_3C001170:
    409     eax = ecx; /* 0x3C001170: mov eax, ecx */
    410     MEM32(eax) = 0x3C009168u; /* 0x3C001172: mov dword ptr [eax], 0x3c009168 */
    411     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C001178: ret 4 */
    412     RECOMP_REGS_OUT();
    413 }
    414 
    415 void sub_3C001180(void) {
    416     int _fpu_cmp = 0;
    417     uint32_t _cf = 0;
    418     int _df = 1;
    419     uint32_t _flag_k = FK_NONE;
    420     uint32_t _flag_a = 0, _flag_b = 0;
    421     uint32_t _itail_tgt = 0;
    422     RECOMP_REGS_LOCALS
    423     RECOMP_ENTER(0x3C001180u);
    424 
    425 L_3C001180:
    426     PUSH32(esp, ebp); /* 0x3C001180: push ebp */
    427     ebp = esp; /* 0x3C001181: mov ebp, esp */
    428     PUSH32(esp, ecx); /* 0x3C001183: push ecx */
    429     PUSH32(esp, esi); /* 0x3C001184: push esi */
    430     esi = ecx; /* 0x3C001185: mov esi, ecx */
    431     RECOMP_ICALL(MEM32(0x3C009138)); /* 0x3C001187: call dword ptr [0x3c009138] */
    432     RECOMP_FLAGS_IN();
    433     SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x3C00118D: mov cl, byte ptr [ebp - 1] */
    434     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    435     eax = 0; /* 0x3C001190: xor eax, eax */
    436     _cf = 0;
    437     _flag_k = FK_TEST;
    438     MEM32(esi + 0x20) = eax; /* 0x3C001192: mov dword ptr [esi + 0x20], eax */
    439     MEM32(esi + 0x24) = eax; /* 0x3C001195: mov dword ptr [esi + 0x24], eax */
    440     MEM32(esi + 0x28) = eax; /* 0x3C001198: mov dword ptr [esi + 0x28], eax */
    441     MEM32(esi + 0x30) = eax; /* 0x3C00119B: mov dword ptr [esi + 0x30], eax */
    442     MEM32(esi + 0x34) = eax; /* 0x3C00119E: mov dword ptr [esi + 0x34], eax */
    443     MEM32(esi + 0x38) = eax; /* 0x3C0011A1: mov dword ptr [esi + 0x38], eax */
    444     MEM8(esi + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x3C0011A4: mov byte ptr [esi + 0x2c], cl */
    445     MEM32(esi) = 0x3C009170u; /* 0x3C0011A7: mov dword ptr [esi], 0x3c009170 */
    446     eax = esi; /* 0x3C0011AD: mov eax, esi */
    447     esi = POP32_VAL(esp); /* 0x3C0011AF: pop esi */
    448     esp = ebp; /* 0x3C0011B0: mov esp, ebp */
    449     ebp = POP32_VAL(esp); /* 0x3C0011B2: pop ebp */
    450     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0011B3: ret  */
    451     RECOMP_REGS_OUT();
    452 }
    453 
    454 void sub_3C0011C0(void) {
    455     int _fpu_cmp = 0;
    456     uint32_t _cf = 0;
    457     int _df = 1;
    458     uint32_t _flag_k = FK_NONE;
    459     uint32_t _flag_a = 0, _flag_b = 0;
    460     uint32_t _itail_tgt = 0;
    461     RECOMP_REGS_LOCALS
    462     RECOMP_ENTER(0x3C0011C0u);
    463 
    464 L_3C0011C0:
    465     PUSH32(esp, ebp); /* 0x3C0011C0: push ebp */
    466     ebp = esp; /* 0x3C0011C1: mov ebp, esp */
    467     PUSH32(esp, esi); /* 0x3C0011C3: push esi */
    468     esi = ecx; /* 0x3C0011C4: mov esi, ecx */
    469     RECOMP_ICALL(MEM32(0x3C009138)); /* 0x3C0011C6: call dword ptr [0x3c009138] */
    470     RECOMP_FLAGS_IN();
    471     ecx = MEM32(ebp + 0x8); /* 0x3C0011CC: mov ecx, dword ptr [ebp + 8] */
    472     edx = MEM32(ecx); /* 0x3C0011CF: mov edx, dword ptr [ecx] */
    473     eax = esi + 0x20; /* 0x3C0011D1: lea eax, [esi + 0x20] */
    474     MEM32(eax) = edx; /* 0x3C0011D4: mov dword ptr [eax], edx */
    475     edx = MEM32(ecx + 0x4); /* 0x3C0011D6: mov edx, dword ptr [ecx + 4] */
    476     MEM32(eax + 0x4) = edx; /* 0x3C0011D9: mov dword ptr [eax + 4], edx */
    477     ecx = MEM32(ecx + 0x8); /* 0x3C0011DC: mov ecx, dword ptr [ecx + 8] */
    478     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3C0011DF: mov dl, byte ptr [ebp + 0xb] */
    479     MEM32(eax + 0x8) = ecx; /* 0x3C0011E2: mov dword ptr [eax + 8], ecx */
    480     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    481     eax = 0; /* 0x3C0011E5: xor eax, eax */
    482     _cf = 0;
    483     _flag_k = FK_TEST;
    484     MEM32(esi + 0x30) = eax; /* 0x3C0011E7: mov dword ptr [esi + 0x30], eax */
    485     MEM32(esi + 0x34) = eax; /* 0x3C0011EA: mov dword ptr [esi + 0x34], eax */
    486     MEM32(esi + 0x38) = eax; /* 0x3C0011ED: mov dword ptr [esi + 0x38], eax */
    487     MEM8(esi + 0x2C) = (uint8_t)(LO8(edx)); /* 0x3C0011F0: mov byte ptr [esi + 0x2c], dl */
    488     MEM32(esi) = 0x3C009170u; /* 0x3C0011F3: mov dword ptr [esi], 0x3c009170 */
    489     eax = esi; /* 0x3C0011F9: mov eax, esi */
    490     esi = POP32_VAL(esp); /* 0x3C0011FB: pop esi */
    491     ebp = POP32_VAL(esp); /* 0x3C0011FC: pop ebp */
    492     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0011FD: ret 4 */
    493     RECOMP_REGS_OUT();
    494 }
    495 
    496 void sub_3C001200(void) {
    497     int _fpu_cmp = 0;
    498     uint32_t _cf = 0;
    499     int _df = 1;
    500     uint32_t _flag_k = FK_NONE;
    501     uint32_t _flag_a = 0, _flag_b = 0;
    502     uint32_t _itail_tgt = 0;
    503     RECOMP_REGS_LOCALS
    504     RECOMP_ENTER(0x3C001200u);
    505 
    506 L_3C001200:
    507     eax = ecx + 0x20; /* 0x3C001200: lea eax, [ecx + 0x20] */
    508     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001203: ret  */
    509     RECOMP_REGS_OUT();
    510 }
    511 
    512 void sub_3C001210(void) {
    513     int _fpu_cmp = 0;
    514     uint32_t _cf = 0;
    515     int _df = 1;
    516     uint32_t _flag_k = FK_NONE;
    517     uint32_t _flag_a = 0, _flag_b = 0;
    518     uint32_t _itail_tgt = 0;
    519     RECOMP_REGS_LOCALS
    520     RECOMP_ENTER(0x3C001210u);
    521 
    522 L_3C001210:
    523     PUSH32(esp, ebp); /* 0x3C001210: push ebp */
    524     ebp = esp; /* 0x3C001211: mov ebp, esp */
    525     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    527     esp = esp - 0xCu; /* 0x3C001213: sub esp, 0xc */
    528     _flag_k = FK_CMP;
    529     eax = MEM32(ecx + 0x34); /* 0x3C001216: mov eax, dword ptr [ecx + 0x34] */
    530     PUSH32(esp, esi); /* 0x3C001219: push esi */
    531     esi = ecx + 0x2C; /* 0x3C00121A: lea esi, [ecx + 0x2c] */
    532     ecx = MEM32(esi + 0xC); /* 0x3C00121D: mov ecx, dword ptr [esi + 0xc] */
    533     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    535     ecx = ecx - eax; /* 0x3C001220: sub ecx, eax */
    536     _flag_k = FK_CMP;
    537     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C001222: sar ecx, 2 */
    538     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    539     ecx = (uint32_t)((int32_t)ecx >> 2u);
    540     /* cmp ecx, 1 */ /* 0x3C001225: cmp ecx, 1 */
    541     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    543     _flag_k = FK_CMP;
    544     PUSH32(esp, edi); /* 0x3C001228: push edi */
    545     edi = eax; /* 0x3C001229: mov edi, eax */
    546     if (CMP_AE(_flag_a, _flag_b)) goto L_3C00131B; /* 0x3C00122B: jae 0x3c00131b */
    547 L_3C001231:
    548     edx = MEM32(esi + 0x4); /* 0x3C001231: mov edx, dword ptr [esi + 4] */
    549     /* test edx, edx */ /* 0x3C001234: test edx, edx */
    550     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    551     _cf = 0;
    552     _flag_k = FK_TEST;
    553     if (TEST_Z(_flag_a, _flag_b)) goto L_3C001244; /* 0x3C001236: je 0x3c001244 */
    554 L_3C001238:
    555     ecx = eax; /* 0x3C001238: mov ecx, eax */
    556     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    558     ecx = ecx - edx; /* 0x3C00123A: sub ecx, edx */
    559     _flag_k = FK_CMP;
    560     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C00123C: sar ecx, 2 */
    561     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    562     ecx = (uint32_t)((int32_t)ecx >> 2u);
    563     /* cmp ecx, 1 */ /* 0x3C00123F: cmp ecx, 1 */
    564     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    566     _flag_k = FK_CMP;
    567     if (CMP_A(_flag_a, _flag_b)) goto L_3C001249; /* 0x3C001242: ja 0x3c001249 */
    568 L_3C001244:
    569     ecx = 1; /* 0x3C001244: mov ecx, 1 */
    570 L_3C001249:
    571     /* test edx, edx */ /* 0x3C001249: test edx, edx */
    572     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    573     _cf = 0;
    574     _flag_k = FK_TEST;
    575     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C001251; /* 0x3C00124B: jne 0x3c001251 */
    576 L_3C00124D:
    577     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    578     eax = 0; /* 0x3C00124D: xor eax, eax */
    579     _cf = 0;
    580     _flag_k = FK_TEST;
    581     goto L_3C001256; /* 0x3C00124F: jmp 0x3c001256 */
    582 L_3C001251:
    583     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    585     eax = eax - edx; /* 0x3C001251: sub eax, edx */
    586     _flag_k = FK_CMP;
    587     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3C001253: sar eax, 2 */
    588     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    589     eax = (uint32_t)((int32_t)eax >> 2u);
    590 L_3C001256:
    591     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    592     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    593     eax = eax + ecx; /* 0x3C001256: add eax, ecx */
    594     _flag_k = FK_ADD;
    595     /* test eax, eax */ /* 0x3C001258: test eax, eax */
    596     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    597     _cf = 0;
    598     _flag_k = FK_TEST;
    599     MEM32(ebp + (-0xC)) = eax; /* 0x3C00125A: mov dword ptr [ebp - 0xc], eax */
    600     if (TEST_NS(_flag_a, _flag_b)) goto L_3C001261; /* 0x3C00125D: jge 0x3c001261 */
    601 L_3C00125F:
    602     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    603     eax = 0; /* 0x3C00125F: xor eax, eax */
    604     _cf = 0;
    605     _flag_k = FK_TEST;
    606 L_3C001261:
    607     edx = eax * 4; /* 0x3C001261: lea edx, [eax*4] */
    608     PUSH32(esp, ebx); /* 0x3C001268: push ebx */
    609     PUSH32(esp, edx); /* 0x3C001269: push edx */
    610     RECOMP_ICALL(0x3C008B40u); /* 0x3C00126A: call 0x3c008b40 */ /* not lifted */
    611     RECOMP_FLAGS_IN();
    612     MEM32(ebp + (-0x8)) = eax; /* 0x3C00126F: mov dword ptr [ebp - 8], eax */
    613     ebx = eax; /* 0x3C001272: mov ebx, eax */
    614     eax = MEM32(esi + 0x4); /* 0x3C001274: mov eax, dword ptr [esi + 4] */
    615     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    616     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    617     esp = esp + 4; /* 0x3C001277: add esp, 4 */
    618     _flag_k = FK_ADD;
    619     /* cmp eax, edi */ /* 0x3C00127A: cmp eax, edi */
    620     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    622     _flag_k = FK_CMP;
    623     MEM32(ebp + (-0x4)) = eax; /* 0x3C00127C: mov dword ptr [ebp - 4], eax */
    624     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0012A0; /* 0x3C00127F: je 0x3c0012a0 */
    625 L_3C001281:
    626     goto L_3C001286; /* 0x3C001281: jmp 0x3c001286 */
    627 L_3C001283:
    628     eax = MEM32(ebp + (-0x4)); /* 0x3C001283: mov eax, dword ptr [ebp - 4] */
    629 L_3C001286:
    630     PUSH32(esp, eax); /* 0x3C001286: push eax */
    631     PUSH32(esp, ebx); /* 0x3C001287: push ebx */
    632     RECOMP_ICALL(0x3C005EC0u); /* 0x3C001288: call 0x3c005ec0 */ /* not lifted */
    633     RECOMP_FLAGS_IN();
    634     eax = MEM32(ebp + (-0x4)); /* 0x3C00128D: mov eax, dword ptr [ebp - 4] */
    635     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    636     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    637     eax = eax + 4; /* 0x3C001290: add eax, 4 */
    638     _flag_k = FK_ADD;
    639     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    640     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    641     esp = esp + 8; /* 0x3C001293: add esp, 8 */
    642     _flag_k = FK_ADD;
    643     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
    644     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    645     ebx = ebx + 4; /* 0x3C001296: add ebx, 4 */
    646     _flag_k = FK_ADD;
    647     /* cmp eax, edi */ /* 0x3C001299: cmp eax, edi */
    648     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    649     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    650     _flag_k = FK_CMP;
    651     MEM32(ebp + (-0x4)) = eax; /* 0x3C00129B: mov dword ptr [ebp - 4], eax */
    652     RECOMP_BACKEDGE();
    653     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001283; /* 0x3C00129E: jne 0x3c001283 */
    654 L_3C0012A0:
    655     eax = ebp + 0x8; /* 0x3C0012A0: lea eax, [ebp + 8] */
    656     PUSH32(esp, eax); /* 0x3C0012A3: push eax */
    657     PUSH32(esp, 1); /* 0x3C0012A4: push 1 */
    658     PUSH32(esp, ebx); /* 0x3C0012A6: push ebx */
    659     ecx = esi; /* 0x3C0012A7: mov ecx, esi */
    660     RECOMP_ICALL(0x3C0023B0u); /* 0x3C0012A9: call 0x3c0023b0 */ /* not lifted */
    661     RECOMP_FLAGS_IN();
    662     ecx = MEM32(esi + 0x8); /* 0x3C0012AE: mov ecx, dword ptr [esi + 8] */
    663     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
    664     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    665     ebx = ebx + 4; /* 0x3C0012B1: add ebx, 4 */
    666     _flag_k = FK_ADD;
    667     PUSH32(esp, ebx); /* 0x3C0012B4: push ebx */
    668     PUSH32(esp, ecx); /* 0x3C0012B5: push ecx */
    669     PUSH32(esp, edi); /* 0x3C0012B6: push edi */
    670     ecx = esi; /* 0x3C0012B7: mov ecx, esi */
    671     RECOMP_ICALL(0x3C005D70u); /* 0x3C0012B9: call 0x3c005d70 */ /* not lifted */
    672     RECOMP_FLAGS_IN();
    673     edx = MEM32(esi + 0x8); /* 0x3C0012BE: mov edx, dword ptr [esi + 8] */
    674     eax = MEM32(esi + 0x4); /* 0x3C0012C1: mov eax, dword ptr [esi + 4] */
    675     PUSH32(esp, edx); /* 0x3C0012C4: push edx */
    676     PUSH32(esp, eax); /* 0x3C0012C5: push eax */
    677     ecx = esi; /* 0x3C0012C6: mov ecx, esi */
    678     RECOMP_ICALL(0x3C006F40u); /* 0x3C0012C8: call 0x3c006f40 */ /* not lifted */
    679     RECOMP_FLAGS_IN();
    680     ecx = MEM32(esi + 0x4); /* 0x3C0012CD: mov ecx, dword ptr [esi + 4] */
    681     PUSH32(esp, ecx); /* 0x3C0012D0: push ecx */
    682     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0012D1: call 0x3c0089de */ /* not lifted */
    683     RECOMP_FLAGS_IN();
    684     eax = MEM32(ebp + (-0xC)); /* 0x3C0012D6: mov eax, dword ptr [ebp - 0xc] */
    685     edx = MEM32(ebp + (-0x8)); /* 0x3C0012D9: mov edx, dword ptr [ebp - 8] */
    686     ecx = edx + eax * 4; /* 0x3C0012DC: lea ecx, [edx + eax*4] */
    687     eax = MEM32(esi + 0x4); /* 0x3C0012DF: mov eax, dword ptr [esi + 4] */
    688     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    689     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    690     esp = esp + 4; /* 0x3C0012E2: add esp, 4 */
    691     _flag_k = FK_ADD;
    692     /* test eax, eax */ /* 0x3C0012E5: test eax, eax */
    693     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    694     _cf = 0;
    695     _flag_k = FK_TEST;
    696     MEM32(esi + 0xC) = ecx; /* 0x3C0012E7: mov dword ptr [esi + 0xc], ecx */
    697     ebx = POP32_VAL(esp); /* 0x3C0012EA: pop ebx */
    698     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C001301; /* 0x3C0012EB: jne 0x3c001301 */
    699 L_3C0012ED:
    700     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    701     ecx = 0; /* 0x3C0012ED: xor ecx, ecx */
    702     _cf = 0;
    703     _flag_k = FK_TEST;
    704     eax = edx + ecx * 4 + 0x4; /* 0x3C0012EF: lea eax, [edx + ecx*4 + 4] */
    705     edi = POP32_VAL(esp); /* 0x3C0012F3: pop edi */
    706     MEM32(esi + 0x8) = eax; /* 0x3C0012F4: mov dword ptr [esi + 8], eax */
    707     MEM32(esi + 0x4) = edx; /* 0x3C0012F7: mov dword ptr [esi + 4], edx */
    708     esi = POP32_VAL(esp); /* 0x3C0012FA: pop esi */
    709     esp = ebp; /* 0x3C0012FB: mov esp, ebp */
    710     ebp = POP32_VAL(esp); /* 0x3C0012FD: pop ebp */
    711     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0012FE: ret 4 */
    712 L_3C001301:
    713     ecx = MEM32(esi + 0x8); /* 0x3C001301: mov ecx, dword ptr [esi + 8] */
    714     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    716     ecx = ecx - eax; /* 0x3C001304: sub ecx, eax */
    717     _flag_k = FK_CMP;
    718     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C001306: sar ecx, 2 */
    719     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    720     ecx = (uint32_t)((int32_t)ecx >> 2u);
    721     eax = edx + ecx * 4 + 0x4; /* 0x3C001309: lea eax, [edx + ecx*4 + 4] */
    722     edi = POP32_VAL(esp); /* 0x3C00130D: pop edi */
    723     MEM32(esi + 0x8) = eax; /* 0x3C00130E: mov dword ptr [esi + 8], eax */
    724     MEM32(esi + 0x4) = edx; /* 0x3C001311: mov dword ptr [esi + 4], edx */
    725     esi = POP32_VAL(esp); /* 0x3C001314: pop esi */
    726     esp = ebp; /* 0x3C001315: mov esp, ebp */
    727     ebp = POP32_VAL(esp); /* 0x3C001317: pop ebp */
    728     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C001318: ret 4 */
    729 L_3C00131B:
    730     ecx = eax; /* 0x3C00131B: mov ecx, eax */
    731     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
    732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    733     ecx = ecx - edi; /* 0x3C00131D: sub ecx, edi */
    734     _flag_k = FK_CMP;
    735     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C00131F: sar ecx, 2 */
    736     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    737     ecx = (uint32_t)((int32_t)ecx >> 2u);
    738     /* cmp ecx, 1 */ /* 0x3C001322: cmp ecx, 1 */
    739     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    741     _flag_k = FK_CMP;
    742     if (CMP_AE(_flag_a, _flag_b)) goto L_3C001376; /* 0x3C001325: jae 0x3c001376 */
    743 L_3C001327:
    744     edx = edi + 0x4; /* 0x3C001327: lea edx, [edi + 4] */
    745     PUSH32(esp, edx); /* 0x3C00132A: push edx */
    746     PUSH32(esp, eax); /* 0x3C00132B: push eax */
    747     PUSH32(esp, edi); /* 0x3C00132C: push edi */
    748     ecx = esi; /* 0x3C00132D: mov ecx, esi */
    749     RECOMP_ICALL(0x3C005D70u); /* 0x3C00132F: call 0x3c005d70 */ /* not lifted */
    750     RECOMP_FLAGS_IN();
    751     eax = MEM32(esi + 0x8); /* 0x3C001334: mov eax, dword ptr [esi + 8] */
    752     edx = eax; /* 0x3C001337: mov edx, eax */
    753     ecx = ebp + 0x8; /* 0x3C001339: lea ecx, [ebp + 8] */
    754     PUSH32(esp, ecx); /* 0x3C00133C: push ecx */
    755     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
    756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    757     edx = edx - edi; /* 0x3C00133D: sub edx, edi */
    758     _flag_k = FK_CMP;
    759     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3C00133F: sar edx, 2 */
    760     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    761     edx = (uint32_t)((int32_t)edx >> 2u);
    762     ecx = 1; /* 0x3C001342: mov ecx, 1 */
    763     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    765     ecx = ecx - edx; /* 0x3C001347: sub ecx, edx */
    766     _flag_k = FK_CMP;
    767     PUSH32(esp, ecx); /* 0x3C001349: push ecx */
    768     PUSH32(esp, eax); /* 0x3C00134A: push eax */
    769     ecx = esi; /* 0x3C00134B: mov ecx, esi */
    770     RECOMP_ICALL(0x3C0023B0u); /* 0x3C00134D: call 0x3c0023b0 */ /* not lifted */
    771     RECOMP_FLAGS_IN();
    772     eax = MEM32(esi + 0x8); /* 0x3C001352: mov eax, dword ptr [esi + 8] */
    773     /* cmp edi, eax */ /* 0x3C001355: cmp edi, eax */
    774     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    775     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    776     _flag_k = FK_CMP;
    777     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0013B1; /* 0x3C001357: je 0x3c0013b1 */
    778 L_3C001359:
    779     edx = MEM32(ebp + 0x8); /* 0x3C001359: mov edx, dword ptr [ebp + 8] */
    780     MEM32(edi) = edx; /* 0x3C00135C: mov dword ptr [edi], edx */
    781     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
    782     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    783     edi = edi + 4; /* 0x3C00135E: add edi, 4 */
    784     _flag_k = FK_ADD;
    785     /* cmp edi, eax */ /* 0x3C001361: cmp edi, eax */
    786     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    787     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    788     _flag_k = FK_CMP;
    789     RECOMP_BACKEDGE();
    790     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001359; /* 0x3C001363: jne 0x3c001359 */
    791 L_3C001365:
    792     eax = MEM32(esi + 0x8); /* 0x3C001365: mov eax, dword ptr [esi + 8] */
    793     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    794     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    795     eax = eax + 4; /* 0x3C001368: add eax, 4 */
    796     _flag_k = FK_ADD;
    797     edi = POP32_VAL(esp); /* 0x3C00136B: pop edi */
    798     MEM32(esi + 0x8) = eax; /* 0x3C00136C: mov dword ptr [esi + 8], eax */
    799     esi = POP32_VAL(esp); /* 0x3C00136F: pop esi */
    800     esp = ebp; /* 0x3C001370: mov esp, ebp */
    801     ebp = POP32_VAL(esp); /* 0x3C001372: pop ebp */
    802     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C001373: ret 4 */
    803 L_3C001376:
    804     PUSH32(esp, eax); /* 0x3C001376: push eax */
    805     PUSH32(esp, eax); /* 0x3C001377: push eax */
    806     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu);
    807     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    808     eax = eax + 0xFFFFFFFCu; /* 0x3C001378: add eax, -4 */
    809     _flag_k = FK_ADD;
    810     PUSH32(esp, eax); /* 0x3C00137B: push eax */
    811     ecx = esi; /* 0x3C00137C: mov ecx, esi */
    812     RECOMP_ICALL(0x3C005D70u); /* 0x3C00137E: call 0x3c005d70 */ /* not lifted */
    813     RECOMP_FLAGS_IN();
    814     ecx = MEM32(esi + 0x8); /* 0x3C001383: mov ecx, dword ptr [esi + 8] */
    815     eax = ecx + (-0x4); /* 0x3C001386: lea eax, [ecx - 4] */
    816     /* cmp edi, eax */ /* 0x3C001389: cmp edi, eax */
    817     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    818     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    819     _flag_k = FK_CMP;
    820     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00139C; /* 0x3C00138B: je 0x3c00139c */
    821 L_3C00138D:
    822     edx = MEM32(eax + (-0x4)); /* 0x3C00138D: mov edx, dword ptr [eax - 4] */
    823     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    825     eax = eax - 4; /* 0x3C001390: sub eax, 4 */
    826     _flag_k = FK_CMP;
    827     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    829     ecx = ecx - 4; /* 0x3C001393: sub ecx, 4 */
    830     _flag_k = FK_CMP;
    831     /* cmp eax, edi */ /* 0x3C001396: cmp eax, edi */
    832     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    834     _flag_k = FK_CMP;
    835     MEM32(ecx) = edx; /* 0x3C001398: mov dword ptr [ecx], edx */
    836     RECOMP_BACKEDGE();
    837     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00138D; /* 0x3C00139A: jne 0x3c00138d */
    838 L_3C00139C:
    839     ecx = edi + 0x4; /* 0x3C00139C: lea ecx, [edi + 4] */
    840     /* cmp edi, ecx */ /* 0x3C00139F: cmp edi, ecx */
    841     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
    842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    843     _flag_k = FK_CMP;
    844     eax = edi; /* 0x3C0013A1: mov eax, edi */
    845     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0013B1; /* 0x3C0013A3: je 0x3c0013b1 */
    846 L_3C0013A5:
    847     edx = MEM32(ebp + 0x8); /* 0x3C0013A5: mov edx, dword ptr [ebp + 8] */
    848     MEM32(eax) = edx; /* 0x3C0013A8: mov dword ptr [eax], edx */
    849     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    850     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    851     eax = eax + 4; /* 0x3C0013AA: add eax, 4 */
    852     _flag_k = FK_ADD;
    853     /* cmp eax, ecx */ /* 0x3C0013AD: cmp eax, ecx */
    854     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    856     _flag_k = FK_CMP;
    857     RECOMP_BACKEDGE();
    858     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0013A5; /* 0x3C0013AF: jne 0x3c0013a5 */
    859 L_3C0013B1:
    860     eax = MEM32(esi + 0x8); /* 0x3C0013B1: mov eax, dword ptr [esi + 8] */
    861     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    862     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    863     eax = eax + 4; /* 0x3C0013B4: add eax, 4 */
    864     _flag_k = FK_ADD;
    865     edi = POP32_VAL(esp); /* 0x3C0013B7: pop edi */
    866     MEM32(esi + 0x8) = eax; /* 0x3C0013B8: mov dword ptr [esi + 8], eax */
    867     esi = POP32_VAL(esp); /* 0x3C0013BB: pop esi */
    868     esp = ebp; /* 0x3C0013BC: mov esp, ebp */
    869     ebp = POP32_VAL(esp); /* 0x3C0013BE: pop ebp */
    870     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0013BF: ret 4 */
    871     RECOMP_REGS_OUT();
    872 }
    873 
    874 void sub_3C0013D0(void) {
    875     int _fpu_cmp = 0;
    876     uint32_t _cf = 0;
    877     int _df = 1;
    878     uint32_t _flag_k = FK_NONE;
    879     uint32_t _flag_a = 0, _flag_b = 0;
    880     uint32_t _itail_tgt = 0;
    881     RECOMP_REGS_LOCALS
    882     RECOMP_ENTER(0x3C0013D0u);
    883 
    884 L_3C0013D0:
    885     edx = MEM32(ecx + 0x30); /* 0x3C0013D0: mov edx, dword ptr [ecx + 0x30] */
    886     /* test edx, edx */ /* 0x3C0013D3: test edx, edx */
    887     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    888     _cf = 0;
    889     _flag_k = FK_TEST;
    890     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0013DA; /* 0x3C0013D5: jne 0x3c0013da */
    891 L_3C0013D7:
    892     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    893     eax = 0; /* 0x3C0013D7: xor eax, eax */
    894     _cf = 0;
    895     _flag_k = FK_TEST;
    896     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0013D9: ret  */
    897 L_3C0013DA:
    898     eax = MEM32(ecx + 0x34); /* 0x3C0013DA: mov eax, dword ptr [ecx + 0x34] */
    899     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    901     eax = eax - edx; /* 0x3C0013DD: sub eax, edx */
    902     _flag_k = FK_CMP;
    903     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3C0013DF: sar eax, 2 */
    904     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    905     eax = (uint32_t)((int32_t)eax >> 2u);
    906     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0013E2: ret  */
    907     RECOMP_REGS_OUT();
    908 }
    909 
    910 void sub_3C0013F0(void) {
    911     int _fpu_cmp = 0;
    912     uint32_t _cf = 0;
    913     int _df = 1;
    914     uint32_t _flag_k = FK_NONE;
    915     uint32_t _flag_a = 0, _flag_b = 0;
    916     uint32_t _itail_tgt = 0;
    917     RECOMP_REGS_LOCALS
    918     RECOMP_ENTER(0x3C0013F0u);
    919 
    920 L_3C0013F0:
    921     PUSH32(esp, ebp); /* 0x3C0013F0: push ebp */
    922     ebp = esp; /* 0x3C0013F1: mov ebp, esp */
    923     PUSH32(esp, ebx); /* 0x3C0013F3: push ebx */
    924     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3C0013F4: mov bl, byte ptr [ebp + 8] */
    925     /* test LO8(ebx), 2 */ /* 0x3C0013F7: test bl, 2 */
    926     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
    927     _cf = 0;
    928     _flag_k = FK_NARROW(FK_TEST, 24);
    929     PUSH32(esp, esi); /* 0x3C0013FA: push esi */
    930     esi = ecx; /* 0x3C0013FB: mov esi, ecx */
    931     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00142B; /* 0x3C0013FD: je 0x3c00142b */
    932 L_3C0013FF:
    933     eax = MEM32(esi + (-0x4)); /* 0x3C0013FF: mov eax, dword ptr [esi - 4] */
    934     PUSH32(esp, edi); /* 0x3C001402: push edi */
    935     PUSH32(esp, 0x3C007BA0u); /* 0x3C001403: push 0x3c007ba0 */
    936     edi = esi + (-0x4); /* 0x3C001408: lea edi, [esi - 4] */
    937     PUSH32(esp, eax); /* 0x3C00140B: push eax */
    938     PUSH32(esp, 0x3Cu); /* 0x3C00140C: push 0x3c */
    939     PUSH32(esp, esi); /* 0x3C00140E: push esi */
    940     RECOMP_ICALL(0x3C008A4Au); /* 0x3C00140F: call 0x3c008a4a */ /* not lifted */
    941     RECOMP_FLAGS_IN();
    942     /* test LO8(ebx), 1 */ /* 0x3C001414: test bl, 1 */
    943     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    944     _cf = 0;
    945     _flag_k = FK_NARROW(FK_TEST, 24);
    946     if (TEST_Z(_flag_a, _flag_b)) goto L_3C001422; /* 0x3C001417: je 0x3c001422 */
    947 L_3C001419:
    948     PUSH32(esp, edi); /* 0x3C001419: push edi */
    949     RECOMP_ICALL(0x3C0089DEu); /* 0x3C00141A: call 0x3c0089de */ /* not lifted */
    950     RECOMP_FLAGS_IN();
    951     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    952     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    953     esp = esp + 4; /* 0x3C00141F: add esp, 4 */
    954     _flag_k = FK_ADD;
    955 L_3C001422:
    956     eax = edi; /* 0x3C001422: mov eax, edi */
    957     edi = POP32_VAL(esp); /* 0x3C001424: pop edi */
    958     esi = POP32_VAL(esp); /* 0x3C001425: pop esi */
    959     ebx = POP32_VAL(esp); /* 0x3C001426: pop ebx */
    960     ebp = POP32_VAL(esp); /* 0x3C001427: pop ebp */
    961     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C001428: ret 4 */
    962 L_3C00142B:
    963     ecx = esi; /* 0x3C00142B: mov ecx, esi */
    964     RECOMP_ICALL(0x3C007BA0u); /* 0x3C00142D: call 0x3c007ba0 */ /* not lifted */
    965     RECOMP_FLAGS_IN();
    966     /* test LO8(ebx), 1 */ /* 0x3C001432: test bl, 1 */
    967     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    968     _cf = 0;
    969     _flag_k = FK_NARROW(FK_TEST, 24);
    970     if (TEST_Z(_flag_a, _flag_b)) goto L_3C001440; /* 0x3C001435: je 0x3c001440 */
    971 L_3C001437:
    972     PUSH32(esp, esi); /* 0x3C001437: push esi */
    973     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001438: call 0x3c0089de */ /* not lifted */
    974     RECOMP_FLAGS_IN();
    975     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    976     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    977     esp = esp + 4; /* 0x3C00143D: add esp, 4 */
    978     _flag_k = FK_ADD;
    979 L_3C001440:
    980     eax = esi; /* 0x3C001440: mov eax, esi */
    981     esi = POP32_VAL(esp); /* 0x3C001442: pop esi */
    982     ebx = POP32_VAL(esp); /* 0x3C001443: pop ebx */
    983     ebp = POP32_VAL(esp); /* 0x3C001444: pop ebp */
    984     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C001445: ret 4 */
    985     RECOMP_REGS_OUT();
    986 }
    987 
    988 void sub_3C001450(void) {
    989     int _fpu_cmp = 0;
    990     uint32_t _cf = 0;
    991     int _df = 1;
    992     uint32_t _flag_k = FK_NONE;
    993     uint32_t _flag_a = 0, _flag_b = 0;
    994     uint32_t _itail_tgt = 0;
    995     RECOMP_REGS_LOCALS
    996     RECOMP_ENTER(0x3C001450u);
    997 
    998 L_3C001450:
    999     eax = ecx; /* 0x3C001450: mov eax, ecx */
   1000     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1001     ecx = 0; /* 0x3C001452: xor ecx, ecx */
   1002     _cf = 0;
   1003     _flag_k = FK_TEST;
   1004     MEM32(eax) = ecx; /* 0x3C001454: mov dword ptr [eax], ecx */
   1005     MEM32(eax + 0x4) = ecx; /* 0x3C001456: mov dword ptr [eax + 4], ecx */
   1006     MEM32(eax + 0x8) = ecx; /* 0x3C001459: mov dword ptr [eax + 8], ecx */
   1007     MEM32(eax + 0xC) = ecx; /* 0x3C00145C: mov dword ptr [eax + 0xc], ecx */
   1008     MEM32(eax + 0x10) = ecx; /* 0x3C00145F: mov dword ptr [eax + 0x10], ecx */
   1009     MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3C001462: mov byte ptr [eax + 0x14], cl */
   1010     MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x3C001465: mov byte ptr [eax + 0x15], cl */
   1011     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001468: ret  */
   1012     RECOMP_REGS_OUT();
   1013 }
   1014 
   1015 void sub_3C001470(void) {
   1016     int _fpu_cmp = 0;
   1017     uint32_t _cf = 0;
   1018     int _df = 1;
   1019     uint32_t _flag_k = FK_NONE;
   1020     uint32_t _flag_a = 0, _flag_b = 0;
   1021     uint32_t _itail_tgt = 0;
   1022     RECOMP_REGS_LOCALS
   1023     RECOMP_ENTER(0x3C001470u);
   1024 
   1025 L_3C001470:
   1026     PUSH32(esp, ebp); /* 0x3C001470: push ebp */
   1027     ebp = esp; /* 0x3C001471: mov ebp, esp */
   1028     edx = MEM32(ebp + 0x8); /* 0x3C001473: mov edx, dword ptr [ebp + 8] */
   1029     eax = ecx; /* 0x3C001476: mov eax, ecx */
   1030     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1031     ecx = 0; /* 0x3C001478: xor ecx, ecx */
   1032     _cf = 0;
   1033     _flag_k = FK_TEST;
   1034     MEM32(eax) = ecx; /* 0x3C00147A: mov dword ptr [eax], ecx */
   1035     MEM32(eax + 0x4) = ecx; /* 0x3C00147C: mov dword ptr [eax + 4], ecx */
   1036     MEM32(eax + 0x8) = ecx; /* 0x3C00147F: mov dword ptr [eax + 8], ecx */
   1037     MEM32(eax + 0xC) = ecx; /* 0x3C001482: mov dword ptr [eax + 0xc], ecx */
   1038     MEM32(eax + 0x10) = edx; /* 0x3C001485: mov dword ptr [eax + 0x10], edx */
   1039     MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3C001488: mov byte ptr [eax + 0x14], cl */
   1040     MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x3C00148B: mov byte ptr [eax + 0x15], cl */
   1041     ebp = POP32_VAL(esp); /* 0x3C00148E: pop ebp */
   1042     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C00148F: ret 4 */
   1043     RECOMP_REGS_OUT();
   1044 }
   1045 
   1046 void sub_3C0014A0(void) {
   1047     int _fpu_cmp = 0;
   1048     uint32_t _cf = 0;
   1049     int _df = 1;
   1050     uint32_t _flag_k = FK_NONE;
   1051     uint32_t _flag_a = 0, _flag_b = 0;
   1052     uint32_t _itail_tgt = 0;
   1053     RECOMP_REGS_LOCALS
   1054     RECOMP_ENTER(0x3C0014A0u);
   1055 
   1056 L_3C0014A0:
   1057     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1058     eax = 0; /* 0x3C0014A0: xor eax, eax */
   1059     _cf = 0;
   1060     _flag_k = FK_TEST;
   1061     MEM32(ecx) = eax; /* 0x3C0014A2: mov dword ptr [ecx], eax */
   1062     MEM32(ecx + 0x4) = eax; /* 0x3C0014A4: mov dword ptr [ecx + 4], eax */
   1063     MEM32(ecx + 0x8) = eax; /* 0x3C0014A7: mov dword ptr [ecx + 8], eax */
   1064     MEM32(ecx + 0xC) = eax; /* 0x3C0014AA: mov dword ptr [ecx + 0xc], eax */
   1065     MEM32(ecx + 0x10) = eax; /* 0x3C0014AD: mov dword ptr [ecx + 0x10], eax */
   1066     MEM8(ecx + 0x14) = (uint8_t)(LO8(eax)); /* 0x3C0014B0: mov byte ptr [ecx + 0x14], al */
   1067     MEM8(ecx + 0x15) = (uint8_t)(LO8(eax)); /* 0x3C0014B3: mov byte ptr [ecx + 0x15], al */
   1068     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0014B6: ret  */
   1069     RECOMP_REGS_OUT();
   1070 }
   1071 
   1072 void sub_3C0014C0(void) {
   1073     int _fpu_cmp = 0;
   1074     uint32_t _cf = 0;
   1075     int _df = 1;
   1076     uint32_t _flag_k = FK_NONE;
   1077     uint32_t _flag_a = 0, _flag_b = 0;
   1078     uint32_t _itail_tgt = 0;
   1079     RECOMP_REGS_LOCALS
   1080     RECOMP_ENTER(0x3C0014C0u);
   1081 
   1082 L_3C0014C0:
   1083     MEM8(ecx + 0x15) = (uint8_t)(1); /* 0x3C0014C0: mov byte ptr [ecx + 0x15], 1 */
   1084     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0014C4: ret  */
   1085     RECOMP_REGS_OUT();
   1086 }
   1087 
   1088 void sub_3C0014D0(void) {
   1089     int _fpu_cmp = 0;
   1090     uint32_t _cf = 0;
   1091     int _df = 1;
   1092     uint32_t _flag_k = FK_NONE;
   1093     uint32_t _flag_a = 0, _flag_b = 0;
   1094     uint32_t _itail_tgt = 0;
   1095     RECOMP_REGS_LOCALS
   1096     RECOMP_ENTER(0x3C0014D0u);
   1097 
   1098 L_3C0014D0:
   1099     MEM8(ecx + 0x15) = (uint8_t)(0); /* 0x3C0014D0: mov byte ptr [ecx + 0x15], 0 */
   1100     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0014D4: ret  */
   1101     RECOMP_REGS_OUT();
   1102 }
   1103 
   1104 void sub_3C0014E0(void) {
   1105     int _fpu_cmp = 0;
   1106     uint32_t _cf = 0;
   1107     int _df = 1;
   1108     uint32_t _flag_k = FK_NONE;
   1109     uint32_t _flag_a = 0, _flag_b = 0;
   1110     uint32_t _itail_tgt = 0;
   1111     RECOMP_REGS_LOCALS
   1112     RECOMP_ENTER(0x3C0014E0u);
   1113 
   1114 L_3C0014E0:
   1115     SET_LO8(eax, MEM8(ecx + 0x15)); /* 0x3C0014E0: mov al, byte ptr [ecx + 0x15] */
   1116     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0014E3: ret  */
   1117     RECOMP_REGS_OUT();
   1118 }
   1119 
   1120 void sub_3C0014F0(void) {
   1121     int _fpu_cmp = 0;
   1122     uint32_t _cf = 0;
   1123     int _df = 1;
   1124     uint32_t _flag_k = FK_NONE;
   1125     uint32_t _flag_a = 0, _flag_b = 0;
   1126     uint32_t _itail_tgt = 0;
   1127     RECOMP_REGS_LOCALS
   1128     RECOMP_ENTER(0x3C0014F0u);
   1129 
   1130 L_3C0014F0:
   1131     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3C0014F0: mov byte ptr [ecx + 0x14], 1 */
   1132     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0014F4: ret  */
   1133     RECOMP_REGS_OUT();
   1134 }
   1135 
   1136 void sub_3C001500(void) {
   1137     int _fpu_cmp = 0;
   1138     uint32_t _cf = 0;
   1139     int _df = 1;
   1140     uint32_t _flag_k = FK_NONE;
   1141     uint32_t _flag_a = 0, _flag_b = 0;
   1142     uint32_t _itail_tgt = 0;
   1143     RECOMP_REGS_LOCALS
   1144     RECOMP_ENTER(0x3C001500u);
   1145 
   1146 L_3C001500:
   1147     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3C001500: mov byte ptr [ecx + 0x14], 0 */
   1148     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001504: ret  */
   1149     RECOMP_REGS_OUT();
   1150 }
   1151 
   1152 void sub_3C001510(void) {
   1153     int _fpu_cmp = 0;
   1154     uint32_t _cf = 0;
   1155     int _df = 1;
   1156     uint32_t _flag_k = FK_NONE;
   1157     uint32_t _flag_a = 0, _flag_b = 0;
   1158     uint32_t _itail_tgt = 0;
   1159     RECOMP_REGS_LOCALS
   1160     RECOMP_ENTER(0x3C001510u);
   1161 
   1162 L_3C001510:
   1163     SET_LO8(eax, MEM8(ecx + 0x14)); /* 0x3C001510: mov al, byte ptr [ecx + 0x14] */
   1164     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001513: ret  */
   1165     RECOMP_REGS_OUT();
   1166 }
   1167 
   1168 void sub_3C001520(void) {
   1169     int _fpu_cmp = 0;
   1170     uint32_t _cf = 0;
   1171     int _df = 1;
   1172     uint32_t _flag_k = FK_NONE;
   1173     uint32_t _flag_a = 0, _flag_b = 0;
   1174     uint32_t _itail_tgt = 0;
   1175     RECOMP_REGS_LOCALS
   1176     RECOMP_ENTER(0x3C001520u);
   1177 
   1178 L_3C001520:
   1179     PUSH32(esp, ebp); /* 0x3C001520: push ebp */
   1180     ebp = esp; /* 0x3C001521: mov ebp, esp */
   1181     PUSH32(esp, esi); /* 0x3C001523: push esi */
   1182     esi = MEM32(ebp + 0x8); /* 0x3C001524: mov esi, dword ptr [ebp + 8] */
   1183     PUSH32(esp, edi); /* 0x3C001527: push edi */
   1184     eax = ecx; /* 0x3C001528: mov eax, ecx */
   1185     ecx = 6; /* 0x3C00152A: mov ecx, 6 */
   1186     edi = eax; /* 0x3C00152F: mov edi, eax */
   1187     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3C001531: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1188     edi = POP32_VAL(esp); /* 0x3C001533: pop edi */
   1189     esi = POP32_VAL(esp); /* 0x3C001534: pop esi */
   1190     ebp = POP32_VAL(esp); /* 0x3C001535: pop ebp */
   1191     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C001536: ret 4 */
   1192     RECOMP_REGS_OUT();
   1193 }
   1194 
   1195 void sub_3C001540(void) {
   1196     int _fpu_cmp = 0;
   1197     uint32_t _cf = 0;
   1198     int _df = 1;
   1199     uint32_t _flag_k = FK_NONE;
   1200     uint32_t _flag_a = 0, _flag_b = 0;
   1201     uint32_t _itail_tgt = 0;
   1202     RECOMP_REGS_LOCALS
   1203     RECOMP_ENTER(0x3C001540u);
   1204 
   1205 L_3C001540:
   1206     PUSH32(esp, ebp); /* 0x3C001540: push ebp */
   1207     ebp = esp; /* 0x3C001541: mov ebp, esp */
   1208     eax = MEM32(ebp + 0x8); /* 0x3C001543: mov eax, dword ptr [ebp + 8] */
   1209     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x3C001546: fld dword ptr [eax + 8] */
   1210     ecx = MEM32(ebp + 0xC); /* 0x3C001549: mov ecx, dword ptr [ebp + 0xc] */
   1211     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x8)); /* 0x3C00154C: fcomp dword ptr [ecx + 8] */
   1212     fp_pop();
   1213     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C00154F: fnstsw ax */
   1214     /* test HI8(eax), 1 */ /* 0x3C001551: test ah, 1 */
   1215     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1216     _cf = 0;
   1217     _flag_k = FK_NARROW(FK_TEST, 24);
   1218     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00155F; /* 0x3C001554: je 0x3c00155f */
   1219 L_3C001556:
   1220     eax = 1; /* 0x3C001556: mov eax, 1 */
   1221     ebp = POP32_VAL(esp); /* 0x3C00155B: pop ebp */
   1222     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C00155C: ret 8 */
   1223 L_3C00155F:
   1224     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1225     eax = 0; /* 0x3C00155F: xor eax, eax */
   1226     _cf = 0;
   1227     _flag_k = FK_TEST;
   1228     ebp = POP32_VAL(esp); /* 0x3C001561: pop ebp */
   1229     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C001562: ret 8 */
   1230     RECOMP_REGS_OUT();
   1231 }
   1232 
   1233 void sub_3C001570(void) {
   1234     int _fpu_cmp = 0;
   1235     uint32_t _cf = 0;
   1236     int _df = 1;
   1237     uint32_t _flag_k = FK_NONE;
   1238     uint32_t _flag_a = 0, _flag_b = 0;
   1239     uint32_t _itail_tgt = 0;
   1240     RECOMP_REGS_LOCALS
   1241     RECOMP_ENTER(0x3C001570u);
   1242 
   1243 L_3C001570:
   1244     PUSH32(esp, ebp); /* 0x3C001570: push ebp */
   1245     ebp = esp; /* 0x3C001571: mov ebp, esp */
   1246     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1248     esp = esp - 0xCu; /* 0x3C001573: sub esp, 0xc */
   1249     _flag_k = FK_CMP;
   1250     eax = MEM32(ebp + 0x8); /* 0x3C001576: mov eax, dword ptr [ebp + 8] */
   1251     ecx = MEM32(eax); /* 0x3C001579: mov ecx, dword ptr [eax] */
   1252     edx = MEM32(eax + 0x4); /* 0x3C00157B: mov edx, dword ptr [eax + 4] */
   1253     eax = MEM32(eax + 0x8); /* 0x3C00157E: mov eax, dword ptr [eax + 8] */
   1254     MEM32(ebp + (-0x4)) = eax; /* 0x3C001581: mov dword ptr [ebp - 4], eax */
   1255     eax = MEM32(ebp + 0xC); /* 0x3C001584: mov eax, dword ptr [ebp + 0xc] */
   1256     MEM32(ebp + (-0xC)) = ecx; /* 0x3C001587: mov dword ptr [ebp - 0xc], ecx */
   1257     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C00158A: fld dword ptr [ebp - 0xc] */
   1258     _st[0] -= (double)*(float*)ADDR(eax); /* 0x3C00158D: fsub dword ptr [eax] */
   1259     MEM32(ebp + (-0x8)) = edx; /* 0x3C00158F: mov dword ptr [ebp - 8], edx */
   1260     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C001592: fld dword ptr [ebp - 8] */
   1261     _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x3C001595: fsub dword ptr [eax + 4] */
   1262     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C001598: fld dword ptr [ebp - 4] */
   1263     _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x3C00159B: fsub dword ptr [eax + 8] */
   1264     fp_push(_st[0]); /* 0x3C00159E: fld st(0) */
   1265     _st[0] *= _st[1]; /* 0x3C0015A0: fmul st(1) */
   1266     fp_push(_st[3]); /* 0x3C0015A2: fld st(3) */
   1267     _st[0] *= _st[4]; /* 0x3C0015A4: fmul st(4) */
   1268     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C0015A6: faddp st(1) */
   1269     fp_push(_st[2]); /* 0x3C0015A8: fld st(2) */
   1270     _st[0] *= _st[3]; /* 0x3C0015AA: fmul st(3) */
   1271     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C0015AC: faddp st(1) */
   1272     _st[0] = sqrt(_st[0]); /* 0x3C0015AE: fsqrt  */
   1273     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3C0015B0: fstp st(3) */
   1274     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C0015B2: fstp st(0) */
   1275     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C0015B4: fstp st(0) */
   1276     esp = ebp; /* 0x3C0015B6: mov esp, ebp */
   1277     ebp = POP32_VAL(esp); /* 0x3C0015B8: pop ebp */
   1278     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0015B9: ret  */
   1279     RECOMP_REGS_OUT();
   1280 }
   1281 
   1282 void sub_3C0015C0(void) {
   1283     int _fpu_cmp = 0;
   1284     uint32_t _cf = 0;
   1285     int _df = 1;
   1286     uint32_t _flag_k = FK_NONE;
   1287     uint32_t _flag_a = 0, _flag_b = 0;
   1288     uint32_t _itail_tgt = 0;
   1289     RECOMP_REGS_LOCALS
   1290     RECOMP_ENTER(0x3C0015C0u);
   1291 
   1292 L_3C0015C0:
   1293     PUSH32(esp, ebp); /* 0x3C0015C0: push ebp */
   1294     ebp = esp; /* 0x3C0015C1: mov ebp, esp */
   1295     ecx = MEM32(ebp + 0xC); /* 0x3C0015C3: mov ecx, dword ptr [ebp + 0xc] */
   1296     eax = MEM32(ecx); /* 0x3C0015C6: mov eax, dword ptr [ecx] */
   1297     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C0015C8: call dword ptr [eax + 0xc] */
   1298     RECOMP_FLAGS_IN();
   1299     ecx = MEM32(ebp + 0x8); /* 0x3C0015CB: mov ecx, dword ptr [ebp + 8] */
   1300     edx = MEM32(ecx); /* 0x3C0015CE: mov edx, dword ptr [ecx] */
   1301     PUSH32(esp, eax); /* 0x3C0015D0: push eax */
   1302     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C0015D1: call dword ptr [edx + 0xc] */
   1303     RECOMP_FLAGS_IN();
   1304     PUSH32(esp, eax); /* 0x3C0015D4: push eax */
   1305     RECOMP_ICALL(0x3C001570u); /* 0x3C0015D5: call 0x3c001570 */ /* not lifted */
   1306     RECOMP_FLAGS_IN();
   1307     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1309     esp = esp + 8; /* 0x3C0015DA: add esp, 8 */
   1310     _flag_k = FK_ADD;
   1311     ebp = POP32_VAL(esp); /* 0x3C0015DD: pop ebp */
   1312     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0015DE: ret  */
   1313     RECOMP_REGS_OUT();
   1314 }
   1315 
   1316 void sub_3C0015E0(void) {
   1317     int _fpu_cmp = 0;
   1318     uint32_t _cf = 0;
   1319     int _df = 1;
   1320     uint32_t _flag_k = FK_NONE;
   1321     uint32_t _flag_a = 0, _flag_b = 0;
   1322     uint32_t _itail_tgt = 0;
   1323     RECOMP_REGS_LOCALS
   1324     RECOMP_ENTER(0x3C0015E0u);
   1325 
   1326 L_3C0015E0:
   1327     eax = ecx; /* 0x3C0015E0: mov eax, ecx */
   1328     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0015E2: ret  */
   1329     RECOMP_REGS_OUT();
   1330 }
   1331 
   1332 void sub_3C0015F0(void) {
   1333     int _fpu_cmp = 0;
   1334     uint32_t _cf = 0;
   1335     int _df = 1;
   1336     uint32_t _flag_k = FK_NONE;
   1337     uint32_t _flag_a = 0, _flag_b = 0;
   1338     uint32_t _itail_tgt = 0;
   1339     RECOMP_REGS_LOCALS
   1340     RECOMP_ENTER(0x3C0015F0u);
   1341 
   1342 L_3C0015F0:
   1343     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0015F0: ret  */
   1344     RECOMP_REGS_OUT();
   1345 }
   1346 
   1347 void sub_3C001600(void) {
   1348     int _fpu_cmp = 0;
   1349     uint32_t _cf = 0;
   1350     int _df = 1;
   1351     uint32_t _flag_k = FK_NONE;
   1352     uint32_t _flag_a = 0, _flag_b = 0;
   1353     uint32_t _itail_tgt = 0;
   1354     RECOMP_REGS_LOCALS
   1355     RECOMP_ENTER(0x3C001600u);
   1356 
   1357 L_3C001600:
   1358     PUSH32(esp, ebp); /* 0x3C001600: push ebp */
   1359     ebp = esp; /* 0x3C001601: mov ebp, esp */
   1360     PUSH32(esp, 0xFFFFFFFFu); /* 0x3C001603: push -1 */
   1361     PUSH32(esp, 0x3C008D1Bu); /* 0x3C001605: push 0x3c008d1b */
   1362     eax = MEM32(FS_BASE + (0)); /* 0x3C00160A: mov eax, dword ptr fs:[0] */
   1363     PUSH32(esp, eax); /* 0x3C001610: push eax */
   1364     MEM32(FS_BASE + (0)) = esp; /* 0x3C001611: mov dword ptr fs:[0], esp */
   1365     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u);
   1366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1367     esp = esp - 0x64u; /* 0x3C001618: sub esp, 0x64 */
   1368     _flag_k = FK_CMP;
   1369     PUSH32(esp, ebx); /* 0x3C00161B: push ebx */
   1370     PUSH32(esp, esi); /* 0x3C00161C: push esi */
   1371     PUSH32(esp, edi); /* 0x3C00161D: push edi */
   1372     eax = ebp + (-0xD); /* 0x3C00161E: lea eax, [ebp - 0xd] */
   1373     PUSH32(esp, eax); /* 0x3C001621: push eax */
   1374     ecx = ebp + (-0xE); /* 0x3C001622: lea ecx, [ebp - 0xe] */
   1375     PUSH32(esp, ecx); /* 0x3C001625: push ecx */
   1376     ecx = ebp + (-0x70); /* 0x3C001626: lea ecx, [ebp - 0x70] */
   1377     RECOMP_ICALL(0x3C001CA0u); /* 0x3C001629: call 0x3c001ca0 */ /* not lifted */
   1378     RECOMP_FLAGS_IN();
   1379     edi = MEM32(0x3C00D040); /* 0x3C00162E: mov edi, dword ptr [0x3c00d040] */
   1380     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1381     esi = 0; /* 0x3C001634: xor esi, esi */
   1382     _cf = 0;
   1383     _flag_k = FK_TEST;
   1384     PUSH32(esp, 0x14u); /* 0x3C001636: push 0x14 */
   1385     MEM32(ebp + (-0x4)) = esi; /* 0x3C001638: mov dword ptr [ebp - 4], esi */
   1386     RECOMP_ICALL(0x3C008B40u); /* 0x3C00163B: call 0x3c008b40 */ /* not lifted */
   1387     RECOMP_FLAGS_IN();
   1388     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1389     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1390     esp = esp + 4; /* 0x3C001640: add esp, 4 */
   1391     _flag_k = FK_ADD;
   1392     MEM32(ebp + (-0x3C)) = eax; /* 0x3C001643: mov dword ptr [ebp - 0x3c], eax */
   1393     /* cmp eax, esi */ /* 0x3C001646: cmp eax, esi */
   1394     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1395     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1396     _flag_k = FK_CMP;
   1397     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3C001648: mov byte ptr [ebp - 4], 1 */
   1398     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00165D; /* 0x3C00164C: je 0x3c00165d */
   1399 L_3C00164E:
   1400     PUSH32(esp, edi); /* 0x3C00164E: push edi */
   1401     ecx = eax; /* 0x3C00164F: mov ecx, eax */
   1402     RECOMP_ICALL(0x3C002510u); /* 0x3C001651: call 0x3c002510 */ /* not lifted */
   1403     RECOMP_FLAGS_IN();
   1404     ebx = eax; /* 0x3C001656: mov ebx, eax */
   1405     MEM32(ebp + (-0x14)) = ebx; /* 0x3C001658: mov dword ptr [ebp - 0x14], ebx */
   1406     goto L_3C001662; /* 0x3C00165B: jmp 0x3c001662 */
   1407 L_3C00165D:
   1408     MEM32(ebp + (-0x14)) = esi; /* 0x3C00165D: mov dword ptr [ebp - 0x14], esi */
   1409     ebx = esi; /* 0x3C001660: mov ebx, esi */
   1410 L_3C001662:
   1411     MEM32(ebp + (-0x44)) = ebx; /* 0x3C001662: mov dword ptr [ebp - 0x44], ebx */
   1412     edi = MEM32(ebp + 0x8); /* 0x3C001665: mov edi, dword ptr [ebp + 8] */
   1413     /* cmp edi, esi */ /* 0x3C001668: cmp edi, esi */
   1414     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   1415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1416     _flag_k = FK_CMP;
   1417     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3C00166A: mov byte ptr [ebp - 4], 2 */
   1418     MEM32(ebp + (-0x28)) = edi; /* 0x3C00166E: mov dword ptr [ebp - 0x28], edi */
   1419     MEM32(ebp + (-0x1C)) = esi; /* 0x3C001671: mov dword ptr [ebp - 0x1c], esi */
   1420     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00167B; /* 0x3C001674: jne 0x3c00167b */
   1421 L_3C001676:
   1422     MEM32(ebp + (-0x24)) = esi; /* 0x3C001676: mov dword ptr [ebp - 0x24], esi */
   1423     goto L_3C0016DD; /* 0x3C001679: jmp 0x3c0016dd */
   1424 L_3C00167B:
   1425     edx = ebp + (-0x28); /* 0x3C00167B: lea edx, [ebp - 0x28] */
   1426     PUSH32(esp, edx); /* 0x3C00167E: push edx */
   1427     eax = ebp + 0x8; /* 0x3C00167F: lea eax, [ebp + 8] */
   1428     PUSH32(esp, eax); /* 0x3C001682: push eax */
   1429     ecx = ebp + (-0x70); /* 0x3C001683: lea ecx, [ebp - 0x70] */
   1430     RECOMP_ICALL(0x3C008890u); /* 0x3C001686: call 0x3c008890 */ /* not lifted */
   1431     RECOMP_FLAGS_IN();
   1432     eax = MEM32(eax); /* 0x3C00168B: mov eax, dword ptr [eax] */
   1433     /* cmp eax, MEM32(ebp + (-0x6C)) */ /* 0x3C00168D: cmp eax, dword ptr [ebp - 0x6c] */
   1434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x6C)));
   1435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1436     _flag_k = FK_CMP;
   1437     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0016D1; /* 0x3C001690: jne 0x3c0016d1 */
   1438 L_3C001692:
   1439     PUSH32(esp, 0x18u); /* 0x3C001692: push 0x18 */
   1440     RECOMP_ICALL(0x3C008B40u); /* 0x3C001694: call 0x3c008b40 */ /* not lifted */
   1441     RECOMP_FLAGS_IN();
   1442     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1443     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1444     esp = esp + 4; /* 0x3C001699: add esp, 4 */
   1445     _flag_k = FK_ADD;
   1446     /* cmp eax, esi */ /* 0x3C00169C: cmp eax, esi */
   1447     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1449     _flag_k = FK_CMP;
   1450     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0016AD; /* 0x3C00169E: je 0x3c0016ad */
   1451 L_3C0016A0:
   1452     ecx = MEM32(ebp + (-0x28)); /* 0x3C0016A0: mov ecx, dword ptr [ebp - 0x28] */
   1453     PUSH32(esp, ecx); /* 0x3C0016A3: push ecx */
   1454     ecx = eax; /* 0x3C0016A4: mov ecx, eax */
   1455     RECOMP_ICALL(0x3C001470u); /* 0x3C0016A6: call 0x3c001470 */ /* not lifted */
   1456     RECOMP_FLAGS_IN();
   1457     goto L_3C0016AF; /* 0x3C0016AB: jmp 0x3c0016af */
   1458 L_3C0016AD:
   1459     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1460     eax = 0; /* 0x3C0016AD: xor eax, eax */
   1461     _cf = 0;
   1462     _flag_k = FK_TEST;
   1463 L_3C0016AF:
   1464     edx = ebp + (-0x1C); /* 0x3C0016AF: lea edx, [ebp - 0x1c] */
   1465     MEM32(ebp + (-0x1C)) = eax; /* 0x3C0016B2: mov dword ptr [ebp - 0x1c], eax */
   1466     PUSH32(esp, edx); /* 0x3C0016B5: push edx */
   1467     eax = ebp + (-0x28); /* 0x3C0016B6: lea eax, [ebp - 0x28] */
   1468     PUSH32(esp, eax); /* 0x3C0016B9: push eax */
   1469     ecx = ebp + (-0x4C); /* 0x3C0016BA: lea ecx, [ebp - 0x4c] */
   1470     RECOMP_ICALL(0x3C001DD0u); /* 0x3C0016BD: call 0x3c001dd0 */ /* not lifted */
   1471     RECOMP_FLAGS_IN();
   1472     PUSH32(esp, eax); /* 0x3C0016C2: push eax */
   1473     ecx = ebp + (-0x40); /* 0x3C0016C3: lea ecx, [ebp - 0x40] */
   1474     PUSH32(esp, ecx); /* 0x3C0016C6: push ecx */
   1475     ecx = ebp + (-0x70); /* 0x3C0016C7: lea ecx, [ebp - 0x70] */
   1476     RECOMP_ICALL(0x3C006E60u); /* 0x3C0016CA: call 0x3c006e60 */ /* not lifted */
   1477     RECOMP_FLAGS_IN();
   1478     goto L_3C0016D7; /* 0x3C0016CF: jmp 0x3c0016d7 */
   1479 L_3C0016D1:
   1480     edx = MEM32(eax + 0x10); /* 0x3C0016D1: mov edx, dword ptr [eax + 0x10] */
   1481     MEM32(ebp + (-0x1C)) = edx; /* 0x3C0016D4: mov dword ptr [ebp - 0x1c], edx */
   1482 L_3C0016D7:
   1483     eax = MEM32(ebp + (-0x1C)); /* 0x3C0016D7: mov eax, dword ptr [ebp - 0x1c] */
   1484     MEM32(ebp + (-0x24)) = eax; /* 0x3C0016DA: mov dword ptr [ebp - 0x24], eax */
   1485 L_3C0016DD:
   1486     /* cmp edi, esi */ /* 0x3C0016DD: cmp edi, esi */
   1487     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   1488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1489     _flag_k = FK_CMP;
   1490     MEM32(ebp + (-0x38)) = 0x4E6E6B28u; /* 0x3C0016DF: mov dword ptr [ebp - 0x38], 0x4e6e6b28 */
   1491     MEM32(ebp + 0x8) = edi; /* 0x3C0016E6: mov dword ptr [ebp + 8], edi */
   1492     MEM32(ebp + (-0x20)) = esi; /* 0x3C0016E9: mov dword ptr [ebp - 0x20], esi */
   1493     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0016F2; /* 0x3C0016EC: jne 0x3c0016f2 */
   1494 L_3C0016EE:
   1495     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1496     eax = 0; /* 0x3C0016EE: xor eax, eax */
   1497     _cf = 0;
   1498     _flag_k = FK_TEST;
   1499     goto L_3C00174E; /* 0x3C0016F0: jmp 0x3c00174e */
   1500 L_3C0016F2:
   1501     ecx = ebp + 0x8; /* 0x3C0016F2: lea ecx, [ebp + 8] */
   1502     PUSH32(esp, ecx); /* 0x3C0016F5: push ecx */
   1503     edx = ebp + (-0x3C); /* 0x3C0016F6: lea edx, [ebp - 0x3c] */
   1504     PUSH32(esp, edx); /* 0x3C0016F9: push edx */
   1505     ecx = ebp + (-0x70); /* 0x3C0016FA: lea ecx, [ebp - 0x70] */
   1506     RECOMP_ICALL(0x3C008890u); /* 0x3C0016FD: call 0x3c008890 */ /* not lifted */
   1507     RECOMP_FLAGS_IN();
   1508     eax = MEM32(eax); /* 0x3C001702: mov eax, dword ptr [eax] */
   1509     /* cmp eax, MEM32(ebp + (-0x6C)) */ /* 0x3C001704: cmp eax, dword ptr [ebp - 0x6c] */
   1510     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x6C)));
   1511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1512     _flag_k = FK_CMP;
   1513     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00174B; /* 0x3C001707: jne 0x3c00174b */
   1514 L_3C001709:
   1515     PUSH32(esp, 0x18u); /* 0x3C001709: push 0x18 */
   1516     RECOMP_ICALL(0x3C008B40u); /* 0x3C00170B: call 0x3c008b40 */ /* not lifted */
   1517     RECOMP_FLAGS_IN();
   1518     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1520     esp = esp + 4; /* 0x3C001710: add esp, 4 */
   1521     _flag_k = FK_ADD;
   1522     /* cmp eax, esi */ /* 0x3C001713: cmp eax, esi */
   1523     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1525     _flag_k = FK_CMP;
   1526     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001724; /* 0x3C001715: je 0x3c001724 */
   1527 L_3C001717:
   1528     ecx = MEM32(ebp + 0x8); /* 0x3C001717: mov ecx, dword ptr [ebp + 8] */
   1529     PUSH32(esp, ecx); /* 0x3C00171A: push ecx */
   1530     ecx = eax; /* 0x3C00171B: mov ecx, eax */
   1531     RECOMP_ICALL(0x3C001470u); /* 0x3C00171D: call 0x3c001470 */ /* not lifted */
   1532     RECOMP_FLAGS_IN();
   1533     goto L_3C001726; /* 0x3C001722: jmp 0x3c001726 */
   1534 L_3C001724:
   1535     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1536     eax = 0; /* 0x3C001724: xor eax, eax */
   1537     _cf = 0;
   1538     _flag_k = FK_TEST;
   1539 L_3C001726:
   1540     edx = ebp + (-0x20); /* 0x3C001726: lea edx, [ebp - 0x20] */
   1541     MEM32(ebp + (-0x20)) = eax; /* 0x3C001729: mov dword ptr [ebp - 0x20], eax */
   1542     PUSH32(esp, edx); /* 0x3C00172C: push edx */
   1543     eax = ebp + 0x8; /* 0x3C00172D: lea eax, [ebp + 8] */
   1544     PUSH32(esp, eax); /* 0x3C001730: push eax */
   1545     ecx = ebp + (-0x4C); /* 0x3C001731: lea ecx, [ebp - 0x4c] */
   1546     RECOMP_ICALL(0x3C001DD0u); /* 0x3C001734: call 0x3c001dd0 */ /* not lifted */
   1547     RECOMP_FLAGS_IN();
   1548     PUSH32(esp, eax); /* 0x3C001739: push eax */
   1549     ecx = ebp + (-0x34); /* 0x3C00173A: lea ecx, [ebp - 0x34] */
   1550     PUSH32(esp, ecx); /* 0x3C00173D: push ecx */
   1551     ecx = ebp + (-0x70); /* 0x3C00173E: lea ecx, [ebp - 0x70] */
   1552     RECOMP_ICALL(0x3C006E60u); /* 0x3C001741: call 0x3c006e60 */ /* not lifted */
   1553     RECOMP_FLAGS_IN();
   1554     eax = MEM32(ebp + (-0x20)); /* 0x3C001746: mov eax, dword ptr [ebp - 0x20] */
   1555     goto L_3C00174E; /* 0x3C001749: jmp 0x3c00174e */
   1556 L_3C00174B:
   1557     eax = MEM32(eax + 0x10); /* 0x3C00174B: mov eax, dword ptr [eax + 0x10] */
   1558 L_3C00174E:
   1559     edx = MEM32(ebp + 0xC); /* 0x3C00174E: mov edx, dword ptr [ebp + 0xc] */
   1560     PUSH32(esp, edx); /* 0x3C001751: push edx */
   1561     MEM32(ebp + (-0x18)) = eax; /* 0x3C001752: mov dword ptr [ebp - 0x18], eax */
   1562     PUSH32(esp, edi); /* 0x3C001755: push edi */
   1563     MEM32(eax) = esi; /* 0x3C001756: mov dword ptr [eax], esi */
   1564     RECOMP_ICALL(0x3C0015C0u); /* 0x3C001758: call 0x3c0015c0 */ /* not lifted */
   1565     RECOMP_FLAGS_IN();
   1566     eax = MEM32(ebp + (-0x18)); /* 0x3C00175D: mov eax, dword ptr [ebp - 0x18] */
   1567     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x4) = _v; } /* 0x3C001760: fstp dword ptr [eax + 4] */
   1568     eax = MEM32(ebp + (-0x18)); /* 0x3C001763: mov eax, dword ptr [ebp - 0x18] */
   1569     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x3C001766: fld dword ptr [eax + 4] */
   1570     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1571     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1572     esp = esp + 8; /* 0x3C001769: add esp, 8 */
   1573     _flag_k = FK_ADD;
   1574     _st[0] += (double)*(float*)ADDR(eax); /* 0x3C00176C: fadd dword ptr [eax] */
   1575     edx = ebp + (-0x18); /* 0x3C00176E: lea edx, [ebp - 0x18] */
   1576     PUSH32(esp, edx); /* 0x3C001771: push edx */
   1577     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x8) = _v; } /* 0x3C001772: fstp dword ptr [eax + 8] */
   1578     ecx = MEM32(ebp + (-0x18)); /* 0x3C001775: mov ecx, dword ptr [ebp - 0x18] */
   1579     MEM32(ecx + 0xC) = esi; /* 0x3C001778: mov dword ptr [ecx + 0xc], esi */
   1580     ecx = ebx; /* 0x3C00177B: mov ecx, ebx */
   1581     RECOMP_ICALL(0x3C002540u); /* 0x3C00177D: call 0x3c002540 */ /* not lifted */
   1582     RECOMP_FLAGS_IN();
   1583     eax = MEM32(ebp + (-0x18)); /* 0x3C001782: mov eax, dword ptr [ebp - 0x18] */
   1584     MEM8(eax + 0x15) = (uint8_t)(1); /* 0x3C001785: mov byte ptr [eax + 0x15], 1 */
   1585     eax = MEM32(ebx + 0x10); /* 0x3C001789: mov eax, dword ptr [ebx + 0x10] */
   1586     /* cmp eax, esi */ /* 0x3C00178C: cmp eax, esi */
   1587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1589     _flag_k = FK_CMP;
   1590     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0018F8; /* 0x3C00178E: je 0x3c0018f8 */
   1591 L_3C001794:
   1592     /* cmp eax, MEM32(ebx + 0xC) */ /* 0x3C001794: cmp eax, dword ptr [ebx + 0xc] */
   1593     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC));
   1594     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1595     _flag_k = FK_CMP;
   1596     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0018F8; /* 0x3C001797: je 0x3c0018f8 */
   1597 L_3C00179D:
   1598     ecx = ebx; /* 0x3C00179D: mov ecx, ebx */
   1599     RECOMP_ICALL(0x3C0025C0u); /* 0x3C00179F: call 0x3c0025c0 */ /* not lifted */
   1600     RECOMP_FLAGS_IN();
   1601     ecx = MEM32(ebp + 0xC); /* 0x3C0017A4: mov ecx, dword ptr [ebp + 0xc] */
   1602     edi = eax; /* 0x3C0017A7: mov edi, eax */
   1603     eax = MEM32(edi + 0x10); /* 0x3C0017A9: mov eax, dword ptr [edi + 0x10] */
   1604     /* cmp eax, ecx */ /* 0x3C0017AC: cmp eax, ecx */
   1605     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1607     _flag_k = FK_CMP;
   1608     MEM8(edi + 0x15) = (uint8_t)(0); /* 0x3C0017AE: mov byte ptr [edi + 0x15], 0 */
   1609     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0019CD; /* 0x3C0017B2: je 0x3c0019cd */
   1610 L_3C0017B8:
   1611     ecx = MEM32(eax + 0x30); /* 0x3C0017B8: mov ecx, dword ptr [eax + 0x30] */
   1612     /* cmp ecx, MEM32(eax + 0x34) */ /* 0x3C0017BB: cmp ecx, dword ptr [eax + 0x34] */
   1613     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x34));
   1614     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1615     _flag_k = FK_CMP;
   1616     MEM32(ebp + (-0x3C)) = ecx; /* 0x3C0017BE: mov dword ptr [ebp - 0x3c], ecx */
   1617     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0018E4; /* 0x3C0017C1: je 0x3c0018e4 */
   1618 L_3C0017C7:
   1619     eax = MEM32(ecx); /* 0x3C0017C7: mov eax, dword ptr [ecx] */
   1620     fp_push(*(float*)&MEM32(eax)); /* 0x3C0017C9: fld dword ptr [eax] */
   1621     ebx = MEM32(eax + 0x10); /* 0x3C0017CB: mov ebx, dword ptr [eax + 0x10] */
   1622     _st[0] += (double)*(float*)ADDR(edi); /* 0x3C0017CE: fadd dword ptr [edi] */
   1623     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1624     esi = 0; /* 0x3C0017D0: xor esi, esi */
   1625     _cf = 0;
   1626     _flag_k = FK_TEST;
   1627     /* cmp ebx, esi */ /* 0x3C0017D2: cmp ebx, esi */
   1628     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   1629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1630     _flag_k = FK_CMP;
   1631     MEM32(ebp + (-0x2C)) = ebx; /* 0x3C0017D4: mov dword ptr [ebp - 0x2c], ebx */
   1632     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3C0017D7: fstp dword ptr [ebp - 0x30] */
   1633     MEM32(ebp + (-0x20)) = esi; /* 0x3C0017DA: mov dword ptr [ebp - 0x20], esi */
   1634     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00183E; /* 0x3C0017DD: je 0x3c00183e */
   1635 L_3C0017DF:
   1636     ecx = ebp + (-0x2C); /* 0x3C0017DF: lea ecx, [ebp - 0x2c] */
   1637     PUSH32(esp, ecx); /* 0x3C0017E2: push ecx */
   1638     edx = ebp + (-0x48); /* 0x3C0017E3: lea edx, [ebp - 0x48] */
   1639     PUSH32(esp, edx); /* 0x3C0017E6: push edx */
   1640     ecx = ebp + (-0x70); /* 0x3C0017E7: lea ecx, [ebp - 0x70] */
   1641     RECOMP_ICALL(0x3C008890u); /* 0x3C0017EA: call 0x3c008890 */ /* not lifted */
   1642     RECOMP_FLAGS_IN();
   1643     eax = MEM32(eax); /* 0x3C0017EF: mov eax, dword ptr [eax] */
   1644     /* cmp eax, MEM32(ebp + (-0x6C)) */ /* 0x3C0017F1: cmp eax, dword ptr [ebp - 0x6c] */
   1645     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x6C)));
   1646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1647     _flag_k = FK_CMP;
   1648     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001835; /* 0x3C0017F4: jne 0x3c001835 */
   1649 L_3C0017F6:
   1650     PUSH32(esp, 0x18u); /* 0x3C0017F6: push 0x18 */
   1651     RECOMP_ICALL(0x3C008B40u); /* 0x3C0017F8: call 0x3c008b40 */ /* not lifted */
   1652     RECOMP_FLAGS_IN();
   1653     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1654     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1655     esp = esp + 4; /* 0x3C0017FD: add esp, 4 */
   1656     _flag_k = FK_ADD;
   1657     /* test eax, eax */ /* 0x3C001800: test eax, eax */
   1658     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1659     _cf = 0;
   1660     _flag_k = FK_TEST;
   1661     if (TEST_Z(_flag_a, _flag_b)) goto L_3C001811; /* 0x3C001802: je 0x3c001811 */
   1662 L_3C001804:
   1663     ecx = MEM32(ebp + (-0x2C)); /* 0x3C001804: mov ecx, dword ptr [ebp - 0x2c] */
   1664     PUSH32(esp, ecx); /* 0x3C001807: push ecx */
   1665     ecx = eax; /* 0x3C001808: mov ecx, eax */
   1666     RECOMP_ICALL(0x3C001470u); /* 0x3C00180A: call 0x3c001470 */ /* not lifted */
   1667     RECOMP_FLAGS_IN();
   1668     goto L_3C001813; /* 0x3C00180F: jmp 0x3c001813 */
   1669 L_3C001811:
   1670     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1671     eax = 0; /* 0x3C001811: xor eax, eax */
   1672     _cf = 0;
   1673     _flag_k = FK_TEST;
   1674 L_3C001813:
   1675     edx = ebp + (-0x20); /* 0x3C001813: lea edx, [ebp - 0x20] */
   1676     MEM32(ebp + (-0x20)) = eax; /* 0x3C001816: mov dword ptr [ebp - 0x20], eax */
   1677     PUSH32(esp, edx); /* 0x3C001819: push edx */
   1678     eax = ebp + (-0x2C); /* 0x3C00181A: lea eax, [ebp - 0x2c] */
   1679     PUSH32(esp, eax); /* 0x3C00181D: push eax */
   1680     ecx = ebp + (-0x54); /* 0x3C00181E: lea ecx, [ebp - 0x54] */
   1681     RECOMP_ICALL(0x3C001DD0u); /* 0x3C001821: call 0x3c001dd0 */ /* not lifted */
   1682     RECOMP_FLAGS_IN();
   1683     PUSH32(esp, eax); /* 0x3C001826: push eax */
   1684     ecx = ebp + (-0x5C); /* 0x3C001827: lea ecx, [ebp - 0x5c] */
   1685     PUSH32(esp, ecx); /* 0x3C00182A: push ecx */
   1686     ecx = ebp + (-0x70); /* 0x3C00182B: lea ecx, [ebp - 0x70] */
   1687     RECOMP_ICALL(0x3C006E60u); /* 0x3C00182E: call 0x3c006e60 */ /* not lifted */
   1688     RECOMP_FLAGS_IN();
   1689     goto L_3C00183B; /* 0x3C001833: jmp 0x3c00183b */
   1690 L_3C001835:
   1691     edx = MEM32(eax + 0x10); /* 0x3C001835: mov edx, dword ptr [eax + 0x10] */
   1692     MEM32(ebp + (-0x20)) = edx; /* 0x3C001838: mov dword ptr [ebp - 0x20], edx */
   1693 L_3C00183B:
   1694     esi = MEM32(ebp + (-0x20)); /* 0x3C00183B: mov esi, dword ptr [ebp - 0x20] */
   1695 L_3C00183E:
   1696     SET_LO8(eax, MEM8(esi + 0x15)); /* 0x3C00183E: mov al, byte ptr [esi + 0x15] */
   1697     /* test LO8(eax), LO8(eax) */ /* 0x3C001841: test al, al */
   1698     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1699     _cf = 0;
   1700     _flag_k = FK_NARROW(FK_TEST, 24);
   1701     MEM8(ebp + 0xB) = (uint8_t)(LO8(eax)); /* 0x3C001843: mov byte ptr [ebp + 0xb], al */
   1702     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00184F; /* 0x3C001846: jne 0x3c00184f */
   1703 L_3C001848:
   1704     SET_LO8(eax, MEM8(esi + 0x14)); /* 0x3C001848: mov al, byte ptr [esi + 0x14] */
   1705     /* test LO8(eax), LO8(eax) */ /* 0x3C00184B: test al, al */
   1706     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1707     _cf = 0;
   1708     _flag_k = FK_NARROW(FK_TEST, 24);
   1709     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00185B; /* 0x3C00184D: je 0x3c00185b */
   1710 L_3C00184F:
   1711     fp_push(*(float*)&MEM32(esi)); /* 0x3C00184F: fld dword ptr [esi] */
   1712     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x30))); /* 0x3C001851: fcomp dword ptr [ebp - 0x30] */
   1713     fp_pop();
   1714     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C001854: fnstsw ax */
   1715     /* test HI8(eax), 0x41u */ /* 0x3C001856: test ah, 0x41 */
   1716     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1717     _cf = 0;
   1718     _flag_k = FK_NARROW(FK_TEST, 24);
   1719     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0018C8; /* 0x3C001859: jne 0x3c0018c8 */
   1720 L_3C00185B:
   1721     ecx = MEM32(ebp + 0xC); /* 0x3C00185B: mov ecx, dword ptr [ebp + 0xc] */
   1722     eax = MEM32(ebp + (-0x30)); /* 0x3C00185E: mov eax, dword ptr [ebp - 0x30] */
   1723     PUSH32(esp, ecx); /* 0x3C001861: push ecx */
   1724     PUSH32(esp, ebx); /* 0x3C001862: push ebx */
   1725     MEM32(esi + 0xC) = edi; /* 0x3C001863: mov dword ptr [esi + 0xc], edi */
   1726     MEM32(esi) = eax; /* 0x3C001866: mov dword ptr [esi], eax */
   1727     RECOMP_ICALL(0x3C0015C0u); /* 0x3C001868: call 0x3c0015c0 */ /* not lifted */
   1728     RECOMP_FLAGS_IN();
   1729     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x4) = _v; } /* 0x3C00186D: fst dword ptr [esi + 4] */
   1730     _st[0] += (double)*(float*)ADDR(esi); /* 0x3C001870: fadd dword ptr [esi] */
   1731     SET_LO8(eax, MEM8(esi + 0x14)); /* 0x3C001872: mov al, byte ptr [esi + 0x14] */
   1732     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1733     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1734     esp = esp + 8; /* 0x3C001875: add esp, 8 */
   1735     _flag_k = FK_ADD;
   1736     /* test LO8(eax), LO8(eax) */ /* 0x3C001878: test al, al */
   1737     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1738     _cf = 0;
   1739     _flag_k = FK_NARROW(FK_TEST, 24);
   1740     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3C00187A: fstp dword ptr [esi + 8] */
   1741     if (TEST_Z(_flag_a, _flag_b)) goto L_3C001883; /* 0x3C00187D: je 0x3c001883 */
   1742 L_3C00187F:
   1743     MEM8(esi + 0x14) = (uint8_t)(0); /* 0x3C00187F: mov byte ptr [esi + 0x14], 0 */
   1744 L_3C001883:
   1745     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3C001883: mov al, byte ptr [ebp + 0xb] */
   1746     /* test LO8(eax), LO8(eax) */ /* 0x3C001886: test al, al */
   1747     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1748     _cf = 0;
   1749     _flag_k = FK_NARROW(FK_TEST, 24);
   1750     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0018B2; /* 0x3C001888: jne 0x3c0018b2 */
   1751 L_3C00188A:
   1752     eax = MEM32(ebp + (-0x14)); /* 0x3C00188A: mov eax, dword ptr [ebp - 0x14] */
   1753     edx = MEM32(eax + 0x10); /* 0x3C00188D: mov edx, dword ptr [eax + 0x10] */
   1754     /* cmp edx, MEM32(eax + 0xC) */ /* 0x3C001890: cmp edx, dword ptr [eax + 0xc] */
   1755     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   1756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1757     _flag_k = FK_CMP;
   1758     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0018DF; /* 0x3C001893: je 0x3c0018df */
   1759 L_3C001895:
   1760     ebx = eax; /* 0x3C001895: mov ebx, eax */
   1761     ecx = MEM32(ebx + 0x4); /* 0x3C001897: mov ecx, dword ptr [ebx + 4] */
   1762     eax = MEM32(ebx + 0x10); /* 0x3C00189A: mov eax, dword ptr [ebx + 0x10] */
   1763     MEM32(ecx + eax * 4) = esi; /* 0x3C00189D: mov dword ptr [ecx + eax*4], esi */
   1764     edx = MEM32(ebx + 0x10); /* 0x3C0018A0: mov edx, dword ptr [ebx + 0x10] */
   1765     PUSH32(esp, edx); /* 0x3C0018A3: push edx */
   1766     ecx = ebx; /* 0x3C0018A4: mov ecx, ebx */
   1767     RECOMP_ICALL(0x3C002670u); /* 0x3C0018A6: call 0x3c002670 */ /* not lifted */
   1768     RECOMP_FLAGS_IN();
   1769     _flag_a = (uint32_t)(MEM32(ebx + 0x10)); _flag_b = (uint32_t)(1);
   1770     MEM32(ebx + 0x10) = MEM32(ebx + 0x10) + 1; /* 0x3C0018AB: inc dword ptr [ebx + 0x10] */
   1771     _flag_k = FK_INC;
   1772     MEM8(esi + 0x15) = (uint8_t)(1); /* 0x3C0018AE: mov byte ptr [esi + 0x15], 1 */
   1773 L_3C0018B2:
   1774     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x3C0018B2: fld dword ptr [esi + 4] */
   1775     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x38))); /* 0x3C0018B5: fcomp dword ptr [ebp - 0x38] */
   1776     fp_pop();
   1777     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C0018B8: fnstsw ax */
   1778     /* test HI8(eax), 1 */ /* 0x3C0018BA: test ah, 1 */
   1779     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1780     _cf = 0;
   1781     _flag_k = FK_NARROW(FK_TEST, 24);
   1782     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0018C8; /* 0x3C0018BD: je 0x3c0018c8 */
   1783 L_3C0018BF:
   1784     eax = MEM32(esi + 0x4); /* 0x3C0018BF: mov eax, dword ptr [esi + 4] */
   1785     MEM32(ebp + (-0x24)) = esi; /* 0x3C0018C2: mov dword ptr [ebp - 0x24], esi */
   1786     MEM32(ebp + (-0x38)) = eax; /* 0x3C0018C5: mov dword ptr [ebp - 0x38], eax */
   1787 L_3C0018C8:
   1788     ecx = MEM32(ebp + (-0x3C)); /* 0x3C0018C8: mov ecx, dword ptr [ebp - 0x3c] */
   1789     edx = MEM32(edi + 0x10); /* 0x3C0018CB: mov edx, dword ptr [edi + 0x10] */
   1790     eax = MEM32(edx + 0x34); /* 0x3C0018CE: mov eax, dword ptr [edx + 0x34] */
   1791     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1792     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1793     ecx = ecx + 4; /* 0x3C0018D1: add ecx, 4 */
   1794     _flag_k = FK_ADD;
   1795     /* cmp ecx, eax */ /* 0x3C0018D4: cmp ecx, eax */
   1796     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1798     _flag_k = FK_CMP;
   1799     MEM32(ebp + (-0x3C)) = ecx; /* 0x3C0018D6: mov dword ptr [ebp - 0x3c], ecx */
   1800     RECOMP_BACKEDGE();
   1801     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0017C7; /* 0x3C0018D9: jne 0x3c0017c7 */
   1802 L_3C0018DF:
   1803     ebx = MEM32(ebp + (-0x14)); /* 0x3C0018DF: mov ebx, dword ptr [ebp - 0x14] */
   1804     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1805     esi = 0; /* 0x3C0018E2: xor esi, esi */
   1806     _cf = 0;
   1807     _flag_k = FK_TEST;
   1808 L_3C0018E4:
   1809     MEM8(edi + 0x14) = (uint8_t)(1); /* 0x3C0018E4: mov byte ptr [edi + 0x14], 1 */
   1810     eax = MEM32(ebx + 0x10); /* 0x3C0018E8: mov eax, dword ptr [ebx + 0x10] */
   1811     /* cmp eax, MEM32(ebx + 0xC) */ /* 0x3C0018EB: cmp eax, dword ptr [ebx + 0xc] */
   1812     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC));
   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_3C0018F8; /* 0x3C0018EE: je 0x3c0018f8 */
   1816 L_3C0018F0:
   1817     /* cmp eax, esi */ /* 0x3C0018F0: cmp eax, esi */
   1818     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1820     _flag_k = FK_CMP;
   1821     RECOMP_BACKEDGE();
   1822     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001794; /* 0x3C0018F2: jne 0x3c001794 */
   1823 L_3C0018F8:
   1824     edx = MEM32(ebp + (-0x24)); /* 0x3C0018F8: mov edx, dword ptr [ebp - 0x24] */
   1825     ecx = MEM32(edx + 0x10); /* 0x3C0018FB: mov ecx, dword ptr [edx + 0x10] */
   1826     eax = MEM32(ecx); /* 0x3C0018FE: mov eax, dword ptr [ecx] */
   1827     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C001900: call dword ptr [eax + 0xc] */
   1828     RECOMP_FLAGS_IN();
   1829     edi = MEM32(ebp + 0x10); /* 0x3C001903: mov edi, dword ptr [ebp + 0x10] */
   1830     ecx = MEM32(edi + 0x8); /* 0x3C001906: mov ecx, dword ptr [edi + 8] */
   1831     PUSH32(esp, eax); /* 0x3C001909: push eax */
   1832     PUSH32(esp, 1); /* 0x3C00190A: push 1 */
   1833     PUSH32(esp, ecx); /* 0x3C00190C: push ecx */
   1834     ecx = edi; /* 0x3C00190D: mov ecx, edi */
   1835     RECOMP_ICALL(0x3C002080u); /* 0x3C00190F: call 0x3c002080 */ /* not lifted */
   1836     RECOMP_FLAGS_IN();
   1837     ecx = MEM32(ebp + (-0x24)); /* 0x3C001914: mov ecx, dword ptr [ebp - 0x24] */
   1838     eax = MEM32(ecx + 0xC); /* 0x3C001917: mov eax, dword ptr [ecx + 0xc] */
   1839     /* cmp eax, esi */ /* 0x3C00191A: cmp eax, esi */
   1840     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1842     _flag_k = FK_CMP;
   1843     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00193D; /* 0x3C00191C: je 0x3c00193d */
   1844 L_3C00191E:
   1845     esi = eax; /* 0x3C00191E: mov esi, eax */
   1846 L_3C001920:
   1847     ecx = MEM32(esi + 0x10); /* 0x3C001920: mov ecx, dword ptr [esi + 0x10] */
   1848     edx = MEM32(ecx); /* 0x3C001923: mov edx, dword ptr [ecx] */
   1849     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C001925: call dword ptr [edx + 0xc] */
   1850     RECOMP_FLAGS_IN();
   1851     ecx = MEM32(edi + 0x8); /* 0x3C001928: mov ecx, dword ptr [edi + 8] */
   1852     PUSH32(esp, eax); /* 0x3C00192B: push eax */
   1853     PUSH32(esp, 1); /* 0x3C00192C: push 1 */
   1854     PUSH32(esp, ecx); /* 0x3C00192E: push ecx */
   1855     ecx = edi; /* 0x3C00192F: mov ecx, edi */
   1856     RECOMP_ICALL(0x3C002080u); /* 0x3C001931: call 0x3c002080 */ /* not lifted */
   1857     RECOMP_FLAGS_IN();
   1858     esi = MEM32(esi + 0xC); /* 0x3C001936: mov esi, dword ptr [esi + 0xc] */
   1859     /* test esi, esi */ /* 0x3C001939: test esi, esi */
   1860     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1861     _cf = 0;
   1862     _flag_k = FK_TEST;
   1863     RECOMP_BACKEDGE();
   1864     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C001920; /* 0x3C00193B: jne 0x3c001920 */
   1865 L_3C00193D:
   1866     eax = MEM32(ebx + 0x10); /* 0x3C00193D: mov eax, dword ptr [ebx + 0x10] */
   1867     /* cmp eax, MEM32(ebx + 0xC) */ /* 0x3C001940: cmp eax, dword ptr [ebx + 0xc] */
   1868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC));
   1869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1870     _flag_k = FK_CMP;
   1871     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001A80; /* 0x3C001943: jne 0x3c001a80 */
   1872 L_3C001949:
   1873     /* cmp ebx, esi */ /* 0x3C001949: cmp ebx, esi */
   1874     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   1875     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1876     _flag_k = FK_CMP;
   1877     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001967; /* 0x3C00194B: je 0x3c001967 */
   1878 L_3C00194D:
   1879     /* cmp MEM32(ebx + 0x8), esi */ /* 0x3C00194D: cmp dword ptr [ebx + 8], esi */
   1880     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   1881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1882     _flag_k = FK_CMP;
   1883     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00195E; /* 0x3C001950: jne 0x3c00195e */
   1884 L_3C001952:
   1885     eax = MEM32(ebx + 0x4); /* 0x3C001952: mov eax, dword ptr [ebx + 4] */
   1886     PUSH32(esp, eax); /* 0x3C001955: push eax */
   1887     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001956: call 0x3c0089de */ /* not lifted */
   1888     RECOMP_FLAGS_IN();
   1889     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1890     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1891     esp = esp + 4; /* 0x3C00195B: add esp, 4 */
   1892     _flag_k = FK_ADD;
   1893 L_3C00195E:
   1894     PUSH32(esp, ebx); /* 0x3C00195E: push ebx */
   1895     RECOMP_ICALL(0x3C0089DEu); /* 0x3C00195F: call 0x3c0089de */ /* not lifted */
   1896     RECOMP_FLAGS_IN();
   1897     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1898     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1899     esp = esp + 4; /* 0x3C001964: add esp, 4 */
   1900     _flag_k = FK_ADD;
   1901 L_3C001967:
   1902     ecx = ebp + 0x10; /* 0x3C001967: lea ecx, [ebp + 0x10] */
   1903     PUSH32(esp, ecx); /* 0x3C00196A: push ecx */
   1904     ecx = ebp + (-0x70); /* 0x3C00196B: lea ecx, [ebp - 0x70] */
   1905     MEM32(ebp + (-0x4)) = 4; /* 0x3C00196E: mov dword ptr [ebp - 4], 4 */
   1906     RECOMP_ICALL(0x3C005110u); /* 0x3C001975: call 0x3c005110 */ /* not lifted */
   1907     RECOMP_FLAGS_IN();
   1908     eax = MEM32(eax); /* 0x3C00197A: mov eax, dword ptr [eax] */
   1909     /* cmp eax, MEM32(ebp + (-0x6C)) */ /* 0x3C00197C: cmp eax, dword ptr [ebp - 0x6c] */
   1910     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x6C)));
   1911     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1912     _flag_k = FK_CMP;
   1913     MEM32(ebp + 0xC) = eax; /* 0x3C00197F: mov dword ptr [ebp + 0xc], eax */
   1914     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0019A6; /* 0x3C001982: je 0x3c0019a6 */
   1915 L_3C001984:
   1916     eax = MEM32(eax + 0x10); /* 0x3C001984: mov eax, dword ptr [eax + 0x10] */
   1917     PUSH32(esp, eax); /* 0x3C001987: push eax */
   1918     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001988: call 0x3c0089de */ /* not lifted */
   1919     RECOMP_FLAGS_IN();
   1920     edx = MEM32(ebp + 0xC); /* 0x3C00198D: mov edx, dword ptr [ebp + 0xc] */
   1921     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1922     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1923     esp = esp + 4; /* 0x3C001990: add esp, 4 */
   1924     _flag_k = FK_ADD;
   1925     ecx = ebp + 0xC; /* 0x3C001993: lea ecx, [ebp + 0xc] */
   1926     MEM32(edx + 0x10) = esi; /* 0x3C001996: mov dword ptr [edx + 0x10], esi */
   1927     RECOMP_ICALL(0x3C007A50u); /* 0x3C001999: call 0x3c007a50 */ /* not lifted */
   1928     RECOMP_FLAGS_IN();
   1929     eax = MEM32(ebp + 0xC); /* 0x3C00199E: mov eax, dword ptr [ebp + 0xc] */
   1930     /* cmp eax, MEM32(ebp + (-0x6C)) */ /* 0x3C0019A1: cmp eax, dword ptr [ebp - 0x6c] */
   1931     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x6C)));
   1932     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1933     _flag_k = FK_CMP;
   1934     RECOMP_BACKEDGE();
   1935     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001984; /* 0x3C0019A4: jne 0x3c001984 */
   1936 L_3C0019A6:
   1937     ecx = ebp + (-0x70); /* 0x3C0019A6: lea ecx, [ebp - 0x70] */
   1938     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0019A9: mov dword ptr [ebp - 4], 0xffffffff */
   1939     RECOMP_ICALL(0x3C001D10u); /* 0x3C0019B0: call 0x3c001d10 */ /* not lifted */
   1940     RECOMP_FLAGS_IN();
   1941     edi = POP32_VAL(esp); /* 0x3C0019B5: pop edi */
   1942     esi = POP32_VAL(esp); /* 0x3C0019B6: pop esi */
   1943     eax = 4; /* 0x3C0019B7: mov eax, 4 */
   1944     ebx = POP32_VAL(esp); /* 0x3C0019BC: pop ebx */
   1945     ecx = MEM32(ebp + (-0xC)); /* 0x3C0019BD: mov ecx, dword ptr [ebp - 0xc] */
   1946     MEM32(FS_BASE + (0)) = ecx; /* 0x3C0019C0: mov dword ptr fs:[0], ecx */
   1947     esp = ebp; /* 0x3C0019C7: mov esp, ebp */
   1948     ebp = POP32_VAL(esp); /* 0x3C0019C9: pop ebp */
   1949     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C0019CA: ret 0xc */
   1950 L_3C0019CD:
   1951     ecx = MEM32(edi + 0x10); /* 0x3C0019CD: mov ecx, dword ptr [edi + 0x10] */
   1952     eax = MEM32(ecx); /* 0x3C0019D0: mov eax, dword ptr [ecx] */
   1953     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C0019D2: call dword ptr [eax + 0xc] */
   1954     RECOMP_FLAGS_IN();
   1955     ebx = MEM32(ebp + 0x10); /* 0x3C0019D5: mov ebx, dword ptr [ebp + 0x10] */
   1956     ecx = MEM32(ebx + 0x8); /* 0x3C0019D8: mov ecx, dword ptr [ebx + 8] */
   1957     PUSH32(esp, eax); /* 0x3C0019DB: push eax */
   1958     PUSH32(esp, ecx); /* 0x3C0019DC: push ecx */
   1959     ecx = ebx; /* 0x3C0019DD: mov ecx, ebx */
   1960     RECOMP_ICALL(0x3C001DF0u); /* 0x3C0019DF: call 0x3c001df0 */ /* not lifted */
   1961     RECOMP_FLAGS_IN();
   1962     esi = MEM32(edi + 0xC); /* 0x3C0019E4: mov esi, dword ptr [edi + 0xc] */
   1963     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1964     edi = 0; /* 0x3C0019E7: xor edi, edi */
   1965     _cf = 0;
   1966     _flag_k = FK_TEST;
   1967     /* cmp esi, edi */ /* 0x3C0019E9: cmp esi, edi */
   1968     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   1969     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1970     _flag_k = FK_CMP;
   1971     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001A08; /* 0x3C0019EB: je 0x3c001a08 */
   1972 L_3C0019ED:
   1973     ecx = MEM32(esi + 0x10); /* 0x3C0019ED: mov ecx, dword ptr [esi + 0x10] */
   1974     edx = MEM32(ecx); /* 0x3C0019F0: mov edx, dword ptr [ecx] */
   1975     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C0019F2: call dword ptr [edx + 0xc] */
   1976     RECOMP_FLAGS_IN();
   1977     ecx = MEM32(ebx + 0x8); /* 0x3C0019F5: mov ecx, dword ptr [ebx + 8] */
   1978     PUSH32(esp, eax); /* 0x3C0019F8: push eax */
   1979     PUSH32(esp, ecx); /* 0x3C0019F9: push ecx */
   1980     ecx = ebx; /* 0x3C0019FA: mov ecx, ebx */
   1981     RECOMP_ICALL(0x3C001DF0u); /* 0x3C0019FC: call 0x3c001df0 */ /* not lifted */
   1982     RECOMP_FLAGS_IN();
   1983     esi = MEM32(esi + 0xC); /* 0x3C001A01: mov esi, dword ptr [esi + 0xc] */
   1984     /* cmp esi, edi */ /* 0x3C001A04: cmp esi, edi */
   1985     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   1986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1987     _flag_k = FK_CMP;
   1988     RECOMP_BACKEDGE();
   1989     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0019ED; /* 0x3C001A06: jne 0x3c0019ed */
   1990 L_3C001A08:
   1991     ecx = MEM32(ebp + (-0x14)); /* 0x3C001A08: mov ecx, dword ptr [ebp - 0x14] */
   1992     /* cmp ecx, edi */ /* 0x3C001A0B: cmp ecx, edi */
   1993     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   1994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1995     _flag_k = FK_CMP;
   1996     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C001A0D: mov byte ptr [ebp - 4], 0 */
   1997     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001A1A; /* 0x3C001A11: je 0x3c001a1a */
   1998 L_3C001A13:
   1999     PUSH32(esp, 1); /* 0x3C001A13: push 1 */
   2000     RECOMP_ICALL(0x3C0024E0u); /* 0x3C001A15: call 0x3c0024e0 */ /* not lifted */
   2001     RECOMP_FLAGS_IN();
   2002 L_3C001A1A:
   2003     eax = ebp + 0x10; /* 0x3C001A1A: lea eax, [ebp + 0x10] */
   2004     PUSH32(esp, eax); /* 0x3C001A1D: push eax */
   2005     ecx = ebp + (-0x70); /* 0x3C001A1E: lea ecx, [ebp - 0x70] */
   2006     MEM32(ebp + (-0x4)) = 3; /* 0x3C001A21: mov dword ptr [ebp - 4], 3 */
   2007     RECOMP_ICALL(0x3C005110u); /* 0x3C001A28: call 0x3c005110 */ /* not lifted */
   2008     RECOMP_FLAGS_IN();
   2009     eax = MEM32(eax); /* 0x3C001A2D: mov eax, dword ptr [eax] */
   2010     /* cmp eax, MEM32(ebp + (-0x6C)) */ /* 0x3C001A2F: cmp eax, dword ptr [ebp - 0x6c] */
   2011     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x6C)));
   2012     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2013     _flag_k = FK_CMP;
   2014     MEM32(ebp + 0xC) = eax; /* 0x3C001A32: mov dword ptr [ebp + 0xc], eax */
   2015     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001A59; /* 0x3C001A35: je 0x3c001a59 */
   2016 L_3C001A37:
   2017     eax = MEM32(eax + 0x10); /* 0x3C001A37: mov eax, dword ptr [eax + 0x10] */
   2018     PUSH32(esp, eax); /* 0x3C001A3A: push eax */
   2019     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001A3B: call 0x3c0089de */ /* not lifted */
   2020     RECOMP_FLAGS_IN();
   2021     ecx = MEM32(ebp + 0xC); /* 0x3C001A40: mov ecx, dword ptr [ebp + 0xc] */
   2022     MEM32(ecx + 0x10) = edi; /* 0x3C001A43: mov dword ptr [ecx + 0x10], edi */
   2023     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2024     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2025     esp = esp + 4; /* 0x3C001A46: add esp, 4 */
   2026     _flag_k = FK_ADD;
   2027     ecx = ebp + 0xC; /* 0x3C001A49: lea ecx, [ebp + 0xc] */
   2028     RECOMP_ICALL(0x3C007A50u); /* 0x3C001A4C: call 0x3c007a50 */ /* not lifted */
   2029     RECOMP_FLAGS_IN();
   2030     eax = MEM32(ebp + 0xC); /* 0x3C001A51: mov eax, dword ptr [ebp + 0xc] */
   2031     /* cmp eax, MEM32(ebp + (-0x6C)) */ /* 0x3C001A54: cmp eax, dword ptr [ebp - 0x6c] */
   2032     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x6C)));
   2033     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2034     _flag_k = FK_CMP;
   2035     RECOMP_BACKEDGE();
   2036     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001A37; /* 0x3C001A57: jne 0x3c001a37 */
   2037 L_3C001A59:
   2038     ecx = ebp + (-0x70); /* 0x3C001A59: lea ecx, [ebp - 0x70] */
   2039     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C001A5C: mov dword ptr [ebp - 4], 0xffffffff */
   2040     RECOMP_ICALL(0x3C001D10u); /* 0x3C001A63: call 0x3c001d10 */ /* not lifted */
   2041     RECOMP_FLAGS_IN();
   2042     edi = POP32_VAL(esp); /* 0x3C001A68: pop edi */
   2043     esi = POP32_VAL(esp); /* 0x3C001A69: pop esi */
   2044     eax = 1; /* 0x3C001A6A: mov eax, 1 */
   2045     ebx = POP32_VAL(esp); /* 0x3C001A6F: pop ebx */
   2046     ecx = MEM32(ebp + (-0xC)); /* 0x3C001A70: mov ecx, dword ptr [ebp - 0xc] */
   2047     MEM32(FS_BASE + (0)) = ecx; /* 0x3C001A73: mov dword ptr fs:[0], ecx */
   2048     esp = ebp; /* 0x3C001A7A: mov esp, ebp */
   2049     ebp = POP32_VAL(esp); /* 0x3C001A7C: pop ebp */
   2050     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C001A7D: ret 0xc */
   2051 L_3C001A80:
   2052     /* cmp ebx, esi */ /* 0x3C001A80: cmp ebx, esi */
   2053     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   2054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2055     _flag_k = FK_CMP;
   2056     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001A9E; /* 0x3C001A82: je 0x3c001a9e */
   2057 L_3C001A84:
   2058     /* cmp MEM32(ebx + 0x8), esi */ /* 0x3C001A84: cmp dword ptr [ebx + 8], esi */
   2059     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   2060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2061     _flag_k = FK_CMP;
   2062     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001A95; /* 0x3C001A87: jne 0x3c001a95 */
   2063 L_3C001A89:
   2064     eax = MEM32(ebx + 0x4); /* 0x3C001A89: mov eax, dword ptr [ebx + 4] */
   2065     PUSH32(esp, eax); /* 0x3C001A8C: push eax */
   2066     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001A8D: call 0x3c0089de */ /* not lifted */
   2067     RECOMP_FLAGS_IN();
   2068     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2069     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2070     esp = esp + 4; /* 0x3C001A92: add esp, 4 */
   2071     _flag_k = FK_ADD;
   2072 L_3C001A95:
   2073     PUSH32(esp, ebx); /* 0x3C001A95: push ebx */
   2074     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001A96: call 0x3c0089de */ /* not lifted */
   2075     RECOMP_FLAGS_IN();
   2076     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2077     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2078     esp = esp + 4; /* 0x3C001A9B: add esp, 4 */
   2079     _flag_k = FK_ADD;
   2080 L_3C001A9E:
   2081     ecx = ebp + (-0x70); /* 0x3C001A9E: lea ecx, [ebp - 0x70] */
   2082     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C001AA1: mov dword ptr [ebp - 4], 0xffffffff */
   2083     RECOMP_ICALL(0x3C001AD0u); /* 0x3C001AA8: call 0x3c001ad0 */ /* not lifted */
   2084     RECOMP_FLAGS_IN();
   2085     ecx = MEM32(ebp + (-0xC)); /* 0x3C001AAD: mov ecx, dword ptr [ebp - 0xc] */
   2086     edi = POP32_VAL(esp); /* 0x3C001AB0: pop edi */
   2087     esi = POP32_VAL(esp); /* 0x3C001AB1: pop esi */
   2088     eax = 2; /* 0x3C001AB2: mov eax, 2 */
   2089     ebx = POP32_VAL(esp); /* 0x3C001AB7: pop ebx */
   2090     MEM32(FS_BASE + (0)) = ecx; /* 0x3C001AB8: mov dword ptr fs:[0], ecx */
   2091     esp = ebp; /* 0x3C001ABF: mov esp, ebp */
   2092     ebp = POP32_VAL(esp); /* 0x3C001AC1: pop ebp */
   2093     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C001AC2: ret 0xc */
   2094     RECOMP_REGS_OUT();
   2095 }
   2096 
   2097 void sub_3C001AD0(void) {
   2098     int _fpu_cmp = 0;
   2099     uint32_t _cf = 0;
   2100     int _df = 1;
   2101     uint32_t _flag_k = FK_NONE;
   2102     uint32_t _flag_a = 0, _flag_b = 0;
   2103     uint32_t _itail_tgt = 0;
   2104     RECOMP_REGS_LOCALS
   2105     RECOMP_ENTER(0x3C001AD0u);
   2106 
   2107 L_3C001AD0:
   2108     PUSH32(esp, ebp); /* 0x3C001AD0: push ebp */
   2109     ebp = esp; /* 0x3C001AD1: mov ebp, esp */
   2110     PUSH32(esp, 0xFFFFFFFFu); /* 0x3C001AD3: push -1 */
   2111     PUSH32(esp, 0x3C008D38u); /* 0x3C001AD5: push 0x3c008d38 */
   2112     eax = MEM32(FS_BASE + (0)); /* 0x3C001ADA: mov eax, dword ptr fs:[0] */
   2113     PUSH32(esp, eax); /* 0x3C001AE0: push eax */
   2114     MEM32(FS_BASE + (0)) = esp; /* 0x3C001AE1: mov dword ptr fs:[0], esp */
   2115     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2117     esp = esp - 8; /* 0x3C001AE8: sub esp, 8 */
   2118     _flag_k = FK_CMP;
   2119     PUSH32(esp, ebx); /* 0x3C001AEB: push ebx */
   2120     PUSH32(esp, esi); /* 0x3C001AEC: push esi */
   2121     PUSH32(esp, edi); /* 0x3C001AED: push edi */
   2122     edi = ecx; /* 0x3C001AEE: mov edi, ecx */
   2123     MEM32(ebp + (-0x10)) = edi; /* 0x3C001AF0: mov dword ptr [ebp - 0x10], edi */
   2124     eax = MEM32(edi + 0x4); /* 0x3C001AF3: mov eax, dword ptr [edi + 4] */
   2125     esi = MEM32(eax); /* 0x3C001AF6: mov esi, dword ptr [eax] */
   2126     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2127     ebx = 0; /* 0x3C001AF8: xor ebx, ebx */
   2128     _cf = 0;
   2129     _flag_k = FK_TEST;
   2130     /* cmp esi, eax */ /* 0x3C001AFA: cmp esi, eax */
   2131     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2133     _flag_k = FK_CMP;
   2134     MEM32(ebp + (-0x4)) = ebx; /* 0x3C001AFC: mov dword ptr [ebp - 4], ebx */
   2135     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B43; /* 0x3C001AFF: je 0x3c001b43 */
   2136 L_3C001B01:
   2137     eax = MEM32(esi + 0x10); /* 0x3C001B01: mov eax, dword ptr [esi + 0x10] */
   2138     PUSH32(esp, eax); /* 0x3C001B04: push eax */
   2139     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001B05: call 0x3c0089de */ /* not lifted */
   2140     RECOMP_FLAGS_IN();
   2141     MEM32(esi + 0x10) = ebx; /* 0x3C001B0A: mov dword ptr [esi + 0x10], ebx */
   2142     eax = MEM32(esi + 0x8); /* 0x3C001B0D: mov eax, dword ptr [esi + 8] */
   2143     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3C001B10: mov cl, byte ptr [eax + 0x15] */
   2144     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2145     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2146     esp = esp + 4; /* 0x3C001B13: add esp, 4 */
   2147     _flag_k = FK_ADD;
   2148     /* test LO8(ecx), LO8(ecx) */ /* 0x3C001B16: test cl, cl */
   2149     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2150     _cf = 0;
   2151     _flag_k = FK_NARROW(FK_TEST, 24);
   2152     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C001B25; /* 0x3C001B18: jne 0x3c001b25 */
   2153 L_3C001B1A:
   2154     PUSH32(esp, eax); /* 0x3C001B1A: push eax */
   2155     RECOMP_ICALL(0x3C002060u); /* 0x3C001B1B: call 0x3c002060 */ /* not lifted */
   2156     RECOMP_FLAGS_IN();
   2157     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2158     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2159     esp = esp + 4; /* 0x3C001B20: add esp, 4 */
   2160     _flag_k = FK_ADD;
   2161     goto L_3C001B3C; /* 0x3C001B23: jmp 0x3c001b3c */
   2162 L_3C001B25:
   2163     eax = MEM32(esi + 0x4); /* 0x3C001B25: mov eax, dword ptr [esi + 4] */
   2164     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C001B28: cmp esi, dword ptr [eax + 8] */
   2165     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2166     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2167     _flag_k = FK_CMP;
   2168     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B37; /* 0x3C001B2B: jne 0x3c001b37 */
   2169 L_3C001B2D:
   2170     esi = eax; /* 0x3C001B2D: mov esi, eax */
   2171     eax = MEM32(eax + 0x4); /* 0x3C001B2F: mov eax, dword ptr [eax + 4] */
   2172     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C001B32: cmp esi, dword ptr [eax + 8] */
   2173     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2175     _flag_k = FK_CMP;
   2176     RECOMP_BACKEDGE();
   2177     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B2D; /* 0x3C001B35: je 0x3c001b2d */
   2178 L_3C001B37:
   2179     /* cmp MEM32(esi + 0x8), eax */ /* 0x3C001B37: cmp dword ptr [esi + 8], eax */
   2180     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   2181     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2182     _flag_k = FK_CMP;
   2183     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B3E; /* 0x3C001B3A: je 0x3c001b3e */
   2184 L_3C001B3C:
   2185     esi = eax; /* 0x3C001B3C: mov esi, eax */
   2186 L_3C001B3E:
   2187     /* cmp esi, MEM32(edi + 0x4) */ /* 0x3C001B3E: cmp esi, dword ptr [edi + 4] */
   2188     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2190     _flag_k = FK_CMP;
   2191     RECOMP_BACKEDGE();
   2192     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B01; /* 0x3C001B41: jne 0x3c001b01 */
   2193 L_3C001B43:
   2194     esi = MEM32(edi + 0x4); /* 0x3C001B43: mov esi, dword ptr [edi + 4] */
   2195     /* cmp MEM32(edi + 0x10), ebx */ /* 0x3C001B46: cmp dword ptr [edi + 0x10], ebx */
   2196     _flag_a = (uint32_t)(MEM32(edi + 0x10)); _flag_b = (uint32_t)(ebx);
   2197     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2198     _flag_k = FK_CMP;
   2199     eax = MEM32(esi); /* 0x3C001B49: mov eax, dword ptr [esi] */
   2200     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C001B4B: mov dword ptr [ebp - 4], 0xffffffff */
   2201     MEM32(ebp + (-0x10)) = eax; /* 0x3C001B52: mov dword ptr [ebp - 0x10], eax */
   2202     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B55: je 0x3c001b85 */
   2203 L_3C001B57:
   2204     ecx = eax; /* 0x3C001B57: mov ecx, eax */
   2205     /* cmp eax, ecx */ /* 0x3C001B59: cmp eax, ecx */
   2206     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2208     _flag_k = FK_CMP;
   2209     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B5B: jne 0x3c001b85 */
   2210 L_3C001B5D:
   2211     /* cmp esi, esi */ /* 0x3C001B5D: cmp esi, esi */
   2212     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2213     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2214     _flag_k = FK_CMP;
   2215     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B5F: jne 0x3c001b85 */
   2216 L_3C001B61:
   2217     eax = MEM32(esi + 0x4); /* 0x3C001B61: mov eax, dword ptr [esi + 4] */
   2218     PUSH32(esp, eax); /* 0x3C001B64: push eax */
   2219     ecx = edi; /* 0x3C001B65: mov ecx, edi */
   2220     RECOMP_ICALL(0x3C002020u); /* 0x3C001B67: call 0x3c002020 */ /* not lifted */
   2221     RECOMP_FLAGS_IN();
   2222     ecx = MEM32(edi + 0x4); /* 0x3C001B6C: mov ecx, dword ptr [edi + 4] */
   2223     edx = MEM32(edi + 0x8); /* 0x3C001B6F: mov edx, dword ptr [edi + 8] */
   2224     MEM32(ecx + 0x4) = edx; /* 0x3C001B72: mov dword ptr [ecx + 4], edx */
   2225     eax = MEM32(edi + 0x4); /* 0x3C001B75: mov eax, dword ptr [edi + 4] */
   2226     MEM32(edi + 0x10) = ebx; /* 0x3C001B78: mov dword ptr [edi + 0x10], ebx */
   2227     MEM32(eax) = eax; /* 0x3C001B7B: mov dword ptr [eax], eax */
   2228     eax = MEM32(edi + 0x4); /* 0x3C001B7D: mov eax, dword ptr [edi + 4] */
   2229     MEM32(eax + 0x8) = eax; /* 0x3C001B80: mov dword ptr [eax + 8], eax */
   2230     goto L_3C001BA8; /* 0x3C001B83: jmp 0x3c001ba8 */
   2231 L_3C001B85:
   2232     /* cmp eax, esi */ /* 0x3C001B85: cmp eax, esi */
   2233     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2235     _flag_k = FK_CMP;
   2236     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001BA8; /* 0x3C001B87: je 0x3c001ba8 */
   2237 L_3C001B89:
   2238     ecx = ebp + (-0x10); /* 0x3C001B89: lea ecx, [ebp - 0x10] */
   2239     ebx = eax; /* 0x3C001B8C: mov ebx, eax */
   2240     RECOMP_ICALL(0x3C007A50u); /* 0x3C001B8E: call 0x3c007a50 */ /* not lifted */
   2241     RECOMP_FLAGS_IN();
   2242     PUSH32(esp, ebx); /* 0x3C001B93: push ebx */
   2243     eax = ebp + (-0x14); /* 0x3C001B94: lea eax, [ebp - 0x14] */
   2244     PUSH32(esp, eax); /* 0x3C001B97: push eax */
   2245     ecx = edi; /* 0x3C001B98: mov ecx, edi */
   2246     RECOMP_ICALL(0x3C007320u); /* 0x3C001B9A: call 0x3c007320 */ /* not lifted */
   2247     RECOMP_FLAGS_IN();
   2248     eax = MEM32(ebp + (-0x10)); /* 0x3C001B9F: mov eax, dword ptr [ebp - 0x10] */
   2249     /* cmp eax, esi */ /* 0x3C001BA2: cmp eax, esi */
   2250     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2251     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2252     _flag_k = FK_CMP;
   2253     RECOMP_BACKEDGE();
   2254     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B89; /* 0x3C001BA4: jne 0x3c001b89 */
   2255 L_3C001BA6:
   2256     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2257     ebx = 0; /* 0x3C001BA6: xor ebx, ebx */
   2258     _cf = 0;
   2259     _flag_k = FK_TEST;
   2260 L_3C001BA8:
   2261     ecx = MEM32(edi + 0x4); /* 0x3C001BA8: mov ecx, dword ptr [edi + 4] */
   2262     PUSH32(esp, ecx); /* 0x3C001BAB: push ecx */
   2263     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BAC: call 0x3c0089de */ /* not lifted */
   2264     RECOMP_FLAGS_IN();
   2265     edx = MEM32(edi + 0x8); /* 0x3C001BB1: mov edx, dword ptr [edi + 8] */
   2266     PUSH32(esp, edx); /* 0x3C001BB4: push edx */
   2267     MEM32(edi + 0x4) = ebx; /* 0x3C001BB5: mov dword ptr [edi + 4], ebx */
   2268     MEM32(edi + 0x10) = ebx; /* 0x3C001BB8: mov dword ptr [edi + 0x10], ebx */
   2269     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BBB: call 0x3c0089de */ /* not lifted */
   2270     RECOMP_FLAGS_IN();
   2271     ecx = MEM32(ebp + (-0xC)); /* 0x3C001BC0: mov ecx, dword ptr [ebp - 0xc] */
   2272     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2273     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2274     esp = esp + 8; /* 0x3C001BC3: add esp, 8 */
   2275     _flag_k = FK_ADD;
   2276     MEM32(edi + 0x8) = ebx; /* 0x3C001BC6: mov dword ptr [edi + 8], ebx */
   2277     edi = POP32_VAL(esp); /* 0x3C001BC9: pop edi */
   2278     esi = POP32_VAL(esp); /* 0x3C001BCA: pop esi */
   2279     ebx = POP32_VAL(esp); /* 0x3C001BCB: pop ebx */
   2280     MEM32(FS_BASE + (0)) = ecx; /* 0x3C001BCC: mov dword ptr fs:[0], ecx */
   2281     esp = ebp; /* 0x3C001BD3: mov esp, ebp */
   2282     ebp = POP32_VAL(esp); /* 0x3C001BD5: pop ebp */
   2283     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001BD6: ret  */
   2284     RECOMP_REGS_OUT();
   2285 }
   2286 
   2287 void sub_3C001B01(void) {
   2288     int _fpu_cmp = 0;
   2289     uint32_t _cf = 0;
   2290     int _df = 1;
   2291     uint32_t _flag_k = FK_NONE;
   2292     uint32_t _flag_a = 0, _flag_b = 0;
   2293     uint32_t _itail_tgt = 0;
   2294     RECOMP_REGS_LOCALS
   2295     RECOMP_ENTER(0x3C001B01u);
   2296 
   2297 L_3C001B01:
   2298     eax = MEM32(esi + 0x10); /* 0x3C001B01: mov eax, dword ptr [esi + 0x10] */
   2299     PUSH32(esp, eax); /* 0x3C001B04: push eax */
   2300     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001B05: call 0x3c0089de */ /* not lifted */
   2301     RECOMP_FLAGS_IN();
   2302     MEM32(esi + 0x10) = ebx; /* 0x3C001B0A: mov dword ptr [esi + 0x10], ebx */
   2303     eax = MEM32(esi + 0x8); /* 0x3C001B0D: mov eax, dword ptr [esi + 8] */
   2304     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3C001B10: mov cl, byte ptr [eax + 0x15] */
   2305     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2306     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2307     esp = esp + 4; /* 0x3C001B13: add esp, 4 */
   2308     _flag_k = FK_ADD;
   2309     /* test LO8(ecx), LO8(ecx) */ /* 0x3C001B16: test cl, cl */
   2310     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2311     _cf = 0;
   2312     _flag_k = FK_NARROW(FK_TEST, 24);
   2313     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C001B25; /* 0x3C001B18: jne 0x3c001b25 */
   2314 L_3C001B1A:
   2315     PUSH32(esp, eax); /* 0x3C001B1A: push eax */
   2316     RECOMP_ICALL(0x3C002060u); /* 0x3C001B1B: call 0x3c002060 */ /* not lifted */
   2317     RECOMP_FLAGS_IN();
   2318     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2319     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2320     esp = esp + 4; /* 0x3C001B20: add esp, 4 */
   2321     _flag_k = FK_ADD;
   2322     goto L_3C001B3C; /* 0x3C001B23: jmp 0x3c001b3c */
   2323 L_3C001B25:
   2324     eax = MEM32(esi + 0x4); /* 0x3C001B25: mov eax, dword ptr [esi + 4] */
   2325     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C001B28: cmp esi, dword ptr [eax + 8] */
   2326     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2328     _flag_k = FK_CMP;
   2329     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B37; /* 0x3C001B2B: jne 0x3c001b37 */
   2330 L_3C001B2D:
   2331     esi = eax; /* 0x3C001B2D: mov esi, eax */
   2332     eax = MEM32(eax + 0x4); /* 0x3C001B2F: mov eax, dword ptr [eax + 4] */
   2333     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C001B32: cmp esi, dword ptr [eax + 8] */
   2334     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2335     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2336     _flag_k = FK_CMP;
   2337     RECOMP_BACKEDGE();
   2338     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B2D; /* 0x3C001B35: je 0x3c001b2d */
   2339 L_3C001B37:
   2340     /* cmp MEM32(esi + 0x8), eax */ /* 0x3C001B37: cmp dword ptr [esi + 8], eax */
   2341     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   2342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2343     _flag_k = FK_CMP;
   2344     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B3E; /* 0x3C001B3A: je 0x3c001b3e */
   2345 L_3C001B3C:
   2346     esi = eax; /* 0x3C001B3C: mov esi, eax */
   2347 L_3C001B3E:
   2348     /* cmp esi, MEM32(edi + 0x4) */ /* 0x3C001B3E: cmp esi, dword ptr [edi + 4] */
   2349     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2351     _flag_k = FK_CMP;
   2352     RECOMP_BACKEDGE();
   2353     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B01; /* 0x3C001B41: jne 0x3c001b01 */
   2354 L_3C001B43:
   2355     esi = MEM32(edi + 0x4); /* 0x3C001B43: mov esi, dword ptr [edi + 4] */
   2356     /* cmp MEM32(edi + 0x10), ebx */ /* 0x3C001B46: cmp dword ptr [edi + 0x10], ebx */
   2357     _flag_a = (uint32_t)(MEM32(edi + 0x10)); _flag_b = (uint32_t)(ebx);
   2358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2359     _flag_k = FK_CMP;
   2360     eax = MEM32(esi); /* 0x3C001B49: mov eax, dword ptr [esi] */
   2361     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C001B4B: mov dword ptr [ebp - 4], 0xffffffff */
   2362     MEM32(ebp + (-0x10)) = eax; /* 0x3C001B52: mov dword ptr [ebp - 0x10], eax */
   2363     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B55: je 0x3c001b85 */
   2364 L_3C001B57:
   2365     ecx = eax; /* 0x3C001B57: mov ecx, eax */
   2366     /* cmp eax, ecx */ /* 0x3C001B59: cmp eax, ecx */
   2367     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2368     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2369     _flag_k = FK_CMP;
   2370     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B5B: jne 0x3c001b85 */
   2371 L_3C001B5D:
   2372     /* cmp esi, esi */ /* 0x3C001B5D: cmp esi, esi */
   2373     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2375     _flag_k = FK_CMP;
   2376     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B5F: jne 0x3c001b85 */
   2377 L_3C001B61:
   2378     eax = MEM32(esi + 0x4); /* 0x3C001B61: mov eax, dword ptr [esi + 4] */
   2379     PUSH32(esp, eax); /* 0x3C001B64: push eax */
   2380     ecx = edi; /* 0x3C001B65: mov ecx, edi */
   2381     RECOMP_ICALL(0x3C002020u); /* 0x3C001B67: call 0x3c002020 */ /* not lifted */
   2382     RECOMP_FLAGS_IN();
   2383     ecx = MEM32(edi + 0x4); /* 0x3C001B6C: mov ecx, dword ptr [edi + 4] */
   2384     edx = MEM32(edi + 0x8); /* 0x3C001B6F: mov edx, dword ptr [edi + 8] */
   2385     MEM32(ecx + 0x4) = edx; /* 0x3C001B72: mov dword ptr [ecx + 4], edx */
   2386     eax = MEM32(edi + 0x4); /* 0x3C001B75: mov eax, dword ptr [edi + 4] */
   2387     MEM32(edi + 0x10) = ebx; /* 0x3C001B78: mov dword ptr [edi + 0x10], ebx */
   2388     MEM32(eax) = eax; /* 0x3C001B7B: mov dword ptr [eax], eax */
   2389     eax = MEM32(edi + 0x4); /* 0x3C001B7D: mov eax, dword ptr [edi + 4] */
   2390     MEM32(eax + 0x8) = eax; /* 0x3C001B80: mov dword ptr [eax + 8], eax */
   2391     goto L_3C001BA8; /* 0x3C001B83: jmp 0x3c001ba8 */
   2392 L_3C001B85:
   2393     /* cmp eax, esi */ /* 0x3C001B85: cmp eax, esi */
   2394     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2395     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2396     _flag_k = FK_CMP;
   2397     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001BA8; /* 0x3C001B87: je 0x3c001ba8 */
   2398 L_3C001B89:
   2399     ecx = ebp + (-0x10); /* 0x3C001B89: lea ecx, [ebp - 0x10] */
   2400     ebx = eax; /* 0x3C001B8C: mov ebx, eax */
   2401     RECOMP_ICALL(0x3C007A50u); /* 0x3C001B8E: call 0x3c007a50 */ /* not lifted */
   2402     RECOMP_FLAGS_IN();
   2403     PUSH32(esp, ebx); /* 0x3C001B93: push ebx */
   2404     eax = ebp + (-0x14); /* 0x3C001B94: lea eax, [ebp - 0x14] */
   2405     PUSH32(esp, eax); /* 0x3C001B97: push eax */
   2406     ecx = edi; /* 0x3C001B98: mov ecx, edi */
   2407     RECOMP_ICALL(0x3C007320u); /* 0x3C001B9A: call 0x3c007320 */ /* not lifted */
   2408     RECOMP_FLAGS_IN();
   2409     eax = MEM32(ebp + (-0x10)); /* 0x3C001B9F: mov eax, dword ptr [ebp - 0x10] */
   2410     /* cmp eax, esi */ /* 0x3C001BA2: cmp eax, esi */
   2411     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2412     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2413     _flag_k = FK_CMP;
   2414     RECOMP_BACKEDGE();
   2415     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B89; /* 0x3C001BA4: jne 0x3c001b89 */
   2416 L_3C001BA6:
   2417     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2418     ebx = 0; /* 0x3C001BA6: xor ebx, ebx */
   2419     _cf = 0;
   2420     _flag_k = FK_TEST;
   2421 L_3C001BA8:
   2422     ecx = MEM32(edi + 0x4); /* 0x3C001BA8: mov ecx, dword ptr [edi + 4] */
   2423     PUSH32(esp, ecx); /* 0x3C001BAB: push ecx */
   2424     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BAC: call 0x3c0089de */ /* not lifted */
   2425     RECOMP_FLAGS_IN();
   2426     edx = MEM32(edi + 0x8); /* 0x3C001BB1: mov edx, dword ptr [edi + 8] */
   2427     PUSH32(esp, edx); /* 0x3C001BB4: push edx */
   2428     MEM32(edi + 0x4) = ebx; /* 0x3C001BB5: mov dword ptr [edi + 4], ebx */
   2429     MEM32(edi + 0x10) = ebx; /* 0x3C001BB8: mov dword ptr [edi + 0x10], ebx */
   2430     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BBB: call 0x3c0089de */ /* not lifted */
   2431     RECOMP_FLAGS_IN();
   2432     ecx = MEM32(ebp + (-0xC)); /* 0x3C001BC0: mov ecx, dword ptr [ebp - 0xc] */
   2433     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2434     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2435     esp = esp + 8; /* 0x3C001BC3: add esp, 8 */
   2436     _flag_k = FK_ADD;
   2437     MEM32(edi + 0x8) = ebx; /* 0x3C001BC6: mov dword ptr [edi + 8], ebx */
   2438     edi = POP32_VAL(esp); /* 0x3C001BC9: pop edi */
   2439     esi = POP32_VAL(esp); /* 0x3C001BCA: pop esi */
   2440     ebx = POP32_VAL(esp); /* 0x3C001BCB: pop ebx */
   2441     MEM32(FS_BASE + (0)) = ecx; /* 0x3C001BCC: mov dword ptr fs:[0], ecx */
   2442     esp = ebp; /* 0x3C001BD3: mov esp, ebp */
   2443     ebp = POP32_VAL(esp); /* 0x3C001BD5: pop ebp */
   2444     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001BD6: ret  */
   2445     RECOMP_REGS_OUT();
   2446 }
   2447 
   2448 void sub_3C001B3C(void) {
   2449     int _fpu_cmp = 0;
   2450     uint32_t _cf = 0;
   2451     int _df = 1;
   2452     uint32_t _flag_k = FK_NONE;
   2453     uint32_t _flag_a = 0, _flag_b = 0;
   2454     uint32_t _itail_tgt = 0;
   2455     RECOMP_REGS_LOCALS
   2456     RECOMP_ENTER(0x3C001B3Cu);
   2457 
   2458     goto L_3C001B3C;
   2459 L_3C001B01:
   2460     eax = MEM32(esi + 0x10); /* 0x3C001B01: mov eax, dword ptr [esi + 0x10] */
   2461     PUSH32(esp, eax); /* 0x3C001B04: push eax */
   2462     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001B05: call 0x3c0089de */ /* not lifted */
   2463     RECOMP_FLAGS_IN();
   2464     MEM32(esi + 0x10) = ebx; /* 0x3C001B0A: mov dword ptr [esi + 0x10], ebx */
   2465     eax = MEM32(esi + 0x8); /* 0x3C001B0D: mov eax, dword ptr [esi + 8] */
   2466     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3C001B10: mov cl, byte ptr [eax + 0x15] */
   2467     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2468     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2469     esp = esp + 4; /* 0x3C001B13: add esp, 4 */
   2470     _flag_k = FK_ADD;
   2471     /* test LO8(ecx), LO8(ecx) */ /* 0x3C001B16: test cl, cl */
   2472     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2473     _cf = 0;
   2474     _flag_k = FK_NARROW(FK_TEST, 24);
   2475     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C001B25; /* 0x3C001B18: jne 0x3c001b25 */
   2476 L_3C001B1A:
   2477     PUSH32(esp, eax); /* 0x3C001B1A: push eax */
   2478     RECOMP_ICALL(0x3C002060u); /* 0x3C001B1B: call 0x3c002060 */ /* not lifted */
   2479     RECOMP_FLAGS_IN();
   2480     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2481     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2482     esp = esp + 4; /* 0x3C001B20: add esp, 4 */
   2483     _flag_k = FK_ADD;
   2484     goto L_3C001B3C; /* 0x3C001B23: jmp 0x3c001b3c */
   2485 L_3C001B25:
   2486     eax = MEM32(esi + 0x4); /* 0x3C001B25: mov eax, dword ptr [esi + 4] */
   2487     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C001B28: cmp esi, dword ptr [eax + 8] */
   2488     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2489     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2490     _flag_k = FK_CMP;
   2491     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B37; /* 0x3C001B2B: jne 0x3c001b37 */
   2492 L_3C001B2D:
   2493     esi = eax; /* 0x3C001B2D: mov esi, eax */
   2494     eax = MEM32(eax + 0x4); /* 0x3C001B2F: mov eax, dword ptr [eax + 4] */
   2495     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C001B32: cmp esi, dword ptr [eax + 8] */
   2496     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2498     _flag_k = FK_CMP;
   2499     RECOMP_BACKEDGE();
   2500     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B2D; /* 0x3C001B35: je 0x3c001b2d */
   2501 L_3C001B37:
   2502     /* cmp MEM32(esi + 0x8), eax */ /* 0x3C001B37: cmp dword ptr [esi + 8], eax */
   2503     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   2504     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2505     _flag_k = FK_CMP;
   2506     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B3E; /* 0x3C001B3A: je 0x3c001b3e */
   2507 L_3C001B3C:
   2508     esi = eax; /* 0x3C001B3C: mov esi, eax */
   2509 L_3C001B3E:
   2510     /* cmp esi, MEM32(edi + 0x4) */ /* 0x3C001B3E: cmp esi, dword ptr [edi + 4] */
   2511     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2513     _flag_k = FK_CMP;
   2514     RECOMP_BACKEDGE();
   2515     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B01; /* 0x3C001B41: jne 0x3c001b01 */
   2516 L_3C001B43:
   2517     esi = MEM32(edi + 0x4); /* 0x3C001B43: mov esi, dword ptr [edi + 4] */
   2518     /* cmp MEM32(edi + 0x10), ebx */ /* 0x3C001B46: cmp dword ptr [edi + 0x10], ebx */
   2519     _flag_a = (uint32_t)(MEM32(edi + 0x10)); _flag_b = (uint32_t)(ebx);
   2520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2521     _flag_k = FK_CMP;
   2522     eax = MEM32(esi); /* 0x3C001B49: mov eax, dword ptr [esi] */
   2523     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C001B4B: mov dword ptr [ebp - 4], 0xffffffff */
   2524     MEM32(ebp + (-0x10)) = eax; /* 0x3C001B52: mov dword ptr [ebp - 0x10], eax */
   2525     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B55: je 0x3c001b85 */
   2526 L_3C001B57:
   2527     ecx = eax; /* 0x3C001B57: mov ecx, eax */
   2528     /* cmp eax, ecx */ /* 0x3C001B59: cmp eax, ecx */
   2529     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2530     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2531     _flag_k = FK_CMP;
   2532     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B5B: jne 0x3c001b85 */
   2533 L_3C001B5D:
   2534     /* cmp esi, esi */ /* 0x3C001B5D: cmp esi, esi */
   2535     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2537     _flag_k = FK_CMP;
   2538     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B5F: jne 0x3c001b85 */
   2539 L_3C001B61:
   2540     eax = MEM32(esi + 0x4); /* 0x3C001B61: mov eax, dword ptr [esi + 4] */
   2541     PUSH32(esp, eax); /* 0x3C001B64: push eax */
   2542     ecx = edi; /* 0x3C001B65: mov ecx, edi */
   2543     RECOMP_ICALL(0x3C002020u); /* 0x3C001B67: call 0x3c002020 */ /* not lifted */
   2544     RECOMP_FLAGS_IN();
   2545     ecx = MEM32(edi + 0x4); /* 0x3C001B6C: mov ecx, dword ptr [edi + 4] */
   2546     edx = MEM32(edi + 0x8); /* 0x3C001B6F: mov edx, dword ptr [edi + 8] */
   2547     MEM32(ecx + 0x4) = edx; /* 0x3C001B72: mov dword ptr [ecx + 4], edx */
   2548     eax = MEM32(edi + 0x4); /* 0x3C001B75: mov eax, dword ptr [edi + 4] */
   2549     MEM32(edi + 0x10) = ebx; /* 0x3C001B78: mov dword ptr [edi + 0x10], ebx */
   2550     MEM32(eax) = eax; /* 0x3C001B7B: mov dword ptr [eax], eax */
   2551     eax = MEM32(edi + 0x4); /* 0x3C001B7D: mov eax, dword ptr [edi + 4] */
   2552     MEM32(eax + 0x8) = eax; /* 0x3C001B80: mov dword ptr [eax + 8], eax */
   2553     goto L_3C001BA8; /* 0x3C001B83: jmp 0x3c001ba8 */
   2554 L_3C001B85:
   2555     /* cmp eax, esi */ /* 0x3C001B85: cmp eax, esi */
   2556     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2558     _flag_k = FK_CMP;
   2559     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001BA8; /* 0x3C001B87: je 0x3c001ba8 */
   2560 L_3C001B89:
   2561     ecx = ebp + (-0x10); /* 0x3C001B89: lea ecx, [ebp - 0x10] */
   2562     ebx = eax; /* 0x3C001B8C: mov ebx, eax */
   2563     RECOMP_ICALL(0x3C007A50u); /* 0x3C001B8E: call 0x3c007a50 */ /* not lifted */
   2564     RECOMP_FLAGS_IN();
   2565     PUSH32(esp, ebx); /* 0x3C001B93: push ebx */
   2566     eax = ebp + (-0x14); /* 0x3C001B94: lea eax, [ebp - 0x14] */
   2567     PUSH32(esp, eax); /* 0x3C001B97: push eax */
   2568     ecx = edi; /* 0x3C001B98: mov ecx, edi */
   2569     RECOMP_ICALL(0x3C007320u); /* 0x3C001B9A: call 0x3c007320 */ /* not lifted */
   2570     RECOMP_FLAGS_IN();
   2571     eax = MEM32(ebp + (-0x10)); /* 0x3C001B9F: mov eax, dword ptr [ebp - 0x10] */
   2572     /* cmp eax, esi */ /* 0x3C001BA2: cmp eax, esi */
   2573     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2575     _flag_k = FK_CMP;
   2576     RECOMP_BACKEDGE();
   2577     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B89; /* 0x3C001BA4: jne 0x3c001b89 */
   2578 L_3C001BA6:
   2579     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2580     ebx = 0; /* 0x3C001BA6: xor ebx, ebx */
   2581     _cf = 0;
   2582     _flag_k = FK_TEST;
   2583 L_3C001BA8:
   2584     ecx = MEM32(edi + 0x4); /* 0x3C001BA8: mov ecx, dword ptr [edi + 4] */
   2585     PUSH32(esp, ecx); /* 0x3C001BAB: push ecx */
   2586     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BAC: call 0x3c0089de */ /* not lifted */
   2587     RECOMP_FLAGS_IN();
   2588     edx = MEM32(edi + 0x8); /* 0x3C001BB1: mov edx, dword ptr [edi + 8] */
   2589     PUSH32(esp, edx); /* 0x3C001BB4: push edx */
   2590     MEM32(edi + 0x4) = ebx; /* 0x3C001BB5: mov dword ptr [edi + 4], ebx */
   2591     MEM32(edi + 0x10) = ebx; /* 0x3C001BB8: mov dword ptr [edi + 0x10], ebx */
   2592     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BBB: call 0x3c0089de */ /* not lifted */
   2593     RECOMP_FLAGS_IN();
   2594     ecx = MEM32(ebp + (-0xC)); /* 0x3C001BC0: mov ecx, dword ptr [ebp - 0xc] */
   2595     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2596     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2597     esp = esp + 8; /* 0x3C001BC3: add esp, 8 */
   2598     _flag_k = FK_ADD;
   2599     MEM32(edi + 0x8) = ebx; /* 0x3C001BC6: mov dword ptr [edi + 8], ebx */
   2600     edi = POP32_VAL(esp); /* 0x3C001BC9: pop edi */
   2601     esi = POP32_VAL(esp); /* 0x3C001BCA: pop esi */
   2602     ebx = POP32_VAL(esp); /* 0x3C001BCB: pop ebx */
   2603     MEM32(FS_BASE + (0)) = ecx; /* 0x3C001BCC: mov dword ptr fs:[0], ecx */
   2604     esp = ebp; /* 0x3C001BD3: mov esp, ebp */
   2605     ebp = POP32_VAL(esp); /* 0x3C001BD5: pop ebp */
   2606     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001BD6: ret  */
   2607     RECOMP_REGS_OUT();
   2608 }
   2609 
   2610 void sub_3C001B3E(void) {
   2611     int _fpu_cmp = 0;
   2612     uint32_t _cf = 0;
   2613     int _df = 1;
   2614     uint32_t _flag_k = FK_NONE;
   2615     uint32_t _flag_a = 0, _flag_b = 0;
   2616     uint32_t _itail_tgt = 0;
   2617     RECOMP_REGS_LOCALS
   2618     RECOMP_ENTER(0x3C001B3Eu);
   2619 
   2620     goto L_3C001B3E;
   2621 L_3C001B01:
   2622     eax = MEM32(esi + 0x10); /* 0x3C001B01: mov eax, dword ptr [esi + 0x10] */
   2623     PUSH32(esp, eax); /* 0x3C001B04: push eax */
   2624     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001B05: call 0x3c0089de */ /* not lifted */
   2625     RECOMP_FLAGS_IN();
   2626     MEM32(esi + 0x10) = ebx; /* 0x3C001B0A: mov dword ptr [esi + 0x10], ebx */
   2627     eax = MEM32(esi + 0x8); /* 0x3C001B0D: mov eax, dword ptr [esi + 8] */
   2628     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3C001B10: mov cl, byte ptr [eax + 0x15] */
   2629     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2631     esp = esp + 4; /* 0x3C001B13: add esp, 4 */
   2632     _flag_k = FK_ADD;
   2633     /* test LO8(ecx), LO8(ecx) */ /* 0x3C001B16: test cl, cl */
   2634     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2635     _cf = 0;
   2636     _flag_k = FK_NARROW(FK_TEST, 24);
   2637     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C001B25; /* 0x3C001B18: jne 0x3c001b25 */
   2638 L_3C001B1A:
   2639     PUSH32(esp, eax); /* 0x3C001B1A: push eax */
   2640     RECOMP_ICALL(0x3C002060u); /* 0x3C001B1B: call 0x3c002060 */ /* not lifted */
   2641     RECOMP_FLAGS_IN();
   2642     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2643     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2644     esp = esp + 4; /* 0x3C001B20: add esp, 4 */
   2645     _flag_k = FK_ADD;
   2646     goto L_3C001B3C; /* 0x3C001B23: jmp 0x3c001b3c */
   2647 L_3C001B25:
   2648     eax = MEM32(esi + 0x4); /* 0x3C001B25: mov eax, dword ptr [esi + 4] */
   2649     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C001B28: cmp esi, dword ptr [eax + 8] */
   2650     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2651     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2652     _flag_k = FK_CMP;
   2653     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B37; /* 0x3C001B2B: jne 0x3c001b37 */
   2654 L_3C001B2D:
   2655     esi = eax; /* 0x3C001B2D: mov esi, eax */
   2656     eax = MEM32(eax + 0x4); /* 0x3C001B2F: mov eax, dword ptr [eax + 4] */
   2657     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3C001B32: cmp esi, dword ptr [eax + 8] */
   2658     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2659     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2660     _flag_k = FK_CMP;
   2661     RECOMP_BACKEDGE();
   2662     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B2D; /* 0x3C001B35: je 0x3c001b2d */
   2663 L_3C001B37:
   2664     /* cmp MEM32(esi + 0x8), eax */ /* 0x3C001B37: cmp dword ptr [esi + 8], eax */
   2665     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   2666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2667     _flag_k = FK_CMP;
   2668     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B3E; /* 0x3C001B3A: je 0x3c001b3e */
   2669 L_3C001B3C:
   2670     esi = eax; /* 0x3C001B3C: mov esi, eax */
   2671 L_3C001B3E:
   2672     /* cmp esi, MEM32(edi + 0x4) */ /* 0x3C001B3E: cmp esi, dword ptr [edi + 4] */
   2673     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2675     _flag_k = FK_CMP;
   2676     RECOMP_BACKEDGE();
   2677     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B01; /* 0x3C001B41: jne 0x3c001b01 */
   2678 L_3C001B43:
   2679     esi = MEM32(edi + 0x4); /* 0x3C001B43: mov esi, dword ptr [edi + 4] */
   2680     /* cmp MEM32(edi + 0x10), ebx */ /* 0x3C001B46: cmp dword ptr [edi + 0x10], ebx */
   2681     _flag_a = (uint32_t)(MEM32(edi + 0x10)); _flag_b = (uint32_t)(ebx);
   2682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2683     _flag_k = FK_CMP;
   2684     eax = MEM32(esi); /* 0x3C001B49: mov eax, dword ptr [esi] */
   2685     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C001B4B: mov dword ptr [ebp - 4], 0xffffffff */
   2686     MEM32(ebp + (-0x10)) = eax; /* 0x3C001B52: mov dword ptr [ebp - 0x10], eax */
   2687     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B55: je 0x3c001b85 */
   2688 L_3C001B57:
   2689     ecx = eax; /* 0x3C001B57: mov ecx, eax */
   2690     /* cmp eax, ecx */ /* 0x3C001B59: cmp eax, ecx */
   2691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2693     _flag_k = FK_CMP;
   2694     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B5B: jne 0x3c001b85 */
   2695 L_3C001B5D:
   2696     /* cmp esi, esi */ /* 0x3C001B5D: cmp esi, esi */
   2697     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2698     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2699     _flag_k = FK_CMP;
   2700     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B85; /* 0x3C001B5F: jne 0x3c001b85 */
   2701 L_3C001B61:
   2702     eax = MEM32(esi + 0x4); /* 0x3C001B61: mov eax, dword ptr [esi + 4] */
   2703     PUSH32(esp, eax); /* 0x3C001B64: push eax */
   2704     ecx = edi; /* 0x3C001B65: mov ecx, edi */
   2705     RECOMP_ICALL(0x3C002020u); /* 0x3C001B67: call 0x3c002020 */ /* not lifted */
   2706     RECOMP_FLAGS_IN();
   2707     ecx = MEM32(edi + 0x4); /* 0x3C001B6C: mov ecx, dword ptr [edi + 4] */
   2708     edx = MEM32(edi + 0x8); /* 0x3C001B6F: mov edx, dword ptr [edi + 8] */
   2709     MEM32(ecx + 0x4) = edx; /* 0x3C001B72: mov dword ptr [ecx + 4], edx */
   2710     eax = MEM32(edi + 0x4); /* 0x3C001B75: mov eax, dword ptr [edi + 4] */
   2711     MEM32(edi + 0x10) = ebx; /* 0x3C001B78: mov dword ptr [edi + 0x10], ebx */
   2712     MEM32(eax) = eax; /* 0x3C001B7B: mov dword ptr [eax], eax */
   2713     eax = MEM32(edi + 0x4); /* 0x3C001B7D: mov eax, dword ptr [edi + 4] */
   2714     MEM32(eax + 0x8) = eax; /* 0x3C001B80: mov dword ptr [eax + 8], eax */
   2715     goto L_3C001BA8; /* 0x3C001B83: jmp 0x3c001ba8 */
   2716 L_3C001B85:
   2717     /* cmp eax, esi */ /* 0x3C001B85: cmp eax, esi */
   2718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2720     _flag_k = FK_CMP;
   2721     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001BA8; /* 0x3C001B87: je 0x3c001ba8 */
   2722 L_3C001B89:
   2723     ecx = ebp + (-0x10); /* 0x3C001B89: lea ecx, [ebp - 0x10] */
   2724     ebx = eax; /* 0x3C001B8C: mov ebx, eax */
   2725     RECOMP_ICALL(0x3C007A50u); /* 0x3C001B8E: call 0x3c007a50 */ /* not lifted */
   2726     RECOMP_FLAGS_IN();
   2727     PUSH32(esp, ebx); /* 0x3C001B93: push ebx */
   2728     eax = ebp + (-0x14); /* 0x3C001B94: lea eax, [ebp - 0x14] */
   2729     PUSH32(esp, eax); /* 0x3C001B97: push eax */
   2730     ecx = edi; /* 0x3C001B98: mov ecx, edi */
   2731     RECOMP_ICALL(0x3C007320u); /* 0x3C001B9A: call 0x3c007320 */ /* not lifted */
   2732     RECOMP_FLAGS_IN();
   2733     eax = MEM32(ebp + (-0x10)); /* 0x3C001B9F: mov eax, dword ptr [ebp - 0x10] */
   2734     /* cmp eax, esi */ /* 0x3C001BA2: cmp eax, esi */
   2735     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2737     _flag_k = FK_CMP;
   2738     RECOMP_BACKEDGE();
   2739     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001B89; /* 0x3C001BA4: jne 0x3c001b89 */
   2740 L_3C001BA6:
   2741     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2742     ebx = 0; /* 0x3C001BA6: xor ebx, ebx */
   2743     _cf = 0;
   2744     _flag_k = FK_TEST;
   2745 L_3C001BA8:
   2746     ecx = MEM32(edi + 0x4); /* 0x3C001BA8: mov ecx, dword ptr [edi + 4] */
   2747     PUSH32(esp, ecx); /* 0x3C001BAB: push ecx */
   2748     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BAC: call 0x3c0089de */ /* not lifted */
   2749     RECOMP_FLAGS_IN();
   2750     edx = MEM32(edi + 0x8); /* 0x3C001BB1: mov edx, dword ptr [edi + 8] */
   2751     PUSH32(esp, edx); /* 0x3C001BB4: push edx */
   2752     MEM32(edi + 0x4) = ebx; /* 0x3C001BB5: mov dword ptr [edi + 4], ebx */
   2753     MEM32(edi + 0x10) = ebx; /* 0x3C001BB8: mov dword ptr [edi + 0x10], ebx */
   2754     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BBB: call 0x3c0089de */ /* not lifted */
   2755     RECOMP_FLAGS_IN();
   2756     ecx = MEM32(ebp + (-0xC)); /* 0x3C001BC0: mov ecx, dword ptr [ebp - 0xc] */
   2757     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2759     esp = esp + 8; /* 0x3C001BC3: add esp, 8 */
   2760     _flag_k = FK_ADD;
   2761     MEM32(edi + 0x8) = ebx; /* 0x3C001BC6: mov dword ptr [edi + 8], ebx */
   2762     edi = POP32_VAL(esp); /* 0x3C001BC9: pop edi */
   2763     esi = POP32_VAL(esp); /* 0x3C001BCA: pop esi */
   2764     ebx = POP32_VAL(esp); /* 0x3C001BCB: pop ebx */
   2765     MEM32(FS_BASE + (0)) = ecx; /* 0x3C001BCC: mov dword ptr fs:[0], ecx */
   2766     esp = ebp; /* 0x3C001BD3: mov esp, ebp */
   2767     ebp = POP32_VAL(esp); /* 0x3C001BD5: pop ebp */
   2768     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001BD6: ret  */
   2769     RECOMP_REGS_OUT();
   2770 }
   2771 
   2772 void sub_3C001BA8(void) {
   2773     int _fpu_cmp = 0;
   2774     uint32_t _cf = 0;
   2775     int _df = 1;
   2776     uint32_t _flag_k = FK_NONE;
   2777     uint32_t _flag_a = 0, _flag_b = 0;
   2778     uint32_t _itail_tgt = 0;
   2779     RECOMP_REGS_LOCALS
   2780     RECOMP_ENTER(0x3C001BA8u);
   2781 
   2782 L_3C001BA8:
   2783     ecx = MEM32(edi + 0x4); /* 0x3C001BA8: mov ecx, dword ptr [edi + 4] */
   2784     PUSH32(esp, ecx); /* 0x3C001BAB: push ecx */
   2785     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BAC: call 0x3c0089de */ /* not lifted */
   2786     RECOMP_FLAGS_IN();
   2787     edx = MEM32(edi + 0x8); /* 0x3C001BB1: mov edx, dword ptr [edi + 8] */
   2788     PUSH32(esp, edx); /* 0x3C001BB4: push edx */
   2789     MEM32(edi + 0x4) = ebx; /* 0x3C001BB5: mov dword ptr [edi + 4], ebx */
   2790     MEM32(edi + 0x10) = ebx; /* 0x3C001BB8: mov dword ptr [edi + 0x10], ebx */
   2791     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001BBB: call 0x3c0089de */ /* not lifted */
   2792     RECOMP_FLAGS_IN();
   2793     ecx = MEM32(ebp + (-0xC)); /* 0x3C001BC0: mov ecx, dword ptr [ebp - 0xc] */
   2794     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2796     esp = esp + 8; /* 0x3C001BC3: add esp, 8 */
   2797     _flag_k = FK_ADD;
   2798     MEM32(edi + 0x8) = ebx; /* 0x3C001BC6: mov dword ptr [edi + 8], ebx */
   2799     edi = POP32_VAL(esp); /* 0x3C001BC9: pop edi */
   2800     esi = POP32_VAL(esp); /* 0x3C001BCA: pop esi */
   2801     ebx = POP32_VAL(esp); /* 0x3C001BCB: pop ebx */
   2802     MEM32(FS_BASE + (0)) = ecx; /* 0x3C001BCC: mov dword ptr fs:[0], ecx */
   2803     esp = ebp; /* 0x3C001BD3: mov esp, ebp */
   2804     ebp = POP32_VAL(esp); /* 0x3C001BD5: pop ebp */
   2805     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001BD6: ret  */
   2806     RECOMP_REGS_OUT();
   2807 }
   2808 
   2809 void sub_3C001BE0(void) {
   2810     int _fpu_cmp = 0;
   2811     uint32_t _cf = 0;
   2812     int _df = 1;
   2813     uint32_t _flag_k = FK_NONE;
   2814     uint32_t _flag_a = 0, _flag_b = 0;
   2815     uint32_t _itail_tgt = 0;
   2816     RECOMP_REGS_LOCALS
   2817     RECOMP_ENTER(0x3C001BE0u);
   2818 
   2819 L_3C001BE0:
   2820     PUSH32(esp, ebp); /* 0x3C001BE0: push ebp */
   2821     ebp = esp; /* 0x3C001BE1: mov ebp, esp */
   2822     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2824     esp = esp - 8; /* 0x3C001BE3: sub esp, 8 */
   2825     _flag_k = FK_CMP;
   2826     PUSH32(esp, ebx); /* 0x3C001BE6: push ebx */
   2827     PUSH32(esp, esi); /* 0x3C001BE7: push esi */
   2828     esi = ecx; /* 0x3C001BE8: mov esi, ecx */
   2829     ecx = MEM32(esi + 0x10); /* 0x3C001BEA: mov ecx, dword ptr [esi + 0x10] */
   2830     /* test ecx, ecx */ /* 0x3C001BED: test ecx, ecx */
   2831     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2832     _cf = 0;
   2833     _flag_k = FK_TEST;
   2834     PUSH32(esp, edi); /* 0x3C001BEF: push edi */
   2835     edi = MEM32(esi + 0x4); /* 0x3C001BF0: mov edi, dword ptr [esi + 4] */
   2836     eax = MEM32(edi); /* 0x3C001BF3: mov eax, dword ptr [edi] */
   2837     MEM32(ebp + (-0x4)) = eax; /* 0x3C001BF5: mov dword ptr [ebp - 4], eax */
   2838     if (TEST_Z(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001BF8: je 0x3c001c55 */
   2839 L_3C001BFA:
   2840     ecx = eax; /* 0x3C001BFA: mov ecx, eax */
   2841     /* cmp eax, ecx */ /* 0x3C001BFC: cmp eax, ecx */
   2842     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2844     _flag_k = FK_CMP;
   2845     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001BFE: jne 0x3c001c55 */
   2846 L_3C001C00:
   2847     /* cmp edi, edi */ /* 0x3C001C00: cmp edi, edi */
   2848     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2850     _flag_k = FK_CMP;
   2851     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C55; /* 0x3C001C02: jne 0x3c001c55 */
   2852 L_3C001C04:
   2853     ebx = MEM32(edi + 0x4); /* 0x3C001C04: mov ebx, dword ptr [edi + 4] */
   2854     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C001C07: cmp ebx, dword ptr [esi + 8] */
   2855     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2857     _flag_k = FK_CMP;
   2858     edi = ebx; /* 0x3C001C0A: mov edi, ebx */
   2859     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001C2D; /* 0x3C001C0C: je 0x3c001c2d */
   2860 L_3C001C0E:
   2861     eax = MEM32(edi + 0x8); /* 0x3C001C0E: mov eax, dword ptr [edi + 8] */
   2862     PUSH32(esp, eax); /* 0x3C001C11: push eax */
   2863     ecx = esi; /* 0x3C001C12: mov ecx, esi */
   2864     RECOMP_ICALL(0x3C002020u); /* 0x3C001C14: call 0x3c002020 */ /* not lifted */
   2865     RECOMP_FLAGS_IN();
   2866     edi = MEM32(edi); /* 0x3C001C19: mov edi, dword ptr [edi] */
   2867     PUSH32(esp, ebx); /* 0x3C001C1B: push ebx */
   2868     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C1C: call 0x3c0089de */ /* not lifted */
   2869     RECOMP_FLAGS_IN();
   2870     eax = MEM32(esi + 0x8); /* 0x3C001C21: mov eax, dword ptr [esi + 8] */
   2871     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2873     esp = esp + 4; /* 0x3C001C24: add esp, 4 */
   2874     _flag_k = FK_ADD;
   2875     /* cmp edi, eax */ /* 0x3C001C27: cmp edi, eax */
   2876     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2877     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2878     _flag_k = FK_CMP;
   2879     ebx = edi; /* 0x3C001C29: mov ebx, edi */
   2880     RECOMP_BACKEDGE();
   2881     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C0E; /* 0x3C001C2B: jne 0x3c001c0e */
   2882 L_3C001C2D:
   2883     ecx = MEM32(esi + 0x4); /* 0x3C001C2D: mov ecx, dword ptr [esi + 4] */
   2884     edx = MEM32(esi + 0x8); /* 0x3C001C30: mov edx, dword ptr [esi + 8] */
   2885     MEM32(ecx + 0x4) = edx; /* 0x3C001C33: mov dword ptr [ecx + 4], edx */
   2886     eax = MEM32(esi + 0x4); /* 0x3C001C36: mov eax, dword ptr [esi + 4] */
   2887     MEM32(esi + 0x10) = 0; /* 0x3C001C39: mov dword ptr [esi + 0x10], 0 */
   2888     MEM32(eax) = eax; /* 0x3C001C40: mov dword ptr [eax], eax */
   2889     eax = MEM32(esi + 0x4); /* 0x3C001C42: mov eax, dword ptr [esi + 4] */
   2890     MEM32(eax + 0x8) = eax; /* 0x3C001C45: mov dword ptr [eax + 8], eax */
   2891     eax = ebp + (-0x8); /* 0x3C001C48: lea eax, [ebp - 8] */
   2892     PUSH32(esp, eax); /* 0x3C001C4B: push eax */
   2893     ecx = esi; /* 0x3C001C4C: mov ecx, esi */
   2894     RECOMP_ICALL(0x3C005110u); /* 0x3C001C4E: call 0x3c005110 */ /* not lifted */
   2895     RECOMP_FLAGS_IN();
   2896     goto L_3C001C76; /* 0x3C001C53: jmp 0x3c001c76 */
   2897 L_3C001C55:
   2898     /* cmp eax, edi */ /* 0x3C001C55: cmp eax, edi */
   2899     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2901     _flag_k = FK_CMP;
   2902     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001C76; /* 0x3C001C57: je 0x3c001c76 */
   2903 L_3C001C59:
   2904     ecx = ebp + (-0x4); /* 0x3C001C59: lea ecx, [ebp - 4] */
   2905     ebx = eax; /* 0x3C001C5C: mov ebx, eax */
   2906     RECOMP_ICALL(0x3C007A50u); /* 0x3C001C5E: call 0x3c007a50 */ /* not lifted */
   2907     RECOMP_FLAGS_IN();
   2908     PUSH32(esp, ebx); /* 0x3C001C63: push ebx */
   2909     ecx = ebp + (-0x8); /* 0x3C001C64: lea ecx, [ebp - 8] */
   2910     PUSH32(esp, ecx); /* 0x3C001C67: push ecx */
   2911     ecx = esi; /* 0x3C001C68: mov ecx, esi */
   2912     RECOMP_ICALL(0x3C007320u); /* 0x3C001C6A: call 0x3c007320 */ /* not lifted */
   2913     RECOMP_FLAGS_IN();
   2914     eax = MEM32(ebp + (-0x4)); /* 0x3C001C6F: mov eax, dword ptr [ebp - 4] */
   2915     /* cmp eax, edi */ /* 0x3C001C72: cmp eax, edi */
   2916     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2918     _flag_k = FK_CMP;
   2919     RECOMP_BACKEDGE();
   2920     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001C59; /* 0x3C001C74: jne 0x3c001c59 */
   2921 L_3C001C76:
   2922     edx = MEM32(esi + 0x4); /* 0x3C001C76: mov edx, dword ptr [esi + 4] */
   2923     PUSH32(esp, edx); /* 0x3C001C79: push edx */
   2924     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C7A: call 0x3c0089de */ /* not lifted */
   2925     RECOMP_FLAGS_IN();
   2926     eax = MEM32(esi + 0x8); /* 0x3C001C7F: mov eax, dword ptr [esi + 8] */
   2927     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2928     edi = 0; /* 0x3C001C82: xor edi, edi */
   2929     _cf = 0;
   2930     _flag_k = FK_TEST;
   2931     PUSH32(esp, eax); /* 0x3C001C84: push eax */
   2932     MEM32(esi + 0x4) = edi; /* 0x3C001C85: mov dword ptr [esi + 4], edi */
   2933     MEM32(esi + 0x10) = edi; /* 0x3C001C88: mov dword ptr [esi + 0x10], edi */
   2934     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C8B: call 0x3c0089de */ /* not lifted */
   2935     RECOMP_FLAGS_IN();
   2936     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2937     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2938     esp = esp + 8; /* 0x3C001C90: add esp, 8 */
   2939     _flag_k = FK_ADD;
   2940     MEM32(esi + 0x8) = edi; /* 0x3C001C93: mov dword ptr [esi + 8], edi */
   2941     edi = POP32_VAL(esp); /* 0x3C001C96: pop edi */
   2942     esi = POP32_VAL(esp); /* 0x3C001C97: pop esi */
   2943     ebx = POP32_VAL(esp); /* 0x3C001C98: pop ebx */
   2944     esp = ebp; /* 0x3C001C99: mov esp, ebp */
   2945     ebp = POP32_VAL(esp); /* 0x3C001C9B: pop ebp */
   2946     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001C9C: ret  */
   2947     RECOMP_REGS_OUT();
   2948 }
   2949 
   2950 void sub_3C001C76(void) {
   2951     int _fpu_cmp = 0;
   2952     uint32_t _cf = 0;
   2953     int _df = 1;
   2954     uint32_t _flag_k = FK_NONE;
   2955     uint32_t _flag_a = 0, _flag_b = 0;
   2956     uint32_t _itail_tgt = 0;
   2957     RECOMP_REGS_LOCALS
   2958     RECOMP_ENTER(0x3C001C76u);
   2959 
   2960 L_3C001C76:
   2961     edx = MEM32(esi + 0x4); /* 0x3C001C76: mov edx, dword ptr [esi + 4] */
   2962     PUSH32(esp, edx); /* 0x3C001C79: push edx */
   2963     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C7A: call 0x3c0089de */ /* not lifted */
   2964     RECOMP_FLAGS_IN();
   2965     eax = MEM32(esi + 0x8); /* 0x3C001C7F: mov eax, dword ptr [esi + 8] */
   2966     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2967     edi = 0; /* 0x3C001C82: xor edi, edi */
   2968     _cf = 0;
   2969     _flag_k = FK_TEST;
   2970     PUSH32(esp, eax); /* 0x3C001C84: push eax */
   2971     MEM32(esi + 0x4) = edi; /* 0x3C001C85: mov dword ptr [esi + 4], edi */
   2972     MEM32(esi + 0x10) = edi; /* 0x3C001C88: mov dword ptr [esi + 0x10], edi */
   2973     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001C8B: call 0x3c0089de */ /* not lifted */
   2974     RECOMP_FLAGS_IN();
   2975     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2976     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2977     esp = esp + 8; /* 0x3C001C90: add esp, 8 */
   2978     _flag_k = FK_ADD;
   2979     MEM32(esi + 0x8) = edi; /* 0x3C001C93: mov dword ptr [esi + 8], edi */
   2980     edi = POP32_VAL(esp); /* 0x3C001C96: pop edi */
   2981     esi = POP32_VAL(esp); /* 0x3C001C97: pop esi */
   2982     ebx = POP32_VAL(esp); /* 0x3C001C98: pop ebx */
   2983     esp = ebp; /* 0x3C001C99: mov esp, ebp */
   2984     ebp = POP32_VAL(esp); /* 0x3C001C9B: pop ebp */
   2985     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001C9C: ret  */
   2986     RECOMP_REGS_OUT();
   2987 }
   2988 
   2989 void sub_3C001CA0(void) {
   2990     int _fpu_cmp = 0;
   2991     uint32_t _cf = 0;
   2992     int _df = 1;
   2993     uint32_t _flag_k = FK_NONE;
   2994     uint32_t _flag_a = 0, _flag_b = 0;
   2995     uint32_t _itail_tgt = 0;
   2996     RECOMP_REGS_LOCALS
   2997     RECOMP_ENTER(0x3C001CA0u);
   2998 
   2999 L_3C001CA0:
   3000     PUSH32(esp, ebp); /* 0x3C001CA0: push ebp */
   3001     ebp = esp; /* 0x3C001CA1: mov ebp, esp */
   3002     eax = MEM32(ebp + 0xC); /* 0x3C001CA3: mov eax, dword ptr [ebp + 0xc] */
   3003     edx = MEM32(ebp + 0x8); /* 0x3C001CA6: mov edx, dword ptr [ebp + 8] */
   3004     PUSH32(esp, ebx); /* 0x3C001CA9: push ebx */
   3005     PUSH32(esp, esi); /* 0x3C001CAA: push esi */
   3006     esi = ecx; /* 0x3C001CAB: mov esi, ecx */
   3007     SET_LO8(ecx, MEM8(eax)); /* 0x3C001CAD: mov cl, byte ptr [eax] */
   3008     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3C001CAF: mov byte ptr [esi], cl */
   3009     SET_LO8(eax, MEM8(edx)); /* 0x3C001CB1: mov al, byte ptr [edx] */
   3010     PUSH32(esp, edi); /* 0x3C001CB3: push edi */
   3011     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3012     ebx = 0; /* 0x3C001CB4: xor ebx, ebx */
   3013     _cf = 0;
   3014     _flag_k = FK_TEST;
   3015     PUSH32(esp, 0x18u); /* 0x3C001CB6: push 0x18 */
   3016     MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x3C001CB8: mov byte ptr [esi + 1], al */
   3017     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3C001CBB: mov byte ptr [esi + 0xc], bl */
   3018     RECOMP_ICALL(0x3C008B40u); /* 0x3C001CBE: call 0x3c008b40 */ /* not lifted */
   3019     RECOMP_FLAGS_IN();
   3020     MEM32(eax + 0x4) = ebx; /* 0x3C001CC3: mov dword ptr [eax + 4], ebx */
   3021     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3C001CC6: mov byte ptr [eax + 0x15], bl */
   3022     SET_LO8(ecx, 1); /* 0x3C001CC9: mov cl, 1 */
   3023     MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3C001CCB: mov byte ptr [eax + 0x14], cl */
   3024     MEM32(esi + 0x8) = eax; /* 0x3C001CCE: mov dword ptr [esi + 8], eax */
   3025     MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x3C001CD1: mov byte ptr [eax + 0x15], cl */
   3026     ecx = MEM32(esi + 0x8); /* 0x3C001CD4: mov ecx, dword ptr [esi + 8] */
   3027     MEM32(ecx) = ebx; /* 0x3C001CD7: mov dword ptr [ecx], ebx */
   3028     edx = MEM32(esi + 0x8); /* 0x3C001CD9: mov edx, dword ptr [esi + 8] */
   3029     MEM32(edx + 0x8) = ebx; /* 0x3C001CDC: mov dword ptr [edx + 8], ebx */
   3030     edi = MEM32(esi + 0x8); /* 0x3C001CDF: mov edi, dword ptr [esi + 8] */
   3031     PUSH32(esp, 0x18u); /* 0x3C001CE2: push 0x18 */
   3032     RECOMP_ICALL(0x3C008B40u); /* 0x3C001CE4: call 0x3c008b40 */ /* not lifted */
   3033     RECOMP_FLAGS_IN();
   3034     MEM32(eax + 0x4) = edi; /* 0x3C001CE9: mov dword ptr [eax + 4], edi */
   3035     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3C001CEC: mov byte ptr [eax + 0x14], bl */
   3036     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3C001CEF: mov byte ptr [eax + 0x15], bl */
   3037     MEM32(esi + 0x4) = eax; /* 0x3C001CF2: mov dword ptr [esi + 4], eax */
   3038     MEM32(eax) = eax; /* 0x3C001CF5: mov dword ptr [eax], eax */
   3039     eax = MEM32(esi + 0x4); /* 0x3C001CF7: mov eax, dword ptr [esi + 4] */
   3040     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3041     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3042     esp = esp + 8; /* 0x3C001CFA: add esp, 8 */
   3043     _flag_k = FK_ADD;
   3044     MEM32(eax + 0x8) = eax; /* 0x3C001CFD: mov dword ptr [eax + 8], eax */
   3045     edi = POP32_VAL(esp); /* 0x3C001D00: pop edi */
   3046     MEM32(esi + 0x10) = ebx; /* 0x3C001D01: mov dword ptr [esi + 0x10], ebx */
   3047     eax = esi; /* 0x3C001D04: mov eax, esi */
   3048     esi = POP32_VAL(esp); /* 0x3C001D06: pop esi */
   3049     ebx = POP32_VAL(esp); /* 0x3C001D07: pop ebx */
   3050     ebp = POP32_VAL(esp); /* 0x3C001D08: pop ebp */
   3051     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C001D09: ret 8 */
   3052     RECOMP_REGS_OUT();
   3053 }
   3054 
   3055 void sub_3C001D10(void) {
   3056     int _fpu_cmp = 0;
   3057     uint32_t _cf = 0;
   3058     int _df = 1;
   3059     uint32_t _flag_k = FK_NONE;
   3060     uint32_t _flag_a = 0, _flag_b = 0;
   3061     uint32_t _itail_tgt = 0;
   3062     RECOMP_REGS_LOCALS
   3063     RECOMP_ENTER(0x3C001D10u);
   3064 
   3065 L_3C001D10:
   3066     PUSH32(esp, ebp); /* 0x3C001D10: push ebp */
   3067     ebp = esp; /* 0x3C001D11: mov ebp, esp */
   3068     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3069     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3070     esp = esp - 8; /* 0x3C001D13: sub esp, 8 */
   3071     _flag_k = FK_CMP;
   3072     PUSH32(esp, ebx); /* 0x3C001D16: push ebx */
   3073     PUSH32(esp, esi); /* 0x3C001D17: push esi */
   3074     esi = ecx; /* 0x3C001D18: mov esi, ecx */
   3075     ecx = MEM32(esi + 0x10); /* 0x3C001D1A: mov ecx, dword ptr [esi + 0x10] */
   3076     /* test ecx, ecx */ /* 0x3C001D1D: test ecx, ecx */
   3077     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3078     _cf = 0;
   3079     _flag_k = FK_TEST;
   3080     PUSH32(esp, edi); /* 0x3C001D1F: push edi */
   3081     edi = MEM32(esi + 0x4); /* 0x3C001D20: mov edi, dword ptr [esi + 4] */
   3082     eax = MEM32(edi); /* 0x3C001D23: mov eax, dword ptr [edi] */
   3083     MEM32(ebp + (-0x4)) = eax; /* 0x3C001D25: mov dword ptr [ebp - 4], eax */
   3084     if (TEST_Z(_flag_a, _flag_b)) goto L_3C001D7A; /* 0x3C001D28: je 0x3c001d7a */
   3085 L_3C001D2A:
   3086     ecx = eax; /* 0x3C001D2A: mov ecx, eax */
   3087     /* cmp eax, ecx */ /* 0x3C001D2C: cmp eax, ecx */
   3088     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3089     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3090     _flag_k = FK_CMP;
   3091     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001D7A; /* 0x3C001D2E: jne 0x3c001d7a */
   3092 L_3C001D30:
   3093     /* cmp edi, edi */ /* 0x3C001D30: cmp edi, edi */
   3094     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3096     _flag_k = FK_CMP;
   3097     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001D7A; /* 0x3C001D32: jne 0x3c001d7a */
   3098 L_3C001D34:
   3099     ebx = MEM32(edi + 0x4); /* 0x3C001D34: mov ebx, dword ptr [edi + 4] */
   3100     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3C001D37: cmp ebx, dword ptr [esi + 8] */
   3101     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3103     _flag_k = FK_CMP;
   3104     edi = ebx; /* 0x3C001D3A: mov edi, ebx */
   3105     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001D5D; /* 0x3C001D3C: je 0x3c001d5d */
   3106 L_3C001D3E:
   3107     eax = MEM32(edi + 0x8); /* 0x3C001D3E: mov eax, dword ptr [edi + 8] */
   3108     PUSH32(esp, eax); /* 0x3C001D41: push eax */
   3109     ecx = esi; /* 0x3C001D42: mov ecx, esi */
   3110     RECOMP_ICALL(0x3C002020u); /* 0x3C001D44: call 0x3c002020 */ /* not lifted */
   3111     RECOMP_FLAGS_IN();
   3112     edi = MEM32(edi); /* 0x3C001D49: mov edi, dword ptr [edi] */
   3113     PUSH32(esp, ebx); /* 0x3C001D4B: push ebx */
   3114     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001D4C: call 0x3c0089de */ /* not lifted */
   3115     RECOMP_FLAGS_IN();
   3116     eax = MEM32(esi + 0x8); /* 0x3C001D51: mov eax, dword ptr [esi + 8] */
   3117     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3118     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3119     esp = esp + 4; /* 0x3C001D54: add esp, 4 */
   3120     _flag_k = FK_ADD;
   3121     /* cmp edi, eax */ /* 0x3C001D57: cmp edi, eax */
   3122     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3124     _flag_k = FK_CMP;
   3125     ebx = edi; /* 0x3C001D59: mov ebx, edi */
   3126     RECOMP_BACKEDGE();
   3127     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001D3E; /* 0x3C001D5B: jne 0x3c001d3e */
   3128 L_3C001D5D:
   3129     ecx = MEM32(esi + 0x4); /* 0x3C001D5D: mov ecx, dword ptr [esi + 4] */
   3130     edx = MEM32(esi + 0x8); /* 0x3C001D60: mov edx, dword ptr [esi + 8] */
   3131     MEM32(ecx + 0x4) = edx; /* 0x3C001D63: mov dword ptr [ecx + 4], edx */
   3132     eax = MEM32(esi + 0x4); /* 0x3C001D66: mov eax, dword ptr [esi + 4] */
   3133     MEM32(esi + 0x10) = 0; /* 0x3C001D69: mov dword ptr [esi + 0x10], 0 */
   3134     MEM32(eax) = eax; /* 0x3C001D70: mov dword ptr [eax], eax */
   3135     eax = MEM32(esi + 0x4); /* 0x3C001D72: mov eax, dword ptr [esi + 4] */
   3136     MEM32(eax + 0x8) = eax; /* 0x3C001D75: mov dword ptr [eax + 8], eax */
   3137     goto L_3C001D9B; /* 0x3C001D78: jmp 0x3c001d9b */
   3138 L_3C001D7A:
   3139     /* cmp eax, edi */ /* 0x3C001D7A: cmp eax, edi */
   3140     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3142     _flag_k = FK_CMP;
   3143     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001D9B; /* 0x3C001D7C: je 0x3c001d9b */
   3144 L_3C001D7E:
   3145     ecx = ebp + (-0x4); /* 0x3C001D7E: lea ecx, [ebp - 4] */
   3146     ebx = eax; /* 0x3C001D81: mov ebx, eax */
   3147     RECOMP_ICALL(0x3C007A50u); /* 0x3C001D83: call 0x3c007a50 */ /* not lifted */
   3148     RECOMP_FLAGS_IN();
   3149     PUSH32(esp, ebx); /* 0x3C001D88: push ebx */
   3150     eax = ebp + (-0x8); /* 0x3C001D89: lea eax, [ebp - 8] */
   3151     PUSH32(esp, eax); /* 0x3C001D8C: push eax */
   3152     ecx = esi; /* 0x3C001D8D: mov ecx, esi */
   3153     RECOMP_ICALL(0x3C007320u); /* 0x3C001D8F: call 0x3c007320 */ /* not lifted */
   3154     RECOMP_FLAGS_IN();
   3155     eax = MEM32(ebp + (-0x4)); /* 0x3C001D94: mov eax, dword ptr [ebp - 4] */
   3156     /* cmp eax, edi */ /* 0x3C001D97: cmp eax, edi */
   3157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3159     _flag_k = FK_CMP;
   3160     RECOMP_BACKEDGE();
   3161     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001D7E; /* 0x3C001D99: jne 0x3c001d7e */
   3162 L_3C001D9B:
   3163     ecx = MEM32(esi + 0x4); /* 0x3C001D9B: mov ecx, dword ptr [esi + 4] */
   3164     PUSH32(esp, ecx); /* 0x3C001D9E: push ecx */
   3165     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001D9F: call 0x3c0089de */ /* not lifted */
   3166     RECOMP_FLAGS_IN();
   3167     edx = MEM32(esi + 0x8); /* 0x3C001DA4: mov edx, dword ptr [esi + 8] */
   3168     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3169     edi = 0; /* 0x3C001DA7: xor edi, edi */
   3170     _cf = 0;
   3171     _flag_k = FK_TEST;
   3172     PUSH32(esp, edx); /* 0x3C001DA9: push edx */
   3173     MEM32(esi + 0x4) = edi; /* 0x3C001DAA: mov dword ptr [esi + 4], edi */
   3174     MEM32(esi + 0x10) = edi; /* 0x3C001DAD: mov dword ptr [esi + 0x10], edi */
   3175     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001DB0: call 0x3c0089de */ /* not lifted */
   3176     RECOMP_FLAGS_IN();
   3177     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3178     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3179     esp = esp + 8; /* 0x3C001DB5: add esp, 8 */
   3180     _flag_k = FK_ADD;
   3181     MEM32(esi + 0x8) = edi; /* 0x3C001DB8: mov dword ptr [esi + 8], edi */
   3182     edi = POP32_VAL(esp); /* 0x3C001DBB: pop edi */
   3183     esi = POP32_VAL(esp); /* 0x3C001DBC: pop esi */
   3184     ebx = POP32_VAL(esp); /* 0x3C001DBD: pop ebx */
   3185     esp = ebp; /* 0x3C001DBE: mov esp, ebp */
   3186     ebp = POP32_VAL(esp); /* 0x3C001DC0: pop ebp */
   3187     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C001DC1: ret  */
   3188     RECOMP_REGS_OUT();
   3189 }
   3190 
   3191 void sub_3C001DD0(void) {
   3192     int _fpu_cmp = 0;
   3193     uint32_t _cf = 0;
   3194     int _df = 1;
   3195     uint32_t _flag_k = FK_NONE;
   3196     uint32_t _flag_a = 0, _flag_b = 0;
   3197     uint32_t _itail_tgt = 0;
   3198     RECOMP_REGS_LOCALS
   3199     RECOMP_ENTER(0x3C001DD0u);
   3200 
   3201 L_3C001DD0:
   3202     PUSH32(esp, ebp); /* 0x3C001DD0: push ebp */
   3203     ebp = esp; /* 0x3C001DD1: mov ebp, esp */
   3204     eax = ecx; /* 0x3C001DD3: mov eax, ecx */
   3205     ecx = MEM32(ebp + 0x8); /* 0x3C001DD5: mov ecx, dword ptr [ebp + 8] */
   3206     edx = MEM32(ecx); /* 0x3C001DD8: mov edx, dword ptr [ecx] */
   3207     ecx = MEM32(ebp + 0xC); /* 0x3C001DDA: mov ecx, dword ptr [ebp + 0xc] */
   3208     MEM32(eax) = edx; /* 0x3C001DDD: mov dword ptr [eax], edx */
   3209     edx = MEM32(ecx); /* 0x3C001DDF: mov edx, dword ptr [ecx] */
   3210     MEM32(eax + 0x4) = edx; /* 0x3C001DE1: mov dword ptr [eax + 4], edx */
   3211     ebp = POP32_VAL(esp); /* 0x3C001DE4: pop ebp */
   3212     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C001DE5: ret 8 */
   3213     RECOMP_REGS_OUT();
   3214 }
   3215 
   3216 void sub_3C001DF0(void) {
   3217     int _fpu_cmp = 0;
   3218     uint32_t _cf = 0;
   3219     int _df = 1;
   3220     uint32_t _flag_k = FK_NONE;
   3221     uint32_t _flag_a = 0, _flag_b = 0;
   3222     uint32_t _itail_tgt = 0;
   3223     RECOMP_REGS_LOCALS
   3224     RECOMP_ENTER(0x3C001DF0u);
   3225 
   3226 L_3C001DF0:
   3227     PUSH32(esp, ebp); /* 0x3C001DF0: push ebp */
   3228     ebp = esp; /* 0x3C001DF1: mov ebp, esp */
   3229     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3231     esp = esp - 0xCu; /* 0x3C001DF3: sub esp, 0xc */
   3232     _flag_k = FK_CMP;
   3233     PUSH32(esp, ebx); /* 0x3C001DF6: push ebx */
   3234     PUSH32(esp, esi); /* 0x3C001DF7: push esi */
   3235     esi = ecx; /* 0x3C001DF8: mov esi, ecx */
   3236     ebx = MEM32(esi + 0x4); /* 0x3C001DFA: mov ebx, dword ptr [esi + 4] */
   3237     PUSH32(esp, edi); /* 0x3C001DFD: push edi */
   3238     edi = MEM32(ebp + 0x8); /* 0x3C001DFE: mov edi, dword ptr [ebp + 8] */
   3239     ecx = edi; /* 0x3C001E01: mov ecx, edi */
   3240     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   3241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3242     ecx = ecx - ebx; /* 0x3C001E03: sub ecx, ebx */
   3243     _flag_k = FK_CMP;
   3244     eax = 0x2AAAAAABu; /* 0x3C001E05: mov eax, 0x2aaaaaab */
   3245     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3C001E0A: imul ecx */
   3246       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3247       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3248     ecx = MEM32(esi + 0x8); /* 0x3C001E0C: mov ecx, dword ptr [esi + 8] */
   3249     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C001E0F: sar edx, 1 */
   3250     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3251     edx = (uint32_t)((int32_t)edx >> 1u);
   3252     eax = edx; /* 0x3C001E11: mov eax, edx */
   3253     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3C001E13: shr eax, 0x1f */
   3254     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3255     eax = eax >> 31u; /* 0x3C001E13: shr eax, 0x1f */
   3256     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3257     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3258     edx = edx + eax; /* 0x3C001E16: add edx, eax */
   3259     _flag_k = FK_ADD;
   3260     MEM32(ebp + (-0xC)) = edx; /* 0x3C001E18: mov dword ptr [ebp - 0xc], edx */
   3261     edx = MEM32(esi + 0xC); /* 0x3C001E1B: mov edx, dword ptr [esi + 0xc] */
   3262     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3263     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3264     edx = edx - ecx; /* 0x3C001E1E: sub edx, ecx */
   3265     _flag_k = FK_CMP;
   3266     eax = 0x2AAAAAABu; /* 0x3C001E20: mov eax, 0x2aaaaaab */
   3267     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3C001E25: imul edx */
   3268       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3269       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3270     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C001E27: sar edx, 1 */
   3271     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3272     edx = (uint32_t)((int32_t)edx >> 1u);
   3273     eax = edx; /* 0x3C001E29: mov eax, edx */
   3274     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3C001E2B: shr eax, 0x1f */
   3275     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3276     eax = eax >> 31u; /* 0x3C001E2B: shr eax, 0x1f */
   3277     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3278     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3279     edx = edx + eax; /* 0x3C001E2E: add edx, eax */
   3280     _flag_k = FK_ADD;
   3281     /* cmp edx, 1 */ /* 0x3C001E30: cmp edx, 1 */
   3282     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3284     _flag_k = FK_CMP;
   3285     if (CMP_AE(_flag_a, _flag_b)) goto L_3C001F27; /* 0x3C001E33: jae 0x3c001f27 */
   3286 L_3C001E39:
   3287     /* test ebx, ebx */ /* 0x3C001E39: test ebx, ebx */
   3288     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3289     _cf = 0;
   3290     _flag_k = FK_TEST;
   3291     if (TEST_Z(_flag_a, _flag_b)) goto L_3C001E59; /* 0x3C001E3B: je 0x3c001e59 */
   3292 L_3C001E3D:
   3293     edx = ecx; /* 0x3C001E3D: mov edx, ecx */
   3294     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   3295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3296     edx = edx - ebx; /* 0x3C001E3F: sub edx, ebx */
   3297     _flag_k = FK_CMP;
   3298     eax = 0x2AAAAAABu; /* 0x3C001E41: mov eax, 0x2aaaaaab */
   3299     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3C001E46: imul edx */
   3300       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3301       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3302     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C001E48: sar edx, 1 */
   3303     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3304     edx = (uint32_t)((int32_t)edx >> 1u);
   3305     eax = edx; /* 0x3C001E4A: mov eax, edx */
   3306     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3C001E4C: shr eax, 0x1f */
   3307     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3308     eax = eax >> 31u; /* 0x3C001E4C: shr eax, 0x1f */
   3309     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3310     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3311     edx = edx + eax; /* 0x3C001E4F: add edx, eax */
   3312     _flag_k = FK_ADD;
   3313     /* cmp edx, 1 */ /* 0x3C001E51: cmp edx, 1 */
   3314     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3316     _flag_k = FK_CMP;
   3317     MEM32(ebp + 0x8) = edx; /* 0x3C001E54: mov dword ptr [ebp + 8], edx */
   3318     if (CMP_A(_flag_a, _flag_b)) goto L_3C001E60; /* 0x3C001E57: ja 0x3c001e60 */
   3319 L_3C001E59:
   3320     MEM32(ebp + 0x8) = 1; /* 0x3C001E59: mov dword ptr [ebp + 8], 1 */
   3321 L_3C001E60:
   3322     /* test ebx, ebx */ /* 0x3C001E60: test ebx, ebx */
   3323     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3324     _cf = 0;
   3325     _flag_k = FK_TEST;
   3326     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C001E68; /* 0x3C001E62: jne 0x3c001e68 */
   3327 L_3C001E64:
   3328     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3329     edx = 0; /* 0x3C001E64: xor edx, edx */
   3330     _cf = 0;
   3331     _flag_k = FK_TEST;
   3332     goto L_3C001E7A; /* 0x3C001E66: jmp 0x3c001e7a */
   3333 L_3C001E68:
   3334     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   3335     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3336     ecx = ecx - ebx; /* 0x3C001E68: sub ecx, ebx */
   3337     _flag_k = FK_CMP;
   3338     eax = 0x2AAAAAABu; /* 0x3C001E6A: mov eax, 0x2aaaaaab */
   3339     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3C001E6F: imul ecx */
   3340       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3341       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3342     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C001E71: sar edx, 1 */
   3343     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3344     edx = (uint32_t)((int32_t)edx >> 1u);
   3345     ecx = edx; /* 0x3C001E73: mov ecx, edx */
   3346     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3C001E75: shr ecx, 0x1f */
   3347     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3348     ecx = ecx >> 31u; /* 0x3C001E75: shr ecx, 0x1f */
   3349     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3350     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3351     edx = edx + ecx; /* 0x3C001E78: add edx, ecx */
   3352     _flag_k = FK_ADD;
   3353 L_3C001E7A:
   3354     eax = MEM32(ebp + 0x8); /* 0x3C001E7A: mov eax, dword ptr [ebp + 8] */
   3355     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3356     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3357     eax = eax + edx; /* 0x3C001E7D: add eax, edx */
   3358     _flag_k = FK_ADD;
   3359     /* test eax, eax */ /* 0x3C001E7F: test eax, eax */
   3360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3361     _cf = 0;
   3362     _flag_k = FK_TEST;
   3363     MEM32(ebp + (-0x4)) = eax; /* 0x3C001E81: mov dword ptr [ebp - 4], eax */
   3364     if (TEST_NS(_flag_a, _flag_b)) goto L_3C001E88; /* 0x3C001E84: jge 0x3c001e88 */
   3365 L_3C001E86:
   3366     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3367     eax = 0; /* 0x3C001E86: xor eax, eax */
   3368     _cf = 0;
   3369     _flag_k = FK_TEST;
   3370 L_3C001E88:
   3371     ecx = eax + eax * 2; /* 0x3C001E88: lea ecx, [eax + eax*2] */
   3372     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3C001E8B: shl ecx, 2 */
   3373     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3374     ecx = ecx << 2u; /* 0x3C001E8B: shl ecx, 2 */
   3375     PUSH32(esp, ecx); /* 0x3C001E8E: push ecx */
   3376     RECOMP_ICALL(0x3C008B40u); /* 0x3C001E8F: call 0x3c008b40 */ /* not lifted */
   3377     RECOMP_FLAGS_IN();
   3378     ebx = MEM32(esi + 0x4); /* 0x3C001E94: mov ebx, dword ptr [esi + 4] */
   3379     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3380     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3381     esp = esp + 4; /* 0x3C001E97: add esp, 4 */
   3382     _flag_k = FK_ADD;
   3383     /* cmp ebx, edi */ /* 0x3C001E9A: cmp ebx, edi */
   3384     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   3385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3386     _flag_k = FK_CMP;
   3387     MEM32(ebp + (-0x8)) = eax; /* 0x3C001E9C: mov dword ptr [ebp - 8], eax */
   3388     MEM32(ebp + 0x8) = eax; /* 0x3C001E9F: mov dword ptr [ebp + 8], eax */
   3389     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001EC1; /* 0x3C001EA2: je 0x3c001ec1 */
   3390 L_3C001EA4:
   3391     edx = MEM32(ebp + 0x8); /* 0x3C001EA4: mov edx, dword ptr [ebp + 8] */
   3392     PUSH32(esp, ebx); /* 0x3C001EA7: push ebx */
   3393     PUSH32(esp, edx); /* 0x3C001EA8: push edx */
   3394     RECOMP_ICALL(0x3C0024C0u); /* 0x3C001EA9: call 0x3c0024c0 */ /* not lifted */
   3395     RECOMP_FLAGS_IN();
   3396     edx = MEM32(ebp + 0x8); /* 0x3C001EAE: mov edx, dword ptr [ebp + 8] */
   3397     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   3398     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3399     edx = edx + 0xCu; /* 0x3C001EB1: add edx, 0xc */
   3400     _flag_k = FK_ADD;
   3401     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   3402     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3403     ebx = ebx + 0xCu; /* 0x3C001EB4: add ebx, 0xc */
   3404     _flag_k = FK_ADD;
   3405     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3406     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3407     esp = esp + 8; /* 0x3C001EB7: add esp, 8 */
   3408     _flag_k = FK_ADD;
   3409     /* cmp ebx, edi */ /* 0x3C001EBA: cmp ebx, edi */
   3410     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   3411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3412     _flag_k = FK_CMP;
   3413     MEM32(ebp + 0x8) = edx; /* 0x3C001EBC: mov dword ptr [ebp + 8], edx */
   3414     RECOMP_BACKEDGE();
   3415     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001EA4; /* 0x3C001EBF: jne 0x3c001ea4 */
   3416 L_3C001EC1:
   3417     eax = MEM32(ebp + 0xC); /* 0x3C001EC1: mov eax, dword ptr [ebp + 0xc] */
   3418     ecx = MEM32(ebp + 0x8); /* 0x3C001EC4: mov ecx, dword ptr [ebp + 8] */
   3419     PUSH32(esp, eax); /* 0x3C001EC7: push eax */
   3420     PUSH32(esp, ecx); /* 0x3C001EC8: push ecx */
   3421     RECOMP_ICALL(0x3C0024C0u); /* 0x3C001EC9: call 0x3c0024c0 */ /* not lifted */
   3422     RECOMP_FLAGS_IN();
   3423     edx = MEM32(ebp + 0x8); /* 0x3C001ECE: mov edx, dword ptr [ebp + 8] */
   3424     eax = MEM32(esi + 0x8); /* 0x3C001ED1: mov eax, dword ptr [esi + 8] */
   3425     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3426     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3427     esp = esp + 8; /* 0x3C001ED4: add esp, 8 */
   3428     _flag_k = FK_ADD;
   3429     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   3430     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3431     edx = edx + 0xCu; /* 0x3C001ED7: add edx, 0xc */
   3432     _flag_k = FK_ADD;
   3433     PUSH32(esp, edx); /* 0x3C001EDA: push edx */
   3434     PUSH32(esp, eax); /* 0x3C001EDB: push eax */
   3435     PUSH32(esp, edi); /* 0x3C001EDC: push edi */
   3436     ecx = esi; /* 0x3C001EDD: mov ecx, esi */
   3437     RECOMP_ICALL(0x3C002400u); /* 0x3C001EDF: call 0x3c002400 */ /* not lifted */
   3438     RECOMP_FLAGS_IN();
   3439     ecx = MEM32(esi + 0x8); /* 0x3C001EE4: mov ecx, dword ptr [esi + 8] */
   3440     edx = MEM32(esi + 0x4); /* 0x3C001EE7: mov edx, dword ptr [esi + 4] */
   3441     PUSH32(esp, ecx); /* 0x3C001EEA: push ecx */
   3442     PUSH32(esp, edx); /* 0x3C001EEB: push edx */
   3443     ecx = esi; /* 0x3C001EEC: mov ecx, esi */
   3444     RECOMP_ICALL(0x3C006F40u); /* 0x3C001EEE: call 0x3c006f40 */ /* not lifted */
   3445     RECOMP_FLAGS_IN();
   3446     eax = MEM32(esi + 0x4); /* 0x3C001EF3: mov eax, dword ptr [esi + 4] */
   3447     PUSH32(esp, eax); /* 0x3C001EF6: push eax */
   3448     RECOMP_ICALL(0x3C0089DEu); /* 0x3C001EF7: call 0x3c0089de */ /* not lifted */
   3449     RECOMP_FLAGS_IN();
   3450     eax = MEM32(ebp + (-0x4)); /* 0x3C001EFC: mov eax, dword ptr [ebp - 4] */
   3451     edi = MEM32(ebp + (-0x8)); /* 0x3C001EFF: mov edi, dword ptr [ebp - 8] */
   3452     ecx = eax + eax * 2; /* 0x3C001F02: lea ecx, [eax + eax*2] */
   3453     edx = edi + ecx * 4; /* 0x3C001F05: lea edx, [edi + ecx*4] */
   3454     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3455     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3456     esp = esp + 4; /* 0x3C001F08: add esp, 4 */
   3457     _flag_k = FK_ADD;
   3458     ecx = esi; /* 0x3C001F0B: mov ecx, esi */
   3459     MEM32(esi + 0xC) = edx; /* 0x3C001F0D: mov dword ptr [esi + 0xc], edx */
   3460     RECOMP_ICALL(0x3C0023E0u); /* 0x3C001F10: call 0x3c0023e0 */ /* not lifted */
   3461     RECOMP_FLAGS_IN();
   3462     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3463     eax = eax + 1; /* 0x3C001F15: inc eax */
   3464     _flag_k = FK_INC;
   3465     eax = eax + eax * 2; /* 0x3C001F16: lea eax, [eax + eax*2] */
   3466     ecx = edi + eax * 4; /* 0x3C001F19: lea ecx, [edi + eax*4] */
   3467     MEM32(esi + 0x8) = ecx; /* 0x3C001F1C: mov dword ptr [esi + 8], ecx */
   3468     MEM32(esi + 0x4) = edi; /* 0x3C001F1F: mov dword ptr [esi + 4], edi */
   3469     goto L_3C001FFF; /* 0x3C001F22: jmp 0x3c001fff */
   3470 L_3C001F27:
   3471     edx = ecx; /* 0x3C001F27: mov edx, ecx */
   3472     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   3473     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3474     edx = edx - edi; /* 0x3C001F29: sub edx, edi */
   3475     _flag_k = FK_CMP;
   3476     eax = 0x2AAAAAABu; /* 0x3C001F2B: mov eax, 0x2aaaaaab */
   3477     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3C001F30: imul edx */
   3478       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3479       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3480     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C001F32: sar edx, 1 */
   3481     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3482     edx = (uint32_t)((int32_t)edx >> 1u);
   3483     eax = edx; /* 0x3C001F34: mov eax, edx */
   3484     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3C001F36: shr eax, 0x1f */
   3485     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3486     eax = eax >> 31u; /* 0x3C001F36: shr eax, 0x1f */
   3487     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3488     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3489     edx = edx + eax; /* 0x3C001F39: add edx, eax */
   3490     _flag_k = FK_ADD;
   3491     /* cmp edx, 1 */ /* 0x3C001F3B: cmp edx, 1 */
   3492     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3494     _flag_k = FK_CMP;
   3495     if (CMP_AE(_flag_a, _flag_b)) goto L_3C001F9D; /* 0x3C001F3E: jae 0x3c001f9d */
   3496 L_3C001F40:
   3497     edx = edi + 0xC; /* 0x3C001F40: lea edx, [edi + 0xc] */
   3498     PUSH32(esp, edx); /* 0x3C001F43: push edx */
   3499     PUSH32(esp, ecx); /* 0x3C001F44: push ecx */
   3500     PUSH32(esp, edi); /* 0x3C001F45: push edi */
   3501     ecx = esi; /* 0x3C001F46: mov ecx, esi */
   3502     RECOMP_ICALL(0x3C002400u); /* 0x3C001F48: call 0x3c002400 */ /* not lifted */
   3503     RECOMP_FLAGS_IN();
   3504     ebx = MEM32(esi + 0x8); /* 0x3C001F4D: mov ebx, dword ptr [esi + 8] */
   3505     eax = MEM32(ebp + 0xC); /* 0x3C001F50: mov eax, dword ptr [ebp + 0xc] */
   3506     PUSH32(esp, eax); /* 0x3C001F53: push eax */
   3507     ecx = ebx; /* 0x3C001F54: mov ecx, ebx */
   3508     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   3509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3510     ecx = ecx - edi; /* 0x3C001F56: sub ecx, edi */
   3511     _flag_k = FK_CMP;
   3512     eax = 0x2AAAAAABu; /* 0x3C001F58: mov eax, 0x2aaaaaab */
   3513     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3C001F5D: imul ecx */
   3514       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3515       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3516     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C001F5F: sar edx, 1 */
   3517     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3518     edx = (uint32_t)((int32_t)edx >> 1u);
   3519     ecx = edx; /* 0x3C001F61: mov ecx, edx */
   3520     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3C001F63: shr ecx, 0x1f */
   3521     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3522     ecx = ecx >> 31u; /* 0x3C001F63: shr ecx, 0x1f */
   3523     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3525     edx = edx + ecx; /* 0x3C001F66: add edx, ecx */
   3526     _flag_k = FK_ADD;
   3527     eax = 1; /* 0x3C001F68: mov eax, 1 */
   3528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3530     eax = eax - edx; /* 0x3C001F6D: sub eax, edx */
   3531     _flag_k = FK_CMP;
   3532     PUSH32(esp, eax); /* 0x3C001F6F: push eax */
   3533     PUSH32(esp, ebx); /* 0x3C001F70: push ebx */
   3534     ecx = esi; /* 0x3C001F71: mov ecx, esi */
   3535     RECOMP_ICALL(0x3C002450u); /* 0x3C001F73: call 0x3c002450 */ /* not lifted */
   3536     RECOMP_FLAGS_IN();
   3537     eax = MEM32(esi + 0x8); /* 0x3C001F78: mov eax, dword ptr [esi + 8] */
   3538     /* cmp edi, eax */ /* 0x3C001F7B: cmp edi, eax */
   3539     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3541     _flag_k = FK_CMP;
   3542     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001FFB; /* 0x3C001F7D: je 0x3c001ffb */
   3543 L_3C001F7F:
   3544     ecx = MEM32(ebp + 0xC); /* 0x3C001F7F: mov ecx, dword ptr [ebp + 0xc] */
   3545     ebx = MEM32(ecx); /* 0x3C001F82: mov ebx, dword ptr [ecx] */
   3546     edx = edi; /* 0x3C001F84: mov edx, edi */
   3547     MEM32(edx) = ebx; /* 0x3C001F86: mov dword ptr [edx], ebx */
   3548     ebx = MEM32(ecx + 0x4); /* 0x3C001F88: mov ebx, dword ptr [ecx + 4] */
   3549     MEM32(edx + 0x4) = ebx; /* 0x3C001F8B: mov dword ptr [edx + 4], ebx */
   3550     ecx = MEM32(ecx + 0x8); /* 0x3C001F8E: mov ecx, dword ptr [ecx + 8] */
   3551     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   3552     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3553     edi = edi + 0xCu; /* 0x3C001F91: add edi, 0xc */
   3554     _flag_k = FK_ADD;
   3555     /* cmp edi, eax */ /* 0x3C001F94: cmp edi, eax */
   3556     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3558     _flag_k = FK_CMP;
   3559     MEM32(edx + 0x8) = ecx; /* 0x3C001F96: mov dword ptr [edx + 8], ecx */
   3560     RECOMP_BACKEDGE();
   3561     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001F7F; /* 0x3C001F99: jne 0x3c001f7f */
   3562 L_3C001F9B:
   3563     goto L_3C001FFB; /* 0x3C001F9B: jmp 0x3c001ffb */
   3564 L_3C001F9D:
   3565     PUSH32(esp, ecx); /* 0x3C001F9D: push ecx */
   3566     PUSH32(esp, ecx); /* 0x3C001F9E: push ecx */
   3567     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF4u);
   3568     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3569     ecx = ecx + 0xFFFFFFF4u; /* 0x3C001F9F: add ecx, -0xc */
   3570     _flag_k = FK_ADD;
   3571     PUSH32(esp, ecx); /* 0x3C001FA2: push ecx */
   3572     ecx = esi; /* 0x3C001FA3: mov ecx, esi */
   3573     RECOMP_ICALL(0x3C002400u); /* 0x3C001FA5: call 0x3c002400 */ /* not lifted */
   3574     RECOMP_FLAGS_IN();
   3575     ecx = MEM32(esi + 0x8); /* 0x3C001FAA: mov ecx, dword ptr [esi + 8] */
   3576     eax = ecx + (-0xC); /* 0x3C001FAD: lea eax, [ecx - 0xc] */
   3577     /* cmp edi, eax */ /* 0x3C001FB0: cmp edi, eax */
   3578     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3579     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3580     _flag_k = FK_CMP;
   3581     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001FD8; /* 0x3C001FB2: je 0x3c001fd8 */
   3582 L_3C001FB4:
   3583     goto L_3C001FB9; /* 0x3C001FB4: jmp 0x3c001fb9 */
   3584 L_3C001FB6:
   3585     ecx = MEM32(ebp + 0x8); /* 0x3C001FB6: mov ecx, dword ptr [ebp + 8] */
   3586 L_3C001FB9:
   3587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3589     eax = eax - 0xCu; /* 0x3C001FB9: sub eax, 0xc */
   3590     _flag_k = FK_CMP;
   3591     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   3592     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3593     ecx = ecx - 0xCu; /* 0x3C001FBC: sub ecx, 0xc */
   3594     _flag_k = FK_CMP;
   3595     /* cmp eax, edi */ /* 0x3C001FBF: cmp eax, edi */
   3596     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3598     _flag_k = FK_CMP;
   3599     edx = eax; /* 0x3C001FC1: mov edx, eax */
   3600     ebx = MEM32(edx); /* 0x3C001FC3: mov ebx, dword ptr [edx] */
   3601     MEM32(ebp + 0x8) = ecx; /* 0x3C001FC5: mov dword ptr [ebp + 8], ecx */
   3602     MEM32(ecx) = ebx; /* 0x3C001FC8: mov dword ptr [ecx], ebx */
   3603     ebx = MEM32(edx + 0x4); /* 0x3C001FCA: mov ebx, dword ptr [edx + 4] */
   3604     MEM32(ecx + 0x4) = ebx; /* 0x3C001FCD: mov dword ptr [ecx + 4], ebx */
   3605     edx = MEM32(edx + 0x8); /* 0x3C001FD0: mov edx, dword ptr [edx + 8] */
   3606     MEM32(ecx + 0x8) = edx; /* 0x3C001FD3: mov dword ptr [ecx + 8], edx */
   3607     RECOMP_BACKEDGE();
   3608     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001FB6; /* 0x3C001FD6: jne 0x3c001fb6 */
   3609 L_3C001FD8:
   3610     eax = edi + 0xC; /* 0x3C001FD8: lea eax, [edi + 0xc] */
   3611     /* cmp edi, eax */ /* 0x3C001FDB: cmp edi, eax */
   3612     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3614     _flag_k = FK_CMP;
   3615     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C001FFB; /* 0x3C001FDD: je 0x3c001ffb */
   3616 L_3C001FDF:
   3617     ecx = MEM32(ebp + 0xC); /* 0x3C001FDF: mov ecx, dword ptr [ebp + 0xc] */
   3618     ebx = MEM32(ecx); /* 0x3C001FE2: mov ebx, dword ptr [ecx] */
   3619     edx = edi; /* 0x3C001FE4: mov edx, edi */
   3620     MEM32(edx) = ebx; /* 0x3C001FE6: mov dword ptr [edx], ebx */
   3621     ebx = MEM32(ecx + 0x4); /* 0x3C001FE8: mov ebx, dword ptr [ecx + 4] */
   3622     MEM32(edx + 0x4) = ebx; /* 0x3C001FEB: mov dword ptr [edx + 4], ebx */
   3623     ecx = MEM32(ecx + 0x8); /* 0x3C001FEE: mov ecx, dword ptr [ecx + 8] */
   3624     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   3625     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3626     edi = edi + 0xCu; /* 0x3C001FF1: add edi, 0xc */
   3627     _flag_k = FK_ADD;
   3628     /* cmp edi, eax */ /* 0x3C001FF4: cmp edi, eax */
   3629     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3631     _flag_k = FK_CMP;
   3632     MEM32(edx + 0x8) = ecx; /* 0x3C001FF6: mov dword ptr [edx + 8], ecx */
   3633     RECOMP_BACKEDGE();
   3634     if (CMP_NE(_flag_a, _flag_b)) goto L_3C001FDF; /* 0x3C001FF9: jne 0x3c001fdf */
   3635 L_3C001FFB:
   3636     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0xCu);
   3637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3638     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0xCu; /* 0x3C001FFB: add dword ptr [esi + 8], 0xc */
   3639     _flag_k = FK_ADD;
   3640 L_3C001FFF:
   3641     eax = MEM32(ebp + (-0xC)); /* 0x3C001FFF: mov eax, dword ptr [ebp - 0xc] */
   3642     edx = eax + eax * 2; /* 0x3C002002: lea edx, [eax + eax*2] */
   3643     eax = MEM32(esi + 0x4); /* 0x3C002005: mov eax, dword ptr [esi + 4] */
   3644     edi = POP32_VAL(esp); /* 0x3C002008: pop edi */
   3645     esi = POP32_VAL(esp); /* 0x3C002009: pop esi */
   3646     eax = eax + edx * 4; /* 0x3C00200A: lea eax, [eax + edx*4] */
   3647     ebx = POP32_VAL(esp); /* 0x3C00200D: pop ebx */
   3648     esp = ebp; /* 0x3C00200E: mov esp, ebp */
   3649     ebp = POP32_VAL(esp); /* 0x3C002010: pop ebp */
   3650     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C002011: ret 8 */
   3651     RECOMP_REGS_OUT();
   3652 }
   3653 
   3654 void sub_3C001FFF(void) {
   3655     int _fpu_cmp = 0;
   3656     uint32_t _cf = 0;
   3657     int _df = 1;
   3658     uint32_t _flag_k = FK_NONE;
   3659     uint32_t _flag_a = 0, _flag_b = 0;
   3660     uint32_t _itail_tgt = 0;
   3661     RECOMP_REGS_LOCALS
   3662     RECOMP_ENTER(0x3C001FFFu);
   3663 
   3664 L_3C001FFF:
   3665     eax = MEM32(ebp + (-0xC)); /* 0x3C001FFF: mov eax, dword ptr [ebp - 0xc] */
   3666     edx = eax + eax * 2; /* 0x3C002002: lea edx, [eax + eax*2] */
   3667     eax = MEM32(esi + 0x4); /* 0x3C002005: mov eax, dword ptr [esi + 4] */
   3668     edi = POP32_VAL(esp); /* 0x3C002008: pop edi */
   3669     esi = POP32_VAL(esp); /* 0x3C002009: pop esi */
   3670     eax = eax + edx * 4; /* 0x3C00200A: lea eax, [eax + edx*4] */
   3671     ebx = POP32_VAL(esp); /* 0x3C00200D: pop ebx */
   3672     esp = ebp; /* 0x3C00200E: mov esp, ebp */
   3673     ebp = POP32_VAL(esp); /* 0x3C002010: pop ebp */
   3674     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3C002011: ret 8 */
   3675     RECOMP_REGS_OUT();
   3676 }
   3677 
   3678 void sub_3C002020(void) {
   3679     int _fpu_cmp = 0;
   3680     uint32_t _cf = 0;
   3681     int _df = 1;
   3682     uint32_t _flag_k = FK_NONE;
   3683     uint32_t _flag_a = 0, _flag_b = 0;
   3684     uint32_t _itail_tgt = 0;
   3685     RECOMP_REGS_LOCALS
   3686     RECOMP_ENTER(0x3C002020u);
   3687 
   3688 L_3C002020:
   3689     PUSH32(esp, ebp); /* 0x3C002020: push ebp */
   3690     ebp = esp; /* 0x3C002021: mov ebp, esp */
   3691     PUSH32(esp, ebx); /* 0x3C002023: push ebx */
   3692     PUSH32(esp, esi); /* 0x3C002024: push esi */
   3693     ebx = ecx; /* 0x3C002025: mov ebx, ecx */
   3694     eax = MEM32(ebx + 0x8); /* 0x3C002027: mov eax, dword ptr [ebx + 8] */
   3695     PUSH32(esp, edi); /* 0x3C00202A: push edi */
   3696     edi = MEM32(ebp + 0x8); /* 0x3C00202B: mov edi, dword ptr [ebp + 8] */
   3697     /* cmp edi, eax */ /* 0x3C00202E: cmp edi, eax */
   3698     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3700     _flag_k = FK_CMP;
   3701     esi = edi; /* 0x3C002030: mov esi, edi */
   3702     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C002053; /* 0x3C002032: je 0x3c002053 */
   3703 L_3C002034:
   3704     eax = MEM32(esi + 0x8); /* 0x3C002034: mov eax, dword ptr [esi + 8] */
   3705     PUSH32(esp, eax); /* 0x3C002037: push eax */
   3706     ecx = ebx; /* 0x3C002038: mov ecx, ebx */
   3707     RECOMP_ICALL(0x3C002020u); /* 0x3C00203A: call 0x3c002020 */ /* not lifted */
   3708     RECOMP_FLAGS_IN();
   3709     esi = MEM32(esi); /* 0x3C00203F: mov esi, dword ptr [esi] */
   3710     PUSH32(esp, edi); /* 0x3C002041: push edi */
   3711     RECOMP_ICALL(0x3C0089DEu); /* 0x3C002042: call 0x3c0089de */ /* not lifted */
   3712     RECOMP_FLAGS_IN();
   3713     eax = MEM32(ebx + 0x8); /* 0x3C002047: mov eax, dword ptr [ebx + 8] */
   3714     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3715     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3716     esp = esp + 4; /* 0x3C00204A: add esp, 4 */
   3717     _flag_k = FK_ADD;
   3718     /* cmp esi, eax */ /* 0x3C00204D: cmp esi, eax */
   3719     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3721     _flag_k = FK_CMP;
   3722     edi = esi; /* 0x3C00204F: mov edi, esi */
   3723     RECOMP_BACKEDGE();
   3724     if (CMP_NE(_flag_a, _flag_b)) goto L_3C002034; /* 0x3C002051: jne 0x3c002034 */
   3725 L_3C002053:
   3726     edi = POP32_VAL(esp); /* 0x3C002053: pop edi */
   3727     esi = POP32_VAL(esp); /* 0x3C002054: pop esi */
   3728     ebx = POP32_VAL(esp); /* 0x3C002055: pop ebx */
   3729     ebp = POP32_VAL(esp); /* 0x3C002056: pop ebp */
   3730     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002057: ret 4 */
   3731     RECOMP_REGS_OUT();
   3732 }
   3733 
   3734 void sub_3C002060(void) {
   3735     int _fpu_cmp = 0;
   3736     uint32_t _cf = 0;
   3737     int _df = 1;
   3738     uint32_t _flag_k = FK_NONE;
   3739     uint32_t _flag_a = 0, _flag_b = 0;
   3740     uint32_t _itail_tgt = 0;
   3741     RECOMP_REGS_LOCALS
   3742     RECOMP_ENTER(0x3C002060u);
   3743 
   3744 L_3C002060:
   3745     PUSH32(esp, ebp); /* 0x3C002060: push ebp */
   3746     ebp = esp; /* 0x3C002061: mov ebp, esp */
   3747     eax = MEM32(ebp + 0x8); /* 0x3C002063: mov eax, dword ptr [ebp + 8] */
   3748     ecx = MEM32(eax); /* 0x3C002066: mov ecx, dword ptr [eax] */
   3749     SET_LO8(edx, MEM8(ecx + 0x15)); /* 0x3C002068: mov dl, byte ptr [ecx + 0x15] */
   3750     /* test LO8(edx), LO8(edx) */ /* 0x3C00206B: test dl, dl */
   3751     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3752     _cf = 0;
   3753     _flag_k = FK_NARROW(FK_TEST, 24);
   3754     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00207A; /* 0x3C00206D: jne 0x3c00207a */
   3755 L_3C00206F:
   3756     eax = ecx; /* 0x3C00206F: mov eax, ecx */
   3757     ecx = MEM32(eax); /* 0x3C002071: mov ecx, dword ptr [eax] */
   3758     SET_LO8(edx, MEM8(ecx + 0x15)); /* 0x3C002073: mov dl, byte ptr [ecx + 0x15] */
   3759     /* test LO8(edx), LO8(edx) */ /* 0x3C002076: test dl, dl */
   3760     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3761     _cf = 0;
   3762     _flag_k = FK_NARROW(FK_TEST, 24);
   3763     RECOMP_BACKEDGE();
   3764     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00206F; /* 0x3C002078: je 0x3c00206f */
   3765 L_3C00207A:
   3766     ebp = POP32_VAL(esp); /* 0x3C00207A: pop ebp */
   3767     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00207B: ret  */
   3768     RECOMP_REGS_OUT();
   3769 }
   3770 
   3771 void sub_3C002080(void) {
   3772     int _fpu_cmp = 0;
   3773     uint32_t _cf = 0;
   3774     int _df = 1;
   3775     uint32_t _flag_k = FK_NONE;
   3776     uint32_t _flag_a = 0, _flag_b = 0;
   3777     uint32_t _itail_tgt = 0;
   3778     RECOMP_REGS_LOCALS
   3779     RECOMP_ENTER(0x3C002080u);
   3780 
   3781 L_3C002080:
   3782     PUSH32(esp, ebp); /* 0x3C002080: push ebp */
   3783     ebp = esp; /* 0x3C002081: mov ebp, esp */
   3784     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3785     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3786     esp = esp - 0xCu; /* 0x3C002083: sub esp, 0xc */
   3787     _flag_k = FK_CMP;
   3788     PUSH32(esp, ebx); /* 0x3C002086: push ebx */
   3789     ebx = ecx; /* 0x3C002087: mov ebx, ecx */
   3790     ecx = MEM32(ebx + 0x8); /* 0x3C002089: mov ecx, dword ptr [ebx + 8] */
   3791     edx = MEM32(ebx + 0xC); /* 0x3C00208C: mov edx, dword ptr [ebx + 0xc] */
   3792     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3794     edx = edx - ecx; /* 0x3C00208F: sub edx, ecx */
   3795     _flag_k = FK_CMP;
   3796     eax = 0x2AAAAAABu; /* 0x3C002091: mov eax, 0x2aaaaaab */
   3797     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3C002096: imul edx */
   3798       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3799       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3800     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C002098: sar edx, 1 */
   3801     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3802     edx = (uint32_t)((int32_t)edx >> 1u);
   3803     eax = edx; /* 0x3C00209A: mov eax, edx */
   3804     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3C00209C: shr eax, 0x1f */
   3805     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3806     eax = eax >> 31u; /* 0x3C00209C: shr eax, 0x1f */
   3807     PUSH32(esp, esi); /* 0x3C00209F: push esi */
   3808     esi = MEM32(ebp + 0xC); /* 0x3C0020A0: mov esi, dword ptr [ebp + 0xc] */
   3809     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3810     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3811     edx = edx + eax; /* 0x3C0020A3: add edx, eax */
   3812     _flag_k = FK_ADD;
   3813     /* cmp edx, esi */ /* 0x3C0020A5: cmp edx, esi */
   3814     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   3815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3816     _flag_k = FK_CMP;
   3817     PUSH32(esp, edi); /* 0x3C0020A7: push edi */
   3818     MEM32(ebp + (-0x4)) = ebx; /* 0x3C0020A8: mov dword ptr [ebp - 4], ebx */
   3819     if (CMP_AE(_flag_a, _flag_b)) goto L_3C002224; /* 0x3C0020AB: jae 0x3c002224 */
   3820 L_3C0020B1:
   3821     edi = MEM32(ebx + 0x4); /* 0x3C0020B1: mov edi, dword ptr [ebx + 4] */
   3822     /* test edi, edi */ /* 0x3C0020B4: test edi, edi */
   3823     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3824     _cf = 0;
   3825     _flag_k = FK_TEST;
   3826     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0020D2; /* 0x3C0020B6: je 0x3c0020d2 */
   3827 L_3C0020B8:
   3828     edx = ecx; /* 0x3C0020B8: mov edx, ecx */
   3829     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   3830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3831     edx = edx - edi; /* 0x3C0020BA: sub edx, edi */
   3832     _flag_k = FK_CMP;
   3833     eax = 0x2AAAAAABu; /* 0x3C0020BC: mov eax, 0x2aaaaaab */
   3834     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3C0020C1: imul edx */
   3835       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3836       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3837     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C0020C3: sar edx, 1 */
   3838     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3839     edx = (uint32_t)((int32_t)edx >> 1u);
   3840     eax = edx; /* 0x3C0020C5: mov eax, edx */
   3841     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3C0020C7: shr eax, 0x1f */
   3842     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3843     eax = eax >> 31u; /* 0x3C0020C7: shr eax, 0x1f */
   3844     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3845     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3846     edx = edx + eax; /* 0x3C0020CA: add edx, eax */
   3847     _flag_k = FK_ADD;
   3848     /* cmp esi, edx */ /* 0x3C0020CC: cmp esi, edx */
   3849     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   3850     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3851     _flag_k = FK_CMP;
   3852     ebx = edx; /* 0x3C0020CE: mov ebx, edx */
   3853     if (CMP_B(_flag_a, _flag_b)) goto L_3C0020D4; /* 0x3C0020D0: jb 0x3c0020d4 */
   3854 L_3C0020D2:
   3855     ebx = esi; /* 0x3C0020D2: mov ebx, esi */
   3856 L_3C0020D4:
   3857     /* test edi, edi */ /* 0x3C0020D4: test edi, edi */
   3858     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3859     _cf = 0;
   3860     _flag_k = FK_TEST;
   3861     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0020DC; /* 0x3C0020D6: jne 0x3c0020dc */
   3862 L_3C0020D8:
   3863     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3864     edx = 0; /* 0x3C0020D8: xor edx, edx */
   3865     _cf = 0;
   3866     _flag_k = FK_TEST;
   3867     goto L_3C0020EE; /* 0x3C0020DA: jmp 0x3c0020ee */
   3868 L_3C0020DC:
   3869     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   3870     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3871     ecx = ecx - edi; /* 0x3C0020DC: sub ecx, edi */
   3872     _flag_k = FK_CMP;
   3873     eax = 0x2AAAAAABu; /* 0x3C0020DE: mov eax, 0x2aaaaaab */
   3874     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3C0020E3: imul ecx */
   3875       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3876       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3877     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C0020E5: sar edx, 1 */
   3878     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3879     edx = (uint32_t)((int32_t)edx >> 1u);
   3880     ecx = edx; /* 0x3C0020E7: mov ecx, edx */
   3881     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3C0020E9: shr ecx, 0x1f */
   3882     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3883     ecx = ecx >> 31u; /* 0x3C0020E9: shr ecx, 0x1f */
   3884     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3885     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3886     edx = edx + ecx; /* 0x3C0020EC: add edx, ecx */
   3887     _flag_k = FK_ADD;
   3888 L_3C0020EE:
   3889     eax = edx + ebx; /* 0x3C0020EE: lea eax, [edx + ebx] */
   3890     /* test eax, eax */ /* 0x3C0020F1: test eax, eax */
   3891     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3892     _cf = 0;
   3893     _flag_k = FK_TEST;
   3894     MEM32(ebp + (-0x8)) = eax; /* 0x3C0020F3: mov dword ptr [ebp - 8], eax */
   3895     if (TEST_NS(_flag_a, _flag_b)) goto L_3C0020FA; /* 0x3C0020F6: jge 0x3c0020fa */
   3896 L_3C0020F8:
   3897     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3898     eax = 0; /* 0x3C0020F8: xor eax, eax */
   3899     _cf = 0;
   3900     _flag_k = FK_TEST;
   3901 L_3C0020FA:
   3902     edx = eax + eax * 2; /* 0x3C0020FA: lea edx, [eax + eax*2] */
   3903     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3C0020FD: shl edx, 2 */
   3904     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3905     edx = edx << 2u; /* 0x3C0020FD: shl edx, 2 */
   3906     PUSH32(esp, edx); /* 0x3C002100: push edx */
   3907     RECOMP_ICALL(0x3C008B40u); /* 0x3C002101: call 0x3c008b40 */ /* not lifted */
   3908     RECOMP_FLAGS_IN();
   3909     ecx = MEM32(ebp + 0x8); /* 0x3C002106: mov ecx, dword ptr [ebp + 8] */
   3910     MEM32(ebp + (-0xC)) = eax; /* 0x3C002109: mov dword ptr [ebp - 0xc], eax */
   3911     edx = eax; /* 0x3C00210C: mov edx, eax */
   3912     eax = MEM32(ebp + (-0x4)); /* 0x3C00210E: mov eax, dword ptr [ebp - 4] */
   3913     eax = MEM32(eax + 0x4); /* 0x3C002111: mov eax, dword ptr [eax + 4] */
   3914     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3915     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3916     esp = esp + 4; /* 0x3C002114: add esp, 4 */
   3917     _flag_k = FK_ADD;
   3918     /* cmp eax, ecx */ /* 0x3C002117: cmp eax, ecx */
   3919     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3920     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3921     _flag_k = FK_CMP;
   3922     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C002140; /* 0x3C002119: je 0x3c002140 */
   3923 L_3C00211B:
   3924     /* test edx, edx */ /* 0x3C00211B: test edx, edx */
   3925     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3926     _cf = 0;
   3927     _flag_k = FK_TEST;
   3928     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002133; /* 0x3C00211D: je 0x3c002133 */
   3929 L_3C00211F:
   3930     ecx = eax; /* 0x3C00211F: mov ecx, eax */
   3931     ebx = MEM32(ecx); /* 0x3C002121: mov ebx, dword ptr [ecx] */
   3932     edi = edx; /* 0x3C002123: mov edi, edx */
   3933     MEM32(edi) = ebx; /* 0x3C002125: mov dword ptr [edi], ebx */
   3934     ebx = MEM32(ecx + 0x4); /* 0x3C002127: mov ebx, dword ptr [ecx + 4] */
   3935     MEM32(edi + 0x4) = ebx; /* 0x3C00212A: mov dword ptr [edi + 4], ebx */
   3936     ecx = MEM32(ecx + 0x8); /* 0x3C00212D: mov ecx, dword ptr [ecx + 8] */
   3937     MEM32(edi + 0x8) = ecx; /* 0x3C002130: mov dword ptr [edi + 8], ecx */
   3938 L_3C002133:
   3939     ecx = MEM32(ebp + 0x8); /* 0x3C002133: mov ecx, dword ptr [ebp + 8] */
   3940     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3941     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3942     eax = eax + 0xCu; /* 0x3C002136: add eax, 0xc */
   3943     _flag_k = FK_ADD;
   3944     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   3945     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3946     edx = edx + 0xCu; /* 0x3C002139: add edx, 0xc */
   3947     _flag_k = FK_ADD;
   3948     /* cmp eax, ecx */ /* 0x3C00213C: cmp eax, ecx */
   3949     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3950     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3951     _flag_k = FK_CMP;
   3952     RECOMP_BACKEDGE();
   3953     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00211B; /* 0x3C00213E: jne 0x3c00211b */
   3954 L_3C002140:
   3955     /* test esi, esi */ /* 0x3C002140: test esi, esi */
   3956     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3957     _cf = 0;
   3958     _flag_k = FK_TEST;
   3959     eax = edx; /* 0x3C002142: mov eax, edx */
   3960     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00216E; /* 0x3C002144: jbe 0x3c00216e */
   3961 L_3C002146:
   3962     MEM32(ebp + 0xC) = esi; /* 0x3C002146: mov dword ptr [ebp + 0xc], esi */
   3963 L_3C002149:
   3964     /* test eax, eax */ /* 0x3C002149: test eax, eax */
   3965     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3966     _cf = 0;
   3967     _flag_k = FK_TEST;
   3968     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002162; /* 0x3C00214B: je 0x3c002162 */
   3969 L_3C00214D:
   3970     ecx = MEM32(ebp + 0x10); /* 0x3C00214D: mov ecx, dword ptr [ebp + 0x10] */
   3971     ebx = MEM32(ecx); /* 0x3C002150: mov ebx, dword ptr [ecx] */
   3972     edi = eax; /* 0x3C002152: mov edi, eax */
   3973     MEM32(edi) = ebx; /* 0x3C002154: mov dword ptr [edi], ebx */
   3974     ebx = MEM32(ecx + 0x4); /* 0x3C002156: mov ebx, dword ptr [ecx + 4] */
   3975     MEM32(edi + 0x4) = ebx; /* 0x3C002159: mov dword ptr [edi + 4], ebx */
   3976     ecx = MEM32(ecx + 0x8); /* 0x3C00215C: mov ecx, dword ptr [ecx + 8] */
   3977     MEM32(edi + 0x8) = ecx; /* 0x3C00215F: mov dword ptr [edi + 8], ecx */
   3978 L_3C002162:
   3979     ecx = MEM32(ebp + 0xC); /* 0x3C002162: mov ecx, dword ptr [ebp + 0xc] */
   3980     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3981     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3982     eax = eax + 0xCu; /* 0x3C002165: add eax, 0xc */
   3983     _flag_k = FK_ADD;
   3984     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3985     ecx = ecx - 1; /* 0x3C002168: dec ecx */
   3986     _flag_k = FK_DEC;
   3987     MEM32(ebp + 0xC) = ecx; /* 0x3C002169: mov dword ptr [ebp + 0xc], ecx */
   3988     RECOMP_BACKEDGE();
   3989     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3C002149; /* 0x3C00216C: jne 0x3c002149 */
   3990 L_3C00216E:
   3991     eax = MEM32(ebp + (-0x4)); /* 0x3C00216E: mov eax, dword ptr [ebp - 4] */
   3992     ebx = MEM32(eax + 0x8); /* 0x3C002171: mov ebx, dword ptr [eax + 8] */
   3993     eax = MEM32(ebp + 0x8); /* 0x3C002174: mov eax, dword ptr [ebp + 8] */
   3994     ecx = esi + esi * 2; /* 0x3C002177: lea ecx, [esi + esi*2] */
   3995     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3C00217A: shl ecx, 2 */
   3996     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3997     ecx = ecx << 2u; /* 0x3C00217A: shl ecx, 2 */
   3998     /* cmp eax, ebx */ /* 0x3C00217D: cmp eax, ebx */
   3999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4001     _flag_k = FK_CMP;
   4002     edi = ecx + edx; /* 0x3C00217F: lea edi, [ecx + edx] */
   4003     MEM32(ebp + 0x10) = ebx; /* 0x3C002182: mov dword ptr [ebp + 0x10], ebx */
   4004     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0021B7; /* 0x3C002185: je 0x3c0021b7 */
   4005 L_3C002187:
   4006     eax = edi; /* 0x3C002187: mov eax, edi */
   4007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4009     eax = eax - ecx; /* 0x3C002189: sub eax, ecx */
   4010     _flag_k = FK_CMP;
   4011     ecx = MEM32(ebp + 0x8); /* 0x3C00218B: mov ecx, dword ptr [ebp + 8] */
   4012     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4013     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4014     eax = eax - edx; /* 0x3C00218E: sub eax, edx */
   4015     _flag_k = FK_CMP;
   4016     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4017     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4018     eax = eax + ecx; /* 0x3C002190: add eax, ecx */
   4019     _flag_k = FK_ADD;
   4020 L_3C002192:
   4021     /* test edi, edi */ /* 0x3C002192: test edi, edi */
   4022     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4023     _cf = 0;
   4024     _flag_k = FK_TEST;
   4025     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0021AD; /* 0x3C002194: je 0x3c0021ad */
   4026 L_3C002196:
   4027     ecx = eax; /* 0x3C002196: mov ecx, eax */
   4028     ebx = MEM32(ecx); /* 0x3C002198: mov ebx, dword ptr [ecx] */
   4029     edx = edi; /* 0x3C00219A: mov edx, edi */
   4030     MEM32(edx) = ebx; /* 0x3C00219C: mov dword ptr [edx], ebx */
   4031     ebx = MEM32(ecx + 0x4); /* 0x3C00219E: mov ebx, dword ptr [ecx + 4] */
   4032     MEM32(edx + 0x4) = ebx; /* 0x3C0021A1: mov dword ptr [edx + 4], ebx */
   4033     ecx = MEM32(ecx + 0x8); /* 0x3C0021A4: mov ecx, dword ptr [ecx + 8] */
   4034     ebx = MEM32(ebp + 0x10); /* 0x3C0021A7: mov ebx, dword ptr [ebp + 0x10] */
   4035     MEM32(edx + 0x8) = ecx; /* 0x3C0021AA: mov dword ptr [edx + 8], ecx */
   4036 L_3C0021AD:
   4037     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   4038     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4039     eax = eax + 0xCu; /* 0x3C0021AD: add eax, 0xc */
   4040     _flag_k = FK_ADD;
   4041     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   4042     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4043     edi = edi + 0xCu; /* 0x3C0021B0: add edi, 0xc */
   4044     _flag_k = FK_ADD;
   4045     /* cmp eax, ebx */ /* 0x3C0021B3: cmp eax, ebx */
   4046     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4048     _flag_k = FK_CMP;
   4049     RECOMP_BACKEDGE();
   4050     if (CMP_NE(_flag_a, _flag_b)) goto L_3C002192; /* 0x3C0021B5: jne 0x3c002192 */
   4051 L_3C0021B7:
   4052     edi = MEM32(ebp + (-0x4)); /* 0x3C0021B7: mov edi, dword ptr [ebp - 4] */
   4053     eax = MEM32(edi + 0x4); /* 0x3C0021BA: mov eax, dword ptr [edi + 4] */
   4054     PUSH32(esp, eax); /* 0x3C0021BD: push eax */
   4055     MEM32(ebp + 0x8) = eax; /* 0x3C0021BE: mov dword ptr [ebp + 8], eax */
   4056     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0021C1: call 0x3c0089de */ /* not lifted */
   4057     RECOMP_FLAGS_IN();
   4058     eax = MEM32(ebp + (-0x8)); /* 0x3C0021C6: mov eax, dword ptr [ebp - 8] */
   4059     ebx = MEM32(ebp + (-0xC)); /* 0x3C0021C9: mov ebx, dword ptr [ebp - 0xc] */
   4060     edx = eax + eax * 2; /* 0x3C0021CC: lea edx, [eax + eax*2] */
   4061     eax = ebx + edx * 4; /* 0x3C0021CF: lea eax, [ebx + edx*4] */
   4062     MEM32(edi + 0xC) = eax; /* 0x3C0021D2: mov dword ptr [edi + 0xc], eax */
   4063     eax = MEM32(edi + 0x4); /* 0x3C0021D5: mov eax, dword ptr [edi + 4] */
   4064     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4065     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4066     esp = esp + 4; /* 0x3C0021D8: add esp, 4 */
   4067     _flag_k = FK_ADD;
   4068     /* test eax, eax */ /* 0x3C0021DB: test eax, eax */
   4069     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4070     _cf = 0;
   4071     _flag_k = FK_TEST;
   4072     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0021F8; /* 0x3C0021DD: jne 0x3c0021f8 */
   4073 L_3C0021DF:
   4074     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4075     edx = 0; /* 0x3C0021DF: xor edx, edx */
   4076     _cf = 0;
   4077     _flag_k = FK_TEST;
   4078     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   4079     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4080     esi = esi + edx; /* 0x3C0021E1: add esi, edx */
   4081     _flag_k = FK_ADD;
   4082     edx = esi + esi * 2; /* 0x3C0021E3: lea edx, [esi + esi*2] */
   4083     eax = ebx + edx * 4; /* 0x3C0021E6: lea eax, [ebx + edx*4] */
   4084     MEM32(edi + 0x4) = ebx; /* 0x3C0021E9: mov dword ptr [edi + 4], ebx */
   4085     MEM32(edi + 0x8) = eax; /* 0x3C0021EC: mov dword ptr [edi + 8], eax */
   4086     edi = POP32_VAL(esp); /* 0x3C0021EF: pop edi */
   4087     esi = POP32_VAL(esp); /* 0x3C0021F0: pop esi */
   4088     ebx = POP32_VAL(esp); /* 0x3C0021F1: pop ebx */
   4089     esp = ebp; /* 0x3C0021F2: mov esp, ebp */
   4090     ebp = POP32_VAL(esp); /* 0x3C0021F4: pop ebp */
   4091     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C0021F5: ret 0xc */
   4092 L_3C0021F8:
   4093     ecx = MEM32(edi + 0x8); /* 0x3C0021F8: mov ecx, dword ptr [edi + 8] */
   4094     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4096     ecx = ecx - eax; /* 0x3C0021FB: sub ecx, eax */
   4097     _flag_k = FK_CMP;
   4098     eax = 0x2AAAAAABu; /* 0x3C0021FD: mov eax, 0x2aaaaaab */
   4099     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3C002202: imul ecx */
   4100       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4101       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4102     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C002204: sar edx, 1 */
   4103     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4104     edx = (uint32_t)((int32_t)edx >> 1u);
   4105     ecx = edx; /* 0x3C002206: mov ecx, edx */
   4106     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3C002208: shr ecx, 0x1f */
   4107     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4108     ecx = ecx >> 31u; /* 0x3C002208: shr ecx, 0x1f */
   4109     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4110     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4111     edx = edx + ecx; /* 0x3C00220B: add edx, ecx */
   4112     _flag_k = FK_ADD;
   4113     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   4114     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4115     esi = esi + edx; /* 0x3C00220D: add esi, edx */
   4116     _flag_k = FK_ADD;
   4117     edx = esi + esi * 2; /* 0x3C00220F: lea edx, [esi + esi*2] */
   4118     eax = ebx + edx * 4; /* 0x3C002212: lea eax, [ebx + edx*4] */
   4119     MEM32(edi + 0x4) = ebx; /* 0x3C002215: mov dword ptr [edi + 4], ebx */
   4120     MEM32(edi + 0x8) = eax; /* 0x3C002218: mov dword ptr [edi + 8], eax */
   4121     edi = POP32_VAL(esp); /* 0x3C00221B: pop edi */
   4122     esi = POP32_VAL(esp); /* 0x3C00221C: pop esi */
   4123     ebx = POP32_VAL(esp); /* 0x3C00221D: pop ebx */
   4124     esp = ebp; /* 0x3C00221E: mov esp, ebp */
   4125     ebp = POP32_VAL(esp); /* 0x3C002220: pop ebp */
   4126     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C002221: ret 0xc */
   4127 L_3C002224:
   4128     edi = MEM32(ebp + 0x8); /* 0x3C002224: mov edi, dword ptr [ebp + 8] */
   4129     edx = ecx; /* 0x3C002227: mov edx, ecx */
   4130     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   4131     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4132     edx = edx - edi; /* 0x3C002229: sub edx, edi */
   4133     _flag_k = FK_CMP;
   4134     eax = 0x2AAAAAABu; /* 0x3C00222B: mov eax, 0x2aaaaaab */
   4135     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3C002230: imul edx */
   4136       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4137       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4138     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C002232: sar edx, 1 */
   4139     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4140     edx = (uint32_t)((int32_t)edx >> 1u);
   4141     eax = edx; /* 0x3C002234: mov eax, edx */
   4142     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3C002236: shr eax, 0x1f */
   4143     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4144     eax = eax >> 31u; /* 0x3C002236: shr eax, 0x1f */
   4145     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4146     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4147     edx = edx + eax; /* 0x3C002239: add edx, eax */
   4148     _flag_k = FK_ADD;
   4149     /* cmp edx, esi */ /* 0x3C00223B: cmp edx, esi */
   4150     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   4151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4152     _flag_k = FK_CMP;
   4153     if (CMP_AE(_flag_a, _flag_b)) goto L_3C002303; /* 0x3C00223D: jae 0x3c002303 */
   4154 L_3C002243:
   4155     ebx = esi + esi * 2; /* 0x3C002243: lea ebx, [esi + esi*2] */
   4156     if (2u) _cf = (((ebx) >> 30) & 1u); /* 0x3C002246: shl ebx, 2 */
   4157     if (2u) { _flag_a = recomp_flags_pack((ebx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4158     ebx = ebx << 2u; /* 0x3C002246: shl ebx, 2 */
   4159     /* cmp edi, ecx */ /* 0x3C002249: cmp edi, ecx */
   4160     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   4161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4162     _flag_k = FK_CMP;
   4163     edx = ebx + edi; /* 0x3C00224B: lea edx, [ebx + edi] */
   4164     MEM32(ebp + 0x8) = ebx; /* 0x3C00224E: mov dword ptr [ebp + 8], ebx */
   4165     MEM32(ebp + 0xC) = edx; /* 0x3C002251: mov dword ptr [ebp + 0xc], edx */
   4166     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C002287; /* 0x3C002254: je 0x3c002287 */
   4167 L_3C002256:
   4168     eax = edx; /* 0x3C002256: mov eax, edx */
   4169     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4170     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4171     eax = eax - ebx; /* 0x3C002258: sub eax, ebx */
   4172     _flag_k = FK_CMP;
   4173     MEM32(ebp + (-0x8)) = eax; /* 0x3C00225A: mov dword ptr [ebp - 8], eax */
   4174 L_3C00225D:
   4175     /* test edx, edx */ /* 0x3C00225D: test edx, edx */
   4176     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4177     _cf = 0;
   4178     _flag_k = FK_TEST;
   4179     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002277; /* 0x3C00225F: je 0x3c002277 */
   4180 L_3C002261:
   4181     ebx = MEM32(eax); /* 0x3C002261: mov ebx, dword ptr [eax] */
   4182     MEM32(edx) = ebx; /* 0x3C002263: mov dword ptr [edx], ebx */
   4183     ebx = MEM32(eax + 0x4); /* 0x3C002265: mov ebx, dword ptr [eax + 4] */
   4184     MEM32(edx + 0x4) = ebx; /* 0x3C002268: mov dword ptr [edx + 4], ebx */
   4185     eax = MEM32(eax + 0x8); /* 0x3C00226B: mov eax, dword ptr [eax + 8] */
   4186     MEM32(edx + 0x8) = eax; /* 0x3C00226E: mov dword ptr [edx + 8], eax */
   4187     edx = MEM32(ebp + 0xC); /* 0x3C002271: mov edx, dword ptr [ebp + 0xc] */
   4188     eax = MEM32(ebp + (-0x8)); /* 0x3C002274: mov eax, dword ptr [ebp - 8] */
   4189 L_3C002277:
   4190     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   4191     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4192     eax = eax + 0xCu; /* 0x3C002277: add eax, 0xc */
   4193     _flag_k = FK_ADD;
   4194     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   4195     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4196     edx = edx + 0xCu; /* 0x3C00227A: add edx, 0xc */
   4197     _flag_k = FK_ADD;
   4198     /* cmp eax, ecx */ /* 0x3C00227D: cmp eax, ecx */
   4199     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4201     _flag_k = FK_CMP;
   4202     MEM32(ebp + 0xC) = edx; /* 0x3C00227F: mov dword ptr [ebp + 0xc], edx */
   4203     MEM32(ebp + (-0x8)) = eax; /* 0x3C002282: mov dword ptr [ebp - 8], eax */
   4204     RECOMP_BACKEDGE();
   4205     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00225D; /* 0x3C002285: jne 0x3c00225d */
   4206 L_3C002287:
   4207     ecx = MEM32(ebp + (-0x4)); /* 0x3C002287: mov ecx, dword ptr [ebp - 4] */
   4208     ebx = MEM32(ecx + 0x8); /* 0x3C00228A: mov ebx, dword ptr [ecx + 8] */
   4209     ecx = ebx; /* 0x3C00228D: mov ecx, ebx */
   4210     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   4211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4212     ecx = ecx - edi; /* 0x3C00228F: sub ecx, edi */
   4213     _flag_k = FK_CMP;
   4214     eax = 0x2AAAAAABu; /* 0x3C002291: mov eax, 0x2aaaaaab */
   4215     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3C002296: imul ecx */
   4216       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4217       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4218     ecx = MEM32(ebp + 0x10); /* 0x3C002298: mov ecx, dword ptr [ebp + 0x10] */
   4219     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C00229B: sar edx, 1 */
   4220     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4221     edx = (uint32_t)((int32_t)edx >> 1u);
   4222     eax = edx; /* 0x3C00229D: mov eax, edx */
   4223     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3C00229F: shr eax, 0x1f */
   4224     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4225     eax = eax >> 31u; /* 0x3C00229F: shr eax, 0x1f */
   4226     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4227     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4228     edx = edx + eax; /* 0x3C0022A2: add edx, eax */
   4229     _flag_k = FK_ADD;
   4230     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   4231     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4232     esi = esi - edx; /* 0x3C0022A4: sub esi, edx */
   4233     _flag_k = FK_CMP;
   4234     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3C0022C7; /* 0x3C0022A6: je 0x3c0022c7 */
   4235 L_3C0022A8:
   4236     /* test ebx, ebx */ /* 0x3C0022A8: test ebx, ebx */
   4237     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4238     _cf = 0;
   4239     _flag_k = FK_TEST;
   4240     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0022C1; /* 0x3C0022AA: je 0x3c0022c1 */
   4241 L_3C0022AC:
   4242     eax = MEM32(ecx); /* 0x3C0022AC: mov eax, dword ptr [ecx] */
   4243     edx = ebx; /* 0x3C0022AE: mov edx, ebx */
   4244     MEM32(edx) = eax; /* 0x3C0022B0: mov dword ptr [edx], eax */
   4245     eax = MEM32(ecx + 0x4); /* 0x3C0022B2: mov eax, dword ptr [ecx + 4] */
   4246     MEM32(edx + 0x4) = eax; /* 0x3C0022B5: mov dword ptr [edx + 4], eax */
   4247     ecx = MEM32(ecx + 0x8); /* 0x3C0022B8: mov ecx, dword ptr [ecx + 8] */
   4248     MEM32(edx + 0x8) = ecx; /* 0x3C0022BB: mov dword ptr [edx + 8], ecx */
   4249     ecx = MEM32(ebp + 0x10); /* 0x3C0022BE: mov ecx, dword ptr [ebp + 0x10] */
   4250 L_3C0022C1:
   4251     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   4252     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4253     ebx = ebx + 0xCu; /* 0x3C0022C1: add ebx, 0xc */
   4254     _flag_k = FK_ADD;
   4255     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   4256     esi = esi - 1; /* 0x3C0022C4: dec esi */
   4257     _flag_k = FK_DEC;
   4258     RECOMP_BACKEDGE();
   4259     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3C0022A8; /* 0x3C0022C5: jne 0x3c0022a8 */
   4260 L_3C0022C7:
   4261     edx = MEM32(ebp + (-0x4)); /* 0x3C0022C7: mov edx, dword ptr [ebp - 4] */
   4262     eax = MEM32(edx + 0x8); /* 0x3C0022CA: mov eax, dword ptr [edx + 8] */
   4263     /* cmp edi, eax */ /* 0x3C0022CD: cmp edi, eax */
   4264     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4265     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4266     _flag_k = FK_CMP;
   4267     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0022EF; /* 0x3C0022CF: je 0x3c0022ef */
   4268 L_3C0022D1:
   4269     edx = ecx; /* 0x3C0022D1: mov edx, ecx */
   4270     ebx = MEM32(edx); /* 0x3C0022D3: mov ebx, dword ptr [edx] */
   4271     esi = edi; /* 0x3C0022D5: mov esi, edi */
   4272     MEM32(esi) = ebx; /* 0x3C0022D7: mov dword ptr [esi], ebx */
   4273     ebx = MEM32(edx + 0x4); /* 0x3C0022D9: mov ebx, dword ptr [edx + 4] */
   4274     MEM32(esi + 0x4) = ebx; /* 0x3C0022DC: mov dword ptr [esi + 4], ebx */
   4275     edx = MEM32(edx + 0x8); /* 0x3C0022DF: mov edx, dword ptr [edx + 8] */
   4276     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   4277     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4278     edi = edi + 0xCu; /* 0x3C0022E2: add edi, 0xc */
   4279     _flag_k = FK_ADD;
   4280     /* cmp edi, eax */ /* 0x3C0022E5: cmp edi, eax */
   4281     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4283     _flag_k = FK_CMP;
   4284     MEM32(esi + 0x8) = edx; /* 0x3C0022E7: mov dword ptr [esi + 8], edx */
   4285     RECOMP_BACKEDGE();
   4286     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0022D1; /* 0x3C0022EA: jne 0x3c0022d1 */
   4287 L_3C0022EC:
   4288     edx = MEM32(ebp + (-0x4)); /* 0x3C0022EC: mov edx, dword ptr [ebp - 4] */
   4289 L_3C0022EF:
   4290     ecx = MEM32(edx + 0x8); /* 0x3C0022EF: mov ecx, dword ptr [edx + 8] */
   4291     eax = MEM32(ebp + 0x8); /* 0x3C0022F2: mov eax, dword ptr [ebp + 8] */
   4292     edi = POP32_VAL(esp); /* 0x3C0022F5: pop edi */
   4293     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4294     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4295     ecx = ecx + eax; /* 0x3C0022F6: add ecx, eax */
   4296     _flag_k = FK_ADD;
   4297     esi = POP32_VAL(esp); /* 0x3C0022F8: pop esi */
   4298     MEM32(edx + 0x8) = ecx; /* 0x3C0022F9: mov dword ptr [edx + 8], ecx */
   4299     ebx = POP32_VAL(esp); /* 0x3C0022FC: pop ebx */
   4300     esp = ebp; /* 0x3C0022FD: mov esp, ebp */
   4301     ebp = POP32_VAL(esp); /* 0x3C0022FF: pop ebp */
   4302     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C002300: ret 0xc */
   4303 L_3C002303:
   4304     /* test esi, esi */ /* 0x3C002303: test esi, esi */
   4305     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4306     _cf = 0;
   4307     _flag_k = FK_TEST;
   4308     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0023A5; /* 0x3C002305: jbe 0x3c0023a5 */
   4309 L_3C00230B:
   4310     esi = esi + esi * 2; /* 0x3C00230B: lea esi, [esi + esi*2] */
   4311     if (2u) _cf = (((esi) >> 30) & 1u); /* 0x3C00230E: shl esi, 2 */
   4312     if (2u) { _flag_a = recomp_flags_pack((esi << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4313     esi = esi << 2u; /* 0x3C00230E: shl esi, 2 */
   4314     eax = ecx; /* 0x3C002311: mov eax, ecx */
   4315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4317     eax = eax - esi; /* 0x3C002313: sub eax, esi */
   4318     _flag_k = FK_CMP;
   4319     /* cmp eax, ecx */ /* 0x3C002315: cmp eax, ecx */
   4320     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4322     _flag_k = FK_CMP;
   4323     edx = ecx; /* 0x3C002317: mov edx, ecx */
   4324     MEM32(ebp + 0xC) = edx; /* 0x3C002319: mov dword ptr [ebp + 0xc], edx */
   4325     MEM32(ebp + 0x8) = esi; /* 0x3C00231C: mov dword ptr [ebp + 8], esi */
   4326     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00234D; /* 0x3C00231F: je 0x3c00234d */
   4327 L_3C002321:
   4328     /* test edx, edx */ /* 0x3C002321: test edx, edx */
   4329     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4330     _cf = 0;
   4331     _flag_k = FK_TEST;
   4332     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002340; /* 0x3C002323: je 0x3c002340 */
   4333 L_3C002325:
   4334     esi = eax; /* 0x3C002325: mov esi, eax */
   4335     ebx = MEM32(esi); /* 0x3C002327: mov ebx, dword ptr [esi] */
   4336     MEM32(edx) = ebx; /* 0x3C002329: mov dword ptr [edx], ebx */
   4337     ebx = MEM32(esi + 0x4); /* 0x3C00232B: mov ebx, dword ptr [esi + 4] */
   4338     MEM32(edx + 0x4) = ebx; /* 0x3C00232E: mov dword ptr [edx + 4], ebx */
   4339     esi = MEM32(esi + 0x8); /* 0x3C002331: mov esi, dword ptr [esi + 8] */
   4340     ebx = MEM32(ebp + (-0x4)); /* 0x3C002334: mov ebx, dword ptr [ebp - 4] */
   4341     MEM32(edx + 0x8) = esi; /* 0x3C002337: mov dword ptr [edx + 8], esi */
   4342     edx = MEM32(ebp + 0xC); /* 0x3C00233A: mov edx, dword ptr [ebp + 0xc] */
   4343     esi = MEM32(ebp + 0x8); /* 0x3C00233D: mov esi, dword ptr [ebp + 8] */
   4344 L_3C002340:
   4345     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   4346     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4347     edx = edx + 0xCu; /* 0x3C002340: add edx, 0xc */
   4348     _flag_k = FK_ADD;
   4349     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   4350     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4351     eax = eax + 0xCu; /* 0x3C002343: add eax, 0xc */
   4352     _flag_k = FK_ADD;
   4353     /* cmp eax, ecx */ /* 0x3C002346: cmp eax, ecx */
   4354     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4356     _flag_k = FK_CMP;
   4357     MEM32(ebp + 0xC) = edx; /* 0x3C002348: mov dword ptr [ebp + 0xc], edx */
   4358     RECOMP_BACKEDGE();
   4359     if (CMP_NE(_flag_a, _flag_b)) goto L_3C002321; /* 0x3C00234B: jne 0x3c002321 */
   4360 L_3C00234D:
   4361     ecx = MEM32(ebx + 0x8); /* 0x3C00234D: mov ecx, dword ptr [ebx + 8] */
   4362     eax = ecx; /* 0x3C002350: mov eax, ecx */
   4363     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4365     eax = eax - esi; /* 0x3C002352: sub eax, esi */
   4366     _flag_k = FK_CMP;
   4367     /* cmp edi, eax */ /* 0x3C002354: cmp edi, eax */
   4368     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4370     _flag_k = FK_CMP;
   4371     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00237C; /* 0x3C002356: je 0x3c00237c */
   4372 L_3C002358:
   4373     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   4374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4375     eax = eax - 0xCu; /* 0x3C002358: sub eax, 0xc */
   4376     _flag_k = FK_CMP;
   4377     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   4378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4379     ecx = ecx - 0xCu; /* 0x3C00235B: sub ecx, 0xc */
   4380     _flag_k = FK_CMP;
   4381     /* cmp eax, edi */ /* 0x3C00235E: cmp eax, edi */
   4382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4384     _flag_k = FK_CMP;
   4385     edx = eax; /* 0x3C002360: mov edx, eax */
   4386     ebx = MEM32(edx); /* 0x3C002362: mov ebx, dword ptr [edx] */
   4387     esi = ecx; /* 0x3C002364: mov esi, ecx */
   4388     MEM32(esi) = ebx; /* 0x3C002366: mov dword ptr [esi], ebx */
   4389     ebx = MEM32(edx + 0x4); /* 0x3C002368: mov ebx, dword ptr [edx + 4] */
   4390     MEM32(esi + 0x4) = ebx; /* 0x3C00236B: mov dword ptr [esi + 4], ebx */
   4391     edx = MEM32(edx + 0x8); /* 0x3C00236E: mov edx, dword ptr [edx + 8] */
   4392     MEM32(esi + 0x8) = edx; /* 0x3C002371: mov dword ptr [esi + 8], edx */
   4393     RECOMP_BACKEDGE();
   4394     if (CMP_NE(_flag_a, _flag_b)) goto L_3C002358; /* 0x3C002374: jne 0x3c002358 */
   4395 L_3C002376:
   4396     esi = MEM32(ebp + 0x8); /* 0x3C002376: mov esi, dword ptr [ebp + 8] */
   4397     ebx = MEM32(ebp + (-0x4)); /* 0x3C002379: mov ebx, dword ptr [ebp - 4] */
   4398 L_3C00237C:
   4399     eax = esi + edi; /* 0x3C00237C: lea eax, [esi + edi] */
   4400     /* cmp edi, eax */ /* 0x3C00237F: cmp edi, eax */
   4401     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4403     _flag_k = FK_CMP;
   4404     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0023A2; /* 0x3C002381: je 0x3c0023a2 */
   4405 L_3C002383:
   4406     ecx = MEM32(ebp + 0x10); /* 0x3C002383: mov ecx, dword ptr [ebp + 0x10] */
   4407     ebx = MEM32(ecx); /* 0x3C002386: mov ebx, dword ptr [ecx] */
   4408     edx = edi; /* 0x3C002388: mov edx, edi */
   4409     MEM32(edx) = ebx; /* 0x3C00238A: mov dword ptr [edx], ebx */
   4410     ebx = MEM32(ecx + 0x4); /* 0x3C00238C: mov ebx, dword ptr [ecx + 4] */
   4411     MEM32(edx + 0x4) = ebx; /* 0x3C00238F: mov dword ptr [edx + 4], ebx */
   4412     ecx = MEM32(ecx + 0x8); /* 0x3C002392: mov ecx, dword ptr [ecx + 8] */
   4413     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   4414     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4415     edi = edi + 0xCu; /* 0x3C002395: add edi, 0xc */
   4416     _flag_k = FK_ADD;
   4417     /* cmp edi, eax */ /* 0x3C002398: cmp edi, eax */
   4418     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4419     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4420     _flag_k = FK_CMP;
   4421     MEM32(edx + 0x8) = ecx; /* 0x3C00239A: mov dword ptr [edx + 8], ecx */
   4422     RECOMP_BACKEDGE();
   4423     if (CMP_NE(_flag_a, _flag_b)) goto L_3C002383; /* 0x3C00239D: jne 0x3c002383 */
   4424 L_3C00239F:
   4425     ebx = MEM32(ebp + (-0x4)); /* 0x3C00239F: mov ebx, dword ptr [ebp - 4] */
   4426 L_3C0023A2:
   4427     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   4428     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4429     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + esi; /* 0x3C0023A2: add dword ptr [ebx + 8], esi */
   4430     _flag_k = FK_ADD;
   4431 L_3C0023A5:
   4432     edi = POP32_VAL(esp); /* 0x3C0023A5: pop edi */
   4433     esi = POP32_VAL(esp); /* 0x3C0023A6: pop esi */
   4434     ebx = POP32_VAL(esp); /* 0x3C0023A7: pop ebx */
   4435     esp = ebp; /* 0x3C0023A8: mov esp, ebp */
   4436     ebp = POP32_VAL(esp); /* 0x3C0023AA: pop ebp */
   4437     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C0023AB: ret 0xc */
   4438     RECOMP_REGS_OUT();
   4439 }
   4440 
   4441 void sub_3C0023B0(void) {
   4442     int _fpu_cmp = 0;
   4443     uint32_t _cf = 0;
   4444     int _df = 1;
   4445     uint32_t _flag_k = FK_NONE;
   4446     uint32_t _flag_a = 0, _flag_b = 0;
   4447     uint32_t _itail_tgt = 0;
   4448     RECOMP_REGS_LOCALS
   4449     RECOMP_ENTER(0x3C0023B0u);
   4450 
   4451 L_3C0023B0:
   4452     PUSH32(esp, ebp); /* 0x3C0023B0: push ebp */
   4453     ebp = esp; /* 0x3C0023B1: mov ebp, esp */
   4454     eax = MEM32(ebp + 0xC); /* 0x3C0023B3: mov eax, dword ptr [ebp + 0xc] */
   4455     /* test eax, eax */ /* 0x3C0023B6: test eax, eax */
   4456     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4457     _cf = 0;
   4458     _flag_k = FK_TEST;
   4459     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0023D2; /* 0x3C0023B8: jbe 0x3c0023d2 */
   4460 L_3C0023BA:
   4461     edx = MEM32(ebp + 0x10); /* 0x3C0023BA: mov edx, dword ptr [ebp + 0x10] */
   4462     ecx = eax; /* 0x3C0023BD: mov ecx, eax */
   4463     eax = MEM32(ebp + 0x8); /* 0x3C0023BF: mov eax, dword ptr [ebp + 8] */
   4464     PUSH32(esp, esi); /* 0x3C0023C2: push esi */
   4465 L_3C0023C3:
   4466     /* test eax, eax */ /* 0x3C0023C3: test eax, eax */
   4467     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4468     _cf = 0;
   4469     _flag_k = FK_TEST;
   4470     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0023CB; /* 0x3C0023C5: je 0x3c0023cb */
   4471 L_3C0023C7:
   4472     esi = MEM32(edx); /* 0x3C0023C7: mov esi, dword ptr [edx] */
   4473     MEM32(eax) = esi; /* 0x3C0023C9: mov dword ptr [eax], esi */
   4474 L_3C0023CB:
   4475     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4476     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4477     eax = eax + 4; /* 0x3C0023CB: add eax, 4 */
   4478     _flag_k = FK_ADD;
   4479     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4480     ecx = ecx - 1; /* 0x3C0023CE: dec ecx */
   4481     _flag_k = FK_DEC;
   4482     RECOMP_BACKEDGE();
   4483     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3C0023C3; /* 0x3C0023CF: jne 0x3c0023c3 */
   4484 L_3C0023D1:
   4485     esi = POP32_VAL(esp); /* 0x3C0023D1: pop esi */
   4486 L_3C0023D2:
   4487     ebp = POP32_VAL(esp); /* 0x3C0023D2: pop ebp */
   4488     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C0023D3: ret 0xc */
   4489     RECOMP_REGS_OUT();
   4490 }
   4491 
   4492 void sub_3C0023E0(void) {
   4493     int _fpu_cmp = 0;
   4494     uint32_t _cf = 0;
   4495     int _df = 1;
   4496     uint32_t _flag_k = FK_NONE;
   4497     uint32_t _flag_a = 0, _flag_b = 0;
   4498     uint32_t _itail_tgt = 0;
   4499     RECOMP_REGS_LOCALS
   4500     RECOMP_ENTER(0x3C0023E0u);
   4501 
   4502 L_3C0023E0:
   4503     eax = MEM32(ecx + 0x4); /* 0x3C0023E0: mov eax, dword ptr [ecx + 4] */
   4504     /* test eax, eax */ /* 0x3C0023E3: test eax, eax */
   4505     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4506     _cf = 0;
   4507     _flag_k = FK_TEST;
   4508     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0023E8; /* 0x3C0023E5: jne 0x3c0023e8 */
   4509 L_3C0023E7:
   4510     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0023E7: ret  */
   4511 L_3C0023E8:
   4512     ecx = MEM32(ecx + 0x8); /* 0x3C0023E8: mov ecx, dword ptr [ecx + 8] */
   4513     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4515     ecx = ecx - eax; /* 0x3C0023EB: sub ecx, eax */
   4516     _flag_k = FK_CMP;
   4517     eax = 0x2AAAAAABu; /* 0x3C0023ED: mov eax, 0x2aaaaaab */
   4518     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3C0023F2: imul ecx */
   4519       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4520       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4521     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3C0023F4: sar edx, 1 */
   4522     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4523     edx = (uint32_t)((int32_t)edx >> 1u);
   4524     eax = edx; /* 0x3C0023F6: mov eax, edx */
   4525     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3C0023F8: shr eax, 0x1f */
   4526     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4527     eax = eax >> 31u; /* 0x3C0023F8: shr eax, 0x1f */
   4528     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4529     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4530     edx = edx + eax; /* 0x3C0023FB: add edx, eax */
   4531     _flag_k = FK_ADD;
   4532     eax = edx; /* 0x3C0023FD: mov eax, edx */
   4533     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0023FF: ret  */
   4534     RECOMP_REGS_OUT();
   4535 }
   4536 
   4537 void sub_3C002400(void) {
   4538     int _fpu_cmp = 0;
   4539     uint32_t _cf = 0;
   4540     int _df = 1;
   4541     uint32_t _flag_k = FK_NONE;
   4542     uint32_t _flag_a = 0, _flag_b = 0;
   4543     uint32_t _itail_tgt = 0;
   4544     RECOMP_REGS_LOCALS
   4545     RECOMP_ENTER(0x3C002400u);
   4546 
   4547 L_3C002400:
   4548     PUSH32(esp, ebp); /* 0x3C002400: push ebp */
   4549     ebp = esp; /* 0x3C002401: mov ebp, esp */
   4550     ecx = MEM32(ebp + 0x8); /* 0x3C002403: mov ecx, dword ptr [ebp + 8] */
   4551     edx = MEM32(ebp + 0xC); /* 0x3C002406: mov edx, dword ptr [ebp + 0xc] */
   4552     /* cmp ecx, edx */ /* 0x3C002409: cmp ecx, edx */
   4553     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4554     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4555     _flag_k = FK_CMP;
   4556     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00243C; /* 0x3C00240B: je 0x3c00243c */
   4557 L_3C00240D:
   4558     eax = MEM32(ebp + 0x10); /* 0x3C00240D: mov eax, dword ptr [ebp + 0x10] */
   4559     PUSH32(esp, ebx); /* 0x3C002410: push ebx */
   4560     PUSH32(esp, esi); /* 0x3C002411: push esi */
   4561     PUSH32(esp, edi); /* 0x3C002412: push edi */
   4562 L_3C002413:
   4563     /* test eax, eax */ /* 0x3C002413: test eax, eax */
   4564     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4565     _cf = 0;
   4566     _flag_k = FK_TEST;
   4567     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00242B; /* 0x3C002415: je 0x3c00242b */
   4568 L_3C002417:
   4569     esi = ecx; /* 0x3C002417: mov esi, ecx */
   4570     ebx = MEM32(esi); /* 0x3C002419: mov ebx, dword ptr [esi] */
   4571     edi = eax; /* 0x3C00241B: mov edi, eax */
   4572     MEM32(edi) = ebx; /* 0x3C00241D: mov dword ptr [edi], ebx */
   4573     ebx = MEM32(esi + 0x4); /* 0x3C00241F: mov ebx, dword ptr [esi + 4] */
   4574     MEM32(edi + 0x4) = ebx; /* 0x3C002422: mov dword ptr [edi + 4], ebx */
   4575     esi = MEM32(esi + 0x8); /* 0x3C002425: mov esi, dword ptr [esi + 8] */
   4576     MEM32(edi + 0x8) = esi; /* 0x3C002428: mov dword ptr [edi + 8], esi */
   4577 L_3C00242B:
   4578     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   4579     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4580     ecx = ecx + 0xCu; /* 0x3C00242B: add ecx, 0xc */
   4581     _flag_k = FK_ADD;
   4582     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   4583     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4584     eax = eax + 0xCu; /* 0x3C00242E: add eax, 0xc */
   4585     _flag_k = FK_ADD;
   4586     /* cmp ecx, edx */ /* 0x3C002431: cmp ecx, edx */
   4587     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4589     _flag_k = FK_CMP;
   4590     RECOMP_BACKEDGE();
   4591     if (CMP_NE(_flag_a, _flag_b)) goto L_3C002413; /* 0x3C002433: jne 0x3c002413 */
   4592 L_3C002435:
   4593     edi = POP32_VAL(esp); /* 0x3C002435: pop edi */
   4594     esi = POP32_VAL(esp); /* 0x3C002436: pop esi */
   4595     ebx = POP32_VAL(esp); /* 0x3C002437: pop ebx */
   4596     ebp = POP32_VAL(esp); /* 0x3C002438: pop ebp */
   4597     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C002439: ret 0xc */
   4598 L_3C00243C:
   4599     eax = MEM32(ebp + 0x10); /* 0x3C00243C: mov eax, dword ptr [ebp + 0x10] */
   4600     ebp = POP32_VAL(esp); /* 0x3C00243F: pop ebp */
   4601     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C002440: ret 0xc */
   4602     RECOMP_REGS_OUT();
   4603 }
   4604 
   4605 void sub_3C002450(void) {
   4606     int _fpu_cmp = 0;
   4607     uint32_t _cf = 0;
   4608     int _df = 1;
   4609     uint32_t _flag_k = FK_NONE;
   4610     uint32_t _flag_a = 0, _flag_b = 0;
   4611     uint32_t _itail_tgt = 0;
   4612     RECOMP_REGS_LOCALS
   4613     RECOMP_ENTER(0x3C002450u);
   4614 
   4615 L_3C002450:
   4616     PUSH32(esp, ebp); /* 0x3C002450: push ebp */
   4617     ebp = esp; /* 0x3C002451: mov ebp, esp */
   4618     eax = MEM32(ebp + 0xC); /* 0x3C002453: mov eax, dword ptr [ebp + 0xc] */
   4619     /* test eax, eax */ /* 0x3C002456: test eax, eax */
   4620     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4621     _cf = 0;
   4622     _flag_k = FK_TEST;
   4623     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002486; /* 0x3C002458: jbe 0x3c002486 */
   4624 L_3C00245A:
   4625     edx = MEM32(ebp + 0x10); /* 0x3C00245A: mov edx, dword ptr [ebp + 0x10] */
   4626     PUSH32(esp, ebx); /* 0x3C00245D: push ebx */
   4627     PUSH32(esp, esi); /* 0x3C00245E: push esi */
   4628     ecx = eax; /* 0x3C00245F: mov ecx, eax */
   4629     eax = MEM32(ebp + 0x8); /* 0x3C002461: mov eax, dword ptr [ebp + 8] */
   4630     PUSH32(esp, edi); /* 0x3C002464: push edi */
   4631 L_3C002465:
   4632     /* test eax, eax */ /* 0x3C002465: test eax, eax */
   4633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4634     _cf = 0;
   4635     _flag_k = FK_TEST;
   4636     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00247D; /* 0x3C002467: je 0x3c00247d */
   4637 L_3C002469:
   4638     esi = edx; /* 0x3C002469: mov esi, edx */
   4639     ebx = MEM32(esi); /* 0x3C00246B: mov ebx, dword ptr [esi] */
   4640     edi = eax; /* 0x3C00246D: mov edi, eax */
   4641     MEM32(edi) = ebx; /* 0x3C00246F: mov dword ptr [edi], ebx */
   4642     ebx = MEM32(esi + 0x4); /* 0x3C002471: mov ebx, dword ptr [esi + 4] */
   4643     MEM32(edi + 0x4) = ebx; /* 0x3C002474: mov dword ptr [edi + 4], ebx */
   4644     esi = MEM32(esi + 0x8); /* 0x3C002477: mov esi, dword ptr [esi + 8] */
   4645     MEM32(edi + 0x8) = esi; /* 0x3C00247A: mov dword ptr [edi + 8], esi */
   4646 L_3C00247D:
   4647     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   4648     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4649     eax = eax + 0xCu; /* 0x3C00247D: add eax, 0xc */
   4650     _flag_k = FK_ADD;
   4651     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4652     ecx = ecx - 1; /* 0x3C002480: dec ecx */
   4653     _flag_k = FK_DEC;
   4654     RECOMP_BACKEDGE();
   4655     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3C002465; /* 0x3C002481: jne 0x3c002465 */
   4656 L_3C002483:
   4657     edi = POP32_VAL(esp); /* 0x3C002483: pop edi */
   4658     esi = POP32_VAL(esp); /* 0x3C002484: pop esi */
   4659     ebx = POP32_VAL(esp); /* 0x3C002485: pop ebx */
   4660 L_3C002486:
   4661     ebp = POP32_VAL(esp); /* 0x3C002486: pop ebp */
   4662     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C002487: ret 0xc */
   4663     RECOMP_REGS_OUT();
   4664 }
   4665 
   4666 void sub_3C002490(void) {
   4667     int _fpu_cmp = 0;
   4668     uint32_t _cf = 0;
   4669     int _df = 1;
   4670     uint32_t _flag_k = FK_NONE;
   4671     uint32_t _flag_a = 0, _flag_b = 0;
   4672     uint32_t _itail_tgt = 0;
   4673     RECOMP_REGS_LOCALS
   4674     RECOMP_ENTER(0x3C002490u);
   4675 
   4676 L_3C002490:
   4677     PUSH32(esp, esi); /* 0x3C002490: push esi */
   4678     esi = MEM32(ecx); /* 0x3C002491: mov esi, dword ptr [ecx] */
   4679     /* test esi, esi */ /* 0x3C002493: test esi, esi */
   4680     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4681     _cf = 0;
   4682     _flag_k = FK_TEST;
   4683     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0024B3; /* 0x3C002495: je 0x3c0024b3 */
   4684 L_3C002497:
   4685     eax = MEM32(esi + 0x8); /* 0x3C002497: mov eax, dword ptr [esi + 8] */
   4686     /* test eax, eax */ /* 0x3C00249A: test eax, eax */
   4687     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4688     _cf = 0;
   4689     _flag_k = FK_TEST;
   4690     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0024AA; /* 0x3C00249C: jne 0x3c0024aa */
   4691 L_3C00249E:
   4692     eax = MEM32(esi + 0x4); /* 0x3C00249E: mov eax, dword ptr [esi + 4] */
   4693     PUSH32(esp, eax); /* 0x3C0024A1: push eax */
   4694     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0024A2: call 0x3c0089de */ /* not lifted */
   4695     RECOMP_FLAGS_IN();
   4696     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4697     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4698     esp = esp + 4; /* 0x3C0024A7: add esp, 4 */
   4699     _flag_k = FK_ADD;
   4700 L_3C0024AA:
   4701     PUSH32(esp, esi); /* 0x3C0024AA: push esi */
   4702     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0024AB: call 0x3c0089de */ /* not lifted */
   4703     RECOMP_FLAGS_IN();
   4704     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4705     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4706     esp = esp + 4; /* 0x3C0024B0: add esp, 4 */
   4707     _flag_k = FK_ADD;
   4708 L_3C0024B3:
   4709     esi = POP32_VAL(esp); /* 0x3C0024B3: pop esi */
   4710     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0024B4: ret  */
   4711     RECOMP_REGS_OUT();
   4712 }
   4713 
   4714 void sub_3C0024C0(void) {
   4715     int _fpu_cmp = 0;
   4716     uint32_t _cf = 0;
   4717     int _df = 1;
   4718     uint32_t _flag_k = FK_NONE;
   4719     uint32_t _flag_a = 0, _flag_b = 0;
   4720     uint32_t _itail_tgt = 0;
   4721     RECOMP_REGS_LOCALS
   4722     RECOMP_ENTER(0x3C0024C0u);
   4723 
   4724 L_3C0024C0:
   4725     PUSH32(esp, ebp); /* 0x3C0024C0: push ebp */
   4726     ebp = esp; /* 0x3C0024C1: mov ebp, esp */
   4727     eax = MEM32(ebp + 0x8); /* 0x3C0024C3: mov eax, dword ptr [ebp + 8] */
   4728     /* test eax, eax */ /* 0x3C0024C6: test eax, eax */
   4729     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4730     _cf = 0;
   4731     _flag_k = FK_TEST;
   4732     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0024DD; /* 0x3C0024C8: je 0x3c0024dd */
   4733 L_3C0024CA:
   4734     ecx = MEM32(ebp + 0xC); /* 0x3C0024CA: mov ecx, dword ptr [ebp + 0xc] */
   4735     edx = MEM32(ecx); /* 0x3C0024CD: mov edx, dword ptr [ecx] */
   4736     MEM32(eax) = edx; /* 0x3C0024CF: mov dword ptr [eax], edx */
   4737     edx = MEM32(ecx + 0x4); /* 0x3C0024D1: mov edx, dword ptr [ecx + 4] */
   4738     MEM32(eax + 0x4) = edx; /* 0x3C0024D4: mov dword ptr [eax + 4], edx */
   4739     ecx = MEM32(ecx + 0x8); /* 0x3C0024D7: mov ecx, dword ptr [ecx + 8] */
   4740     MEM32(eax + 0x8) = ecx; /* 0x3C0024DA: mov dword ptr [eax + 8], ecx */
   4741 L_3C0024DD:
   4742     ebp = POP32_VAL(esp); /* 0x3C0024DD: pop ebp */
   4743     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C0024DE: ret  */
   4744     RECOMP_REGS_OUT();
   4745 }
   4746 
   4747 void sub_3C0024E0(void) {
   4748     int _fpu_cmp = 0;
   4749     uint32_t _cf = 0;
   4750     int _df = 1;
   4751     uint32_t _flag_k = FK_NONE;
   4752     uint32_t _flag_a = 0, _flag_b = 0;
   4753     uint32_t _itail_tgt = 0;
   4754     RECOMP_REGS_LOCALS
   4755     RECOMP_ENTER(0x3C0024E0u);
   4756 
   4757 L_3C0024E0:
   4758     PUSH32(esp, ebp); /* 0x3C0024E0: push ebp */
   4759     ebp = esp; /* 0x3C0024E1: mov ebp, esp */
   4760     PUSH32(esp, esi); /* 0x3C0024E3: push esi */
   4761     esi = ecx; /* 0x3C0024E4: mov esi, ecx */
   4762     eax = MEM32(esi + 0x8); /* 0x3C0024E6: mov eax, dword ptr [esi + 8] */
   4763     /* test eax, eax */ /* 0x3C0024E9: test eax, eax */
   4764     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4765     _cf = 0;
   4766     _flag_k = FK_TEST;
   4767     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0024F9; /* 0x3C0024EB: jne 0x3c0024f9 */
   4768 L_3C0024ED:
   4769     eax = MEM32(esi + 0x4); /* 0x3C0024ED: mov eax, dword ptr [esi + 4] */
   4770     PUSH32(esp, eax); /* 0x3C0024F0: push eax */
   4771     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0024F1: call 0x3c0089de */ /* not lifted */
   4772     RECOMP_FLAGS_IN();
   4773     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4774     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4775     esp = esp + 4; /* 0x3C0024F6: add esp, 4 */
   4776     _flag_k = FK_ADD;
   4777 L_3C0024F9:
   4778     /* test MEM8(ebp + 0x8), 1 */ /* 0x3C0024F9: test byte ptr [ebp + 8], 1 */
   4779     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4780     _cf = 0;
   4781     _flag_k = FK_NARROW(FK_TEST, 24);
   4782     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002508; /* 0x3C0024FD: je 0x3c002508 */
   4783 L_3C0024FF:
   4784     PUSH32(esp, esi); /* 0x3C0024FF: push esi */
   4785     RECOMP_ICALL(0x3C0089DEu); /* 0x3C002500: call 0x3c0089de */ /* not lifted */
   4786     RECOMP_FLAGS_IN();
   4787     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4788     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4789     esp = esp + 4; /* 0x3C002505: add esp, 4 */
   4790     _flag_k = FK_ADD;
   4791 L_3C002508:
   4792     eax = esi; /* 0x3C002508: mov eax, esi */
   4793     esi = POP32_VAL(esp); /* 0x3C00250A: pop esi */
   4794     ebp = POP32_VAL(esp); /* 0x3C00250B: pop ebp */
   4795     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C00250C: ret 4 */
   4796     RECOMP_REGS_OUT();
   4797 }
   4798 
   4799 void sub_3C002510(void) {
   4800     int _fpu_cmp = 0;
   4801     uint32_t _cf = 0;
   4802     int _df = 1;
   4803     uint32_t _flag_k = FK_NONE;
   4804     uint32_t _flag_a = 0, _flag_b = 0;
   4805     uint32_t _itail_tgt = 0;
   4806     RECOMP_REGS_LOCALS
   4807     RECOMP_ENTER(0x3C002510u);
   4808 
   4809 L_3C002510:
   4810     PUSH32(esp, ebp); /* 0x3C002510: push ebp */
   4811     ebp = esp; /* 0x3C002511: mov ebp, esp */
   4812     PUSH32(esp, esi); /* 0x3C002513: push esi */
   4813     PUSH32(esp, edi); /* 0x3C002514: push edi */
   4814     edi = MEM32(ebp + 0x8); /* 0x3C002515: mov edi, dword ptr [ebp + 8] */
   4815     eax = edi * 4; /* 0x3C002518: lea eax, [edi*4] */
   4816     PUSH32(esp, eax); /* 0x3C00251F: push eax */
   4817     esi = ecx; /* 0x3C002520: mov esi, ecx */
   4818     RECOMP_ICALL(0x3C008B40u); /* 0x3C002522: call 0x3c008b40 */ /* not lifted */
   4819     RECOMP_FLAGS_IN();
   4820     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4821     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4822     esp = esp + 4; /* 0x3C002527: add esp, 4 */
   4823     _flag_k = FK_ADD;
   4824     MEM32(esi + 0x4) = eax; /* 0x3C00252A: mov dword ptr [esi + 4], eax */
   4825     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4826     eax = 0; /* 0x3C00252D: xor eax, eax */
   4827     _cf = 0;
   4828     _flag_k = FK_TEST;
   4829     MEM32(esi + 0xC) = edi; /* 0x3C00252F: mov dword ptr [esi + 0xc], edi */
   4830     MEM32(esi + 0x10) = eax; /* 0x3C002532: mov dword ptr [esi + 0x10], eax */
   4831     MEM32(esi + 0x8) = eax; /* 0x3C002535: mov dword ptr [esi + 8], eax */
   4832     edi = POP32_VAL(esp); /* 0x3C002538: pop edi */
   4833     eax = esi; /* 0x3C002539: mov eax, esi */
   4834     esi = POP32_VAL(esp); /* 0x3C00253B: pop esi */
   4835     ebp = POP32_VAL(esp); /* 0x3C00253C: pop ebp */
   4836     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C00253D: ret 4 */
   4837     RECOMP_REGS_OUT();
   4838 }
   4839 
   4840 void sub_3C002540(void) {
   4841     int _fpu_cmp = 0;
   4842     uint32_t _cf = 0;
   4843     int _df = 1;
   4844     uint32_t _flag_k = FK_NONE;
   4845     uint32_t _flag_a = 0, _flag_b = 0;
   4846     uint32_t _itail_tgt = 0;
   4847     RECOMP_REGS_LOCALS
   4848     RECOMP_ENTER(0x3C002540u);
   4849 
   4850 L_3C002540:
   4851     PUSH32(esp, ebp); /* 0x3C002540: push ebp */
   4852     ebp = esp; /* 0x3C002541: mov ebp, esp */
   4853     edx = MEM32(ebp + 0x8); /* 0x3C002543: mov edx, dword ptr [ebp + 8] */
   4854     edx = MEM32(edx); /* 0x3C002546: mov edx, dword ptr [edx] */
   4855     PUSH32(esp, ebx); /* 0x3C002548: push ebx */
   4856     PUSH32(esp, esi); /* 0x3C002549: push esi */
   4857     PUSH32(esp, edi); /* 0x3C00254A: push edi */
   4858     edi = ecx; /* 0x3C00254B: mov edi, ecx */
   4859     eax = MEM32(edi + 0x10); /* 0x3C00254D: mov eax, dword ptr [edi + 0x10] */
   4860     ecx = MEM32(edi + 0x4); /* 0x3C002550: mov ecx, dword ptr [edi + 4] */
   4861     MEM32(ecx + eax * 4) = edx; /* 0x3C002553: mov dword ptr [ecx + eax*4], edx */
   4862     ebx = MEM32(edi + 0x10); /* 0x3C002556: mov ebx, dword ptr [edi + 0x10] */
   4863     eax = ebx + (-0x1); /* 0x3C002559: lea eax, [ebx - 1] */
   4864     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3C00255C: cdq  */
   4865     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4866     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4867     eax = eax - edx; /* 0x3C00255D: sub eax, edx */
   4868     _flag_k = FK_CMP;
   4869     esi = eax; /* 0x3C00255F: mov esi, eax */
   4870     eax = MEM32(edi + 0x4); /* 0x3C002561: mov eax, dword ptr [edi + 4] */
   4871     ecx = MEM32(eax + ebx * 4); /* 0x3C002564: mov ecx, dword ptr [eax + ebx*4] */
   4872     if (1u) _cf = (((esi) >> 0) & 1u); /* 0x3C002567: sar esi, 1 */
   4873     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4874     esi = (uint32_t)((int32_t)esi >> 1u);
   4875     /* test ebx, ebx */ /* 0x3C002569: test ebx, ebx */
   4876     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4877     _cf = 0;
   4878     _flag_k = FK_TEST;
   4879     MEM32(ebp + 0x8) = ecx; /* 0x3C00256B: mov dword ptr [ebp + 8], ecx */
   4880     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00259F; /* 0x3C00256E: je 0x3c00259f */
   4881 L_3C002570:
   4882     edx = MEM32(ebp + 0x8); /* 0x3C002570: mov edx, dword ptr [ebp + 8] */
   4883     eax = MEM32(edi + 0x4); /* 0x3C002573: mov eax, dword ptr [edi + 4] */
   4884     ecx = MEM32(eax + esi * 4); /* 0x3C002576: mov ecx, dword ptr [eax + esi*4] */
   4885     PUSH32(esp, edx); /* 0x3C002579: push edx */
   4886     PUSH32(esp, ecx); /* 0x3C00257A: push ecx */
   4887     ecx = edi; /* 0x3C00257B: mov ecx, edi */
   4888     RECOMP_ICALL(0x3C001540u); /* 0x3C00257D: call 0x3c001540 */ /* not lifted */
   4889     RECOMP_FLAGS_IN();
   4890     /* test LO8(eax), LO8(eax) */ /* 0x3C002582: test al, al */
   4891     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4892     _cf = 0;
   4893     _flag_k = FK_NARROW(FK_TEST, 24);
   4894     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00259F; /* 0x3C002584: jne 0x3c00259f */
   4895 L_3C002586:
   4896     eax = MEM32(edi + 0x4); /* 0x3C002586: mov eax, dword ptr [edi + 4] */
   4897     edx = MEM32(eax + esi * 4); /* 0x3C002589: mov edx, dword ptr [eax + esi*4] */
   4898     MEM32(eax + ebx * 4) = edx; /* 0x3C00258C: mov dword ptr [eax + ebx*4], edx */
   4899     eax = esi + (-0x1); /* 0x3C00258F: lea eax, [esi - 1] */
   4900     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3C002592: cdq  */
   4901     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4903     eax = eax - edx; /* 0x3C002593: sub eax, edx */
   4904     _flag_k = FK_CMP;
   4905     ebx = esi; /* 0x3C002595: mov ebx, esi */
   4906     if (1u) _cf = (((eax) >> 0) & 1u); /* 0x3C002597: sar eax, 1 */
   4907     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4908     eax = (uint32_t)((int32_t)eax >> 1u);
   4909     /* test ebx, ebx */ /* 0x3C002599: test ebx, ebx */
   4910     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4911     _cf = 0;
   4912     _flag_k = FK_TEST;
   4913     esi = eax; /* 0x3C00259B: mov esi, eax */
   4914     RECOMP_BACKEDGE();
   4915     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C002570; /* 0x3C00259D: jne 0x3c002570 */
   4916 L_3C00259F:
   4917     eax = MEM32(edi + 0x4); /* 0x3C00259F: mov eax, dword ptr [edi + 4] */
   4918     ecx = MEM32(ebp + 0x8); /* 0x3C0025A2: mov ecx, dword ptr [ebp + 8] */
   4919     MEM32(eax + ebx * 4) = ecx; /* 0x3C0025A5: mov dword ptr [eax + ebx*4], ecx */
   4920     _flag_a = (uint32_t)(MEM32(edi + 0x10)); _flag_b = (uint32_t)(1);
   4921     MEM32(edi + 0x10) = MEM32(edi + 0x10) + 1; /* 0x3C0025A8: inc dword ptr [edi + 0x10] */
   4922     _flag_k = FK_INC;
   4923     edi = POP32_VAL(esp); /* 0x3C0025AB: pop edi */
   4924     esi = POP32_VAL(esp); /* 0x3C0025AC: pop esi */
   4925     ebx = POP32_VAL(esp); /* 0x3C0025AD: pop ebx */
   4926     ebp = POP32_VAL(esp); /* 0x3C0025AE: pop ebp */
   4927     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0025AF: ret 4 */
   4928     RECOMP_REGS_OUT();
   4929 }
   4930 
   4931 void sub_3C0025C0(void) {
   4932     int _fpu_cmp = 0;
   4933     uint32_t _cf = 0;
   4934     int _df = 1;
   4935     uint32_t _flag_k = FK_NONE;
   4936     uint32_t _flag_a = 0, _flag_b = 0;
   4937     uint32_t _itail_tgt = 0;
   4938     RECOMP_REGS_LOCALS
   4939     RECOMP_ENTER(0x3C0025C0u);
   4940 
   4941 L_3C0025C0:
   4942     PUSH32(esp, ebp); /* 0x3C0025C0: push ebp */
   4943     ebp = esp; /* 0x3C0025C1: mov ebp, esp */
   4944     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4946     esp = esp - 0xCu; /* 0x3C0025C3: sub esp, 0xc */
   4947     _flag_k = FK_CMP;
   4948     PUSH32(esp, esi); /* 0x3C0025C6: push esi */
   4949     esi = ecx; /* 0x3C0025C7: mov esi, ecx */
   4950     eax = MEM32(esi + 0x4); /* 0x3C0025C9: mov eax, dword ptr [esi + 4] */
   4951     ecx = MEM32(eax); /* 0x3C0025CC: mov ecx, dword ptr [eax] */
   4952     edx = MEM32(esi + 0x10); /* 0x3C0025CE: mov edx, dword ptr [esi + 0x10] */
   4953     MEM32(ebp + (-0xC)) = ecx; /* 0x3C0025D1: mov dword ptr [ebp - 0xc], ecx */
   4954     ecx = MEM32(eax + edx * 4 + (-0x4)); /* 0x3C0025D4: mov ecx, dword ptr [eax + edx*4 - 4] */
   4955     MEM32(eax) = ecx; /* 0x3C0025D8: mov dword ptr [eax], ecx */
   4956     edx = MEM32(esi + 0x10); /* 0x3C0025DA: mov edx, dword ptr [esi + 0x10] */
   4957     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   4958     edx = edx - 1; /* 0x3C0025DD: dec edx */
   4959     _flag_k = FK_DEC;
   4960     MEM32(esi + 0x10) = edx; /* 0x3C0025DE: mov dword ptr [esi + 0x10], edx */
   4961     eax = edx; /* 0x3C0025E1: mov eax, edx */
   4962     edx = MEM32(esi + 0x4); /* 0x3C0025E3: mov edx, dword ptr [esi + 4] */
   4963     ecx = MEM32(edx); /* 0x3C0025E6: mov ecx, dword ptr [edx] */
   4964     PUSH32(esp, edi); /* 0x3C0025E8: push edi */
   4965     edi = 1; /* 0x3C0025E9: mov edi, 1 */
   4966     /* cmp eax, edi */ /* 0x3C0025EE: cmp eax, edi */
   4967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4969     _flag_k = FK_CMP;
   4970     MEM32(ebp + (-0x4)) = 0; /* 0x3C0025F0: mov dword ptr [ebp - 4], 0 */
   4971     MEM32(ebp + (-0x8)) = ecx; /* 0x3C0025F7: mov dword ptr [ebp - 8], ecx */
   4972     if (CMP_LE(_flag_a, _flag_b)) goto L_3C002650; /* 0x3C0025FA: jle 0x3c002650 */
   4973 L_3C0025FC:
   4974     PUSH32(esp, ebx); /* 0x3C0025FC: push ebx */
   4975 L_3C0025FD:
   4976     eax = MEM32(esi + 0x10); /* 0x3C0025FD: mov eax, dword ptr [esi + 0x10] */
   4977     ebx = edi + 0x1; /* 0x3C002600: lea ebx, [edi + 1] */
   4978     /* cmp ebx, eax */ /* 0x3C002603: cmp ebx, eax */
   4979     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   4980     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4981     _flag_k = FK_CMP;
   4982     if (CMP_GE(_flag_a, _flag_b)) goto L_3C00261F; /* 0x3C002605: jge 0x3c00261f */
   4983 L_3C002607:
   4984     eax = MEM32(esi + 0x4); /* 0x3C002607: mov eax, dword ptr [esi + 4] */
   4985     edx = MEM32(eax + edi * 4); /* 0x3C00260A: mov edx, dword ptr [eax + edi*4] */
   4986     eax = MEM32(eax + ebx * 4); /* 0x3C00260D: mov eax, dword ptr [eax + ebx*4] */
   4987     PUSH32(esp, edx); /* 0x3C002610: push edx */
   4988     PUSH32(esp, eax); /* 0x3C002611: push eax */
   4989     ecx = esi; /* 0x3C002612: mov ecx, esi */
   4990     RECOMP_ICALL(0x3C001540u); /* 0x3C002614: call 0x3c001540 */ /* not lifted */
   4991     RECOMP_FLAGS_IN();
   4992     /* test LO8(eax), LO8(eax) */ /* 0x3C002619: test al, al */
   4993     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4994     _cf = 0;
   4995     _flag_k = FK_NARROW(FK_TEST, 24);
   4996     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00261F; /* 0x3C00261B: je 0x3c00261f */
   4997 L_3C00261D:
   4998     edi = ebx; /* 0x3C00261D: mov edi, ebx */
   4999 L_3C00261F:
   5000     ecx = MEM32(esi + 0x4); /* 0x3C00261F: mov ecx, dword ptr [esi + 4] */
   5001     edx = MEM32(ecx + edi * 4); /* 0x3C002622: mov edx, dword ptr [ecx + edi*4] */
   5002     eax = MEM32(ebp + (-0x8)); /* 0x3C002625: mov eax, dword ptr [ebp - 8] */
   5003     PUSH32(esp, edx); /* 0x3C002628: push edx */
   5004     PUSH32(esp, eax); /* 0x3C002629: push eax */
   5005     ecx = esi; /* 0x3C00262A: mov ecx, esi */
   5006     RECOMP_ICALL(0x3C001540u); /* 0x3C00262C: call 0x3c001540 */ /* not lifted */
   5007     RECOMP_FLAGS_IN();
   5008     /* test LO8(eax), LO8(eax) */ /* 0x3C002631: test al, al */
   5009     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5010     _cf = 0;
   5011     _flag_k = FK_NARROW(FK_TEST, 24);
   5012     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00264F; /* 0x3C002633: jne 0x3c00264f */
   5013 L_3C002635:
   5014     eax = MEM32(esi + 0x4); /* 0x3C002635: mov eax, dword ptr [esi + 4] */
   5015     ecx = MEM32(eax + edi * 4); /* 0x3C002638: mov ecx, dword ptr [eax + edi*4] */
   5016     edx = MEM32(ebp + (-0x4)); /* 0x3C00263B: mov edx, dword ptr [ebp - 4] */
   5017     MEM32(eax + edx * 4) = ecx; /* 0x3C00263E: mov dword ptr [eax + edx*4], ecx */
   5018     eax = MEM32(esi + 0x10); /* 0x3C002641: mov eax, dword ptr [esi + 0x10] */
   5019     MEM32(ebp + (-0x4)) = edi; /* 0x3C002644: mov dword ptr [ebp - 4], edi */
   5020     edi = edi + edi + 0x1; /* 0x3C002647: lea edi, [edi + edi + 1] */
   5021     /* cmp edi, eax */ /* 0x3C00264B: cmp edi, eax */
   5022     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   5023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5024     _flag_k = FK_CMP;
   5025     RECOMP_BACKEDGE();
   5026     if (CMP_L(_flag_a, _flag_b)) goto L_3C0025FD; /* 0x3C00264D: jl 0x3c0025fd */
   5027 L_3C00264F:
   5028     ebx = POP32_VAL(esp); /* 0x3C00264F: pop ebx */
   5029 L_3C002650:
   5030     eax = MEM32(esi + 0x4); /* 0x3C002650: mov eax, dword ptr [esi + 4] */
   5031     ecx = MEM32(ebp + (-0x8)); /* 0x3C002653: mov ecx, dword ptr [ebp - 8] */
   5032     edx = MEM32(ebp + (-0x4)); /* 0x3C002656: mov edx, dword ptr [ebp - 4] */
   5033     edi = POP32_VAL(esp); /* 0x3C002659: pop edi */
   5034     MEM32(eax + edx * 4) = ecx; /* 0x3C00265A: mov dword ptr [eax + edx*4], ecx */
   5035     eax = MEM32(ebp + (-0xC)); /* 0x3C00265D: mov eax, dword ptr [ebp - 0xc] */
   5036     esi = POP32_VAL(esp); /* 0x3C002660: pop esi */
   5037     esp = ebp; /* 0x3C002661: mov esp, ebp */
   5038     ebp = POP32_VAL(esp); /* 0x3C002663: pop ebp */
   5039     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002664: ret  */
   5040     RECOMP_REGS_OUT();
   5041 }
   5042 
   5043 void sub_3C002670(void) {
   5044     int _fpu_cmp = 0;
   5045     uint32_t _cf = 0;
   5046     int _df = 1;
   5047     uint32_t _flag_k = FK_NONE;
   5048     uint32_t _flag_a = 0, _flag_b = 0;
   5049     uint32_t _itail_tgt = 0;
   5050     RECOMP_REGS_LOCALS
   5051     RECOMP_ENTER(0x3C002670u);
   5052 
   5053 L_3C002670:
   5054     PUSH32(esp, ebp); /* 0x3C002670: push ebp */
   5055     ebp = esp; /* 0x3C002671: mov ebp, esp */
   5056     PUSH32(esp, ebx); /* 0x3C002673: push ebx */
   5057     ebx = MEM32(ebp + 0x8); /* 0x3C002674: mov ebx, dword ptr [ebp + 8] */
   5058     eax = ebx + (-0x1); /* 0x3C002677: lea eax, [ebx - 1] */
   5059     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3C00267A: cdq  */
   5060     PUSH32(esp, esi); /* 0x3C00267B: push esi */
   5061     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5063     eax = eax - edx; /* 0x3C00267C: sub eax, edx */
   5064     _flag_k = FK_CMP;
   5065     PUSH32(esp, edi); /* 0x3C00267E: push edi */
   5066     esi = eax; /* 0x3C00267F: mov esi, eax */
   5067     edi = ecx; /* 0x3C002681: mov edi, ecx */
   5068     eax = MEM32(edi + 0x4); /* 0x3C002683: mov eax, dword ptr [edi + 4] */
   5069     eax = MEM32(eax + ebx * 4); /* 0x3C002686: mov eax, dword ptr [eax + ebx*4] */
   5070     if (1u) _cf = (((esi) >> 0) & 1u); /* 0x3C002689: sar esi, 1 */
   5071     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5072     esi = (uint32_t)((int32_t)esi >> 1u);
   5073     /* test ebx, ebx */ /* 0x3C00268B: test ebx, ebx */
   5074     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5075     _cf = 0;
   5076     _flag_k = FK_TEST;
   5077     MEM32(ebp + 0x8) = eax; /* 0x3C00268D: mov dword ptr [ebp + 8], eax */
   5078     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0026E3; /* 0x3C002690: je 0x3c0026e3 */
   5079 L_3C002692:
   5080     goto L_3C002697; /* 0x3C002692: jmp 0x3c002697 */
   5081 L_3C002694:
   5082     eax = MEM32(ebp + 0x8); /* 0x3C002694: mov eax, dword ptr [ebp + 8] */
   5083 L_3C002697:
   5084     ecx = MEM32(edi + 0x4); /* 0x3C002697: mov ecx, dword ptr [edi + 4] */
   5085     edx = MEM32(ecx + esi * 4); /* 0x3C00269A: mov edx, dword ptr [ecx + esi*4] */
   5086     PUSH32(esp, eax); /* 0x3C00269D: push eax */
   5087     PUSH32(esp, edx); /* 0x3C00269E: push edx */
   5088     ecx = edi; /* 0x3C00269F: mov ecx, edi */
   5089     RECOMP_ICALL(0x3C001540u); /* 0x3C0026A1: call 0x3c001540 */ /* not lifted */
   5090     RECOMP_FLAGS_IN();
   5091     /* test LO8(eax), LO8(eax) */ /* 0x3C0026A6: test al, al */
   5092     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5093     _cf = 0;
   5094     _flag_k = FK_NARROW(FK_TEST, 24);
   5095     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0026D3; /* 0x3C0026A8: jne 0x3c0026d3 */
   5096 L_3C0026AA:
   5097     eax = MEM32(edi + 0x4); /* 0x3C0026AA: mov eax, dword ptr [edi + 4] */
   5098     ecx = MEM32(eax + esi * 4); /* 0x3C0026AD: mov ecx, dword ptr [eax + esi*4] */
   5099     MEM32(eax + ebx * 4) = ecx; /* 0x3C0026B0: mov dword ptr [eax + ebx*4], ecx */
   5100     eax = esi + (-0x1); /* 0x3C0026B3: lea eax, [esi - 1] */
   5101     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3C0026B6: cdq  */
   5102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5104     eax = eax - edx; /* 0x3C0026B7: sub eax, edx */
   5105     _flag_k = FK_CMP;
   5106     ebx = esi; /* 0x3C0026B9: mov ebx, esi */
   5107     if (1u) _cf = (((eax) >> 0) & 1u); /* 0x3C0026BB: sar eax, 1 */
   5108     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5109     eax = (uint32_t)((int32_t)eax >> 1u);
   5110     /* test ebx, ebx */ /* 0x3C0026BD: test ebx, ebx */
   5111     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5112     _cf = 0;
   5113     _flag_k = FK_TEST;
   5114     esi = eax; /* 0x3C0026BF: mov esi, eax */
   5115     RECOMP_BACKEDGE();
   5116     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C002694; /* 0x3C0026C1: jne 0x3c002694 */
   5117 L_3C0026C3:
   5118     edx = MEM32(edi + 0x4); /* 0x3C0026C3: mov edx, dword ptr [edi + 4] */
   5119     eax = MEM32(ebp + 0x8); /* 0x3C0026C6: mov eax, dword ptr [ebp + 8] */
   5120     edi = POP32_VAL(esp); /* 0x3C0026C9: pop edi */
   5121     esi = POP32_VAL(esp); /* 0x3C0026CA: pop esi */
   5122     MEM32(edx + ebx * 4) = eax; /* 0x3C0026CB: mov dword ptr [edx + ebx*4], eax */
   5123     ebx = POP32_VAL(esp); /* 0x3C0026CE: pop ebx */
   5124     ebp = POP32_VAL(esp); /* 0x3C0026CF: pop ebp */
   5125     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0026D0: ret 4 */
   5126 L_3C0026D3:
   5127     ecx = MEM32(edi + 0x4); /* 0x3C0026D3: mov ecx, dword ptr [edi + 4] */
   5128     edx = MEM32(ebp + 0x8); /* 0x3C0026D6: mov edx, dword ptr [ebp + 8] */
   5129     edi = POP32_VAL(esp); /* 0x3C0026D9: pop edi */
   5130     esi = POP32_VAL(esp); /* 0x3C0026DA: pop esi */
   5131     MEM32(ecx + ebx * 4) = edx; /* 0x3C0026DB: mov dword ptr [ecx + ebx*4], edx */
   5132     ebx = POP32_VAL(esp); /* 0x3C0026DE: pop ebx */
   5133     ebp = POP32_VAL(esp); /* 0x3C0026DF: pop ebp */
   5134     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0026E0: ret 4 */
   5135 L_3C0026E3:
   5136     ecx = MEM32(edi + 0x4); /* 0x3C0026E3: mov ecx, dword ptr [edi + 4] */
   5137     edi = POP32_VAL(esp); /* 0x3C0026E6: pop edi */
   5138     esi = POP32_VAL(esp); /* 0x3C0026E7: pop esi */
   5139     MEM32(ecx + ebx * 4) = eax; /* 0x3C0026E8: mov dword ptr [ecx + ebx*4], eax */
   5140     ebx = POP32_VAL(esp); /* 0x3C0026EB: pop ebx */
   5141     ebp = POP32_VAL(esp); /* 0x3C0026EC: pop ebp */
   5142     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0026ED: ret 4 */
   5143     RECOMP_REGS_OUT();
   5144 }
   5145 
   5146 void sub_3C0026F0(void) {
   5147     int _fpu_cmp = 0;
   5148     uint32_t _cf = 0;
   5149     int _df = 1;
   5150     uint32_t _flag_k = FK_NONE;
   5151     uint32_t _flag_a = 0, _flag_b = 0;
   5152     uint32_t _itail_tgt = 0;
   5153     RECOMP_REGS_LOCALS
   5154     RECOMP_ENTER(0x3C0026F0u);
   5155 
   5156 L_3C0026F0:
   5157     RECOMP_ICALL(0x3C002700u); /* 0x3C0026F0: call 0x3c002700 */ /* not lifted */
   5158     RECOMP_FLAGS_IN();
   5159     goto L_3C002710; /* 0x3C0026F5: jmp 0x3c002710 */
   5160 L_3C002710:
   5161     PUSH32(esp, 0x3C002720u); /* 0x3C002710: push 0x3c002720 */
   5162     RECOMP_ICALL(0x3C008A15u); /* 0x3C002715: call 0x3c008a15 */ /* not lifted */
   5163     RECOMP_FLAGS_IN();
   5164     ecx = POP32_VAL(esp); /* 0x3C00271A: pop ecx */
   5165     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00271B: ret  */
   5166     RECOMP_REGS_OUT();
   5167 }
   5168 
   5169 void sub_3C002700(void) {
   5170     int _fpu_cmp = 0;
   5171     uint32_t _cf = 0;
   5172     int _df = 1;
   5173     uint32_t _flag_k = FK_NONE;
   5174     uint32_t _flag_a = 0, _flag_b = 0;
   5175     uint32_t _itail_tgt = 0;
   5176     RECOMP_REGS_LOCALS
   5177     RECOMP_ENTER(0x3C002700u);
   5178 
   5179 L_3C002700:
   5180     ecx = 0x3C00D385u; /* 0x3C002700: mov ecx, 0x3c00d385 */
   5181 L_3C002705:
   5182     { _itail_tgt = (uint32_t)(MEM32(0x3C009014)); goto _ljump; }
   5183     { RECOMP_REGS_OUT(); return; } /* end of function */
   5184   _ljump:
   5185     switch (_itail_tgt) {
   5186       case 0x3C002700u: goto L_3C002700;
   5187       case 0x3C002705u: goto L_3C002705;
   5188       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5189     }
   5190     RECOMP_REGS_OUT();
   5191 }
   5192 
   5193 void sub_3C002710(void) {
   5194     int _fpu_cmp = 0;
   5195     uint32_t _cf = 0;
   5196     int _df = 1;
   5197     uint32_t _flag_k = FK_NONE;
   5198     uint32_t _flag_a = 0, _flag_b = 0;
   5199     uint32_t _itail_tgt = 0;
   5200     RECOMP_REGS_LOCALS
   5201     RECOMP_ENTER(0x3C002710u);
   5202 
   5203 L_3C002710:
   5204     PUSH32(esp, 0x3C002720u); /* 0x3C002710: push 0x3c002720 */
   5205     RECOMP_ICALL(0x3C008A15u); /* 0x3C002715: call 0x3c008a15 */ /* not lifted */
   5206     RECOMP_FLAGS_IN();
   5207     ecx = POP32_VAL(esp); /* 0x3C00271A: pop ecx */
   5208     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00271B: ret  */
   5209     RECOMP_REGS_OUT();
   5210 }
   5211 
   5212 void sub_3C002720(void) {
   5213     int _fpu_cmp = 0;
   5214     uint32_t _cf = 0;
   5215     int _df = 1;
   5216     uint32_t _flag_k = FK_NONE;
   5217     uint32_t _flag_a = 0, _flag_b = 0;
   5218     uint32_t _itail_tgt = 0;
   5219     RECOMP_REGS_LOCALS
   5220     RECOMP_ENTER(0x3C002720u);
   5221 
   5222 L_3C002720:
   5223     ecx = 0x3C00D385u; /* 0x3C002720: mov ecx, 0x3c00d385 */
   5224 L_3C002725:
   5225     { _itail_tgt = (uint32_t)(MEM32(0x3C009008)); goto _ljump; }
   5226     { RECOMP_REGS_OUT(); return; } /* end of function */
   5227   _ljump:
   5228     switch (_itail_tgt) {
   5229       case 0x3C002720u: goto L_3C002720;
   5230       case 0x3C002725u: goto L_3C002725;
   5231       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5232     }
   5233     RECOMP_REGS_OUT();
   5234 }
   5235 
   5236 void sub_3C002730(void) {
   5237     int _fpu_cmp = 0;
   5238     uint32_t _cf = 0;
   5239     int _df = 1;
   5240     uint32_t _flag_k = FK_NONE;
   5241     uint32_t _flag_a = 0, _flag_b = 0;
   5242     uint32_t _itail_tgt = 0;
   5243     RECOMP_REGS_LOCALS
   5244     RECOMP_ENTER(0x3C002730u);
   5245 
   5246 L_3C002730:
   5247     RECOMP_ICALL(0x3C002740u); /* 0x3C002730: call 0x3c002740 */ /* not lifted */
   5248     RECOMP_FLAGS_IN();
   5249     goto L_3C002750; /* 0x3C002735: jmp 0x3c002750 */
   5250 L_3C002750:
   5251     PUSH32(esp, 0x3C002760u); /* 0x3C002750: push 0x3c002760 */
   5252     RECOMP_ICALL(0x3C008A15u); /* 0x3C002755: call 0x3c008a15 */ /* not lifted */
   5253     RECOMP_FLAGS_IN();
   5254     ecx = POP32_VAL(esp); /* 0x3C00275A: pop ecx */
   5255     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00275B: ret  */
   5256     RECOMP_REGS_OUT();
   5257 }
   5258 
   5259 void sub_3C002740(void) {
   5260     int _fpu_cmp = 0;
   5261     uint32_t _cf = 0;
   5262     int _df = 1;
   5263     uint32_t _flag_k = FK_NONE;
   5264     uint32_t _flag_a = 0, _flag_b = 0;
   5265     uint32_t _itail_tgt = 0;
   5266     RECOMP_REGS_LOCALS
   5267     RECOMP_ENTER(0x3C002740u);
   5268 
   5269 L_3C002740:
   5270     ecx = 0x3C00D384u; /* 0x3C002740: mov ecx, 0x3c00d384 */
   5271 L_3C002745:
   5272     { _itail_tgt = (uint32_t)(MEM32(0x3C00900C)); goto _ljump; }
   5273     { RECOMP_REGS_OUT(); return; } /* end of function */
   5274   _ljump:
   5275     switch (_itail_tgt) {
   5276       case 0x3C002740u: goto L_3C002740;
   5277       case 0x3C002745u: goto L_3C002745;
   5278       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5279     }
   5280     RECOMP_REGS_OUT();
   5281 }
   5282 
   5283 void sub_3C002750(void) {
   5284     int _fpu_cmp = 0;
   5285     uint32_t _cf = 0;
   5286     int _df = 1;
   5287     uint32_t _flag_k = FK_NONE;
   5288     uint32_t _flag_a = 0, _flag_b = 0;
   5289     uint32_t _itail_tgt = 0;
   5290     RECOMP_REGS_LOCALS
   5291     RECOMP_ENTER(0x3C002750u);
   5292 
   5293 L_3C002750:
   5294     PUSH32(esp, 0x3C002760u); /* 0x3C002750: push 0x3c002760 */
   5295     RECOMP_ICALL(0x3C008A15u); /* 0x3C002755: call 0x3c008a15 */ /* not lifted */
   5296     RECOMP_FLAGS_IN();
   5297     ecx = POP32_VAL(esp); /* 0x3C00275A: pop ecx */
   5298     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00275B: ret  */
   5299     RECOMP_REGS_OUT();
   5300 }
   5301 
   5302 void sub_3C002760(void) {
   5303     int _fpu_cmp = 0;
   5304     uint32_t _cf = 0;
   5305     int _df = 1;
   5306     uint32_t _flag_k = FK_NONE;
   5307     uint32_t _flag_a = 0, _flag_b = 0;
   5308     uint32_t _itail_tgt = 0;
   5309     RECOMP_REGS_LOCALS
   5310     RECOMP_ENTER(0x3C002760u);
   5311 
   5312 L_3C002760:
   5313     ecx = 0x3C00D384u; /* 0x3C002760: mov ecx, 0x3c00d384 */
   5314 L_3C002765:
   5315     { _itail_tgt = (uint32_t)(MEM32(0x3C009010)); goto _ljump; }
   5316     { RECOMP_REGS_OUT(); return; } /* end of function */
   5317   _ljump:
   5318     switch (_itail_tgt) {
   5319       case 0x3C002760u: goto L_3C002760;
   5320       case 0x3C002765u: goto L_3C002765;
   5321       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5322     }
   5323     RECOMP_REGS_OUT();
   5324 }
   5325 
   5326 void sub_3C002770(void) {
   5327     int _fpu_cmp = 0;
   5328     uint32_t _cf = 0;
   5329     int _df = 1;
   5330     uint32_t _flag_k = FK_NONE;
   5331     uint32_t _flag_a = 0, _flag_b = 0;
   5332     uint32_t _itail_tgt = 0;
   5333     RECOMP_REGS_LOCALS
   5334     RECOMP_ENTER(0x3C002770u);
   5335 
   5336 L_3C002770:
   5337     MEM32(ecx) = 0x3C009194u; /* 0x3C002770: mov dword ptr [ecx], 0x3c009194 */
   5338     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002776: ret  */
   5339     RECOMP_REGS_OUT();
   5340 }
   5341 
   5342 void sub_3C002780(void) {
   5343     int _fpu_cmp = 0;
   5344     uint32_t _cf = 0;
   5345     int _df = 1;
   5346     uint32_t _flag_k = FK_NONE;
   5347     uint32_t _flag_a = 0, _flag_b = 0;
   5348     uint32_t _itail_tgt = 0;
   5349     RECOMP_REGS_LOCALS
   5350     RECOMP_ENTER(0x3C002780u);
   5351 
   5352 L_3C002780:
   5353     eax = ecx; /* 0x3C002780: mov eax, ecx */
   5354     MEM32(eax) = 0x3C009194u; /* 0x3C002782: mov dword ptr [eax], 0x3c009194 */
   5355     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002788: ret  */
   5356     RECOMP_REGS_OUT();
   5357 }
   5358 
   5359 void sub_3C002790(void) {
   5360     int _fpu_cmp = 0;
   5361     uint32_t _cf = 0;
   5362     int _df = 1;
   5363     uint32_t _flag_k = FK_NONE;
   5364     uint32_t _flag_a = 0, _flag_b = 0;
   5365     uint32_t _itail_tgt = 0;
   5366     RECOMP_REGS_LOCALS
   5367     RECOMP_ENTER(0x3C002790u);
   5368 
   5369 L_3C002790:
   5370     eax = ecx; /* 0x3C002790: mov eax, ecx */
   5371     MEM32(eax) = 0x3C009194u; /* 0x3C002792: mov dword ptr [eax], 0x3c009194 */
   5372     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002798: ret 4 */
   5373     RECOMP_REGS_OUT();
   5374 }
   5375 
   5376 void sub_3C0027A0(void) {
   5377     int _fpu_cmp = 0;
   5378     uint32_t _cf = 0;
   5379     int _df = 1;
   5380     uint32_t _flag_k = FK_NONE;
   5381     uint32_t _flag_a = 0, _flag_b = 0;
   5382     uint32_t _itail_tgt = 0;
   5383     RECOMP_REGS_LOCALS
   5384     RECOMP_ENTER(0x3C0027A0u);
   5385 
   5386 L_3C0027A0:
   5387     PUSH32(esp, ebp); /* 0x3C0027A0: push ebp */
   5388     ebp = esp; /* 0x3C0027A1: mov ebp, esp */
   5389     PUSH32(esp, ebx); /* 0x3C0027A3: push ebx */
   5390     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3C0027A4: mov bl, byte ptr [ebp + 8] */
   5391     /* test LO8(ebx), 2 */ /* 0x3C0027A7: test bl, 2 */
   5392     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   5393     _cf = 0;
   5394     _flag_k = FK_NARROW(FK_TEST, 24);
   5395     PUSH32(esp, esi); /* 0x3C0027AA: push esi */
   5396     esi = ecx; /* 0x3C0027AB: mov esi, ecx */
   5397     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0027DB; /* 0x3C0027AD: je 0x3c0027db */
   5398 L_3C0027AF:
   5399     eax = MEM32(esi + (-0x4)); /* 0x3C0027AF: mov eax, dword ptr [esi - 4] */
   5400     PUSH32(esp, edi); /* 0x3C0027B2: push edi */
   5401     PUSH32(esp, 0x3C002770u); /* 0x3C0027B3: push 0x3c002770 */
   5402     edi = esi + (-0x4); /* 0x3C0027B8: lea edi, [esi - 4] */
   5403     PUSH32(esp, eax); /* 0x3C0027BB: push eax */
   5404     PUSH32(esp, 4); /* 0x3C0027BC: push 4 */
   5405     PUSH32(esp, esi); /* 0x3C0027BE: push esi */
   5406     RECOMP_ICALL(0x3C008A4Au); /* 0x3C0027BF: call 0x3c008a4a */ /* not lifted */
   5407     RECOMP_FLAGS_IN();
   5408     /* test LO8(ebx), 1 */ /* 0x3C0027C4: test bl, 1 */
   5409     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   5410     _cf = 0;
   5411     _flag_k = FK_NARROW(FK_TEST, 24);
   5412     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0027D2; /* 0x3C0027C7: je 0x3c0027d2 */
   5413 L_3C0027C9:
   5414     PUSH32(esp, edi); /* 0x3C0027C9: push edi */
   5415     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0027CA: call 0x3c0089de */ /* not lifted */
   5416     RECOMP_FLAGS_IN();
   5417     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5418     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5419     esp = esp + 4; /* 0x3C0027CF: add esp, 4 */
   5420     _flag_k = FK_ADD;
   5421 L_3C0027D2:
   5422     eax = edi; /* 0x3C0027D2: mov eax, edi */
   5423     edi = POP32_VAL(esp); /* 0x3C0027D4: pop edi */
   5424     esi = POP32_VAL(esp); /* 0x3C0027D5: pop esi */
   5425     ebx = POP32_VAL(esp); /* 0x3C0027D6: pop ebx */
   5426     ebp = POP32_VAL(esp); /* 0x3C0027D7: pop ebp */
   5427     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0027D8: ret 4 */
   5428 L_3C0027DB:
   5429     /* test LO8(ebx), 1 */ /* 0x3C0027DB: test bl, 1 */
   5430     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   5431     _cf = 0;
   5432     _flag_k = FK_NARROW(FK_TEST, 24);
   5433     MEM32(esi) = 0x3C009194u; /* 0x3C0027DE: mov dword ptr [esi], 0x3c009194 */
   5434     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0027EF; /* 0x3C0027E4: je 0x3c0027ef */
   5435 L_3C0027E6:
   5436     PUSH32(esp, esi); /* 0x3C0027E6: push esi */
   5437     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0027E7: call 0x3c0089de */ /* not lifted */
   5438     RECOMP_FLAGS_IN();
   5439     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5440     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5441     esp = esp + 4; /* 0x3C0027EC: add esp, 4 */
   5442     _flag_k = FK_ADD;
   5443 L_3C0027EF:
   5444     eax = esi; /* 0x3C0027EF: mov eax, esi */
   5445     esi = POP32_VAL(esp); /* 0x3C0027F1: pop esi */
   5446     ebx = POP32_VAL(esp); /* 0x3C0027F2: pop ebx */
   5447     ebp = POP32_VAL(esp); /* 0x3C0027F3: pop ebp */
   5448     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0027F4: ret 4 */
   5449     RECOMP_REGS_OUT();
   5450 }
   5451 
   5452 void sub_3C002800(void) {
   5453     int _fpu_cmp = 0;
   5454     uint32_t _cf = 0;
   5455     int _df = 1;
   5456     uint32_t _flag_k = FK_NONE;
   5457     uint32_t _flag_a = 0, _flag_b = 0;
   5458     uint32_t _itail_tgt = 0;
   5459     RECOMP_REGS_LOCALS
   5460     RECOMP_ENTER(0x3C002800u);
   5461 
   5462 L_3C002800:
   5463     PUSH32(esp, ebp); /* 0x3C002800: push ebp */
   5464     ebp = esp; /* 0x3C002801: mov ebp, esp */
   5465     eax = ecx; /* 0x3C002803: mov eax, ecx */
   5466     ecx = MEM32(ebp + 0x8); /* 0x3C002805: mov ecx, dword ptr [ebp + 8] */
   5467     MEM32(eax) = 0x3C00915Cu; /* 0x3C002808: mov dword ptr [eax], 0x3c00915c */
   5468     edx = MEM32(ecx + 0x4); /* 0x3C00280E: mov edx, dword ptr [ecx + 4] */
   5469     MEM32(eax + 0x4) = edx; /* 0x3C002811: mov dword ptr [eax + 4], edx */
   5470     edx = MEM32(ecx + 0x8); /* 0x3C002814: mov edx, dword ptr [ecx + 8] */
   5471     MEM32(eax + 0x8) = edx; /* 0x3C002817: mov dword ptr [eax + 8], edx */
   5472     edx = MEM32(ecx + 0xC); /* 0x3C00281A: mov edx, dword ptr [ecx + 0xc] */
   5473     MEM32(eax + 0xC) = edx; /* 0x3C00281D: mov dword ptr [eax + 0xc], edx */
   5474     edx = MEM32(ecx + 0x10); /* 0x3C002820: mov edx, dword ptr [ecx + 0x10] */
   5475     MEM32(eax + 0x10) = edx; /* 0x3C002823: mov dword ptr [eax + 0x10], edx */
   5476     edx = MEM32(ecx + 0x14); /* 0x3C002826: mov edx, dword ptr [ecx + 0x14] */
   5477     MEM32(eax + 0x14) = edx; /* 0x3C002829: mov dword ptr [eax + 0x14], edx */
   5478     edx = MEM32(ecx + 0x18); /* 0x3C00282C: mov edx, dword ptr [ecx + 0x18] */
   5479     MEM32(eax + 0x18) = edx; /* 0x3C00282F: mov dword ptr [eax + 0x18], edx */
   5480     edx = MEM32(ecx + 0x1C); /* 0x3C002832: mov edx, dword ptr [ecx + 0x1c] */
   5481     MEM32(eax + 0x1C) = edx; /* 0x3C002835: mov dword ptr [eax + 0x1c], edx */
   5482     ecx = MEM32(ecx + 0x20); /* 0x3C002838: mov ecx, dword ptr [ecx + 0x20] */
   5483     MEM32(eax + 0x20) = ecx; /* 0x3C00283B: mov dword ptr [eax + 0x20], ecx */
   5484     MEM32(eax) = 0x3C0091A0u; /* 0x3C00283E: mov dword ptr [eax], 0x3c0091a0 */
   5485     ebp = POP32_VAL(esp); /* 0x3C002844: pop ebp */
   5486     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002845: ret 4 */
   5487     RECOMP_REGS_OUT();
   5488 }
   5489 
   5490 void sub_3C002850(void) {
   5491     int _fpu_cmp = 0;
   5492     uint32_t _cf = 0;
   5493     int _df = 1;
   5494     uint32_t _flag_k = FK_NONE;
   5495     uint32_t _flag_a = 0, _flag_b = 0;
   5496     uint32_t _itail_tgt = 0;
   5497     RECOMP_REGS_LOCALS
   5498     RECOMP_ENTER(0x3C002850u);
   5499 
   5500 L_3C002850:
   5501     PUSH32(esp, ebp); /* 0x3C002850: push ebp */
   5502     ebp = esp; /* 0x3C002851: mov ebp, esp */
   5503     eax = ecx; /* 0x3C002853: mov eax, ecx */
   5504     ecx = MEM32(ebp + 0x8); /* 0x3C002855: mov ecx, dword ptr [ebp + 8] */
   5505     edx = MEM32(ecx + 0x4); /* 0x3C002858: mov edx, dword ptr [ecx + 4] */
   5506     MEM32(eax + 0x4) = edx; /* 0x3C00285B: mov dword ptr [eax + 4], edx */
   5507     edx = MEM32(ecx + 0x8); /* 0x3C00285E: mov edx, dword ptr [ecx + 8] */
   5508     MEM32(eax + 0x8) = edx; /* 0x3C002861: mov dword ptr [eax + 8], edx */
   5509     edx = MEM32(ecx + 0xC); /* 0x3C002864: mov edx, dword ptr [ecx + 0xc] */
   5510     MEM32(eax + 0xC) = edx; /* 0x3C002867: mov dword ptr [eax + 0xc], edx */
   5511     edx = MEM32(ecx + 0x10); /* 0x3C00286A: mov edx, dword ptr [ecx + 0x10] */
   5512     MEM32(eax + 0x10) = edx; /* 0x3C00286D: mov dword ptr [eax + 0x10], edx */
   5513     edx = MEM32(ecx + 0x14); /* 0x3C002870: mov edx, dword ptr [ecx + 0x14] */
   5514     MEM32(eax + 0x14) = edx; /* 0x3C002873: mov dword ptr [eax + 0x14], edx */
   5515     edx = MEM32(ecx + 0x18); /* 0x3C002876: mov edx, dword ptr [ecx + 0x18] */
   5516     MEM32(eax + 0x18) = edx; /* 0x3C002879: mov dword ptr [eax + 0x18], edx */
   5517     edx = MEM32(ecx + 0x1C); /* 0x3C00287C: mov edx, dword ptr [ecx + 0x1c] */
   5518     MEM32(eax + 0x1C) = edx; /* 0x3C00287F: mov dword ptr [eax + 0x1c], edx */
   5519     ecx = MEM32(ecx + 0x20); /* 0x3C002882: mov ecx, dword ptr [ecx + 0x20] */
   5520     MEM32(eax + 0x20) = ecx; /* 0x3C002885: mov dword ptr [eax + 0x20], ecx */
   5521     ebp = POP32_VAL(esp); /* 0x3C002888: pop ebp */
   5522     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002889: ret 4 */
   5523     RECOMP_REGS_OUT();
   5524 }
   5525 
   5526 void sub_3C002890(void) {
   5527     int _fpu_cmp = 0;
   5528     uint32_t _cf = 0;
   5529     int _df = 1;
   5530     uint32_t _flag_k = FK_NONE;
   5531     uint32_t _flag_a = 0, _flag_b = 0;
   5532     uint32_t _itail_tgt = 0;
   5533     RECOMP_REGS_LOCALS
   5534     RECOMP_ENTER(0x3C002890u);
   5535 
   5536 L_3C002890:
   5537     PUSH32(esp, 0); /* 0x3C002890: push 0 */
   5538     RECOMP_ICALL(0x3C002D80u); /* 0x3C002892: call 0x3c002d80 */ /* not lifted */
   5539     RECOMP_FLAGS_IN();
   5540     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002897: ret  */
   5541     RECOMP_REGS_OUT();
   5542 }
   5543 
   5544 void sub_3C0028A0(void) {
   5545     int _fpu_cmp = 0;
   5546     uint32_t _cf = 0;
   5547     int _df = 1;
   5548     uint32_t _flag_k = FK_NONE;
   5549     uint32_t _flag_a = 0, _flag_b = 0;
   5550     uint32_t _itail_tgt = 0;
   5551     RECOMP_REGS_LOCALS
   5552     RECOMP_ENTER(0x3C0028A0u);
   5553 
   5554 L_3C0028A0:
   5555     PUSH32(esp, ebp); /* 0x3C0028A0: push ebp */
   5556     ebp = esp; /* 0x3C0028A1: mov ebp, esp */
   5557     PUSH32(esp, ebx); /* 0x3C0028A3: push ebx */
   5558     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3C0028A4: mov bl, byte ptr [ebp + 8] */
   5559     /* test LO8(ebx), 2 */ /* 0x3C0028A7: test bl, 2 */
   5560     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   5561     _cf = 0;
   5562     _flag_k = FK_NARROW(FK_TEST, 24);
   5563     PUSH32(esp, esi); /* 0x3C0028AA: push esi */
   5564     esi = ecx; /* 0x3C0028AB: mov esi, ecx */
   5565     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0028DB; /* 0x3C0028AD: je 0x3c0028db */
   5566 L_3C0028AF:
   5567     eax = MEM32(esi + (-0x4)); /* 0x3C0028AF: mov eax, dword ptr [esi - 4] */
   5568     PUSH32(esp, edi); /* 0x3C0028B2: push edi */
   5569     PUSH32(esp, 0x3C002DC0u); /* 0x3C0028B3: push 0x3c002dc0 */
   5570     edi = esi + (-0x4); /* 0x3C0028B8: lea edi, [esi - 4] */
   5571     PUSH32(esp, eax); /* 0x3C0028BB: push eax */
   5572     PUSH32(esp, 0x24u); /* 0x3C0028BC: push 0x24 */
   5573     PUSH32(esp, esi); /* 0x3C0028BE: push esi */
   5574     RECOMP_ICALL(0x3C008A4Au); /* 0x3C0028BF: call 0x3c008a4a */ /* not lifted */
   5575     RECOMP_FLAGS_IN();
   5576     /* test LO8(ebx), 1 */ /* 0x3C0028C4: test bl, 1 */
   5577     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   5578     _cf = 0;
   5579     _flag_k = FK_NARROW(FK_TEST, 24);
   5580     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0028D2; /* 0x3C0028C7: je 0x3c0028d2 */
   5581 L_3C0028C9:
   5582     PUSH32(esp, edi); /* 0x3C0028C9: push edi */
   5583     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0028CA: call 0x3c0089de */ /* not lifted */
   5584     RECOMP_FLAGS_IN();
   5585     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5586     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5587     esp = esp + 4; /* 0x3C0028CF: add esp, 4 */
   5588     _flag_k = FK_ADD;
   5589 L_3C0028D2:
   5590     eax = edi; /* 0x3C0028D2: mov eax, edi */
   5591     edi = POP32_VAL(esp); /* 0x3C0028D4: pop edi */
   5592     esi = POP32_VAL(esp); /* 0x3C0028D5: pop esi */
   5593     ebx = POP32_VAL(esp); /* 0x3C0028D6: pop ebx */
   5594     ebp = POP32_VAL(esp); /* 0x3C0028D7: pop ebp */
   5595     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0028D8: ret 4 */
   5596 L_3C0028DB:
   5597     ecx = esi; /* 0x3C0028DB: mov ecx, esi */
   5598     RECOMP_ICALL(0x3C002DC0u); /* 0x3C0028DD: call 0x3c002dc0 */ /* not lifted */
   5599     RECOMP_FLAGS_IN();
   5600     /* test LO8(ebx), 1 */ /* 0x3C0028E2: test bl, 1 */
   5601     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   5602     _cf = 0;
   5603     _flag_k = FK_NARROW(FK_TEST, 24);
   5604     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0028F0; /* 0x3C0028E5: je 0x3c0028f0 */
   5605 L_3C0028E7:
   5606     PUSH32(esp, esi); /* 0x3C0028E7: push esi */
   5607     RECOMP_ICALL(0x3C0089DEu); /* 0x3C0028E8: call 0x3c0089de */ /* not lifted */
   5608     RECOMP_FLAGS_IN();
   5609     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5610     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5611     esp = esp + 4; /* 0x3C0028ED: add esp, 4 */
   5612     _flag_k = FK_ADD;
   5613 L_3C0028F0:
   5614     eax = esi; /* 0x3C0028F0: mov eax, esi */
   5615     esi = POP32_VAL(esp); /* 0x3C0028F2: pop esi */
   5616     ebx = POP32_VAL(esp); /* 0x3C0028F3: pop ebx */
   5617     ebp = POP32_VAL(esp); /* 0x3C0028F4: pop ebp */
   5618     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0028F5: ret 4 */
   5619     RECOMP_REGS_OUT();
   5620 }
   5621 
   5622 void sub_3C002900(void) {
   5623     int _fpu_cmp = 0;
   5624     uint32_t _cf = 0;
   5625     int _df = 1;
   5626     uint32_t _flag_k = FK_NONE;
   5627     uint32_t _flag_a = 0, _flag_b = 0;
   5628     uint32_t _itail_tgt = 0;
   5629     RECOMP_REGS_LOCALS
   5630     RECOMP_ENTER(0x3C002900u);
   5631 
   5632 L_3C002900:
   5633     PUSH32(esp, ebp); /* 0x3C002900: push ebp */
   5634     ebp = esp; /* 0x3C002901: mov ebp, esp */
   5635     PUSH32(esp, ecx); /* 0x3C002903: push ecx */
   5636     eax = ecx; /* 0x3C002904: mov eax, ecx */
   5637     SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x3C002906: mov cl, byte ptr [ebp - 1] */
   5638     MEM8(eax + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3C002909: mov byte ptr [eax + 4], cl */
   5639     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5640     ecx = 0; /* 0x3C00290C: xor ecx, ecx */
   5641     _cf = 0;
   5642     _flag_k = FK_TEST;
   5643     MEM32(eax + 0x8) = ecx; /* 0x3C00290E: mov dword ptr [eax + 8], ecx */
   5644     MEM32(eax + 0xC) = ecx; /* 0x3C002911: mov dword ptr [eax + 0xc], ecx */
   5645     MEM32(eax + 0x10) = ecx; /* 0x3C002914: mov dword ptr [eax + 0x10], ecx */
   5646     MEM32(eax) = 0x3C0091ACu; /* 0x3C002917: mov dword ptr [eax], 0x3c0091ac */
   5647     esp = ebp; /* 0x3C00291D: mov esp, ebp */
   5648     ebp = POP32_VAL(esp); /* 0x3C00291F: pop ebp */
   5649     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002920: ret  */
   5650     RECOMP_REGS_OUT();
   5651 }
   5652 
   5653 void sub_3C002930(void) {
   5654     int _fpu_cmp = 0;
   5655     uint32_t _cf = 0;
   5656     int _df = 1;
   5657     uint32_t _flag_k = FK_NONE;
   5658     uint32_t _flag_a = 0, _flag_b = 0;
   5659     uint32_t _itail_tgt = 0;
   5660     RECOMP_REGS_LOCALS
   5661     RECOMP_ENTER(0x3C002930u);
   5662 
   5663 L_3C002930:
   5664     PUSH32(esp, ebp); /* 0x3C002930: push ebp */
   5665     ebp = esp; /* 0x3C002931: mov ebp, esp */
   5666     PUSH32(esp, esi); /* 0x3C002933: push esi */
   5667     esi = MEM32(ebp + 0x8); /* 0x3C002934: mov esi, dword ptr [ebp + 8] */
   5668     SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3C002937: mov al, byte ptr [esi + 4] */
   5669     PUSH32(esp, edi); /* 0x3C00293A: push edi */
   5670     edi = ecx; /* 0x3C00293B: mov edi, ecx */
   5671     MEM8(edi + 0x4) = (uint8_t)(LO8(eax)); /* 0x3C00293D: mov byte ptr [edi + 4], al */
   5672     ecx = MEM32(esi + 0x8); /* 0x3C002940: mov ecx, dword ptr [esi + 8] */
   5673     /* test ecx, ecx */ /* 0x3C002943: test ecx, ecx */
   5674     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5675     _cf = 0;
   5676     _flag_k = FK_TEST;
   5677     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00294B; /* 0x3C002945: jne 0x3c00294b */
   5678 L_3C002947:
   5679     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5680     eax = 0; /* 0x3C002947: xor eax, eax */
   5681     _cf = 0;
   5682     _flag_k = FK_TEST;
   5683     goto L_3C002953; /* 0x3C002949: jmp 0x3c002953 */
   5684 L_3C00294B:
   5685     eax = MEM32(esi + 0xC); /* 0x3C00294B: mov eax, dword ptr [esi + 0xc] */
   5686     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5688     eax = eax - ecx; /* 0x3C00294E: sub eax, ecx */
   5689     _flag_k = FK_CMP;
   5690     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3C002950: sar eax, 2 */
   5691     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5692     eax = (uint32_t)((int32_t)eax >> 2u);
   5693 L_3C002953:
   5694     /* test eax, eax */ /* 0x3C002953: test eax, eax */
   5695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5696     _cf = 0;
   5697     _flag_k = FK_TEST;
   5698     if (TEST_NS(_flag_a, _flag_b)) goto L_3C002959; /* 0x3C002955: jge 0x3c002959 */
   5699 L_3C002957:
   5700     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5701     eax = 0; /* 0x3C002957: xor eax, eax */
   5702     _cf = 0;
   5703     _flag_k = FK_TEST;
   5704 L_3C002959:
   5705     ecx = eax * 4; /* 0x3C002959: lea ecx, [eax*4] */
   5706     PUSH32(esp, ecx); /* 0x3C002960: push ecx */
   5707     RECOMP_ICALL(0x3C008B40u); /* 0x3C002961: call 0x3c008b40 */ /* not lifted */
   5708     RECOMP_FLAGS_IN();
   5709     MEM32(edi + 0x8) = eax; /* 0x3C002966: mov dword ptr [edi + 8], eax */
   5710     edx = MEM32(esi + 0xC); /* 0x3C002969: mov edx, dword ptr [esi + 0xc] */
   5711     ecx = eax; /* 0x3C00296C: mov ecx, eax */
   5712     eax = MEM32(esi + 0x8); /* 0x3C00296E: mov eax, dword ptr [esi + 8] */
   5713     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5714     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5715     esp = esp + 4; /* 0x3C002971: add esp, 4 */
   5716     _flag_k = FK_ADD;
   5717     /* cmp eax, edx */ /* 0x3C002974: cmp eax, edx */
   5718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5720     _flag_k = FK_CMP;
   5721     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00298A; /* 0x3C002976: je 0x3c00298a */
   5722 L_3C002978:
   5723     /* test ecx, ecx */ /* 0x3C002978: test ecx, ecx */
   5724     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5725     _cf = 0;
   5726     _flag_k = FK_TEST;
   5727     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002980; /* 0x3C00297A: je 0x3c002980 */
   5728 L_3C00297C:
   5729     esi = MEM32(eax); /* 0x3C00297C: mov esi, dword ptr [eax] */
   5730     MEM32(ecx) = esi; /* 0x3C00297E: mov dword ptr [ecx], esi */
   5731 L_3C002980:
   5732     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   5733     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5734     eax = eax + 4; /* 0x3C002980: add eax, 4 */
   5735     _flag_k = FK_ADD;
   5736     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   5737     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5738     ecx = ecx + 4; /* 0x3C002983: add ecx, 4 */
   5739     _flag_k = FK_ADD;
   5740     /* cmp eax, edx */ /* 0x3C002986: cmp eax, edx */
   5741     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5743     _flag_k = FK_CMP;
   5744     RECOMP_BACKEDGE();
   5745     if (CMP_NE(_flag_a, _flag_b)) goto L_3C002978; /* 0x3C002988: jne 0x3c002978 */
   5746 L_3C00298A:
   5747     MEM32(edi + 0xC) = ecx; /* 0x3C00298A: mov dword ptr [edi + 0xc], ecx */
   5748     MEM32(edi + 0x10) = ecx; /* 0x3C00298D: mov dword ptr [edi + 0x10], ecx */
   5749     MEM32(edi) = 0x3C0091ACu; /* 0x3C002990: mov dword ptr [edi], 0x3c0091ac */
   5750     eax = edi; /* 0x3C002996: mov eax, edi */
   5751     edi = POP32_VAL(esp); /* 0x3C002998: pop edi */
   5752     esi = POP32_VAL(esp); /* 0x3C002999: pop esi */
   5753     ebp = POP32_VAL(esp); /* 0x3C00299A: pop ebp */
   5754     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C00299B: ret 4 */
   5755     RECOMP_REGS_OUT();
   5756 }
   5757 
   5758 void sub_3C0029A0(void) {
   5759     int _fpu_cmp = 0;
   5760     uint32_t _cf = 0;
   5761     int _df = 1;
   5762     uint32_t _flag_k = FK_NONE;
   5763     uint32_t _flag_a = 0, _flag_b = 0;
   5764     uint32_t _itail_tgt = 0;
   5765     RECOMP_REGS_LOCALS
   5766     RECOMP_ENTER(0x3C0029A0u);
   5767 
   5768 L_3C0029A0:
   5769     PUSH32(esp, ebp); /* 0x3C0029A0: push ebp */
   5770     ebp = esp; /* 0x3C0029A1: mov ebp, esp */
   5771     PUSH32(esp, ecx); /* 0x3C0029A3: push ecx */
   5772     PUSH32(esp, ebx); /* 0x3C0029A4: push ebx */
   5773     eax = ecx; /* 0x3C0029A5: mov eax, ecx */
   5774     ecx = MEM32(ebp + 0x8); /* 0x3C0029A7: mov ecx, dword ptr [ebp + 8] */
   5775     PUSH32(esp, esi); /* 0x3C0029AA: push esi */
   5776     PUSH32(esp, edi); /* 0x3C0029AB: push edi */
   5777     edi = ecx + 0x4; /* 0x3C0029AC: lea edi, [ecx + 4] */
   5778     esi = eax + 0x4; /* 0x3C0029AF: lea esi, [eax + 4] */
   5779     /* cmp esi, edi */ /* 0x3C0029B2: cmp esi, edi */
   5780     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   5781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5782     _flag_k = FK_CMP;
   5783     MEM32(ebp + (-0x4)) = eax; /* 0x3C0029B4: mov dword ptr [ebp - 4], eax */
   5784     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C002B44; /* 0x3C0029B7: je 0x3c002b44 */
   5785 L_3C0029BD:
   5786     eax = MEM32(edi + 0x4); /* 0x3C0029BD: mov eax, dword ptr [edi + 4] */
   5787     /* test eax, eax */ /* 0x3C0029C0: test eax, eax */
   5788     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5789     _cf = 0;
   5790     _flag_k = FK_TEST;
   5791     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0029C8; /* 0x3C0029C2: jne 0x3c0029c8 */
   5792 L_3C0029C4:
   5793     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5794     ebx = 0; /* 0x3C0029C4: xor ebx, ebx */
   5795     _cf = 0;
   5796     _flag_k = FK_TEST;
   5797     goto L_3C0029D0; /* 0x3C0029C6: jmp 0x3c0029d0 */
   5798 L_3C0029C8:
   5799     ebx = MEM32(edi + 0x8); /* 0x3C0029C8: mov ebx, dword ptr [edi + 8] */
   5800     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   5801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5802     ebx = ebx - eax; /* 0x3C0029CB: sub ebx, eax */
   5803     _flag_k = FK_CMP;
   5804     if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x3C0029CD: sar ebx, 2 */
   5805     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5806     ebx = (uint32_t)((int32_t)ebx >> 2u);
   5807 L_3C0029D0:
   5808     edx = MEM32(esi + 0x4); /* 0x3C0029D0: mov edx, dword ptr [esi + 4] */
   5809     /* test edx, edx */ /* 0x3C0029D3: test edx, edx */
   5810     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   5811     _cf = 0;
   5812     _flag_k = FK_TEST;
   5813     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0029DB; /* 0x3C0029D5: jne 0x3c0029db */
   5814 L_3C0029D7:
   5815     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5816     ecx = 0; /* 0x3C0029D7: xor ecx, ecx */
   5817     _cf = 0;
   5818     _flag_k = FK_TEST;
   5819     goto L_3C0029E3; /* 0x3C0029D9: jmp 0x3c0029e3 */
   5820 L_3C0029DB:
   5821     ecx = MEM32(esi + 0x8); /* 0x3C0029DB: mov ecx, dword ptr [esi + 8] */
   5822     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5824     ecx = ecx - edx; /* 0x3C0029DE: sub ecx, edx */
   5825     _flag_k = FK_CMP;
   5826     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C0029E0: sar ecx, 2 */
   5827     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5828     ecx = (uint32_t)((int32_t)ecx >> 2u);
   5829 L_3C0029E3:
   5830     /* cmp ebx, ecx */ /* 0x3C0029E3: cmp ebx, ecx */
   5831     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   5832     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5833     _flag_k = FK_CMP;
   5834     if (CMP_A(_flag_a, _flag_b)) goto L_3C002A37; /* 0x3C0029E5: ja 0x3c002a37 */
   5835 L_3C0029E7:
   5836     ecx = MEM32(edi + 0x8); /* 0x3C0029E7: mov ecx, dword ptr [edi + 8] */
   5837     /* cmp eax, ecx */ /* 0x3C0029EA: cmp eax, ecx */
   5838     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5840     _flag_k = FK_CMP;
   5841     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0029FC; /* 0x3C0029EC: je 0x3c0029fc */
   5842 L_3C0029EE:
   5843     esi = MEM32(eax); /* 0x3C0029EE: mov esi, dword ptr [eax] */
   5844     MEM32(edx) = esi; /* 0x3C0029F0: mov dword ptr [edx], esi */
   5845     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   5846     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5847     eax = eax + 4; /* 0x3C0029F2: add eax, 4 */
   5848     _flag_k = FK_ADD;
   5849     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   5850     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5851     edx = edx + 4; /* 0x3C0029F5: add edx, 4 */
   5852     _flag_k = FK_ADD;
   5853     /* cmp eax, ecx */ /* 0x3C0029F8: cmp eax, ecx */
   5854     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5856     _flag_k = FK_CMP;
   5857     RECOMP_BACKEDGE();
   5858     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0029EE; /* 0x3C0029FA: jne 0x3c0029ee */
   5859 L_3C0029FC:
   5860     eax = MEM32(edi + 0x4); /* 0x3C0029FC: mov eax, dword ptr [edi + 4] */
   5861     /* test eax, eax */ /* 0x3C0029FF: test eax, eax */
   5862     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5863     _cf = 0;
   5864     _flag_k = FK_TEST;
   5865     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C002A1A; /* 0x3C002A01: jne 0x3c002a1a */
   5866 L_3C002A03:
   5867     eax = MEM32(ebp + (-0x4)); /* 0x3C002A03: mov eax, dword ptr [ebp - 4] */
   5868     edx = MEM32(eax + 0x8); /* 0x3C002A06: mov edx, dword ptr [eax + 8] */
   5869     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5870     edi = 0; /* 0x3C002A09: xor edi, edi */
   5871     _cf = 0;
   5872     _flag_k = FK_TEST;
   5873     ecx = edx + edi * 4; /* 0x3C002A0B: lea ecx, [edx + edi*4] */
   5874     edi = POP32_VAL(esp); /* 0x3C002A0E: pop edi */
   5875     esi = POP32_VAL(esp); /* 0x3C002A0F: pop esi */
   5876     MEM32(eax + 0xC) = ecx; /* 0x3C002A10: mov dword ptr [eax + 0xc], ecx */
   5877     ebx = POP32_VAL(esp); /* 0x3C002A13: pop ebx */
   5878     esp = ebp; /* 0x3C002A14: mov esp, ebp */
   5879     ebp = POP32_VAL(esp); /* 0x3C002A16: pop ebp */
   5880     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002A17: ret 4 */
   5881 L_3C002A1A:
   5882     edi = MEM32(edi + 0x8); /* 0x3C002A1A: mov edi, dword ptr [edi + 8] */
   5883     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   5884     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5885     edi = edi - eax; /* 0x3C002A1D: sub edi, eax */
   5886     _flag_k = FK_CMP;
   5887     eax = MEM32(ebp + (-0x4)); /* 0x3C002A1F: mov eax, dword ptr [ebp - 4] */
   5888     edx = MEM32(eax + 0x8); /* 0x3C002A22: mov edx, dword ptr [eax + 8] */
   5889     if (2u) _cf = (((edi) >> 1) & 1u); /* 0x3C002A25: sar edi, 2 */
   5890     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5891     edi = (uint32_t)((int32_t)edi >> 2u);
   5892     ecx = edx + edi * 4; /* 0x3C002A28: lea ecx, [edx + edi*4] */
   5893     edi = POP32_VAL(esp); /* 0x3C002A2B: pop edi */
   5894     esi = POP32_VAL(esp); /* 0x3C002A2C: pop esi */
   5895     MEM32(eax + 0xC) = ecx; /* 0x3C002A2D: mov dword ptr [eax + 0xc], ecx */
   5896     ebx = POP32_VAL(esp); /* 0x3C002A30: pop ebx */
   5897     esp = ebp; /* 0x3C002A31: mov esp, ebp */
   5898     ebp = POP32_VAL(esp); /* 0x3C002A33: pop ebp */
   5899     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002A34: ret 4 */
   5900 L_3C002A37:
   5901     /* test eax, eax */ /* 0x3C002A37: test eax, eax */
   5902     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5903     _cf = 0;
   5904     _flag_k = FK_TEST;
   5905     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C002A3F; /* 0x3C002A39: jne 0x3c002a3f */
   5906 L_3C002A3B:
   5907     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5908     ebx = 0; /* 0x3C002A3B: xor ebx, ebx */
   5909     _cf = 0;
   5910     _flag_k = FK_TEST;
   5911     goto L_3C002A47; /* 0x3C002A3D: jmp 0x3c002a47 */
   5912 L_3C002A3F:
   5913     ebx = MEM32(edi + 0x8); /* 0x3C002A3F: mov ebx, dword ptr [edi + 8] */
   5914     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   5915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5916     ebx = ebx - eax; /* 0x3C002A42: sub ebx, eax */
   5917     _flag_k = FK_CMP;
   5918     if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x3C002A44: sar ebx, 2 */
   5919     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5920     ebx = (uint32_t)((int32_t)ebx >> 2u);
   5921 L_3C002A47:
   5922     /* test edx, edx */ /* 0x3C002A47: test edx, edx */
   5923     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   5924     _cf = 0;
   5925     _flag_k = FK_TEST;
   5926     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C002A4F; /* 0x3C002A49: jne 0x3c002a4f */
   5927 L_3C002A4B:
   5928     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5929     ecx = 0; /* 0x3C002A4B: xor ecx, ecx */
   5930     _cf = 0;
   5931     _flag_k = FK_TEST;
   5932     goto L_3C002A57; /* 0x3C002A4D: jmp 0x3c002a57 */
   5933 L_3C002A4F:
   5934     ecx = MEM32(esi + 0xC); /* 0x3C002A4F: mov ecx, dword ptr [esi + 0xc] */
   5935     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5937     ecx = ecx - edx; /* 0x3C002A52: sub ecx, edx */
   5938     _flag_k = FK_CMP;
   5939     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C002A54: sar ecx, 2 */
   5940     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5941     ecx = (uint32_t)((int32_t)ecx >> 2u);
   5942 L_3C002A57:
   5943     /* cmp ebx, ecx */ /* 0x3C002A57: cmp ebx, ecx */
   5944     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   5945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5946     _flag_k = FK_CMP;
   5947     if (CMP_A(_flag_a, _flag_b)) goto L_3C002AF7; /* 0x3C002A59: ja 0x3c002af7 */
   5948 L_3C002A5F:
   5949     /* test edx, edx */ /* 0x3C002A5F: test edx, edx */
   5950     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   5951     _cf = 0;
   5952     _flag_k = FK_TEST;
   5953     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C002A67; /* 0x3C002A61: jne 0x3c002a67 */
   5954 L_3C002A63:
   5955     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5956     esi = 0; /* 0x3C002A63: xor esi, esi */
   5957     _cf = 0;
   5958     _flag_k = FK_TEST;
   5959     goto L_3C002A6F; /* 0x3C002A65: jmp 0x3c002a6f */
   5960 L_3C002A67:
   5961     esi = MEM32(esi + 0x8); /* 0x3C002A67: mov esi, dword ptr [esi + 8] */
   5962     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   5963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5964     esi = esi - edx; /* 0x3C002A6A: sub esi, edx */
   5965     _flag_k = FK_CMP;
   5966     if (2u) _cf = (((esi) >> 1) & 1u); /* 0x3C002A6C: sar esi, 2 */
   5967     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5968     esi = (uint32_t)((int32_t)esi >> 2u);
   5969 L_3C002A6F:
   5970     ecx = eax + esi * 4; /* 0x3C002A6F: lea ecx, [eax + esi*4] */
   5971     /* cmp eax, ecx */ /* 0x3C002A72: cmp eax, ecx */
   5972     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5974     _flag_k = FK_CMP;
   5975     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C002A84; /* 0x3C002A74: je 0x3c002a84 */
   5976 L_3C002A76:
   5977     esi = MEM32(eax); /* 0x3C002A76: mov esi, dword ptr [eax] */
   5978     MEM32(edx) = esi; /* 0x3C002A78: mov dword ptr [edx], esi */
   5979     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   5980     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5981     eax = eax + 4; /* 0x3C002A7A: add eax, 4 */
   5982     _flag_k = FK_ADD;
   5983     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   5984     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5985     edx = edx + 4; /* 0x3C002A7D: add edx, 4 */
   5986     _flag_k = FK_ADD;
   5987     /* cmp eax, ecx */ /* 0x3C002A80: cmp eax, ecx */
   5988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5990     _flag_k = FK_CMP;
   5991     RECOMP_BACKEDGE();
   5992     if (CMP_NE(_flag_a, _flag_b)) goto L_3C002A76; /* 0x3C002A82: jne 0x3c002a76 */
   5993 L_3C002A84:
   5994     eax = MEM32(edi + 0x8); /* 0x3C002A84: mov eax, dword ptr [edi + 8] */
   5995     edx = MEM32(ebp + (-0x4)); /* 0x3C002A87: mov edx, dword ptr [ebp - 4] */
   5996     ebx = MEM32(edx + 0xC); /* 0x3C002A8A: mov ebx, dword ptr [edx + 0xc] */
   5997     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   5998     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5999     edx = edx + 4; /* 0x3C002A8D: add edx, 4 */
   6000     _flag_k = FK_ADD;
   6001     /* cmp ecx, eax */ /* 0x3C002A90: cmp ecx, eax */
   6002     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6004     _flag_k = FK_CMP;
   6005     MEM32(ebp + 0x8) = eax; /* 0x3C002A92: mov dword ptr [ebp + 8], eax */
   6006     esi = ecx; /* 0x3C002A95: mov esi, ecx */
   6007     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C002AB0; /* 0x3C002A97: je 0x3c002ab0 */
   6008 L_3C002A99:
   6009     PUSH32(esp, esi); /* 0x3C002A99: push esi */
   6010     PUSH32(esp, ebx); /* 0x3C002A9A: push ebx */
   6011     RECOMP_ICALL(0x3C005EC0u); /* 0x3C002A9B: call 0x3c005ec0 */ /* not lifted */
   6012     RECOMP_FLAGS_IN();
   6013     eax = MEM32(ebp + 0x8); /* 0x3C002AA0: mov eax, dword ptr [ebp + 8] */
   6014     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   6015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6016     esi = esi + 4; /* 0x3C002AA3: add esi, 4 */
   6017     _flag_k = FK_ADD;
   6018     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6020     esp = esp + 8; /* 0x3C002AA6: add esp, 8 */
   6021     _flag_k = FK_ADD;
   6022     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   6023     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6024     ebx = ebx + 4; /* 0x3C002AA9: add ebx, 4 */
   6025     _flag_k = FK_ADD;
   6026     /* cmp esi, eax */ /* 0x3C002AAC: cmp esi, eax */
   6027     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6028     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6029     _flag_k = FK_CMP;
   6030     RECOMP_BACKEDGE();
   6031     if (CMP_NE(_flag_a, _flag_b)) goto L_3C002A99; /* 0x3C002AAE: jne 0x3c002a99 */
   6032 L_3C002AB0:
   6033     eax = MEM32(edi + 0x4); /* 0x3C002AB0: mov eax, dword ptr [edi + 4] */
   6034     /* test eax, eax */ /* 0x3C002AB3: test eax, eax */
   6035     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6036     _cf = 0;
   6037     _flag_k = FK_TEST;
   6038     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C002AD4; /* 0x3C002AB5: jne 0x3c002ad4 */
   6039 L_3C002AB7:
   6040     eax = MEM32(ebp + (-0x4)); /* 0x3C002AB7: mov eax, dword ptr [ebp - 4] */
   6041     ecx = MEM32(eax + 0x8); /* 0x3C002ABA: mov ecx, dword ptr [eax + 8] */
   6042     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6043     edi = 0; /* 0x3C002ABD: xor edi, edi */
   6044     _cf = 0;
   6045     _flag_k = FK_TEST;
   6046     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   6047     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6048     eax = eax + 4; /* 0x3C002ABF: add eax, 4 */
   6049     _flag_k = FK_ADD;
   6050     edx = ecx + edi * 4; /* 0x3C002AC2: lea edx, [ecx + edi*4] */
   6051     edi = POP32_VAL(esp); /* 0x3C002AC5: pop edi */
   6052     esi = POP32_VAL(esp); /* 0x3C002AC6: pop esi */
   6053     MEM32(eax + 0x8) = edx; /* 0x3C002AC7: mov dword ptr [eax + 8], edx */
   6054     eax = MEM32(ebp + (-0x4)); /* 0x3C002ACA: mov eax, dword ptr [ebp - 4] */
   6055     ebx = POP32_VAL(esp); /* 0x3C002ACD: pop ebx */
   6056     esp = ebp; /* 0x3C002ACE: mov esp, ebp */
   6057     ebp = POP32_VAL(esp); /* 0x3C002AD0: pop ebp */
   6058     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002AD1: ret 4 */
   6059 L_3C002AD4:
   6060     edi = MEM32(edi + 0x8); /* 0x3C002AD4: mov edi, dword ptr [edi + 8] */
   6061     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6063     edi = edi - eax; /* 0x3C002AD7: sub edi, eax */
   6064     _flag_k = FK_CMP;
   6065     eax = MEM32(ebp + (-0x4)); /* 0x3C002AD9: mov eax, dword ptr [ebp - 4] */
   6066     ecx = MEM32(eax + 0x8); /* 0x3C002ADC: mov ecx, dword ptr [eax + 8] */
   6067     if (2u) _cf = (((edi) >> 1) & 1u); /* 0x3C002ADF: sar edi, 2 */
   6068     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6069     edi = (uint32_t)((int32_t)edi >> 2u);
   6070     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   6071     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6072     eax = eax + 4; /* 0x3C002AE2: add eax, 4 */
   6073     _flag_k = FK_ADD;
   6074     edx = ecx + edi * 4; /* 0x3C002AE5: lea edx, [ecx + edi*4] */
   6075     edi = POP32_VAL(esp); /* 0x3C002AE8: pop edi */
   6076     esi = POP32_VAL(esp); /* 0x3C002AE9: pop esi */
   6077     MEM32(eax + 0x8) = edx; /* 0x3C002AEA: mov dword ptr [eax + 8], edx */
   6078     eax = MEM32(ebp + (-0x4)); /* 0x3C002AED: mov eax, dword ptr [ebp - 4] */
   6079     ebx = POP32_VAL(esp); /* 0x3C002AF0: pop ebx */
   6080     esp = ebp; /* 0x3C002AF1: mov esp, ebp */
   6081     ebp = POP32_VAL(esp); /* 0x3C002AF3: pop ebp */
   6082     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002AF4: ret 4 */
   6083 L_3C002AF7:
   6084     PUSH32(esp, edx); /* 0x3C002AF7: push edx */
   6085     MEM32(ebp + 0x8) = edx; /* 0x3C002AF8: mov dword ptr [ebp + 8], edx */
   6086     RECOMP_ICALL(0x3C0089DEu); /* 0x3C002AFB: call 0x3c0089de */ /* not lifted */
   6087     RECOMP_FLAGS_IN();
   6088     ecx = MEM32(edi + 0x4); /* 0x3C002B00: mov ecx, dword ptr [edi + 4] */
   6089     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6090     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6091     esp = esp + 4; /* 0x3C002B03: add esp, 4 */
   6092     _flag_k = FK_ADD;
   6093     /* test ecx, ecx */ /* 0x3C002B06: test ecx, ecx */
   6094     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6095     _cf = 0;
   6096     _flag_k = FK_TEST;
   6097     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C002B0E; /* 0x3C002B08: jne 0x3c002b0e */
   6098 L_3C002B0A:
   6099     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6100     eax = 0; /* 0x3C002B0A: xor eax, eax */
   6101     _cf = 0;
   6102     _flag_k = FK_TEST;
   6103     goto L_3C002B16; /* 0x3C002B0C: jmp 0x3c002b16 */
   6104 L_3C002B0E:
   6105     eax = MEM32(edi + 0x8); /* 0x3C002B0E: mov eax, dword ptr [edi + 8] */
   6106     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6108     eax = eax - ecx; /* 0x3C002B11: sub eax, ecx */
   6109     _flag_k = FK_CMP;
   6110     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3C002B13: sar eax, 2 */
   6111     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6112     eax = (uint32_t)((int32_t)eax >> 2u);
   6113 L_3C002B16:
   6114     /* test eax, eax */ /* 0x3C002B16: test eax, eax */
   6115     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6116     _cf = 0;
   6117     _flag_k = FK_TEST;
   6118     if (TEST_NS(_flag_a, _flag_b)) goto L_3C002B1C; /* 0x3C002B18: jge 0x3c002b1c */
   6119 L_3C002B1A:
   6120     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6121     eax = 0; /* 0x3C002B1A: xor eax, eax */
   6122     _cf = 0;
   6123     _flag_k = FK_TEST;
   6124 L_3C002B1C:
   6125     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3C002B1C: shl eax, 2 */
   6126     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6127     eax = eax << 2u; /* 0x3C002B1C: shl eax, 2 */
   6128     PUSH32(esp, eax); /* 0x3C002B1F: push eax */
   6129     RECOMP_ICALL(0x3C008B40u); /* 0x3C002B20: call 0x3c008b40 */ /* not lifted */
   6130     RECOMP_FLAGS_IN();
   6131     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6132     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6133     esp = esp + 4; /* 0x3C002B25: add esp, 4 */
   6134     _flag_k = FK_ADD;
   6135     MEM32(esi + 0x4) = eax; /* 0x3C002B28: mov dword ptr [esi + 4], eax */
   6136     ecx = MEM32(edi + 0x8); /* 0x3C002B2B: mov ecx, dword ptr [edi + 8] */
   6137     edi = MEM32(edi + 0x4); /* 0x3C002B2E: mov edi, dword ptr [edi + 4] */
   6138     PUSH32(esp, eax); /* 0x3C002B31: push eax */
   6139     PUSH32(esp, ecx); /* 0x3C002B32: push ecx */
   6140     PUSH32(esp, edi); /* 0x3C002B33: push edi */
   6141     ecx = esi; /* 0x3C002B34: mov ecx, esi */
   6142     RECOMP_ICALL(0x3C005D70u); /* 0x3C002B36: call 0x3c005d70 */ /* not lifted */
   6143     RECOMP_FLAGS_IN();
   6144     MEM32(esi + 0x8) = eax; /* 0x3C002B3B: mov dword ptr [esi + 8], eax */
   6145     MEM32(esi + 0xC) = eax; /* 0x3C002B3E: mov dword ptr [esi + 0xc], eax */
   6146     eax = MEM32(ebp + (-0x4)); /* 0x3C002B41: mov eax, dword ptr [ebp - 4] */
   6147 L_3C002B44:
   6148     edi = POP32_VAL(esp); /* 0x3C002B44: pop edi */
   6149     esi = POP32_VAL(esp); /* 0x3C002B45: pop esi */
   6150     ebx = POP32_VAL(esp); /* 0x3C002B46: pop ebx */
   6151     esp = ebp; /* 0x3C002B47: mov esp, ebp */
   6152     ebp = POP32_VAL(esp); /* 0x3C002B49: pop ebp */
   6153     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002B4A: ret 4 */
   6154     RECOMP_REGS_OUT();
   6155 }
   6156 
   6157 void sub_3C002B50(void) {
   6158     int _fpu_cmp = 0;
   6159     uint32_t _cf = 0;
   6160     int _df = 1;
   6161     uint32_t _flag_k = FK_NONE;
   6162     uint32_t _flag_a = 0, _flag_b = 0;
   6163     uint32_t _itail_tgt = 0;
   6164     RECOMP_REGS_LOCALS
   6165     RECOMP_ENTER(0x3C002B50u);
   6166 
   6167 L_3C002B50:
   6168     PUSH32(esp, ebp); /* 0x3C002B50: push ebp */
   6169     ebp = esp; /* 0x3C002B51: mov ebp, esp */
   6170     PUSH32(esp, ebx); /* 0x3C002B53: push ebx */
   6171     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3C002B54: mov bl, byte ptr [ebp + 8] */
   6172     /* test LO8(ebx), 2 */ /* 0x3C002B57: test bl, 2 */
   6173     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   6174     _cf = 0;
   6175     _flag_k = FK_NARROW(FK_TEST, 24);
   6176     PUSH32(esp, esi); /* 0x3C002B5A: push esi */
   6177     esi = ecx; /* 0x3C002B5B: mov esi, ecx */
   6178     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002B8B; /* 0x3C002B5D: je 0x3c002b8b */
   6179 L_3C002B5F:
   6180     eax = MEM32(esi + (-0x4)); /* 0x3C002B5F: mov eax, dword ptr [esi - 4] */
   6181     PUSH32(esp, edi); /* 0x3C002B62: push edi */
   6182     PUSH32(esp, 0x3C006060u); /* 0x3C002B63: push 0x3c006060 */
   6183     edi = esi + (-0x4); /* 0x3C002B68: lea edi, [esi - 4] */
   6184     PUSH32(esp, eax); /* 0x3C002B6B: push eax */
   6185     PUSH32(esp, 0x14u); /* 0x3C002B6C: push 0x14 */
   6186     PUSH32(esp, esi); /* 0x3C002B6E: push esi */
   6187     RECOMP_ICALL(0x3C008A4Au); /* 0x3C002B6F: call 0x3c008a4a */ /* not lifted */
   6188     RECOMP_FLAGS_IN();
   6189     /* test LO8(ebx), 1 */ /* 0x3C002B74: test bl, 1 */
   6190     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   6191     _cf = 0;
   6192     _flag_k = FK_NARROW(FK_TEST, 24);
   6193     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002B82; /* 0x3C002B77: je 0x3c002b82 */
   6194 L_3C002B79:
   6195     PUSH32(esp, edi); /* 0x3C002B79: push edi */
   6196     RECOMP_ICALL(0x3C0089DEu); /* 0x3C002B7A: call 0x3c0089de */ /* not lifted */
   6197     RECOMP_FLAGS_IN();
   6198     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6199     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6200     esp = esp + 4; /* 0x3C002B7F: add esp, 4 */
   6201     _flag_k = FK_ADD;
   6202 L_3C002B82:
   6203     eax = edi; /* 0x3C002B82: mov eax, edi */
   6204     edi = POP32_VAL(esp); /* 0x3C002B84: pop edi */
   6205     esi = POP32_VAL(esp); /* 0x3C002B85: pop esi */
   6206     ebx = POP32_VAL(esp); /* 0x3C002B86: pop ebx */
   6207     ebp = POP32_VAL(esp); /* 0x3C002B87: pop ebp */
   6208     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002B88: ret 4 */
   6209 L_3C002B8B:
   6210     ecx = esi; /* 0x3C002B8B: mov ecx, esi */
   6211     RECOMP_ICALL(0x3C006060u); /* 0x3C002B8D: call 0x3c006060 */ /* not lifted */
   6212     RECOMP_FLAGS_IN();
   6213     /* test LO8(ebx), 1 */ /* 0x3C002B92: test bl, 1 */
   6214     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   6215     _cf = 0;
   6216     _flag_k = FK_NARROW(FK_TEST, 24);
   6217     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002BA0; /* 0x3C002B95: je 0x3c002ba0 */
   6218 L_3C002B97:
   6219     PUSH32(esp, esi); /* 0x3C002B97: push esi */
   6220     RECOMP_ICALL(0x3C0089DEu); /* 0x3C002B98: call 0x3c0089de */ /* not lifted */
   6221     RECOMP_FLAGS_IN();
   6222     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6223     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6224     esp = esp + 4; /* 0x3C002B9D: add esp, 4 */
   6225     _flag_k = FK_ADD;
   6226 L_3C002BA0:
   6227     eax = esi; /* 0x3C002BA0: mov eax, esi */
   6228     esi = POP32_VAL(esp); /* 0x3C002BA2: pop esi */
   6229     ebx = POP32_VAL(esp); /* 0x3C002BA3: pop ebx */
   6230     ebp = POP32_VAL(esp); /* 0x3C002BA4: pop ebp */
   6231     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002BA5: ret 4 */
   6232     RECOMP_REGS_OUT();
   6233 }
   6234 
   6235 void sub_3C002BB0(void) {
   6236     int _fpu_cmp = 0;
   6237     uint32_t _cf = 0;
   6238     int _df = 1;
   6239     uint32_t _flag_k = FK_NONE;
   6240     uint32_t _flag_a = 0, _flag_b = 0;
   6241     uint32_t _itail_tgt = 0;
   6242     RECOMP_REGS_LOCALS
   6243     RECOMP_ENTER(0x3C002BB0u);
   6244 
   6245 L_3C002BB0:
   6246     eax = ecx; /* 0x3C002BB0: mov eax, ecx */
   6247     MEM32(eax) = 0x3C0091B4u; /* 0x3C002BB2: mov dword ptr [eax], 0x3c0091b4 */
   6248     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002BB8: ret  */
   6249     RECOMP_REGS_OUT();
   6250 }
   6251 
   6252 void sub_3C002BC0(void) {
   6253     int _fpu_cmp = 0;
   6254     uint32_t _cf = 0;
   6255     int _df = 1;
   6256     uint32_t _flag_k = FK_NONE;
   6257     uint32_t _flag_a = 0, _flag_b = 0;
   6258     uint32_t _itail_tgt = 0;
   6259     RECOMP_REGS_LOCALS
   6260     RECOMP_ENTER(0x3C002BC0u);
   6261 
   6262 L_3C002BC0:
   6263     eax = ecx; /* 0x3C002BC0: mov eax, ecx */
   6264     MEM32(eax) = 0x3C0091B4u; /* 0x3C002BC2: mov dword ptr [eax], 0x3c0091b4 */
   6265     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002BC8: ret 4 */
   6266     RECOMP_REGS_OUT();
   6267 }
   6268 
   6269 void sub_3C002BD0(void) {
   6270     int _fpu_cmp = 0;
   6271     uint32_t _cf = 0;
   6272     int _df = 1;
   6273     uint32_t _flag_k = FK_NONE;
   6274     uint32_t _flag_a = 0, _flag_b = 0;
   6275     uint32_t _itail_tgt = 0;
   6276     RECOMP_REGS_LOCALS
   6277     RECOMP_ENTER(0x3C002BD0u);
   6278 
   6279 L_3C002BD0:
   6280     PUSH32(esp, ebp); /* 0x3C002BD0: push ebp */
   6281     ebp = esp; /* 0x3C002BD1: mov ebp, esp */
   6282     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u);
   6283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6284     esp = esp - 0x48u; /* 0x3C002BD3: sub esp, 0x48 */
   6285     _flag_k = FK_CMP;
   6286     PUSH32(esp, ebx); /* 0x3C002BD6: push ebx */
   6287     PUSH32(esp, esi); /* 0x3C002BD7: push esi */
   6288     PUSH32(esp, edi); /* 0x3C002BD8: push edi */
   6289     ebx = MEM32(ebp + 0x10); /* 0x3C002BD9: mov ebx, dword ptr [ebp + 0x10] */
   6290     esi = MEM32(ebp + 0xC); /* 0x3C002BDC: mov esi, dword ptr [ebp + 0xc] */
   6291     MEM32(ebp + (-0x30)) = 0; /* 0x3C002BDF: mov dword ptr [ebp - 0x30], 0 */
   6292     ecx = MEM32(ebp + (-0x30)); /* 0x3C002BE6: mov ecx, dword ptr [ebp - 0x30] */
   6293     MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x3C002BE9: mov dword ptr [ebp - 0x2c], 0x3f800000 */
   6294     edx = MEM32(ebp + (-0x2C)); /* 0x3C002BF0: mov edx, dword ptr [ebp - 0x2c] */
   6295     eax = ebx; /* 0x3C002BF3: mov eax, ebx */
   6296     MEM32(eax) = ecx; /* 0x3C002BF5: mov dword ptr [eax], ecx */
   6297     MEM32(eax + 0x4) = edx; /* 0x3C002BF7: mov dword ptr [eax + 4], edx */
   6298     MEM32(ebp + (-0x28)) = 0; /* 0x3C002BFA: mov dword ptr [ebp - 0x28], 0 */
   6299     ecx = MEM32(ebp + (-0x28)); /* 0x3C002C01: mov ecx, dword ptr [ebp - 0x28] */
   6300     MEM32(eax + 0x8) = ecx; /* 0x3C002C04: mov dword ptr [eax + 8], ecx */
   6301     edx = esi; /* 0x3C002C07: mov edx, esi */
   6302     eax = MEM32(edx); /* 0x3C002C09: mov eax, dword ptr [edx] */
   6303     ecx = MEM32(edx + 0x4); /* 0x3C002C0B: mov ecx, dword ptr [edx + 4] */
   6304     edx = MEM32(edx + 0x8); /* 0x3C002C0E: mov edx, dword ptr [edx + 8] */
   6305     MEM32(ebp + (-0x8)) = ecx; /* 0x3C002C11: mov dword ptr [ebp - 8], ecx */
   6306     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C002C14: fld dword ptr [ebp - 8] */
   6307     _st[0] -= (double)*(float*)ADDR(0x3C0091BC); /* 0x3C002C17: fsub dword ptr [0x3c0091bc] */
   6308     ecx = edx; /* 0x3C002C1D: mov ecx, edx */
   6309     MEM32(ebp + (-0x4)) = edx; /* 0x3C002C1F: mov dword ptr [ebp - 4], edx */
   6310     edx = eax; /* 0x3C002C22: mov edx, eax */
   6311     MEM32(ebp + (-0xC)) = eax; /* 0x3C002C24: mov dword ptr [ebp - 0xc], eax */
   6312     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C002C27: fstp dword ptr [ebp - 8] */
   6313     MEM32(ebp + (-0xC)) = eax; /* 0x3C002C2A: mov dword ptr [ebp - 0xc], eax */
   6314     eax = MEM32(ebp + (-0x8)); /* 0x3C002C2D: mov eax, dword ptr [ebp - 8] */
   6315     MEM32(ebp + (-0x24)) = edx; /* 0x3C002C30: mov dword ptr [ebp - 0x24], edx */
   6316     MEM32(ebp + (-0x20)) = eax; /* 0x3C002C33: mov dword ptr [ebp - 0x20], eax */
   6317     MEM32(ebp + (-0x4)) = ecx; /* 0x3C002C36: mov dword ptr [ebp - 4], ecx */
   6318     MEM32(ebp + (-0x1C)) = ecx; /* 0x3C002C39: mov dword ptr [ebp - 0x1c], ecx */
   6319     edx = esi; /* 0x3C002C3C: mov edx, esi */
   6320     eax = MEM32(edx); /* 0x3C002C3E: mov eax, dword ptr [edx] */
   6321     ecx = MEM32(edx + 0x4); /* 0x3C002C40: mov ecx, dword ptr [edx + 4] */
   6322     edx = MEM32(edx + 0x8); /* 0x3C002C43: mov edx, dword ptr [edx + 8] */
   6323     MEM32(ebp + (-0x14)) = ecx; /* 0x3C002C46: mov dword ptr [ebp - 0x14], ecx */
   6324     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C002C49: fld dword ptr [ebp - 0x14] */
   6325     _st[0] += (double)*(float*)ADDR(0x3C0091BC); /* 0x3C002C4C: fadd dword ptr [0x3c0091bc] */
   6326     ecx = edx; /* 0x3C002C52: mov ecx, edx */
   6327     MEM32(ebp + (-0x18)) = eax; /* 0x3C002C54: mov dword ptr [ebp - 0x18], eax */
   6328     MEM32(ebp + (-0x10)) = edx; /* 0x3C002C57: mov dword ptr [ebp - 0x10], edx */
   6329     edx = eax; /* 0x3C002C5A: mov edx, eax */
   6330     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C002C5C: fstp dword ptr [ebp - 0x14] */
   6331     edi = MEM32(ebp + 0x8); /* 0x3C002C5F: mov edi, dword ptr [ebp + 8] */
   6332     MEM32(ebp + (-0x18)) = eax; /* 0x3C002C62: mov dword ptr [ebp - 0x18], eax */
   6333     eax = MEM32(ebp + (-0x14)); /* 0x3C002C65: mov eax, dword ptr [ebp - 0x14] */
   6334     MEM32(ebp + (-0x2C)) = eax; /* 0x3C002C68: mov dword ptr [ebp - 0x2c], eax */
   6335     eax = MEM32(ebp + 0x14); /* 0x3C002C6B: mov eax, dword ptr [ebp + 0x14] */
   6336     PUSH32(esp, eax); /* 0x3C002C6E: push eax */
   6337     PUSH32(esp, 1); /* 0x3C002C6F: push 1 */
   6338     MEM32(ebp + (-0x10)) = ecx; /* 0x3C002C71: mov dword ptr [ebp - 0x10], ecx */
   6339     MEM32(ebp + (-0x28)) = ecx; /* 0x3C002C74: mov dword ptr [ebp - 0x28], ecx */
   6340     PUSH32(esp, ebx); /* 0x3C002C77: push ebx */
   6341     ecx = ebp + (-0x3C); /* 0x3C002C78: lea ecx, [ebp - 0x3c] */
   6342     PUSH32(esp, ecx); /* 0x3C002C7B: push ecx */
   6343     eax = ebp + (-0x24); /* 0x3C002C7C: lea eax, [ebp - 0x24] */
   6344     PUSH32(esp, eax); /* 0x3C002C7F: push eax */
   6345     ecx = ebp + (-0x30); /* 0x3C002C80: lea ecx, [ebp - 0x30] */
   6346     MEM32(ebp + (-0x30)) = edx; /* 0x3C002C83: mov dword ptr [ebp - 0x30], edx */
   6347     edx = MEM32(edi); /* 0x3C002C86: mov edx, dword ptr [edi] */
   6348     PUSH32(esp, ecx); /* 0x3C002C88: push ecx */
   6349     ecx = edi; /* 0x3C002C89: mov ecx, edi */
   6350     MEM32(ebp + (-0x44)) = 0x3E4CCCCDu; /* 0x3C002C8B: mov dword ptr [ebp - 0x44], 0x3e4ccccd */
   6351     MEM32(ebp + (-0x3C)) = 0; /* 0x3C002C92: mov dword ptr [ebp - 0x3c], 0 */
   6352     MEM32(ebp + (-0x38)) = 0; /* 0x3C002C99: mov dword ptr [ebp - 0x38], 0 */
   6353     MEM32(ebp + (-0x34)) = 0; /* 0x3C002CA0: mov dword ptr [ebp - 0x34], 0 */
   6354     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3C002CA7: call dword ptr [edx + 0x10] */
   6355     RECOMP_FLAGS_IN();
   6356     /* test LO8(eax), LO8(eax) */ /* 0x3C002CAA: test al, al */
   6357     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6358     _cf = 0;
   6359     _flag_k = FK_NARROW(FK_TEST, 24);
   6360     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C002D61; /* 0x3C002CAC: jne 0x3c002d61 */
   6361 L_3C002CB2:
   6362     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3C002CB2: fld dword ptr [ebp - 0x44] */
   6363     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C0091B8)); /* 0x3C002CB5: fcomp dword ptr [0x3c0091b8] */
   6364     fp_pop();
   6365     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C002CBB: fnstsw ax */
   6366     /* test HI8(eax), 1 */ /* 0x3C002CBD: test ah, 1 */
   6367     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6368     _cf = 0;
   6369     _flag_k = FK_NARROW(FK_TEST, 24);
   6370     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002D6E; /* 0x3C002CC0: je 0x3c002d6e */
   6371 L_3C002CC6:
   6372     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3C002CC6: fld dword ptr [ebp - 0x44] */
   6373     edx = esi; /* 0x3C002CC9: mov edx, esi */
   6374     eax = MEM32(edx); /* 0x3C002CCB: mov eax, dword ptr [edx] */
   6375     _st[0] += _st[0]; /* 0x3C002CCD: fadd st(0), st(0) */
   6376     ecx = MEM32(edx + 0x4); /* 0x3C002CCF: mov ecx, dword ptr [edx + 4] */
   6377     edx = MEM32(edx + 0x8); /* 0x3C002CD2: mov edx, dword ptr [edx + 8] */
   6378     MEM32(ebp + (-0x8)) = ecx; /* 0x3C002CD5: mov dword ptr [ebp - 8], ecx */
   6379     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x3C002CD8: fstp dword ptr [ebp - 0x44] */
   6380     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C002CDB: fld dword ptr [ebp - 8] */
   6381     ecx = edx; /* 0x3C002CDE: mov ecx, edx */
   6382     _st[0] -= (double)*(float*)ADDR(ebp + (-0x44)); /* 0x3C002CE0: fsub dword ptr [ebp - 0x44] */
   6383     MEM32(ebp + (-0x4)) = edx; /* 0x3C002CE3: mov dword ptr [ebp - 4], edx */
   6384     edx = eax; /* 0x3C002CE6: mov edx, eax */
   6385     MEM32(ebp + (-0xC)) = eax; /* 0x3C002CE8: mov dword ptr [ebp - 0xc], eax */
   6386     MEM32(ebp + (-0xC)) = eax; /* 0x3C002CEB: mov dword ptr [ebp - 0xc], eax */
   6387     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C002CEE: fstp dword ptr [ebp - 8] */
   6388     eax = MEM32(ebp + (-0x8)); /* 0x3C002CF1: mov eax, dword ptr [ebp - 8] */
   6389     MEM32(ebp + (-0x24)) = edx; /* 0x3C002CF4: mov dword ptr [ebp - 0x24], edx */
   6390     MEM32(ebp + (-0x20)) = eax; /* 0x3C002CF7: mov dword ptr [ebp - 0x20], eax */
   6391     MEM32(ebp + (-0x4)) = ecx; /* 0x3C002CFA: mov dword ptr [ebp - 4], ecx */
   6392     MEM32(ebp + (-0x1C)) = ecx; /* 0x3C002CFD: mov dword ptr [ebp - 0x1c], ecx */
   6393     edx = esi; /* 0x3C002D00: mov edx, esi */
   6394     eax = MEM32(edx); /* 0x3C002D02: mov eax, dword ptr [edx] */
   6395     ecx = MEM32(edx + 0x4); /* 0x3C002D04: mov ecx, dword ptr [edx + 4] */
   6396     edx = MEM32(edx + 0x8); /* 0x3C002D07: mov edx, dword ptr [edx + 8] */
   6397     MEM32(ebp + (-0x14)) = ecx; /* 0x3C002D0A: mov dword ptr [ebp - 0x14], ecx */
   6398     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C002D0D: fld dword ptr [ebp - 0x14] */
   6399     _st[0] += (double)*(float*)ADDR(ebp + (-0x44)); /* 0x3C002D10: fadd dword ptr [ebp - 0x44] */
   6400     ecx = edx; /* 0x3C002D13: mov ecx, edx */
   6401     MEM32(ebp + (-0x18)) = eax; /* 0x3C002D15: mov dword ptr [ebp - 0x18], eax */
   6402     MEM32(ebp + (-0x10)) = edx; /* 0x3C002D18: mov dword ptr [ebp - 0x10], edx */
   6403     edx = eax; /* 0x3C002D1B: mov edx, eax */
   6404     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C002D1D: fstp dword ptr [ebp - 0x14] */
   6405     MEM32(ebp + (-0x18)) = eax; /* 0x3C002D20: mov dword ptr [ebp - 0x18], eax */
   6406     eax = MEM32(ebp + (-0x14)); /* 0x3C002D23: mov eax, dword ptr [ebp - 0x14] */
   6407     MEM32(ebp + (-0x2C)) = eax; /* 0x3C002D26: mov dword ptr [ebp - 0x2c], eax */
   6408     eax = MEM32(ebp + 0x14); /* 0x3C002D29: mov eax, dword ptr [ebp + 0x14] */
   6409     PUSH32(esp, eax); /* 0x3C002D2C: push eax */
   6410     PUSH32(esp, 1); /* 0x3C002D2D: push 1 */
   6411     MEM32(ebp + (-0x10)) = ecx; /* 0x3C002D2F: mov dword ptr [ebp - 0x10], ecx */
   6412     MEM32(ebp + (-0x28)) = ecx; /* 0x3C002D32: mov dword ptr [ebp - 0x28], ecx */
   6413     PUSH32(esp, ebx); /* 0x3C002D35: push ebx */
   6414     ecx = ebp + (-0x3C); /* 0x3C002D36: lea ecx, [ebp - 0x3c] */
   6415     PUSH32(esp, ecx); /* 0x3C002D39: push ecx */
   6416     eax = ebp + (-0x24); /* 0x3C002D3A: lea eax, [ebp - 0x24] */
   6417     PUSH32(esp, eax); /* 0x3C002D3D: push eax */
   6418     ecx = ebp + (-0x30); /* 0x3C002D3E: lea ecx, [ebp - 0x30] */
   6419     MEM32(ebp + (-0x30)) = edx; /* 0x3C002D41: mov dword ptr [ebp - 0x30], edx */
   6420     edx = MEM32(edi); /* 0x3C002D44: mov edx, dword ptr [edi] */
   6421     PUSH32(esp, ecx); /* 0x3C002D46: push ecx */
   6422     ecx = edi; /* 0x3C002D47: mov ecx, edi */
   6423     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3C002D49: call dword ptr [edx + 0x10] */
   6424     RECOMP_FLAGS_IN();
   6425     /* test LO8(eax), LO8(eax) */ /* 0x3C002D4C: test al, al */
   6426     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6427     _cf = 0;
   6428     _flag_k = FK_NARROW(FK_TEST, 24);
   6429     RECOMP_BACKEDGE();
   6430     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002CB2; /* 0x3C002D4E: je 0x3c002cb2 */
   6431 L_3C002D54:
   6432     edx = MEM32(ebp + (-0x38)); /* 0x3C002D54: mov edx, dword ptr [ebp - 0x38] */
   6433     edi = POP32_VAL(esp); /* 0x3C002D57: pop edi */
   6434     MEM32(esi + 0x4) = edx; /* 0x3C002D58: mov dword ptr [esi + 4], edx */
   6435     esi = POP32_VAL(esp); /* 0x3C002D5B: pop esi */
   6436     ebx = POP32_VAL(esp); /* 0x3C002D5C: pop ebx */
   6437     esp = ebp; /* 0x3C002D5D: mov esp, ebp */
   6438     ebp = POP32_VAL(esp); /* 0x3C002D5F: pop ebp */
   6439     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002D60: ret  */
   6440 L_3C002D61:
   6441     eax = MEM32(ebp + (-0x38)); /* 0x3C002D61: mov eax, dword ptr [ebp - 0x38] */
   6442     edi = POP32_VAL(esp); /* 0x3C002D64: pop edi */
   6443     MEM32(esi + 0x4) = eax; /* 0x3C002D65: mov dword ptr [esi + 4], eax */
   6444     esi = POP32_VAL(esp); /* 0x3C002D68: pop esi */
   6445     ebx = POP32_VAL(esp); /* 0x3C002D69: pop ebx */
   6446     esp = ebp; /* 0x3C002D6A: mov esp, ebp */
   6447     ebp = POP32_VAL(esp); /* 0x3C002D6C: pop ebp */
   6448     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002D6D: ret  */
   6449 L_3C002D6E:
   6450     ecx = MEM32(ebp + (-0x38)); /* 0x3C002D6E: mov ecx, dword ptr [ebp - 0x38] */
   6451     edi = POP32_VAL(esp); /* 0x3C002D71: pop edi */
   6452     MEM32(esi + 0x4) = ecx; /* 0x3C002D72: mov dword ptr [esi + 4], ecx */
   6453     esi = POP32_VAL(esp); /* 0x3C002D75: pop esi */
   6454     ebx = POP32_VAL(esp); /* 0x3C002D76: pop ebx */
   6455     esp = ebp; /* 0x3C002D77: mov esp, ebp */
   6456     ebp = POP32_VAL(esp); /* 0x3C002D79: pop ebp */
   6457     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002D7A: ret  */
   6458     RECOMP_REGS_OUT();
   6459 }
   6460 
   6461 void sub_3C002D80(void) {
   6462     int _fpu_cmp = 0;
   6463     uint32_t _cf = 0;
   6464     int _df = 1;
   6465     uint32_t _flag_k = FK_NONE;
   6466     uint32_t _flag_a = 0, _flag_b = 0;
   6467     uint32_t _itail_tgt = 0;
   6468     RECOMP_REGS_LOCALS
   6469     RECOMP_ENTER(0x3C002D80u);
   6470 
   6471 L_3C002D80:
   6472     PUSH32(esp, esi); /* 0x3C002D80: push esi */
   6473     esi = ecx; /* 0x3C002D81: mov esi, ecx */
   6474     RECOMP_ICALL(0x3C005FC0u); /* 0x3C002D83: call 0x3c005fc0 */ /* not lifted */
   6475     RECOMP_FLAGS_IN();
   6476     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6477     eax = 0; /* 0x3C002D88: xor eax, eax */
   6478     _cf = 0;
   6479     _flag_k = FK_TEST;
   6480     MEM32(esi + 0x4) = eax; /* 0x3C002D8A: mov dword ptr [esi + 4], eax */
   6481     MEM32(esi + 0x8) = eax; /* 0x3C002D8D: mov dword ptr [esi + 8], eax */
   6482     MEM32(esi + 0xC) = eax; /* 0x3C002D90: mov dword ptr [esi + 0xc], eax */
   6483     MEM32(esi + 0x10) = eax; /* 0x3C002D93: mov dword ptr [esi + 0x10], eax */
   6484     eax = 1; /* 0x3C002D96: mov eax, 1 */
   6485     MEM32(esi + 0x14) = eax; /* 0x3C002D9B: mov dword ptr [esi + 0x14], eax */
   6486     MEM32(esi + 0x18) = eax; /* 0x3C002D9E: mov dword ptr [esi + 0x18], eax */
   6487     eax = 0x40000000u; /* 0x3C002DA1: mov eax, 0x40000000 */
   6488     MEM32(esi + 0x1C) = eax; /* 0x3C002DA6: mov dword ptr [esi + 0x1c], eax */
   6489     MEM32(esi + 0x20) = eax; /* 0x3C002DA9: mov dword ptr [esi + 0x20], eax */
   6490     MEM32(esi) = 0x3C0091A0u; /* 0x3C002DAC: mov dword ptr [esi], 0x3c0091a0 */
   6491     eax = esi; /* 0x3C002DB2: mov eax, esi */
   6492     esi = POP32_VAL(esp); /* 0x3C002DB4: pop esi */
   6493     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002DB5: ret 4 */
   6494     RECOMP_REGS_OUT();
   6495 }
   6496 
   6497 void sub_3C002DC0(void) {
   6498     int _fpu_cmp = 0;
   6499     uint32_t _cf = 0;
   6500     int _df = 1;
   6501     uint32_t _flag_k = FK_NONE;
   6502     uint32_t _flag_a = 0, _flag_b = 0;
   6503     uint32_t _itail_tgt = 0;
   6504     RECOMP_REGS_LOCALS
   6505     RECOMP_ENTER(0x3C002DC0u);
   6506 
   6507 L_3C002DC0:
   6508     PUSH32(esp, ebp); /* 0x3C002DC0: push ebp */
   6509     ebp = esp; /* 0x3C002DC1: mov ebp, esp */
   6510     PUSH32(esp, 0xFFFFFFFFu); /* 0x3C002DC3: push -1 */
   6511     PUSH32(esp, 0x3C008D58u); /* 0x3C002DC5: push 0x3c008d58 */
   6512     eax = MEM32(FS_BASE + (0)); /* 0x3C002DCA: mov eax, dword ptr fs:[0] */
   6513     PUSH32(esp, eax); /* 0x3C002DD0: push eax */
   6514     MEM32(FS_BASE + (0)) = esp; /* 0x3C002DD1: mov dword ptr fs:[0], esp */
   6515     PUSH32(esp, ecx); /* 0x3C002DD8: push ecx */
   6516     PUSH32(esp, esi); /* 0x3C002DD9: push esi */
   6517     esi = ecx; /* 0x3C002DDA: mov esi, ecx */
   6518     PUSH32(esp, edi); /* 0x3C002DDC: push edi */
   6519     MEM32(ebp + (-0x10)) = esi; /* 0x3C002DDD: mov dword ptr [ebp - 0x10], esi */
   6520     MEM32(esi) = 0x3C0091A0u; /* 0x3C002DE0: mov dword ptr [esi], 0x3c0091a0 */
   6521     edi = MEM32(esi + 0x4); /* 0x3C002DE6: mov edi, dword ptr [esi + 4] */
   6522     /* test edi, edi */ /* 0x3C002DE9: test edi, edi */
   6523     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6524     _cf = 0;
   6525     _flag_k = FK_TEST;
   6526     MEM32(ebp + (-0x4)) = 0; /* 0x3C002DEB: mov dword ptr [ebp - 4], 0 */
   6527     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002E04; /* 0x3C002DF2: je 0x3c002e04 */
   6528 L_3C002DF4:
   6529     ecx = edi; /* 0x3C002DF4: mov ecx, edi */
   6530     RECOMP_ICALL(0x3C0015F0u); /* 0x3C002DF6: call 0x3c0015f0 */ /* not lifted */
   6531     RECOMP_FLAGS_IN();
   6532     PUSH32(esp, edi); /* 0x3C002DFB: push edi */
   6533     RECOMP_ICALL(0x3C0089DEu); /* 0x3C002DFC: call 0x3c0089de */ /* not lifted */
   6534     RECOMP_FLAGS_IN();
   6535     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6536     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6537     esp = esp + 4; /* 0x3C002E01: add esp, 4 */
   6538     _flag_k = FK_ADD;
   6539 L_3C002E04:
   6540     ecx = MEM32(esi + 0x8); /* 0x3C002E04: mov ecx, dword ptr [esi + 8] */
   6541     /* test ecx, ecx */ /* 0x3C002E07: test ecx, ecx */
   6542     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6543     _cf = 0;
   6544     _flag_k = FK_TEST;
   6545     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002E11; /* 0x3C002E09: je 0x3c002e11 */
   6546 L_3C002E0B:
   6547     eax = MEM32(ecx); /* 0x3C002E0B: mov eax, dword ptr [ecx] */
   6548     PUSH32(esp, 1); /* 0x3C002E0D: push 1 */
   6549     RECOMP_ICALL(MEM32(eax)); /* 0x3C002E0F: call dword ptr [eax] */
   6550     RECOMP_FLAGS_IN();
   6551 L_3C002E11:
   6552     ecx = MEM32(esi + 0xC); /* 0x3C002E11: mov ecx, dword ptr [esi + 0xc] */
   6553     /* test ecx, ecx */ /* 0x3C002E14: test ecx, ecx */
   6554     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6555     _cf = 0;
   6556     _flag_k = FK_TEST;
   6557     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002E1F; /* 0x3C002E16: je 0x3c002e1f */
   6558 L_3C002E18:
   6559     edx = MEM32(ecx); /* 0x3C002E18: mov edx, dword ptr [ecx] */
   6560     PUSH32(esp, 1); /* 0x3C002E1A: push 1 */
   6561     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3C002E1C: call dword ptr [edx + 4] */
   6562     RECOMP_FLAGS_IN();
   6563 L_3C002E1F:
   6564     ecx = esi; /* 0x3C002E1F: mov ecx, esi */
   6565     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C002E21: mov dword ptr [ebp - 4], 0xffffffff */
   6566     RECOMP_ICALL(0x3C005FD0u); /* 0x3C002E28: call 0x3c005fd0 */ /* not lifted */
   6567     RECOMP_FLAGS_IN();
   6568     ecx = MEM32(ebp + (-0xC)); /* 0x3C002E2D: mov ecx, dword ptr [ebp - 0xc] */
   6569     edi = POP32_VAL(esp); /* 0x3C002E30: pop edi */
   6570     esi = POP32_VAL(esp); /* 0x3C002E31: pop esi */
   6571     MEM32(FS_BASE + (0)) = ecx; /* 0x3C002E32: mov dword ptr fs:[0], ecx */
   6572     esp = ebp; /* 0x3C002E39: mov esp, ebp */
   6573     ebp = POP32_VAL(esp); /* 0x3C002E3B: pop ebp */
   6574     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002E3C: ret  */
   6575     RECOMP_REGS_OUT();
   6576 }
   6577 
   6578 void sub_3C002E40(void) {
   6579     int _fpu_cmp = 0;
   6580     uint32_t _cf = 0;
   6581     int _df = 1;
   6582     uint32_t _flag_k = FK_NONE;
   6583     uint32_t _flag_a = 0, _flag_b = 0;
   6584     uint32_t _itail_tgt = 0;
   6585     RECOMP_REGS_LOCALS
   6586     RECOMP_ENTER(0x3C002E40u);
   6587 
   6588 L_3C002E40:
   6589     PUSH32(esp, ebp); /* 0x3C002E40: push ebp */
   6590     ebp = esp; /* 0x3C002E41: mov ebp, esp */
   6591     eax = MEM32(ebp + 0x8); /* 0x3C002E43: mov eax, dword ptr [ebp + 8] */
   6592     MEM32(ecx + 0x10) = eax; /* 0x3C002E46: mov dword ptr [ecx + 0x10], eax */
   6593     ebp = POP32_VAL(esp); /* 0x3C002E49: pop ebp */
   6594     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C002E4A: ret 4 */
   6595     RECOMP_REGS_OUT();
   6596 }
   6597 
   6598 void sub_3C002E50(void) {
   6599     int _fpu_cmp = 0;
   6600     uint32_t _cf = 0;
   6601     int _df = 1;
   6602     uint32_t _flag_k = FK_NONE;
   6603     uint32_t _flag_a = 0, _flag_b = 0;
   6604     uint32_t _itail_tgt = 0;
   6605     RECOMP_REGS_LOCALS
   6606     RECOMP_ENTER(0x3C002E50u);
   6607 
   6608 L_3C002E50:
   6609     PUSH32(esp, ebp); /* 0x3C002E50: push ebp */
   6610     ebp = esp; /* 0x3C002E51: mov ebp, esp */
   6611     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x54u);
   6612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6613     esp = esp - 0x54u; /* 0x3C002E53: sub esp, 0x54 */
   6614     _flag_k = FK_CMP;
   6615     PUSH32(esp, ebx); /* 0x3C002E56: push ebx */
   6616     ebx = MEM32(ebp + 0x14); /* 0x3C002E57: mov ebx, dword ptr [ebp + 0x14] */
   6617     PUSH32(esp, esi); /* 0x3C002E5A: push esi */
   6618     esi = MEM32(ebp + 0xC); /* 0x3C002E5B: mov esi, dword ptr [ebp + 0xc] */
   6619     PUSH32(esp, edi); /* 0x3C002E5E: push edi */
   6620     edi = MEM32(ebp + 0x10); /* 0x3C002E5F: mov edi, dword ptr [ebp + 0x10] */
   6621     eax = esi; /* 0x3C002E62: mov eax, esi */
   6622     ecx = MEM32(eax); /* 0x3C002E64: mov ecx, dword ptr [eax] */
   6623     edx = MEM32(eax + 0x4); /* 0x3C002E66: mov edx, dword ptr [eax + 4] */
   6624     eax = MEM32(eax + 0x8); /* 0x3C002E69: mov eax, dword ptr [eax + 8] */
   6625     MEM32(ebp + (-0x18)) = ecx; /* 0x3C002E6C: mov dword ptr [ebp - 0x18], ecx */
   6626     PUSH32(esp, ebx); /* 0x3C002E6F: push ebx */
   6627     ecx = ebp + (-0x24); /* 0x3C002E70: lea ecx, [ebp - 0x24] */
   6628     MEM32(ebp + (-0x14)) = edx; /* 0x3C002E73: mov dword ptr [ebp - 0x14], edx */
   6629     PUSH32(esp, ecx); /* 0x3C002E76: push ecx */
   6630     edx = ebp + (-0x18); /* 0x3C002E77: lea edx, [ebp - 0x18] */
   6631     PUSH32(esp, edx); /* 0x3C002E7A: push edx */
   6632     PUSH32(esp, edi); /* 0x3C002E7B: push edi */
   6633     MEM32(ebp + (-0x3C)) = 0; /* 0x3C002E7C: mov dword ptr [ebp - 0x3c], 0 */
   6634     MEM32(ebp + (-0x38)) = 0; /* 0x3C002E83: mov dword ptr [ebp - 0x38], 0 */
   6635     MEM32(ebp + (-0x34)) = 0; /* 0x3C002E8A: mov dword ptr [ebp - 0x34], 0 */
   6636     MEM32(ebp + (-0x30)) = 0; /* 0x3C002E91: mov dword ptr [ebp - 0x30], 0 */
   6637     MEM32(ebp + (-0x2C)) = 0; /* 0x3C002E98: mov dword ptr [ebp - 0x2c], 0 */
   6638     MEM32(ebp + (-0x28)) = 0; /* 0x3C002E9F: mov dword ptr [ebp - 0x28], 0 */
   6639     MEM32(ebp + (-0x24)) = 0; /* 0x3C002EA6: mov dword ptr [ebp - 0x24], 0 */
   6640     MEM32(ebp + (-0x20)) = 0; /* 0x3C002EAD: mov dword ptr [ebp - 0x20], 0 */
   6641     MEM32(ebp + (-0x1C)) = 0; /* 0x3C002EB4: mov dword ptr [ebp - 0x1c], 0 */
   6642     MEM32(ebp + (-0x10)) = eax; /* 0x3C002EBB: mov dword ptr [ebp - 0x10], eax */
   6643     RECOMP_ICALL(0x3C002BD0u); /* 0x3C002EBE: call 0x3c002bd0 */ /* not lifted */
   6644     RECOMP_FLAGS_IN();
   6645     eax = MEM32(esi); /* 0x3C002EC3: mov eax, dword ptr [esi] */
   6646     ecx = MEM32(esi + 0x4); /* 0x3C002EC5: mov ecx, dword ptr [esi + 4] */
   6647     edx = MEM32(esi + 0x8); /* 0x3C002EC8: mov edx, dword ptr [esi + 8] */
   6648     esi = MEM32(ebp + 0x8); /* 0x3C002ECB: mov esi, dword ptr [ebp + 8] */
   6649     MEM32(ebp + (-0xC)) = eax; /* 0x3C002ECE: mov dword ptr [ebp - 0xc], eax */
   6650     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C002ED1: fld dword ptr [ebp - 0xc] */
   6651     _st[0] -= (double)*(float*)ADDR(esi); /* 0x3C002ED4: fsub dword ptr [esi] */
   6652     MEM32(ebp + (-0x8)) = ecx; /* 0x3C002ED6: mov dword ptr [ebp - 8], ecx */
   6653     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C002ED9: fld dword ptr [ebp - 8] */
   6654     MEM32(ebp + (-0x4)) = edx; /* 0x3C002EDC: mov dword ptr [ebp - 4], edx */
   6655     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x3C002EDF: fsub dword ptr [esi + 4] */
   6656     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6658     esp = esp + 0x10u; /* 0x3C002EE2: add esp, 0x10 */
   6659     _flag_k = FK_ADD;
   6660     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C002EE5: fld dword ptr [ebp - 4] */
   6661     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3C002EE8: fsub dword ptr [esi + 8] */
   6662     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3C002EEB: fld dword ptr [ebp - 0x20] */
   6663     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C0091CC)); /* 0x3C002EEE: fcomp dword ptr [0x3c0091cc] */
   6664     fp_pop();
   6665     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C002EF4: fnstsw ax */
   6666     /* test HI8(eax), 1 */ /* 0x3C002EF6: test ah, 1 */
   6667     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6668     _cf = 0;
   6669     _flag_k = FK_NARROW(FK_TEST, 24);
   6670     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002F28; /* 0x3C002EF9: je 0x3c002f28 */
   6671 L_3C002EFB:
   6672     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3C002EFB: fld dword ptr [ebp - 0x1c] */
   6673     _st[0] *= _st[1]; /* 0x3C002EFE: fmul st(1) */
   6674     fp_xch(3); /* 0x3C002F00: fxch st(3) */
   6675     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3C002F02: fmul dword ptr [ebp - 0x24] */
   6676     { double _v = fp_pop(); _st[2] += _v; } /* 0x3C002F05: faddp st(3) */
   6677     fp_xch(1); /* 0x3C002F07: fxch st(1) */
   6678     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3C002F09: fmul dword ptr [ebp - 0x20] */
   6679     { double _v = fp_pop(); _st[1] += _v; } /* 0x3C002F0C: faddp st(2) */
   6680     fp_xch(1); /* 0x3C002F0E: fxch st(1) */
   6681     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C0091C8)); /* 0x3C002F10: fcomp dword ptr [0x3c0091c8] */
   6682     fp_pop();
   6683     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C002F16: fnstsw ax */
   6684     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C002F18: fstp st(0) */
   6685     /* test HI8(eax), 1 */ /* 0x3C002F1A: test ah, 1 */
   6686     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6687     _cf = 0;
   6688     _flag_k = FK_NARROW(FK_TEST, 24);
   6689     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002F2E; /* 0x3C002F1D: je 0x3c002f2e */
   6690 L_3C002F1F:
   6691     edi = POP32_VAL(esp); /* 0x3C002F1F: pop edi */
   6692     esi = POP32_VAL(esp); /* 0x3C002F20: pop esi */
   6693     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6694     SET_LO8(eax, 0); /* 0x3C002F21: xor al, al */
   6695     _cf = 0;
   6696     _flag_k = FK_NARROW(FK_TEST, 24);
   6697     ebx = POP32_VAL(esp); /* 0x3C002F23: pop ebx */
   6698     esp = ebp; /* 0x3C002F24: mov esp, ebp */
   6699     ebp = POP32_VAL(esp); /* 0x3C002F26: pop ebp */
   6700     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002F27: ret  */
   6701 L_3C002F28:
   6702     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C002F28: fstp st(0) */
   6703     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C002F2A: fstp st(0) */
   6704     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C002F2C: fstp st(0) */
   6705 L_3C002F2E:
   6706     ecx = MEM32(ebp + (-0x14)); /* 0x3C002F2E: mov ecx, dword ptr [ebp - 0x14] */
   6707     eax = MEM32(ebp + (-0x18)); /* 0x3C002F31: mov eax, dword ptr [ebp - 0x18] */
   6708     edx = MEM32(ebp + (-0x10)); /* 0x3C002F34: mov edx, dword ptr [ebp - 0x10] */
   6709     MEM32(ebp + (-0x8)) = ecx; /* 0x3C002F37: mov dword ptr [ebp - 8], ecx */
   6710     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C002F3A: fld dword ptr [ebp - 8] */
   6711     _st[0] += (double)*(float*)ADDR(0x3C0091C4); /* 0x3C002F3D: fadd dword ptr [0x3c0091c4] */
   6712     ecx = edx; /* 0x3C002F43: mov ecx, edx */
   6713     MEM32(ebp + (-0x4)) = edx; /* 0x3C002F45: mov dword ptr [ebp - 4], edx */
   6714     edx = eax; /* 0x3C002F48: mov edx, eax */
   6715     MEM32(ebp + (-0xC)) = eax; /* 0x3C002F4A: mov dword ptr [ebp - 0xc], eax */
   6716     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C002F4D: fstp dword ptr [ebp - 8] */
   6717     MEM32(ebp + (-0xC)) = eax; /* 0x3C002F50: mov dword ptr [ebp - 0xc], eax */
   6718     eax = MEM32(ebp + (-0x8)); /* 0x3C002F53: mov eax, dword ptr [ebp - 8] */
   6719     MEM32(ebp + (-0x48)) = edx; /* 0x3C002F56: mov dword ptr [ebp - 0x48], edx */
   6720     MEM32(ebp + (-0x4)) = ecx; /* 0x3C002F59: mov dword ptr [ebp - 4], ecx */
   6721     MEM32(ebp + (-0x44)) = eax; /* 0x3C002F5C: mov dword ptr [ebp - 0x44], eax */
   6722     MEM32(ebp + (-0x40)) = ecx; /* 0x3C002F5F: mov dword ptr [ebp - 0x40], ecx */
   6723     edx = esi; /* 0x3C002F62: mov edx, esi */
   6724     eax = MEM32(edx); /* 0x3C002F64: mov eax, dword ptr [edx] */
   6725     ecx = MEM32(edx + 0x4); /* 0x3C002F66: mov ecx, dword ptr [edx + 4] */
   6726     edx = MEM32(edx + 0x8); /* 0x3C002F69: mov edx, dword ptr [edx + 8] */
   6727     MEM32(ebp + (-0x8)) = ecx; /* 0x3C002F6C: mov dword ptr [ebp - 8], ecx */
   6728     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C002F6F: fld dword ptr [ebp - 8] */
   6729     _st[0] += (double)*(float*)ADDR(0x3C0091C4); /* 0x3C002F72: fadd dword ptr [0x3c0091c4] */
   6730     ecx = edx; /* 0x3C002F78: mov ecx, edx */
   6731     MEM32(ebp + (-0xC)) = eax; /* 0x3C002F7A: mov dword ptr [ebp - 0xc], eax */
   6732     MEM32(ebp + (-0x4)) = edx; /* 0x3C002F7D: mov dword ptr [ebp - 4], edx */
   6733     edx = eax; /* 0x3C002F80: mov edx, eax */
   6734     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C002F82: fstp dword ptr [ebp - 8] */
   6735     MEM32(ebp + (-0xC)) = eax; /* 0x3C002F85: mov dword ptr [ebp - 0xc], eax */
   6736     eax = MEM32(ebp + (-0x8)); /* 0x3C002F88: mov eax, dword ptr [ebp - 8] */
   6737     PUSH32(esp, ebx); /* 0x3C002F8B: push ebx */
   6738     PUSH32(esp, 1); /* 0x3C002F8C: push 1 */
   6739     MEM32(ebp + (-0x50)) = eax; /* 0x3C002F8E: mov dword ptr [ebp - 0x50], eax */
   6740     MEM32(ebp + (-0x4)) = ecx; /* 0x3C002F91: mov dword ptr [ebp - 4], ecx */
   6741     MEM32(ebp + (-0x4C)) = ecx; /* 0x3C002F94: mov dword ptr [ebp - 0x4c], ecx */
   6742     eax = ebp + (-0x30); /* 0x3C002F97: lea eax, [ebp - 0x30] */
   6743     PUSH32(esp, eax); /* 0x3C002F9A: push eax */
   6744     ecx = ebp + (-0x3C); /* 0x3C002F9B: lea ecx, [ebp - 0x3c] */
   6745     PUSH32(esp, ecx); /* 0x3C002F9E: push ecx */
   6746     eax = ebp + (-0x48); /* 0x3C002F9F: lea eax, [ebp - 0x48] */
   6747     PUSH32(esp, eax); /* 0x3C002FA2: push eax */
   6748     ecx = ebp + (-0x54); /* 0x3C002FA3: lea ecx, [ebp - 0x54] */
   6749     MEM32(ebp + (-0x54)) = edx; /* 0x3C002FA6: mov dword ptr [ebp - 0x54], edx */
   6750     edx = MEM32(edi); /* 0x3C002FA9: mov edx, dword ptr [edi] */
   6751     PUSH32(esp, ecx); /* 0x3C002FAB: push ecx */
   6752     ecx = edi; /* 0x3C002FAC: mov ecx, edi */
   6753     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3C002FAE: call dword ptr [edx + 0x10] */
   6754     RECOMP_FLAGS_IN();
   6755     /* test LO8(eax), LO8(eax) */ /* 0x3C002FB1: test al, al */
   6756     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6757     _cf = 0;
   6758     _flag_k = FK_NARROW(FK_TEST, 24);
   6759     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002FDE; /* 0x3C002FB3: je 0x3c002fde */
   6760 L_3C002FB5:
   6761     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3C002FB5: fld dword ptr [ebp - 0x2c] */
   6762     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C00918C)); /* 0x3C002FB8: fcomp dword ptr [0x3c00918c] */
   6763     fp_pop();
   6764     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C002FBE: fnstsw ax */
   6765     /* test HI8(eax), 1 */ /* 0x3C002FC0: test ah, 1 */
   6766     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6767     _cf = 0;
   6768     _flag_k = FK_NARROW(FK_TEST, 24);
   6769     if (TEST_Z(_flag_a, _flag_b)) goto L_3C002FDE; /* 0x3C002FC3: je 0x3c002fde */
   6770 L_3C002FC5:
   6771     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3C002FC5: fld dword ptr [ebp - 0x2c] */
   6772     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C0091C8)); /* 0x3C002FC8: fcomp dword ptr [0x3c0091c8] */
   6773     fp_pop();
   6774     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C002FCE: fnstsw ax */
   6775     /* test HI8(eax), 0x41u */ /* 0x3C002FD0: test ah, 0x41 */
   6776     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   6777     _cf = 0;
   6778     _flag_k = FK_NARROW(FK_TEST, 24);
   6779     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C002FDE; /* 0x3C002FD3: jne 0x3c002fde */
   6780 L_3C002FD5:
   6781     edi = POP32_VAL(esp); /* 0x3C002FD5: pop edi */
   6782     esi = POP32_VAL(esp); /* 0x3C002FD6: pop esi */
   6783     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6784     SET_LO8(eax, 0); /* 0x3C002FD7: xor al, al */
   6785     _cf = 0;
   6786     _flag_k = FK_NARROW(FK_TEST, 24);
   6787     ebx = POP32_VAL(esp); /* 0x3C002FD9: pop ebx */
   6788     esp = ebp; /* 0x3C002FDA: mov esp, ebp */
   6789     ebp = POP32_VAL(esp); /* 0x3C002FDC: pop ebp */
   6790     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C002FDD: ret  */
   6791 L_3C002FDE:
   6792     eax = MEM32(ebp + (-0x14)); /* 0x3C002FDE: mov eax, dword ptr [ebp - 0x14] */
   6793     edx = MEM32(ebp + (-0x18)); /* 0x3C002FE1: mov edx, dword ptr [ebp - 0x18] */
   6794     ecx = MEM32(ebp + (-0x10)); /* 0x3C002FE4: mov ecx, dword ptr [ebp - 0x10] */
   6795     MEM32(ebp + (-0x8)) = eax; /* 0x3C002FE7: mov dword ptr [ebp - 8], eax */
   6796     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C002FEA: fld dword ptr [ebp - 8] */
   6797     _st[0] += (double)*(float*)ADDR(0x3C0091C0); /* 0x3C002FED: fadd dword ptr [0x3c0091c0] */
   6798     eax = ecx; /* 0x3C002FF3: mov eax, ecx */
   6799     MEM32(ebp + (-0x4)) = ecx; /* 0x3C002FF5: mov dword ptr [ebp - 4], ecx */
   6800     MEM32(ebp + (-0xC)) = edx; /* 0x3C002FF8: mov dword ptr [ebp - 0xc], edx */
   6801     ecx = edx; /* 0x3C002FFB: mov ecx, edx */
   6802     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C002FFD: fstp dword ptr [ebp - 8] */
   6803     MEM32(ebp + (-0xC)) = edx; /* 0x3C003000: mov dword ptr [ebp - 0xc], edx */
   6804     edx = MEM32(ebp + (-0x8)); /* 0x3C003003: mov edx, dword ptr [ebp - 8] */
   6805     MEM32(ebp + (-0x50)) = edx; /* 0x3C003006: mov dword ptr [ebp - 0x50], edx */
   6806     edx = MEM32(esi + 0x4); /* 0x3C003009: mov edx, dword ptr [esi + 4] */
   6807     MEM32(ebp + (-0x8)) = edx; /* 0x3C00300C: mov dword ptr [ebp - 8], edx */
   6808     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C00300F: fld dword ptr [ebp - 8] */
   6809     _st[0] += (double)*(float*)ADDR(0x3C0091C0); /* 0x3C003012: fadd dword ptr [0x3c0091c0] */
   6810     MEM32(ebp + (-0x54)) = ecx; /* 0x3C003018: mov dword ptr [ebp - 0x54], ecx */
   6811     ecx = MEM32(esi); /* 0x3C00301B: mov ecx, dword ptr [esi] */
   6812     MEM32(ebp + (-0x4)) = eax; /* 0x3C00301D: mov dword ptr [ebp - 4], eax */
   6813     MEM32(ebp + (-0x4C)) = eax; /* 0x3C003020: mov dword ptr [ebp - 0x4c], eax */
   6814     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C003023: fstp dword ptr [ebp - 8] */
   6815     eax = MEM32(esi + 0x8); /* 0x3C003026: mov eax, dword ptr [esi + 8] */
   6816     MEM32(ebp + (-0xC)) = ecx; /* 0x3C003029: mov dword ptr [ebp - 0xc], ecx */
   6817     edx = eax; /* 0x3C00302C: mov edx, eax */
   6818     MEM32(ebp + (-0x4)) = eax; /* 0x3C00302E: mov dword ptr [ebp - 4], eax */
   6819     eax = ecx; /* 0x3C003031: mov eax, ecx */
   6820     MEM32(ebp + (-0xC)) = ecx; /* 0x3C003033: mov dword ptr [ebp - 0xc], ecx */
   6821     ecx = MEM32(ebp + (-0x8)); /* 0x3C003036: mov ecx, dword ptr [ebp - 8] */
   6822     PUSH32(esp, ebx); /* 0x3C003039: push ebx */
   6823     MEM32(ebp + (-0x44)) = ecx; /* 0x3C00303A: mov dword ptr [ebp - 0x44], ecx */
   6824     PUSH32(esp, 1); /* 0x3C00303D: push 1 */
   6825     ecx = ebp + (-0x3C); /* 0x3C00303F: lea ecx, [ebp - 0x3c] */
   6826     PUSH32(esp, ecx); /* 0x3C003042: push ecx */
   6827     MEM32(ebp + (-0x4)) = edx; /* 0x3C003043: mov dword ptr [ebp - 4], edx */
   6828     MEM32(ebp + (-0x40)) = edx; /* 0x3C003046: mov dword ptr [ebp - 0x40], edx */
   6829     edx = ebp + (-0x54); /* 0x3C003049: lea edx, [ebp - 0x54] */
   6830     PUSH32(esp, edx); /* 0x3C00304C: push edx */
   6831     ecx = ebp + (-0x48); /* 0x3C00304D: lea ecx, [ebp - 0x48] */
   6832     MEM32(ebp + (-0x48)) = eax; /* 0x3C003050: mov dword ptr [ebp - 0x48], eax */
   6833     eax = MEM32(edi); /* 0x3C003053: mov eax, dword ptr [edi] */
   6834     PUSH32(esp, ecx); /* 0x3C003055: push ecx */
   6835     ecx = edi; /* 0x3C003056: mov ecx, edi */
   6836     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C003058: call dword ptr [eax + 0xc] */
   6837     RECOMP_FLAGS_IN();
   6838     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6839     _cf = (LO8(eax)) != 0;
   6840     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3C00305B: neg al */
   6841     _flag_k = FK_NARROW(FK_CMP, 24);
   6842     edi = POP32_VAL(esp); /* 0x3C00305D: pop edi */
   6843     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3C00305E: sbb al, al */
   6844       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
   6845       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6846       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6847     esi = POP32_VAL(esp); /* 0x3C003060: pop esi */
   6848     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6849     SET_LO8(eax, LO8(eax) + 1); /* 0x3C003061: inc al */
   6850     _flag_k = FK_NARROW(FK_INC, 24);
   6851     ebx = POP32_VAL(esp); /* 0x3C003063: pop ebx */
   6852     esp = ebp; /* 0x3C003064: mov esp, ebp */
   6853     ebp = POP32_VAL(esp); /* 0x3C003066: pop ebp */
   6854     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C003067: ret  */
   6855     RECOMP_REGS_OUT();
   6856 }
   6857 
   6858 void sub_3C003070(void) {
   6859     int _fpu_cmp = 0;
   6860     uint32_t _cf = 0;
   6861     int _df = 1;
   6862     uint32_t _flag_k = FK_NONE;
   6863     uint32_t _flag_a = 0, _flag_b = 0;
   6864     uint32_t _itail_tgt = 0;
   6865     RECOMP_REGS_LOCALS
   6866     RECOMP_ENTER(0x3C003070u);
   6867 
   6868 L_3C003070:
   6869     PUSH32(esp, ebp); /* 0x3C003070: push ebp */
   6870     ebp = esp; /* 0x3C003071: mov ebp, esp */
   6871     PUSH32(esp, 0xFFFFFFFFu); /* 0x3C003073: push -1 */
   6872     PUSH32(esp, 0x3C008D80u); /* 0x3C003075: push 0x3c008d80 */
   6873     eax = MEM32(FS_BASE + (0)); /* 0x3C00307A: mov eax, dword ptr fs:[0] */
   6874     PUSH32(esp, eax); /* 0x3C003080: push eax */
   6875     MEM32(FS_BASE + (0)) = esp; /* 0x3C003081: mov dword ptr fs:[0], esp */
   6876     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x74u);
   6877     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6878     esp = esp - 0x74u; /* 0x3C003088: sub esp, 0x74 */
   6879     _flag_k = FK_CMP;
   6880     eax = MEM32(ecx + 0xC); /* 0x3C00308B: mov eax, dword ptr [ecx + 0xc] */
   6881     /* test eax, eax */ /* 0x3C00308E: test eax, eax */
   6882     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6883     _cf = 0;
   6884     _flag_k = FK_TEST;
   6885     PUSH32(esp, ebx); /* 0x3C003090: push ebx */
   6886     PUSH32(esp, esi); /* 0x3C003091: push esi */
   6887     PUSH32(esp, edi); /* 0x3C003092: push edi */
   6888     MEM32(ebp + (-0x20)) = ecx; /* 0x3C003093: mov dword ptr [ebp - 0x20], ecx */
   6889     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00350E; /* 0x3C003096: je 0x3c00350e */
   6890 L_3C00309C:
   6891     eax = MEM32(ecx + 0x10); /* 0x3C00309C: mov eax, dword ptr [ecx + 0x10] */
   6892     /* test eax, eax */ /* 0x3C00309F: test eax, eax */
   6893     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6894     _cf = 0;
   6895     _flag_k = FK_TEST;
   6896     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00350E; /* 0x3C0030A1: je 0x3c00350e */
   6897 L_3C0030A7:
   6898     SET_LO8(ecx, MEM8(ebp + 0x18)); /* 0x3C0030A7: mov cl, byte ptr [ebp + 0x18] */
   6899     /* test LO8(ecx), LO8(ecx) */ /* 0x3C0030AA: test cl, cl */
   6900     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6901     _cf = 0;
   6902     _flag_k = FK_NARROW(FK_TEST, 24);
   6903     esi = MEM32(ebp + 0x14); /* 0x3C0030AC: mov esi, dword ptr [ebp + 0x14] */
   6904     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0030E0; /* 0x3C0030AF: jne 0x3c0030e0 */
   6905 L_3C0030B1:
   6906     edi = MEM32(ebp + 0xC); /* 0x3C0030B1: mov edi, dword ptr [ebp + 0xc] */
   6907     ebx = MEM32(ebp + 0x8); /* 0x3C0030B4: mov ebx, dword ptr [ebp + 8] */
   6908     PUSH32(esp, esi); /* 0x3C0030B7: push esi */
   6909     PUSH32(esp, eax); /* 0x3C0030B8: push eax */
   6910     PUSH32(esp, edi); /* 0x3C0030B9: push edi */
   6911     PUSH32(esp, ebx); /* 0x3C0030BA: push ebx */
   6912     RECOMP_ICALL(0x3C002E50u); /* 0x3C0030BB: call 0x3c002e50 */ /* not lifted */
   6913     RECOMP_FLAGS_IN();
   6914     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6915     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6916     esp = esp + 0x10u; /* 0x3C0030C0: add esp, 0x10 */
   6917     _flag_k = FK_ADD;
   6918     /* test LO8(eax), LO8(eax) */ /* 0x3C0030C3: test al, al */
   6919     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6920     _cf = 0;
   6921     _flag_k = FK_NARROW(FK_TEST, 24);
   6922     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0030E0; /* 0x3C0030C5: je 0x3c0030e0 */
   6923 L_3C0030C7:
   6924     esi = MEM32(ebp + 0x10); /* 0x3C0030C7: mov esi, dword ptr [ebp + 0x10] */
   6925     eax = MEM32(esi + 0x8); /* 0x3C0030CA: mov eax, dword ptr [esi + 8] */
   6926     PUSH32(esp, ebx); /* 0x3C0030CD: push ebx */
   6927     PUSH32(esp, eax); /* 0x3C0030CE: push eax */
   6928     ecx = esi; /* 0x3C0030CF: mov ecx, esi */
   6929     RECOMP_ICALL(0x3C001DF0u); /* 0x3C0030D1: call 0x3c001df0 */ /* not lifted */
   6930     RECOMP_FLAGS_IN();
   6931     ecx = MEM32(esi + 0x8); /* 0x3C0030D6: mov ecx, dword ptr [esi + 8] */
   6932     PUSH32(esp, edi); /* 0x3C0030D9: push edi */
   6933     PUSH32(esp, ecx); /* 0x3C0030DA: push ecx */
   6934     goto L_3C003528; /* 0x3C0030DB: jmp 0x3c003528 */
   6935 L_3C0030E0:
   6936     edx = ebp + 0x17; /* 0x3C0030E0: lea edx, [ebp + 0x17] */
   6937     ebx = 0x3C0091B4u; /* 0x3C0030E3: mov ebx, 0x3c0091b4 */
   6938     PUSH32(esp, edx); /* 0x3C0030E8: push edx */
   6939     ecx = ebp + (-0x7C); /* 0x3C0030E9: lea ecx, [ebp - 0x7c] */
   6940     MEM32(ebp + (-0x80)) = ebx; /* 0x3C0030EC: mov dword ptr [ebp - 0x80], ebx */
   6941     RECOMP_ICALL(0x3C004F10u); /* 0x3C0030EF: call 0x3c004f10 */ /* not lifted */
   6942     RECOMP_FLAGS_IN();
   6943     edi = 0x3C0091D8u; /* 0x3C0030F4: mov edi, 0x3c0091d8 */
   6944     MEM32(ebp + (-0x6C)) = 1; /* 0x3C0030F9: mov dword ptr [ebp - 0x6c], 1 */
   6945     MEM32(ebp + (-0x68)) = esi; /* 0x3C003100: mov dword ptr [ebp - 0x68], esi */
   6946     MEM32(ebp + (-0x80)) = edi; /* 0x3C003103: mov dword ptr [ebp - 0x80], edi */
   6947     eax = ebp + (-0xD); /* 0x3C003106: lea eax, [ebp - 0xd] */
   6948     PUSH32(esp, eax); /* 0x3C003109: push eax */
   6949     ecx = ebp + (-0x60); /* 0x3C00310A: lea ecx, [ebp - 0x60] */
   6950     MEM32(ebp + (-0x4)) = 0; /* 0x3C00310D: mov dword ptr [ebp - 4], 0 */
   6951     MEM32(ebp + (-0x64)) = ebx; /* 0x3C003114: mov dword ptr [ebp - 0x64], ebx */
   6952     RECOMP_ICALL(0x3C004F10u); /* 0x3C003117: call 0x3c004f10 */ /* not lifted */
   6953     RECOMP_FLAGS_IN();
   6954     MEM32(ebp + (-0x50)) = 0xFFFFFFFFu; /* 0x3C00311C: mov dword ptr [ebp - 0x50], 0xffffffff */
   6955     MEM32(ebp + (-0x4C)) = esi; /* 0x3C003123: mov dword ptr [ebp - 0x4c], esi */
   6956     MEM32(ebp + (-0x64)) = edi; /* 0x3C003126: mov dword ptr [ebp - 0x64], edi */
   6957     ecx = MEM32(ebp + 0x8); /* 0x3C003129: mov ecx, dword ptr [ebp + 8] */
   6958     edx = MEM32(ecx); /* 0x3C00312C: mov edx, dword ptr [ecx] */
   6959     eax = MEM32(ecx + 0x4); /* 0x3C00312E: mov eax, dword ptr [ecx + 4] */
   6960     ecx = MEM32(ecx + 0x8); /* 0x3C003131: mov ecx, dword ptr [ecx + 8] */
   6961     edi = MEM32(ebp + 0xC); /* 0x3C003134: mov edi, dword ptr [ebp + 0xc] */
   6962     MEM32(ebp + (-0x28)) = ecx; /* 0x3C003137: mov dword ptr [ebp - 0x28], ecx */
   6963     PUSH32(esp, edi); /* 0x3C00313A: push edi */
   6964     ecx = ebp + (-0x30); /* 0x3C00313B: lea ecx, [ebp - 0x30] */
   6965     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3C00313E: mov byte ptr [ebp - 4], 1 */
   6966     MEM32(ebp + (-0x30)) = edx; /* 0x3C003142: mov dword ptr [ebp - 0x30], edx */
   6967     MEM32(ebp + (-0x2C)) = eax; /* 0x3C003145: mov dword ptr [ebp - 0x2c], eax */
   6968     RECOMP_ICALL(MEM32(0x3C009080)); /* 0x3C003148: call dword ptr [0x3c009080] */
   6969     RECOMP_FLAGS_IN();
   6970     edx = MEM32(eax); /* 0x3C00314E: mov edx, dword ptr [eax] */
   6971     MEM32(ebp + (-0x3C)) = edx; /* 0x3C003150: mov dword ptr [ebp - 0x3c], edx */
   6972     ecx = MEM32(eax + 0x4); /* 0x3C003153: mov ecx, dword ptr [eax + 4] */
   6973     MEM32(ebp + (-0x38)) = ecx; /* 0x3C003156: mov dword ptr [ebp - 0x38], ecx */
   6974     edx = MEM32(eax + 0x8); /* 0x3C003159: mov edx, dword ptr [eax + 8] */
   6975     ecx = ebp + (-0x3C); /* 0x3C00315C: lea ecx, [ebp - 0x3c] */
   6976     MEM32(ebp + (-0x34)) = edx; /* 0x3C00315F: mov dword ptr [ebp - 0x34], edx */
   6977     RECOMP_ICALL(MEM32(0x3C009084)); /* 0x3C003162: call dword ptr [0x3c009084] */
   6978     RECOMP_FLAGS_IN();
   6979     _st[0] = sqrt(_st[0]); /* 0x3C003168: fsqrt  */
   6980     ebx = MEM32(ebp + (-0x20)); /* 0x3C00316A: mov ebx, dword ptr [ebp - 0x20] */
   6981     ecx = MEM32(ebx + 0xC); /* 0x3C00316D: mov ecx, dword ptr [ebx + 0xc] */
   6982     eax = MEM32(ecx); /* 0x3C003170: mov eax, dword ptr [ecx] */
   6983     PUSH32(esp, 0); /* 0x3C003172: push 0 */
   6984     edx = ebp + (-0x80); /* 0x3C003174: lea edx, [ebp - 0x80] */
   6985     PUSH32(esp, edx); /* 0x3C003177: push edx */
   6986     edx = MEM32(ebp + 0x8); /* 0x3C003178: mov edx, dword ptr [ebp + 8] */
   6987     _st[0] += _st[0]; /* 0x3C00317B: fadd st(0), st(0) */
   6988     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3C00317D: fstp dword ptr [ebp - 0x24] */
   6989     esi = MEM32(ebp + (-0x24)); /* 0x3C003180: mov esi, dword ptr [ebp - 0x24] */
   6990     PUSH32(esp, esi); /* 0x3C003183: push esi */
   6991     PUSH32(esp, edx); /* 0x3C003184: push edx */
   6992     RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x3C003185: call dword ptr [eax + 0x48] */
   6993     RECOMP_FLAGS_IN();
   6994     ecx = MEM32(ebx + 0xC); /* 0x3C003188: mov ecx, dword ptr [ebx + 0xc] */
   6995     eax = MEM32(ecx); /* 0x3C00318B: mov eax, dword ptr [ecx] */
   6996     PUSH32(esp, 0); /* 0x3C00318D: push 0 */
   6997     edx = ebp + (-0x64); /* 0x3C00318F: lea edx, [ebp - 0x64] */
   6998     PUSH32(esp, edx); /* 0x3C003192: push edx */
   6999     PUSH32(esp, esi); /* 0x3C003193: push esi */
   7000     PUSH32(esp, edi); /* 0x3C003194: push edi */
   7001     RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x3C003195: call dword ptr [eax + 0x48] */
   7002     RECOMP_FLAGS_IN();
   7003     SET_LO8(eax, MEM8(0x3C00D3B0)); /* 0x3C003198: mov al, byte ptr [0x3c00d3b0] */
   7004     /* test LO8(eax), 1 */ /* 0x3C00319D: test al, 1 */
   7005     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7006     _cf = 0;
   7007     _flag_k = FK_NARROW(FK_TEST, 24);
   7008     ebx = MEM32(ebx + 0x10); /* 0x3C00319F: mov ebx, dword ptr [ebx + 0x10] */
   7009     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0031C7; /* 0x3C0031A2: jne 0x3c0031c7 */
   7010 L_3C0031A4:
   7011     SET_LO8(edx, LO8(eax)); /* 0x3C0031A4: mov dl, al */
   7012     _flag_a = (uint32_t)((LO8(edx) | 1)) << 24; _flag_b = (uint32_t)((LO8(edx) | 1)) << 24;
   7013     SET_LO8(edx, LO8(edx) | 1); /* 0x3C0031A6: or dl, 1 */
   7014     _cf = 0;
   7015     _flag_k = FK_NARROW(FK_TEST, 24);
   7016     ecx = 0x3C00D3C0u; /* 0x3C0031A9: mov ecx, 0x3c00d3c0 */
   7017     MEM8(0x3C00D3B0) = (uint8_t)(LO8(edx)); /* 0x3C0031AE: mov byte ptr [0x3c00d3b0], dl */
   7018     RECOMP_ICALL(MEM32(0x3C009090)); /* 0x3C0031B4: call dword ptr [0x3c009090] */
   7019     RECOMP_FLAGS_IN();
   7020     PUSH32(esp, 0x3C003840u); /* 0x3C0031BA: push 0x3c003840 */
   7021     RECOMP_ICALL(0x3C008A15u); /* 0x3C0031BF: call 0x3c008a15 */ /* not lifted */
   7022     RECOMP_FLAGS_IN();
   7023     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7024     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7025     esp = esp + 4; /* 0x3C0031C4: add esp, 4 */
   7026     _flag_k = FK_ADD;
   7027 L_3C0031C7:
   7028     SET_LO8(eax, MEM8(0x3C00D3B0)); /* 0x3C0031C7: mov al, byte ptr [0x3c00d3b0] */
   7029     /* test LO8(eax), 2 */ /* 0x3C0031CC: test al, 2 */
   7030     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   7031     _cf = 0;
   7032     _flag_k = FK_NARROW(FK_TEST, 24);
   7033     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0031FC; /* 0x3C0031CE: jne 0x3c0031fc */
   7034 L_3C0031D0:
   7035     SET_LO8(ecx, LO8(eax)); /* 0x3C0031D0: mov cl, al */
   7036     PUSH32(esp, 0); /* 0x3C0031D2: push 0 */
   7037     _flag_a = (uint32_t)((LO8(ecx) | 2)) << 24; _flag_b = (uint32_t)((LO8(ecx) | 2)) << 24;
   7038     SET_LO8(ecx, LO8(ecx) | 2); /* 0x3C0031D4: or cl, 2 */
   7039     _cf = 0;
   7040     _flag_k = FK_NARROW(FK_TEST, 24);
   7041     PUSH32(esp, 0x3F8CCCCDu); /* 0x3C0031D7: push 0x3f8ccccd */
   7042     MEM8(0x3C00D3B0) = (uint8_t)(LO8(ecx)); /* 0x3C0031DC: mov byte ptr [0x3c00d3b0], cl */
   7043     PUSH32(esp, 0); /* 0x3C0031E2: push 0 */
   7044     ecx = 0x3C00D3D0u; /* 0x3C0031E4: mov ecx, 0x3c00d3d0 */
   7045     RECOMP_ICALL(MEM32(0x3C00908C)); /* 0x3C0031E9: call dword ptr [0x3c00908c] */
   7046     RECOMP_FLAGS_IN();
   7047     PUSH32(esp, 0x3C003840u); /* 0x3C0031EF: push 0x3c003840 */
   7048     RECOMP_ICALL(0x3C008A15u); /* 0x3C0031F4: call 0x3c008a15 */ /* not lifted */
   7049     RECOMP_FLAGS_IN();
   7050     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7051     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7052     esp = esp + 4; /* 0x3C0031F9: add esp, 4 */
   7053     _flag_k = FK_ADD;
   7054 L_3C0031FC:
   7055     /* cmp MEM32(ebp + (-0x6C)), 1 */ /* 0x3C0031FC: cmp dword ptr [ebp - 0x6c], 1 */
   7056     _flag_a = (uint32_t)(MEM32(ebp + (-0x6C))); _flag_b = (uint32_t)(1);
   7057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7058     _flag_k = FK_CMP;
   7059     eax = MEM32(ebp + 0x8); /* 0x3C003200: mov eax, dword ptr [ebp + 8] */
   7060     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003207; /* 0x3C003203: je 0x3c003207 */
   7061 L_3C003205:
   7062     eax = edi; /* 0x3C003205: mov eax, edi */
   7063 L_3C003207:
   7064     ecx = MEM32(eax); /* 0x3C003207: mov ecx, dword ptr [eax] */
   7065     edx = MEM32(eax + 0x4); /* 0x3C003209: mov edx, dword ptr [eax + 4] */
   7066     eax = MEM32(eax + 0x8); /* 0x3C00320C: mov eax, dword ptr [eax + 8] */
   7067     MEM32(ebp + (-0x30)) = ecx; /* 0x3C00320F: mov dword ptr [ebp - 0x30], ecx */
   7068     ecx = MEM32(ebp + 0x8); /* 0x3C003212: mov ecx, dword ptr [ebp + 8] */
   7069     MEM32(ebp + (-0x2C)) = edx; /* 0x3C003215: mov dword ptr [ebp - 0x2c], edx */
   7070     PUSH32(esp, ecx); /* 0x3C003218: push ecx */
   7071     edx = ebp + (-0x48); /* 0x3C003219: lea edx, [ebp - 0x48] */
   7072     PUSH32(esp, edx); /* 0x3C00321C: push edx */
   7073     ecx = edi; /* 0x3C00321D: mov ecx, edi */
   7074     MEM32(ebp + (-0x28)) = eax; /* 0x3C00321F: mov dword ptr [ebp - 0x28], eax */
   7075     MEM32(ebp + (-0x18)) = 0x64062B86u; /* 0x3C003222: mov dword ptr [ebp - 0x18], 0x64062b86 */
   7076     MEM32(ebp + (-0x1C)) = 0; /* 0x3C003229: mov dword ptr [ebp - 0x1c], 0 */
   7077     RECOMP_ICALL(MEM32(0x3C009088)); /* 0x3C003230: call dword ptr [0x3c009088] */
   7078     RECOMP_FLAGS_IN();
   7079     ecx = MEM32(eax); /* 0x3C003236: mov ecx, dword ptr [eax] */
   7080     edi = MEM32(ebp + (-0x78)); /* 0x3C003238: mov edi, dword ptr [ebp - 0x78] */
   7081     MEM32(ebp + (-0x3C)) = ecx; /* 0x3C00323B: mov dword ptr [ebp - 0x3c], ecx */
   7082     edx = MEM32(eax + 0x4); /* 0x3C00323E: mov edx, dword ptr [eax + 4] */
   7083     MEM32(ebp + (-0x38)) = edx; /* 0x3C003241: mov dword ptr [ebp - 0x38], edx */
   7084     eax = MEM32(eax + 0x8); /* 0x3C003244: mov eax, dword ptr [eax + 8] */
   7085     MEM32(ebp + (-0x34)) = eax; /* 0x3C003247: mov dword ptr [ebp - 0x34], eax */
   7086     /* cmp edi, MEM32(ebp + (-0x74)) */ /* 0x3C00324A: cmp edi, dword ptr [ebp - 0x74] */
   7087     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x74)));
   7088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7089     _flag_k = FK_CMP;
   7090     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C0032EA; /* 0x3C00324D: je 0x3c0032ea */
   7091 L_3C003253:
   7092     ecx = MEM32(edi); /* 0x3C003253: mov ecx, dword ptr [edi] */
   7093     edx = MEM32(ecx); /* 0x3C003255: mov edx, dword ptr [ecx] */
   7094     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3C003257: call dword ptr [edx + 0xc] */
   7095     RECOMP_FLAGS_IN();
   7096     ecx = MEM32(ebp + (-0x68)); /* 0x3C00325A: mov ecx, dword ptr [ebp - 0x68] */
   7097     esi = eax; /* 0x3C00325D: mov esi, eax */
   7098     eax = MEM32(ebx); /* 0x3C00325F: mov eax, dword ptr [ebx] */
   7099     PUSH32(esp, ecx); /* 0x3C003261: push ecx */
   7100     PUSH32(esp, esi); /* 0x3C003262: push esi */
   7101     ecx = ebx; /* 0x3C003263: mov ecx, ebx */
   7102     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x3C003265: call dword ptr [eax + 0x1c] */
   7103     RECOMP_FLAGS_IN();
   7104     /* test LO8(eax), LO8(eax) */ /* 0x3C003268: test al, al */
   7105     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7106     _cf = 0;
   7107     _flag_k = FK_NARROW(FK_TEST, 24);
   7108     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0032DC; /* 0x3C00326A: je 0x3c0032dc */
   7109 L_3C00326C:
   7110     PUSH32(esp, esi); /* 0x3C00326C: push esi */
   7111     edx = ebp + (-0x30); /* 0x3C00326D: lea edx, [ebp - 0x30] */
   7112     PUSH32(esp, edx); /* 0x3C003270: push edx */
   7113     eax = ebp + (-0x3C); /* 0x3C003271: lea eax, [ebp - 0x3c] */
   7114     PUSH32(esp, eax); /* 0x3C003274: push eax */
   7115     ecx = ebp + (-0x80); /* 0x3C003275: lea ecx, [ebp - 0x80] */
   7116     RECOMP_ICALL(0x3C003740u); /* 0x3C003278: call 0x3c003740 */ /* not lifted */
   7117     RECOMP_FLAGS_IN();
   7118     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C00327D: fstp dword ptr [ebp - 0x14] */
   7119     eax = MEM32(edi); /* 0x3C003280: mov eax, dword ptr [edi] */
   7120     ecx = eax + 0x2C; /* 0x3C003282: lea ecx, [eax + 0x2c] */
   7121     RECOMP_ICALL(0x3C004F30u); /* 0x3C003285: call 0x3c004f30 */ /* not lifted */
   7122     RECOMP_FLAGS_IN();
   7123     /* test eax, eax */ /* 0x3C00328A: test eax, eax */
   7124     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7125     _cf = 0;
   7126     _flag_k = FK_TEST;
   7127     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00329A; /* 0x3C00328C: jne 0x3c00329a */
   7128 L_3C00328E:
   7129     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C00328E: fld dword ptr [ebp - 0x14] */
   7130     _st[0] *= (double)*(float*)ADDR(0x3C0091D0); /* 0x3C003291: fmul dword ptr [0x3c0091d0] */
   7131     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C003297: fstp dword ptr [ebp - 0x14] */
   7132 L_3C00329A:
   7133     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C00329A: fld dword ptr [ebp - 0x14] */
   7134     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x18))); /* 0x3C00329D: fcomp dword ptr [ebp - 0x18] */
   7135     fp_pop();
   7136     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C0032A0: fnstsw ax */
   7137     /* test HI8(eax), 1 */ /* 0x3C0032A2: test ah, 1 */
   7138     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7139     _cf = 0;
   7140     _flag_k = FK_NARROW(FK_TEST, 24);
   7141     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0032DC; /* 0x3C0032A5: je 0x3c0032dc */
   7142 L_3C0032A7:
   7143     /* cmp MEM32(ebp + (-0x6C)), 1 */ /* 0x3C0032A7: cmp dword ptr [ebp - 0x6c], 1 */
   7144     _flag_a = (uint32_t)(MEM32(ebp + (-0x6C))); _flag_b = (uint32_t)(1);
   7145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7146     _flag_k = FK_CMP;
   7147     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0032B2; /* 0x3C0032AB: jne 0x3c0032b2 */
   7148 L_3C0032AD:
   7149     eax = ebp + (-0x30); /* 0x3C0032AD: lea eax, [ebp - 0x30] */
   7150     goto L_3C0032B7; /* 0x3C0032B0: jmp 0x3c0032b7 */
   7151 L_3C0032B2:
   7152     eax = esi; /* 0x3C0032B2: mov eax, esi */
   7153     esi = ebp + (-0x30); /* 0x3C0032B4: lea esi, [ebp - 0x30] */
   7154 L_3C0032B7:
   7155     SET_LO8(ecx, MEM8(ebp + 0x18)); /* 0x3C0032B7: mov cl, byte ptr [ebp + 0x18] */
   7156     /* test LO8(ecx), LO8(ecx) */ /* 0x3C0032BA: test cl, cl */
   7157     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7158     _cf = 0;
   7159     _flag_k = FK_NARROW(FK_TEST, 24);
   7160     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0032D1; /* 0x3C0032BC: jne 0x3c0032d1 */
   7161 L_3C0032BE:
   7162     ecx = MEM32(ebp + (-0x68)); /* 0x3C0032BE: mov ecx, dword ptr [ebp - 0x68] */
   7163     PUSH32(esp, ecx); /* 0x3C0032C1: push ecx */
   7164     PUSH32(esp, ebx); /* 0x3C0032C2: push ebx */
   7165     PUSH32(esp, esi); /* 0x3C0032C3: push esi */
   7166     PUSH32(esp, eax); /* 0x3C0032C4: push eax */
   7167     RECOMP_ICALL(0x3C002E50u); /* 0x3C0032C5: call 0x3c002e50 */ /* not lifted */
   7168     RECOMP_FLAGS_IN();
   7169     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7170     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7171     esp = esp + 0x10u; /* 0x3C0032CA: add esp, 0x10 */
   7172     _flag_k = FK_ADD;
   7173     /* cmp LO8(eax), 1 */ /* 0x3C0032CD: cmp al, 1 */
   7174     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7176     _flag_k = FK_NARROW(FK_CMP, 24);
   7177     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0032DC; /* 0x3C0032CF: jne 0x3c0032dc */
   7178 L_3C0032D1:
   7179     edx = MEM32(edi); /* 0x3C0032D1: mov edx, dword ptr [edi] */
   7180     eax = MEM32(ebp + (-0x14)); /* 0x3C0032D3: mov eax, dword ptr [ebp - 0x14] */
   7181     MEM32(ebp + (-0x1C)) = edx; /* 0x3C0032D6: mov dword ptr [ebp - 0x1c], edx */
   7182     MEM32(ebp + (-0x18)) = eax; /* 0x3C0032D9: mov dword ptr [ebp - 0x18], eax */
   7183 L_3C0032DC:
   7184     eax = MEM32(ebp + (-0x74)); /* 0x3C0032DC: mov eax, dword ptr [ebp - 0x74] */
   7185     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   7186     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7187     edi = edi + 4; /* 0x3C0032DF: add edi, 4 */
   7188     _flag_k = FK_ADD;
   7189     /* cmp edi, eax */ /* 0x3C0032E2: cmp edi, eax */
   7190     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7192     _flag_k = FK_CMP;
   7193     RECOMP_BACKEDGE();
   7194     if (CMP_NE(_flag_a, _flag_b)) goto L_3C003253; /* 0x3C0032E4: jne 0x3c003253 */
   7195 L_3C0032EA:
   7196     SET_LO8(eax, MEM8(0x3C00D3B0)); /* 0x3C0032EA: mov al, byte ptr [0x3c00d3b0] */
   7197     /* test LO8(eax), 1 */ /* 0x3C0032EF: test al, 1 */
   7198     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7199     _cf = 0;
   7200     _flag_k = FK_NARROW(FK_TEST, 24);
   7201     ecx = MEM32(ebp + (-0x20)); /* 0x3C0032F1: mov ecx, dword ptr [ebp - 0x20] */
   7202     ebx = MEM32(ecx + 0x10); /* 0x3C0032F4: mov ebx, dword ptr [ecx + 0x10] */
   7203     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00331C; /* 0x3C0032F7: jne 0x3c00331c */
   7204 L_3C0032F9:
   7205     SET_LO8(edx, LO8(eax)); /* 0x3C0032F9: mov dl, al */
   7206     _flag_a = (uint32_t)((LO8(edx) | 1)) << 24; _flag_b = (uint32_t)((LO8(edx) | 1)) << 24;
   7207     SET_LO8(edx, LO8(edx) | 1); /* 0x3C0032FB: or dl, 1 */
   7208     _cf = 0;
   7209     _flag_k = FK_NARROW(FK_TEST, 24);
   7210     ecx = 0x3C00D3C0u; /* 0x3C0032FE: mov ecx, 0x3c00d3c0 */
   7211     MEM8(0x3C00D3B0) = (uint8_t)(LO8(edx)); /* 0x3C003303: mov byte ptr [0x3c00d3b0], dl */
   7212     RECOMP_ICALL(MEM32(0x3C009090)); /* 0x3C003309: call dword ptr [0x3c009090] */
   7213     RECOMP_FLAGS_IN();
   7214     PUSH32(esp, 0x3C003840u); /* 0x3C00330F: push 0x3c003840 */
   7215     RECOMP_ICALL(0x3C008A15u); /* 0x3C003314: call 0x3c008a15 */ /* not lifted */
   7216     RECOMP_FLAGS_IN();
   7217     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7218     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7219     esp = esp + 4; /* 0x3C003319: add esp, 4 */
   7220     _flag_k = FK_ADD;
   7221 L_3C00331C:
   7222     SET_LO8(eax, MEM8(0x3C00D3B0)); /* 0x3C00331C: mov al, byte ptr [0x3c00d3b0] */
   7223     /* test LO8(eax), 2 */ /* 0x3C003321: test al, 2 */
   7224     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   7225     _cf = 0;
   7226     _flag_k = FK_NARROW(FK_TEST, 24);
   7227     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C00334D; /* 0x3C003323: jne 0x3c00334d */
   7228 L_3C003325:
   7229     PUSH32(esp, 0); /* 0x3C003325: push 0 */
   7230     PUSH32(esp, 0x3F8CCCCDu); /* 0x3C003327: push 0x3f8ccccd */
   7231     _flag_a = (uint32_t)((LO8(eax) | 2)) << 24; _flag_b = (uint32_t)((LO8(eax) | 2)) << 24;
   7232     SET_LO8(eax, LO8(eax) | 2); /* 0x3C00332C: or al, 2 */
   7233     _cf = 0;
   7234     _flag_k = FK_NARROW(FK_TEST, 24);
   7235     PUSH32(esp, 0); /* 0x3C00332E: push 0 */
   7236     ecx = 0x3C00D3D0u; /* 0x3C003330: mov ecx, 0x3c00d3d0 */
   7237     MEM8(0x3C00D3B0) = (uint8_t)(LO8(eax)); /* 0x3C003335: mov byte ptr [0x3c00d3b0], al */
   7238     RECOMP_ICALL(MEM32(0x3C00908C)); /* 0x3C00333A: call dword ptr [0x3c00908c] */
   7239     RECOMP_FLAGS_IN();
   7240     PUSH32(esp, 0x3C003840u); /* 0x3C003340: push 0x3c003840 */
   7241     RECOMP_ICALL(0x3C008A15u); /* 0x3C003345: call 0x3c008a15 */ /* not lifted */
   7242     RECOMP_FLAGS_IN();
   7243     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7244     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7245     esp = esp + 4; /* 0x3C00334A: add esp, 4 */
   7246     _flag_k = FK_ADD;
   7247 L_3C00334D:
   7248     /* cmp MEM32(ebp + (-0x50)), 1 */ /* 0x3C00334D: cmp dword ptr [ebp - 0x50], 1 */
   7249     _flag_a = (uint32_t)(MEM32(ebp + (-0x50))); _flag_b = (uint32_t)(1);
   7250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7251     _flag_k = FK_CMP;
   7252     eax = MEM32(ebp + 0x8); /* 0x3C003351: mov eax, dword ptr [ebp + 8] */
   7253     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003359; /* 0x3C003354: je 0x3c003359 */
   7254 L_3C003356:
   7255     eax = MEM32(ebp + 0xC); /* 0x3C003356: mov eax, dword ptr [ebp + 0xc] */
   7256 L_3C003359:
   7257     edx = MEM32(eax); /* 0x3C003359: mov edx, dword ptr [eax] */
   7258     ecx = MEM32(eax + 0x4); /* 0x3C00335B: mov ecx, dword ptr [eax + 4] */
   7259     MEM32(ebp + (-0x30)) = edx; /* 0x3C00335E: mov dword ptr [ebp - 0x30], edx */
   7260     edx = MEM32(eax + 0x8); /* 0x3C003361: mov edx, dword ptr [eax + 8] */
   7261     eax = MEM32(ebp + 0x8); /* 0x3C003364: mov eax, dword ptr [ebp + 8] */
   7262     MEM32(ebp + (-0x2C)) = ecx; /* 0x3C003367: mov dword ptr [ebp - 0x2c], ecx */
   7263     PUSH32(esp, eax); /* 0x3C00336A: push eax */
   7264     ecx = ebp + (-0x48); /* 0x3C00336B: lea ecx, [ebp - 0x48] */
   7265     PUSH32(esp, ecx); /* 0x3C00336E: push ecx */
   7266     ecx = MEM32(ebp + 0xC); /* 0x3C00336F: mov ecx, dword ptr [ebp + 0xc] */
   7267     MEM32(ebp + (-0x28)) = edx; /* 0x3C003372: mov dword ptr [ebp - 0x28], edx */
   7268     MEM32(ebp + (-0x24)) = 0x64062B86u; /* 0x3C003375: mov dword ptr [ebp - 0x24], 0x64062b86 */
   7269     MEM32(ebp + (-0x18)) = 0; /* 0x3C00337C: mov dword ptr [ebp - 0x18], 0 */
   7270     RECOMP_ICALL(MEM32(0x3C009088)); /* 0x3C003383: call dword ptr [0x3c009088] */
   7271     RECOMP_FLAGS_IN();
   7272     edx = MEM32(eax); /* 0x3C003389: mov edx, dword ptr [eax] */
   7273     edi = MEM32(ebp + (-0x5C)); /* 0x3C00338B: mov edi, dword ptr [ebp - 0x5c] */
   7274     MEM32(ebp + (-0x3C)) = edx; /* 0x3C00338E: mov dword ptr [ebp - 0x3c], edx */
   7275     ecx = MEM32(eax + 0x4); /* 0x3C003391: mov ecx, dword ptr [eax + 4] */
   7276     MEM32(ebp + (-0x38)) = ecx; /* 0x3C003394: mov dword ptr [ebp - 0x38], ecx */
   7277     edx = MEM32(eax + 0x8); /* 0x3C003397: mov edx, dword ptr [eax + 8] */
   7278     /* cmp edi, MEM32(ebp + (-0x58)) */ /* 0x3C00339A: cmp edi, dword ptr [ebp - 0x58] */
   7279     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x58)));
   7280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7281     _flag_k = FK_CMP;
   7282     MEM32(ebp + (-0x34)) = edx; /* 0x3C00339D: mov dword ptr [ebp - 0x34], edx */
   7283     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00343D; /* 0x3C0033A0: je 0x3c00343d */
   7284 L_3C0033A6:
   7285     ecx = MEM32(edi); /* 0x3C0033A6: mov ecx, dword ptr [edi] */
   7286     eax = MEM32(ecx); /* 0x3C0033A8: mov eax, dword ptr [ecx] */
   7287     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C0033AA: call dword ptr [eax + 0xc] */
   7288     RECOMP_FLAGS_IN();
   7289     edx = MEM32(ebx); /* 0x3C0033AD: mov edx, dword ptr [ebx] */
   7290     esi = eax; /* 0x3C0033AF: mov esi, eax */
   7291     eax = MEM32(ebp + (-0x4C)); /* 0x3C0033B1: mov eax, dword ptr [ebp - 0x4c] */
   7292     PUSH32(esp, eax); /* 0x3C0033B4: push eax */
   7293     PUSH32(esp, esi); /* 0x3C0033B5: push esi */
   7294     ecx = ebx; /* 0x3C0033B6: mov ecx, ebx */
   7295     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3C0033B8: call dword ptr [edx + 0x1c] */
   7296     RECOMP_FLAGS_IN();
   7297     /* test LO8(eax), LO8(eax) */ /* 0x3C0033BB: test al, al */
   7298     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7299     _cf = 0;
   7300     _flag_k = FK_NARROW(FK_TEST, 24);
   7301     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C0033BD: je 0x3c00342f */
   7302 L_3C0033BF:
   7303     PUSH32(esp, esi); /* 0x3C0033BF: push esi */
   7304     ecx = ebp + (-0x30); /* 0x3C0033C0: lea ecx, [ebp - 0x30] */
   7305     PUSH32(esp, ecx); /* 0x3C0033C3: push ecx */
   7306     edx = ebp + (-0x3C); /* 0x3C0033C4: lea edx, [ebp - 0x3c] */
   7307     PUSH32(esp, edx); /* 0x3C0033C7: push edx */
   7308     ecx = ebp + (-0x64); /* 0x3C0033C8: lea ecx, [ebp - 0x64] */
   7309     RECOMP_ICALL(0x3C003740u); /* 0x3C0033CB: call 0x3c003740 */ /* not lifted */
   7310     RECOMP_FLAGS_IN();
   7311     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C0033D0: fstp dword ptr [ebp - 0x14] */
   7312     eax = MEM32(edi); /* 0x3C0033D3: mov eax, dword ptr [edi] */
   7313     ecx = eax + 0x2C; /* 0x3C0033D5: lea ecx, [eax + 0x2c] */
   7314     RECOMP_ICALL(0x3C004F30u); /* 0x3C0033D8: call 0x3c004f30 */ /* not lifted */
   7315     RECOMP_FLAGS_IN();
   7316     /* test eax, eax */ /* 0x3C0033DD: test eax, eax */
   7317     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7318     _cf = 0;
   7319     _flag_k = FK_TEST;
   7320     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0033ED; /* 0x3C0033DF: jne 0x3c0033ed */
   7321 L_3C0033E1:
   7322     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C0033E1: fld dword ptr [ebp - 0x14] */
   7323     _st[0] *= (double)*(float*)ADDR(0x3C0091D0); /* 0x3C0033E4: fmul dword ptr [0x3c0091d0] */
   7324     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C0033EA: fstp dword ptr [ebp - 0x14] */
   7325 L_3C0033ED:
   7326     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C0033ED: fld dword ptr [ebp - 0x14] */
   7327     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x24))); /* 0x3C0033F0: fcomp dword ptr [ebp - 0x24] */
   7328     fp_pop();
   7329     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C0033F3: fnstsw ax */
   7330     /* test HI8(eax), 1 */ /* 0x3C0033F5: test ah, 1 */
   7331     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7332     _cf = 0;
   7333     _flag_k = FK_NARROW(FK_TEST, 24);
   7334     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C0033F8: je 0x3c00342f */
   7335 L_3C0033FA:
   7336     /* cmp MEM32(ebp + (-0x50)), 1 */ /* 0x3C0033FA: cmp dword ptr [ebp - 0x50], 1 */
   7337     _flag_a = (uint32_t)(MEM32(ebp + (-0x50))); _flag_b = (uint32_t)(1);
   7338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7339     _flag_k = FK_CMP;
   7340     if (CMP_NE(_flag_a, _flag_b)) goto L_3C003405; /* 0x3C0033FE: jne 0x3c003405 */
   7341 L_3C003400:
   7342     eax = ebp + (-0x30); /* 0x3C003400: lea eax, [ebp - 0x30] */
   7343     goto L_3C00340A; /* 0x3C003403: jmp 0x3c00340a */
   7344 L_3C003405:
   7345     eax = esi; /* 0x3C003405: mov eax, esi */
   7346     esi = ebp + (-0x30); /* 0x3C003407: lea esi, [ebp - 0x30] */
   7347 L_3C00340A:
   7348     SET_LO8(ecx, MEM8(ebp + 0x18)); /* 0x3C00340A: mov cl, byte ptr [ebp + 0x18] */
   7349     /* test LO8(ecx), LO8(ecx) */ /* 0x3C00340D: test cl, cl */
   7350     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7351     _cf = 0;
   7352     _flag_k = FK_NARROW(FK_TEST, 24);
   7353     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C003424; /* 0x3C00340F: jne 0x3c003424 */
   7354 L_3C003411:
   7355     ecx = MEM32(ebp + (-0x4C)); /* 0x3C003411: mov ecx, dword ptr [ebp - 0x4c] */
   7356     PUSH32(esp, ecx); /* 0x3C003414: push ecx */
   7357     PUSH32(esp, ebx); /* 0x3C003415: push ebx */
   7358     PUSH32(esp, esi); /* 0x3C003416: push esi */
   7359     PUSH32(esp, eax); /* 0x3C003417: push eax */
   7360     RECOMP_ICALL(0x3C002E50u); /* 0x3C003418: call 0x3c002e50 */ /* not lifted */
   7361     RECOMP_FLAGS_IN();
   7362     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7363     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7364     esp = esp + 0x10u; /* 0x3C00341D: add esp, 0x10 */
   7365     _flag_k = FK_ADD;
   7366     /* cmp LO8(eax), 1 */ /* 0x3C003420: cmp al, 1 */
   7367     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7368     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7369     _flag_k = FK_NARROW(FK_CMP, 24);
   7370     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C003422: jne 0x3c00342f */
   7371 L_3C003424:
   7372     edx = MEM32(edi); /* 0x3C003424: mov edx, dword ptr [edi] */
   7373     eax = MEM32(ebp + (-0x14)); /* 0x3C003426: mov eax, dword ptr [ebp - 0x14] */
   7374     MEM32(ebp + (-0x18)) = edx; /* 0x3C003429: mov dword ptr [ebp - 0x18], edx */
   7375     MEM32(ebp + (-0x24)) = eax; /* 0x3C00342C: mov dword ptr [ebp - 0x24], eax */
   7376 L_3C00342F:
   7377     eax = MEM32(ebp + (-0x58)); /* 0x3C00342F: mov eax, dword ptr [ebp - 0x58] */
   7378     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   7379     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7380     edi = edi + 4; /* 0x3C003432: add edi, 4 */
   7381     _flag_k = FK_ADD;
   7382     /* cmp edi, eax */ /* 0x3C003435: cmp edi, eax */
   7383     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7385     _flag_k = FK_CMP;
   7386     RECOMP_BACKEDGE();
   7387     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0033A6; /* 0x3C003437: jne 0x3c0033a6 */
   7388 L_3C00343D:
   7389     eax = MEM32(ebp + (-0x1C)); /* 0x3C00343D: mov eax, dword ptr [ebp - 0x1c] */
   7390     /* test eax, eax */ /* 0x3C003440: test eax, eax */
   7391     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7392     _cf = 0;
   7393     _flag_k = FK_TEST;
   7394     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0034DE; /* 0x3C003442: je 0x3c0034de */
   7395 L_3C003448:
   7396     eax = MEM32(ebp + (-0x18)); /* 0x3C003448: mov eax, dword ptr [ebp - 0x18] */
   7397     /* test eax, eax */ /* 0x3C00344B: test eax, eax */
   7398     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7399     _cf = 0;
   7400     _flag_k = FK_TEST;
   7401     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0034DE; /* 0x3C00344D: je 0x3c0034de */
   7402 L_3C003453:
   7403     esi = MEM32(ebp + 0x10); /* 0x3C003453: mov esi, dword ptr [ebp + 0x10] */
   7404     ecx = MEM32(ebp + 0xC); /* 0x3C003456: mov ecx, dword ptr [ebp + 0xc] */
   7405     eax = MEM32(esi + 0x8); /* 0x3C003459: mov eax, dword ptr [esi + 8] */
   7406     PUSH32(esp, ecx); /* 0x3C00345C: push ecx */
   7407     PUSH32(esp, eax); /* 0x3C00345D: push eax */
   7408     ecx = esi; /* 0x3C00345E: mov ecx, esi */
   7409     RECOMP_ICALL(0x3C001DF0u); /* 0x3C003460: call 0x3c001df0 */ /* not lifted */
   7410     RECOMP_FLAGS_IN();
   7411     edx = MEM32(ebp + (-0x18)); /* 0x3C003465: mov edx, dword ptr [ebp - 0x18] */
   7412     eax = MEM32(ebp + (-0x1C)); /* 0x3C003468: mov eax, dword ptr [ebp - 0x1c] */
   7413     ecx = MEM32(ebp + (-0x20)); /* 0x3C00346B: mov ecx, dword ptr [ebp - 0x20] */
   7414     ecx = MEM32(ecx + 0x4); /* 0x3C00346E: mov ecx, dword ptr [ecx + 4] */
   7415     PUSH32(esp, esi); /* 0x3C003471: push esi */
   7416     PUSH32(esp, edx); /* 0x3C003472: push edx */
   7417     PUSH32(esp, eax); /* 0x3C003473: push eax */
   7418     RECOMP_ICALL(0x3C001600u); /* 0x3C003474: call 0x3c001600 */ /* not lifted */
   7419     RECOMP_FLAGS_IN();
   7420     edi = eax; /* 0x3C003479: mov edi, eax */
   7421     /* cmp edi, 1 */ /* 0x3C00347B: cmp edi, 1 */
   7422     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   7423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7424     _flag_k = FK_CMP;
   7425     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00348B; /* 0x3C00347E: je 0x3c00348b */
   7426 L_3C003480:
   7427     eax = MEM32(esi + 0x4); /* 0x3C003480: mov eax, dword ptr [esi + 4] */
   7428     PUSH32(esp, eax); /* 0x3C003483: push eax */
   7429     ecx = esi; /* 0x3C003484: mov ecx, esi */
   7430     RECOMP_ICALL(0x3C004F80u); /* 0x3C003486: call 0x3c004f80 */ /* not lifted */
   7431     RECOMP_FLAGS_IN();
   7432 L_3C00348B:
   7433     edx = MEM32(ebp + 0x8); /* 0x3C00348B: mov edx, dword ptr [ebp + 8] */
   7434     eax = MEM32(esi + 0x8); /* 0x3C00348E: mov eax, dword ptr [esi + 8] */
   7435     PUSH32(esp, edx); /* 0x3C003491: push edx */
   7436     PUSH32(esp, eax); /* 0x3C003492: push eax */
   7437     ecx = esi; /* 0x3C003493: mov ecx, esi */
   7438     RECOMP_ICALL(0x3C001DF0u); /* 0x3C003495: call 0x3c001df0 */ /* not lifted */
   7439     RECOMP_FLAGS_IN();
   7440     ecx = MEM32(ebp + 0x18); /* 0x3C00349A: mov ecx, dword ptr [ebp + 0x18] */
   7441     eax = MEM32(esi + 0x8); /* 0x3C00349D: mov eax, dword ptr [esi + 8] */
   7442     esi = MEM32(esi + 0x4); /* 0x3C0034A0: mov esi, dword ptr [esi + 4] */
   7443     PUSH32(esp, ecx); /* 0x3C0034A3: push ecx */
   7444     PUSH32(esp, eax); /* 0x3C0034A4: push eax */
   7445     PUSH32(esp, esi); /* 0x3C0034A5: push esi */
   7446     RECOMP_ICALL(0x3C005EE0u); /* 0x3C0034A6: call 0x3c005ee0 */ /* not lifted */
   7447     RECOMP_FLAGS_IN();
   7448     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7449     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7450     esp = esp + 0xCu; /* 0x3C0034AB: add esp, 0xc */
   7451     _flag_k = FK_ADD;
   7452     ecx = ebp + (-0x64); /* 0x3C0034AE: lea ecx, [ebp - 0x64] */
   7453     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C0034B1: mov byte ptr [ebp - 4], 0 */
   7454     RECOMP_ICALL(0x3C003550u); /* 0x3C0034B5: call 0x3c003550 */ /* not lifted */
   7455     RECOMP_FLAGS_IN();
   7456     ecx = ebp + (-0x80); /* 0x3C0034BA: lea ecx, [ebp - 0x80] */
   7457     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0034BD: mov dword ptr [ebp - 4], 0xffffffff */
   7458     RECOMP_ICALL(0x3C003550u); /* 0x3C0034C4: call 0x3c003550 */ /* not lifted */
   7459     RECOMP_FLAGS_IN();
   7460     eax = edi; /* 0x3C0034C9: mov eax, edi */
   7461     edi = POP32_VAL(esp); /* 0x3C0034CB: pop edi */
   7462     esi = POP32_VAL(esp); /* 0x3C0034CC: pop esi */
   7463     ebx = POP32_VAL(esp); /* 0x3C0034CD: pop ebx */
   7464     ecx = MEM32(ebp + (-0xC)); /* 0x3C0034CE: mov ecx, dword ptr [ebp - 0xc] */
   7465     MEM32(FS_BASE + (0)) = ecx; /* 0x3C0034D1: mov dword ptr fs:[0], ecx */
   7466     esp = ebp; /* 0x3C0034D8: mov esp, ebp */
   7467     ebp = POP32_VAL(esp); /* 0x3C0034DA: pop ebp */
   7468     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C0034DB: ret 0x14 */
   7469 L_3C0034DE:
   7470     ecx = ebp + (-0x64); /* 0x3C0034DE: lea ecx, [ebp - 0x64] */
   7471     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C0034E1: mov byte ptr [ebp - 4], 0 */
   7472     RECOMP_ICALL(0x3C003550u); /* 0x3C0034E5: call 0x3c003550 */ /* not lifted */
   7473     RECOMP_FLAGS_IN();
   7474     ecx = ebp + (-0x80); /* 0x3C0034EA: lea ecx, [ebp - 0x80] */
   7475     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0034ED: mov dword ptr [ebp - 4], 0xffffffff */
   7476     RECOMP_ICALL(0x3C003550u); /* 0x3C0034F4: call 0x3c003550 */ /* not lifted */
   7477     RECOMP_FLAGS_IN();
   7478     edi = POP32_VAL(esp); /* 0x3C0034F9: pop edi */
   7479     esi = POP32_VAL(esp); /* 0x3C0034FA: pop esi */
   7480     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7481     eax = 0; /* 0x3C0034FB: xor eax, eax */
   7482     _cf = 0;
   7483     _flag_k = FK_TEST;
   7484     ebx = POP32_VAL(esp); /* 0x3C0034FD: pop ebx */
   7485     ecx = MEM32(ebp + (-0xC)); /* 0x3C0034FE: mov ecx, dword ptr [ebp - 0xc] */
   7486     MEM32(FS_BASE + (0)) = ecx; /* 0x3C003501: mov dword ptr fs:[0], ecx */
   7487     esp = ebp; /* 0x3C003508: mov esp, ebp */
   7488     ebp = POP32_VAL(esp); /* 0x3C00350A: pop ebp */
   7489     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C00350B: ret 0x14 */
   7490 L_3C00350E:
   7491     esi = MEM32(ebp + 0x10); /* 0x3C00350E: mov esi, dword ptr [ebp + 0x10] */
   7492     edx = MEM32(ebp + 0x8); /* 0x3C003511: mov edx, dword ptr [ebp + 8] */
   7493     eax = MEM32(esi + 0x8); /* 0x3C003514: mov eax, dword ptr [esi + 8] */
   7494     PUSH32(esp, edx); /* 0x3C003517: push edx */
   7495     PUSH32(esp, eax); /* 0x3C003518: push eax */
   7496     ecx = esi; /* 0x3C003519: mov ecx, esi */
   7497     RECOMP_ICALL(0x3C001DF0u); /* 0x3C00351B: call 0x3c001df0 */ /* not lifted */
   7498     RECOMP_FLAGS_IN();
   7499     ecx = MEM32(ebp + 0xC); /* 0x3C003520: mov ecx, dword ptr [ebp + 0xc] */
   7500     edx = MEM32(esi + 0x8); /* 0x3C003523: mov edx, dword ptr [esi + 8] */
   7501     PUSH32(esp, ecx); /* 0x3C003526: push ecx */
   7502     PUSH32(esp, edx); /* 0x3C003527: push edx */
   7503 L_3C003528:
   7504     ecx = esi; /* 0x3C003528: mov ecx, esi */
   7505     RECOMP_ICALL(0x3C001DF0u); /* 0x3C00352A: call 0x3c001df0 */ /* not lifted */
   7506     RECOMP_FLAGS_IN();
   7507     ecx = MEM32(ebp + (-0xC)); /* 0x3C00352F: mov ecx, dword ptr [ebp - 0xc] */
   7508     edi = POP32_VAL(esp); /* 0x3C003532: pop edi */
   7509     esi = POP32_VAL(esp); /* 0x3C003533: pop esi */
   7510     eax = 1; /* 0x3C003534: mov eax, 1 */
   7511     ebx = POP32_VAL(esp); /* 0x3C003539: pop ebx */
   7512     MEM32(FS_BASE + (0)) = ecx; /* 0x3C00353A: mov dword ptr fs:[0], ecx */
   7513     esp = ebp; /* 0x3C003541: mov esp, ebp */
   7514     ebp = POP32_VAL(esp); /* 0x3C003543: pop ebp */
   7515     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C003544: ret 0x14 */
   7516     RECOMP_REGS_OUT();
   7517 }
   7518 
   7519 void sub_3C003383(void) {
   7520     int _fpu_cmp = 0;
   7521     uint32_t _cf = 0;
   7522     int _df = 1;
   7523     uint32_t _flag_k = FK_NONE;
   7524     uint32_t _flag_a = 0, _flag_b = 0;
   7525     uint32_t _itail_tgt = 0;
   7526     RECOMP_REGS_LOCALS
   7527     RECOMP_ENTER(0x3C003383u);
   7528 
   7529 L_3C003383:
   7530     RECOMP_ICALL(MEM32(0x3C009088)); /* 0x3C003383: call dword ptr [0x3c009088] */
   7531     RECOMP_FLAGS_IN();
   7532     edx = MEM32(eax); /* 0x3C003389: mov edx, dword ptr [eax] */
   7533     edi = MEM32(ebp + (-0x5C)); /* 0x3C00338B: mov edi, dword ptr [ebp - 0x5c] */
   7534     MEM32(ebp + (-0x3C)) = edx; /* 0x3C00338E: mov dword ptr [ebp - 0x3c], edx */
   7535     ecx = MEM32(eax + 0x4); /* 0x3C003391: mov ecx, dword ptr [eax + 4] */
   7536     MEM32(ebp + (-0x38)) = ecx; /* 0x3C003394: mov dword ptr [ebp - 0x38], ecx */
   7537     edx = MEM32(eax + 0x8); /* 0x3C003397: mov edx, dword ptr [eax + 8] */
   7538     /* cmp edi, MEM32(ebp + (-0x58)) */ /* 0x3C00339A: cmp edi, dword ptr [ebp - 0x58] */
   7539     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x58)));
   7540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7541     _flag_k = FK_CMP;
   7542     MEM32(ebp + (-0x34)) = edx; /* 0x3C00339D: mov dword ptr [ebp - 0x34], edx */
   7543     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00343D; /* 0x3C0033A0: je 0x3c00343d */
   7544 L_3C0033A6:
   7545     ecx = MEM32(edi); /* 0x3C0033A6: mov ecx, dword ptr [edi] */
   7546     eax = MEM32(ecx); /* 0x3C0033A8: mov eax, dword ptr [ecx] */
   7547     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C0033AA: call dword ptr [eax + 0xc] */
   7548     RECOMP_FLAGS_IN();
   7549     edx = MEM32(ebx); /* 0x3C0033AD: mov edx, dword ptr [ebx] */
   7550     esi = eax; /* 0x3C0033AF: mov esi, eax */
   7551     eax = MEM32(ebp + (-0x4C)); /* 0x3C0033B1: mov eax, dword ptr [ebp - 0x4c] */
   7552     PUSH32(esp, eax); /* 0x3C0033B4: push eax */
   7553     PUSH32(esp, esi); /* 0x3C0033B5: push esi */
   7554     ecx = ebx; /* 0x3C0033B6: mov ecx, ebx */
   7555     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3C0033B8: call dword ptr [edx + 0x1c] */
   7556     RECOMP_FLAGS_IN();
   7557     /* test LO8(eax), LO8(eax) */ /* 0x3C0033BB: test al, al */
   7558     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7559     _cf = 0;
   7560     _flag_k = FK_NARROW(FK_TEST, 24);
   7561     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C0033BD: je 0x3c00342f */
   7562 L_3C0033BF:
   7563     PUSH32(esp, esi); /* 0x3C0033BF: push esi */
   7564     ecx = ebp + (-0x30); /* 0x3C0033C0: lea ecx, [ebp - 0x30] */
   7565     PUSH32(esp, ecx); /* 0x3C0033C3: push ecx */
   7566     edx = ebp + (-0x3C); /* 0x3C0033C4: lea edx, [ebp - 0x3c] */
   7567     PUSH32(esp, edx); /* 0x3C0033C7: push edx */
   7568     ecx = ebp + (-0x64); /* 0x3C0033C8: lea ecx, [ebp - 0x64] */
   7569     RECOMP_ICALL(0x3C003740u); /* 0x3C0033CB: call 0x3c003740 */ /* not lifted */
   7570     RECOMP_FLAGS_IN();
   7571     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C0033D0: fstp dword ptr [ebp - 0x14] */
   7572     eax = MEM32(edi); /* 0x3C0033D3: mov eax, dword ptr [edi] */
   7573     ecx = eax + 0x2C; /* 0x3C0033D5: lea ecx, [eax + 0x2c] */
   7574     RECOMP_ICALL(0x3C004F30u); /* 0x3C0033D8: call 0x3c004f30 */ /* not lifted */
   7575     RECOMP_FLAGS_IN();
   7576     /* test eax, eax */ /* 0x3C0033DD: test eax, eax */
   7577     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7578     _cf = 0;
   7579     _flag_k = FK_TEST;
   7580     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0033ED; /* 0x3C0033DF: jne 0x3c0033ed */
   7581 L_3C0033E1:
   7582     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C0033E1: fld dword ptr [ebp - 0x14] */
   7583     _st[0] *= (double)*(float*)ADDR(0x3C0091D0); /* 0x3C0033E4: fmul dword ptr [0x3c0091d0] */
   7584     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C0033EA: fstp dword ptr [ebp - 0x14] */
   7585 L_3C0033ED:
   7586     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C0033ED: fld dword ptr [ebp - 0x14] */
   7587     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x24))); /* 0x3C0033F0: fcomp dword ptr [ebp - 0x24] */
   7588     fp_pop();
   7589     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C0033F3: fnstsw ax */
   7590     /* test HI8(eax), 1 */ /* 0x3C0033F5: test ah, 1 */
   7591     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7592     _cf = 0;
   7593     _flag_k = FK_NARROW(FK_TEST, 24);
   7594     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C0033F8: je 0x3c00342f */
   7595 L_3C0033FA:
   7596     /* cmp MEM32(ebp + (-0x50)), 1 */ /* 0x3C0033FA: cmp dword ptr [ebp - 0x50], 1 */
   7597     _flag_a = (uint32_t)(MEM32(ebp + (-0x50))); _flag_b = (uint32_t)(1);
   7598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7599     _flag_k = FK_CMP;
   7600     if (CMP_NE(_flag_a, _flag_b)) goto L_3C003405; /* 0x3C0033FE: jne 0x3c003405 */
   7601 L_3C003400:
   7602     eax = ebp + (-0x30); /* 0x3C003400: lea eax, [ebp - 0x30] */
   7603     goto L_3C00340A; /* 0x3C003403: jmp 0x3c00340a */
   7604 L_3C003405:
   7605     eax = esi; /* 0x3C003405: mov eax, esi */
   7606     esi = ebp + (-0x30); /* 0x3C003407: lea esi, [ebp - 0x30] */
   7607 L_3C00340A:
   7608     SET_LO8(ecx, MEM8(ebp + 0x18)); /* 0x3C00340A: mov cl, byte ptr [ebp + 0x18] */
   7609     /* test LO8(ecx), LO8(ecx) */ /* 0x3C00340D: test cl, cl */
   7610     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7611     _cf = 0;
   7612     _flag_k = FK_NARROW(FK_TEST, 24);
   7613     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C003424; /* 0x3C00340F: jne 0x3c003424 */
   7614 L_3C003411:
   7615     ecx = MEM32(ebp + (-0x4C)); /* 0x3C003411: mov ecx, dword ptr [ebp - 0x4c] */
   7616     PUSH32(esp, ecx); /* 0x3C003414: push ecx */
   7617     PUSH32(esp, ebx); /* 0x3C003415: push ebx */
   7618     PUSH32(esp, esi); /* 0x3C003416: push esi */
   7619     PUSH32(esp, eax); /* 0x3C003417: push eax */
   7620     RECOMP_ICALL(0x3C002E50u); /* 0x3C003418: call 0x3c002e50 */ /* not lifted */
   7621     RECOMP_FLAGS_IN();
   7622     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7623     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7624     esp = esp + 0x10u; /* 0x3C00341D: add esp, 0x10 */
   7625     _flag_k = FK_ADD;
   7626     /* cmp LO8(eax), 1 */ /* 0x3C003420: cmp al, 1 */
   7627     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7629     _flag_k = FK_NARROW(FK_CMP, 24);
   7630     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C003422: jne 0x3c00342f */
   7631 L_3C003424:
   7632     edx = MEM32(edi); /* 0x3C003424: mov edx, dword ptr [edi] */
   7633     eax = MEM32(ebp + (-0x14)); /* 0x3C003426: mov eax, dword ptr [ebp - 0x14] */
   7634     MEM32(ebp + (-0x18)) = edx; /* 0x3C003429: mov dword ptr [ebp - 0x18], edx */
   7635     MEM32(ebp + (-0x24)) = eax; /* 0x3C00342C: mov dword ptr [ebp - 0x24], eax */
   7636 L_3C00342F:
   7637     eax = MEM32(ebp + (-0x58)); /* 0x3C00342F: mov eax, dword ptr [ebp - 0x58] */
   7638     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   7639     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7640     edi = edi + 4; /* 0x3C003432: add edi, 4 */
   7641     _flag_k = FK_ADD;
   7642     /* cmp edi, eax */ /* 0x3C003435: cmp edi, eax */
   7643     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7644     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7645     _flag_k = FK_CMP;
   7646     RECOMP_BACKEDGE();
   7647     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0033A6; /* 0x3C003437: jne 0x3c0033a6 */
   7648 L_3C00343D:
   7649     eax = MEM32(ebp + (-0x1C)); /* 0x3C00343D: mov eax, dword ptr [ebp - 0x1c] */
   7650     /* test eax, eax */ /* 0x3C003440: test eax, eax */
   7651     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7652     _cf = 0;
   7653     _flag_k = FK_TEST;
   7654     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0034DE; /* 0x3C003442: je 0x3c0034de */
   7655 L_3C003448:
   7656     eax = MEM32(ebp + (-0x18)); /* 0x3C003448: mov eax, dword ptr [ebp - 0x18] */
   7657     /* test eax, eax */ /* 0x3C00344B: test eax, eax */
   7658     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7659     _cf = 0;
   7660     _flag_k = FK_TEST;
   7661     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0034DE; /* 0x3C00344D: je 0x3c0034de */
   7662 L_3C003453:
   7663     esi = MEM32(ebp + 0x10); /* 0x3C003453: mov esi, dword ptr [ebp + 0x10] */
   7664     ecx = MEM32(ebp + 0xC); /* 0x3C003456: mov ecx, dword ptr [ebp + 0xc] */
   7665     eax = MEM32(esi + 0x8); /* 0x3C003459: mov eax, dword ptr [esi + 8] */
   7666     PUSH32(esp, ecx); /* 0x3C00345C: push ecx */
   7667     PUSH32(esp, eax); /* 0x3C00345D: push eax */
   7668     ecx = esi; /* 0x3C00345E: mov ecx, esi */
   7669     RECOMP_ICALL(0x3C001DF0u); /* 0x3C003460: call 0x3c001df0 */ /* not lifted */
   7670     RECOMP_FLAGS_IN();
   7671     edx = MEM32(ebp + (-0x18)); /* 0x3C003465: mov edx, dword ptr [ebp - 0x18] */
   7672     eax = MEM32(ebp + (-0x1C)); /* 0x3C003468: mov eax, dword ptr [ebp - 0x1c] */
   7673     ecx = MEM32(ebp + (-0x20)); /* 0x3C00346B: mov ecx, dword ptr [ebp - 0x20] */
   7674     ecx = MEM32(ecx + 0x4); /* 0x3C00346E: mov ecx, dword ptr [ecx + 4] */
   7675     PUSH32(esp, esi); /* 0x3C003471: push esi */
   7676     PUSH32(esp, edx); /* 0x3C003472: push edx */
   7677     PUSH32(esp, eax); /* 0x3C003473: push eax */
   7678     RECOMP_ICALL(0x3C001600u); /* 0x3C003474: call 0x3c001600 */ /* not lifted */
   7679     RECOMP_FLAGS_IN();
   7680     edi = eax; /* 0x3C003479: mov edi, eax */
   7681     /* cmp edi, 1 */ /* 0x3C00347B: cmp edi, 1 */
   7682     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   7683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7684     _flag_k = FK_CMP;
   7685     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00348B; /* 0x3C00347E: je 0x3c00348b */
   7686 L_3C003480:
   7687     eax = MEM32(esi + 0x4); /* 0x3C003480: mov eax, dword ptr [esi + 4] */
   7688     PUSH32(esp, eax); /* 0x3C003483: push eax */
   7689     ecx = esi; /* 0x3C003484: mov ecx, esi */
   7690     RECOMP_ICALL(0x3C004F80u); /* 0x3C003486: call 0x3c004f80 */ /* not lifted */
   7691     RECOMP_FLAGS_IN();
   7692 L_3C00348B:
   7693     edx = MEM32(ebp + 0x8); /* 0x3C00348B: mov edx, dword ptr [ebp + 8] */
   7694     eax = MEM32(esi + 0x8); /* 0x3C00348E: mov eax, dword ptr [esi + 8] */
   7695     PUSH32(esp, edx); /* 0x3C003491: push edx */
   7696     PUSH32(esp, eax); /* 0x3C003492: push eax */
   7697     ecx = esi; /* 0x3C003493: mov ecx, esi */
   7698     RECOMP_ICALL(0x3C001DF0u); /* 0x3C003495: call 0x3c001df0 */ /* not lifted */
   7699     RECOMP_FLAGS_IN();
   7700     ecx = MEM32(ebp + 0x18); /* 0x3C00349A: mov ecx, dword ptr [ebp + 0x18] */
   7701     eax = MEM32(esi + 0x8); /* 0x3C00349D: mov eax, dword ptr [esi + 8] */
   7702     esi = MEM32(esi + 0x4); /* 0x3C0034A0: mov esi, dword ptr [esi + 4] */
   7703     PUSH32(esp, ecx); /* 0x3C0034A3: push ecx */
   7704     PUSH32(esp, eax); /* 0x3C0034A4: push eax */
   7705     PUSH32(esp, esi); /* 0x3C0034A5: push esi */
   7706     RECOMP_ICALL(0x3C005EE0u); /* 0x3C0034A6: call 0x3c005ee0 */ /* not lifted */
   7707     RECOMP_FLAGS_IN();
   7708     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7709     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7710     esp = esp + 0xCu; /* 0x3C0034AB: add esp, 0xc */
   7711     _flag_k = FK_ADD;
   7712     ecx = ebp + (-0x64); /* 0x3C0034AE: lea ecx, [ebp - 0x64] */
   7713     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C0034B1: mov byte ptr [ebp - 4], 0 */
   7714     RECOMP_ICALL(0x3C003550u); /* 0x3C0034B5: call 0x3c003550 */ /* not lifted */
   7715     RECOMP_FLAGS_IN();
   7716     ecx = ebp + (-0x80); /* 0x3C0034BA: lea ecx, [ebp - 0x80] */
   7717     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0034BD: mov dword ptr [ebp - 4], 0xffffffff */
   7718     RECOMP_ICALL(0x3C003550u); /* 0x3C0034C4: call 0x3c003550 */ /* not lifted */
   7719     RECOMP_FLAGS_IN();
   7720     eax = edi; /* 0x3C0034C9: mov eax, edi */
   7721     edi = POP32_VAL(esp); /* 0x3C0034CB: pop edi */
   7722     esi = POP32_VAL(esp); /* 0x3C0034CC: pop esi */
   7723     ebx = POP32_VAL(esp); /* 0x3C0034CD: pop ebx */
   7724     ecx = MEM32(ebp + (-0xC)); /* 0x3C0034CE: mov ecx, dword ptr [ebp - 0xc] */
   7725     MEM32(FS_BASE + (0)) = ecx; /* 0x3C0034D1: mov dword ptr fs:[0], ecx */
   7726     esp = ebp; /* 0x3C0034D8: mov esp, ebp */
   7727     ebp = POP32_VAL(esp); /* 0x3C0034DA: pop ebp */
   7728     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C0034DB: ret 0x14 */
   7729 L_3C0034DE:
   7730     ecx = ebp + (-0x64); /* 0x3C0034DE: lea ecx, [ebp - 0x64] */
   7731     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C0034E1: mov byte ptr [ebp - 4], 0 */
   7732     RECOMP_ICALL(0x3C003550u); /* 0x3C0034E5: call 0x3c003550 */ /* not lifted */
   7733     RECOMP_FLAGS_IN();
   7734     ecx = ebp + (-0x80); /* 0x3C0034EA: lea ecx, [ebp - 0x80] */
   7735     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0034ED: mov dword ptr [ebp - 4], 0xffffffff */
   7736     RECOMP_ICALL(0x3C003550u); /* 0x3C0034F4: call 0x3c003550 */ /* not lifted */
   7737     RECOMP_FLAGS_IN();
   7738     edi = POP32_VAL(esp); /* 0x3C0034F9: pop edi */
   7739     esi = POP32_VAL(esp); /* 0x3C0034FA: pop esi */
   7740     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7741     eax = 0; /* 0x3C0034FB: xor eax, eax */
   7742     _cf = 0;
   7743     _flag_k = FK_TEST;
   7744     ebx = POP32_VAL(esp); /* 0x3C0034FD: pop ebx */
   7745     ecx = MEM32(ebp + (-0xC)); /* 0x3C0034FE: mov ecx, dword ptr [ebp - 0xc] */
   7746     MEM32(FS_BASE + (0)) = ecx; /* 0x3C003501: mov dword ptr fs:[0], ecx */
   7747     esp = ebp; /* 0x3C003508: mov esp, ebp */
   7748     ebp = POP32_VAL(esp); /* 0x3C00350A: pop ebp */
   7749     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C00350B: ret 0x14 */
   7750     RECOMP_REGS_OUT();
   7751 }
   7752 
   7753 void sub_3C0033A6(void) {
   7754     int _fpu_cmp = 0;
   7755     uint32_t _cf = 0;
   7756     int _df = 1;
   7757     uint32_t _flag_k = FK_NONE;
   7758     uint32_t _flag_a = 0, _flag_b = 0;
   7759     uint32_t _itail_tgt = 0;
   7760     RECOMP_REGS_LOCALS
   7761     RECOMP_ENTER(0x3C0033A6u);
   7762 
   7763 L_3C0033A6:
   7764     ecx = MEM32(edi); /* 0x3C0033A6: mov ecx, dword ptr [edi] */
   7765     eax = MEM32(ecx); /* 0x3C0033A8: mov eax, dword ptr [ecx] */
   7766     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C0033AA: call dword ptr [eax + 0xc] */
   7767     RECOMP_FLAGS_IN();
   7768     edx = MEM32(ebx); /* 0x3C0033AD: mov edx, dword ptr [ebx] */
   7769     esi = eax; /* 0x3C0033AF: mov esi, eax */
   7770     eax = MEM32(ebp + (-0x4C)); /* 0x3C0033B1: mov eax, dword ptr [ebp - 0x4c] */
   7771     PUSH32(esp, eax); /* 0x3C0033B4: push eax */
   7772     PUSH32(esp, esi); /* 0x3C0033B5: push esi */
   7773     ecx = ebx; /* 0x3C0033B6: mov ecx, ebx */
   7774     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3C0033B8: call dword ptr [edx + 0x1c] */
   7775     RECOMP_FLAGS_IN();
   7776     /* test LO8(eax), LO8(eax) */ /* 0x3C0033BB: test al, al */
   7777     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7778     _cf = 0;
   7779     _flag_k = FK_NARROW(FK_TEST, 24);
   7780     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C0033BD: je 0x3c00342f */
   7781 L_3C0033BF:
   7782     PUSH32(esp, esi); /* 0x3C0033BF: push esi */
   7783     ecx = ebp + (-0x30); /* 0x3C0033C0: lea ecx, [ebp - 0x30] */
   7784     PUSH32(esp, ecx); /* 0x3C0033C3: push ecx */
   7785     edx = ebp + (-0x3C); /* 0x3C0033C4: lea edx, [ebp - 0x3c] */
   7786     PUSH32(esp, edx); /* 0x3C0033C7: push edx */
   7787     ecx = ebp + (-0x64); /* 0x3C0033C8: lea ecx, [ebp - 0x64] */
   7788     RECOMP_ICALL(0x3C003740u); /* 0x3C0033CB: call 0x3c003740 */ /* not lifted */
   7789     RECOMP_FLAGS_IN();
   7790     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C0033D0: fstp dword ptr [ebp - 0x14] */
   7791     eax = MEM32(edi); /* 0x3C0033D3: mov eax, dword ptr [edi] */
   7792     ecx = eax + 0x2C; /* 0x3C0033D5: lea ecx, [eax + 0x2c] */
   7793     RECOMP_ICALL(0x3C004F30u); /* 0x3C0033D8: call 0x3c004f30 */ /* not lifted */
   7794     RECOMP_FLAGS_IN();
   7795     /* test eax, eax */ /* 0x3C0033DD: test eax, eax */
   7796     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7797     _cf = 0;
   7798     _flag_k = FK_TEST;
   7799     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0033ED; /* 0x3C0033DF: jne 0x3c0033ed */
   7800 L_3C0033E1:
   7801     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C0033E1: fld dword ptr [ebp - 0x14] */
   7802     _st[0] *= (double)*(float*)ADDR(0x3C0091D0); /* 0x3C0033E4: fmul dword ptr [0x3c0091d0] */
   7803     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C0033EA: fstp dword ptr [ebp - 0x14] */
   7804 L_3C0033ED:
   7805     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C0033ED: fld dword ptr [ebp - 0x14] */
   7806     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x24))); /* 0x3C0033F0: fcomp dword ptr [ebp - 0x24] */
   7807     fp_pop();
   7808     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C0033F3: fnstsw ax */
   7809     /* test HI8(eax), 1 */ /* 0x3C0033F5: test ah, 1 */
   7810     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7811     _cf = 0;
   7812     _flag_k = FK_NARROW(FK_TEST, 24);
   7813     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C0033F8: je 0x3c00342f */
   7814 L_3C0033FA:
   7815     /* cmp MEM32(ebp + (-0x50)), 1 */ /* 0x3C0033FA: cmp dword ptr [ebp - 0x50], 1 */
   7816     _flag_a = (uint32_t)(MEM32(ebp + (-0x50))); _flag_b = (uint32_t)(1);
   7817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7818     _flag_k = FK_CMP;
   7819     if (CMP_NE(_flag_a, _flag_b)) goto L_3C003405; /* 0x3C0033FE: jne 0x3c003405 */
   7820 L_3C003400:
   7821     eax = ebp + (-0x30); /* 0x3C003400: lea eax, [ebp - 0x30] */
   7822     goto L_3C00340A; /* 0x3C003403: jmp 0x3c00340a */
   7823 L_3C003405:
   7824     eax = esi; /* 0x3C003405: mov eax, esi */
   7825     esi = ebp + (-0x30); /* 0x3C003407: lea esi, [ebp - 0x30] */
   7826 L_3C00340A:
   7827     SET_LO8(ecx, MEM8(ebp + 0x18)); /* 0x3C00340A: mov cl, byte ptr [ebp + 0x18] */
   7828     /* test LO8(ecx), LO8(ecx) */ /* 0x3C00340D: test cl, cl */
   7829     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7830     _cf = 0;
   7831     _flag_k = FK_NARROW(FK_TEST, 24);
   7832     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C003424; /* 0x3C00340F: jne 0x3c003424 */
   7833 L_3C003411:
   7834     ecx = MEM32(ebp + (-0x4C)); /* 0x3C003411: mov ecx, dword ptr [ebp - 0x4c] */
   7835     PUSH32(esp, ecx); /* 0x3C003414: push ecx */
   7836     PUSH32(esp, ebx); /* 0x3C003415: push ebx */
   7837     PUSH32(esp, esi); /* 0x3C003416: push esi */
   7838     PUSH32(esp, eax); /* 0x3C003417: push eax */
   7839     RECOMP_ICALL(0x3C002E50u); /* 0x3C003418: call 0x3c002e50 */ /* not lifted */
   7840     RECOMP_FLAGS_IN();
   7841     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7842     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7843     esp = esp + 0x10u; /* 0x3C00341D: add esp, 0x10 */
   7844     _flag_k = FK_ADD;
   7845     /* cmp LO8(eax), 1 */ /* 0x3C003420: cmp al, 1 */
   7846     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7848     _flag_k = FK_NARROW(FK_CMP, 24);
   7849     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C003422: jne 0x3c00342f */
   7850 L_3C003424:
   7851     edx = MEM32(edi); /* 0x3C003424: mov edx, dword ptr [edi] */
   7852     eax = MEM32(ebp + (-0x14)); /* 0x3C003426: mov eax, dword ptr [ebp - 0x14] */
   7853     MEM32(ebp + (-0x18)) = edx; /* 0x3C003429: mov dword ptr [ebp - 0x18], edx */
   7854     MEM32(ebp + (-0x24)) = eax; /* 0x3C00342C: mov dword ptr [ebp - 0x24], eax */
   7855 L_3C00342F:
   7856     eax = MEM32(ebp + (-0x58)); /* 0x3C00342F: mov eax, dword ptr [ebp - 0x58] */
   7857     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   7858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7859     edi = edi + 4; /* 0x3C003432: add edi, 4 */
   7860     _flag_k = FK_ADD;
   7861     /* cmp edi, eax */ /* 0x3C003435: cmp edi, eax */
   7862     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7864     _flag_k = FK_CMP;
   7865     RECOMP_BACKEDGE();
   7866     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0033A6; /* 0x3C003437: jne 0x3c0033a6 */
   7867 L_3C00343D:
   7868     eax = MEM32(ebp + (-0x1C)); /* 0x3C00343D: mov eax, dword ptr [ebp - 0x1c] */
   7869     /* test eax, eax */ /* 0x3C003440: test eax, eax */
   7870     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7871     _cf = 0;
   7872     _flag_k = FK_TEST;
   7873     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0034DE; /* 0x3C003442: je 0x3c0034de */
   7874 L_3C003448:
   7875     eax = MEM32(ebp + (-0x18)); /* 0x3C003448: mov eax, dword ptr [ebp - 0x18] */
   7876     /* test eax, eax */ /* 0x3C00344B: test eax, eax */
   7877     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7878     _cf = 0;
   7879     _flag_k = FK_TEST;
   7880     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0034DE; /* 0x3C00344D: je 0x3c0034de */
   7881 L_3C003453:
   7882     esi = MEM32(ebp + 0x10); /* 0x3C003453: mov esi, dword ptr [ebp + 0x10] */
   7883     ecx = MEM32(ebp + 0xC); /* 0x3C003456: mov ecx, dword ptr [ebp + 0xc] */
   7884     eax = MEM32(esi + 0x8); /* 0x3C003459: mov eax, dword ptr [esi + 8] */
   7885     PUSH32(esp, ecx); /* 0x3C00345C: push ecx */
   7886     PUSH32(esp, eax); /* 0x3C00345D: push eax */
   7887     ecx = esi; /* 0x3C00345E: mov ecx, esi */
   7888     RECOMP_ICALL(0x3C001DF0u); /* 0x3C003460: call 0x3c001df0 */ /* not lifted */
   7889     RECOMP_FLAGS_IN();
   7890     edx = MEM32(ebp + (-0x18)); /* 0x3C003465: mov edx, dword ptr [ebp - 0x18] */
   7891     eax = MEM32(ebp + (-0x1C)); /* 0x3C003468: mov eax, dword ptr [ebp - 0x1c] */
   7892     ecx = MEM32(ebp + (-0x20)); /* 0x3C00346B: mov ecx, dword ptr [ebp - 0x20] */
   7893     ecx = MEM32(ecx + 0x4); /* 0x3C00346E: mov ecx, dword ptr [ecx + 4] */
   7894     PUSH32(esp, esi); /* 0x3C003471: push esi */
   7895     PUSH32(esp, edx); /* 0x3C003472: push edx */
   7896     PUSH32(esp, eax); /* 0x3C003473: push eax */
   7897     RECOMP_ICALL(0x3C001600u); /* 0x3C003474: call 0x3c001600 */ /* not lifted */
   7898     RECOMP_FLAGS_IN();
   7899     edi = eax; /* 0x3C003479: mov edi, eax */
   7900     /* cmp edi, 1 */ /* 0x3C00347B: cmp edi, 1 */
   7901     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   7902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7903     _flag_k = FK_CMP;
   7904     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00348B; /* 0x3C00347E: je 0x3c00348b */
   7905 L_3C003480:
   7906     eax = MEM32(esi + 0x4); /* 0x3C003480: mov eax, dword ptr [esi + 4] */
   7907     PUSH32(esp, eax); /* 0x3C003483: push eax */
   7908     ecx = esi; /* 0x3C003484: mov ecx, esi */
   7909     RECOMP_ICALL(0x3C004F80u); /* 0x3C003486: call 0x3c004f80 */ /* not lifted */
   7910     RECOMP_FLAGS_IN();
   7911 L_3C00348B:
   7912     edx = MEM32(ebp + 0x8); /* 0x3C00348B: mov edx, dword ptr [ebp + 8] */
   7913     eax = MEM32(esi + 0x8); /* 0x3C00348E: mov eax, dword ptr [esi + 8] */
   7914     PUSH32(esp, edx); /* 0x3C003491: push edx */
   7915     PUSH32(esp, eax); /* 0x3C003492: push eax */
   7916     ecx = esi; /* 0x3C003493: mov ecx, esi */
   7917     RECOMP_ICALL(0x3C001DF0u); /* 0x3C003495: call 0x3c001df0 */ /* not lifted */
   7918     RECOMP_FLAGS_IN();
   7919     ecx = MEM32(ebp + 0x18); /* 0x3C00349A: mov ecx, dword ptr [ebp + 0x18] */
   7920     eax = MEM32(esi + 0x8); /* 0x3C00349D: mov eax, dword ptr [esi + 8] */
   7921     esi = MEM32(esi + 0x4); /* 0x3C0034A0: mov esi, dword ptr [esi + 4] */
   7922     PUSH32(esp, ecx); /* 0x3C0034A3: push ecx */
   7923     PUSH32(esp, eax); /* 0x3C0034A4: push eax */
   7924     PUSH32(esp, esi); /* 0x3C0034A5: push esi */
   7925     RECOMP_ICALL(0x3C005EE0u); /* 0x3C0034A6: call 0x3c005ee0 */ /* not lifted */
   7926     RECOMP_FLAGS_IN();
   7927     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7928     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7929     esp = esp + 0xCu; /* 0x3C0034AB: add esp, 0xc */
   7930     _flag_k = FK_ADD;
   7931     ecx = ebp + (-0x64); /* 0x3C0034AE: lea ecx, [ebp - 0x64] */
   7932     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C0034B1: mov byte ptr [ebp - 4], 0 */
   7933     RECOMP_ICALL(0x3C003550u); /* 0x3C0034B5: call 0x3c003550 */ /* not lifted */
   7934     RECOMP_FLAGS_IN();
   7935     ecx = ebp + (-0x80); /* 0x3C0034BA: lea ecx, [ebp - 0x80] */
   7936     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0034BD: mov dword ptr [ebp - 4], 0xffffffff */
   7937     RECOMP_ICALL(0x3C003550u); /* 0x3C0034C4: call 0x3c003550 */ /* not lifted */
   7938     RECOMP_FLAGS_IN();
   7939     eax = edi; /* 0x3C0034C9: mov eax, edi */
   7940     edi = POP32_VAL(esp); /* 0x3C0034CB: pop edi */
   7941     esi = POP32_VAL(esp); /* 0x3C0034CC: pop esi */
   7942     ebx = POP32_VAL(esp); /* 0x3C0034CD: pop ebx */
   7943     ecx = MEM32(ebp + (-0xC)); /* 0x3C0034CE: mov ecx, dword ptr [ebp - 0xc] */
   7944     MEM32(FS_BASE + (0)) = ecx; /* 0x3C0034D1: mov dword ptr fs:[0], ecx */
   7945     esp = ebp; /* 0x3C0034D8: mov esp, ebp */
   7946     ebp = POP32_VAL(esp); /* 0x3C0034DA: pop ebp */
   7947     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C0034DB: ret 0x14 */
   7948 L_3C0034DE:
   7949     ecx = ebp + (-0x64); /* 0x3C0034DE: lea ecx, [ebp - 0x64] */
   7950     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C0034E1: mov byte ptr [ebp - 4], 0 */
   7951     RECOMP_ICALL(0x3C003550u); /* 0x3C0034E5: call 0x3c003550 */ /* not lifted */
   7952     RECOMP_FLAGS_IN();
   7953     ecx = ebp + (-0x80); /* 0x3C0034EA: lea ecx, [ebp - 0x80] */
   7954     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0034ED: mov dword ptr [ebp - 4], 0xffffffff */
   7955     RECOMP_ICALL(0x3C003550u); /* 0x3C0034F4: call 0x3c003550 */ /* not lifted */
   7956     RECOMP_FLAGS_IN();
   7957     edi = POP32_VAL(esp); /* 0x3C0034F9: pop edi */
   7958     esi = POP32_VAL(esp); /* 0x3C0034FA: pop esi */
   7959     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7960     eax = 0; /* 0x3C0034FB: xor eax, eax */
   7961     _cf = 0;
   7962     _flag_k = FK_TEST;
   7963     ebx = POP32_VAL(esp); /* 0x3C0034FD: pop ebx */
   7964     ecx = MEM32(ebp + (-0xC)); /* 0x3C0034FE: mov ecx, dword ptr [ebp - 0xc] */
   7965     MEM32(FS_BASE + (0)) = ecx; /* 0x3C003501: mov dword ptr fs:[0], ecx */
   7966     esp = ebp; /* 0x3C003508: mov esp, ebp */
   7967     ebp = POP32_VAL(esp); /* 0x3C00350A: pop ebp */
   7968     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C00350B: ret 0x14 */
   7969     RECOMP_REGS_OUT();
   7970 }
   7971 
   7972 void sub_3C00340A(void) {
   7973     int _fpu_cmp = 0;
   7974     uint32_t _cf = 0;
   7975     int _df = 1;
   7976     uint32_t _flag_k = FK_NONE;
   7977     uint32_t _flag_a = 0, _flag_b = 0;
   7978     uint32_t _itail_tgt = 0;
   7979     RECOMP_REGS_LOCALS
   7980     RECOMP_ENTER(0x3C00340Au);
   7981 
   7982     goto L_3C00340A;
   7983 L_3C0033A6:
   7984     ecx = MEM32(edi); /* 0x3C0033A6: mov ecx, dword ptr [edi] */
   7985     eax = MEM32(ecx); /* 0x3C0033A8: mov eax, dword ptr [ecx] */
   7986     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C0033AA: call dword ptr [eax + 0xc] */
   7987     RECOMP_FLAGS_IN();
   7988     edx = MEM32(ebx); /* 0x3C0033AD: mov edx, dword ptr [ebx] */
   7989     esi = eax; /* 0x3C0033AF: mov esi, eax */
   7990     eax = MEM32(ebp + (-0x4C)); /* 0x3C0033B1: mov eax, dword ptr [ebp - 0x4c] */
   7991     PUSH32(esp, eax); /* 0x3C0033B4: push eax */
   7992     PUSH32(esp, esi); /* 0x3C0033B5: push esi */
   7993     ecx = ebx; /* 0x3C0033B6: mov ecx, ebx */
   7994     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3C0033B8: call dword ptr [edx + 0x1c] */
   7995     RECOMP_FLAGS_IN();
   7996     /* test LO8(eax), LO8(eax) */ /* 0x3C0033BB: test al, al */
   7997     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7998     _cf = 0;
   7999     _flag_k = FK_NARROW(FK_TEST, 24);
   8000     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C0033BD: je 0x3c00342f */
   8001 L_3C0033BF:
   8002     PUSH32(esp, esi); /* 0x3C0033BF: push esi */
   8003     ecx = ebp + (-0x30); /* 0x3C0033C0: lea ecx, [ebp - 0x30] */
   8004     PUSH32(esp, ecx); /* 0x3C0033C3: push ecx */
   8005     edx = ebp + (-0x3C); /* 0x3C0033C4: lea edx, [ebp - 0x3c] */
   8006     PUSH32(esp, edx); /* 0x3C0033C7: push edx */
   8007     ecx = ebp + (-0x64); /* 0x3C0033C8: lea ecx, [ebp - 0x64] */
   8008     RECOMP_ICALL(0x3C003740u); /* 0x3C0033CB: call 0x3c003740 */ /* not lifted */
   8009     RECOMP_FLAGS_IN();
   8010     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C0033D0: fstp dword ptr [ebp - 0x14] */
   8011     eax = MEM32(edi); /* 0x3C0033D3: mov eax, dword ptr [edi] */
   8012     ecx = eax + 0x2C; /* 0x3C0033D5: lea ecx, [eax + 0x2c] */
   8013     RECOMP_ICALL(0x3C004F30u); /* 0x3C0033D8: call 0x3c004f30 */ /* not lifted */
   8014     RECOMP_FLAGS_IN();
   8015     /* test eax, eax */ /* 0x3C0033DD: test eax, eax */
   8016     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8017     _cf = 0;
   8018     _flag_k = FK_TEST;
   8019     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0033ED; /* 0x3C0033DF: jne 0x3c0033ed */
   8020 L_3C0033E1:
   8021     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C0033E1: fld dword ptr [ebp - 0x14] */
   8022     _st[0] *= (double)*(float*)ADDR(0x3C0091D0); /* 0x3C0033E4: fmul dword ptr [0x3c0091d0] */
   8023     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C0033EA: fstp dword ptr [ebp - 0x14] */
   8024 L_3C0033ED:
   8025     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C0033ED: fld dword ptr [ebp - 0x14] */
   8026     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x24))); /* 0x3C0033F0: fcomp dword ptr [ebp - 0x24] */
   8027     fp_pop();
   8028     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C0033F3: fnstsw ax */
   8029     /* test HI8(eax), 1 */ /* 0x3C0033F5: test ah, 1 */
   8030     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8031     _cf = 0;
   8032     _flag_k = FK_NARROW(FK_TEST, 24);
   8033     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C0033F8: je 0x3c00342f */
   8034 L_3C0033FA:
   8035     /* cmp MEM32(ebp + (-0x50)), 1 */ /* 0x3C0033FA: cmp dword ptr [ebp - 0x50], 1 */
   8036     _flag_a = (uint32_t)(MEM32(ebp + (-0x50))); _flag_b = (uint32_t)(1);
   8037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8038     _flag_k = FK_CMP;
   8039     if (CMP_NE(_flag_a, _flag_b)) goto L_3C003405; /* 0x3C0033FE: jne 0x3c003405 */
   8040 L_3C003400:
   8041     eax = ebp + (-0x30); /* 0x3C003400: lea eax, [ebp - 0x30] */
   8042     goto L_3C00340A; /* 0x3C003403: jmp 0x3c00340a */
   8043 L_3C003405:
   8044     eax = esi; /* 0x3C003405: mov eax, esi */
   8045     esi = ebp + (-0x30); /* 0x3C003407: lea esi, [ebp - 0x30] */
   8046 L_3C00340A:
   8047     SET_LO8(ecx, MEM8(ebp + 0x18)); /* 0x3C00340A: mov cl, byte ptr [ebp + 0x18] */
   8048     /* test LO8(ecx), LO8(ecx) */ /* 0x3C00340D: test cl, cl */
   8049     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   8050     _cf = 0;
   8051     _flag_k = FK_NARROW(FK_TEST, 24);
   8052     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C003424; /* 0x3C00340F: jne 0x3c003424 */
   8053 L_3C003411:
   8054     ecx = MEM32(ebp + (-0x4C)); /* 0x3C003411: mov ecx, dword ptr [ebp - 0x4c] */
   8055     PUSH32(esp, ecx); /* 0x3C003414: push ecx */
   8056     PUSH32(esp, ebx); /* 0x3C003415: push ebx */
   8057     PUSH32(esp, esi); /* 0x3C003416: push esi */
   8058     PUSH32(esp, eax); /* 0x3C003417: push eax */
   8059     RECOMP_ICALL(0x3C002E50u); /* 0x3C003418: call 0x3c002e50 */ /* not lifted */
   8060     RECOMP_FLAGS_IN();
   8061     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8062     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8063     esp = esp + 0x10u; /* 0x3C00341D: add esp, 0x10 */
   8064     _flag_k = FK_ADD;
   8065     /* cmp LO8(eax), 1 */ /* 0x3C003420: cmp al, 1 */
   8066     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8068     _flag_k = FK_NARROW(FK_CMP, 24);
   8069     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C003422: jne 0x3c00342f */
   8070 L_3C003424:
   8071     edx = MEM32(edi); /* 0x3C003424: mov edx, dword ptr [edi] */
   8072     eax = MEM32(ebp + (-0x14)); /* 0x3C003426: mov eax, dword ptr [ebp - 0x14] */
   8073     MEM32(ebp + (-0x18)) = edx; /* 0x3C003429: mov dword ptr [ebp - 0x18], edx */
   8074     MEM32(ebp + (-0x24)) = eax; /* 0x3C00342C: mov dword ptr [ebp - 0x24], eax */
   8075 L_3C00342F:
   8076     eax = MEM32(ebp + (-0x58)); /* 0x3C00342F: mov eax, dword ptr [ebp - 0x58] */
   8077     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   8078     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8079     edi = edi + 4; /* 0x3C003432: add edi, 4 */
   8080     _flag_k = FK_ADD;
   8081     /* cmp edi, eax */ /* 0x3C003435: cmp edi, eax */
   8082     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8084     _flag_k = FK_CMP;
   8085     RECOMP_BACKEDGE();
   8086     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0033A6; /* 0x3C003437: jne 0x3c0033a6 */
   8087 L_3C00343D:
   8088     eax = MEM32(ebp + (-0x1C)); /* 0x3C00343D: mov eax, dword ptr [ebp - 0x1c] */
   8089     /* test eax, eax */ /* 0x3C003440: test eax, eax */
   8090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8091     _cf = 0;
   8092     _flag_k = FK_TEST;
   8093     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0034DE; /* 0x3C003442: je 0x3c0034de */
   8094 L_3C003448:
   8095     eax = MEM32(ebp + (-0x18)); /* 0x3C003448: mov eax, dword ptr [ebp - 0x18] */
   8096     /* test eax, eax */ /* 0x3C00344B: test eax, eax */
   8097     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8098     _cf = 0;
   8099     _flag_k = FK_TEST;
   8100     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0034DE; /* 0x3C00344D: je 0x3c0034de */
   8101 L_3C003453:
   8102     esi = MEM32(ebp + 0x10); /* 0x3C003453: mov esi, dword ptr [ebp + 0x10] */
   8103     ecx = MEM32(ebp + 0xC); /* 0x3C003456: mov ecx, dword ptr [ebp + 0xc] */
   8104     eax = MEM32(esi + 0x8); /* 0x3C003459: mov eax, dword ptr [esi + 8] */
   8105     PUSH32(esp, ecx); /* 0x3C00345C: push ecx */
   8106     PUSH32(esp, eax); /* 0x3C00345D: push eax */
   8107     ecx = esi; /* 0x3C00345E: mov ecx, esi */
   8108     RECOMP_ICALL(0x3C001DF0u); /* 0x3C003460: call 0x3c001df0 */ /* not lifted */
   8109     RECOMP_FLAGS_IN();
   8110     edx = MEM32(ebp + (-0x18)); /* 0x3C003465: mov edx, dword ptr [ebp - 0x18] */
   8111     eax = MEM32(ebp + (-0x1C)); /* 0x3C003468: mov eax, dword ptr [ebp - 0x1c] */
   8112     ecx = MEM32(ebp + (-0x20)); /* 0x3C00346B: mov ecx, dword ptr [ebp - 0x20] */
   8113     ecx = MEM32(ecx + 0x4); /* 0x3C00346E: mov ecx, dword ptr [ecx + 4] */
   8114     PUSH32(esp, esi); /* 0x3C003471: push esi */
   8115     PUSH32(esp, edx); /* 0x3C003472: push edx */
   8116     PUSH32(esp, eax); /* 0x3C003473: push eax */
   8117     RECOMP_ICALL(0x3C001600u); /* 0x3C003474: call 0x3c001600 */ /* not lifted */
   8118     RECOMP_FLAGS_IN();
   8119     edi = eax; /* 0x3C003479: mov edi, eax */
   8120     /* cmp edi, 1 */ /* 0x3C00347B: cmp edi, 1 */
   8121     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   8122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8123     _flag_k = FK_CMP;
   8124     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00348B; /* 0x3C00347E: je 0x3c00348b */
   8125 L_3C003480:
   8126     eax = MEM32(esi + 0x4); /* 0x3C003480: mov eax, dword ptr [esi + 4] */
   8127     PUSH32(esp, eax); /* 0x3C003483: push eax */
   8128     ecx = esi; /* 0x3C003484: mov ecx, esi */
   8129     RECOMP_ICALL(0x3C004F80u); /* 0x3C003486: call 0x3c004f80 */ /* not lifted */
   8130     RECOMP_FLAGS_IN();
   8131 L_3C00348B:
   8132     edx = MEM32(ebp + 0x8); /* 0x3C00348B: mov edx, dword ptr [ebp + 8] */
   8133     eax = MEM32(esi + 0x8); /* 0x3C00348E: mov eax, dword ptr [esi + 8] */
   8134     PUSH32(esp, edx); /* 0x3C003491: push edx */
   8135     PUSH32(esp, eax); /* 0x3C003492: push eax */
   8136     ecx = esi; /* 0x3C003493: mov ecx, esi */
   8137     RECOMP_ICALL(0x3C001DF0u); /* 0x3C003495: call 0x3c001df0 */ /* not lifted */
   8138     RECOMP_FLAGS_IN();
   8139     ecx = MEM32(ebp + 0x18); /* 0x3C00349A: mov ecx, dword ptr [ebp + 0x18] */
   8140     eax = MEM32(esi + 0x8); /* 0x3C00349D: mov eax, dword ptr [esi + 8] */
   8141     esi = MEM32(esi + 0x4); /* 0x3C0034A0: mov esi, dword ptr [esi + 4] */
   8142     PUSH32(esp, ecx); /* 0x3C0034A3: push ecx */
   8143     PUSH32(esp, eax); /* 0x3C0034A4: push eax */
   8144     PUSH32(esp, esi); /* 0x3C0034A5: push esi */
   8145     RECOMP_ICALL(0x3C005EE0u); /* 0x3C0034A6: call 0x3c005ee0 */ /* not lifted */
   8146     RECOMP_FLAGS_IN();
   8147     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8148     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8149     esp = esp + 0xCu; /* 0x3C0034AB: add esp, 0xc */
   8150     _flag_k = FK_ADD;
   8151     ecx = ebp + (-0x64); /* 0x3C0034AE: lea ecx, [ebp - 0x64] */
   8152     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C0034B1: mov byte ptr [ebp - 4], 0 */
   8153     RECOMP_ICALL(0x3C003550u); /* 0x3C0034B5: call 0x3c003550 */ /* not lifted */
   8154     RECOMP_FLAGS_IN();
   8155     ecx = ebp + (-0x80); /* 0x3C0034BA: lea ecx, [ebp - 0x80] */
   8156     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0034BD: mov dword ptr [ebp - 4], 0xffffffff */
   8157     RECOMP_ICALL(0x3C003550u); /* 0x3C0034C4: call 0x3c003550 */ /* not lifted */
   8158     RECOMP_FLAGS_IN();
   8159     eax = edi; /* 0x3C0034C9: mov eax, edi */
   8160     edi = POP32_VAL(esp); /* 0x3C0034CB: pop edi */
   8161     esi = POP32_VAL(esp); /* 0x3C0034CC: pop esi */
   8162     ebx = POP32_VAL(esp); /* 0x3C0034CD: pop ebx */
   8163     ecx = MEM32(ebp + (-0xC)); /* 0x3C0034CE: mov ecx, dword ptr [ebp - 0xc] */
   8164     MEM32(FS_BASE + (0)) = ecx; /* 0x3C0034D1: mov dword ptr fs:[0], ecx */
   8165     esp = ebp; /* 0x3C0034D8: mov esp, ebp */
   8166     ebp = POP32_VAL(esp); /* 0x3C0034DA: pop ebp */
   8167     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C0034DB: ret 0x14 */
   8168 L_3C0034DE:
   8169     ecx = ebp + (-0x64); /* 0x3C0034DE: lea ecx, [ebp - 0x64] */
   8170     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C0034E1: mov byte ptr [ebp - 4], 0 */
   8171     RECOMP_ICALL(0x3C003550u); /* 0x3C0034E5: call 0x3c003550 */ /* not lifted */
   8172     RECOMP_FLAGS_IN();
   8173     ecx = ebp + (-0x80); /* 0x3C0034EA: lea ecx, [ebp - 0x80] */
   8174     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0034ED: mov dword ptr [ebp - 4], 0xffffffff */
   8175     RECOMP_ICALL(0x3C003550u); /* 0x3C0034F4: call 0x3c003550 */ /* not lifted */
   8176     RECOMP_FLAGS_IN();
   8177     edi = POP32_VAL(esp); /* 0x3C0034F9: pop edi */
   8178     esi = POP32_VAL(esp); /* 0x3C0034FA: pop esi */
   8179     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8180     eax = 0; /* 0x3C0034FB: xor eax, eax */
   8181     _cf = 0;
   8182     _flag_k = FK_TEST;
   8183     ebx = POP32_VAL(esp); /* 0x3C0034FD: pop ebx */
   8184     ecx = MEM32(ebp + (-0xC)); /* 0x3C0034FE: mov ecx, dword ptr [ebp - 0xc] */
   8185     MEM32(FS_BASE + (0)) = ecx; /* 0x3C003501: mov dword ptr fs:[0], ecx */
   8186     esp = ebp; /* 0x3C003508: mov esp, ebp */
   8187     ebp = POP32_VAL(esp); /* 0x3C00350A: pop ebp */
   8188     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C00350B: ret 0x14 */
   8189     RECOMP_REGS_OUT();
   8190 }
   8191 
   8192 void sub_3C00342F(void) {
   8193     int _fpu_cmp = 0;
   8194     uint32_t _cf = 0;
   8195     int _df = 1;
   8196     uint32_t _flag_k = FK_NONE;
   8197     uint32_t _flag_a = 0, _flag_b = 0;
   8198     uint32_t _itail_tgt = 0;
   8199     RECOMP_REGS_LOCALS
   8200     RECOMP_ENTER(0x3C00342Fu);
   8201 
   8202     goto L_3C00342F;
   8203 L_3C0033A6:
   8204     ecx = MEM32(edi); /* 0x3C0033A6: mov ecx, dword ptr [edi] */
   8205     eax = MEM32(ecx); /* 0x3C0033A8: mov eax, dword ptr [ecx] */
   8206     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3C0033AA: call dword ptr [eax + 0xc] */
   8207     RECOMP_FLAGS_IN();
   8208     edx = MEM32(ebx); /* 0x3C0033AD: mov edx, dword ptr [ebx] */
   8209     esi = eax; /* 0x3C0033AF: mov esi, eax */
   8210     eax = MEM32(ebp + (-0x4C)); /* 0x3C0033B1: mov eax, dword ptr [ebp - 0x4c] */
   8211     PUSH32(esp, eax); /* 0x3C0033B4: push eax */
   8212     PUSH32(esp, esi); /* 0x3C0033B5: push esi */
   8213     ecx = ebx; /* 0x3C0033B6: mov ecx, ebx */
   8214     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3C0033B8: call dword ptr [edx + 0x1c] */
   8215     RECOMP_FLAGS_IN();
   8216     /* test LO8(eax), LO8(eax) */ /* 0x3C0033BB: test al, al */
   8217     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8218     _cf = 0;
   8219     _flag_k = FK_NARROW(FK_TEST, 24);
   8220     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C0033BD: je 0x3c00342f */
   8221 L_3C0033BF:
   8222     PUSH32(esp, esi); /* 0x3C0033BF: push esi */
   8223     ecx = ebp + (-0x30); /* 0x3C0033C0: lea ecx, [ebp - 0x30] */
   8224     PUSH32(esp, ecx); /* 0x3C0033C3: push ecx */
   8225     edx = ebp + (-0x3C); /* 0x3C0033C4: lea edx, [ebp - 0x3c] */
   8226     PUSH32(esp, edx); /* 0x3C0033C7: push edx */
   8227     ecx = ebp + (-0x64); /* 0x3C0033C8: lea ecx, [ebp - 0x64] */
   8228     RECOMP_ICALL(0x3C003740u); /* 0x3C0033CB: call 0x3c003740 */ /* not lifted */
   8229     RECOMP_FLAGS_IN();
   8230     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C0033D0: fstp dword ptr [ebp - 0x14] */
   8231     eax = MEM32(edi); /* 0x3C0033D3: mov eax, dword ptr [edi] */
   8232     ecx = eax + 0x2C; /* 0x3C0033D5: lea ecx, [eax + 0x2c] */
   8233     RECOMP_ICALL(0x3C004F30u); /* 0x3C0033D8: call 0x3c004f30 */ /* not lifted */
   8234     RECOMP_FLAGS_IN();
   8235     /* test eax, eax */ /* 0x3C0033DD: test eax, eax */
   8236     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8237     _cf = 0;
   8238     _flag_k = FK_TEST;
   8239     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0033ED; /* 0x3C0033DF: jne 0x3c0033ed */
   8240 L_3C0033E1:
   8241     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C0033E1: fld dword ptr [ebp - 0x14] */
   8242     _st[0] *= (double)*(float*)ADDR(0x3C0091D0); /* 0x3C0033E4: fmul dword ptr [0x3c0091d0] */
   8243     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3C0033EA: fstp dword ptr [ebp - 0x14] */
   8244 L_3C0033ED:
   8245     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3C0033ED: fld dword ptr [ebp - 0x14] */
   8246     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x24))); /* 0x3C0033F0: fcomp dword ptr [ebp - 0x24] */
   8247     fp_pop();
   8248     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C0033F3: fnstsw ax */
   8249     /* test HI8(eax), 1 */ /* 0x3C0033F5: test ah, 1 */
   8250     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8251     _cf = 0;
   8252     _flag_k = FK_NARROW(FK_TEST, 24);
   8253     if (TEST_Z(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C0033F8: je 0x3c00342f */
   8254 L_3C0033FA:
   8255     /* cmp MEM32(ebp + (-0x50)), 1 */ /* 0x3C0033FA: cmp dword ptr [ebp - 0x50], 1 */
   8256     _flag_a = (uint32_t)(MEM32(ebp + (-0x50))); _flag_b = (uint32_t)(1);
   8257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8258     _flag_k = FK_CMP;
   8259     if (CMP_NE(_flag_a, _flag_b)) goto L_3C003405; /* 0x3C0033FE: jne 0x3c003405 */
   8260 L_3C003400:
   8261     eax = ebp + (-0x30); /* 0x3C003400: lea eax, [ebp - 0x30] */
   8262     goto L_3C00340A; /* 0x3C003403: jmp 0x3c00340a */
   8263 L_3C003405:
   8264     eax = esi; /* 0x3C003405: mov eax, esi */
   8265     esi = ebp + (-0x30); /* 0x3C003407: lea esi, [ebp - 0x30] */
   8266 L_3C00340A:
   8267     SET_LO8(ecx, MEM8(ebp + 0x18)); /* 0x3C00340A: mov cl, byte ptr [ebp + 0x18] */
   8268     /* test LO8(ecx), LO8(ecx) */ /* 0x3C00340D: test cl, cl */
   8269     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   8270     _cf = 0;
   8271     _flag_k = FK_NARROW(FK_TEST, 24);
   8272     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C003424; /* 0x3C00340F: jne 0x3c003424 */
   8273 L_3C003411:
   8274     ecx = MEM32(ebp + (-0x4C)); /* 0x3C003411: mov ecx, dword ptr [ebp - 0x4c] */
   8275     PUSH32(esp, ecx); /* 0x3C003414: push ecx */
   8276     PUSH32(esp, ebx); /* 0x3C003415: push ebx */
   8277     PUSH32(esp, esi); /* 0x3C003416: push esi */
   8278     PUSH32(esp, eax); /* 0x3C003417: push eax */
   8279     RECOMP_ICALL(0x3C002E50u); /* 0x3C003418: call 0x3c002e50 */ /* not lifted */
   8280     RECOMP_FLAGS_IN();
   8281     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8282     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8283     esp = esp + 0x10u; /* 0x3C00341D: add esp, 0x10 */
   8284     _flag_k = FK_ADD;
   8285     /* cmp LO8(eax), 1 */ /* 0x3C003420: cmp al, 1 */
   8286     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8287     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8288     _flag_k = FK_NARROW(FK_CMP, 24);
   8289     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00342F; /* 0x3C003422: jne 0x3c00342f */
   8290 L_3C003424:
   8291     edx = MEM32(edi); /* 0x3C003424: mov edx, dword ptr [edi] */
   8292     eax = MEM32(ebp + (-0x14)); /* 0x3C003426: mov eax, dword ptr [ebp - 0x14] */
   8293     MEM32(ebp + (-0x18)) = edx; /* 0x3C003429: mov dword ptr [ebp - 0x18], edx */
   8294     MEM32(ebp + (-0x24)) = eax; /* 0x3C00342C: mov dword ptr [ebp - 0x24], eax */
   8295 L_3C00342F:
   8296     eax = MEM32(ebp + (-0x58)); /* 0x3C00342F: mov eax, dword ptr [ebp - 0x58] */
   8297     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   8298     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8299     edi = edi + 4; /* 0x3C003432: add edi, 4 */
   8300     _flag_k = FK_ADD;
   8301     /* cmp edi, eax */ /* 0x3C003435: cmp edi, eax */
   8302     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8304     _flag_k = FK_CMP;
   8305     RECOMP_BACKEDGE();
   8306     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0033A6; /* 0x3C003437: jne 0x3c0033a6 */
   8307 L_3C00343D:
   8308     eax = MEM32(ebp + (-0x1C)); /* 0x3C00343D: mov eax, dword ptr [ebp - 0x1c] */
   8309     /* test eax, eax */ /* 0x3C003440: test eax, eax */
   8310     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8311     _cf = 0;
   8312     _flag_k = FK_TEST;
   8313     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0034DE; /* 0x3C003442: je 0x3c0034de */
   8314 L_3C003448:
   8315     eax = MEM32(ebp + (-0x18)); /* 0x3C003448: mov eax, dword ptr [ebp - 0x18] */
   8316     /* test eax, eax */ /* 0x3C00344B: test eax, eax */
   8317     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8318     _cf = 0;
   8319     _flag_k = FK_TEST;
   8320     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0034DE; /* 0x3C00344D: je 0x3c0034de */
   8321 L_3C003453:
   8322     esi = MEM32(ebp + 0x10); /* 0x3C003453: mov esi, dword ptr [ebp + 0x10] */
   8323     ecx = MEM32(ebp + 0xC); /* 0x3C003456: mov ecx, dword ptr [ebp + 0xc] */
   8324     eax = MEM32(esi + 0x8); /* 0x3C003459: mov eax, dword ptr [esi + 8] */
   8325     PUSH32(esp, ecx); /* 0x3C00345C: push ecx */
   8326     PUSH32(esp, eax); /* 0x3C00345D: push eax */
   8327     ecx = esi; /* 0x3C00345E: mov ecx, esi */
   8328     RECOMP_ICALL(0x3C001DF0u); /* 0x3C003460: call 0x3c001df0 */ /* not lifted */
   8329     RECOMP_FLAGS_IN();
   8330     edx = MEM32(ebp + (-0x18)); /* 0x3C003465: mov edx, dword ptr [ebp - 0x18] */
   8331     eax = MEM32(ebp + (-0x1C)); /* 0x3C003468: mov eax, dword ptr [ebp - 0x1c] */
   8332     ecx = MEM32(ebp + (-0x20)); /* 0x3C00346B: mov ecx, dword ptr [ebp - 0x20] */
   8333     ecx = MEM32(ecx + 0x4); /* 0x3C00346E: mov ecx, dword ptr [ecx + 4] */
   8334     PUSH32(esp, esi); /* 0x3C003471: push esi */
   8335     PUSH32(esp, edx); /* 0x3C003472: push edx */
   8336     PUSH32(esp, eax); /* 0x3C003473: push eax */
   8337     RECOMP_ICALL(0x3C001600u); /* 0x3C003474: call 0x3c001600 */ /* not lifted */
   8338     RECOMP_FLAGS_IN();
   8339     edi = eax; /* 0x3C003479: mov edi, eax */
   8340     /* cmp edi, 1 */ /* 0x3C00347B: cmp edi, 1 */
   8341     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   8342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8343     _flag_k = FK_CMP;
   8344     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C00348B; /* 0x3C00347E: je 0x3c00348b */
   8345 L_3C003480:
   8346     eax = MEM32(esi + 0x4); /* 0x3C003480: mov eax, dword ptr [esi + 4] */
   8347     PUSH32(esp, eax); /* 0x3C003483: push eax */
   8348     ecx = esi; /* 0x3C003484: mov ecx, esi */
   8349     RECOMP_ICALL(0x3C004F80u); /* 0x3C003486: call 0x3c004f80 */ /* not lifted */
   8350     RECOMP_FLAGS_IN();
   8351 L_3C00348B:
   8352     edx = MEM32(ebp + 0x8); /* 0x3C00348B: mov edx, dword ptr [ebp + 8] */
   8353     eax = MEM32(esi + 0x8); /* 0x3C00348E: mov eax, dword ptr [esi + 8] */
   8354     PUSH32(esp, edx); /* 0x3C003491: push edx */
   8355     PUSH32(esp, eax); /* 0x3C003492: push eax */
   8356     ecx = esi; /* 0x3C003493: mov ecx, esi */
   8357     RECOMP_ICALL(0x3C001DF0u); /* 0x3C003495: call 0x3c001df0 */ /* not lifted */
   8358     RECOMP_FLAGS_IN();
   8359     ecx = MEM32(ebp + 0x18); /* 0x3C00349A: mov ecx, dword ptr [ebp + 0x18] */
   8360     eax = MEM32(esi + 0x8); /* 0x3C00349D: mov eax, dword ptr [esi + 8] */
   8361     esi = MEM32(esi + 0x4); /* 0x3C0034A0: mov esi, dword ptr [esi + 4] */
   8362     PUSH32(esp, ecx); /* 0x3C0034A3: push ecx */
   8363     PUSH32(esp, eax); /* 0x3C0034A4: push eax */
   8364     PUSH32(esp, esi); /* 0x3C0034A5: push esi */
   8365     RECOMP_ICALL(0x3C005EE0u); /* 0x3C0034A6: call 0x3c005ee0 */ /* not lifted */
   8366     RECOMP_FLAGS_IN();
   8367     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8368     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8369     esp = esp + 0xCu; /* 0x3C0034AB: add esp, 0xc */
   8370     _flag_k = FK_ADD;
   8371     ecx = ebp + (-0x64); /* 0x3C0034AE: lea ecx, [ebp - 0x64] */
   8372     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C0034B1: mov byte ptr [ebp - 4], 0 */
   8373     RECOMP_ICALL(0x3C003550u); /* 0x3C0034B5: call 0x3c003550 */ /* not lifted */
   8374     RECOMP_FLAGS_IN();
   8375     ecx = ebp + (-0x80); /* 0x3C0034BA: lea ecx, [ebp - 0x80] */
   8376     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0034BD: mov dword ptr [ebp - 4], 0xffffffff */
   8377     RECOMP_ICALL(0x3C003550u); /* 0x3C0034C4: call 0x3c003550 */ /* not lifted */
   8378     RECOMP_FLAGS_IN();
   8379     eax = edi; /* 0x3C0034C9: mov eax, edi */
   8380     edi = POP32_VAL(esp); /* 0x3C0034CB: pop edi */
   8381     esi = POP32_VAL(esp); /* 0x3C0034CC: pop esi */
   8382     ebx = POP32_VAL(esp); /* 0x3C0034CD: pop ebx */
   8383     ecx = MEM32(ebp + (-0xC)); /* 0x3C0034CE: mov ecx, dword ptr [ebp - 0xc] */
   8384     MEM32(FS_BASE + (0)) = ecx; /* 0x3C0034D1: mov dword ptr fs:[0], ecx */
   8385     esp = ebp; /* 0x3C0034D8: mov esp, ebp */
   8386     ebp = POP32_VAL(esp); /* 0x3C0034DA: pop ebp */
   8387     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C0034DB: ret 0x14 */
   8388 L_3C0034DE:
   8389     ecx = ebp + (-0x64); /* 0x3C0034DE: lea ecx, [ebp - 0x64] */
   8390     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3C0034E1: mov byte ptr [ebp - 4], 0 */
   8391     RECOMP_ICALL(0x3C003550u); /* 0x3C0034E5: call 0x3c003550 */ /* not lifted */
   8392     RECOMP_FLAGS_IN();
   8393     ecx = ebp + (-0x80); /* 0x3C0034EA: lea ecx, [ebp - 0x80] */
   8394     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3C0034ED: mov dword ptr [ebp - 4], 0xffffffff */
   8395     RECOMP_ICALL(0x3C003550u); /* 0x3C0034F4: call 0x3c003550 */ /* not lifted */
   8396     RECOMP_FLAGS_IN();
   8397     edi = POP32_VAL(esp); /* 0x3C0034F9: pop edi */
   8398     esi = POP32_VAL(esp); /* 0x3C0034FA: pop esi */
   8399     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8400     eax = 0; /* 0x3C0034FB: xor eax, eax */
   8401     _cf = 0;
   8402     _flag_k = FK_TEST;
   8403     ebx = POP32_VAL(esp); /* 0x3C0034FD: pop ebx */
   8404     ecx = MEM32(ebp + (-0xC)); /* 0x3C0034FE: mov ecx, dword ptr [ebp - 0xc] */
   8405     MEM32(FS_BASE + (0)) = ecx; /* 0x3C003501: mov dword ptr fs:[0], ecx */
   8406     esp = ebp; /* 0x3C003508: mov esp, ebp */
   8407     ebp = POP32_VAL(esp); /* 0x3C00350A: pop ebp */
   8408     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C00350B: ret 0x14 */
   8409     RECOMP_REGS_OUT();
   8410 }
   8411 
   8412 void sub_3C003528(void) {
   8413     int _fpu_cmp = 0;
   8414     uint32_t _cf = 0;
   8415     int _df = 1;
   8416     uint32_t _flag_k = FK_NONE;
   8417     uint32_t _flag_a = 0, _flag_b = 0;
   8418     uint32_t _itail_tgt = 0;
   8419     RECOMP_REGS_LOCALS
   8420     RECOMP_ENTER(0x3C003528u);
   8421 
   8422 L_3C003528:
   8423     ecx = esi; /* 0x3C003528: mov ecx, esi */
   8424     RECOMP_ICALL(0x3C001DF0u); /* 0x3C00352A: call 0x3c001df0 */ /* not lifted */
   8425     RECOMP_FLAGS_IN();
   8426     ecx = MEM32(ebp + (-0xC)); /* 0x3C00352F: mov ecx, dword ptr [ebp - 0xc] */
   8427     edi = POP32_VAL(esp); /* 0x3C003532: pop edi */
   8428     esi = POP32_VAL(esp); /* 0x3C003533: pop esi */
   8429     eax = 1; /* 0x3C003534: mov eax, 1 */
   8430     ebx = POP32_VAL(esp); /* 0x3C003539: pop ebx */
   8431     MEM32(FS_BASE + (0)) = ecx; /* 0x3C00353A: mov dword ptr fs:[0], ecx */
   8432     esp = ebp; /* 0x3C003541: mov esp, ebp */
   8433     ebp = POP32_VAL(esp); /* 0x3C003543: pop ebp */
   8434     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3C003544: ret 0x14 */
   8435     RECOMP_REGS_OUT();
   8436 }
   8437 
   8438 void sub_3C003550(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(0x3C003550u);
   8447 
   8448 L_3C003550:
   8449     PUSH32(esp, ebp); /* 0x3C003550: push ebp */
   8450     ebp = esp; /* 0x3C003551: mov ebp, esp */
   8451     PUSH32(esp, ecx); /* 0x3C003553: push ecx */
   8452     PUSH32(esp, esi); /* 0x3C003554: push esi */
   8453     esi = ecx; /* 0x3C003555: mov esi, ecx */
   8454     MEM32(esi) = 0x3C0091D8u; /* 0x3C003557: mov dword ptr [esi], 0x3c0091d8 */
   8455     eax = MEM32(esi + 0x8); /* 0x3C00355D: mov eax, dword ptr [esi + 8] */
   8456     PUSH32(esp, eax); /* 0x3C003560: push eax */
   8457     MEM32(ebp + (-0x4)) = eax; /* 0x3C003561: mov dword ptr [ebp - 4], eax */
   8458     RECOMP_ICALL(0x3C0089DEu); /* 0x3C003564: call 0x3c0089de */ /* not lifted */
   8459     RECOMP_FLAGS_IN();
   8460     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8461     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8462     esp = esp + 4; /* 0x3C003569: add esp, 4 */
   8463     _flag_k = FK_ADD;
   8464     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8465     eax = 0; /* 0x3C00356C: xor eax, eax */
   8466     _cf = 0;
   8467     _flag_k = FK_TEST;
   8468     MEM32(esi + 0x8) = eax; /* 0x3C00356E: mov dword ptr [esi + 8], eax */
   8469     MEM32(esi + 0xC) = eax; /* 0x3C003571: mov dword ptr [esi + 0xc], eax */
   8470     MEM32(esi + 0x10) = eax; /* 0x3C003574: mov dword ptr [esi + 0x10], eax */
   8471     esi = POP32_VAL(esp); /* 0x3C003577: pop esi */
   8472     esp = ebp; /* 0x3C003578: mov esp, ebp */
   8473     ebp = POP32_VAL(esp); /* 0x3C00357A: pop ebp */
   8474     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3C00357B: ret  */
   8475     RECOMP_REGS_OUT();
   8476 }
   8477 
   8478 void sub_3C003580(void) {
   8479     int _fpu_cmp = 0;
   8480     uint32_t _cf = 0;
   8481     int _df = 1;
   8482     uint32_t _flag_k = FK_NONE;
   8483     uint32_t _flag_a = 0, _flag_b = 0;
   8484     uint32_t _itail_tgt = 0;
   8485     RECOMP_REGS_LOCALS
   8486     RECOMP_ENTER(0x3C003580u);
   8487 
   8488 L_3C003580:
   8489     PUSH32(esp, ebp); /* 0x3C003580: push ebp */
   8490     ebp = esp; /* 0x3C003581: mov ebp, esp */
   8491     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8493     esp = esp - 0xCu; /* 0x3C003583: sub esp, 0xc */
   8494     _flag_k = FK_CMP;
   8495     eax = MEM32(ebp + 0x8); /* 0x3C003586: mov eax, dword ptr [ebp + 8] */
   8496     PUSH32(esp, esi); /* 0x3C003589: push esi */
   8497     esi = ecx + 0x4; /* 0x3C00358A: lea esi, [ecx + 4] */
   8498     ecx = MEM32(esi + 0xC); /* 0x3C00358D: mov ecx, dword ptr [esi + 0xc] */
   8499     MEM32(ebp + 0x8) = eax; /* 0x3C003590: mov dword ptr [ebp + 8], eax */
   8500     eax = MEM32(esi + 0x8); /* 0x3C003593: mov eax, dword ptr [esi + 8] */
   8501     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   8502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8503     ecx = ecx - eax; /* 0x3C003596: sub ecx, eax */
   8504     _flag_k = FK_CMP;
   8505     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C003598: sar ecx, 2 */
   8506     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8507     ecx = (uint32_t)((int32_t)ecx >> 2u);
   8508     /* cmp ecx, 1 */ /* 0x3C00359B: cmp ecx, 1 */
   8509     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8511     _flag_k = FK_CMP;
   8512     PUSH32(esp, edi); /* 0x3C00359E: push edi */
   8513     edi = eax; /* 0x3C00359F: mov edi, eax */
   8514     if (CMP_AE(_flag_a, _flag_b)) goto L_3C003695; /* 0x3C0035A1: jae 0x3c003695 */
   8515 L_3C0035A7:
   8516     edx = MEM32(esi + 0x4); /* 0x3C0035A7: mov edx, dword ptr [esi + 4] */
   8517     /* test edx, edx */ /* 0x3C0035AA: test edx, edx */
   8518     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   8519     _cf = 0;
   8520     _flag_k = FK_TEST;
   8521     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0035BA; /* 0x3C0035AC: je 0x3c0035ba */
   8522 L_3C0035AE:
   8523     ecx = eax; /* 0x3C0035AE: mov ecx, eax */
   8524     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8525     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8526     ecx = ecx - edx; /* 0x3C0035B0: sub ecx, edx */
   8527     _flag_k = FK_CMP;
   8528     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C0035B2: sar ecx, 2 */
   8529     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8530     ecx = (uint32_t)((int32_t)ecx >> 2u);
   8531     /* cmp ecx, 1 */ /* 0x3C0035B5: cmp ecx, 1 */
   8532     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8534     _flag_k = FK_CMP;
   8535     if (CMP_A(_flag_a, _flag_b)) goto L_3C0035BF; /* 0x3C0035B8: ja 0x3c0035bf */
   8536 L_3C0035BA:
   8537     ecx = 1; /* 0x3C0035BA: mov ecx, 1 */
   8538 L_3C0035BF:
   8539     /* test edx, edx */ /* 0x3C0035BF: test edx, edx */
   8540     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   8541     _cf = 0;
   8542     _flag_k = FK_TEST;
   8543     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C0035C7; /* 0x3C0035C1: jne 0x3c0035c7 */
   8544 L_3C0035C3:
   8545     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8546     eax = 0; /* 0x3C0035C3: xor eax, eax */
   8547     _cf = 0;
   8548     _flag_k = FK_TEST;
   8549     goto L_3C0035CC; /* 0x3C0035C5: jmp 0x3c0035cc */
   8550 L_3C0035C7:
   8551     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   8552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8553     eax = eax - edx; /* 0x3C0035C7: sub eax, edx */
   8554     _flag_k = FK_CMP;
   8555     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3C0035C9: sar eax, 2 */
   8556     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8557     eax = (uint32_t)((int32_t)eax >> 2u);
   8558 L_3C0035CC:
   8559     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8560     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8561     eax = eax + ecx; /* 0x3C0035CC: add eax, ecx */
   8562     _flag_k = FK_ADD;
   8563     /* test eax, eax */ /* 0x3C0035CE: test eax, eax */
   8564     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8565     _cf = 0;
   8566     _flag_k = FK_TEST;
   8567     MEM32(ebp + (-0xC)) = eax; /* 0x3C0035D0: mov dword ptr [ebp - 0xc], eax */
   8568     if (TEST_NS(_flag_a, _flag_b)) goto L_3C0035D7; /* 0x3C0035D3: jge 0x3c0035d7 */
   8569 L_3C0035D5:
   8570     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8571     eax = 0; /* 0x3C0035D5: xor eax, eax */
   8572     _cf = 0;
   8573     _flag_k = FK_TEST;
   8574 L_3C0035D7:
   8575     edx = eax * 4; /* 0x3C0035D7: lea edx, [eax*4] */
   8576     PUSH32(esp, ebx); /* 0x3C0035DE: push ebx */
   8577     PUSH32(esp, edx); /* 0x3C0035DF: push edx */
   8578     RECOMP_ICALL(0x3C008B40u); /* 0x3C0035E0: call 0x3c008b40 */ /* not lifted */
   8579     RECOMP_FLAGS_IN();
   8580     MEM32(ebp + (-0x8)) = eax; /* 0x3C0035E5: mov dword ptr [ebp - 8], eax */
   8581     ebx = eax; /* 0x3C0035E8: mov ebx, eax */
   8582     eax = MEM32(esi + 0x4); /* 0x3C0035EA: mov eax, dword ptr [esi + 4] */
   8583     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8584     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8585     esp = esp + 4; /* 0x3C0035ED: add esp, 4 */
   8586     _flag_k = FK_ADD;
   8587     /* cmp eax, edi */ /* 0x3C0035F0: cmp eax, edi */
   8588     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8590     _flag_k = FK_CMP;
   8591     MEM32(ebp + (-0x4)) = eax; /* 0x3C0035F2: mov dword ptr [ebp - 4], eax */
   8592     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003616; /* 0x3C0035F5: je 0x3c003616 */
   8593 L_3C0035F7:
   8594     goto L_3C0035FC; /* 0x3C0035F7: jmp 0x3c0035fc */
   8595 L_3C0035F9:
   8596     eax = MEM32(ebp + (-0x4)); /* 0x3C0035F9: mov eax, dword ptr [ebp - 4] */
   8597 L_3C0035FC:
   8598     PUSH32(esp, eax); /* 0x3C0035FC: push eax */
   8599     PUSH32(esp, ebx); /* 0x3C0035FD: push ebx */
   8600     RECOMP_ICALL(0x3C005EC0u); /* 0x3C0035FE: call 0x3c005ec0 */ /* not lifted */
   8601     RECOMP_FLAGS_IN();
   8602     eax = MEM32(ebp + (-0x4)); /* 0x3C003603: mov eax, dword ptr [ebp - 4] */
   8603     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   8604     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8605     eax = eax + 4; /* 0x3C003606: add eax, 4 */
   8606     _flag_k = FK_ADD;
   8607     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8608     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8609     esp = esp + 8; /* 0x3C003609: add esp, 8 */
   8610     _flag_k = FK_ADD;
   8611     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   8612     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8613     ebx = ebx + 4; /* 0x3C00360C: add ebx, 4 */
   8614     _flag_k = FK_ADD;
   8615     /* cmp eax, edi */ /* 0x3C00360F: cmp eax, edi */
   8616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8618     _flag_k = FK_CMP;
   8619     MEM32(ebp + (-0x4)) = eax; /* 0x3C003611: mov dword ptr [ebp - 4], eax */
   8620     RECOMP_BACKEDGE();
   8621     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0035F9; /* 0x3C003614: jne 0x3c0035f9 */
   8622 L_3C003616:
   8623     eax = ebp + 0x8; /* 0x3C003616: lea eax, [ebp + 8] */
   8624     PUSH32(esp, eax); /* 0x3C003619: push eax */
   8625     PUSH32(esp, 1); /* 0x3C00361A: push 1 */
   8626     PUSH32(esp, ebx); /* 0x3C00361C: push ebx */
   8627     ecx = esi; /* 0x3C00361D: mov ecx, esi */
   8628     RECOMP_ICALL(0x3C0023B0u); /* 0x3C00361F: call 0x3c0023b0 */ /* not lifted */
   8629     RECOMP_FLAGS_IN();
   8630     ecx = MEM32(esi + 0x8); /* 0x3C003624: mov ecx, dword ptr [esi + 8] */
   8631     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   8632     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8633     ebx = ebx + 4; /* 0x3C003627: add ebx, 4 */
   8634     _flag_k = FK_ADD;
   8635     PUSH32(esp, ebx); /* 0x3C00362A: push ebx */
   8636     PUSH32(esp, ecx); /* 0x3C00362B: push ecx */
   8637     PUSH32(esp, edi); /* 0x3C00362C: push edi */
   8638     ecx = esi; /* 0x3C00362D: mov ecx, esi */
   8639     RECOMP_ICALL(0x3C005D70u); /* 0x3C00362F: call 0x3c005d70 */ /* not lifted */
   8640     RECOMP_FLAGS_IN();
   8641     edx = MEM32(esi + 0x8); /* 0x3C003634: mov edx, dword ptr [esi + 8] */
   8642     eax = MEM32(esi + 0x4); /* 0x3C003637: mov eax, dword ptr [esi + 4] */
   8643     PUSH32(esp, edx); /* 0x3C00363A: push edx */
   8644     PUSH32(esp, eax); /* 0x3C00363B: push eax */
   8645     ecx = esi; /* 0x3C00363C: mov ecx, esi */
   8646     RECOMP_ICALL(0x3C006F40u); /* 0x3C00363E: call 0x3c006f40 */ /* not lifted */
   8647     RECOMP_FLAGS_IN();
   8648     ecx = MEM32(esi + 0x4); /* 0x3C003643: mov ecx, dword ptr [esi + 4] */
   8649     PUSH32(esp, ecx); /* 0x3C003646: push ecx */
   8650     RECOMP_ICALL(0x3C0089DEu); /* 0x3C003647: call 0x3c0089de */ /* not lifted */
   8651     RECOMP_FLAGS_IN();
   8652     eax = MEM32(ebp + (-0xC)); /* 0x3C00364C: mov eax, dword ptr [ebp - 0xc] */
   8653     edx = MEM32(ebp + (-0x8)); /* 0x3C00364F: mov edx, dword ptr [ebp - 8] */
   8654     ecx = edx + eax * 4; /* 0x3C003652: lea ecx, [edx + eax*4] */
   8655     eax = MEM32(esi + 0x4); /* 0x3C003655: mov eax, dword ptr [esi + 4] */
   8656     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8658     esp = esp + 4; /* 0x3C003658: add esp, 4 */
   8659     _flag_k = FK_ADD;
   8660     /* test eax, eax */ /* 0x3C00365B: test eax, eax */
   8661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8662     _cf = 0;
   8663     _flag_k = FK_TEST;
   8664     MEM32(esi + 0xC) = ecx; /* 0x3C00365D: mov dword ptr [esi + 0xc], ecx */
   8665     ebx = POP32_VAL(esp); /* 0x3C003660: pop ebx */
   8666     if (TEST_NZ(_flag_a, _flag_b)) goto L_3C003679; /* 0x3C003661: jne 0x3c003679 */
   8667 L_3C003663:
   8668     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8669     ecx = 0; /* 0x3C003663: xor ecx, ecx */
   8670     _cf = 0;
   8671     _flag_k = FK_TEST;
   8672     eax = edx + ecx * 4 + 0x4; /* 0x3C003665: lea eax, [edx + ecx*4 + 4] */
   8673     MEM32(esi + 0x8) = eax; /* 0x3C003669: mov dword ptr [esi + 8], eax */
   8674     edi = POP32_VAL(esp); /* 0x3C00366C: pop edi */
   8675     MEM32(esi + 0x4) = edx; /* 0x3C00366D: mov dword ptr [esi + 4], edx */
   8676     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8677     eax = 0; /* 0x3C003670: xor eax, eax */
   8678     _cf = 0;
   8679     _flag_k = FK_TEST;
   8680     esi = POP32_VAL(esp); /* 0x3C003672: pop esi */
   8681     esp = ebp; /* 0x3C003673: mov esp, ebp */
   8682     ebp = POP32_VAL(esp); /* 0x3C003675: pop ebp */
   8683     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C003676: ret 4 */
   8684 L_3C003679:
   8685     ecx = MEM32(esi + 0x8); /* 0x3C003679: mov ecx, dword ptr [esi + 8] */
   8686     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   8687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8688     ecx = ecx - eax; /* 0x3C00367C: sub ecx, eax */
   8689     _flag_k = FK_CMP;
   8690     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C00367E: sar ecx, 2 */
   8691     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8692     ecx = (uint32_t)((int32_t)ecx >> 2u);
   8693     eax = edx + ecx * 4 + 0x4; /* 0x3C003681: lea eax, [edx + ecx*4 + 4] */
   8694     MEM32(esi + 0x8) = eax; /* 0x3C003685: mov dword ptr [esi + 8], eax */
   8695     edi = POP32_VAL(esp); /* 0x3C003688: pop edi */
   8696     MEM32(esi + 0x4) = edx; /* 0x3C003689: mov dword ptr [esi + 4], edx */
   8697     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8698     eax = 0; /* 0x3C00368C: xor eax, eax */
   8699     _cf = 0;
   8700     _flag_k = FK_TEST;
   8701     esi = POP32_VAL(esp); /* 0x3C00368E: pop esi */
   8702     esp = ebp; /* 0x3C00368F: mov esp, ebp */
   8703     ebp = POP32_VAL(esp); /* 0x3C003691: pop ebp */
   8704     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C003692: ret 4 */
   8705 L_3C003695:
   8706     ecx = eax; /* 0x3C003695: mov ecx, eax */
   8707     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   8708     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8709     ecx = ecx - edi; /* 0x3C003697: sub ecx, edi */
   8710     _flag_k = FK_CMP;
   8711     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3C003699: sar ecx, 2 */
   8712     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8713     ecx = (uint32_t)((int32_t)ecx >> 2u);
   8714     /* cmp ecx, 1 */ /* 0x3C00369C: cmp ecx, 1 */
   8715     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8717     _flag_k = FK_CMP;
   8718     if (CMP_AE(_flag_a, _flag_b)) goto L_3C0036ED; /* 0x3C00369F: jae 0x3c0036ed */
   8719 L_3C0036A1:
   8720     edx = edi + 0x4; /* 0x3C0036A1: lea edx, [edi + 4] */
   8721     PUSH32(esp, edx); /* 0x3C0036A4: push edx */
   8722     PUSH32(esp, eax); /* 0x3C0036A5: push eax */
   8723     PUSH32(esp, edi); /* 0x3C0036A6: push edi */
   8724     ecx = esi; /* 0x3C0036A7: mov ecx, esi */
   8725     RECOMP_ICALL(0x3C005D70u); /* 0x3C0036A9: call 0x3c005d70 */ /* not lifted */
   8726     RECOMP_FLAGS_IN();
   8727     eax = MEM32(esi + 0x8); /* 0x3C0036AE: mov eax, dword ptr [esi + 8] */
   8728     edx = eax; /* 0x3C0036B1: mov edx, eax */
   8729     ecx = ebp + 0x8; /* 0x3C0036B3: lea ecx, [ebp + 8] */
   8730     PUSH32(esp, ecx); /* 0x3C0036B6: push ecx */
   8731     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   8732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8733     edx = edx - edi; /* 0x3C0036B7: sub edx, edi */
   8734     _flag_k = FK_CMP;
   8735     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3C0036B9: sar edx, 2 */
   8736     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8737     edx = (uint32_t)((int32_t)edx >> 2u);
   8738     ecx = 1; /* 0x3C0036BC: mov ecx, 1 */
   8739     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8741     ecx = ecx - edx; /* 0x3C0036C1: sub ecx, edx */
   8742     _flag_k = FK_CMP;
   8743     PUSH32(esp, ecx); /* 0x3C0036C3: push ecx */
   8744     PUSH32(esp, eax); /* 0x3C0036C4: push eax */
   8745     ecx = esi; /* 0x3C0036C5: mov ecx, esi */
   8746     RECOMP_ICALL(0x3C0023B0u); /* 0x3C0036C7: call 0x3c0023b0 */ /* not lifted */
   8747     RECOMP_FLAGS_IN();
   8748     eax = MEM32(esi + 0x8); /* 0x3C0036CC: mov eax, dword ptr [esi + 8] */
   8749     /* cmp edi, eax */ /* 0x3C0036CF: cmp edi, eax */
   8750     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8752     _flag_k = FK_CMP;
   8753     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003728; /* 0x3C0036D1: je 0x3c003728 */
   8754 L_3C0036D3:
   8755     edx = MEM32(ebp + 0x8); /* 0x3C0036D3: mov edx, dword ptr [ebp + 8] */
   8756     MEM32(edi) = edx; /* 0x3C0036D6: mov dword ptr [edi], edx */
   8757     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   8758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8759     edi = edi + 4; /* 0x3C0036D8: add edi, 4 */
   8760     _flag_k = FK_ADD;
   8761     /* cmp edi, eax */ /* 0x3C0036DB: cmp edi, eax */
   8762     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8764     _flag_k = FK_CMP;
   8765     RECOMP_BACKEDGE();
   8766     if (CMP_NE(_flag_a, _flag_b)) goto L_3C0036D3; /* 0x3C0036DD: jne 0x3c0036d3 */
   8767 L_3C0036DF:
   8768     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4);
   8769     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8770     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3C0036DF: add dword ptr [esi + 8], 4 */
   8771     _flag_k = FK_ADD;
   8772     edi = POP32_VAL(esp); /* 0x3C0036E3: pop edi */
   8773     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8774     eax = 0; /* 0x3C0036E4: xor eax, eax */
   8775     _cf = 0;
   8776     _flag_k = FK_TEST;
   8777     esi = POP32_VAL(esp); /* 0x3C0036E6: pop esi */
   8778     esp = ebp; /* 0x3C0036E7: mov esp, ebp */
   8779     ebp = POP32_VAL(esp); /* 0x3C0036E9: pop ebp */
   8780     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C0036EA: ret 4 */
   8781 L_3C0036ED:
   8782     PUSH32(esp, eax); /* 0x3C0036ED: push eax */
   8783     PUSH32(esp, eax); /* 0x3C0036EE: push eax */
   8784     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu);
   8785     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8786     eax = eax + 0xFFFFFFFCu; /* 0x3C0036EF: add eax, -4 */
   8787     _flag_k = FK_ADD;
   8788     PUSH32(esp, eax); /* 0x3C0036F2: push eax */
   8789     ecx = esi; /* 0x3C0036F3: mov ecx, esi */
   8790     RECOMP_ICALL(0x3C005D70u); /* 0x3C0036F5: call 0x3c005d70 */ /* not lifted */
   8791     RECOMP_FLAGS_IN();
   8792     ecx = MEM32(esi + 0x8); /* 0x3C0036FA: mov ecx, dword ptr [esi + 8] */
   8793     eax = ecx + (-0x4); /* 0x3C0036FD: lea eax, [ecx - 4] */
   8794     /* cmp edi, eax */ /* 0x3C003700: cmp edi, eax */
   8795     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8796     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8797     _flag_k = FK_CMP;
   8798     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003713; /* 0x3C003702: je 0x3c003713 */
   8799 L_3C003704:
   8800     edx = MEM32(eax + (-0x4)); /* 0x3C003704: mov edx, dword ptr [eax - 4] */
   8801     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   8802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8803     eax = eax - 4; /* 0x3C003707: sub eax, 4 */
   8804     _flag_k = FK_CMP;
   8805     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   8806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8807     ecx = ecx - 4; /* 0x3C00370A: sub ecx, 4 */
   8808     _flag_k = FK_CMP;
   8809     /* cmp eax, edi */ /* 0x3C00370D: cmp eax, edi */
   8810     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8811     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8812     _flag_k = FK_CMP;
   8813     MEM32(ecx) = edx; /* 0x3C00370F: mov dword ptr [ecx], edx */
   8814     RECOMP_BACKEDGE();
   8815     if (CMP_NE(_flag_a, _flag_b)) goto L_3C003704; /* 0x3C003711: jne 0x3c003704 */
   8816 L_3C003713:
   8817     ecx = edi + 0x4; /* 0x3C003713: lea ecx, [edi + 4] */
   8818     /* cmp edi, ecx */ /* 0x3C003716: cmp edi, ecx */
   8819     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   8820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8821     _flag_k = FK_CMP;
   8822     eax = edi; /* 0x3C003718: mov eax, edi */
   8823     if (CMP_EQ(_flag_a, _flag_b)) goto L_3C003728; /* 0x3C00371A: je 0x3c003728 */
   8824 L_3C00371C:
   8825     edx = MEM32(ebp + 0x8); /* 0x3C00371C: mov edx, dword ptr [ebp + 8] */
   8826     MEM32(eax) = edx; /* 0x3C00371F: mov dword ptr [eax], edx */
   8827     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   8828     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8829     eax = eax + 4; /* 0x3C003721: add eax, 4 */
   8830     _flag_k = FK_ADD;
   8831     /* cmp eax, ecx */ /* 0x3C003724: cmp eax, ecx */
   8832     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8834     _flag_k = FK_CMP;
   8835     RECOMP_BACKEDGE();
   8836     if (CMP_NE(_flag_a, _flag_b)) goto L_3C00371C; /* 0x3C003726: jne 0x3c00371c */
   8837 L_3C003728:
   8838     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4);
   8839     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8840     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3C003728: add dword ptr [esi + 8], 4 */
   8841     _flag_k = FK_ADD;
   8842     edi = POP32_VAL(esp); /* 0x3C00372C: pop edi */
   8843     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8844     eax = 0; /* 0x3C00372D: xor eax, eax */
   8845     _cf = 0;
   8846     _flag_k = FK_TEST;
   8847     esi = POP32_VAL(esp); /* 0x3C00372F: pop esi */
   8848     esp = ebp; /* 0x3C003730: mov esp, ebp */
   8849     ebp = POP32_VAL(esp); /* 0x3C003732: pop ebp */
   8850     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3C003733: ret 4 */
   8851     RECOMP_REGS_OUT();
   8852 }
   8853 
   8854 void sub_3C003740(void) {
   8855     int _fpu_cmp = 0;
   8856     uint32_t _cf = 0;
   8857     int _df = 1;
   8858     uint32_t _flag_k = FK_NONE;
   8859     uint32_t _flag_a = 0, _flag_b = 0;
   8860     uint32_t _itail_tgt = 0;
   8861     RECOMP_REGS_LOCALS
   8862     RECOMP_ENTER(0x3C003740u);
   8863 
   8864 L_3C003740:
   8865     PUSH32(esp, ebp); /* 0x3C003740: push ebp */
   8866     ebp = esp; /* 0x3C003741: mov ebp, esp */
   8867     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8869     esp = esp - 0xCu; /* 0x3C003743: sub esp, 0xc */
   8870     _flag_k = FK_CMP;
   8871     eax = MEM32(ebp + 0x10); /* 0x3C003746: mov eax, dword ptr [ebp + 0x10] */
   8872     edx = MEM32(eax); /* 0x3C003749: mov edx, dword ptr [eax] */
   8873     MEM32(ebp + (-0xC)) = edx; /* 0x3C00374B: mov dword ptr [ebp - 0xc], edx */
   8874     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C00374E: fld dword ptr [ebp - 0xc] */
   8875     edx = MEM32(eax + 0x4); /* 0x3C003751: mov edx, dword ptr [eax + 4] */
   8876     eax = MEM32(eax + 0x8); /* 0x3C003754: mov eax, dword ptr [eax + 8] */
   8877     MEM32(ebp + (-0x4)) = eax; /* 0x3C003757: mov dword ptr [ebp - 4], eax */
   8878     eax = MEM32(ebp + 0xC); /* 0x3C00375A: mov eax, dword ptr [ebp + 0xc] */
   8879     _st[0] -= (double)*(float*)ADDR(eax); /* 0x3C00375D: fsub dword ptr [eax] */
   8880     MEM32(ebp + (-0x8)) = edx; /* 0x3C00375F: mov dword ptr [ebp - 8], edx */
   8881     edx = MEM32(ebp + 0x8); /* 0x3C003762: mov edx, dword ptr [ebp + 8] */
   8882     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3C003765: fstp dword ptr [ebp - 0xc] */
   8883     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C003768: fld dword ptr [ebp - 8] */
   8884     _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x3C00376B: fsub dword ptr [eax + 4] */
   8885     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3C00376E: fstp dword ptr [ebp - 8] */
   8886     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C003771: fld dword ptr [ebp - 4] */
   8887     _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x3C003774: fsub dword ptr [eax + 8] */
   8888     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3C003777: fstp dword ptr [ebp - 4] */
   8889     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C00377A: fld dword ptr [ebp - 0xc] */
   8890     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3C00377D: fmul dword ptr [ebp - 0xc] */
   8891     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C003780: fld dword ptr [ebp - 4] */
   8892     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3C003783: fmul dword ptr [ebp - 4] */
   8893     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C003786: faddp st(1) */
   8894     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C003788: fld dword ptr [ebp - 8] */
   8895     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3C00378B: fmul dword ptr [ebp - 8] */
   8896     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C00378E: faddp st(1) */
   8897     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C003790: fld dword ptr [ebp - 4] */
   8898     _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x3C003793: fmul dword ptr [edx + 8] */
   8899     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C003796: fld dword ptr [ebp - 0xc] */
   8900     _st[0] *= (double)*(float*)ADDR(edx); /* 0x3C003799: fmul dword ptr [edx] */
   8901     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C00379B: faddp st(1) */
   8902     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C00379D: fld dword ptr [ebp - 8] */
   8903     _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x3C0037A0: fmul dword ptr [edx + 4] */
   8904     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C0037A3: faddp st(1) */
   8905     _st[0] = _st[0] * (double)(int32_t)MEM32(ecx + 0x14); /* 0x3C0037A5: fimul dword ptr [ecx + 0x14] */
   8906     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3C0091C8)); /* 0x3C0037A8: fcom dword ptr [0x3c0091c8] */
   8907     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3C0037AE: fnstsw ax */
   8908     /* test HI8(eax), 1 */ /* 0x3C0037B0: test ah, 1 */
   8909     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8910     _cf = 0;
   8911     _flag_k = FK_NARROW(FK_TEST, 24);
   8912     if (TEST_Z(_flag_a, _flag_b)) goto L_3C0037BD; /* 0x3C0037B3: je 0x3c0037bd */
   8913 L_3C0037B5:
   8914     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C0037B5: fstp st(0) */
   8915     fp_push(*(float*)&MEM32(0x3C0091F0)); /* 0x3C0037B7: fld dword ptr [0x3c0091f0] */
   8916 L_3C0037BD:
   8917     fp_push(*(float*)&MEM32(edx)); /* 0x3C0037BD: fld dword ptr [edx] */
   8918     _st[0] = -_st[0]; /* 0x3C0037BF: fchs  */
   8919     fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x3C0037C1: fld dword ptr [edx + 4] */
   8920     fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x3C0037C4: fld dword ptr [edx + 8] */
   8921     _st[0] = -_st[0]; /* 0x3C0037C7: fchs  */
   8922     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C0037C9: fld dword ptr [ebp - 0xc] */
   8923     _st[0] *= _st[1]; /* 0x3C0037CC: fmul st(1) */
   8924     _st[0] *= _st[2]; /* 0x3C0037CE: fmul st(2) */
   8925     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C0037D0: fld dword ptr [ebp - 4] */
   8926     _st[0] *= _st[2]; /* 0x3C0037D3: fmul st(2) */
   8927     _st[0] *= _st[4]; /* 0x3C0037D5: fmul st(4) */
   8928     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C0037D7: faddp st(1) */
   8929     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C0037D9: fld dword ptr [ebp - 8] */
   8930     _st[0] *= _st[3]; /* 0x3C0037DC: fmul st(3) */
   8931     _st[0] *= _st[3]; /* 0x3C0037DE: fmul st(3) */
   8932     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C0037E0: faddp st(1) */
   8933     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3C0037E2: fld dword ptr [ebp - 8] */
   8934     _st[0] *= _st[4]; /* 0x3C0037E5: fmul st(4) */
   8935     _st[0] *= _st[4]; /* 0x3C0037E7: fmul st(4) */
   8936     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C0037E9: faddp st(1) */
   8937     fp_push(_st[1]); /* 0x3C0037EB: fld st(1) */
   8938     _st[0] *= _st[2]; /* 0x3C0037ED: fmul st(2) */
   8939     fp_push(_st[3]); /* 0x3C0037EF: fld st(3) */
   8940     _st[0] *= _st[4]; /* 0x3C0037F1: fmul st(4) */
   8941     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C0037F3: faddp st(1) */
   8942     fp_push(_st[4]); /* 0x3C0037F5: fld st(4) */
   8943     _st[0] *= _st[5]; /* 0x3C0037F7: fmul st(5) */
   8944     { double _v = fp_pop(); _st[0] += _v; } /* 0x3C0037F9: faddp st(1) */
   8945     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x3C0037FB: fdivp st(1) */
   8946     _st[0] -= *(double*)ADDR(0x3C0091E8); /* 0x3C0037FD: fsub qword ptr [0x3c0091e8] */
   8947     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3C003803: fstp st(3) */
   8948     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C003805: fstp st(0) */
   8949     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C003807: fstp st(0) */
   8950     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3C003809: fld dword ptr [ebp - 0xc] */
   8951     _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x3C00380C: fmul dword ptr [edx + 8] */
   8952     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3C00380F: fld dword ptr [ebp - 4] */
   8953     _st[0] *= (double)*(float*)ADDR(edx); /* 0x3C003812: fmul dword ptr [edx] */
   8954     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3C003814: fsubp st(1) */
   8955     _st[0] = fabs(_st[0]); /* 0x3C003816: fabs  */
   8956     _st[0] *= (double)*(float*)ADDR(0x3C0091E4); /* 0x3C003818: fmul dword ptr [0x3c0091e4] */
   8957     _st[0] += _st[2]; /* 0x3C00381E: fadd st(2) */
   8958     { double _v = fp_pop(); _st[2] += _v; } /* 0x3C003820: faddp st(3) */
   8959     fp_push(_st[0]); /* 0x3C003822: fld st(0) */
   8960     _st[0] *= _st[1]; /* 0x3C003824: fmul st(1) */
   8961     _st[0] += (double)*(float*)ADDR(0x3C0091E0); /* 0x3C003826: fadd dword ptr [0x3c0091e0] */
   8962     { double _v = fp_pop(); _st[2] *= _v; } /* 0x3C00382C: fmulp st(3) */
   8963     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C00382E: fstp st(0) */
   8964     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3C003830: fstp st(0) */
   8965     esp = ebp; /* 0x3C003832: mov esp, ebp */
   8966     ebp = POP32_VAL(esp); /* 0x3C003834: pop ebp */
   8967     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3C003835: ret 0xc */
   8968     RECOMP_REGS_OUT();
   8969 }