aorecomp

Anarchy Online classic in the browser

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


client/game/llr.dll/lifted-0035.c (152228B)


      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_3804C800(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(0x3804C800u);
     17 
     18 L_3804C800:
     19     ecx = ebp + (-0x58); /* 0x3804C800: lea ecx, [ebp - 0x58] */
     20 L_3804C803:
     21     { _itail_tgt = (uint32_t)(MEM32(0x3804E50C)); goto _ljump; }
     22     { RECOMP_REGS_OUT(); return; } /* end of function */
     23   _ljump:
     24     switch (_itail_tgt) {
     25       case 0x3804C800u: goto L_3804C800;
     26       case 0x3804C803u: goto L_3804C803;
     27       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     28     }
     29     RECOMP_REGS_OUT();
     30 }
     31 
     32 void sub_3804C809(void) {
     33     int _fpu_cmp = 0;
     34     uint32_t _cf = 0;
     35     int _df = 1;
     36     uint32_t _flag_k = FK_NONE;
     37     uint32_t _flag_a = 0, _flag_b = 0;
     38     uint32_t _itail_tgt = 0;
     39     RECOMP_REGS_LOCALS
     40     RECOMP_ENTER(0x3804C809u);
     41 
     42     goto L_3804C809;
     43 L_3804B67C:
     44     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
     45 L_3804C809:
     46     eax = 0x38053118u; /* 0x3804C809: mov eax, 0x38053118 */
     47 L_3804C80E:
     48     RECOMP_BACKEDGE();
     49     goto L_3804B67C; /* 0x3804C80E: jmp 0x3804b67c */
     50     { RECOMP_REGS_OUT(); return; } /* end of function */
     51   _ljump:
     52     switch (_itail_tgt) {
     53       case 0x3804B67Cu: goto L_3804B67C;
     54       case 0x3804C809u: goto L_3804C809;
     55       case 0x3804C80Eu: goto L_3804C80E;
     56       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     57     }
     58     RECOMP_REGS_OUT();
     59 }
     60 
     61 void sub_3804C820(void) {
     62     int _fpu_cmp = 0;
     63     uint32_t _cf = 0;
     64     int _df = 1;
     65     uint32_t _flag_k = FK_NONE;
     66     uint32_t _flag_a = 0, _flag_b = 0;
     67     uint32_t _itail_tgt = 0;
     68     RECOMP_REGS_LOCALS
     69     RECOMP_ENTER(0x3804C820u);
     70 
     71 L_3804C820:
     72     ecx = ebp + (-0x20); /* 0x3804C820: lea ecx, [ebp - 0x20] */
     73 L_3804C823:
     74     { _itail_tgt = (uint32_t)(MEM32(0x3804E074)); goto _ljump; }
     75     { RECOMP_REGS_OUT(); return; } /* end of function */
     76   _ljump:
     77     switch (_itail_tgt) {
     78       case 0x3804C820u: goto L_3804C820;
     79       case 0x3804C823u: goto L_3804C823;
     80       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     81     }
     82     RECOMP_REGS_OUT();
     83 }
     84 
     85 void sub_3804C829(void) {
     86     int _fpu_cmp = 0;
     87     uint32_t _cf = 0;
     88     int _df = 1;
     89     uint32_t _flag_k = FK_NONE;
     90     uint32_t _flag_a = 0, _flag_b = 0;
     91     uint32_t _itail_tgt = 0;
     92     RECOMP_REGS_LOCALS
     93     RECOMP_ENTER(0x3804C829u);
     94 
     95     goto L_3804C829;
     96 L_3804B67C:
     97     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
     98 L_3804C829:
     99     eax = 0x38053140u; /* 0x3804C829: mov eax, 0x38053140 */
    100 L_3804C82E:
    101     RECOMP_BACKEDGE();
    102     goto L_3804B67C; /* 0x3804C82E: jmp 0x3804b67c */
    103     { RECOMP_REGS_OUT(); return; } /* end of function */
    104   _ljump:
    105     switch (_itail_tgt) {
    106       case 0x3804B67Cu: goto L_3804B67C;
    107       case 0x3804C829u: goto L_3804C829;
    108       case 0x3804C82Eu: goto L_3804C82E;
    109       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    110     }
    111     RECOMP_REGS_OUT();
    112 }
    113 
    114 void sub_3804C840(void) {
    115     int _fpu_cmp = 0;
    116     uint32_t _cf = 0;
    117     int _df = 1;
    118     uint32_t _flag_k = FK_NONE;
    119     uint32_t _flag_a = 0, _flag_b = 0;
    120     uint32_t _itail_tgt = 0;
    121     RECOMP_REGS_LOCALS
    122     RECOMP_ENTER(0x3804C840u);
    123 
    124 L_3804C840:
    125     eax = MEM32(ebp + (-0x18)); /* 0x3804C840: mov eax, dword ptr [ebp - 0x18] */
    126     PUSH32(esp, eax); /* 0x3804C843: push eax */
    127     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C844: call 0x3804b4f6 */ /* not lifted */
    128     RECOMP_FLAGS_IN();
    129     ecx = POP32_VAL(esp); /* 0x3804C849: pop ecx */
    130     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C84A: ret  */
    131     RECOMP_REGS_OUT();
    132 }
    133 
    134 void sub_3804C84B(void) {
    135     int _fpu_cmp = 0;
    136     uint32_t _cf = 0;
    137     int _df = 1;
    138     uint32_t _flag_k = FK_NONE;
    139     uint32_t _flag_a = 0, _flag_b = 0;
    140     uint32_t _itail_tgt = 0;
    141     RECOMP_REGS_LOCALS
    142     RECOMP_ENTER(0x3804C84Bu);
    143 
    144     goto L_3804C84B;
    145 L_3804B67C:
    146     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
    147 L_3804C84B:
    148     eax = 0x38053168u; /* 0x3804C84B: mov eax, 0x38053168 */
    149 L_3804C850:
    150     RECOMP_BACKEDGE();
    151     goto L_3804B67C; /* 0x3804C850: jmp 0x3804b67c */
    152     { RECOMP_REGS_OUT(); return; } /* end of function */
    153   _ljump:
    154     switch (_itail_tgt) {
    155       case 0x3804B67Cu: goto L_3804B67C;
    156       case 0x3804C84Bu: goto L_3804C84B;
    157       case 0x3804C850u: goto L_3804C850;
    158       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    159     }
    160     RECOMP_REGS_OUT();
    161 }
    162 
    163 void sub_3804C860(void) {
    164     int _fpu_cmp = 0;
    165     uint32_t _cf = 0;
    166     int _df = 1;
    167     uint32_t _flag_k = FK_NONE;
    168     uint32_t _flag_a = 0, _flag_b = 0;
    169     uint32_t _itail_tgt = 0;
    170     RECOMP_REGS_LOCALS
    171     RECOMP_ENTER(0x3804C860u);
    172 
    173 L_3804C860:
    174     eax = MEM32(ebp + (-0x10)); /* 0x3804C860: mov eax, dword ptr [ebp - 0x10] */
    175     PUSH32(esp, eax); /* 0x3804C863: push eax */
    176     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C864: call 0x3804b4f6 */ /* not lifted */
    177     RECOMP_FLAGS_IN();
    178     ecx = POP32_VAL(esp); /* 0x3804C869: pop ecx */
    179     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C86A: ret  */
    180     RECOMP_REGS_OUT();
    181 }
    182 
    183 void sub_3804C86B(void) {
    184     int _fpu_cmp = 0;
    185     uint32_t _cf = 0;
    186     int _df = 1;
    187     uint32_t _flag_k = FK_NONE;
    188     uint32_t _flag_a = 0, _flag_b = 0;
    189     uint32_t _itail_tgt = 0;
    190     RECOMP_REGS_LOCALS
    191     RECOMP_ENTER(0x3804C86Bu);
    192 
    193     goto L_3804C86B;
    194 L_3804B67C:
    195     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
    196 L_3804C86B:
    197     eax = 0x38053190u; /* 0x3804C86B: mov eax, 0x38053190 */
    198 L_3804C870:
    199     RECOMP_BACKEDGE();
    200     goto L_3804B67C; /* 0x3804C870: jmp 0x3804b67c */
    201     { RECOMP_REGS_OUT(); return; } /* end of function */
    202   _ljump:
    203     switch (_itail_tgt) {
    204       case 0x3804B67Cu: goto L_3804B67C;
    205       case 0x3804C86Bu: goto L_3804C86B;
    206       case 0x3804C870u: goto L_3804C870;
    207       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    208     }
    209     RECOMP_REGS_OUT();
    210 }
    211 
    212 void sub_3804C880(void) {
    213     int _fpu_cmp = 0;
    214     uint32_t _cf = 0;
    215     int _df = 1;
    216     uint32_t _flag_k = FK_NONE;
    217     uint32_t _flag_a = 0, _flag_b = 0;
    218     uint32_t _itail_tgt = 0;
    219     RECOMP_REGS_LOCALS
    220     RECOMP_ENTER(0x3804C880u);
    221 
    222 L_3804C880:
    223     ecx = MEM32(ebp + (-0x10)); /* 0x3804C880: mov ecx, dword ptr [ebp - 0x10] */
    224 L_3804C883:
    225     { _itail_tgt = (uint32_t)(MEM32(0x3804E454)); goto _ljump; }
    226     { RECOMP_REGS_OUT(); return; } /* end of function */
    227   _ljump:
    228     switch (_itail_tgt) {
    229       case 0x3804C880u: goto L_3804C880;
    230       case 0x3804C883u: goto L_3804C883;
    231       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    232     }
    233     RECOMP_REGS_OUT();
    234 }
    235 
    236 void sub_3804C889(void) {
    237     int _fpu_cmp = 0;
    238     uint32_t _cf = 0;
    239     int _df = 1;
    240     uint32_t _flag_k = FK_NONE;
    241     uint32_t _flag_a = 0, _flag_b = 0;
    242     uint32_t _itail_tgt = 0;
    243     RECOMP_REGS_LOCALS
    244     RECOMP_ENTER(0x3804C889u);
    245 
    246     goto L_3804C889;
    247 L_3804B67C:
    248     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
    249 L_3804C889:
    250     eax = 0x380531B8u; /* 0x3804C889: mov eax, 0x380531b8 */
    251 L_3804C88E:
    252     RECOMP_BACKEDGE();
    253     goto L_3804B67C; /* 0x3804C88E: jmp 0x3804b67c */
    254     { RECOMP_REGS_OUT(); return; } /* end of function */
    255   _ljump:
    256     switch (_itail_tgt) {
    257       case 0x3804B67Cu: goto L_3804B67C;
    258       case 0x3804C889u: goto L_3804C889;
    259       case 0x3804C88Eu: goto L_3804C88E;
    260       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    261     }
    262     RECOMP_REGS_OUT();
    263 }
    264 
    265 void sub_3804C8A0(void) {
    266     int _fpu_cmp = 0;
    267     uint32_t _cf = 0;
    268     int _df = 1;
    269     uint32_t _flag_k = FK_NONE;
    270     uint32_t _flag_a = 0, _flag_b = 0;
    271     uint32_t _itail_tgt = 0;
    272     RECOMP_REGS_LOCALS
    273     RECOMP_ENTER(0x3804C8A0u);
    274 
    275 L_3804C8A0:
    276     ecx = MEM32(ebp + (-0x10)); /* 0x3804C8A0: mov ecx, dword ptr [ebp - 0x10] */
    277 L_3804C8A3:
    278     { _itail_tgt = (uint32_t)(MEM32(0x3804E454)); goto _ljump; }
    279     { RECOMP_REGS_OUT(); return; } /* end of function */
    280   _ljump:
    281     switch (_itail_tgt) {
    282       case 0x3804C8A0u: goto L_3804C8A0;
    283       case 0x3804C8A3u: goto L_3804C8A3;
    284       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    285     }
    286     RECOMP_REGS_OUT();
    287 }
    288 
    289 void sub_3804C8A9(void) {
    290     int _fpu_cmp = 0;
    291     uint32_t _cf = 0;
    292     int _df = 1;
    293     uint32_t _flag_k = FK_NONE;
    294     uint32_t _flag_a = 0, _flag_b = 0;
    295     uint32_t _itail_tgt = 0;
    296     RECOMP_REGS_LOCALS
    297     RECOMP_ENTER(0x3804C8A9u);
    298 
    299     goto L_3804C8A9;
    300 L_380438F0:
    301     PUSH32(esp, ebp); /* 0x380438F0: push ebp */
    302     ebp = esp; /* 0x380438F1: mov ebp, esp */
    303     PUSH32(esp, 0xFFFFFFFFu); /* 0x380438F3: push -1 */
    304     PUSH32(esp, 0x3804D279u); /* 0x380438F5: push 0x3804d279 */
    305     eax = MEM32(FS_BASE + (0)); /* 0x380438FA: mov eax, dword ptr fs:[0] */
    306     PUSH32(esp, eax); /* 0x38043900: push eax */
    307     MEM32(FS_BASE + (0)) = esp; /* 0x38043901: mov dword ptr fs:[0], esp */
    308     PUSH32(esp, ecx); /* 0x38043908: push ecx */
    309     PUSH32(esp, esi); /* 0x38043909: push esi */
    310     esi = ecx; /* 0x3804390A: mov esi, ecx */
    311     PUSH32(esp, edi); /* 0x3804390C: push edi */
    312     MEM32(ebp + (-0x10)) = esi; /* 0x3804390D: mov dword ptr [ebp - 0x10], esi */
    313     MEM32(esi) = 0x3804F994u; /* 0x38043910: mov dword ptr [esi], 0x3804f994 */
    314     eax = MEM32(esi + 0x4); /* 0x38043916: mov eax, dword ptr [esi + 4] */
    315     MEM32(ebp + (-0x4)) = 0; /* 0x38043919: mov dword ptr [ebp - 4], 0 */
    316     /* test eax, eax */ /* 0x38043920: test eax, eax */
    317     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    318     _cf = 0;
    319     _flag_k = FK_TEST;
    320     if (TEST_Z(_flag_a, _flag_b)) goto L_38043941; /* 0x38043922: je 0x38043941 */
    321 L_38043924:
    322     ecx = MEM32(eax + (-0x4)); /* 0x38043924: mov ecx, dword ptr [eax - 4] */
    323     edi = eax + (-0x4); /* 0x38043927: lea edi, [eax - 4] */
    324     PUSH32(esp, 0x380439A0u); /* 0x3804392A: push 0x380439a0 */
    325     PUSH32(esp, ecx); /* 0x3804392F: push ecx */
    326     PUSH32(esp, 0x44u); /* 0x38043930: push 0x44 */
    327     PUSH32(esp, eax); /* 0x38043932: push eax */
    328     RECOMP_ICALL(0x3804B582u); /* 0x38043933: call 0x3804b582 */ /* not lifted */
    329     RECOMP_FLAGS_IN();
    330     PUSH32(esp, edi); /* 0x38043938: push edi */
    331     RECOMP_ICALL(0x3804B4F6u); /* 0x38043939: call 0x3804b4f6 */ /* not lifted */
    332     RECOMP_FLAGS_IN();
    333     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    334     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    335     esp = esp + 4; /* 0x3804393E: add esp, 4 */
    336     _flag_k = FK_ADD;
    337 L_38043941:
    338     eax = MEM32(esi + 0x8); /* 0x38043941: mov eax, dword ptr [esi + 8] */
    339     /* test eax, eax */ /* 0x38043944: test eax, eax */
    340     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    341     _cf = 0;
    342     _flag_k = FK_TEST;
    343     if (TEST_Z(_flag_a, _flag_b)) goto L_3804397C; /* 0x38043946: je 0x3804397c */
    344 L_38043948:
    345     edx = MEM32(eax + (-0x4)); /* 0x38043948: mov edx, dword ptr [eax - 4] */
    346     edi = eax + (-0x4); /* 0x3804394B: lea edi, [eax - 4] */
    347     PUSH32(esp, 0x380439C0u); /* 0x3804394E: push 0x380439c0 */
    348     PUSH32(esp, edx); /* 0x38043953: push edx */
    349     PUSH32(esp, 0x28u); /* 0x38043954: push 0x28 */
    350     PUSH32(esp, eax); /* 0x38043956: push eax */
    351     RECOMP_ICALL(0x3804B582u); /* 0x38043957: call 0x3804b582 */ /* not lifted */
    352     RECOMP_FLAGS_IN();
    353     PUSH32(esp, edi); /* 0x3804395C: push edi */
    354     RECOMP_ICALL(0x3804B4F6u); /* 0x3804395D: call 0x3804b4f6 */ /* not lifted */
    355     RECOMP_FLAGS_IN();
    356     eax = MEM32(0x3804E7AC); /* 0x38043962: mov eax, dword ptr [0x3804e7ac] */
    357     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    358     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    359     esp = esp + 4; /* 0x38043967: add esp, 4 */
    360     _flag_k = FK_ADD;
    361     MEM32(esi) = eax; /* 0x3804396A: mov dword ptr [esi], eax */
    362     edi = POP32_VAL(esp); /* 0x3804396C: pop edi */
    363     esi = POP32_VAL(esp); /* 0x3804396D: pop esi */
    364     ecx = MEM32(ebp + (-0xC)); /* 0x3804396E: mov ecx, dword ptr [ebp - 0xc] */
    365     MEM32(FS_BASE + (0)) = ecx; /* 0x38043971: mov dword ptr fs:[0], ecx */
    366     esp = ebp; /* 0x38043978: mov esp, ebp */
    367     ebp = POP32_VAL(esp); /* 0x3804397A: pop ebp */
    368     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804397B: ret  */
    369 L_3804397C:
    370     edx = MEM32(0x3804E7AC); /* 0x3804397C: mov edx, dword ptr [0x3804e7ac] */
    371     ecx = MEM32(ebp + (-0xC)); /* 0x38043982: mov ecx, dword ptr [ebp - 0xc] */
    372     MEM32(esi) = edx; /* 0x38043985: mov dword ptr [esi], edx */
    373     edi = POP32_VAL(esp); /* 0x38043987: pop edi */
    374     esi = POP32_VAL(esp); /* 0x38043988: pop esi */
    375     MEM32(FS_BASE + (0)) = ecx; /* 0x38043989: mov dword ptr fs:[0], ecx */
    376     esp = ebp; /* 0x38043990: mov esp, ebp */
    377     ebp = POP32_VAL(esp); /* 0x38043992: pop ebp */
    378     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38043993: ret  */
    379 L_3804C8A9:
    380     /* cmp MEM32(ebp + (-0x10)), 0 */ /* 0x3804C8A9: cmp dword ptr [ebp - 0x10], 0 */
    381     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0);
    382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    383     _flag_k = FK_CMP;
    384     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804C8C1; /* 0x3804C8AD: je 0x3804c8c1 */
    385 L_3804C8B3:
    386     eax = MEM32(ebp + (-0x10)); /* 0x3804C8B3: mov eax, dword ptr [ebp - 0x10] */
    387     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
    388     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    389     eax = eax + 0x18u; /* 0x3804C8B6: add eax, 0x18 */
    390     _flag_k = FK_ADD;
    391     MEM32(ebp + (-0x14)) = eax; /* 0x3804C8B9: mov dword ptr [ebp - 0x14], eax */
    392     goto L_3804C8C8; /* 0x3804C8BC: jmp 0x3804c8c8 */
    393 L_3804C8C1:
    394     MEM32(ebp + (-0x14)) = 0; /* 0x3804C8C1: mov dword ptr [ebp - 0x14], 0 */
    395 L_3804C8C8:
    396     ecx = MEM32(ebp + (-0x14)); /* 0x3804C8C8: mov ecx, dword ptr [ebp - 0x14] */
    397     RECOMP_BACKEDGE();
    398     goto L_380438F0; /* 0x3804C8CB: jmp 0x380438f0 */
    399     { RECOMP_REGS_OUT(); return; } /* end of function */
    400     RECOMP_REGS_OUT();
    401 }
    402 
    403 void sub_3804C8C8(void) {
    404     int _fpu_cmp = 0;
    405     uint32_t _cf = 0;
    406     int _df = 1;
    407     uint32_t _flag_k = FK_NONE;
    408     uint32_t _flag_a = 0, _flag_b = 0;
    409     uint32_t _itail_tgt = 0;
    410     RECOMP_REGS_LOCALS
    411     RECOMP_ENTER(0x3804C8C8u);
    412 
    413     goto L_3804C8C8;
    414 L_380438F0:
    415     PUSH32(esp, ebp); /* 0x380438F0: push ebp */
    416     ebp = esp; /* 0x380438F1: mov ebp, esp */
    417     PUSH32(esp, 0xFFFFFFFFu); /* 0x380438F3: push -1 */
    418     PUSH32(esp, 0x3804D279u); /* 0x380438F5: push 0x3804d279 */
    419     eax = MEM32(FS_BASE + (0)); /* 0x380438FA: mov eax, dword ptr fs:[0] */
    420     PUSH32(esp, eax); /* 0x38043900: push eax */
    421     MEM32(FS_BASE + (0)) = esp; /* 0x38043901: mov dword ptr fs:[0], esp */
    422     PUSH32(esp, ecx); /* 0x38043908: push ecx */
    423     PUSH32(esp, esi); /* 0x38043909: push esi */
    424     esi = ecx; /* 0x3804390A: mov esi, ecx */
    425     PUSH32(esp, edi); /* 0x3804390C: push edi */
    426     MEM32(ebp + (-0x10)) = esi; /* 0x3804390D: mov dword ptr [ebp - 0x10], esi */
    427     MEM32(esi) = 0x3804F994u; /* 0x38043910: mov dword ptr [esi], 0x3804f994 */
    428     eax = MEM32(esi + 0x4); /* 0x38043916: mov eax, dword ptr [esi + 4] */
    429     MEM32(ebp + (-0x4)) = 0; /* 0x38043919: mov dword ptr [ebp - 4], 0 */
    430     /* test eax, eax */ /* 0x38043920: test eax, eax */
    431     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    432     _cf = 0;
    433     _flag_k = FK_TEST;
    434     if (TEST_Z(_flag_a, _flag_b)) goto L_38043941; /* 0x38043922: je 0x38043941 */
    435 L_38043924:
    436     ecx = MEM32(eax + (-0x4)); /* 0x38043924: mov ecx, dword ptr [eax - 4] */
    437     edi = eax + (-0x4); /* 0x38043927: lea edi, [eax - 4] */
    438     PUSH32(esp, 0x380439A0u); /* 0x3804392A: push 0x380439a0 */
    439     PUSH32(esp, ecx); /* 0x3804392F: push ecx */
    440     PUSH32(esp, 0x44u); /* 0x38043930: push 0x44 */
    441     PUSH32(esp, eax); /* 0x38043932: push eax */
    442     RECOMP_ICALL(0x3804B582u); /* 0x38043933: call 0x3804b582 */ /* not lifted */
    443     RECOMP_FLAGS_IN();
    444     PUSH32(esp, edi); /* 0x38043938: push edi */
    445     RECOMP_ICALL(0x3804B4F6u); /* 0x38043939: call 0x3804b4f6 */ /* not lifted */
    446     RECOMP_FLAGS_IN();
    447     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    448     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    449     esp = esp + 4; /* 0x3804393E: add esp, 4 */
    450     _flag_k = FK_ADD;
    451 L_38043941:
    452     eax = MEM32(esi + 0x8); /* 0x38043941: mov eax, dword ptr [esi + 8] */
    453     /* test eax, eax */ /* 0x38043944: test eax, eax */
    454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    455     _cf = 0;
    456     _flag_k = FK_TEST;
    457     if (TEST_Z(_flag_a, _flag_b)) goto L_3804397C; /* 0x38043946: je 0x3804397c */
    458 L_38043948:
    459     edx = MEM32(eax + (-0x4)); /* 0x38043948: mov edx, dword ptr [eax - 4] */
    460     edi = eax + (-0x4); /* 0x3804394B: lea edi, [eax - 4] */
    461     PUSH32(esp, 0x380439C0u); /* 0x3804394E: push 0x380439c0 */
    462     PUSH32(esp, edx); /* 0x38043953: push edx */
    463     PUSH32(esp, 0x28u); /* 0x38043954: push 0x28 */
    464     PUSH32(esp, eax); /* 0x38043956: push eax */
    465     RECOMP_ICALL(0x3804B582u); /* 0x38043957: call 0x3804b582 */ /* not lifted */
    466     RECOMP_FLAGS_IN();
    467     PUSH32(esp, edi); /* 0x3804395C: push edi */
    468     RECOMP_ICALL(0x3804B4F6u); /* 0x3804395D: call 0x3804b4f6 */ /* not lifted */
    469     RECOMP_FLAGS_IN();
    470     eax = MEM32(0x3804E7AC); /* 0x38043962: mov eax, dword ptr [0x3804e7ac] */
    471     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    472     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    473     esp = esp + 4; /* 0x38043967: add esp, 4 */
    474     _flag_k = FK_ADD;
    475     MEM32(esi) = eax; /* 0x3804396A: mov dword ptr [esi], eax */
    476     edi = POP32_VAL(esp); /* 0x3804396C: pop edi */
    477     esi = POP32_VAL(esp); /* 0x3804396D: pop esi */
    478     ecx = MEM32(ebp + (-0xC)); /* 0x3804396E: mov ecx, dword ptr [ebp - 0xc] */
    479     MEM32(FS_BASE + (0)) = ecx; /* 0x38043971: mov dword ptr fs:[0], ecx */
    480     esp = ebp; /* 0x38043978: mov esp, ebp */
    481     ebp = POP32_VAL(esp); /* 0x3804397A: pop ebp */
    482     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804397B: ret  */
    483 L_3804397C:
    484     edx = MEM32(0x3804E7AC); /* 0x3804397C: mov edx, dword ptr [0x3804e7ac] */
    485     ecx = MEM32(ebp + (-0xC)); /* 0x38043982: mov ecx, dword ptr [ebp - 0xc] */
    486     MEM32(esi) = edx; /* 0x38043985: mov dword ptr [esi], edx */
    487     edi = POP32_VAL(esp); /* 0x38043987: pop edi */
    488     esi = POP32_VAL(esp); /* 0x38043988: pop esi */
    489     MEM32(FS_BASE + (0)) = ecx; /* 0x38043989: mov dword ptr fs:[0], ecx */
    490     esp = ebp; /* 0x38043990: mov esp, ebp */
    491     ebp = POP32_VAL(esp); /* 0x38043992: pop ebp */
    492     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38043993: ret  */
    493 L_3804C8C8:
    494     ecx = MEM32(ebp + (-0x14)); /* 0x3804C8C8: mov ecx, dword ptr [ebp - 0x14] */
    495     RECOMP_BACKEDGE();
    496     goto L_380438F0; /* 0x3804C8CB: jmp 0x380438f0 */
    497     { RECOMP_REGS_OUT(); return; } /* end of function */
    498     RECOMP_REGS_OUT();
    499 }
    500 
    501 void sub_3804C8D0(void) {
    502     int _fpu_cmp = 0;
    503     uint32_t _cf = 0;
    504     int _df = 1;
    505     uint32_t _flag_k = FK_NONE;
    506     uint32_t _flag_a = 0, _flag_b = 0;
    507     uint32_t _itail_tgt = 0;
    508     RECOMP_REGS_LOCALS
    509     RECOMP_ENTER(0x3804C8D0u);
    510 
    511     goto L_3804C8D0;
    512 L_3804B67C:
    513     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
    514 L_3804C8D0:
    515     eax = 0x380531E0u; /* 0x3804C8D0: mov eax, 0x380531e0 */
    516 L_3804C8D5:
    517     RECOMP_BACKEDGE();
    518     goto L_3804B67C; /* 0x3804C8D5: jmp 0x3804b67c */
    519     { RECOMP_REGS_OUT(); return; } /* end of function */
    520   _ljump:
    521     switch (_itail_tgt) {
    522       case 0x3804B67Cu: goto L_3804B67C;
    523       case 0x3804C8D0u: goto L_3804C8D0;
    524       case 0x3804C8D5u: goto L_3804C8D5;
    525       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    526     }
    527     RECOMP_REGS_OUT();
    528 }
    529 
    530 void sub_3804C8E0(void) {
    531     int _fpu_cmp = 0;
    532     uint32_t _cf = 0;
    533     int _df = 1;
    534     uint32_t _flag_k = FK_NONE;
    535     uint32_t _flag_a = 0, _flag_b = 0;
    536     uint32_t _itail_tgt = 0;
    537     RECOMP_REGS_LOCALS
    538     RECOMP_ENTER(0x3804C8E0u);
    539 
    540 L_3804C8E0:
    541     ecx = ebp + (-0x78); /* 0x3804C8E0: lea ecx, [ebp - 0x78] */
    542 L_3804C8E3:
    543     { _itail_tgt = (uint32_t)(MEM32(0x3804E378)); goto _ljump; }
    544     { RECOMP_REGS_OUT(); return; } /* end of function */
    545   _ljump:
    546     switch (_itail_tgt) {
    547       case 0x3804C8E0u: goto L_3804C8E0;
    548       case 0x3804C8E3u: goto L_3804C8E3;
    549       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    550     }
    551     RECOMP_REGS_OUT();
    552 }
    553 
    554 void sub_3804C8E9(void) {
    555     int _fpu_cmp = 0;
    556     uint32_t _cf = 0;
    557     int _df = 1;
    558     uint32_t _flag_k = FK_NONE;
    559     uint32_t _flag_a = 0, _flag_b = 0;
    560     uint32_t _itail_tgt = 0;
    561     RECOMP_REGS_LOCALS
    562     RECOMP_ENTER(0x3804C8E9u);
    563 
    564 L_3804C8E9:
    565     eax = MEM32(ebp + (-0x10)); /* 0x3804C8E9: mov eax, dword ptr [ebp - 0x10] */
    566     PUSH32(esp, eax); /* 0x3804C8EC: push eax */
    567     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C8ED: call 0x3804b4f6 */ /* not lifted */
    568     RECOMP_FLAGS_IN();
    569     ecx = POP32_VAL(esp); /* 0x3804C8F2: pop ecx */
    570     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C8F3: ret  */
    571     RECOMP_REGS_OUT();
    572 }
    573 
    574 void sub_3804C8F4(void) {
    575     int _fpu_cmp = 0;
    576     uint32_t _cf = 0;
    577     int _df = 1;
    578     uint32_t _flag_k = FK_NONE;
    579     uint32_t _flag_a = 0, _flag_b = 0;
    580     uint32_t _itail_tgt = 0;
    581     RECOMP_REGS_LOCALS
    582     RECOMP_ENTER(0x3804C8F4u);
    583 
    584 L_3804C8F4:
    585     eax = MEM32(ebp + (-0x10)); /* 0x3804C8F4: mov eax, dword ptr [ebp - 0x10] */
    586     PUSH32(esp, eax); /* 0x3804C8F7: push eax */
    587     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C8F8: call 0x3804b4f6 */ /* not lifted */
    588     RECOMP_FLAGS_IN();
    589     ecx = POP32_VAL(esp); /* 0x3804C8FD: pop ecx */
    590     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C8FE: ret  */
    591     RECOMP_REGS_OUT();
    592 }
    593 
    594 void sub_3804C8FF(void) {
    595     int _fpu_cmp = 0;
    596     uint32_t _cf = 0;
    597     int _df = 1;
    598     uint32_t _flag_k = FK_NONE;
    599     uint32_t _flag_a = 0, _flag_b = 0;
    600     uint32_t _itail_tgt = 0;
    601     RECOMP_REGS_LOCALS
    602     RECOMP_ENTER(0x3804C8FFu);
    603 
    604 L_3804C8FF:
    605     ecx = ebp + (-0xBC); /* 0x3804C8FF: lea ecx, [ebp - 0xbc] */
    606 L_3804C905:
    607     { _itail_tgt = (uint32_t)(MEM32(0x3804E378)); goto _ljump; }
    608     { RECOMP_REGS_OUT(); return; } /* end of function */
    609   _ljump:
    610     switch (_itail_tgt) {
    611       case 0x3804C8FFu: goto L_3804C8FF;
    612       case 0x3804C905u: goto L_3804C905;
    613       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    614     }
    615     RECOMP_REGS_OUT();
    616 }
    617 
    618 void sub_3804C90B(void) {
    619     int _fpu_cmp = 0;
    620     uint32_t _cf = 0;
    621     int _df = 1;
    622     uint32_t _flag_k = FK_NONE;
    623     uint32_t _flag_a = 0, _flag_b = 0;
    624     uint32_t _itail_tgt = 0;
    625     RECOMP_REGS_LOCALS
    626     RECOMP_ENTER(0x3804C90Bu);
    627 
    628 L_3804C90B:
    629     eax = MEM32(ebp + 0x8); /* 0x3804C90B: mov eax, dword ptr [ebp + 8] */
    630     PUSH32(esp, eax); /* 0x3804C90E: push eax */
    631     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C90F: call 0x3804b4f6 */ /* not lifted */
    632     RECOMP_FLAGS_IN();
    633     ecx = POP32_VAL(esp); /* 0x3804C914: pop ecx */
    634     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C915: ret  */
    635     RECOMP_REGS_OUT();
    636 }
    637 
    638 void sub_3804C916(void) {
    639     int _fpu_cmp = 0;
    640     uint32_t _cf = 0;
    641     int _df = 1;
    642     uint32_t _flag_k = FK_NONE;
    643     uint32_t _flag_a = 0, _flag_b = 0;
    644     uint32_t _itail_tgt = 0;
    645     RECOMP_REGS_LOCALS
    646     RECOMP_ENTER(0x3804C916u);
    647 
    648 L_3804C916:
    649     eax = MEM32(ebp + 0x8); /* 0x3804C916: mov eax, dword ptr [ebp + 8] */
    650     PUSH32(esp, eax); /* 0x3804C919: push eax */
    651     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C91A: call 0x3804b4f6 */ /* not lifted */
    652     RECOMP_FLAGS_IN();
    653     ecx = POP32_VAL(esp); /* 0x3804C91F: pop ecx */
    654     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C920: ret  */
    655     RECOMP_REGS_OUT();
    656 }
    657 
    658 void sub_3804C921(void) {
    659     int _fpu_cmp = 0;
    660     uint32_t _cf = 0;
    661     int _df = 1;
    662     uint32_t _flag_k = FK_NONE;
    663     uint32_t _flag_a = 0, _flag_b = 0;
    664     uint32_t _itail_tgt = 0;
    665     RECOMP_REGS_LOCALS
    666     RECOMP_ENTER(0x3804C921u);
    667 
    668     goto L_3804C921;
    669 L_3802D4D0:
    670     PUSH32(esp, ebp); /* 0x3802D4D0: push ebp */
    671     ebp = esp; /* 0x3802D4D1: mov ebp, esp */
    672     PUSH32(esp, ecx); /* 0x3802D4D3: push ecx */
    673     PUSH32(esp, esi); /* 0x3802D4D4: push esi */
    674     esi = ecx; /* 0x3802D4D5: mov esi, ecx */
    675     eax = MEM32(esi + 0x4); /* 0x3802D4D7: mov eax, dword ptr [esi + 4] */
    676     PUSH32(esp, eax); /* 0x3802D4DA: push eax */
    677     MEM32(ebp + (-0x4)) = eax; /* 0x3802D4DB: mov dword ptr [ebp - 4], eax */
    678     RECOMP_ICALL(0x3804B4F6u); /* 0x3802D4DE: call 0x3804b4f6 */ /* not lifted */
    679     RECOMP_FLAGS_IN();
    680     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    681     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    682     esp = esp + 4; /* 0x3802D4E3: add esp, 4 */
    683     _flag_k = FK_ADD;
    684     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    685     eax = 0; /* 0x3802D4E6: xor eax, eax */
    686     _cf = 0;
    687     _flag_k = FK_TEST;
    688     MEM32(esi + 0x4) = eax; /* 0x3802D4E8: mov dword ptr [esi + 4], eax */
    689     MEM32(esi + 0x8) = eax; /* 0x3802D4EB: mov dword ptr [esi + 8], eax */
    690     MEM32(esi + 0xC) = eax; /* 0x3802D4EE: mov dword ptr [esi + 0xc], eax */
    691     esi = POP32_VAL(esp); /* 0x3802D4F1: pop esi */
    692     esp = ebp; /* 0x3802D4F2: mov esp, ebp */
    693     ebp = POP32_VAL(esp); /* 0x3802D4F4: pop ebp */
    694     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802D4F5: ret  */
    695 L_3804C921:
    696     ecx = MEM32(ebp + 0x8); /* 0x3804C921: mov ecx, dword ptr [ebp + 8] */
    697     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    698     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    699     ecx = ecx + 4; /* 0x3804C924: add ecx, 4 */
    700     _flag_k = FK_ADD;
    701     RECOMP_BACKEDGE();
    702     goto L_3802D4D0; /* 0x3804C927: jmp 0x3802d4d0 */
    703     { RECOMP_REGS_OUT(); return; } /* end of function */
    704     RECOMP_REGS_OUT();
    705 }
    706 
    707 void sub_3804C92C(void) {
    708     int _fpu_cmp = 0;
    709     uint32_t _cf = 0;
    710     int _df = 1;
    711     uint32_t _flag_k = FK_NONE;
    712     uint32_t _flag_a = 0, _flag_b = 0;
    713     uint32_t _itail_tgt = 0;
    714     RECOMP_REGS_LOCALS
    715     RECOMP_ENTER(0x3804C92Cu);
    716 
    717     goto L_3804C92C;
    718 L_3804B67C:
    719     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
    720 L_3804C92C:
    721     eax = 0x38053210u; /* 0x3804C92C: mov eax, 0x38053210 */
    722 L_3804C931:
    723     RECOMP_BACKEDGE();
    724     goto L_3804B67C; /* 0x3804C931: jmp 0x3804b67c */
    725     { RECOMP_REGS_OUT(); return; } /* end of function */
    726   _ljump:
    727     switch (_itail_tgt) {
    728       case 0x3804B67Cu: goto L_3804B67C;
    729       case 0x3804C92Cu: goto L_3804C92C;
    730       case 0x3804C931u: goto L_3804C931;
    731       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    732     }
    733     RECOMP_REGS_OUT();
    734 }
    735 
    736 void sub_3804C940(void) {
    737     int _fpu_cmp = 0;
    738     uint32_t _cf = 0;
    739     int _df = 1;
    740     uint32_t _flag_k = FK_NONE;
    741     uint32_t _flag_a = 0, _flag_b = 0;
    742     uint32_t _itail_tgt = 0;
    743     RECOMP_REGS_LOCALS
    744     RECOMP_ENTER(0x3804C940u);
    745 
    746     goto L_3804C940;
    747 L_3801B550:
    748     MEM32(ecx) = 0x3804F0B4u; /* 0x3801B550: mov dword ptr [ecx], 0x3804f0b4 */
    749 L_3801B556:
    750     { _itail_tgt = (uint32_t)(MEM32(0x3804E454)); goto _ljump; }
    751 L_3804C940:
    752     ecx = MEM32(ebp + (-0x20)); /* 0x3804C940: mov ecx, dword ptr [ebp - 0x20] */
    753 L_3804C943:
    754     RECOMP_BACKEDGE();
    755     goto L_3801B550; /* 0x3804C943: jmp 0x3801b550 */
    756     { RECOMP_REGS_OUT(); return; } /* end of function */
    757   _ljump:
    758     switch (_itail_tgt) {
    759       case 0x3801B550u: goto L_3801B550;
    760       case 0x3801B556u: goto L_3801B556;
    761       case 0x3804C940u: goto L_3804C940;
    762       case 0x3804C943u: goto L_3804C943;
    763       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    764     }
    765     RECOMP_REGS_OUT();
    766 }
    767 
    768 void sub_3804C948(void) {
    769     int _fpu_cmp = 0;
    770     uint32_t _cf = 0;
    771     int _df = 1;
    772     uint32_t _flag_k = FK_NONE;
    773     uint32_t _flag_a = 0, _flag_b = 0;
    774     uint32_t _itail_tgt = 0;
    775     RECOMP_REGS_LOCALS
    776     RECOMP_ENTER(0x3804C948u);
    777 
    778     goto L_3804C948;
    779 L_3801E660:
    780     PUSH32(esp, ebp); /* 0x3801E660: push ebp */
    781     ebp = esp; /* 0x3801E661: mov ebp, esp */
    782     PUSH32(esp, ecx); /* 0x3801E663: push ecx */
    783     PUSH32(esp, edi); /* 0x3801E664: push edi */
    784     edi = MEM32(ecx + 0x4); /* 0x3801E665: mov edi, dword ptr [ecx + 4] */
    785     /* test edi, edi */ /* 0x3801E668: test edi, edi */
    786     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    787     _cf = 0;
    788     _flag_k = FK_TEST;
    789     MEM32(ebp + (-0x4)) = ecx; /* 0x3801E66A: mov dword ptr [ebp - 4], ecx */
    790     MEM32(ecx) = 0x3804E7D4u; /* 0x3801E66D: mov dword ptr [ecx], 0x3804e7d4 */
    791     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E6BB; /* 0x3801E673: je 0x3801e6bb */
    792 L_3801E675:
    793     PUSH32(esp, ebx); /* 0x3801E675: push ebx */
    794     ebx = MEM32(edi + 0x8); /* 0x3801E676: mov ebx, dword ptr [edi + 8] */
    795     PUSH32(esp, esi); /* 0x3801E679: push esi */
    796     esi = MEM32(edi + 0x4); /* 0x3801E67A: mov esi, dword ptr [edi + 4] */
    797     /* cmp esi, ebx */ /* 0x3801E67D: cmp esi, ebx */
    798     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    799     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    800     _flag_k = FK_CMP;
    801     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E691; /* 0x3801E67F: je 0x3801e691 */
    802 L_3801E681:
    803     eax = MEM32(esi); /* 0x3801E681: mov eax, dword ptr [esi] */
    804     PUSH32(esp, 0); /* 0x3801E683: push 0 */
    805     ecx = esi; /* 0x3801E685: mov ecx, esi */
    806     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3801E687: call dword ptr [eax + 0xc] */
    807     RECOMP_FLAGS_IN();
    808     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
    809     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    810     esi = esi + 8; /* 0x3801E68A: add esi, 8 */
    811     _flag_k = FK_ADD;
    812     /* cmp esi, ebx */ /* 0x3801E68D: cmp esi, ebx */
    813     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    815     _flag_k = FK_CMP;
    816     RECOMP_BACKEDGE();
    817     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E681; /* 0x3801E68F: jne 0x3801e681 */
    818 L_3801E691:
    819     ecx = MEM32(edi + 0x4); /* 0x3801E691: mov ecx, dword ptr [edi + 4] */
    820     PUSH32(esp, ecx); /* 0x3801E694: push ecx */
    821     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E695: call 0x3804b4f6 */ /* not lifted */
    822     RECOMP_FLAGS_IN();
    823     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    824     esi = 0; /* 0x3801E69A: xor esi, esi */
    825     _cf = 0;
    826     _flag_k = FK_TEST;
    827     PUSH32(esp, edi); /* 0x3801E69C: push edi */
    828     MEM32(edi + 0x4) = esi; /* 0x3801E69D: mov dword ptr [edi + 4], esi */
    829     MEM32(edi + 0x8) = esi; /* 0x3801E6A0: mov dword ptr [edi + 8], esi */
    830     MEM32(edi + 0xC) = esi; /* 0x3801E6A3: mov dword ptr [edi + 0xc], esi */
    831     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E6A6: call 0x3804b4f6 */ /* not lifted */
    832     RECOMP_FLAGS_IN();
    833     edx = MEM32(ebp + (-0x4)); /* 0x3801E6AB: mov edx, dword ptr [ebp - 4] */
    834     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    835     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    836     esp = esp + 8; /* 0x3801E6AE: add esp, 8 */
    837     _flag_k = FK_ADD;
    838     MEM32(edx + 0x4) = esi; /* 0x3801E6B1: mov dword ptr [edx + 4], esi */
    839     esi = POP32_VAL(esp); /* 0x3801E6B4: pop esi */
    840     ebx = POP32_VAL(esp); /* 0x3801E6B5: pop ebx */
    841     edi = POP32_VAL(esp); /* 0x3801E6B6: pop edi */
    842     esp = ebp; /* 0x3801E6B7: mov esp, ebp */
    843     ebp = POP32_VAL(esp); /* 0x3801E6B9: pop ebp */
    844     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E6BA: ret  */
    845 L_3801E6BB:
    846     MEM32(ecx + 0x4) = 0; /* 0x3801E6BB: mov dword ptr [ecx + 4], 0 */
    847     edi = POP32_VAL(esp); /* 0x3801E6C2: pop edi */
    848     esp = ebp; /* 0x3801E6C3: mov esp, ebp */
    849     ebp = POP32_VAL(esp); /* 0x3801E6C5: pop ebp */
    850     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E6C6: ret  */
    851 L_3804C948:
    852     ecx = MEM32(ebp + (-0x20)); /* 0x3804C948: mov ecx, dword ptr [ebp - 0x20] */
    853     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Cu);
    854     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    855     ecx = ecx + 0x1Cu; /* 0x3804C94B: add ecx, 0x1c */
    856     _flag_k = FK_ADD;
    857     RECOMP_BACKEDGE();
    858     goto L_3801E660; /* 0x3804C94E: jmp 0x3801e660 */
    859     { RECOMP_REGS_OUT(); return; } /* end of function */
    860     RECOMP_REGS_OUT();
    861 }
    862 
    863 void sub_3804C953(void) {
    864     int _fpu_cmp = 0;
    865     uint32_t _cf = 0;
    866     int _df = 1;
    867     uint32_t _flag_k = FK_NONE;
    868     uint32_t _flag_a = 0, _flag_b = 0;
    869     uint32_t _itail_tgt = 0;
    870     RECOMP_REGS_LOCALS
    871     RECOMP_ENTER(0x3804C953u);
    872 
    873 L_3804C953:
    874     eax = MEM32(ebp + 0x8); /* 0x3804C953: mov eax, dword ptr [ebp + 8] */
    875     PUSH32(esp, eax); /* 0x3804C956: push eax */
    876     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C957: call 0x3804b4f6 */ /* not lifted */
    877     RECOMP_FLAGS_IN();
    878     ecx = POP32_VAL(esp); /* 0x3804C95C: pop ecx */
    879     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C95D: ret  */
    880     RECOMP_REGS_OUT();
    881 }
    882 
    883 void sub_3804C95E(void) {
    884     int _fpu_cmp = 0;
    885     uint32_t _cf = 0;
    886     int _df = 1;
    887     uint32_t _flag_k = FK_NONE;
    888     uint32_t _flag_a = 0, _flag_b = 0;
    889     uint32_t _itail_tgt = 0;
    890     RECOMP_REGS_LOCALS
    891     RECOMP_ENTER(0x3804C95Eu);
    892 
    893     goto L_3804C95E;
    894 L_3804B67C:
    895     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
    896 L_3804C95E:
    897     eax = 0x38053268u; /* 0x3804C95E: mov eax, 0x38053268 */
    898 L_3804C963:
    899     RECOMP_BACKEDGE();
    900     goto L_3804B67C; /* 0x3804C963: jmp 0x3804b67c */
    901     { RECOMP_REGS_OUT(); return; } /* end of function */
    902   _ljump:
    903     switch (_itail_tgt) {
    904       case 0x3804B67Cu: goto L_3804B67C;
    905       case 0x3804C95Eu: goto L_3804C95E;
    906       case 0x3804C963u: goto L_3804C963;
    907       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    908     }
    909     RECOMP_REGS_OUT();
    910 }
    911 
    912 void sub_3804C970(void) {
    913     int _fpu_cmp = 0;
    914     uint32_t _cf = 0;
    915     int _df = 1;
    916     uint32_t _flag_k = FK_NONE;
    917     uint32_t _flag_a = 0, _flag_b = 0;
    918     uint32_t _itail_tgt = 0;
    919     RECOMP_REGS_LOCALS
    920     RECOMP_ENTER(0x3804C970u);
    921 
    922     goto L_3804C970;
    923 L_3801B550:
    924     MEM32(ecx) = 0x3804F0B4u; /* 0x3801B550: mov dword ptr [ecx], 0x3804f0b4 */
    925 L_3801B556:
    926     { _itail_tgt = (uint32_t)(MEM32(0x3804E454)); goto _ljump; }
    927 L_3804C970:
    928     ecx = MEM32(ebp + (-0x18)); /* 0x3804C970: mov ecx, dword ptr [ebp - 0x18] */
    929 L_3804C973:
    930     RECOMP_BACKEDGE();
    931     goto L_3801B550; /* 0x3804C973: jmp 0x3801b550 */
    932     { RECOMP_REGS_OUT(); return; } /* end of function */
    933   _ljump:
    934     switch (_itail_tgt) {
    935       case 0x3801B550u: goto L_3801B550;
    936       case 0x3801B556u: goto L_3801B556;
    937       case 0x3804C970u: goto L_3804C970;
    938       case 0x3804C973u: goto L_3804C973;
    939       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    940     }
    941     RECOMP_REGS_OUT();
    942 }
    943 
    944 void sub_3804C978(void) {
    945     int _fpu_cmp = 0;
    946     uint32_t _cf = 0;
    947     int _df = 1;
    948     uint32_t _flag_k = FK_NONE;
    949     uint32_t _flag_a = 0, _flag_b = 0;
    950     uint32_t _itail_tgt = 0;
    951     RECOMP_REGS_LOCALS
    952     RECOMP_ENTER(0x3804C978u);
    953 
    954     goto L_3804C978;
    955 L_3801E660:
    956     PUSH32(esp, ebp); /* 0x3801E660: push ebp */
    957     ebp = esp; /* 0x3801E661: mov ebp, esp */
    958     PUSH32(esp, ecx); /* 0x3801E663: push ecx */
    959     PUSH32(esp, edi); /* 0x3801E664: push edi */
    960     edi = MEM32(ecx + 0x4); /* 0x3801E665: mov edi, dword ptr [ecx + 4] */
    961     /* test edi, edi */ /* 0x3801E668: test edi, edi */
    962     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    963     _cf = 0;
    964     _flag_k = FK_TEST;
    965     MEM32(ebp + (-0x4)) = ecx; /* 0x3801E66A: mov dword ptr [ebp - 4], ecx */
    966     MEM32(ecx) = 0x3804E7D4u; /* 0x3801E66D: mov dword ptr [ecx], 0x3804e7d4 */
    967     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E6BB; /* 0x3801E673: je 0x3801e6bb */
    968 L_3801E675:
    969     PUSH32(esp, ebx); /* 0x3801E675: push ebx */
    970     ebx = MEM32(edi + 0x8); /* 0x3801E676: mov ebx, dword ptr [edi + 8] */
    971     PUSH32(esp, esi); /* 0x3801E679: push esi */
    972     esi = MEM32(edi + 0x4); /* 0x3801E67A: mov esi, dword ptr [edi + 4] */
    973     /* cmp esi, ebx */ /* 0x3801E67D: cmp esi, ebx */
    974     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    976     _flag_k = FK_CMP;
    977     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E691; /* 0x3801E67F: je 0x3801e691 */
    978 L_3801E681:
    979     eax = MEM32(esi); /* 0x3801E681: mov eax, dword ptr [esi] */
    980     PUSH32(esp, 0); /* 0x3801E683: push 0 */
    981     ecx = esi; /* 0x3801E685: mov ecx, esi */
    982     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3801E687: call dword ptr [eax + 0xc] */
    983     RECOMP_FLAGS_IN();
    984     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
    985     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    986     esi = esi + 8; /* 0x3801E68A: add esi, 8 */
    987     _flag_k = FK_ADD;
    988     /* cmp esi, ebx */ /* 0x3801E68D: cmp esi, ebx */
    989     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    991     _flag_k = FK_CMP;
    992     RECOMP_BACKEDGE();
    993     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E681; /* 0x3801E68F: jne 0x3801e681 */
    994 L_3801E691:
    995     ecx = MEM32(edi + 0x4); /* 0x3801E691: mov ecx, dword ptr [edi + 4] */
    996     PUSH32(esp, ecx); /* 0x3801E694: push ecx */
    997     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E695: call 0x3804b4f6 */ /* not lifted */
    998     RECOMP_FLAGS_IN();
    999     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1000     esi = 0; /* 0x3801E69A: xor esi, esi */
   1001     _cf = 0;
   1002     _flag_k = FK_TEST;
   1003     PUSH32(esp, edi); /* 0x3801E69C: push edi */
   1004     MEM32(edi + 0x4) = esi; /* 0x3801E69D: mov dword ptr [edi + 4], esi */
   1005     MEM32(edi + 0x8) = esi; /* 0x3801E6A0: mov dword ptr [edi + 8], esi */
   1006     MEM32(edi + 0xC) = esi; /* 0x3801E6A3: mov dword ptr [edi + 0xc], esi */
   1007     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E6A6: call 0x3804b4f6 */ /* not lifted */
   1008     RECOMP_FLAGS_IN();
   1009     edx = MEM32(ebp + (-0x4)); /* 0x3801E6AB: mov edx, dword ptr [ebp - 4] */
   1010     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1011     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1012     esp = esp + 8; /* 0x3801E6AE: add esp, 8 */
   1013     _flag_k = FK_ADD;
   1014     MEM32(edx + 0x4) = esi; /* 0x3801E6B1: mov dword ptr [edx + 4], esi */
   1015     esi = POP32_VAL(esp); /* 0x3801E6B4: pop esi */
   1016     ebx = POP32_VAL(esp); /* 0x3801E6B5: pop ebx */
   1017     edi = POP32_VAL(esp); /* 0x3801E6B6: pop edi */
   1018     esp = ebp; /* 0x3801E6B7: mov esp, ebp */
   1019     ebp = POP32_VAL(esp); /* 0x3801E6B9: pop ebp */
   1020     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E6BA: ret  */
   1021 L_3801E6BB:
   1022     MEM32(ecx + 0x4) = 0; /* 0x3801E6BB: mov dword ptr [ecx + 4], 0 */
   1023     edi = POP32_VAL(esp); /* 0x3801E6C2: pop edi */
   1024     esp = ebp; /* 0x3801E6C3: mov esp, ebp */
   1025     ebp = POP32_VAL(esp); /* 0x3801E6C5: pop ebp */
   1026     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E6C6: ret  */
   1027 L_3804C978:
   1028     ecx = MEM32(ebp + (-0x18)); /* 0x3804C978: mov ecx, dword ptr [ebp - 0x18] */
   1029     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Cu);
   1030     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1031     ecx = ecx + 0x1Cu; /* 0x3804C97B: add ecx, 0x1c */
   1032     _flag_k = FK_ADD;
   1033     RECOMP_BACKEDGE();
   1034     goto L_3801E660; /* 0x3804C97E: jmp 0x3801e660 */
   1035     { RECOMP_REGS_OUT(); return; } /* end of function */
   1036     RECOMP_REGS_OUT();
   1037 }
   1038 
   1039 void sub_3804C983(void) {
   1040     int _fpu_cmp = 0;
   1041     uint32_t _cf = 0;
   1042     int _df = 1;
   1043     uint32_t _flag_k = FK_NONE;
   1044     uint32_t _flag_a = 0, _flag_b = 0;
   1045     uint32_t _itail_tgt = 0;
   1046     RECOMP_REGS_LOCALS
   1047     RECOMP_ENTER(0x3804C983u);
   1048 
   1049     goto L_3804C983;
   1050 L_3804B67C:
   1051     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   1052 L_3804C983:
   1053     eax = 0x380532A0u; /* 0x3804C983: mov eax, 0x380532a0 */
   1054 L_3804C988:
   1055     RECOMP_BACKEDGE();
   1056     goto L_3804B67C; /* 0x3804C988: jmp 0x3804b67c */
   1057     { RECOMP_REGS_OUT(); return; } /* end of function */
   1058   _ljump:
   1059     switch (_itail_tgt) {
   1060       case 0x3804B67Cu: goto L_3804B67C;
   1061       case 0x3804C983u: goto L_3804C983;
   1062       case 0x3804C988u: goto L_3804C988;
   1063       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1064     }
   1065     RECOMP_REGS_OUT();
   1066 }
   1067 
   1068 void sub_3804C990(void) {
   1069     int _fpu_cmp = 0;
   1070     uint32_t _cf = 0;
   1071     int _df = 1;
   1072     uint32_t _flag_k = FK_NONE;
   1073     uint32_t _flag_a = 0, _flag_b = 0;
   1074     uint32_t _itail_tgt = 0;
   1075     RECOMP_REGS_LOCALS
   1076     RECOMP_ENTER(0x3804C990u);
   1077 
   1078     goto L_3804C990;
   1079 L_3802D4D0:
   1080     PUSH32(esp, ebp); /* 0x3802D4D0: push ebp */
   1081     ebp = esp; /* 0x3802D4D1: mov ebp, esp */
   1082     PUSH32(esp, ecx); /* 0x3802D4D3: push ecx */
   1083     PUSH32(esp, esi); /* 0x3802D4D4: push esi */
   1084     esi = ecx; /* 0x3802D4D5: mov esi, ecx */
   1085     eax = MEM32(esi + 0x4); /* 0x3802D4D7: mov eax, dword ptr [esi + 4] */
   1086     PUSH32(esp, eax); /* 0x3802D4DA: push eax */
   1087     MEM32(ebp + (-0x4)) = eax; /* 0x3802D4DB: mov dword ptr [ebp - 4], eax */
   1088     RECOMP_ICALL(0x3804B4F6u); /* 0x3802D4DE: call 0x3804b4f6 */ /* not lifted */
   1089     RECOMP_FLAGS_IN();
   1090     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1091     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1092     esp = esp + 4; /* 0x3802D4E3: add esp, 4 */
   1093     _flag_k = FK_ADD;
   1094     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1095     eax = 0; /* 0x3802D4E6: xor eax, eax */
   1096     _cf = 0;
   1097     _flag_k = FK_TEST;
   1098     MEM32(esi + 0x4) = eax; /* 0x3802D4E8: mov dword ptr [esi + 4], eax */
   1099     MEM32(esi + 0x8) = eax; /* 0x3802D4EB: mov dword ptr [esi + 8], eax */
   1100     MEM32(esi + 0xC) = eax; /* 0x3802D4EE: mov dword ptr [esi + 0xc], eax */
   1101     esi = POP32_VAL(esp); /* 0x3802D4F1: pop esi */
   1102     esp = ebp; /* 0x3802D4F2: mov esp, ebp */
   1103     ebp = POP32_VAL(esp); /* 0x3802D4F4: pop ebp */
   1104     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802D4F5: ret  */
   1105 L_3804C990:
   1106     ecx = ebp + (-0x74); /* 0x3804C990: lea ecx, [ebp - 0x74] */
   1107     RECOMP_BACKEDGE();
   1108     goto L_3802D4D0; /* 0x3804C993: jmp 0x3802d4d0 */
   1109     { RECOMP_REGS_OUT(); return; } /* end of function */
   1110     RECOMP_REGS_OUT();
   1111 }
   1112 
   1113 void sub_3804C998(void) {
   1114     int _fpu_cmp = 0;
   1115     uint32_t _cf = 0;
   1116     int _df = 1;
   1117     uint32_t _flag_k = FK_NONE;
   1118     uint32_t _flag_a = 0, _flag_b = 0;
   1119     uint32_t _itail_tgt = 0;
   1120     RECOMP_REGS_LOCALS
   1121     RECOMP_ENTER(0x3804C998u);
   1122 
   1123 L_3804C998:
   1124     eax = MEM32(ebp + (-0x10)); /* 0x3804C998: mov eax, dword ptr [ebp - 0x10] */
   1125     PUSH32(esp, eax); /* 0x3804C99B: push eax */
   1126     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C99C: call 0x3804b4f6 */ /* not lifted */
   1127     RECOMP_FLAGS_IN();
   1128     ecx = POP32_VAL(esp); /* 0x3804C9A1: pop ecx */
   1129     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C9A2: ret  */
   1130     RECOMP_REGS_OUT();
   1131 }
   1132 
   1133 void sub_3804C9A3(void) {
   1134     int _fpu_cmp = 0;
   1135     uint32_t _cf = 0;
   1136     int _df = 1;
   1137     uint32_t _flag_k = FK_NONE;
   1138     uint32_t _flag_a = 0, _flag_b = 0;
   1139     uint32_t _itail_tgt = 0;
   1140     RECOMP_REGS_LOCALS
   1141     RECOMP_ENTER(0x3804C9A3u);
   1142 
   1143 L_3804C9A3:
   1144     eax = MEM32(ebp + (-0x10)); /* 0x3804C9A3: mov eax, dword ptr [ebp - 0x10] */
   1145     PUSH32(esp, eax); /* 0x3804C9A6: push eax */
   1146     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C9A7: call 0x3804b4f6 */ /* not lifted */
   1147     RECOMP_FLAGS_IN();
   1148     ecx = POP32_VAL(esp); /* 0x3804C9AC: pop ecx */
   1149     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C9AD: ret  */
   1150     RECOMP_REGS_OUT();
   1151 }
   1152 
   1153 void sub_3804C9AE(void) {
   1154     int _fpu_cmp = 0;
   1155     uint32_t _cf = 0;
   1156     int _df = 1;
   1157     uint32_t _flag_k = FK_NONE;
   1158     uint32_t _flag_a = 0, _flag_b = 0;
   1159     uint32_t _itail_tgt = 0;
   1160     RECOMP_REGS_LOCALS
   1161     RECOMP_ENTER(0x3804C9AEu);
   1162 
   1163     goto L_3804C9AE;
   1164 L_3804B67C:
   1165     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   1166 L_3804C9AE:
   1167     eax = 0x380532D0u; /* 0x3804C9AE: mov eax, 0x380532d0 */
   1168 L_3804C9B3:
   1169     RECOMP_BACKEDGE();
   1170     goto L_3804B67C; /* 0x3804C9B3: jmp 0x3804b67c */
   1171     { RECOMP_REGS_OUT(); return; } /* end of function */
   1172   _ljump:
   1173     switch (_itail_tgt) {
   1174       case 0x3804B67Cu: goto L_3804B67C;
   1175       case 0x3804C9AEu: goto L_3804C9AE;
   1176       case 0x3804C9B3u: goto L_3804C9B3;
   1177       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1178     }
   1179     RECOMP_REGS_OUT();
   1180 }
   1181 
   1182 void sub_3804C9C0(void) {
   1183     int _fpu_cmp = 0;
   1184     uint32_t _cf = 0;
   1185     int _df = 1;
   1186     uint32_t _flag_k = FK_NONE;
   1187     uint32_t _flag_a = 0, _flag_b = 0;
   1188     uint32_t _itail_tgt = 0;
   1189     RECOMP_REGS_LOCALS
   1190     RECOMP_ENTER(0x3804C9C0u);
   1191 
   1192 L_3804C9C0:
   1193     eax = MEM32(ebp + (-0x2C)); /* 0x3804C9C0: mov eax, dword ptr [ebp - 0x2c] */
   1194     PUSH32(esp, eax); /* 0x3804C9C3: push eax */
   1195     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C9C4: call 0x3804b4f6 */ /* not lifted */
   1196     RECOMP_FLAGS_IN();
   1197     ecx = POP32_VAL(esp); /* 0x3804C9C9: pop ecx */
   1198     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C9CA: ret  */
   1199     RECOMP_REGS_OUT();
   1200 }
   1201 
   1202 void sub_3804C9CB(void) {
   1203     int _fpu_cmp = 0;
   1204     uint32_t _cf = 0;
   1205     int _df = 1;
   1206     uint32_t _flag_k = FK_NONE;
   1207     uint32_t _flag_a = 0, _flag_b = 0;
   1208     uint32_t _itail_tgt = 0;
   1209     RECOMP_REGS_LOCALS
   1210     RECOMP_ENTER(0x3804C9CBu);
   1211 
   1212 L_3804C9CB:
   1213     eax = MEM32(ebp + (-0x2C)); /* 0x3804C9CB: mov eax, dword ptr [ebp - 0x2c] */
   1214     PUSH32(esp, eax); /* 0x3804C9CE: push eax */
   1215     RECOMP_ICALL(0x3804B4F6u); /* 0x3804C9CF: call 0x3804b4f6 */ /* not lifted */
   1216     RECOMP_FLAGS_IN();
   1217     ecx = POP32_VAL(esp); /* 0x3804C9D4: pop ecx */
   1218     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804C9D5: ret  */
   1219     RECOMP_REGS_OUT();
   1220 }
   1221 
   1222 void sub_3804C9D6(void) {
   1223     int _fpu_cmp = 0;
   1224     uint32_t _cf = 0;
   1225     int _df = 1;
   1226     uint32_t _flag_k = FK_NONE;
   1227     uint32_t _flag_a = 0, _flag_b = 0;
   1228     uint32_t _itail_tgt = 0;
   1229     RECOMP_REGS_LOCALS
   1230     RECOMP_ENTER(0x3804C9D6u);
   1231 
   1232     goto L_3804C9D6;
   1233 L_3804B67C:
   1234     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   1235 L_3804C9D6:
   1236     eax = 0x38053308u; /* 0x3804C9D6: mov eax, 0x38053308 */
   1237 L_3804C9DB:
   1238     RECOMP_BACKEDGE();
   1239     goto L_3804B67C; /* 0x3804C9DB: jmp 0x3804b67c */
   1240     { RECOMP_REGS_OUT(); return; } /* end of function */
   1241   _ljump:
   1242     switch (_itail_tgt) {
   1243       case 0x3804B67Cu: goto L_3804B67C;
   1244       case 0x3804C9D6u: goto L_3804C9D6;
   1245       case 0x3804C9DBu: goto L_3804C9DB;
   1246       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1247     }
   1248     RECOMP_REGS_OUT();
   1249 }
   1250 
   1251 void sub_3804C9E0(void) {
   1252     int _fpu_cmp = 0;
   1253     uint32_t _cf = 0;
   1254     int _df = 1;
   1255     uint32_t _flag_k = FK_NONE;
   1256     uint32_t _flag_a = 0, _flag_b = 0;
   1257     uint32_t _itail_tgt = 0;
   1258     RECOMP_REGS_LOCALS
   1259     RECOMP_ENTER(0x3804C9E0u);
   1260 
   1261     goto L_3804C9E0;
   1262 L_3801B610:
   1263     PUSH32(esp, esi); /* 0x3801B610: push esi */
   1264     esi = ecx; /* 0x3801B611: mov esi, ecx */
   1265     ecx = MEM32(esi + 0x4); /* 0x3801B613: mov ecx, dword ptr [esi + 4] */
   1266     /* test ecx, ecx */ /* 0x3801B616: test ecx, ecx */
   1267     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1268     _cf = 0;
   1269     _flag_k = FK_TEST;
   1270     PUSH32(esp, edi); /* 0x3801B618: push edi */
   1271     MEM32(esi) = 0x3804F0E4u; /* 0x3801B619: mov dword ptr [esi], 0x3804f0e4 */
   1272     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B634; /* 0x3801B61F: je 0x3801b634 */
   1273 L_3801B621:
   1274     edi = MEM32(0x3804E458); /* 0x3801B621: mov edi, dword ptr [0x3804e458] */
   1275     RECOMP_ICALL(edi); /* 0x3801B627: call edi */
   1276     RECOMP_FLAGS_IN();
   1277     ecx = MEM32(esi + 0x4); /* 0x3801B629: mov ecx, dword ptr [esi + 4] */
   1278     /* cmp MEM32(ecx + 0xC), 1 */ /* 0x3801B62C: cmp dword ptr [ecx + 0xc], 1 */
   1279     _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1);
   1280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1281     _flag_k = FK_CMP;
   1282     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B634; /* 0x3801B630: jne 0x3801b634 */
   1283 L_3801B632:
   1284     RECOMP_ICALL(edi); /* 0x3801B632: call edi */
   1285     RECOMP_FLAGS_IN();
   1286 L_3801B634:
   1287     edi = POP32_VAL(esp); /* 0x3801B634: pop edi */
   1288     esi = POP32_VAL(esp); /* 0x3801B635: pop esi */
   1289     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B636: ret  */
   1290 L_3804C9E0:
   1291     ecx = ebp + (-0x14); /* 0x3804C9E0: lea ecx, [ebp - 0x14] */
   1292     RECOMP_BACKEDGE();
   1293     goto L_3801B610; /* 0x3804C9E3: jmp 0x3801b610 */
   1294     { RECOMP_REGS_OUT(); return; } /* end of function */
   1295     RECOMP_REGS_OUT();
   1296 }
   1297 
   1298 void sub_3804C9E8(void) {
   1299     int _fpu_cmp = 0;
   1300     uint32_t _cf = 0;
   1301     int _df = 1;
   1302     uint32_t _flag_k = FK_NONE;
   1303     uint32_t _flag_a = 0, _flag_b = 0;
   1304     uint32_t _itail_tgt = 0;
   1305     RECOMP_REGS_LOCALS
   1306     RECOMP_ENTER(0x3804C9E8u);
   1307 
   1308     goto L_3804C9E8;
   1309 L_3804B67C:
   1310     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   1311 L_3804C9E8:
   1312     eax = 0x38053338u; /* 0x3804C9E8: mov eax, 0x38053338 */
   1313 L_3804C9ED:
   1314     RECOMP_BACKEDGE();
   1315     goto L_3804B67C; /* 0x3804C9ED: jmp 0x3804b67c */
   1316     { RECOMP_REGS_OUT(); return; } /* end of function */
   1317   _ljump:
   1318     switch (_itail_tgt) {
   1319       case 0x3804B67Cu: goto L_3804B67C;
   1320       case 0x3804C9E8u: goto L_3804C9E8;
   1321       case 0x3804C9EDu: goto L_3804C9ED;
   1322       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1323     }
   1324     RECOMP_REGS_OUT();
   1325 }
   1326 
   1327 void sub_3804CA00(void) {
   1328     int _fpu_cmp = 0;
   1329     uint32_t _cf = 0;
   1330     int _df = 1;
   1331     uint32_t _flag_k = FK_NONE;
   1332     uint32_t _flag_a = 0, _flag_b = 0;
   1333     uint32_t _itail_tgt = 0;
   1334     RECOMP_REGS_LOCALS
   1335     RECOMP_ENTER(0x3804CA00u);
   1336 
   1337     goto L_3804CA00;
   1338 L_3801B610:
   1339     PUSH32(esp, esi); /* 0x3801B610: push esi */
   1340     esi = ecx; /* 0x3801B611: mov esi, ecx */
   1341     ecx = MEM32(esi + 0x4); /* 0x3801B613: mov ecx, dword ptr [esi + 4] */
   1342     /* test ecx, ecx */ /* 0x3801B616: test ecx, ecx */
   1343     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1344     _cf = 0;
   1345     _flag_k = FK_TEST;
   1346     PUSH32(esp, edi); /* 0x3801B618: push edi */
   1347     MEM32(esi) = 0x3804F0E4u; /* 0x3801B619: mov dword ptr [esi], 0x3804f0e4 */
   1348     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B634; /* 0x3801B61F: je 0x3801b634 */
   1349 L_3801B621:
   1350     edi = MEM32(0x3804E458); /* 0x3801B621: mov edi, dword ptr [0x3804e458] */
   1351     RECOMP_ICALL(edi); /* 0x3801B627: call edi */
   1352     RECOMP_FLAGS_IN();
   1353     ecx = MEM32(esi + 0x4); /* 0x3801B629: mov ecx, dword ptr [esi + 4] */
   1354     /* cmp MEM32(ecx + 0xC), 1 */ /* 0x3801B62C: cmp dword ptr [ecx + 0xc], 1 */
   1355     _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1);
   1356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1357     _flag_k = FK_CMP;
   1358     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B634; /* 0x3801B630: jne 0x3801b634 */
   1359 L_3801B632:
   1360     RECOMP_ICALL(edi); /* 0x3801B632: call edi */
   1361     RECOMP_FLAGS_IN();
   1362 L_3801B634:
   1363     edi = POP32_VAL(esp); /* 0x3801B634: pop edi */
   1364     esi = POP32_VAL(esp); /* 0x3801B635: pop esi */
   1365     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B636: ret  */
   1366 L_3804CA00:
   1367     ecx = ebp + (-0x20); /* 0x3804CA00: lea ecx, [ebp - 0x20] */
   1368     RECOMP_BACKEDGE();
   1369     goto L_3801B610; /* 0x3804CA03: jmp 0x3801b610 */
   1370     { RECOMP_REGS_OUT(); return; } /* end of function */
   1371     RECOMP_REGS_OUT();
   1372 }
   1373 
   1374 void sub_3804CA08(void) {
   1375     int _fpu_cmp = 0;
   1376     uint32_t _cf = 0;
   1377     int _df = 1;
   1378     uint32_t _flag_k = FK_NONE;
   1379     uint32_t _flag_a = 0, _flag_b = 0;
   1380     uint32_t _itail_tgt = 0;
   1381     RECOMP_REGS_LOCALS
   1382     RECOMP_ENTER(0x3804CA08u);
   1383 
   1384     goto L_3804CA08;
   1385 L_3804B67C:
   1386     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   1387 L_3804CA08:
   1388     eax = 0x38053360u; /* 0x3804CA08: mov eax, 0x38053360 */
   1389 L_3804CA0D:
   1390     RECOMP_BACKEDGE();
   1391     goto L_3804B67C; /* 0x3804CA0D: jmp 0x3804b67c */
   1392     { RECOMP_REGS_OUT(); return; } /* end of function */
   1393   _ljump:
   1394     switch (_itail_tgt) {
   1395       case 0x3804B67Cu: goto L_3804B67C;
   1396       case 0x3804CA08u: goto L_3804CA08;
   1397       case 0x3804CA0Du: goto L_3804CA0D;
   1398       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1399     }
   1400     RECOMP_REGS_OUT();
   1401 }
   1402 
   1403 void sub_3804CA20(void) {
   1404     int _fpu_cmp = 0;
   1405     uint32_t _cf = 0;
   1406     int _df = 1;
   1407     uint32_t _flag_k = FK_NONE;
   1408     uint32_t _flag_a = 0, _flag_b = 0;
   1409     uint32_t _itail_tgt = 0;
   1410     RECOMP_REGS_LOCALS
   1411     RECOMP_ENTER(0x3804CA20u);
   1412 
   1413     goto L_3804CA20;
   1414 L_3802B420:
   1415     PUSH32(esp, ebp); /* 0x3802B420: push ebp */
   1416     ebp = esp; /* 0x3802B421: mov ebp, esp */
   1417     PUSH32(esp, ecx); /* 0x3802B423: push ecx */
   1418     PUSH32(esp, esi); /* 0x3802B424: push esi */
   1419     esi = ecx; /* 0x3802B425: mov esi, ecx */
   1420     eax = MEM32(esi + 0x10); /* 0x3802B427: mov eax, dword ptr [esi + 0x10] */
   1421     PUSH32(esp, eax); /* 0x3802B42A: push eax */
   1422     MEM32(ebp + (-0x4)) = eax; /* 0x3802B42B: mov dword ptr [ebp - 4], eax */
   1423     RECOMP_ICALL(0x3804B4F6u); /* 0x3802B42E: call 0x3804b4f6 */ /* not lifted */
   1424     RECOMP_FLAGS_IN();
   1425     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1426     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1427     esp = esp + 4; /* 0x3802B433: add esp, 4 */
   1428     _flag_k = FK_ADD;
   1429     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1430     eax = 0; /* 0x3802B436: xor eax, eax */
   1431     _cf = 0;
   1432     _flag_k = FK_TEST;
   1433     MEM32(esi + 0x10) = eax; /* 0x3802B438: mov dword ptr [esi + 0x10], eax */
   1434     MEM32(esi + 0x14) = eax; /* 0x3802B43B: mov dword ptr [esi + 0x14], eax */
   1435     MEM32(esi + 0x18) = eax; /* 0x3802B43E: mov dword ptr [esi + 0x18], eax */
   1436     esi = POP32_VAL(esp); /* 0x3802B441: pop esi */
   1437     esp = ebp; /* 0x3802B442: mov esp, ebp */
   1438     ebp = POP32_VAL(esp); /* 0x3802B444: pop ebp */
   1439     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802B445: ret  */
   1440 L_3804CA20:
   1441     ecx = ebp + (-0x60); /* 0x3804CA20: lea ecx, [ebp - 0x60] */
   1442     RECOMP_BACKEDGE();
   1443     goto L_3802B420; /* 0x3804CA23: jmp 0x3802b420 */
   1444     { RECOMP_REGS_OUT(); return; } /* end of function */
   1445     RECOMP_REGS_OUT();
   1446 }
   1447 
   1448 void sub_3804CA28(void) {
   1449     int _fpu_cmp = 0;
   1450     uint32_t _cf = 0;
   1451     int _df = 1;
   1452     uint32_t _flag_k = FK_NONE;
   1453     uint32_t _flag_a = 0, _flag_b = 0;
   1454     uint32_t _itail_tgt = 0;
   1455     RECOMP_REGS_LOCALS
   1456     RECOMP_ENTER(0x3804CA28u);
   1457 
   1458     goto L_3804CA28;
   1459 L_3801B610:
   1460     PUSH32(esp, esi); /* 0x3801B610: push esi */
   1461     esi = ecx; /* 0x3801B611: mov esi, ecx */
   1462     ecx = MEM32(esi + 0x4); /* 0x3801B613: mov ecx, dword ptr [esi + 4] */
   1463     /* test ecx, ecx */ /* 0x3801B616: test ecx, ecx */
   1464     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1465     _cf = 0;
   1466     _flag_k = FK_TEST;
   1467     PUSH32(esp, edi); /* 0x3801B618: push edi */
   1468     MEM32(esi) = 0x3804F0E4u; /* 0x3801B619: mov dword ptr [esi], 0x3804f0e4 */
   1469     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B634; /* 0x3801B61F: je 0x3801b634 */
   1470 L_3801B621:
   1471     edi = MEM32(0x3804E458); /* 0x3801B621: mov edi, dword ptr [0x3804e458] */
   1472     RECOMP_ICALL(edi); /* 0x3801B627: call edi */
   1473     RECOMP_FLAGS_IN();
   1474     ecx = MEM32(esi + 0x4); /* 0x3801B629: mov ecx, dword ptr [esi + 4] */
   1475     /* cmp MEM32(ecx + 0xC), 1 */ /* 0x3801B62C: cmp dword ptr [ecx + 0xc], 1 */
   1476     _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1);
   1477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1478     _flag_k = FK_CMP;
   1479     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B634; /* 0x3801B630: jne 0x3801b634 */
   1480 L_3801B632:
   1481     RECOMP_ICALL(edi); /* 0x3801B632: call edi */
   1482     RECOMP_FLAGS_IN();
   1483 L_3801B634:
   1484     edi = POP32_VAL(esp); /* 0x3801B634: pop edi */
   1485     esi = POP32_VAL(esp); /* 0x3801B635: pop esi */
   1486     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B636: ret  */
   1487 L_3804CA28:
   1488     ecx = ebp + (-0x28); /* 0x3804CA28: lea ecx, [ebp - 0x28] */
   1489     RECOMP_BACKEDGE();
   1490     goto L_3801B610; /* 0x3804CA2B: jmp 0x3801b610 */
   1491     { RECOMP_REGS_OUT(); return; } /* end of function */
   1492     RECOMP_REGS_OUT();
   1493 }
   1494 
   1495 void sub_3804CA30(void) {
   1496     int _fpu_cmp = 0;
   1497     uint32_t _cf = 0;
   1498     int _df = 1;
   1499     uint32_t _flag_k = FK_NONE;
   1500     uint32_t _flag_a = 0, _flag_b = 0;
   1501     uint32_t _itail_tgt = 0;
   1502     RECOMP_REGS_LOCALS
   1503     RECOMP_ENTER(0x3804CA30u);
   1504 
   1505     goto L_3804CA30;
   1506 L_3801B610:
   1507     PUSH32(esp, esi); /* 0x3801B610: push esi */
   1508     esi = ecx; /* 0x3801B611: mov esi, ecx */
   1509     ecx = MEM32(esi + 0x4); /* 0x3801B613: mov ecx, dword ptr [esi + 4] */
   1510     /* test ecx, ecx */ /* 0x3801B616: test ecx, ecx */
   1511     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1512     _cf = 0;
   1513     _flag_k = FK_TEST;
   1514     PUSH32(esp, edi); /* 0x3801B618: push edi */
   1515     MEM32(esi) = 0x3804F0E4u; /* 0x3801B619: mov dword ptr [esi], 0x3804f0e4 */
   1516     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B634; /* 0x3801B61F: je 0x3801b634 */
   1517 L_3801B621:
   1518     edi = MEM32(0x3804E458); /* 0x3801B621: mov edi, dword ptr [0x3804e458] */
   1519     RECOMP_ICALL(edi); /* 0x3801B627: call edi */
   1520     RECOMP_FLAGS_IN();
   1521     ecx = MEM32(esi + 0x4); /* 0x3801B629: mov ecx, dword ptr [esi + 4] */
   1522     /* cmp MEM32(ecx + 0xC), 1 */ /* 0x3801B62C: cmp dword ptr [ecx + 0xc], 1 */
   1523     _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1);
   1524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1525     _flag_k = FK_CMP;
   1526     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B634; /* 0x3801B630: jne 0x3801b634 */
   1527 L_3801B632:
   1528     RECOMP_ICALL(edi); /* 0x3801B632: call edi */
   1529     RECOMP_FLAGS_IN();
   1530 L_3801B634:
   1531     edi = POP32_VAL(esp); /* 0x3801B634: pop edi */
   1532     esi = POP32_VAL(esp); /* 0x3801B635: pop esi */
   1533     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B636: ret  */
   1534 L_3804CA30:
   1535     ecx = ebp + (-0x30); /* 0x3804CA30: lea ecx, [ebp - 0x30] */
   1536     RECOMP_BACKEDGE();
   1537     goto L_3801B610; /* 0x3804CA33: jmp 0x3801b610 */
   1538     { RECOMP_REGS_OUT(); return; } /* end of function */
   1539     RECOMP_REGS_OUT();
   1540 }
   1541 
   1542 void sub_3804CA38(void) {
   1543     int _fpu_cmp = 0;
   1544     uint32_t _cf = 0;
   1545     int _df = 1;
   1546     uint32_t _flag_k = FK_NONE;
   1547     uint32_t _flag_a = 0, _flag_b = 0;
   1548     uint32_t _itail_tgt = 0;
   1549     RECOMP_REGS_LOCALS
   1550     RECOMP_ENTER(0x3804CA38u);
   1551 
   1552     goto L_3804CA38;
   1553 L_3804B67C:
   1554     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   1555 L_3804CA38:
   1556     eax = 0x38053388u; /* 0x3804CA38: mov eax, 0x38053388 */
   1557 L_3804CA3D:
   1558     RECOMP_BACKEDGE();
   1559     goto L_3804B67C; /* 0x3804CA3D: jmp 0x3804b67c */
   1560     { RECOMP_REGS_OUT(); return; } /* end of function */
   1561   _ljump:
   1562     switch (_itail_tgt) {
   1563       case 0x3804B67Cu: goto L_3804B67C;
   1564       case 0x3804CA38u: goto L_3804CA38;
   1565       case 0x3804CA3Du: goto L_3804CA3D;
   1566       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1567     }
   1568     RECOMP_REGS_OUT();
   1569 }
   1570 
   1571 void sub_3804CA50(void) {
   1572     int _fpu_cmp = 0;
   1573     uint32_t _cf = 0;
   1574     int _df = 1;
   1575     uint32_t _flag_k = FK_NONE;
   1576     uint32_t _flag_a = 0, _flag_b = 0;
   1577     uint32_t _itail_tgt = 0;
   1578     RECOMP_REGS_LOCALS
   1579     RECOMP_ENTER(0x3804CA50u);
   1580 
   1581     goto L_3804CA50;
   1582 L_3801C720:
   1583     PUSH32(esp, ebx); /* 0x3801C720: push ebx */
   1584     PUSH32(esp, esi); /* 0x3801C721: push esi */
   1585     PUSH32(esp, edi); /* 0x3801C722: push edi */
   1586     edi = ecx; /* 0x3801C723: mov edi, ecx */
   1587     ebx = MEM32(edi + 0x4); /* 0x3801C725: mov ebx, dword ptr [edi + 4] */
   1588     esi = MEM32(ebx); /* 0x3801C728: mov esi, dword ptr [ebx] */
   1589     /* cmp esi, ebx */ /* 0x3801C72A: cmp esi, ebx */
   1590     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1591     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1592     _flag_k = FK_CMP;
   1593     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C755; /* 0x3801C72C: je 0x3801c755 */
   1594 L_3801C72E:
   1595     eax = esi; /* 0x3801C72E: mov eax, esi */
   1596     ecx = MEM32(eax + 0x4); /* 0x3801C730: mov ecx, dword ptr [eax + 4] */
   1597     edx = MEM32(eax); /* 0x3801C733: mov edx, dword ptr [eax] */
   1598     esi = MEM32(esi); /* 0x3801C735: mov esi, dword ptr [esi] */
   1599     MEM32(ecx) = edx; /* 0x3801C737: mov dword ptr [ecx], edx */
   1600     ecx = MEM32(eax); /* 0x3801C739: mov ecx, dword ptr [eax] */
   1601     edx = MEM32(eax + 0x4); /* 0x3801C73B: mov edx, dword ptr [eax + 4] */
   1602     PUSH32(esp, eax); /* 0x3801C73E: push eax */
   1603     MEM32(ecx + 0x4) = edx; /* 0x3801C73F: mov dword ptr [ecx + 4], edx */
   1604     RECOMP_ICALL(0x3804B4F6u); /* 0x3801C742: call 0x3804b4f6 */ /* not lifted */
   1605     RECOMP_FLAGS_IN();
   1606     ecx = MEM32(edi + 0x8); /* 0x3801C747: mov ecx, dword ptr [edi + 8] */
   1607     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1608     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1609     esp = esp + 4; /* 0x3801C74A: add esp, 4 */
   1610     _flag_k = FK_ADD;
   1611     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1612     ecx = ecx - 1; /* 0x3801C74D: dec ecx */
   1613     _flag_k = FK_DEC;
   1614     /* cmp esi, ebx */ /* 0x3801C74E: cmp esi, ebx */
   1615     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1616     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1617     _flag_k = FK_CMP;
   1618     MEM32(edi + 0x8) = ecx; /* 0x3801C750: mov dword ptr [edi + 8], ecx */
   1619     RECOMP_BACKEDGE();
   1620     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C72E; /* 0x3801C753: jne 0x3801c72e */
   1621 L_3801C755:
   1622     eax = MEM32(edi + 0x4); /* 0x3801C755: mov eax, dword ptr [edi + 4] */
   1623     PUSH32(esp, eax); /* 0x3801C758: push eax */
   1624     RECOMP_ICALL(0x3804B4F6u); /* 0x3801C759: call 0x3804b4f6 */ /* not lifted */
   1625     RECOMP_FLAGS_IN();
   1626     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1627     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1628     esp = esp + 4; /* 0x3801C75E: add esp, 4 */
   1629     _flag_k = FK_ADD;
   1630     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1631     eax = 0; /* 0x3801C761: xor eax, eax */
   1632     _cf = 0;
   1633     _flag_k = FK_TEST;
   1634     MEM32(edi + 0x4) = eax; /* 0x3801C763: mov dword ptr [edi + 4], eax */
   1635     MEM32(edi + 0x8) = eax; /* 0x3801C766: mov dword ptr [edi + 8], eax */
   1636     edi = POP32_VAL(esp); /* 0x3801C769: pop edi */
   1637     esi = POP32_VAL(esp); /* 0x3801C76A: pop esi */
   1638     ebx = POP32_VAL(esp); /* 0x3801C76B: pop ebx */
   1639     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801C76C: ret  */
   1640 L_3804CA50:
   1641     ecx = ebp + (-0x48); /* 0x3804CA50: lea ecx, [ebp - 0x48] */
   1642     RECOMP_BACKEDGE();
   1643     goto L_3801C720; /* 0x3804CA53: jmp 0x3801c720 */
   1644     { RECOMP_REGS_OUT(); return; } /* end of function */
   1645     RECOMP_REGS_OUT();
   1646 }
   1647 
   1648 void sub_3804CA58(void) {
   1649     int _fpu_cmp = 0;
   1650     uint32_t _cf = 0;
   1651     int _df = 1;
   1652     uint32_t _flag_k = FK_NONE;
   1653     uint32_t _flag_a = 0, _flag_b = 0;
   1654     uint32_t _itail_tgt = 0;
   1655     RECOMP_REGS_LOCALS
   1656     RECOMP_ENTER(0x3804CA58u);
   1657 
   1658 L_3804CA58:
   1659     eax = MEM32(ebp + (-0x14)); /* 0x3804CA58: mov eax, dword ptr [ebp - 0x14] */
   1660     PUSH32(esp, eax); /* 0x3804CA5B: push eax */
   1661     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CA5C: call 0x3804b4f6 */ /* not lifted */
   1662     RECOMP_FLAGS_IN();
   1663     ecx = POP32_VAL(esp); /* 0x3804CA61: pop ecx */
   1664     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CA62: ret  */
   1665     RECOMP_REGS_OUT();
   1666 }
   1667 
   1668 void sub_3804CA63(void) {
   1669     int _fpu_cmp = 0;
   1670     uint32_t _cf = 0;
   1671     int _df = 1;
   1672     uint32_t _flag_k = FK_NONE;
   1673     uint32_t _flag_a = 0, _flag_b = 0;
   1674     uint32_t _itail_tgt = 0;
   1675     RECOMP_REGS_LOCALS
   1676     RECOMP_ENTER(0x3804CA63u);
   1677 
   1678     goto L_3804CA63;
   1679 L_3802D4D0:
   1680     PUSH32(esp, ebp); /* 0x3802D4D0: push ebp */
   1681     ebp = esp; /* 0x3802D4D1: mov ebp, esp */
   1682     PUSH32(esp, ecx); /* 0x3802D4D3: push ecx */
   1683     PUSH32(esp, esi); /* 0x3802D4D4: push esi */
   1684     esi = ecx; /* 0x3802D4D5: mov esi, ecx */
   1685     eax = MEM32(esi + 0x4); /* 0x3802D4D7: mov eax, dword ptr [esi + 4] */
   1686     PUSH32(esp, eax); /* 0x3802D4DA: push eax */
   1687     MEM32(ebp + (-0x4)) = eax; /* 0x3802D4DB: mov dword ptr [ebp - 4], eax */
   1688     RECOMP_ICALL(0x3804B4F6u); /* 0x3802D4DE: call 0x3804b4f6 */ /* not lifted */
   1689     RECOMP_FLAGS_IN();
   1690     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1691     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1692     esp = esp + 4; /* 0x3802D4E3: add esp, 4 */
   1693     _flag_k = FK_ADD;
   1694     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1695     eax = 0; /* 0x3802D4E6: xor eax, eax */
   1696     _cf = 0;
   1697     _flag_k = FK_TEST;
   1698     MEM32(esi + 0x4) = eax; /* 0x3802D4E8: mov dword ptr [esi + 4], eax */
   1699     MEM32(esi + 0x8) = eax; /* 0x3802D4EB: mov dword ptr [esi + 8], eax */
   1700     MEM32(esi + 0xC) = eax; /* 0x3802D4EE: mov dword ptr [esi + 0xc], eax */
   1701     esi = POP32_VAL(esp); /* 0x3802D4F1: pop esi */
   1702     esp = ebp; /* 0x3802D4F2: mov esp, ebp */
   1703     ebp = POP32_VAL(esp); /* 0x3802D4F4: pop ebp */
   1704     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802D4F5: ret  */
   1705 L_3804CA63:
   1706     ecx = ebp + (-0x6C); /* 0x3804CA63: lea ecx, [ebp - 0x6c] */
   1707     RECOMP_BACKEDGE();
   1708     goto L_3802D4D0; /* 0x3804CA66: jmp 0x3802d4d0 */
   1709     { RECOMP_REGS_OUT(); return; } /* end of function */
   1710     RECOMP_REGS_OUT();
   1711 }
   1712 
   1713 void sub_3804CA6B(void) {
   1714     int _fpu_cmp = 0;
   1715     uint32_t _cf = 0;
   1716     int _df = 1;
   1717     uint32_t _flag_k = FK_NONE;
   1718     uint32_t _flag_a = 0, _flag_b = 0;
   1719     uint32_t _itail_tgt = 0;
   1720     RECOMP_REGS_LOCALS
   1721     RECOMP_ENTER(0x3804CA6Bu);
   1722 
   1723     goto L_3804CA6B;
   1724 L_3802D4D0:
   1725     PUSH32(esp, ebp); /* 0x3802D4D0: push ebp */
   1726     ebp = esp; /* 0x3802D4D1: mov ebp, esp */
   1727     PUSH32(esp, ecx); /* 0x3802D4D3: push ecx */
   1728     PUSH32(esp, esi); /* 0x3802D4D4: push esi */
   1729     esi = ecx; /* 0x3802D4D5: mov esi, ecx */
   1730     eax = MEM32(esi + 0x4); /* 0x3802D4D7: mov eax, dword ptr [esi + 4] */
   1731     PUSH32(esp, eax); /* 0x3802D4DA: push eax */
   1732     MEM32(ebp + (-0x4)) = eax; /* 0x3802D4DB: mov dword ptr [ebp - 4], eax */
   1733     RECOMP_ICALL(0x3804B4F6u); /* 0x3802D4DE: call 0x3804b4f6 */ /* not lifted */
   1734     RECOMP_FLAGS_IN();
   1735     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1736     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1737     esp = esp + 4; /* 0x3802D4E3: add esp, 4 */
   1738     _flag_k = FK_ADD;
   1739     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1740     eax = 0; /* 0x3802D4E6: xor eax, eax */
   1741     _cf = 0;
   1742     _flag_k = FK_TEST;
   1743     MEM32(esi + 0x4) = eax; /* 0x3802D4E8: mov dword ptr [esi + 4], eax */
   1744     MEM32(esi + 0x8) = eax; /* 0x3802D4EB: mov dword ptr [esi + 8], eax */
   1745     MEM32(esi + 0xC) = eax; /* 0x3802D4EE: mov dword ptr [esi + 0xc], eax */
   1746     esi = POP32_VAL(esp); /* 0x3802D4F1: pop esi */
   1747     esp = ebp; /* 0x3802D4F2: mov esp, ebp */
   1748     ebp = POP32_VAL(esp); /* 0x3802D4F4: pop ebp */
   1749     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802D4F5: ret  */
   1750 L_3804CA6B:
   1751     ecx = ebp + (-0x5C); /* 0x3804CA6B: lea ecx, [ebp - 0x5c] */
   1752     RECOMP_BACKEDGE();
   1753     goto L_3802D4D0; /* 0x3804CA6E: jmp 0x3802d4d0 */
   1754     { RECOMP_REGS_OUT(); return; } /* end of function */
   1755     RECOMP_REGS_OUT();
   1756 }
   1757 
   1758 void sub_3804CA73(void) {
   1759     int _fpu_cmp = 0;
   1760     uint32_t _cf = 0;
   1761     int _df = 1;
   1762     uint32_t _flag_k = FK_NONE;
   1763     uint32_t _flag_a = 0, _flag_b = 0;
   1764     uint32_t _itail_tgt = 0;
   1765     RECOMP_REGS_LOCALS
   1766     RECOMP_ENTER(0x3804CA73u);
   1767 
   1768     goto L_3804CA73;
   1769 L_3801C720:
   1770     PUSH32(esp, ebx); /* 0x3801C720: push ebx */
   1771     PUSH32(esp, esi); /* 0x3801C721: push esi */
   1772     PUSH32(esp, edi); /* 0x3801C722: push edi */
   1773     edi = ecx; /* 0x3801C723: mov edi, ecx */
   1774     ebx = MEM32(edi + 0x4); /* 0x3801C725: mov ebx, dword ptr [edi + 4] */
   1775     esi = MEM32(ebx); /* 0x3801C728: mov esi, dword ptr [ebx] */
   1776     /* cmp esi, ebx */ /* 0x3801C72A: cmp esi, ebx */
   1777     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1778     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1779     _flag_k = FK_CMP;
   1780     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C755; /* 0x3801C72C: je 0x3801c755 */
   1781 L_3801C72E:
   1782     eax = esi; /* 0x3801C72E: mov eax, esi */
   1783     ecx = MEM32(eax + 0x4); /* 0x3801C730: mov ecx, dword ptr [eax + 4] */
   1784     edx = MEM32(eax); /* 0x3801C733: mov edx, dword ptr [eax] */
   1785     esi = MEM32(esi); /* 0x3801C735: mov esi, dword ptr [esi] */
   1786     MEM32(ecx) = edx; /* 0x3801C737: mov dword ptr [ecx], edx */
   1787     ecx = MEM32(eax); /* 0x3801C739: mov ecx, dword ptr [eax] */
   1788     edx = MEM32(eax + 0x4); /* 0x3801C73B: mov edx, dword ptr [eax + 4] */
   1789     PUSH32(esp, eax); /* 0x3801C73E: push eax */
   1790     MEM32(ecx + 0x4) = edx; /* 0x3801C73F: mov dword ptr [ecx + 4], edx */
   1791     RECOMP_ICALL(0x3804B4F6u); /* 0x3801C742: call 0x3804b4f6 */ /* not lifted */
   1792     RECOMP_FLAGS_IN();
   1793     ecx = MEM32(edi + 0x8); /* 0x3801C747: mov ecx, dword ptr [edi + 8] */
   1794     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1796     esp = esp + 4; /* 0x3801C74A: add esp, 4 */
   1797     _flag_k = FK_ADD;
   1798     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1799     ecx = ecx - 1; /* 0x3801C74D: dec ecx */
   1800     _flag_k = FK_DEC;
   1801     /* cmp esi, ebx */ /* 0x3801C74E: cmp esi, ebx */
   1802     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1804     _flag_k = FK_CMP;
   1805     MEM32(edi + 0x8) = ecx; /* 0x3801C750: mov dword ptr [edi + 8], ecx */
   1806     RECOMP_BACKEDGE();
   1807     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C72E; /* 0x3801C753: jne 0x3801c72e */
   1808 L_3801C755:
   1809     eax = MEM32(edi + 0x4); /* 0x3801C755: mov eax, dword ptr [edi + 4] */
   1810     PUSH32(esp, eax); /* 0x3801C758: push eax */
   1811     RECOMP_ICALL(0x3804B4F6u); /* 0x3801C759: call 0x3804b4f6 */ /* not lifted */
   1812     RECOMP_FLAGS_IN();
   1813     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1814     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1815     esp = esp + 4; /* 0x3801C75E: add esp, 4 */
   1816     _flag_k = FK_ADD;
   1817     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1818     eax = 0; /* 0x3801C761: xor eax, eax */
   1819     _cf = 0;
   1820     _flag_k = FK_TEST;
   1821     MEM32(edi + 0x4) = eax; /* 0x3801C763: mov dword ptr [edi + 4], eax */
   1822     MEM32(edi + 0x8) = eax; /* 0x3801C766: mov dword ptr [edi + 8], eax */
   1823     edi = POP32_VAL(esp); /* 0x3801C769: pop edi */
   1824     esi = POP32_VAL(esp); /* 0x3801C76A: pop esi */
   1825     ebx = POP32_VAL(esp); /* 0x3801C76B: pop ebx */
   1826     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801C76C: ret  */
   1827 L_3804CA73:
   1828     ecx = ebp + (-0x88); /* 0x3804CA73: lea ecx, [ebp - 0x88] */
   1829     RECOMP_BACKEDGE();
   1830     goto L_3801C720; /* 0x3804CA79: jmp 0x3801c720 */
   1831     { RECOMP_REGS_OUT(); return; } /* end of function */
   1832     RECOMP_REGS_OUT();
   1833 }
   1834 
   1835 void sub_3804CA7E(void) {
   1836     int _fpu_cmp = 0;
   1837     uint32_t _cf = 0;
   1838     int _df = 1;
   1839     uint32_t _flag_k = FK_NONE;
   1840     uint32_t _flag_a = 0, _flag_b = 0;
   1841     uint32_t _itail_tgt = 0;
   1842     RECOMP_REGS_LOCALS
   1843     RECOMP_ENTER(0x3804CA7Eu);
   1844 
   1845 L_3804CA7E:
   1846     PUSH32(esp, 0x3801C720u); /* 0x3804CA7E: push 0x3801c720 */
   1847     PUSH32(esp, 0x10u); /* 0x3804CA83: push 0x10 */
   1848     PUSH32(esp, 0xCu); /* 0x3804CA85: push 0xc */
   1849     eax = ebp + (-0x268); /* 0x3804CA87: lea eax, [ebp - 0x268] */
   1850     PUSH32(esp, eax); /* 0x3804CA8D: push eax */
   1851     RECOMP_ICALL(0x3804B582u); /* 0x3804CA8E: call 0x3804b582 */ /* not lifted */
   1852     RECOMP_FLAGS_IN();
   1853     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CA93: ret  */
   1854     RECOMP_REGS_OUT();
   1855 }
   1856 
   1857 void sub_3804CA94(void) {
   1858     int _fpu_cmp = 0;
   1859     uint32_t _cf = 0;
   1860     int _df = 1;
   1861     uint32_t _flag_k = FK_NONE;
   1862     uint32_t _flag_a = 0, _flag_b = 0;
   1863     uint32_t _itail_tgt = 0;
   1864     RECOMP_REGS_LOCALS
   1865     RECOMP_ENTER(0x3804CA94u);
   1866 
   1867     goto L_3804CA94;
   1868 L_3804B67C:
   1869     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   1870 L_3804CA94:
   1871     eax = 0x380533C0u; /* 0x3804CA94: mov eax, 0x380533c0 */
   1872 L_3804CA99:
   1873     RECOMP_BACKEDGE();
   1874     goto L_3804B67C; /* 0x3804CA99: jmp 0x3804b67c */
   1875     { RECOMP_REGS_OUT(); return; } /* end of function */
   1876   _ljump:
   1877     switch (_itail_tgt) {
   1878       case 0x3804B67Cu: goto L_3804B67C;
   1879       case 0x3804CA94u: goto L_3804CA94;
   1880       case 0x3804CA99u: goto L_3804CA99;
   1881       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1882     }
   1883     RECOMP_REGS_OUT();
   1884 }
   1885 
   1886 void sub_3804CAA0(void) {
   1887     int _fpu_cmp = 0;
   1888     uint32_t _cf = 0;
   1889     int _df = 1;
   1890     uint32_t _flag_k = FK_NONE;
   1891     uint32_t _flag_a = 0, _flag_b = 0;
   1892     uint32_t _itail_tgt = 0;
   1893     RECOMP_REGS_LOCALS
   1894     RECOMP_ENTER(0x3804CAA0u);
   1895 
   1896 L_3804CAA0:
   1897     ecx = ebp + (-0x20); /* 0x3804CAA0: lea ecx, [ebp - 0x20] */
   1898 L_3804CAA3:
   1899     { _itail_tgt = (uint32_t)(MEM32(0x3804E074)); goto _ljump; }
   1900     { RECOMP_REGS_OUT(); return; } /* end of function */
   1901   _ljump:
   1902     switch (_itail_tgt) {
   1903       case 0x3804CAA0u: goto L_3804CAA0;
   1904       case 0x3804CAA3u: goto L_3804CAA3;
   1905       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1906     }
   1907     RECOMP_REGS_OUT();
   1908 }
   1909 
   1910 void sub_3804CAA9(void) {
   1911     int _fpu_cmp = 0;
   1912     uint32_t _cf = 0;
   1913     int _df = 1;
   1914     uint32_t _flag_k = FK_NONE;
   1915     uint32_t _flag_a = 0, _flag_b = 0;
   1916     uint32_t _itail_tgt = 0;
   1917     RECOMP_REGS_LOCALS
   1918     RECOMP_ENTER(0x3804CAA9u);
   1919 
   1920     goto L_3804CAA9;
   1921 L_3804B67C:
   1922     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   1923 L_3804CAA9:
   1924     eax = 0x38053410u; /* 0x3804CAA9: mov eax, 0x38053410 */
   1925 L_3804CAAE:
   1926     RECOMP_BACKEDGE();
   1927     goto L_3804B67C; /* 0x3804CAAE: jmp 0x3804b67c */
   1928     { RECOMP_REGS_OUT(); return; } /* end of function */
   1929   _ljump:
   1930     switch (_itail_tgt) {
   1931       case 0x3804B67Cu: goto L_3804B67C;
   1932       case 0x3804CAA9u: goto L_3804CAA9;
   1933       case 0x3804CAAEu: goto L_3804CAAE;
   1934       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1935     }
   1936     RECOMP_REGS_OUT();
   1937 }
   1938 
   1939 void sub_3804CAC0(void) {
   1940     int _fpu_cmp = 0;
   1941     uint32_t _cf = 0;
   1942     int _df = 1;
   1943     uint32_t _flag_k = FK_NONE;
   1944     uint32_t _flag_a = 0, _flag_b = 0;
   1945     uint32_t _itail_tgt = 0;
   1946     RECOMP_REGS_LOCALS
   1947     RECOMP_ENTER(0x3804CAC0u);
   1948 
   1949 L_3804CAC0:
   1950     eax = MEM32(ebp + 0x8); /* 0x3804CAC0: mov eax, dword ptr [ebp + 8] */
   1951     PUSH32(esp, eax); /* 0x3804CAC3: push eax */
   1952     ecx = MEM32(ebp + (-0x14)); /* 0x3804CAC4: mov ecx, dword ptr [ebp - 0x14] */
   1953     PUSH32(esp, ecx); /* 0x3804CAC7: push ecx */
   1954     RECOMP_ICALL(0x380018B0u); /* 0x3804CAC8: call 0x380018b0 */ /* not lifted */
   1955     RECOMP_FLAGS_IN();
   1956     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1957     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1958     esp = esp + 8; /* 0x3804CACD: add esp, 8 */
   1959     _flag_k = FK_ADD;
   1960     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CAD0: ret  */
   1961     RECOMP_REGS_OUT();
   1962 }
   1963 
   1964 void sub_3804CAD1(void) {
   1965     int _fpu_cmp = 0;
   1966     uint32_t _cf = 0;
   1967     int _df = 1;
   1968     uint32_t _flag_k = FK_NONE;
   1969     uint32_t _flag_a = 0, _flag_b = 0;
   1970     uint32_t _itail_tgt = 0;
   1971     RECOMP_REGS_LOCALS
   1972     RECOMP_ENTER(0x3804CAD1u);
   1973 
   1974     goto L_3804CAD1;
   1975 L_3802D4D0:
   1976     PUSH32(esp, ebp); /* 0x3802D4D0: push ebp */
   1977     ebp = esp; /* 0x3802D4D1: mov ebp, esp */
   1978     PUSH32(esp, ecx); /* 0x3802D4D3: push ecx */
   1979     PUSH32(esp, esi); /* 0x3802D4D4: push esi */
   1980     esi = ecx; /* 0x3802D4D5: mov esi, ecx */
   1981     eax = MEM32(esi + 0x4); /* 0x3802D4D7: mov eax, dword ptr [esi + 4] */
   1982     PUSH32(esp, eax); /* 0x3802D4DA: push eax */
   1983     MEM32(ebp + (-0x4)) = eax; /* 0x3802D4DB: mov dword ptr [ebp - 4], eax */
   1984     RECOMP_ICALL(0x3804B4F6u); /* 0x3802D4DE: call 0x3804b4f6 */ /* not lifted */
   1985     RECOMP_FLAGS_IN();
   1986     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1987     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1988     esp = esp + 4; /* 0x3802D4E3: add esp, 4 */
   1989     _flag_k = FK_ADD;
   1990     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1991     eax = 0; /* 0x3802D4E6: xor eax, eax */
   1992     _cf = 0;
   1993     _flag_k = FK_TEST;
   1994     MEM32(esi + 0x4) = eax; /* 0x3802D4E8: mov dword ptr [esi + 4], eax */
   1995     MEM32(esi + 0x8) = eax; /* 0x3802D4EB: mov dword ptr [esi + 8], eax */
   1996     MEM32(esi + 0xC) = eax; /* 0x3802D4EE: mov dword ptr [esi + 0xc], eax */
   1997     esi = POP32_VAL(esp); /* 0x3802D4F1: pop esi */
   1998     esp = ebp; /* 0x3802D4F2: mov esp, ebp */
   1999     ebp = POP32_VAL(esp); /* 0x3802D4F4: pop ebp */
   2000     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802D4F5: ret  */
   2001 L_3804CAD1:
   2002     ecx = MEM32(ebp + 0xC); /* 0x3804CAD1: mov ecx, dword ptr [ebp + 0xc] */
   2003     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2004     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2005     ecx = ecx + 4; /* 0x3804CAD4: add ecx, 4 */
   2006     _flag_k = FK_ADD;
   2007     RECOMP_BACKEDGE();
   2008     goto L_3802D4D0; /* 0x3804CAD7: jmp 0x3802d4d0 */
   2009     { RECOMP_REGS_OUT(); return; } /* end of function */
   2010     RECOMP_REGS_OUT();
   2011 }
   2012 
   2013 void sub_3804CADC(void) {
   2014     int _fpu_cmp = 0;
   2015     uint32_t _cf = 0;
   2016     int _df = 1;
   2017     uint32_t _flag_k = FK_NONE;
   2018     uint32_t _flag_a = 0, _flag_b = 0;
   2019     uint32_t _itail_tgt = 0;
   2020     RECOMP_REGS_LOCALS
   2021     RECOMP_ENTER(0x3804CADCu);
   2022 
   2023     goto L_3804CADC;
   2024 L_3802D4D0:
   2025     PUSH32(esp, ebp); /* 0x3802D4D0: push ebp */
   2026     ebp = esp; /* 0x3802D4D1: mov ebp, esp */
   2027     PUSH32(esp, ecx); /* 0x3802D4D3: push ecx */
   2028     PUSH32(esp, esi); /* 0x3802D4D4: push esi */
   2029     esi = ecx; /* 0x3802D4D5: mov esi, ecx */
   2030     eax = MEM32(esi + 0x4); /* 0x3802D4D7: mov eax, dword ptr [esi + 4] */
   2031     PUSH32(esp, eax); /* 0x3802D4DA: push eax */
   2032     MEM32(ebp + (-0x4)) = eax; /* 0x3802D4DB: mov dword ptr [ebp - 4], eax */
   2033     RECOMP_ICALL(0x3804B4F6u); /* 0x3802D4DE: call 0x3804b4f6 */ /* not lifted */
   2034     RECOMP_FLAGS_IN();
   2035     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2036     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2037     esp = esp + 4; /* 0x3802D4E3: add esp, 4 */
   2038     _flag_k = FK_ADD;
   2039     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2040     eax = 0; /* 0x3802D4E6: xor eax, eax */
   2041     _cf = 0;
   2042     _flag_k = FK_TEST;
   2043     MEM32(esi + 0x4) = eax; /* 0x3802D4E8: mov dword ptr [esi + 4], eax */
   2044     MEM32(esi + 0x8) = eax; /* 0x3802D4EB: mov dword ptr [esi + 8], eax */
   2045     MEM32(esi + 0xC) = eax; /* 0x3802D4EE: mov dword ptr [esi + 0xc], eax */
   2046     esi = POP32_VAL(esp); /* 0x3802D4F1: pop esi */
   2047     esp = ebp; /* 0x3802D4F2: mov esp, ebp */
   2048     ebp = POP32_VAL(esp); /* 0x3802D4F4: pop ebp */
   2049     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802D4F5: ret  */
   2050 L_3804CADC:
   2051     ecx = MEM32(ebp + 0xC); /* 0x3804CADC: mov ecx, dword ptr [ebp + 0xc] */
   2052     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
   2053     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2054     ecx = ecx + 0x14u; /* 0x3804CADF: add ecx, 0x14 */
   2055     _flag_k = FK_ADD;
   2056     RECOMP_BACKEDGE();
   2057     goto L_3802D4D0; /* 0x3804CAE2: jmp 0x3802d4d0 */
   2058     { RECOMP_REGS_OUT(); return; } /* end of function */
   2059     RECOMP_REGS_OUT();
   2060 }
   2061 
   2062 void sub_3804CAE7(void) {
   2063     int _fpu_cmp = 0;
   2064     uint32_t _cf = 0;
   2065     int _df = 1;
   2066     uint32_t _flag_k = FK_NONE;
   2067     uint32_t _flag_a = 0, _flag_b = 0;
   2068     uint32_t _itail_tgt = 0;
   2069     RECOMP_REGS_LOCALS
   2070     RECOMP_ENTER(0x3804CAE7u);
   2071 
   2072     goto L_3804CAE7;
   2073 L_3802D4D0:
   2074     PUSH32(esp, ebp); /* 0x3802D4D0: push ebp */
   2075     ebp = esp; /* 0x3802D4D1: mov ebp, esp */
   2076     PUSH32(esp, ecx); /* 0x3802D4D3: push ecx */
   2077     PUSH32(esp, esi); /* 0x3802D4D4: push esi */
   2078     esi = ecx; /* 0x3802D4D5: mov esi, ecx */
   2079     eax = MEM32(esi + 0x4); /* 0x3802D4D7: mov eax, dword ptr [esi + 4] */
   2080     PUSH32(esp, eax); /* 0x3802D4DA: push eax */
   2081     MEM32(ebp + (-0x4)) = eax; /* 0x3802D4DB: mov dword ptr [ebp - 4], eax */
   2082     RECOMP_ICALL(0x3804B4F6u); /* 0x3802D4DE: call 0x3804b4f6 */ /* not lifted */
   2083     RECOMP_FLAGS_IN();
   2084     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2085     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2086     esp = esp + 4; /* 0x3802D4E3: add esp, 4 */
   2087     _flag_k = FK_ADD;
   2088     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2089     eax = 0; /* 0x3802D4E6: xor eax, eax */
   2090     _cf = 0;
   2091     _flag_k = FK_TEST;
   2092     MEM32(esi + 0x4) = eax; /* 0x3802D4E8: mov dword ptr [esi + 4], eax */
   2093     MEM32(esi + 0x8) = eax; /* 0x3802D4EB: mov dword ptr [esi + 8], eax */
   2094     MEM32(esi + 0xC) = eax; /* 0x3802D4EE: mov dword ptr [esi + 0xc], eax */
   2095     esi = POP32_VAL(esp); /* 0x3802D4F1: pop esi */
   2096     esp = ebp; /* 0x3802D4F2: mov esp, ebp */
   2097     ebp = POP32_VAL(esp); /* 0x3802D4F4: pop ebp */
   2098     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802D4F5: ret  */
   2099 L_3804CAE7:
   2100     ecx = MEM32(ebp + (-0x10)); /* 0x3804CAE7: mov ecx, dword ptr [ebp - 0x10] */
   2101     RECOMP_BACKEDGE();
   2102     goto L_3802D4D0; /* 0x3804CAEA: jmp 0x3802d4d0 */
   2103     { RECOMP_REGS_OUT(); return; } /* end of function */
   2104     RECOMP_REGS_OUT();
   2105 }
   2106 
   2107 void sub_3804CAEF(void) {
   2108     int _fpu_cmp = 0;
   2109     uint32_t _cf = 0;
   2110     int _df = 1;
   2111     uint32_t _flag_k = FK_NONE;
   2112     uint32_t _flag_a = 0, _flag_b = 0;
   2113     uint32_t _itail_tgt = 0;
   2114     RECOMP_REGS_LOCALS
   2115     RECOMP_ENTER(0x3804CAEFu);
   2116 
   2117     goto L_3804CAEF;
   2118 L_3804B67C:
   2119     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   2120 L_3804CAEF:
   2121     eax = 0x38053438u; /* 0x3804CAEF: mov eax, 0x38053438 */
   2122 L_3804CAF4:
   2123     RECOMP_BACKEDGE();
   2124     goto L_3804B67C; /* 0x3804CAF4: jmp 0x3804b67c */
   2125     { RECOMP_REGS_OUT(); return; } /* end of function */
   2126   _ljump:
   2127     switch (_itail_tgt) {
   2128       case 0x3804B67Cu: goto L_3804B67C;
   2129       case 0x3804CAEFu: goto L_3804CAEF;
   2130       case 0x3804CAF4u: goto L_3804CAF4;
   2131       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2132     }
   2133     RECOMP_REGS_OUT();
   2134 }
   2135 
   2136 void sub_3804CB00(void) {
   2137     int _fpu_cmp = 0;
   2138     uint32_t _cf = 0;
   2139     int _df = 1;
   2140     uint32_t _flag_k = FK_NONE;
   2141     uint32_t _flag_a = 0, _flag_b = 0;
   2142     uint32_t _itail_tgt = 0;
   2143     RECOMP_REGS_LOCALS
   2144     RECOMP_ENTER(0x3804CB00u);
   2145 
   2146     goto L_3804CB00;
   2147 L_3803EC60:
   2148     PUSH32(esp, ebp); /* 0x3803EC60: push ebp */
   2149     ebp = esp; /* 0x3803EC61: mov ebp, esp */
   2150     PUSH32(esp, 0xFFFFFFFFu); /* 0x3803EC63: push -1 */
   2151     PUSH32(esp, 0x3804CFEBu); /* 0x3803EC65: push 0x3804cfeb */
   2152     eax = MEM32(FS_BASE + (0)); /* 0x3803EC6A: mov eax, dword ptr fs:[0] */
   2153     PUSH32(esp, eax); /* 0x3803EC70: push eax */
   2154     MEM32(FS_BASE + (0)) = esp; /* 0x3803EC71: mov dword ptr fs:[0], esp */
   2155     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2157     esp = esp - 8; /* 0x3803EC78: sub esp, 8 */
   2158     _flag_k = FK_CMP;
   2159     PUSH32(esp, ebx); /* 0x3803EC7B: push ebx */
   2160     PUSH32(esp, esi); /* 0x3803EC7C: push esi */
   2161     esi = ecx; /* 0x3803EC7D: mov esi, ecx */
   2162     PUSH32(esp, edi); /* 0x3803EC7F: push edi */
   2163     MEM32(ebp + (-0x10)) = esi; /* 0x3803EC80: mov dword ptr [ebp - 0x10], esi */
   2164     MEM32(esi) = 0x3804F8A4u; /* 0x3803EC83: mov dword ptr [esi], 0x3804f8a4 */
   2165     eax = MEM32(esi + 0x8); /* 0x3803EC89: mov eax, dword ptr [esi + 8] */
   2166     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2167     ebx = 0; /* 0x3803EC8C: xor ebx, ebx */
   2168     _cf = 0;
   2169     _flag_k = FK_TEST;
   2170     PUSH32(esp, ebx); /* 0x3803EC8E: push ebx */
   2171     PUSH32(esp, 0x3806B760u); /* 0x3803EC8F: push 0x3806b760 */
   2172     PUSH32(esp, 0x3806BF98u); /* 0x3803EC94: push 0x3806bf98 */
   2173     PUSH32(esp, ebx); /* 0x3803EC99: push ebx */
   2174     PUSH32(esp, eax); /* 0x3803EC9A: push eax */
   2175     MEM32(ebp + (-0x4)) = ebx; /* 0x3803EC9B: mov dword ptr [ebp - 4], ebx */
   2176     RECOMP_ICALL(0x3804B682u); /* 0x3803EC9E: call 0x3804b682 */ /* not lifted */
   2177     RECOMP_FLAGS_IN();
   2178     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2179     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2180     esp = esp + 0x14u; /* 0x3803ECA3: add esp, 0x14 */
   2181     _flag_k = FK_ADD;
   2182     /* test eax, eax */ /* 0x3803ECA6: test eax, eax */
   2183     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2184     _cf = 0;
   2185     _flag_k = FK_TEST;
   2186     if (TEST_Z(_flag_a, _flag_b)) goto L_3803ECC8; /* 0x3803ECA8: je 0x3803ecc8 */
   2187 L_3803ECAA:
   2188     ecx = MEM32(esi + 0x8); /* 0x3803ECAA: mov ecx, dword ptr [esi + 8] */
   2189     PUSH32(esp, ebx); /* 0x3803ECAD: push ebx */
   2190     PUSH32(esp, 0x3806B760u); /* 0x3803ECAE: push 0x3806b760 */
   2191     PUSH32(esp, 0x3806BF98u); /* 0x3803ECB3: push 0x3806bf98 */
   2192     PUSH32(esp, ebx); /* 0x3803ECB8: push ebx */
   2193     PUSH32(esp, ecx); /* 0x3803ECB9: push ecx */
   2194     RECOMP_ICALL(0x3804B682u); /* 0x3803ECBA: call 0x3804b682 */ /* not lifted */
   2195     RECOMP_FLAGS_IN();
   2196     PUSH32(esp, eax); /* 0x3803ECBF: push eax */
   2197     RECOMP_ICALL(0x38040170u); /* 0x3803ECC0: call 0x38040170 */ /* not lifted */
   2198     RECOMP_FLAGS_IN();
   2199     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2200     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2201     esp = esp + 0x18u; /* 0x3803ECC5: add esp, 0x18 */
   2202     _flag_k = FK_ADD;
   2203 L_3803ECC8:
   2204     edi = MEM32(esi + 0x14); /* 0x3803ECC8: mov edi, dword ptr [esi + 0x14] */
   2205     /* cmp edi, ebx */ /* 0x3803ECCB: cmp edi, ebx */
   2206     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2208     _flag_k = FK_CMP;
   2209     MEM32(esi + 0x8) = ebx; /* 0x3803ECCD: mov dword ptr [esi + 8], ebx */
   2210     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ECE2; /* 0x3803ECD0: je 0x3803ece2 */
   2211 L_3803ECD2:
   2212     ecx = edi; /* 0x3803ECD2: mov ecx, edi */
   2213     RECOMP_ICALL(0x3801EEC0u); /* 0x3803ECD4: call 0x3801eec0 */ /* not lifted */
   2214     RECOMP_FLAGS_IN();
   2215     PUSH32(esp, edi); /* 0x3803ECD9: push edi */
   2216     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ECDA: call 0x3804b4f6 */ /* not lifted */
   2217     RECOMP_FLAGS_IN();
   2218     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2219     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2220     esp = esp + 4; /* 0x3803ECDF: add esp, 4 */
   2221     _flag_k = FK_ADD;
   2222 L_3803ECE2:
   2223     edi = MEM32(esi + 0x18); /* 0x3803ECE2: mov edi, dword ptr [esi + 0x18] */
   2224     /* cmp edi, ebx */ /* 0x3803ECE5: cmp edi, ebx */
   2225     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2226     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2227     _flag_k = FK_CMP;
   2228     MEM32(esi + 0x14) = ebx; /* 0x3803ECE7: mov dword ptr [esi + 0x14], ebx */
   2229     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ED39; /* 0x3803ECEA: je 0x3803ed39 */
   2230 L_3803ECEC:
   2231     ecx = MEM32(edi + 0x8); /* 0x3803ECEC: mov ecx, dword ptr [edi + 8] */
   2232     /* cmp ecx, ecx */ /* 0x3803ECEF: cmp ecx, ecx */
   2233     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2235     _flag_k = FK_CMP;
   2236     edx = MEM32(edi + 0x4); /* 0x3803ECF1: mov edx, dword ptr [edi + 4] */
   2237     eax = ecx; /* 0x3803ECF4: mov eax, ecx */
   2238     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ED08; /* 0x3803ECF6: je 0x3803ed08 */
   2239 L_3803ECF8:
   2240     ebx = MEM32(eax); /* 0x3803ECF8: mov ebx, dword ptr [eax] */
   2241     MEM32(edx) = ebx; /* 0x3803ECFA: mov dword ptr [edx], ebx */
   2242     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2243     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2244     eax = eax + 4; /* 0x3803ECFC: add eax, 4 */
   2245     _flag_k = FK_ADD;
   2246     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   2247     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2248     edx = edx + 4; /* 0x3803ECFF: add edx, 4 */
   2249     _flag_k = FK_ADD;
   2250     /* cmp eax, ecx */ /* 0x3803ED02: cmp eax, ecx */
   2251     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2253     _flag_k = FK_CMP;
   2254     RECOMP_BACKEDGE();
   2255     if (CMP_NE(_flag_a, _flag_b)) goto L_3803ECF8; /* 0x3803ED04: jne 0x3803ecf8 */
   2256 L_3803ED06:
   2257     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2258     ebx = 0; /* 0x3803ED06: xor ebx, ebx */
   2259     _cf = 0;
   2260     _flag_k = FK_TEST;
   2261 L_3803ED08:
   2262     eax = MEM32(edi + 0x8); /* 0x3803ED08: mov eax, dword ptr [edi + 8] */
   2263     MEM32(edi + 0x8) = edx; /* 0x3803ED0B: mov dword ptr [edi + 8], edx */
   2264     edi = MEM32(esi + 0x18); /* 0x3803ED0E: mov edi, dword ptr [esi + 0x18] */
   2265     /* cmp edi, ebx */ /* 0x3803ED11: cmp edi, ebx */
   2266     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2268     _flag_k = FK_CMP;
   2269     MEM32(ebp + (-0x14)) = eax; /* 0x3803ED13: mov dword ptr [ebp - 0x14], eax */
   2270     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ED36; /* 0x3803ED16: je 0x3803ed36 */
   2271 L_3803ED18:
   2272     eax = MEM32(edi + 0x4); /* 0x3803ED18: mov eax, dword ptr [edi + 4] */
   2273     PUSH32(esp, eax); /* 0x3803ED1B: push eax */
   2274     MEM32(ebp + (-0x14)) = eax; /* 0x3803ED1C: mov dword ptr [ebp - 0x14], eax */
   2275     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ED1F: call 0x3804b4f6 */ /* not lifted */
   2276     RECOMP_FLAGS_IN();
   2277     PUSH32(esp, edi); /* 0x3803ED24: push edi */
   2278     MEM32(edi + 0x4) = ebx; /* 0x3803ED25: mov dword ptr [edi + 4], ebx */
   2279     MEM32(edi + 0x8) = ebx; /* 0x3803ED28: mov dword ptr [edi + 8], ebx */
   2280     MEM32(edi + 0xC) = ebx; /* 0x3803ED2B: mov dword ptr [edi + 0xc], ebx */
   2281     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ED2E: call 0x3804b4f6 */ /* not lifted */
   2282     RECOMP_FLAGS_IN();
   2283     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2284     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2285     esp = esp + 8; /* 0x3803ED33: add esp, 8 */
   2286     _flag_k = FK_ADD;
   2287 L_3803ED36:
   2288     MEM32(esi + 0x18) = ebx; /* 0x3803ED36: mov dword ptr [esi + 0x18], ebx */
   2289 L_3803ED39:
   2290     edi = MEM32(esi + 0x28); /* 0x3803ED39: mov edi, dword ptr [esi + 0x28] */
   2291     /* cmp edi, ebx */ /* 0x3803ED3C: cmp edi, ebx */
   2292     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2294     _flag_k = FK_CMP;
   2295     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ED61; /* 0x3803ED3E: je 0x3803ed61 */
   2296 L_3803ED40:
   2297     eax = MEM32(edi + 0x4); /* 0x3803ED40: mov eax, dword ptr [edi + 4] */
   2298     PUSH32(esp, eax); /* 0x3803ED43: push eax */
   2299     MEM32(ebp + (-0x14)) = eax; /* 0x3803ED44: mov dword ptr [ebp - 0x14], eax */
   2300     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ED47: call 0x3804b4f6 */ /* not lifted */
   2301     RECOMP_FLAGS_IN();
   2302     PUSH32(esp, edi); /* 0x3803ED4C: push edi */
   2303     MEM32(edi + 0x4) = ebx; /* 0x3803ED4D: mov dword ptr [edi + 4], ebx */
   2304     MEM32(edi + 0x8) = ebx; /* 0x3803ED50: mov dword ptr [edi + 8], ebx */
   2305     MEM32(edi + 0xC) = ebx; /* 0x3803ED53: mov dword ptr [edi + 0xc], ebx */
   2306     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ED56: call 0x3804b4f6 */ /* not lifted */
   2307     RECOMP_FLAGS_IN();
   2308     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2309     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2310     esp = esp + 8; /* 0x3803ED5B: add esp, 8 */
   2311     _flag_k = FK_ADD;
   2312     MEM32(esi + 0x28) = ebx; /* 0x3803ED5E: mov dword ptr [esi + 0x28], ebx */
   2313 L_3803ED61:
   2314     edi = MEM32(esi + 0x24); /* 0x3803ED61: mov edi, dword ptr [esi + 0x24] */
   2315     /* cmp edi, ebx */ /* 0x3803ED64: cmp edi, ebx */
   2316     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2318     _flag_k = FK_CMP;
   2319     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ED7B; /* 0x3803ED66: je 0x3803ed7b */
   2320 L_3803ED68:
   2321     ecx = edi; /* 0x3803ED68: mov ecx, edi */
   2322     RECOMP_ICALL(0x380265C0u); /* 0x3803ED6A: call 0x380265c0 */ /* not lifted */
   2323     RECOMP_FLAGS_IN();
   2324     PUSH32(esp, edi); /* 0x3803ED6F: push edi */
   2325     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ED70: call 0x3804b4f6 */ /* not lifted */
   2326     RECOMP_FLAGS_IN();
   2327     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2328     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2329     esp = esp + 4; /* 0x3803ED75: add esp, 4 */
   2330     _flag_k = FK_ADD;
   2331     MEM32(esi + 0x24) = ebx; /* 0x3803ED78: mov dword ptr [esi + 0x24], ebx */
   2332 L_3803ED7B:
   2333     eax = MEM32(esi + 0x34); /* 0x3803ED7B: mov eax, dword ptr [esi + 0x34] */
   2334     edi = MEM32(esi + 0x30); /* 0x3803ED7E: mov edi, dword ptr [esi + 0x30] */
   2335     /* cmp edi, eax */ /* 0x3803ED81: cmp edi, eax */
   2336     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2338     _flag_k = FK_CMP;
   2339     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3803ED83: mov dword ptr [ebp - 4], 0xffffffff */
   2340     MEM32(ebp + (-0x10)) = eax; /* 0x3803ED8A: mov dword ptr [ebp - 0x10], eax */
   2341     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803EDA0; /* 0x3803ED8D: je 0x3803eda0 */
   2342 L_3803ED8F:
   2343     edx = MEM32(edi); /* 0x3803ED8F: mov edx, dword ptr [edi] */
   2344     PUSH32(esp, ebx); /* 0x3803ED91: push ebx */
   2345     ecx = edi; /* 0x3803ED92: mov ecx, edi */
   2346     RECOMP_ICALL(MEM32(edx)); /* 0x3803ED94: call dword ptr [edx] */
   2347     RECOMP_FLAGS_IN();
   2348     eax = MEM32(ebp + (-0x10)); /* 0x3803ED96: mov eax, dword ptr [ebp - 0x10] */
   2349     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x48u);
   2350     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2351     edi = edi + 0x48u; /* 0x3803ED99: add edi, 0x48 */
   2352     _flag_k = FK_ADD;
   2353     /* cmp edi, eax */ /* 0x3803ED9C: cmp edi, eax */
   2354     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2356     _flag_k = FK_CMP;
   2357     RECOMP_BACKEDGE();
   2358     if (CMP_NE(_flag_a, _flag_b)) goto L_3803ED8F; /* 0x3803ED9E: jne 0x3803ed8f */
   2359 L_3803EDA0:
   2360     eax = MEM32(esi + 0x30); /* 0x3803EDA0: mov eax, dword ptr [esi + 0x30] */
   2361     PUSH32(esp, eax); /* 0x3803EDA3: push eax */
   2362     RECOMP_ICALL(0x3804B4F6u); /* 0x3803EDA4: call 0x3804b4f6 */ /* not lifted */
   2363     RECOMP_FLAGS_IN();
   2364     ecx = MEM32(ebp + (-0xC)); /* 0x3803EDA9: mov ecx, dword ptr [ebp - 0xc] */
   2365     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2367     esp = esp + 4; /* 0x3803EDAC: add esp, 4 */
   2368     _flag_k = FK_ADD;
   2369     MEM32(esi + 0x30) = ebx; /* 0x3803EDAF: mov dword ptr [esi + 0x30], ebx */
   2370     MEM32(esi + 0x34) = ebx; /* 0x3803EDB2: mov dword ptr [esi + 0x34], ebx */
   2371     MEM32(esi + 0x38) = ebx; /* 0x3803EDB5: mov dword ptr [esi + 0x38], ebx */
   2372     edi = POP32_VAL(esp); /* 0x3803EDB8: pop edi */
   2373     esi = POP32_VAL(esp); /* 0x3803EDB9: pop esi */
   2374     ebx = POP32_VAL(esp); /* 0x3803EDBA: pop ebx */
   2375     MEM32(FS_BASE + (0)) = ecx; /* 0x3803EDBB: mov dword ptr fs:[0], ecx */
   2376     esp = ebp; /* 0x3803EDC2: mov esp, ebp */
   2377     ebp = POP32_VAL(esp); /* 0x3803EDC4: pop ebp */
   2378     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803EDC5: ret  */
   2379 L_3804CB00:
   2380     ecx = MEM32(ebp + (-0x10)); /* 0x3804CB00: mov ecx, dword ptr [ebp - 0x10] */
   2381     RECOMP_BACKEDGE();
   2382     goto L_3803EC60; /* 0x3804CB03: jmp 0x3803ec60 */
   2383     { RECOMP_REGS_OUT(); return; } /* end of function */
   2384     RECOMP_REGS_OUT();
   2385 }
   2386 
   2387 void sub_3804CB08(void) {
   2388     int _fpu_cmp = 0;
   2389     uint32_t _cf = 0;
   2390     int _df = 1;
   2391     uint32_t _flag_k = FK_NONE;
   2392     uint32_t _flag_a = 0, _flag_b = 0;
   2393     uint32_t _itail_tgt = 0;
   2394     RECOMP_REGS_LOCALS
   2395     RECOMP_ENTER(0x3804CB08u);
   2396 
   2397 L_3804CB08:
   2398     eax = MEM32(ebp + (-0x28)); /* 0x3804CB08: mov eax, dword ptr [ebp - 0x28] */
   2399     PUSH32(esp, eax); /* 0x3804CB0B: push eax */
   2400     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CB0C: call 0x3804b4f6 */ /* not lifted */
   2401     RECOMP_FLAGS_IN();
   2402     ecx = POP32_VAL(esp); /* 0x3804CB11: pop ecx */
   2403     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CB12: ret  */
   2404     RECOMP_REGS_OUT();
   2405 }
   2406 
   2407 void sub_3804CB13(void) {
   2408     int _fpu_cmp = 0;
   2409     uint32_t _cf = 0;
   2410     int _df = 1;
   2411     uint32_t _flag_k = FK_NONE;
   2412     uint32_t _flag_a = 0, _flag_b = 0;
   2413     uint32_t _itail_tgt = 0;
   2414     RECOMP_REGS_LOCALS
   2415     RECOMP_ENTER(0x3804CB13u);
   2416 
   2417     goto L_3804CB13;
   2418 L_3804B67C:
   2419     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   2420 L_3804CB13:
   2421     eax = 0x38053478u; /* 0x3804CB13: mov eax, 0x38053478 */
   2422 L_3804CB18:
   2423     RECOMP_BACKEDGE();
   2424     goto L_3804B67C; /* 0x3804CB18: jmp 0x3804b67c */
   2425     { RECOMP_REGS_OUT(); return; } /* end of function */
   2426   _ljump:
   2427     switch (_itail_tgt) {
   2428       case 0x3804B67Cu: goto L_3804B67C;
   2429       case 0x3804CB13u: goto L_3804CB13;
   2430       case 0x3804CB18u: goto L_3804CB18;
   2431       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2432     }
   2433     RECOMP_REGS_OUT();
   2434 }
   2435 
   2436 void sub_3804CB20(void) {
   2437     int _fpu_cmp = 0;
   2438     uint32_t _cf = 0;
   2439     int _df = 1;
   2440     uint32_t _flag_k = FK_NONE;
   2441     uint32_t _flag_a = 0, _flag_b = 0;
   2442     uint32_t _itail_tgt = 0;
   2443     RECOMP_REGS_LOCALS
   2444     RECOMP_ENTER(0x3804CB20u);
   2445 
   2446     goto L_3804CB20;
   2447 L_3803EC60:
   2448     PUSH32(esp, ebp); /* 0x3803EC60: push ebp */
   2449     ebp = esp; /* 0x3803EC61: mov ebp, esp */
   2450     PUSH32(esp, 0xFFFFFFFFu); /* 0x3803EC63: push -1 */
   2451     PUSH32(esp, 0x3804CFEBu); /* 0x3803EC65: push 0x3804cfeb */
   2452     eax = MEM32(FS_BASE + (0)); /* 0x3803EC6A: mov eax, dword ptr fs:[0] */
   2453     PUSH32(esp, eax); /* 0x3803EC70: push eax */
   2454     MEM32(FS_BASE + (0)) = esp; /* 0x3803EC71: mov dword ptr fs:[0], esp */
   2455     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2457     esp = esp - 8; /* 0x3803EC78: sub esp, 8 */
   2458     _flag_k = FK_CMP;
   2459     PUSH32(esp, ebx); /* 0x3803EC7B: push ebx */
   2460     PUSH32(esp, esi); /* 0x3803EC7C: push esi */
   2461     esi = ecx; /* 0x3803EC7D: mov esi, ecx */
   2462     PUSH32(esp, edi); /* 0x3803EC7F: push edi */
   2463     MEM32(ebp + (-0x10)) = esi; /* 0x3803EC80: mov dword ptr [ebp - 0x10], esi */
   2464     MEM32(esi) = 0x3804F8A4u; /* 0x3803EC83: mov dword ptr [esi], 0x3804f8a4 */
   2465     eax = MEM32(esi + 0x8); /* 0x3803EC89: mov eax, dword ptr [esi + 8] */
   2466     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2467     ebx = 0; /* 0x3803EC8C: xor ebx, ebx */
   2468     _cf = 0;
   2469     _flag_k = FK_TEST;
   2470     PUSH32(esp, ebx); /* 0x3803EC8E: push ebx */
   2471     PUSH32(esp, 0x3806B760u); /* 0x3803EC8F: push 0x3806b760 */
   2472     PUSH32(esp, 0x3806BF98u); /* 0x3803EC94: push 0x3806bf98 */
   2473     PUSH32(esp, ebx); /* 0x3803EC99: push ebx */
   2474     PUSH32(esp, eax); /* 0x3803EC9A: push eax */
   2475     MEM32(ebp + (-0x4)) = ebx; /* 0x3803EC9B: mov dword ptr [ebp - 4], ebx */
   2476     RECOMP_ICALL(0x3804B682u); /* 0x3803EC9E: call 0x3804b682 */ /* not lifted */
   2477     RECOMP_FLAGS_IN();
   2478     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2479     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2480     esp = esp + 0x14u; /* 0x3803ECA3: add esp, 0x14 */
   2481     _flag_k = FK_ADD;
   2482     /* test eax, eax */ /* 0x3803ECA6: test eax, eax */
   2483     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2484     _cf = 0;
   2485     _flag_k = FK_TEST;
   2486     if (TEST_Z(_flag_a, _flag_b)) goto L_3803ECC8; /* 0x3803ECA8: je 0x3803ecc8 */
   2487 L_3803ECAA:
   2488     ecx = MEM32(esi + 0x8); /* 0x3803ECAA: mov ecx, dword ptr [esi + 8] */
   2489     PUSH32(esp, ebx); /* 0x3803ECAD: push ebx */
   2490     PUSH32(esp, 0x3806B760u); /* 0x3803ECAE: push 0x3806b760 */
   2491     PUSH32(esp, 0x3806BF98u); /* 0x3803ECB3: push 0x3806bf98 */
   2492     PUSH32(esp, ebx); /* 0x3803ECB8: push ebx */
   2493     PUSH32(esp, ecx); /* 0x3803ECB9: push ecx */
   2494     RECOMP_ICALL(0x3804B682u); /* 0x3803ECBA: call 0x3804b682 */ /* not lifted */
   2495     RECOMP_FLAGS_IN();
   2496     PUSH32(esp, eax); /* 0x3803ECBF: push eax */
   2497     RECOMP_ICALL(0x38040170u); /* 0x3803ECC0: call 0x38040170 */ /* not lifted */
   2498     RECOMP_FLAGS_IN();
   2499     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2501     esp = esp + 0x18u; /* 0x3803ECC5: add esp, 0x18 */
   2502     _flag_k = FK_ADD;
   2503 L_3803ECC8:
   2504     edi = MEM32(esi + 0x14); /* 0x3803ECC8: mov edi, dword ptr [esi + 0x14] */
   2505     /* cmp edi, ebx */ /* 0x3803ECCB: cmp edi, ebx */
   2506     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2508     _flag_k = FK_CMP;
   2509     MEM32(esi + 0x8) = ebx; /* 0x3803ECCD: mov dword ptr [esi + 8], ebx */
   2510     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ECE2; /* 0x3803ECD0: je 0x3803ece2 */
   2511 L_3803ECD2:
   2512     ecx = edi; /* 0x3803ECD2: mov ecx, edi */
   2513     RECOMP_ICALL(0x3801EEC0u); /* 0x3803ECD4: call 0x3801eec0 */ /* not lifted */
   2514     RECOMP_FLAGS_IN();
   2515     PUSH32(esp, edi); /* 0x3803ECD9: push edi */
   2516     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ECDA: call 0x3804b4f6 */ /* not lifted */
   2517     RECOMP_FLAGS_IN();
   2518     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2520     esp = esp + 4; /* 0x3803ECDF: add esp, 4 */
   2521     _flag_k = FK_ADD;
   2522 L_3803ECE2:
   2523     edi = MEM32(esi + 0x18); /* 0x3803ECE2: mov edi, dword ptr [esi + 0x18] */
   2524     /* cmp edi, ebx */ /* 0x3803ECE5: cmp edi, ebx */
   2525     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2527     _flag_k = FK_CMP;
   2528     MEM32(esi + 0x14) = ebx; /* 0x3803ECE7: mov dword ptr [esi + 0x14], ebx */
   2529     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ED39; /* 0x3803ECEA: je 0x3803ed39 */
   2530 L_3803ECEC:
   2531     ecx = MEM32(edi + 0x8); /* 0x3803ECEC: mov ecx, dword ptr [edi + 8] */
   2532     /* cmp ecx, ecx */ /* 0x3803ECEF: cmp ecx, ecx */
   2533     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2535     _flag_k = FK_CMP;
   2536     edx = MEM32(edi + 0x4); /* 0x3803ECF1: mov edx, dword ptr [edi + 4] */
   2537     eax = ecx; /* 0x3803ECF4: mov eax, ecx */
   2538     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ED08; /* 0x3803ECF6: je 0x3803ed08 */
   2539 L_3803ECF8:
   2540     ebx = MEM32(eax); /* 0x3803ECF8: mov ebx, dword ptr [eax] */
   2541     MEM32(edx) = ebx; /* 0x3803ECFA: mov dword ptr [edx], ebx */
   2542     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2543     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2544     eax = eax + 4; /* 0x3803ECFC: add eax, 4 */
   2545     _flag_k = FK_ADD;
   2546     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   2547     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2548     edx = edx + 4; /* 0x3803ECFF: add edx, 4 */
   2549     _flag_k = FK_ADD;
   2550     /* cmp eax, ecx */ /* 0x3803ED02: cmp eax, ecx */
   2551     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2553     _flag_k = FK_CMP;
   2554     RECOMP_BACKEDGE();
   2555     if (CMP_NE(_flag_a, _flag_b)) goto L_3803ECF8; /* 0x3803ED04: jne 0x3803ecf8 */
   2556 L_3803ED06:
   2557     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2558     ebx = 0; /* 0x3803ED06: xor ebx, ebx */
   2559     _cf = 0;
   2560     _flag_k = FK_TEST;
   2561 L_3803ED08:
   2562     eax = MEM32(edi + 0x8); /* 0x3803ED08: mov eax, dword ptr [edi + 8] */
   2563     MEM32(edi + 0x8) = edx; /* 0x3803ED0B: mov dword ptr [edi + 8], edx */
   2564     edi = MEM32(esi + 0x18); /* 0x3803ED0E: mov edi, dword ptr [esi + 0x18] */
   2565     /* cmp edi, ebx */ /* 0x3803ED11: cmp edi, ebx */
   2566     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2567     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2568     _flag_k = FK_CMP;
   2569     MEM32(ebp + (-0x14)) = eax; /* 0x3803ED13: mov dword ptr [ebp - 0x14], eax */
   2570     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ED36; /* 0x3803ED16: je 0x3803ed36 */
   2571 L_3803ED18:
   2572     eax = MEM32(edi + 0x4); /* 0x3803ED18: mov eax, dword ptr [edi + 4] */
   2573     PUSH32(esp, eax); /* 0x3803ED1B: push eax */
   2574     MEM32(ebp + (-0x14)) = eax; /* 0x3803ED1C: mov dword ptr [ebp - 0x14], eax */
   2575     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ED1F: call 0x3804b4f6 */ /* not lifted */
   2576     RECOMP_FLAGS_IN();
   2577     PUSH32(esp, edi); /* 0x3803ED24: push edi */
   2578     MEM32(edi + 0x4) = ebx; /* 0x3803ED25: mov dword ptr [edi + 4], ebx */
   2579     MEM32(edi + 0x8) = ebx; /* 0x3803ED28: mov dword ptr [edi + 8], ebx */
   2580     MEM32(edi + 0xC) = ebx; /* 0x3803ED2B: mov dword ptr [edi + 0xc], ebx */
   2581     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ED2E: call 0x3804b4f6 */ /* not lifted */
   2582     RECOMP_FLAGS_IN();
   2583     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2584     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2585     esp = esp + 8; /* 0x3803ED33: add esp, 8 */
   2586     _flag_k = FK_ADD;
   2587 L_3803ED36:
   2588     MEM32(esi + 0x18) = ebx; /* 0x3803ED36: mov dword ptr [esi + 0x18], ebx */
   2589 L_3803ED39:
   2590     edi = MEM32(esi + 0x28); /* 0x3803ED39: mov edi, dword ptr [esi + 0x28] */
   2591     /* cmp edi, ebx */ /* 0x3803ED3C: cmp edi, ebx */
   2592     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2594     _flag_k = FK_CMP;
   2595     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ED61; /* 0x3803ED3E: je 0x3803ed61 */
   2596 L_3803ED40:
   2597     eax = MEM32(edi + 0x4); /* 0x3803ED40: mov eax, dword ptr [edi + 4] */
   2598     PUSH32(esp, eax); /* 0x3803ED43: push eax */
   2599     MEM32(ebp + (-0x14)) = eax; /* 0x3803ED44: mov dword ptr [ebp - 0x14], eax */
   2600     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ED47: call 0x3804b4f6 */ /* not lifted */
   2601     RECOMP_FLAGS_IN();
   2602     PUSH32(esp, edi); /* 0x3803ED4C: push edi */
   2603     MEM32(edi + 0x4) = ebx; /* 0x3803ED4D: mov dword ptr [edi + 4], ebx */
   2604     MEM32(edi + 0x8) = ebx; /* 0x3803ED50: mov dword ptr [edi + 8], ebx */
   2605     MEM32(edi + 0xC) = ebx; /* 0x3803ED53: mov dword ptr [edi + 0xc], ebx */
   2606     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ED56: call 0x3804b4f6 */ /* not lifted */
   2607     RECOMP_FLAGS_IN();
   2608     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2609     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2610     esp = esp + 8; /* 0x3803ED5B: add esp, 8 */
   2611     _flag_k = FK_ADD;
   2612     MEM32(esi + 0x28) = ebx; /* 0x3803ED5E: mov dword ptr [esi + 0x28], ebx */
   2613 L_3803ED61:
   2614     edi = MEM32(esi + 0x24); /* 0x3803ED61: mov edi, dword ptr [esi + 0x24] */
   2615     /* cmp edi, ebx */ /* 0x3803ED64: cmp edi, ebx */
   2616     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2618     _flag_k = FK_CMP;
   2619     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803ED7B; /* 0x3803ED66: je 0x3803ed7b */
   2620 L_3803ED68:
   2621     ecx = edi; /* 0x3803ED68: mov ecx, edi */
   2622     RECOMP_ICALL(0x380265C0u); /* 0x3803ED6A: call 0x380265c0 */ /* not lifted */
   2623     RECOMP_FLAGS_IN();
   2624     PUSH32(esp, edi); /* 0x3803ED6F: push edi */
   2625     RECOMP_ICALL(0x3804B4F6u); /* 0x3803ED70: call 0x3804b4f6 */ /* not lifted */
   2626     RECOMP_FLAGS_IN();
   2627     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2628     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2629     esp = esp + 4; /* 0x3803ED75: add esp, 4 */
   2630     _flag_k = FK_ADD;
   2631     MEM32(esi + 0x24) = ebx; /* 0x3803ED78: mov dword ptr [esi + 0x24], ebx */
   2632 L_3803ED7B:
   2633     eax = MEM32(esi + 0x34); /* 0x3803ED7B: mov eax, dword ptr [esi + 0x34] */
   2634     edi = MEM32(esi + 0x30); /* 0x3803ED7E: mov edi, dword ptr [esi + 0x30] */
   2635     /* cmp edi, eax */ /* 0x3803ED81: cmp edi, eax */
   2636     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2638     _flag_k = FK_CMP;
   2639     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3803ED83: mov dword ptr [ebp - 4], 0xffffffff */
   2640     MEM32(ebp + (-0x10)) = eax; /* 0x3803ED8A: mov dword ptr [ebp - 0x10], eax */
   2641     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803EDA0; /* 0x3803ED8D: je 0x3803eda0 */
   2642 L_3803ED8F:
   2643     edx = MEM32(edi); /* 0x3803ED8F: mov edx, dword ptr [edi] */
   2644     PUSH32(esp, ebx); /* 0x3803ED91: push ebx */
   2645     ecx = edi; /* 0x3803ED92: mov ecx, edi */
   2646     RECOMP_ICALL(MEM32(edx)); /* 0x3803ED94: call dword ptr [edx] */
   2647     RECOMP_FLAGS_IN();
   2648     eax = MEM32(ebp + (-0x10)); /* 0x3803ED96: mov eax, dword ptr [ebp - 0x10] */
   2649     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x48u);
   2650     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2651     edi = edi + 0x48u; /* 0x3803ED99: add edi, 0x48 */
   2652     _flag_k = FK_ADD;
   2653     /* cmp edi, eax */ /* 0x3803ED9C: cmp edi, eax */
   2654     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2656     _flag_k = FK_CMP;
   2657     RECOMP_BACKEDGE();
   2658     if (CMP_NE(_flag_a, _flag_b)) goto L_3803ED8F; /* 0x3803ED9E: jne 0x3803ed8f */
   2659 L_3803EDA0:
   2660     eax = MEM32(esi + 0x30); /* 0x3803EDA0: mov eax, dword ptr [esi + 0x30] */
   2661     PUSH32(esp, eax); /* 0x3803EDA3: push eax */
   2662     RECOMP_ICALL(0x3804B4F6u); /* 0x3803EDA4: call 0x3804b4f6 */ /* not lifted */
   2663     RECOMP_FLAGS_IN();
   2664     ecx = MEM32(ebp + (-0xC)); /* 0x3803EDA9: mov ecx, dword ptr [ebp - 0xc] */
   2665     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2666     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2667     esp = esp + 4; /* 0x3803EDAC: add esp, 4 */
   2668     _flag_k = FK_ADD;
   2669     MEM32(esi + 0x30) = ebx; /* 0x3803EDAF: mov dword ptr [esi + 0x30], ebx */
   2670     MEM32(esi + 0x34) = ebx; /* 0x3803EDB2: mov dword ptr [esi + 0x34], ebx */
   2671     MEM32(esi + 0x38) = ebx; /* 0x3803EDB5: mov dword ptr [esi + 0x38], ebx */
   2672     edi = POP32_VAL(esp); /* 0x3803EDB8: pop edi */
   2673     esi = POP32_VAL(esp); /* 0x3803EDB9: pop esi */
   2674     ebx = POP32_VAL(esp); /* 0x3803EDBA: pop ebx */
   2675     MEM32(FS_BASE + (0)) = ecx; /* 0x3803EDBB: mov dword ptr fs:[0], ecx */
   2676     esp = ebp; /* 0x3803EDC2: mov esp, ebp */
   2677     ebp = POP32_VAL(esp); /* 0x3803EDC4: pop ebp */
   2678     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803EDC5: ret  */
   2679 L_3804CB20:
   2680     ecx = MEM32(ebp + (-0x10)); /* 0x3804CB20: mov ecx, dword ptr [ebp - 0x10] */
   2681     RECOMP_BACKEDGE();
   2682     goto L_3803EC60; /* 0x3804CB23: jmp 0x3803ec60 */
   2683     { RECOMP_REGS_OUT(); return; } /* end of function */
   2684     RECOMP_REGS_OUT();
   2685 }
   2686 
   2687 void sub_3804CB28(void) {
   2688     int _fpu_cmp = 0;
   2689     uint32_t _cf = 0;
   2690     int _df = 1;
   2691     uint32_t _flag_k = FK_NONE;
   2692     uint32_t _flag_a = 0, _flag_b = 0;
   2693     uint32_t _itail_tgt = 0;
   2694     RECOMP_REGS_LOCALS
   2695     RECOMP_ENTER(0x3804CB28u);
   2696 
   2697     goto L_3804CB28;
   2698 L_3804B67C:
   2699     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   2700 L_3804CB28:
   2701     eax = 0x380534A8u; /* 0x3804CB28: mov eax, 0x380534a8 */
   2702 L_3804CB2D:
   2703     RECOMP_BACKEDGE();
   2704     goto L_3804B67C; /* 0x3804CB2D: jmp 0x3804b67c */
   2705     { RECOMP_REGS_OUT(); return; } /* end of function */
   2706   _ljump:
   2707     switch (_itail_tgt) {
   2708       case 0x3804B67Cu: goto L_3804B67C;
   2709       case 0x3804CB28u: goto L_3804CB28;
   2710       case 0x3804CB2Du: goto L_3804CB2D;
   2711       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2712     }
   2713     RECOMP_REGS_OUT();
   2714 }
   2715 
   2716 void sub_3804CB40(void) {
   2717     int _fpu_cmp = 0;
   2718     uint32_t _cf = 0;
   2719     int _df = 1;
   2720     uint32_t _flag_k = FK_NONE;
   2721     uint32_t _flag_a = 0, _flag_b = 0;
   2722     uint32_t _itail_tgt = 0;
   2723     RECOMP_REGS_LOCALS
   2724     RECOMP_ENTER(0x3804CB40u);
   2725 
   2726 L_3804CB40:
   2727     eax = MEM32(ebp + (-0x24)); /* 0x3804CB40: mov eax, dword ptr [ebp - 0x24] */
   2728     PUSH32(esp, eax); /* 0x3804CB43: push eax */
   2729     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CB44: call 0x3804b4f6 */ /* not lifted */
   2730     RECOMP_FLAGS_IN();
   2731     ecx = POP32_VAL(esp); /* 0x3804CB49: pop ecx */
   2732     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CB4A: ret  */
   2733     RECOMP_REGS_OUT();
   2734 }
   2735 
   2736 void sub_3804CB4B(void) {
   2737     int _fpu_cmp = 0;
   2738     uint32_t _cf = 0;
   2739     int _df = 1;
   2740     uint32_t _flag_k = FK_NONE;
   2741     uint32_t _flag_a = 0, _flag_b = 0;
   2742     uint32_t _itail_tgt = 0;
   2743     RECOMP_REGS_LOCALS
   2744     RECOMP_ENTER(0x3804CB4Bu);
   2745 
   2746 L_3804CB4B:
   2747     eax = MEM32(ebp + (-0x24)); /* 0x3804CB4B: mov eax, dword ptr [ebp - 0x24] */
   2748     PUSH32(esp, eax); /* 0x3804CB4E: push eax */
   2749     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CB4F: call 0x3804b4f6 */ /* not lifted */
   2750     RECOMP_FLAGS_IN();
   2751     ecx = POP32_VAL(esp); /* 0x3804CB54: pop ecx */
   2752     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CB55: ret  */
   2753     RECOMP_REGS_OUT();
   2754 }
   2755 
   2756 void sub_3804CB56(void) {
   2757     int _fpu_cmp = 0;
   2758     uint32_t _cf = 0;
   2759     int _df = 1;
   2760     uint32_t _flag_k = FK_NONE;
   2761     uint32_t _flag_a = 0, _flag_b = 0;
   2762     uint32_t _itail_tgt = 0;
   2763     RECOMP_REGS_LOCALS
   2764     RECOMP_ENTER(0x3804CB56u);
   2765 
   2766 L_3804CB56:
   2767     eax = MEM32(ebp + (-0x24)); /* 0x3804CB56: mov eax, dword ptr [ebp - 0x24] */
   2768     PUSH32(esp, eax); /* 0x3804CB59: push eax */
   2769     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CB5A: call 0x3804b4f6 */ /* not lifted */
   2770     RECOMP_FLAGS_IN();
   2771     ecx = POP32_VAL(esp); /* 0x3804CB5F: pop ecx */
   2772     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CB60: ret  */
   2773     RECOMP_REGS_OUT();
   2774 }
   2775 
   2776 void sub_3804CB61(void) {
   2777     int _fpu_cmp = 0;
   2778     uint32_t _cf = 0;
   2779     int _df = 1;
   2780     uint32_t _flag_k = FK_NONE;
   2781     uint32_t _flag_a = 0, _flag_b = 0;
   2782     uint32_t _itail_tgt = 0;
   2783     RECOMP_REGS_LOCALS
   2784     RECOMP_ENTER(0x3804CB61u);
   2785 
   2786     goto L_3804CB61;
   2787 L_3804B67C:
   2788     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   2789 L_3804CB61:
   2790     eax = 0x380534D0u; /* 0x3804CB61: mov eax, 0x380534d0 */
   2791 L_3804CB66:
   2792     RECOMP_BACKEDGE();
   2793     goto L_3804B67C; /* 0x3804CB66: jmp 0x3804b67c */
   2794     { RECOMP_REGS_OUT(); return; } /* end of function */
   2795   _ljump:
   2796     switch (_itail_tgt) {
   2797       case 0x3804B67Cu: goto L_3804B67C;
   2798       case 0x3804CB61u: goto L_3804CB61;
   2799       case 0x3804CB66u: goto L_3804CB66;
   2800       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2801     }
   2802     RECOMP_REGS_OUT();
   2803 }
   2804 
   2805 void sub_3804CB70(void) {
   2806     int _fpu_cmp = 0;
   2807     uint32_t _cf = 0;
   2808     int _df = 1;
   2809     uint32_t _flag_k = FK_NONE;
   2810     uint32_t _flag_a = 0, _flag_b = 0;
   2811     uint32_t _itail_tgt = 0;
   2812     RECOMP_REGS_LOCALS
   2813     RECOMP_ENTER(0x3804CB70u);
   2814 
   2815 L_3804CB70:
   2816     eax = MEM32(ebp + (-0x24)); /* 0x3804CB70: mov eax, dword ptr [ebp - 0x24] */
   2817     PUSH32(esp, eax); /* 0x3804CB73: push eax */
   2818     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CB74: call 0x3804b4f6 */ /* not lifted */
   2819     RECOMP_FLAGS_IN();
   2820     ecx = POP32_VAL(esp); /* 0x3804CB79: pop ecx */
   2821     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CB7A: ret  */
   2822     RECOMP_REGS_OUT();
   2823 }
   2824 
   2825 void sub_3804CB7B(void) {
   2826     int _fpu_cmp = 0;
   2827     uint32_t _cf = 0;
   2828     int _df = 1;
   2829     uint32_t _flag_k = FK_NONE;
   2830     uint32_t _flag_a = 0, _flag_b = 0;
   2831     uint32_t _itail_tgt = 0;
   2832     RECOMP_REGS_LOCALS
   2833     RECOMP_ENTER(0x3804CB7Bu);
   2834 
   2835 L_3804CB7B:
   2836     eax = MEM32(ebp + (-0x24)); /* 0x3804CB7B: mov eax, dword ptr [ebp - 0x24] */
   2837     PUSH32(esp, eax); /* 0x3804CB7E: push eax */
   2838     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CB7F: call 0x3804b4f6 */ /* not lifted */
   2839     RECOMP_FLAGS_IN();
   2840     ecx = POP32_VAL(esp); /* 0x3804CB84: pop ecx */
   2841     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CB85: ret  */
   2842     RECOMP_REGS_OUT();
   2843 }
   2844 
   2845 void sub_3804CB86(void) {
   2846     int _fpu_cmp = 0;
   2847     uint32_t _cf = 0;
   2848     int _df = 1;
   2849     uint32_t _flag_k = FK_NONE;
   2850     uint32_t _flag_a = 0, _flag_b = 0;
   2851     uint32_t _itail_tgt = 0;
   2852     RECOMP_REGS_LOCALS
   2853     RECOMP_ENTER(0x3804CB86u);
   2854 
   2855 L_3804CB86:
   2856     eax = MEM32(ebp + (-0x24)); /* 0x3804CB86: mov eax, dword ptr [ebp - 0x24] */
   2857     PUSH32(esp, eax); /* 0x3804CB89: push eax */
   2858     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CB8A: call 0x3804b4f6 */ /* not lifted */
   2859     RECOMP_FLAGS_IN();
   2860     ecx = POP32_VAL(esp); /* 0x3804CB8F: pop ecx */
   2861     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CB90: ret  */
   2862     RECOMP_REGS_OUT();
   2863 }
   2864 
   2865 void sub_3804CB91(void) {
   2866     int _fpu_cmp = 0;
   2867     uint32_t _cf = 0;
   2868     int _df = 1;
   2869     uint32_t _flag_k = FK_NONE;
   2870     uint32_t _flag_a = 0, _flag_b = 0;
   2871     uint32_t _itail_tgt = 0;
   2872     RECOMP_REGS_LOCALS
   2873     RECOMP_ENTER(0x3804CB91u);
   2874 
   2875     goto L_3804CB91;
   2876 L_3804B67C:
   2877     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   2878 L_3804CB91:
   2879     eax = 0x38053508u; /* 0x3804CB91: mov eax, 0x38053508 */
   2880 L_3804CB96:
   2881     RECOMP_BACKEDGE();
   2882     goto L_3804B67C; /* 0x3804CB96: jmp 0x3804b67c */
   2883     { RECOMP_REGS_OUT(); return; } /* end of function */
   2884   _ljump:
   2885     switch (_itail_tgt) {
   2886       case 0x3804B67Cu: goto L_3804B67C;
   2887       case 0x3804CB91u: goto L_3804CB91;
   2888       case 0x3804CB96u: goto L_3804CB96;
   2889       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2890     }
   2891     RECOMP_REGS_OUT();
   2892 }
   2893 
   2894 void sub_3804CBA0(void) {
   2895     int _fpu_cmp = 0;
   2896     uint32_t _cf = 0;
   2897     int _df = 1;
   2898     uint32_t _flag_k = FK_NONE;
   2899     uint32_t _flag_a = 0, _flag_b = 0;
   2900     uint32_t _itail_tgt = 0;
   2901     RECOMP_REGS_LOCALS
   2902     RECOMP_ENTER(0x3804CBA0u);
   2903 
   2904 L_3804CBA0:
   2905     eax = MEM32(ebp + (-0x14)); /* 0x3804CBA0: mov eax, dword ptr [ebp - 0x14] */
   2906     PUSH32(esp, eax); /* 0x3804CBA3: push eax */
   2907     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CBA4: call 0x3804b4f6 */ /* not lifted */
   2908     RECOMP_FLAGS_IN();
   2909     ecx = POP32_VAL(esp); /* 0x3804CBA9: pop ecx */
   2910     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CBAA: ret  */
   2911     RECOMP_REGS_OUT();
   2912 }
   2913 
   2914 void sub_3804CBAB(void) {
   2915     int _fpu_cmp = 0;
   2916     uint32_t _cf = 0;
   2917     int _df = 1;
   2918     uint32_t _flag_k = FK_NONE;
   2919     uint32_t _flag_a = 0, _flag_b = 0;
   2920     uint32_t _itail_tgt = 0;
   2921     RECOMP_REGS_LOCALS
   2922     RECOMP_ENTER(0x3804CBABu);
   2923 
   2924 L_3804CBAB:
   2925     eax = MEM32(ebp + (-0x14)); /* 0x3804CBAB: mov eax, dword ptr [ebp - 0x14] */
   2926     PUSH32(esp, eax); /* 0x3804CBAE: push eax */
   2927     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CBAF: call 0x3804b4f6 */ /* not lifted */
   2928     RECOMP_FLAGS_IN();
   2929     ecx = POP32_VAL(esp); /* 0x3804CBB4: pop ecx */
   2930     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CBB5: ret  */
   2931     RECOMP_REGS_OUT();
   2932 }
   2933 
   2934 void sub_3804CBB6(void) {
   2935     int _fpu_cmp = 0;
   2936     uint32_t _cf = 0;
   2937     int _df = 1;
   2938     uint32_t _flag_k = FK_NONE;
   2939     uint32_t _flag_a = 0, _flag_b = 0;
   2940     uint32_t _itail_tgt = 0;
   2941     RECOMP_REGS_LOCALS
   2942     RECOMP_ENTER(0x3804CBB6u);
   2943 
   2944     goto L_3804CBB6;
   2945 L_3804B67C:
   2946     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   2947 L_3804CBB6:
   2948     eax = 0x38053540u; /* 0x3804CBB6: mov eax, 0x38053540 */
   2949 L_3804CBBB:
   2950     RECOMP_BACKEDGE();
   2951     goto L_3804B67C; /* 0x3804CBBB: jmp 0x3804b67c */
   2952     { RECOMP_REGS_OUT(); return; } /* end of function */
   2953   _ljump:
   2954     switch (_itail_tgt) {
   2955       case 0x3804B67Cu: goto L_3804B67C;
   2956       case 0x3804CBB6u: goto L_3804CBB6;
   2957       case 0x3804CBBBu: goto L_3804CBBB;
   2958       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2959     }
   2960     RECOMP_REGS_OUT();
   2961 }
   2962 
   2963 void sub_3804CBC0(void) {
   2964     int _fpu_cmp = 0;
   2965     uint32_t _cf = 0;
   2966     int _df = 1;
   2967     uint32_t _flag_k = FK_NONE;
   2968     uint32_t _flag_a = 0, _flag_b = 0;
   2969     uint32_t _itail_tgt = 0;
   2970     RECOMP_REGS_LOCALS
   2971     RECOMP_ENTER(0x3804CBC0u);
   2972 
   2973 L_3804CBC0:
   2974     eax = MEM32(ebp + 0xC); /* 0x3804CBC0: mov eax, dword ptr [ebp + 0xc] */
   2975     PUSH32(esp, eax); /* 0x3804CBC3: push eax */
   2976     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CBC4: call 0x3804b4f6 */ /* not lifted */
   2977     RECOMP_FLAGS_IN();
   2978     ecx = POP32_VAL(esp); /* 0x3804CBC9: pop ecx */
   2979     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CBCA: ret  */
   2980     RECOMP_REGS_OUT();
   2981 }
   2982 
   2983 void sub_3804CBCB(void) {
   2984     int _fpu_cmp = 0;
   2985     uint32_t _cf = 0;
   2986     int _df = 1;
   2987     uint32_t _flag_k = FK_NONE;
   2988     uint32_t _flag_a = 0, _flag_b = 0;
   2989     uint32_t _itail_tgt = 0;
   2990     RECOMP_REGS_LOCALS
   2991     RECOMP_ENTER(0x3804CBCBu);
   2992 
   2993     goto L_3804CBCB;
   2994 L_3804B67C:
   2995     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   2996 L_3804CBCB:
   2997     eax = 0x38053570u; /* 0x3804CBCB: mov eax, 0x38053570 */
   2998 L_3804CBD0:
   2999     RECOMP_BACKEDGE();
   3000     goto L_3804B67C; /* 0x3804CBD0: jmp 0x3804b67c */
   3001     { RECOMP_REGS_OUT(); return; } /* end of function */
   3002   _ljump:
   3003     switch (_itail_tgt) {
   3004       case 0x3804B67Cu: goto L_3804B67C;
   3005       case 0x3804CBCBu: goto L_3804CBCB;
   3006       case 0x3804CBD0u: goto L_3804CBD0;
   3007       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3008     }
   3009     RECOMP_REGS_OUT();
   3010 }
   3011 
   3012 void sub_3804CBE0(void) {
   3013     int _fpu_cmp = 0;
   3014     uint32_t _cf = 0;
   3015     int _df = 1;
   3016     uint32_t _flag_k = FK_NONE;
   3017     uint32_t _flag_a = 0, _flag_b = 0;
   3018     uint32_t _itail_tgt = 0;
   3019     RECOMP_REGS_LOCALS
   3020     RECOMP_ENTER(0x3804CBE0u);
   3021 
   3022     goto L_3804CBE0;
   3023 L_38016110:
   3024     eax = MEM32(0x3804E7B0); /* 0x38016110: mov eax, dword ptr [0x3804e7b0] */
   3025 L_38016115:
   3026     MEM32(ecx) = eax; /* 0x38016115: mov dword ptr [ecx], eax */
   3027 L_38016117:
   3028     { _itail_tgt = (uint32_t)(MEM32(0x3804E7B4)); goto _ljump; }
   3029 L_3804CBE0:
   3030     ecx = MEM32(ebp + (-0x10)); /* 0x3804CBE0: mov ecx, dword ptr [ebp - 0x10] */
   3031 L_3804CBE3:
   3032     RECOMP_BACKEDGE();
   3033     goto L_38016110; /* 0x3804CBE3: jmp 0x38016110 */
   3034     { RECOMP_REGS_OUT(); return; } /* end of function */
   3035   _ljump:
   3036     switch (_itail_tgt) {
   3037       case 0x38016110u: goto L_38016110;
   3038       case 0x38016115u: goto L_38016115;
   3039       case 0x38016117u: goto L_38016117;
   3040       case 0x3804CBE0u: goto L_3804CBE0;
   3041       case 0x3804CBE3u: goto L_3804CBE3;
   3042       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3043     }
   3044     RECOMP_REGS_OUT();
   3045 }
   3046 
   3047 void sub_3804CBE8(void) {
   3048     int _fpu_cmp = 0;
   3049     uint32_t _cf = 0;
   3050     int _df = 1;
   3051     uint32_t _flag_k = FK_NONE;
   3052     uint32_t _flag_a = 0, _flag_b = 0;
   3053     uint32_t _itail_tgt = 0;
   3054     RECOMP_REGS_LOCALS
   3055     RECOMP_ENTER(0x3804CBE8u);
   3056 
   3057 L_3804CBE8:
   3058     eax = MEM32(ebp + 0xC); /* 0x3804CBE8: mov eax, dword ptr [ebp + 0xc] */
   3059     PUSH32(esp, eax); /* 0x3804CBEB: push eax */
   3060     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CBEC: call 0x3804b4f6 */ /* not lifted */
   3061     RECOMP_FLAGS_IN();
   3062     ecx = POP32_VAL(esp); /* 0x3804CBF1: pop ecx */
   3063     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CBF2: ret  */
   3064     RECOMP_REGS_OUT();
   3065 }
   3066 
   3067 void sub_3804CBF3(void) {
   3068     int _fpu_cmp = 0;
   3069     uint32_t _cf = 0;
   3070     int _df = 1;
   3071     uint32_t _flag_k = FK_NONE;
   3072     uint32_t _flag_a = 0, _flag_b = 0;
   3073     uint32_t _itail_tgt = 0;
   3074     RECOMP_REGS_LOCALS
   3075     RECOMP_ENTER(0x3804CBF3u);
   3076 
   3077 L_3804CBF3:
   3078     eax = MEM32(ebp + 0xC); /* 0x3804CBF3: mov eax, dword ptr [ebp + 0xc] */
   3079     PUSH32(esp, eax); /* 0x3804CBF6: push eax */
   3080     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CBF7: call 0x3804b4f6 */ /* not lifted */
   3081     RECOMP_FLAGS_IN();
   3082     ecx = POP32_VAL(esp); /* 0x3804CBFC: pop ecx */
   3083     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CBFD: ret  */
   3084     RECOMP_REGS_OUT();
   3085 }
   3086 
   3087 void sub_3804CBFE(void) {
   3088     int _fpu_cmp = 0;
   3089     uint32_t _cf = 0;
   3090     int _df = 1;
   3091     uint32_t _flag_k = FK_NONE;
   3092     uint32_t _flag_a = 0, _flag_b = 0;
   3093     uint32_t _itail_tgt = 0;
   3094     RECOMP_REGS_LOCALS
   3095     RECOMP_ENTER(0x3804CBFEu);
   3096 
   3097     goto L_3804CBFE;
   3098 L_3804B67C:
   3099     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   3100 L_3804CBFE:
   3101     eax = 0x38053598u; /* 0x3804CBFE: mov eax, 0x38053598 */
   3102 L_3804CC03:
   3103     RECOMP_BACKEDGE();
   3104     goto L_3804B67C; /* 0x3804CC03: jmp 0x3804b67c */
   3105     { RECOMP_REGS_OUT(); return; } /* end of function */
   3106   _ljump:
   3107     switch (_itail_tgt) {
   3108       case 0x3804B67Cu: goto L_3804B67C;
   3109       case 0x3804CBFEu: goto L_3804CBFE;
   3110       case 0x3804CC03u: goto L_3804CC03;
   3111       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3112     }
   3113     RECOMP_REGS_OUT();
   3114 }
   3115 
   3116 void sub_3804CC10(void) {
   3117     int _fpu_cmp = 0;
   3118     uint32_t _cf = 0;
   3119     int _df = 1;
   3120     uint32_t _flag_k = FK_NONE;
   3121     uint32_t _flag_a = 0, _flag_b = 0;
   3122     uint32_t _itail_tgt = 0;
   3123     RECOMP_REGS_LOCALS
   3124     RECOMP_ENTER(0x3804CC10u);
   3125 
   3126     goto L_3804CC10;
   3127 L_38016110:
   3128     eax = MEM32(0x3804E7B0); /* 0x38016110: mov eax, dword ptr [0x3804e7b0] */
   3129 L_38016115:
   3130     MEM32(ecx) = eax; /* 0x38016115: mov dword ptr [ecx], eax */
   3131 L_38016117:
   3132     { _itail_tgt = (uint32_t)(MEM32(0x3804E7B4)); goto _ljump; }
   3133 L_3804CC10:
   3134     ecx = MEM32(ebp + (-0x10)); /* 0x3804CC10: mov ecx, dword ptr [ebp - 0x10] */
   3135 L_3804CC13:
   3136     RECOMP_BACKEDGE();
   3137     goto L_38016110; /* 0x3804CC13: jmp 0x38016110 */
   3138     { RECOMP_REGS_OUT(); return; } /* end of function */
   3139   _ljump:
   3140     switch (_itail_tgt) {
   3141       case 0x38016110u: goto L_38016110;
   3142       case 0x38016115u: goto L_38016115;
   3143       case 0x38016117u: goto L_38016117;
   3144       case 0x3804CC10u: goto L_3804CC10;
   3145       case 0x3804CC13u: goto L_3804CC13;
   3146       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3147     }
   3148     RECOMP_REGS_OUT();
   3149 }
   3150 
   3151 void sub_3804CC18(void) {
   3152     int _fpu_cmp = 0;
   3153     uint32_t _cf = 0;
   3154     int _df = 1;
   3155     uint32_t _flag_k = FK_NONE;
   3156     uint32_t _flag_a = 0, _flag_b = 0;
   3157     uint32_t _itail_tgt = 0;
   3158     RECOMP_REGS_LOCALS
   3159     RECOMP_ENTER(0x3804CC18u);
   3160 
   3161     goto L_3804CC18;
   3162 L_3804B67C:
   3163     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   3164 L_3804CC18:
   3165     eax = 0x380535D0u; /* 0x3804CC18: mov eax, 0x380535d0 */
   3166 L_3804CC1D:
   3167     RECOMP_BACKEDGE();
   3168     goto L_3804B67C; /* 0x3804CC1D: jmp 0x3804b67c */
   3169     { RECOMP_REGS_OUT(); return; } /* end of function */
   3170   _ljump:
   3171     switch (_itail_tgt) {
   3172       case 0x3804B67Cu: goto L_3804B67C;
   3173       case 0x3804CC18u: goto L_3804CC18;
   3174       case 0x3804CC1Du: goto L_3804CC1D;
   3175       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3176     }
   3177     RECOMP_REGS_OUT();
   3178 }
   3179 
   3180 void sub_3804CC30(void) {
   3181     int _fpu_cmp = 0;
   3182     uint32_t _cf = 0;
   3183     int _df = 1;
   3184     uint32_t _flag_k = FK_NONE;
   3185     uint32_t _flag_a = 0, _flag_b = 0;
   3186     uint32_t _itail_tgt = 0;
   3187     RECOMP_REGS_LOCALS
   3188     RECOMP_ENTER(0x3804CC30u);
   3189 
   3190 L_3804CC30:
   3191     eax = MEM32(ebp + (-0x10)); /* 0x3804CC30: mov eax, dword ptr [ebp - 0x10] */
   3192     PUSH32(esp, eax); /* 0x3804CC33: push eax */
   3193     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CC34: call 0x3804b4f6 */ /* not lifted */
   3194     RECOMP_FLAGS_IN();
   3195     ecx = POP32_VAL(esp); /* 0x3804CC39: pop ecx */
   3196     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CC3A: ret  */
   3197     RECOMP_REGS_OUT();
   3198 }
   3199 
   3200 void sub_3804CC3B(void) {
   3201     int _fpu_cmp = 0;
   3202     uint32_t _cf = 0;
   3203     int _df = 1;
   3204     uint32_t _flag_k = FK_NONE;
   3205     uint32_t _flag_a = 0, _flag_b = 0;
   3206     uint32_t _itail_tgt = 0;
   3207     RECOMP_REGS_LOCALS
   3208     RECOMP_ENTER(0x3804CC3Bu);
   3209 
   3210     goto L_3804CC3B;
   3211 L_3804B67C:
   3212     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   3213 L_3804CC3B:
   3214     eax = 0x380535F8u; /* 0x3804CC3B: mov eax, 0x380535f8 */
   3215 L_3804CC40:
   3216     RECOMP_BACKEDGE();
   3217     goto L_3804B67C; /* 0x3804CC40: jmp 0x3804b67c */
   3218     { RECOMP_REGS_OUT(); return; } /* end of function */
   3219   _ljump:
   3220     switch (_itail_tgt) {
   3221       case 0x3804B67Cu: goto L_3804B67C;
   3222       case 0x3804CC3Bu: goto L_3804CC3B;
   3223       case 0x3804CC40u: goto L_3804CC40;
   3224       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3225     }
   3226     RECOMP_REGS_OUT();
   3227 }
   3228 
   3229 void sub_3804CC50(void) {
   3230     int _fpu_cmp = 0;
   3231     uint32_t _cf = 0;
   3232     int _df = 1;
   3233     uint32_t _flag_k = FK_NONE;
   3234     uint32_t _flag_a = 0, _flag_b = 0;
   3235     uint32_t _itail_tgt = 0;
   3236     RECOMP_REGS_LOCALS
   3237     RECOMP_ENTER(0x3804CC50u);
   3238 
   3239 L_3804CC50:
   3240     eax = MEM32(ebp + (-0x10)); /* 0x3804CC50: mov eax, dword ptr [ebp - 0x10] */
   3241     PUSH32(esp, eax); /* 0x3804CC53: push eax */
   3242     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CC54: call 0x3804b4f6 */ /* not lifted */
   3243     RECOMP_FLAGS_IN();
   3244     ecx = POP32_VAL(esp); /* 0x3804CC59: pop ecx */
   3245     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CC5A: ret  */
   3246     RECOMP_REGS_OUT();
   3247 }
   3248 
   3249 void sub_3804CC5B(void) {
   3250     int _fpu_cmp = 0;
   3251     uint32_t _cf = 0;
   3252     int _df = 1;
   3253     uint32_t _flag_k = FK_NONE;
   3254     uint32_t _flag_a = 0, _flag_b = 0;
   3255     uint32_t _itail_tgt = 0;
   3256     RECOMP_REGS_LOCALS
   3257     RECOMP_ENTER(0x3804CC5Bu);
   3258 
   3259     goto L_3804CC5B;
   3260 L_3804B67C:
   3261     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   3262 L_3804CC5B:
   3263     eax = 0x38053620u; /* 0x3804CC5B: mov eax, 0x38053620 */
   3264 L_3804CC60:
   3265     RECOMP_BACKEDGE();
   3266     goto L_3804B67C; /* 0x3804CC60: jmp 0x3804b67c */
   3267     { RECOMP_REGS_OUT(); return; } /* end of function */
   3268   _ljump:
   3269     switch (_itail_tgt) {
   3270       case 0x3804B67Cu: goto L_3804B67C;
   3271       case 0x3804CC5Bu: goto L_3804CC5B;
   3272       case 0x3804CC60u: goto L_3804CC60;
   3273       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3274     }
   3275     RECOMP_REGS_OUT();
   3276 }
   3277 
   3278 void sub_3804CC70(void) {
   3279     int _fpu_cmp = 0;
   3280     uint32_t _cf = 0;
   3281     int _df = 1;
   3282     uint32_t _flag_k = FK_NONE;
   3283     uint32_t _flag_a = 0, _flag_b = 0;
   3284     uint32_t _itail_tgt = 0;
   3285     RECOMP_REGS_LOCALS
   3286     RECOMP_ENTER(0x3804CC70u);
   3287 
   3288     goto L_3804CC70;
   3289 L_3801B550:
   3290     MEM32(ecx) = 0x3804F0B4u; /* 0x3801B550: mov dword ptr [ecx], 0x3804f0b4 */
   3291 L_3801B556:
   3292     { _itail_tgt = (uint32_t)(MEM32(0x3804E454)); goto _ljump; }
   3293 L_3804CC70:
   3294     ecx = MEM32(ebp + (-0x14)); /* 0x3804CC70: mov ecx, dword ptr [ebp - 0x14] */
   3295 L_3804CC73:
   3296     RECOMP_BACKEDGE();
   3297     goto L_3801B550; /* 0x3804CC73: jmp 0x3801b550 */
   3298     { RECOMP_REGS_OUT(); return; } /* end of function */
   3299   _ljump:
   3300     switch (_itail_tgt) {
   3301       case 0x3801B550u: goto L_3801B550;
   3302       case 0x3801B556u: goto L_3801B556;
   3303       case 0x3804CC70u: goto L_3804CC70;
   3304       case 0x3804CC73u: goto L_3804CC73;
   3305       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3306     }
   3307     RECOMP_REGS_OUT();
   3308 }
   3309 
   3310 void sub_3804CC78(void) {
   3311     int _fpu_cmp = 0;
   3312     uint32_t _cf = 0;
   3313     int _df = 1;
   3314     uint32_t _flag_k = FK_NONE;
   3315     uint32_t _flag_a = 0, _flag_b = 0;
   3316     uint32_t _itail_tgt = 0;
   3317     RECOMP_REGS_LOCALS
   3318     RECOMP_ENTER(0x3804CC78u);
   3319 
   3320     goto L_3804CC78;
   3321 L_3801E660:
   3322     PUSH32(esp, ebp); /* 0x3801E660: push ebp */
   3323     ebp = esp; /* 0x3801E661: mov ebp, esp */
   3324     PUSH32(esp, ecx); /* 0x3801E663: push ecx */
   3325     PUSH32(esp, edi); /* 0x3801E664: push edi */
   3326     edi = MEM32(ecx + 0x4); /* 0x3801E665: mov edi, dword ptr [ecx + 4] */
   3327     /* test edi, edi */ /* 0x3801E668: test edi, edi */
   3328     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3329     _cf = 0;
   3330     _flag_k = FK_TEST;
   3331     MEM32(ebp + (-0x4)) = ecx; /* 0x3801E66A: mov dword ptr [ebp - 4], ecx */
   3332     MEM32(ecx) = 0x3804E7D4u; /* 0x3801E66D: mov dword ptr [ecx], 0x3804e7d4 */
   3333     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E6BB; /* 0x3801E673: je 0x3801e6bb */
   3334 L_3801E675:
   3335     PUSH32(esp, ebx); /* 0x3801E675: push ebx */
   3336     ebx = MEM32(edi + 0x8); /* 0x3801E676: mov ebx, dword ptr [edi + 8] */
   3337     PUSH32(esp, esi); /* 0x3801E679: push esi */
   3338     esi = MEM32(edi + 0x4); /* 0x3801E67A: mov esi, dword ptr [edi + 4] */
   3339     /* cmp esi, ebx */ /* 0x3801E67D: cmp esi, ebx */
   3340     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3341     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3342     _flag_k = FK_CMP;
   3343     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E691; /* 0x3801E67F: je 0x3801e691 */
   3344 L_3801E681:
   3345     eax = MEM32(esi); /* 0x3801E681: mov eax, dword ptr [esi] */
   3346     PUSH32(esp, 0); /* 0x3801E683: push 0 */
   3347     ecx = esi; /* 0x3801E685: mov ecx, esi */
   3348     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3801E687: call dword ptr [eax + 0xc] */
   3349     RECOMP_FLAGS_IN();
   3350     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   3351     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3352     esi = esi + 8; /* 0x3801E68A: add esi, 8 */
   3353     _flag_k = FK_ADD;
   3354     /* cmp esi, ebx */ /* 0x3801E68D: cmp esi, ebx */
   3355     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3357     _flag_k = FK_CMP;
   3358     RECOMP_BACKEDGE();
   3359     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E681; /* 0x3801E68F: jne 0x3801e681 */
   3360 L_3801E691:
   3361     ecx = MEM32(edi + 0x4); /* 0x3801E691: mov ecx, dword ptr [edi + 4] */
   3362     PUSH32(esp, ecx); /* 0x3801E694: push ecx */
   3363     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E695: call 0x3804b4f6 */ /* not lifted */
   3364     RECOMP_FLAGS_IN();
   3365     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3366     esi = 0; /* 0x3801E69A: xor esi, esi */
   3367     _cf = 0;
   3368     _flag_k = FK_TEST;
   3369     PUSH32(esp, edi); /* 0x3801E69C: push edi */
   3370     MEM32(edi + 0x4) = esi; /* 0x3801E69D: mov dword ptr [edi + 4], esi */
   3371     MEM32(edi + 0x8) = esi; /* 0x3801E6A0: mov dword ptr [edi + 8], esi */
   3372     MEM32(edi + 0xC) = esi; /* 0x3801E6A3: mov dword ptr [edi + 0xc], esi */
   3373     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E6A6: call 0x3804b4f6 */ /* not lifted */
   3374     RECOMP_FLAGS_IN();
   3375     edx = MEM32(ebp + (-0x4)); /* 0x3801E6AB: mov edx, dword ptr [ebp - 4] */
   3376     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3377     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3378     esp = esp + 8; /* 0x3801E6AE: add esp, 8 */
   3379     _flag_k = FK_ADD;
   3380     MEM32(edx + 0x4) = esi; /* 0x3801E6B1: mov dword ptr [edx + 4], esi */
   3381     esi = POP32_VAL(esp); /* 0x3801E6B4: pop esi */
   3382     ebx = POP32_VAL(esp); /* 0x3801E6B5: pop ebx */
   3383     edi = POP32_VAL(esp); /* 0x3801E6B6: pop edi */
   3384     esp = ebp; /* 0x3801E6B7: mov esp, ebp */
   3385     ebp = POP32_VAL(esp); /* 0x3801E6B9: pop ebp */
   3386     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E6BA: ret  */
   3387 L_3801E6BB:
   3388     MEM32(ecx + 0x4) = 0; /* 0x3801E6BB: mov dword ptr [ecx + 4], 0 */
   3389     edi = POP32_VAL(esp); /* 0x3801E6C2: pop edi */
   3390     esp = ebp; /* 0x3801E6C3: mov esp, ebp */
   3391     ebp = POP32_VAL(esp); /* 0x3801E6C5: pop ebp */
   3392     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E6C6: ret  */
   3393 L_3804CC78:
   3394     ecx = MEM32(ebp + (-0x14)); /* 0x3804CC78: mov ecx, dword ptr [ebp - 0x14] */
   3395     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Cu);
   3396     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3397     ecx = ecx + 0x1Cu; /* 0x3804CC7B: add ecx, 0x1c */
   3398     _flag_k = FK_ADD;
   3399     RECOMP_BACKEDGE();
   3400     goto L_3801E660; /* 0x3804CC7E: jmp 0x3801e660 */
   3401     { RECOMP_REGS_OUT(); return; } /* end of function */
   3402     RECOMP_REGS_OUT();
   3403 }
   3404 
   3405 void sub_3804CC83(void) {
   3406     int _fpu_cmp = 0;
   3407     uint32_t _cf = 0;
   3408     int _df = 1;
   3409     uint32_t _flag_k = FK_NONE;
   3410     uint32_t _flag_a = 0, _flag_b = 0;
   3411     uint32_t _itail_tgt = 0;
   3412     RECOMP_REGS_LOCALS
   3413     RECOMP_ENTER(0x3804CC83u);
   3414 
   3415     goto L_3804CC83;
   3416 L_3804B67C:
   3417     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   3418 L_3804CC83:
   3419     eax = 0x38053648u; /* 0x3804CC83: mov eax, 0x38053648 */
   3420 L_3804CC88:
   3421     RECOMP_BACKEDGE();
   3422     goto L_3804B67C; /* 0x3804CC88: jmp 0x3804b67c */
   3423     { RECOMP_REGS_OUT(); return; } /* end of function */
   3424   _ljump:
   3425     switch (_itail_tgt) {
   3426       case 0x3804B67Cu: goto L_3804B67C;
   3427       case 0x3804CC83u: goto L_3804CC83;
   3428       case 0x3804CC88u: goto L_3804CC88;
   3429       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3430     }
   3431     RECOMP_REGS_OUT();
   3432 }
   3433 
   3434 void sub_3804CC90(void) {
   3435     int _fpu_cmp = 0;
   3436     uint32_t _cf = 0;
   3437     int _df = 1;
   3438     uint32_t _flag_k = FK_NONE;
   3439     uint32_t _flag_a = 0, _flag_b = 0;
   3440     uint32_t _itail_tgt = 0;
   3441     RECOMP_REGS_LOCALS
   3442     RECOMP_ENTER(0x3804CC90u);
   3443 
   3444     goto L_3804CC90;
   3445 L_3801B550:
   3446     MEM32(ecx) = 0x3804F0B4u; /* 0x3801B550: mov dword ptr [ecx], 0x3804f0b4 */
   3447 L_3801B556:
   3448     { _itail_tgt = (uint32_t)(MEM32(0x3804E454)); goto _ljump; }
   3449 L_3804CC90:
   3450     ecx = MEM32(ebp + (-0x14)); /* 0x3804CC90: mov ecx, dword ptr [ebp - 0x14] */
   3451 L_3804CC93:
   3452     RECOMP_BACKEDGE();
   3453     goto L_3801B550; /* 0x3804CC93: jmp 0x3801b550 */
   3454     { RECOMP_REGS_OUT(); return; } /* end of function */
   3455   _ljump:
   3456     switch (_itail_tgt) {
   3457       case 0x3801B550u: goto L_3801B550;
   3458       case 0x3801B556u: goto L_3801B556;
   3459       case 0x3804CC90u: goto L_3804CC90;
   3460       case 0x3804CC93u: goto L_3804CC93;
   3461       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3462     }
   3463     RECOMP_REGS_OUT();
   3464 }
   3465 
   3466 void sub_3804CC98(void) {
   3467     int _fpu_cmp = 0;
   3468     uint32_t _cf = 0;
   3469     int _df = 1;
   3470     uint32_t _flag_k = FK_NONE;
   3471     uint32_t _flag_a = 0, _flag_b = 0;
   3472     uint32_t _itail_tgt = 0;
   3473     RECOMP_REGS_LOCALS
   3474     RECOMP_ENTER(0x3804CC98u);
   3475 
   3476     goto L_3804CC98;
   3477 L_3801E660:
   3478     PUSH32(esp, ebp); /* 0x3801E660: push ebp */
   3479     ebp = esp; /* 0x3801E661: mov ebp, esp */
   3480     PUSH32(esp, ecx); /* 0x3801E663: push ecx */
   3481     PUSH32(esp, edi); /* 0x3801E664: push edi */
   3482     edi = MEM32(ecx + 0x4); /* 0x3801E665: mov edi, dword ptr [ecx + 4] */
   3483     /* test edi, edi */ /* 0x3801E668: test edi, edi */
   3484     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3485     _cf = 0;
   3486     _flag_k = FK_TEST;
   3487     MEM32(ebp + (-0x4)) = ecx; /* 0x3801E66A: mov dword ptr [ebp - 4], ecx */
   3488     MEM32(ecx) = 0x3804E7D4u; /* 0x3801E66D: mov dword ptr [ecx], 0x3804e7d4 */
   3489     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E6BB; /* 0x3801E673: je 0x3801e6bb */
   3490 L_3801E675:
   3491     PUSH32(esp, ebx); /* 0x3801E675: push ebx */
   3492     ebx = MEM32(edi + 0x8); /* 0x3801E676: mov ebx, dword ptr [edi + 8] */
   3493     PUSH32(esp, esi); /* 0x3801E679: push esi */
   3494     esi = MEM32(edi + 0x4); /* 0x3801E67A: mov esi, dword ptr [edi + 4] */
   3495     /* cmp esi, ebx */ /* 0x3801E67D: cmp esi, ebx */
   3496     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3498     _flag_k = FK_CMP;
   3499     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E691; /* 0x3801E67F: je 0x3801e691 */
   3500 L_3801E681:
   3501     eax = MEM32(esi); /* 0x3801E681: mov eax, dword ptr [esi] */
   3502     PUSH32(esp, 0); /* 0x3801E683: push 0 */
   3503     ecx = esi; /* 0x3801E685: mov ecx, esi */
   3504     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3801E687: call dword ptr [eax + 0xc] */
   3505     RECOMP_FLAGS_IN();
   3506     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   3507     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3508     esi = esi + 8; /* 0x3801E68A: add esi, 8 */
   3509     _flag_k = FK_ADD;
   3510     /* cmp esi, ebx */ /* 0x3801E68D: cmp esi, ebx */
   3511     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3513     _flag_k = FK_CMP;
   3514     RECOMP_BACKEDGE();
   3515     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E681; /* 0x3801E68F: jne 0x3801e681 */
   3516 L_3801E691:
   3517     ecx = MEM32(edi + 0x4); /* 0x3801E691: mov ecx, dword ptr [edi + 4] */
   3518     PUSH32(esp, ecx); /* 0x3801E694: push ecx */
   3519     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E695: call 0x3804b4f6 */ /* not lifted */
   3520     RECOMP_FLAGS_IN();
   3521     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3522     esi = 0; /* 0x3801E69A: xor esi, esi */
   3523     _cf = 0;
   3524     _flag_k = FK_TEST;
   3525     PUSH32(esp, edi); /* 0x3801E69C: push edi */
   3526     MEM32(edi + 0x4) = esi; /* 0x3801E69D: mov dword ptr [edi + 4], esi */
   3527     MEM32(edi + 0x8) = esi; /* 0x3801E6A0: mov dword ptr [edi + 8], esi */
   3528     MEM32(edi + 0xC) = esi; /* 0x3801E6A3: mov dword ptr [edi + 0xc], esi */
   3529     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E6A6: call 0x3804b4f6 */ /* not lifted */
   3530     RECOMP_FLAGS_IN();
   3531     edx = MEM32(ebp + (-0x4)); /* 0x3801E6AB: mov edx, dword ptr [ebp - 4] */
   3532     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3533     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3534     esp = esp + 8; /* 0x3801E6AE: add esp, 8 */
   3535     _flag_k = FK_ADD;
   3536     MEM32(edx + 0x4) = esi; /* 0x3801E6B1: mov dword ptr [edx + 4], esi */
   3537     esi = POP32_VAL(esp); /* 0x3801E6B4: pop esi */
   3538     ebx = POP32_VAL(esp); /* 0x3801E6B5: pop ebx */
   3539     edi = POP32_VAL(esp); /* 0x3801E6B6: pop edi */
   3540     esp = ebp; /* 0x3801E6B7: mov esp, ebp */
   3541     ebp = POP32_VAL(esp); /* 0x3801E6B9: pop ebp */
   3542     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E6BA: ret  */
   3543 L_3801E6BB:
   3544     MEM32(ecx + 0x4) = 0; /* 0x3801E6BB: mov dword ptr [ecx + 4], 0 */
   3545     edi = POP32_VAL(esp); /* 0x3801E6C2: pop edi */
   3546     esp = ebp; /* 0x3801E6C3: mov esp, ebp */
   3547     ebp = POP32_VAL(esp); /* 0x3801E6C5: pop ebp */
   3548     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E6C6: ret  */
   3549 L_3804CC98:
   3550     ecx = MEM32(ebp + (-0x14)); /* 0x3804CC98: mov ecx, dword ptr [ebp - 0x14] */
   3551     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Cu);
   3552     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3553     ecx = ecx + 0x1Cu; /* 0x3804CC9B: add ecx, 0x1c */
   3554     _flag_k = FK_ADD;
   3555     RECOMP_BACKEDGE();
   3556     goto L_3801E660; /* 0x3804CC9E: jmp 0x3801e660 */
   3557     { RECOMP_REGS_OUT(); return; } /* end of function */
   3558     RECOMP_REGS_OUT();
   3559 }
   3560 
   3561 void sub_3804CCA3(void) {
   3562     int _fpu_cmp = 0;
   3563     uint32_t _cf = 0;
   3564     int _df = 1;
   3565     uint32_t _flag_k = FK_NONE;
   3566     uint32_t _flag_a = 0, _flag_b = 0;
   3567     uint32_t _itail_tgt = 0;
   3568     RECOMP_REGS_LOCALS
   3569     RECOMP_ENTER(0x3804CCA3u);
   3570 
   3571 L_3804CCA3:
   3572     eax = MEM32(ebp + (-0x18)); /* 0x3804CCA3: mov eax, dword ptr [ebp - 0x18] */
   3573     PUSH32(esp, eax); /* 0x3804CCA6: push eax */
   3574     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CCA7: call 0x3804b4f6 */ /* not lifted */
   3575     RECOMP_FLAGS_IN();
   3576     ecx = POP32_VAL(esp); /* 0x3804CCAC: pop ecx */
   3577     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CCAD: ret  */
   3578     RECOMP_REGS_OUT();
   3579 }
   3580 
   3581 void sub_3804CCAE(void) {
   3582     int _fpu_cmp = 0;
   3583     uint32_t _cf = 0;
   3584     int _df = 1;
   3585     uint32_t _flag_k = FK_NONE;
   3586     uint32_t _flag_a = 0, _flag_b = 0;
   3587     uint32_t _itail_tgt = 0;
   3588     RECOMP_REGS_LOCALS
   3589     RECOMP_ENTER(0x3804CCAEu);
   3590 
   3591 L_3804CCAE:
   3592     eax = MEM32(ebp + (-0x18)); /* 0x3804CCAE: mov eax, dword ptr [ebp - 0x18] */
   3593     PUSH32(esp, eax); /* 0x3804CCB1: push eax */
   3594     RECOMP_ICALL(0x3804B4F6u); /* 0x3804CCB2: call 0x3804b4f6 */ /* not lifted */
   3595     RECOMP_FLAGS_IN();
   3596     ecx = POP32_VAL(esp); /* 0x3804CCB7: pop ecx */
   3597     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804CCB8: ret  */
   3598     RECOMP_REGS_OUT();
   3599 }
   3600 
   3601 void sub_3804CCB9(void) {
   3602     int _fpu_cmp = 0;
   3603     uint32_t _cf = 0;
   3604     int _df = 1;
   3605     uint32_t _flag_k = FK_NONE;
   3606     uint32_t _flag_a = 0, _flag_b = 0;
   3607     uint32_t _itail_tgt = 0;
   3608     RECOMP_REGS_LOCALS
   3609     RECOMP_ENTER(0x3804CCB9u);
   3610 
   3611     goto L_3804CCB9;
   3612 L_3804B67C:
   3613     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   3614 L_3804CCB9:
   3615     eax = 0x38053678u; /* 0x3804CCB9: mov eax, 0x38053678 */
   3616 L_3804CCBE:
   3617     RECOMP_BACKEDGE();
   3618     goto L_3804B67C; /* 0x3804CCBE: jmp 0x3804b67c */
   3619     { RECOMP_REGS_OUT(); return; } /* end of function */
   3620   _ljump:
   3621     switch (_itail_tgt) {
   3622       case 0x3804B67Cu: goto L_3804B67C;
   3623       case 0x3804CCB9u: goto L_3804CCB9;
   3624       case 0x3804CCBEu: goto L_3804CCBE;
   3625       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3626     }
   3627     RECOMP_REGS_OUT();
   3628 }
   3629 
   3630 void sub_3804CCD0(void) {
   3631     int _fpu_cmp = 0;
   3632     uint32_t _cf = 0;
   3633     int _df = 1;
   3634     uint32_t _flag_k = FK_NONE;
   3635     uint32_t _flag_a = 0, _flag_b = 0;
   3636     uint32_t _itail_tgt = 0;
   3637     RECOMP_REGS_LOCALS
   3638     RECOMP_ENTER(0x3804CCD0u);
   3639 
   3640 L_3804CCD0:
   3641     ecx = MEM32(ebp + (-0x10)); /* 0x3804CCD0: mov ecx, dword ptr [ebp - 0x10] */
   3642 L_3804CCD3:
   3643     { _itail_tgt = (uint32_t)(MEM32(0x3804E454)); goto _ljump; }
   3644     { RECOMP_REGS_OUT(); return; } /* end of function */
   3645   _ljump:
   3646     switch (_itail_tgt) {
   3647       case 0x3804CCD0u: goto L_3804CCD0;
   3648       case 0x3804CCD3u: goto L_3804CCD3;
   3649       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3650     }
   3651     RECOMP_REGS_OUT();
   3652 }
   3653 
   3654 void sub_3804CCD9(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(0x3804CCD9u);
   3663 
   3664     goto L_3804CCD9;
   3665 L_3804B67C:
   3666     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   3667 L_3804CCD9:
   3668     eax = 0x380536B8u; /* 0x3804CCD9: mov eax, 0x380536b8 */
   3669 L_3804CCDE:
   3670     RECOMP_BACKEDGE();
   3671     goto L_3804B67C; /* 0x3804CCDE: jmp 0x3804b67c */
   3672     { RECOMP_REGS_OUT(); return; } /* end of function */
   3673   _ljump:
   3674     switch (_itail_tgt) {
   3675       case 0x3804B67Cu: goto L_3804B67C;
   3676       case 0x3804CCD9u: goto L_3804CCD9;
   3677       case 0x3804CCDEu: goto L_3804CCDE;
   3678       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3679     }
   3680     RECOMP_REGS_OUT();
   3681 }
   3682 
   3683 void sub_3804CCF0(void) {
   3684     int _fpu_cmp = 0;
   3685     uint32_t _cf = 0;
   3686     int _df = 1;
   3687     uint32_t _flag_k = FK_NONE;
   3688     uint32_t _flag_a = 0, _flag_b = 0;
   3689     uint32_t _itail_tgt = 0;
   3690     RECOMP_REGS_LOCALS
   3691     RECOMP_ENTER(0x3804CCF0u);
   3692 
   3693 L_3804CCF0:
   3694     ecx = MEM32(ebp + (-0x10)); /* 0x3804CCF0: mov ecx, dword ptr [ebp - 0x10] */
   3695 L_3804CCF3:
   3696     { _itail_tgt = (uint32_t)(MEM32(0x3804E454)); goto _ljump; }
   3697     { RECOMP_REGS_OUT(); return; } /* end of function */
   3698   _ljump:
   3699     switch (_itail_tgt) {
   3700       case 0x3804CCF0u: goto L_3804CCF0;
   3701       case 0x3804CCF3u: goto L_3804CCF3;
   3702       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3703     }
   3704     RECOMP_REGS_OUT();
   3705 }
   3706 
   3707 void sub_3804CCF9(void) {
   3708     int _fpu_cmp = 0;
   3709     uint32_t _cf = 0;
   3710     int _df = 1;
   3711     uint32_t _flag_k = FK_NONE;
   3712     uint32_t _flag_a = 0, _flag_b = 0;
   3713     uint32_t _itail_tgt = 0;
   3714     RECOMP_REGS_LOCALS
   3715     RECOMP_ENTER(0x3804CCF9u);
   3716 
   3717     goto L_3804CCF9;
   3718 L_380438F0:
   3719     PUSH32(esp, ebp); /* 0x380438F0: push ebp */
   3720     ebp = esp; /* 0x380438F1: mov ebp, esp */
   3721     PUSH32(esp, 0xFFFFFFFFu); /* 0x380438F3: push -1 */
   3722     PUSH32(esp, 0x3804D279u); /* 0x380438F5: push 0x3804d279 */
   3723     eax = MEM32(FS_BASE + (0)); /* 0x380438FA: mov eax, dword ptr fs:[0] */
   3724     PUSH32(esp, eax); /* 0x38043900: push eax */
   3725     MEM32(FS_BASE + (0)) = esp; /* 0x38043901: mov dword ptr fs:[0], esp */
   3726     PUSH32(esp, ecx); /* 0x38043908: push ecx */
   3727     PUSH32(esp, esi); /* 0x38043909: push esi */
   3728     esi = ecx; /* 0x3804390A: mov esi, ecx */
   3729     PUSH32(esp, edi); /* 0x3804390C: push edi */
   3730     MEM32(ebp + (-0x10)) = esi; /* 0x3804390D: mov dword ptr [ebp - 0x10], esi */
   3731     MEM32(esi) = 0x3804F994u; /* 0x38043910: mov dword ptr [esi], 0x3804f994 */
   3732     eax = MEM32(esi + 0x4); /* 0x38043916: mov eax, dword ptr [esi + 4] */
   3733     MEM32(ebp + (-0x4)) = 0; /* 0x38043919: mov dword ptr [ebp - 4], 0 */
   3734     /* test eax, eax */ /* 0x38043920: test eax, eax */
   3735     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3736     _cf = 0;
   3737     _flag_k = FK_TEST;
   3738     if (TEST_Z(_flag_a, _flag_b)) goto L_38043941; /* 0x38043922: je 0x38043941 */
   3739 L_38043924:
   3740     ecx = MEM32(eax + (-0x4)); /* 0x38043924: mov ecx, dword ptr [eax - 4] */
   3741     edi = eax + (-0x4); /* 0x38043927: lea edi, [eax - 4] */
   3742     PUSH32(esp, 0x380439A0u); /* 0x3804392A: push 0x380439a0 */
   3743     PUSH32(esp, ecx); /* 0x3804392F: push ecx */
   3744     PUSH32(esp, 0x44u); /* 0x38043930: push 0x44 */
   3745     PUSH32(esp, eax); /* 0x38043932: push eax */
   3746     RECOMP_ICALL(0x3804B582u); /* 0x38043933: call 0x3804b582 */ /* not lifted */
   3747     RECOMP_FLAGS_IN();
   3748     PUSH32(esp, edi); /* 0x38043938: push edi */
   3749     RECOMP_ICALL(0x3804B4F6u); /* 0x38043939: call 0x3804b4f6 */ /* not lifted */
   3750     RECOMP_FLAGS_IN();
   3751     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3752     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3753     esp = esp + 4; /* 0x3804393E: add esp, 4 */
   3754     _flag_k = FK_ADD;
   3755 L_38043941:
   3756     eax = MEM32(esi + 0x8); /* 0x38043941: mov eax, dword ptr [esi + 8] */
   3757     /* test eax, eax */ /* 0x38043944: test eax, eax */
   3758     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3759     _cf = 0;
   3760     _flag_k = FK_TEST;
   3761     if (TEST_Z(_flag_a, _flag_b)) goto L_3804397C; /* 0x38043946: je 0x3804397c */
   3762 L_38043948:
   3763     edx = MEM32(eax + (-0x4)); /* 0x38043948: mov edx, dword ptr [eax - 4] */
   3764     edi = eax + (-0x4); /* 0x3804394B: lea edi, [eax - 4] */
   3765     PUSH32(esp, 0x380439C0u); /* 0x3804394E: push 0x380439c0 */
   3766     PUSH32(esp, edx); /* 0x38043953: push edx */
   3767     PUSH32(esp, 0x28u); /* 0x38043954: push 0x28 */
   3768     PUSH32(esp, eax); /* 0x38043956: push eax */
   3769     RECOMP_ICALL(0x3804B582u); /* 0x38043957: call 0x3804b582 */ /* not lifted */
   3770     RECOMP_FLAGS_IN();
   3771     PUSH32(esp, edi); /* 0x3804395C: push edi */
   3772     RECOMP_ICALL(0x3804B4F6u); /* 0x3804395D: call 0x3804b4f6 */ /* not lifted */
   3773     RECOMP_FLAGS_IN();
   3774     eax = MEM32(0x3804E7AC); /* 0x38043962: mov eax, dword ptr [0x3804e7ac] */
   3775     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3776     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3777     esp = esp + 4; /* 0x38043967: add esp, 4 */
   3778     _flag_k = FK_ADD;
   3779     MEM32(esi) = eax; /* 0x3804396A: mov dword ptr [esi], eax */
   3780     edi = POP32_VAL(esp); /* 0x3804396C: pop edi */
   3781     esi = POP32_VAL(esp); /* 0x3804396D: pop esi */
   3782     ecx = MEM32(ebp + (-0xC)); /* 0x3804396E: mov ecx, dword ptr [ebp - 0xc] */
   3783     MEM32(FS_BASE + (0)) = ecx; /* 0x38043971: mov dword ptr fs:[0], ecx */
   3784     esp = ebp; /* 0x38043978: mov esp, ebp */
   3785     ebp = POP32_VAL(esp); /* 0x3804397A: pop ebp */
   3786     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804397B: ret  */
   3787 L_3804397C:
   3788     edx = MEM32(0x3804E7AC); /* 0x3804397C: mov edx, dword ptr [0x3804e7ac] */
   3789     ecx = MEM32(ebp + (-0xC)); /* 0x38043982: mov ecx, dword ptr [ebp - 0xc] */
   3790     MEM32(esi) = edx; /* 0x38043985: mov dword ptr [esi], edx */
   3791     edi = POP32_VAL(esp); /* 0x38043987: pop edi */
   3792     esi = POP32_VAL(esp); /* 0x38043988: pop esi */
   3793     MEM32(FS_BASE + (0)) = ecx; /* 0x38043989: mov dword ptr fs:[0], ecx */
   3794     esp = ebp; /* 0x38043990: mov esp, ebp */
   3795     ebp = POP32_VAL(esp); /* 0x38043992: pop ebp */
   3796     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38043993: ret  */
   3797 L_3804CCF9:
   3798     /* cmp MEM32(ebp + (-0x10)), 0 */ /* 0x3804CCF9: cmp dword ptr [ebp - 0x10], 0 */
   3799     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0);
   3800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3801     _flag_k = FK_CMP;
   3802     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804CD11; /* 0x3804CCFD: je 0x3804cd11 */
   3803 L_3804CD03:
   3804     eax = MEM32(ebp + (-0x10)); /* 0x3804CD03: mov eax, dword ptr [ebp - 0x10] */
   3805     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   3806     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3807     eax = eax + 0x18u; /* 0x3804CD06: add eax, 0x18 */
   3808     _flag_k = FK_ADD;
   3809     MEM32(ebp + (-0x14)) = eax; /* 0x3804CD09: mov dword ptr [ebp - 0x14], eax */
   3810     goto L_3804CD18; /* 0x3804CD0C: jmp 0x3804cd18 */
   3811 L_3804CD11:
   3812     MEM32(ebp + (-0x14)) = 0; /* 0x3804CD11: mov dword ptr [ebp - 0x14], 0 */
   3813 L_3804CD18:
   3814     ecx = MEM32(ebp + (-0x14)); /* 0x3804CD18: mov ecx, dword ptr [ebp - 0x14] */
   3815     RECOMP_BACKEDGE();
   3816     goto L_380438F0; /* 0x3804CD1B: jmp 0x380438f0 */
   3817     { RECOMP_REGS_OUT(); return; } /* end of function */
   3818     RECOMP_REGS_OUT();
   3819 }
   3820 
   3821 void sub_3804CD18(void) {
   3822     int _fpu_cmp = 0;
   3823     uint32_t _cf = 0;
   3824     int _df = 1;
   3825     uint32_t _flag_k = FK_NONE;
   3826     uint32_t _flag_a = 0, _flag_b = 0;
   3827     uint32_t _itail_tgt = 0;
   3828     RECOMP_REGS_LOCALS
   3829     RECOMP_ENTER(0x3804CD18u);
   3830 
   3831     goto L_3804CD18;
   3832 L_380438F0:
   3833     PUSH32(esp, ebp); /* 0x380438F0: push ebp */
   3834     ebp = esp; /* 0x380438F1: mov ebp, esp */
   3835     PUSH32(esp, 0xFFFFFFFFu); /* 0x380438F3: push -1 */
   3836     PUSH32(esp, 0x3804D279u); /* 0x380438F5: push 0x3804d279 */
   3837     eax = MEM32(FS_BASE + (0)); /* 0x380438FA: mov eax, dword ptr fs:[0] */
   3838     PUSH32(esp, eax); /* 0x38043900: push eax */
   3839     MEM32(FS_BASE + (0)) = esp; /* 0x38043901: mov dword ptr fs:[0], esp */
   3840     PUSH32(esp, ecx); /* 0x38043908: push ecx */
   3841     PUSH32(esp, esi); /* 0x38043909: push esi */
   3842     esi = ecx; /* 0x3804390A: mov esi, ecx */
   3843     PUSH32(esp, edi); /* 0x3804390C: push edi */
   3844     MEM32(ebp + (-0x10)) = esi; /* 0x3804390D: mov dword ptr [ebp - 0x10], esi */
   3845     MEM32(esi) = 0x3804F994u; /* 0x38043910: mov dword ptr [esi], 0x3804f994 */
   3846     eax = MEM32(esi + 0x4); /* 0x38043916: mov eax, dword ptr [esi + 4] */
   3847     MEM32(ebp + (-0x4)) = 0; /* 0x38043919: mov dword ptr [ebp - 4], 0 */
   3848     /* test eax, eax */ /* 0x38043920: test eax, eax */
   3849     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3850     _cf = 0;
   3851     _flag_k = FK_TEST;
   3852     if (TEST_Z(_flag_a, _flag_b)) goto L_38043941; /* 0x38043922: je 0x38043941 */
   3853 L_38043924:
   3854     ecx = MEM32(eax + (-0x4)); /* 0x38043924: mov ecx, dword ptr [eax - 4] */
   3855     edi = eax + (-0x4); /* 0x38043927: lea edi, [eax - 4] */
   3856     PUSH32(esp, 0x380439A0u); /* 0x3804392A: push 0x380439a0 */
   3857     PUSH32(esp, ecx); /* 0x3804392F: push ecx */
   3858     PUSH32(esp, 0x44u); /* 0x38043930: push 0x44 */
   3859     PUSH32(esp, eax); /* 0x38043932: push eax */
   3860     RECOMP_ICALL(0x3804B582u); /* 0x38043933: call 0x3804b582 */ /* not lifted */
   3861     RECOMP_FLAGS_IN();
   3862     PUSH32(esp, edi); /* 0x38043938: push edi */
   3863     RECOMP_ICALL(0x3804B4F6u); /* 0x38043939: call 0x3804b4f6 */ /* not lifted */
   3864     RECOMP_FLAGS_IN();
   3865     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3866     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3867     esp = esp + 4; /* 0x3804393E: add esp, 4 */
   3868     _flag_k = FK_ADD;
   3869 L_38043941:
   3870     eax = MEM32(esi + 0x8); /* 0x38043941: mov eax, dword ptr [esi + 8] */
   3871     /* test eax, eax */ /* 0x38043944: test eax, eax */
   3872     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3873     _cf = 0;
   3874     _flag_k = FK_TEST;
   3875     if (TEST_Z(_flag_a, _flag_b)) goto L_3804397C; /* 0x38043946: je 0x3804397c */
   3876 L_38043948:
   3877     edx = MEM32(eax + (-0x4)); /* 0x38043948: mov edx, dword ptr [eax - 4] */
   3878     edi = eax + (-0x4); /* 0x3804394B: lea edi, [eax - 4] */
   3879     PUSH32(esp, 0x380439C0u); /* 0x3804394E: push 0x380439c0 */
   3880     PUSH32(esp, edx); /* 0x38043953: push edx */
   3881     PUSH32(esp, 0x28u); /* 0x38043954: push 0x28 */
   3882     PUSH32(esp, eax); /* 0x38043956: push eax */
   3883     RECOMP_ICALL(0x3804B582u); /* 0x38043957: call 0x3804b582 */ /* not lifted */
   3884     RECOMP_FLAGS_IN();
   3885     PUSH32(esp, edi); /* 0x3804395C: push edi */
   3886     RECOMP_ICALL(0x3804B4F6u); /* 0x3804395D: call 0x3804b4f6 */ /* not lifted */
   3887     RECOMP_FLAGS_IN();
   3888     eax = MEM32(0x3804E7AC); /* 0x38043962: mov eax, dword ptr [0x3804e7ac] */
   3889     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3890     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3891     esp = esp + 4; /* 0x38043967: add esp, 4 */
   3892     _flag_k = FK_ADD;
   3893     MEM32(esi) = eax; /* 0x3804396A: mov dword ptr [esi], eax */
   3894     edi = POP32_VAL(esp); /* 0x3804396C: pop edi */
   3895     esi = POP32_VAL(esp); /* 0x3804396D: pop esi */
   3896     ecx = MEM32(ebp + (-0xC)); /* 0x3804396E: mov ecx, dword ptr [ebp - 0xc] */
   3897     MEM32(FS_BASE + (0)) = ecx; /* 0x38043971: mov dword ptr fs:[0], ecx */
   3898     esp = ebp; /* 0x38043978: mov esp, ebp */
   3899     ebp = POP32_VAL(esp); /* 0x3804397A: pop ebp */
   3900     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804397B: ret  */
   3901 L_3804397C:
   3902     edx = MEM32(0x3804E7AC); /* 0x3804397C: mov edx, dword ptr [0x3804e7ac] */
   3903     ecx = MEM32(ebp + (-0xC)); /* 0x38043982: mov ecx, dword ptr [ebp - 0xc] */
   3904     MEM32(esi) = edx; /* 0x38043985: mov dword ptr [esi], edx */
   3905     edi = POP32_VAL(esp); /* 0x38043987: pop edi */
   3906     esi = POP32_VAL(esp); /* 0x38043988: pop esi */
   3907     MEM32(FS_BASE + (0)) = ecx; /* 0x38043989: mov dword ptr fs:[0], ecx */
   3908     esp = ebp; /* 0x38043990: mov esp, ebp */
   3909     ebp = POP32_VAL(esp); /* 0x38043992: pop ebp */
   3910     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38043993: ret  */
   3911 L_3804CD18:
   3912     ecx = MEM32(ebp + (-0x14)); /* 0x3804CD18: mov ecx, dword ptr [ebp - 0x14] */
   3913     RECOMP_BACKEDGE();
   3914     goto L_380438F0; /* 0x3804CD1B: jmp 0x380438f0 */
   3915     { RECOMP_REGS_OUT(); return; } /* end of function */
   3916     RECOMP_REGS_OUT();
   3917 }
   3918 
   3919 void sub_3804CD20(void) {
   3920     int _fpu_cmp = 0;
   3921     uint32_t _cf = 0;
   3922     int _df = 1;
   3923     uint32_t _flag_k = FK_NONE;
   3924     uint32_t _flag_a = 0, _flag_b = 0;
   3925     uint32_t _itail_tgt = 0;
   3926     RECOMP_REGS_LOCALS
   3927     RECOMP_ENTER(0x3804CD20u);
   3928 
   3929     goto L_3804CD20;
   3930 L_3804B67C:
   3931     { _itail_tgt = (uint32_t)(MEM32(0x3804E0B0)); goto _ljump; }
   3932 L_3804CD20:
   3933     eax = 0x380536E0u; /* 0x3804CD20: mov eax, 0x380536e0 */
   3934 L_3804CD25:
   3935     RECOMP_BACKEDGE();
   3936     goto L_3804B67C; /* 0x3804CD25: jmp 0x3804b67c */
   3937     { RECOMP_REGS_OUT(); return; } /* end of function */
   3938   _ljump:
   3939     switch (_itail_tgt) {
   3940       case 0x3804B67Cu: goto L_3804B67C;
   3941       case 0x3804CD20u: goto L_3804CD20;
   3942       case 0x3804CD25u: goto L_3804CD25;
   3943       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3944     }
   3945     RECOMP_REGS_OUT();
   3946 }