aorecomp

Anarchy Online classic in the browser

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


client/game/llr.dll/lifted-0003.c (560815B)


      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_380092B0(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(0x380092B0u);
     17 
     18 L_380092B0:
     19     PUSH32(esp, ebp); /* 0x380092B0: push ebp */
     20     ebp = esp; /* 0x380092B1: mov ebp, esp */
     21     eax = MEM32(ebp + 0x8); /* 0x380092B3: mov eax, dword ptr [ebp + 8] */
     22     MEM32(ecx + 0x1D4) = eax; /* 0x380092B6: mov dword ptr [ecx + 0x1d4], eax */
     23     ebp = POP32_VAL(esp); /* 0x380092BC: pop ebp */
     24     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380092BD: ret 4 */
     25     RECOMP_REGS_OUT();
     26 }
     27 
     28 void sub_380092C0(void) {
     29     int _fpu_cmp = 0;
     30     uint32_t _cf = 0;
     31     int _df = 1;
     32     uint32_t _flag_k = FK_NONE;
     33     uint32_t _flag_a = 0, _flag_b = 0;
     34     uint32_t _itail_tgt = 0;
     35     RECOMP_REGS_LOCALS
     36     RECOMP_ENTER(0x380092C0u);
     37 
     38 L_380092C0:
     39     PUSH32(esp, ebp); /* 0x380092C0: push ebp */
     40     ebp = esp; /* 0x380092C1: mov ebp, esp */
     41     eax = MEM32(ebp + 0x8); /* 0x380092C3: mov eax, dword ptr [ebp + 8] */
     42     MEM32(ecx + 0x1D8) = eax; /* 0x380092C6: mov dword ptr [ecx + 0x1d8], eax */
     43     ebp = POP32_VAL(esp); /* 0x380092CC: pop ebp */
     44     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380092CD: ret 4 */
     45     RECOMP_REGS_OUT();
     46 }
     47 
     48 void sub_380092D0(void) {
     49     int _fpu_cmp = 0;
     50     uint32_t _cf = 0;
     51     int _df = 1;
     52     uint32_t _flag_k = FK_NONE;
     53     uint32_t _flag_a = 0, _flag_b = 0;
     54     uint32_t _itail_tgt = 0;
     55     RECOMP_REGS_LOCALS
     56     RECOMP_ENTER(0x380092D0u);
     57 
     58 L_380092D0:
     59     PUSH32(esp, ebp); /* 0x380092D0: push ebp */
     60     ebp = esp; /* 0x380092D1: mov ebp, esp */
     61     eax = MEM32(ebp + 0xC); /* 0x380092D3: mov eax, dword ptr [ebp + 0xc] */
     62     /* test eax, eax */ /* 0x380092D6: test eax, eax */
     63     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     64     _cf = 0;
     65     _flag_k = FK_TEST;
     66     eax = MEM32(ebp + 0x8); /* 0x380092D8: mov eax, dword ptr [ebp + 8] */
     67     fp_push(*(float*)&MEM32(eax + 0x1D8)); /* 0x380092DB: fld dword ptr [eax + 0x1d8] */
     68     if (TEST_Z(_flag_a, _flag_b)) goto L_380092FF; /* 0x380092E1: je 0x380092ff */
     69 L_380092E3:
     70     _st[0] = fabs(_st[0]); /* 0x380092E3: fabs  */
     71     _st[0] = -_st[0]; /* 0x380092E5: fchs  */
     72     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x1D8) = _v; } /* 0x380092E7: fstp dword ptr [eax + 0x1d8] */
     73     fp_push(*(float*)&MEM32(eax + 0x1E0)); /* 0x380092ED: fld dword ptr [eax + 0x1e0] */
     74     _st[0] = fabs(_st[0]); /* 0x380092F3: fabs  */
     75     _st[0] = -_st[0]; /* 0x380092F5: fchs  */
     76     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x1E0) = _v; } /* 0x380092F7: fstp dword ptr [eax + 0x1e0] */
     77     ebp = POP32_VAL(esp); /* 0x380092FD: pop ebp */
     78     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380092FE: ret  */
     79 L_380092FF:
     80     _st[0] = fabs(_st[0]); /* 0x380092FF: fabs  */
     81     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x1D8) = _v; } /* 0x38009301: fstp dword ptr [eax + 0x1d8] */
     82     fp_push(*(float*)&MEM32(eax + 0x1E0)); /* 0x38009307: fld dword ptr [eax + 0x1e0] */
     83     _st[0] = fabs(_st[0]); /* 0x3800930D: fabs  */
     84     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x1E0) = _v; } /* 0x3800930F: fstp dword ptr [eax + 0x1e0] */
     85     ebp = POP32_VAL(esp); /* 0x38009315: pop ebp */
     86     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38009316: ret  */
     87     RECOMP_REGS_OUT();
     88 }
     89 
     90 void sub_38009320(void) {
     91     int _fpu_cmp = 0;
     92     uint32_t _cf = 0;
     93     int _df = 1;
     94     uint32_t _flag_k = FK_NONE;
     95     uint32_t _flag_a = 0, _flag_b = 0;
     96     uint32_t _itail_tgt = 0;
     97     RECOMP_REGS_LOCALS
     98     RECOMP_ENTER(0x38009320u);
     99 
    100 L_38009320:
    101     PUSH32(esp, ebp); /* 0x38009320: push ebp */
    102     ebp = esp; /* 0x38009321: mov ebp, esp */
    103     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    104     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    105     esp = esp - 0xCu; /* 0x38009323: sub esp, 0xc */
    106     _flag_k = FK_CMP;
    107     eax = MEM32(0x3804E4A8); /* 0x38009326: mov eax, dword ptr [0x3804e4a8] */
    108     ecx = MEM32(eax); /* 0x3800932B: mov ecx, dword ptr [eax] */
    109     PUSH32(esp, esi); /* 0x3800932D: push esi */
    110     PUSH32(esp, 1); /* 0x3800932E: push 1 */
    111     PUSH32(esp, 0x3806B80Cu); /* 0x38009330: push 0x3806b80c */
    112     RECOMP_ICALL(MEM32(0x3804E498)); /* 0x38009335: call dword ptr [0x3804e498] */
    113     RECOMP_FLAGS_IN();
    114     esi = MEM32(ebp + 0x8); /* 0x3800933B: mov esi, dword ptr [ebp + 8] */
    115     /* test eax, eax */ /* 0x3800933E: test eax, eax */
    116     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    117     _cf = 0;
    118     _flag_k = FK_TEST;
    119     eax = MEM32(ebp + 0xC); /* 0x38009340: mov eax, dword ptr [ebp + 0xc] */
    120     SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x38009343: setne cl */
    121     /* test eax, eax */ /* 0x38009346: test eax, eax */
    122     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    123     _cf = 0;
    124     _flag_k = FK_TEST;
    125     MEM8(esi + 0x190) = (uint8_t)(LO8(ecx)); /* 0x38009348: mov byte ptr [esi + 0x190], cl */
    126     ecx = esi; /* 0x3800934E: mov ecx, esi */
    127     if (TEST_NZ(_flag_a, _flag_b)) goto L_38009359; /* 0x38009350: jne 0x38009359 */
    128 L_38009352:
    129     RECOMP_ICALL(0x38007FA0u); /* 0x38009352: call 0x38007fa0 */ /* not lifted */
    130     RECOMP_FLAGS_IN();
    131     goto L_3800935E; /* 0x38009357: jmp 0x3800935e */
    132 L_38009359:
    133     RECOMP_ICALL(0x38008030u); /* 0x38009359: call 0x38008030 */ /* not lifted */
    134     RECOMP_FLAGS_IN();
    135 L_3800935E:
    136     MEM32(ebp + (-0xC)) = 0; /* 0x3800935E: mov dword ptr [ebp - 0xc], 0 */
    137     eax = MEM32(ebp + (-0xC)); /* 0x38009365: mov eax, dword ptr [ebp - 0xc] */
    138     edx = esi + 0x184; /* 0x38009368: lea edx, [esi + 0x184] */
    139     MEM32(edx) = eax; /* 0x3800936E: mov dword ptr [edx], eax */
    140     MEM32(ebp + (-0x8)) = 0; /* 0x38009370: mov dword ptr [ebp - 8], 0 */
    141     ecx = MEM32(ebp + (-0x8)); /* 0x38009377: mov ecx, dword ptr [ebp - 8] */
    142     MEM32(edx + 0x4) = ecx; /* 0x3800937A: mov dword ptr [edx + 4], ecx */
    143     MEM32(ebp + (-0x4)) = 0; /* 0x3800937D: mov dword ptr [ebp - 4], 0 */
    144     eax = MEM32(ebp + (-0x4)); /* 0x38009384: mov eax, dword ptr [ebp - 4] */
    145     ecx = esi; /* 0x38009387: mov ecx, esi */
    146     MEM32(edx + 0x8) = eax; /* 0x38009389: mov dword ptr [edx + 8], eax */
    147     RECOMP_ICALL(0x380084F0u); /* 0x3800938C: call 0x380084f0 */ /* not lifted */
    148     RECOMP_FLAGS_IN();
    149     esi = POP32_VAL(esp); /* 0x38009391: pop esi */
    150     esp = ebp; /* 0x38009392: mov esp, ebp */
    151     ebp = POP32_VAL(esp); /* 0x38009394: pop ebp */
    152     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38009395: ret  */
    153     RECOMP_REGS_OUT();
    154 }
    155 
    156 void sub_380093A0(void) {
    157     int _fpu_cmp = 0;
    158     uint32_t _cf = 0;
    159     int _df = 1;
    160     uint32_t _flag_k = FK_NONE;
    161     uint32_t _flag_a = 0, _flag_b = 0;
    162     uint32_t _itail_tgt = 0;
    163     RECOMP_REGS_LOCALS
    164     RECOMP_ENTER(0x380093A0u);
    165 
    166 L_380093A0:
    167     PUSH32(esp, ebp); /* 0x380093A0: push ebp */
    168     ebp = esp; /* 0x380093A1: mov ebp, esp */
    169     eax = MEM32(ebp + 0xC); /* 0x380093A3: mov eax, dword ptr [ebp + 0xc] */
    170     ecx = MEM32(ebp + 0x8); /* 0x380093A6: mov ecx, dword ptr [ebp + 8] */
    171     /* cmp eax, 1 */ /* 0x380093A9: cmp eax, 1 */
    172     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    174     _flag_k = FK_CMP;
    175     SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x380093AC: sete al */
    176     MEM8(ecx + 0x190) = (uint8_t)(LO8(eax)); /* 0x380093AF: mov byte ptr [ecx + 0x190], al */
    177     RECOMP_ICALL(0x380084F0u); /* 0x380093B5: call 0x380084f0 */ /* not lifted */
    178     RECOMP_FLAGS_IN();
    179     ebp = POP32_VAL(esp); /* 0x380093BA: pop ebp */
    180     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380093BB: ret  */
    181     RECOMP_REGS_OUT();
    182 }
    183 
    184 void sub_380093C0(void) {
    185     int _fpu_cmp = 0;
    186     uint32_t _cf = 0;
    187     int _df = 1;
    188     uint32_t _flag_k = FK_NONE;
    189     uint32_t _flag_a = 0, _flag_b = 0;
    190     uint32_t _itail_tgt = 0;
    191     RECOMP_REGS_LOCALS
    192     RECOMP_ENTER(0x380093C0u);
    193 
    194 L_380093C0:
    195     PUSH32(esp, ebp); /* 0x380093C0: push ebp */
    196     ebp = esp; /* 0x380093C1: mov ebp, esp */
    197     eax = MEM32(ebp + 0xC); /* 0x380093C3: mov eax, dword ptr [ebp + 0xc] */
    198     /* cmp eax, 5 */ /* 0x380093C6: cmp eax, 5 */
    199     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5);
    200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    201     _flag_k = FK_CMP;
    202     if (CMP_L(_flag_a, _flag_b)) goto L_380093D0; /* 0x380093C9: jl 0x380093d0 */
    203 L_380093CB:
    204     /* cmp eax, 0x50u */ /* 0x380093CB: cmp eax, 0x50 */
    205     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x50u);
    206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    207     _flag_k = FK_CMP;
    208     if (CMP_LE(_flag_a, _flag_b)) goto L_380093D7; /* 0x380093CE: jle 0x380093d7 */
    209 L_380093D0:
    210     MEM32(ebp + 0xC) = 0x46u; /* 0x380093D0: mov dword ptr [ebp + 0xc], 0x46 */
    211 L_380093D7:
    212     eax = MEM32(ebp + 0x8); /* 0x380093D7: mov eax, dword ptr [ebp + 8] */
    213     /* test eax, eax */ /* 0x380093DA: test eax, eax */
    214     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    215     _cf = 0;
    216     _flag_k = FK_TEST;
    217     if (TEST_Z(_flag_a, _flag_b)) goto L_380093E7; /* 0x380093DC: je 0x380093e7 */
    218 L_380093DE:
    219     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x380093DE: fild dword ptr [ebp + 0xc] */
    220     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0xE0) = _v; } /* 0x380093E1: fstp dword ptr [eax + 0xe0] */
    221 L_380093E7:
    222     ebp = POP32_VAL(esp); /* 0x380093E7: pop ebp */
    223     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380093E8: ret  */
    224     RECOMP_REGS_OUT();
    225 }
    226 
    227 void sub_380093F0(void) {
    228     int _fpu_cmp = 0;
    229     uint32_t _cf = 0;
    230     int _df = 1;
    231     uint32_t _flag_k = FK_NONE;
    232     uint32_t _flag_a = 0, _flag_b = 0;
    233     uint32_t _itail_tgt = 0;
    234     RECOMP_REGS_LOCALS
    235     RECOMP_ENTER(0x380093F0u);
    236 
    237 L_380093F0:
    238     PUSH32(esp, esi); /* 0x380093F0: push esi */
    239     esi = ecx; /* 0x380093F1: mov esi, ecx */
    240     RECOMP_ICALL(0x380082C0u); /* 0x380093F3: call 0x380082c0 */ /* not lifted */
    241     RECOMP_FLAGS_IN();
    242     /* test LO8(eax), LO8(eax) */ /* 0x380093F8: test al, al */
    243     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    244     _cf = 0;
    245     _flag_k = FK_NARROW(FK_TEST, 24);
    246     if (TEST_Z(_flag_a, _flag_b)) goto L_38009406; /* 0x380093FA: je 0x38009406 */
    247 L_380093FC:
    248     ecx = MEM32(esi + 0x60); /* 0x380093FC: mov ecx, dword ptr [esi + 0x60] */
    249     RECOMP_ICALL(0x38004FD0u); /* 0x380093FF: call 0x38004fd0 */ /* not lifted */
    250     RECOMP_FLAGS_IN();
    251     esi = POP32_VAL(esp); /* 0x38009404: pop esi */
    252     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38009405: ret  */
    253 L_38009406:
    254     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x38009406: fld dword ptr [0x3804e8e4] */
    255     esi = POP32_VAL(esp); /* 0x3800940C: pop esi */
    256     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800940D: ret  */
    257     RECOMP_REGS_OUT();
    258 }
    259 
    260 void sub_38009410(void) {
    261     int _fpu_cmp = 0;
    262     uint32_t _cf = 0;
    263     int _df = 1;
    264     uint32_t _flag_k = FK_NONE;
    265     uint32_t _flag_a = 0, _flag_b = 0;
    266     uint32_t _itail_tgt = 0;
    267     RECOMP_REGS_LOCALS
    268     RECOMP_ENTER(0x38009410u);
    269 
    270 L_38009410:
    271     PUSH32(esp, ebp); /* 0x38009410: push ebp */
    272     ebp = esp; /* 0x38009411: mov ebp, esp */
    273     PUSH32(esp, ecx); /* 0x38009413: push ecx */
    274     edx = MEM32(ebp + 0xC); /* 0x38009414: mov edx, dword ptr [ebp + 0xc] */
    275     PUSH32(esp, esi); /* 0x38009417: push esi */
    276     esi = MEM32(ebp + 0x8); /* 0x38009418: mov esi, dword ptr [ebp + 8] */
    277     PUSH32(esp, edi); /* 0x3800941B: push edi */
    278     edi = MEM32(ecx + 0x8); /* 0x3800941C: mov edi, dword ptr [ecx + 8] */
    279     /* cmp edx, edi */ /* 0x3800941F: cmp edx, edi */
    280     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
    281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    282     _flag_k = FK_CMP;
    283     MEM32(ebp + (-0x4)) = ecx; /* 0x38009421: mov dword ptr [ebp - 4], ecx */
    284     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009449; /* 0x38009424: je 0x38009449 */
    285 L_38009426:
    286     PUSH32(esp, ebx); /* 0x38009426: push ebx */
    287 L_38009427:
    288     eax = edx; /* 0x38009427: mov eax, edx */
    289     ebx = MEM32(eax); /* 0x38009429: mov ebx, dword ptr [eax] */
    290     ecx = esi; /* 0x3800942B: mov ecx, esi */
    291     MEM32(ecx) = ebx; /* 0x3800942D: mov dword ptr [ecx], ebx */
    292     ebx = MEM32(eax + 0x4); /* 0x3800942F: mov ebx, dword ptr [eax + 4] */
    293     MEM32(ecx + 0x4) = ebx; /* 0x38009432: mov dword ptr [ecx + 4], ebx */
    294     eax = MEM32(eax + 0x8); /* 0x38009435: mov eax, dword ptr [eax + 8] */
    295     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
    296     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    297     edx = edx + 0xCu; /* 0x38009438: add edx, 0xc */
    298     _flag_k = FK_ADD;
    299     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
    300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    301     esi = esi + 0xCu; /* 0x3800943B: add esi, 0xc */
    302     _flag_k = FK_ADD;
    303     /* cmp edx, edi */ /* 0x3800943E: cmp edx, edi */
    304     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
    305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    306     _flag_k = FK_CMP;
    307     MEM32(ecx + 0x8) = eax; /* 0x38009440: mov dword ptr [ecx + 8], eax */
    308     RECOMP_BACKEDGE();
    309     if (CMP_NE(_flag_a, _flag_b)) goto L_38009427; /* 0x38009443: jne 0x38009427 */
    310 L_38009445:
    311     ecx = MEM32(ebp + (-0x4)); /* 0x38009445: mov ecx, dword ptr [ebp - 4] */
    312     ebx = POP32_VAL(esp); /* 0x38009448: pop ebx */
    313 L_38009449:
    314     edx = MEM32(ecx + 0x8); /* 0x38009449: mov edx, dword ptr [ecx + 8] */
    315     eax = MEM32(ebp + 0x8); /* 0x3800944C: mov eax, dword ptr [ebp + 8] */
    316     edi = POP32_VAL(esp); /* 0x3800944F: pop edi */
    317     MEM32(ecx + 0x8) = esi; /* 0x38009450: mov dword ptr [ecx + 8], esi */
    318     MEM32(ebp + 0xC) = edx; /* 0x38009453: mov dword ptr [ebp + 0xc], edx */
    319     esi = POP32_VAL(esp); /* 0x38009456: pop esi */
    320     esp = ebp; /* 0x38009457: mov esp, ebp */
    321     ebp = POP32_VAL(esp); /* 0x38009459: pop ebp */
    322     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3800945A: ret 8 */
    323     RECOMP_REGS_OUT();
    324 }
    325 
    326 void sub_38009460(void) {
    327     int _fpu_cmp = 0;
    328     uint32_t _cf = 0;
    329     int _df = 1;
    330     uint32_t _flag_k = FK_NONE;
    331     uint32_t _flag_a = 0, _flag_b = 0;
    332     uint32_t _itail_tgt = 0;
    333     RECOMP_REGS_LOCALS
    334     RECOMP_ENTER(0x38009460u);
    335 
    336 L_38009460:
    337     PUSH32(esp, ebp); /* 0x38009460: push ebp */
    338     ebp = esp; /* 0x38009461: mov ebp, esp */
    339     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    341     esp = esp - 0xCu; /* 0x38009463: sub esp, 0xc */
    342     _flag_k = FK_CMP;
    343     PUSH32(esp, ebx); /* 0x38009466: push ebx */
    344     PUSH32(esp, esi); /* 0x38009467: push esi */
    345     esi = ecx; /* 0x38009468: mov esi, ecx */
    346     eax = MEM32(esi + 0x8); /* 0x3800946A: mov eax, dword ptr [esi + 8] */
    347     ecx = MEM32(esi + 0xC); /* 0x3800946D: mov ecx, dword ptr [esi + 0xc] */
    348     edx = MEM32(esi + 0x4); /* 0x38009470: mov edx, dword ptr [esi + 4] */
    349     PUSH32(esp, edi); /* 0x38009473: push edi */
    350     edi = MEM32(ebp + 0x8); /* 0x38009474: mov edi, dword ptr [ebp + 8] */
    351     ebx = edi; /* 0x38009477: mov ebx, edi */
    352     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    353     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    354     ecx = ecx - eax; /* 0x38009479: sub ecx, eax */
    355     _flag_k = FK_CMP;
    356     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
    357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    358     ebx = ebx - edx; /* 0x3800947B: sub ebx, edx */
    359     _flag_k = FK_CMP;
    360     if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x3800947D: sar ebx, 2 */
    361     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    362     ebx = (uint32_t)((int32_t)ebx >> 2u);
    363     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38009480: sar ecx, 2 */
    364     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    365     ecx = (uint32_t)((int32_t)ecx >> 2u);
    366     /* cmp ecx, 1 */ /* 0x38009483: cmp ecx, 1 */
    367     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    368     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    369     _flag_k = FK_CMP;
    370     MEM32(ebp + (-0x4)) = ebx; /* 0x38009486: mov dword ptr [ebp - 4], ebx */
    371     if (CMP_AE(_flag_a, _flag_b)) goto L_38009562; /* 0x38009489: jae 0x38009562 */
    372 L_3800948F:
    373     /* test edx, edx */ /* 0x3800948F: test edx, edx */
    374     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    375     _cf = 0;
    376     _flag_k = FK_TEST;
    377     if (TEST_Z(_flag_a, _flag_b)) goto L_3800949F; /* 0x38009491: je 0x3800949f */
    378 L_38009493:
    379     ecx = eax; /* 0x38009493: mov ecx, eax */
    380     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    381     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    382     ecx = ecx - edx; /* 0x38009495: sub ecx, edx */
    383     _flag_k = FK_CMP;
    384     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38009497: sar ecx, 2 */
    385     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    386     ecx = (uint32_t)((int32_t)ecx >> 2u);
    387     /* cmp ecx, 1 */ /* 0x3800949A: cmp ecx, 1 */
    388     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    390     _flag_k = FK_CMP;
    391     if (CMP_A(_flag_a, _flag_b)) goto L_380094A4; /* 0x3800949D: ja 0x380094a4 */
    392 L_3800949F:
    393     ecx = 1; /* 0x3800949F: mov ecx, 1 */
    394 L_380094A4:
    395     /* test edx, edx */ /* 0x380094A4: test edx, edx */
    396     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    397     _cf = 0;
    398     _flag_k = FK_TEST;
    399     if (TEST_NZ(_flag_a, _flag_b)) goto L_380094AC; /* 0x380094A6: jne 0x380094ac */
    400 L_380094A8:
    401     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    402     eax = 0; /* 0x380094A8: xor eax, eax */
    403     _cf = 0;
    404     _flag_k = FK_TEST;
    405     goto L_380094B1; /* 0x380094AA: jmp 0x380094b1 */
    406 L_380094AC:
    407     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    408     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    409     eax = eax - edx; /* 0x380094AC: sub eax, edx */
    410     _flag_k = FK_CMP;
    411     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x380094AE: sar eax, 2 */
    412     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    413     eax = (uint32_t)((int32_t)eax >> 2u);
    414 L_380094B1:
    415     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    416     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    417     eax = eax + ecx; /* 0x380094B1: add eax, ecx */
    418     _flag_k = FK_ADD;
    419     /* test eax, eax */ /* 0x380094B3: test eax, eax */
    420     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    421     _cf = 0;
    422     _flag_k = FK_TEST;
    423     MEM32(ebp + (-0xC)) = eax; /* 0x380094B5: mov dword ptr [ebp - 0xc], eax */
    424     if (TEST_NS(_flag_a, _flag_b)) goto L_380094BC; /* 0x380094B8: jge 0x380094bc */
    425 L_380094BA:
    426     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    427     eax = 0; /* 0x380094BA: xor eax, eax */
    428     _cf = 0;
    429     _flag_k = FK_TEST;
    430 L_380094BC:
    431     edx = eax * 4; /* 0x380094BC: lea edx, [eax*4] */
    432     PUSH32(esp, edx); /* 0x380094C3: push edx */
    433     RECOMP_ICALL(0x3804B676u); /* 0x380094C4: call 0x3804b676 */ /* not lifted */
    434     RECOMP_FLAGS_IN();
    435     ebx = MEM32(esi + 0x4); /* 0x380094C9: mov ebx, dword ptr [esi + 4] */
    436     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    437     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    438     esp = esp + 4; /* 0x380094CC: add esp, 4 */
    439     _flag_k = FK_ADD;
    440     /* cmp ebx, edi */ /* 0x380094CF: cmp ebx, edi */
    441     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
    442     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    443     _flag_k = FK_CMP;
    444     MEM32(ebp + (-0x8)) = eax; /* 0x380094D1: mov dword ptr [ebp - 8], eax */
    445     MEM32(ebp + 0x8) = eax; /* 0x380094D4: mov dword ptr [ebp + 8], eax */
    446     if (CMP_EQ(_flag_a, _flag_b)) goto L_380094F6; /* 0x380094D7: je 0x380094f6 */
    447 L_380094D9:
    448     eax = MEM32(ebp + 0x8); /* 0x380094D9: mov eax, dword ptr [ebp + 8] */
    449     PUSH32(esp, ebx); /* 0x380094DC: push ebx */
    450     PUSH32(esp, eax); /* 0x380094DD: push eax */
    451     RECOMP_ICALL(0x3802F560u); /* 0x380094DE: call 0x3802f560 */ /* not lifted */
    452     RECOMP_FLAGS_IN();
    453     edx = MEM32(ebp + 0x8); /* 0x380094E3: mov edx, dword ptr [ebp + 8] */
    454     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
    455     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    456     edx = edx + 4; /* 0x380094E6: add edx, 4 */
    457     _flag_k = FK_ADD;
    458     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
    459     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    460     ebx = ebx + 4; /* 0x380094E9: add ebx, 4 */
    461     _flag_k = FK_ADD;
    462     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    463     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    464     esp = esp + 8; /* 0x380094EC: add esp, 8 */
    465     _flag_k = FK_ADD;
    466     /* cmp ebx, edi */ /* 0x380094EF: cmp ebx, edi */
    467     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
    468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    469     _flag_k = FK_CMP;
    470     MEM32(ebp + 0x8) = edx; /* 0x380094F1: mov dword ptr [ebp + 8], edx */
    471     RECOMP_BACKEDGE();
    472     if (CMP_NE(_flag_a, _flag_b)) goto L_380094D9; /* 0x380094F4: jne 0x380094d9 */
    473 L_380094F6:
    474     ecx = MEM32(ebp + 0xC); /* 0x380094F6: mov ecx, dword ptr [ebp + 0xc] */
    475     edx = MEM32(ebp + 0x8); /* 0x380094F9: mov edx, dword ptr [ebp + 8] */
    476     PUSH32(esp, ecx); /* 0x380094FC: push ecx */
    477     PUSH32(esp, edx); /* 0x380094FD: push edx */
    478     RECOMP_ICALL(0x3802F560u); /* 0x380094FE: call 0x3802f560 */ /* not lifted */
    479     RECOMP_FLAGS_IN();
    480     eax = MEM32(ebp + 0x8); /* 0x38009503: mov eax, dword ptr [ebp + 8] */
    481     ecx = MEM32(esi + 0x8); /* 0x38009506: mov ecx, dword ptr [esi + 8] */
    482     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    483     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    484     esp = esp + 8; /* 0x38009509: add esp, 8 */
    485     _flag_k = FK_ADD;
    486     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    487     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    488     eax = eax + 4; /* 0x3800950C: add eax, 4 */
    489     _flag_k = FK_ADD;
    490     PUSH32(esp, eax); /* 0x3800950F: push eax */
    491     PUSH32(esp, ecx); /* 0x38009510: push ecx */
    492     PUSH32(esp, edi); /* 0x38009511: push edi */
    493     ecx = esi; /* 0x38009512: mov ecx, esi */
    494     RECOMP_ICALL(0x3800A100u); /* 0x38009514: call 0x3800a100 */ /* not lifted */
    495     RECOMP_FLAGS_IN();
    496     edx = MEM32(esi + 0x8); /* 0x38009519: mov edx, dword ptr [esi + 8] */
    497     eax = MEM32(esi + 0x4); /* 0x3800951C: mov eax, dword ptr [esi + 4] */
    498     PUSH32(esp, edx); /* 0x3800951F: push edx */
    499     PUSH32(esp, eax); /* 0x38009520: push eax */
    500     ecx = esi; /* 0x38009521: mov ecx, esi */
    501     RECOMP_ICALL(0x38042760u); /* 0x38009523: call 0x38042760 */ /* not lifted */
    502     RECOMP_FLAGS_IN();
    503     ecx = MEM32(esi + 0x4); /* 0x38009528: mov ecx, dword ptr [esi + 4] */
    504     PUSH32(esp, ecx); /* 0x3800952B: push ecx */
    505     RECOMP_ICALL(0x3804B4F6u); /* 0x3800952C: call 0x3804b4f6 */ /* not lifted */
    506     RECOMP_FLAGS_IN();
    507     edx = MEM32(ebp + (-0xC)); /* 0x38009531: mov edx, dword ptr [ebp - 0xc] */
    508     edi = MEM32(ebp + (-0x8)); /* 0x38009534: mov edi, dword ptr [ebp - 8] */
    509     eax = edi + edx * 4; /* 0x38009537: lea eax, [edi + edx*4] */
    510     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    511     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    512     esp = esp + 4; /* 0x3800953A: add esp, 4 */
    513     _flag_k = FK_ADD;
    514     ecx = esi; /* 0x3800953D: mov ecx, esi */
    515     MEM32(esi + 0xC) = eax; /* 0x3800953F: mov dword ptr [esi + 0xc], eax */
    516     RECOMP_ICALL(0x3802D4B0u); /* 0x38009542: call 0x3802d4b0 */ /* not lifted */
    517     RECOMP_FLAGS_IN();
    518     ebx = MEM32(ebp + (-0x4)); /* 0x38009547: mov ebx, dword ptr [ebp - 4] */
    519     ecx = edi + eax * 4 + 0x4; /* 0x3800954A: lea ecx, [edi + eax*4 + 4] */
    520     MEM32(esi + 0x4) = edi; /* 0x3800954E: mov dword ptr [esi + 4], edi */
    521     eax = edi; /* 0x38009551: mov eax, edi */
    522     edi = POP32_VAL(esp); /* 0x38009553: pop edi */
    523     MEM32(esi + 0x8) = ecx; /* 0x38009554: mov dword ptr [esi + 8], ecx */
    524     esi = POP32_VAL(esp); /* 0x38009557: pop esi */
    525     eax = eax + ebx * 4; /* 0x38009558: lea eax, [eax + ebx*4] */
    526     ebx = POP32_VAL(esp); /* 0x3800955B: pop ebx */
    527     esp = ebp; /* 0x3800955C: mov esp, ebp */
    528     ebp = POP32_VAL(esp); /* 0x3800955E: pop ebp */
    529     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3800955F: ret 8 */
    530 L_38009562:
    531     edx = eax; /* 0x38009562: mov edx, eax */
    532     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
    533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    534     edx = edx - edi; /* 0x38009564: sub edx, edi */
    535     _flag_k = FK_CMP;
    536     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x38009566: sar edx, 2 */
    537     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    538     edx = (uint32_t)((int32_t)edx >> 2u);
    539     /* cmp edx, 1 */ /* 0x38009569: cmp edx, 1 */
    540     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
    541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    542     _flag_k = FK_CMP;
    543     if (CMP_AE(_flag_a, _flag_b)) goto L_380095C6; /* 0x3800956C: jae 0x380095c6 */
    544 L_3800956E:
    545     ecx = edi + 0x4; /* 0x3800956E: lea ecx, [edi + 4] */
    546     PUSH32(esp, ecx); /* 0x38009571: push ecx */
    547     PUSH32(esp, eax); /* 0x38009572: push eax */
    548     PUSH32(esp, edi); /* 0x38009573: push edi */
    549     ecx = esi; /* 0x38009574: mov ecx, esi */
    550     RECOMP_ICALL(0x3800A100u); /* 0x38009576: call 0x3800a100 */ /* not lifted */
    551     RECOMP_FLAGS_IN();
    552     eax = MEM32(esi + 0x8); /* 0x3800957B: mov eax, dword ptr [esi + 8] */
    553     ebx = MEM32(ebp + 0xC); /* 0x3800957E: mov ebx, dword ptr [ebp + 0xc] */
    554     edx = eax; /* 0x38009581: mov edx, eax */
    555     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
    556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    557     edx = edx - edi; /* 0x38009583: sub edx, edi */
    558     _flag_k = FK_CMP;
    559     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x38009585: sar edx, 2 */
    560     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    561     edx = (uint32_t)((int32_t)edx >> 2u);
    562     PUSH32(esp, ebx); /* 0x38009588: push ebx */
    563     ecx = 1; /* 0x38009589: mov ecx, 1 */
    564     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    566     ecx = ecx - edx; /* 0x3800958E: sub ecx, edx */
    567     _flag_k = FK_CMP;
    568     PUSH32(esp, ecx); /* 0x38009590: push ecx */
    569     PUSH32(esp, eax); /* 0x38009591: push eax */
    570     ecx = esi; /* 0x38009592: mov ecx, esi */
    571     RECOMP_ICALL(0x3800FE10u); /* 0x38009594: call 0x3800fe10 */ /* not lifted */
    572     RECOMP_FLAGS_IN();
    573     eax = MEM32(esi + 0x8); /* 0x38009599: mov eax, dword ptr [esi + 8] */
    574     /* cmp edi, eax */ /* 0x3800959C: cmp edi, eax */
    575     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    577     _flag_k = FK_CMP;
    578     if (CMP_EQ(_flag_a, _flag_b)) goto L_380095AB; /* 0x3800959E: je 0x380095ab */
    579 L_380095A0:
    580     edx = MEM32(ebx); /* 0x380095A0: mov edx, dword ptr [ebx] */
    581     MEM32(edi) = edx; /* 0x380095A2: mov dword ptr [edi], edx */
    582     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
    583     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    584     edi = edi + 4; /* 0x380095A4: add edi, 4 */
    585     _flag_k = FK_ADD;
    586     /* cmp edi, eax */ /* 0x380095A7: cmp edi, eax */
    587     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    589     _flag_k = FK_CMP;
    590     RECOMP_BACKEDGE();
    591     if (CMP_NE(_flag_a, _flag_b)) goto L_380095A0; /* 0x380095A9: jne 0x380095a0 */
    592 L_380095AB:
    593     eax = MEM32(esi + 0x8); /* 0x380095AB: mov eax, dword ptr [esi + 8] */
    594     ebx = MEM32(ebp + (-0x4)); /* 0x380095AE: mov ebx, dword ptr [ebp - 4] */
    595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    596     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    597     eax = eax + 4; /* 0x380095B1: add eax, 4 */
    598     _flag_k = FK_ADD;
    599     MEM32(esi + 0x8) = eax; /* 0x380095B4: mov dword ptr [esi + 8], eax */
    600     eax = MEM32(esi + 0x4); /* 0x380095B7: mov eax, dword ptr [esi + 4] */
    601     edi = POP32_VAL(esp); /* 0x380095BA: pop edi */
    602     esi = POP32_VAL(esp); /* 0x380095BB: pop esi */
    603     eax = eax + ebx * 4; /* 0x380095BC: lea eax, [eax + ebx*4] */
    604     ebx = POP32_VAL(esp); /* 0x380095BF: pop ebx */
    605     esp = ebp; /* 0x380095C0: mov esp, ebp */
    606     ebp = POP32_VAL(esp); /* 0x380095C2: pop ebp */
    607     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380095C3: ret 8 */
    608 L_380095C6:
    609     PUSH32(esp, eax); /* 0x380095C6: push eax */
    610     PUSH32(esp, eax); /* 0x380095C7: push eax */
    611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu);
    612     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    613     eax = eax + 0xFFFFFFFCu; /* 0x380095C8: add eax, -4 */
    614     _flag_k = FK_ADD;
    615     PUSH32(esp, eax); /* 0x380095CB: push eax */
    616     ecx = esi; /* 0x380095CC: mov ecx, esi */
    617     RECOMP_ICALL(0x3800A100u); /* 0x380095CE: call 0x3800a100 */ /* not lifted */
    618     RECOMP_FLAGS_IN();
    619     ecx = MEM32(esi + 0x8); /* 0x380095D3: mov ecx, dword ptr [esi + 8] */
    620     eax = ecx + (-0x4); /* 0x380095D6: lea eax, [ecx - 4] */
    621     /* cmp edi, eax */ /* 0x380095D9: cmp edi, eax */
    622     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    623     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    624     _flag_k = FK_CMP;
    625     if (CMP_EQ(_flag_a, _flag_b)) goto L_380095EC; /* 0x380095DB: je 0x380095ec */
    626 L_380095DD:
    627     edx = MEM32(eax + (-0x4)); /* 0x380095DD: mov edx, dword ptr [eax - 4] */
    628     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    630     eax = eax - 4; /* 0x380095E0: sub eax, 4 */
    631     _flag_k = FK_CMP;
    632     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    633     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    634     ecx = ecx - 4; /* 0x380095E3: sub ecx, 4 */
    635     _flag_k = FK_CMP;
    636     /* cmp eax, edi */ /* 0x380095E6: cmp eax, edi */
    637     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    638     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    639     _flag_k = FK_CMP;
    640     MEM32(ecx) = edx; /* 0x380095E8: mov dword ptr [ecx], edx */
    641     RECOMP_BACKEDGE();
    642     if (CMP_NE(_flag_a, _flag_b)) goto L_380095DD; /* 0x380095EA: jne 0x380095dd */
    643 L_380095EC:
    644     eax = edi + 0x4; /* 0x380095EC: lea eax, [edi + 4] */
    645     /* cmp edi, eax */ /* 0x380095EF: cmp edi, eax */
    646     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    648     _flag_k = FK_CMP;
    649     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009601; /* 0x380095F1: je 0x38009601 */
    650 L_380095F3:
    651     ecx = MEM32(ebp + 0xC); /* 0x380095F3: mov ecx, dword ptr [ebp + 0xc] */
    652 L_380095F6:
    653     edx = MEM32(ecx); /* 0x380095F6: mov edx, dword ptr [ecx] */
    654     MEM32(edi) = edx; /* 0x380095F8: mov dword ptr [edi], edx */
    655     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
    656     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    657     edi = edi + 4; /* 0x380095FA: add edi, 4 */
    658     _flag_k = FK_ADD;
    659     /* cmp edi, eax */ /* 0x380095FD: cmp edi, eax */
    660     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    662     _flag_k = FK_CMP;
    663     RECOMP_BACKEDGE();
    664     if (CMP_NE(_flag_a, _flag_b)) goto L_380095F6; /* 0x380095FF: jne 0x380095f6 */
    665 L_38009601:
    666     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4);
    667     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    668     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x38009601: add dword ptr [esi + 8], 4 */
    669     _flag_k = FK_ADD;
    670     eax = MEM32(esi + 0x4); /* 0x38009605: mov eax, dword ptr [esi + 4] */
    671     edi = POP32_VAL(esp); /* 0x38009608: pop edi */
    672     esi = POP32_VAL(esp); /* 0x38009609: pop esi */
    673     eax = eax + ebx * 4; /* 0x3800960A: lea eax, [eax + ebx*4] */
    674     ebx = POP32_VAL(esp); /* 0x3800960D: pop ebx */
    675     esp = ebp; /* 0x3800960E: mov esp, ebp */
    676     ebp = POP32_VAL(esp); /* 0x38009610: pop ebp */
    677     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38009611: ret 8 */
    678     RECOMP_REGS_OUT();
    679 }
    680 
    681 void sub_38009620(void) {
    682     int _fpu_cmp = 0;
    683     uint32_t _cf = 0;
    684     int _df = 1;
    685     uint32_t _flag_k = FK_NONE;
    686     uint32_t _flag_a = 0, _flag_b = 0;
    687     uint32_t _itail_tgt = 0;
    688     RECOMP_REGS_LOCALS
    689     RECOMP_ENTER(0x38009620u);
    690 
    691 L_38009620:
    692     PUSH32(esp, ebp); /* 0x38009620: push ebp */
    693     ebp = esp; /* 0x38009621: mov ebp, esp */
    694     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    696     esp = esp - 0xCu; /* 0x38009623: sub esp, 0xc */
    697     _flag_k = FK_CMP;
    698     PUSH32(esp, ebx); /* 0x38009626: push ebx */
    699     PUSH32(esp, esi); /* 0x38009627: push esi */
    700     PUSH32(esp, edi); /* 0x38009628: push edi */
    701     edi = ecx; /* 0x38009629: mov edi, ecx */
    702     esi = MEM32(edi + 0x4); /* 0x3800962B: mov esi, dword ptr [edi + 4] */
    703     ebx = MEM32(esi + 0x4); /* 0x3800962E: mov ebx, dword ptr [esi + 4] */
    704     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x38009631: cmp ebx, dword ptr [edi + 8] */
    705     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    707     _flag_k = FK_CMP;
    708     SET_LO8(eax, 1); /* 0x38009634: mov al, 1 */
    709     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800965A; /* 0x38009636: je 0x3800965a */
    710 L_38009638:
    711     ecx = MEM32(ebp + 0xC); /* 0x38009638: mov ecx, dword ptr [ebp + 0xc] */
    712     eax = ebx + 0xC; /* 0x3800963B: lea eax, [ebx + 0xc] */
    713     PUSH32(esp, eax); /* 0x3800963E: push eax */
    714     PUSH32(esp, ecx); /* 0x3800963F: push ecx */
    715     esi = ebx; /* 0x38009640: mov esi, ebx */
    716     RECOMP_ICALL(0x3800A130u); /* 0x38009642: call 0x3800a130 */ /* not lifted */
    717     RECOMP_FLAGS_IN();
    718     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    719     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    720     esp = esp + 8; /* 0x38009647: add esp, 8 */
    721     _flag_k = FK_ADD;
    722     /* test LO8(eax), LO8(eax) */ /* 0x3800964A: test al, al */
    723     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    724     _cf = 0;
    725     _flag_k = FK_NARROW(FK_TEST, 24);
    726     if (TEST_Z(_flag_a, _flag_b)) goto L_38009652; /* 0x3800964C: je 0x38009652 */
    727 L_3800964E:
    728     ebx = MEM32(ebx); /* 0x3800964E: mov ebx, dword ptr [ebx] */
    729     goto L_38009655; /* 0x38009650: jmp 0x38009655 */
    730 L_38009652:
    731     ebx = MEM32(ebx + 0x8); /* 0x38009652: mov ebx, dword ptr [ebx + 8] */
    732 L_38009655:
    733     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x38009655: cmp ebx, dword ptr [edi + 8] */
    734     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    736     _flag_k = FK_CMP;
    737     RECOMP_BACKEDGE();
    738     if (CMP_NE(_flag_a, _flag_b)) goto L_38009638; /* 0x38009658: jne 0x38009638 */
    739 L_3800965A:
    740     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x3800965A: mov cl, byte ptr [edi + 0xc] */
    741     /* test LO8(ecx), LO8(ecx) */ /* 0x3800965D: test cl, cl */
    742     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    743     _cf = 0;
    744     _flag_k = FK_NARROW(FK_TEST, 24);
    745     if (TEST_Z(_flag_a, _flag_b)) goto L_380097DF; /* 0x3800965F: je 0x380097df */
    746 L_38009665:
    747     PUSH32(esp, 0); /* 0x38009665: push 0 */
    748     PUSH32(esp, esi); /* 0x38009667: push esi */
    749     ecx = edi; /* 0x38009668: mov ecx, edi */
    750     RECOMP_ICALL(0x3802F160u); /* 0x3800966A: call 0x3802f160 */ /* not lifted */
    751     RECOMP_FLAGS_IN();
    752     edx = MEM32(edi + 0x8); /* 0x3800966F: mov edx, dword ptr [edi + 8] */
    753     MEM32(eax) = edx; /* 0x38009672: mov dword ptr [eax], edx */
    754     ecx = MEM32(edi + 0x8); /* 0x38009674: mov ecx, dword ptr [edi + 8] */
    755     edx = MEM32(ebp + 0xC); /* 0x38009677: mov edx, dword ptr [ebp + 0xc] */
    756     MEM32(ebp + (-0x4)) = eax; /* 0x3800967A: mov dword ptr [ebp - 4], eax */
    757     MEM32(eax + 0x8) = ecx; /* 0x3800967D: mov dword ptr [eax + 8], ecx */
    758     PUSH32(esp, edx); /* 0x38009680: push edx */
    759     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    760     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    761     eax = eax + 0xCu; /* 0x38009681: add eax, 0xc */
    762     _flag_k = FK_ADD;
    763     PUSH32(esp, eax); /* 0x38009684: push eax */
    764     RECOMP_ICALL(0x3802F370u); /* 0x38009685: call 0x3802f370 */ /* not lifted */
    765     RECOMP_FLAGS_IN();
    766     ecx = MEM32(edi + 0x10); /* 0x3800968A: mov ecx, dword ptr [edi + 0x10] */
    767     eax = MEM32(edi + 0x4); /* 0x3800968D: mov eax, dword ptr [edi + 4] */
    768     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    769     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    770     esp = esp + 8; /* 0x38009690: add esp, 8 */
    771     _flag_k = FK_ADD;
    772     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    773     ecx = ecx + 1; /* 0x38009693: inc ecx */
    774     _flag_k = FK_INC;
    775     /* cmp esi, eax */ /* 0x38009694: cmp esi, eax */
    776     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    778     _flag_k = FK_CMP;
    779     MEM32(edi + 0x10) = ecx; /* 0x38009696: mov dword ptr [edi + 0x10], ecx */
    780     if (CMP_EQ(_flag_a, _flag_b)) goto L_380096C7; /* 0x38009699: je 0x380096c7 */
    781 L_3800969B:
    782     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3800969B: cmp ebx, dword ptr [edi + 8] */
    783     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    784     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    785     _flag_k = FK_CMP;
    786     if (CMP_NE(_flag_a, _flag_b)) goto L_380096C7; /* 0x3800969E: jne 0x380096c7 */
    787 L_380096A0:
    788     ecx = MEM32(ebp + 0xC); /* 0x380096A0: mov ecx, dword ptr [ebp + 0xc] */
    789     eax = esi + 0xC; /* 0x380096A3: lea eax, [esi + 0xc] */
    790     PUSH32(esp, eax); /* 0x380096A6: push eax */
    791     PUSH32(esp, ecx); /* 0x380096A7: push ecx */
    792     RECOMP_ICALL(0x3800A130u); /* 0x380096A8: call 0x3800a130 */ /* not lifted */
    793     RECOMP_FLAGS_IN();
    794     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    795     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    796     esp = esp + 8; /* 0x380096AD: add esp, 8 */
    797     _flag_k = FK_ADD;
    798     /* test LO8(eax), LO8(eax) */ /* 0x380096B0: test al, al */
    799     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    800     _cf = 0;
    801     _flag_k = FK_NARROW(FK_TEST, 24);
    802     if (TEST_NZ(_flag_a, _flag_b)) goto L_380096C7; /* 0x380096B2: jne 0x380096c7 */
    803 L_380096B4:
    804     ebx = MEM32(ebp + (-0x4)); /* 0x380096B4: mov ebx, dword ptr [ebp - 4] */
    805     MEM32(esi + 0x8) = ebx; /* 0x380096B7: mov dword ptr [esi + 8], ebx */
    806     eax = MEM32(edi + 0x4); /* 0x380096BA: mov eax, dword ptr [edi + 4] */
    807     /* cmp esi, MEM32(eax + 0x8) */ /* 0x380096BD: cmp esi, dword ptr [eax + 8] */
    808     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    809     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    810     _flag_k = FK_CMP;
    811     if (CMP_NE(_flag_a, _flag_b)) goto L_380096EA; /* 0x380096C0: jne 0x380096ea */
    812 L_380096C2:
    813     MEM32(eax + 0x8) = ebx; /* 0x380096C2: mov dword ptr [eax + 8], ebx */
    814     goto L_380096EA; /* 0x380096C5: jmp 0x380096ea */
    815 L_380096C7:
    816     ecx = MEM32(ebp + (-0x4)); /* 0x380096C7: mov ecx, dword ptr [ebp - 4] */
    817     MEM32(esi) = ecx; /* 0x380096CA: mov dword ptr [esi], ecx */
    818     eax = MEM32(edi + 0x4); /* 0x380096CC: mov eax, dword ptr [edi + 4] */
    819     /* cmp esi, eax */ /* 0x380096CF: cmp esi, eax */
    820     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    821     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    822     _flag_k = FK_CMP;
    823     if (CMP_NE(_flag_a, _flag_b)) goto L_380096DE; /* 0x380096D1: jne 0x380096de */
    824 L_380096D3:
    825     MEM32(eax + 0x4) = ecx; /* 0x380096D3: mov dword ptr [eax + 4], ecx */
    826     edx = MEM32(edi + 0x4); /* 0x380096D6: mov edx, dword ptr [edi + 4] */
    827     MEM32(edx + 0x8) = ecx; /* 0x380096D9: mov dword ptr [edx + 8], ecx */
    828     goto L_380096E7; /* 0x380096DC: jmp 0x380096e7 */
    829 L_380096DE:
    830     /* cmp esi, MEM32(eax) */ /* 0x380096DE: cmp esi, dword ptr [eax] */
    831     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
    832     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    833     _flag_k = FK_CMP;
    834     if (CMP_NE(_flag_a, _flag_b)) goto L_380096E7; /* 0x380096E0: jne 0x380096e7 */
    835 L_380096E2:
    836     ecx = MEM32(ebp + (-0x4)); /* 0x380096E2: mov ecx, dword ptr [ebp - 4] */
    837     MEM32(eax) = ecx; /* 0x380096E5: mov dword ptr [eax], ecx */
    838 L_380096E7:
    839     ebx = MEM32(ebp + (-0x4)); /* 0x380096E7: mov ebx, dword ptr [ebp - 4] */
    840 L_380096EA:
    841     edx = MEM32(edi + 0x4); /* 0x380096EA: mov edx, dword ptr [edi + 4] */
    842     /* cmp ebx, MEM32(edx + 0x4) */ /* 0x380096ED: cmp ebx, dword ptr [edx + 4] */
    843     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    845     _flag_k = FK_CMP;
    846     esi = ebx; /* 0x380096F0: mov esi, ebx */
    847     if (CMP_EQ(_flag_a, _flag_b)) goto L_380097BD; /* 0x380096F2: je 0x380097bd */
    848 L_380096F8:
    849     eax = MEM32(esi + 0x4); /* 0x380096F8: mov eax, dword ptr [esi + 4] */
    850     SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x380096FB: mov cl, byte ptr [eax + 0x14] */
    851     /* test LO8(ecx), LO8(ecx) */ /* 0x380096FE: test cl, cl */
    852     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    853     _cf = 0;
    854     _flag_k = FK_NARROW(FK_TEST, 24);
    855     if (TEST_NZ(_flag_a, _flag_b)) goto L_380097BD; /* 0x38009700: jne 0x380097bd */
    856 L_38009706:
    857     edx = MEM32(eax + 0x4); /* 0x38009706: mov edx, dword ptr [eax + 4] */
    858     ecx = MEM32(edx); /* 0x38009709: mov ecx, dword ptr [edx] */
    859     /* cmp eax, ecx */ /* 0x3800970B: cmp eax, ecx */
    860     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    862     _flag_k = FK_CMP;
    863     if (CMP_NE(_flag_a, _flag_b)) goto L_38009763; /* 0x3800970D: jne 0x38009763 */
    864 L_3800970F:
    865     ecx = MEM32(edx + 0x8); /* 0x3800970F: mov ecx, dword ptr [edx + 8] */
    866     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009712: mov dl, byte ptr [ecx + 0x14] */
    867     /* test LO8(edx), LO8(edx) */ /* 0x38009715: test dl, dl */
    868     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    869     _cf = 0;
    870     _flag_k = FK_NARROW(FK_TEST, 24);
    871     if (TEST_NZ(_flag_a, _flag_b)) goto L_38009733; /* 0x38009717: jne 0x38009733 */
    872 L_38009719:
    873     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x38009719: mov byte ptr [eax + 0x14], 1 */
    874     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3800971D: mov byte ptr [ecx + 0x14], 1 */
    875     eax = MEM32(esi + 0x4); /* 0x38009721: mov eax, dword ptr [esi + 4] */
    876     ecx = MEM32(eax + 0x4); /* 0x38009724: mov ecx, dword ptr [eax + 4] */
    877     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009727: mov byte ptr [ecx + 0x14], 0 */
    878     edx = MEM32(esi + 0x4); /* 0x3800972B: mov edx, dword ptr [esi + 4] */
    879     esi = MEM32(edx + 0x4); /* 0x3800972E: mov esi, dword ptr [edx + 4] */
    880     goto L_380097B1; /* 0x38009731: jmp 0x380097b1 */
    881 L_38009733:
    882     /* cmp esi, MEM32(eax + 0x8) */ /* 0x38009733: cmp esi, dword ptr [eax + 8] */
    883     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    884     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    885     _flag_k = FK_CMP;
    886     if (CMP_NE(_flag_a, _flag_b)) goto L_38009742; /* 0x38009736: jne 0x38009742 */
    887 L_38009738:
    888     esi = eax; /* 0x38009738: mov esi, eax */
    889     PUSH32(esp, esi); /* 0x3800973A: push esi */
    890     ecx = edi; /* 0x3800973B: mov ecx, edi */
    891     RECOMP_ICALL(0x3803B270u); /* 0x3800973D: call 0x3803b270 */ /* not lifted */
    892     RECOMP_FLAGS_IN();
    893 L_38009742:
    894     eax = MEM32(esi + 0x4); /* 0x38009742: mov eax, dword ptr [esi + 4] */
    895     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x38009745: mov byte ptr [eax + 0x14], 1 */
    896     ecx = MEM32(esi + 0x4); /* 0x38009749: mov ecx, dword ptr [esi + 4] */
    897     edx = MEM32(ecx + 0x4); /* 0x3800974C: mov edx, dword ptr [ecx + 4] */
    898     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3800974F: mov byte ptr [edx + 0x14], 0 */
    899     eax = MEM32(esi + 0x4); /* 0x38009753: mov eax, dword ptr [esi + 4] */
    900     ecx = MEM32(eax + 0x4); /* 0x38009756: mov ecx, dword ptr [eax + 4] */
    901     PUSH32(esp, ecx); /* 0x38009759: push ecx */
    902     ecx = edi; /* 0x3800975A: mov ecx, edi */
    903     RECOMP_ICALL(0x3802F100u); /* 0x3800975C: call 0x3802f100 */ /* not lifted */
    904     RECOMP_FLAGS_IN();
    905     goto L_380097B1; /* 0x38009761: jmp 0x380097b1 */
    906 L_38009763:
    907     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009763: mov dl, byte ptr [ecx + 0x14] */
    908     /* test LO8(edx), LO8(edx) */ /* 0x38009766: test dl, dl */
    909     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    910     _cf = 0;
    911     _flag_k = FK_NARROW(FK_TEST, 24);
    912     if (TEST_NZ(_flag_a, _flag_b)) goto L_38009784; /* 0x38009768: jne 0x38009784 */
    913 L_3800976A:
    914     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3800976A: mov byte ptr [eax + 0x14], 1 */
    915     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3800976E: mov byte ptr [ecx + 0x14], 1 */
    916     edx = MEM32(esi + 0x4); /* 0x38009772: mov edx, dword ptr [esi + 4] */
    917     eax = MEM32(edx + 0x4); /* 0x38009775: mov eax, dword ptr [edx + 4] */
    918     MEM8(eax + 0x14) = (uint8_t)(0); /* 0x38009778: mov byte ptr [eax + 0x14], 0 */
    919     ecx = MEM32(esi + 0x4); /* 0x3800977C: mov ecx, dword ptr [esi + 4] */
    920     esi = MEM32(ecx + 0x4); /* 0x3800977F: mov esi, dword ptr [ecx + 4] */
    921     goto L_380097B1; /* 0x38009782: jmp 0x380097b1 */
    922 L_38009784:
    923     /* cmp esi, MEM32(eax) */ /* 0x38009784: cmp esi, dword ptr [eax] */
    924     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
    925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    926     _flag_k = FK_CMP;
    927     if (CMP_NE(_flag_a, _flag_b)) goto L_38009792; /* 0x38009786: jne 0x38009792 */
    928 L_38009788:
    929     esi = eax; /* 0x38009788: mov esi, eax */
    930     PUSH32(esp, esi); /* 0x3800978A: push esi */
    931     ecx = edi; /* 0x3800978B: mov ecx, edi */
    932     RECOMP_ICALL(0x3802F100u); /* 0x3800978D: call 0x3802f100 */ /* not lifted */
    933     RECOMP_FLAGS_IN();
    934 L_38009792:
    935     edx = MEM32(esi + 0x4); /* 0x38009792: mov edx, dword ptr [esi + 4] */
    936     MEM8(edx + 0x14) = (uint8_t)(1); /* 0x38009795: mov byte ptr [edx + 0x14], 1 */
    937     eax = MEM32(esi + 0x4); /* 0x38009799: mov eax, dword ptr [esi + 4] */
    938     ecx = MEM32(eax + 0x4); /* 0x3800979C: mov ecx, dword ptr [eax + 4] */
    939     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800979F: mov byte ptr [ecx + 0x14], 0 */
    940     edx = MEM32(esi + 0x4); /* 0x380097A3: mov edx, dword ptr [esi + 4] */
    941     eax = MEM32(edx + 0x4); /* 0x380097A6: mov eax, dword ptr [edx + 4] */
    942     PUSH32(esp, eax); /* 0x380097A9: push eax */
    943     ecx = edi; /* 0x380097AA: mov ecx, edi */
    944     RECOMP_ICALL(0x3803B270u); /* 0x380097AC: call 0x3803b270 */ /* not lifted */
    945     RECOMP_FLAGS_IN();
    946 L_380097B1:
    947     ecx = MEM32(edi + 0x4); /* 0x380097B1: mov ecx, dword ptr [edi + 4] */
    948     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x380097B4: cmp esi, dword ptr [ecx + 4] */
    949     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
    950     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    951     _flag_k = FK_CMP;
    952     RECOMP_BACKEDGE();
    953     if (CMP_NE(_flag_a, _flag_b)) goto L_380096F8; /* 0x380097B7: jne 0x380096f8 */
    954 L_380097BD:
    955     edx = MEM32(edi + 0x4); /* 0x380097BD: mov edx, dword ptr [edi + 4] */
    956     eax = MEM32(edx + 0x4); /* 0x380097C0: mov eax, dword ptr [edx + 4] */
    957     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x380097C3: mov byte ptr [eax + 0x14], 1 */
    958     eax = MEM32(ebp + 0x8); /* 0x380097C7: mov eax, dword ptr [ebp + 8] */
    959     edi = POP32_VAL(esp); /* 0x380097CA: pop edi */
    960     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x380097CB: mov byte ptr [ebp - 8], 1 */
    961     ecx = MEM32(ebp + (-0x8)); /* 0x380097CF: mov ecx, dword ptr [ebp - 8] */
    962     MEM32(eax) = ebx; /* 0x380097D2: mov dword ptr [eax], ebx */
    963     esi = POP32_VAL(esp); /* 0x380097D4: pop esi */
    964     MEM32(eax + 0x4) = ecx; /* 0x380097D5: mov dword ptr [eax + 4], ecx */
    965     ebx = POP32_VAL(esp); /* 0x380097D8: pop ebx */
    966     esp = ebp; /* 0x380097D9: mov esp, ebp */
    967     ebp = POP32_VAL(esp); /* 0x380097DB: pop ebp */
    968     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380097DC: ret 8 */
    969 L_380097DF:
    970     /* test LO8(eax), LO8(eax) */ /* 0x380097DF: test al, al */
    971     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    972     _cf = 0;
    973     _flag_k = FK_NARROW(FK_TEST, 24);
    974     MEM32(ebp + (-0x8)) = esi; /* 0x380097E1: mov dword ptr [ebp - 8], esi */
    975     if (TEST_Z(_flag_a, _flag_b)) goto L_38009820; /* 0x380097E4: je 0x38009820 */
    976 L_380097E6:
    977     edx = MEM32(edi + 0x4); /* 0x380097E6: mov edx, dword ptr [edi + 4] */
    978     /* cmp esi, MEM32(edx) */ /* 0x380097E9: cmp esi, dword ptr [edx] */
    979     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx));
    980     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    981     _flag_k = FK_CMP;
    982     if (CMP_NE(_flag_a, _flag_b)) goto L_38009818; /* 0x380097EB: jne 0x38009818 */
    983 L_380097ED:
    984     eax = MEM32(ebp + 0xC); /* 0x380097ED: mov eax, dword ptr [ebp + 0xc] */
    985     PUSH32(esp, eax); /* 0x380097F0: push eax */
    986     PUSH32(esp, esi); /* 0x380097F1: push esi */
    987     PUSH32(esp, ebx); /* 0x380097F2: push ebx */
    988     ecx = ebp + 0xC; /* 0x380097F3: lea ecx, [ebp + 0xc] */
    989     PUSH32(esp, ecx); /* 0x380097F6: push ecx */
    990     ecx = edi; /* 0x380097F7: mov ecx, edi */
    991     RECOMP_ICALL(0x38009EB0u); /* 0x380097F9: call 0x38009eb0 */ /* not lifted */
    992     RECOMP_FLAGS_IN();
    993     ecx = MEM32(eax); /* 0x380097FE: mov ecx, dword ptr [eax] */
    994     eax = MEM32(ebp + 0x8); /* 0x38009800: mov eax, dword ptr [ebp + 8] */
    995     edi = POP32_VAL(esp); /* 0x38009803: pop edi */
    996     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x38009804: mov byte ptr [ebp - 8], 1 */
    997     edx = MEM32(ebp + (-0x8)); /* 0x38009808: mov edx, dword ptr [ebp - 8] */
    998     esi = POP32_VAL(esp); /* 0x3800980B: pop esi */
    999     MEM32(eax) = ecx; /* 0x3800980C: mov dword ptr [eax], ecx */
   1000     MEM32(eax + 0x4) = edx; /* 0x3800980E: mov dword ptr [eax + 4], edx */
   1001     ebx = POP32_VAL(esp); /* 0x38009811: pop ebx */
   1002     esp = ebp; /* 0x38009812: mov esp, ebp */
   1003     ebp = POP32_VAL(esp); /* 0x38009814: pop ebp */
   1004     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38009815: ret 8 */
   1005 L_38009818:
   1006     ecx = ebp + (-0x8); /* 0x38009818: lea ecx, [ebp - 8] */
   1007     RECOMP_ICALL(0x38013690u); /* 0x3800981B: call 0x38013690 */ /* not lifted */
   1008     RECOMP_FLAGS_IN();
   1009 L_38009820:
   1010     eax = MEM32(ebp + (-0x8)); /* 0x38009820: mov eax, dword ptr [ebp - 8] */
   1011     ecx = MEM32(ebp + 0xC); /* 0x38009823: mov ecx, dword ptr [ebp + 0xc] */
   1012     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1013     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1014     eax = eax + 0xCu; /* 0x38009826: add eax, 0xc */
   1015     _flag_k = FK_ADD;
   1016     PUSH32(esp, ecx); /* 0x38009829: push ecx */
   1017     PUSH32(esp, eax); /* 0x3800982A: push eax */
   1018     RECOMP_ICALL(0x3800A130u); /* 0x3800982B: call 0x3800a130 */ /* not lifted */
   1019     RECOMP_FLAGS_IN();
   1020     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1021     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1022     esp = esp + 8; /* 0x38009830: add esp, 8 */
   1023     _flag_k = FK_ADD;
   1024     /* test LO8(eax), LO8(eax) */ /* 0x38009833: test al, al */
   1025     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1026     _cf = 0;
   1027     _flag_k = FK_NARROW(FK_TEST, 24);
   1028     if (TEST_Z(_flag_a, _flag_b)) goto L_38009862; /* 0x38009835: je 0x38009862 */
   1029 L_38009837:
   1030     edx = MEM32(ebp + 0xC); /* 0x38009837: mov edx, dword ptr [ebp + 0xc] */
   1031     PUSH32(esp, edx); /* 0x3800983A: push edx */
   1032     PUSH32(esp, esi); /* 0x3800983B: push esi */
   1033     PUSH32(esp, ebx); /* 0x3800983C: push ebx */
   1034     eax = ebp + 0xC; /* 0x3800983D: lea eax, [ebp + 0xc] */
   1035     PUSH32(esp, eax); /* 0x38009840: push eax */
   1036     ecx = edi; /* 0x38009841: mov ecx, edi */
   1037     RECOMP_ICALL(0x38009EB0u); /* 0x38009843: call 0x38009eb0 */ /* not lifted */
   1038     RECOMP_FLAGS_IN();
   1039     ecx = MEM32(eax); /* 0x38009848: mov ecx, dword ptr [eax] */
   1040     eax = MEM32(ebp + 0x8); /* 0x3800984A: mov eax, dword ptr [ebp + 8] */
   1041     edi = POP32_VAL(esp); /* 0x3800984D: pop edi */
   1042     MEM32(eax) = ecx; /* 0x3800984E: mov dword ptr [eax], ecx */
   1043     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x38009850: mov byte ptr [ebp - 8], 1 */
   1044     ecx = MEM32(ebp + (-0x8)); /* 0x38009854: mov ecx, dword ptr [ebp - 8] */
   1045     esi = POP32_VAL(esp); /* 0x38009857: pop esi */
   1046     MEM32(eax + 0x4) = ecx; /* 0x38009858: mov dword ptr [eax + 4], ecx */
   1047     ebx = POP32_VAL(esp); /* 0x3800985B: pop ebx */
   1048     esp = ebp; /* 0x3800985C: mov esp, ebp */
   1049     ebp = POP32_VAL(esp); /* 0x3800985E: pop ebp */
   1050     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3800985F: ret 8 */
   1051 L_38009862:
   1052     ecx = MEM32(ebp + (-0x8)); /* 0x38009862: mov ecx, dword ptr [ebp - 8] */
   1053     eax = MEM32(ebp + 0x8); /* 0x38009865: mov eax, dword ptr [ebp + 8] */
   1054     edi = POP32_VAL(esp); /* 0x38009868: pop edi */
   1055     MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x38009869: mov byte ptr [ebp - 8], 0 */
   1056     edx = MEM32(ebp + (-0x8)); /* 0x3800986D: mov edx, dword ptr [ebp - 8] */
   1057     esi = POP32_VAL(esp); /* 0x38009870: pop esi */
   1058     MEM32(eax) = ecx; /* 0x38009871: mov dword ptr [eax], ecx */
   1059     MEM32(eax + 0x4) = edx; /* 0x38009873: mov dword ptr [eax + 4], edx */
   1060     ebx = POP32_VAL(esp); /* 0x38009876: pop ebx */
   1061     esp = ebp; /* 0x38009877: mov esp, ebp */
   1062     ebp = POP32_VAL(esp); /* 0x38009879: pop ebp */
   1063     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3800987A: ret 8 */
   1064     RECOMP_REGS_OUT();
   1065 }
   1066 
   1067 void sub_38009880(void) {
   1068     int _fpu_cmp = 0;
   1069     uint32_t _cf = 0;
   1070     int _df = 1;
   1071     uint32_t _flag_k = FK_NONE;
   1072     uint32_t _flag_a = 0, _flag_b = 0;
   1073     uint32_t _itail_tgt = 0;
   1074     RECOMP_REGS_LOCALS
   1075     RECOMP_ENTER(0x38009880u);
   1076 
   1077 L_38009880:
   1078     PUSH32(esp, ebp); /* 0x38009880: push ebp */
   1079     ebp = esp; /* 0x38009881: mov ebp, esp */
   1080     PUSH32(esp, ebx); /* 0x38009883: push ebx */
   1081     ebx = MEM32(ebp + 0x10); /* 0x38009884: mov ebx, dword ptr [ebp + 0x10] */
   1082     PUSH32(esp, esi); /* 0x38009887: push esi */
   1083     esi = ecx; /* 0x38009888: mov esi, ecx */
   1084     eax = MEM32(esi + 0x10); /* 0x3800988A: mov eax, dword ptr [esi + 0x10] */
   1085     /* test eax, eax */ /* 0x3800988D: test eax, eax */
   1086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1087     _cf = 0;
   1088     _flag_k = FK_TEST;
   1089     ecx = MEM32(ebp + 0xC); /* 0x3800988F: mov ecx, dword ptr [ebp + 0xc] */
   1090     PUSH32(esp, edi); /* 0x38009892: push edi */
   1091     if (TEST_Z(_flag_a, _flag_b)) goto L_380098F5; /* 0x38009893: je 0x380098f5 */
   1092 L_38009895:
   1093     eax = MEM32(esi + 0x4); /* 0x38009895: mov eax, dword ptr [esi + 4] */
   1094     /* cmp ecx, MEM32(eax) */ /* 0x38009898: cmp ecx, dword ptr [eax] */
   1095     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   1096     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1097     _flag_k = FK_CMP;
   1098     if (CMP_NE(_flag_a, _flag_b)) goto L_380098F5; /* 0x3800989A: jne 0x380098f5 */
   1099 L_3800989C:
   1100     /* cmp ebx, eax */ /* 0x3800989C: cmp ebx, eax */
   1101     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   1102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1103     _flag_k = FK_CMP;
   1104     if (CMP_NE(_flag_a, _flag_b)) goto L_380098F5; /* 0x3800989E: jne 0x380098f5 */
   1105 L_380098A0:
   1106     ebx = MEM32(eax + 0x4); /* 0x380098A0: mov ebx, dword ptr [eax + 4] */
   1107     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x380098A3: cmp ebx, dword ptr [esi + 8] */
   1108     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1110     _flag_k = FK_CMP;
   1111     edi = ebx; /* 0x380098A6: mov edi, ebx */
   1112     if (CMP_EQ(_flag_a, _flag_b)) goto L_380098C9; /* 0x380098A8: je 0x380098c9 */
   1113 L_380098AA:
   1114     eax = MEM32(edi + 0x8); /* 0x380098AA: mov eax, dword ptr [edi + 8] */
   1115     PUSH32(esp, eax); /* 0x380098AD: push eax */
   1116     ecx = esi; /* 0x380098AE: mov ecx, esi */
   1117     RECOMP_ICALL(0x38009E70u); /* 0x380098B0: call 0x38009e70 */ /* not lifted */
   1118     RECOMP_FLAGS_IN();
   1119     edi = MEM32(edi); /* 0x380098B5: mov edi, dword ptr [edi] */
   1120     PUSH32(esp, ebx); /* 0x380098B7: push ebx */
   1121     RECOMP_ICALL(0x3804B4F6u); /* 0x380098B8: call 0x3804b4f6 */ /* not lifted */
   1122     RECOMP_FLAGS_IN();
   1123     eax = MEM32(esi + 0x8); /* 0x380098BD: mov eax, dword ptr [esi + 8] */
   1124     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1125     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1126     esp = esp + 4; /* 0x380098C0: add esp, 4 */
   1127     _flag_k = FK_ADD;
   1128     /* cmp edi, eax */ /* 0x380098C3: cmp edi, eax */
   1129     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1131     _flag_k = FK_CMP;
   1132     ebx = edi; /* 0x380098C5: mov ebx, edi */
   1133     RECOMP_BACKEDGE();
   1134     if (CMP_NE(_flag_a, _flag_b)) goto L_380098AA; /* 0x380098C7: jne 0x380098aa */
   1135 L_380098C9:
   1136     ecx = MEM32(esi + 0x4); /* 0x380098C9: mov ecx, dword ptr [esi + 4] */
   1137     edx = MEM32(esi + 0x8); /* 0x380098CC: mov edx, dword ptr [esi + 8] */
   1138     MEM32(ecx + 0x4) = edx; /* 0x380098CF: mov dword ptr [ecx + 4], edx */
   1139     eax = MEM32(esi + 0x4); /* 0x380098D2: mov eax, dword ptr [esi + 4] */
   1140     MEM32(esi + 0x10) = 0; /* 0x380098D5: mov dword ptr [esi + 0x10], 0 */
   1141     MEM32(eax) = eax; /* 0x380098DC: mov dword ptr [eax], eax */
   1142     eax = MEM32(esi + 0x4); /* 0x380098DE: mov eax, dword ptr [esi + 4] */
   1143     MEM32(eax + 0x8) = eax; /* 0x380098E1: mov dword ptr [eax + 8], eax */
   1144     eax = MEM32(esi + 0x4); /* 0x380098E4: mov eax, dword ptr [esi + 4] */
   1145     ecx = MEM32(eax); /* 0x380098E7: mov ecx, dword ptr [eax] */
   1146     eax = MEM32(ebp + 0x8); /* 0x380098E9: mov eax, dword ptr [ebp + 8] */
   1147     edi = POP32_VAL(esp); /* 0x380098EC: pop edi */
   1148     esi = POP32_VAL(esp); /* 0x380098ED: pop esi */
   1149     MEM32(eax) = ecx; /* 0x380098EE: mov dword ptr [eax], ecx */
   1150     ebx = POP32_VAL(esp); /* 0x380098F0: pop ebx */
   1151     ebp = POP32_VAL(esp); /* 0x380098F1: pop ebp */
   1152     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x380098F2: ret 0xc */
   1153 L_380098F5:
   1154     /* cmp ecx, ebx */ /* 0x380098F5: cmp ecx, ebx */
   1155     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1157     _flag_k = FK_CMP;
   1158     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009916; /* 0x380098F7: je 0x38009916 */
   1159 L_380098F9:
   1160     edi = ecx; /* 0x380098F9: mov edi, ecx */
   1161     ecx = ebp + 0xC; /* 0x380098FB: lea ecx, [ebp + 0xc] */
   1162     RECOMP_ICALL(0x38035590u); /* 0x380098FE: call 0x38035590 */ /* not lifted */
   1163     RECOMP_FLAGS_IN();
   1164     PUSH32(esp, edi); /* 0x38009903: push edi */
   1165     ecx = ebp + 0x10; /* 0x38009904: lea ecx, [ebp + 0x10] */
   1166     PUSH32(esp, ecx); /* 0x38009907: push ecx */
   1167     ecx = esi; /* 0x38009908: mov ecx, esi */
   1168     RECOMP_ICALL(0x3800F9D0u); /* 0x3800990A: call 0x3800f9d0 */ /* not lifted */
   1169     RECOMP_FLAGS_IN();
   1170     ecx = MEM32(ebp + 0xC); /* 0x3800990F: mov ecx, dword ptr [ebp + 0xc] */
   1171     /* cmp ecx, ebx */ /* 0x38009912: cmp ecx, ebx */
   1172     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1174     _flag_k = FK_CMP;
   1175     RECOMP_BACKEDGE();
   1176     if (CMP_NE(_flag_a, _flag_b)) goto L_380098F9; /* 0x38009914: jne 0x380098f9 */
   1177 L_38009916:
   1178     eax = MEM32(ebp + 0x8); /* 0x38009916: mov eax, dword ptr [ebp + 8] */
   1179     edi = POP32_VAL(esp); /* 0x38009919: pop edi */
   1180     esi = POP32_VAL(esp); /* 0x3800991A: pop esi */
   1181     MEM32(eax) = ecx; /* 0x3800991B: mov dword ptr [eax], ecx */
   1182     ebx = POP32_VAL(esp); /* 0x3800991D: pop ebx */
   1183     ebp = POP32_VAL(esp); /* 0x3800991E: pop ebp */
   1184     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3800991F: ret 0xc */
   1185     RECOMP_REGS_OUT();
   1186 }
   1187 
   1188 void sub_38009930(void) {
   1189     int _fpu_cmp = 0;
   1190     uint32_t _cf = 0;
   1191     int _df = 1;
   1192     uint32_t _flag_k = FK_NONE;
   1193     uint32_t _flag_a = 0, _flag_b = 0;
   1194     uint32_t _itail_tgt = 0;
   1195     RECOMP_REGS_LOCALS
   1196     RECOMP_ENTER(0x38009930u);
   1197 
   1198 L_38009930:
   1199     PUSH32(esp, ebp); /* 0x38009930: push ebp */
   1200     ebp = esp; /* 0x38009931: mov ebp, esp */
   1201     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1203     esp = esp - 0xCu; /* 0x38009933: sub esp, 0xc */
   1204     _flag_k = FK_CMP;
   1205     PUSH32(esp, ebx); /* 0x38009936: push ebx */
   1206     ebx = ecx; /* 0x38009937: mov ebx, ecx */
   1207     ecx = MEM32(ebx + 0x8); /* 0x38009939: mov ecx, dword ptr [ebx + 8] */
   1208     edx = MEM32(ebx + 0xC); /* 0x3800993C: mov edx, dword ptr [ebx + 0xc] */
   1209     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1210     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1211     edx = edx - ecx; /* 0x3800993F: sub edx, ecx */
   1212     _flag_k = FK_CMP;
   1213     eax = 0x2AAAAAABu; /* 0x38009941: mov eax, 0x2aaaaaab */
   1214     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x38009946: imul edx */
   1215       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1216       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1217     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x38009948: sar edx, 1 */
   1218     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1219     edx = (uint32_t)((int32_t)edx >> 1u);
   1220     eax = edx; /* 0x3800994A: mov eax, edx */
   1221     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3800994C: shr eax, 0x1f */
   1222     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1223     eax = eax >> 31u; /* 0x3800994C: shr eax, 0x1f */
   1224     PUSH32(esp, esi); /* 0x3800994F: push esi */
   1225     esi = MEM32(ebp + 0xC); /* 0x38009950: mov esi, dword ptr [ebp + 0xc] */
   1226     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1227     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1228     edx = edx + eax; /* 0x38009953: add edx, eax */
   1229     _flag_k = FK_ADD;
   1230     /* cmp edx, esi */ /* 0x38009955: cmp edx, esi */
   1231     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   1232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1233     _flag_k = FK_CMP;
   1234     PUSH32(esp, edi); /* 0x38009957: push edi */
   1235     MEM32(ebp + (-0x4)) = ebx; /* 0x38009958: mov dword ptr [ebp - 4], ebx */
   1236     if (CMP_AE(_flag_a, _flag_b)) goto L_38009AD4; /* 0x3800995B: jae 0x38009ad4 */
   1237 L_38009961:
   1238     edi = MEM32(ebx + 0x4); /* 0x38009961: mov edi, dword ptr [ebx + 4] */
   1239     /* test edi, edi */ /* 0x38009964: test edi, edi */
   1240     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1241     _cf = 0;
   1242     _flag_k = FK_TEST;
   1243     if (TEST_Z(_flag_a, _flag_b)) goto L_38009982; /* 0x38009966: je 0x38009982 */
   1244 L_38009968:
   1245     edx = ecx; /* 0x38009968: mov edx, ecx */
   1246     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   1247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1248     edx = edx - edi; /* 0x3800996A: sub edx, edi */
   1249     _flag_k = FK_CMP;
   1250     eax = 0x2AAAAAABu; /* 0x3800996C: mov eax, 0x2aaaaaab */
   1251     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x38009971: imul edx */
   1252       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1253       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1254     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x38009973: sar edx, 1 */
   1255     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1256     edx = (uint32_t)((int32_t)edx >> 1u);
   1257     eax = edx; /* 0x38009975: mov eax, edx */
   1258     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x38009977: shr eax, 0x1f */
   1259     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1260     eax = eax >> 31u; /* 0x38009977: shr eax, 0x1f */
   1261     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1262     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1263     edx = edx + eax; /* 0x3800997A: add edx, eax */
   1264     _flag_k = FK_ADD;
   1265     /* cmp esi, edx */ /* 0x3800997C: cmp esi, edx */
   1266     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1268     _flag_k = FK_CMP;
   1269     ebx = edx; /* 0x3800997E: mov ebx, edx */
   1270     if (CMP_B(_flag_a, _flag_b)) goto L_38009984; /* 0x38009980: jb 0x38009984 */
   1271 L_38009982:
   1272     ebx = esi; /* 0x38009982: mov ebx, esi */
   1273 L_38009984:
   1274     /* test edi, edi */ /* 0x38009984: test edi, edi */
   1275     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1276     _cf = 0;
   1277     _flag_k = FK_TEST;
   1278     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800998C; /* 0x38009986: jne 0x3800998c */
   1279 L_38009988:
   1280     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1281     edx = 0; /* 0x38009988: xor edx, edx */
   1282     _cf = 0;
   1283     _flag_k = FK_TEST;
   1284     goto L_3800999E; /* 0x3800998A: jmp 0x3800999e */
   1285 L_3800998C:
   1286     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   1287     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1288     ecx = ecx - edi; /* 0x3800998C: sub ecx, edi */
   1289     _flag_k = FK_CMP;
   1290     eax = 0x2AAAAAABu; /* 0x3800998E: mov eax, 0x2aaaaaab */
   1291     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x38009993: imul ecx */
   1292       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1293       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1294     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x38009995: sar edx, 1 */
   1295     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1296     edx = (uint32_t)((int32_t)edx >> 1u);
   1297     ecx = edx; /* 0x38009997: mov ecx, edx */
   1298     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x38009999: shr ecx, 0x1f */
   1299     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1300     ecx = ecx >> 31u; /* 0x38009999: shr ecx, 0x1f */
   1301     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1302     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1303     edx = edx + ecx; /* 0x3800999C: add edx, ecx */
   1304     _flag_k = FK_ADD;
   1305 L_3800999E:
   1306     eax = edx + ebx; /* 0x3800999E: lea eax, [edx + ebx] */
   1307     /* test eax, eax */ /* 0x380099A1: test eax, eax */
   1308     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1309     _cf = 0;
   1310     _flag_k = FK_TEST;
   1311     MEM32(ebp + (-0x8)) = eax; /* 0x380099A3: mov dword ptr [ebp - 8], eax */
   1312     if (TEST_NS(_flag_a, _flag_b)) goto L_380099AA; /* 0x380099A6: jge 0x380099aa */
   1313 L_380099A8:
   1314     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1315     eax = 0; /* 0x380099A8: xor eax, eax */
   1316     _cf = 0;
   1317     _flag_k = FK_TEST;
   1318 L_380099AA:
   1319     edx = eax + eax * 2; /* 0x380099AA: lea edx, [eax + eax*2] */
   1320     if (2u) _cf = (((edx) >> 30) & 1u); /* 0x380099AD: shl edx, 2 */
   1321     if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1322     edx = edx << 2u; /* 0x380099AD: shl edx, 2 */
   1323     PUSH32(esp, edx); /* 0x380099B0: push edx */
   1324     RECOMP_ICALL(0x3804B676u); /* 0x380099B1: call 0x3804b676 */ /* not lifted */
   1325     RECOMP_FLAGS_IN();
   1326     ecx = MEM32(ebp + 0x8); /* 0x380099B6: mov ecx, dword ptr [ebp + 8] */
   1327     MEM32(ebp + (-0xC)) = eax; /* 0x380099B9: mov dword ptr [ebp - 0xc], eax */
   1328     edx = eax; /* 0x380099BC: mov edx, eax */
   1329     eax = MEM32(ebp + (-0x4)); /* 0x380099BE: mov eax, dword ptr [ebp - 4] */
   1330     eax = MEM32(eax + 0x4); /* 0x380099C1: mov eax, dword ptr [eax + 4] */
   1331     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1332     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1333     esp = esp + 4; /* 0x380099C4: add esp, 4 */
   1334     _flag_k = FK_ADD;
   1335     /* cmp eax, ecx */ /* 0x380099C7: cmp eax, ecx */
   1336     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1338     _flag_k = FK_CMP;
   1339     if (CMP_EQ(_flag_a, _flag_b)) goto L_380099F0; /* 0x380099C9: je 0x380099f0 */
   1340 L_380099CB:
   1341     /* test edx, edx */ /* 0x380099CB: test edx, edx */
   1342     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1343     _cf = 0;
   1344     _flag_k = FK_TEST;
   1345     if (TEST_Z(_flag_a, _flag_b)) goto L_380099E3; /* 0x380099CD: je 0x380099e3 */
   1346 L_380099CF:
   1347     ecx = eax; /* 0x380099CF: mov ecx, eax */
   1348     ebx = MEM32(ecx); /* 0x380099D1: mov ebx, dword ptr [ecx] */
   1349     edi = edx; /* 0x380099D3: mov edi, edx */
   1350     MEM32(edi) = ebx; /* 0x380099D5: mov dword ptr [edi], ebx */
   1351     ebx = MEM32(ecx + 0x4); /* 0x380099D7: mov ebx, dword ptr [ecx + 4] */
   1352     MEM32(edi + 0x4) = ebx; /* 0x380099DA: mov dword ptr [edi + 4], ebx */
   1353     ecx = MEM32(ecx + 0x8); /* 0x380099DD: mov ecx, dword ptr [ecx + 8] */
   1354     MEM32(edi + 0x8) = ecx; /* 0x380099E0: mov dword ptr [edi + 8], ecx */
   1355 L_380099E3:
   1356     ecx = MEM32(ebp + 0x8); /* 0x380099E3: mov ecx, dword ptr [ebp + 8] */
   1357     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1358     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1359     eax = eax + 0xCu; /* 0x380099E6: add eax, 0xc */
   1360     _flag_k = FK_ADD;
   1361     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   1362     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1363     edx = edx + 0xCu; /* 0x380099E9: add edx, 0xc */
   1364     _flag_k = FK_ADD;
   1365     /* cmp eax, ecx */ /* 0x380099EC: cmp eax, ecx */
   1366     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1368     _flag_k = FK_CMP;
   1369     RECOMP_BACKEDGE();
   1370     if (CMP_NE(_flag_a, _flag_b)) goto L_380099CB; /* 0x380099EE: jne 0x380099cb */
   1371 L_380099F0:
   1372     /* test esi, esi */ /* 0x380099F0: test esi, esi */
   1373     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1374     _cf = 0;
   1375     _flag_k = FK_TEST;
   1376     eax = edx; /* 0x380099F2: mov eax, edx */
   1377     if (TEST_Z(_flag_a, _flag_b)) goto L_38009A1E; /* 0x380099F4: jbe 0x38009a1e */
   1378 L_380099F6:
   1379     MEM32(ebp + 0xC) = esi; /* 0x380099F6: mov dword ptr [ebp + 0xc], esi */
   1380 L_380099F9:
   1381     /* test eax, eax */ /* 0x380099F9: test eax, eax */
   1382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1383     _cf = 0;
   1384     _flag_k = FK_TEST;
   1385     if (TEST_Z(_flag_a, _flag_b)) goto L_38009A12; /* 0x380099FB: je 0x38009a12 */
   1386 L_380099FD:
   1387     ecx = MEM32(ebp + 0x10); /* 0x380099FD: mov ecx, dword ptr [ebp + 0x10] */
   1388     ebx = MEM32(ecx); /* 0x38009A00: mov ebx, dword ptr [ecx] */
   1389     edi = eax; /* 0x38009A02: mov edi, eax */
   1390     MEM32(edi) = ebx; /* 0x38009A04: mov dword ptr [edi], ebx */
   1391     ebx = MEM32(ecx + 0x4); /* 0x38009A06: mov ebx, dword ptr [ecx + 4] */
   1392     MEM32(edi + 0x4) = ebx; /* 0x38009A09: mov dword ptr [edi + 4], ebx */
   1393     ecx = MEM32(ecx + 0x8); /* 0x38009A0C: mov ecx, dword ptr [ecx + 8] */
   1394     MEM32(edi + 0x8) = ecx; /* 0x38009A0F: mov dword ptr [edi + 8], ecx */
   1395 L_38009A12:
   1396     ecx = MEM32(ebp + 0xC); /* 0x38009A12: mov ecx, dword ptr [ebp + 0xc] */
   1397     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1398     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1399     eax = eax + 0xCu; /* 0x38009A15: add eax, 0xc */
   1400     _flag_k = FK_ADD;
   1401     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1402     ecx = ecx - 1; /* 0x38009A18: dec ecx */
   1403     _flag_k = FK_DEC;
   1404     MEM32(ebp + 0xC) = ecx; /* 0x38009A19: mov dword ptr [ebp + 0xc], ecx */
   1405     RECOMP_BACKEDGE();
   1406     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_380099F9; /* 0x38009A1C: jne 0x380099f9 */
   1407 L_38009A1E:
   1408     eax = MEM32(ebp + (-0x4)); /* 0x38009A1E: mov eax, dword ptr [ebp - 4] */
   1409     ebx = MEM32(eax + 0x8); /* 0x38009A21: mov ebx, dword ptr [eax + 8] */
   1410     eax = MEM32(ebp + 0x8); /* 0x38009A24: mov eax, dword ptr [ebp + 8] */
   1411     ecx = esi + esi * 2; /* 0x38009A27: lea ecx, [esi + esi*2] */
   1412     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x38009A2A: shl ecx, 2 */
   1413     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1414     ecx = ecx << 2u; /* 0x38009A2A: shl ecx, 2 */
   1415     /* cmp eax, ebx */ /* 0x38009A2D: cmp eax, ebx */
   1416     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1418     _flag_k = FK_CMP;
   1419     edi = ecx + edx; /* 0x38009A2F: lea edi, [ecx + edx] */
   1420     MEM32(ebp + 0x10) = ebx; /* 0x38009A32: mov dword ptr [ebp + 0x10], ebx */
   1421     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009A67; /* 0x38009A35: je 0x38009a67 */
   1422 L_38009A37:
   1423     eax = edi; /* 0x38009A37: mov eax, edi */
   1424     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1426     eax = eax - ecx; /* 0x38009A39: sub eax, ecx */
   1427     _flag_k = FK_CMP;
   1428     ecx = MEM32(ebp + 0x8); /* 0x38009A3B: mov ecx, dword ptr [ebp + 8] */
   1429     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1431     eax = eax - edx; /* 0x38009A3E: sub eax, edx */
   1432     _flag_k = FK_CMP;
   1433     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1434     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1435     eax = eax + ecx; /* 0x38009A40: add eax, ecx */
   1436     _flag_k = FK_ADD;
   1437 L_38009A42:
   1438     /* test edi, edi */ /* 0x38009A42: test edi, edi */
   1439     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1440     _cf = 0;
   1441     _flag_k = FK_TEST;
   1442     if (TEST_Z(_flag_a, _flag_b)) goto L_38009A5D; /* 0x38009A44: je 0x38009a5d */
   1443 L_38009A46:
   1444     ecx = eax; /* 0x38009A46: mov ecx, eax */
   1445     ebx = MEM32(ecx); /* 0x38009A48: mov ebx, dword ptr [ecx] */
   1446     edx = edi; /* 0x38009A4A: mov edx, edi */
   1447     MEM32(edx) = ebx; /* 0x38009A4C: mov dword ptr [edx], ebx */
   1448     ebx = MEM32(ecx + 0x4); /* 0x38009A4E: mov ebx, dword ptr [ecx + 4] */
   1449     MEM32(edx + 0x4) = ebx; /* 0x38009A51: mov dword ptr [edx + 4], ebx */
   1450     ecx = MEM32(ecx + 0x8); /* 0x38009A54: mov ecx, dword ptr [ecx + 8] */
   1451     ebx = MEM32(ebp + 0x10); /* 0x38009A57: mov ebx, dword ptr [ebp + 0x10] */
   1452     MEM32(edx + 0x8) = ecx; /* 0x38009A5A: mov dword ptr [edx + 8], ecx */
   1453 L_38009A5D:
   1454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1455     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1456     eax = eax + 0xCu; /* 0x38009A5D: add eax, 0xc */
   1457     _flag_k = FK_ADD;
   1458     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   1459     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1460     edi = edi + 0xCu; /* 0x38009A60: add edi, 0xc */
   1461     _flag_k = FK_ADD;
   1462     /* cmp eax, ebx */ /* 0x38009A63: cmp eax, ebx */
   1463     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1465     _flag_k = FK_CMP;
   1466     RECOMP_BACKEDGE();
   1467     if (CMP_NE(_flag_a, _flag_b)) goto L_38009A42; /* 0x38009A65: jne 0x38009a42 */
   1468 L_38009A67:
   1469     edi = MEM32(ebp + (-0x4)); /* 0x38009A67: mov edi, dword ptr [ebp - 4] */
   1470     eax = MEM32(edi + 0x4); /* 0x38009A6A: mov eax, dword ptr [edi + 4] */
   1471     PUSH32(esp, eax); /* 0x38009A6D: push eax */
   1472     MEM32(ebp + 0x8) = eax; /* 0x38009A6E: mov dword ptr [ebp + 8], eax */
   1473     RECOMP_ICALL(0x3804B4F6u); /* 0x38009A71: call 0x3804b4f6 */ /* not lifted */
   1474     RECOMP_FLAGS_IN();
   1475     eax = MEM32(ebp + (-0x8)); /* 0x38009A76: mov eax, dword ptr [ebp - 8] */
   1476     ebx = MEM32(ebp + (-0xC)); /* 0x38009A79: mov ebx, dword ptr [ebp - 0xc] */
   1477     edx = eax + eax * 2; /* 0x38009A7C: lea edx, [eax + eax*2] */
   1478     eax = ebx + edx * 4; /* 0x38009A7F: lea eax, [ebx + edx*4] */
   1479     MEM32(edi + 0xC) = eax; /* 0x38009A82: mov dword ptr [edi + 0xc], eax */
   1480     eax = MEM32(edi + 0x4); /* 0x38009A85: mov eax, dword ptr [edi + 4] */
   1481     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1482     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1483     esp = esp + 4; /* 0x38009A88: add esp, 4 */
   1484     _flag_k = FK_ADD;
   1485     /* test eax, eax */ /* 0x38009A8B: test eax, eax */
   1486     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1487     _cf = 0;
   1488     _flag_k = FK_TEST;
   1489     if (TEST_NZ(_flag_a, _flag_b)) goto L_38009AA8; /* 0x38009A8D: jne 0x38009aa8 */
   1490 L_38009A8F:
   1491     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1492     edx = 0; /* 0x38009A8F: xor edx, edx */
   1493     _cf = 0;
   1494     _flag_k = FK_TEST;
   1495     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1496     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1497     esi = esi + edx; /* 0x38009A91: add esi, edx */
   1498     _flag_k = FK_ADD;
   1499     edx = esi + esi * 2; /* 0x38009A93: lea edx, [esi + esi*2] */
   1500     eax = ebx + edx * 4; /* 0x38009A96: lea eax, [ebx + edx*4] */
   1501     MEM32(edi + 0x4) = ebx; /* 0x38009A99: mov dword ptr [edi + 4], ebx */
   1502     MEM32(edi + 0x8) = eax; /* 0x38009A9C: mov dword ptr [edi + 8], eax */
   1503     edi = POP32_VAL(esp); /* 0x38009A9F: pop edi */
   1504     esi = POP32_VAL(esp); /* 0x38009AA0: pop esi */
   1505     ebx = POP32_VAL(esp); /* 0x38009AA1: pop ebx */
   1506     esp = ebp; /* 0x38009AA2: mov esp, ebp */
   1507     ebp = POP32_VAL(esp); /* 0x38009AA4: pop ebp */
   1508     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38009AA5: ret 0xc */
   1509 L_38009AA8:
   1510     ecx = MEM32(edi + 0x8); /* 0x38009AA8: mov ecx, dword ptr [edi + 8] */
   1511     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1513     ecx = ecx - eax; /* 0x38009AAB: sub ecx, eax */
   1514     _flag_k = FK_CMP;
   1515     eax = 0x2AAAAAABu; /* 0x38009AAD: mov eax, 0x2aaaaaab */
   1516     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x38009AB2: imul ecx */
   1517       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1518       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1519     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x38009AB4: sar edx, 1 */
   1520     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1521     edx = (uint32_t)((int32_t)edx >> 1u);
   1522     ecx = edx; /* 0x38009AB6: mov ecx, edx */
   1523     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x38009AB8: shr ecx, 0x1f */
   1524     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1525     ecx = ecx >> 31u; /* 0x38009AB8: shr ecx, 0x1f */
   1526     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1527     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1528     edx = edx + ecx; /* 0x38009ABB: add edx, ecx */
   1529     _flag_k = FK_ADD;
   1530     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1531     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1532     esi = esi + edx; /* 0x38009ABD: add esi, edx */
   1533     _flag_k = FK_ADD;
   1534     edx = esi + esi * 2; /* 0x38009ABF: lea edx, [esi + esi*2] */
   1535     eax = ebx + edx * 4; /* 0x38009AC2: lea eax, [ebx + edx*4] */
   1536     MEM32(edi + 0x4) = ebx; /* 0x38009AC5: mov dword ptr [edi + 4], ebx */
   1537     MEM32(edi + 0x8) = eax; /* 0x38009AC8: mov dword ptr [edi + 8], eax */
   1538     edi = POP32_VAL(esp); /* 0x38009ACB: pop edi */
   1539     esi = POP32_VAL(esp); /* 0x38009ACC: pop esi */
   1540     ebx = POP32_VAL(esp); /* 0x38009ACD: pop ebx */
   1541     esp = ebp; /* 0x38009ACE: mov esp, ebp */
   1542     ebp = POP32_VAL(esp); /* 0x38009AD0: pop ebp */
   1543     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38009AD1: ret 0xc */
   1544 L_38009AD4:
   1545     edi = MEM32(ebp + 0x8); /* 0x38009AD4: mov edi, dword ptr [ebp + 8] */
   1546     edx = ecx; /* 0x38009AD7: mov edx, ecx */
   1547     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   1548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1549     edx = edx - edi; /* 0x38009AD9: sub edx, edi */
   1550     _flag_k = FK_CMP;
   1551     eax = 0x2AAAAAABu; /* 0x38009ADB: mov eax, 0x2aaaaaab */
   1552     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x38009AE0: imul edx */
   1553       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1554       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1555     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x38009AE2: sar edx, 1 */
   1556     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1557     edx = (uint32_t)((int32_t)edx >> 1u);
   1558     eax = edx; /* 0x38009AE4: mov eax, edx */
   1559     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x38009AE6: shr eax, 0x1f */
   1560     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1561     eax = eax >> 31u; /* 0x38009AE6: shr eax, 0x1f */
   1562     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1563     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1564     edx = edx + eax; /* 0x38009AE9: add edx, eax */
   1565     _flag_k = FK_ADD;
   1566     /* cmp edx, esi */ /* 0x38009AEB: cmp edx, esi */
   1567     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   1568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1569     _flag_k = FK_CMP;
   1570     if (CMP_AE(_flag_a, _flag_b)) goto L_38009BB3; /* 0x38009AED: jae 0x38009bb3 */
   1571 L_38009AF3:
   1572     ebx = esi + esi * 2; /* 0x38009AF3: lea ebx, [esi + esi*2] */
   1573     if (2u) _cf = (((ebx) >> 30) & 1u); /* 0x38009AF6: shl ebx, 2 */
   1574     if (2u) { _flag_a = recomp_flags_pack((ebx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1575     ebx = ebx << 2u; /* 0x38009AF6: shl ebx, 2 */
   1576     /* cmp edi, ecx */ /* 0x38009AF9: cmp edi, ecx */
   1577     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   1578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1579     _flag_k = FK_CMP;
   1580     edx = ebx + edi; /* 0x38009AFB: lea edx, [ebx + edi] */
   1581     MEM32(ebp + 0x8) = ebx; /* 0x38009AFE: mov dword ptr [ebp + 8], ebx */
   1582     MEM32(ebp + 0xC) = edx; /* 0x38009B01: mov dword ptr [ebp + 0xc], edx */
   1583     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009B37; /* 0x38009B04: je 0x38009b37 */
   1584 L_38009B06:
   1585     eax = edx; /* 0x38009B06: mov eax, edx */
   1586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1588     eax = eax - ebx; /* 0x38009B08: sub eax, ebx */
   1589     _flag_k = FK_CMP;
   1590     MEM32(ebp + (-0x8)) = eax; /* 0x38009B0A: mov dword ptr [ebp - 8], eax */
   1591 L_38009B0D:
   1592     /* test edx, edx */ /* 0x38009B0D: test edx, edx */
   1593     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1594     _cf = 0;
   1595     _flag_k = FK_TEST;
   1596     if (TEST_Z(_flag_a, _flag_b)) goto L_38009B27; /* 0x38009B0F: je 0x38009b27 */
   1597 L_38009B11:
   1598     ebx = MEM32(eax); /* 0x38009B11: mov ebx, dword ptr [eax] */
   1599     MEM32(edx) = ebx; /* 0x38009B13: mov dword ptr [edx], ebx */
   1600     ebx = MEM32(eax + 0x4); /* 0x38009B15: mov ebx, dword ptr [eax + 4] */
   1601     MEM32(edx + 0x4) = ebx; /* 0x38009B18: mov dword ptr [edx + 4], ebx */
   1602     eax = MEM32(eax + 0x8); /* 0x38009B1B: mov eax, dword ptr [eax + 8] */
   1603     MEM32(edx + 0x8) = eax; /* 0x38009B1E: mov dword ptr [edx + 8], eax */
   1604     edx = MEM32(ebp + 0xC); /* 0x38009B21: mov edx, dword ptr [ebp + 0xc] */
   1605     eax = MEM32(ebp + (-0x8)); /* 0x38009B24: mov eax, dword ptr [ebp - 8] */
   1606 L_38009B27:
   1607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1608     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1609     eax = eax + 0xCu; /* 0x38009B27: add eax, 0xc */
   1610     _flag_k = FK_ADD;
   1611     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   1612     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1613     edx = edx + 0xCu; /* 0x38009B2A: add edx, 0xc */
   1614     _flag_k = FK_ADD;
   1615     /* cmp eax, ecx */ /* 0x38009B2D: cmp eax, ecx */
   1616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1618     _flag_k = FK_CMP;
   1619     MEM32(ebp + 0xC) = edx; /* 0x38009B2F: mov dword ptr [ebp + 0xc], edx */
   1620     MEM32(ebp + (-0x8)) = eax; /* 0x38009B32: mov dword ptr [ebp - 8], eax */
   1621     RECOMP_BACKEDGE();
   1622     if (CMP_NE(_flag_a, _flag_b)) goto L_38009B0D; /* 0x38009B35: jne 0x38009b0d */
   1623 L_38009B37:
   1624     ecx = MEM32(ebp + (-0x4)); /* 0x38009B37: mov ecx, dword ptr [ebp - 4] */
   1625     ebx = MEM32(ecx + 0x8); /* 0x38009B3A: mov ebx, dword ptr [ecx + 8] */
   1626     ecx = ebx; /* 0x38009B3D: mov ecx, ebx */
   1627     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   1628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1629     ecx = ecx - edi; /* 0x38009B3F: sub ecx, edi */
   1630     _flag_k = FK_CMP;
   1631     eax = 0x2AAAAAABu; /* 0x38009B41: mov eax, 0x2aaaaaab */
   1632     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x38009B46: imul ecx */
   1633       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1634       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1635     ecx = MEM32(ebp + 0x10); /* 0x38009B48: mov ecx, dword ptr [ebp + 0x10] */
   1636     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x38009B4B: sar edx, 1 */
   1637     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1638     edx = (uint32_t)((int32_t)edx >> 1u);
   1639     eax = edx; /* 0x38009B4D: mov eax, edx */
   1640     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x38009B4F: shr eax, 0x1f */
   1641     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1642     eax = eax >> 31u; /* 0x38009B4F: shr eax, 0x1f */
   1643     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1644     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1645     edx = edx + eax; /* 0x38009B52: add edx, eax */
   1646     _flag_k = FK_ADD;
   1647     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1649     esi = esi - edx; /* 0x38009B54: sub esi, edx */
   1650     _flag_k = FK_CMP;
   1651     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38009B77; /* 0x38009B56: je 0x38009b77 */
   1652 L_38009B58:
   1653     /* test ebx, ebx */ /* 0x38009B58: test ebx, ebx */
   1654     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1655     _cf = 0;
   1656     _flag_k = FK_TEST;
   1657     if (TEST_Z(_flag_a, _flag_b)) goto L_38009B71; /* 0x38009B5A: je 0x38009b71 */
   1658 L_38009B5C:
   1659     eax = MEM32(ecx); /* 0x38009B5C: mov eax, dword ptr [ecx] */
   1660     edx = ebx; /* 0x38009B5E: mov edx, ebx */
   1661     MEM32(edx) = eax; /* 0x38009B60: mov dword ptr [edx], eax */
   1662     eax = MEM32(ecx + 0x4); /* 0x38009B62: mov eax, dword ptr [ecx + 4] */
   1663     MEM32(edx + 0x4) = eax; /* 0x38009B65: mov dword ptr [edx + 4], eax */
   1664     ecx = MEM32(ecx + 0x8); /* 0x38009B68: mov ecx, dword ptr [ecx + 8] */
   1665     MEM32(edx + 0x8) = ecx; /* 0x38009B6B: mov dword ptr [edx + 8], ecx */
   1666     ecx = MEM32(ebp + 0x10); /* 0x38009B6E: mov ecx, dword ptr [ebp + 0x10] */
   1667 L_38009B71:
   1668     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1669     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1670     ebx = ebx + 0xCu; /* 0x38009B71: add ebx, 0xc */
   1671     _flag_k = FK_ADD;
   1672     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   1673     esi = esi - 1; /* 0x38009B74: dec esi */
   1674     _flag_k = FK_DEC;
   1675     RECOMP_BACKEDGE();
   1676     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38009B58; /* 0x38009B75: jne 0x38009b58 */
   1677 L_38009B77:
   1678     edx = MEM32(ebp + (-0x4)); /* 0x38009B77: mov edx, dword ptr [ebp - 4] */
   1679     eax = MEM32(edx + 0x8); /* 0x38009B7A: mov eax, dword ptr [edx + 8] */
   1680     /* cmp edi, eax */ /* 0x38009B7D: cmp edi, eax */
   1681     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1683     _flag_k = FK_CMP;
   1684     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009B9F; /* 0x38009B7F: je 0x38009b9f */
   1685 L_38009B81:
   1686     edx = ecx; /* 0x38009B81: mov edx, ecx */
   1687     ebx = MEM32(edx); /* 0x38009B83: mov ebx, dword ptr [edx] */
   1688     esi = edi; /* 0x38009B85: mov esi, edi */
   1689     MEM32(esi) = ebx; /* 0x38009B87: mov dword ptr [esi], ebx */
   1690     ebx = MEM32(edx + 0x4); /* 0x38009B89: mov ebx, dword ptr [edx + 4] */
   1691     MEM32(esi + 0x4) = ebx; /* 0x38009B8C: mov dword ptr [esi + 4], ebx */
   1692     edx = MEM32(edx + 0x8); /* 0x38009B8F: mov edx, dword ptr [edx + 8] */
   1693     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   1694     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1695     edi = edi + 0xCu; /* 0x38009B92: add edi, 0xc */
   1696     _flag_k = FK_ADD;
   1697     /* cmp edi, eax */ /* 0x38009B95: cmp edi, eax */
   1698     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1700     _flag_k = FK_CMP;
   1701     MEM32(esi + 0x8) = edx; /* 0x38009B97: mov dword ptr [esi + 8], edx */
   1702     RECOMP_BACKEDGE();
   1703     if (CMP_NE(_flag_a, _flag_b)) goto L_38009B81; /* 0x38009B9A: jne 0x38009b81 */
   1704 L_38009B9C:
   1705     edx = MEM32(ebp + (-0x4)); /* 0x38009B9C: mov edx, dword ptr [ebp - 4] */
   1706 L_38009B9F:
   1707     ecx = MEM32(edx + 0x8); /* 0x38009B9F: mov ecx, dword ptr [edx + 8] */
   1708     eax = MEM32(ebp + 0x8); /* 0x38009BA2: mov eax, dword ptr [ebp + 8] */
   1709     edi = POP32_VAL(esp); /* 0x38009BA5: pop edi */
   1710     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1711     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1712     ecx = ecx + eax; /* 0x38009BA6: add ecx, eax */
   1713     _flag_k = FK_ADD;
   1714     esi = POP32_VAL(esp); /* 0x38009BA8: pop esi */
   1715     MEM32(edx + 0x8) = ecx; /* 0x38009BA9: mov dword ptr [edx + 8], ecx */
   1716     ebx = POP32_VAL(esp); /* 0x38009BAC: pop ebx */
   1717     esp = ebp; /* 0x38009BAD: mov esp, ebp */
   1718     ebp = POP32_VAL(esp); /* 0x38009BAF: pop ebp */
   1719     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38009BB0: ret 0xc */
   1720 L_38009BB3:
   1721     /* test esi, esi */ /* 0x38009BB3: test esi, esi */
   1722     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1723     _cf = 0;
   1724     _flag_k = FK_TEST;
   1725     if (TEST_Z(_flag_a, _flag_b)) goto L_38009C55; /* 0x38009BB5: jbe 0x38009c55 */
   1726 L_38009BBB:
   1727     esi = esi + esi * 2; /* 0x38009BBB: lea esi, [esi + esi*2] */
   1728     if (2u) _cf = (((esi) >> 30) & 1u); /* 0x38009BBE: shl esi, 2 */
   1729     if (2u) { _flag_a = recomp_flags_pack((esi << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1730     esi = esi << 2u; /* 0x38009BBE: shl esi, 2 */
   1731     eax = ecx; /* 0x38009BC1: mov eax, ecx */
   1732     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1733     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1734     eax = eax - esi; /* 0x38009BC3: sub eax, esi */
   1735     _flag_k = FK_CMP;
   1736     /* cmp eax, ecx */ /* 0x38009BC5: cmp eax, ecx */
   1737     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1739     _flag_k = FK_CMP;
   1740     edx = ecx; /* 0x38009BC7: mov edx, ecx */
   1741     MEM32(ebp + 0xC) = edx; /* 0x38009BC9: mov dword ptr [ebp + 0xc], edx */
   1742     MEM32(ebp + 0x8) = esi; /* 0x38009BCC: mov dword ptr [ebp + 8], esi */
   1743     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009BFD; /* 0x38009BCF: je 0x38009bfd */
   1744 L_38009BD1:
   1745     /* test edx, edx */ /* 0x38009BD1: test edx, edx */
   1746     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1747     _cf = 0;
   1748     _flag_k = FK_TEST;
   1749     if (TEST_Z(_flag_a, _flag_b)) goto L_38009BF0; /* 0x38009BD3: je 0x38009bf0 */
   1750 L_38009BD5:
   1751     esi = eax; /* 0x38009BD5: mov esi, eax */
   1752     ebx = MEM32(esi); /* 0x38009BD7: mov ebx, dword ptr [esi] */
   1753     MEM32(edx) = ebx; /* 0x38009BD9: mov dword ptr [edx], ebx */
   1754     ebx = MEM32(esi + 0x4); /* 0x38009BDB: mov ebx, dword ptr [esi + 4] */
   1755     MEM32(edx + 0x4) = ebx; /* 0x38009BDE: mov dword ptr [edx + 4], ebx */
   1756     esi = MEM32(esi + 0x8); /* 0x38009BE1: mov esi, dword ptr [esi + 8] */
   1757     ebx = MEM32(ebp + (-0x4)); /* 0x38009BE4: mov ebx, dword ptr [ebp - 4] */
   1758     MEM32(edx + 0x8) = esi; /* 0x38009BE7: mov dword ptr [edx + 8], esi */
   1759     edx = MEM32(ebp + 0xC); /* 0x38009BEA: mov edx, dword ptr [ebp + 0xc] */
   1760     esi = MEM32(ebp + 0x8); /* 0x38009BED: mov esi, dword ptr [ebp + 8] */
   1761 L_38009BF0:
   1762     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   1763     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1764     edx = edx + 0xCu; /* 0x38009BF0: add edx, 0xc */
   1765     _flag_k = FK_ADD;
   1766     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1768     eax = eax + 0xCu; /* 0x38009BF3: add eax, 0xc */
   1769     _flag_k = FK_ADD;
   1770     /* cmp eax, ecx */ /* 0x38009BF6: cmp eax, ecx */
   1771     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1773     _flag_k = FK_CMP;
   1774     MEM32(ebp + 0xC) = edx; /* 0x38009BF8: mov dword ptr [ebp + 0xc], edx */
   1775     RECOMP_BACKEDGE();
   1776     if (CMP_NE(_flag_a, _flag_b)) goto L_38009BD1; /* 0x38009BFB: jne 0x38009bd1 */
   1777 L_38009BFD:
   1778     ecx = MEM32(ebx + 0x8); /* 0x38009BFD: mov ecx, dword ptr [ebx + 8] */
   1779     eax = ecx; /* 0x38009C00: mov eax, ecx */
   1780     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1782     eax = eax - esi; /* 0x38009C02: sub eax, esi */
   1783     _flag_k = FK_CMP;
   1784     /* cmp edi, eax */ /* 0x38009C04: cmp edi, eax */
   1785     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1787     _flag_k = FK_CMP;
   1788     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009C2C; /* 0x38009C06: je 0x38009c2c */
   1789 L_38009C08:
   1790     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1792     eax = eax - 0xCu; /* 0x38009C08: sub eax, 0xc */
   1793     _flag_k = FK_CMP;
   1794     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   1795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1796     ecx = ecx - 0xCu; /* 0x38009C0B: sub ecx, 0xc */
   1797     _flag_k = FK_CMP;
   1798     /* cmp eax, edi */ /* 0x38009C0E: cmp eax, edi */
   1799     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1801     _flag_k = FK_CMP;
   1802     edx = eax; /* 0x38009C10: mov edx, eax */
   1803     ebx = MEM32(edx); /* 0x38009C12: mov ebx, dword ptr [edx] */
   1804     esi = ecx; /* 0x38009C14: mov esi, ecx */
   1805     MEM32(esi) = ebx; /* 0x38009C16: mov dword ptr [esi], ebx */
   1806     ebx = MEM32(edx + 0x4); /* 0x38009C18: mov ebx, dword ptr [edx + 4] */
   1807     MEM32(esi + 0x4) = ebx; /* 0x38009C1B: mov dword ptr [esi + 4], ebx */
   1808     edx = MEM32(edx + 0x8); /* 0x38009C1E: mov edx, dword ptr [edx + 8] */
   1809     MEM32(esi + 0x8) = edx; /* 0x38009C21: mov dword ptr [esi + 8], edx */
   1810     RECOMP_BACKEDGE();
   1811     if (CMP_NE(_flag_a, _flag_b)) goto L_38009C08; /* 0x38009C24: jne 0x38009c08 */
   1812 L_38009C26:
   1813     esi = MEM32(ebp + 0x8); /* 0x38009C26: mov esi, dword ptr [ebp + 8] */
   1814     ebx = MEM32(ebp + (-0x4)); /* 0x38009C29: mov ebx, dword ptr [ebp - 4] */
   1815 L_38009C2C:
   1816     eax = esi + edi; /* 0x38009C2C: lea eax, [esi + edi] */
   1817     /* cmp edi, eax */ /* 0x38009C2F: cmp edi, eax */
   1818     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1820     _flag_k = FK_CMP;
   1821     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009C52; /* 0x38009C31: je 0x38009c52 */
   1822 L_38009C33:
   1823     ecx = MEM32(ebp + 0x10); /* 0x38009C33: mov ecx, dword ptr [ebp + 0x10] */
   1824     ebx = MEM32(ecx); /* 0x38009C36: mov ebx, dword ptr [ecx] */
   1825     edx = edi; /* 0x38009C38: mov edx, edi */
   1826     MEM32(edx) = ebx; /* 0x38009C3A: mov dword ptr [edx], ebx */
   1827     ebx = MEM32(ecx + 0x4); /* 0x38009C3C: mov ebx, dword ptr [ecx + 4] */
   1828     MEM32(edx + 0x4) = ebx; /* 0x38009C3F: mov dword ptr [edx + 4], ebx */
   1829     ecx = MEM32(ecx + 0x8); /* 0x38009C42: mov ecx, dword ptr [ecx + 8] */
   1830     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   1831     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1832     edi = edi + 0xCu; /* 0x38009C45: add edi, 0xc */
   1833     _flag_k = FK_ADD;
   1834     /* cmp edi, eax */ /* 0x38009C48: cmp edi, eax */
   1835     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1836     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1837     _flag_k = FK_CMP;
   1838     MEM32(edx + 0x8) = ecx; /* 0x38009C4A: mov dword ptr [edx + 8], ecx */
   1839     RECOMP_BACKEDGE();
   1840     if (CMP_NE(_flag_a, _flag_b)) goto L_38009C33; /* 0x38009C4D: jne 0x38009c33 */
   1841 L_38009C4F:
   1842     ebx = MEM32(ebp + (-0x4)); /* 0x38009C4F: mov ebx, dword ptr [ebp - 4] */
   1843 L_38009C52:
   1844     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   1845     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1846     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + esi; /* 0x38009C52: add dword ptr [ebx + 8], esi */
   1847     _flag_k = FK_ADD;
   1848 L_38009C55:
   1849     edi = POP32_VAL(esp); /* 0x38009C55: pop edi */
   1850     esi = POP32_VAL(esp); /* 0x38009C56: pop esi */
   1851     ebx = POP32_VAL(esp); /* 0x38009C57: pop ebx */
   1852     esp = ebp; /* 0x38009C58: mov esp, ebp */
   1853     ebp = POP32_VAL(esp); /* 0x38009C5A: pop ebp */
   1854     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38009C5B: ret 0xc */
   1855     RECOMP_REGS_OUT();
   1856 }
   1857 
   1858 void sub_38009C60(void) {
   1859     int _fpu_cmp = 0;
   1860     uint32_t _cf = 0;
   1861     int _df = 1;
   1862     uint32_t _flag_k = FK_NONE;
   1863     uint32_t _flag_a = 0, _flag_b = 0;
   1864     uint32_t _itail_tgt = 0;
   1865     RECOMP_REGS_LOCALS
   1866     RECOMP_ENTER(0x38009C60u);
   1867 
   1868 L_38009C60:
   1869     PUSH32(esp, ebp); /* 0x38009C60: push ebp */
   1870     ebp = esp; /* 0x38009C61: mov ebp, esp */
   1871     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1873     esp = esp - 0xCu; /* 0x38009C63: sub esp, 0xc */
   1874     _flag_k = FK_CMP;
   1875     PUSH32(esp, ebx); /* 0x38009C66: push ebx */
   1876     ebx = ecx; /* 0x38009C67: mov ebx, ecx */
   1877     eax = MEM32(ebx + 0x8); /* 0x38009C69: mov eax, dword ptr [ebx + 8] */
   1878     ecx = MEM32(ebx + 0xC); /* 0x38009C6C: mov ecx, dword ptr [ebx + 0xc] */
   1879     PUSH32(esp, esi); /* 0x38009C6F: push esi */
   1880     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1882     ecx = ecx - eax; /* 0x38009C70: sub ecx, eax */
   1883     _flag_k = FK_CMP;
   1884     PUSH32(esp, edi); /* 0x38009C72: push edi */
   1885     edi = MEM32(ebp + 0xC); /* 0x38009C73: mov edi, dword ptr [ebp + 0xc] */
   1886     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38009C76: sar ecx, 2 */
   1887     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1888     ecx = (uint32_t)((int32_t)ecx >> 2u);
   1889     /* cmp ecx, edi */ /* 0x38009C79: cmp ecx, edi */
   1890     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   1891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1892     _flag_k = FK_CMP;
   1893     MEM32(ebp + (-0x4)) = ebx; /* 0x38009C7B: mov dword ptr [ebp - 4], ebx */
   1894     if (CMP_AE(_flag_a, _flag_b)) goto L_38009D85; /* 0x38009C7E: jae 0x38009d85 */
   1895 L_38009C84:
   1896     edx = MEM32(ebx + 0x4); /* 0x38009C84: mov edx, dword ptr [ebx + 4] */
   1897     /* test edx, edx */ /* 0x38009C87: test edx, edx */
   1898     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1899     _cf = 0;
   1900     _flag_k = FK_TEST;
   1901     if (TEST_Z(_flag_a, _flag_b)) goto L_38009C96; /* 0x38009C89: je 0x38009c96 */
   1902 L_38009C8B:
   1903     ecx = eax; /* 0x38009C8B: mov ecx, eax */
   1904     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1906     ecx = ecx - edx; /* 0x38009C8D: sub ecx, edx */
   1907     _flag_k = FK_CMP;
   1908     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38009C8F: sar ecx, 2 */
   1909     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1910     ecx = (uint32_t)((int32_t)ecx >> 2u);
   1911     /* cmp edi, ecx */ /* 0x38009C92: cmp edi, ecx */
   1912     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   1913     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1914     _flag_k = FK_CMP;
   1915     if (CMP_B(_flag_a, _flag_b)) goto L_38009C98; /* 0x38009C94: jb 0x38009c98 */
   1916 L_38009C96:
   1917     ecx = edi; /* 0x38009C96: mov ecx, edi */
   1918 L_38009C98:
   1919     /* test edx, edx */ /* 0x38009C98: test edx, edx */
   1920     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1921     _cf = 0;
   1922     _flag_k = FK_TEST;
   1923     if (TEST_NZ(_flag_a, _flag_b)) goto L_38009CA0; /* 0x38009C9A: jne 0x38009ca0 */
   1924 L_38009C9C:
   1925     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1926     eax = 0; /* 0x38009C9C: xor eax, eax */
   1927     _cf = 0;
   1928     _flag_k = FK_TEST;
   1929     goto L_38009CA5; /* 0x38009C9E: jmp 0x38009ca5 */
   1930 L_38009CA0:
   1931     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1932     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1933     eax = eax - edx; /* 0x38009CA0: sub eax, edx */
   1934     _flag_k = FK_CMP;
   1935     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38009CA2: sar eax, 2 */
   1936     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1937     eax = (uint32_t)((int32_t)eax >> 2u);
   1938 L_38009CA5:
   1939     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1940     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1941     eax = eax + ecx; /* 0x38009CA5: add eax, ecx */
   1942     _flag_k = FK_ADD;
   1943     /* test eax, eax */ /* 0x38009CA7: test eax, eax */
   1944     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1945     _cf = 0;
   1946     _flag_k = FK_TEST;
   1947     MEM32(ebp + (-0xC)) = eax; /* 0x38009CA9: mov dword ptr [ebp - 0xc], eax */
   1948     if (TEST_NS(_flag_a, _flag_b)) goto L_38009CB0; /* 0x38009CAC: jge 0x38009cb0 */
   1949 L_38009CAE:
   1950     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1951     eax = 0; /* 0x38009CAE: xor eax, eax */
   1952     _cf = 0;
   1953     _flag_k = FK_TEST;
   1954 L_38009CB0:
   1955     edx = eax * 4; /* 0x38009CB0: lea edx, [eax*4] */
   1956     PUSH32(esp, edx); /* 0x38009CB7: push edx */
   1957     RECOMP_ICALL(0x3804B676u); /* 0x38009CB8: call 0x3804b676 */ /* not lifted */
   1958     RECOMP_FLAGS_IN();
   1959     MEM32(ebp + (-0x8)) = eax; /* 0x38009CBD: mov dword ptr [ebp - 8], eax */
   1960     ecx = eax; /* 0x38009CC0: mov ecx, eax */
   1961     eax = MEM32(ebx + 0x4); /* 0x38009CC2: mov eax, dword ptr [ebx + 4] */
   1962     ebx = MEM32(ebp + 0x8); /* 0x38009CC5: mov ebx, dword ptr [ebp + 8] */
   1963     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1964     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1965     esp = esp + 4; /* 0x38009CC8: add esp, 4 */
   1966     _flag_k = FK_ADD;
   1967     /* cmp eax, ebx */ /* 0x38009CCB: cmp eax, ebx */
   1968     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1969     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1970     _flag_k = FK_CMP;
   1971     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009CE1; /* 0x38009CCD: je 0x38009ce1 */
   1972 L_38009CCF:
   1973     /* test ecx, ecx */ /* 0x38009CCF: test ecx, ecx */
   1974     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1975     _cf = 0;
   1976     _flag_k = FK_TEST;
   1977     if (TEST_Z(_flag_a, _flag_b)) goto L_38009CD7; /* 0x38009CD1: je 0x38009cd7 */
   1978 L_38009CD3:
   1979     edx = MEM32(eax); /* 0x38009CD3: mov edx, dword ptr [eax] */
   1980     MEM32(ecx) = edx; /* 0x38009CD5: mov dword ptr [ecx], edx */
   1981 L_38009CD7:
   1982     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   1983     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1984     eax = eax + 4; /* 0x38009CD7: add eax, 4 */
   1985     _flag_k = FK_ADD;
   1986     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1987     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1988     ecx = ecx + 4; /* 0x38009CDA: add ecx, 4 */
   1989     _flag_k = FK_ADD;
   1990     /* cmp eax, ebx */ /* 0x38009CDD: cmp eax, ebx */
   1991     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1993     _flag_k = FK_CMP;
   1994     RECOMP_BACKEDGE();
   1995     if (CMP_NE(_flag_a, _flag_b)) goto L_38009CCF; /* 0x38009CDF: jne 0x38009ccf */
   1996 L_38009CE1:
   1997     /* test edi, edi */ /* 0x38009CE1: test edi, edi */
   1998     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1999     _cf = 0;
   2000     _flag_k = FK_TEST;
   2001     eax = ecx; /* 0x38009CE3: mov eax, ecx */
   2002     if (TEST_Z(_flag_a, _flag_b)) goto L_38009CFA; /* 0x38009CE5: jbe 0x38009cfa */
   2003 L_38009CE7:
   2004     edx = edi; /* 0x38009CE7: mov edx, edi */
   2005 L_38009CE9:
   2006     /* test eax, eax */ /* 0x38009CE9: test eax, eax */
   2007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2008     _cf = 0;
   2009     _flag_k = FK_TEST;
   2010     if (TEST_Z(_flag_a, _flag_b)) goto L_38009CF4; /* 0x38009CEB: je 0x38009cf4 */
   2011 L_38009CED:
   2012     esi = MEM32(ebp + 0x10); /* 0x38009CED: mov esi, dword ptr [ebp + 0x10] */
   2013     esi = MEM32(esi); /* 0x38009CF0: mov esi, dword ptr [esi] */
   2014     MEM32(eax) = esi; /* 0x38009CF2: mov dword ptr [eax], esi */
   2015 L_38009CF4:
   2016     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2017     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2018     eax = eax + 4; /* 0x38009CF4: add eax, 4 */
   2019     _flag_k = FK_ADD;
   2020     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2021     edx = edx - 1; /* 0x38009CF7: dec edx */
   2022     _flag_k = FK_DEC;
   2023     RECOMP_BACKEDGE();
   2024     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38009CE9; /* 0x38009CF8: jne 0x38009ce9 */
   2025 L_38009CFA:
   2026     eax = MEM32(ebp + (-0x4)); /* 0x38009CFA: mov eax, dword ptr [ebp - 4] */
   2027     esi = edi * 4; /* 0x38009CFD: lea esi, [edi*4] */
   2028     edi = MEM32(eax + 0x8); /* 0x38009D04: mov edi, dword ptr [eax + 8] */
   2029     /* cmp ebx, edi */ /* 0x38009D07: cmp ebx, edi */
   2030     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   2031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2032     _flag_k = FK_CMP;
   2033     edx = esi + ecx; /* 0x38009D09: lea edx, [esi + ecx] */
   2034     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009D28; /* 0x38009D0C: je 0x38009d28 */
   2035 L_38009D0E:
   2036     eax = edx; /* 0x38009D0E: mov eax, edx */
   2037     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2039     eax = eax - esi; /* 0x38009D10: sub eax, esi */
   2040     _flag_k = FK_CMP;
   2041     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2043     eax = eax - ecx; /* 0x38009D12: sub eax, ecx */
   2044     _flag_k = FK_CMP;
   2045     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2046     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2047     eax = eax + ebx; /* 0x38009D14: add eax, ebx */
   2048     _flag_k = FK_ADD;
   2049 L_38009D16:
   2050     /* test edx, edx */ /* 0x38009D16: test edx, edx */
   2051     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2052     _cf = 0;
   2053     _flag_k = FK_TEST;
   2054     if (TEST_Z(_flag_a, _flag_b)) goto L_38009D1E; /* 0x38009D18: je 0x38009d1e */
   2055 L_38009D1A:
   2056     ecx = MEM32(eax); /* 0x38009D1A: mov ecx, dword ptr [eax] */
   2057     MEM32(edx) = ecx; /* 0x38009D1C: mov dword ptr [edx], ecx */
   2058 L_38009D1E:
   2059     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2060     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2061     eax = eax + 4; /* 0x38009D1E: add eax, 4 */
   2062     _flag_k = FK_ADD;
   2063     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   2064     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2065     edx = edx + 4; /* 0x38009D21: add edx, 4 */
   2066     _flag_k = FK_ADD;
   2067     /* cmp eax, edi */ /* 0x38009D24: cmp eax, edi */
   2068     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2069     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2070     _flag_k = FK_CMP;
   2071     RECOMP_BACKEDGE();
   2072     if (CMP_NE(_flag_a, _flag_b)) goto L_38009D16; /* 0x38009D26: jne 0x38009d16 */
   2073 L_38009D28:
   2074     esi = MEM32(ebp + (-0x4)); /* 0x38009D28: mov esi, dword ptr [ebp - 4] */
   2075     eax = MEM32(esi + 0x4); /* 0x38009D2B: mov eax, dword ptr [esi + 4] */
   2076     PUSH32(esp, eax); /* 0x38009D2E: push eax */
   2077     MEM32(ebp + 0x10) = eax; /* 0x38009D2F: mov dword ptr [ebp + 0x10], eax */
   2078     RECOMP_ICALL(0x3804B4F6u); /* 0x38009D32: call 0x3804b4f6 */ /* not lifted */
   2079     RECOMP_FLAGS_IN();
   2080     edx = MEM32(ebp + (-0x8)); /* 0x38009D37: mov edx, dword ptr [ebp - 8] */
   2081     eax = MEM32(ebp + (-0xC)); /* 0x38009D3A: mov eax, dword ptr [ebp - 0xc] */
   2082     ecx = edx + eax * 4; /* 0x38009D3D: lea ecx, [edx + eax*4] */
   2083     MEM32(esi + 0xC) = ecx; /* 0x38009D40: mov dword ptr [esi + 0xc], ecx */
   2084     ecx = MEM32(esi + 0x4); /* 0x38009D43: mov ecx, dword ptr [esi + 4] */
   2085     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2086     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2087     esp = esp + 4; /* 0x38009D46: add esp, 4 */
   2088     _flag_k = FK_ADD;
   2089     /* test ecx, ecx */ /* 0x38009D49: test ecx, ecx */
   2090     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2091     _cf = 0;
   2092     _flag_k = FK_TEST;
   2093     if (TEST_NZ(_flag_a, _flag_b)) goto L_38009D66; /* 0x38009D4B: jne 0x38009d66 */
   2094 L_38009D4D:
   2095     ecx = MEM32(ebp + 0xC); /* 0x38009D4D: mov ecx, dword ptr [ebp + 0xc] */
   2096     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2097     eax = 0; /* 0x38009D50: xor eax, eax */
   2098     _cf = 0;
   2099     _flag_k = FK_TEST;
   2100     eax = ecx; /* 0x38009D52: mov eax, ecx */
   2101     eax = edx + eax * 4; /* 0x38009D54: lea eax, [edx + eax*4] */
   2102     edi = POP32_VAL(esp); /* 0x38009D57: pop edi */
   2103     MEM32(esi + 0x8) = eax; /* 0x38009D58: mov dword ptr [esi + 8], eax */
   2104     MEM32(esi + 0x4) = edx; /* 0x38009D5B: mov dword ptr [esi + 4], edx */
   2105     esi = POP32_VAL(esp); /* 0x38009D5E: pop esi */
   2106     ebx = POP32_VAL(esp); /* 0x38009D5F: pop ebx */
   2107     esp = ebp; /* 0x38009D60: mov esp, ebp */
   2108     ebp = POP32_VAL(esp); /* 0x38009D62: pop ebp */
   2109     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38009D63: ret 0xc */
   2110 L_38009D66:
   2111     eax = MEM32(esi + 0x8); /* 0x38009D66: mov eax, dword ptr [esi + 8] */
   2112     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2114     eax = eax - ecx; /* 0x38009D69: sub eax, ecx */
   2115     _flag_k = FK_CMP;
   2116     ecx = MEM32(ebp + 0xC); /* 0x38009D6B: mov ecx, dword ptr [ebp + 0xc] */
   2117     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x38009D6E: sar eax, 2 */
   2118     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2119     eax = (uint32_t)((int32_t)eax >> 2u);
   2120     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2122     eax = eax + ecx; /* 0x38009D71: add eax, ecx */
   2123     _flag_k = FK_ADD;
   2124     eax = edx + eax * 4; /* 0x38009D73: lea eax, [edx + eax*4] */
   2125     edi = POP32_VAL(esp); /* 0x38009D76: pop edi */
   2126     MEM32(esi + 0x8) = eax; /* 0x38009D77: mov dword ptr [esi + 8], eax */
   2127     MEM32(esi + 0x4) = edx; /* 0x38009D7A: mov dword ptr [esi + 4], edx */
   2128     esi = POP32_VAL(esp); /* 0x38009D7D: pop esi */
   2129     ebx = POP32_VAL(esp); /* 0x38009D7E: pop ebx */
   2130     esp = ebp; /* 0x38009D7F: mov esp, ebp */
   2131     ebp = POP32_VAL(esp); /* 0x38009D81: pop ebp */
   2132     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38009D82: ret 0xc */
   2133 L_38009D85:
   2134     edx = MEM32(ebp + 0x8); /* 0x38009D85: mov edx, dword ptr [ebp + 8] */
   2135     ecx = eax; /* 0x38009D88: mov ecx, eax */
   2136     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2137     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2138     ecx = ecx - edx; /* 0x38009D8A: sub ecx, edx */
   2139     _flag_k = FK_CMP;
   2140     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38009D8C: sar ecx, 2 */
   2141     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2142     ecx = (uint32_t)((int32_t)ecx >> 2u);
   2143     /* cmp ecx, edi */ /* 0x38009D8F: cmp ecx, edi */
   2144     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2146     _flag_k = FK_CMP;
   2147     if (CMP_AE(_flag_a, _flag_b)) goto L_38009E06; /* 0x38009D91: jae 0x38009e06 */
   2148 L_38009D93:
   2149     esi = edi * 4; /* 0x38009D93: lea esi, [edi*4] */
   2150     MEM32(ebp + 0xC) = esi; /* 0x38009D9A: mov dword ptr [ebp + 0xc], esi */
   2151     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   2152     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2153     esi = esi + edx; /* 0x38009D9D: add esi, edx */
   2154     _flag_k = FK_ADD;
   2155     /* cmp edx, eax */ /* 0x38009D9F: cmp edx, eax */
   2156     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2158     _flag_k = FK_CMP;
   2159     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009DBF; /* 0x38009DA1: je 0x38009dbf */
   2160 L_38009DA3:
   2161     ebx = MEM32(ebp + 0xC); /* 0x38009DA3: mov ebx, dword ptr [ebp + 0xc] */
   2162     ecx = esi; /* 0x38009DA6: mov ecx, esi */
   2163     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   2164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2165     ecx = ecx - ebx; /* 0x38009DA8: sub ecx, ebx */
   2166     _flag_k = FK_CMP;
   2167 L_38009DAA:
   2168     /* test esi, esi */ /* 0x38009DAA: test esi, esi */
   2169     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2170     _cf = 0;
   2171     _flag_k = FK_TEST;
   2172     if (TEST_Z(_flag_a, _flag_b)) goto L_38009DB2; /* 0x38009DAC: je 0x38009db2 */
   2173 L_38009DAE:
   2174     ebx = MEM32(ecx); /* 0x38009DAE: mov ebx, dword ptr [ecx] */
   2175     MEM32(esi) = ebx; /* 0x38009DB0: mov dword ptr [esi], ebx */
   2176 L_38009DB2:
   2177     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2178     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2179     ecx = ecx + 4; /* 0x38009DB2: add ecx, 4 */
   2180     _flag_k = FK_ADD;
   2181     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   2182     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2183     esi = esi + 4; /* 0x38009DB5: add esi, 4 */
   2184     _flag_k = FK_ADD;
   2185     /* cmp ecx, eax */ /* 0x38009DB8: cmp ecx, eax */
   2186     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2188     _flag_k = FK_CMP;
   2189     RECOMP_BACKEDGE();
   2190     if (CMP_NE(_flag_a, _flag_b)) goto L_38009DAA; /* 0x38009DBA: jne 0x38009daa */
   2191 L_38009DBC:
   2192     ebx = MEM32(ebp + (-0x4)); /* 0x38009DBC: mov ebx, dword ptr [ebp - 4] */
   2193 L_38009DBF:
   2194     eax = MEM32(ebx + 0x8); /* 0x38009DBF: mov eax, dword ptr [ebx + 8] */
   2195     esi = MEM32(ebp + 0x10); /* 0x38009DC2: mov esi, dword ptr [ebp + 0x10] */
   2196     ecx = eax; /* 0x38009DC5: mov ecx, eax */
   2197     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2199     ecx = ecx - edx; /* 0x38009DC7: sub ecx, edx */
   2200     _flag_k = FK_CMP;
   2201     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38009DC9: sar ecx, 2 */
   2202     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2203     ecx = (uint32_t)((int32_t)ecx >> 2u);
   2204     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   2205     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2206     edi = edi - ecx; /* 0x38009DCC: sub edi, ecx */
   2207     _flag_k = FK_CMP;
   2208     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_38009DDE; /* 0x38009DCE: je 0x38009dde */
   2209 L_38009DD0:
   2210     /* test eax, eax */ /* 0x38009DD0: test eax, eax */
   2211     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2212     _cf = 0;
   2213     _flag_k = FK_TEST;
   2214     if (TEST_Z(_flag_a, _flag_b)) goto L_38009DD8; /* 0x38009DD2: je 0x38009dd8 */
   2215 L_38009DD4:
   2216     ecx = MEM32(esi); /* 0x38009DD4: mov ecx, dword ptr [esi] */
   2217     MEM32(eax) = ecx; /* 0x38009DD6: mov dword ptr [eax], ecx */
   2218 L_38009DD8:
   2219     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2220     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2221     eax = eax + 4; /* 0x38009DD8: add eax, 4 */
   2222     _flag_k = FK_ADD;
   2223     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   2224     edi = edi - 1; /* 0x38009DDB: dec edi */
   2225     _flag_k = FK_DEC;
   2226     RECOMP_BACKEDGE();
   2227     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_38009DD0; /* 0x38009DDC: jne 0x38009dd0 */
   2228 L_38009DDE:
   2229     ecx = MEM32(ebx + 0x8); /* 0x38009DDE: mov ecx, dword ptr [ebx + 8] */
   2230     /* cmp edx, ecx */ /* 0x38009DE1: cmp edx, ecx */
   2231     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2233     _flag_k = FK_CMP;
   2234     eax = edx; /* 0x38009DE3: mov eax, edx */
   2235     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009DF2; /* 0x38009DE5: je 0x38009df2 */
   2236 L_38009DE7:
   2237     edx = MEM32(esi); /* 0x38009DE7: mov edx, dword ptr [esi] */
   2238     MEM32(eax) = edx; /* 0x38009DE9: mov dword ptr [eax], edx */
   2239     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2241     eax = eax + 4; /* 0x38009DEB: add eax, 4 */
   2242     _flag_k = FK_ADD;
   2243     /* cmp eax, ecx */ /* 0x38009DEE: cmp eax, ecx */
   2244     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2245     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2246     _flag_k = FK_CMP;
   2247     RECOMP_BACKEDGE();
   2248     if (CMP_NE(_flag_a, _flag_b)) goto L_38009DE7; /* 0x38009DF0: jne 0x38009de7 */
   2249 L_38009DF2:
   2250     ecx = MEM32(ebx + 0x8); /* 0x38009DF2: mov ecx, dword ptr [ebx + 8] */
   2251     eax = MEM32(ebp + 0xC); /* 0x38009DF5: mov eax, dword ptr [ebp + 0xc] */
   2252     edi = POP32_VAL(esp); /* 0x38009DF8: pop edi */
   2253     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2254     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2255     ecx = ecx + eax; /* 0x38009DF9: add ecx, eax */
   2256     _flag_k = FK_ADD;
   2257     esi = POP32_VAL(esp); /* 0x38009DFB: pop esi */
   2258     MEM32(ebx + 0x8) = ecx; /* 0x38009DFC: mov dword ptr [ebx + 8], ecx */
   2259     ebx = POP32_VAL(esp); /* 0x38009DFF: pop ebx */
   2260     esp = ebp; /* 0x38009E00: mov esp, ebp */
   2261     ebp = POP32_VAL(esp); /* 0x38009E02: pop ebp */
   2262     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38009E03: ret 0xc */
   2263 L_38009E06:
   2264     /* test edi, edi */ /* 0x38009E06: test edi, edi */
   2265     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2266     _cf = 0;
   2267     _flag_k = FK_TEST;
   2268     if (TEST_Z(_flag_a, _flag_b)) goto L_38009E60; /* 0x38009E08: jbe 0x38009e60 */
   2269 L_38009E0A:
   2270     if (2u) _cf = (((edi) >> 30) & 1u); /* 0x38009E0A: shl edi, 2 */
   2271     if (2u) { _flag_a = recomp_flags_pack((edi << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2272     edi = edi << 2u; /* 0x38009E0A: shl edi, 2 */
   2273     ecx = eax; /* 0x38009E0D: mov ecx, eax */
   2274     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2276     ecx = ecx - edi; /* 0x38009E0F: sub ecx, edi */
   2277     _flag_k = FK_CMP;
   2278     /* cmp ecx, eax */ /* 0x38009E11: cmp ecx, eax */
   2279     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2281     _flag_k = FK_CMP;
   2282     esi = eax; /* 0x38009E13: mov esi, eax */
   2283     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009E2C; /* 0x38009E15: je 0x38009e2c */
   2284 L_38009E17:
   2285     /* test esi, esi */ /* 0x38009E17: test esi, esi */
   2286     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2287     _cf = 0;
   2288     _flag_k = FK_TEST;
   2289     if (TEST_Z(_flag_a, _flag_b)) goto L_38009E22; /* 0x38009E19: je 0x38009e22 */
   2290 L_38009E1B:
   2291     ebx = MEM32(ecx); /* 0x38009E1B: mov ebx, dword ptr [ecx] */
   2292     MEM32(esi) = ebx; /* 0x38009E1D: mov dword ptr [esi], ebx */
   2293     ebx = MEM32(ebp + (-0x4)); /* 0x38009E1F: mov ebx, dword ptr [ebp - 4] */
   2294 L_38009E22:
   2295     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2296     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2297     ecx = ecx + 4; /* 0x38009E22: add ecx, 4 */
   2298     _flag_k = FK_ADD;
   2299     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   2300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2301     esi = esi + 4; /* 0x38009E25: add esi, 4 */
   2302     _flag_k = FK_ADD;
   2303     /* cmp ecx, eax */ /* 0x38009E28: cmp ecx, eax */
   2304     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2306     _flag_k = FK_CMP;
   2307     RECOMP_BACKEDGE();
   2308     if (CMP_NE(_flag_a, _flag_b)) goto L_38009E17; /* 0x38009E2A: jne 0x38009e17 */
   2309 L_38009E2C:
   2310     ecx = MEM32(ebx + 0x8); /* 0x38009E2C: mov ecx, dword ptr [ebx + 8] */
   2311     eax = ecx; /* 0x38009E2F: mov eax, ecx */
   2312     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2314     eax = eax - edi; /* 0x38009E31: sub eax, edi */
   2315     _flag_k = FK_CMP;
   2316     /* cmp edx, eax */ /* 0x38009E33: cmp edx, eax */
   2317     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2318     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2319     _flag_k = FK_CMP;
   2320     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009E46; /* 0x38009E35: je 0x38009e46 */
   2321 L_38009E37:
   2322     esi = MEM32(eax + (-0x4)); /* 0x38009E37: mov esi, dword ptr [eax - 4] */
   2323     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2325     eax = eax - 4; /* 0x38009E3A: sub eax, 4 */
   2326     _flag_k = FK_CMP;
   2327     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2329     ecx = ecx - 4; /* 0x38009E3D: sub ecx, 4 */
   2330     _flag_k = FK_CMP;
   2331     /* cmp eax, edx */ /* 0x38009E40: cmp eax, edx */
   2332     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2333     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2334     _flag_k = FK_CMP;
   2335     MEM32(ecx) = esi; /* 0x38009E42: mov dword ptr [ecx], esi */
   2336     RECOMP_BACKEDGE();
   2337     if (CMP_NE(_flag_a, _flag_b)) goto L_38009E37; /* 0x38009E44: jne 0x38009e37 */
   2338 L_38009E46:
   2339     ecx = edi + edx; /* 0x38009E46: lea ecx, [edi + edx] */
   2340     /* cmp edx, ecx */ /* 0x38009E49: cmp edx, ecx */
   2341     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2343     _flag_k = FK_CMP;
   2344     eax = edx; /* 0x38009E4B: mov eax, edx */
   2345     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009E5D; /* 0x38009E4D: je 0x38009e5d */
   2346 L_38009E4F:
   2347     edx = MEM32(ebp + 0x10); /* 0x38009E4F: mov edx, dword ptr [ebp + 0x10] */
   2348 L_38009E52:
   2349     esi = MEM32(edx); /* 0x38009E52: mov esi, dword ptr [edx] */
   2350     MEM32(eax) = esi; /* 0x38009E54: mov dword ptr [eax], esi */
   2351     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2352     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2353     eax = eax + 4; /* 0x38009E56: add eax, 4 */
   2354     _flag_k = FK_ADD;
   2355     /* cmp eax, ecx */ /* 0x38009E59: cmp eax, ecx */
   2356     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2358     _flag_k = FK_CMP;
   2359     RECOMP_BACKEDGE();
   2360     if (CMP_NE(_flag_a, _flag_b)) goto L_38009E52; /* 0x38009E5B: jne 0x38009e52 */
   2361 L_38009E5D:
   2362     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(edi);
   2363     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2364     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + edi; /* 0x38009E5D: add dword ptr [ebx + 8], edi */
   2365     _flag_k = FK_ADD;
   2366 L_38009E60:
   2367     edi = POP32_VAL(esp); /* 0x38009E60: pop edi */
   2368     esi = POP32_VAL(esp); /* 0x38009E61: pop esi */
   2369     ebx = POP32_VAL(esp); /* 0x38009E62: pop ebx */
   2370     esp = ebp; /* 0x38009E63: mov esp, ebp */
   2371     ebp = POP32_VAL(esp); /* 0x38009E65: pop ebp */
   2372     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38009E66: ret 0xc */
   2373     RECOMP_REGS_OUT();
   2374 }
   2375 
   2376 void sub_38009E70(void) {
   2377     int _fpu_cmp = 0;
   2378     uint32_t _cf = 0;
   2379     int _df = 1;
   2380     uint32_t _flag_k = FK_NONE;
   2381     uint32_t _flag_a = 0, _flag_b = 0;
   2382     uint32_t _itail_tgt = 0;
   2383     RECOMP_REGS_LOCALS
   2384     RECOMP_ENTER(0x38009E70u);
   2385 
   2386 L_38009E70:
   2387     PUSH32(esp, ebp); /* 0x38009E70: push ebp */
   2388     ebp = esp; /* 0x38009E71: mov ebp, esp */
   2389     PUSH32(esp, ebx); /* 0x38009E73: push ebx */
   2390     PUSH32(esp, esi); /* 0x38009E74: push esi */
   2391     ebx = ecx; /* 0x38009E75: mov ebx, ecx */
   2392     eax = MEM32(ebx + 0x8); /* 0x38009E77: mov eax, dword ptr [ebx + 8] */
   2393     PUSH32(esp, edi); /* 0x38009E7A: push edi */
   2394     edi = MEM32(ebp + 0x8); /* 0x38009E7B: mov edi, dword ptr [ebp + 8] */
   2395     /* cmp edi, eax */ /* 0x38009E7E: cmp edi, eax */
   2396     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2398     _flag_k = FK_CMP;
   2399     esi = edi; /* 0x38009E80: mov esi, edi */
   2400     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009EA3; /* 0x38009E82: je 0x38009ea3 */
   2401 L_38009E84:
   2402     eax = MEM32(esi + 0x8); /* 0x38009E84: mov eax, dword ptr [esi + 8] */
   2403     PUSH32(esp, eax); /* 0x38009E87: push eax */
   2404     ecx = ebx; /* 0x38009E88: mov ecx, ebx */
   2405     RECOMP_ICALL(0x38009E70u); /* 0x38009E8A: call 0x38009e70 */ /* not lifted */
   2406     RECOMP_FLAGS_IN();
   2407     esi = MEM32(esi); /* 0x38009E8F: mov esi, dword ptr [esi] */
   2408     PUSH32(esp, edi); /* 0x38009E91: push edi */
   2409     RECOMP_ICALL(0x3804B4F6u); /* 0x38009E92: call 0x3804b4f6 */ /* not lifted */
   2410     RECOMP_FLAGS_IN();
   2411     eax = MEM32(ebx + 0x8); /* 0x38009E97: mov eax, dword ptr [ebx + 8] */
   2412     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2413     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2414     esp = esp + 4; /* 0x38009E9A: add esp, 4 */
   2415     _flag_k = FK_ADD;
   2416     /* cmp esi, eax */ /* 0x38009E9D: cmp esi, eax */
   2417     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2419     _flag_k = FK_CMP;
   2420     edi = esi; /* 0x38009E9F: mov edi, esi */
   2421     RECOMP_BACKEDGE();
   2422     if (CMP_NE(_flag_a, _flag_b)) goto L_38009E84; /* 0x38009EA1: jne 0x38009e84 */
   2423 L_38009EA3:
   2424     edi = POP32_VAL(esp); /* 0x38009EA3: pop edi */
   2425     esi = POP32_VAL(esp); /* 0x38009EA4: pop esi */
   2426     ebx = POP32_VAL(esp); /* 0x38009EA5: pop ebx */
   2427     ebp = POP32_VAL(esp); /* 0x38009EA6: pop ebp */
   2428     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38009EA7: ret 4 */
   2429     RECOMP_REGS_OUT();
   2430 }
   2431 
   2432 void sub_38009EB0(void) {
   2433     int _fpu_cmp = 0;
   2434     uint32_t _cf = 0;
   2435     int _df = 1;
   2436     uint32_t _flag_k = FK_NONE;
   2437     uint32_t _flag_a = 0, _flag_b = 0;
   2438     uint32_t _itail_tgt = 0;
   2439     RECOMP_REGS_LOCALS
   2440     RECOMP_ENTER(0x38009EB0u);
   2441 
   2442 L_38009EB0:
   2443     PUSH32(esp, ebp); /* 0x38009EB0: push ebp */
   2444     ebp = esp; /* 0x38009EB1: mov ebp, esp */
   2445     PUSH32(esp, ecx); /* 0x38009EB3: push ecx */
   2446     PUSH32(esp, ebx); /* 0x38009EB4: push ebx */
   2447     PUSH32(esp, esi); /* 0x38009EB5: push esi */
   2448     PUSH32(esp, edi); /* 0x38009EB6: push edi */
   2449     PUSH32(esp, 0x18u); /* 0x38009EB7: push 0x18 */
   2450     esi = ecx; /* 0x38009EB9: mov esi, ecx */
   2451     RECOMP_ICALL(0x3804B676u); /* 0x38009EBB: call 0x3804b676 */ /* not lifted */
   2452     RECOMP_FLAGS_IN();
   2453     edi = MEM32(ebp + 0x10); /* 0x38009EC0: mov edi, dword ptr [ebp + 0x10] */
   2454     ebx = MEM32(ebp + 0x14); /* 0x38009EC3: mov ebx, dword ptr [ebp + 0x14] */
   2455     MEM32(eax + 0x4) = edi; /* 0x38009EC6: mov dword ptr [eax + 4], edi */
   2456     MEM8(eax + 0x14) = (uint8_t)(0); /* 0x38009EC9: mov byte ptr [eax + 0x14], 0 */
   2457     MEM8(eax + 0x15) = (uint8_t)(0); /* 0x38009ECD: mov byte ptr [eax + 0x15], 0 */
   2458     ecx = MEM32(esi + 0x8); /* 0x38009ED1: mov ecx, dword ptr [esi + 8] */
   2459     MEM32(eax) = ecx; /* 0x38009ED4: mov dword ptr [eax], ecx */
   2460     edx = MEM32(esi + 0x8); /* 0x38009ED6: mov edx, dword ptr [esi + 8] */
   2461     MEM32(ebp + (-0x4)) = eax; /* 0x38009ED9: mov dword ptr [ebp - 4], eax */
   2462     MEM32(eax + 0x8) = edx; /* 0x38009EDC: mov dword ptr [eax + 8], edx */
   2463     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2464     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2465     eax = eax + 0xCu; /* 0x38009EDF: add eax, 0xc */
   2466     _flag_k = FK_ADD;
   2467     PUSH32(esp, ebx); /* 0x38009EE2: push ebx */
   2468     PUSH32(esp, eax); /* 0x38009EE3: push eax */
   2469     RECOMP_ICALL(0x3802F370u); /* 0x38009EE4: call 0x3802f370 */ /* not lifted */
   2470     RECOMP_FLAGS_IN();
   2471     ecx = MEM32(esi + 0x10); /* 0x38009EE9: mov ecx, dword ptr [esi + 0x10] */
   2472     eax = MEM32(esi + 0x4); /* 0x38009EEC: mov eax, dword ptr [esi + 4] */
   2473     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2474     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2475     esp = esp + 0xCu; /* 0x38009EEF: add esp, 0xc */
   2476     _flag_k = FK_ADD;
   2477     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2478     ecx = ecx + 1; /* 0x38009EF2: inc ecx */
   2479     _flag_k = FK_INC;
   2480     /* cmp edi, eax */ /* 0x38009EF3: cmp edi, eax */
   2481     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2483     _flag_k = FK_CMP;
   2484     MEM32(esi + 0x10) = ecx; /* 0x38009EF5: mov dword ptr [esi + 0x10], ecx */
   2485     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F26; /* 0x38009EF8: je 0x38009f26 */
   2486 L_38009EFA:
   2487     eax = MEM32(ebp + 0xC); /* 0x38009EFA: mov eax, dword ptr [ebp + 0xc] */
   2488     /* cmp eax, MEM32(esi + 0x8) */ /* 0x38009EFD: cmp eax, dword ptr [esi + 8] */
   2489     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2490     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2491     _flag_k = FK_CMP;
   2492     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F26; /* 0x38009F00: jne 0x38009f26 */
   2493 L_38009F02:
   2494     ecx = edi + 0xC; /* 0x38009F02: lea ecx, [edi + 0xc] */
   2495     PUSH32(esp, ecx); /* 0x38009F05: push ecx */
   2496     PUSH32(esp, ebx); /* 0x38009F06: push ebx */
   2497     RECOMP_ICALL(0x3800A130u); /* 0x38009F07: call 0x3800a130 */ /* not lifted */
   2498     RECOMP_FLAGS_IN();
   2499     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2501     esp = esp + 8; /* 0x38009F0C: add esp, 8 */
   2502     _flag_k = FK_ADD;
   2503     /* test LO8(eax), LO8(eax) */ /* 0x38009F0F: test al, al */
   2504     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2505     _cf = 0;
   2506     _flag_k = FK_NARROW(FK_TEST, 24);
   2507     if (TEST_NZ(_flag_a, _flag_b)) goto L_38009F26; /* 0x38009F11: jne 0x38009f26 */
   2508 L_38009F13:
   2509     ecx = MEM32(ebp + (-0x4)); /* 0x38009F13: mov ecx, dword ptr [ebp - 4] */
   2510     MEM32(edi + 0x8) = ecx; /* 0x38009F16: mov dword ptr [edi + 8], ecx */
   2511     eax = MEM32(esi + 0x4); /* 0x38009F19: mov eax, dword ptr [esi + 4] */
   2512     /* cmp edi, MEM32(eax + 0x8) */ /* 0x38009F1C: cmp edi, dword ptr [eax + 8] */
   2513     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2515     _flag_k = FK_CMP;
   2516     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F46; /* 0x38009F1F: jne 0x38009f46 */
   2517 L_38009F21:
   2518     MEM32(eax + 0x8) = ecx; /* 0x38009F21: mov dword ptr [eax + 8], ecx */
   2519     goto L_38009F46; /* 0x38009F24: jmp 0x38009f46 */
   2520 L_38009F26:
   2521     ecx = MEM32(ebp + (-0x4)); /* 0x38009F26: mov ecx, dword ptr [ebp - 4] */
   2522     MEM32(edi) = ecx; /* 0x38009F29: mov dword ptr [edi], ecx */
   2523     eax = MEM32(esi + 0x4); /* 0x38009F2B: mov eax, dword ptr [esi + 4] */
   2524     /* cmp edi, eax */ /* 0x38009F2E: cmp edi, eax */
   2525     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2527     _flag_k = FK_CMP;
   2528     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F3D; /* 0x38009F30: jne 0x38009f3d */
   2529 L_38009F32:
   2530     MEM32(eax + 0x4) = ecx; /* 0x38009F32: mov dword ptr [eax + 4], ecx */
   2531     edx = MEM32(esi + 0x4); /* 0x38009F35: mov edx, dword ptr [esi + 4] */
   2532     MEM32(edx + 0x8) = ecx; /* 0x38009F38: mov dword ptr [edx + 8], ecx */
   2533     goto L_38009F46; /* 0x38009F3B: jmp 0x38009f46 */
   2534 L_38009F3D:
   2535     /* cmp edi, MEM32(eax) */ /* 0x38009F3D: cmp edi, dword ptr [eax] */
   2536     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   2537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2538     _flag_k = FK_CMP;
   2539     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F46; /* 0x38009F3F: jne 0x38009f46 */
   2540 L_38009F41:
   2541     ecx = MEM32(ebp + (-0x4)); /* 0x38009F41: mov ecx, dword ptr [ebp - 4] */
   2542     MEM32(eax) = ecx; /* 0x38009F44: mov dword ptr [eax], ecx */
   2543 L_38009F46:
   2544     edx = MEM32(esi + 0x4); /* 0x38009F46: mov edx, dword ptr [esi + 4] */
   2545     eax = MEM32(ebp + (-0x4)); /* 0x38009F49: mov eax, dword ptr [ebp - 4] */
   2546     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009F4C: cmp eax, dword ptr [edx + 4] */
   2547     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2549     _flag_k = FK_CMP;
   2550     SET_LO8(ebx, 1); /* 0x38009F4F: mov bl, 1 */
   2551     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F51: je 0x3800a0d7 */
   2552 L_38009F57:
   2553     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   2554     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   2555     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   2556     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2557     _cf = 0;
   2558     _flag_k = FK_NARROW(FK_TEST, 24);
   2559     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   2560 L_38009F65:
   2561     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   2562     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   2563     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   2564     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2566     _flag_k = FK_CMP;
   2567     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   2568 L_38009F72:
   2569     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   2570     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   2571     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2572     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2573     _flag_k = FK_NARROW(FK_CMP, 24);
   2574     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   2575 L_38009F7B:
   2576     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   2577     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   2578     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   2579     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   2580     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   2581     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   2582     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   2583     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   2584 L_38009F96:
   2585     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   2586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2588     _flag_k = FK_CMP;
   2589     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   2590 L_38009F9B:
   2591     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   2592     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   2593     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   2594     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   2595     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   2596     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   2597     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2599     _flag_k = FK_CMP;
   2600     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   2601 L_38009FAC:
   2602     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   2603 L_38009FAF:
   2604     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   2605     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   2606     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   2607     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   2608     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2609     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2610     _flag_k = FK_CMP;
   2611     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   2612 L_38009FBD:
   2613     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   2614     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   2615 L_38009FC2:
   2616     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   2617     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   2618     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2620     _flag_k = FK_CMP;
   2621     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   2622 L_38009FC9:
   2623     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   2624     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   2625 L_38009FCD:
   2626     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   2627 L_38009FD0:
   2628     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   2629     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   2630 L_38009FD5:
   2631     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   2632     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   2633     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   2634     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   2635     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   2636     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   2637     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   2638     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   2639     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   2640     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   2641     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   2642     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   2643     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2644     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2645     _flag_k = FK_CMP;
   2646     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   2647 L_38009FFA:
   2648     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   2649 L_38009FFD:
   2650     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   2651     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   2652     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   2653     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   2654     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2656     _flag_k = FK_CMP;
   2657     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   2658 L_3800A00B:
   2659     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   2660     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   2661     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   2662 L_3800A016:
   2663     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   2664     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   2665     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2667     _flag_k = FK_CMP;
   2668     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   2669 L_3800A01E:
   2670     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   2671     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   2672     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   2673 L_3800A029:
   2674     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   2675     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   2676     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   2677 L_3800A033:
   2678     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   2679     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2680     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2681     _flag_k = FK_NARROW(FK_CMP, 24);
   2682     RECOMP_BACKEDGE();
   2683     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   2684 L_3800A03D:
   2685     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   2686     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2688     _flag_k = FK_CMP;
   2689     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   2690 L_3800A041:
   2691     eax = ecx; /* 0x3800A041: mov eax, ecx */
   2692     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   2693     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   2694     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   2695     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   2696     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   2697     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2698     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2699     _flag_k = FK_CMP;
   2700     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   2701 L_3800A052:
   2702     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   2703 L_3800A055:
   2704     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   2705     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   2706     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   2707     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   2708     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2710     _flag_k = FK_CMP;
   2711     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   2712 L_3800A063:
   2713     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   2714     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   2715 L_3800A068:
   2716     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   2717     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   2718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2720     _flag_k = FK_CMP;
   2721     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   2722 L_3800A070:
   2723     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   2724     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   2725 L_3800A075:
   2726     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   2727 L_3800A077:
   2728     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   2729     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   2730 L_3800A07D:
   2731     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   2732     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   2733     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   2734     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   2735     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   2736     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   2737     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   2738     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   2739     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   2740     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   2741     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   2742     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   2743     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2745     _flag_k = FK_CMP;
   2746     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   2747 L_3800A0A2:
   2748     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   2749 L_3800A0A5:
   2750     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   2751     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   2752     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   2753     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   2754     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2756     _flag_k = FK_CMP;
   2757     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   2758 L_3800A0B3:
   2759     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   2760     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   2761 L_3800A0B8:
   2762     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   2763     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   2764     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2765     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2766     _flag_k = FK_CMP;
   2767     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   2768 L_3800A0BF:
   2769     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   2770     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   2771 L_3800A0C3:
   2772     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   2773 L_3800A0C6:
   2774     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   2775 L_3800A0C8:
   2776     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   2777 L_3800A0CB:
   2778     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   2779     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   2780     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2782     _flag_k = FK_CMP;
   2783     RECOMP_BACKEDGE();
   2784     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   2785 L_3800A0D7:
   2786     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   2787     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   2788     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   2789     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   2790     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   2791     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   2792     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   2793     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   2794     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   2795     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   2796     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   2797     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   2798     RECOMP_REGS_OUT();
   2799 }
   2800 
   2801 void sub_38009F57(void) {
   2802     int _fpu_cmp = 0;
   2803     uint32_t _cf = 0;
   2804     int _df = 1;
   2805     uint32_t _flag_k = FK_NONE;
   2806     uint32_t _flag_a = 0, _flag_b = 0;
   2807     uint32_t _itail_tgt = 0;
   2808     RECOMP_REGS_LOCALS
   2809     RECOMP_ENTER(0x38009F57u);
   2810 
   2811 L_38009F57:
   2812     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   2813     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   2814     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   2815     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2816     _cf = 0;
   2817     _flag_k = FK_NARROW(FK_TEST, 24);
   2818     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   2819 L_38009F65:
   2820     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   2821     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   2822     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   2823     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2825     _flag_k = FK_CMP;
   2826     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   2827 L_38009F72:
   2828     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   2829     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   2830     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2832     _flag_k = FK_NARROW(FK_CMP, 24);
   2833     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   2834 L_38009F7B:
   2835     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   2836     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   2837     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   2838     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   2839     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   2840     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   2841     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   2842     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   2843 L_38009F96:
   2844     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   2845     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2847     _flag_k = FK_CMP;
   2848     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   2849 L_38009F9B:
   2850     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   2851     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   2852     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   2853     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   2854     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   2855     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   2856     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2858     _flag_k = FK_CMP;
   2859     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   2860 L_38009FAC:
   2861     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   2862 L_38009FAF:
   2863     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   2864     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   2865     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   2866     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   2867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2869     _flag_k = FK_CMP;
   2870     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   2871 L_38009FBD:
   2872     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   2873     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   2874 L_38009FC2:
   2875     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   2876     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   2877     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2878     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2879     _flag_k = FK_CMP;
   2880     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   2881 L_38009FC9:
   2882     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   2883     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   2884 L_38009FCD:
   2885     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   2886 L_38009FD0:
   2887     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   2888     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   2889 L_38009FD5:
   2890     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   2891     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   2892     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   2893     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   2894     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   2895     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   2896     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   2897     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   2898     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   2899     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   2900     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   2901     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   2902     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2904     _flag_k = FK_CMP;
   2905     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   2906 L_38009FFA:
   2907     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   2908 L_38009FFD:
   2909     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   2910     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   2911     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   2912     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   2913     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2915     _flag_k = FK_CMP;
   2916     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   2917 L_3800A00B:
   2918     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   2919     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   2920     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   2921 L_3800A016:
   2922     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   2923     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   2924     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2926     _flag_k = FK_CMP;
   2927     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   2928 L_3800A01E:
   2929     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   2930     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   2931     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   2932 L_3800A029:
   2933     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   2934     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   2935     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   2936 L_3800A033:
   2937     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   2938     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2940     _flag_k = FK_NARROW(FK_CMP, 24);
   2941     RECOMP_BACKEDGE();
   2942     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   2943 L_3800A03D:
   2944     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   2945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2947     _flag_k = FK_CMP;
   2948     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   2949 L_3800A041:
   2950     eax = ecx; /* 0x3800A041: mov eax, ecx */
   2951     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   2952     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   2953     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   2954     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   2955     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   2956     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2958     _flag_k = FK_CMP;
   2959     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   2960 L_3800A052:
   2961     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   2962 L_3800A055:
   2963     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   2964     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   2965     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   2966     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   2967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2969     _flag_k = FK_CMP;
   2970     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   2971 L_3800A063:
   2972     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   2973     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   2974 L_3800A068:
   2975     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   2976     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   2977     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2978     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2979     _flag_k = FK_CMP;
   2980     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   2981 L_3800A070:
   2982     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   2983     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   2984 L_3800A075:
   2985     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   2986 L_3800A077:
   2987     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   2988     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   2989 L_3800A07D:
   2990     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   2991     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   2992     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   2993     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   2994     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   2995     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   2996     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   2997     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   2998     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   2999     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   3000     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   3001     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   3002     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3004     _flag_k = FK_CMP;
   3005     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   3006 L_3800A0A2:
   3007     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   3008 L_3800A0A5:
   3009     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   3010     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   3011     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   3012     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   3013     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3015     _flag_k = FK_CMP;
   3016     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   3017 L_3800A0B3:
   3018     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   3019     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   3020 L_3800A0B8:
   3021     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   3022     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   3023     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3025     _flag_k = FK_CMP;
   3026     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   3027 L_3800A0BF:
   3028     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   3029     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   3030 L_3800A0C3:
   3031     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   3032 L_3800A0C6:
   3033     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   3034 L_3800A0C8:
   3035     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   3036 L_3800A0CB:
   3037     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   3038     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   3039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3041     _flag_k = FK_CMP;
   3042     RECOMP_BACKEDGE();
   3043     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   3044 L_3800A0D7:
   3045     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   3046     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   3047     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   3048     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   3049     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   3050     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   3051     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   3052     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   3053     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   3054     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   3055     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   3056     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   3057     RECOMP_REGS_OUT();
   3058 }
   3059 
   3060 void sub_38009F7B(void) {
   3061     int _fpu_cmp = 0;
   3062     uint32_t _cf = 0;
   3063     int _df = 1;
   3064     uint32_t _flag_k = FK_NONE;
   3065     uint32_t _flag_a = 0, _flag_b = 0;
   3066     uint32_t _itail_tgt = 0;
   3067     RECOMP_REGS_LOCALS
   3068     RECOMP_ENTER(0x38009F7Bu);
   3069 
   3070     goto L_38009F7B;
   3071 L_38009F57:
   3072     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   3073     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   3074     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   3075     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3076     _cf = 0;
   3077     _flag_k = FK_NARROW(FK_TEST, 24);
   3078     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   3079 L_38009F65:
   3080     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   3081     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   3082     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   3083     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3084     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3085     _flag_k = FK_CMP;
   3086     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   3087 L_38009F72:
   3088     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   3089     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   3090     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3091     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3092     _flag_k = FK_NARROW(FK_CMP, 24);
   3093     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   3094 L_38009F7B:
   3095     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   3096     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   3097     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   3098     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   3099     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   3100     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   3101     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   3102     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   3103 L_38009F96:
   3104     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   3105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3107     _flag_k = FK_CMP;
   3108     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   3109 L_38009F9B:
   3110     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   3111     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   3112     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   3113     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   3114     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   3115     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   3116     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3118     _flag_k = FK_CMP;
   3119     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   3120 L_38009FAC:
   3121     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   3122 L_38009FAF:
   3123     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   3124     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   3125     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   3126     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   3127     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3128     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3129     _flag_k = FK_CMP;
   3130     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   3131 L_38009FBD:
   3132     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   3133     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   3134 L_38009FC2:
   3135     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   3136     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   3137     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3138     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3139     _flag_k = FK_CMP;
   3140     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   3141 L_38009FC9:
   3142     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   3143     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   3144 L_38009FCD:
   3145     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   3146 L_38009FD0:
   3147     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   3148     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   3149 L_38009FD5:
   3150     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   3151     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   3152     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   3153     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   3154     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   3155     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   3156     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   3157     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   3158     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   3159     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   3160     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   3161     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   3162     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3164     _flag_k = FK_CMP;
   3165     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   3166 L_38009FFA:
   3167     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   3168 L_38009FFD:
   3169     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   3170     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   3171     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   3172     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   3173     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3175     _flag_k = FK_CMP;
   3176     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   3177 L_3800A00B:
   3178     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   3179     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   3180     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   3181 L_3800A016:
   3182     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   3183     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   3184     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3186     _flag_k = FK_CMP;
   3187     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   3188 L_3800A01E:
   3189     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   3190     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   3191     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   3192 L_3800A029:
   3193     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   3194     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   3195     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   3196 L_3800A033:
   3197     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   3198     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3200     _flag_k = FK_NARROW(FK_CMP, 24);
   3201     RECOMP_BACKEDGE();
   3202     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   3203 L_3800A03D:
   3204     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   3205     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3207     _flag_k = FK_CMP;
   3208     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   3209 L_3800A041:
   3210     eax = ecx; /* 0x3800A041: mov eax, ecx */
   3211     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   3212     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   3213     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   3214     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   3215     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   3216     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3218     _flag_k = FK_CMP;
   3219     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   3220 L_3800A052:
   3221     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   3222 L_3800A055:
   3223     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   3224     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   3225     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   3226     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   3227     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3229     _flag_k = FK_CMP;
   3230     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   3231 L_3800A063:
   3232     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   3233     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   3234 L_3800A068:
   3235     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   3236     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   3237     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3238     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3239     _flag_k = FK_CMP;
   3240     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   3241 L_3800A070:
   3242     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   3243     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   3244 L_3800A075:
   3245     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   3246 L_3800A077:
   3247     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   3248     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   3249 L_3800A07D:
   3250     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   3251     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   3252     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   3253     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   3254     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   3255     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   3256     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   3257     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   3258     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   3259     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   3260     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   3261     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   3262     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3263     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3264     _flag_k = FK_CMP;
   3265     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   3266 L_3800A0A2:
   3267     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   3268 L_3800A0A5:
   3269     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   3270     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   3271     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   3272     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   3273     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3274     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3275     _flag_k = FK_CMP;
   3276     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   3277 L_3800A0B3:
   3278     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   3279     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   3280 L_3800A0B8:
   3281     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   3282     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   3283     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3284     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3285     _flag_k = FK_CMP;
   3286     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   3287 L_3800A0BF:
   3288     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   3289     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   3290 L_3800A0C3:
   3291     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   3292 L_3800A0C6:
   3293     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   3294 L_3800A0C8:
   3295     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   3296 L_3800A0CB:
   3297     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   3298     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   3299     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3301     _flag_k = FK_CMP;
   3302     RECOMP_BACKEDGE();
   3303     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   3304 L_3800A0D7:
   3305     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   3306     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   3307     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   3308     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   3309     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   3310     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   3311     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   3312     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   3313     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   3314     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   3315     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   3316     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   3317     RECOMP_REGS_OUT();
   3318 }
   3319 
   3320 void sub_38009FD0(void) {
   3321     int _fpu_cmp = 0;
   3322     uint32_t _cf = 0;
   3323     int _df = 1;
   3324     uint32_t _flag_k = FK_NONE;
   3325     uint32_t _flag_a = 0, _flag_b = 0;
   3326     uint32_t _itail_tgt = 0;
   3327     RECOMP_REGS_LOCALS
   3328     RECOMP_ENTER(0x38009FD0u);
   3329 
   3330     goto L_38009FD0;
   3331 L_38009F57:
   3332     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   3333     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   3334     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   3335     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3336     _cf = 0;
   3337     _flag_k = FK_NARROW(FK_TEST, 24);
   3338     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   3339 L_38009F65:
   3340     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   3341     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   3342     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   3343     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3344     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3345     _flag_k = FK_CMP;
   3346     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   3347 L_38009F72:
   3348     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   3349     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   3350     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3351     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3352     _flag_k = FK_NARROW(FK_CMP, 24);
   3353     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   3354 L_38009F7B:
   3355     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   3356     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   3357     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   3358     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   3359     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   3360     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   3361     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   3362     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   3363 L_38009F96:
   3364     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   3365     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3367     _flag_k = FK_CMP;
   3368     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   3369 L_38009F9B:
   3370     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   3371     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   3372     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   3373     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   3374     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   3375     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   3376     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3378     _flag_k = FK_CMP;
   3379     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   3380 L_38009FAC:
   3381     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   3382 L_38009FAF:
   3383     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   3384     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   3385     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   3386     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   3387     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3389     _flag_k = FK_CMP;
   3390     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   3391 L_38009FBD:
   3392     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   3393     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   3394 L_38009FC2:
   3395     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   3396     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   3397     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3399     _flag_k = FK_CMP;
   3400     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   3401 L_38009FC9:
   3402     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   3403     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   3404 L_38009FCD:
   3405     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   3406 L_38009FD0:
   3407     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   3408     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   3409 L_38009FD5:
   3410     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   3411     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   3412     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   3413     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   3414     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   3415     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   3416     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   3417     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   3418     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   3419     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   3420     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   3421     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   3422     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3424     _flag_k = FK_CMP;
   3425     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   3426 L_38009FFA:
   3427     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   3428 L_38009FFD:
   3429     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   3430     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   3431     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   3432     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   3433     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3434     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3435     _flag_k = FK_CMP;
   3436     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   3437 L_3800A00B:
   3438     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   3439     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   3440     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   3441 L_3800A016:
   3442     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   3443     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   3444     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3446     _flag_k = FK_CMP;
   3447     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   3448 L_3800A01E:
   3449     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   3450     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   3451     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   3452 L_3800A029:
   3453     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   3454     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   3455     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   3456 L_3800A033:
   3457     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   3458     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3460     _flag_k = FK_NARROW(FK_CMP, 24);
   3461     RECOMP_BACKEDGE();
   3462     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   3463 L_3800A03D:
   3464     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   3465     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3467     _flag_k = FK_CMP;
   3468     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   3469 L_3800A041:
   3470     eax = ecx; /* 0x3800A041: mov eax, ecx */
   3471     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   3472     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   3473     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   3474     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   3475     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   3476     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3478     _flag_k = FK_CMP;
   3479     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   3480 L_3800A052:
   3481     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   3482 L_3800A055:
   3483     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   3484     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   3485     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   3486     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   3487     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3489     _flag_k = FK_CMP;
   3490     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   3491 L_3800A063:
   3492     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   3493     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   3494 L_3800A068:
   3495     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   3496     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   3497     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3499     _flag_k = FK_CMP;
   3500     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   3501 L_3800A070:
   3502     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   3503     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   3504 L_3800A075:
   3505     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   3506 L_3800A077:
   3507     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   3508     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   3509 L_3800A07D:
   3510     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   3511     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   3512     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   3513     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   3514     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   3515     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   3516     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   3517     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   3518     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   3519     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   3520     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   3521     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   3522     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3524     _flag_k = FK_CMP;
   3525     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   3526 L_3800A0A2:
   3527     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   3528 L_3800A0A5:
   3529     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   3530     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   3531     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   3532     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   3533     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3535     _flag_k = FK_CMP;
   3536     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   3537 L_3800A0B3:
   3538     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   3539     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   3540 L_3800A0B8:
   3541     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   3542     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   3543     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3545     _flag_k = FK_CMP;
   3546     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   3547 L_3800A0BF:
   3548     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   3549     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   3550 L_3800A0C3:
   3551     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   3552 L_3800A0C6:
   3553     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   3554 L_3800A0C8:
   3555     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   3556 L_3800A0CB:
   3557     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   3558     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   3559     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3561     _flag_k = FK_CMP;
   3562     RECOMP_BACKEDGE();
   3563     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   3564 L_3800A0D7:
   3565     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   3566     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   3567     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   3568     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   3569     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   3570     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   3571     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   3572     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   3573     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   3574     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   3575     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   3576     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   3577     RECOMP_REGS_OUT();
   3578 }
   3579 
   3580 void sub_38009FD5(void) {
   3581     int _fpu_cmp = 0;
   3582     uint32_t _cf = 0;
   3583     int _df = 1;
   3584     uint32_t _flag_k = FK_NONE;
   3585     uint32_t _flag_a = 0, _flag_b = 0;
   3586     uint32_t _itail_tgt = 0;
   3587     RECOMP_REGS_LOCALS
   3588     RECOMP_ENTER(0x38009FD5u);
   3589 
   3590     goto L_38009FD5;
   3591 L_38009F57:
   3592     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   3593     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   3594     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   3595     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3596     _cf = 0;
   3597     _flag_k = FK_NARROW(FK_TEST, 24);
   3598     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   3599 L_38009F65:
   3600     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   3601     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   3602     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   3603     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3605     _flag_k = FK_CMP;
   3606     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   3607 L_38009F72:
   3608     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   3609     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   3610     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3612     _flag_k = FK_NARROW(FK_CMP, 24);
   3613     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   3614 L_38009F7B:
   3615     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   3616     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   3617     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   3618     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   3619     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   3620     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   3621     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   3622     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   3623 L_38009F96:
   3624     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   3625     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3627     _flag_k = FK_CMP;
   3628     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   3629 L_38009F9B:
   3630     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   3631     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   3632     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   3633     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   3634     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   3635     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   3636     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3638     _flag_k = FK_CMP;
   3639     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   3640 L_38009FAC:
   3641     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   3642 L_38009FAF:
   3643     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   3644     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   3645     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   3646     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   3647     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3649     _flag_k = FK_CMP;
   3650     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   3651 L_38009FBD:
   3652     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   3653     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   3654 L_38009FC2:
   3655     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   3656     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   3657     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3658     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3659     _flag_k = FK_CMP;
   3660     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   3661 L_38009FC9:
   3662     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   3663     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   3664 L_38009FCD:
   3665     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   3666 L_38009FD0:
   3667     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   3668     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   3669 L_38009FD5:
   3670     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   3671     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   3672     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   3673     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   3674     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   3675     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   3676     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   3677     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   3678     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   3679     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   3680     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   3681     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   3682     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3684     _flag_k = FK_CMP;
   3685     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   3686 L_38009FFA:
   3687     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   3688 L_38009FFD:
   3689     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   3690     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   3691     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   3692     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   3693     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3695     _flag_k = FK_CMP;
   3696     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   3697 L_3800A00B:
   3698     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   3699     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   3700     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   3701 L_3800A016:
   3702     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   3703     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   3704     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3705     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3706     _flag_k = FK_CMP;
   3707     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   3708 L_3800A01E:
   3709     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   3710     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   3711     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   3712 L_3800A029:
   3713     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   3714     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   3715     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   3716 L_3800A033:
   3717     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   3718     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3720     _flag_k = FK_NARROW(FK_CMP, 24);
   3721     RECOMP_BACKEDGE();
   3722     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   3723 L_3800A03D:
   3724     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   3725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3727     _flag_k = FK_CMP;
   3728     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   3729 L_3800A041:
   3730     eax = ecx; /* 0x3800A041: mov eax, ecx */
   3731     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   3732     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   3733     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   3734     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   3735     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   3736     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3738     _flag_k = FK_CMP;
   3739     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   3740 L_3800A052:
   3741     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   3742 L_3800A055:
   3743     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   3744     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   3745     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   3746     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   3747     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3749     _flag_k = FK_CMP;
   3750     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   3751 L_3800A063:
   3752     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   3753     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   3754 L_3800A068:
   3755     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   3756     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   3757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3759     _flag_k = FK_CMP;
   3760     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   3761 L_3800A070:
   3762     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   3763     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   3764 L_3800A075:
   3765     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   3766 L_3800A077:
   3767     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   3768     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   3769 L_3800A07D:
   3770     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   3771     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   3772     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   3773     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   3774     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   3775     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   3776     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   3777     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   3778     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   3779     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   3780     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   3781     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   3782     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3783     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3784     _flag_k = FK_CMP;
   3785     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   3786 L_3800A0A2:
   3787     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   3788 L_3800A0A5:
   3789     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   3790     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   3791     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   3792     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   3793     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3794     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3795     _flag_k = FK_CMP;
   3796     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   3797 L_3800A0B3:
   3798     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   3799     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   3800 L_3800A0B8:
   3801     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   3802     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   3803     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3805     _flag_k = FK_CMP;
   3806     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   3807 L_3800A0BF:
   3808     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   3809     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   3810 L_3800A0C3:
   3811     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   3812 L_3800A0C6:
   3813     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   3814 L_3800A0C8:
   3815     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   3816 L_3800A0CB:
   3817     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   3818     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   3819     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3821     _flag_k = FK_CMP;
   3822     RECOMP_BACKEDGE();
   3823     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   3824 L_3800A0D7:
   3825     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   3826     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   3827     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   3828     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   3829     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   3830     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   3831     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   3832     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   3833     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   3834     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   3835     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   3836     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   3837     RECOMP_REGS_OUT();
   3838 }
   3839 
   3840 void sub_3800A033(void) {
   3841     int _fpu_cmp = 0;
   3842     uint32_t _cf = 0;
   3843     int _df = 1;
   3844     uint32_t _flag_k = FK_NONE;
   3845     uint32_t _flag_a = 0, _flag_b = 0;
   3846     uint32_t _itail_tgt = 0;
   3847     RECOMP_REGS_LOCALS
   3848     RECOMP_ENTER(0x3800A033u);
   3849 
   3850     goto L_3800A033;
   3851 L_38009F57:
   3852     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   3853     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   3854     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   3855     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3856     _cf = 0;
   3857     _flag_k = FK_NARROW(FK_TEST, 24);
   3858     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   3859 L_38009F65:
   3860     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   3861     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   3862     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   3863     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3865     _flag_k = FK_CMP;
   3866     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   3867 L_38009F72:
   3868     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   3869     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   3870     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3872     _flag_k = FK_NARROW(FK_CMP, 24);
   3873     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   3874 L_38009F7B:
   3875     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   3876     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   3877     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   3878     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   3879     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   3880     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   3881     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   3882     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   3883 L_38009F96:
   3884     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   3885     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3887     _flag_k = FK_CMP;
   3888     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   3889 L_38009F9B:
   3890     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   3891     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   3892     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   3893     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   3894     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   3895     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   3896     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3897     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3898     _flag_k = FK_CMP;
   3899     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   3900 L_38009FAC:
   3901     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   3902 L_38009FAF:
   3903     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   3904     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   3905     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   3906     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   3907     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3909     _flag_k = FK_CMP;
   3910     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   3911 L_38009FBD:
   3912     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   3913     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   3914 L_38009FC2:
   3915     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   3916     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   3917     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3919     _flag_k = FK_CMP;
   3920     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   3921 L_38009FC9:
   3922     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   3923     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   3924 L_38009FCD:
   3925     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   3926 L_38009FD0:
   3927     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   3928     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   3929 L_38009FD5:
   3930     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   3931     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   3932     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   3933     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   3934     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   3935     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   3936     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   3937     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   3938     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   3939     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   3940     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   3941     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   3942     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3943     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3944     _flag_k = FK_CMP;
   3945     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   3946 L_38009FFA:
   3947     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   3948 L_38009FFD:
   3949     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   3950     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   3951     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   3952     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   3953     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3954     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3955     _flag_k = FK_CMP;
   3956     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   3957 L_3800A00B:
   3958     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   3959     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   3960     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   3961 L_3800A016:
   3962     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   3963     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   3964     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3966     _flag_k = FK_CMP;
   3967     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   3968 L_3800A01E:
   3969     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   3970     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   3971     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   3972 L_3800A029:
   3973     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   3974     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   3975     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   3976 L_3800A033:
   3977     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   3978     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3980     _flag_k = FK_NARROW(FK_CMP, 24);
   3981     RECOMP_BACKEDGE();
   3982     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   3983 L_3800A03D:
   3984     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   3985     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3987     _flag_k = FK_CMP;
   3988     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   3989 L_3800A041:
   3990     eax = ecx; /* 0x3800A041: mov eax, ecx */
   3991     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   3992     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   3993     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   3994     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   3995     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   3996     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3998     _flag_k = FK_CMP;
   3999     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   4000 L_3800A052:
   4001     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   4002 L_3800A055:
   4003     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   4004     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   4005     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   4006     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   4007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4009     _flag_k = FK_CMP;
   4010     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   4011 L_3800A063:
   4012     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   4013     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   4014 L_3800A068:
   4015     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   4016     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   4017     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4019     _flag_k = FK_CMP;
   4020     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   4021 L_3800A070:
   4022     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   4023     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   4024 L_3800A075:
   4025     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   4026 L_3800A077:
   4027     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   4028     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   4029 L_3800A07D:
   4030     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   4031     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   4032     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   4033     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   4034     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   4035     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   4036     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   4037     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   4038     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   4039     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   4040     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   4041     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   4042     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4044     _flag_k = FK_CMP;
   4045     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   4046 L_3800A0A2:
   4047     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   4048 L_3800A0A5:
   4049     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   4050     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   4051     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   4052     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   4053     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4055     _flag_k = FK_CMP;
   4056     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   4057 L_3800A0B3:
   4058     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   4059     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   4060 L_3800A0B8:
   4061     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   4062     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   4063     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4065     _flag_k = FK_CMP;
   4066     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   4067 L_3800A0BF:
   4068     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   4069     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   4070 L_3800A0C3:
   4071     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   4072 L_3800A0C6:
   4073     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   4074 L_3800A0C8:
   4075     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   4076 L_3800A0CB:
   4077     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   4078     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   4079     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4081     _flag_k = FK_CMP;
   4082     RECOMP_BACKEDGE();
   4083     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   4084 L_3800A0D7:
   4085     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   4086     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   4087     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   4088     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   4089     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   4090     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   4091     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   4092     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   4093     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   4094     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   4095     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   4096     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   4097     RECOMP_REGS_OUT();
   4098 }
   4099 
   4100 void sub_3800A077(void) {
   4101     int _fpu_cmp = 0;
   4102     uint32_t _cf = 0;
   4103     int _df = 1;
   4104     uint32_t _flag_k = FK_NONE;
   4105     uint32_t _flag_a = 0, _flag_b = 0;
   4106     uint32_t _itail_tgt = 0;
   4107     RECOMP_REGS_LOCALS
   4108     RECOMP_ENTER(0x3800A077u);
   4109 
   4110     goto L_3800A077;
   4111 L_38009F57:
   4112     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   4113     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   4114     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   4115     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4116     _cf = 0;
   4117     _flag_k = FK_NARROW(FK_TEST, 24);
   4118     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   4119 L_38009F65:
   4120     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   4121     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   4122     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   4123     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4124     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4125     _flag_k = FK_CMP;
   4126     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   4127 L_38009F72:
   4128     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   4129     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   4130     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4131     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4132     _flag_k = FK_NARROW(FK_CMP, 24);
   4133     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   4134 L_38009F7B:
   4135     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   4136     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   4137     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   4138     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   4139     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   4140     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   4141     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   4142     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   4143 L_38009F96:
   4144     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   4145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4147     _flag_k = FK_CMP;
   4148     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   4149 L_38009F9B:
   4150     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   4151     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   4152     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   4153     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   4154     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   4155     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   4156     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4158     _flag_k = FK_CMP;
   4159     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   4160 L_38009FAC:
   4161     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   4162 L_38009FAF:
   4163     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   4164     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   4165     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   4166     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   4167     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4168     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4169     _flag_k = FK_CMP;
   4170     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   4171 L_38009FBD:
   4172     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   4173     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   4174 L_38009FC2:
   4175     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   4176     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   4177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4178     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4179     _flag_k = FK_CMP;
   4180     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   4181 L_38009FC9:
   4182     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   4183     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   4184 L_38009FCD:
   4185     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   4186 L_38009FD0:
   4187     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   4188     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   4189 L_38009FD5:
   4190     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   4191     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   4192     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   4193     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   4194     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   4195     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   4196     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   4197     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   4198     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   4199     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   4200     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   4201     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   4202     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4204     _flag_k = FK_CMP;
   4205     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   4206 L_38009FFA:
   4207     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   4208 L_38009FFD:
   4209     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   4210     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   4211     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   4212     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   4213     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4215     _flag_k = FK_CMP;
   4216     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   4217 L_3800A00B:
   4218     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   4219     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   4220     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   4221 L_3800A016:
   4222     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   4223     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   4224     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4226     _flag_k = FK_CMP;
   4227     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   4228 L_3800A01E:
   4229     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   4230     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   4231     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   4232 L_3800A029:
   4233     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   4234     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   4235     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   4236 L_3800A033:
   4237     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   4238     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4240     _flag_k = FK_NARROW(FK_CMP, 24);
   4241     RECOMP_BACKEDGE();
   4242     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   4243 L_3800A03D:
   4244     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   4245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4247     _flag_k = FK_CMP;
   4248     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   4249 L_3800A041:
   4250     eax = ecx; /* 0x3800A041: mov eax, ecx */
   4251     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   4252     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   4253     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   4254     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   4255     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   4256     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4258     _flag_k = FK_CMP;
   4259     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   4260 L_3800A052:
   4261     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   4262 L_3800A055:
   4263     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   4264     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   4265     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   4266     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   4267     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4269     _flag_k = FK_CMP;
   4270     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   4271 L_3800A063:
   4272     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   4273     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   4274 L_3800A068:
   4275     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   4276     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   4277     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4278     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4279     _flag_k = FK_CMP;
   4280     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   4281 L_3800A070:
   4282     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   4283     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   4284 L_3800A075:
   4285     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   4286 L_3800A077:
   4287     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   4288     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   4289 L_3800A07D:
   4290     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   4291     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   4292     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   4293     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   4294     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   4295     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   4296     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   4297     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   4298     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   4299     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   4300     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   4301     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   4302     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4304     _flag_k = FK_CMP;
   4305     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   4306 L_3800A0A2:
   4307     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   4308 L_3800A0A5:
   4309     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   4310     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   4311     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   4312     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   4313     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4314     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4315     _flag_k = FK_CMP;
   4316     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   4317 L_3800A0B3:
   4318     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   4319     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   4320 L_3800A0B8:
   4321     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   4322     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   4323     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4325     _flag_k = FK_CMP;
   4326     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   4327 L_3800A0BF:
   4328     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   4329     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   4330 L_3800A0C3:
   4331     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   4332 L_3800A0C6:
   4333     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   4334 L_3800A0C8:
   4335     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   4336 L_3800A0CB:
   4337     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   4338     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   4339     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4341     _flag_k = FK_CMP;
   4342     RECOMP_BACKEDGE();
   4343     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   4344 L_3800A0D7:
   4345     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   4346     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   4347     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   4348     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   4349     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   4350     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   4351     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   4352     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   4353     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   4354     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   4355     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   4356     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   4357     RECOMP_REGS_OUT();
   4358 }
   4359 
   4360 void sub_3800A07D(void) {
   4361     int _fpu_cmp = 0;
   4362     uint32_t _cf = 0;
   4363     int _df = 1;
   4364     uint32_t _flag_k = FK_NONE;
   4365     uint32_t _flag_a = 0, _flag_b = 0;
   4366     uint32_t _itail_tgt = 0;
   4367     RECOMP_REGS_LOCALS
   4368     RECOMP_ENTER(0x3800A07Du);
   4369 
   4370     goto L_3800A07D;
   4371 L_38009F57:
   4372     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   4373     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   4374     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   4375     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4376     _cf = 0;
   4377     _flag_k = FK_NARROW(FK_TEST, 24);
   4378     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   4379 L_38009F65:
   4380     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   4381     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   4382     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   4383     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4385     _flag_k = FK_CMP;
   4386     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   4387 L_38009F72:
   4388     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   4389     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   4390     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4392     _flag_k = FK_NARROW(FK_CMP, 24);
   4393     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   4394 L_38009F7B:
   4395     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   4396     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   4397     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   4398     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   4399     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   4400     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   4401     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   4402     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   4403 L_38009F96:
   4404     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   4405     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4407     _flag_k = FK_CMP;
   4408     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   4409 L_38009F9B:
   4410     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   4411     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   4412     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   4413     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   4414     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   4415     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   4416     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4418     _flag_k = FK_CMP;
   4419     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   4420 L_38009FAC:
   4421     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   4422 L_38009FAF:
   4423     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   4424     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   4425     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   4426     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   4427     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4428     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4429     _flag_k = FK_CMP;
   4430     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   4431 L_38009FBD:
   4432     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   4433     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   4434 L_38009FC2:
   4435     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   4436     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   4437     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4438     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4439     _flag_k = FK_CMP;
   4440     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   4441 L_38009FC9:
   4442     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   4443     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   4444 L_38009FCD:
   4445     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   4446 L_38009FD0:
   4447     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   4448     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   4449 L_38009FD5:
   4450     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   4451     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   4452     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   4453     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   4454     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   4455     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   4456     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   4457     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   4458     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   4459     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   4460     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   4461     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   4462     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4464     _flag_k = FK_CMP;
   4465     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   4466 L_38009FFA:
   4467     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   4468 L_38009FFD:
   4469     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   4470     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   4471     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   4472     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   4473     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4475     _flag_k = FK_CMP;
   4476     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   4477 L_3800A00B:
   4478     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   4479     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   4480     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   4481 L_3800A016:
   4482     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   4483     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   4484     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4486     _flag_k = FK_CMP;
   4487     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   4488 L_3800A01E:
   4489     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   4490     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   4491     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   4492 L_3800A029:
   4493     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   4494     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   4495     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   4496 L_3800A033:
   4497     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   4498     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4500     _flag_k = FK_NARROW(FK_CMP, 24);
   4501     RECOMP_BACKEDGE();
   4502     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   4503 L_3800A03D:
   4504     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   4505     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4507     _flag_k = FK_CMP;
   4508     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   4509 L_3800A041:
   4510     eax = ecx; /* 0x3800A041: mov eax, ecx */
   4511     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   4512     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   4513     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   4514     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   4515     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   4516     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4518     _flag_k = FK_CMP;
   4519     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   4520 L_3800A052:
   4521     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   4522 L_3800A055:
   4523     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   4524     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   4525     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   4526     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   4527     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4529     _flag_k = FK_CMP;
   4530     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   4531 L_3800A063:
   4532     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   4533     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   4534 L_3800A068:
   4535     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   4536     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   4537     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4538     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4539     _flag_k = FK_CMP;
   4540     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   4541 L_3800A070:
   4542     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   4543     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   4544 L_3800A075:
   4545     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   4546 L_3800A077:
   4547     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   4548     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   4549 L_3800A07D:
   4550     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   4551     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   4552     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   4553     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   4554     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   4555     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   4556     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   4557     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   4558     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   4559     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   4560     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   4561     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   4562     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4564     _flag_k = FK_CMP;
   4565     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   4566 L_3800A0A2:
   4567     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   4568 L_3800A0A5:
   4569     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   4570     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   4571     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   4572     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   4573     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4575     _flag_k = FK_CMP;
   4576     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   4577 L_3800A0B3:
   4578     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   4579     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   4580 L_3800A0B8:
   4581     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   4582     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   4583     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4585     _flag_k = FK_CMP;
   4586     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   4587 L_3800A0BF:
   4588     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   4589     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   4590 L_3800A0C3:
   4591     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   4592 L_3800A0C6:
   4593     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   4594 L_3800A0C8:
   4595     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   4596 L_3800A0CB:
   4597     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   4598     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   4599     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4600     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4601     _flag_k = FK_CMP;
   4602     RECOMP_BACKEDGE();
   4603     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   4604 L_3800A0D7:
   4605     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   4606     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   4607     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   4608     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   4609     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   4610     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   4611     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   4612     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   4613     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   4614     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   4615     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   4616     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   4617     RECOMP_REGS_OUT();
   4618 }
   4619 
   4620 void sub_3800A0C6(void) {
   4621     int _fpu_cmp = 0;
   4622     uint32_t _cf = 0;
   4623     int _df = 1;
   4624     uint32_t _flag_k = FK_NONE;
   4625     uint32_t _flag_a = 0, _flag_b = 0;
   4626     uint32_t _itail_tgt = 0;
   4627     RECOMP_REGS_LOCALS
   4628     RECOMP_ENTER(0x3800A0C6u);
   4629 
   4630     goto L_3800A0C6;
   4631 L_38009F57:
   4632     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   4633     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   4634     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   4635     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4636     _cf = 0;
   4637     _flag_k = FK_NARROW(FK_TEST, 24);
   4638     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   4639 L_38009F65:
   4640     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   4641     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   4642     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   4643     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4644     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4645     _flag_k = FK_CMP;
   4646     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   4647 L_38009F72:
   4648     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   4649     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   4650     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4651     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4652     _flag_k = FK_NARROW(FK_CMP, 24);
   4653     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   4654 L_38009F7B:
   4655     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   4656     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   4657     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   4658     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   4659     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   4660     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   4661     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   4662     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   4663 L_38009F96:
   4664     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   4665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4667     _flag_k = FK_CMP;
   4668     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   4669 L_38009F9B:
   4670     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   4671     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   4672     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   4673     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   4674     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   4675     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   4676     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4678     _flag_k = FK_CMP;
   4679     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   4680 L_38009FAC:
   4681     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   4682 L_38009FAF:
   4683     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   4684     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   4685     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   4686     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   4687     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4689     _flag_k = FK_CMP;
   4690     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   4691 L_38009FBD:
   4692     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   4693     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   4694 L_38009FC2:
   4695     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   4696     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   4697     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4698     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4699     _flag_k = FK_CMP;
   4700     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   4701 L_38009FC9:
   4702     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   4703     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   4704 L_38009FCD:
   4705     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   4706 L_38009FD0:
   4707     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   4708     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   4709 L_38009FD5:
   4710     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   4711     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   4712     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   4713     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   4714     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   4715     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   4716     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   4717     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   4718     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   4719     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   4720     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   4721     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   4722     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4724     _flag_k = FK_CMP;
   4725     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   4726 L_38009FFA:
   4727     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   4728 L_38009FFD:
   4729     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   4730     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   4731     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   4732     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   4733     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4734     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4735     _flag_k = FK_CMP;
   4736     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   4737 L_3800A00B:
   4738     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   4739     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   4740     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   4741 L_3800A016:
   4742     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   4743     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   4744     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4746     _flag_k = FK_CMP;
   4747     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   4748 L_3800A01E:
   4749     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   4750     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   4751     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   4752 L_3800A029:
   4753     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   4754     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   4755     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   4756 L_3800A033:
   4757     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   4758     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4760     _flag_k = FK_NARROW(FK_CMP, 24);
   4761     RECOMP_BACKEDGE();
   4762     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   4763 L_3800A03D:
   4764     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   4765     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4767     _flag_k = FK_CMP;
   4768     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   4769 L_3800A041:
   4770     eax = ecx; /* 0x3800A041: mov eax, ecx */
   4771     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   4772     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   4773     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   4774     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   4775     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   4776     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4778     _flag_k = FK_CMP;
   4779     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   4780 L_3800A052:
   4781     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   4782 L_3800A055:
   4783     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   4784     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   4785     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   4786     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   4787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4789     _flag_k = FK_CMP;
   4790     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   4791 L_3800A063:
   4792     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   4793     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   4794 L_3800A068:
   4795     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   4796     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   4797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4798     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4799     _flag_k = FK_CMP;
   4800     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   4801 L_3800A070:
   4802     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   4803     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   4804 L_3800A075:
   4805     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   4806 L_3800A077:
   4807     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   4808     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   4809 L_3800A07D:
   4810     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   4811     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   4812     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   4813     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   4814     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   4815     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   4816     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   4817     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   4818     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   4819     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   4820     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   4821     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   4822     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4824     _flag_k = FK_CMP;
   4825     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   4826 L_3800A0A2:
   4827     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   4828 L_3800A0A5:
   4829     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   4830     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   4831     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   4832     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   4833     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4835     _flag_k = FK_CMP;
   4836     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   4837 L_3800A0B3:
   4838     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   4839     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   4840 L_3800A0B8:
   4841     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   4842     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   4843     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4845     _flag_k = FK_CMP;
   4846     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   4847 L_3800A0BF:
   4848     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   4849     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   4850 L_3800A0C3:
   4851     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   4852 L_3800A0C6:
   4853     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   4854 L_3800A0C8:
   4855     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   4856 L_3800A0CB:
   4857     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   4858     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   4859     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4860     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4861     _flag_k = FK_CMP;
   4862     RECOMP_BACKEDGE();
   4863     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   4864 L_3800A0D7:
   4865     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   4866     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   4867     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   4868     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   4869     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   4870     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   4871     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   4872     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   4873     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   4874     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   4875     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   4876     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   4877     RECOMP_REGS_OUT();
   4878 }
   4879 
   4880 void sub_3800A0C8(void) {
   4881     int _fpu_cmp = 0;
   4882     uint32_t _cf = 0;
   4883     int _df = 1;
   4884     uint32_t _flag_k = FK_NONE;
   4885     uint32_t _flag_a = 0, _flag_b = 0;
   4886     uint32_t _itail_tgt = 0;
   4887     RECOMP_REGS_LOCALS
   4888     RECOMP_ENTER(0x3800A0C8u);
   4889 
   4890     goto L_3800A0C8;
   4891 L_38009F57:
   4892     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   4893     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   4894     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   4895     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4896     _cf = 0;
   4897     _flag_k = FK_NARROW(FK_TEST, 24);
   4898     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   4899 L_38009F65:
   4900     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   4901     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   4902     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   4903     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4904     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4905     _flag_k = FK_CMP;
   4906     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   4907 L_38009F72:
   4908     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   4909     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   4910     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4911     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4912     _flag_k = FK_NARROW(FK_CMP, 24);
   4913     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   4914 L_38009F7B:
   4915     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   4916     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   4917     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   4918     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   4919     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   4920     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   4921     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   4922     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   4923 L_38009F96:
   4924     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   4925     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4927     _flag_k = FK_CMP;
   4928     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   4929 L_38009F9B:
   4930     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   4931     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   4932     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   4933     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   4934     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   4935     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   4936     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4938     _flag_k = FK_CMP;
   4939     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   4940 L_38009FAC:
   4941     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   4942 L_38009FAF:
   4943     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   4944     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   4945     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   4946     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   4947     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4948     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4949     _flag_k = FK_CMP;
   4950     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   4951 L_38009FBD:
   4952     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   4953     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   4954 L_38009FC2:
   4955     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   4956     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   4957     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4959     _flag_k = FK_CMP;
   4960     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   4961 L_38009FC9:
   4962     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   4963     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   4964 L_38009FCD:
   4965     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   4966 L_38009FD0:
   4967     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   4968     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   4969 L_38009FD5:
   4970     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   4971     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   4972     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   4973     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   4974     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   4975     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   4976     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   4977     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   4978     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   4979     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   4980     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   4981     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   4982     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4984     _flag_k = FK_CMP;
   4985     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   4986 L_38009FFA:
   4987     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   4988 L_38009FFD:
   4989     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   4990     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   4991     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   4992     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   4993     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4995     _flag_k = FK_CMP;
   4996     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   4997 L_3800A00B:
   4998     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   4999     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   5000     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   5001 L_3800A016:
   5002     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   5003     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   5004     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5006     _flag_k = FK_CMP;
   5007     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   5008 L_3800A01E:
   5009     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   5010     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   5011     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   5012 L_3800A029:
   5013     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   5014     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   5015     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   5016 L_3800A033:
   5017     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   5018     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5020     _flag_k = FK_NARROW(FK_CMP, 24);
   5021     RECOMP_BACKEDGE();
   5022     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   5023 L_3800A03D:
   5024     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   5025     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5027     _flag_k = FK_CMP;
   5028     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   5029 L_3800A041:
   5030     eax = ecx; /* 0x3800A041: mov eax, ecx */
   5031     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   5032     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   5033     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   5034     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   5035     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   5036     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5038     _flag_k = FK_CMP;
   5039     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   5040 L_3800A052:
   5041     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   5042 L_3800A055:
   5043     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   5044     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   5045     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   5046     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   5047     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5049     _flag_k = FK_CMP;
   5050     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   5051 L_3800A063:
   5052     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   5053     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   5054 L_3800A068:
   5055     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   5056     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   5057     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5058     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5059     _flag_k = FK_CMP;
   5060     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   5061 L_3800A070:
   5062     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   5063     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   5064 L_3800A075:
   5065     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   5066 L_3800A077:
   5067     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   5068     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   5069 L_3800A07D:
   5070     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   5071     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   5072     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   5073     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   5074     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   5075     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   5076     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   5077     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   5078     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   5079     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   5080     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   5081     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   5082     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5084     _flag_k = FK_CMP;
   5085     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   5086 L_3800A0A2:
   5087     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   5088 L_3800A0A5:
   5089     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   5090     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   5091     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   5092     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   5093     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5094     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5095     _flag_k = FK_CMP;
   5096     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   5097 L_3800A0B3:
   5098     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   5099     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   5100 L_3800A0B8:
   5101     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   5102     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   5103     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5104     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5105     _flag_k = FK_CMP;
   5106     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   5107 L_3800A0BF:
   5108     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   5109     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   5110 L_3800A0C3:
   5111     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   5112 L_3800A0C6:
   5113     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   5114 L_3800A0C8:
   5115     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   5116 L_3800A0CB:
   5117     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   5118     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   5119     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5120     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5121     _flag_k = FK_CMP;
   5122     RECOMP_BACKEDGE();
   5123     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   5124 L_3800A0D7:
   5125     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   5126     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   5127     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   5128     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   5129     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   5130     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   5131     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   5132     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   5133     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   5134     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   5135     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   5136     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   5137     RECOMP_REGS_OUT();
   5138 }
   5139 
   5140 void sub_3800A0CB(void) {
   5141     int _fpu_cmp = 0;
   5142     uint32_t _cf = 0;
   5143     int _df = 1;
   5144     uint32_t _flag_k = FK_NONE;
   5145     uint32_t _flag_a = 0, _flag_b = 0;
   5146     uint32_t _itail_tgt = 0;
   5147     RECOMP_REGS_LOCALS
   5148     RECOMP_ENTER(0x3800A0CBu);
   5149 
   5150     goto L_3800A0CB;
   5151 L_38009F57:
   5152     ecx = MEM32(eax + 0x4); /* 0x38009F57: mov ecx, dword ptr [eax + 4] */
   5153     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38009F5A: mov dl, byte ptr [ecx + 0x14] */
   5154     /* test LO8(edx), LO8(edx) */ /* 0x38009F5D: test dl, dl */
   5155     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5156     _cf = 0;
   5157     _flag_k = FK_NARROW(FK_TEST, 24);
   5158     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A0D7; /* 0x38009F5F: jne 0x3800a0d7 */
   5159 L_38009F65:
   5160     edi = MEM32(ecx + 0x4); /* 0x38009F65: mov edi, dword ptr [ecx + 4] */
   5161     edx = MEM32(edi); /* 0x38009F68: mov edx, dword ptr [edi] */
   5162     /* cmp ecx, edx */ /* 0x38009F6A: cmp ecx, edx */
   5163     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5165     _flag_k = FK_CMP;
   5166     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A033; /* 0x38009F6C: jne 0x3800a033 */
   5167 L_38009F72:
   5168     edx = MEM32(edi + 0x8); /* 0x38009F72: mov edx, dword ptr [edi + 8] */
   5169     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38009F75: cmp byte ptr [edx + 0x14], 0 */
   5170     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5171     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5172     _flag_k = FK_NARROW(FK_CMP, 24);
   5173     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F96; /* 0x38009F79: jne 0x38009f96 */
   5174 L_38009F7B:
   5175     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7B: mov byte ptr [ecx + 0x14], bl */
   5176     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009F7E: mov byte ptr [edx + 0x14], bl */
   5177     ecx = MEM32(eax + 0x4); /* 0x38009F81: mov ecx, dword ptr [eax + 4] */
   5178     edx = MEM32(ecx + 0x4); /* 0x38009F84: mov edx, dword ptr [ecx + 4] */
   5179     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38009F87: mov byte ptr [edx + 0x14], 0 */
   5180     eax = MEM32(eax + 0x4); /* 0x38009F8B: mov eax, dword ptr [eax + 4] */
   5181     eax = MEM32(eax + 0x4); /* 0x38009F8E: mov eax, dword ptr [eax + 4] */
   5182     goto L_3800A0CB; /* 0x38009F91: jmp 0x3800a0cb */
   5183 L_38009F96:
   5184     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38009F96: cmp eax, dword ptr [ecx + 8] */
   5185     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5187     _flag_k = FK_CMP;
   5188     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FD5; /* 0x38009F99: jne 0x38009fd5 */
   5189 L_38009F9B:
   5190     eax = ecx; /* 0x38009F9B: mov eax, ecx */
   5191     ecx = MEM32(eax + 0x8); /* 0x38009F9D: mov ecx, dword ptr [eax + 8] */
   5192     edx = MEM32(ecx); /* 0x38009FA0: mov edx, dword ptr [ecx] */
   5193     MEM32(eax + 0x8) = edx; /* 0x38009FA2: mov dword ptr [eax + 8], edx */
   5194     edx = MEM32(ecx); /* 0x38009FA5: mov edx, dword ptr [ecx] */
   5195     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38009FA7: cmp edx, dword ptr [esi + 8] */
   5196     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5197     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5198     _flag_k = FK_CMP;
   5199     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FAF; /* 0x38009FAA: je 0x38009faf */
   5200 L_38009FAC:
   5201     MEM32(edx + 0x4) = eax; /* 0x38009FAC: mov dword ptr [edx + 4], eax */
   5202 L_38009FAF:
   5203     edx = MEM32(eax + 0x4); /* 0x38009FAF: mov edx, dword ptr [eax + 4] */
   5204     MEM32(ecx + 0x4) = edx; /* 0x38009FB2: mov dword ptr [ecx + 4], edx */
   5205     edx = MEM32(esi + 0x4); /* 0x38009FB5: mov edx, dword ptr [esi + 4] */
   5206     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38009FB8: cmp eax, dword ptr [edx + 4] */
   5207     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5209     _flag_k = FK_CMP;
   5210     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FC2; /* 0x38009FBB: jne 0x38009fc2 */
   5211 L_38009FBD:
   5212     MEM32(edx + 0x4) = ecx; /* 0x38009FBD: mov dword ptr [edx + 4], ecx */
   5213     goto L_38009FD0; /* 0x38009FC0: jmp 0x38009fd0 */
   5214 L_38009FC2:
   5215     edx = MEM32(eax + 0x4); /* 0x38009FC2: mov edx, dword ptr [eax + 4] */
   5216     /* cmp eax, MEM32(edx) */ /* 0x38009FC5: cmp eax, dword ptr [edx] */
   5217     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5218     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5219     _flag_k = FK_CMP;
   5220     if (CMP_NE(_flag_a, _flag_b)) goto L_38009FCD; /* 0x38009FC7: jne 0x38009fcd */
   5221 L_38009FC9:
   5222     MEM32(edx) = ecx; /* 0x38009FC9: mov dword ptr [edx], ecx */
   5223     goto L_38009FD0; /* 0x38009FCB: jmp 0x38009fd0 */
   5224 L_38009FCD:
   5225     MEM32(edx + 0x8) = ecx; /* 0x38009FCD: mov dword ptr [edx + 8], ecx */
   5226 L_38009FD0:
   5227     MEM32(ecx) = eax; /* 0x38009FD0: mov dword ptr [ecx], eax */
   5228     MEM32(eax + 0x4) = ecx; /* 0x38009FD2: mov dword ptr [eax + 4], ecx */
   5229 L_38009FD5:
   5230     ecx = MEM32(eax + 0x4); /* 0x38009FD5: mov ecx, dword ptr [eax + 4] */
   5231     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38009FD8: mov byte ptr [ecx + 0x14], bl */
   5232     edx = MEM32(eax + 0x4); /* 0x38009FDB: mov edx, dword ptr [eax + 4] */
   5233     ecx = MEM32(edx + 0x4); /* 0x38009FDE: mov ecx, dword ptr [edx + 4] */
   5234     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38009FE1: mov byte ptr [ecx + 0x14], 0 */
   5235     edx = MEM32(eax + 0x4); /* 0x38009FE5: mov edx, dword ptr [eax + 4] */
   5236     ecx = MEM32(edx + 0x4); /* 0x38009FE8: mov ecx, dword ptr [edx + 4] */
   5237     edx = MEM32(ecx); /* 0x38009FEB: mov edx, dword ptr [ecx] */
   5238     edi = MEM32(edx + 0x8); /* 0x38009FED: mov edi, dword ptr [edx + 8] */
   5239     MEM32(ecx) = edi; /* 0x38009FF0: mov dword ptr [ecx], edi */
   5240     edi = MEM32(edx + 0x8); /* 0x38009FF2: mov edi, dword ptr [edx + 8] */
   5241     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38009FF5: cmp edi, dword ptr [esi + 8] */
   5242     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5244     _flag_k = FK_CMP;
   5245     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009FFD; /* 0x38009FF8: je 0x38009ffd */
   5246 L_38009FFA:
   5247     MEM32(edi + 0x4) = ecx; /* 0x38009FFA: mov dword ptr [edi + 4], ecx */
   5248 L_38009FFD:
   5249     edi = MEM32(ecx + 0x4); /* 0x38009FFD: mov edi, dword ptr [ecx + 4] */
   5250     MEM32(edx + 0x4) = edi; /* 0x3800A000: mov dword ptr [edx + 4], edi */
   5251     edi = MEM32(esi + 0x4); /* 0x3800A003: mov edi, dword ptr [esi + 4] */
   5252     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A006: cmp ecx, dword ptr [edi + 4] */
   5253     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5255     _flag_k = FK_CMP;
   5256     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A016; /* 0x3800A009: jne 0x3800a016 */
   5257 L_3800A00B:
   5258     MEM32(edi + 0x4) = edx; /* 0x3800A00B: mov dword ptr [edi + 4], edx */
   5259     MEM32(edx + 0x8) = ecx; /* 0x3800A00E: mov dword ptr [edx + 8], ecx */
   5260     goto L_3800A0C8; /* 0x3800A011: jmp 0x3800a0c8 */
   5261 L_3800A016:
   5262     edi = MEM32(ecx + 0x4); /* 0x3800A016: mov edi, dword ptr [ecx + 4] */
   5263     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3800A019: cmp ecx, dword ptr [edi + 8] */
   5264     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5265     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5266     _flag_k = FK_CMP;
   5267     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A029; /* 0x3800A01C: jne 0x3800a029 */
   5268 L_3800A01E:
   5269     MEM32(edi + 0x8) = edx; /* 0x3800A01E: mov dword ptr [edi + 8], edx */
   5270     MEM32(edx + 0x8) = ecx; /* 0x3800A021: mov dword ptr [edx + 8], ecx */
   5271     goto L_3800A0C8; /* 0x3800A024: jmp 0x3800a0c8 */
   5272 L_3800A029:
   5273     MEM32(edi) = edx; /* 0x3800A029: mov dword ptr [edi], edx */
   5274     MEM32(edx + 0x8) = ecx; /* 0x3800A02B: mov dword ptr [edx + 8], ecx */
   5275     goto L_3800A0C8; /* 0x3800A02E: jmp 0x3800a0c8 */
   5276 L_3800A033:
   5277     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3800A033: cmp byte ptr [edx + 0x14], 0 */
   5278     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5280     _flag_k = FK_NARROW(FK_CMP, 24);
   5281     RECOMP_BACKEDGE();
   5282     if (CMP_EQ(_flag_a, _flag_b)) goto L_38009F7B; /* 0x3800A037: je 0x38009f7b */
   5283 L_3800A03D:
   5284     /* cmp eax, MEM32(ecx) */ /* 0x3800A03D: cmp eax, dword ptr [ecx] */
   5285     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5287     _flag_k = FK_CMP;
   5288     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A07D; /* 0x3800A03F: jne 0x3800a07d */
   5289 L_3800A041:
   5290     eax = ecx; /* 0x3800A041: mov eax, ecx */
   5291     ecx = MEM32(eax); /* 0x3800A043: mov ecx, dword ptr [eax] */
   5292     edx = MEM32(ecx + 0x8); /* 0x3800A045: mov edx, dword ptr [ecx + 8] */
   5293     MEM32(eax) = edx; /* 0x3800A048: mov dword ptr [eax], edx */
   5294     edx = MEM32(ecx + 0x8); /* 0x3800A04A: mov edx, dword ptr [ecx + 8] */
   5295     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3800A04D: cmp edx, dword ptr [esi + 8] */
   5296     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5298     _flag_k = FK_CMP;
   5299     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A055; /* 0x3800A050: je 0x3800a055 */
   5300 L_3800A052:
   5301     MEM32(edx + 0x4) = eax; /* 0x3800A052: mov dword ptr [edx + 4], eax */
   5302 L_3800A055:
   5303     edx = MEM32(eax + 0x4); /* 0x3800A055: mov edx, dword ptr [eax + 4] */
   5304     MEM32(ecx + 0x4) = edx; /* 0x3800A058: mov dword ptr [ecx + 4], edx */
   5305     edx = MEM32(esi + 0x4); /* 0x3800A05B: mov edx, dword ptr [esi + 4] */
   5306     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3800A05E: cmp eax, dword ptr [edx + 4] */
   5307     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5309     _flag_k = FK_CMP;
   5310     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A068; /* 0x3800A061: jne 0x3800a068 */
   5311 L_3800A063:
   5312     MEM32(edx + 0x4) = ecx; /* 0x3800A063: mov dword ptr [edx + 4], ecx */
   5313     goto L_3800A077; /* 0x3800A066: jmp 0x3800a077 */
   5314 L_3800A068:
   5315     edx = MEM32(eax + 0x4); /* 0x3800A068: mov edx, dword ptr [eax + 4] */
   5316     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3800A06B: cmp eax, dword ptr [edx + 8] */
   5317     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5318     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5319     _flag_k = FK_CMP;
   5320     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A075; /* 0x3800A06E: jne 0x3800a075 */
   5321 L_3800A070:
   5322     MEM32(edx + 0x8) = ecx; /* 0x3800A070: mov dword ptr [edx + 8], ecx */
   5323     goto L_3800A077; /* 0x3800A073: jmp 0x3800a077 */
   5324 L_3800A075:
   5325     MEM32(edx) = ecx; /* 0x3800A075: mov dword ptr [edx], ecx */
   5326 L_3800A077:
   5327     MEM32(ecx + 0x8) = eax; /* 0x3800A077: mov dword ptr [ecx + 8], eax */
   5328     MEM32(eax + 0x4) = ecx; /* 0x3800A07A: mov dword ptr [eax + 4], ecx */
   5329 L_3800A07D:
   5330     ecx = MEM32(eax + 0x4); /* 0x3800A07D: mov ecx, dword ptr [eax + 4] */
   5331     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A080: mov byte ptr [ecx + 0x14], bl */
   5332     edx = MEM32(eax + 0x4); /* 0x3800A083: mov edx, dword ptr [eax + 4] */
   5333     ecx = MEM32(edx + 0x4); /* 0x3800A086: mov ecx, dword ptr [edx + 4] */
   5334     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3800A089: mov byte ptr [ecx + 0x14], 0 */
   5335     edx = MEM32(eax + 0x4); /* 0x3800A08D: mov edx, dword ptr [eax + 4] */
   5336     ecx = MEM32(edx + 0x4); /* 0x3800A090: mov ecx, dword ptr [edx + 4] */
   5337     edx = MEM32(ecx + 0x8); /* 0x3800A093: mov edx, dword ptr [ecx + 8] */
   5338     edi = MEM32(edx); /* 0x3800A096: mov edi, dword ptr [edx] */
   5339     MEM32(ecx + 0x8) = edi; /* 0x3800A098: mov dword ptr [ecx + 8], edi */
   5340     edi = MEM32(edx); /* 0x3800A09B: mov edi, dword ptr [edx] */
   5341     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3800A09D: cmp edi, dword ptr [esi + 8] */
   5342     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5344     _flag_k = FK_CMP;
   5345     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A0A5; /* 0x3800A0A0: je 0x3800a0a5 */
   5346 L_3800A0A2:
   5347     MEM32(edi + 0x4) = ecx; /* 0x3800A0A2: mov dword ptr [edi + 4], ecx */
   5348 L_3800A0A5:
   5349     edi = MEM32(ecx + 0x4); /* 0x3800A0A5: mov edi, dword ptr [ecx + 4] */
   5350     MEM32(edx + 0x4) = edi; /* 0x3800A0A8: mov dword ptr [edx + 4], edi */
   5351     edi = MEM32(esi + 0x4); /* 0x3800A0AB: mov edi, dword ptr [esi + 4] */
   5352     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3800A0AE: cmp ecx, dword ptr [edi + 4] */
   5353     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5355     _flag_k = FK_CMP;
   5356     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0B8; /* 0x3800A0B1: jne 0x3800a0b8 */
   5357 L_3800A0B3:
   5358     MEM32(edi + 0x4) = edx; /* 0x3800A0B3: mov dword ptr [edi + 4], edx */
   5359     goto L_3800A0C6; /* 0x3800A0B6: jmp 0x3800a0c6 */
   5360 L_3800A0B8:
   5361     edi = MEM32(ecx + 0x4); /* 0x3800A0B8: mov edi, dword ptr [ecx + 4] */
   5362     /* cmp ecx, MEM32(edi) */ /* 0x3800A0BB: cmp ecx, dword ptr [edi] */
   5363     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5365     _flag_k = FK_CMP;
   5366     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A0C3; /* 0x3800A0BD: jne 0x3800a0c3 */
   5367 L_3800A0BF:
   5368     MEM32(edi) = edx; /* 0x3800A0BF: mov dword ptr [edi], edx */
   5369     goto L_3800A0C6; /* 0x3800A0C1: jmp 0x3800a0c6 */
   5370 L_3800A0C3:
   5371     MEM32(edi + 0x8) = edx; /* 0x3800A0C3: mov dword ptr [edi + 8], edx */
   5372 L_3800A0C6:
   5373     MEM32(edx) = ecx; /* 0x3800A0C6: mov dword ptr [edx], ecx */
   5374 L_3800A0C8:
   5375     MEM32(ecx + 0x4) = edx; /* 0x3800A0C8: mov dword ptr [ecx + 4], edx */
   5376 L_3800A0CB:
   5377     ecx = MEM32(esi + 0x4); /* 0x3800A0CB: mov ecx, dword ptr [esi + 4] */
   5378     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3800A0CE: cmp eax, dword ptr [ecx + 4] */
   5379     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5380     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5381     _flag_k = FK_CMP;
   5382     RECOMP_BACKEDGE();
   5383     if (CMP_NE(_flag_a, _flag_b)) goto L_38009F57; /* 0x3800A0D1: jne 0x38009f57 */
   5384 L_3800A0D7:
   5385     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   5386     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   5387     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   5388     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   5389     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   5390     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   5391     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   5392     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   5393     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   5394     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   5395     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   5396     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   5397     RECOMP_REGS_OUT();
   5398 }
   5399 
   5400 void sub_3800A0D7(void) {
   5401     int _fpu_cmp = 0;
   5402     uint32_t _cf = 0;
   5403     int _df = 1;
   5404     uint32_t _flag_k = FK_NONE;
   5405     uint32_t _flag_a = 0, _flag_b = 0;
   5406     uint32_t _itail_tgt = 0;
   5407     RECOMP_REGS_LOCALS
   5408     RECOMP_ENTER(0x3800A0D7u);
   5409 
   5410 L_3800A0D7:
   5411     edx = MEM32(esi + 0x4); /* 0x3800A0D7: mov edx, dword ptr [esi + 4] */
   5412     eax = MEM32(edx + 0x4); /* 0x3800A0DA: mov eax, dword ptr [edx + 4] */
   5413     ecx = MEM32(ebp + (-0x4)); /* 0x3800A0DD: mov ecx, dword ptr [ebp - 4] */
   5414     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3800A0E0: mov byte ptr [eax + 0x14], bl */
   5415     eax = MEM32(ebp + 0x8); /* 0x3800A0E3: mov eax, dword ptr [ebp + 8] */
   5416     edi = POP32_VAL(esp); /* 0x3800A0E6: pop edi */
   5417     esi = POP32_VAL(esp); /* 0x3800A0E7: pop esi */
   5418     MEM32(eax) = ecx; /* 0x3800A0E8: mov dword ptr [eax], ecx */
   5419     ebx = POP32_VAL(esp); /* 0x3800A0EA: pop ebx */
   5420     esp = ebp; /* 0x3800A0EB: mov esp, ebp */
   5421     ebp = POP32_VAL(esp); /* 0x3800A0ED: pop ebp */
   5422     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800A0EE: ret 0x10 */
   5423     RECOMP_REGS_OUT();
   5424 }
   5425 
   5426 void sub_3800A100(void) {
   5427     int _fpu_cmp = 0;
   5428     uint32_t _cf = 0;
   5429     int _df = 1;
   5430     uint32_t _flag_k = FK_NONE;
   5431     uint32_t _flag_a = 0, _flag_b = 0;
   5432     uint32_t _itail_tgt = 0;
   5433     RECOMP_REGS_LOCALS
   5434     RECOMP_ENTER(0x3800A100u);
   5435 
   5436 L_3800A100:
   5437     PUSH32(esp, ebp); /* 0x3800A100: push ebp */
   5438     ebp = esp; /* 0x3800A101: mov ebp, esp */
   5439     ecx = MEM32(ebp + 0x8); /* 0x3800A103: mov ecx, dword ptr [ebp + 8] */
   5440     edx = MEM32(ebp + 0xC); /* 0x3800A106: mov edx, dword ptr [ebp + 0xc] */
   5441     /* cmp ecx, edx */ /* 0x3800A109: cmp ecx, edx */
   5442     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5444     _flag_k = FK_CMP;
   5445     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A128; /* 0x3800A10B: je 0x3800a128 */
   5446 L_3800A10D:
   5447     eax = MEM32(ebp + 0x10); /* 0x3800A10D: mov eax, dword ptr [ebp + 0x10] */
   5448     PUSH32(esp, esi); /* 0x3800A110: push esi */
   5449 L_3800A111:
   5450     /* test eax, eax */ /* 0x3800A111: test eax, eax */
   5451     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5452     _cf = 0;
   5453     _flag_k = FK_TEST;
   5454     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A119; /* 0x3800A113: je 0x3800a119 */
   5455 L_3800A115:
   5456     esi = MEM32(ecx); /* 0x3800A115: mov esi, dword ptr [ecx] */
   5457     MEM32(eax) = esi; /* 0x3800A117: mov dword ptr [eax], esi */
   5458 L_3800A119:
   5459     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   5460     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5461     ecx = ecx + 4; /* 0x3800A119: add ecx, 4 */
   5462     _flag_k = FK_ADD;
   5463     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   5464     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5465     eax = eax + 4; /* 0x3800A11C: add eax, 4 */
   5466     _flag_k = FK_ADD;
   5467     /* cmp ecx, edx */ /* 0x3800A11F: cmp ecx, edx */
   5468     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5470     _flag_k = FK_CMP;
   5471     RECOMP_BACKEDGE();
   5472     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A111; /* 0x3800A121: jne 0x3800a111 */
   5473 L_3800A123:
   5474     esi = POP32_VAL(esp); /* 0x3800A123: pop esi */
   5475     ebp = POP32_VAL(esp); /* 0x3800A124: pop ebp */
   5476     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3800A125: ret 0xc */
   5477 L_3800A128:
   5478     eax = MEM32(ebp + 0x10); /* 0x3800A128: mov eax, dword ptr [ebp + 0x10] */
   5479     ebp = POP32_VAL(esp); /* 0x3800A12B: pop ebp */
   5480     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3800A12C: ret 0xc */
   5481     RECOMP_REGS_OUT();
   5482 }
   5483 
   5484 void sub_3800A130(void) {
   5485     int _fpu_cmp = 0;
   5486     uint32_t _cf = 0;
   5487     int _df = 1;
   5488     uint32_t _flag_k = FK_NONE;
   5489     uint32_t _flag_a = 0, _flag_b = 0;
   5490     uint32_t _itail_tgt = 0;
   5491     RECOMP_REGS_LOCALS
   5492     RECOMP_ENTER(0x3800A130u);
   5493 
   5494 L_3800A130:
   5495     PUSH32(esp, ebp); /* 0x3800A130: push ebp */
   5496     ebp = esp; /* 0x3800A131: mov ebp, esp */
   5497     edx = MEM32(ebp + 0x8); /* 0x3800A133: mov edx, dword ptr [ebp + 8] */
   5498     eax = MEM32(edx); /* 0x3800A136: mov eax, dword ptr [edx] */
   5499     PUSH32(esp, esi); /* 0x3800A138: push esi */
   5500     esi = MEM32(ebp + 0xC); /* 0x3800A139: mov esi, dword ptr [ebp + 0xc] */
   5501     ecx = MEM32(esi); /* 0x3800A13C: mov ecx, dword ptr [esi] */
   5502     /* cmp ecx, eax */ /* 0x3800A13E: cmp ecx, eax */
   5503     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5504     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5505     _flag_k = FK_CMP;
   5506     if (CMP_G(_flag_a, _flag_b)) goto L_3800A151; /* 0x3800A140: jg 0x3800a151 */
   5507 L_3800A142:
   5508     if (CMP_L(_flag_a, _flag_b)) goto L_3800A14C; /* 0x3800A142: jl 0x3800a14c */
   5509 L_3800A144:
   5510     eax = MEM32(edx + 0x4); /* 0x3800A144: mov eax, dword ptr [edx + 4] */
   5511     /* cmp eax, MEM32(esi + 0x4) */ /* 0x3800A147: cmp eax, dword ptr [esi + 4] */
   5512     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5514     _flag_k = FK_CMP;
   5515     if (CMP_L(_flag_a, _flag_b)) goto L_3800A151; /* 0x3800A14A: jl 0x3800a151 */
   5516 L_3800A14C:
   5517     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5518     eax = 0; /* 0x3800A14C: xor eax, eax */
   5519     _cf = 0;
   5520     _flag_k = FK_TEST;
   5521     esi = POP32_VAL(esp); /* 0x3800A14E: pop esi */
   5522     ebp = POP32_VAL(esp); /* 0x3800A14F: pop ebp */
   5523     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A150: ret  */
   5524 L_3800A151:
   5525     eax = 1; /* 0x3800A151: mov eax, 1 */
   5526     esi = POP32_VAL(esp); /* 0x3800A156: pop esi */
   5527     ebp = POP32_VAL(esp); /* 0x3800A157: pop ebp */
   5528     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A158: ret  */
   5529     RECOMP_REGS_OUT();
   5530 }
   5531 
   5532 void sub_3800A160(void) {
   5533     int _fpu_cmp = 0;
   5534     uint32_t _cf = 0;
   5535     int _df = 1;
   5536     uint32_t _flag_k = FK_NONE;
   5537     uint32_t _flag_a = 0, _flag_b = 0;
   5538     uint32_t _itail_tgt = 0;
   5539     RECOMP_REGS_LOCALS
   5540     RECOMP_ENTER(0x3800A160u);
   5541 
   5542 L_3800A160:
   5543     PUSH32(esp, ebp); /* 0x3800A160: push ebp */
   5544     ebp = esp; /* 0x3800A161: mov ebp, esp */
   5545     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   5546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5547     esp = esp - 0x24u; /* 0x3800A163: sub esp, 0x24 */
   5548     _flag_k = FK_CMP;
   5549     PUSH32(esp, ebx); /* 0x3800A166: push ebx */
   5550     ebx = MEM32(ebp + 0xC); /* 0x3800A167: mov ebx, dword ptr [ebp + 0xc] */
   5551     PUSH32(esp, esi); /* 0x3800A16A: push esi */
   5552     PUSH32(esp, edi); /* 0x3800A16B: push edi */
   5553     edi = MEM32(ebp + 0x8); /* 0x3800A16C: mov edi, dword ptr [ebp + 8] */
   5554     ecx = ebx; /* 0x3800A16F: mov ecx, ebx */
   5555     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   5556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5557     ecx = ecx - edi; /* 0x3800A171: sub ecx, edi */
   5558     _flag_k = FK_CMP;
   5559     eax = 0x2AAAAAABu; /* 0x3800A173: mov eax, 0x2aaaaaab */
   5560     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3800A178: imul ecx */
   5561       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5562       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5563     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3800A17A: sar edx, 1 */
   5564     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5565     edx = (uint32_t)((int32_t)edx >> 1u);
   5566     eax = edx; /* 0x3800A17C: mov eax, edx */
   5567     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3800A17E: shr eax, 0x1f */
   5568     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5569     eax = eax >> 31u; /* 0x3800A17E: shr eax, 0x1f */
   5570     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5571     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5572     edx = edx + eax; /* 0x3800A181: add edx, eax */
   5573     _flag_k = FK_ADD;
   5574     /* cmp edx, 0x10u */ /* 0x3800A183: cmp edx, 0x10 */
   5575     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   5576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5577     _flag_k = FK_CMP;
   5578     if (CMP_G(_flag_a, _flag_b)) goto L_3800A257; /* 0x3800A186: jg 0x3800a257 */
   5579 L_3800A18C:
   5580     /* cmp edi, ebx */ /* 0x3800A18C: cmp edi, ebx */
   5581     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5583     _flag_k = FK_CMP;
   5584     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A4BF; /* 0x3800A18E: je 0x3800a4bf */
   5585 L_3800A194:
   5586     ecx = edi + 0xC; /* 0x3800A194: lea ecx, [edi + 0xc] */
   5587     /* cmp ecx, ebx */ /* 0x3800A197: cmp ecx, ebx */
   5588     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   5589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5590     _flag_k = FK_CMP;
   5591     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A4BF; /* 0x3800A199: je 0x3800a4bf */
   5592 L_3800A19F:
   5593     edx = ecx; /* 0x3800A19F: mov edx, ecx */
   5594     eax = MEM32(edx); /* 0x3800A1A1: mov eax, dword ptr [edx] */
   5595     MEM32(ebp + (-0x18)) = eax; /* 0x3800A1A3: mov dword ptr [ebp - 0x18], eax */
   5596     eax = MEM32(edx + 0x4); /* 0x3800A1A6: mov eax, dword ptr [edx + 4] */
   5597     edx = MEM32(edx + 0x8); /* 0x3800A1A9: mov edx, dword ptr [edx + 8] */
   5598     MEM32(ebp + (-0x10)) = edx; /* 0x3800A1AC: mov dword ptr [ebp - 0x10], edx */
   5599     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800A1AF: fld dword ptr [ebp - 0x10] */
   5600     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x8)); /* 0x3800A1B2: fcomp dword ptr [edi + 8] */
   5601     fp_pop();
   5602     MEM32(ebp + (-0x14)) = eax; /* 0x3800A1B5: mov dword ptr [ebp - 0x14], eax */
   5603     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A1B8: fnstsw ax */
   5604     /* test HI8(eax), 1 */ /* 0x3800A1BA: test ah, 1 */
   5605     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5606     _cf = 0;
   5607     _flag_k = FK_NARROW(FK_TEST, 24);
   5608     eax = ecx; /* 0x3800A1BD: mov eax, ecx */
   5609     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A20F; /* 0x3800A1BF: jne 0x3800a20f */
   5610 L_3800A1C1:
   5611     edx = MEM32(eax); /* 0x3800A1C1: mov edx, dword ptr [eax] */
   5612     MEM32(ebp + (-0x24)) = edx; /* 0x3800A1C3: mov dword ptr [ebp - 0x24], edx */
   5613     edx = MEM32(eax + 0x4); /* 0x3800A1C6: mov edx, dword ptr [eax + 4] */
   5614     eax = MEM32(eax + 0x8); /* 0x3800A1C9: mov eax, dword ptr [eax + 8] */
   5615     MEM32(ebp + (-0x20)) = edx; /* 0x3800A1CC: mov dword ptr [ebp - 0x20], edx */
   5616     MEM32(ebp + (-0x1C)) = eax; /* 0x3800A1CF: mov dword ptr [ebp - 0x1c], eax */
   5617     edx = ecx; /* 0x3800A1D2: mov edx, ecx */
   5618     esi = ecx; /* 0x3800A1D4: mov esi, ecx */
   5619 L_3800A1D6:
   5620     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3800A1D6: fld dword ptr [ebp - 0x1c] */
   5621     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   5622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5623     esi = esi - 0xCu; /* 0x3800A1D9: sub esi, 0xc */
   5624     _flag_k = FK_CMP;
   5625     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x8)); /* 0x3800A1DC: fcomp dword ptr [esi + 8] */
   5626     fp_pop();
   5627     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A1DF: fnstsw ax */
   5628     /* test HI8(eax), 1 */ /* 0x3800A1E1: test ah, 1 */
   5629     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5630     _cf = 0;
   5631     _flag_k = FK_NARROW(FK_TEST, 24);
   5632     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A1FC; /* 0x3800A1E4: je 0x3800a1fc */
   5633 L_3800A1E6:
   5634     eax = esi; /* 0x3800A1E6: mov eax, esi */
   5635     ebx = MEM32(eax); /* 0x3800A1E8: mov ebx, dword ptr [eax] */
   5636     MEM32(edx) = ebx; /* 0x3800A1EA: mov dword ptr [edx], ebx */
   5637     ebx = MEM32(eax + 0x4); /* 0x3800A1EC: mov ebx, dword ptr [eax + 4] */
   5638     MEM32(edx + 0x4) = ebx; /* 0x3800A1EF: mov dword ptr [edx + 4], ebx */
   5639     eax = MEM32(eax + 0x8); /* 0x3800A1F2: mov eax, dword ptr [eax + 8] */
   5640     MEM32(edx + 0x8) = eax; /* 0x3800A1F5: mov dword ptr [edx + 8], eax */
   5641     edx = esi; /* 0x3800A1F8: mov edx, esi */
   5642     RECOMP_BACKEDGE();
   5643     goto L_3800A1D6; /* 0x3800A1FA: jmp 0x3800a1d6 */
   5644 L_3800A1FC:
   5645     eax = MEM32(ebp + (-0x24)); /* 0x3800A1FC: mov eax, dword ptr [ebp - 0x24] */
   5646     MEM32(edx) = eax; /* 0x3800A1FF: mov dword ptr [edx], eax */
   5647     eax = MEM32(ebp + (-0x20)); /* 0x3800A201: mov eax, dword ptr [ebp - 0x20] */
   5648     MEM32(edx + 0x4) = eax; /* 0x3800A204: mov dword ptr [edx + 4], eax */
   5649     eax = MEM32(ebp + (-0x1C)); /* 0x3800A207: mov eax, dword ptr [ebp - 0x1c] */
   5650     MEM32(edx + 0x8) = eax; /* 0x3800A20A: mov dword ptr [edx + 8], eax */
   5651     goto L_3800A242; /* 0x3800A20D: jmp 0x3800a242 */
   5652 L_3800A20F:
   5653     /* cmp edi, ecx */ /* 0x3800A20F: cmp edi, ecx */
   5654     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   5655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5656     _flag_k = FK_CMP;
   5657     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A22F; /* 0x3800A211: je 0x3800a22f */
   5658 L_3800A213:
   5659     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   5660     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5661     eax = eax - 0xCu; /* 0x3800A213: sub eax, 0xc */
   5662     _flag_k = FK_CMP;
   5663     /* cmp eax, edi */ /* 0x3800A216: cmp eax, edi */
   5664     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5666     _flag_k = FK_CMP;
   5667     esi = eax; /* 0x3800A218: mov esi, eax */
   5668     ebx = MEM32(esi); /* 0x3800A21A: mov ebx, dword ptr [esi] */
   5669     edx = eax + 0xC; /* 0x3800A21C: lea edx, [eax + 0xc] */
   5670     MEM32(edx) = ebx; /* 0x3800A21F: mov dword ptr [edx], ebx */
   5671     ebx = MEM32(esi + 0x4); /* 0x3800A221: mov ebx, dword ptr [esi + 4] */
   5672     MEM32(edx + 0x4) = ebx; /* 0x3800A224: mov dword ptr [edx + 4], ebx */
   5673     esi = MEM32(esi + 0x8); /* 0x3800A227: mov esi, dword ptr [esi + 8] */
   5674     MEM32(edx + 0x8) = esi; /* 0x3800A22A: mov dword ptr [edx + 8], esi */
   5675     RECOMP_BACKEDGE();
   5676     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A213; /* 0x3800A22D: jne 0x3800a213 */
   5677 L_3800A22F:
   5678     edx = MEM32(ebp + (-0x18)); /* 0x3800A22F: mov edx, dword ptr [ebp - 0x18] */
   5679     eax = edi; /* 0x3800A232: mov eax, edi */
   5680     MEM32(eax) = edx; /* 0x3800A234: mov dword ptr [eax], edx */
   5681     edx = MEM32(ebp + (-0x14)); /* 0x3800A236: mov edx, dword ptr [ebp - 0x14] */
   5682     MEM32(eax + 0x4) = edx; /* 0x3800A239: mov dword ptr [eax + 4], edx */
   5683     edx = MEM32(ebp + (-0x10)); /* 0x3800A23C: mov edx, dword ptr [ebp - 0x10] */
   5684     MEM32(eax + 0x8) = edx; /* 0x3800A23F: mov dword ptr [eax + 8], edx */
   5685 L_3800A242:
   5686     eax = MEM32(ebp + 0xC); /* 0x3800A242: mov eax, dword ptr [ebp + 0xc] */
   5687     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   5688     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5689     ecx = ecx + 0xCu; /* 0x3800A245: add ecx, 0xc */
   5690     _flag_k = FK_ADD;
   5691     /* cmp ecx, eax */ /* 0x3800A248: cmp ecx, eax */
   5692     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5694     _flag_k = FK_CMP;
   5695     RECOMP_BACKEDGE();
   5696     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A19F; /* 0x3800A24A: jne 0x3800a19f */
   5697 L_3800A250:
   5698     edi = POP32_VAL(esp); /* 0x3800A250: pop edi */
   5699     esi = POP32_VAL(esp); /* 0x3800A251: pop esi */
   5700     ebx = POP32_VAL(esp); /* 0x3800A252: pop ebx */
   5701     esp = ebp; /* 0x3800A253: mov esp, ebp */
   5702     ebp = POP32_VAL(esp); /* 0x3800A255: pop ebp */
   5703     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A256: ret  */
   5704 L_3800A257:
   5705     eax = edi; /* 0x3800A257: mov eax, edi */
   5706     ecx = MEM32(eax); /* 0x3800A259: mov ecx, dword ptr [eax] */
   5707     edx = MEM32(eax + 0x4); /* 0x3800A25B: mov edx, dword ptr [eax + 4] */
   5708     eax = MEM32(eax + 0x8); /* 0x3800A25E: mov eax, dword ptr [eax + 8] */
   5709     MEM32(ebp + (-0x10)) = eax; /* 0x3800A261: mov dword ptr [ebp - 0x10], eax */
   5710     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800A264: fld dword ptr [ebp - 0x10] */
   5711     MEM32(ebp + (-0x18)) = ecx; /* 0x3800A267: mov dword ptr [ebp - 0x18], ecx */
   5712     MEM32(ebp + (-0x14)) = edx; /* 0x3800A26A: mov dword ptr [ebp - 0x14], edx */
   5713     ecx = ebx; /* 0x3800A26D: mov ecx, ebx */
   5714     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   5715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5716     ecx = ecx - edi; /* 0x3800A26F: sub ecx, edi */
   5717     _flag_k = FK_CMP;
   5718     eax = 0x2AAAAAABu; /* 0x3800A271: mov eax, 0x2aaaaaab */
   5719     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3800A276: imul ecx */
   5720       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5721       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5722     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3800A278: sar edx, 1 */
   5723     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5724     edx = (uint32_t)((int32_t)edx >> 1u);
   5725     ecx = edx; /* 0x3800A27A: mov ecx, edx */
   5726     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3800A27C: shr ecx, 0x1f */
   5727     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5728     ecx = ecx >> 31u; /* 0x3800A27C: shr ecx, 0x1f */
   5729     eax = edx; /* 0x3800A27F: mov eax, edx */
   5730     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5732     eax = eax + ecx; /* 0x3800A281: add eax, ecx */
   5733     _flag_k = FK_ADD;
   5734     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3800A283: cdq  */
   5735     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5737     eax = eax - edx; /* 0x3800A284: sub eax, edx */
   5738     _flag_k = FK_CMP;
   5739     if (1u) _cf = (((eax) >> 0) & 1u); /* 0x3800A286: sar eax, 1 */
   5740     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5741     eax = (uint32_t)((int32_t)eax >> 1u);
   5742     edx = eax + eax * 2; /* 0x3800A288: lea edx, [eax + eax*2] */
   5743     eax = edi + edx * 4; /* 0x3800A28B: lea eax, [edi + edx*4] */
   5744     ecx = MEM32(eax); /* 0x3800A28E: mov ecx, dword ptr [eax] */
   5745     edx = MEM32(eax + 0x4); /* 0x3800A290: mov edx, dword ptr [eax + 4] */
   5746     eax = MEM32(eax + 0x8); /* 0x3800A293: mov eax, dword ptr [eax + 8] */
   5747     MEM32(ebp + (-0x24)) = ecx; /* 0x3800A296: mov dword ptr [ebp - 0x24], ecx */
   5748     MEM32(ebp + (-0x1C)) = eax; /* 0x3800A299: mov dword ptr [ebp - 0x1c], eax */
   5749     ecx = ebx + (-0xC); /* 0x3800A29C: lea ecx, [ebx - 0xc] */
   5750     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x1C))); /* 0x3800A29F: fcomp dword ptr [ebp - 0x1c] */
   5751     fp_pop();
   5752     MEM32(ebp + (-0x20)) = edx; /* 0x3800A2A2: mov dword ptr [ebp - 0x20], edx */
   5753     edx = MEM32(ecx); /* 0x3800A2A5: mov edx, dword ptr [ecx] */
   5754     eax = MEM32(ecx + 0x4); /* 0x3800A2A7: mov eax, dword ptr [ecx + 4] */
   5755     ecx = MEM32(ecx + 0x8); /* 0x3800A2AA: mov ecx, dword ptr [ecx + 8] */
   5756     MEM32(ebp + (-0x8)) = eax; /* 0x3800A2AD: mov dword ptr [ebp - 8], eax */
   5757     MEM32(ebp + (-0xC)) = edx; /* 0x3800A2B0: mov dword ptr [ebp - 0xc], edx */
   5758     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A2B3: fnstsw ax */
   5759     /* test HI8(eax), 1 */ /* 0x3800A2B5: test ah, 1 */
   5760     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5761     _cf = 0;
   5762     _flag_k = FK_NARROW(FK_TEST, 24);
   5763     MEM32(ebp + (-0x4)) = ecx; /* 0x3800A2B8: mov dword ptr [ebp - 4], ecx */
   5764     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A2DF; /* 0x3800A2BB: je 0x3800a2df */
   5765 L_3800A2BD:
   5766     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3800A2BD: fld dword ptr [ebp - 0x1c] */
   5767     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3800A2C0: fcomp dword ptr [ebp - 4] */
   5768     fp_pop();
   5769     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A2C3: fnstsw ax */
   5770     /* test HI8(eax), 1 */ /* 0x3800A2C5: test ah, 1 */
   5771     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5772     _cf = 0;
   5773     _flag_k = FK_NARROW(FK_TEST, 24);
   5774     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A301; /* 0x3800A2C8: jne 0x3800a301 */
   5775 L_3800A2CA:
   5776     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800A2CA: fld dword ptr [ebp - 0x10] */
   5777     edx = ebp + (-0xC); /* 0x3800A2CD: lea edx, [ebp - 0xc] */
   5778     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3800A2D0: fcomp dword ptr [ebp - 4] */
   5779     fp_pop();
   5780     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A2D3: fnstsw ax */
   5781     /* test HI8(eax), 1 */ /* 0x3800A2D5: test ah, 1 */
   5782     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5783     _cf = 0;
   5784     _flag_k = FK_NARROW(FK_TEST, 24);
   5785     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A304; /* 0x3800A2D8: jne 0x3800a304 */
   5786 L_3800A2DA:
   5787     edx = ebp + (-0x18); /* 0x3800A2DA: lea edx, [ebp - 0x18] */
   5788     goto L_3800A304; /* 0x3800A2DD: jmp 0x3800a304 */
   5789 L_3800A2DF:
   5790     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800A2DF: fld dword ptr [ebp - 0x10] */
   5791     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3800A2E2: fcomp dword ptr [ebp - 4] */
   5792     fp_pop();
   5793     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A2E5: fnstsw ax */
   5794     /* test HI8(eax), 1 */ /* 0x3800A2E7: test ah, 1 */
   5795     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5796     _cf = 0;
   5797     _flag_k = FK_NARROW(FK_TEST, 24);
   5798     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A2F1; /* 0x3800A2EA: je 0x3800a2f1 */
   5799 L_3800A2EC:
   5800     edx = ebp + (-0x18); /* 0x3800A2EC: lea edx, [ebp - 0x18] */
   5801     goto L_3800A304; /* 0x3800A2EF: jmp 0x3800a304 */
   5802 L_3800A2F1:
   5803     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3800A2F1: fld dword ptr [ebp - 0x1c] */
   5804     edx = ebp + (-0xC); /* 0x3800A2F4: lea edx, [ebp - 0xc] */
   5805     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3800A2F7: fcomp dword ptr [ebp - 4] */
   5806     fp_pop();
   5807     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A2FA: fnstsw ax */
   5808     /* test HI8(eax), 1 */ /* 0x3800A2FC: test ah, 1 */
   5809     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5810     _cf = 0;
   5811     _flag_k = FK_NARROW(FK_TEST, 24);
   5812     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A304; /* 0x3800A2FF: jne 0x3800a304 */
   5813 L_3800A301:
   5814     edx = ebp + (-0x24); /* 0x3800A301: lea edx, [ebp - 0x24] */
   5815 L_3800A304:
   5816     esi = MEM32(ebp + 0x10); /* 0x3800A304: mov esi, dword ptr [ebp + 0x10] */
   5817     eax = MEM32(edx); /* 0x3800A307: mov eax, dword ptr [edx] */
   5818     ecx = MEM32(edx + 0x4); /* 0x3800A309: mov ecx, dword ptr [edx + 4] */
   5819     edx = MEM32(edx + 0x8); /* 0x3800A30C: mov edx, dword ptr [edx + 8] */
   5820     PUSH32(esp, esi); /* 0x3800A30F: push esi */
   5821     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5823     esp = esp - 0xCu; /* 0x3800A310: sub esp, 0xc */
   5824     _flag_k = FK_CMP;
   5825     esi = esp; /* 0x3800A313: mov esi, esp */
   5826     MEM32(esi) = eax; /* 0x3800A315: mov dword ptr [esi], eax */
   5827     MEM32(esi + 0x4) = ecx; /* 0x3800A317: mov dword ptr [esi + 4], ecx */
   5828     PUSH32(esp, ebx); /* 0x3800A31A: push ebx */
   5829     PUSH32(esp, edi); /* 0x3800A31B: push edi */
   5830     MEM32(esi + 0x8) = edx; /* 0x3800A31C: mov dword ptr [esi + 8], edx */
   5831     RECOMP_ICALL(0x3800A6C0u); /* 0x3800A31F: call 0x3800a6c0 */ /* not lifted */
   5832     RECOMP_FLAGS_IN();
   5833     esi = eax; /* 0x3800A324: mov esi, eax */
   5834     ecx = ebx; /* 0x3800A326: mov ecx, ebx */
   5835     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   5836     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5837     ecx = ecx - esi; /* 0x3800A328: sub ecx, esi */
   5838     _flag_k = FK_CMP;
   5839     eax = 0x2AAAAAABu; /* 0x3800A32A: mov eax, 0x2aaaaaab */
   5840     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3800A32F: imul ecx */
   5841       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5842       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5843     ecx = edx; /* 0x3800A331: mov ecx, edx */
   5844     if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x3800A333: sar ecx, 1 */
   5845     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5846     ecx = (uint32_t)((int32_t)ecx >> 1u);
   5847     edx = ecx; /* 0x3800A335: mov edx, ecx */
   5848     if (31u) _cf = (((edx) >> 30) & 1u); /* 0x3800A337: shr edx, 0x1f */
   5849     if (31u) { _flag_a = recomp_flags_pack((edx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5850     edx = edx >> 31u; /* 0x3800A337: shr edx, 0x1f */
   5851     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5852     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5853     ecx = ecx + edx; /* 0x3800A33A: add ecx, edx */
   5854     _flag_k = FK_ADD;
   5855     edx = esi; /* 0x3800A33C: mov edx, esi */
   5856     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   5857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5858     edx = edx - edi; /* 0x3800A33E: sub edx, edi */
   5859     _flag_k = FK_CMP;
   5860     eax = 0x2AAAAAABu; /* 0x3800A340: mov eax, 0x2aaaaaab */
   5861     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3800A345: imul edx */
   5862       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5863       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5864     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3800A347: sar edx, 1 */
   5865     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5866     edx = (uint32_t)((int32_t)edx >> 1u);
   5867     eax = edx; /* 0x3800A349: mov eax, edx */
   5868     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3800A34B: shr eax, 0x1f */
   5869     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5870     eax = eax >> 31u; /* 0x3800A34B: shr eax, 0x1f */
   5871     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   5872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5873     esp = esp + 0x18u; /* 0x3800A34E: add esp, 0x18 */
   5874     _flag_k = FK_ADD;
   5875     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5876     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5877     edx = edx + eax; /* 0x3800A351: add edx, eax */
   5878     _flag_k = FK_ADD;
   5879     /* cmp ecx, edx */ /* 0x3800A353: cmp ecx, edx */
   5880     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5882     _flag_k = FK_CMP;
   5883     PUSH32(esp, 0); /* 0x3800A355: push 0 */
   5884     if (CMP_G(_flag_a, _flag_b)) goto L_3800A36B; /* 0x3800A357: jg 0x3800a36b */
   5885 L_3800A359:
   5886     ecx = MEM32(ebp + 0x10); /* 0x3800A359: mov ecx, dword ptr [ebp + 0x10] */
   5887     PUSH32(esp, ecx); /* 0x3800A35C: push ecx */
   5888     PUSH32(esp, ebx); /* 0x3800A35D: push ebx */
   5889     PUSH32(esp, esi); /* 0x3800A35E: push esi */
   5890     RECOMP_ICALL(0x3800A4E0u); /* 0x3800A35F: call 0x3800a4e0 */ /* not lifted */
   5891     RECOMP_FLAGS_IN();
   5892     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5893     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5894     esp = esp + 0x10u; /* 0x3800A364: add esp, 0x10 */
   5895     _flag_k = FK_ADD;
   5896     ebx = esi; /* 0x3800A367: mov ebx, esi */
   5897     goto L_3800A37B; /* 0x3800A369: jmp 0x3800a37b */
   5898 L_3800A36B:
   5899     edx = MEM32(ebp + 0x10); /* 0x3800A36B: mov edx, dword ptr [ebp + 0x10] */
   5900     PUSH32(esp, edx); /* 0x3800A36E: push edx */
   5901     PUSH32(esp, esi); /* 0x3800A36F: push esi */
   5902     PUSH32(esp, edi); /* 0x3800A370: push edi */
   5903     RECOMP_ICALL(0x3800A4E0u); /* 0x3800A371: call 0x3800a4e0 */ /* not lifted */
   5904     RECOMP_FLAGS_IN();
   5905     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5906     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5907     esp = esp + 0x10u; /* 0x3800A376: add esp, 0x10 */
   5908     _flag_k = FK_ADD;
   5909     edi = esi; /* 0x3800A379: mov edi, esi */
   5910 L_3800A37B:
   5911     ecx = ebx; /* 0x3800A37B: mov ecx, ebx */
   5912     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   5913     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5914     ecx = ecx - edi; /* 0x3800A37D: sub ecx, edi */
   5915     _flag_k = FK_CMP;
   5916     eax = 0x2AAAAAABu; /* 0x3800A37F: mov eax, 0x2aaaaaab */
   5917     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3800A384: imul ecx */
   5918       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5919       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5920     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3800A386: sar edx, 1 */
   5921     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5922     edx = (uint32_t)((int32_t)edx >> 1u);
   5923     eax = edx; /* 0x3800A388: mov eax, edx */
   5924     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3800A38A: shr eax, 0x1f */
   5925     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5926     eax = eax >> 31u; /* 0x3800A38A: shr eax, 0x1f */
   5927     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5928     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5929     edx = edx + eax; /* 0x3800A38D: add edx, eax */
   5930     _flag_k = FK_ADD;
   5931     /* cmp edx, 0x10u */ /* 0x3800A38F: cmp edx, 0x10 */
   5932     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   5933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5934     _flag_k = FK_CMP;
   5935     RECOMP_BACKEDGE();
   5936     if (CMP_G(_flag_a, _flag_b)) goto L_3800A257; /* 0x3800A392: jg 0x3800a257 */
   5937 L_3800A398:
   5938     edi = MEM32(ebp + 0x8); /* 0x3800A398: mov edi, dword ptr [ebp + 8] */
   5939     edx = edi + 0xC0; /* 0x3800A39B: lea edx, [edi + 0xc0] */
   5940     /* cmp edi, edx */ /* 0x3800A3A1: cmp edi, edx */
   5941     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5943     _flag_k = FK_CMP;
   5944     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A468; /* 0x3800A3A3: je 0x3800a468 */
   5945 L_3800A3A9:
   5946     ecx = edi + 0xC; /* 0x3800A3A9: lea ecx, [edi + 0xc] */
   5947     /* cmp ecx, edx */ /* 0x3800A3AC: cmp ecx, edx */
   5948     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5950     _flag_k = FK_CMP;
   5951     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A468; /* 0x3800A3AE: je 0x3800a468 */
   5952 L_3800A3B4:
   5953     edx = ecx; /* 0x3800A3B4: mov edx, ecx */
   5954     eax = MEM32(edx); /* 0x3800A3B6: mov eax, dword ptr [edx] */
   5955     MEM32(ebp + (-0x18)) = eax; /* 0x3800A3B8: mov dword ptr [ebp - 0x18], eax */
   5956     eax = MEM32(edx + 0x4); /* 0x3800A3BB: mov eax, dword ptr [edx + 4] */
   5957     edx = MEM32(edx + 0x8); /* 0x3800A3BE: mov edx, dword ptr [edx + 8] */
   5958     MEM32(ebp + (-0x10)) = edx; /* 0x3800A3C1: mov dword ptr [ebp - 0x10], edx */
   5959     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800A3C4: fld dword ptr [ebp - 0x10] */
   5960     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x8)); /* 0x3800A3C7: fcomp dword ptr [edi + 8] */
   5961     fp_pop();
   5962     MEM32(ebp + (-0x14)) = eax; /* 0x3800A3CA: mov dword ptr [ebp - 0x14], eax */
   5963     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A3CD: fnstsw ax */
   5964     /* test HI8(eax), 1 */ /* 0x3800A3CF: test ah, 1 */
   5965     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5966     _cf = 0;
   5967     _flag_k = FK_NARROW(FK_TEST, 24);
   5968     eax = ecx; /* 0x3800A3D2: mov eax, ecx */
   5969     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A424; /* 0x3800A3D4: jne 0x3800a424 */
   5970 L_3800A3D6:
   5971     edx = MEM32(eax); /* 0x3800A3D6: mov edx, dword ptr [eax] */
   5972     MEM32(ebp + (-0x24)) = edx; /* 0x3800A3D8: mov dword ptr [ebp - 0x24], edx */
   5973     edx = MEM32(eax + 0x4); /* 0x3800A3DB: mov edx, dword ptr [eax + 4] */
   5974     eax = MEM32(eax + 0x8); /* 0x3800A3DE: mov eax, dword ptr [eax + 8] */
   5975     MEM32(ebp + (-0x20)) = edx; /* 0x3800A3E1: mov dword ptr [ebp - 0x20], edx */
   5976     MEM32(ebp + (-0x1C)) = eax; /* 0x3800A3E4: mov dword ptr [ebp - 0x1c], eax */
   5977     edx = ecx; /* 0x3800A3E7: mov edx, ecx */
   5978     esi = ecx; /* 0x3800A3E9: mov esi, ecx */
   5979 L_3800A3EB:
   5980     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3800A3EB: fld dword ptr [ebp - 0x1c] */
   5981     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   5982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5983     esi = esi - 0xCu; /* 0x3800A3EE: sub esi, 0xc */
   5984     _flag_k = FK_CMP;
   5985     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x8)); /* 0x3800A3F1: fcomp dword ptr [esi + 8] */
   5986     fp_pop();
   5987     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A3F4: fnstsw ax */
   5988     /* test HI8(eax), 1 */ /* 0x3800A3F6: test ah, 1 */
   5989     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5990     _cf = 0;
   5991     _flag_k = FK_NARROW(FK_TEST, 24);
   5992     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A411; /* 0x3800A3F9: je 0x3800a411 */
   5993 L_3800A3FB:
   5994     eax = esi; /* 0x3800A3FB: mov eax, esi */
   5995     ebx = MEM32(eax); /* 0x3800A3FD: mov ebx, dword ptr [eax] */
   5996     MEM32(edx) = ebx; /* 0x3800A3FF: mov dword ptr [edx], ebx */
   5997     ebx = MEM32(eax + 0x4); /* 0x3800A401: mov ebx, dword ptr [eax + 4] */
   5998     MEM32(edx + 0x4) = ebx; /* 0x3800A404: mov dword ptr [edx + 4], ebx */
   5999     eax = MEM32(eax + 0x8); /* 0x3800A407: mov eax, dword ptr [eax + 8] */
   6000     MEM32(edx + 0x8) = eax; /* 0x3800A40A: mov dword ptr [edx + 8], eax */
   6001     edx = esi; /* 0x3800A40D: mov edx, esi */
   6002     RECOMP_BACKEDGE();
   6003     goto L_3800A3EB; /* 0x3800A40F: jmp 0x3800a3eb */
   6004 L_3800A411:
   6005     eax = MEM32(ebp + (-0x24)); /* 0x3800A411: mov eax, dword ptr [ebp - 0x24] */
   6006     MEM32(edx) = eax; /* 0x3800A414: mov dword ptr [edx], eax */
   6007     eax = MEM32(ebp + (-0x20)); /* 0x3800A416: mov eax, dword ptr [ebp - 0x20] */
   6008     MEM32(edx + 0x4) = eax; /* 0x3800A419: mov dword ptr [edx + 4], eax */
   6009     eax = MEM32(ebp + (-0x1C)); /* 0x3800A41C: mov eax, dword ptr [ebp - 0x1c] */
   6010     MEM32(edx + 0x8) = eax; /* 0x3800A41F: mov dword ptr [edx + 8], eax */
   6011     goto L_3800A457; /* 0x3800A422: jmp 0x3800a457 */
   6012 L_3800A424:
   6013     /* cmp edi, ecx */ /* 0x3800A424: cmp edi, ecx */
   6014     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   6015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6016     _flag_k = FK_CMP;
   6017     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A444; /* 0x3800A426: je 0x3800a444 */
   6018 L_3800A428:
   6019     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   6020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6021     eax = eax - 0xCu; /* 0x3800A428: sub eax, 0xc */
   6022     _flag_k = FK_CMP;
   6023     /* cmp eax, edi */ /* 0x3800A42B: cmp eax, edi */
   6024     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6026     _flag_k = FK_CMP;
   6027     esi = eax; /* 0x3800A42D: mov esi, eax */
   6028     ebx = MEM32(esi); /* 0x3800A42F: mov ebx, dword ptr [esi] */
   6029     edx = eax + 0xC; /* 0x3800A431: lea edx, [eax + 0xc] */
   6030     MEM32(edx) = ebx; /* 0x3800A434: mov dword ptr [edx], ebx */
   6031     ebx = MEM32(esi + 0x4); /* 0x3800A436: mov ebx, dword ptr [esi + 4] */
   6032     MEM32(edx + 0x4) = ebx; /* 0x3800A439: mov dword ptr [edx + 4], ebx */
   6033     esi = MEM32(esi + 0x8); /* 0x3800A43C: mov esi, dword ptr [esi + 8] */
   6034     MEM32(edx + 0x8) = esi; /* 0x3800A43F: mov dword ptr [edx + 8], esi */
   6035     RECOMP_BACKEDGE();
   6036     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A428; /* 0x3800A442: jne 0x3800a428 */
   6037 L_3800A444:
   6038     edx = MEM32(ebp + (-0x18)); /* 0x3800A444: mov edx, dword ptr [ebp - 0x18] */
   6039     eax = edi; /* 0x3800A447: mov eax, edi */
   6040     MEM32(eax) = edx; /* 0x3800A449: mov dword ptr [eax], edx */
   6041     edx = MEM32(ebp + (-0x14)); /* 0x3800A44B: mov edx, dword ptr [ebp - 0x14] */
   6042     MEM32(eax + 0x4) = edx; /* 0x3800A44E: mov dword ptr [eax + 4], edx */
   6043     edx = MEM32(ebp + (-0x10)); /* 0x3800A451: mov edx, dword ptr [ebp - 0x10] */
   6044     MEM32(eax + 0x8) = edx; /* 0x3800A454: mov dword ptr [eax + 8], edx */
   6045 L_3800A457:
   6046     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   6047     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6048     ecx = ecx + 0xCu; /* 0x3800A457: add ecx, 0xc */
   6049     _flag_k = FK_ADD;
   6050     edx = edi + 0xC0; /* 0x3800A45A: lea edx, [edi + 0xc0] */
   6051     /* cmp ecx, edx */ /* 0x3800A460: cmp ecx, edx */
   6052     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6054     _flag_k = FK_CMP;
   6055     RECOMP_BACKEDGE();
   6056     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A3B4; /* 0x3800A462: jne 0x3800a3b4 */
   6057 L_3800A468:
   6058     /* cmp edx, MEM32(ebp + 0xC) */ /* 0x3800A468: cmp edx, dword ptr [ebp + 0xc] */
   6059     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
   6060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6061     _flag_k = FK_CMP;
   6062     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A4BF; /* 0x3800A46B: je 0x3800a4bf */
   6063 L_3800A46D:
   6064     eax = edx; /* 0x3800A46D: mov eax, edx */
   6065     edi = MEM32(eax); /* 0x3800A46F: mov edi, dword ptr [eax] */
   6066     ecx = MEM32(eax + 0x4); /* 0x3800A471: mov ecx, dword ptr [eax + 4] */
   6067     eax = MEM32(eax + 0x8); /* 0x3800A474: mov eax, dword ptr [eax + 8] */
   6068     MEM32(ebp + (-0x20)) = ecx; /* 0x3800A477: mov dword ptr [ebp - 0x20], ecx */
   6069     MEM32(ebp + (-0x1C)) = eax; /* 0x3800A47A: mov dword ptr [ebp - 0x1c], eax */
   6070     ecx = edx; /* 0x3800A47D: mov ecx, edx */
   6071     esi = edx; /* 0x3800A47F: mov esi, edx */
   6072 L_3800A481:
   6073     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3800A481: fld dword ptr [ebp - 0x1c] */
   6074     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   6075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6076     esi = esi - 0xCu; /* 0x3800A484: sub esi, 0xc */
   6077     _flag_k = FK_CMP;
   6078     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x8)); /* 0x3800A487: fcomp dword ptr [esi + 8] */
   6079     fp_pop();
   6080     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A48A: fnstsw ax */
   6081     /* test HI8(eax), 1 */ /* 0x3800A48C: test ah, 1 */
   6082     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6083     _cf = 0;
   6084     _flag_k = FK_NARROW(FK_TEST, 24);
   6085     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A4A7; /* 0x3800A48F: je 0x3800a4a7 */
   6086 L_3800A491:
   6087     eax = esi; /* 0x3800A491: mov eax, esi */
   6088     ebx = MEM32(eax); /* 0x3800A493: mov ebx, dword ptr [eax] */
   6089     MEM32(ecx) = ebx; /* 0x3800A495: mov dword ptr [ecx], ebx */
   6090     ebx = MEM32(eax + 0x4); /* 0x3800A497: mov ebx, dword ptr [eax + 4] */
   6091     MEM32(ecx + 0x4) = ebx; /* 0x3800A49A: mov dword ptr [ecx + 4], ebx */
   6092     eax = MEM32(eax + 0x8); /* 0x3800A49D: mov eax, dword ptr [eax + 8] */
   6093     MEM32(ecx + 0x8) = eax; /* 0x3800A4A0: mov dword ptr [ecx + 8], eax */
   6094     ecx = esi; /* 0x3800A4A3: mov ecx, esi */
   6095     RECOMP_BACKEDGE();
   6096     goto L_3800A481; /* 0x3800A4A5: jmp 0x3800a481 */
   6097 L_3800A4A7:
   6098     eax = MEM32(ebp + (-0x20)); /* 0x3800A4A7: mov eax, dword ptr [ebp - 0x20] */
   6099     MEM32(ecx) = edi; /* 0x3800A4AA: mov dword ptr [ecx], edi */
   6100     MEM32(ecx + 0x4) = eax; /* 0x3800A4AC: mov dword ptr [ecx + 4], eax */
   6101     eax = MEM32(ebp + (-0x1C)); /* 0x3800A4AF: mov eax, dword ptr [ebp - 0x1c] */
   6102     MEM32(ecx + 0x8) = eax; /* 0x3800A4B2: mov dword ptr [ecx + 8], eax */
   6103     eax = MEM32(ebp + 0xC); /* 0x3800A4B5: mov eax, dword ptr [ebp + 0xc] */
   6104     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   6105     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6106     edx = edx + 0xCu; /* 0x3800A4B8: add edx, 0xc */
   6107     _flag_k = FK_ADD;
   6108     /* cmp edx, eax */ /* 0x3800A4BB: cmp edx, eax */
   6109     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6110     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6111     _flag_k = FK_CMP;
   6112     RECOMP_BACKEDGE();
   6113     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A46D; /* 0x3800A4BD: jne 0x3800a46d */
   6114 L_3800A4BF:
   6115     edi = POP32_VAL(esp); /* 0x3800A4BF: pop edi */
   6116     esi = POP32_VAL(esp); /* 0x3800A4C0: pop esi */
   6117     ebx = POP32_VAL(esp); /* 0x3800A4C1: pop ebx */
   6118     esp = ebp; /* 0x3800A4C2: mov esp, ebp */
   6119     ebp = POP32_VAL(esp); /* 0x3800A4C4: pop ebp */
   6120     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A4C5: ret  */
   6121     RECOMP_REGS_OUT();
   6122 }
   6123 
   6124 void sub_3800A4D0(void) {
   6125     int _fpu_cmp = 0;
   6126     uint32_t _cf = 0;
   6127     int _df = 1;
   6128     uint32_t _flag_k = FK_NONE;
   6129     uint32_t _flag_a = 0, _flag_b = 0;
   6130     uint32_t _itail_tgt = 0;
   6131     RECOMP_REGS_LOCALS
   6132     RECOMP_ENTER(0x3800A4D0u);
   6133 
   6134 L_3800A4D0:
   6135     PUSH32(esp, ebp); /* 0x3800A4D0: push ebp */
   6136     ebp = esp; /* 0x3800A4D1: mov ebp, esp */
   6137     ecx = MEM32(ecx + 0x4); /* 0x3800A4D3: mov ecx, dword ptr [ecx + 4] */
   6138     eax = MEM32(ebp + 0x8); /* 0x3800A4D6: mov eax, dword ptr [ebp + 8] */
   6139     MEM32(eax) = ecx; /* 0x3800A4D9: mov dword ptr [eax], ecx */
   6140     ebp = POP32_VAL(esp); /* 0x3800A4DB: pop ebp */
   6141     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800A4DC: ret 4 */
   6142     RECOMP_REGS_OUT();
   6143 }
   6144 
   6145 void sub_3800A4E0(void) {
   6146     int _fpu_cmp = 0;
   6147     uint32_t _cf = 0;
   6148     int _df = 1;
   6149     uint32_t _flag_k = FK_NONE;
   6150     uint32_t _flag_a = 0, _flag_b = 0;
   6151     uint32_t _itail_tgt = 0;
   6152     RECOMP_REGS_LOCALS
   6153     RECOMP_ENTER(0x3800A4E0u);
   6154 
   6155 L_3800A4E0:
   6156     PUSH32(esp, ebp); /* 0x3800A4E0: push ebp */
   6157     ebp = esp; /* 0x3800A4E1: mov ebp, esp */
   6158     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
   6159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6160     esp = esp - 0x3Cu; /* 0x3800A4E3: sub esp, 0x3c */
   6161     _flag_k = FK_CMP;
   6162     PUSH32(esp, ebx); /* 0x3800A4E6: push ebx */
   6163     ebx = MEM32(ebp + 0xC); /* 0x3800A4E7: mov ebx, dword ptr [ebp + 0xc] */
   6164     PUSH32(esp, edi); /* 0x3800A4EA: push edi */
   6165     edi = MEM32(ebp + 0x8); /* 0x3800A4EB: mov edi, dword ptr [ebp + 8] */
   6166     ecx = ebx; /* 0x3800A4EE: mov ecx, ebx */
   6167     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6168     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6169     ecx = ecx - edi; /* 0x3800A4F0: sub ecx, edi */
   6170     _flag_k = FK_CMP;
   6171     eax = 0x2AAAAAABu; /* 0x3800A4F2: mov eax, 0x2aaaaaab */
   6172     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3800A4F7: imul ecx */
   6173       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6174       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6175     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3800A4F9: sar edx, 1 */
   6176     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6177     edx = (uint32_t)((int32_t)edx >> 1u);
   6178     eax = edx; /* 0x3800A4FB: mov eax, edx */
   6179     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3800A4FD: shr eax, 0x1f */
   6180     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6181     eax = eax >> 31u; /* 0x3800A4FD: shr eax, 0x1f */
   6182     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6183     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6184     edx = edx + eax; /* 0x3800A500: add edx, eax */
   6185     _flag_k = FK_ADD;
   6186     /* cmp edx, 0x10u */ /* 0x3800A502: cmp edx, 0x10 */
   6187     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   6188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6189     _flag_k = FK_CMP;
   6190     if (CMP_LE(_flag_a, _flag_b)) goto L_3800A6AB; /* 0x3800A505: jle 0x3800a6ab */
   6191 L_3800A50B:
   6192     PUSH32(esp, esi); /* 0x3800A50B: push esi */
   6193 L_3800A50C:
   6194     ecx = edi; /* 0x3800A50C: mov ecx, edi */
   6195     eax = MEM32(ecx); /* 0x3800A50E: mov eax, dword ptr [ecx] */
   6196     MEM32(ebp + (-0x18)) = eax; /* 0x3800A510: mov dword ptr [ebp - 0x18], eax */
   6197     eax = MEM32(ecx + 0x4); /* 0x3800A513: mov eax, dword ptr [ecx + 4] */
   6198     ecx = MEM32(ecx + 0x8); /* 0x3800A516: mov ecx, dword ptr [ecx + 8] */
   6199     MEM32(ebp + (-0x14)) = eax; /* 0x3800A519: mov dword ptr [ebp - 0x14], eax */
   6200     eax = edx; /* 0x3800A51C: mov eax, edx */
   6201     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3800A51E: cdq  */
   6202     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6204     eax = eax - edx; /* 0x3800A51F: sub eax, edx */
   6205     _flag_k = FK_CMP;
   6206     if (1u) _cf = (((eax) >> 0) & 1u); /* 0x3800A521: sar eax, 1 */
   6207     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6208     eax = (uint32_t)((int32_t)eax >> 1u);
   6209     edx = eax + eax * 2; /* 0x3800A523: lea edx, [eax + eax*2] */
   6210     MEM32(ebp + (-0x10)) = ecx; /* 0x3800A526: mov dword ptr [ebp - 0x10], ecx */
   6211     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800A529: fld dword ptr [ebp - 0x10] */
   6212     eax = edi + edx * 4; /* 0x3800A52C: lea eax, [edi + edx*4] */
   6213     ecx = MEM32(eax); /* 0x3800A52F: mov ecx, dword ptr [eax] */
   6214     edx = MEM32(eax + 0x4); /* 0x3800A531: mov edx, dword ptr [eax + 4] */
   6215     eax = MEM32(eax + 0x8); /* 0x3800A534: mov eax, dword ptr [eax + 8] */
   6216     MEM32(ebp + (-0x24)) = ecx; /* 0x3800A537: mov dword ptr [ebp - 0x24], ecx */
   6217     MEM32(ebp + (-0x1C)) = eax; /* 0x3800A53A: mov dword ptr [ebp - 0x1c], eax */
   6218     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x1C))); /* 0x3800A53D: fcomp dword ptr [ebp - 0x1c] */
   6219     fp_pop();
   6220     ecx = ebx + (-0xC); /* 0x3800A540: lea ecx, [ebx - 0xc] */
   6221     MEM32(ebp + (-0x20)) = edx; /* 0x3800A543: mov dword ptr [ebp - 0x20], edx */
   6222     edx = MEM32(ecx); /* 0x3800A546: mov edx, dword ptr [ecx] */
   6223     eax = MEM32(ecx + 0x4); /* 0x3800A548: mov eax, dword ptr [ecx + 4] */
   6224     ecx = MEM32(ecx + 0x8); /* 0x3800A54B: mov ecx, dword ptr [ecx + 8] */
   6225     MEM32(ebp + (-0x8)) = eax; /* 0x3800A54E: mov dword ptr [ebp - 8], eax */
   6226     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A551: fnstsw ax */
   6227     MEM32(ebp + (-0xC)) = edx; /* 0x3800A553: mov dword ptr [ebp - 0xc], edx */
   6228     /* test HI8(eax), 1 */ /* 0x3800A556: test ah, 1 */
   6229     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6230     _cf = 0;
   6231     _flag_k = FK_NARROW(FK_TEST, 24);
   6232     MEM32(ebp + (-0x4)) = ecx; /* 0x3800A559: mov dword ptr [ebp - 4], ecx */
   6233     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A596; /* 0x3800A55C: je 0x3800a596 */
   6234 L_3800A55E:
   6235     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3800A55E: fld dword ptr [ebp - 0x1c] */
   6236     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3800A561: fcomp dword ptr [ebp - 4] */
   6237     fp_pop();
   6238     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A564: fnstsw ax */
   6239     /* test HI8(eax), 1 */ /* 0x3800A566: test ah, 1 */
   6240     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6241     _cf = 0;
   6242     _flag_k = FK_NARROW(FK_TEST, 24);
   6243     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A570; /* 0x3800A569: je 0x3800a570 */
   6244 L_3800A56B:
   6245     eax = ebp + (-0x24); /* 0x3800A56B: lea eax, [ebp - 0x24] */
   6246     goto L_3800A583; /* 0x3800A56E: jmp 0x3800a583 */
   6247 L_3800A570:
   6248     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800A570: fld dword ptr [ebp - 0x10] */
   6249     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3800A573: fcomp dword ptr [ebp - 4] */
   6250     fp_pop();
   6251     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A576: fnstsw ax */
   6252     /* test HI8(eax), 1 */ /* 0x3800A578: test ah, 1 */
   6253     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6254     _cf = 0;
   6255     _flag_k = FK_NARROW(FK_TEST, 24);
   6256     eax = ebp + (-0xC); /* 0x3800A57B: lea eax, [ebp - 0xc] */
   6257     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A583; /* 0x3800A57E: jne 0x3800a583 */
   6258 L_3800A580:
   6259     eax = ebp + (-0x18); /* 0x3800A580: lea eax, [ebp - 0x18] */
   6260 L_3800A583:
   6261     edx = MEM32(eax); /* 0x3800A583: mov edx, dword ptr [eax] */
   6262     ecx = MEM32(eax + 0x4); /* 0x3800A585: mov ecx, dword ptr [eax + 4] */
   6263     MEM32(ebp + (-0x30)) = edx; /* 0x3800A588: mov dword ptr [ebp - 0x30], edx */
   6264     edx = MEM32(eax + 0x8); /* 0x3800A58B: mov edx, dword ptr [eax + 8] */
   6265     MEM32(ebp + (-0x2C)) = ecx; /* 0x3800A58E: mov dword ptr [ebp - 0x2c], ecx */
   6266     MEM32(ebp + (-0x28)) = edx; /* 0x3800A591: mov dword ptr [ebp - 0x28], edx */
   6267     goto L_3800A5CC; /* 0x3800A594: jmp 0x3800a5cc */
   6268 L_3800A596:
   6269     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800A596: fld dword ptr [ebp - 0x10] */
   6270     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3800A599: fcomp dword ptr [ebp - 4] */
   6271     fp_pop();
   6272     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A59C: fnstsw ax */
   6273     /* test HI8(eax), 1 */ /* 0x3800A59E: test ah, 1 */
   6274     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6275     _cf = 0;
   6276     _flag_k = FK_NARROW(FK_TEST, 24);
   6277     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A5A8; /* 0x3800A5A1: je 0x3800a5a8 */
   6278 L_3800A5A3:
   6279     eax = ebp + (-0x18); /* 0x3800A5A3: lea eax, [ebp - 0x18] */
   6280     goto L_3800A5BB; /* 0x3800A5A6: jmp 0x3800a5bb */
   6281 L_3800A5A8:
   6282     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3800A5A8: fld dword ptr [ebp - 0x1c] */
   6283     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3800A5AB: fcomp dword ptr [ebp - 4] */
   6284     fp_pop();
   6285     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A5AE: fnstsw ax */
   6286     /* test HI8(eax), 1 */ /* 0x3800A5B0: test ah, 1 */
   6287     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6288     _cf = 0;
   6289     _flag_k = FK_NARROW(FK_TEST, 24);
   6290     eax = ebp + (-0xC); /* 0x3800A5B3: lea eax, [ebp - 0xc] */
   6291     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A5BB; /* 0x3800A5B6: jne 0x3800a5bb */
   6292 L_3800A5B8:
   6293     eax = ebp + (-0x24); /* 0x3800A5B8: lea eax, [ebp - 0x24] */
   6294 L_3800A5BB:
   6295     ecx = MEM32(eax); /* 0x3800A5BB: mov ecx, dword ptr [eax] */
   6296     edx = MEM32(eax + 0x4); /* 0x3800A5BD: mov edx, dword ptr [eax + 4] */
   6297     eax = MEM32(eax + 0x8); /* 0x3800A5C0: mov eax, dword ptr [eax + 8] */
   6298     MEM32(ebp + (-0x30)) = ecx; /* 0x3800A5C3: mov dword ptr [ebp - 0x30], ecx */
   6299     MEM32(ebp + (-0x2C)) = edx; /* 0x3800A5C6: mov dword ptr [ebp - 0x2c], edx */
   6300     MEM32(ebp + (-0x28)) = eax; /* 0x3800A5C9: mov dword ptr [ebp - 0x28], eax */
   6301 L_3800A5CC:
   6302     ecx = ebx; /* 0x3800A5CC: mov ecx, ebx */
   6303     esi = edi; /* 0x3800A5CE: mov esi, edi */
   6304 L_3800A5D0:
   6305     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x3800A5D0: fld dword ptr [esi + 8] */
   6306     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x28))); /* 0x3800A5D3: fcomp dword ptr [ebp - 0x28] */
   6307     fp_pop();
   6308     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A5D6: fnstsw ax */
   6309     /* test HI8(eax), 1 */ /* 0x3800A5D8: test ah, 1 */
   6310     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6311     _cf = 0;
   6312     _flag_k = FK_NARROW(FK_TEST, 24);
   6313     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A5E2; /* 0x3800A5DB: je 0x3800a5e2 */
   6314 L_3800A5DD:
   6315     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   6316     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6317     esi = esi + 0xCu; /* 0x3800A5DD: add esi, 0xc */
   6318     _flag_k = FK_ADD;
   6319     RECOMP_BACKEDGE();
   6320     goto L_3800A5D0; /* 0x3800A5E0: jmp 0x3800a5d0 */
   6321 L_3800A5E2:
   6322     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3800A5E2: fld dword ptr [ebp - 0x28] */
   6323     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   6324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6325     ecx = ecx - 0xCu; /* 0x3800A5E5: sub ecx, 0xc */
   6326     _flag_k = FK_CMP;
   6327     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x8)); /* 0x3800A5E8: fcomp dword ptr [ecx + 8] */
   6328     fp_pop();
   6329     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A5EB: fnstsw ax */
   6330     /* test HI8(eax), 1 */ /* 0x3800A5ED: test ah, 1 */
   6331     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6332     _cf = 0;
   6333     _flag_k = FK_NARROW(FK_TEST, 24);
   6334     RECOMP_BACKEDGE();
   6335     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A5E2; /* 0x3800A5F0: jne 0x3800a5e2 */
   6336 L_3800A5F2:
   6337     /* cmp ecx, esi */ /* 0x3800A5F2: cmp ecx, esi */
   6338     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   6339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6340     _flag_k = FK_CMP;
   6341     if (CMP_BE(_flag_a, _flag_b)) goto L_3800A635; /* 0x3800A5F4: jbe 0x3800a635 */
   6342 L_3800A5F6:
   6343     edx = esi; /* 0x3800A5F6: mov edx, esi */
   6344     eax = MEM32(edx); /* 0x3800A5F8: mov eax, dword ptr [edx] */
   6345     edi = MEM32(edx + 0x4); /* 0x3800A5FA: mov edi, dword ptr [edx + 4] */
   6346     edx = MEM32(edx + 0x8); /* 0x3800A5FD: mov edx, dword ptr [edx + 8] */
   6347     MEM32(ebp + (-0x34)) = edx; /* 0x3800A600: mov dword ptr [ebp - 0x34], edx */
   6348     MEM32(ebp + (-0x38)) = edi; /* 0x3800A603: mov dword ptr [ebp - 0x38], edi */
   6349     edx = ecx; /* 0x3800A606: mov edx, ecx */
   6350     ebx = MEM32(edx); /* 0x3800A608: mov ebx, dword ptr [edx] */
   6351     edi = esi; /* 0x3800A60A: mov edi, esi */
   6352     MEM32(edi) = ebx; /* 0x3800A60C: mov dword ptr [edi], ebx */
   6353     ebx = MEM32(edx + 0x4); /* 0x3800A60E: mov ebx, dword ptr [edx + 4] */
   6354     MEM32(edi + 0x4) = ebx; /* 0x3800A611: mov dword ptr [edi + 4], ebx */
   6355     edx = MEM32(edx + 0x8); /* 0x3800A614: mov edx, dword ptr [edx + 8] */
   6356     ebx = MEM32(ebp + 0xC); /* 0x3800A617: mov ebx, dword ptr [ebp + 0xc] */
   6357     MEM32(edi + 0x8) = edx; /* 0x3800A61A: mov dword ptr [edi + 8], edx */
   6358     edi = MEM32(ebp + 0x8); /* 0x3800A61D: mov edi, dword ptr [ebp + 8] */
   6359     edx = ecx; /* 0x3800A620: mov edx, ecx */
   6360     MEM32(edx) = eax; /* 0x3800A622: mov dword ptr [edx], eax */
   6361     eax = MEM32(ebp + (-0x38)); /* 0x3800A624: mov eax, dword ptr [ebp - 0x38] */
   6362     MEM32(edx + 0x4) = eax; /* 0x3800A627: mov dword ptr [edx + 4], eax */
   6363     eax = MEM32(ebp + (-0x34)); /* 0x3800A62A: mov eax, dword ptr [ebp - 0x34] */
   6364     MEM32(edx + 0x8) = eax; /* 0x3800A62D: mov dword ptr [edx + 8], eax */
   6365     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu);
   6366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6367     esi = esi + 0xCu; /* 0x3800A630: add esi, 0xc */
   6368     _flag_k = FK_ADD;
   6369     RECOMP_BACKEDGE();
   6370     goto L_3800A5D0; /* 0x3800A633: jmp 0x3800a5d0 */
   6371 L_3800A635:
   6372     ecx = ebx; /* 0x3800A635: mov ecx, ebx */
   6373     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   6374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6375     ecx = ecx - esi; /* 0x3800A637: sub ecx, esi */
   6376     _flag_k = FK_CMP;
   6377     eax = 0x2AAAAAABu; /* 0x3800A639: mov eax, 0x2aaaaaab */
   6378     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3800A63E: imul ecx */
   6379       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6380       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6381     ecx = edx; /* 0x3800A640: mov ecx, edx */
   6382     if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x3800A642: sar ecx, 1 */
   6383     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6384     ecx = (uint32_t)((int32_t)ecx >> 1u);
   6385     edx = ecx; /* 0x3800A644: mov edx, ecx */
   6386     if (31u) _cf = (((edx) >> 30) & 1u); /* 0x3800A646: shr edx, 0x1f */
   6387     if (31u) { _flag_a = recomp_flags_pack((edx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6388     edx = edx >> 31u; /* 0x3800A646: shr edx, 0x1f */
   6389     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6390     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6391     ecx = ecx + edx; /* 0x3800A649: add ecx, edx */
   6392     _flag_k = FK_ADD;
   6393     edx = esi; /* 0x3800A64B: mov edx, esi */
   6394     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6395     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6396     edx = edx - edi; /* 0x3800A64D: sub edx, edi */
   6397     _flag_k = FK_CMP;
   6398     eax = 0x2AAAAAABu; /* 0x3800A64F: mov eax, 0x2aaaaaab */
   6399     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3800A654: imul edx */
   6400       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6401       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6402     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3800A656: sar edx, 1 */
   6403     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6404     edx = (uint32_t)((int32_t)edx >> 1u);
   6405     eax = edx; /* 0x3800A658: mov eax, edx */
   6406     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3800A65A: shr eax, 0x1f */
   6407     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6408     eax = eax >> 31u; /* 0x3800A65A: shr eax, 0x1f */
   6409     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6410     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6411     edx = edx + eax; /* 0x3800A65D: add edx, eax */
   6412     _flag_k = FK_ADD;
   6413     /* cmp ecx, edx */ /* 0x3800A65F: cmp ecx, edx */
   6414     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6416     _flag_k = FK_CMP;
   6417     PUSH32(esp, 0); /* 0x3800A661: push 0 */
   6418     if (CMP_G(_flag_a, _flag_b)) goto L_3800A67A; /* 0x3800A663: jg 0x3800a67a */
   6419 L_3800A665:
   6420     ecx = MEM32(ebp + 0x10); /* 0x3800A665: mov ecx, dword ptr [ebp + 0x10] */
   6421     PUSH32(esp, ecx); /* 0x3800A668: push ecx */
   6422     PUSH32(esp, ebx); /* 0x3800A669: push ebx */
   6423     PUSH32(esp, esi); /* 0x3800A66A: push esi */
   6424     RECOMP_ICALL(0x3800A4E0u); /* 0x3800A66B: call 0x3800a4e0 */ /* not lifted */
   6425     RECOMP_FLAGS_IN();
   6426     ebx = esi; /* 0x3800A670: mov ebx, esi */
   6427     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6428     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6429     esp = esp + 0x10u; /* 0x3800A672: add esp, 0x10 */
   6430     _flag_k = FK_ADD;
   6431     MEM32(ebp + 0xC) = ebx; /* 0x3800A675: mov dword ptr [ebp + 0xc], ebx */
   6432     goto L_3800A68D; /* 0x3800A678: jmp 0x3800a68d */
   6433 L_3800A67A:
   6434     edx = MEM32(ebp + 0x10); /* 0x3800A67A: mov edx, dword ptr [ebp + 0x10] */
   6435     PUSH32(esp, edx); /* 0x3800A67D: push edx */
   6436     PUSH32(esp, esi); /* 0x3800A67E: push esi */
   6437     PUSH32(esp, edi); /* 0x3800A67F: push edi */
   6438     RECOMP_ICALL(0x3800A4E0u); /* 0x3800A680: call 0x3800a4e0 */ /* not lifted */
   6439     RECOMP_FLAGS_IN();
   6440     edi = esi; /* 0x3800A685: mov edi, esi */
   6441     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6442     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6443     esp = esp + 0x10u; /* 0x3800A687: add esp, 0x10 */
   6444     _flag_k = FK_ADD;
   6445     MEM32(ebp + 0x8) = edi; /* 0x3800A68A: mov dword ptr [ebp + 8], edi */
   6446 L_3800A68D:
   6447     ecx = ebx; /* 0x3800A68D: mov ecx, ebx */
   6448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6450     ecx = ecx - edi; /* 0x3800A68F: sub ecx, edi */
   6451     _flag_k = FK_CMP;
   6452     eax = 0x2AAAAAABu; /* 0x3800A691: mov eax, 0x2aaaaaab */
   6453     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3800A696: imul ecx */
   6454       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6455       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6456     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3800A698: sar edx, 1 */
   6457     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6458     edx = (uint32_t)((int32_t)edx >> 1u);
   6459     eax = edx; /* 0x3800A69A: mov eax, edx */
   6460     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3800A69C: shr eax, 0x1f */
   6461     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6462     eax = eax >> 31u; /* 0x3800A69C: shr eax, 0x1f */
   6463     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6464     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6465     edx = edx + eax; /* 0x3800A69F: add edx, eax */
   6466     _flag_k = FK_ADD;
   6467     /* cmp edx, 0x10u */ /* 0x3800A6A1: cmp edx, 0x10 */
   6468     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   6469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6470     _flag_k = FK_CMP;
   6471     RECOMP_BACKEDGE();
   6472     if (CMP_G(_flag_a, _flag_b)) goto L_3800A50C; /* 0x3800A6A4: jg 0x3800a50c */
   6473 L_3800A6AA:
   6474     esi = POP32_VAL(esp); /* 0x3800A6AA: pop esi */
   6475 L_3800A6AB:
   6476     edi = POP32_VAL(esp); /* 0x3800A6AB: pop edi */
   6477     ebx = POP32_VAL(esp); /* 0x3800A6AC: pop ebx */
   6478     esp = ebp; /* 0x3800A6AD: mov esp, ebp */
   6479     ebp = POP32_VAL(esp); /* 0x3800A6AF: pop ebp */
   6480     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A6B0: ret  */
   6481     RECOMP_REGS_OUT();
   6482 }
   6483 
   6484 void sub_3800A6C0(void) {
   6485     int _fpu_cmp = 0;
   6486     uint32_t _cf = 0;
   6487     int _df = 1;
   6488     uint32_t _flag_k = FK_NONE;
   6489     uint32_t _flag_a = 0, _flag_b = 0;
   6490     uint32_t _itail_tgt = 0;
   6491     RECOMP_REGS_LOCALS
   6492     RECOMP_ENTER(0x3800A6C0u);
   6493 
   6494 L_3800A6C0:
   6495     PUSH32(esp, ebp); /* 0x3800A6C0: push ebp */
   6496     ebp = esp; /* 0x3800A6C1: mov ebp, esp */
   6497     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6499     esp = esp - 0xCu; /* 0x3800A6C3: sub esp, 0xc */
   6500     _flag_k = FK_CMP;
   6501     edx = MEM32(ebp + 0xC); /* 0x3800A6C6: mov edx, dword ptr [ebp + 0xc] */
   6502     ecx = MEM32(ebp + 0x8); /* 0x3800A6C9: mov ecx, dword ptr [ebp + 8] */
   6503     PUSH32(esp, ebx); /* 0x3800A6CC: push ebx */
   6504     PUSH32(esp, esi); /* 0x3800A6CD: push esi */
   6505     PUSH32(esp, edi); /* 0x3800A6CE: push edi */
   6506 L_3800A6CF:
   6507     fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x3800A6CF: fld dword ptr [ecx + 8] */
   6508     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x18)); /* 0x3800A6D2: fcomp dword ptr [ebp + 0x18] */
   6509     fp_pop();
   6510     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A6D5: fnstsw ax */
   6511     /* test HI8(eax), 1 */ /* 0x3800A6D7: test ah, 1 */
   6512     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6513     _cf = 0;
   6514     _flag_k = FK_NARROW(FK_TEST, 24);
   6515     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A6E1; /* 0x3800A6DA: je 0x3800a6e1 */
   6516 L_3800A6DC:
   6517     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   6518     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6519     ecx = ecx + 0xCu; /* 0x3800A6DC: add ecx, 0xc */
   6520     _flag_k = FK_ADD;
   6521     RECOMP_BACKEDGE();
   6522     goto L_3800A6CF; /* 0x3800A6DF: jmp 0x3800a6cf */
   6523 L_3800A6E1:
   6524     fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x3800A6E1: fld dword ptr [ebp + 0x18] */
   6525     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu);
   6526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6527     edx = edx - 0xCu; /* 0x3800A6E4: sub edx, 0xc */
   6528     _flag_k = FK_CMP;
   6529     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edx + 0x8)); /* 0x3800A6E7: fcomp dword ptr [edx + 8] */
   6530     fp_pop();
   6531     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800A6EA: fnstsw ax */
   6532     /* test HI8(eax), 1 */ /* 0x3800A6EC: test ah, 1 */
   6533     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6534     _cf = 0;
   6535     _flag_k = FK_NARROW(FK_TEST, 24);
   6536     RECOMP_BACKEDGE();
   6537     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A6E1; /* 0x3800A6EF: jne 0x3800a6e1 */
   6538 L_3800A6F1:
   6539     /* cmp edx, ecx */ /* 0x3800A6F1: cmp edx, ecx */
   6540     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6542     _flag_k = FK_CMP;
   6543     if (CMP_BE(_flag_a, _flag_b)) goto L_3800A72E; /* 0x3800A6F3: jbe 0x3800a72e */
   6544 L_3800A6F5:
   6545     esi = ecx; /* 0x3800A6F5: mov esi, ecx */
   6546     eax = MEM32(esi); /* 0x3800A6F7: mov eax, dword ptr [esi] */
   6547     edi = MEM32(esi + 0x4); /* 0x3800A6F9: mov edi, dword ptr [esi + 4] */
   6548     esi = MEM32(esi + 0x8); /* 0x3800A6FC: mov esi, dword ptr [esi + 8] */
   6549     MEM32(ebp + (-0x4)) = esi; /* 0x3800A6FF: mov dword ptr [ebp - 4], esi */
   6550     MEM32(ebp + (-0x8)) = edi; /* 0x3800A702: mov dword ptr [ebp - 8], edi */
   6551     esi = edx; /* 0x3800A705: mov esi, edx */
   6552     ebx = MEM32(esi); /* 0x3800A707: mov ebx, dword ptr [esi] */
   6553     edi = ecx; /* 0x3800A709: mov edi, ecx */
   6554     MEM32(edi) = ebx; /* 0x3800A70B: mov dword ptr [edi], ebx */
   6555     ebx = MEM32(esi + 0x4); /* 0x3800A70D: mov ebx, dword ptr [esi + 4] */
   6556     MEM32(edi + 0x4) = ebx; /* 0x3800A710: mov dword ptr [edi + 4], ebx */
   6557     esi = MEM32(esi + 0x8); /* 0x3800A713: mov esi, dword ptr [esi + 8] */
   6558     MEM32(edi + 0x8) = esi; /* 0x3800A716: mov dword ptr [edi + 8], esi */
   6559     esi = edx; /* 0x3800A719: mov esi, edx */
   6560     MEM32(esi) = eax; /* 0x3800A71B: mov dword ptr [esi], eax */
   6561     eax = MEM32(ebp + (-0x8)); /* 0x3800A71D: mov eax, dword ptr [ebp - 8] */
   6562     MEM32(esi + 0x4) = eax; /* 0x3800A720: mov dword ptr [esi + 4], eax */
   6563     eax = MEM32(ebp + (-0x4)); /* 0x3800A723: mov eax, dword ptr [ebp - 4] */
   6564     MEM32(esi + 0x8) = eax; /* 0x3800A726: mov dword ptr [esi + 8], eax */
   6565     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   6566     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6567     ecx = ecx + 0xCu; /* 0x3800A729: add ecx, 0xc */
   6568     _flag_k = FK_ADD;
   6569     RECOMP_BACKEDGE();
   6570     goto L_3800A6CF; /* 0x3800A72C: jmp 0x3800a6cf */
   6571 L_3800A72E:
   6572     edi = POP32_VAL(esp); /* 0x3800A72E: pop edi */
   6573     esi = POP32_VAL(esp); /* 0x3800A72F: pop esi */
   6574     eax = ecx; /* 0x3800A730: mov eax, ecx */
   6575     ebx = POP32_VAL(esp); /* 0x3800A732: pop ebx */
   6576     esp = ebp; /* 0x3800A733: mov esp, ebp */
   6577     ebp = POP32_VAL(esp); /* 0x3800A735: pop ebp */
   6578     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A736: ret  */
   6579     RECOMP_REGS_OUT();
   6580 }
   6581 
   6582 void sub_3800A740(void) {
   6583     int _fpu_cmp = 0;
   6584     uint32_t _cf = 0;
   6585     int _df = 1;
   6586     uint32_t _flag_k = FK_NONE;
   6587     uint32_t _flag_a = 0, _flag_b = 0;
   6588     uint32_t _itail_tgt = 0;
   6589     RECOMP_REGS_LOCALS
   6590     RECOMP_ENTER(0x3800A740u);
   6591 
   6592 L_3800A740:
   6593     PUSH32(esp, ebp); /* 0x3800A740: push ebp */
   6594     ebp = esp; /* 0x3800A741: mov ebp, esp */
   6595     PUSH32(esp, ebx); /* 0x3800A743: push ebx */
   6596     ebx = MEM32(ebp + 0x10); /* 0x3800A744: mov ebx, dword ptr [ebp + 0x10] */
   6597     PUSH32(esp, esi); /* 0x3800A747: push esi */
   6598     esi = MEM32(ebp + 0xC); /* 0x3800A748: mov esi, dword ptr [ebp + 0xc] */
   6599     /* cmp esi, ebx */ /* 0x3800A74B: cmp esi, ebx */
   6600     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6602     _flag_k = FK_CMP;
   6603     PUSH32(esp, edi); /* 0x3800A74D: push edi */
   6604     edi = MEM32(ebp + 0x14); /* 0x3800A74E: mov edi, dword ptr [ebp + 0x14] */
   6605     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A7C3; /* 0x3800A751: je 0x3800a7c3 */
   6606 L_3800A753:
   6607     eax = MEM32(esi + 0xC); /* 0x3800A753: mov eax, dword ptr [esi + 0xc] */
   6608     /* cmp eax, MEM32(edi + 0xC) */ /* 0x3800A756: cmp eax, dword ptr [edi + 0xc] */
   6609     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0xC));
   6610     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6611     _flag_k = FK_CMP;
   6612     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A7C3; /* 0x3800A759: jne 0x3800a7c3 */
   6613 L_3800A75B:
   6614     ecx = MEM32(esi + 0x10); /* 0x3800A75B: mov ecx, dword ptr [esi + 0x10] */
   6615     /* cmp ecx, MEM32(edi + 0x10) */ /* 0x3800A75E: cmp ecx, dword ptr [edi + 0x10] */
   6616     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x10));
   6617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6618     _flag_k = FK_CMP;
   6619     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A7C3; /* 0x3800A761: jne 0x3800a7c3 */
   6620 L_3800A763:
   6621     eax = MEM32(esi + 0x8); /* 0x3800A763: mov eax, dword ptr [esi + 8] */
   6622     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3800A766: mov cl, byte ptr [eax + 0x15] */
   6623     /* test LO8(ecx), LO8(ecx) */ /* 0x3800A769: test cl, cl */
   6624     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6625     _cf = 0;
   6626     _flag_k = FK_NARROW(FK_TEST, 24);
   6627     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A778; /* 0x3800A76B: jne 0x3800a778 */
   6628 L_3800A76D:
   6629     PUSH32(esp, eax); /* 0x3800A76D: push eax */
   6630     RECOMP_ICALL(0x38035620u); /* 0x3800A76E: call 0x38035620 */ /* not lifted */
   6631     RECOMP_FLAGS_IN();
   6632     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6633     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6634     esp = esp + 4; /* 0x3800A773: add esp, 4 */
   6635     _flag_k = FK_ADD;
   6636     goto L_3800A78F; /* 0x3800A776: jmp 0x3800a78f */
   6637 L_3800A778:
   6638     eax = MEM32(esi + 0x4); /* 0x3800A778: mov eax, dword ptr [esi + 4] */
   6639     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3800A77B: cmp esi, dword ptr [eax + 8] */
   6640     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6642     _flag_k = FK_CMP;
   6643     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A78A; /* 0x3800A77E: jne 0x3800a78a */
   6644 L_3800A780:
   6645     esi = eax; /* 0x3800A780: mov esi, eax */
   6646     eax = MEM32(eax + 0x4); /* 0x3800A782: mov eax, dword ptr [eax + 4] */
   6647     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3800A785: cmp esi, dword ptr [eax + 8] */
   6648     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6649     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6650     _flag_k = FK_CMP;
   6651     RECOMP_BACKEDGE();
   6652     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A780; /* 0x3800A788: je 0x3800a780 */
   6653 L_3800A78A:
   6654     /* cmp MEM32(esi + 0x8), eax */ /* 0x3800A78A: cmp dword ptr [esi + 8], eax */
   6655     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   6656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6657     _flag_k = FK_CMP;
   6658     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A791; /* 0x3800A78D: je 0x3800a791 */
   6659 L_3800A78F:
   6660     esi = eax; /* 0x3800A78F: mov esi, eax */
   6661 L_3800A791:
   6662     eax = MEM32(edi + 0x8); /* 0x3800A791: mov eax, dword ptr [edi + 8] */
   6663     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3800A794: mov cl, byte ptr [eax + 0x15] */
   6664     /* test LO8(ecx), LO8(ecx) */ /* 0x3800A797: test cl, cl */
   6665     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6666     _cf = 0;
   6667     _flag_k = FK_NARROW(FK_TEST, 24);
   6668     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800A7A6; /* 0x3800A799: jne 0x3800a7a6 */
   6669 L_3800A79B:
   6670     PUSH32(esp, eax); /* 0x3800A79B: push eax */
   6671     RECOMP_ICALL(0x38035620u); /* 0x3800A79C: call 0x38035620 */ /* not lifted */
   6672     RECOMP_FLAGS_IN();
   6673     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6674     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6675     esp = esp + 4; /* 0x3800A7A1: add esp, 4 */
   6676     _flag_k = FK_ADD;
   6677     goto L_3800A7BD; /* 0x3800A7A4: jmp 0x3800a7bd */
   6678 L_3800A7A6:
   6679     eax = MEM32(edi + 0x4); /* 0x3800A7A6: mov eax, dword ptr [edi + 4] */
   6680     /* cmp edi, MEM32(eax + 0x8) */ /* 0x3800A7A9: cmp edi, dword ptr [eax + 8] */
   6681     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6683     _flag_k = FK_CMP;
   6684     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A7B8; /* 0x3800A7AC: jne 0x3800a7b8 */
   6685 L_3800A7AE:
   6686     edi = eax; /* 0x3800A7AE: mov edi, eax */
   6687     eax = MEM32(eax + 0x4); /* 0x3800A7B0: mov eax, dword ptr [eax + 4] */
   6688     /* cmp edi, MEM32(eax + 0x8) */ /* 0x3800A7B3: cmp edi, dword ptr [eax + 8] */
   6689     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6691     _flag_k = FK_CMP;
   6692     RECOMP_BACKEDGE();
   6693     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A7AE; /* 0x3800A7B6: je 0x3800a7ae */
   6694 L_3800A7B8:
   6695     /* cmp MEM32(edi + 0x8), eax */ /* 0x3800A7B8: cmp dword ptr [edi + 8], eax */
   6696     _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(eax);
   6697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6698     _flag_k = FK_CMP;
   6699     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800A7BF; /* 0x3800A7BB: je 0x3800a7bf */
   6700 L_3800A7BD:
   6701     edi = eax; /* 0x3800A7BD: mov edi, eax */
   6702 L_3800A7BF:
   6703     /* cmp esi, ebx */ /* 0x3800A7BF: cmp esi, ebx */
   6704     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6705     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6706     _flag_k = FK_CMP;
   6707     RECOMP_BACKEDGE();
   6708     if (CMP_NE(_flag_a, _flag_b)) goto L_3800A753; /* 0x3800A7C1: jne 0x3800a753 */
   6709 L_3800A7C3:
   6710     eax = MEM32(ebp + 0x8); /* 0x3800A7C3: mov eax, dword ptr [ebp + 8] */
   6711     MEM32(eax) = esi; /* 0x3800A7C6: mov dword ptr [eax], esi */
   6712     MEM32(eax + 0x4) = edi; /* 0x3800A7C8: mov dword ptr [eax + 4], edi */
   6713     edi = POP32_VAL(esp); /* 0x3800A7CB: pop edi */
   6714     esi = POP32_VAL(esp); /* 0x3800A7CC: pop esi */
   6715     ebx = POP32_VAL(esp); /* 0x3800A7CD: pop ebx */
   6716     ebp = POP32_VAL(esp); /* 0x3800A7CE: pop ebp */
   6717     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A7CF: ret  */
   6718     RECOMP_REGS_OUT();
   6719 }
   6720 
   6721 void sub_3800A7D0(void) {
   6722     int _fpu_cmp = 0;
   6723     uint32_t _cf = 0;
   6724     int _df = 1;
   6725     uint32_t _flag_k = FK_NONE;
   6726     uint32_t _flag_a = 0, _flag_b = 0;
   6727     uint32_t _itail_tgt = 0;
   6728     RECOMP_REGS_LOCALS
   6729     RECOMP_ENTER(0x3800A7D0u);
   6730 
   6731     goto L_3800A7D0;
   6732 L_38006910:
   6733     PUSH32(esp, ebp); /* 0x38006910: push ebp */
   6734     ebp = esp; /* 0x38006911: mov ebp, esp */
   6735     PUSH32(esp, ebx); /* 0x38006913: push ebx */
   6736     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x38006914: mov bl, byte ptr [ebp + 8] */
   6737     /* test LO8(ebx), 2 */ /* 0x38006917: test bl, 2 */
   6738     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   6739     _cf = 0;
   6740     _flag_k = FK_NARROW(FK_TEST, 24);
   6741     PUSH32(esp, esi); /* 0x3800691A: push esi */
   6742     esi = ecx; /* 0x3800691B: mov esi, ecx */
   6743     if (TEST_Z(_flag_a, _flag_b)) goto L_3800694E; /* 0x3800691D: je 0x3800694e */
   6744 L_3800691F:
   6745     eax = MEM32(esi + (-0x4)); /* 0x3800691F: mov eax, dword ptr [esi - 4] */
   6746     PUSH32(esp, edi); /* 0x38006922: push edi */
   6747     PUSH32(esp, 0x38006970u); /* 0x38006923: push 0x38006970 */
   6748     edi = esi + (-0x4); /* 0x38006928: lea edi, [esi - 4] */
   6749     PUSH32(esp, eax); /* 0x3800692B: push eax */
   6750     PUSH32(esp, 0x1E4u); /* 0x3800692C: push 0x1e4 */
   6751     PUSH32(esp, esi); /* 0x38006931: push esi */
   6752     RECOMP_ICALL(0x3804B582u); /* 0x38006932: call 0x3804b582 */ /* not lifted */
   6753     RECOMP_FLAGS_IN();
   6754     /* test LO8(ebx), 1 */ /* 0x38006937: test bl, 1 */
   6755     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   6756     _cf = 0;
   6757     _flag_k = FK_NARROW(FK_TEST, 24);
   6758     if (TEST_Z(_flag_a, _flag_b)) goto L_38006945; /* 0x3800693A: je 0x38006945 */
   6759 L_3800693C:
   6760     PUSH32(esp, edi); /* 0x3800693C: push edi */
   6761     RECOMP_ICALL(0x3804B4F6u); /* 0x3800693D: call 0x3804b4f6 */ /* not lifted */
   6762     RECOMP_FLAGS_IN();
   6763     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6764     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6765     esp = esp + 4; /* 0x38006942: add esp, 4 */
   6766     _flag_k = FK_ADD;
   6767 L_38006945:
   6768     eax = edi; /* 0x38006945: mov eax, edi */
   6769     edi = POP32_VAL(esp); /* 0x38006947: pop edi */
   6770     esi = POP32_VAL(esp); /* 0x38006948: pop esi */
   6771     ebx = POP32_VAL(esp); /* 0x38006949: pop ebx */
   6772     ebp = POP32_VAL(esp); /* 0x3800694A: pop ebp */
   6773     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800694B: ret 4 */
   6774 L_3800694E:
   6775     ecx = esi; /* 0x3800694E: mov ecx, esi */
   6776     RECOMP_ICALL(0x38006970u); /* 0x38006950: call 0x38006970 */ /* not lifted */
   6777     RECOMP_FLAGS_IN();
   6778     /* test LO8(ebx), 1 */ /* 0x38006955: test bl, 1 */
   6779     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   6780     _cf = 0;
   6781     _flag_k = FK_NARROW(FK_TEST, 24);
   6782     if (TEST_Z(_flag_a, _flag_b)) goto L_38006963; /* 0x38006958: je 0x38006963 */
   6783 L_3800695A:
   6784     PUSH32(esp, esi); /* 0x3800695A: push esi */
   6785     RECOMP_ICALL(0x3804B4F6u); /* 0x3800695B: call 0x3804b4f6 */ /* not lifted */
   6786     RECOMP_FLAGS_IN();
   6787     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6788     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6789     esp = esp + 4; /* 0x38006960: add esp, 4 */
   6790     _flag_k = FK_ADD;
   6791 L_38006963:
   6792     eax = esi; /* 0x38006963: mov eax, esi */
   6793     esi = POP32_VAL(esp); /* 0x38006965: pop esi */
   6794     ebx = POP32_VAL(esp); /* 0x38006966: pop ebx */
   6795     ebp = POP32_VAL(esp); /* 0x38006967: pop ebp */
   6796     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38006968: ret 4 */
   6797 L_3800A7D0:
   6798     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
   6799     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6800     ecx = ecx - 0x20u; /* 0x3800A7D0: sub ecx, 0x20 */
   6801     _flag_k = FK_CMP;
   6802     RECOMP_BACKEDGE();
   6803     goto L_38006910; /* 0x3800A7D3: jmp 0x38006910 */
   6804     { RECOMP_REGS_OUT(); return; } /* end of function */
   6805     RECOMP_REGS_OUT();
   6806 }
   6807 
   6808 void sub_3800A7E0(void) {
   6809     int _fpu_cmp = 0;
   6810     uint32_t _cf = 0;
   6811     int _df = 1;
   6812     uint32_t _flag_k = FK_NONE;
   6813     uint32_t _flag_a = 0, _flag_b = 0;
   6814     uint32_t _itail_tgt = 0;
   6815     RECOMP_REGS_LOCALS
   6816     RECOMP_ENTER(0x3800A7E0u);
   6817 
   6818     goto L_3800A7E0;
   6819 L_38006910:
   6820     PUSH32(esp, ebp); /* 0x38006910: push ebp */
   6821     ebp = esp; /* 0x38006911: mov ebp, esp */
   6822     PUSH32(esp, ebx); /* 0x38006913: push ebx */
   6823     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x38006914: mov bl, byte ptr [ebp + 8] */
   6824     /* test LO8(ebx), 2 */ /* 0x38006917: test bl, 2 */
   6825     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   6826     _cf = 0;
   6827     _flag_k = FK_NARROW(FK_TEST, 24);
   6828     PUSH32(esp, esi); /* 0x3800691A: push esi */
   6829     esi = ecx; /* 0x3800691B: mov esi, ecx */
   6830     if (TEST_Z(_flag_a, _flag_b)) goto L_3800694E; /* 0x3800691D: je 0x3800694e */
   6831 L_3800691F:
   6832     eax = MEM32(esi + (-0x4)); /* 0x3800691F: mov eax, dword ptr [esi - 4] */
   6833     PUSH32(esp, edi); /* 0x38006922: push edi */
   6834     PUSH32(esp, 0x38006970u); /* 0x38006923: push 0x38006970 */
   6835     edi = esi + (-0x4); /* 0x38006928: lea edi, [esi - 4] */
   6836     PUSH32(esp, eax); /* 0x3800692B: push eax */
   6837     PUSH32(esp, 0x1E4u); /* 0x3800692C: push 0x1e4 */
   6838     PUSH32(esp, esi); /* 0x38006931: push esi */
   6839     RECOMP_ICALL(0x3804B582u); /* 0x38006932: call 0x3804b582 */ /* not lifted */
   6840     RECOMP_FLAGS_IN();
   6841     /* test LO8(ebx), 1 */ /* 0x38006937: test bl, 1 */
   6842     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   6843     _cf = 0;
   6844     _flag_k = FK_NARROW(FK_TEST, 24);
   6845     if (TEST_Z(_flag_a, _flag_b)) goto L_38006945; /* 0x3800693A: je 0x38006945 */
   6846 L_3800693C:
   6847     PUSH32(esp, edi); /* 0x3800693C: push edi */
   6848     RECOMP_ICALL(0x3804B4F6u); /* 0x3800693D: call 0x3804b4f6 */ /* not lifted */
   6849     RECOMP_FLAGS_IN();
   6850     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6851     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6852     esp = esp + 4; /* 0x38006942: add esp, 4 */
   6853     _flag_k = FK_ADD;
   6854 L_38006945:
   6855     eax = edi; /* 0x38006945: mov eax, edi */
   6856     edi = POP32_VAL(esp); /* 0x38006947: pop edi */
   6857     esi = POP32_VAL(esp); /* 0x38006948: pop esi */
   6858     ebx = POP32_VAL(esp); /* 0x38006949: pop ebx */
   6859     ebp = POP32_VAL(esp); /* 0x3800694A: pop ebp */
   6860     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800694B: ret 4 */
   6861 L_3800694E:
   6862     ecx = esi; /* 0x3800694E: mov ecx, esi */
   6863     RECOMP_ICALL(0x38006970u); /* 0x38006950: call 0x38006970 */ /* not lifted */
   6864     RECOMP_FLAGS_IN();
   6865     /* test LO8(ebx), 1 */ /* 0x38006955: test bl, 1 */
   6866     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   6867     _cf = 0;
   6868     _flag_k = FK_NARROW(FK_TEST, 24);
   6869     if (TEST_Z(_flag_a, _flag_b)) goto L_38006963; /* 0x38006958: je 0x38006963 */
   6870 L_3800695A:
   6871     PUSH32(esp, esi); /* 0x3800695A: push esi */
   6872     RECOMP_ICALL(0x3804B4F6u); /* 0x3800695B: call 0x3804b4f6 */ /* not lifted */
   6873     RECOMP_FLAGS_IN();
   6874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6876     esp = esp + 4; /* 0x38006960: add esp, 4 */
   6877     _flag_k = FK_ADD;
   6878 L_38006963:
   6879     eax = esi; /* 0x38006963: mov eax, esi */
   6880     esi = POP32_VAL(esp); /* 0x38006965: pop esi */
   6881     ebx = POP32_VAL(esp); /* 0x38006966: pop ebx */
   6882     ebp = POP32_VAL(esp); /* 0x38006967: pop ebp */
   6883     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38006968: ret 4 */
   6884 L_3800A7E0:
   6885     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xB4u);
   6886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6887     ecx = ecx - 0xB4u; /* 0x3800A7E0: sub ecx, 0xb4 */
   6888     _flag_k = FK_CMP;
   6889     RECOMP_BACKEDGE();
   6890     goto L_38006910; /* 0x3800A7E6: jmp 0x38006910 */
   6891     { RECOMP_REGS_OUT(); return; } /* end of function */
   6892     RECOMP_REGS_OUT();
   6893 }
   6894 
   6895 void sub_3800A7F0(void) {
   6896     int _fpu_cmp = 0;
   6897     uint32_t _cf = 0;
   6898     int _df = 1;
   6899     uint32_t _flag_k = FK_NONE;
   6900     uint32_t _flag_a = 0, _flag_b = 0;
   6901     uint32_t _itail_tgt = 0;
   6902     RECOMP_REGS_LOCALS
   6903     RECOMP_ENTER(0x3800A7F0u);
   6904 
   6905 L_3800A7F0:
   6906     RECOMP_ICALL(0x3800A800u); /* 0x3800A7F0: call 0x3800a800 */ /* not lifted */
   6907     RECOMP_FLAGS_IN();
   6908     goto L_3800A810; /* 0x3800A7F5: jmp 0x3800a810 */
   6909 L_3800A810:
   6910     PUSH32(esp, 0x3800A820u); /* 0x3800A810: push 0x3800a820 */
   6911     RECOMP_ICALL(0x3804B54Cu); /* 0x3800A815: call 0x3804b54c */ /* not lifted */
   6912     RECOMP_FLAGS_IN();
   6913     ecx = POP32_VAL(esp); /* 0x3800A81A: pop ecx */
   6914     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A81B: ret  */
   6915     RECOMP_REGS_OUT();
   6916 }
   6917 
   6918 void sub_3800A800(void) {
   6919     int _fpu_cmp = 0;
   6920     uint32_t _cf = 0;
   6921     int _df = 1;
   6922     uint32_t _flag_k = FK_NONE;
   6923     uint32_t _flag_a = 0, _flag_b = 0;
   6924     uint32_t _itail_tgt = 0;
   6925     RECOMP_REGS_LOCALS
   6926     RECOMP_ENTER(0x3800A800u);
   6927 
   6928 L_3800A800:
   6929     ecx = 0x3806EA15u; /* 0x3800A800: mov ecx, 0x3806ea15 */
   6930 L_3800A805:
   6931     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
   6932     { RECOMP_REGS_OUT(); return; } /* end of function */
   6933   _ljump:
   6934     switch (_itail_tgt) {
   6935       case 0x3800A800u: goto L_3800A800;
   6936       case 0x3800A805u: goto L_3800A805;
   6937       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6938     }
   6939     RECOMP_REGS_OUT();
   6940 }
   6941 
   6942 void sub_3800A810(void) {
   6943     int _fpu_cmp = 0;
   6944     uint32_t _cf = 0;
   6945     int _df = 1;
   6946     uint32_t _flag_k = FK_NONE;
   6947     uint32_t _flag_a = 0, _flag_b = 0;
   6948     uint32_t _itail_tgt = 0;
   6949     RECOMP_REGS_LOCALS
   6950     RECOMP_ENTER(0x3800A810u);
   6951 
   6952 L_3800A810:
   6953     PUSH32(esp, 0x3800A820u); /* 0x3800A810: push 0x3800a820 */
   6954     RECOMP_ICALL(0x3804B54Cu); /* 0x3800A815: call 0x3804b54c */ /* not lifted */
   6955     RECOMP_FLAGS_IN();
   6956     ecx = POP32_VAL(esp); /* 0x3800A81A: pop ecx */
   6957     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A81B: ret  */
   6958     RECOMP_REGS_OUT();
   6959 }
   6960 
   6961 void sub_3800A820(void) {
   6962     int _fpu_cmp = 0;
   6963     uint32_t _cf = 0;
   6964     int _df = 1;
   6965     uint32_t _flag_k = FK_NONE;
   6966     uint32_t _flag_a = 0, _flag_b = 0;
   6967     uint32_t _itail_tgt = 0;
   6968     RECOMP_REGS_LOCALS
   6969     RECOMP_ENTER(0x3800A820u);
   6970 
   6971 L_3800A820:
   6972     ecx = 0x3806EA15u; /* 0x3800A820: mov ecx, 0x3806ea15 */
   6973 L_3800A825:
   6974     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
   6975     { RECOMP_REGS_OUT(); return; } /* end of function */
   6976   _ljump:
   6977     switch (_itail_tgt) {
   6978       case 0x3800A820u: goto L_3800A820;
   6979       case 0x3800A825u: goto L_3800A825;
   6980       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6981     }
   6982     RECOMP_REGS_OUT();
   6983 }
   6984 
   6985 void sub_3800A830(void) {
   6986     int _fpu_cmp = 0;
   6987     uint32_t _cf = 0;
   6988     int _df = 1;
   6989     uint32_t _flag_k = FK_NONE;
   6990     uint32_t _flag_a = 0, _flag_b = 0;
   6991     uint32_t _itail_tgt = 0;
   6992     RECOMP_REGS_LOCALS
   6993     RECOMP_ENTER(0x3800A830u);
   6994 
   6995 L_3800A830:
   6996     RECOMP_ICALL(0x3800A840u); /* 0x3800A830: call 0x3800a840 */ /* not lifted */
   6997     RECOMP_FLAGS_IN();
   6998     goto L_3800A850; /* 0x3800A835: jmp 0x3800a850 */
   6999 L_3800A850:
   7000     PUSH32(esp, 0x3800A860u); /* 0x3800A850: push 0x3800a860 */
   7001     RECOMP_ICALL(0x3804B54Cu); /* 0x3800A855: call 0x3804b54c */ /* not lifted */
   7002     RECOMP_FLAGS_IN();
   7003     ecx = POP32_VAL(esp); /* 0x3800A85A: pop ecx */
   7004     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A85B: ret  */
   7005     RECOMP_REGS_OUT();
   7006 }
   7007 
   7008 void sub_3800A840(void) {
   7009     int _fpu_cmp = 0;
   7010     uint32_t _cf = 0;
   7011     int _df = 1;
   7012     uint32_t _flag_k = FK_NONE;
   7013     uint32_t _flag_a = 0, _flag_b = 0;
   7014     uint32_t _itail_tgt = 0;
   7015     RECOMP_REGS_LOCALS
   7016     RECOMP_ENTER(0x3800A840u);
   7017 
   7018 L_3800A840:
   7019     ecx = 0x3806EA14u; /* 0x3800A840: mov ecx, 0x3806ea14 */
   7020 L_3800A845:
   7021     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
   7022     { RECOMP_REGS_OUT(); return; } /* end of function */
   7023   _ljump:
   7024     switch (_itail_tgt) {
   7025       case 0x3800A840u: goto L_3800A840;
   7026       case 0x3800A845u: goto L_3800A845;
   7027       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7028     }
   7029     RECOMP_REGS_OUT();
   7030 }
   7031 
   7032 void sub_3800A850(void) {
   7033     int _fpu_cmp = 0;
   7034     uint32_t _cf = 0;
   7035     int _df = 1;
   7036     uint32_t _flag_k = FK_NONE;
   7037     uint32_t _flag_a = 0, _flag_b = 0;
   7038     uint32_t _itail_tgt = 0;
   7039     RECOMP_REGS_LOCALS
   7040     RECOMP_ENTER(0x3800A850u);
   7041 
   7042 L_3800A850:
   7043     PUSH32(esp, 0x3800A860u); /* 0x3800A850: push 0x3800a860 */
   7044     RECOMP_ICALL(0x3804B54Cu); /* 0x3800A855: call 0x3804b54c */ /* not lifted */
   7045     RECOMP_FLAGS_IN();
   7046     ecx = POP32_VAL(esp); /* 0x3800A85A: pop ecx */
   7047     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A85B: ret  */
   7048     RECOMP_REGS_OUT();
   7049 }
   7050 
   7051 void sub_3800A860(void) {
   7052     int _fpu_cmp = 0;
   7053     uint32_t _cf = 0;
   7054     int _df = 1;
   7055     uint32_t _flag_k = FK_NONE;
   7056     uint32_t _flag_a = 0, _flag_b = 0;
   7057     uint32_t _itail_tgt = 0;
   7058     RECOMP_REGS_LOCALS
   7059     RECOMP_ENTER(0x3800A860u);
   7060 
   7061 L_3800A860:
   7062     ecx = 0x3806EA14u; /* 0x3800A860: mov ecx, 0x3806ea14 */
   7063 L_3800A865:
   7064     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
   7065     { RECOMP_REGS_OUT(); return; } /* end of function */
   7066   _ljump:
   7067     switch (_itail_tgt) {
   7068       case 0x3800A860u: goto L_3800A860;
   7069       case 0x3800A865u: goto L_3800A865;
   7070       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7071     }
   7072     RECOMP_REGS_OUT();
   7073 }
   7074 
   7075 void sub_3800A870(void) {
   7076     int _fpu_cmp = 0;
   7077     uint32_t _cf = 0;
   7078     int _df = 1;
   7079     uint32_t _flag_k = FK_NONE;
   7080     uint32_t _flag_a = 0, _flag_b = 0;
   7081     uint32_t _itail_tgt = 0;
   7082     RECOMP_REGS_LOCALS
   7083     RECOMP_ENTER(0x3800A870u);
   7084 
   7085 L_3800A870:
   7086     PUSH32(esp, ebp); /* 0x3800A870: push ebp */
   7087     ebp = esp; /* 0x3800A871: mov ebp, esp */
   7088     PUSH32(esp, esi); /* 0x3800A873: push esi */
   7089     esi = ecx; /* 0x3800A874: mov esi, ecx */
   7090     RECOMP_ICALL(MEM32(0x3804E3D0)); /* 0x3800A876: call dword ptr [0x3804e3d0] */
   7091     RECOMP_FLAGS_IN();
   7092     eax = MEM32(ebp + 0x8); /* 0x3800A87C: mov eax, dword ptr [ebp + 8] */
   7093     MEM32(esi + 0x24) = 0x3804EBA4u; /* 0x3800A87F: mov dword ptr [esi + 0x24], 0x3804eba4 */
   7094     MEM32(esi + 0x28) = eax; /* 0x3800A886: mov dword ptr [esi + 0x28], eax */
   7095     MEM32(esi) = 0x3804EC20u; /* 0x3800A889: mov dword ptr [esi], 0x3804ec20 */
   7096     MEM32(esi + 0x24) = 0x3804EC18u; /* 0x3800A88F: mov dword ptr [esi + 0x24], 0x3804ec18 */
   7097     eax = esi; /* 0x3800A896: mov eax, esi */
   7098     esi = POP32_VAL(esp); /* 0x3800A898: pop esi */
   7099     ebp = POP32_VAL(esp); /* 0x3800A899: pop ebp */
   7100     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800A89A: ret 4 */
   7101     RECOMP_REGS_OUT();
   7102 }
   7103 
   7104 void sub_3800A89A(void) {
   7105     int _fpu_cmp = 0;
   7106     uint32_t _cf = 0;
   7107     int _df = 1;
   7108     uint32_t _flag_k = FK_NONE;
   7109     uint32_t _flag_a = 0, _flag_b = 0;
   7110     uint32_t _itail_tgt = 0;
   7111     RECOMP_REGS_LOCALS
   7112     RECOMP_ENTER(0x3800A89Au);
   7113 
   7114 L_3800A89A:
   7115     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800A89A: ret 4 */
   7116     RECOMP_REGS_OUT();
   7117 }
   7118 
   7119 void sub_3800A8A0(void) {
   7120     int _fpu_cmp = 0;
   7121     uint32_t _cf = 0;
   7122     int _df = 1;
   7123     uint32_t _flag_k = FK_NONE;
   7124     uint32_t _flag_a = 0, _flag_b = 0;
   7125     uint32_t _itail_tgt = 0;
   7126     RECOMP_REGS_LOCALS
   7127     RECOMP_ENTER(0x3800A8A0u);
   7128 
   7129 L_3800A8A0:
   7130     PUSH32(esp, ebp); /* 0x3800A8A0: push ebp */
   7131     ebp = esp; /* 0x3800A8A1: mov ebp, esp */
   7132     PUSH32(esp, 0xFFFFFFFFu); /* 0x3800A8A3: push -1 */
   7133     PUSH32(esp, 0x3804BB3Bu); /* 0x3800A8A5: push 0x3804bb3b */
   7134     eax = MEM32(FS_BASE + (0)); /* 0x3800A8AA: mov eax, dword ptr fs:[0] */
   7135     PUSH32(esp, eax); /* 0x3800A8B0: push eax */
   7136     MEM32(FS_BASE + (0)) = esp; /* 0x3800A8B1: mov dword ptr fs:[0], esp */
   7137     PUSH32(esp, ecx); /* 0x3800A8B8: push ecx */
   7138     PUSH32(esp, esi); /* 0x3800A8B9: push esi */
   7139     PUSH32(esp, 0x2Cu); /* 0x3800A8BA: push 0x2c */
   7140     esi = ecx; /* 0x3800A8BC: mov esi, ecx */
   7141     RECOMP_ICALL(0x3804B676u); /* 0x3800A8BE: call 0x3804b676 */ /* not lifted */
   7142     RECOMP_FLAGS_IN();
   7143     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7144     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7145     esp = esp + 4; /* 0x3800A8C3: add esp, 4 */
   7146     _flag_k = FK_ADD;
   7147     MEM32(ebp + (-0x10)) = eax; /* 0x3800A8C6: mov dword ptr [ebp - 0x10], eax */
   7148     /* test eax, eax */ /* 0x3800A8C9: test eax, eax */
   7149     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7150     _cf = 0;
   7151     _flag_k = FK_TEST;
   7152     MEM32(ebp + (-0x4)) = 0; /* 0x3800A8CB: mov dword ptr [ebp - 4], 0 */
   7153     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A8EE; /* 0x3800A8D2: je 0x3800a8ee */
   7154 L_3800A8D4:
   7155     ecx = MEM32(esi + 0x28); /* 0x3800A8D4: mov ecx, dword ptr [esi + 0x28] */
   7156     PUSH32(esp, ecx); /* 0x3800A8D7: push ecx */
   7157     ecx = eax; /* 0x3800A8D8: mov ecx, eax */
   7158     RECOMP_ICALL(0x3800A870u); /* 0x3800A8DA: call 0x3800a870 */ /* not lifted */
   7159     RECOMP_FLAGS_IN();
   7160     esi = POP32_VAL(esp); /* 0x3800A8DF: pop esi */
   7161     ecx = MEM32(ebp + (-0xC)); /* 0x3800A8E0: mov ecx, dword ptr [ebp - 0xc] */
   7162     MEM32(FS_BASE + (0)) = ecx; /* 0x3800A8E3: mov dword ptr fs:[0], ecx */
   7163     esp = ebp; /* 0x3800A8EA: mov esp, ebp */
   7164     ebp = POP32_VAL(esp); /* 0x3800A8EC: pop ebp */
   7165     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A8ED: ret  */
   7166 L_3800A8EE:
   7167     ecx = MEM32(ebp + (-0xC)); /* 0x3800A8EE: mov ecx, dword ptr [ebp - 0xc] */
   7168     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7169     eax = 0; /* 0x3800A8F1: xor eax, eax */
   7170     _cf = 0;
   7171     _flag_k = FK_TEST;
   7172     esi = POP32_VAL(esp); /* 0x3800A8F3: pop esi */
   7173     MEM32(FS_BASE + (0)) = ecx; /* 0x3800A8F4: mov dword ptr fs:[0], ecx */
   7174     esp = ebp; /* 0x3800A8FB: mov esp, ebp */
   7175     ebp = POP32_VAL(esp); /* 0x3800A8FD: pop ebp */
   7176     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A8FE: ret  */
   7177     RECOMP_REGS_OUT();
   7178 }
   7179 
   7180 void sub_3800A900(void) {
   7181     int _fpu_cmp = 0;
   7182     uint32_t _cf = 0;
   7183     int _df = 1;
   7184     uint32_t _flag_k = FK_NONE;
   7185     uint32_t _flag_a = 0, _flag_b = 0;
   7186     uint32_t _itail_tgt = 0;
   7187     RECOMP_REGS_LOCALS
   7188     RECOMP_ENTER(0x3800A900u);
   7189 
   7190 L_3800A900:
   7191     PUSH32(esp, ebp); /* 0x3800A900: push ebp */
   7192     ebp = esp; /* 0x3800A901: mov ebp, esp */
   7193     PUSH32(esp, esi); /* 0x3800A903: push esi */
   7194     esi = ecx; /* 0x3800A904: mov esi, ecx */
   7195     RECOMP_ICALL(0x3800A930u); /* 0x3800A906: call 0x3800a930 */ /* not lifted */
   7196     RECOMP_FLAGS_IN();
   7197     /* test MEM8(ebp + 0x8), 1 */ /* 0x3800A90B: test byte ptr [ebp + 8], 1 */
   7198     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7199     _cf = 0;
   7200     _flag_k = FK_NARROW(FK_TEST, 24);
   7201     if (TEST_Z(_flag_a, _flag_b)) goto L_3800A91A; /* 0x3800A90F: je 0x3800a91a */
   7202 L_3800A911:
   7203     PUSH32(esp, esi); /* 0x3800A911: push esi */
   7204     RECOMP_ICALL(0x3804B4F6u); /* 0x3800A912: call 0x3804b4f6 */ /* not lifted */
   7205     RECOMP_FLAGS_IN();
   7206     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7207     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7208     esp = esp + 4; /* 0x3800A917: add esp, 4 */
   7209     _flag_k = FK_ADD;
   7210 L_3800A91A:
   7211     eax = esi; /* 0x3800A91A: mov eax, esi */
   7212     esi = POP32_VAL(esp); /* 0x3800A91C: pop esi */
   7213     ebp = POP32_VAL(esp); /* 0x3800A91D: pop ebp */
   7214     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800A91E: ret 4 */
   7215     RECOMP_REGS_OUT();
   7216 }
   7217 
   7218 void sub_3800A930(void) {
   7219     int _fpu_cmp = 0;
   7220     uint32_t _cf = 0;
   7221     int _df = 1;
   7222     uint32_t _flag_k = FK_NONE;
   7223     uint32_t _flag_a = 0, _flag_b = 0;
   7224     uint32_t _itail_tgt = 0;
   7225     RECOMP_REGS_LOCALS
   7226     RECOMP_ENTER(0x3800A930u);
   7227 
   7228 L_3800A930:
   7229     MEM32(ecx) = 0x3804EC20u; /* 0x3800A930: mov dword ptr [ecx], 0x3804ec20 */
   7230 L_3800A936:
   7231     MEM32(ecx + 0x24) = 0x3804EC18u; /* 0x3800A936: mov dword ptr [ecx + 0x24], 0x3804ec18 */
   7232 L_3800A93D:
   7233     { _itail_tgt = (uint32_t)(MEM32(0x3804E3D4)); goto _ljump; }
   7234     { RECOMP_REGS_OUT(); return; } /* end of function */
   7235   _ljump:
   7236     switch (_itail_tgt) {
   7237       case 0x3800A930u: goto L_3800A930;
   7238       case 0x3800A936u: goto L_3800A936;
   7239       case 0x3800A93Du: goto L_3800A93D;
   7240       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7241     }
   7242     RECOMP_REGS_OUT();
   7243 }
   7244 
   7245 void sub_3800A950(void) {
   7246     int _fpu_cmp = 0;
   7247     uint32_t _cf = 0;
   7248     int _df = 1;
   7249     uint32_t _flag_k = FK_NONE;
   7250     uint32_t _flag_a = 0, _flag_b = 0;
   7251     uint32_t _itail_tgt = 0;
   7252     RECOMP_REGS_LOCALS
   7253     RECOMP_ENTER(0x3800A950u);
   7254 
   7255 L_3800A950:
   7256     PUSH32(esp, esi); /* 0x3800A950: push esi */
   7257     esi = ecx; /* 0x3800A951: mov esi, ecx */
   7258     ecx = MEM32(esi + 0x28); /* 0x3800A953: mov ecx, dword ptr [esi + 0x28] */
   7259     RECOMP_ICALL(0x38007B80u); /* 0x3800A956: call 0x38007b80 */ /* not lifted */
   7260     RECOMP_FLAGS_IN();
   7261     edx = MEM32(eax); /* 0x3800A95B: mov edx, dword ptr [eax] */
   7262     ecx = esi + 0x18; /* 0x3800A95D: lea ecx, [esi + 0x18] */
   7263     MEM32(ecx) = edx; /* 0x3800A960: mov dword ptr [ecx], edx */
   7264     edx = MEM32(eax + 0x4); /* 0x3800A962: mov edx, dword ptr [eax + 4] */
   7265     MEM32(ecx + 0x4) = edx; /* 0x3800A965: mov dword ptr [ecx + 4], edx */
   7266     eax = MEM32(eax + 0x8); /* 0x3800A968: mov eax, dword ptr [eax + 8] */
   7267     MEM32(ecx + 0x8) = eax; /* 0x3800A96B: mov dword ptr [ecx + 8], eax */
   7268     ecx = MEM32(esi + 0x28); /* 0x3800A96E: mov ecx, dword ptr [esi + 0x28] */
   7269     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u);
   7270     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7271     ecx = ecx + 0x138u; /* 0x3800A971: add ecx, 0x138 */
   7272     _flag_k = FK_ADD;
   7273     edx = MEM32(ecx); /* 0x3800A977: mov edx, dword ptr [ecx] */
   7274     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   7275     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7276     esi = esi + 4; /* 0x3800A979: add esi, 4 */
   7277     _flag_k = FK_ADD;
   7278     MEM32(esi) = edx; /* 0x3800A97C: mov dword ptr [esi], edx */
   7279     eax = MEM32(ecx + 0x4); /* 0x3800A97E: mov eax, dword ptr [ecx + 4] */
   7280     MEM32(esi + 0x4) = eax; /* 0x3800A981: mov dword ptr [esi + 4], eax */
   7281     ecx = MEM32(ecx + 0x8); /* 0x3800A984: mov ecx, dword ptr [ecx + 8] */
   7282     MEM32(esi + 0x8) = ecx; /* 0x3800A987: mov dword ptr [esi + 8], ecx */
   7283     SET_LO8(eax, 1); /* 0x3800A98A: mov al, 1 */
   7284     esi = POP32_VAL(esp); /* 0x3800A98C: pop esi */
   7285     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A98D: ret  */
   7286     RECOMP_REGS_OUT();
   7287 }
   7288 
   7289 void sub_3800A990(void) {
   7290     int _fpu_cmp = 0;
   7291     uint32_t _cf = 0;
   7292     int _df = 1;
   7293     uint32_t _flag_k = FK_NONE;
   7294     uint32_t _flag_a = 0, _flag_b = 0;
   7295     uint32_t _itail_tgt = 0;
   7296     RECOMP_REGS_LOCALS
   7297     RECOMP_ENTER(0x3800A990u);
   7298 
   7299 L_3800A990:
   7300     PUSH32(esp, esi); /* 0x3800A990: push esi */
   7301     esi = ecx; /* 0x3800A991: mov esi, ecx */
   7302     ecx = MEM32(esi + 0x4); /* 0x3800A993: mov ecx, dword ptr [esi + 4] */
   7303     RECOMP_ICALL(0x38007B80u); /* 0x3800A996: call 0x38007b80 */ /* not lifted */
   7304     RECOMP_FLAGS_IN();
   7305     edx = MEM32(eax); /* 0x3800A99B: mov edx, dword ptr [eax] */
   7306     ecx = esi + (-0xC); /* 0x3800A99D: lea ecx, [esi - 0xc] */
   7307     MEM32(ecx) = edx; /* 0x3800A9A0: mov dword ptr [ecx], edx */
   7308     edx = MEM32(eax + 0x4); /* 0x3800A9A2: mov edx, dword ptr [eax + 4] */
   7309     MEM32(ecx + 0x4) = edx; /* 0x3800A9A5: mov dword ptr [ecx + 4], edx */
   7310     eax = MEM32(eax + 0x8); /* 0x3800A9A8: mov eax, dword ptr [eax + 8] */
   7311     MEM32(ecx + 0x8) = eax; /* 0x3800A9AB: mov dword ptr [ecx + 8], eax */
   7312     ecx = MEM32(esi + 0x4); /* 0x3800A9AE: mov ecx, dword ptr [esi + 4] */
   7313     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u);
   7314     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7315     ecx = ecx + 0x138u; /* 0x3800A9B1: add ecx, 0x138 */
   7316     _flag_k = FK_ADD;
   7317     edx = MEM32(ecx); /* 0x3800A9B7: mov edx, dword ptr [ecx] */
   7318     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFE0u);
   7319     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7320     esi = esi + 0xFFFFFFE0u; /* 0x3800A9B9: add esi, -0x20 */
   7321     _flag_k = FK_ADD;
   7322     MEM32(esi) = edx; /* 0x3800A9BC: mov dword ptr [esi], edx */
   7323     eax = MEM32(ecx + 0x4); /* 0x3800A9BE: mov eax, dword ptr [ecx + 4] */
   7324     MEM32(esi + 0x4) = eax; /* 0x3800A9C1: mov dword ptr [esi + 4], eax */
   7325     ecx = MEM32(ecx + 0x8); /* 0x3800A9C4: mov ecx, dword ptr [ecx + 8] */
   7326     MEM32(esi + 0x8) = ecx; /* 0x3800A9C7: mov dword ptr [esi + 8], ecx */
   7327     esi = POP32_VAL(esp); /* 0x3800A9CA: pop esi */
   7328     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800A9CB: ret 4 */
   7329     RECOMP_REGS_OUT();
   7330 }
   7331 
   7332 void sub_3800A9D0(void) {
   7333     int _fpu_cmp = 0;
   7334     uint32_t _cf = 0;
   7335     int _df = 1;
   7336     uint32_t _flag_k = FK_NONE;
   7337     uint32_t _flag_a = 0, _flag_b = 0;
   7338     uint32_t _itail_tgt = 0;
   7339     RECOMP_REGS_LOCALS
   7340     RECOMP_ENTER(0x3800A9D0u);
   7341 
   7342 L_3800A9D0:
   7343     RECOMP_ICALL(0x3800A9E0u); /* 0x3800A9D0: call 0x3800a9e0 */ /* not lifted */
   7344     RECOMP_FLAGS_IN();
   7345     goto L_3800A9F0; /* 0x3800A9D5: jmp 0x3800a9f0 */
   7346 L_3800A9F0:
   7347     PUSH32(esp, 0x3800AA00u); /* 0x3800A9F0: push 0x3800aa00 */
   7348     RECOMP_ICALL(0x3804B54Cu); /* 0x3800A9F5: call 0x3804b54c */ /* not lifted */
   7349     RECOMP_FLAGS_IN();
   7350     ecx = POP32_VAL(esp); /* 0x3800A9FA: pop ecx */
   7351     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A9FB: ret  */
   7352     RECOMP_REGS_OUT();
   7353 }
   7354 
   7355 void sub_3800A9E0(void) {
   7356     int _fpu_cmp = 0;
   7357     uint32_t _cf = 0;
   7358     int _df = 1;
   7359     uint32_t _flag_k = FK_NONE;
   7360     uint32_t _flag_a = 0, _flag_b = 0;
   7361     uint32_t _itail_tgt = 0;
   7362     RECOMP_REGS_LOCALS
   7363     RECOMP_ENTER(0x3800A9E0u);
   7364 
   7365 L_3800A9E0:
   7366     ecx = 0x3806EA19u; /* 0x3800A9E0: mov ecx, 0x3806ea19 */
   7367 L_3800A9E5:
   7368     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
   7369     { RECOMP_REGS_OUT(); return; } /* end of function */
   7370   _ljump:
   7371     switch (_itail_tgt) {
   7372       case 0x3800A9E0u: goto L_3800A9E0;
   7373       case 0x3800A9E5u: goto L_3800A9E5;
   7374       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7375     }
   7376     RECOMP_REGS_OUT();
   7377 }
   7378 
   7379 void sub_3800A9F0(void) {
   7380     int _fpu_cmp = 0;
   7381     uint32_t _cf = 0;
   7382     int _df = 1;
   7383     uint32_t _flag_k = FK_NONE;
   7384     uint32_t _flag_a = 0, _flag_b = 0;
   7385     uint32_t _itail_tgt = 0;
   7386     RECOMP_REGS_LOCALS
   7387     RECOMP_ENTER(0x3800A9F0u);
   7388 
   7389 L_3800A9F0:
   7390     PUSH32(esp, 0x3800AA00u); /* 0x3800A9F0: push 0x3800aa00 */
   7391     RECOMP_ICALL(0x3804B54Cu); /* 0x3800A9F5: call 0x3804b54c */ /* not lifted */
   7392     RECOMP_FLAGS_IN();
   7393     ecx = POP32_VAL(esp); /* 0x3800A9FA: pop ecx */
   7394     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800A9FB: ret  */
   7395     RECOMP_REGS_OUT();
   7396 }
   7397 
   7398 void sub_3800AA00(void) {
   7399     int _fpu_cmp = 0;
   7400     uint32_t _cf = 0;
   7401     int _df = 1;
   7402     uint32_t _flag_k = FK_NONE;
   7403     uint32_t _flag_a = 0, _flag_b = 0;
   7404     uint32_t _itail_tgt = 0;
   7405     RECOMP_REGS_LOCALS
   7406     RECOMP_ENTER(0x3800AA00u);
   7407 
   7408 L_3800AA00:
   7409     ecx = 0x3806EA19u; /* 0x3800AA00: mov ecx, 0x3806ea19 */
   7410 L_3800AA05:
   7411     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
   7412     { RECOMP_REGS_OUT(); return; } /* end of function */
   7413   _ljump:
   7414     switch (_itail_tgt) {
   7415       case 0x3800AA00u: goto L_3800AA00;
   7416       case 0x3800AA05u: goto L_3800AA05;
   7417       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7418     }
   7419     RECOMP_REGS_OUT();
   7420 }
   7421 
   7422 void sub_3800AA10(void) {
   7423     int _fpu_cmp = 0;
   7424     uint32_t _cf = 0;
   7425     int _df = 1;
   7426     uint32_t _flag_k = FK_NONE;
   7427     uint32_t _flag_a = 0, _flag_b = 0;
   7428     uint32_t _itail_tgt = 0;
   7429     RECOMP_REGS_LOCALS
   7430     RECOMP_ENTER(0x3800AA10u);
   7431 
   7432 L_3800AA10:
   7433     RECOMP_ICALL(0x3800AA20u); /* 0x3800AA10: call 0x3800aa20 */ /* not lifted */
   7434     RECOMP_FLAGS_IN();
   7435     goto L_3800AA30; /* 0x3800AA15: jmp 0x3800aa30 */
   7436 L_3800AA30:
   7437     PUSH32(esp, 0x3800AA40u); /* 0x3800AA30: push 0x3800aa40 */
   7438     RECOMP_ICALL(0x3804B54Cu); /* 0x3800AA35: call 0x3804b54c */ /* not lifted */
   7439     RECOMP_FLAGS_IN();
   7440     ecx = POP32_VAL(esp); /* 0x3800AA3A: pop ecx */
   7441     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800AA3B: ret  */
   7442     RECOMP_REGS_OUT();
   7443 }
   7444 
   7445 void sub_3800AA20(void) {
   7446     int _fpu_cmp = 0;
   7447     uint32_t _cf = 0;
   7448     int _df = 1;
   7449     uint32_t _flag_k = FK_NONE;
   7450     uint32_t _flag_a = 0, _flag_b = 0;
   7451     uint32_t _itail_tgt = 0;
   7452     RECOMP_REGS_LOCALS
   7453     RECOMP_ENTER(0x3800AA20u);
   7454 
   7455 L_3800AA20:
   7456     ecx = 0x3806EA18u; /* 0x3800AA20: mov ecx, 0x3806ea18 */
   7457 L_3800AA25:
   7458     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
   7459     { RECOMP_REGS_OUT(); return; } /* end of function */
   7460   _ljump:
   7461     switch (_itail_tgt) {
   7462       case 0x3800AA20u: goto L_3800AA20;
   7463       case 0x3800AA25u: goto L_3800AA25;
   7464       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7465     }
   7466     RECOMP_REGS_OUT();
   7467 }
   7468 
   7469 void sub_3800AA30(void) {
   7470     int _fpu_cmp = 0;
   7471     uint32_t _cf = 0;
   7472     int _df = 1;
   7473     uint32_t _flag_k = FK_NONE;
   7474     uint32_t _flag_a = 0, _flag_b = 0;
   7475     uint32_t _itail_tgt = 0;
   7476     RECOMP_REGS_LOCALS
   7477     RECOMP_ENTER(0x3800AA30u);
   7478 
   7479 L_3800AA30:
   7480     PUSH32(esp, 0x3800AA40u); /* 0x3800AA30: push 0x3800aa40 */
   7481     RECOMP_ICALL(0x3804B54Cu); /* 0x3800AA35: call 0x3804b54c */ /* not lifted */
   7482     RECOMP_FLAGS_IN();
   7483     ecx = POP32_VAL(esp); /* 0x3800AA3A: pop ecx */
   7484     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800AA3B: ret  */
   7485     RECOMP_REGS_OUT();
   7486 }
   7487 
   7488 void sub_3800AA40(void) {
   7489     int _fpu_cmp = 0;
   7490     uint32_t _cf = 0;
   7491     int _df = 1;
   7492     uint32_t _flag_k = FK_NONE;
   7493     uint32_t _flag_a = 0, _flag_b = 0;
   7494     uint32_t _itail_tgt = 0;
   7495     RECOMP_REGS_LOCALS
   7496     RECOMP_ENTER(0x3800AA40u);
   7497 
   7498 L_3800AA40:
   7499     ecx = 0x3806EA18u; /* 0x3800AA40: mov ecx, 0x3806ea18 */
   7500 L_3800AA45:
   7501     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
   7502     { RECOMP_REGS_OUT(); return; } /* end of function */
   7503   _ljump:
   7504     switch (_itail_tgt) {
   7505       case 0x3800AA40u: goto L_3800AA40;
   7506       case 0x3800AA45u: goto L_3800AA45;
   7507       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7508     }
   7509     RECOMP_REGS_OUT();
   7510 }
   7511 
   7512 void sub_3800AA50(void) {
   7513     int _fpu_cmp = 0;
   7514     uint32_t _cf = 0;
   7515     int _df = 1;
   7516     uint32_t _flag_k = FK_NONE;
   7517     uint32_t _flag_a = 0, _flag_b = 0;
   7518     uint32_t _itail_tgt = 0;
   7519     RECOMP_REGS_LOCALS
   7520     RECOMP_ENTER(0x3800AA50u);
   7521 
   7522 L_3800AA50:
   7523     PUSH32(esp, ebp); /* 0x3800AA50: push ebp */
   7524     ebp = esp; /* 0x3800AA51: mov ebp, esp */
   7525     edx = MEM32(ebp + 0x8); /* 0x3800AA53: mov edx, dword ptr [ebp + 8] */
   7526     eax = ecx; /* 0x3800AA56: mov eax, ecx */
   7527     MEM32(eax) = 0x3804EAA0u; /* 0x3800AA58: mov dword ptr [eax], 0x3804eaa0 */
   7528     PUSH32(esp, esi); /* 0x3800AA5E: push esi */
   7529     esi = MEM32(edx); /* 0x3800AA5F: mov esi, dword ptr [edx] */
   7530     ecx = eax + 0x4; /* 0x3800AA61: lea ecx, [eax + 4] */
   7531     MEM32(ecx) = esi; /* 0x3800AA64: mov dword ptr [ecx], esi */
   7532     esi = MEM32(edx + 0x4); /* 0x3800AA66: mov esi, dword ptr [edx + 4] */
   7533     MEM32(ecx + 0x4) = esi; /* 0x3800AA69: mov dword ptr [ecx + 4], esi */
   7534     edx = MEM32(edx + 0x8); /* 0x3800AA6C: mov edx, dword ptr [edx + 8] */
   7535     MEM32(ecx + 0x8) = edx; /* 0x3800AA6F: mov dword ptr [ecx + 8], edx */
   7536     edx = MEM32(ebp + 0xC); /* 0x3800AA72: mov edx, dword ptr [ebp + 0xc] */
   7537     esi = MEM32(edx); /* 0x3800AA75: mov esi, dword ptr [edx] */
   7538     ecx = eax + 0x10; /* 0x3800AA77: lea ecx, [eax + 0x10] */
   7539     MEM32(ecx) = esi; /* 0x3800AA7A: mov dword ptr [ecx], esi */
   7540     esi = MEM32(edx + 0x4); /* 0x3800AA7C: mov esi, dword ptr [edx + 4] */
   7541     MEM32(ecx + 0x4) = esi; /* 0x3800AA7F: mov dword ptr [ecx + 4], esi */
   7542     esi = MEM32(edx + 0x8); /* 0x3800AA82: mov esi, dword ptr [edx + 8] */
   7543     MEM32(ecx + 0x8) = esi; /* 0x3800AA85: mov dword ptr [ecx + 8], esi */
   7544     edx = MEM32(edx + 0xC); /* 0x3800AA88: mov edx, dword ptr [edx + 0xc] */
   7545     MEM32(ecx + 0xC) = edx; /* 0x3800AA8B: mov dword ptr [ecx + 0xc], edx */
   7546     edx = MEM32(ebp + 0x10); /* 0x3800AA8E: mov edx, dword ptr [ebp + 0x10] */
   7547     esi = MEM32(edx); /* 0x3800AA91: mov esi, dword ptr [edx] */
   7548     ecx = eax + 0x20; /* 0x3800AA93: lea ecx, [eax + 0x20] */
   7549     MEM32(ecx) = esi; /* 0x3800AA96: mov dword ptr [ecx], esi */
   7550     esi = MEM32(edx + 0x4); /* 0x3800AA98: mov esi, dword ptr [edx + 4] */
   7551     MEM32(ecx + 0x4) = esi; /* 0x3800AA9B: mov dword ptr [ecx + 4], esi */
   7552     edx = MEM32(edx + 0x8); /* 0x3800AA9E: mov edx, dword ptr [edx + 8] */
   7553     MEM32(ecx + 0x8) = edx; /* 0x3800AAA1: mov dword ptr [ecx + 8], edx */
   7554     ecx = MEM32(ebp + 0x14); /* 0x3800AAA4: mov ecx, dword ptr [ebp + 0x14] */
   7555     SET_LO8(edx, MEM8(ebp + 0x18)); /* 0x3800AAA7: mov dl, byte ptr [ebp + 0x18] */
   7556     MEM32(eax + 0x2C) = ecx; /* 0x3800AAAA: mov dword ptr [eax + 0x2c], ecx */
   7557     SET_LO8(ecx, MEM8(ebp + 0x1C)); /* 0x3800AAAD: mov cl, byte ptr [ebp + 0x1c] */
   7558     MEM8(eax + 0x30) = (uint8_t)(LO8(edx)); /* 0x3800AAB0: mov byte ptr [eax + 0x30], dl */
   7559     MEM8(eax + 0x31) = (uint8_t)(LO8(ecx)); /* 0x3800AAB3: mov byte ptr [eax + 0x31], cl */
   7560     MEM32(eax) = 0x3804EC38u; /* 0x3800AAB6: mov dword ptr [eax], 0x3804ec38 */
   7561     esi = POP32_VAL(esp); /* 0x3800AABC: pop esi */
   7562     ebp = POP32_VAL(esp); /* 0x3800AABD: pop ebp */
   7563     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x3800AABE: ret 0x18 */
   7564     RECOMP_REGS_OUT();
   7565 }
   7566 
   7567 void sub_3800AAD0(void) {
   7568     int _fpu_cmp = 0;
   7569     uint32_t _cf = 0;
   7570     int _df = 1;
   7571     uint32_t _flag_k = FK_NONE;
   7572     uint32_t _flag_a = 0, _flag_b = 0;
   7573     uint32_t _itail_tgt = 0;
   7574     RECOMP_REGS_LOCALS
   7575     RECOMP_ENTER(0x3800AAD0u);
   7576 
   7577 L_3800AAD0:
   7578     PUSH32(esp, ebp); /* 0x3800AAD0: push ebp */
   7579     ebp = esp; /* 0x3800AAD1: mov ebp, esp */
   7580     PUSH32(esp, esi); /* 0x3800AAD3: push esi */
   7581     esi = ecx; /* 0x3800AAD4: mov esi, ecx */
   7582     RECOMP_ICALL(0x3800AB00u); /* 0x3800AAD6: call 0x3800ab00 */ /* not lifted */
   7583     RECOMP_FLAGS_IN();
   7584     /* test MEM8(ebp + 0x8), 1 */ /* 0x3800AADB: test byte ptr [ebp + 8], 1 */
   7585     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7586     _cf = 0;
   7587     _flag_k = FK_NARROW(FK_TEST, 24);
   7588     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AAEA; /* 0x3800AADF: je 0x3800aaea */
   7589 L_3800AAE1:
   7590     PUSH32(esp, esi); /* 0x3800AAE1: push esi */
   7591     RECOMP_ICALL(0x3804B4F6u); /* 0x3800AAE2: call 0x3804b4f6 */ /* not lifted */
   7592     RECOMP_FLAGS_IN();
   7593     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7594     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7595     esp = esp + 4; /* 0x3800AAE7: add esp, 4 */
   7596     _flag_k = FK_ADD;
   7597 L_3800AAEA:
   7598     eax = esi; /* 0x3800AAEA: mov eax, esi */
   7599     esi = POP32_VAL(esp); /* 0x3800AAEC: pop esi */
   7600     ebp = POP32_VAL(esp); /* 0x3800AAED: pop ebp */
   7601     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800AAEE: ret 4 */
   7602     RECOMP_REGS_OUT();
   7603 }
   7604 
   7605 void sub_3800AB00(void) {
   7606     int _fpu_cmp = 0;
   7607     uint32_t _cf = 0;
   7608     int _df = 1;
   7609     uint32_t _flag_k = FK_NONE;
   7610     uint32_t _flag_a = 0, _flag_b = 0;
   7611     uint32_t _itail_tgt = 0;
   7612     RECOMP_REGS_LOCALS
   7613     RECOMP_ENTER(0x3800AB00u);
   7614 
   7615 L_3800AB00:
   7616     MEM32(ecx) = 0x3804EAA0u; /* 0x3800AB00: mov dword ptr [ecx], 0x3804eaa0 */
   7617     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800AB06: ret  */
   7618     RECOMP_REGS_OUT();
   7619 }
   7620 
   7621 void sub_3800AB10(void) {
   7622     int _fpu_cmp = 0;
   7623     uint32_t _cf = 0;
   7624     int _df = 1;
   7625     uint32_t _flag_k = FK_NONE;
   7626     uint32_t _flag_a = 0, _flag_b = 0;
   7627     uint32_t _itail_tgt = 0;
   7628     RECOMP_REGS_LOCALS
   7629     RECOMP_ENTER(0x3800AB10u);
   7630 
   7631 L_3800AB10:
   7632     PUSH32(esp, ebp); /* 0x3800AB10: push ebp */
   7633     ebp = esp; /* 0x3800AB11: mov ebp, esp */
   7634     eax = MEM32(ebp + 0xC); /* 0x3800AB13: mov eax, dword ptr [ebp + 0xc] */
   7635     PUSH32(esp, 0x3DCCCCCDu); /* 0x3800AB16: push 0x3dcccccd */
   7636     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   7637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7638     ecx = ecx + 4; /* 0x3800AB1B: add ecx, 4 */
   7639     _flag_k = FK_ADD;
   7640     PUSH32(esp, eax); /* 0x3800AB1E: push eax */
   7641     PUSH32(esp, ecx); /* 0x3800AB1F: push ecx */
   7642     ecx = MEM32(ebp + 0x8); /* 0x3800AB20: mov ecx, dword ptr [ebp + 8] */
   7643     RECOMP_ICALL(MEM32(0x3804E6D8)); /* 0x3800AB23: call dword ptr [0x3804e6d8] */
   7644     RECOMP_FLAGS_IN();
   7645     ebp = POP32_VAL(esp); /* 0x3800AB29: pop ebp */
   7646     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3800AB2A: ret 8 */
   7647     RECOMP_REGS_OUT();
   7648 }
   7649 
   7650 void sub_3800AB30(void) {
   7651     int _fpu_cmp = 0;
   7652     uint32_t _cf = 0;
   7653     int _df = 1;
   7654     uint32_t _flag_k = FK_NONE;
   7655     uint32_t _flag_a = 0, _flag_b = 0;
   7656     uint32_t _itail_tgt = 0;
   7657     RECOMP_REGS_LOCALS
   7658     RECOMP_ENTER(0x3800AB30u);
   7659 
   7660 L_3800AB30:
   7661     PUSH32(esp, ebp); /* 0x3800AB30: push ebp */
   7662     ebp = esp; /* 0x3800AB31: mov ebp, esp */
   7663     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7664     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7665     esp = esp - 0x10u; /* 0x3800AB33: sub esp, 0x10 */
   7666     _flag_k = FK_CMP;
   7667     PUSH32(esp, ebx); /* 0x3800AB36: push ebx */
   7668     PUSH32(esp, esi); /* 0x3800AB37: push esi */
   7669     esi = ecx; /* 0x3800AB38: mov esi, ecx */
   7670     /* cmp MEM8(esi + 0x30), 1 */ /* 0x3800AB3A: cmp byte ptr [esi + 0x30], 1 */
   7671     _flag_a = (uint32_t)(MEM8(esi + 0x30)) << 24; _flag_b = (uint32_t)(1) << 24;
   7672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7673     _flag_k = FK_NARROW(FK_CMP, 24);
   7674     PUSH32(esp, edi); /* 0x3800AB3E: push edi */
   7675     MEM32(ebp + (-0x4)) = esi; /* 0x3800AB3F: mov dword ptr [ebp - 4], esi */
   7676     if (CMP_NE(_flag_a, _flag_b)) goto L_3800AB4F; /* 0x3800AB42: jne 0x3800ab4f */
   7677 L_3800AB44:
   7678     edi = POP32_VAL(esp); /* 0x3800AB44: pop edi */
   7679     esi = POP32_VAL(esp); /* 0x3800AB45: pop esi */
   7680     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7681     SET_LO8(eax, 0); /* 0x3800AB46: xor al, al */
   7682     _cf = 0;
   7683     _flag_k = FK_NARROW(FK_TEST, 24);
   7684     ebx = POP32_VAL(esp); /* 0x3800AB48: pop ebx */
   7685     esp = ebp; /* 0x3800AB49: mov esp, ebp */
   7686     ebp = POP32_VAL(esp); /* 0x3800AB4B: pop ebp */
   7687     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3800AB4C: ret 0xc */
   7688 L_3800AB4F:
   7689     RECOMP_ICALL(0x3801DA30u); /* 0x3800AB4F: call 0x3801da30 */ /* not lifted */
   7690     RECOMP_FLAGS_IN();
   7691     ebx = MEM32(ebp + 0x8); /* 0x3800AB54: mov ebx, dword ptr [ebp + 8] */
   7692     edi = eax; /* 0x3800AB57: mov edi, eax */
   7693     /* test edi, edi */ /* 0x3800AB59: test edi, edi */
   7694     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7695     _cf = 0;
   7696     _flag_k = FK_TEST;
   7697     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AB9E; /* 0x3800AB5B: je 0x3800ab9e */
   7698 L_3800AB5D:
   7699     PUSH32(esp, 0xFFFFFFFFu); /* 0x3800AB5D: push -1 */
   7700     eax = esi + 0x4; /* 0x3800AB5F: lea eax, [esi + 4] */
   7701     PUSH32(esp, eax); /* 0x3800AB62: push eax */
   7702     ecx = edi; /* 0x3800AB63: mov ecx, edi */
   7703     RECOMP_ICALL(0x3802B820u); /* 0x3800AB65: call 0x3802b820 */ /* not lifted */
   7704     RECOMP_FLAGS_IN();
   7705     /* test eax, eax */ /* 0x3800AB6A: test eax, eax */
   7706     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7707     _cf = 0;
   7708     _flag_k = FK_TEST;
   7709     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AB9E; /* 0x3800AB6C: je 0x3800ab9e */
   7710 L_3800AB6E:
   7711     esi = MEM32(eax + 0xC); /* 0x3800AB6E: mov esi, dword ptr [eax + 0xc] */
   7712     PUSH32(esp, esi); /* 0x3800AB71: push esi */
   7713     PUSH32(esp, ebx); /* 0x3800AB72: push ebx */
   7714     ecx = edi; /* 0x3800AB73: mov ecx, edi */
   7715     RECOMP_ICALL(0x3802B820u); /* 0x3800AB75: call 0x3802b820 */ /* not lifted */
   7716     RECOMP_FLAGS_IN();
   7717     /* test eax, eax */ /* 0x3800AB7A: test eax, eax */
   7718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7719     _cf = 0;
   7720     _flag_k = FK_TEST;
   7721     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AB9B; /* 0x3800AB7C: je 0x3800ab9b */
   7722 L_3800AB7E:
   7723     eax = MEM32(eax + 0xC); /* 0x3800AB7E: mov eax, dword ptr [eax + 0xc] */
   7724     /* cmp eax, esi */ /* 0x3800AB81: cmp eax, esi */
   7725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   7726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7727     _flag_k = FK_CMP;
   7728     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800AB9B; /* 0x3800AB83: je 0x3800ab9b */
   7729 L_3800AB85:
   7730     PUSH32(esp, eax); /* 0x3800AB85: push eax */
   7731     PUSH32(esp, esi); /* 0x3800AB86: push esi */
   7732     ecx = edi; /* 0x3800AB87: mov ecx, edi */
   7733     RECOMP_ICALL(0x3802BFD0u); /* 0x3800AB89: call 0x3802bfd0 */ /* not lifted */
   7734     RECOMP_FLAGS_IN();
   7735     /* test LO8(eax), LO8(eax) */ /* 0x3800AB8E: test al, al */
   7736     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7737     _cf = 0;
   7738     _flag_k = FK_NARROW(FK_TEST, 24);
   7739     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800AB9B; /* 0x3800AB90: jne 0x3800ab9b */
   7740 L_3800AB92:
   7741     edi = POP32_VAL(esp); /* 0x3800AB92: pop edi */
   7742     esi = POP32_VAL(esp); /* 0x3800AB93: pop esi */
   7743     ebx = POP32_VAL(esp); /* 0x3800AB94: pop ebx */
   7744     esp = ebp; /* 0x3800AB95: mov esp, ebp */
   7745     ebp = POP32_VAL(esp); /* 0x3800AB97: pop ebp */
   7746     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3800AB98: ret 0xc */
   7747 L_3800AB9B:
   7748     esi = MEM32(ebp + (-0x4)); /* 0x3800AB9B: mov esi, dword ptr [ebp - 4] */
   7749 L_3800AB9E:
   7750     ecx = MEM32(ebp + 0xC); /* 0x3800AB9E: mov ecx, dword ptr [ebp + 0xc] */
   7751     /* test ecx, ecx */ /* 0x3800ABA1: test ecx, ecx */
   7752     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7753     _cf = 0;
   7754     _flag_k = FK_TEST;
   7755     if (TEST_Z(_flag_a, _flag_b)) goto L_3800ABDB; /* 0x3800ABA3: je 0x3800abdb */
   7756 L_3800ABA5:
   7757     edx = MEM32(ecx); /* 0x3800ABA5: mov edx, dword ptr [ecx] */
   7758     PUSH32(esp, 0); /* 0x3800ABA7: push 0 */
   7759     PUSH32(esp, 0); /* 0x3800ABA9: push 0 */
   7760     eax = ebp + (-0x10); /* 0x3800ABAB: lea eax, [ebp - 0x10] */
   7761     PUSH32(esp, eax); /* 0x3800ABAE: push eax */
   7762     PUSH32(esp, ebx); /* 0x3800ABAF: push ebx */
   7763     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   7764     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7765     esi = esi + 4; /* 0x3800ABB0: add esi, 4 */
   7766     _flag_k = FK_ADD;
   7767     PUSH32(esp, esi); /* 0x3800ABB3: push esi */
   7768     MEM32(ebp + (-0x10)) = 0; /* 0x3800ABB4: mov dword ptr [ebp - 0x10], 0 */
   7769     MEM32(ebp + (-0xC)) = 0; /* 0x3800ABBB: mov dword ptr [ebp - 0xc], 0 */
   7770     MEM32(ebp + (-0x8)) = 0; /* 0x3800ABC2: mov dword ptr [ebp - 8], 0 */
   7771     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3800ABC9: call dword ptr [edx + 0xc] */
   7772     RECOMP_FLAGS_IN();
   7773     /* test LO8(eax), LO8(eax) */ /* 0x3800ABCC: test al, al */
   7774     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7775     _cf = 0;
   7776     _flag_k = FK_NARROW(FK_TEST, 24);
   7777     if (TEST_Z(_flag_a, _flag_b)) goto L_3800ABDB; /* 0x3800ABCE: je 0x3800abdb */
   7778 L_3800ABD0:
   7779     edi = POP32_VAL(esp); /* 0x3800ABD0: pop edi */
   7780     esi = POP32_VAL(esp); /* 0x3800ABD1: pop esi */
   7781     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7782     SET_LO8(eax, 0); /* 0x3800ABD2: xor al, al */
   7783     _cf = 0;
   7784     _flag_k = FK_NARROW(FK_TEST, 24);
   7785     ebx = POP32_VAL(esp); /* 0x3800ABD4: pop ebx */
   7786     esp = ebp; /* 0x3800ABD5: mov esp, ebp */
   7787     ebp = POP32_VAL(esp); /* 0x3800ABD7: pop ebp */
   7788     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3800ABD8: ret 0xc */
   7789 L_3800ABDB:
   7790     edi = POP32_VAL(esp); /* 0x3800ABDB: pop edi */
   7791     esi = POP32_VAL(esp); /* 0x3800ABDC: pop esi */
   7792     SET_LO8(eax, 1); /* 0x3800ABDD: mov al, 1 */
   7793     ebx = POP32_VAL(esp); /* 0x3800ABDF: pop ebx */
   7794     esp = ebp; /* 0x3800ABE0: mov esp, ebp */
   7795     ebp = POP32_VAL(esp); /* 0x3800ABE2: pop ebp */
   7796     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3800ABE3: ret 0xc */
   7797     RECOMP_REGS_OUT();
   7798 }
   7799 
   7800 void sub_3800ABF0(void) {
   7801     int _fpu_cmp = 0;
   7802     uint32_t _cf = 0;
   7803     int _df = 1;
   7804     uint32_t _flag_k = FK_NONE;
   7805     uint32_t _flag_a = 0, _flag_b = 0;
   7806     uint32_t _itail_tgt = 0;
   7807     RECOMP_REGS_LOCALS
   7808     RECOMP_ENTER(0x3800ABF0u);
   7809 
   7810 L_3800ABF0:
   7811     PUSH32(esp, ebp); /* 0x3800ABF0: push ebp */
   7812     ebp = esp; /* 0x3800ABF1: mov ebp, esp */
   7813     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u);
   7814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7815     esp = esp - 0x48u; /* 0x3800ABF3: sub esp, 0x48 */
   7816     _flag_k = FK_CMP;
   7817     eax = MEM32(ebp + 0x14); /* 0x3800ABF6: mov eax, dword ptr [ebp + 0x14] */
   7818     /* test eax, eax */ /* 0x3800ABF9: test eax, eax */
   7819     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7820     _cf = 0;
   7821     _flag_k = FK_TEST;
   7822     PUSH32(esp, esi); /* 0x3800ABFB: push esi */
   7823     esi = MEM32(ebp + 0x10); /* 0x3800ABFC: mov esi, dword ptr [ebp + 0x10] */
   7824     PUSH32(esp, edi); /* 0x3800ABFF: push edi */
   7825     edi = ecx; /* 0x3800AC00: mov edi, ecx */
   7826     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AC23; /* 0x3800AC02: je 0x3800ac23 */
   7827 L_3800AC04:
   7828     edx = MEM32(edi); /* 0x3800AC04: mov edx, dword ptr [edi] */
   7829     ecx = ebp + 0x10; /* 0x3800AC06: lea ecx, [ebp + 0x10] */
   7830     PUSH32(esp, ecx); /* 0x3800AC09: push ecx */
   7831     PUSH32(esp, eax); /* 0x3800AC0A: push eax */
   7832     PUSH32(esp, esi); /* 0x3800AC0B: push esi */
   7833     ecx = edi; /* 0x3800AC0C: mov ecx, edi */
   7834     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3800AC0E: call dword ptr [edx + 8] */
   7835     RECOMP_FLAGS_IN();
   7836     /* test LO8(eax), LO8(eax) */ /* 0x3800AC11: test al, al */
   7837     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7838     _cf = 0;
   7839     _flag_k = FK_NARROW(FK_TEST, 24);
   7840     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800AC23; /* 0x3800AC13: jne 0x3800ac23 */
   7841 L_3800AC15:
   7842     fp_push(*(float*)&MEM32(0x3804EC10)); /* 0x3800AC15: fld dword ptr [0x3804ec10] */
   7843     edi = POP32_VAL(esp); /* 0x3800AC1B: pop edi */
   7844     esi = POP32_VAL(esp); /* 0x3800AC1C: pop esi */
   7845     esp = ebp; /* 0x3800AC1D: mov esp, ebp */
   7846     ebp = POP32_VAL(esp); /* 0x3800AC1F: pop ebp */
   7847     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800AC20: ret 0x10 */
   7848 L_3800AC23:
   7849     PUSH32(esp, ebx); /* 0x3800AC23: push ebx */
   7850     ebx = edi + 0x4; /* 0x3800AC24: lea ebx, [edi + 4] */
   7851     edx = ebx; /* 0x3800AC27: mov edx, ebx */
   7852     eax = MEM32(edx); /* 0x3800AC29: mov eax, dword ptr [edx] */
   7853     ecx = MEM32(edx + 0x4); /* 0x3800AC2B: mov ecx, dword ptr [edx + 4] */
   7854     edx = MEM32(edx + 0x8); /* 0x3800AC2E: mov edx, dword ptr [edx + 8] */
   7855     MEM32(ebp + (-0x3C)) = eax; /* 0x3800AC31: mov dword ptr [ebp - 0x3c], eax */
   7856     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3800AC34: fld dword ptr [ebp - 0x3c] */
   7857     _st[0] -= (double)*(float*)ADDR(esi); /* 0x3800AC37: fsub dword ptr [esi] */
   7858     MEM32(ebp + (-0x38)) = ecx; /* 0x3800AC39: mov dword ptr [ebp - 0x38], ecx */
   7859     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3800AC3C: fld dword ptr [ebp - 0x38] */
   7860     MEM32(ebp + (-0x34)) = edx; /* 0x3800AC3F: mov dword ptr [ebp - 0x34], edx */
   7861     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x3800AC42: fsub dword ptr [esi + 4] */
   7862     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3800AC45: fld dword ptr [ebp - 0x34] */
   7863     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3800AC48: fsub dword ptr [esi + 8] */
   7864     fp_push(*(float*)&MEM32(ebx)); /* 0x3800AC4B: fld dword ptr [ebx] */
   7865     _st[0] -= (double)*(float*)ADDR(esi); /* 0x3800AC4D: fsub dword ptr [esi] */
   7866     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x3800AC4F: fld dword ptr [edi + 0xc] */
   7867     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3800AC52: fsub dword ptr [esi + 8] */
   7868     fp_push(_st[1]); /* 0x3800AC55: fld st(1) */
   7869     { double _v = fp_pop(); _st[1] *= _v; } /* 0x3800AC57: fmulp st(2) */
   7870     fp_push(_st[0]); /* 0x3800AC59: fld st(0) */
   7871     _st[0] *= _st[1]; /* 0x3800AC5B: fmul st(1) */
   7872     { double _v = fp_pop(); _st[1] += _v; } /* 0x3800AC5D: faddp st(2) */
   7873     fp_xch(1); /* 0x3800AC5F: fxch st(1) */
   7874     _st[0] = sqrt(_st[0]); /* 0x3800AC61: fsqrt  */
   7875     fp_xch(1); /* 0x3800AC63: fxch st(1) */
   7876     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800AC65: fstp st(0) */
   7877     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8BC)); /* 0x3800AC67: fcomp dword ptr [0x3804e8bc] */
   7878     fp_pop();
   7879     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800AC6D: fnstsw ax */
   7880     /* test HI8(eax), 1 */ /* 0x3800AC6F: test ah, 1 */
   7881     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7882     _cf = 0;
   7883     _flag_k = FK_NARROW(FK_TEST, 24);
   7884     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AC83; /* 0x3800AC72: je 0x3800ac83 */
   7885 L_3800AC74:
   7886     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800AC74: fstp st(0) */
   7887     MEM32(ebp + 0x10) = 0x461C4000u; /* 0x3800AC76: mov dword ptr [ebp + 0x10], 0x461c4000 */
   7888     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800AC7D: fstp st(0) */
   7889     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800AC7F: fstp st(0) */
   7890     goto L_3800AC9C; /* 0x3800AC81: jmp 0x3800ac9c */
   7891 L_3800AC83:
   7892     fp_push(_st[0]); /* 0x3800AC83: fld st(0) */
   7893     _st[0] *= _st[1]; /* 0x3800AC85: fmul st(1) */
   7894     fp_push(_st[2]); /* 0x3800AC87: fld st(2) */
   7895     _st[0] *= _st[3]; /* 0x3800AC89: fmul st(3) */
   7896     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AC8B: faddp st(1) */
   7897     fp_push(_st[3]); /* 0x3800AC8D: fld st(3) */
   7898     _st[0] *= _st[4]; /* 0x3800AC8F: fmul st(4) */
   7899     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AC91: faddp st(1) */
   7900     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x10) = _v; } /* 0x3800AC93: fstp dword ptr [ebp + 0x10] */
   7901     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800AC96: fstp st(0) */
   7902     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800AC98: fstp st(0) */
   7903     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800AC9A: fstp st(0) */
   7904 L_3800AC9C:
   7905     eax = edi + 0x20; /* 0x3800AC9C: lea eax, [edi + 0x20] */
   7906     ecx = MEM32(eax); /* 0x3800AC9F: mov ecx, dword ptr [eax] */
   7907     edx = MEM32(eax + 0x4); /* 0x3800ACA1: mov edx, dword ptr [eax + 4] */
   7908     eax = MEM32(eax + 0x8); /* 0x3800ACA4: mov eax, dword ptr [eax + 8] */
   7909     MEM32(ebp + (-0x3C)) = ecx; /* 0x3800ACA7: mov dword ptr [ebp - 0x3c], ecx */
   7910     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3800ACAA: fld dword ptr [ebp - 0x3c] */
   7911     _st[0] -= (double)*(float*)ADDR(esi); /* 0x3800ACAD: fsub dword ptr [esi] */
   7912     MEM32(ebp + (-0x38)) = edx; /* 0x3800ACAF: mov dword ptr [ebp - 0x38], edx */
   7913     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3800ACB2: fld dword ptr [ebp - 0x38] */
   7914     MEM32(ebp + (-0x34)) = eax; /* 0x3800ACB5: mov dword ptr [ebp - 0x34], eax */
   7915     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x3800ACB8: fsub dword ptr [esi + 4] */
   7916     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3800ACBB: fld dword ptr [ebp - 0x34] */
   7917     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3800ACBE: fsub dword ptr [esi + 8] */
   7918     fp_push(_st[0]); /* 0x3800ACC1: fld st(0) */
   7919     _st[0] *= _st[1]; /* 0x3800ACC3: fmul st(1) */
   7920     fp_push(_st[2]); /* 0x3800ACC5: fld st(2) */
   7921     _st[0] *= _st[3]; /* 0x3800ACC7: fmul st(3) */
   7922     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800ACC9: faddp st(1) */
   7923     fp_push(_st[3]); /* 0x3800ACCB: fld st(3) */
   7924     _st[0] *= _st[4]; /* 0x3800ACCD: fmul st(4) */
   7925     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800ACCF: faddp st(1) */
   7926     _st[0] = sqrt(_st[0]); /* 0x3800ACD1: fsqrt  */
   7927     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3800ACD3: fstp st(3) */
   7928     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800ACD5: fstp st(0) */
   7929     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800ACD7: fstp st(0) */
   7930     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x2C)); /* 0x3800ACD9: fcom dword ptr [edi + 0x2c] */
   7931     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800ACDC: fnstsw ax */
   7932     /* test HI8(eax), 0x41u */ /* 0x3800ACDE: test ah, 0x41 */
   7933     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7934     _cf = 0;
   7935     _flag_k = FK_NARROW(FK_TEST, 24);
   7936     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800ACF4; /* 0x3800ACE1: jne 0x3800acf4 */
   7937 L_3800ACE3:
   7938     _st[0] -= (double)*(float*)ADDR(edi + 0x2C); /* 0x3800ACE3: fsub dword ptr [edi + 0x2c] */
   7939     _st[0] *= (double)*(float*)ADDR(0x3804EBB4); /* 0x3800ACE6: fmul dword ptr [0x3804ebb4] */
   7940     _st[0] += (double)*(float*)ADDR(ebp + 0x10); /* 0x3800ACEC: fadd dword ptr [ebp + 0x10] */
   7941     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x10) = _v; } /* 0x3800ACEF: fstp dword ptr [ebp + 0x10] */
   7942     goto L_3800ACF6; /* 0x3800ACF2: jmp 0x3800acf6 */
   7943 L_3800ACF4:
   7944     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800ACF4: fstp st(0) */
   7945 L_3800ACF6:
   7946     ecx = MEM32(ebp + 0x8); /* 0x3800ACF6: mov ecx, dword ptr [ebp + 8] */
   7947     /* test ecx, ecx */ /* 0x3800ACF9: test ecx, ecx */
   7948     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7949     _cf = 0;
   7950     _flag_k = FK_TEST;
   7951     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AEF7; /* 0x3800ACFB: je 0x3800aef7 */
   7952 L_3800AD01:
   7953     RECOMP_ICALL(0x38003380u); /* 0x3800AD01: call 0x38003380 */ /* not lifted */
   7954     RECOMP_FLAGS_IN();
   7955     ecx = MEM32(eax); /* 0x3800AD06: mov ecx, dword ptr [eax] */
   7956     MEM32(ebp + (-0x3C)) = ecx; /* 0x3800AD08: mov dword ptr [ebp - 0x3c], ecx */
   7957     edx = MEM32(eax + 0x4); /* 0x3800AD0B: mov edx, dword ptr [eax + 4] */
   7958     MEM32(ebp + (-0x38)) = edx; /* 0x3800AD0E: mov dword ptr [ebp - 0x38], edx */
   7959     eax = MEM32(eax + 0x8); /* 0x3800AD11: mov eax, dword ptr [eax + 8] */
   7960     edx = MEM32(edi); /* 0x3800AD14: mov edx, dword ptr [edi] */
   7961     PUSH32(esp, esi); /* 0x3800AD16: push esi */
   7962     ecx = edi; /* 0x3800AD17: mov ecx, edi */
   7963     MEM32(ebp + (-0x34)) = eax; /* 0x3800AD19: mov dword ptr [ebp - 0x34], eax */
   7964     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x3800AD1C: call dword ptr [edx + 0x14] */
   7965     RECOMP_FLAGS_IN();
   7966     ecx = MEM32(eax); /* 0x3800AD1F: mov ecx, dword ptr [eax] */
   7967     edx = MEM32(eax + 0x4); /* 0x3800AD21: mov edx, dword ptr [eax + 4] */
   7968     eax = MEM32(eax + 0x8); /* 0x3800AD24: mov eax, dword ptr [eax + 8] */
   7969     MEM32(ebp + (-0x30)) = ecx; /* 0x3800AD27: mov dword ptr [ebp - 0x30], ecx */
   7970     MEM32(ebp + (-0x2C)) = edx; /* 0x3800AD2A: mov dword ptr [ebp - 0x2c], edx */
   7971     ecx = esi; /* 0x3800AD2D: mov ecx, esi */
   7972     edx = MEM32(ecx); /* 0x3800AD2F: mov edx, dword ptr [ecx] */
   7973     MEM32(ebp + (-0x18)) = edx; /* 0x3800AD31: mov dword ptr [ebp - 0x18], edx */
   7974     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3800AD34: fld dword ptr [ebp - 0x18] */
   7975     _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3800AD37: fsub dword ptr [ebp - 0x30] */
   7976     MEM32(ebp + (-0x28)) = eax; /* 0x3800AD3A: mov dword ptr [ebp - 0x28], eax */
   7977     eax = MEM32(ecx + 0x4); /* 0x3800AD3D: mov eax, dword ptr [ecx + 4] */
   7978     ecx = MEM32(ecx + 0x8); /* 0x3800AD40: mov ecx, dword ptr [ecx + 8] */
   7979     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3800AD43: fstp dword ptr [ebp - 0x18] */
   7980     edx = MEM32(ebp + (-0x18)); /* 0x3800AD46: mov edx, dword ptr [ebp - 0x18] */
   7981     MEM32(ebp + (-0x14)) = eax; /* 0x3800AD49: mov dword ptr [ebp - 0x14], eax */
   7982     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3800AD4C: fld dword ptr [ebp - 0x14] */
   7983     _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x3800AD4F: fsub dword ptr [ebp - 0x2c] */
   7984     MEM32(ebp + (-0x10)) = ecx; /* 0x3800AD52: mov dword ptr [ebp - 0x10], ecx */
   7985     MEM32(ebp + (-0x24)) = edx; /* 0x3800AD55: mov dword ptr [ebp - 0x24], edx */
   7986     edx = MEM32(ebp + (-0x3C)); /* 0x3800AD58: mov edx, dword ptr [ebp - 0x3c] */
   7987     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3800AD5B: fstp dword ptr [ebp - 0x14] */
   7988     eax = MEM32(ebp + (-0x14)); /* 0x3800AD5E: mov eax, dword ptr [ebp - 0x14] */
   7989     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800AD61: fld dword ptr [ebp - 0x10] */
   7990     MEM32(ebp + (-0x20)) = eax; /* 0x3800AD64: mov dword ptr [ebp - 0x20], eax */
   7991     _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3800AD67: fsub dword ptr [ebp - 0x28] */
   7992     eax = MEM32(ebp + (-0x38)); /* 0x3800AD6A: mov eax, dword ptr [ebp - 0x38] */
   7993     MEM32(ebp + (-0x14)) = eax; /* 0x3800AD6D: mov dword ptr [ebp - 0x14], eax */
   7994     MEM32(ebp + (-0x18)) = edx; /* 0x3800AD70: mov dword ptr [ebp - 0x18], edx */
   7995     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3800AD73: fstp dword ptr [ebp - 0x10] */
   7996     ecx = MEM32(ebp + (-0x10)); /* 0x3800AD76: mov ecx, dword ptr [ebp - 0x10] */
   7997     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3800AD79: fld dword ptr [ebp - 0x3c] */
   7998     MEM32(ebp + (-0x1C)) = ecx; /* 0x3800AD7C: mov dword ptr [ebp - 0x1c], ecx */
   7999     _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3800AD7F: fsub dword ptr [ebp - 0x30] */
   8000     ecx = MEM32(ebp + (-0x34)); /* 0x3800AD82: mov ecx, dword ptr [ebp - 0x34] */
   8001     MEM32(ebp + (-0x10)) = ecx; /* 0x3800AD85: mov dword ptr [ebp - 0x10], ecx */
   8002     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3800AD88: fstp dword ptr [ebp - 0x18] */
   8003     edx = MEM32(ebp + (-0x18)); /* 0x3800AD8B: mov edx, dword ptr [ebp - 0x18] */
   8004     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3800AD8E: fld dword ptr [ebp - 0x14] */
   8005     MEM32(ebp + (-0xC)) = edx; /* 0x3800AD91: mov dword ptr [ebp - 0xc], edx */
   8006     _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x3800AD94: fsub dword ptr [ebp - 0x2c] */
   8007     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3800AD97: fstp dword ptr [ebp - 0x14] */
   8008     eax = MEM32(ebp + (-0x14)); /* 0x3800AD9A: mov eax, dword ptr [ebp - 0x14] */
   8009     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800AD9D: fld dword ptr [ebp - 0x10] */
   8010     MEM32(ebp + (-0x8)) = eax; /* 0x3800ADA0: mov dword ptr [ebp - 8], eax */
   8011     _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3800ADA3: fsub dword ptr [ebp - 0x28] */
   8012     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3800ADA6: fstp dword ptr [ebp - 0x10] */
   8013     ecx = MEM32(ebp + (-0x10)); /* 0x3800ADA9: mov ecx, dword ptr [ebp - 0x10] */
   8014     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3800ADAC: fld dword ptr [ebp - 0x10] */
   8015     MEM32(ebp + (-0x4)) = ecx; /* 0x3800ADAF: mov dword ptr [ebp - 4], ecx */
   8016     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3800ADB2: fmul dword ptr [ebp - 0x10] */
   8017     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3800ADB5: fld dword ptr [ebp - 0x14] */
   8018     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3800ADB8: fmul dword ptr [ebp - 0x14] */
   8019     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800ADBB: faddp st(1) */
   8020     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3800ADBD: fld dword ptr [ebp - 0x18] */
   8021     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3800ADC0: fmul dword ptr [ebp - 0x18] */
   8022     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800ADC3: faddp st(1) */
   8023     _st[0] = sqrt(_st[0]); /* 0x3800ADC5: fsqrt  */
   8024     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8BC)); /* 0x3800ADC7: fcomp dword ptr [0x3804e8bc] */
   8025     fp_pop();
   8026     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800ADCD: fnstsw ax */
   8027     /* test HI8(eax), 0x41u */ /* 0x3800ADCF: test ah, 0x41 */
   8028     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   8029     _cf = 0;
   8030     _flag_k = FK_NARROW(FK_TEST, 24);
   8031     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800AEF7; /* 0x3800ADD2: jne 0x3800aef7 */
   8032 L_3800ADD8:
   8033     ecx = ebp + (-0xC); /* 0x3800ADD8: lea ecx, [ebp - 0xc] */
   8034     RECOMP_ICALL(MEM32(0x3804E4EC)); /* 0x3800ADDB: call dword ptr [0x3804e4ec] */
   8035     RECOMP_FLAGS_IN();
   8036     fp_push(_st[0]); /* 0x3800ADE1: fld st(0) */
   8037     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3800ADE3: fmul dword ptr [ebp - 0xc] */
   8038     ecx = ebp + (-0x24); /* 0x3800ADE6: lea ecx, [ebp - 0x24] */
   8039     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3800ADE9: fstp dword ptr [ebp - 0xc] */
   8040     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3800ADEC: fld dword ptr [ebp - 8] */
   8041     _st[0] *= _st[1]; /* 0x3800ADEF: fmul st(1) */
   8042     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3800ADF1: fstp dword ptr [ebp - 8] */
   8043     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3800ADF4: fld dword ptr [ebp - 4] */
   8044     _st[0] *= _st[1]; /* 0x3800ADF7: fmul st(1) */
   8045     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3800ADF9: fstp dword ptr [ebp - 4] */
   8046     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800ADFC: fstp st(0) */
   8047     RECOMP_ICALL(MEM32(0x3804E4EC)); /* 0x3800ADFE: call dword ptr [0x3804e4ec] */
   8048     RECOMP_FLAGS_IN();
   8049     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3800AE04: fld dword ptr [ebp - 0x24] */
   8050     _st[0] *= _st[1]; /* 0x3800AE07: fmul st(1) */
   8051     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3800AE09: fstp dword ptr [ebp - 0x24] */
   8052     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3800AE0C: fld dword ptr [ebp - 0x20] */
   8053     _st[0] *= _st[1]; /* 0x3800AE0F: fmul st(1) */
   8054     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3800AE11: fstp dword ptr [ebp - 0x20] */
   8055     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3800AE14: fld dword ptr [ebp - 0x1c] */
   8056     _st[0] *= _st[1]; /* 0x3800AE17: fmul st(1) */
   8057     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3800AE19: fstp dword ptr [ebp - 0x1c] */
   8058     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3800AE1C: fstp st(0) */
   8059     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3800AE1E: fld dword ptr [ebp - 4] */
   8060     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3800AE21: fmul dword ptr [ebp - 0x1c] */
   8061     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3800AE24: fld dword ptr [ebp - 8] */
   8062     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3800AE27: fmul dword ptr [ebp - 0x20] */
   8063     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AE2A: faddp st(1) */
   8064     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3800AE2C: fld dword ptr [ebp - 0x24] */
   8065     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3800AE2F: fmul dword ptr [ebp - 0xc] */
   8066     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AE32: faddp st(1) */
   8067     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804EA88)); /* 0x3800AE34: fcomp qword ptr [0x3804ea88] */
   8068     fp_pop();
   8069     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800AE3A: fnstsw ax */
   8070     /* test HI8(eax), 0x41u */ /* 0x3800AE3C: test ah, 0x41 */
   8071     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   8072     _cf = 0;
   8073     _flag_k = FK_NARROW(FK_TEST, 24);
   8074     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800AE4D; /* 0x3800AE3F: jne 0x3800ae4d */
   8075 L_3800AE41:
   8076     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3800AE41: fld dword ptr [ebp + 0x10] */
   8077     _st[0] += (double)*(float*)ADDR(0x3804EABC); /* 0x3800AE44: fadd dword ptr [0x3804eabc] */
   8078     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x10) = _v; } /* 0x3800AE4A: fstp dword ptr [ebp + 0x10] */
   8079 L_3800AE4D:
   8080     ecx = MEM32(ebp + 0x14); /* 0x3800AE4D: mov ecx, dword ptr [ebp + 0x14] */
   8081     edx = MEM32(ecx); /* 0x3800AE50: mov edx, dword ptr [ecx] */
   8082     PUSH32(esp, 0); /* 0x3800AE52: push 0 */
   8083     PUSH32(esp, 0); /* 0x3800AE54: push 0 */
   8084     eax = ebp + (-0x18); /* 0x3800AE56: lea eax, [ebp - 0x18] */
   8085     PUSH32(esp, eax); /* 0x3800AE59: push eax */
   8086     eax = ebp + (-0x3C); /* 0x3800AE5A: lea eax, [ebp - 0x3c] */
   8087     PUSH32(esp, eax); /* 0x3800AE5D: push eax */
   8088     PUSH32(esp, ebx); /* 0x3800AE5E: push ebx */
   8089     MEM32(ebp + (-0x18)) = 0; /* 0x3800AE5F: mov dword ptr [ebp - 0x18], 0 */
   8090     MEM32(ebp + (-0x14)) = 0; /* 0x3800AE66: mov dword ptr [ebp - 0x14], 0 */
   8091     MEM32(ebp + (-0x10)) = 0; /* 0x3800AE6D: mov dword ptr [ebp - 0x10], 0 */
   8092     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3800AE74: call dword ptr [edx + 0xc] */
   8093     RECOMP_FLAGS_IN();
   8094     /* test LO8(eax), LO8(eax) */ /* 0x3800AE77: test al, al */
   8095     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8096     _cf = 0;
   8097     _flag_k = FK_NARROW(FK_TEST, 24);
   8098     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800AEF7; /* 0x3800AE79: jne 0x3800aef7 */
   8099 L_3800AE7B:
   8100     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3800AE7B: fld dword ptr [ebp - 4] */
   8101     ecx = esi; /* 0x3800AE7E: mov ecx, esi */
   8102     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3800AE80: fmul dword ptr [ebp - 0x1c] */
   8103     edx = MEM32(ecx); /* 0x3800AE83: mov edx, dword ptr [ecx] */
   8104     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3800AE85: fld dword ptr [ebp - 8] */
   8105     eax = MEM32(ecx + 0x4); /* 0x3800AE88: mov eax, dword ptr [ecx + 4] */
   8106     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3800AE8B: fmul dword ptr [ebp - 0x20] */
   8107     ecx = MEM32(ecx + 0x8); /* 0x3800AE8E: mov ecx, dword ptr [ecx + 8] */
   8108     MEM32(ebp + (-0x48)) = edx; /* 0x3800AE91: mov dword ptr [ebp - 0x48], edx */
   8109     edx = ebp + (-0x3C); /* 0x3800AE94: lea edx, [ebp - 0x3c] */
   8110     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AE97: faddp st(1) */
   8111     MEM32(ebp + (-0x40)) = ecx; /* 0x3800AE99: mov dword ptr [ebp - 0x40], ecx */
   8112     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3800AE9C: fld dword ptr [ebp - 0x24] */
   8113     PUSH32(esp, edx); /* 0x3800AE9F: push edx */
   8114     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3800AEA0: fmul dword ptr [ebp - 0xc] */
   8115     ecx = ebp + (-0x48); /* 0x3800AEA3: lea ecx, [ebp - 0x48] */
   8116     MEM32(ebp + (-0x44)) = eax; /* 0x3800AEA6: mov dword ptr [ebp - 0x44], eax */
   8117     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AEA9: faddp st(1) */
   8118     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x3800AEAB: fstp dword ptr [ebp + 0x14] */
   8119     RECOMP_ICALL(MEM32(0x3804E4F4)); /* 0x3800AEAE: call dword ptr [0x3804e4f4] */
   8120     RECOMP_FLAGS_IN();
   8121     ecx = MEM32(eax); /* 0x3800AEB4: mov ecx, dword ptr [eax] */
   8122     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3800AEB6: fld dword ptr [ebp - 4] */
   8123     edx = MEM32(eax + 0x4); /* 0x3800AEB9: mov edx, dword ptr [eax + 4] */
   8124     eax = MEM32(eax + 0x8); /* 0x3800AEBC: mov eax, dword ptr [eax + 8] */
   8125     MEM32(ebp + (-0x28)) = eax; /* 0x3800AEBF: mov dword ptr [ebp - 0x28], eax */
   8126     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3800AEC2: fmul dword ptr [ebp - 0x28] */
   8127     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3800AEC5: fld dword ptr [ebp - 8] */
   8128     MEM32(ebp + (-0x2C)) = edx; /* 0x3800AEC8: mov dword ptr [ebp - 0x2c], edx */
   8129     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x3800AECB: fmul dword ptr [ebp - 0x2c] */
   8130     MEM32(ebp + (-0x30)) = ecx; /* 0x3800AECE: mov dword ptr [ebp - 0x30], ecx */
   8131     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AED1: faddp st(1) */
   8132     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3800AED3: fld dword ptr [ebp - 0x30] */
   8133     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3800AED6: fmul dword ptr [ebp - 0xc] */
   8134     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AED9: faddp st(1) */
   8135     _st[0] *= (double)*(float*)ADDR(ebp + 0x14); /* 0x3800AEDB: fmul dword ptr [ebp + 0x14] */
   8136     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3800AEDE: fcomp dword ptr [0x3804e8e4] */
   8137     fp_pop();
   8138     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800AEE4: fnstsw ax */
   8139     /* test HI8(eax), 1 */ /* 0x3800AEE6: test ah, 1 */
   8140     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8141     _cf = 0;
   8142     _flag_k = FK_NARROW(FK_TEST, 24);
   8143     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AEF7; /* 0x3800AEE9: je 0x3800aef7 */
   8144 L_3800AEEB:
   8145     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3800AEEB: fld dword ptr [ebp + 0x10] */
   8146     _st[0] += (double)*(float*)ADDR(0x3804E908); /* 0x3800AEEE: fadd dword ptr [0x3804e908] */
   8147     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x10) = _v; } /* 0x3800AEF4: fstp dword ptr [ebp + 0x10] */
   8148 L_3800AEF7:
   8149     edx = MEM32(edi); /* 0x3800AEF7: mov edx, dword ptr [edi] */
   8150     PUSH32(esp, esi); /* 0x3800AEF9: push esi */
   8151     ecx = edi; /* 0x3800AEFA: mov ecx, edi */
   8152     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x3800AEFC: call dword ptr [edx + 0x14] */
   8153     RECOMP_FLAGS_IN();
   8154     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x3800AEFF: fld dword ptr [eax + 4] */
   8155     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804EA94)); /* 0x3800AF02: fcomp dword ptr [0x3804ea94] */
   8156     fp_pop();
   8157     ebx = POP32_VAL(esp); /* 0x3800AF08: pop ebx */
   8158     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3800AF09: fld dword ptr [ebp + 0x10] */
   8159     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800AF0C: fnstsw ax */
   8160     /* test HI8(eax), 1 */ /* 0x3800AF0E: test ah, 1 */
   8161     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8162     _cf = 0;
   8163     _flag_k = FK_NARROW(FK_TEST, 24);
   8164     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AF19; /* 0x3800AF11: je 0x3800af19 */
   8165 L_3800AF13:
   8166     _st[0] += (double)*(float*)ADDR(0x3804EC54); /* 0x3800AF13: fadd dword ptr [0x3804ec54] */
   8167 L_3800AF19:
   8168     edi = POP32_VAL(esp); /* 0x3800AF19: pop edi */
   8169     esi = POP32_VAL(esp); /* 0x3800AF1A: pop esi */
   8170     esp = ebp; /* 0x3800AF1B: mov esp, ebp */
   8171     ebp = POP32_VAL(esp); /* 0x3800AF1D: pop ebp */
   8172     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800AF1E: ret 0x10 */
   8173     RECOMP_REGS_OUT();
   8174 }
   8175 
   8176 void sub_3800AE66(void) {
   8177     int _fpu_cmp = 0;
   8178     uint32_t _cf = 0;
   8179     int _df = 1;
   8180     uint32_t _flag_k = FK_NONE;
   8181     uint32_t _flag_a = 0, _flag_b = 0;
   8182     uint32_t _itail_tgt = 0;
   8183     RECOMP_REGS_LOCALS
   8184     RECOMP_ENTER(0x3800AE66u);
   8185 
   8186 L_3800AE66:
   8187     MEM32(ebp + (-0x14)) = 0; /* 0x3800AE66: mov dword ptr [ebp - 0x14], 0 */
   8188     MEM32(ebp + (-0x10)) = 0; /* 0x3800AE6D: mov dword ptr [ebp - 0x10], 0 */
   8189     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3800AE74: call dword ptr [edx + 0xc] */
   8190     RECOMP_FLAGS_IN();
   8191     /* test LO8(eax), LO8(eax) */ /* 0x3800AE77: test al, al */
   8192     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8193     _cf = 0;
   8194     _flag_k = FK_NARROW(FK_TEST, 24);
   8195     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800AEF7; /* 0x3800AE79: jne 0x3800aef7 */
   8196 L_3800AE7B:
   8197     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3800AE7B: fld dword ptr [ebp - 4] */
   8198     ecx = esi; /* 0x3800AE7E: mov ecx, esi */
   8199     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3800AE80: fmul dword ptr [ebp - 0x1c] */
   8200     edx = MEM32(ecx); /* 0x3800AE83: mov edx, dword ptr [ecx] */
   8201     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3800AE85: fld dword ptr [ebp - 8] */
   8202     eax = MEM32(ecx + 0x4); /* 0x3800AE88: mov eax, dword ptr [ecx + 4] */
   8203     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3800AE8B: fmul dword ptr [ebp - 0x20] */
   8204     ecx = MEM32(ecx + 0x8); /* 0x3800AE8E: mov ecx, dword ptr [ecx + 8] */
   8205     MEM32(ebp + (-0x48)) = edx; /* 0x3800AE91: mov dword ptr [ebp - 0x48], edx */
   8206     edx = ebp + (-0x3C); /* 0x3800AE94: lea edx, [ebp - 0x3c] */
   8207     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AE97: faddp st(1) */
   8208     MEM32(ebp + (-0x40)) = ecx; /* 0x3800AE99: mov dword ptr [ebp - 0x40], ecx */
   8209     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3800AE9C: fld dword ptr [ebp - 0x24] */
   8210     PUSH32(esp, edx); /* 0x3800AE9F: push edx */
   8211     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3800AEA0: fmul dword ptr [ebp - 0xc] */
   8212     ecx = ebp + (-0x48); /* 0x3800AEA3: lea ecx, [ebp - 0x48] */
   8213     MEM32(ebp + (-0x44)) = eax; /* 0x3800AEA6: mov dword ptr [ebp - 0x44], eax */
   8214     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AEA9: faddp st(1) */
   8215     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x3800AEAB: fstp dword ptr [ebp + 0x14] */
   8216     RECOMP_ICALL(MEM32(0x3804E4F4)); /* 0x3800AEAE: call dword ptr [0x3804e4f4] */
   8217     RECOMP_FLAGS_IN();
   8218     ecx = MEM32(eax); /* 0x3800AEB4: mov ecx, dword ptr [eax] */
   8219     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3800AEB6: fld dword ptr [ebp - 4] */
   8220     edx = MEM32(eax + 0x4); /* 0x3800AEB9: mov edx, dword ptr [eax + 4] */
   8221     eax = MEM32(eax + 0x8); /* 0x3800AEBC: mov eax, dword ptr [eax + 8] */
   8222     MEM32(ebp + (-0x28)) = eax; /* 0x3800AEBF: mov dword ptr [ebp - 0x28], eax */
   8223     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3800AEC2: fmul dword ptr [ebp - 0x28] */
   8224     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3800AEC5: fld dword ptr [ebp - 8] */
   8225     MEM32(ebp + (-0x2C)) = edx; /* 0x3800AEC8: mov dword ptr [ebp - 0x2c], edx */
   8226     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x3800AECB: fmul dword ptr [ebp - 0x2c] */
   8227     MEM32(ebp + (-0x30)) = ecx; /* 0x3800AECE: mov dword ptr [ebp - 0x30], ecx */
   8228     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AED1: faddp st(1) */
   8229     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3800AED3: fld dword ptr [ebp - 0x30] */
   8230     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3800AED6: fmul dword ptr [ebp - 0xc] */
   8231     { double _v = fp_pop(); _st[0] += _v; } /* 0x3800AED9: faddp st(1) */
   8232     _st[0] *= (double)*(float*)ADDR(ebp + 0x14); /* 0x3800AEDB: fmul dword ptr [ebp + 0x14] */
   8233     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3800AEDE: fcomp dword ptr [0x3804e8e4] */
   8234     fp_pop();
   8235     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800AEE4: fnstsw ax */
   8236     /* test HI8(eax), 1 */ /* 0x3800AEE6: test ah, 1 */
   8237     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8238     _cf = 0;
   8239     _flag_k = FK_NARROW(FK_TEST, 24);
   8240     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AEF7; /* 0x3800AEE9: je 0x3800aef7 */
   8241 L_3800AEEB:
   8242     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3800AEEB: fld dword ptr [ebp + 0x10] */
   8243     _st[0] += (double)*(float*)ADDR(0x3804E908); /* 0x3800AEEE: fadd dword ptr [0x3804e908] */
   8244     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x10) = _v; } /* 0x3800AEF4: fstp dword ptr [ebp + 0x10] */
   8245 L_3800AEF7:
   8246     edx = MEM32(edi); /* 0x3800AEF7: mov edx, dword ptr [edi] */
   8247     PUSH32(esp, esi); /* 0x3800AEF9: push esi */
   8248     ecx = edi; /* 0x3800AEFA: mov ecx, edi */
   8249     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x3800AEFC: call dword ptr [edx + 0x14] */
   8250     RECOMP_FLAGS_IN();
   8251     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x3800AEFF: fld dword ptr [eax + 4] */
   8252     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804EA94)); /* 0x3800AF02: fcomp dword ptr [0x3804ea94] */
   8253     fp_pop();
   8254     ebx = POP32_VAL(esp); /* 0x3800AF08: pop ebx */
   8255     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3800AF09: fld dword ptr [ebp + 0x10] */
   8256     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800AF0C: fnstsw ax */
   8257     /* test HI8(eax), 1 */ /* 0x3800AF0E: test ah, 1 */
   8258     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8259     _cf = 0;
   8260     _flag_k = FK_NARROW(FK_TEST, 24);
   8261     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AF19; /* 0x3800AF11: je 0x3800af19 */
   8262 L_3800AF13:
   8263     _st[0] += (double)*(float*)ADDR(0x3804EC54); /* 0x3800AF13: fadd dword ptr [0x3804ec54] */
   8264 L_3800AF19:
   8265     edi = POP32_VAL(esp); /* 0x3800AF19: pop edi */
   8266     esi = POP32_VAL(esp); /* 0x3800AF1A: pop esi */
   8267     esp = ebp; /* 0x3800AF1B: mov esp, ebp */
   8268     ebp = POP32_VAL(esp); /* 0x3800AF1D: pop ebp */
   8269     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800AF1E: ret 0x10 */
   8270     RECOMP_REGS_OUT();
   8271 }
   8272 
   8273 void sub_3800AF30(void) {
   8274     int _fpu_cmp = 0;
   8275     uint32_t _cf = 0;
   8276     int _df = 1;
   8277     uint32_t _flag_k = FK_NONE;
   8278     uint32_t _flag_a = 0, _flag_b = 0;
   8279     uint32_t _itail_tgt = 0;
   8280     RECOMP_REGS_LOCALS
   8281     RECOMP_ENTER(0x3800AF30u);
   8282 
   8283 L_3800AF30:
   8284     eax = ecx + 0x4; /* 0x3800AF30: lea eax, [ecx + 4] */
   8285     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800AF33: ret 4 */
   8286     RECOMP_REGS_OUT();
   8287 }
   8288 
   8289 void sub_3800AF40(void) {
   8290     int _fpu_cmp = 0;
   8291     uint32_t _cf = 0;
   8292     int _df = 1;
   8293     uint32_t _flag_k = FK_NONE;
   8294     uint32_t _flag_a = 0, _flag_b = 0;
   8295     uint32_t _itail_tgt = 0;
   8296     RECOMP_REGS_LOCALS
   8297     RECOMP_ENTER(0x3800AF40u);
   8298 
   8299 L_3800AF40:
   8300     PUSH32(esp, ebp); /* 0x3800AF40: push ebp */
   8301     ebp = esp; /* 0x3800AF41: mov ebp, esp */
   8302     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u);
   8303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8304     esp = esp - 0x38u; /* 0x3800AF43: sub esp, 0x38 */
   8305     _flag_k = FK_CMP;
   8306     fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x3800AF46: fld dword ptr [ecx + 4] */
   8307     PUSH32(esp, ebx); /* 0x3800AF49: push ebx */
   8308     ebx = MEM32(ebp + 0x8); /* 0x3800AF4A: mov ebx, dword ptr [ebp + 8] */
   8309     _st[0] -= (double)*(float*)ADDR(ebx); /* 0x3800AF4D: fsub dword ptr [ebx] */
   8310     PUSH32(esp, esi); /* 0x3800AF4F: push esi */
   8311     esi = ecx + 0x4; /* 0x3800AF50: lea esi, [ecx + 4] */
   8312     PUSH32(esp, edi); /* 0x3800AF53: push edi */
   8313     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3800AF54: fstp dword ptr [esi] */
   8314     MEM32(ebp + (-0x4)) = ecx; /* 0x3800AF56: mov dword ptr [ebp - 4], ecx */
   8315     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x3800AF59: fld dword ptr [esi + 4] */
   8316     _st[0] -= (double)*(float*)ADDR(ebx + 0x4); /* 0x3800AF5C: fsub dword ptr [ebx + 4] */
   8317     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x3800AF5F: fstp dword ptr [esi + 4] */
   8318     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x3800AF62: fld dword ptr [esi + 8] */
   8319     _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x3800AF65: fsub dword ptr [ebx + 8] */
   8320     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3800AF68: fstp dword ptr [esi + 8] */
   8321     fp_push((double)(int32_t)MEM32(ebp + 0x10)); /* 0x3800AF6B: fild dword ptr [ebp + 0x10] */
   8322     _st[0] *= (double)*(float*)ADDR(0x3804EAC0); /* 0x3800AF6E: fmul dword ptr [0x3804eac0] */
   8323     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3800AF74: fcom dword ptr [0x3804e8e4] */
   8324     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x10) = _v; } /* 0x3800AF7A: fst dword ptr [ebp + 0x10] */
   8325     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800AF7D: fnstsw ax */
   8326     /* test HI8(eax), 1 */ /* 0x3800AF7F: test ah, 1 */
   8327     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8328     _cf = 0;
   8329     _flag_k = FK_NARROW(FK_TEST, 24);
   8330     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800AF99; /* 0x3800AF82: jne 0x3800af99 */
   8331 L_3800AF84:
   8332     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3800AF84: fcom qword ptr [0x3804e8f8] */
   8333     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800AF8A: fnstsw ax */
   8334     /* test HI8(eax), 1 */ /* 0x3800AF8C: test ah, 1 */
   8335     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8336     _cf = 0;
   8337     _flag_k = FK_NARROW(FK_TEST, 24);
   8338     if (TEST_Z(_flag_a, _flag_b)) goto L_3800AF99; /* 0x3800AF8F: je 0x3800af99 */
   8339 L_3800AF91:
   8340     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x3800AF91: fmul dword ptr [0x3804e8bc] */
   8341     goto L_3800AFBA; /* 0x3800AF97: jmp 0x3800afba */
   8342 L_3800AF99:
   8343     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3800AF99: fmul dword ptr [0x3804e8f4] */
   8344     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8346     esp = esp - 8; /* 0x3800AF9F: sub esp, 8 */
   8347     _flag_k = FK_CMP;
   8348     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3800AFA2: fst dword ptr [ebp + 8] */
   8349     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3800AFA5: fstp qword ptr [esp] */
   8350     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x3800AFA8: call dword ptr [0x3804e0ac] */
   8351     RECOMP_FLAGS_IN();
   8352     _st[0] = (double)*(float*)ADDR(ebp + 0x8) - _st[0]; /* 0x3800AFAE: fsubr dword ptr [ebp + 8] */
   8353     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8354     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8355     esp = esp + 8; /* 0x3800AFB1: add esp, 8 */
   8356     _flag_k = FK_ADD;
   8357     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x3800AFB4: fmul dword ptr [0x3804e8f0] */
   8358 L_3800AFBA:
   8359     fp_push(_st[0]); /* 0x3800AFBA: fld st(0) */
   8360     PUSH32(esp, esi); /* 0x3800AFBC: push esi */
   8361     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3800AFBD: fsin  */
   8362     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x3800AFBF: fld dword ptr [0x3804e8e4] */
   8363     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3800AFC5: fst dword ptr [ebp + 8] */
   8364     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3800AFC8: fstp dword ptr [ebp - 0x38] */
   8365     eax = MEM32(ebp + 0x8); /* 0x3800AFCB: mov eax, dword ptr [ebp + 8] */
   8366     edi = MEM32(ebp + (-0x38)); /* 0x3800AFCE: mov edi, dword ptr [ebp - 0x38] */
   8367     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3800AFD1: fstp dword ptr [ebp - 0x34] */
   8368     ecx = MEM32(ebp + (-0x34)); /* 0x3800AFD4: mov ecx, dword ptr [ebp - 0x34] */
   8369     MEM32(ebp + (-0x24)) = ecx; /* 0x3800AFD7: mov dword ptr [ebp - 0x24], ecx */
   8370     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3800AFDA: fcos  */
   8371     edx = eax; /* 0x3800AFDC: mov edx, eax */
   8372     ecx = ebp + (-0x28); /* 0x3800AFDE: lea ecx, [ebp - 0x28] */
   8373     MEM32(ebp + (-0x30)) = eax; /* 0x3800AFE1: mov dword ptr [ebp - 0x30], eax */
   8374     MEM32(ebp + (-0x28)) = edi; /* 0x3800AFE4: mov dword ptr [ebp - 0x28], edi */
   8375     MEM32(ebp + (-0x20)) = edx; /* 0x3800AFE7: mov dword ptr [ebp - 0x20], edx */
   8376     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3800AFEA: fstp dword ptr [ebp - 0x2c] */
   8377     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3800AFED: call dword ptr [0x3804e4c8] */
   8378     RECOMP_FLAGS_IN();
   8379     ecx = MEM32(eax); /* 0x3800AFF3: mov ecx, dword ptr [eax] */
   8380     MEM32(ebp + (-0x10)) = ecx; /* 0x3800AFF5: mov dword ptr [ebp - 0x10], ecx */
   8381     edx = MEM32(eax + 0x4); /* 0x3800AFF8: mov edx, dword ptr [eax + 4] */
   8382     ecx = MEM32(ebp + (-0x34)); /* 0x3800AFFB: mov ecx, dword ptr [ebp - 0x34] */
   8383     MEM32(ebp + (-0xC)) = edx; /* 0x3800AFFE: mov dword ptr [ebp - 0xc], edx */
   8384     eax = MEM32(eax + 0x8); /* 0x3800B001: mov eax, dword ptr [eax + 8] */
   8385     edx = MEM32(ebp + (-0x30)); /* 0x3800B004: mov edx, dword ptr [ebp - 0x30] */
   8386     MEM32(ebp + (-0x8)) = eax; /* 0x3800B007: mov dword ptr [ebp - 8], eax */
   8387     eax = ebp + (-0x10); /* 0x3800B00A: lea eax, [ebp - 0x10] */
   8388     MEM32(ebp + (-0x24)) = ecx; /* 0x3800B00D: mov dword ptr [ebp - 0x24], ecx */
   8389     PUSH32(esp, eax); /* 0x3800B010: push eax */
   8390     ecx = ebp + (-0x28); /* 0x3800B011: lea ecx, [ebp - 0x28] */
   8391     MEM32(ebp + (-0x28)) = edi; /* 0x3800B014: mov dword ptr [ebp - 0x28], edi */
   8392     MEM32(ebp + (-0x20)) = edx; /* 0x3800B017: mov dword ptr [ebp - 0x20], edx */
   8393     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3800B01A: call dword ptr [0x3804e4c8] */
   8394     RECOMP_FLAGS_IN();
   8395     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3800B020: fld dword ptr [ebp - 0x2c] */
   8396     ecx = MEM32(eax); /* 0x3800B023: mov ecx, dword ptr [eax] */
   8397     _st[0] += _st[0]; /* 0x3800B025: fadd st(0), st(0) */
   8398     MEM32(ebp + (-0x1C)) = ecx; /* 0x3800B027: mov dword ptr [ebp - 0x1c], ecx */
   8399     edx = MEM32(eax + 0x4); /* 0x3800B02A: mov edx, dword ptr [eax + 4] */
   8400     MEM32(ebp + (-0x18)) = edx; /* 0x3800B02D: mov dword ptr [ebp - 0x18], edx */
   8401     eax = MEM32(eax + 0x8); /* 0x3800B030: mov eax, dword ptr [eax + 8] */
   8402     PUSH32(esp, ecx); /* 0x3800B033: push ecx */
   8403     ecx = ebp + (-0x10); /* 0x3800B034: lea ecx, [ebp - 0x10] */
   8404     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3800B037: fstp dword ptr [esp] */
   8405     MEM32(ebp + (-0x14)) = eax; /* 0x3800B03A: mov dword ptr [ebp - 0x14], eax */
   8406     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x3800B03D: call dword ptr [0x3804e4d4] */
   8407     RECOMP_FLAGS_IN();
   8408     PUSH32(esp, 0x40000000u); /* 0x3800B043: push 0x40000000 */
   8409     ecx = ebp + (-0x1C); /* 0x3800B048: lea ecx, [ebp - 0x1c] */
   8410     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x3800B04B: call dword ptr [0x3804e4d4] */
   8411     RECOMP_FLAGS_IN();
   8412     ecx = ebp + (-0x10); /* 0x3800B051: lea ecx, [ebp - 0x10] */
   8413     PUSH32(esp, ecx); /* 0x3800B054: push ecx */
   8414     ecx = esi; /* 0x3800B055: mov ecx, esi */
   8415     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3800B057: call dword ptr [0x3804e4e8] */
   8416     RECOMP_FLAGS_IN();
   8417     edx = ebp + (-0x1C); /* 0x3800B05D: lea edx, [ebp - 0x1c] */
   8418     PUSH32(esp, edx); /* 0x3800B060: push edx */
   8419     ecx = esi; /* 0x3800B061: mov ecx, esi */
   8420     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3800B063: call dword ptr [0x3804e4e8] */
   8421     RECOMP_FLAGS_IN();
   8422     fp_push(*(float*)&MEM32(esi)); /* 0x3800B069: fld dword ptr [esi] */
   8423     edi = MEM32(ebp + 0xC); /* 0x3800B06B: mov edi, dword ptr [ebp + 0xc] */
   8424     _st[0] += (double)*(float*)ADDR(edi); /* 0x3800B06E: fadd dword ptr [edi] */
   8425     eax = MEM32(ebp + (-0x4)); /* 0x3800B070: mov eax, dword ptr [ebp - 4] */
   8426     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3800B073: fstp dword ptr [esi] */
   8427     fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x3800B075: fld dword ptr [edi + 4] */
   8428     _st[0] += (double)*(float*)ADDR(esi + 0x4); /* 0x3800B078: fadd dword ptr [esi + 4] */
   8429     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x3800B07B: fstp dword ptr [esi + 4] */
   8430     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x3800B07E: fld dword ptr [esi + 8] */
   8431     _st[0] += (double)*(float*)ADDR(edi + 0x8); /* 0x3800B081: fadd dword ptr [edi + 8] */
   8432     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3800B084: fstp dword ptr [esi + 8] */
   8433     esi = eax + 0x20; /* 0x3800B087: lea esi, [eax + 0x20] */
   8434     fp_push(*(float*)&MEM32(esi)); /* 0x3800B08A: fld dword ptr [esi] */
   8435     _st[0] -= (double)*(float*)ADDR(ebx); /* 0x3800B08C: fsub dword ptr [ebx] */
   8436     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3800B08E: fstp dword ptr [esi] */
   8437     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x3800B090: fld dword ptr [esi + 4] */
   8438     _st[0] -= (double)*(float*)ADDR(ebx + 0x4); /* 0x3800B093: fsub dword ptr [ebx + 4] */
   8439     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x3800B096: fstp dword ptr [esi + 4] */
   8440     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x3800B099: fld dword ptr [esi + 8] */
   8441     _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x3800B09C: fsub dword ptr [ebx + 8] */
   8442     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3800B09F: fstp dword ptr [esi + 8] */
   8443     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x3800B0A2: fld dword ptr [ebp + 0x10] */
   8444     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3800B0A5: fcom dword ptr [0x3804e8e4] */
   8445     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800B0AB: fnstsw ax */
   8446     /* test HI8(eax), 1 */ /* 0x3800B0AD: test ah, 1 */
   8447     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8448     _cf = 0;
   8449     _flag_k = FK_NARROW(FK_TEST, 24);
   8450     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800B0C7; /* 0x3800B0B0: jne 0x3800b0c7 */
   8451 L_3800B0B2:
   8452     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E8F8)); /* 0x3800B0B2: fcom qword ptr [0x3804e8f8] */
   8453     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800B0B8: fnstsw ax */
   8454     /* test HI8(eax), 1 */ /* 0x3800B0BA: test ah, 1 */
   8455     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8456     _cf = 0;
   8457     _flag_k = FK_NARROW(FK_TEST, 24);
   8458     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B0C7; /* 0x3800B0BD: je 0x3800b0c7 */
   8459 L_3800B0BF:
   8460     _st[0] *= (double)*(float*)ADDR(0x3804E8BC); /* 0x3800B0BF: fmul dword ptr [0x3804e8bc] */
   8461     goto L_3800B0E8; /* 0x3800B0C5: jmp 0x3800b0e8 */
   8462 L_3800B0C7:
   8463     _st[0] *= (double)*(float*)ADDR(0x3804E8F4); /* 0x3800B0C7: fmul dword ptr [0x3804e8f4] */
   8464     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8465     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8466     esp = esp - 8; /* 0x3800B0CD: sub esp, 8 */
   8467     _flag_k = FK_CMP;
   8468     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3800B0D0: fst dword ptr [ebp + 8] */
   8469     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3800B0D3: fstp qword ptr [esp] */
   8470     RECOMP_ICALL(MEM32(0x3804E0AC)); /* 0x3800B0D6: call dword ptr [0x3804e0ac] */
   8471     RECOMP_FLAGS_IN();
   8472     _st[0] = (double)*(float*)ADDR(ebp + 0x8) - _st[0]; /* 0x3800B0DC: fsubr dword ptr [ebp + 8] */
   8473     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8474     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8475     esp = esp + 8; /* 0x3800B0DF: add esp, 8 */
   8476     _flag_k = FK_ADD;
   8477     _st[0] *= (double)*(float*)ADDR(0x3804E8F0); /* 0x3800B0E2: fmul dword ptr [0x3804e8f0] */
   8478 L_3800B0E8:
   8479     fp_push(_st[0]); /* 0x3800B0E8: fld st(0) */
   8480     PUSH32(esp, esi); /* 0x3800B0EA: push esi */
   8481     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3800B0EB: fsin  */
   8482     fp_push(*(float*)&MEM32(0x3804E8E4)); /* 0x3800B0ED: fld dword ptr [0x3804e8e4] */
   8483     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3800B0F3: fst dword ptr [ebp + 8] */
   8484     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3800B0F6: fstp dword ptr [ebp - 0x38] */
   8485     ecx = MEM32(ebp + 0x8); /* 0x3800B0F9: mov ecx, dword ptr [ebp + 8] */
   8486     edx = MEM32(ebp + (-0x38)); /* 0x3800B0FC: mov edx, dword ptr [ebp - 0x38] */
   8487     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x3800B0FF: fstp dword ptr [ebp - 0x34] */
   8488     eax = MEM32(ebp + (-0x34)); /* 0x3800B102: mov eax, dword ptr [ebp - 0x34] */
   8489     MEM32(ebp + (-0x30)) = ecx; /* 0x3800B105: mov dword ptr [ebp - 0x30], ecx */
   8490     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3800B108: fcos  */
   8491     MEM32(ebp + (-0x20)) = ecx; /* 0x3800B10A: mov dword ptr [ebp - 0x20], ecx */
   8492     ecx = ebp + (-0x28); /* 0x3800B10D: lea ecx, [ebp - 0x28] */
   8493     MEM32(ebp + (-0x28)) = edx; /* 0x3800B110: mov dword ptr [ebp - 0x28], edx */
   8494     MEM32(ebp + (-0x24)) = eax; /* 0x3800B113: mov dword ptr [ebp - 0x24], eax */
   8495     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3800B116: fstp dword ptr [ebp - 0x2c] */
   8496     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3800B119: call dword ptr [0x3804e4c8] */
   8497     RECOMP_FLAGS_IN();
   8498     edx = MEM32(eax); /* 0x3800B11F: mov edx, dword ptr [eax] */
   8499     MEM32(ebp + (-0x10)) = edx; /* 0x3800B121: mov dword ptr [ebp - 0x10], edx */
   8500     ecx = MEM32(eax + 0x4); /* 0x3800B124: mov ecx, dword ptr [eax + 4] */
   8501     MEM32(ebp + (-0xC)) = ecx; /* 0x3800B127: mov dword ptr [ebp - 0xc], ecx */
   8502     edx = MEM32(eax + 0x8); /* 0x3800B12A: mov edx, dword ptr [eax + 8] */
   8503     eax = ebp + (-0x10); /* 0x3800B12D: lea eax, [ebp - 0x10] */
   8504     PUSH32(esp, eax); /* 0x3800B130: push eax */
   8505     ecx = ebp + (-0x28); /* 0x3800B131: lea ecx, [ebp - 0x28] */
   8506     PUSH32(esp, ecx); /* 0x3800B134: push ecx */
   8507     ecx = ebp + (-0x38); /* 0x3800B135: lea ecx, [ebp - 0x38] */
   8508     MEM32(ebp + (-0x8)) = edx; /* 0x3800B138: mov dword ptr [ebp - 8], edx */
   8509     RECOMP_ICALL(MEM32(0x3804E4FC)); /* 0x3800B13B: call dword ptr [0x3804e4fc] */
   8510     RECOMP_FLAGS_IN();
   8511     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3800B141: fld dword ptr [ebp - 0x2c] */
   8512     edx = MEM32(eax); /* 0x3800B144: mov edx, dword ptr [eax] */
   8513     _st[0] += _st[0]; /* 0x3800B146: fadd st(0), st(0) */
   8514     MEM32(ebp + (-0x1C)) = edx; /* 0x3800B148: mov dword ptr [ebp - 0x1c], edx */
   8515     ecx = MEM32(eax + 0x4); /* 0x3800B14B: mov ecx, dword ptr [eax + 4] */
   8516     MEM32(ebp + (-0x18)) = ecx; /* 0x3800B14E: mov dword ptr [ebp - 0x18], ecx */
   8517     edx = MEM32(eax + 0x8); /* 0x3800B151: mov edx, dword ptr [eax + 8] */
   8518     PUSH32(esp, ecx); /* 0x3800B154: push ecx */
   8519     ecx = ebp + (-0x10); /* 0x3800B155: lea ecx, [ebp - 0x10] */
   8520     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3800B158: fstp dword ptr [esp] */
   8521     MEM32(ebp + (-0x14)) = edx; /* 0x3800B15B: mov dword ptr [ebp - 0x14], edx */
   8522     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x3800B15E: call dword ptr [0x3804e4d4] */
   8523     RECOMP_FLAGS_IN();
   8524     PUSH32(esp, 0x40000000u); /* 0x3800B164: push 0x40000000 */
   8525     ecx = ebp + (-0x1C); /* 0x3800B169: lea ecx, [ebp - 0x1c] */
   8526     RECOMP_ICALL(MEM32(0x3804E4D4)); /* 0x3800B16C: call dword ptr [0x3804e4d4] */
   8527     RECOMP_FLAGS_IN();
   8528     eax = ebp + (-0x10); /* 0x3800B172: lea eax, [ebp - 0x10] */
   8529     PUSH32(esp, eax); /* 0x3800B175: push eax */
   8530     ecx = esi; /* 0x3800B176: mov ecx, esi */
   8531     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3800B178: call dword ptr [0x3804e4e8] */
   8532     RECOMP_FLAGS_IN();
   8533     ecx = ebp + (-0x1C); /* 0x3800B17E: lea ecx, [ebp - 0x1c] */
   8534     PUSH32(esp, ecx); /* 0x3800B181: push ecx */
   8535     ecx = esi; /* 0x3800B182: mov ecx, esi */
   8536     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3800B184: call dword ptr [0x3804e4e8] */
   8537     RECOMP_FLAGS_IN();
   8538     fp_push(*(float*)&MEM32(edi)); /* 0x3800B18A: fld dword ptr [edi] */
   8539     _st[0] += (double)*(float*)ADDR(esi); /* 0x3800B18C: fadd dword ptr [esi] */
   8540     { float _v = (float)fp_pop(); *(float*)ADDR(esi) = _v; } /* 0x3800B18E: fstp dword ptr [esi] */
   8541     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x3800B190: fld dword ptr [esi + 4] */
   8542     _st[0] += (double)*(float*)ADDR(edi + 0x4); /* 0x3800B193: fadd dword ptr [edi + 4] */
   8543     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4) = _v; } /* 0x3800B196: fstp dword ptr [esi + 4] */
   8544     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x3800B199: fld dword ptr [esi + 8] */
   8545     _st[0] += (double)*(float*)ADDR(edi + 0x8); /* 0x3800B19C: fadd dword ptr [edi + 8] */
   8546     edi = POP32_VAL(esp); /* 0x3800B19F: pop edi */
   8547     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x3800B1A0: fstp dword ptr [esi + 8] */
   8548     esi = POP32_VAL(esp); /* 0x3800B1A3: pop esi */
   8549     ebx = POP32_VAL(esp); /* 0x3800B1A4: pop ebx */
   8550     esp = ebp; /* 0x3800B1A5: mov esp, ebp */
   8551     ebp = POP32_VAL(esp); /* 0x3800B1A7: pop ebp */
   8552     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3800B1A8: ret 0xc */
   8553     RECOMP_REGS_OUT();
   8554 }
   8555 
   8556 void sub_3800B1B0(void) {
   8557     int _fpu_cmp = 0;
   8558     uint32_t _cf = 0;
   8559     int _df = 1;
   8560     uint32_t _flag_k = FK_NONE;
   8561     uint32_t _flag_a = 0, _flag_b = 0;
   8562     uint32_t _itail_tgt = 0;
   8563     RECOMP_REGS_LOCALS
   8564     RECOMP_ENTER(0x3800B1B0u);
   8565 
   8566 L_3800B1B0:
   8567     RECOMP_ICALL(0x3800B1C0u); /* 0x3800B1B0: call 0x3800b1c0 */ /* not lifted */
   8568     RECOMP_FLAGS_IN();
   8569     goto L_3800B1D0; /* 0x3800B1B5: jmp 0x3800b1d0 */
   8570 L_3800B1D0:
   8571     PUSH32(esp, 0x3800B1E0u); /* 0x3800B1D0: push 0x3800b1e0 */
   8572     RECOMP_ICALL(0x3804B54Cu); /* 0x3800B1D5: call 0x3804b54c */ /* not lifted */
   8573     RECOMP_FLAGS_IN();
   8574     ecx = POP32_VAL(esp); /* 0x3800B1DA: pop ecx */
   8575     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B1DB: ret  */
   8576     RECOMP_REGS_OUT();
   8577 }
   8578 
   8579 void sub_3800B1C0(void) {
   8580     int _fpu_cmp = 0;
   8581     uint32_t _cf = 0;
   8582     int _df = 1;
   8583     uint32_t _flag_k = FK_NONE;
   8584     uint32_t _flag_a = 0, _flag_b = 0;
   8585     uint32_t _itail_tgt = 0;
   8586     RECOMP_REGS_LOCALS
   8587     RECOMP_ENTER(0x3800B1C0u);
   8588 
   8589 L_3800B1C0:
   8590     ecx = 0x3806EA35u; /* 0x3800B1C0: mov ecx, 0x3806ea35 */
   8591 L_3800B1C5:
   8592     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
   8593     { RECOMP_REGS_OUT(); return; } /* end of function */
   8594   _ljump:
   8595     switch (_itail_tgt) {
   8596       case 0x3800B1C0u: goto L_3800B1C0;
   8597       case 0x3800B1C5u: goto L_3800B1C5;
   8598       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8599     }
   8600     RECOMP_REGS_OUT();
   8601 }
   8602 
   8603 void sub_3800B1D0(void) {
   8604     int _fpu_cmp = 0;
   8605     uint32_t _cf = 0;
   8606     int _df = 1;
   8607     uint32_t _flag_k = FK_NONE;
   8608     uint32_t _flag_a = 0, _flag_b = 0;
   8609     uint32_t _itail_tgt = 0;
   8610     RECOMP_REGS_LOCALS
   8611     RECOMP_ENTER(0x3800B1D0u);
   8612 
   8613 L_3800B1D0:
   8614     PUSH32(esp, 0x3800B1E0u); /* 0x3800B1D0: push 0x3800b1e0 */
   8615     RECOMP_ICALL(0x3804B54Cu); /* 0x3800B1D5: call 0x3804b54c */ /* not lifted */
   8616     RECOMP_FLAGS_IN();
   8617     ecx = POP32_VAL(esp); /* 0x3800B1DA: pop ecx */
   8618     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B1DB: ret  */
   8619     RECOMP_REGS_OUT();
   8620 }
   8621 
   8622 void sub_3800B1E0(void) {
   8623     int _fpu_cmp = 0;
   8624     uint32_t _cf = 0;
   8625     int _df = 1;
   8626     uint32_t _flag_k = FK_NONE;
   8627     uint32_t _flag_a = 0, _flag_b = 0;
   8628     uint32_t _itail_tgt = 0;
   8629     RECOMP_REGS_LOCALS
   8630     RECOMP_ENTER(0x3800B1E0u);
   8631 
   8632 L_3800B1E0:
   8633     ecx = 0x3806EA35u; /* 0x3800B1E0: mov ecx, 0x3806ea35 */
   8634 L_3800B1E5:
   8635     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
   8636     { RECOMP_REGS_OUT(); return; } /* end of function */
   8637   _ljump:
   8638     switch (_itail_tgt) {
   8639       case 0x3800B1E0u: goto L_3800B1E0;
   8640       case 0x3800B1E5u: goto L_3800B1E5;
   8641       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8642     }
   8643     RECOMP_REGS_OUT();
   8644 }
   8645 
   8646 void sub_3800B1F0(void) {
   8647     int _fpu_cmp = 0;
   8648     uint32_t _cf = 0;
   8649     int _df = 1;
   8650     uint32_t _flag_k = FK_NONE;
   8651     uint32_t _flag_a = 0, _flag_b = 0;
   8652     uint32_t _itail_tgt = 0;
   8653     RECOMP_REGS_LOCALS
   8654     RECOMP_ENTER(0x3800B1F0u);
   8655 
   8656 L_3800B1F0:
   8657     RECOMP_ICALL(0x3800B200u); /* 0x3800B1F0: call 0x3800b200 */ /* not lifted */
   8658     RECOMP_FLAGS_IN();
   8659     goto L_3800B210; /* 0x3800B1F5: jmp 0x3800b210 */
   8660 L_3800B210:
   8661     PUSH32(esp, 0x3800B220u); /* 0x3800B210: push 0x3800b220 */
   8662     RECOMP_ICALL(0x3804B54Cu); /* 0x3800B215: call 0x3804b54c */ /* not lifted */
   8663     RECOMP_FLAGS_IN();
   8664     ecx = POP32_VAL(esp); /* 0x3800B21A: pop ecx */
   8665     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B21B: ret  */
   8666     RECOMP_REGS_OUT();
   8667 }
   8668 
   8669 void sub_3800B200(void) {
   8670     int _fpu_cmp = 0;
   8671     uint32_t _cf = 0;
   8672     int _df = 1;
   8673     uint32_t _flag_k = FK_NONE;
   8674     uint32_t _flag_a = 0, _flag_b = 0;
   8675     uint32_t _itail_tgt = 0;
   8676     RECOMP_REGS_LOCALS
   8677     RECOMP_ENTER(0x3800B200u);
   8678 
   8679 L_3800B200:
   8680     ecx = 0x3806EA34u; /* 0x3800B200: mov ecx, 0x3806ea34 */
   8681 L_3800B205:
   8682     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
   8683     { RECOMP_REGS_OUT(); return; } /* end of function */
   8684   _ljump:
   8685     switch (_itail_tgt) {
   8686       case 0x3800B200u: goto L_3800B200;
   8687       case 0x3800B205u: goto L_3800B205;
   8688       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8689     }
   8690     RECOMP_REGS_OUT();
   8691 }
   8692 
   8693 void sub_3800B210(void) {
   8694     int _fpu_cmp = 0;
   8695     uint32_t _cf = 0;
   8696     int _df = 1;
   8697     uint32_t _flag_k = FK_NONE;
   8698     uint32_t _flag_a = 0, _flag_b = 0;
   8699     uint32_t _itail_tgt = 0;
   8700     RECOMP_REGS_LOCALS
   8701     RECOMP_ENTER(0x3800B210u);
   8702 
   8703 L_3800B210:
   8704     PUSH32(esp, 0x3800B220u); /* 0x3800B210: push 0x3800b220 */
   8705     RECOMP_ICALL(0x3804B54Cu); /* 0x3800B215: call 0x3804b54c */ /* not lifted */
   8706     RECOMP_FLAGS_IN();
   8707     ecx = POP32_VAL(esp); /* 0x3800B21A: pop ecx */
   8708     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B21B: ret  */
   8709     RECOMP_REGS_OUT();
   8710 }
   8711 
   8712 void sub_3800B220(void) {
   8713     int _fpu_cmp = 0;
   8714     uint32_t _cf = 0;
   8715     int _df = 1;
   8716     uint32_t _flag_k = FK_NONE;
   8717     uint32_t _flag_a = 0, _flag_b = 0;
   8718     uint32_t _itail_tgt = 0;
   8719     RECOMP_REGS_LOCALS
   8720     RECOMP_ENTER(0x3800B220u);
   8721 
   8722 L_3800B220:
   8723     ecx = 0x3806EA34u; /* 0x3800B220: mov ecx, 0x3806ea34 */
   8724 L_3800B225:
   8725     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
   8726     { RECOMP_REGS_OUT(); return; } /* end of function */
   8727   _ljump:
   8728     switch (_itail_tgt) {
   8729       case 0x3800B220u: goto L_3800B220;
   8730       case 0x3800B225u: goto L_3800B225;
   8731       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8732     }
   8733     RECOMP_REGS_OUT();
   8734 }
   8735 
   8736 void sub_3800B230(void) {
   8737     int _fpu_cmp = 0;
   8738     uint32_t _cf = 0;
   8739     int _df = 1;
   8740     uint32_t _flag_k = FK_NONE;
   8741     uint32_t _flag_a = 0, _flag_b = 0;
   8742     uint32_t _itail_tgt = 0;
   8743     RECOMP_REGS_LOCALS
   8744     RECOMP_ENTER(0x3800B230u);
   8745 
   8746 L_3800B230:
   8747     RECOMP_ICALL(0x3800B240u); /* 0x3800B230: call 0x3800b240 */ /* not lifted */
   8748     RECOMP_FLAGS_IN();
   8749     goto L_3800B270; /* 0x3800B235: jmp 0x3800b270 */
   8750 L_3800B270:
   8751     PUSH32(esp, 0x3800B280u); /* 0x3800B270: push 0x3800b280 */
   8752     RECOMP_ICALL(0x3804B54Cu); /* 0x3800B275: call 0x3804b54c */ /* not lifted */
   8753     RECOMP_FLAGS_IN();
   8754     ecx = POP32_VAL(esp); /* 0x3800B27A: pop ecx */
   8755     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B27B: ret  */
   8756     RECOMP_REGS_OUT();
   8757 }
   8758 
   8759 void sub_3800B240(void) {
   8760     int _fpu_cmp = 0;
   8761     uint32_t _cf = 0;
   8762     int _df = 1;
   8763     uint32_t _flag_k = FK_NONE;
   8764     uint32_t _flag_a = 0, _flag_b = 0;
   8765     uint32_t _itail_tgt = 0;
   8766     RECOMP_REGS_LOCALS
   8767     RECOMP_ENTER(0x3800B240u);
   8768 
   8769 L_3800B240:
   8770     PUSH32(esp, ebp); /* 0x3800B240: push ebp */
   8771     ebp = esp; /* 0x3800B241: mov ebp, esp */
   8772     PUSH32(esp, ecx); /* 0x3800B243: push ecx */
   8773     SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3800B244: mov al, byte ptr [ebp - 1] */
   8774     PUSH32(esp, 0xCu); /* 0x3800B247: push 0xc */
   8775     MEM8(0x3806EA28) = (uint8_t)(LO8(eax)); /* 0x3800B249: mov byte ptr [0x3806ea28], al */
   8776     RECOMP_ICALL(0x3804B676u); /* 0x3800B24E: call 0x3804b676 */ /* not lifted */
   8777     RECOMP_FLAGS_IN();
   8778     MEM32(eax) = eax; /* 0x3800B253: mov dword ptr [eax], eax */
   8779     MEM32(eax + 0x4) = eax; /* 0x3800B255: mov dword ptr [eax + 4], eax */
   8780     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8781     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8782     esp = esp + 4; /* 0x3800B258: add esp, 4 */
   8783     _flag_k = FK_ADD;
   8784     MEM32(0x3806EA2C) = eax; /* 0x3800B25B: mov dword ptr [0x3806ea2c], eax */
   8785     MEM32(0x3806EA30) = 0; /* 0x3800B260: mov dword ptr [0x3806ea30], 0 */
   8786     esp = ebp; /* 0x3800B26A: mov esp, ebp */
   8787     ebp = POP32_VAL(esp); /* 0x3800B26C: pop ebp */
   8788     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B26D: ret  */
   8789     RECOMP_REGS_OUT();
   8790 }
   8791 
   8792 void sub_3800B270(void) {
   8793     int _fpu_cmp = 0;
   8794     uint32_t _cf = 0;
   8795     int _df = 1;
   8796     uint32_t _flag_k = FK_NONE;
   8797     uint32_t _flag_a = 0, _flag_b = 0;
   8798     uint32_t _itail_tgt = 0;
   8799     RECOMP_REGS_LOCALS
   8800     RECOMP_ENTER(0x3800B270u);
   8801 
   8802 L_3800B270:
   8803     PUSH32(esp, 0x3800B280u); /* 0x3800B270: push 0x3800b280 */
   8804     RECOMP_ICALL(0x3804B54Cu); /* 0x3800B275: call 0x3804b54c */ /* not lifted */
   8805     RECOMP_FLAGS_IN();
   8806     ecx = POP32_VAL(esp); /* 0x3800B27A: pop ecx */
   8807     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B27B: ret  */
   8808     RECOMP_REGS_OUT();
   8809 }
   8810 
   8811 void sub_3800B280(void) {
   8812     int _fpu_cmp = 0;
   8813     uint32_t _cf = 0;
   8814     int _df = 1;
   8815     uint32_t _flag_k = FK_NONE;
   8816     uint32_t _flag_a = 0, _flag_b = 0;
   8817     uint32_t _itail_tgt = 0;
   8818     RECOMP_REGS_LOCALS
   8819     RECOMP_ENTER(0x3800B280u);
   8820 
   8821 L_3800B280:
   8822     SET_LO8(ecx, MEM8(0x3806EA20)); /* 0x3800B280: mov cl, byte ptr [0x3806ea20] */
   8823     SET_LO8(eax, 1); /* 0x3800B286: mov al, 1 */
   8824     /* test LO8(eax), LO8(ecx) */ /* 0x3800B288: test al, cl */
   8825     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   8826     _cf = 0;
   8827     _flag_k = FK_NARROW(FK_TEST, 24);
   8828     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800B2EB; /* 0x3800B28A: jne 0x3800b2eb */
   8829 L_3800B28C:
   8830     PUSH32(esp, esi); /* 0x3800B28C: push esi */
   8831     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
   8832     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x3800B28D: or cl, al */
   8833     _cf = 0;
   8834     _flag_k = FK_NARROW(FK_TEST, 24);
   8835     PUSH32(esp, edi); /* 0x3800B28F: push edi */
   8836     edi = MEM32(0x3806EA2C); /* 0x3800B290: mov edi, dword ptr [0x3806ea2c] */
   8837     MEM8(0x3806EA20) = (uint8_t)(LO8(ecx)); /* 0x3800B296: mov byte ptr [0x3806ea20], cl */
   8838     esi = MEM32(edi); /* 0x3800B29C: mov esi, dword ptr [edi] */
   8839     /* cmp esi, edi */ /* 0x3800B29E: cmp esi, edi */
   8840     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   8841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8842     _flag_k = FK_CMP;
   8843     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B2CF; /* 0x3800B2A0: je 0x3800b2cf */
   8844 L_3800B2A2:
   8845     eax = esi; /* 0x3800B2A2: mov eax, esi */
   8846     ecx = MEM32(eax + 0x4); /* 0x3800B2A4: mov ecx, dword ptr [eax + 4] */
   8847     edx = MEM32(eax); /* 0x3800B2A7: mov edx, dword ptr [eax] */
   8848     esi = MEM32(esi); /* 0x3800B2A9: mov esi, dword ptr [esi] */
   8849     MEM32(ecx) = edx; /* 0x3800B2AB: mov dword ptr [ecx], edx */
   8850     ecx = MEM32(eax); /* 0x3800B2AD: mov ecx, dword ptr [eax] */
   8851     edx = MEM32(eax + 0x4); /* 0x3800B2AF: mov edx, dword ptr [eax + 4] */
   8852     PUSH32(esp, eax); /* 0x3800B2B2: push eax */
   8853     MEM32(ecx + 0x4) = edx; /* 0x3800B2B3: mov dword ptr [ecx + 4], edx */
   8854     RECOMP_ICALL(0x3804B4F6u); /* 0x3800B2B6: call 0x3804b4f6 */ /* not lifted */
   8855     RECOMP_FLAGS_IN();
   8856     ecx = MEM32(0x3806EA30); /* 0x3800B2BB: mov ecx, dword ptr [0x3806ea30] */
   8857     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8859     esp = esp + 4; /* 0x3800B2C1: add esp, 4 */
   8860     _flag_k = FK_ADD;
   8861     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8862     ecx = ecx - 1; /* 0x3800B2C4: dec ecx */
   8863     _flag_k = FK_DEC;
   8864     /* cmp esi, edi */ /* 0x3800B2C5: cmp esi, edi */
   8865     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   8866     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8867     _flag_k = FK_CMP;
   8868     MEM32(0x3806EA30) = ecx; /* 0x3800B2C7: mov dword ptr [0x3806ea30], ecx */
   8869     RECOMP_BACKEDGE();
   8870     if (CMP_NE(_flag_a, _flag_b)) goto L_3800B2A2; /* 0x3800B2CD: jne 0x3800b2a2 */
   8871 L_3800B2CF:
   8872     eax = MEM32(0x3806EA2C); /* 0x3800B2CF: mov eax, dword ptr [0x3806ea2c] */
   8873     PUSH32(esp, eax); /* 0x3800B2D4: push eax */
   8874     RECOMP_ICALL(0x3804B4F6u); /* 0x3800B2D5: call 0x3804b4f6 */ /* not lifted */
   8875     RECOMP_FLAGS_IN();
   8876     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8877     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8878     esp = esp + 4; /* 0x3800B2DA: add esp, 4 */
   8879     _flag_k = FK_ADD;
   8880     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8881     eax = 0; /* 0x3800B2DD: xor eax, eax */
   8882     _cf = 0;
   8883     _flag_k = FK_TEST;
   8884     edi = POP32_VAL(esp); /* 0x3800B2DF: pop edi */
   8885     MEM32(0x3806EA2C) = eax; /* 0x3800B2E0: mov dword ptr [0x3806ea2c], eax */
   8886     MEM32(0x3806EA30) = eax; /* 0x3800B2E5: mov dword ptr [0x3806ea30], eax */
   8887     esi = POP32_VAL(esp); /* 0x3800B2EA: pop esi */
   8888 L_3800B2EB:
   8889     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B2EB: ret  */
   8890     RECOMP_REGS_OUT();
   8891 }
   8892 
   8893 void sub_3800B2F0(void) {
   8894     int _fpu_cmp = 0;
   8895     uint32_t _cf = 0;
   8896     int _df = 1;
   8897     uint32_t _flag_k = FK_NONE;
   8898     uint32_t _flag_a = 0, _flag_b = 0;
   8899     uint32_t _itail_tgt = 0;
   8900     RECOMP_REGS_LOCALS
   8901     RECOMP_ENTER(0x3800B2F0u);
   8902 
   8903 L_3800B2F0:
   8904     PUSH32(esp, ebp); /* 0x3800B2F0: push ebp */
   8905     ebp = esp; /* 0x3800B2F1: mov ebp, esp */
   8906     eax = MEM32(ebp + 0x8); /* 0x3800B2F3: mov eax, dword ptr [ebp + 8] */
   8907     PUSH32(esp, esi); /* 0x3800B2F6: push esi */
   8908     PUSH32(esp, 0); /* 0x3800B2F7: push 0 */
   8909     PUSH32(esp, 0x3806B910u); /* 0x3800B2F9: push 0x3806b910 */
   8910     PUSH32(esp, 0x3806B8F0u); /* 0x3800B2FE: push 0x3806b8f0 */
   8911     PUSH32(esp, 0); /* 0x3800B303: push 0 */
   8912     PUSH32(esp, eax); /* 0x3800B305: push eax */
   8913     esi = ecx; /* 0x3800B306: mov esi, ecx */
   8914     RECOMP_ICALL(0x3804B682u); /* 0x3800B308: call 0x3804b682 */ /* not lifted */
   8915     RECOMP_FLAGS_IN();
   8916     ecx = MEM32(esi + 0x4); /* 0x3800B30D: mov ecx, dword ptr [esi + 4] */
   8917     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8918     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8919     esp = esp + 0x14u; /* 0x3800B310: add esp, 0x14 */
   8920     _flag_k = FK_ADD;
   8921     PUSH32(esp, eax); /* 0x3800B313: push eax */
   8922     RECOMP_ICALL(0x3800BBD0u); /* 0x3800B314: call 0x3800bbd0 */ /* not lifted */
   8923     RECOMP_FLAGS_IN();
   8924     esi = POP32_VAL(esp); /* 0x3800B319: pop esi */
   8925     ebp = POP32_VAL(esp); /* 0x3800B31A: pop ebp */
   8926     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800B31B: ret 4 */
   8927     RECOMP_REGS_OUT();
   8928 }
   8929 
   8930 void sub_3800B320(void) {
   8931     int _fpu_cmp = 0;
   8932     uint32_t _cf = 0;
   8933     int _df = 1;
   8934     uint32_t _flag_k = FK_NONE;
   8935     uint32_t _flag_a = 0, _flag_b = 0;
   8936     uint32_t _itail_tgt = 0;
   8937     RECOMP_REGS_LOCALS
   8938     RECOMP_ENTER(0x3800B320u);
   8939 
   8940 L_3800B320:
   8941     PUSH32(esp, ebp); /* 0x3800B320: push ebp */
   8942     ebp = esp; /* 0x3800B321: mov ebp, esp */
   8943     eax = MEM32(ebp + 0x8); /* 0x3800B323: mov eax, dword ptr [ebp + 8] */
   8944     PUSH32(esp, esi); /* 0x3800B326: push esi */
   8945     PUSH32(esp, 0); /* 0x3800B327: push 0 */
   8946     PUSH32(esp, 0x3806B910u); /* 0x3800B329: push 0x3806b910 */
   8947     PUSH32(esp, 0x3806B8F0u); /* 0x3800B32E: push 0x3806b8f0 */
   8948     PUSH32(esp, 0); /* 0x3800B333: push 0 */
   8949     PUSH32(esp, eax); /* 0x3800B335: push eax */
   8950     esi = ecx; /* 0x3800B336: mov esi, ecx */
   8951     RECOMP_ICALL(0x3804B682u); /* 0x3800B338: call 0x3804b682 */ /* not lifted */
   8952     RECOMP_FLAGS_IN();
   8953     ecx = MEM32(esi + 0x4); /* 0x3800B33D: mov ecx, dword ptr [esi + 4] */
   8954     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8955     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8956     esp = esp + 0x14u; /* 0x3800B340: add esp, 0x14 */
   8957     _flag_k = FK_ADD;
   8958     PUSH32(esp, eax); /* 0x3800B343: push eax */
   8959     RECOMP_ICALL(0x3800BCF0u); /* 0x3800B344: call 0x3800bcf0 */ /* not lifted */
   8960     RECOMP_FLAGS_IN();
   8961     esi = POP32_VAL(esp); /* 0x3800B349: pop esi */
   8962     ebp = POP32_VAL(esp); /* 0x3800B34A: pop ebp */
   8963     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800B34B: ret 4 */
   8964     RECOMP_REGS_OUT();
   8965 }
   8966 
   8967 void sub_3800B350(void) {
   8968     int _fpu_cmp = 0;
   8969     uint32_t _cf = 0;
   8970     int _df = 1;
   8971     uint32_t _flag_k = FK_NONE;
   8972     uint32_t _flag_a = 0, _flag_b = 0;
   8973     uint32_t _itail_tgt = 0;
   8974     RECOMP_REGS_LOCALS
   8975     RECOMP_ENTER(0x3800B350u);
   8976 
   8977 L_3800B350:
   8978     PUSH32(esp, ebp); /* 0x3800B350: push ebp */
   8979     ebp = esp; /* 0x3800B351: mov ebp, esp */
   8980     eax = ecx; /* 0x3800B353: mov eax, ecx */
   8981     PUSH32(esp, esi); /* 0x3800B355: push esi */
   8982     esi = MEM32(ebp + 0x8); /* 0x3800B356: mov esi, dword ptr [ebp + 8] */
   8983     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8984     ecx = 0; /* 0x3800B359: xor ecx, ecx */
   8985     _cf = 0;
   8986     _flag_k = FK_TEST;
   8987     PUSH32(esp, edi); /* 0x3800B35B: push edi */
   8988     MEM8(eax + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3800B35C: mov byte ptr [eax + 4], cl */
   8989     MEM32(eax + 0x8) = ecx; /* 0x3800B35F: mov dword ptr [eax + 8], ecx */
   8990     MEM8(eax + 0xC) = (uint8_t)(LO8(ecx)); /* 0x3800B362: mov byte ptr [eax + 0xc], cl */
   8991     edi = MEM32(esi); /* 0x3800B365: mov edi, dword ptr [esi] */
   8992     edx = eax + 0x10; /* 0x3800B367: lea edx, [eax + 0x10] */
   8993     MEM32(edx) = edi; /* 0x3800B36A: mov dword ptr [edx], edi */
   8994     edi = MEM32(esi + 0x4); /* 0x3800B36C: mov edi, dword ptr [esi + 4] */
   8995     MEM32(edx + 0x4) = edi; /* 0x3800B36F: mov dword ptr [edx + 4], edi */
   8996     esi = MEM32(esi + 0x8); /* 0x3800B372: mov esi, dword ptr [esi + 8] */
   8997     MEM32(edx + 0x8) = esi; /* 0x3800B375: mov dword ptr [edx + 8], esi */
   8998     esi = MEM32(ebp + 0xC); /* 0x3800B378: mov esi, dword ptr [ebp + 0xc] */
   8999     edi = MEM32(esi); /* 0x3800B37B: mov edi, dword ptr [esi] */
   9000     edx = eax + 0x1C; /* 0x3800B37D: lea edx, [eax + 0x1c] */
   9001     MEM32(edx) = edi; /* 0x3800B380: mov dword ptr [edx], edi */
   9002     edi = MEM32(esi + 0x4); /* 0x3800B382: mov edi, dword ptr [esi + 4] */
   9003     MEM32(edx + 0x4) = edi; /* 0x3800B385: mov dword ptr [edx + 4], edi */
   9004     edi = MEM32(esi + 0x8); /* 0x3800B388: mov edi, dword ptr [esi + 8] */
   9005     MEM32(edx + 0x8) = edi; /* 0x3800B38B: mov dword ptr [edx + 8], edi */
   9006     esi = MEM32(esi + 0xC); /* 0x3800B38E: mov esi, dword ptr [esi + 0xc] */
   9007     MEM32(edx + 0xC) = esi; /* 0x3800B391: mov dword ptr [edx + 0xc], esi */
   9008     edx = MEM32(ebp + 0x10); /* 0x3800B394: mov edx, dword ptr [ebp + 0x10] */
   9009     esi = MEM32(ebp + 0x18); /* 0x3800B397: mov esi, dword ptr [ebp + 0x18] */
   9010     MEM32(eax + 0x2C) = edx; /* 0x3800B39A: mov dword ptr [eax + 0x2c], edx */
   9011     edx = MEM32(ebp + 0x14); /* 0x3800B39D: mov edx, dword ptr [ebp + 0x14] */
   9012     MEM32(eax + 0x30) = edx; /* 0x3800B3A0: mov dword ptr [eax + 0x30], edx */
   9013     edx = MEM32(ebp + 0x20); /* 0x3800B3A3: mov edx, dword ptr [ebp + 0x20] */
   9014     MEM32(eax + 0x38) = edx; /* 0x3800B3A6: mov dword ptr [eax + 0x38], edx */
   9015     edx = MEM32(ebp + 0x1C); /* 0x3800B3A9: mov edx, dword ptr [ebp + 0x1c] */
   9016     MEM32(eax + 0x3C) = edx; /* 0x3800B3AC: mov dword ptr [eax + 0x3c], edx */
   9017     edx = MEM32(ebp + 0x24); /* 0x3800B3AF: mov edx, dword ptr [ebp + 0x24] */
   9018     MEM32(eax + 0x40) = edx; /* 0x3800B3B2: mov dword ptr [eax + 0x40], edx */
   9019     edx = MEM32(ebp + 0x28); /* 0x3800B3B5: mov edx, dword ptr [ebp + 0x28] */
   9020     MEM32(eax + 0x48) = edx; /* 0x3800B3B8: mov dword ptr [eax + 0x48], edx */
   9021     SET_LO8(edx, MEM8(ebp + 0x2C)); /* 0x3800B3BB: mov dl, byte ptr [ebp + 0x2c] */
   9022     edi = POP32_VAL(esp); /* 0x3800B3BE: pop edi */
   9023     MEM32(eax + 0x34) = esi; /* 0x3800B3BF: mov dword ptr [eax + 0x34], esi */
   9024     MEM32(eax + 0x54) = esi; /* 0x3800B3C2: mov dword ptr [eax + 0x54], esi */
   9025     MEM32(eax + 0x4C) = ecx; /* 0x3800B3C5: mov dword ptr [eax + 0x4c], ecx */
   9026     MEM8(eax + 0x50) = (uint8_t)(LO8(edx)); /* 0x3800B3C8: mov byte ptr [eax + 0x50], dl */
   9027     MEM32(eax) = ecx; /* 0x3800B3CB: mov dword ptr [eax], ecx */
   9028     MEM32(eax + 0x44) = ecx; /* 0x3800B3CD: mov dword ptr [eax + 0x44], ecx */
   9029     esi = POP32_VAL(esp); /* 0x3800B3D0: pop esi */
   9030     ebp = POP32_VAL(esp); /* 0x3800B3D1: pop ebp */
   9031     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x3800B3D2: ret 0x28 */
   9032     RECOMP_REGS_OUT();
   9033 }
   9034 
   9035 void sub_3800B3E0(void) {
   9036     int _fpu_cmp = 0;
   9037     uint32_t _cf = 0;
   9038     int _df = 1;
   9039     uint32_t _flag_k = FK_NONE;
   9040     uint32_t _flag_a = 0, _flag_b = 0;
   9041     uint32_t _itail_tgt = 0;
   9042     RECOMP_REGS_LOCALS
   9043     RECOMP_ENTER(0x3800B3E0u);
   9044 
   9045 L_3800B3E0:
   9046     PUSH32(esp, ebp); /* 0x3800B3E0: push ebp */
   9047     ebp = esp; /* 0x3800B3E1: mov ebp, esp */
   9048     eax = ecx; /* 0x3800B3E3: mov eax, ecx */
   9049     PUSH32(esp, esi); /* 0x3800B3E5: push esi */
   9050     esi = MEM32(ebp + 0x8); /* 0x3800B3E6: mov esi, dword ptr [ebp + 8] */
   9051     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9052     ecx = 0; /* 0x3800B3E9: xor ecx, ecx */
   9053     _cf = 0;
   9054     _flag_k = FK_TEST;
   9055     PUSH32(esp, edi); /* 0x3800B3EB: push edi */
   9056     MEM8(eax + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3800B3EC: mov byte ptr [eax + 4], cl */
   9057     MEM32(eax + 0x8) = ecx; /* 0x3800B3EF: mov dword ptr [eax + 8], ecx */
   9058     MEM8(eax + 0xC) = (uint8_t)(1); /* 0x3800B3F2: mov byte ptr [eax + 0xc], 1 */
   9059     edi = MEM32(esi); /* 0x3800B3F6: mov edi, dword ptr [esi] */
   9060     edx = eax + 0x10; /* 0x3800B3F8: lea edx, [eax + 0x10] */
   9061     MEM32(edx) = edi; /* 0x3800B3FB: mov dword ptr [edx], edi */
   9062     edi = MEM32(esi + 0x4); /* 0x3800B3FD: mov edi, dword ptr [esi + 4] */
   9063     MEM32(edx + 0x4) = edi; /* 0x3800B400: mov dword ptr [edx + 4], edi */
   9064     esi = MEM32(esi + 0x8); /* 0x3800B403: mov esi, dword ptr [esi + 8] */
   9065     MEM32(edx + 0x8) = esi; /* 0x3800B406: mov dword ptr [edx + 8], esi */
   9066     esi = MEM32(ebp + 0xC); /* 0x3800B409: mov esi, dword ptr [ebp + 0xc] */
   9067     edi = MEM32(esi); /* 0x3800B40C: mov edi, dword ptr [esi] */
   9068     edx = eax + 0x1C; /* 0x3800B40E: lea edx, [eax + 0x1c] */
   9069     MEM32(edx) = edi; /* 0x3800B411: mov dword ptr [edx], edi */
   9070     edi = MEM32(esi + 0x4); /* 0x3800B413: mov edi, dword ptr [esi + 4] */
   9071     MEM32(edx + 0x4) = edi; /* 0x3800B416: mov dword ptr [edx + 4], edi */
   9072     edi = MEM32(esi + 0x8); /* 0x3800B419: mov edi, dword ptr [esi + 8] */
   9073     MEM32(edx + 0x8) = edi; /* 0x3800B41C: mov dword ptr [edx + 8], edi */
   9074     esi = MEM32(esi + 0xC); /* 0x3800B41F: mov esi, dword ptr [esi + 0xc] */
   9075     MEM32(edx + 0xC) = esi; /* 0x3800B422: mov dword ptr [edx + 0xc], esi */
   9076     edx = MEM32(ebp + 0x10); /* 0x3800B425: mov edx, dword ptr [ebp + 0x10] */
   9077     edi = POP32_VAL(esp); /* 0x3800B428: pop edi */
   9078     MEM32(eax + 0x2C) = ecx; /* 0x3800B429: mov dword ptr [eax + 0x2c], ecx */
   9079     MEM32(eax + 0x30) = 0x3F800000u; /* 0x3800B42C: mov dword ptr [eax + 0x30], 0x3f800000 */
   9080     MEM32(eax + 0x34) = ecx; /* 0x3800B433: mov dword ptr [eax + 0x34], ecx */
   9081     MEM32(eax + 0x38) = ecx; /* 0x3800B436: mov dword ptr [eax + 0x38], ecx */
   9082     MEM32(eax + 0x3C) = ecx; /* 0x3800B439: mov dword ptr [eax + 0x3c], ecx */
   9083     MEM32(eax + 0x40) = ecx; /* 0x3800B43C: mov dword ptr [eax + 0x40], ecx */
   9084     MEM32(eax + 0x48) = ecx; /* 0x3800B43F: mov dword ptr [eax + 0x48], ecx */
   9085     MEM32(eax + 0x4C) = ecx; /* 0x3800B442: mov dword ptr [eax + 0x4c], ecx */
   9086     MEM32(eax) = ecx; /* 0x3800B445: mov dword ptr [eax], ecx */
   9087     MEM32(eax + 0x44) = edx; /* 0x3800B447: mov dword ptr [eax + 0x44], edx */
   9088     MEM32(eax + 0x54) = ecx; /* 0x3800B44A: mov dword ptr [eax + 0x54], ecx */
   9089     esi = POP32_VAL(esp); /* 0x3800B44D: pop esi */
   9090     ebp = POP32_VAL(esp); /* 0x3800B44E: pop ebp */
   9091     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3800B44F: ret 0xc */
   9092     RECOMP_REGS_OUT();
   9093 }
   9094 
   9095 void sub_3800B460(void) {
   9096     int _fpu_cmp = 0;
   9097     uint32_t _cf = 0;
   9098     int _df = 1;
   9099     uint32_t _flag_k = FK_NONE;
   9100     uint32_t _flag_a = 0, _flag_b = 0;
   9101     uint32_t _itail_tgt = 0;
   9102     RECOMP_REGS_LOCALS
   9103     RECOMP_ENTER(0x3800B460u);
   9104 
   9105 L_3800B460:
   9106     PUSH32(esp, ebp); /* 0x3800B460: push ebp */
   9107     ebp = esp; /* 0x3800B461: mov ebp, esp */
   9108     PUSH32(esp, 0xFFFFFFFFu); /* 0x3800B463: push -1 */
   9109     PUSH32(esp, 0x3804BB6Eu); /* 0x3800B465: push 0x3804bb6e */
   9110     eax = MEM32(FS_BASE + (0)); /* 0x3800B46A: mov eax, dword ptr fs:[0] */
   9111     PUSH32(esp, eax); /* 0x3800B470: push eax */
   9112     MEM32(FS_BASE + (0)) = esp; /* 0x3800B471: mov dword ptr fs:[0], esp */
   9113     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   9114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9115     esp = esp - 0x10u; /* 0x3800B478: sub esp, 0x10 */
   9116     _flag_k = FK_CMP;
   9117     PUSH32(esp, ebx); /* 0x3800B47B: push ebx */
   9118     PUSH32(esp, esi); /* 0x3800B47C: push esi */
   9119     PUSH32(esp, edi); /* 0x3800B47D: push edi */
   9120     ebx = ecx; /* 0x3800B47E: mov ebx, ecx */
   9121     esi = MEM32(ebp + 0x8); /* 0x3800B480: mov esi, dword ptr [ebp + 8] */
   9122     SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3800B483: mov al, byte ptr [esi + 4] */
   9123     MEM8(ebx + 0x4) = (uint8_t)(LO8(eax)); /* 0x3800B486: mov byte ptr [ebx + 4], al */
   9124     ecx = MEM32(esi + 0x8); /* 0x3800B489: mov ecx, dword ptr [esi + 8] */
   9125     MEM32(ebx + 0x8) = ecx; /* 0x3800B48C: mov dword ptr [ebx + 8], ecx */
   9126     SET_LO8(edx, MEM8(esi + 0xC)); /* 0x3800B48F: mov dl, byte ptr [esi + 0xc] */
   9127     MEM8(ebx + 0xC) = (uint8_t)(LO8(edx)); /* 0x3800B492: mov byte ptr [ebx + 0xc], dl */
   9128     eax = esi + 0x10; /* 0x3800B495: lea eax, [esi + 0x10] */
   9129     edx = MEM32(eax); /* 0x3800B498: mov edx, dword ptr [eax] */
   9130     ecx = ebx + 0x10; /* 0x3800B49A: lea ecx, [ebx + 0x10] */
   9131     MEM32(ecx) = edx; /* 0x3800B49D: mov dword ptr [ecx], edx */
   9132     edx = MEM32(eax + 0x4); /* 0x3800B49F: mov edx, dword ptr [eax + 4] */
   9133     MEM32(ecx + 0x4) = edx; /* 0x3800B4A2: mov dword ptr [ecx + 4], edx */
   9134     eax = MEM32(eax + 0x8); /* 0x3800B4A5: mov eax, dword ptr [eax + 8] */
   9135     MEM32(ecx + 0x8) = eax; /* 0x3800B4A8: mov dword ptr [ecx + 8], eax */
   9136     ecx = esi + 0x1C; /* 0x3800B4AB: lea ecx, [esi + 0x1c] */
   9137     eax = MEM32(ecx); /* 0x3800B4AE: mov eax, dword ptr [ecx] */
   9138     edx = ebx + 0x1C; /* 0x3800B4B0: lea edx, [ebx + 0x1c] */
   9139     MEM32(edx) = eax; /* 0x3800B4B3: mov dword ptr [edx], eax */
   9140     eax = MEM32(ecx + 0x4); /* 0x3800B4B5: mov eax, dword ptr [ecx + 4] */
   9141     MEM32(edx + 0x4) = eax; /* 0x3800B4B8: mov dword ptr [edx + 4], eax */
   9142     eax = MEM32(ecx + 0x8); /* 0x3800B4BB: mov eax, dword ptr [ecx + 8] */
   9143     MEM32(edx + 0x8) = eax; /* 0x3800B4BE: mov dword ptr [edx + 8], eax */
   9144     ecx = MEM32(ecx + 0xC); /* 0x3800B4C1: mov ecx, dword ptr [ecx + 0xc] */
   9145     MEM32(edx + 0xC) = ecx; /* 0x3800B4C4: mov dword ptr [edx + 0xc], ecx */
   9146     edx = MEM32(esi + 0x2C); /* 0x3800B4C7: mov edx, dword ptr [esi + 0x2c] */
   9147     MEM32(ebx + 0x2C) = edx; /* 0x3800B4CA: mov dword ptr [ebx + 0x2c], edx */
   9148     eax = MEM32(esi + 0x30); /* 0x3800B4CD: mov eax, dword ptr [esi + 0x30] */
   9149     MEM32(ebx + 0x30) = eax; /* 0x3800B4D0: mov dword ptr [ebx + 0x30], eax */
   9150     ecx = MEM32(esi + 0x34); /* 0x3800B4D3: mov ecx, dword ptr [esi + 0x34] */
   9151     MEM32(ebx + 0x34) = ecx; /* 0x3800B4D6: mov dword ptr [ebx + 0x34], ecx */
   9152     edx = MEM32(esi + 0x38); /* 0x3800B4D9: mov edx, dword ptr [esi + 0x38] */
   9153     MEM32(ebx + 0x38) = edx; /* 0x3800B4DC: mov dword ptr [ebx + 0x38], edx */
   9154     eax = MEM32(esi + 0x3C); /* 0x3800B4DF: mov eax, dword ptr [esi + 0x3c] */
   9155     MEM32(ebx + 0x3C) = eax; /* 0x3800B4E2: mov dword ptr [ebx + 0x3c], eax */
   9156     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9157     eax = 0; /* 0x3800B4E5: xor eax, eax */
   9158     _cf = 0;
   9159     _flag_k = FK_TEST;
   9160     MEM32(ebx + 0x40) = eax; /* 0x3800B4E7: mov dword ptr [ebx + 0x40], eax */
   9161     ecx = MEM32(esi + 0x4C); /* 0x3800B4EA: mov ecx, dword ptr [esi + 0x4c] */
   9162     MEM32(ebx + 0x4C) = ecx; /* 0x3800B4ED: mov dword ptr [ebx + 0x4c], ecx */
   9163     SET_LO8(edx, MEM8(esi + 0x50)); /* 0x3800B4F0: mov dl, byte ptr [esi + 0x50] */
   9164     MEM8(ebx + 0x50) = (uint8_t)(LO8(edx)); /* 0x3800B4F3: mov byte ptr [ebx + 0x50], dl */
   9165     MEM32(ebx) = eax; /* 0x3800B4F6: mov dword ptr [ebx], eax */
   9166     MEM32(ebx + 0x44) = eax; /* 0x3800B4F8: mov dword ptr [ebx + 0x44], eax */
   9167     /* cmp MEM32(esi + 0x40), eax */ /* 0x3800B4FB: cmp dword ptr [esi + 0x40], eax */
   9168     _flag_a = (uint32_t)(MEM32(esi + 0x40)); _flag_b = (uint32_t)(eax);
   9169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9170     _flag_k = FK_CMP;
   9171     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B5A3; /* 0x3800B4FE: je 0x3800b5a3 */
   9172 L_3800B504:
   9173     PUSH32(esp, 0x10u); /* 0x3800B504: push 0x10 */
   9174     RECOMP_ICALL(0x3804B676u); /* 0x3800B506: call 0x3804b676 */ /* not lifted */
   9175     RECOMP_FLAGS_IN();
   9176     edi = eax; /* 0x3800B50B: mov edi, eax */
   9177     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9178     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9179     esp = esp + 4; /* 0x3800B50D: add esp, 4 */
   9180     _flag_k = FK_ADD;
   9181     MEM32(ebp + (-0x1C)) = edi; /* 0x3800B510: mov dword ptr [ebp - 0x1c], edi */
   9182     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9183     edx = 0; /* 0x3800B513: xor edx, edx */
   9184     _cf = 0;
   9185     _flag_k = FK_TEST;
   9186     /* cmp edi, edx */ /* 0x3800B515: cmp edi, edx */
   9187     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   9188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9189     _flag_k = FK_CMP;
   9190     MEM32(ebp + (-0x4)) = edx; /* 0x3800B517: mov dword ptr [ebp - 4], edx */
   9191     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B599; /* 0x3800B51A: je 0x3800b599 */
   9192 L_3800B51C:
   9193     ecx = MEM32(esi + 0x40); /* 0x3800B51C: mov ecx, dword ptr [esi + 0x40] */
   9194     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3800B51F: mov al, byte ptr [ebp + 0xb] */
   9195     MEM32(ebp + (-0x14)) = ecx; /* 0x3800B522: mov dword ptr [ebp - 0x14], ecx */
   9196     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3800B525: mov byte ptr [edi], al */
   9197     MEM32(edi + 0x4) = edx; /* 0x3800B527: mov dword ptr [edi + 4], edx */
   9198     MEM32(edi + 0x8) = edx; /* 0x3800B52A: mov dword ptr [edi + 8], edx */
   9199     MEM32(edi + 0xC) = edx; /* 0x3800B52D: mov dword ptr [edi + 0xc], edx */
   9200     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3800B530: mov byte ptr [ebp - 4], 1 */
   9201     MEM32(ebp + (-0x10)) = edx; /* 0x3800B534: mov dword ptr [ebp - 0x10], edx */
   9202 L_3800B537:
   9203     eax = MEM32(ecx + 0x4); /* 0x3800B537: mov eax, dword ptr [ecx + 4] */
   9204     /* cmp eax, edx */ /* 0x3800B53A: cmp eax, edx */
   9205     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   9206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9207     _flag_k = FK_CMP;
   9208     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B597; /* 0x3800B53C: je 0x3800b597 */
   9209 L_3800B53E:
   9210     ecx = MEM32(ecx + 0x8); /* 0x3800B53E: mov ecx, dword ptr [ecx + 8] */
   9211     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   9212     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9213     ecx = ecx - eax; /* 0x3800B541: sub ecx, eax */
   9214     _flag_k = FK_CMP;
   9215     eax = MEM32(ebp + (-0x10)); /* 0x3800B543: mov eax, dword ptr [ebp - 0x10] */
   9216     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3800B546: sar ecx, 2 */
   9217     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9218     ecx = (uint32_t)((int32_t)ecx >> 2u);
   9219     /* cmp eax, ecx */ /* 0x3800B549: cmp eax, ecx */
   9220     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9222     _flag_k = FK_CMP;
   9223     if (CMP_AE(_flag_a, _flag_b)) goto L_3800B597; /* 0x3800B54B: jae 0x3800b597 */
   9224 L_3800B54D:
   9225     PUSH32(esp, 8); /* 0x3800B54D: push 8 */
   9226     RECOMP_ICALL(0x3804B676u); /* 0x3800B54F: call 0x3804b676 */ /* not lifted */
   9227     RECOMP_FLAGS_IN();
   9228     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9229     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9230     esp = esp + 4; /* 0x3800B554: add esp, 4 */
   9231     _flag_k = FK_ADD;
   9232     /* test eax, eax */ /* 0x3800B557: test eax, eax */
   9233     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9234     _cf = 0;
   9235     _flag_k = FK_TEST;
   9236     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B573; /* 0x3800B559: je 0x3800b573 */
   9237 L_3800B55B:
   9238     edx = MEM32(ebp + (-0x14)); /* 0x3800B55B: mov edx, dword ptr [ebp - 0x14] */
   9239     ecx = MEM32(edx + 0x4); /* 0x3800B55E: mov ecx, dword ptr [edx + 4] */
   9240     edx = MEM32(ebp + (-0x10)); /* 0x3800B561: mov edx, dword ptr [ebp - 0x10] */
   9241     ecx = MEM32(ecx + edx * 4); /* 0x3800B564: mov ecx, dword ptr [ecx + edx*4] */
   9242     edx = MEM32(ecx); /* 0x3800B567: mov edx, dword ptr [ecx] */
   9243     MEM32(eax) = edx; /* 0x3800B569: mov dword ptr [eax], edx */
   9244     ecx = MEM32(ecx + 0x4); /* 0x3800B56B: mov ecx, dword ptr [ecx + 4] */
   9245     MEM32(eax + 0x4) = ecx; /* 0x3800B56E: mov dword ptr [eax + 4], ecx */
   9246     goto L_3800B575; /* 0x3800B571: jmp 0x3800b575 */
   9247 L_3800B573:
   9248     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9249     eax = 0; /* 0x3800B573: xor eax, eax */
   9250     _cf = 0;
   9251     _flag_k = FK_TEST;
   9252 L_3800B575:
   9253     edx = ebp + (-0x18); /* 0x3800B575: lea edx, [ebp - 0x18] */
   9254     PUSH32(esp, edx); /* 0x3800B578: push edx */
   9255     MEM32(ebp + (-0x18)) = eax; /* 0x3800B579: mov dword ptr [ebp - 0x18], eax */
   9256     eax = MEM32(edi + 0x8); /* 0x3800B57C: mov eax, dword ptr [edi + 8] */
   9257     PUSH32(esp, 1); /* 0x3800B57F: push 1 */
   9258     PUSH32(esp, eax); /* 0x3800B581: push eax */
   9259     ecx = edi; /* 0x3800B582: mov ecx, edi */
   9260     RECOMP_ICALL(0x38009C60u); /* 0x3800B584: call 0x38009c60 */ /* not lifted */
   9261     RECOMP_FLAGS_IN();
   9262     eax = MEM32(ebp + (-0x10)); /* 0x3800B589: mov eax, dword ptr [ebp - 0x10] */
   9263     ecx = MEM32(ebp + (-0x14)); /* 0x3800B58C: mov ecx, dword ptr [ebp - 0x14] */
   9264     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9265     eax = eax + 1; /* 0x3800B58F: inc eax */
   9266     _flag_k = FK_INC;
   9267     MEM32(ebp + (-0x10)) = eax; /* 0x3800B590: mov dword ptr [ebp - 0x10], eax */
   9268     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9269     edx = 0; /* 0x3800B593: xor edx, edx */
   9270     _cf = 0;
   9271     _flag_k = FK_TEST;
   9272     RECOMP_BACKEDGE();
   9273     goto L_3800B537; /* 0x3800B595: jmp 0x3800b537 */
   9274 L_3800B597:
   9275     edx = edi; /* 0x3800B597: mov edx, edi */
   9276 L_3800B599:
   9277     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3800B599: mov dword ptr [ebp - 4], 0xffffffff */
   9278     MEM32(ebx + 0x40) = edx; /* 0x3800B5A0: mov dword ptr [ebx + 0x40], edx */
   9279 L_3800B5A3:
   9280     eax = MEM32(esi + 0x48); /* 0x3800B5A3: mov eax, dword ptr [esi + 0x48] */
   9281     /* test eax, eax */ /* 0x3800B5A6: test eax, eax */
   9282     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9283     _cf = 0;
   9284     _flag_k = FK_TEST;
   9285     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B5CE; /* 0x3800B5A8: je 0x3800b5ce */
   9286 L_3800B5AA:
   9287     PUSH32(esp, 0x40u); /* 0x3800B5AA: push 0x40 */
   9288     RECOMP_ICALL(0x3804B676u); /* 0x3800B5AC: call 0x3804b676 */ /* not lifted */
   9289     RECOMP_FLAGS_IN();
   9290     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9291     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9292     esp = esp + 4; /* 0x3800B5B1: add esp, 4 */
   9293     _flag_k = FK_ADD;
   9294     /* test eax, eax */ /* 0x3800B5B4: test eax, eax */
   9295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9296     _cf = 0;
   9297     _flag_k = FK_TEST;
   9298     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B5C9; /* 0x3800B5B6: je 0x3800b5c9 */
   9299 L_3800B5B8:
   9300     esi = MEM32(esi + 0x48); /* 0x3800B5B8: mov esi, dword ptr [esi + 0x48] */
   9301     ecx = 0x10u; /* 0x3800B5BB: mov ecx, 0x10 */
   9302     edi = eax; /* 0x3800B5C0: mov edi, eax */
   9303     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3800B5C2: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   9304     esi = MEM32(ebp + 0x8); /* 0x3800B5C4: mov esi, dword ptr [ebp + 8] */
   9305     goto L_3800B5CB; /* 0x3800B5C7: jmp 0x3800b5cb */
   9306 L_3800B5C9:
   9307     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9308     eax = 0; /* 0x3800B5C9: xor eax, eax */
   9309     _cf = 0;
   9310     _flag_k = FK_TEST;
   9311 L_3800B5CB:
   9312     MEM32(ebx + 0x48) = eax; /* 0x3800B5CB: mov dword ptr [ebx + 0x48], eax */
   9313 L_3800B5CE:
   9314     eax = MEM32(esi + 0x44); /* 0x3800B5CE: mov eax, dword ptr [esi + 0x44] */
   9315     /* test eax, eax */ /* 0x3800B5D1: test eax, eax */
   9316     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9317     _cf = 0;
   9318     _flag_k = FK_TEST;
   9319     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B629; /* 0x3800B5D3: je 0x3800b629 */
   9320 L_3800B5D5:
   9321     PUSH32(esp, 8); /* 0x3800B5D5: push 8 */
   9322     RECOMP_ICALL(0x3804B676u); /* 0x3800B5D7: call 0x3804b676 */ /* not lifted */
   9323     RECOMP_FLAGS_IN();
   9324     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9325     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9326     esp = esp + 4; /* 0x3800B5DC: add esp, 4 */
   9327     _flag_k = FK_ADD;
   9328     /* test eax, eax */ /* 0x3800B5DF: test eax, eax */
   9329     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9330     _cf = 0;
   9331     _flag_k = FK_TEST;
   9332     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B5EE; /* 0x3800B5E1: je 0x3800b5ee */
   9333 L_3800B5E3:
   9334     MEM32(eax + 0x4) = ebx; /* 0x3800B5E3: mov dword ptr [eax + 4], ebx */
   9335     MEM32(eax) = 0x3804EC70u; /* 0x3800B5E6: mov dword ptr [eax], 0x3804ec70 */
   9336     goto L_3800B5F0; /* 0x3800B5EC: jmp 0x3800b5f0 */
   9337 L_3800B5EE:
   9338     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9339     eax = 0; /* 0x3800B5EE: xor eax, eax */
   9340     _cf = 0;
   9341     _flag_k = FK_TEST;
   9342 L_3800B5F0:
   9343     PUSH32(esp, 0x5Cu); /* 0x3800B5F0: push 0x5c */
   9344     MEM32(ebx) = eax; /* 0x3800B5F2: mov dword ptr [ebx], eax */
   9345     RECOMP_ICALL(0x3804B676u); /* 0x3800B5F4: call 0x3804b676 */ /* not lifted */
   9346     RECOMP_FLAGS_IN();
   9347     esi = eax; /* 0x3800B5F9: mov esi, eax */
   9348     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9349     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9350     esp = esp + 4; /* 0x3800B5FB: add esp, 4 */
   9351     _flag_k = FK_ADD;
   9352     MEM32(ebp + 0x8) = esi; /* 0x3800B5FE: mov dword ptr [ebp + 8], esi */
   9353     /* test esi, esi */ /* 0x3800B601: test esi, esi */
   9354     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   9355     _cf = 0;
   9356     _flag_k = FK_TEST;
   9357     MEM32(ebp + (-0x4)) = 2; /* 0x3800B603: mov dword ptr [ebp - 4], 2 */
   9358     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B629; /* 0x3800B60A: je 0x3800b629 */
   9359 L_3800B60C:
   9360     ecx = MEM32(ebx); /* 0x3800B60C: mov ecx, dword ptr [ebx] */
   9361     edx = MEM32(ebx + 0x34); /* 0x3800B60E: mov edx, dword ptr [ebx + 0x34] */
   9362     PUSH32(esp, 3); /* 0x3800B611: push 3 */
   9363     PUSH32(esp, ecx); /* 0x3800B613: push ecx */
   9364     PUSH32(esp, 0); /* 0x3800B614: push 0 */
   9365     PUSH32(esp, 1); /* 0x3800B616: push 1 */
   9366     PUSH32(esp, 1); /* 0x3800B618: push 1 */
   9367     PUSH32(esp, edx); /* 0x3800B61A: push edx */
   9368     ecx = esi; /* 0x3800B61B: mov ecx, esi */
   9369     RECOMP_ICALL(MEM32(0x3804E258)); /* 0x3800B61D: call dword ptr [0x3804e258] */
   9370     RECOMP_FLAGS_IN();
   9371     MEM32(esi) = 0x3804EC5Cu; /* 0x3800B623: mov dword ptr [esi], 0x3804ec5c */
   9372 L_3800B629:
   9373     ecx = MEM32(ebp + (-0xC)); /* 0x3800B629: mov ecx, dword ptr [ebp - 0xc] */
   9374     edi = POP32_VAL(esp); /* 0x3800B62C: pop edi */
   9375     esi = POP32_VAL(esp); /* 0x3800B62D: pop esi */
   9376     eax = ebx; /* 0x3800B62E: mov eax, ebx */
   9377     ebx = POP32_VAL(esp); /* 0x3800B630: pop ebx */
   9378     MEM32(FS_BASE + (0)) = ecx; /* 0x3800B631: mov dword ptr fs:[0], ecx */
   9379     esp = ebp; /* 0x3800B638: mov esp, ebp */
   9380     ebp = POP32_VAL(esp); /* 0x3800B63A: pop ebp */
   9381     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800B63B: ret 4 */
   9382     RECOMP_REGS_OUT();
   9383 }
   9384 
   9385 void sub_3800B640(void) {
   9386     int _fpu_cmp = 0;
   9387     uint32_t _cf = 0;
   9388     int _df = 1;
   9389     uint32_t _flag_k = FK_NONE;
   9390     uint32_t _flag_a = 0, _flag_b = 0;
   9391     uint32_t _itail_tgt = 0;
   9392     RECOMP_REGS_LOCALS
   9393     RECOMP_ENTER(0x3800B640u);
   9394 
   9395 L_3800B640:
   9396     PUSH32(esp, ebp); /* 0x3800B640: push ebp */
   9397     ebp = esp; /* 0x3800B641: mov ebp, esp */
   9398     PUSH32(esp, esi); /* 0x3800B643: push esi */
   9399     esi = ecx; /* 0x3800B644: mov esi, ecx */
   9400     RECOMP_ICALL(0x3800B670u); /* 0x3800B646: call 0x3800b670 */ /* not lifted */
   9401     RECOMP_FLAGS_IN();
   9402     /* test MEM8(ebp + 0x8), 1 */ /* 0x3800B64B: test byte ptr [ebp + 8], 1 */
   9403     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   9404     _cf = 0;
   9405     _flag_k = FK_NARROW(FK_TEST, 24);
   9406     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B65A; /* 0x3800B64F: je 0x3800b65a */
   9407 L_3800B651:
   9408     PUSH32(esp, esi); /* 0x3800B651: push esi */
   9409     RECOMP_ICALL(0x3804B4F6u); /* 0x3800B652: call 0x3804b4f6 */ /* not lifted */
   9410     RECOMP_FLAGS_IN();
   9411     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9412     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9413     esp = esp + 4; /* 0x3800B657: add esp, 4 */
   9414     _flag_k = FK_ADD;
   9415 L_3800B65A:
   9416     eax = esi; /* 0x3800B65A: mov eax, esi */
   9417     esi = POP32_VAL(esp); /* 0x3800B65C: pop esi */
   9418     ebp = POP32_VAL(esp); /* 0x3800B65D: pop ebp */
   9419     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800B65E: ret 4 */
   9420     RECOMP_REGS_OUT();
   9421 }
   9422 
   9423 void sub_3800B670(void) {
   9424     int _fpu_cmp = 0;
   9425     uint32_t _cf = 0;
   9426     int _df = 1;
   9427     uint32_t _flag_k = FK_NONE;
   9428     uint32_t _flag_a = 0, _flag_b = 0;
   9429     uint32_t _itail_tgt = 0;
   9430     RECOMP_REGS_LOCALS
   9431     RECOMP_ENTER(0x3800B670u);
   9432 
   9433 L_3800B670:
   9434     MEM32(ecx) = 0x3804EC80u; /* 0x3800B670: mov dword ptr [ecx], 0x3804ec80 */
   9435     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B676: ret  */
   9436     RECOMP_REGS_OUT();
   9437 }
   9438 
   9439 void sub_3800B680(void) {
   9440     int _fpu_cmp = 0;
   9441     uint32_t _cf = 0;
   9442     int _df = 1;
   9443     uint32_t _flag_k = FK_NONE;
   9444     uint32_t _flag_a = 0, _flag_b = 0;
   9445     uint32_t _itail_tgt = 0;
   9446     RECOMP_REGS_LOCALS
   9447     RECOMP_ENTER(0x3800B680u);
   9448 
   9449 L_3800B680:
   9450     PUSH32(esp, ebp); /* 0x3800B680: push ebp */
   9451     ebp = esp; /* 0x3800B681: mov ebp, esp */
   9452     /* test MEM8(ebp + 0x8), 1 */ /* 0x3800B683: test byte ptr [ebp + 8], 1 */
   9453     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   9454     _cf = 0;
   9455     _flag_k = FK_NARROW(FK_TEST, 24);
   9456     PUSH32(esp, esi); /* 0x3800B687: push esi */
   9457     esi = ecx; /* 0x3800B688: mov esi, ecx */
   9458     MEM32(esi) = 0x3804EC80u; /* 0x3800B68A: mov dword ptr [esi], 0x3804ec80 */
   9459     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B69B; /* 0x3800B690: je 0x3800b69b */
   9460 L_3800B692:
   9461     PUSH32(esp, esi); /* 0x3800B692: push esi */
   9462     RECOMP_ICALL(0x3804B4F6u); /* 0x3800B693: call 0x3804b4f6 */ /* not lifted */
   9463     RECOMP_FLAGS_IN();
   9464     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9465     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9466     esp = esp + 4; /* 0x3800B698: add esp, 4 */
   9467     _flag_k = FK_ADD;
   9468 L_3800B69B:
   9469     eax = esi; /* 0x3800B69B: mov eax, esi */
   9470     esi = POP32_VAL(esp); /* 0x3800B69D: pop esi */
   9471     ebp = POP32_VAL(esp); /* 0x3800B69E: pop ebp */
   9472     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800B69F: ret 4 */
   9473     RECOMP_REGS_OUT();
   9474 }
   9475 
   9476 void sub_3800B6B0(void) {
   9477     int _fpu_cmp = 0;
   9478     uint32_t _cf = 0;
   9479     int _df = 1;
   9480     uint32_t _flag_k = FK_NONE;
   9481     uint32_t _flag_a = 0, _flag_b = 0;
   9482     uint32_t _itail_tgt = 0;
   9483     RECOMP_REGS_LOCALS
   9484     RECOMP_ENTER(0x3800B6B0u);
   9485 
   9486 L_3800B6B0:
   9487     PUSH32(esp, ebp); /* 0x3800B6B0: push ebp */
   9488     ebp = esp; /* 0x3800B6B1: mov ebp, esp */
   9489     PUSH32(esp, esi); /* 0x3800B6B3: push esi */
   9490     esi = ecx; /* 0x3800B6B4: mov esi, ecx */
   9491     RECOMP_ICALL(MEM32(0x3804E25C)); /* 0x3800B6B6: call dword ptr [0x3804e25c] */
   9492     RECOMP_FLAGS_IN();
   9493     /* test MEM8(ebp + 0x8), 1 */ /* 0x3800B6BC: test byte ptr [ebp + 8], 1 */
   9494     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   9495     _cf = 0;
   9496     _flag_k = FK_NARROW(FK_TEST, 24);
   9497     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B6CB; /* 0x3800B6C0: je 0x3800b6cb */
   9498 L_3800B6C2:
   9499     PUSH32(esp, esi); /* 0x3800B6C2: push esi */
   9500     RECOMP_ICALL(0x3804B4F6u); /* 0x3800B6C3: call 0x3804b4f6 */ /* not lifted */
   9501     RECOMP_FLAGS_IN();
   9502     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9503     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9504     esp = esp + 4; /* 0x3800B6C8: add esp, 4 */
   9505     _flag_k = FK_ADD;
   9506 L_3800B6CB:
   9507     eax = esi; /* 0x3800B6CB: mov eax, esi */
   9508     esi = POP32_VAL(esp); /* 0x3800B6CD: pop esi */
   9509     ebp = POP32_VAL(esp); /* 0x3800B6CE: pop ebp */
   9510     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800B6CF: ret 4 */
   9511     RECOMP_REGS_OUT();
   9512 }
   9513 
   9514 void sub_3800B6E0(void) {
   9515     int _fpu_cmp = 0;
   9516     uint32_t _cf = 0;
   9517     int _df = 1;
   9518     uint32_t _flag_k = FK_NONE;
   9519     uint32_t _flag_a = 0, _flag_b = 0;
   9520     uint32_t _itail_tgt = 0;
   9521     RECOMP_REGS_LOCALS
   9522     RECOMP_ENTER(0x3800B6E0u);
   9523 
   9524 L_3800B6E0:
   9525     PUSH32(esp, ebx); /* 0x3800B6E0: push ebx */
   9526     PUSH32(esp, esi); /* 0x3800B6E1: push esi */
   9527     esi = ecx; /* 0x3800B6E2: mov esi, ecx */
   9528     RECOMP_ICALL(0x3800BAB0u); /* 0x3800B6E4: call 0x3800bab0 */ /* not lifted */
   9529     RECOMP_FLAGS_IN();
   9530     ecx = MEM32(esi + 0x44); /* 0x3800B6E9: mov ecx, dword ptr [esi + 0x44] */
   9531     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9532     ebx = 0; /* 0x3800B6EC: xor ebx, ebx */
   9533     _cf = 0;
   9534     _flag_k = FK_TEST;
   9535     /* cmp ecx, ebx */ /* 0x3800B6EE: cmp ecx, ebx */
   9536     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9538     _flag_k = FK_CMP;
   9539     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B6F8; /* 0x3800B6F0: je 0x3800b6f8 */
   9540 L_3800B6F2:
   9541     eax = MEM32(ecx); /* 0x3800B6F2: mov eax, dword ptr [ecx] */
   9542     PUSH32(esp, 1); /* 0x3800B6F4: push 1 */
   9543     RECOMP_ICALL(MEM32(eax)); /* 0x3800B6F6: call dword ptr [eax] */
   9544     RECOMP_FLAGS_IN();
   9545 L_3800B6F8:
   9546     ecx = MEM32(esi); /* 0x3800B6F8: mov ecx, dword ptr [esi] */
   9547     /* cmp ecx, ebx */ /* 0x3800B6FA: cmp ecx, ebx */
   9548     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9549     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9550     _flag_k = FK_CMP;
   9551     MEM32(esi + 0x44) = ebx; /* 0x3800B6FC: mov dword ptr [esi + 0x44], ebx */
   9552     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B707; /* 0x3800B6FF: je 0x3800b707 */
   9553 L_3800B701:
   9554     edx = MEM32(ecx); /* 0x3800B701: mov edx, dword ptr [ecx] */
   9555     PUSH32(esp, 1); /* 0x3800B703: push 1 */
   9556     RECOMP_ICALL(MEM32(edx)); /* 0x3800B705: call dword ptr [edx] */
   9557     RECOMP_FLAGS_IN();
   9558 L_3800B707:
   9559     PUSH32(esp, edi); /* 0x3800B707: push edi */
   9560     edi = MEM32(esi + 0x40); /* 0x3800B708: mov edi, dword ptr [esi + 0x40] */
   9561     /* cmp edi, ebx */ /* 0x3800B70B: cmp edi, ebx */
   9562     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   9563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9564     _flag_k = FK_CMP;
   9565     MEM32(esi) = ebx; /* 0x3800B70D: mov dword ptr [esi], ebx */
   9566     MEM32(esi + 0x3C) = ebx; /* 0x3800B70F: mov dword ptr [esi + 0x3c], ebx */
   9567     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B727; /* 0x3800B712: je 0x3800b727 */
   9568 L_3800B714:
   9569     ecx = edi; /* 0x3800B714: mov ecx, edi */
   9570     RECOMP_ICALL(0x3800B740u); /* 0x3800B716: call 0x3800b740 */ /* not lifted */
   9571     RECOMP_FLAGS_IN();
   9572     PUSH32(esp, edi); /* 0x3800B71B: push edi */
   9573     RECOMP_ICALL(0x3804B4F6u); /* 0x3800B71C: call 0x3804b4f6 */ /* not lifted */
   9574     RECOMP_FLAGS_IN();
   9575     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9576     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9577     esp = esp + 4; /* 0x3800B721: add esp, 4 */
   9578     _flag_k = FK_ADD;
   9579     MEM32(esi + 0x40) = ebx; /* 0x3800B724: mov dword ptr [esi + 0x40], ebx */
   9580 L_3800B727:
   9581     eax = MEM32(esi + 0x48); /* 0x3800B727: mov eax, dword ptr [esi + 0x48] */
   9582     /* cmp eax, ebx */ /* 0x3800B72A: cmp eax, ebx */
   9583     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9585     _flag_k = FK_CMP;
   9586     edi = POP32_VAL(esp); /* 0x3800B72C: pop edi */
   9587     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B73B; /* 0x3800B72D: je 0x3800b73b */
   9588 L_3800B72F:
   9589     PUSH32(esp, eax); /* 0x3800B72F: push eax */
   9590     RECOMP_ICALL(0x3804B4F6u); /* 0x3800B730: call 0x3804b4f6 */ /* not lifted */
   9591     RECOMP_FLAGS_IN();
   9592     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9593     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9594     esp = esp + 4; /* 0x3800B735: add esp, 4 */
   9595     _flag_k = FK_ADD;
   9596     MEM32(esi + 0x48) = ebx; /* 0x3800B738: mov dword ptr [esi + 0x48], ebx */
   9597 L_3800B73B:
   9598     esi = POP32_VAL(esp); /* 0x3800B73B: pop esi */
   9599     ebx = POP32_VAL(esp); /* 0x3800B73C: pop ebx */
   9600     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B73D: ret  */
   9601     RECOMP_REGS_OUT();
   9602 }
   9603 
   9604 void sub_3800B740(void) {
   9605     int _fpu_cmp = 0;
   9606     uint32_t _cf = 0;
   9607     int _df = 1;
   9608     uint32_t _flag_k = FK_NONE;
   9609     uint32_t _flag_a = 0, _flag_b = 0;
   9610     uint32_t _itail_tgt = 0;
   9611     RECOMP_REGS_LOCALS
   9612     RECOMP_ENTER(0x3800B740u);
   9613 
   9614 L_3800B740:
   9615     PUSH32(esp, ebp); /* 0x3800B740: push ebp */
   9616     ebp = esp; /* 0x3800B741: mov ebp, esp */
   9617     PUSH32(esp, ecx); /* 0x3800B743: push ecx */
   9618     PUSH32(esp, esi); /* 0x3800B744: push esi */
   9619     PUSH32(esp, edi); /* 0x3800B745: push edi */
   9620     esi = ecx; /* 0x3800B746: mov esi, ecx */
   9621     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9622     edi = 0; /* 0x3800B748: xor edi, edi */
   9623     _cf = 0;
   9624     _flag_k = FK_TEST;
   9625 L_3800B74A:
   9626     eax = MEM32(esi + 0x4); /* 0x3800B74A: mov eax, dword ptr [esi + 4] */
   9627     /* test eax, eax */ /* 0x3800B74D: test eax, eax */
   9628     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9629     _cf = 0;
   9630     _flag_k = FK_TEST;
   9631     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B76C; /* 0x3800B74F: je 0x3800b76c */
   9632 L_3800B751:
   9633     ecx = MEM32(esi + 0x8); /* 0x3800B751: mov ecx, dword ptr [esi + 8] */
   9634     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   9635     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9636     ecx = ecx - eax; /* 0x3800B754: sub ecx, eax */
   9637     _flag_k = FK_CMP;
   9638     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3800B756: sar ecx, 2 */
   9639     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9640     ecx = (uint32_t)((int32_t)ecx >> 2u);
   9641     /* cmp edi, ecx */ /* 0x3800B759: cmp edi, ecx */
   9642     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   9643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9644     _flag_k = FK_CMP;
   9645     if (CMP_AE(_flag_a, _flag_b)) goto L_3800B76C; /* 0x3800B75B: jae 0x3800b76c */
   9646 L_3800B75D:
   9647     edx = MEM32(eax + edi * 4); /* 0x3800B75D: mov edx, dword ptr [eax + edi*4] */
   9648     PUSH32(esp, edx); /* 0x3800B760: push edx */
   9649     RECOMP_ICALL(0x3804B4F6u); /* 0x3800B761: call 0x3804b4f6 */ /* not lifted */
   9650     RECOMP_FLAGS_IN();
   9651     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9652     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9653     esp = esp + 4; /* 0x3800B766: add esp, 4 */
   9654     _flag_k = FK_ADD;
   9655     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   9656     edi = edi + 1; /* 0x3800B769: inc edi */
   9657     _flag_k = FK_INC;
   9658     RECOMP_BACKEDGE();
   9659     goto L_3800B74A; /* 0x3800B76A: jmp 0x3800b74a */
   9660 L_3800B76C:
   9661     eax = MEM32(esi + 0x4); /* 0x3800B76C: mov eax, dword ptr [esi + 4] */
   9662     PUSH32(esp, eax); /* 0x3800B76F: push eax */
   9663     MEM32(ebp + (-0x4)) = eax; /* 0x3800B770: mov dword ptr [ebp - 4], eax */
   9664     RECOMP_ICALL(0x3804B4F6u); /* 0x3800B773: call 0x3804b4f6 */ /* not lifted */
   9665     RECOMP_FLAGS_IN();
   9666     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9667     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9668     esp = esp + 4; /* 0x3800B778: add esp, 4 */
   9669     _flag_k = FK_ADD;
   9670     edi = POP32_VAL(esp); /* 0x3800B77B: pop edi */
   9671     MEM32(esi + 0x4) = 0; /* 0x3800B77C: mov dword ptr [esi + 4], 0 */
   9672     MEM32(esi + 0x8) = 0; /* 0x3800B783: mov dword ptr [esi + 8], 0 */
   9673     MEM32(esi + 0xC) = 0; /* 0x3800B78A: mov dword ptr [esi + 0xc], 0 */
   9674     esi = POP32_VAL(esp); /* 0x3800B791: pop esi */
   9675     esp = ebp; /* 0x3800B792: mov esp, ebp */
   9676     ebp = POP32_VAL(esp); /* 0x3800B794: pop ebp */
   9677     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800B795: ret  */
   9678     RECOMP_REGS_OUT();
   9679 }
   9680 
   9681 void sub_3800B7A0(void) {
   9682     int _fpu_cmp = 0;
   9683     uint32_t _cf = 0;
   9684     int _df = 1;
   9685     uint32_t _flag_k = FK_NONE;
   9686     uint32_t _flag_a = 0, _flag_b = 0;
   9687     uint32_t _itail_tgt = 0;
   9688     RECOMP_REGS_LOCALS
   9689     RECOMP_ENTER(0x3800B7A0u);
   9690 
   9691 L_3800B7A0:
   9692     PUSH32(esp, ebp); /* 0x3800B7A0: push ebp */
   9693     ebp = esp; /* 0x3800B7A1: mov ebp, esp */
   9694     eax = MEM32(FS_BASE + (0)); /* 0x3800B7A3: mov eax, dword ptr fs:[0] */
   9695     PUSH32(esp, 0xFFFFFFFFu); /* 0x3800B7A9: push -1 */
   9696     PUSH32(esp, 0x3804BB8Bu); /* 0x3800B7AB: push 0x3804bb8b */
   9697     PUSH32(esp, eax); /* 0x3800B7B0: push eax */
   9698     MEM32(FS_BASE + (0)) = esp; /* 0x3800B7B1: mov dword ptr fs:[0], esp */
   9699     PUSH32(esp, ebx); /* 0x3800B7B8: push ebx */
   9700     PUSH32(esp, esi); /* 0x3800B7B9: push esi */
   9701     esi = ecx; /* 0x3800B7BA: mov esi, ecx */
   9702     SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3800B7BC: mov al, byte ptr [esi + 4] */
   9703     /* cmp LO8(eax), 1 */ /* 0x3800B7BF: cmp al, 1 */
   9704     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9705     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9706     _flag_k = FK_NARROW(FK_CMP, 24);
   9707     PUSH32(esp, edi); /* 0x3800B7C1: push edi */
   9708     edi = MEM32(ebp + 0x10); /* 0x3800B7C2: mov edi, dword ptr [ebp + 0x10] */
   9709     if (CMP_NE(_flag_a, _flag_b)) goto L_3800B7D0; /* 0x3800B7C5: jne 0x3800b7d0 */
   9710 L_3800B7C7:
   9711     /* cmp MEM32(esi + 0x4C), edi */ /* 0x3800B7C7: cmp dword ptr [esi + 0x4c], edi */
   9712     _flag_a = (uint32_t)(MEM32(esi + 0x4C)); _flag_b = (uint32_t)(edi);
   9713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9714     _flag_k = FK_CMP;
   9715     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B995; /* 0x3800B7CA: je 0x3800b995 */
   9716 L_3800B7D0:
   9717     /* cmp edi, 2 */ /* 0x3800B7D0: cmp edi, 2 */
   9718     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   9719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9720     _flag_k = FK_CMP;
   9721     if (CMP_NE(_flag_a, _flag_b)) goto L_3800B7F6; /* 0x3800B7D3: jne 0x3800b7f6 */
   9722 L_3800B7D5:
   9723     SET_LO8(ecx, MEM8(esi + 0x50)); /* 0x3800B7D5: mov cl, byte ptr [esi + 0x50] */
   9724     /* test LO8(ecx), LO8(ecx) */ /* 0x3800B7D8: test cl, cl */
   9725     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   9726     _cf = 0;
   9727     _flag_k = FK_NARROW(FK_TEST, 24);
   9728     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800B7F6; /* 0x3800B7DA: jne 0x3800b7f6 */
   9729 L_3800B7DC:
   9730     ecx = esi; /* 0x3800B7DC: mov ecx, esi */
   9731     RECOMP_ICALL(0x3800BAB0u); /* 0x3800B7DE: call 0x3800bab0 */ /* not lifted */
   9732     RECOMP_FLAGS_IN();
   9733     ecx = MEM32(ebp + (-0xC)); /* 0x3800B7E3: mov ecx, dword ptr [ebp - 0xc] */
   9734     MEM32(FS_BASE + (0)) = ecx; /* 0x3800B7E6: mov dword ptr fs:[0], ecx */
   9735     edi = POP32_VAL(esp); /* 0x3800B7ED: pop edi */
   9736     esi = POP32_VAL(esp); /* 0x3800B7EE: pop esi */
   9737     ebx = POP32_VAL(esp); /* 0x3800B7EF: pop ebx */
   9738     esp = ebp; /* 0x3800B7F0: mov esp, ebp */
   9739     ebp = POP32_VAL(esp); /* 0x3800B7F2: pop ebp */
   9740     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800B7F3: ret 0x10 */
   9741 L_3800B7F6:
   9742     /* test LO8(eax), LO8(eax) */ /* 0x3800B7F6: test al, al */
   9743     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9744     _cf = 0;
   9745     _flag_k = FK_NARROW(FK_TEST, 24);
   9746     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B80B; /* 0x3800B7F8: je 0x3800b80b */
   9747 L_3800B7FA:
   9748     /* cmp MEM32(esi + 0x4C), 1 */ /* 0x3800B7FA: cmp dword ptr [esi + 0x4c], 1 */
   9749     _flag_a = (uint32_t)(MEM32(esi + 0x4C)); _flag_b = (uint32_t)(1);
   9750     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9751     _flag_k = FK_CMP;
   9752     if (CMP_NE(_flag_a, _flag_b)) goto L_3800B80B; /* 0x3800B7FE: jne 0x3800b80b */
   9753 L_3800B800:
   9754     SET_LO8(ecx, MEM8(esi + 0x50)); /* 0x3800B800: mov cl, byte ptr [esi + 0x50] */
   9755     /* test LO8(ecx), LO8(ecx) */ /* 0x3800B803: test cl, cl */
   9756     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   9757     _cf = 0;
   9758     _flag_k = FK_NARROW(FK_TEST, 24);
   9759     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B995; /* 0x3800B805: je 0x3800b995 */
   9760 L_3800B80B:
   9761     /* test LO8(eax), LO8(eax) */ /* 0x3800B80B: test al, al */
   9762     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9763     _cf = 0;
   9764     _flag_k = FK_NARROW(FK_TEST, 24);
   9765     ecx = MEM32(ebp + 0x8); /* 0x3800B80D: mov ecx, dword ptr [ebp + 8] */
   9766     MEM32(esi + 0x8) = ecx; /* 0x3800B810: mov dword ptr [esi + 8], ecx */
   9767     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800B860; /* 0x3800B813: jne 0x3800b860 */
   9768 L_3800B815:
   9769     MEM8(esi + 0x4) = (uint8_t)(1); /* 0x3800B815: mov byte ptr [esi + 4], 1 */
   9770     edi = MEM32(0x3806EA2C); /* 0x3800B819: mov edi, dword ptr [0x3806ea2c] */
   9771     ebx = MEM32(edi + 0x4); /* 0x3800B81F: mov ebx, dword ptr [edi + 4] */
   9772     PUSH32(esp, 0xCu); /* 0x3800B822: push 0xc */
   9773     RECOMP_ICALL(0x3804B676u); /* 0x3800B824: call 0x3804b676 */ /* not lifted */
   9774     RECOMP_FLAGS_IN();
   9775     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9776     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9777     esp = esp + 4; /* 0x3800B829: add esp, 4 */
   9778     _flag_k = FK_ADD;
   9779     /* test edi, edi */ /* 0x3800B82C: test edi, edi */
   9780     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9781     _cf = 0;
   9782     _flag_k = FK_TEST;
   9783     ecx = edi; /* 0x3800B82E: mov ecx, edi */
   9784     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800B834; /* 0x3800B830: jne 0x3800b834 */
   9785 L_3800B832:
   9786     ecx = eax; /* 0x3800B832: mov ecx, eax */
   9787 L_3800B834:
   9788     /* test ebx, ebx */ /* 0x3800B834: test ebx, ebx */
   9789     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   9790     _cf = 0;
   9791     _flag_k = FK_TEST;
   9792     MEM32(eax) = ecx; /* 0x3800B836: mov dword ptr [eax], ecx */
   9793     ecx = ebx; /* 0x3800B838: mov ecx, ebx */
   9794     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800B83E; /* 0x3800B83A: jne 0x3800b83e */
   9795 L_3800B83C:
   9796     ecx = eax; /* 0x3800B83C: mov ecx, eax */
   9797 L_3800B83E:
   9798     MEM32(eax + 0x4) = ecx; /* 0x3800B83E: mov dword ptr [eax + 4], ecx */
   9799     MEM32(edi + 0x4) = eax; /* 0x3800B841: mov dword ptr [edi + 4], eax */
   9800     ecx = MEM32(eax + 0x4); /* 0x3800B844: mov ecx, dword ptr [eax + 4] */
   9801     MEM32(ecx) = eax; /* 0x3800B847: mov dword ptr [ecx], eax */
   9802     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   9803     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9804     eax = eax + 8; /* 0x3800B849: add eax, 8 */
   9805     _flag_k = FK_ADD;
   9806     /* test eax, eax */ /* 0x3800B84C: test eax, eax */
   9807     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9808     _cf = 0;
   9809     _flag_k = FK_TEST;
   9810     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B852; /* 0x3800B84E: je 0x3800b852 */
   9811 L_3800B850:
   9812     MEM32(eax) = esi; /* 0x3800B850: mov dword ptr [eax], esi */
   9813 L_3800B852:
   9814     eax = MEM32(0x3806EA30); /* 0x3800B852: mov eax, dword ptr [0x3806ea30] */
   9815     edi = MEM32(ebp + 0x10); /* 0x3800B857: mov edi, dword ptr [ebp + 0x10] */
   9816     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9817     eax = eax + 1; /* 0x3800B85A: inc eax */
   9818     _flag_k = FK_INC;
   9819     MEM32(0x3806EA30) = eax; /* 0x3800B85B: mov dword ptr [0x3806ea30], eax */
   9820 L_3800B860:
   9821     /* cmp edi, 2 */ /* 0x3800B860: cmp edi, 2 */
   9822     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   9823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9824     _flag_k = FK_CMP;
   9825     MEM8(ebp + 0x10) = (uint8_t)(0); /* 0x3800B863: mov byte ptr [ebp + 0x10], 0 */
   9826     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B8A7; /* 0x3800B867: je 0x3800b8a7 */
   9827 L_3800B869:
   9828     /* cmp edi, 1 */ /* 0x3800B869: cmp edi, 1 */
   9829     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   9830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9831     _flag_k = FK_CMP;
   9832     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800B8A7; /* 0x3800B86C: je 0x3800b8a7 */
   9833 L_3800B86E:
   9834     SET_LO8(eax, MEM8(esi + 0x50)); /* 0x3800B86E: mov al, byte ptr [esi + 0x50] */
   9835     /* test LO8(eax), LO8(eax) */ /* 0x3800B871: test al, al */
   9836     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9837     _cf = 0;
   9838     _flag_k = FK_NARROW(FK_TEST, 24);
   9839     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B8EB; /* 0x3800B873: je 0x3800b8eb */
   9840 L_3800B875:
   9841     eax = MEM32(esi + 0x4C); /* 0x3800B875: mov eax, dword ptr [esi + 0x4c] */
   9842     /* test eax, eax */ /* 0x3800B878: test eax, eax */
   9843     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9844     _cf = 0;
   9845     _flag_k = FK_TEST;
   9846     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B8EB; /* 0x3800B87A: je 0x3800b8eb */
   9847 L_3800B87C:
   9848     ecx = MEM32(esi + 0x44); /* 0x3800B87C: mov ecx, dword ptr [esi + 0x44] */
   9849     /* test ecx, ecx */ /* 0x3800B87F: test ecx, ecx */
   9850     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9851     _cf = 0;
   9852     _flag_k = FK_TEST;
   9853     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B889; /* 0x3800B881: je 0x3800b889 */
   9854 L_3800B883:
   9855     edx = MEM32(ecx); /* 0x3800B883: mov edx, dword ptr [ecx] */
   9856     PUSH32(esp, 1); /* 0x3800B885: push 1 */
   9857     RECOMP_ICALL(MEM32(edx)); /* 0x3800B887: call dword ptr [edx] */
   9858     RECOMP_FLAGS_IN();
   9859 L_3800B889:
   9860     ecx = MEM32(esi); /* 0x3800B889: mov ecx, dword ptr [esi] */
   9861     /* test ecx, ecx */ /* 0x3800B88B: test ecx, ecx */
   9862     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9863     _cf = 0;
   9864     _flag_k = FK_TEST;
   9865     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B895; /* 0x3800B88D: je 0x3800b895 */
   9866 L_3800B88F:
   9867     eax = MEM32(ecx); /* 0x3800B88F: mov eax, dword ptr [ecx] */
   9868     PUSH32(esp, 1); /* 0x3800B891: push 1 */
   9869     RECOMP_ICALL(MEM32(eax)); /* 0x3800B893: call dword ptr [eax] */
   9870     RECOMP_FLAGS_IN();
   9871 L_3800B895:
   9872     MEM32(esi + 0x44) = 0; /* 0x3800B895: mov dword ptr [esi + 0x44], 0 */
   9873     MEM32(esi) = 0; /* 0x3800B89C: mov dword ptr [esi], 0 */
   9874     MEM32(esi + 0x4C) = edi; /* 0x3800B8A2: mov dword ptr [esi + 0x4c], edi */
   9875     goto L_3800B8EB; /* 0x3800B8A5: jmp 0x3800b8eb */
   9876 L_3800B8A7:
   9877     SET_LO8(eax, MEM8(esi + 0x50)); /* 0x3800B8A7: mov al, byte ptr [esi + 0x50] */
   9878     /* test LO8(eax), LO8(eax) */ /* 0x3800B8AA: test al, al */
   9879     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9880     _cf = 0;
   9881     _flag_k = FK_NARROW(FK_TEST, 24);
   9882     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B8E4; /* 0x3800B8AC: je 0x3800b8e4 */
   9883 L_3800B8AE:
   9884     eax = MEM32(esi + 0x4C); /* 0x3800B8AE: mov eax, dword ptr [esi + 0x4c] */
   9885     /* test eax, eax */ /* 0x3800B8B1: test eax, eax */
   9886     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9887     _cf = 0;
   9888     _flag_k = FK_TEST;
   9889     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800B8EB; /* 0x3800B8B3: jne 0x3800b8eb */
   9890 L_3800B8B5:
   9891     ecx = MEM32(esi + 0x44); /* 0x3800B8B5: mov ecx, dword ptr [esi + 0x44] */
   9892     /* test ecx, ecx */ /* 0x3800B8B8: test ecx, ecx */
   9893     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9894     _cf = 0;
   9895     _flag_k = FK_TEST;
   9896     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B8C2; /* 0x3800B8BA: je 0x3800b8c2 */
   9897 L_3800B8BC:
   9898     edx = MEM32(ecx); /* 0x3800B8BC: mov edx, dword ptr [ecx] */
   9899     PUSH32(esp, 1); /* 0x3800B8BE: push 1 */
   9900     RECOMP_ICALL(MEM32(edx)); /* 0x3800B8C0: call dword ptr [edx] */
   9901     RECOMP_FLAGS_IN();
   9902 L_3800B8C2:
   9903     ecx = MEM32(esi); /* 0x3800B8C2: mov ecx, dword ptr [esi] */
   9904     /* test ecx, ecx */ /* 0x3800B8C4: test ecx, ecx */
   9905     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9906     _cf = 0;
   9907     _flag_k = FK_TEST;
   9908     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B8CE; /* 0x3800B8C6: je 0x3800b8ce */
   9909 L_3800B8C8:
   9910     eax = MEM32(ecx); /* 0x3800B8C8: mov eax, dword ptr [ecx] */
   9911     PUSH32(esp, 1); /* 0x3800B8CA: push 1 */
   9912     RECOMP_ICALL(MEM32(eax)); /* 0x3800B8CC: call dword ptr [eax] */
   9913     RECOMP_FLAGS_IN();
   9914 L_3800B8CE:
   9915     MEM32(esi + 0x44) = 0; /* 0x3800B8CE: mov dword ptr [esi + 0x44], 0 */
   9916     MEM32(esi) = 0; /* 0x3800B8D5: mov dword ptr [esi], 0 */
   9917     MEM32(esi + 0x4C) = edi; /* 0x3800B8DB: mov dword ptr [esi + 0x4c], edi */
   9918     MEM8(ebp + 0x10) = (uint8_t)(1); /* 0x3800B8DE: mov byte ptr [ebp + 0x10], 1 */
   9919     goto L_3800B8EB; /* 0x3800B8E2: jmp 0x3800b8eb */
   9920 L_3800B8E4:
   9921     MEM32(esi + 0x4C) = edi; /* 0x3800B8E4: mov dword ptr [esi + 0x4c], edi */
   9922     MEM8(ebp + 0x10) = (uint8_t)(0); /* 0x3800B8E7: mov byte ptr [ebp + 0x10], 0 */
   9923 L_3800B8EB:
   9924     eax = MEM32(esi + 0x44); /* 0x3800B8EB: mov eax, dword ptr [esi + 0x44] */
   9925     /* test eax, eax */ /* 0x3800B8EE: test eax, eax */
   9926     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9927     _cf = 0;
   9928     _flag_k = FK_TEST;
   9929     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800B97E; /* 0x3800B8F0: jne 0x3800b97e */
   9930 L_3800B8F6:
   9931     PUSH32(esp, 8); /* 0x3800B8F6: push 8 */
   9932     RECOMP_ICALL(0x3804B676u); /* 0x3800B8F8: call 0x3804b676 */ /* not lifted */
   9933     RECOMP_FLAGS_IN();
   9934     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9936     esp = esp + 4; /* 0x3800B8FD: add esp, 4 */
   9937     _flag_k = FK_ADD;
   9938     /* test eax, eax */ /* 0x3800B900: test eax, eax */
   9939     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9940     _cf = 0;
   9941     _flag_k = FK_TEST;
   9942     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B90F; /* 0x3800B902: je 0x3800b90f */
   9943 L_3800B904:
   9944     MEM32(eax + 0x4) = esi; /* 0x3800B904: mov dword ptr [eax + 4], esi */
   9945     MEM32(eax) = 0x3804EC70u; /* 0x3800B907: mov dword ptr [eax], 0x3804ec70 */
   9946     goto L_3800B911; /* 0x3800B90D: jmp 0x3800b911 */
   9947 L_3800B90F:
   9948     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9949     eax = 0; /* 0x3800B90F: xor eax, eax */
   9950     _cf = 0;
   9951     _flag_k = FK_TEST;
   9952 L_3800B911:
   9953     PUSH32(esp, 0x5Cu); /* 0x3800B911: push 0x5c */
   9954     MEM32(esi) = eax; /* 0x3800B913: mov dword ptr [esi], eax */
   9955     RECOMP_ICALL(0x3804B676u); /* 0x3800B915: call 0x3804b676 */ /* not lifted */
   9956     RECOMP_FLAGS_IN();
   9957     edi = eax; /* 0x3800B91A: mov edi, eax */
   9958     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9959     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9960     esp = esp + 4; /* 0x3800B91C: add esp, 4 */
   9961     _flag_k = FK_ADD;
   9962     MEM32(ebp + 0x8) = edi; /* 0x3800B91F: mov dword ptr [ebp + 8], edi */
   9963     /* test edi, edi */ /* 0x3800B922: test edi, edi */
   9964     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9965     _cf = 0;
   9966     _flag_k = FK_TEST;
   9967     MEM32(ebp + (-0x4)) = 0; /* 0x3800B924: mov dword ptr [ebp - 4], 0 */
   9968     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B966; /* 0x3800B92B: je 0x3800b966 */
   9969 L_3800B92D:
   9970     ecx = MEM32(ebp + 0x14); /* 0x3800B92D: mov ecx, dword ptr [ebp + 0x14] */
   9971     edx = MEM32(esi); /* 0x3800B930: mov edx, dword ptr [esi] */
   9972     eax = MEM32(ebp + 0x10); /* 0x3800B932: mov eax, dword ptr [ebp + 0x10] */
   9973     PUSH32(esp, ecx); /* 0x3800B935: push ecx */
   9974     ecx = MEM32(ebp + 0xC); /* 0x3800B936: mov ecx, dword ptr [ebp + 0xc] */
   9975     PUSH32(esp, edx); /* 0x3800B939: push edx */
   9976     edx = MEM32(esi + 0x34); /* 0x3800B93A: mov edx, dword ptr [esi + 0x34] */
   9977     PUSH32(esp, eax); /* 0x3800B93D: push eax */
   9978     PUSH32(esp, 0); /* 0x3800B93E: push 0 */
   9979     PUSH32(esp, ecx); /* 0x3800B940: push ecx */
   9980     PUSH32(esp, edx); /* 0x3800B941: push edx */
   9981     ecx = edi; /* 0x3800B942: mov ecx, edi */
   9982     RECOMP_ICALL(MEM32(0x3804E258)); /* 0x3800B944: call dword ptr [0x3804e258] */
   9983     RECOMP_FLAGS_IN();
   9984     MEM32(edi) = 0x3804EC5Cu; /* 0x3800B94A: mov dword ptr [edi], 0x3804ec5c */
   9985     MEM32(esi + 0x44) = edi; /* 0x3800B950: mov dword ptr [esi + 0x44], edi */
   9986     ecx = MEM32(ebp + (-0xC)); /* 0x3800B953: mov ecx, dword ptr [ebp - 0xc] */
   9987     MEM32(FS_BASE + (0)) = ecx; /* 0x3800B956: mov dword ptr fs:[0], ecx */
   9988     edi = POP32_VAL(esp); /* 0x3800B95D: pop edi */
   9989     esi = POP32_VAL(esp); /* 0x3800B95E: pop esi */
   9990     ebx = POP32_VAL(esp); /* 0x3800B95F: pop ebx */
   9991     esp = ebp; /* 0x3800B960: mov esp, ebp */
   9992     ebp = POP32_VAL(esp); /* 0x3800B962: pop ebp */
   9993     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800B963: ret 0x10 */
   9994 L_3800B966:
   9995     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9996     edi = 0; /* 0x3800B966: xor edi, edi */
   9997     _cf = 0;
   9998     _flag_k = FK_TEST;
   9999     MEM32(esi + 0x44) = edi; /* 0x3800B968: mov dword ptr [esi + 0x44], edi */
  10000     ecx = MEM32(ebp + (-0xC)); /* 0x3800B96B: mov ecx, dword ptr [ebp - 0xc] */
  10001     MEM32(FS_BASE + (0)) = ecx; /* 0x3800B96E: mov dword ptr fs:[0], ecx */
  10002     edi = POP32_VAL(esp); /* 0x3800B975: pop edi */
  10003     esi = POP32_VAL(esp); /* 0x3800B976: pop esi */
  10004     ebx = POP32_VAL(esp); /* 0x3800B977: pop ebx */
  10005     esp = ebp; /* 0x3800B978: mov esp, ebp */
  10006     ebp = POP32_VAL(esp); /* 0x3800B97A: pop ebp */
  10007     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800B97B: ret 0x10 */
  10008 L_3800B97E:
  10009     SET_LO8(eax, MEM8(esi + 0xC)); /* 0x3800B97E: mov al, byte ptr [esi + 0xc] */
  10010     /* test LO8(eax), LO8(eax) */ /* 0x3800B981: test al, al */
  10011     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10012     _cf = 0;
  10013     _flag_k = FK_NARROW(FK_TEST, 24);
  10014     if (TEST_Z(_flag_a, _flag_b)) goto L_3800B98C; /* 0x3800B983: je 0x3800b98c */
  10015 L_3800B985:
  10016     ecx = esi; /* 0x3800B985: mov ecx, esi */
  10017     RECOMP_ICALL(0x3800B9B0u); /* 0x3800B987: call 0x3800b9b0 */ /* not lifted */
  10018     RECOMP_FLAGS_IN();
  10019 L_3800B98C:
  10020     ecx = MEM32(esi + 0x44); /* 0x3800B98C: mov ecx, dword ptr [esi + 0x44] */
  10021     RECOMP_ICALL(MEM32(0x3804E264)); /* 0x3800B98F: call dword ptr [0x3804e264] */
  10022     RECOMP_FLAGS_IN();
  10023 L_3800B995:
  10024     ecx = MEM32(ebp + (-0xC)); /* 0x3800B995: mov ecx, dword ptr [ebp - 0xc] */
  10025     edi = POP32_VAL(esp); /* 0x3800B998: pop edi */
  10026     esi = POP32_VAL(esp); /* 0x3800B999: pop esi */
  10027     MEM32(FS_BASE + (0)) = ecx; /* 0x3800B99A: mov dword ptr fs:[0], ecx */
  10028     ebx = POP32_VAL(esp); /* 0x3800B9A1: pop ebx */
  10029     esp = ebp; /* 0x3800B9A2: mov esp, ebp */
  10030     ebp = POP32_VAL(esp); /* 0x3800B9A4: pop ebp */
  10031     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3800B9A5: ret 0x10 */
  10032     RECOMP_REGS_OUT();
  10033 }
  10034 
  10035 void sub_3800B9B0(void) {
  10036     int _fpu_cmp = 0;
  10037     uint32_t _cf = 0;
  10038     int _df = 1;
  10039     uint32_t _flag_k = FK_NONE;
  10040     uint32_t _flag_a = 0, _flag_b = 0;
  10041     uint32_t _itail_tgt = 0;
  10042     RECOMP_REGS_LOCALS
  10043     RECOMP_ENTER(0x3800B9B0u);
  10044 
  10045 L_3800B9B0:
  10046     PUSH32(esp, esi); /* 0x3800B9B0: push esi */
  10047     esi = ecx; /* 0x3800B9B1: mov esi, ecx */
  10048     ecx = MEM32(esi + 0x44); /* 0x3800B9B3: mov ecx, dword ptr [esi + 0x44] */
  10049     /* test ecx, ecx */ /* 0x3800B9B6: test ecx, ecx */
  10050     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  10051     _cf = 0;
  10052     _flag_k = FK_TEST;
  10053     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BA9F; /* 0x3800B9B8: je 0x3800ba9f */
  10054 L_3800B9BE:
  10055     eax = esi + 0x10; /* 0x3800B9BE: lea eax, [esi + 0x10] */
  10056     PUSH32(esp, eax); /* 0x3800B9C1: push eax */
  10057     RECOMP_ICALL(MEM32(0x3804E28C)); /* 0x3800B9C2: call dword ptr [0x3804e28c] */
  10058     RECOMP_FLAGS_IN();
  10059     ecx = esi + 0x1C; /* 0x3800B9C8: lea ecx, [esi + 0x1c] */
  10060     PUSH32(esp, ecx); /* 0x3800B9CB: push ecx */
  10061     ecx = MEM32(esi + 0x44); /* 0x3800B9CC: mov ecx, dword ptr [esi + 0x44] */
  10062     RECOMP_ICALL(MEM32(0x3804E288)); /* 0x3800B9CF: call dword ptr [0x3804e288] */
  10063     RECOMP_FLAGS_IN();
  10064     edx = MEM32(esi + 0x30); /* 0x3800B9D5: mov edx, dword ptr [esi + 0x30] */
  10065     ecx = MEM32(esi + 0x44); /* 0x3800B9D8: mov ecx, dword ptr [esi + 0x44] */
  10066     PUSH32(esp, edx); /* 0x3800B9DB: push edx */
  10067     RECOMP_ICALL(MEM32(0x3804E284)); /* 0x3800B9DC: call dword ptr [0x3804e284] */
  10068     RECOMP_FLAGS_IN();
  10069     SET_LO8(eax, MEM8(esi + 0xC)); /* 0x3800B9E2: mov al, byte ptr [esi + 0xc] */
  10070     /* test LO8(eax), LO8(eax) */ /* 0x3800B9E5: test al, al */
  10071     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10072     _cf = 0;
  10073     _flag_k = FK_NARROW(FK_TEST, 24);
  10074     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800B9F2; /* 0x3800B9E7: jne 0x3800b9f2 */
  10075 L_3800B9E9:
  10076     eax = MEM32(esi + 0x44); /* 0x3800B9E9: mov eax, dword ptr [esi + 0x44] */
  10077     ecx = MEM32(esi + 0x2C); /* 0x3800B9EC: mov ecx, dword ptr [esi + 0x2c] */
  10078     MEM32(eax + 0x28) = ecx; /* 0x3800B9EF: mov dword ptr [eax + 0x28], ecx */
  10079 L_3800B9F2:
  10080     edx = MEM32(esi + 0x40); /* 0x3800B9F2: mov edx, dword ptr [esi + 0x40] */
  10081     ecx = MEM32(esi + 0x44); /* 0x3800B9F5: mov ecx, dword ptr [esi + 0x44] */
  10082     PUSH32(esp, edx); /* 0x3800B9F8: push edx */
  10083     RECOMP_ICALL(MEM32(0x3804E19C)); /* 0x3800B9F9: call dword ptr [0x3804e19c] */
  10084     RECOMP_FLAGS_IN();
  10085     eax = MEM32(esi + 0x48); /* 0x3800B9FF: mov eax, dword ptr [esi + 0x48] */
  10086     /* test eax, eax */ /* 0x3800BA02: test eax, eax */
  10087     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10088     _cf = 0;
  10089     _flag_k = FK_TEST;
  10090     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BA10; /* 0x3800BA04: je 0x3800ba10 */
  10091 L_3800BA06:
  10092     ecx = MEM32(esi + 0x44); /* 0x3800BA06: mov ecx, dword ptr [esi + 0x44] */
  10093     PUSH32(esp, eax); /* 0x3800BA09: push eax */
  10094     RECOMP_ICALL(MEM32(0x3804E198)); /* 0x3800BA0A: call dword ptr [0x3804e198] */
  10095     RECOMP_FLAGS_IN();
  10096 L_3800BA10:
  10097     eax = MEM32(esi + 0x3C); /* 0x3800BA10: mov eax, dword ptr [esi + 0x3c] */
  10098     /* test eax, eax */ /* 0x3800BA13: test eax, eax */
  10099     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10100     _cf = 0;
  10101     _flag_k = FK_TEST;
  10102     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BA25; /* 0x3800BA15: je 0x3800ba25 */
  10103 L_3800BA17:
  10104     ecx = MEM32(esi + 0x38); /* 0x3800BA17: mov ecx, dword ptr [esi + 0x38] */
  10105     PUSH32(esp, ecx); /* 0x3800BA1A: push ecx */
  10106     ecx = MEM32(esi + 0x44); /* 0x3800BA1B: mov ecx, dword ptr [esi + 0x44] */
  10107     PUSH32(esp, eax); /* 0x3800BA1E: push eax */
  10108     RECOMP_ICALL(MEM32(0x3804E278)); /* 0x3800BA1F: call dword ptr [0x3804e278] */
  10109     RECOMP_FLAGS_IN();
  10110 L_3800BA25:
  10111     edx = MEM32(esi + 0x8); /* 0x3800BA25: mov edx, dword ptr [esi + 8] */
  10112     /* test edx, edx */ /* 0x3800BA28: test edx, edx */
  10113     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
  10114     _cf = 0;
  10115     _flag_k = FK_TEST;
  10116     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BA94; /* 0x3800BA2A: je 0x3800ba94 */
  10117 L_3800BA2C:
  10118     SET_LO8(eax, MEM8(esi + 0xC)); /* 0x3800BA2C: mov al, byte ptr [esi + 0xc] */
  10119     /* test LO8(eax), LO8(eax) */ /* 0x3800BA2F: test al, al */
  10120     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10121     _cf = 0;
  10122     _flag_k = FK_NARROW(FK_TEST, 24);
  10123     PUSH32(esp, edi); /* 0x3800BA31: push edi */
  10124     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BA66; /* 0x3800BA32: je 0x3800ba66 */
  10125 L_3800BA34:
  10126     eax = MEM32(esi + 0x44); /* 0x3800BA34: mov eax, dword ptr [esi + 0x44] */
  10127     ecx = MEM32(eax + 0x10); /* 0x3800BA37: mov ecx, dword ptr [eax + 0x10] */
  10128     /* test ecx, ecx */ /* 0x3800BA3A: test ecx, ecx */
  10129     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  10130     _cf = 0;
  10131     _flag_k = FK_TEST;
  10132     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BA57; /* 0x3800BA3C: je 0x3800ba57 */
  10133 L_3800BA3E:
  10134     edi = MEM32(ecx + 0x124); /* 0x3800BA3E: mov edi, dword ptr [ecx + 0x124] */
  10135     /* test edi, edi */ /* 0x3800BA44: test edi, edi */
  10136     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  10137     _cf = 0;
  10138     _flag_k = FK_TEST;
  10139     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BA57; /* 0x3800BA46: je 0x3800ba57 */
  10140 L_3800BA48:
  10141     ecx = MEM32(edx + 0x78); /* 0x3800BA48: mov ecx, dword ptr [edx + 0x78] */
  10142     edi = 1; /* 0x3800BA4B: mov edi, 1 */
  10143     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edi) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x3800BA50: shl edi, cl */
  10144     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edi << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10145     edi = edi << ((LO8(ecx)) & 31); /* 0x3800BA50: shl edi, cl */
  10146     ecx = eax; /* 0x3800BA52: mov ecx, eax */
  10147     PUSH32(esp, edi); /* 0x3800BA54: push edi */
  10148     goto L_3800BA74; /* 0x3800BA55: jmp 0x3800ba74 */
  10149 L_3800BA57:
  10150     ecx = MEM32(edx + 0x78); /* 0x3800BA57: mov ecx, dword ptr [edx + 0x78] */
  10151     edi = 2; /* 0x3800BA5A: mov edi, 2 */
  10152     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edi) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x3800BA5F: shl edi, cl */
  10153     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edi << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10154     edi = edi << ((LO8(ecx)) & 31); /* 0x3800BA5F: shl edi, cl */
  10155     ecx = eax; /* 0x3800BA61: mov ecx, eax */
  10156     PUSH32(esp, edi); /* 0x3800BA63: push edi */
  10157     goto L_3800BA74; /* 0x3800BA64: jmp 0x3800ba74 */
  10158 L_3800BA66:
  10159     ecx = MEM32(edx + 0x78); /* 0x3800BA66: mov ecx, dword ptr [edx + 0x78] */
  10160     eax = 1; /* 0x3800BA69: mov eax, 1 */
  10161     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((eax) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x3800BA6E: shl eax, cl */
  10162     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((eax << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10163     eax = eax << ((LO8(ecx)) & 31); /* 0x3800BA6E: shl eax, cl */
  10164     ecx = MEM32(esi + 0x44); /* 0x3800BA70: mov ecx, dword ptr [esi + 0x44] */
  10165     PUSH32(esp, eax); /* 0x3800BA73: push eax */
  10166 L_3800BA74:
  10167     RECOMP_ICALL(MEM32(0x3804E26C)); /* 0x3800BA74: call dword ptr [0x3804e26c] */
  10168     RECOMP_FLAGS_IN();
  10169     ecx = MEM32(esi + 0x8); /* 0x3800BA7A: mov ecx, dword ptr [esi + 8] */
  10170     ecx = MEM32(ecx + 0x78); /* 0x3800BA7D: mov ecx, dword ptr [ecx + 0x78] */
  10171     edx = 2; /* 0x3800BA80: mov edx, 2 */
  10172     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x3800BA85: shl edx, cl */
  10173     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10174     edx = edx << ((LO8(ecx)) & 31); /* 0x3800BA85: shl edx, cl */
  10175     ecx = MEM32(esi + 0x44); /* 0x3800BA87: mov ecx, dword ptr [esi + 0x44] */
  10176     PUSH32(esp, edx); /* 0x3800BA8A: push edx */
  10177     RECOMP_ICALL(MEM32(0x3804E268)); /* 0x3800BA8B: call dword ptr [0x3804e268] */
  10178     RECOMP_FLAGS_IN();
  10179     edi = POP32_VAL(esp); /* 0x3800BA91: pop edi */
  10180     esi = POP32_VAL(esp); /* 0x3800BA92: pop esi */
  10181     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800BA93: ret  */
  10182 L_3800BA94:
  10183     ecx = MEM32(esi + 0x44); /* 0x3800BA94: mov ecx, dword ptr [esi + 0x44] */
  10184     PUSH32(esp, 1); /* 0x3800BA97: push 1 */
  10185     RECOMP_ICALL(MEM32(0x3804E268)); /* 0x3800BA99: call dword ptr [0x3804e268] */
  10186     RECOMP_FLAGS_IN();
  10187 L_3800BA9F:
  10188     esi = POP32_VAL(esp); /* 0x3800BA9F: pop esi */
  10189     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800BAA0: ret  */
  10190     RECOMP_REGS_OUT();
  10191 }
  10192 
  10193 void sub_3800BA74(void) {
  10194     int _fpu_cmp = 0;
  10195     uint32_t _cf = 0;
  10196     int _df = 1;
  10197     uint32_t _flag_k = FK_NONE;
  10198     uint32_t _flag_a = 0, _flag_b = 0;
  10199     uint32_t _itail_tgt = 0;
  10200     RECOMP_REGS_LOCALS
  10201     RECOMP_ENTER(0x3800BA74u);
  10202 
  10203 L_3800BA74:
  10204     RECOMP_ICALL(MEM32(0x3804E26C)); /* 0x3800BA74: call dword ptr [0x3804e26c] */
  10205     RECOMP_FLAGS_IN();
  10206     ecx = MEM32(esi + 0x8); /* 0x3800BA7A: mov ecx, dword ptr [esi + 8] */
  10207     ecx = MEM32(ecx + 0x78); /* 0x3800BA7D: mov ecx, dword ptr [ecx + 0x78] */
  10208     edx = 2; /* 0x3800BA80: mov edx, 2 */
  10209     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x3800BA85: shl edx, cl */
  10210     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10211     edx = edx << ((LO8(ecx)) & 31); /* 0x3800BA85: shl edx, cl */
  10212     ecx = MEM32(esi + 0x44); /* 0x3800BA87: mov ecx, dword ptr [esi + 0x44] */
  10213     PUSH32(esp, edx); /* 0x3800BA8A: push edx */
  10214     RECOMP_ICALL(MEM32(0x3804E268)); /* 0x3800BA8B: call dword ptr [0x3804e268] */
  10215     RECOMP_FLAGS_IN();
  10216     edi = POP32_VAL(esp); /* 0x3800BA91: pop edi */
  10217     esi = POP32_VAL(esp); /* 0x3800BA92: pop esi */
  10218     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800BA93: ret  */
  10219     RECOMP_REGS_OUT();
  10220 }
  10221 
  10222 void sub_3800BAB0(void) {
  10223     int _fpu_cmp = 0;
  10224     uint32_t _cf = 0;
  10225     int _df = 1;
  10226     uint32_t _flag_k = FK_NONE;
  10227     uint32_t _flag_a = 0, _flag_b = 0;
  10228     uint32_t _itail_tgt = 0;
  10229     RECOMP_REGS_LOCALS
  10230     RECOMP_ENTER(0x3800BAB0u);
  10231 
  10232 L_3800BAB0:
  10233     PUSH32(esp, esi); /* 0x3800BAB0: push esi */
  10234     esi = ecx; /* 0x3800BAB1: mov esi, ecx */
  10235     SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3800BAB3: mov al, byte ptr [esi + 4] */
  10236     /* test LO8(eax), LO8(eax) */ /* 0x3800BAB6: test al, al */
  10237     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10238     _cf = 0;
  10239     _flag_k = FK_NARROW(FK_TEST, 24);
  10240     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BB07; /* 0x3800BAB8: je 0x3800bb07 */
  10241 L_3800BABA:
  10242     MEM8(esi + 0x4) = (uint8_t)(0); /* 0x3800BABA: mov byte ptr [esi + 4], 0 */
  10243     ecx = MEM32(0x3806EA2C); /* 0x3800BABE: mov ecx, dword ptr [0x3806ea2c] */
  10244     eax = MEM32(ecx); /* 0x3800BAC4: mov eax, dword ptr [ecx] */
  10245     /* cmp eax, ecx */ /* 0x3800BAC6: cmp eax, ecx */
  10246     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10248     _flag_k = FK_CMP;
  10249     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800BAFA; /* 0x3800BAC8: je 0x3800bafa */
  10250 L_3800BACA:
  10251     /* cmp MEM32(eax + 0x8), esi */ /* 0x3800BACA: cmp dword ptr [eax + 8], esi */
  10252     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(esi);
  10253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10254     _flag_k = FK_CMP;
  10255     if (CMP_EQ(_flag_a, _flag_b)) goto L_3800BAD7; /* 0x3800BACD: je 0x3800bad7 */
  10256 L_3800BACF:
  10257     eax = MEM32(eax); /* 0x3800BACF: mov eax, dword ptr [eax] */
  10258     /* cmp eax, ecx */ /* 0x3800BAD1: cmp eax, ecx */
  10259     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10261     _flag_k = FK_CMP;
  10262     RECOMP_BACKEDGE();
  10263     if (CMP_NE(_flag_a, _flag_b)) goto L_3800BACA; /* 0x3800BAD3: jne 0x3800baca */
  10264 L_3800BAD5:
  10265     goto L_3800BAFA; /* 0x3800BAD5: jmp 0x3800bafa */
  10266 L_3800BAD7:
  10267     ecx = MEM32(eax + 0x4); /* 0x3800BAD7: mov ecx, dword ptr [eax + 4] */
  10268     edx = MEM32(eax); /* 0x3800BADA: mov edx, dword ptr [eax] */
  10269     MEM32(ecx) = edx; /* 0x3800BADC: mov dword ptr [ecx], edx */
  10270     ecx = MEM32(eax); /* 0x3800BADE: mov ecx, dword ptr [eax] */
  10271     edx = MEM32(eax + 0x4); /* 0x3800BAE0: mov edx, dword ptr [eax + 4] */
  10272     PUSH32(esp, eax); /* 0x3800BAE3: push eax */
  10273     MEM32(ecx + 0x4) = edx; /* 0x3800BAE4: mov dword ptr [ecx + 4], edx */
  10274     RECOMP_ICALL(0x3804B4F6u); /* 0x3800BAE7: call 0x3804b4f6 */ /* not lifted */
  10275     RECOMP_FLAGS_IN();
  10276     eax = MEM32(0x3806EA30); /* 0x3800BAEC: mov eax, dword ptr [0x3806ea30] */
  10277     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10278     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10279     esp = esp + 4; /* 0x3800BAF1: add esp, 4 */
  10280     _flag_k = FK_ADD;
  10281     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10282     eax = eax - 1; /* 0x3800BAF4: dec eax */
  10283     _flag_k = FK_DEC;
  10284     MEM32(0x3806EA30) = eax; /* 0x3800BAF5: mov dword ptr [0x3806ea30], eax */
  10285 L_3800BAFA:
  10286     ecx = MEM32(esi + 0x44); /* 0x3800BAFA: mov ecx, dword ptr [esi + 0x44] */
  10287     /* test ecx, ecx */ /* 0x3800BAFD: test ecx, ecx */
  10288     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  10289     _cf = 0;
  10290     _flag_k = FK_TEST;
  10291     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BB07; /* 0x3800BAFF: je 0x3800bb07 */
  10292 L_3800BB01:
  10293     RECOMP_ICALL(MEM32(0x3804E290)); /* 0x3800BB01: call dword ptr [0x3804e290] */
  10294     RECOMP_FLAGS_IN();
  10295 L_3800BB07:
  10296     esi = POP32_VAL(esp); /* 0x3800BB07: pop esi */
  10297     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800BB08: ret  */
  10298     RECOMP_REGS_OUT();
  10299 }
  10300 
  10301 void sub_3800BB10(void) {
  10302     int _fpu_cmp = 0;
  10303     uint32_t _cf = 0;
  10304     int _df = 1;
  10305     uint32_t _flag_k = FK_NONE;
  10306     uint32_t _flag_a = 0, _flag_b = 0;
  10307     uint32_t _itail_tgt = 0;
  10308     RECOMP_REGS_LOCALS
  10309     RECOMP_ENTER(0x3800BB10u);
  10310 
  10311 L_3800BB10:
  10312     PUSH32(esp, ebp); /* 0x3800BB10: push ebp */
  10313     ebp = esp; /* 0x3800BB11: mov ebp, esp */
  10314     PUSH32(esp, ecx); /* 0x3800BB13: push ecx */
  10315     PUSH32(esp, esi); /* 0x3800BB14: push esi */
  10316     esi = ecx; /* 0x3800BB15: mov esi, ecx */
  10317     SET_LO8(eax, MEM8(esi + 0x4)); /* 0x3800BB17: mov al, byte ptr [esi + 4] */
  10318     /* test LO8(eax), LO8(eax) */ /* 0x3800BB1A: test al, al */
  10319     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10320     _cf = 0;
  10321     _flag_k = FK_NARROW(FK_TEST, 24);
  10322     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BB77; /* 0x3800BB1C: je 0x3800bb77 */
  10323 L_3800BB1E:
  10324     ecx = MEM32(esi + 0x44); /* 0x3800BB1E: mov ecx, dword ptr [esi + 0x44] */
  10325     /* test ecx, ecx */ /* 0x3800BB21: test ecx, ecx */
  10326     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  10327     _cf = 0;
  10328     _flag_k = FK_TEST;
  10329     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BB77; /* 0x3800BB23: je 0x3800bb77 */
  10330 L_3800BB25:
  10331     RECOMP_ICALL(MEM32(0x3804E2A0)); /* 0x3800BB25: call dword ptr [0x3804e2a0] */
  10332     RECOMP_FLAGS_IN();
  10333     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3800BB2B: fcomp dword ptr [0x3804e8e4] */
  10334     fp_pop();
  10335     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800BB31: fnstsw ax */
  10336     /* test HI8(eax), 0x40u */ /* 0x3800BB33: test ah, 0x40 */
  10337     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
  10338     _cf = 0;
  10339     _flag_k = FK_NARROW(FK_TEST, 24);
  10340     if (TEST_NZ(_flag_a, _flag_b)) goto L_3800BB77; /* 0x3800BB36: jne 0x3800bb77 */
  10341 L_3800BB38:
  10342     ecx = MEM32(esi + 0x44); /* 0x3800BB38: mov ecx, dword ptr [esi + 0x44] */
  10343     RECOMP_ICALL(MEM32(0x3804E29C)); /* 0x3800BB3B: call dword ptr [0x3804e29c] */
  10344     RECOMP_FLAGS_IN();
  10345     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3800BB41: fstp dword ptr [ebp - 4] */
  10346     ecx = MEM32(esi + 0x44); /* 0x3800BB44: mov ecx, dword ptr [esi + 0x44] */
  10347     RECOMP_ICALL(MEM32(0x3804E2A0)); /* 0x3800BB47: call dword ptr [0x3804e2a0] */
  10348     RECOMP_FLAGS_IN();
  10349     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3800BB4D: fcomp dword ptr [ebp - 4] */
  10350     fp_pop();
  10351     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3800BB50: fnstsw ax */
  10352     /* test HI8(eax), 1 */ /* 0x3800BB52: test ah, 1 */
  10353     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  10354     _cf = 0;
  10355     _flag_k = FK_NARROW(FK_TEST, 24);
  10356     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BB62; /* 0x3800BB55: je 0x3800bb62 */
  10357 L_3800BB57:
  10358     ecx = MEM32(esi + 0x44); /* 0x3800BB57: mov ecx, dword ptr [esi + 0x44] */
  10359     PUSH32(esp, 0); /* 0x3800BB5A: push 0 */
  10360     RECOMP_ICALL(MEM32(0x3804E164)); /* 0x3800BB5C: call dword ptr [0x3804e164] */
  10361     RECOMP_FLAGS_IN();
  10362 L_3800BB62:
  10363     eax = MEM32(0x3806EC04); /* 0x3800BB62: mov eax, dword ptr [0x3806ec04] */
  10364     fp_push(*(float*)&MEM32(eax + 0x64)); /* 0x3800BB67: fld dword ptr [eax + 0x64] */
  10365     PUSH32(esp, ecx); /* 0x3800BB6A: push ecx */
  10366     ecx = MEM32(esi + 0x44); /* 0x3800BB6B: mov ecx, dword ptr [esi + 0x44] */
  10367     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3800BB6E: fstp dword ptr [esp] */
  10368     RECOMP_ICALL(MEM32(0x3804E160)); /* 0x3800BB71: call dword ptr [0x3804e160] */
  10369     RECOMP_FLAGS_IN();
  10370 L_3800BB77:
  10371     esi = POP32_VAL(esp); /* 0x3800BB77: pop esi */
  10372     esp = ebp; /* 0x3800BB78: mov esp, ebp */
  10373     ebp = POP32_VAL(esp); /* 0x3800BB7A: pop ebp */
  10374     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800BB7B: ret  */
  10375     RECOMP_REGS_OUT();
  10376 }
  10377 
  10378 void sub_3800BB80(void) {
  10379     int _fpu_cmp = 0;
  10380     uint32_t _cf = 0;
  10381     int _df = 1;
  10382     uint32_t _flag_k = FK_NONE;
  10383     uint32_t _flag_a = 0, _flag_b = 0;
  10384     uint32_t _itail_tgt = 0;
  10385     RECOMP_REGS_LOCALS
  10386     RECOMP_ENTER(0x3800BB80u);
  10387 
  10388 L_3800BB80:
  10389     eax = MEM32(0x3806EA38); /* 0x3800BB80: mov eax, dword ptr [0x3806ea38] */
  10390     edx = MEM32(0x3806EA2C); /* 0x3800BB85: mov edx, dword ptr [0x3806ea2c] */
  10391     ecx = eax + (-0x1); /* 0x3800BB8B: lea ecx, [eax - 1] */
  10392     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10393     ecx = ecx & 1; /* 0x3800BB8E: and ecx, 1 */
  10394     _cf = 0;
  10395     _flag_k = FK_TEST;
  10396     PUSH32(esp, esi); /* 0x3800BB91: push esi */
  10397     MEM32(0x3806EA38) = ecx; /* 0x3800BB92: mov dword ptr [0x3806ea38], ecx */
  10398     esi = MEM32(edx); /* 0x3800BB98: mov esi, dword ptr [edx] */
  10399     if (TEST_LE(_flag_a, _flag_b)) goto L_3800BBA3; /* 0x3800BB9A: jle 0x3800bba3 */
  10400 L_3800BB9C:
  10401     eax = ecx; /* 0x3800BB9C: mov eax, ecx */
  10402 L_3800BB9E:
  10403     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10404     eax = eax - 1; /* 0x3800BB9E: dec eax */
  10405     _flag_k = FK_DEC;
  10406     esi = MEM32(esi); /* 0x3800BB9F: mov esi, dword ptr [esi] */
  10407     RECOMP_BACKEDGE();
  10408     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3800BB9E; /* 0x3800BBA1: jne 0x3800bb9e */
  10409 L_3800BBA3:
  10410     eax = MEM32(0x3806EA30); /* 0x3800BBA3: mov eax, dword ptr [0x3806ea30] */
  10411     /* cmp ecx, eax */ /* 0x3800BBA8: cmp ecx, eax */
  10412     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  10413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10414     _flag_k = FK_CMP;
  10415     if (CMP_GE(_flag_a, _flag_b)) goto L_3800BBC4; /* 0x3800BBAA: jge 0x3800bbc4 */
  10416 L_3800BBAC:
  10417     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10419     eax = eax - ecx; /* 0x3800BBAC: sub eax, ecx */
  10420     _flag_k = FK_CMP;
  10421     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10422     eax = eax + 1; /* 0x3800BBAE: inc eax */
  10423     _flag_k = FK_INC;
  10424     if (1u) _cf = (((eax) >> 0) & 1u); /* 0x3800BBAF: shr eax, 1 */
  10425     if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10426     eax = eax >> 1u; /* 0x3800BBAF: shr eax, 1 */
  10427     PUSH32(esp, edi); /* 0x3800BBB1: push edi */
  10428     edi = eax; /* 0x3800BBB2: mov edi, eax */
  10429 L_3800BBB4:
  10430     ecx = MEM32(esi + 0x8); /* 0x3800BBB4: mov ecx, dword ptr [esi + 8] */
  10431     RECOMP_ICALL(0x3800BB10u); /* 0x3800BBB7: call 0x3800bb10 */ /* not lifted */
  10432     RECOMP_FLAGS_IN();
  10433     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10434     edi = edi - 1; /* 0x3800BBBC: dec edi */
  10435     _flag_k = FK_DEC;
  10436     eax = MEM32(esi); /* 0x3800BBBD: mov eax, dword ptr [esi] */
  10437     esi = MEM32(eax); /* 0x3800BBBF: mov esi, dword ptr [eax] */
  10438     RECOMP_BACKEDGE();
  10439     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3800BBB4; /* 0x3800BBC1: jne 0x3800bbb4 */
  10440 L_3800BBC3:
  10441     edi = POP32_VAL(esp); /* 0x3800BBC3: pop edi */
  10442 L_3800BBC4:
  10443     esi = POP32_VAL(esp); /* 0x3800BBC4: pop esi */
  10444     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800BBC5: ret  */
  10445     RECOMP_REGS_OUT();
  10446 }
  10447 
  10448 void sub_3800BBC4(void) {
  10449     int _fpu_cmp = 0;
  10450     uint32_t _cf = 0;
  10451     int _df = 1;
  10452     uint32_t _flag_k = FK_NONE;
  10453     uint32_t _flag_a = 0, _flag_b = 0;
  10454     uint32_t _itail_tgt = 0;
  10455     RECOMP_REGS_LOCALS
  10456     RECOMP_ENTER(0x3800BBC4u);
  10457 
  10458 L_3800BBC4:
  10459     esi = POP32_VAL(esp); /* 0x3800BBC4: pop esi */
  10460     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3800BBC5: ret  */
  10461     RECOMP_REGS_OUT();
  10462 }
  10463 
  10464 void sub_3800BBD0(void) {
  10465     int _fpu_cmp = 0;
  10466     uint32_t _cf = 0;
  10467     int _df = 1;
  10468     uint32_t _flag_k = FK_NONE;
  10469     uint32_t _flag_a = 0, _flag_b = 0;
  10470     uint32_t _itail_tgt = 0;
  10471     RECOMP_REGS_LOCALS
  10472     RECOMP_ENTER(0x3800BBD0u);
  10473 
  10474 L_3800BBD0:
  10475     PUSH32(esp, ebp); /* 0x3800BBD0: push ebp */
  10476     ebp = esp; /* 0x3800BBD1: mov ebp, esp */
  10477     PUSH32(esp, 0xFFFFFFFFu); /* 0x3800BBD3: push -1 */
  10478     PUSH32(esp, 0x3804BBABu); /* 0x3800BBD5: push 0x3804bbab */
  10479     eax = MEM32(FS_BASE + (0)); /* 0x3800BBDA: mov eax, dword ptr fs:[0] */
  10480     PUSH32(esp, eax); /* 0x3800BBE0: push eax */
  10481     MEM32(FS_BASE + (0)) = esp; /* 0x3800BBE1: mov dword ptr fs:[0], esp */
  10482     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
  10483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10484     esp = esp - 0x34u; /* 0x3800BBE8: sub esp, 0x34 */
  10485     _flag_k = FK_CMP;
  10486     eax = MEM32(ebp + 0x8); /* 0x3800BBEB: mov eax, dword ptr [ebp + 8] */
  10487     PUSH32(esp, ebx); /* 0x3800BBEE: push ebx */
  10488     ebx = ecx; /* 0x3800BBEF: mov ebx, ecx */
  10489     ecx = MEM32(ebx + 0x34); /* 0x3800BBF1: mov ecx, dword ptr [ebx + 0x34] */
  10490     MEM32(ebx + 0x44) = eax; /* 0x3800BBF4: mov dword ptr [ebx + 0x44], eax */
  10491     eax = MEM32(eax + 0x3C); /* 0x3800BBF7: mov eax, dword ptr [eax + 0x3c] */
  10492     eax = MEM32(eax + 0x8); /* 0x3800BBFA: mov eax, dword ptr [eax + 8] */
  10493     /* cmp eax, ecx */ /* 0x3800BBFD: cmp eax, ecx */
  10494     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10496     _flag_k = FK_CMP;
  10497     if (CMP_NE(_flag_a, _flag_b)) goto L_3800BCDF; /* 0x3800BBFF: jne 0x3800bcdf */
  10498 L_3800BC05:
  10499     PUSH32(esp, esi); /* 0x3800BC05: push esi */
  10500     ecx = ebx; /* 0x3800BC06: mov ecx, ebx */
  10501     RECOMP_ICALL(0x3800B9B0u); /* 0x3800BC08: call 0x3800b9b0 */ /* not lifted */
  10502     RECOMP_FLAGS_IN();
  10503     ecx = MEM32(ebx + 0x44); /* 0x3800BC0D: mov ecx, dword ptr [ebx + 0x44] */
  10504     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10505     esi = 0; /* 0x3800BC10: xor esi, esi */
  10506     _cf = 0;
  10507     _flag_k = FK_TEST;
  10508     MEM32(ebp + 0x8) = esi; /* 0x3800BC12: mov dword ptr [ebp + 8], esi */
  10509     RECOMP_ICALL(MEM32(0x3804E2AC)); /* 0x3800BC15: call dword ptr [0x3804e2ac] */
  10510     RECOMP_FLAGS_IN();
  10511     /* test eax, eax */ /* 0x3800BC1B: test eax, eax */
  10512     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10513     _cf = 0;
  10514     _flag_k = FK_TEST;
  10515     if (TEST_LE(_flag_a, _flag_b)) goto L_3800BCD5; /* 0x3800BC1D: jle 0x3800bcd5 */
  10516 L_3800BC23:
  10517     PUSH32(esp, edi); /* 0x3800BC23: push edi */
  10518     MEM32(ebp + (-0x10)) = esi; /* 0x3800BC24: mov dword ptr [ebp - 0x10], esi */
  10519 L_3800BC27:
  10520     eax = MEM32(ebp + 0x8); /* 0x3800BC27: mov eax, dword ptr [ebp + 8] */
  10521     ecx = MEM32(ebx + 0x44); /* 0x3800BC2A: mov ecx, dword ptr [ebx + 0x44] */
  10522     PUSH32(esp, eax); /* 0x3800BC2D: push eax */
  10523     RECOMP_ICALL(MEM32(0x3804E2A8)); /* 0x3800BC2E: call dword ptr [0x3804e2a8] */
  10524     RECOMP_FLAGS_IN();
  10525     esi = eax; /* 0x3800BC34: mov esi, eax */
  10526     ecx = 6; /* 0x3800BC36: mov ecx, 6 */
  10527     edi = ebp + (-0x40); /* 0x3800BC3B: lea edi, [ebp - 0x40] */
  10528     PUSH32(esp, 0x3Cu); /* 0x3800BC3E: push 0x3c */
  10529     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3800BC40: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  10530     RECOMP_ICALL(0x3804B676u); /* 0x3800BC42: call 0x3804b676 */ /* not lifted */
  10531     RECOMP_FLAGS_IN();
  10532     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10533     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10534     esp = esp + 4; /* 0x3800BC47: add esp, 4 */
  10535     _flag_k = FK_ADD;
  10536     MEM32(ebp + (-0x14)) = eax; /* 0x3800BC4A: mov dword ptr [ebp - 0x14], eax */
  10537     /* test eax, eax */ /* 0x3800BC4D: test eax, eax */
  10538     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10539     _cf = 0;
  10540     _flag_k = FK_TEST;
  10541     MEM32(ebp + (-0x4)) = 0; /* 0x3800BC4F: mov dword ptr [ebp - 4], 0 */
  10542     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BC75; /* 0x3800BC56: je 0x3800bc75 */
  10543 L_3800BC58:
  10544     ecx = MEM32(ebx + 0x44); /* 0x3800BC58: mov ecx, dword ptr [ebx + 0x44] */
  10545     edx = MEM32(ecx + 0x48); /* 0x3800BC5B: mov edx, dword ptr [ecx + 0x48] */
  10546     ecx = MEM32(edx + 0x4); /* 0x3800BC5E: mov ecx, dword ptr [edx + 4] */
  10547     edx = MEM32(ebp + (-0x10)); /* 0x3800BC61: mov edx, dword ptr [ebp - 0x10] */
  10548     ecx = MEM32(edx + ecx); /* 0x3800BC64: mov ecx, dword ptr [edx + ecx] */
  10549     PUSH32(esp, ecx); /* 0x3800BC67: push ecx */
  10550     ecx = MEM32(ebp + (-0x40)); /* 0x3800BC68: mov ecx, dword ptr [ebp - 0x40] */
  10551     PUSH32(esp, ecx); /* 0x3800BC6B: push ecx */
  10552     ecx = eax; /* 0x3800BC6C: mov ecx, eax */
  10553     RECOMP_ICALL(0x3801F290u); /* 0x3800BC6E: call 0x3801f290 */ /* not lifted */
  10554     RECOMP_FLAGS_IN();
  10555     goto L_3800BC77; /* 0x3800BC73: jmp 0x3800bc77 */
  10556 L_3800BC75:
  10557     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10558     eax = 0; /* 0x3800BC75: xor eax, eax */
  10559     _cf = 0;
  10560     _flag_k = FK_TEST;
  10561 L_3800BC77:
  10562     edx = MEM32(ebp + (-0x3C)); /* 0x3800BC77: mov edx, dword ptr [ebp - 0x3c] */
  10563     ecx = MEM32(ebp + (-0x38)); /* 0x3800BC7A: mov ecx, dword ptr [ebp - 0x38] */
  10564     MEM32(ebp + (-0x28)) = edx; /* 0x3800BC7D: mov dword ptr [ebp - 0x28], edx */
  10565     edx = MEM32(ebp + (-0x34)); /* 0x3800BC80: mov edx, dword ptr [ebp - 0x34] */
  10566     MEM32(ebp + (-0x24)) = ecx; /* 0x3800BC83: mov dword ptr [ebp - 0x24], ecx */
  10567     ecx = MEM32(ebp + (-0x30)); /* 0x3800BC86: mov ecx, dword ptr [ebp - 0x30] */
  10568     MEM32(ebp + (-0x20)) = edx; /* 0x3800BC89: mov dword ptr [ebp - 0x20], edx */
  10569     edx = MEM32(ebp + (-0x2C)); /* 0x3800BC8C: mov edx, dword ptr [ebp - 0x2c] */
  10570     MEM32(ebp + (-0x1C)) = ecx; /* 0x3800BC8F: mov dword ptr [ebp - 0x1c], ecx */
  10571     edi = eax + 0x28; /* 0x3800BC92: lea edi, [eax + 0x28] */
  10572     MEM32(ebp + (-0x18)) = edx; /* 0x3800BC95: mov dword ptr [ebp - 0x18], edx */
  10573     ecx = 5; /* 0x3800BC98: mov ecx, 5 */
  10574     esi = ebp + (-0x28); /* 0x3800BC9D: lea esi, [ebp - 0x28] */
  10575     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3800BCA0: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  10576     ecx = MEM32(ebx + 0x44); /* 0x3800BCA2: mov ecx, dword ptr [ebx + 0x44] */
  10577     PUSH32(esp, eax); /* 0x3800BCA5: push eax */
  10578     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3800BCA6: mov dword ptr [ebp - 4], 0xffffffff */
  10579     RECOMP_ICALL(MEM32(0x3804E2A4)); /* 0x3800BCAD: call dword ptr [0x3804e2a4] */
  10580     RECOMP_FLAGS_IN();
  10581     esi = MEM32(ebp + 0x8); /* 0x3800BCB3: mov esi, dword ptr [ebp + 8] */
  10582     edx = MEM32(ebp + (-0x10)); /* 0x3800BCB6: mov edx, dword ptr [ebp - 0x10] */
  10583     ecx = MEM32(ebx + 0x44); /* 0x3800BCB9: mov ecx, dword ptr [ebx + 0x44] */
  10584     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1Cu);
  10585     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10586     edx = edx + 0x1Cu; /* 0x3800BCBC: add edx, 0x1c */
  10587     _flag_k = FK_ADD;
  10588     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  10589     esi = esi + 1; /* 0x3800BCBF: inc esi */
  10590     _flag_k = FK_INC;
  10591     MEM32(ebp + 0x8) = esi; /* 0x3800BCC0: mov dword ptr [ebp + 8], esi */
  10592     MEM32(ebp + (-0x10)) = edx; /* 0x3800BCC3: mov dword ptr [ebp - 0x10], edx */
  10593     RECOMP_ICALL(MEM32(0x3804E2AC)); /* 0x3800BCC6: call dword ptr [0x3804e2ac] */
  10594     RECOMP_FLAGS_IN();
  10595     /* cmp esi, eax */ /* 0x3800BCCC: cmp esi, eax */
  10596     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  10597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10598     _flag_k = FK_CMP;
  10599     RECOMP_BACKEDGE();
  10600     if (CMP_L(_flag_a, _flag_b)) goto L_3800BC27; /* 0x3800BCCE: jl 0x3800bc27 */
  10601 L_3800BCD4:
  10602     edi = POP32_VAL(esp); /* 0x3800BCD4: pop edi */
  10603 L_3800BCD5:
  10604     ecx = MEM32(ebx + 0x44); /* 0x3800BCD5: mov ecx, dword ptr [ebx + 0x44] */
  10605     RECOMP_ICALL(MEM32(0x3804E264)); /* 0x3800BCD8: call dword ptr [0x3804e264] */
  10606     RECOMP_FLAGS_IN();
  10607     esi = POP32_VAL(esp); /* 0x3800BCDE: pop esi */
  10608 L_3800BCDF:
  10609     ecx = MEM32(ebp + (-0xC)); /* 0x3800BCDF: mov ecx, dword ptr [ebp - 0xc] */
  10610     ebx = POP32_VAL(esp); /* 0x3800BCE2: pop ebx */
  10611     MEM32(FS_BASE + (0)) = ecx; /* 0x3800BCE3: mov dword ptr fs:[0], ecx */
  10612     esp = ebp; /* 0x3800BCEA: mov esp, ebp */
  10613     ebp = POP32_VAL(esp); /* 0x3800BCEC: pop ebp */
  10614     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800BCED: ret 4 */
  10615     RECOMP_REGS_OUT();
  10616 }
  10617 
  10618 void sub_3800BC27(void) {
  10619     int _fpu_cmp = 0;
  10620     uint32_t _cf = 0;
  10621     int _df = 1;
  10622     uint32_t _flag_k = FK_NONE;
  10623     uint32_t _flag_a = 0, _flag_b = 0;
  10624     uint32_t _itail_tgt = 0;
  10625     RECOMP_REGS_LOCALS
  10626     RECOMP_ENTER(0x3800BC27u);
  10627 
  10628 L_3800BC27:
  10629     eax = MEM32(ebp + 0x8); /* 0x3800BC27: mov eax, dword ptr [ebp + 8] */
  10630     ecx = MEM32(ebx + 0x44); /* 0x3800BC2A: mov ecx, dword ptr [ebx + 0x44] */
  10631     PUSH32(esp, eax); /* 0x3800BC2D: push eax */
  10632     RECOMP_ICALL(MEM32(0x3804E2A8)); /* 0x3800BC2E: call dword ptr [0x3804e2a8] */
  10633     RECOMP_FLAGS_IN();
  10634     esi = eax; /* 0x3800BC34: mov esi, eax */
  10635     ecx = 6; /* 0x3800BC36: mov ecx, 6 */
  10636     edi = ebp + (-0x40); /* 0x3800BC3B: lea edi, [ebp - 0x40] */
  10637     PUSH32(esp, 0x3Cu); /* 0x3800BC3E: push 0x3c */
  10638     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3800BC40: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  10639     RECOMP_ICALL(0x3804B676u); /* 0x3800BC42: call 0x3804b676 */ /* not lifted */
  10640     RECOMP_FLAGS_IN();
  10641     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10643     esp = esp + 4; /* 0x3800BC47: add esp, 4 */
  10644     _flag_k = FK_ADD;
  10645     MEM32(ebp + (-0x14)) = eax; /* 0x3800BC4A: mov dword ptr [ebp - 0x14], eax */
  10646     /* test eax, eax */ /* 0x3800BC4D: test eax, eax */
  10647     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10648     _cf = 0;
  10649     _flag_k = FK_TEST;
  10650     MEM32(ebp + (-0x4)) = 0; /* 0x3800BC4F: mov dword ptr [ebp - 4], 0 */
  10651     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BC75; /* 0x3800BC56: je 0x3800bc75 */
  10652 L_3800BC58:
  10653     ecx = MEM32(ebx + 0x44); /* 0x3800BC58: mov ecx, dword ptr [ebx + 0x44] */
  10654     edx = MEM32(ecx + 0x48); /* 0x3800BC5B: mov edx, dword ptr [ecx + 0x48] */
  10655     ecx = MEM32(edx + 0x4); /* 0x3800BC5E: mov ecx, dword ptr [edx + 4] */
  10656     edx = MEM32(ebp + (-0x10)); /* 0x3800BC61: mov edx, dword ptr [ebp - 0x10] */
  10657     ecx = MEM32(edx + ecx); /* 0x3800BC64: mov ecx, dword ptr [edx + ecx] */
  10658     PUSH32(esp, ecx); /* 0x3800BC67: push ecx */
  10659     ecx = MEM32(ebp + (-0x40)); /* 0x3800BC68: mov ecx, dword ptr [ebp - 0x40] */
  10660     PUSH32(esp, ecx); /* 0x3800BC6B: push ecx */
  10661     ecx = eax; /* 0x3800BC6C: mov ecx, eax */
  10662     RECOMP_ICALL(0x3801F290u); /* 0x3800BC6E: call 0x3801f290 */ /* not lifted */
  10663     RECOMP_FLAGS_IN();
  10664     goto L_3800BC77; /* 0x3800BC73: jmp 0x3800bc77 */
  10665 L_3800BC75:
  10666     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10667     eax = 0; /* 0x3800BC75: xor eax, eax */
  10668     _cf = 0;
  10669     _flag_k = FK_TEST;
  10670 L_3800BC77:
  10671     edx = MEM32(ebp + (-0x3C)); /* 0x3800BC77: mov edx, dword ptr [ebp - 0x3c] */
  10672     ecx = MEM32(ebp + (-0x38)); /* 0x3800BC7A: mov ecx, dword ptr [ebp - 0x38] */
  10673     MEM32(ebp + (-0x28)) = edx; /* 0x3800BC7D: mov dword ptr [ebp - 0x28], edx */
  10674     edx = MEM32(ebp + (-0x34)); /* 0x3800BC80: mov edx, dword ptr [ebp - 0x34] */
  10675     MEM32(ebp + (-0x24)) = ecx; /* 0x3800BC83: mov dword ptr [ebp - 0x24], ecx */
  10676     ecx = MEM32(ebp + (-0x30)); /* 0x3800BC86: mov ecx, dword ptr [ebp - 0x30] */
  10677     MEM32(ebp + (-0x20)) = edx; /* 0x3800BC89: mov dword ptr [ebp - 0x20], edx */
  10678     edx = MEM32(ebp + (-0x2C)); /* 0x3800BC8C: mov edx, dword ptr [ebp - 0x2c] */
  10679     MEM32(ebp + (-0x1C)) = ecx; /* 0x3800BC8F: mov dword ptr [ebp - 0x1c], ecx */
  10680     edi = eax + 0x28; /* 0x3800BC92: lea edi, [eax + 0x28] */
  10681     MEM32(ebp + (-0x18)) = edx; /* 0x3800BC95: mov dword ptr [ebp - 0x18], edx */
  10682     ecx = 5; /* 0x3800BC98: mov ecx, 5 */
  10683     esi = ebp + (-0x28); /* 0x3800BC9D: lea esi, [ebp - 0x28] */
  10684     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3800BCA0: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  10685     ecx = MEM32(ebx + 0x44); /* 0x3800BCA2: mov ecx, dword ptr [ebx + 0x44] */
  10686     PUSH32(esp, eax); /* 0x3800BCA5: push eax */
  10687     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3800BCA6: mov dword ptr [ebp - 4], 0xffffffff */
  10688     RECOMP_ICALL(MEM32(0x3804E2A4)); /* 0x3800BCAD: call dword ptr [0x3804e2a4] */
  10689     RECOMP_FLAGS_IN();
  10690     esi = MEM32(ebp + 0x8); /* 0x3800BCB3: mov esi, dword ptr [ebp + 8] */
  10691     edx = MEM32(ebp + (-0x10)); /* 0x3800BCB6: mov edx, dword ptr [ebp - 0x10] */
  10692     ecx = MEM32(ebx + 0x44); /* 0x3800BCB9: mov ecx, dword ptr [ebx + 0x44] */
  10693     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1Cu);
  10694     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10695     edx = edx + 0x1Cu; /* 0x3800BCBC: add edx, 0x1c */
  10696     _flag_k = FK_ADD;
  10697     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  10698     esi = esi + 1; /* 0x3800BCBF: inc esi */
  10699     _flag_k = FK_INC;
  10700     MEM32(ebp + 0x8) = esi; /* 0x3800BCC0: mov dword ptr [ebp + 8], esi */
  10701     MEM32(ebp + (-0x10)) = edx; /* 0x3800BCC3: mov dword ptr [ebp - 0x10], edx */
  10702     RECOMP_ICALL(MEM32(0x3804E2AC)); /* 0x3800BCC6: call dword ptr [0x3804e2ac] */
  10703     RECOMP_FLAGS_IN();
  10704     /* cmp esi, eax */ /* 0x3800BCCC: cmp esi, eax */
  10705     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  10706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10707     _flag_k = FK_CMP;
  10708     RECOMP_BACKEDGE();
  10709     if (CMP_L(_flag_a, _flag_b)) goto L_3800BC27; /* 0x3800BCCE: jl 0x3800bc27 */
  10710 L_3800BCD4:
  10711     edi = POP32_VAL(esp); /* 0x3800BCD4: pop edi */
  10712     ecx = MEM32(ebx + 0x44); /* 0x3800BCD5: mov ecx, dword ptr [ebx + 0x44] */
  10713     RECOMP_ICALL(MEM32(0x3804E264)); /* 0x3800BCD8: call dword ptr [0x3804e264] */
  10714     RECOMP_FLAGS_IN();
  10715     esi = POP32_VAL(esp); /* 0x3800BCDE: pop esi */
  10716     ecx = MEM32(ebp + (-0xC)); /* 0x3800BCDF: mov ecx, dword ptr [ebp - 0xc] */
  10717     ebx = POP32_VAL(esp); /* 0x3800BCE2: pop ebx */
  10718     MEM32(FS_BASE + (0)) = ecx; /* 0x3800BCE3: mov dword ptr fs:[0], ecx */
  10719     esp = ebp; /* 0x3800BCEA: mov esp, ebp */
  10720     ebp = POP32_VAL(esp); /* 0x3800BCEC: pop ebp */
  10721     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800BCED: ret 4 */
  10722     RECOMP_REGS_OUT();
  10723 }
  10724 
  10725 void sub_3800BC77(void) {
  10726     int _fpu_cmp = 0;
  10727     uint32_t _cf = 0;
  10728     int _df = 1;
  10729     uint32_t _flag_k = FK_NONE;
  10730     uint32_t _flag_a = 0, _flag_b = 0;
  10731     uint32_t _itail_tgt = 0;
  10732     RECOMP_REGS_LOCALS
  10733     RECOMP_ENTER(0x3800BC77u);
  10734 
  10735     goto L_3800BC77;
  10736 L_3800BC27:
  10737     eax = MEM32(ebp + 0x8); /* 0x3800BC27: mov eax, dword ptr [ebp + 8] */
  10738     ecx = MEM32(ebx + 0x44); /* 0x3800BC2A: mov ecx, dword ptr [ebx + 0x44] */
  10739     PUSH32(esp, eax); /* 0x3800BC2D: push eax */
  10740     RECOMP_ICALL(MEM32(0x3804E2A8)); /* 0x3800BC2E: call dword ptr [0x3804e2a8] */
  10741     RECOMP_FLAGS_IN();
  10742     esi = eax; /* 0x3800BC34: mov esi, eax */
  10743     ecx = 6; /* 0x3800BC36: mov ecx, 6 */
  10744     edi = ebp + (-0x40); /* 0x3800BC3B: lea edi, [ebp - 0x40] */
  10745     PUSH32(esp, 0x3Cu); /* 0x3800BC3E: push 0x3c */
  10746     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3800BC40: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  10747     RECOMP_ICALL(0x3804B676u); /* 0x3800BC42: call 0x3804b676 */ /* not lifted */
  10748     RECOMP_FLAGS_IN();
  10749     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10750     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10751     esp = esp + 4; /* 0x3800BC47: add esp, 4 */
  10752     _flag_k = FK_ADD;
  10753     MEM32(ebp + (-0x14)) = eax; /* 0x3800BC4A: mov dword ptr [ebp - 0x14], eax */
  10754     /* test eax, eax */ /* 0x3800BC4D: test eax, eax */
  10755     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10756     _cf = 0;
  10757     _flag_k = FK_TEST;
  10758     MEM32(ebp + (-0x4)) = 0; /* 0x3800BC4F: mov dword ptr [ebp - 4], 0 */
  10759     if (TEST_Z(_flag_a, _flag_b)) goto L_3800BC75; /* 0x3800BC56: je 0x3800bc75 */
  10760 L_3800BC58:
  10761     ecx = MEM32(ebx + 0x44); /* 0x3800BC58: mov ecx, dword ptr [ebx + 0x44] */
  10762     edx = MEM32(ecx + 0x48); /* 0x3800BC5B: mov edx, dword ptr [ecx + 0x48] */
  10763     ecx = MEM32(edx + 0x4); /* 0x3800BC5E: mov ecx, dword ptr [edx + 4] */
  10764     edx = MEM32(ebp + (-0x10)); /* 0x3800BC61: mov edx, dword ptr [ebp - 0x10] */
  10765     ecx = MEM32(edx + ecx); /* 0x3800BC64: mov ecx, dword ptr [edx + ecx] */
  10766     PUSH32(esp, ecx); /* 0x3800BC67: push ecx */
  10767     ecx = MEM32(ebp + (-0x40)); /* 0x3800BC68: mov ecx, dword ptr [ebp - 0x40] */
  10768     PUSH32(esp, ecx); /* 0x3800BC6B: push ecx */
  10769     ecx = eax; /* 0x3800BC6C: mov ecx, eax */
  10770     RECOMP_ICALL(0x3801F290u); /* 0x3800BC6E: call 0x3801f290 */ /* not lifted */
  10771     RECOMP_FLAGS_IN();
  10772     goto L_3800BC77; /* 0x3800BC73: jmp 0x3800bc77 */
  10773 L_3800BC75:
  10774     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10775     eax = 0; /* 0x3800BC75: xor eax, eax */
  10776     _cf = 0;
  10777     _flag_k = FK_TEST;
  10778 L_3800BC77:
  10779     edx = MEM32(ebp + (-0x3C)); /* 0x3800BC77: mov edx, dword ptr [ebp - 0x3c] */
  10780     ecx = MEM32(ebp + (-0x38)); /* 0x3800BC7A: mov ecx, dword ptr [ebp - 0x38] */
  10781     MEM32(ebp + (-0x28)) = edx; /* 0x3800BC7D: mov dword ptr [ebp - 0x28], edx */
  10782     edx = MEM32(ebp + (-0x34)); /* 0x3800BC80: mov edx, dword ptr [ebp - 0x34] */
  10783     MEM32(ebp + (-0x24)) = ecx; /* 0x3800BC83: mov dword ptr [ebp - 0x24], ecx */
  10784     ecx = MEM32(ebp + (-0x30)); /* 0x3800BC86: mov ecx, dword ptr [ebp - 0x30] */
  10785     MEM32(ebp + (-0x20)) = edx; /* 0x3800BC89: mov dword ptr [ebp - 0x20], edx */
  10786     edx = MEM32(ebp + (-0x2C)); /* 0x3800BC8C: mov edx, dword ptr [ebp - 0x2c] */
  10787     MEM32(ebp + (-0x1C)) = ecx; /* 0x3800BC8F: mov dword ptr [ebp - 0x1c], ecx */
  10788     edi = eax + 0x28; /* 0x3800BC92: lea edi, [eax + 0x28] */
  10789     MEM32(ebp + (-0x18)) = edx; /* 0x3800BC95: mov dword ptr [ebp - 0x18], edx */
  10790     ecx = 5; /* 0x3800BC98: mov ecx, 5 */
  10791     esi = ebp + (-0x28); /* 0x3800BC9D: lea esi, [ebp - 0x28] */
  10792     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3800BCA0: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  10793     ecx = MEM32(ebx + 0x44); /* 0x3800BCA2: mov ecx, dword ptr [ebx + 0x44] */
  10794     PUSH32(esp, eax); /* 0x3800BCA5: push eax */
  10795     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3800BCA6: mov dword ptr [ebp - 4], 0xffffffff */
  10796     RECOMP_ICALL(MEM32(0x3804E2A4)); /* 0x3800BCAD: call dword ptr [0x3804e2a4] */
  10797     RECOMP_FLAGS_IN();
  10798     esi = MEM32(ebp + 0x8); /* 0x3800BCB3: mov esi, dword ptr [ebp + 8] */
  10799     edx = MEM32(ebp + (-0x10)); /* 0x3800BCB6: mov edx, dword ptr [ebp - 0x10] */
  10800     ecx = MEM32(ebx + 0x44); /* 0x3800BCB9: mov ecx, dword ptr [ebx + 0x44] */
  10801     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1Cu);
  10802     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10803     edx = edx + 0x1Cu; /* 0x3800BCBC: add edx, 0x1c */
  10804     _flag_k = FK_ADD;
  10805     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
  10806     esi = esi + 1; /* 0x3800BCBF: inc esi */
  10807     _flag_k = FK_INC;
  10808     MEM32(ebp + 0x8) = esi; /* 0x3800BCC0: mov dword ptr [ebp + 8], esi */
  10809     MEM32(ebp + (-0x10)) = edx; /* 0x3800BCC3: mov dword ptr [ebp - 0x10], edx */
  10810     RECOMP_ICALL(MEM32(0x3804E2AC)); /* 0x3800BCC6: call dword ptr [0x3804e2ac] */
  10811     RECOMP_FLAGS_IN();
  10812     /* cmp esi, eax */ /* 0x3800BCCC: cmp esi, eax */
  10813     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  10814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10815     _flag_k = FK_CMP;
  10816     RECOMP_BACKEDGE();
  10817     if (CMP_L(_flag_a, _flag_b)) goto L_3800BC27; /* 0x3800BCCE: jl 0x3800bc27 */
  10818 L_3800BCD4:
  10819     edi = POP32_VAL(esp); /* 0x3800BCD4: pop edi */
  10820     ecx = MEM32(ebx + 0x44); /* 0x3800BCD5: mov ecx, dword ptr [ebx + 0x44] */
  10821     RECOMP_ICALL(MEM32(0x3804E264)); /* 0x3800BCD8: call dword ptr [0x3804e264] */
  10822     RECOMP_FLAGS_IN();
  10823     esi = POP32_VAL(esp); /* 0x3800BCDE: pop esi */
  10824     ecx = MEM32(ebp + (-0xC)); /* 0x3800BCDF: mov ecx, dword ptr [ebp - 0xc] */
  10825     ebx = POP32_VAL(esp); /* 0x3800BCE2: pop ebx */
  10826     MEM32(FS_BASE + (0)) = ecx; /* 0x3800BCE3: mov dword ptr fs:[0], ecx */
  10827     esp = ebp; /* 0x3800BCEA: mov esp, ebp */
  10828     ebp = POP32_VAL(esp); /* 0x3800BCEC: pop ebp */
  10829     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3800BCED: ret 4 */
  10830     RECOMP_REGS_OUT();
  10831 }