aorecomp

Anarchy Online classic in the browser

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


client/game/llr.dll/lifted-0011.c (433941B)


      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_3801CF47(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(0x3801CF47u);
     17 
     18 L_3801CF47:
     19     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
     20     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
     21     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
     22     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
     23     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
     24     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
     25     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
     26     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
     27     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
     28     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
     29     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
     30     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
     31     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
     32     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
     33     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
     34     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
     35     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
     36     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
     37     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     38     _flag_k = FK_CMP;
     39     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
     40 L_3801CF77:
     41     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
     42 L_3801CF7A:
     43     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
     44     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
     45     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
     46     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
     47     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
     48     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     49     _flag_k = FK_CMP;
     50     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
     51 L_3801CF88:
     52     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
     53     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
     54 L_3801CF8D:
     55     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
     56     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
     57     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
     58     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     59     _flag_k = FK_CMP;
     60     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
     61 L_3801CF95:
     62     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
     63     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
     64 L_3801CF9A:
     65     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
     66 L_3801CF9C:
     67     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
     68     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
     69     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
     70     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
     71     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
     72     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
     73     RECOMP_FLAGS_IN();
     74     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
     75     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
     76     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     77     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     78     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
     79     _flag_k = FK_ADD;
     80     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
     81     eax = eax - 1; /* 0x3801CFB7: dec eax */
     82     _flag_k = FK_DEC;
     83     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
     84     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
     85     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
     86     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
     87     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
     88     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
     89     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
     90     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
     91     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
     92     RECOMP_REGS_OUT();
     93 }
     94 
     95 void sub_3801CF9C(void) {
     96     int _fpu_cmp = 0;
     97     uint32_t _cf = 0;
     98     int _df = 1;
     99     uint32_t _flag_k = FK_NONE;
    100     uint32_t _flag_a = 0, _flag_b = 0;
    101     uint32_t _itail_tgt = 0;
    102     RECOMP_REGS_LOCALS
    103     RECOMP_ENTER(0x3801CF9Cu);
    104 
    105 L_3801CF9C:
    106     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
    107     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
    108     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
    109     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
    110     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
    111     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
    112     RECOMP_FLAGS_IN();
    113     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
    114     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
    115     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    117     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
    118     _flag_k = FK_ADD;
    119     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    120     eax = eax - 1; /* 0x3801CFB7: dec eax */
    121     _flag_k = FK_DEC;
    122     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
    123     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
    124     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
    125     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
    126     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
    127     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
    128     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
    129     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
    130     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
    131     RECOMP_REGS_OUT();
    132 }
    133 
    134 void sub_3801CF9F(void) {
    135     int _fpu_cmp = 0;
    136     uint32_t _cf = 0;
    137     int _df = 1;
    138     uint32_t _flag_k = FK_NONE;
    139     uint32_t _flag_a = 0, _flag_b = 0;
    140     uint32_t _itail_tgt = 0;
    141     RECOMP_REGS_LOCALS
    142     RECOMP_ENTER(0x3801CF9Fu);
    143 
    144 L_3801CF9F:
    145     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
    146     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
    147     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
    148     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
    149     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
    150     RECOMP_FLAGS_IN();
    151     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
    152     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
    153     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    154     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    155     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
    156     _flag_k = FK_ADD;
    157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    158     eax = eax - 1; /* 0x3801CFB7: dec eax */
    159     _flag_k = FK_DEC;
    160     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
    161     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
    162     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
    163     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
    164     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
    165     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
    166     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
    167     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
    168     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
    169     RECOMP_REGS_OUT();
    170 }
    171 
    172 void sub_3801CFA2(void) {
    173     int _fpu_cmp = 0;
    174     uint32_t _cf = 0;
    175     int _df = 1;
    176     uint32_t _flag_k = FK_NONE;
    177     uint32_t _flag_a = 0, _flag_b = 0;
    178     uint32_t _itail_tgt = 0;
    179     RECOMP_REGS_LOCALS
    180     RECOMP_ENTER(0x3801CFA2u);
    181 
    182 L_3801CFA2:
    183     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
    184     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
    185     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
    186     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
    187     RECOMP_FLAGS_IN();
    188     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
    189     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
    190     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    191     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    192     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
    193     _flag_k = FK_ADD;
    194     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    195     eax = eax - 1; /* 0x3801CFB7: dec eax */
    196     _flag_k = FK_DEC;
    197     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
    198     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
    199     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
    200     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
    201     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
    202     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
    203     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
    204     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
    205     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
    206     RECOMP_REGS_OUT();
    207 }
    208 
    209 void sub_3801CFD0(void) {
    210     int _fpu_cmp = 0;
    211     uint32_t _cf = 0;
    212     int _df = 1;
    213     uint32_t _flag_k = FK_NONE;
    214     uint32_t _flag_a = 0, _flag_b = 0;
    215     uint32_t _itail_tgt = 0;
    216     RECOMP_REGS_LOCALS
    217     RECOMP_ENTER(0x3801CFD0u);
    218 
    219 L_3801CFD0:
    220     PUSH32(esp, ebp); /* 0x3801CFD0: push ebp */
    221     ebp = esp; /* 0x3801CFD1: mov ebp, esp */
    222     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    223     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    224     esp = esp - 0xCu; /* 0x3801CFD3: sub esp, 0xc */
    225     _flag_k = FK_CMP;
    226     PUSH32(esp, esi); /* 0x3801CFD6: push esi */
    227     PUSH32(esp, edi); /* 0x3801CFD7: push edi */
    228     edi = MEM32(ebp + 0x8); /* 0x3801CFD8: mov edi, dword ptr [ebp + 8] */
    229     esi = ecx; /* 0x3801CFDB: mov esi, ecx */
    230     SET_LO8(ecx, MEM8(edi + 0x21)); /* 0x3801CFDD: mov cl, byte ptr [edi + 0x21] */
    231     /* test LO8(ecx), LO8(ecx) */ /* 0x3801CFE0: test cl, cl */
    232     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    233     _cf = 0;
    234     _flag_k = FK_NARROW(FK_TEST, 24);
    235     eax = MEM32(esi + 0x8); /* 0x3801CFE2: mov eax, dword ptr [esi + 8] */
    236     MEM32(ebp + (-0xC)) = esi; /* 0x3801CFE5: mov dword ptr [ebp - 0xc], esi */
    237     MEM32(ebp + (-0x8)) = eax; /* 0x3801CFE8: mov dword ptr [ebp - 8], eax */
    238     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D05F; /* 0x3801CFEB: jne 0x3801d05f */
    239 L_3801CFED:
    240     SET_LO8(eax, MEM8(edi + 0x20)); /* 0x3801CFED: mov al, byte ptr [edi + 0x20] */
    241     PUSH32(esp, ebx); /* 0x3801CFF0: push ebx */
    242     PUSH32(esp, 0x24u); /* 0x3801CFF1: push 0x24 */
    243     MEM8(ebp + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x3801CFF3: mov byte ptr [ebp - 1], al */
    244     RECOMP_ICALL(0x3804B676u); /* 0x3801CFF6: call 0x3804b676 */ /* not lifted */
    245     RECOMP_FLAGS_IN();
    246     ecx = MEM32(ebp + 0xC); /* 0x3801CFFB: mov ecx, dword ptr [ebp + 0xc] */
    247     SET_LO8(edx, MEM8(ebp + (-0x1))); /* 0x3801CFFE: mov dl, byte ptr [ebp - 1] */
    248     ebx = eax; /* 0x3801D001: mov ebx, eax */
    249     eax = ebx + 0xC; /* 0x3801D003: lea eax, [ebx + 0xc] */
    250     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    251     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    252     esp = esp + 4; /* 0x3801D006: add esp, 4 */
    253     _flag_k = FK_ADD;
    254     /* test eax, eax */ /* 0x3801D009: test eax, eax */
    255     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    256     _cf = 0;
    257     _flag_k = FK_TEST;
    258     MEM32(ebx + 0x4) = ecx; /* 0x3801D00B: mov dword ptr [ebx + 4], ecx */
    259     MEM8(ebx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801D00E: mov byte ptr [ebx + 0x20], dl */
    260     MEM8(ebx + 0x21) = (uint8_t)(0); /* 0x3801D011: mov byte ptr [ebx + 0x21], 0 */
    261     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D029; /* 0x3801D015: je 0x3801d029 */
    262 L_3801D017:
    263     esi = edi + 0xC; /* 0x3801D017: lea esi, [edi + 0xc] */
    264     ecx = 5; /* 0x3801D01A: mov ecx, 5 */
    265     edi = eax; /* 0x3801D01F: mov edi, eax */
    266     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3801D021: 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; }
    267     edi = MEM32(ebp + 0x8); /* 0x3801D023: mov edi, dword ptr [ebp + 8] */
    268     esi = MEM32(ebp + (-0xC)); /* 0x3801D026: mov esi, dword ptr [ebp - 0xc] */
    269 L_3801D029:
    270     eax = MEM32(esi + 0x8); /* 0x3801D029: mov eax, dword ptr [esi + 8] */
    271     edx = MEM32(ebp + (-0x8)); /* 0x3801D02C: mov edx, dword ptr [ebp - 8] */
    272     MEM32(ebx) = eax; /* 0x3801D02F: mov dword ptr [ebx], eax */
    273     ecx = MEM32(esi + 0x8); /* 0x3801D031: mov ecx, dword ptr [esi + 8] */
    274     MEM32(ebx + 0x8) = ecx; /* 0x3801D034: mov dword ptr [ebx + 8], ecx */
    275     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D037: cmp edx, dword ptr [esi + 8] */
    276     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    278     _flag_k = FK_CMP;
    279     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D03F; /* 0x3801D03A: jne 0x3801d03f */
    280 L_3801D03C:
    281     MEM32(ebp + (-0x8)) = ebx; /* 0x3801D03C: mov dword ptr [ebp - 8], ebx */
    282 L_3801D03F:
    283     eax = MEM32(edi); /* 0x3801D03F: mov eax, dword ptr [edi] */
    284     PUSH32(esp, ebx); /* 0x3801D041: push ebx */
    285     PUSH32(esp, eax); /* 0x3801D042: push eax */
    286     ecx = esi; /* 0x3801D043: mov ecx, esi */
    287     RECOMP_ICALL(0x3801CFD0u); /* 0x3801D045: call 0x3801cfd0 */ /* not lifted */
    288     RECOMP_FLAGS_IN();
    289     MEM32(ebx) = eax; /* 0x3801D04A: mov dword ptr [ebx], eax */
    290     ecx = MEM32(edi + 0x8); /* 0x3801D04C: mov ecx, dword ptr [edi + 8] */
    291     PUSH32(esp, ebx); /* 0x3801D04F: push ebx */
    292     PUSH32(esp, ecx); /* 0x3801D050: push ecx */
    293     ecx = esi; /* 0x3801D051: mov ecx, esi */
    294     RECOMP_ICALL(0x3801CFD0u); /* 0x3801D053: call 0x3801cfd0 */ /* not lifted */
    295     RECOMP_FLAGS_IN();
    296     MEM32(ebx + 0x8) = eax; /* 0x3801D058: mov dword ptr [ebx + 8], eax */
    297     eax = MEM32(ebp + (-0x8)); /* 0x3801D05B: mov eax, dword ptr [ebp - 8] */
    298     ebx = POP32_VAL(esp); /* 0x3801D05E: pop ebx */
    299 L_3801D05F:
    300     edi = POP32_VAL(esp); /* 0x3801D05F: pop edi */
    301     esi = POP32_VAL(esp); /* 0x3801D060: pop esi */
    302     esp = ebp; /* 0x3801D061: mov esp, ebp */
    303     ebp = POP32_VAL(esp); /* 0x3801D063: pop ebp */
    304     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801D064: ret 8 */
    305     RECOMP_REGS_OUT();
    306 }
    307 
    308 void sub_3801D070(void) {
    309     int _fpu_cmp = 0;
    310     uint32_t _cf = 0;
    311     int _df = 1;
    312     uint32_t _flag_k = FK_NONE;
    313     uint32_t _flag_a = 0, _flag_b = 0;
    314     uint32_t _itail_tgt = 0;
    315     RECOMP_REGS_LOCALS
    316     RECOMP_ENTER(0x3801D070u);
    317 
    318 L_3801D070:
    319     PUSH32(esp, ebp); /* 0x3801D070: push ebp */
    320     ebp = esp; /* 0x3801D071: mov ebp, esp */
    321     PUSH32(esp, ebx); /* 0x3801D073: push ebx */
    322     PUSH32(esp, esi); /* 0x3801D074: push esi */
    323     ebx = ecx; /* 0x3801D075: mov ebx, ecx */
    324     eax = MEM32(ebx + 0x8); /* 0x3801D077: mov eax, dword ptr [ebx + 8] */
    325     PUSH32(esp, edi); /* 0x3801D07A: push edi */
    326     edi = MEM32(ebp + 0x8); /* 0x3801D07B: mov edi, dword ptr [ebp + 8] */
    327     /* cmp edi, eax */ /* 0x3801D07E: cmp edi, eax */
    328     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    330     _flag_k = FK_CMP;
    331     esi = edi; /* 0x3801D080: mov esi, edi */
    332     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D0A3; /* 0x3801D082: je 0x3801d0a3 */
    333 L_3801D084:
    334     eax = MEM32(esi + 0x8); /* 0x3801D084: mov eax, dword ptr [esi + 8] */
    335     PUSH32(esp, eax); /* 0x3801D087: push eax */
    336     ecx = ebx; /* 0x3801D088: mov ecx, ebx */
    337     RECOMP_ICALL(0x3801D070u); /* 0x3801D08A: call 0x3801d070 */ /* not lifted */
    338     RECOMP_FLAGS_IN();
    339     esi = MEM32(esi); /* 0x3801D08F: mov esi, dword ptr [esi] */
    340     PUSH32(esp, edi); /* 0x3801D091: push edi */
    341     RECOMP_ICALL(0x3804B4F6u); /* 0x3801D092: call 0x3804b4f6 */ /* not lifted */
    342     RECOMP_FLAGS_IN();
    343     eax = MEM32(ebx + 0x8); /* 0x3801D097: mov eax, dword ptr [ebx + 8] */
    344     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    345     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    346     esp = esp + 4; /* 0x3801D09A: add esp, 4 */
    347     _flag_k = FK_ADD;
    348     /* cmp esi, eax */ /* 0x3801D09D: cmp esi, eax */
    349     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    351     _flag_k = FK_CMP;
    352     edi = esi; /* 0x3801D09F: mov edi, esi */
    353     RECOMP_BACKEDGE();
    354     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D084; /* 0x3801D0A1: jne 0x3801d084 */
    355 L_3801D0A3:
    356     edi = POP32_VAL(esp); /* 0x3801D0A3: pop edi */
    357     esi = POP32_VAL(esp); /* 0x3801D0A4: pop esi */
    358     ebx = POP32_VAL(esp); /* 0x3801D0A5: pop ebx */
    359     ebp = POP32_VAL(esp); /* 0x3801D0A6: pop ebp */
    360     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D0A7: ret 4 */
    361     RECOMP_REGS_OUT();
    362 }
    363 
    364 void sub_3801D0B0(void) {
    365     int _fpu_cmp = 0;
    366     uint32_t _cf = 0;
    367     int _df = 1;
    368     uint32_t _flag_k = FK_NONE;
    369     uint32_t _flag_a = 0, _flag_b = 0;
    370     uint32_t _itail_tgt = 0;
    371     RECOMP_REGS_LOCALS
    372     RECOMP_ENTER(0x3801D0B0u);
    373 
    374 L_3801D0B0:
    375     PUSH32(esp, ebp); /* 0x3801D0B0: push ebp */
    376     ebp = esp; /* 0x3801D0B1: mov ebp, esp */
    377     eax = MEM32(ebp + 0x8); /* 0x3801D0B3: mov eax, dword ptr [ebp + 8] */
    378     ecx = MEM32(eax + 0x8); /* 0x3801D0B6: mov ecx, dword ptr [eax + 8] */
    379     SET_LO8(edx, MEM8(ecx + 0x21)); /* 0x3801D0B9: mov dl, byte ptr [ecx + 0x21] */
    380     /* test LO8(edx), LO8(edx) */ /* 0x3801D0BC: test dl, dl */
    381     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    382     _cf = 0;
    383     _flag_k = FK_NARROW(FK_TEST, 24);
    384     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D0CC; /* 0x3801D0BE: jne 0x3801d0cc */
    385 L_3801D0C0:
    386     eax = ecx; /* 0x3801D0C0: mov eax, ecx */
    387     ecx = MEM32(eax + 0x8); /* 0x3801D0C2: mov ecx, dword ptr [eax + 8] */
    388     SET_LO8(edx, MEM8(ecx + 0x21)); /* 0x3801D0C5: mov dl, byte ptr [ecx + 0x21] */
    389     /* test LO8(edx), LO8(edx) */ /* 0x3801D0C8: test dl, dl */
    390     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    391     _cf = 0;
    392     _flag_k = FK_NARROW(FK_TEST, 24);
    393     RECOMP_BACKEDGE();
    394     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D0C0; /* 0x3801D0CA: je 0x3801d0c0 */
    395 L_3801D0CC:
    396     ebp = POP32_VAL(esp); /* 0x3801D0CC: pop ebp */
    397     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D0CD: ret  */
    398     RECOMP_REGS_OUT();
    399 }
    400 
    401 void sub_3801D0D0(void) {
    402     int _fpu_cmp = 0;
    403     uint32_t _cf = 0;
    404     int _df = 1;
    405     uint32_t _flag_k = FK_NONE;
    406     uint32_t _flag_a = 0, _flag_b = 0;
    407     uint32_t _itail_tgt = 0;
    408     RECOMP_REGS_LOCALS
    409     RECOMP_ENTER(0x3801D0D0u);
    410 
    411 L_3801D0D0:
    412     PUSH32(esp, ebp); /* 0x3801D0D0: push ebp */
    413     ebp = esp; /* 0x3801D0D1: mov ebp, esp */
    414     PUSH32(esp, ebx); /* 0x3801D0D3: push ebx */
    415     PUSH32(esp, esi); /* 0x3801D0D4: push esi */
    416     esi = MEM32(ecx); /* 0x3801D0D5: mov esi, dword ptr [ecx] */
    417     edx = MEM32(esi + 0x8); /* 0x3801D0D7: mov edx, dword ptr [esi + 8] */
    418     SET_LO8(eax, MEM8(edx + 0x21)); /* 0x3801D0DA: mov al, byte ptr [edx + 0x21] */
    419     /* test LO8(eax), LO8(eax) */ /* 0x3801D0DD: test al, al */
    420     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    421     _cf = 0;
    422     _flag_k = FK_NARROW(FK_TEST, 24);
    423     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D102; /* 0x3801D0DF: jne 0x3801d102 */
    424 L_3801D0E1:
    425     eax = MEM32(edx); /* 0x3801D0E1: mov eax, dword ptr [edx] */
    426     SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x3801D0E3: mov bl, byte ptr [eax + 0x21] */
    427     /* test LO8(ebx), LO8(ebx) */ /* 0x3801D0E6: test bl, bl */
    428     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    429     _cf = 0;
    430     _flag_k = FK_NARROW(FK_TEST, 24);
    431     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D0F5; /* 0x3801D0E8: jne 0x3801d0f5 */
    432 L_3801D0EA:
    433     edx = eax; /* 0x3801D0EA: mov edx, eax */
    434     eax = MEM32(edx); /* 0x3801D0EC: mov eax, dword ptr [edx] */
    435     SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x3801D0EE: mov bl, byte ptr [eax + 0x21] */
    436     /* test LO8(ebx), LO8(ebx) */ /* 0x3801D0F1: test bl, bl */
    437     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    438     _cf = 0;
    439     _flag_k = FK_NARROW(FK_TEST, 24);
    440     RECOMP_BACKEDGE();
    441     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D0EA; /* 0x3801D0F3: je 0x3801d0ea */
    442 L_3801D0F5:
    443     eax = MEM32(ebp + 0x8); /* 0x3801D0F5: mov eax, dword ptr [ebp + 8] */
    444     MEM32(ecx) = edx; /* 0x3801D0F8: mov dword ptr [ecx], edx */
    445     MEM32(eax) = esi; /* 0x3801D0FA: mov dword ptr [eax], esi */
    446     esi = POP32_VAL(esp); /* 0x3801D0FC: pop esi */
    447     ebx = POP32_VAL(esp); /* 0x3801D0FD: pop ebx */
    448     ebp = POP32_VAL(esp); /* 0x3801D0FE: pop ebp */
    449     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801D0FF: ret 8 */
    450 L_3801D102:
    451     eax = MEM32(esi + 0x4); /* 0x3801D102: mov eax, dword ptr [esi + 4] */
    452     edx = MEM32(ecx); /* 0x3801D105: mov edx, dword ptr [ecx] */
    453     /* cmp edx, MEM32(eax + 0x8) */ /* 0x3801D107: cmp edx, dword ptr [eax + 8] */
    454     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    456     _flag_k = FK_CMP;
    457     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D118; /* 0x3801D10A: jne 0x3801d118 */
    458 L_3801D10C:
    459     MEM32(ecx) = eax; /* 0x3801D10C: mov dword ptr [ecx], eax */
    460     eax = MEM32(eax + 0x4); /* 0x3801D10E: mov eax, dword ptr [eax + 4] */
    461     edx = MEM32(ecx); /* 0x3801D111: mov edx, dword ptr [ecx] */
    462     /* cmp edx, MEM32(eax + 0x8) */ /* 0x3801D113: cmp edx, dword ptr [eax + 8] */
    463     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    465     _flag_k = FK_CMP;
    466     RECOMP_BACKEDGE();
    467     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D10C; /* 0x3801D116: je 0x3801d10c */
    468 L_3801D118:
    469     edx = MEM32(ecx); /* 0x3801D118: mov edx, dword ptr [ecx] */
    470     /* cmp MEM32(edx + 0x8), eax */ /* 0x3801D11A: cmp dword ptr [edx + 8], eax */
    471     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
    472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    473     _flag_k = FK_CMP;
    474     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D121; /* 0x3801D11D: je 0x3801d121 */
    475 L_3801D11F:
    476     MEM32(ecx) = eax; /* 0x3801D11F: mov dword ptr [ecx], eax */
    477 L_3801D121:
    478     eax = MEM32(ebp + 0x8); /* 0x3801D121: mov eax, dword ptr [ebp + 8] */
    479     MEM32(eax) = esi; /* 0x3801D124: mov dword ptr [eax], esi */
    480     esi = POP32_VAL(esp); /* 0x3801D126: pop esi */
    481     ebx = POP32_VAL(esp); /* 0x3801D127: pop ebx */
    482     ebp = POP32_VAL(esp); /* 0x3801D128: pop ebp */
    483     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801D129: ret 8 */
    484     RECOMP_REGS_OUT();
    485 }
    486 
    487 void sub_3801D130(void) {
    488     int _fpu_cmp = 0;
    489     uint32_t _cf = 0;
    490     int _df = 1;
    491     uint32_t _flag_k = FK_NONE;
    492     uint32_t _flag_a = 0, _flag_b = 0;
    493     uint32_t _itail_tgt = 0;
    494     RECOMP_REGS_LOCALS
    495     RECOMP_ENTER(0x3801D130u);
    496 
    497 L_3801D130:
    498     PUSH32(esp, ebp); /* 0x3801D130: push ebp */
    499     ebp = esp; /* 0x3801D131: mov ebp, esp */
    500     PUSH32(esp, ebx); /* 0x3801D133: push ebx */
    501     PUSH32(esp, esi); /* 0x3801D134: push esi */
    502     ebx = ecx; /* 0x3801D135: mov ebx, ecx */
    503     eax = MEM32(ebx + 0x8); /* 0x3801D137: mov eax, dword ptr [ebx + 8] */
    504     PUSH32(esp, edi); /* 0x3801D13A: push edi */
    505     edi = MEM32(ebp + 0x8); /* 0x3801D13B: mov edi, dword ptr [ebp + 8] */
    506     /* cmp edi, eax */ /* 0x3801D13E: cmp edi, eax */
    507     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    508     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    509     _flag_k = FK_CMP;
    510     esi = edi; /* 0x3801D140: mov esi, edi */
    511     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D163; /* 0x3801D142: je 0x3801d163 */
    512 L_3801D144:
    513     eax = MEM32(esi + 0x8); /* 0x3801D144: mov eax, dword ptr [esi + 8] */
    514     PUSH32(esp, eax); /* 0x3801D147: push eax */
    515     ecx = ebx; /* 0x3801D148: mov ecx, ebx */
    516     RECOMP_ICALL(0x3801D130u); /* 0x3801D14A: call 0x3801d130 */ /* not lifted */
    517     RECOMP_FLAGS_IN();
    518     esi = MEM32(esi); /* 0x3801D14F: mov esi, dword ptr [esi] */
    519     PUSH32(esp, edi); /* 0x3801D151: push edi */
    520     RECOMP_ICALL(0x3804B4F6u); /* 0x3801D152: call 0x3804b4f6 */ /* not lifted */
    521     RECOMP_FLAGS_IN();
    522     eax = MEM32(ebx + 0x8); /* 0x3801D157: mov eax, dword ptr [ebx + 8] */
    523     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    525     esp = esp + 4; /* 0x3801D15A: add esp, 4 */
    526     _flag_k = FK_ADD;
    527     /* cmp esi, eax */ /* 0x3801D15D: cmp esi, eax */
    528     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    530     _flag_k = FK_CMP;
    531     edi = esi; /* 0x3801D15F: mov edi, esi */
    532     RECOMP_BACKEDGE();
    533     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D144; /* 0x3801D161: jne 0x3801d144 */
    534 L_3801D163:
    535     edi = POP32_VAL(esp); /* 0x3801D163: pop edi */
    536     esi = POP32_VAL(esp); /* 0x3801D164: pop esi */
    537     ebx = POP32_VAL(esp); /* 0x3801D165: pop ebx */
    538     ebp = POP32_VAL(esp); /* 0x3801D166: pop ebp */
    539     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D167: ret 4 */
    540     RECOMP_REGS_OUT();
    541 }
    542 
    543 void sub_3801D170(void) {
    544     int _fpu_cmp = 0;
    545     uint32_t _cf = 0;
    546     int _df = 1;
    547     uint32_t _flag_k = FK_NONE;
    548     uint32_t _flag_a = 0, _flag_b = 0;
    549     uint32_t _itail_tgt = 0;
    550     RECOMP_REGS_LOCALS
    551     RECOMP_ENTER(0x3801D170u);
    552 
    553 L_3801D170:
    554     PUSH32(esp, ebp); /* 0x3801D170: push ebp */
    555     ebp = esp; /* 0x3801D171: mov ebp, esp */
    556     PUSH32(esp, ecx); /* 0x3801D173: push ecx */
    557     PUSH32(esp, ebx); /* 0x3801D174: push ebx */
    558     PUSH32(esp, esi); /* 0x3801D175: push esi */
    559     PUSH32(esp, edi); /* 0x3801D176: push edi */
    560     PUSH32(esp, 0x18u); /* 0x3801D177: push 0x18 */
    561     esi = ecx; /* 0x3801D179: mov esi, ecx */
    562     RECOMP_ICALL(0x3804B676u); /* 0x3801D17B: call 0x3804b676 */ /* not lifted */
    563     RECOMP_FLAGS_IN();
    564     edi = MEM32(ebp + 0x10); /* 0x3801D180: mov edi, dword ptr [ebp + 0x10] */
    565     ebx = MEM32(ebp + 0x14); /* 0x3801D183: mov ebx, dword ptr [ebp + 0x14] */
    566     MEM32(eax + 0x4) = edi; /* 0x3801D186: mov dword ptr [eax + 4], edi */
    567     MEM8(eax + 0x14) = (uint8_t)(0); /* 0x3801D189: mov byte ptr [eax + 0x14], 0 */
    568     MEM8(eax + 0x15) = (uint8_t)(0); /* 0x3801D18D: mov byte ptr [eax + 0x15], 0 */
    569     ecx = MEM32(esi + 0x8); /* 0x3801D191: mov ecx, dword ptr [esi + 8] */
    570     MEM32(eax) = ecx; /* 0x3801D194: mov dword ptr [eax], ecx */
    571     edx = MEM32(esi + 0x8); /* 0x3801D196: mov edx, dword ptr [esi + 8] */
    572     MEM32(ebp + (-0x4)) = eax; /* 0x3801D199: mov dword ptr [ebp - 4], eax */
    573     MEM32(eax + 0x8) = edx; /* 0x3801D19C: mov dword ptr [eax + 8], edx */
    574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    575     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    576     eax = eax + 0xCu; /* 0x3801D19F: add eax, 0xc */
    577     _flag_k = FK_ADD;
    578     PUSH32(esp, ebx); /* 0x3801D1A2: push ebx */
    579     PUSH32(esp, eax); /* 0x3801D1A3: push eax */
    580     RECOMP_ICALL(0x3802F370u); /* 0x3801D1A4: call 0x3802f370 */ /* not lifted */
    581     RECOMP_FLAGS_IN();
    582     ecx = MEM32(esi + 0x10); /* 0x3801D1A9: mov ecx, dword ptr [esi + 0x10] */
    583     eax = MEM32(esi + 0x4); /* 0x3801D1AC: mov eax, dword ptr [esi + 4] */
    584     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    585     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    586     esp = esp + 0xCu; /* 0x3801D1AF: add esp, 0xc */
    587     _flag_k = FK_ADD;
    588     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    589     ecx = ecx + 1; /* 0x3801D1B2: inc ecx */
    590     _flag_k = FK_INC;
    591     /* cmp edi, eax */ /* 0x3801D1B3: cmp edi, eax */
    592     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    594     _flag_k = FK_CMP;
    595     MEM32(esi + 0x10) = ecx; /* 0x3801D1B5: mov dword ptr [esi + 0x10], ecx */
    596     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D1DC; /* 0x3801D1B8: je 0x3801d1dc */
    597 L_3801D1BA:
    598     eax = MEM32(ebp + 0xC); /* 0x3801D1BA: mov eax, dword ptr [ebp + 0xc] */
    599     /* cmp eax, MEM32(esi + 0x8) */ /* 0x3801D1BD: cmp eax, dword ptr [esi + 8] */
    600     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    602     _flag_k = FK_CMP;
    603     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D1DC; /* 0x3801D1C0: jne 0x3801d1dc */
    604 L_3801D1C2:
    605     ecx = MEM32(ebx); /* 0x3801D1C2: mov ecx, dword ptr [ebx] */
    606     /* cmp ecx, MEM32(edi + 0xC) */ /* 0x3801D1C4: cmp ecx, dword ptr [edi + 0xc] */
    607     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC));
    608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    609     _flag_k = FK_CMP;
    610     if (CMP_B(_flag_a, _flag_b)) goto L_3801D1DC; /* 0x3801D1C7: jb 0x3801d1dc */
    611 L_3801D1C9:
    612     ecx = MEM32(ebp + (-0x4)); /* 0x3801D1C9: mov ecx, dword ptr [ebp - 4] */
    613     MEM32(edi + 0x8) = ecx; /* 0x3801D1CC: mov dword ptr [edi + 8], ecx */
    614     eax = MEM32(esi + 0x4); /* 0x3801D1CF: mov eax, dword ptr [esi + 4] */
    615     /* cmp edi, MEM32(eax + 0x8) */ /* 0x3801D1D2: cmp edi, dword ptr [eax + 8] */
    616     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    618     _flag_k = FK_CMP;
    619     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D1FC; /* 0x3801D1D5: jne 0x3801d1fc */
    620 L_3801D1D7:
    621     MEM32(eax + 0x8) = ecx; /* 0x3801D1D7: mov dword ptr [eax + 8], ecx */
    622     goto L_3801D1FC; /* 0x3801D1DA: jmp 0x3801d1fc */
    623 L_3801D1DC:
    624     ecx = MEM32(ebp + (-0x4)); /* 0x3801D1DC: mov ecx, dword ptr [ebp - 4] */
    625     MEM32(edi) = ecx; /* 0x3801D1DF: mov dword ptr [edi], ecx */
    626     eax = MEM32(esi + 0x4); /* 0x3801D1E1: mov eax, dword ptr [esi + 4] */
    627     /* cmp edi, eax */ /* 0x3801D1E4: cmp edi, eax */
    628     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    630     _flag_k = FK_CMP;
    631     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D1F3; /* 0x3801D1E6: jne 0x3801d1f3 */
    632 L_3801D1E8:
    633     MEM32(eax + 0x4) = ecx; /* 0x3801D1E8: mov dword ptr [eax + 4], ecx */
    634     edx = MEM32(esi + 0x4); /* 0x3801D1EB: mov edx, dword ptr [esi + 4] */
    635     MEM32(edx + 0x8) = ecx; /* 0x3801D1EE: mov dword ptr [edx + 8], ecx */
    636     goto L_3801D1FC; /* 0x3801D1F1: jmp 0x3801d1fc */
    637 L_3801D1F3:
    638     /* cmp edi, MEM32(eax) */ /* 0x3801D1F3: cmp edi, dword ptr [eax] */
    639     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
    640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    641     _flag_k = FK_CMP;
    642     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D1FC; /* 0x3801D1F5: jne 0x3801d1fc */
    643 L_3801D1F7:
    644     ecx = MEM32(ebp + (-0x4)); /* 0x3801D1F7: mov ecx, dword ptr [ebp - 4] */
    645     MEM32(eax) = ecx; /* 0x3801D1FA: mov dword ptr [eax], ecx */
    646 L_3801D1FC:
    647     edx = MEM32(esi + 0x4); /* 0x3801D1FC: mov edx, dword ptr [esi + 4] */
    648     eax = MEM32(ebp + (-0x4)); /* 0x3801D1FF: mov eax, dword ptr [ebp - 4] */
    649     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D202: cmp eax, dword ptr [edx + 4] */
    650     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    651     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    652     _flag_k = FK_CMP;
    653     SET_LO8(ebx, 1); /* 0x3801D205: mov bl, 1 */
    654     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D207: je 0x3801d38d */
    655 L_3801D20D:
    656     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
    657     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
    658     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
    659     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    660     _cf = 0;
    661     _flag_k = FK_NARROW(FK_TEST, 24);
    662     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
    663 L_3801D21B:
    664     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
    665     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
    666     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
    667     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    669     _flag_k = FK_CMP;
    670     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
    671 L_3801D228:
    672     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
    673     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
    674     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
    675     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    676     _flag_k = FK_NARROW(FK_CMP, 24);
    677     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
    678 L_3801D231:
    679     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
    680     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
    681     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
    682     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
    683     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
    684     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
    685     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
    686     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
    687 L_3801D24C:
    688     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
    689     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
    690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    691     _flag_k = FK_CMP;
    692     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
    693 L_3801D251:
    694     eax = ecx; /* 0x3801D251: mov eax, ecx */
    695     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
    696     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
    697     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
    698     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
    699     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
    700     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    702     _flag_k = FK_CMP;
    703     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
    704 L_3801D262:
    705     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
    706 L_3801D265:
    707     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
    708     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
    709     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
    710     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
    711     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    712     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    713     _flag_k = FK_CMP;
    714     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
    715 L_3801D273:
    716     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
    717     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
    718 L_3801D278:
    719     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
    720     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
    721     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
    722     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    723     _flag_k = FK_CMP;
    724     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
    725 L_3801D27F:
    726     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
    727     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
    728 L_3801D283:
    729     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
    730 L_3801D286:
    731     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
    732     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
    733 L_3801D28B:
    734     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
    735     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
    736     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
    737     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
    738     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
    739     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
    740     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
    741     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
    742     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
    743     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
    744     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
    745     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
    746     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    748     _flag_k = FK_CMP;
    749     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
    750 L_3801D2B0:
    751     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
    752 L_3801D2B3:
    753     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
    754     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
    755     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
    756     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
    757     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    759     _flag_k = FK_CMP;
    760     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
    761 L_3801D2C1:
    762     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
    763     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
    764     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
    765 L_3801D2CC:
    766     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
    767     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
    768     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    770     _flag_k = FK_CMP;
    771     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
    772 L_3801D2D4:
    773     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
    774     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
    775     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
    776 L_3801D2DF:
    777     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
    778     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
    779     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
    780 L_3801D2E9:
    781     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
    782     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
    783     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    784     _flag_k = FK_NARROW(FK_CMP, 24);
    785     RECOMP_BACKEDGE();
    786     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
    787 L_3801D2F3:
    788     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
    789     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
    790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    791     _flag_k = FK_CMP;
    792     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
    793 L_3801D2F7:
    794     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
    795     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
    796     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
    797     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
    798     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
    799     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
    800     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    802     _flag_k = FK_CMP;
    803     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
    804 L_3801D308:
    805     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
    806 L_3801D30B:
    807     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
    808     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
    809     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
    810     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
    811     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    813     _flag_k = FK_CMP;
    814     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
    815 L_3801D319:
    816     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
    817     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
    818 L_3801D31E:
    819     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
    820     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
    821     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
    822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    823     _flag_k = FK_CMP;
    824     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
    825 L_3801D326:
    826     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
    827     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
    828 L_3801D32B:
    829     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
    830 L_3801D32D:
    831     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
    832     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
    833 L_3801D333:
    834     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
    835     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
    836     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
    837     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
    838     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
    839     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
    840     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
    841     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
    842     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
    843     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
    844     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
    845     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
    846     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    848     _flag_k = FK_CMP;
    849     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
    850 L_3801D358:
    851     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
    852 L_3801D35B:
    853     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
    854     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
    855     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
    856     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
    857     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    859     _flag_k = FK_CMP;
    860     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
    861 L_3801D369:
    862     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
    863     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
    864 L_3801D36E:
    865     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
    866     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
    867     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
    868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    869     _flag_k = FK_CMP;
    870     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D379; /* 0x3801D373: jne 0x3801d379 */
    871 L_3801D375:
    872     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
    873     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
    874 L_3801D379:
    875     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
    876 L_3801D37C:
    877     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
    878 L_3801D37E:
    879     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
    880 L_3801D381:
    881     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
    882     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
    883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
    884     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    885     _flag_k = FK_CMP;
    886     RECOMP_BACKEDGE();
    887     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
    888 L_3801D38D:
    889     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
    890     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
    891     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
    892     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
    893     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
    894     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
    895     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
    896     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
    897     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
    898     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
    899     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
    900     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
    901     RECOMP_REGS_OUT();
    902 }
    903 
    904 void sub_3801D20D(void) {
    905     int _fpu_cmp = 0;
    906     uint32_t _cf = 0;
    907     int _df = 1;
    908     uint32_t _flag_k = FK_NONE;
    909     uint32_t _flag_a = 0, _flag_b = 0;
    910     uint32_t _itail_tgt = 0;
    911     RECOMP_REGS_LOCALS
    912     RECOMP_ENTER(0x3801D20Du);
    913 
    914 L_3801D20D:
    915     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
    916     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
    917     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
    918     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    919     _cf = 0;
    920     _flag_k = FK_NARROW(FK_TEST, 24);
    921     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
    922 L_3801D21B:
    923     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
    924     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
    925     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
    926     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    927     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    928     _flag_k = FK_CMP;
    929     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
    930 L_3801D228:
    931     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
    932     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
    933     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
    934     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    935     _flag_k = FK_NARROW(FK_CMP, 24);
    936     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
    937 L_3801D231:
    938     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
    939     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
    940     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
    941     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
    942     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
    943     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
    944     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
    945     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
    946 L_3801D24C:
    947     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
    948     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
    949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    950     _flag_k = FK_CMP;
    951     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
    952 L_3801D251:
    953     eax = ecx; /* 0x3801D251: mov eax, ecx */
    954     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
    955     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
    956     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
    957     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
    958     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
    959     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    960     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    961     _flag_k = FK_CMP;
    962     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
    963 L_3801D262:
    964     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
    965 L_3801D265:
    966     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
    967     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
    968     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
    969     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
    970     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    971     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    972     _flag_k = FK_CMP;
    973     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
    974 L_3801D273:
    975     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
    976     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
    977 L_3801D278:
    978     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
    979     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
    980     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
    981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    982     _flag_k = FK_CMP;
    983     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
    984 L_3801D27F:
    985     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
    986     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
    987 L_3801D283:
    988     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
    989 L_3801D286:
    990     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
    991     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
    992 L_3801D28B:
    993     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
    994     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
    995     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
    996     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
    997     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
    998     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
    999     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
   1000     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
   1001     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
   1002     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
   1003     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
   1004     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
   1005     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1007     _flag_k = FK_CMP;
   1008     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
   1009 L_3801D2B0:
   1010     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
   1011 L_3801D2B3:
   1012     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
   1013     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
   1014     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
   1015     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
   1016     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1017     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1018     _flag_k = FK_CMP;
   1019     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
   1020 L_3801D2C1:
   1021     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
   1022     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
   1023     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
   1024 L_3801D2CC:
   1025     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
   1026     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
   1027     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1028     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1029     _flag_k = FK_CMP;
   1030     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
   1031 L_3801D2D4:
   1032     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
   1033     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
   1034     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
   1035 L_3801D2DF:
   1036     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
   1037     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
   1038     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
   1039 L_3801D2E9:
   1040     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
   1041     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   1042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1043     _flag_k = FK_NARROW(FK_CMP, 24);
   1044     RECOMP_BACKEDGE();
   1045     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
   1046 L_3801D2F3:
   1047     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
   1048     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1050     _flag_k = FK_CMP;
   1051     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
   1052 L_3801D2F7:
   1053     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
   1054     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
   1055     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
   1056     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
   1057     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
   1058     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
   1059     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1061     _flag_k = FK_CMP;
   1062     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
   1063 L_3801D308:
   1064     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
   1065 L_3801D30B:
   1066     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
   1067     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
   1068     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
   1069     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
   1070     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1072     _flag_k = FK_CMP;
   1073     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
   1074 L_3801D319:
   1075     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
   1076     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
   1077 L_3801D31E:
   1078     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
   1079     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
   1080     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1081     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1082     _flag_k = FK_CMP;
   1083     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
   1084 L_3801D326:
   1085     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
   1086     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
   1087 L_3801D32B:
   1088     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
   1089 L_3801D32D:
   1090     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
   1091     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
   1092 L_3801D333:
   1093     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
   1094     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
   1095     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
   1096     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
   1097     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
   1098     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
   1099     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
   1100     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
   1101     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
   1102     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
   1103     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
   1104     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
   1105     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1107     _flag_k = FK_CMP;
   1108     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
   1109 L_3801D358:
   1110     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
   1111 L_3801D35B:
   1112     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
   1113     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
   1114     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
   1115     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
   1116     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1118     _flag_k = FK_CMP;
   1119     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
   1120 L_3801D369:
   1121     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
   1122     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
   1123 L_3801D36E:
   1124     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
   1125     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
   1126     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1128     _flag_k = FK_CMP;
   1129     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D379; /* 0x3801D373: jne 0x3801d379 */
   1130 L_3801D375:
   1131     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
   1132     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
   1133 L_3801D379:
   1134     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
   1135 L_3801D37C:
   1136     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
   1137 L_3801D37E:
   1138     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
   1139 L_3801D381:
   1140     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
   1141     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
   1142     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1143     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1144     _flag_k = FK_CMP;
   1145     RECOMP_BACKEDGE();
   1146     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
   1147 L_3801D38D:
   1148     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   1149     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   1150     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   1151     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   1152     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   1153     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   1154     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   1155     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   1156     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   1157     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   1158     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   1159     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   1160     RECOMP_REGS_OUT();
   1161 }
   1162 
   1163 void sub_3801D231(void) {
   1164     int _fpu_cmp = 0;
   1165     uint32_t _cf = 0;
   1166     int _df = 1;
   1167     uint32_t _flag_k = FK_NONE;
   1168     uint32_t _flag_a = 0, _flag_b = 0;
   1169     uint32_t _itail_tgt = 0;
   1170     RECOMP_REGS_LOCALS
   1171     RECOMP_ENTER(0x3801D231u);
   1172 
   1173     goto L_3801D231;
   1174 L_3801D20D:
   1175     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
   1176     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
   1177     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
   1178     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1179     _cf = 0;
   1180     _flag_k = FK_NARROW(FK_TEST, 24);
   1181     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
   1182 L_3801D21B:
   1183     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
   1184     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
   1185     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
   1186     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1188     _flag_k = FK_CMP;
   1189     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
   1190 L_3801D228:
   1191     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
   1192     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
   1193     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   1194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1195     _flag_k = FK_NARROW(FK_CMP, 24);
   1196     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
   1197 L_3801D231:
   1198     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
   1199     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
   1200     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
   1201     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
   1202     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
   1203     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
   1204     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
   1205     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
   1206 L_3801D24C:
   1207     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
   1208     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1210     _flag_k = FK_CMP;
   1211     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
   1212 L_3801D251:
   1213     eax = ecx; /* 0x3801D251: mov eax, ecx */
   1214     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
   1215     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
   1216     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
   1217     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
   1218     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
   1219     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1221     _flag_k = FK_CMP;
   1222     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
   1223 L_3801D262:
   1224     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
   1225 L_3801D265:
   1226     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
   1227     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
   1228     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
   1229     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
   1230     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1231     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1232     _flag_k = FK_CMP;
   1233     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
   1234 L_3801D273:
   1235     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
   1236     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
   1237 L_3801D278:
   1238     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
   1239     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
   1240     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1242     _flag_k = FK_CMP;
   1243     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
   1244 L_3801D27F:
   1245     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
   1246     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
   1247 L_3801D283:
   1248     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
   1249 L_3801D286:
   1250     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
   1251     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
   1252 L_3801D28B:
   1253     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
   1254     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
   1255     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
   1256     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
   1257     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
   1258     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
   1259     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
   1260     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
   1261     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
   1262     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
   1263     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
   1264     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
   1265     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1267     _flag_k = FK_CMP;
   1268     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
   1269 L_3801D2B0:
   1270     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
   1271 L_3801D2B3:
   1272     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
   1273     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
   1274     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
   1275     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
   1276     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1278     _flag_k = FK_CMP;
   1279     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
   1280 L_3801D2C1:
   1281     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
   1282     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
   1283     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
   1284 L_3801D2CC:
   1285     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
   1286     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
   1287     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1289     _flag_k = FK_CMP;
   1290     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
   1291 L_3801D2D4:
   1292     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
   1293     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
   1294     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
   1295 L_3801D2DF:
   1296     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
   1297     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
   1298     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
   1299 L_3801D2E9:
   1300     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
   1301     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   1302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1303     _flag_k = FK_NARROW(FK_CMP, 24);
   1304     RECOMP_BACKEDGE();
   1305     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
   1306 L_3801D2F3:
   1307     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
   1308     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1310     _flag_k = FK_CMP;
   1311     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
   1312 L_3801D2F7:
   1313     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
   1314     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
   1315     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
   1316     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
   1317     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
   1318     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
   1319     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1321     _flag_k = FK_CMP;
   1322     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
   1323 L_3801D308:
   1324     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
   1325 L_3801D30B:
   1326     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
   1327     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
   1328     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
   1329     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
   1330     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1331     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1332     _flag_k = FK_CMP;
   1333     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
   1334 L_3801D319:
   1335     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
   1336     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
   1337 L_3801D31E:
   1338     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
   1339     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
   1340     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1341     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1342     _flag_k = FK_CMP;
   1343     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
   1344 L_3801D326:
   1345     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
   1346     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
   1347 L_3801D32B:
   1348     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
   1349 L_3801D32D:
   1350     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
   1351     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
   1352 L_3801D333:
   1353     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
   1354     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
   1355     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
   1356     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
   1357     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
   1358     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
   1359     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
   1360     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
   1361     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
   1362     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
   1363     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
   1364     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
   1365     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1367     _flag_k = FK_CMP;
   1368     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
   1369 L_3801D358:
   1370     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
   1371 L_3801D35B:
   1372     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
   1373     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
   1374     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
   1375     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
   1376     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1378     _flag_k = FK_CMP;
   1379     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
   1380 L_3801D369:
   1381     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
   1382     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
   1383 L_3801D36E:
   1384     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
   1385     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
   1386     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1388     _flag_k = FK_CMP;
   1389     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D379; /* 0x3801D373: jne 0x3801d379 */
   1390 L_3801D375:
   1391     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
   1392     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
   1393 L_3801D379:
   1394     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
   1395 L_3801D37C:
   1396     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
   1397 L_3801D37E:
   1398     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
   1399 L_3801D381:
   1400     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
   1401     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
   1402     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1404     _flag_k = FK_CMP;
   1405     RECOMP_BACKEDGE();
   1406     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
   1407 L_3801D38D:
   1408     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   1409     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   1410     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   1411     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   1412     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   1413     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   1414     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   1415     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   1416     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   1417     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   1418     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   1419     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   1420     RECOMP_REGS_OUT();
   1421 }
   1422 
   1423 void sub_3801D286(void) {
   1424     int _fpu_cmp = 0;
   1425     uint32_t _cf = 0;
   1426     int _df = 1;
   1427     uint32_t _flag_k = FK_NONE;
   1428     uint32_t _flag_a = 0, _flag_b = 0;
   1429     uint32_t _itail_tgt = 0;
   1430     RECOMP_REGS_LOCALS
   1431     RECOMP_ENTER(0x3801D286u);
   1432 
   1433     goto L_3801D286;
   1434 L_3801D20D:
   1435     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
   1436     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
   1437     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
   1438     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1439     _cf = 0;
   1440     _flag_k = FK_NARROW(FK_TEST, 24);
   1441     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
   1442 L_3801D21B:
   1443     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
   1444     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
   1445     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
   1446     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1448     _flag_k = FK_CMP;
   1449     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
   1450 L_3801D228:
   1451     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
   1452     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
   1453     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   1454     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1455     _flag_k = FK_NARROW(FK_CMP, 24);
   1456     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
   1457 L_3801D231:
   1458     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
   1459     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
   1460     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
   1461     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
   1462     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
   1463     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
   1464     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
   1465     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
   1466 L_3801D24C:
   1467     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
   1468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1470     _flag_k = FK_CMP;
   1471     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
   1472 L_3801D251:
   1473     eax = ecx; /* 0x3801D251: mov eax, ecx */
   1474     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
   1475     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
   1476     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
   1477     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
   1478     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
   1479     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1481     _flag_k = FK_CMP;
   1482     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
   1483 L_3801D262:
   1484     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
   1485 L_3801D265:
   1486     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
   1487     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
   1488     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
   1489     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
   1490     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1491     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1492     _flag_k = FK_CMP;
   1493     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
   1494 L_3801D273:
   1495     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
   1496     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
   1497 L_3801D278:
   1498     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
   1499     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
   1500     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1501     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1502     _flag_k = FK_CMP;
   1503     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
   1504 L_3801D27F:
   1505     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
   1506     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
   1507 L_3801D283:
   1508     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
   1509 L_3801D286:
   1510     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
   1511     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
   1512 L_3801D28B:
   1513     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
   1514     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
   1515     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
   1516     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
   1517     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
   1518     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
   1519     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
   1520     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
   1521     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
   1522     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
   1523     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
   1524     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
   1525     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1527     _flag_k = FK_CMP;
   1528     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
   1529 L_3801D2B0:
   1530     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
   1531 L_3801D2B3:
   1532     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
   1533     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
   1534     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
   1535     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
   1536     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1538     _flag_k = FK_CMP;
   1539     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
   1540 L_3801D2C1:
   1541     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
   1542     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
   1543     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
   1544 L_3801D2CC:
   1545     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
   1546     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
   1547     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1549     _flag_k = FK_CMP;
   1550     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
   1551 L_3801D2D4:
   1552     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
   1553     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
   1554     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
   1555 L_3801D2DF:
   1556     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
   1557     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
   1558     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
   1559 L_3801D2E9:
   1560     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
   1561     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   1562     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1563     _flag_k = FK_NARROW(FK_CMP, 24);
   1564     RECOMP_BACKEDGE();
   1565     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
   1566 L_3801D2F3:
   1567     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
   1568     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1570     _flag_k = FK_CMP;
   1571     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
   1572 L_3801D2F7:
   1573     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
   1574     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
   1575     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
   1576     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
   1577     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
   1578     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
   1579     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1581     _flag_k = FK_CMP;
   1582     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
   1583 L_3801D308:
   1584     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
   1585 L_3801D30B:
   1586     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
   1587     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
   1588     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
   1589     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
   1590     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1591     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1592     _flag_k = FK_CMP;
   1593     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
   1594 L_3801D319:
   1595     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
   1596     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
   1597 L_3801D31E:
   1598     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
   1599     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
   1600     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1602     _flag_k = FK_CMP;
   1603     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
   1604 L_3801D326:
   1605     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
   1606     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
   1607 L_3801D32B:
   1608     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
   1609 L_3801D32D:
   1610     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
   1611     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
   1612 L_3801D333:
   1613     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
   1614     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
   1615     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
   1616     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
   1617     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
   1618     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
   1619     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
   1620     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
   1621     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
   1622     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
   1623     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
   1624     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
   1625     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1627     _flag_k = FK_CMP;
   1628     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
   1629 L_3801D358:
   1630     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
   1631 L_3801D35B:
   1632     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
   1633     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
   1634     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
   1635     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
   1636     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1638     _flag_k = FK_CMP;
   1639     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
   1640 L_3801D369:
   1641     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
   1642     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
   1643 L_3801D36E:
   1644     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
   1645     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
   1646     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1648     _flag_k = FK_CMP;
   1649     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D379; /* 0x3801D373: jne 0x3801d379 */
   1650 L_3801D375:
   1651     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
   1652     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
   1653 L_3801D379:
   1654     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
   1655 L_3801D37C:
   1656     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
   1657 L_3801D37E:
   1658     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
   1659 L_3801D381:
   1660     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
   1661     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
   1662     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1664     _flag_k = FK_CMP;
   1665     RECOMP_BACKEDGE();
   1666     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
   1667 L_3801D38D:
   1668     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   1669     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   1670     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   1671     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   1672     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   1673     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   1674     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   1675     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   1676     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   1677     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   1678     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   1679     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   1680     RECOMP_REGS_OUT();
   1681 }
   1682 
   1683 void sub_3801D28B(void) {
   1684     int _fpu_cmp = 0;
   1685     uint32_t _cf = 0;
   1686     int _df = 1;
   1687     uint32_t _flag_k = FK_NONE;
   1688     uint32_t _flag_a = 0, _flag_b = 0;
   1689     uint32_t _itail_tgt = 0;
   1690     RECOMP_REGS_LOCALS
   1691     RECOMP_ENTER(0x3801D28Bu);
   1692 
   1693     goto L_3801D28B;
   1694 L_3801D20D:
   1695     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
   1696     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
   1697     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
   1698     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1699     _cf = 0;
   1700     _flag_k = FK_NARROW(FK_TEST, 24);
   1701     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
   1702 L_3801D21B:
   1703     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
   1704     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
   1705     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
   1706     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1707     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1708     _flag_k = FK_CMP;
   1709     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
   1710 L_3801D228:
   1711     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
   1712     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
   1713     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   1714     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1715     _flag_k = FK_NARROW(FK_CMP, 24);
   1716     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
   1717 L_3801D231:
   1718     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
   1719     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
   1720     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
   1721     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
   1722     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
   1723     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
   1724     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
   1725     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
   1726 L_3801D24C:
   1727     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
   1728     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1729     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1730     _flag_k = FK_CMP;
   1731     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
   1732 L_3801D251:
   1733     eax = ecx; /* 0x3801D251: mov eax, ecx */
   1734     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
   1735     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
   1736     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
   1737     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
   1738     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
   1739     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1741     _flag_k = FK_CMP;
   1742     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
   1743 L_3801D262:
   1744     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
   1745 L_3801D265:
   1746     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
   1747     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
   1748     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
   1749     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
   1750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1752     _flag_k = FK_CMP;
   1753     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
   1754 L_3801D273:
   1755     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
   1756     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
   1757 L_3801D278:
   1758     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
   1759     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
   1760     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1762     _flag_k = FK_CMP;
   1763     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
   1764 L_3801D27F:
   1765     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
   1766     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
   1767 L_3801D283:
   1768     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
   1769 L_3801D286:
   1770     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
   1771     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
   1772 L_3801D28B:
   1773     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
   1774     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
   1775     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
   1776     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
   1777     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
   1778     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
   1779     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
   1780     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
   1781     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
   1782     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
   1783     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
   1784     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
   1785     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   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_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
   1789 L_3801D2B0:
   1790     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
   1791 L_3801D2B3:
   1792     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
   1793     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
   1794     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
   1795     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
   1796     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1798     _flag_k = FK_CMP;
   1799     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
   1800 L_3801D2C1:
   1801     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
   1802     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
   1803     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
   1804 L_3801D2CC:
   1805     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
   1806     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
   1807     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1809     _flag_k = FK_CMP;
   1810     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
   1811 L_3801D2D4:
   1812     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
   1813     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
   1814     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
   1815 L_3801D2DF:
   1816     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
   1817     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
   1818     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
   1819 L_3801D2E9:
   1820     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
   1821     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   1822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1823     _flag_k = FK_NARROW(FK_CMP, 24);
   1824     RECOMP_BACKEDGE();
   1825     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
   1826 L_3801D2F3:
   1827     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
   1828     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1830     _flag_k = FK_CMP;
   1831     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
   1832 L_3801D2F7:
   1833     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
   1834     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
   1835     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
   1836     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
   1837     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
   1838     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
   1839     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1841     _flag_k = FK_CMP;
   1842     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
   1843 L_3801D308:
   1844     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
   1845 L_3801D30B:
   1846     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
   1847     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
   1848     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
   1849     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
   1850     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1851     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1852     _flag_k = FK_CMP;
   1853     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
   1854 L_3801D319:
   1855     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
   1856     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
   1857 L_3801D31E:
   1858     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
   1859     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
   1860     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1862     _flag_k = FK_CMP;
   1863     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
   1864 L_3801D326:
   1865     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
   1866     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
   1867 L_3801D32B:
   1868     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
   1869 L_3801D32D:
   1870     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
   1871     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
   1872 L_3801D333:
   1873     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
   1874     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
   1875     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
   1876     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
   1877     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
   1878     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
   1879     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
   1880     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
   1881     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
   1882     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
   1883     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
   1884     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
   1885     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1887     _flag_k = FK_CMP;
   1888     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
   1889 L_3801D358:
   1890     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
   1891 L_3801D35B:
   1892     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
   1893     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
   1894     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
   1895     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
   1896     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1897     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1898     _flag_k = FK_CMP;
   1899     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
   1900 L_3801D369:
   1901     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
   1902     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
   1903 L_3801D36E:
   1904     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
   1905     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
   1906     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1908     _flag_k = FK_CMP;
   1909     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D379; /* 0x3801D373: jne 0x3801d379 */
   1910 L_3801D375:
   1911     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
   1912     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
   1913 L_3801D379:
   1914     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
   1915 L_3801D37C:
   1916     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
   1917 L_3801D37E:
   1918     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
   1919 L_3801D381:
   1920     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
   1921     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
   1922     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1923     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1924     _flag_k = FK_CMP;
   1925     RECOMP_BACKEDGE();
   1926     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
   1927 L_3801D38D:
   1928     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   1929     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   1930     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   1931     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   1932     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   1933     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   1934     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   1935     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   1936     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   1937     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   1938     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   1939     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   1940     RECOMP_REGS_OUT();
   1941 }
   1942 
   1943 void sub_3801D2E9(void) {
   1944     int _fpu_cmp = 0;
   1945     uint32_t _cf = 0;
   1946     int _df = 1;
   1947     uint32_t _flag_k = FK_NONE;
   1948     uint32_t _flag_a = 0, _flag_b = 0;
   1949     uint32_t _itail_tgt = 0;
   1950     RECOMP_REGS_LOCALS
   1951     RECOMP_ENTER(0x3801D2E9u);
   1952 
   1953     goto L_3801D2E9;
   1954 L_3801D20D:
   1955     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
   1956     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
   1957     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
   1958     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1959     _cf = 0;
   1960     _flag_k = FK_NARROW(FK_TEST, 24);
   1961     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
   1962 L_3801D21B:
   1963     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
   1964     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
   1965     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
   1966     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1968     _flag_k = FK_CMP;
   1969     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
   1970 L_3801D228:
   1971     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
   1972     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
   1973     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   1974     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1975     _flag_k = FK_NARROW(FK_CMP, 24);
   1976     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
   1977 L_3801D231:
   1978     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
   1979     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
   1980     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
   1981     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
   1982     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
   1983     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
   1984     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
   1985     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
   1986 L_3801D24C:
   1987     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
   1988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1990     _flag_k = FK_CMP;
   1991     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
   1992 L_3801D251:
   1993     eax = ecx; /* 0x3801D251: mov eax, ecx */
   1994     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
   1995     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
   1996     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
   1997     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
   1998     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
   1999     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2001     _flag_k = FK_CMP;
   2002     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
   2003 L_3801D262:
   2004     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
   2005 L_3801D265:
   2006     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
   2007     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
   2008     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
   2009     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
   2010     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2011     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2012     _flag_k = FK_CMP;
   2013     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
   2014 L_3801D273:
   2015     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
   2016     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
   2017 L_3801D278:
   2018     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
   2019     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
   2020     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2022     _flag_k = FK_CMP;
   2023     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
   2024 L_3801D27F:
   2025     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
   2026     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
   2027 L_3801D283:
   2028     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
   2029 L_3801D286:
   2030     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
   2031     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
   2032 L_3801D28B:
   2033     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
   2034     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
   2035     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
   2036     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
   2037     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
   2038     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
   2039     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
   2040     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
   2041     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
   2042     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
   2043     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
   2044     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
   2045     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2047     _flag_k = FK_CMP;
   2048     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
   2049 L_3801D2B0:
   2050     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
   2051 L_3801D2B3:
   2052     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
   2053     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
   2054     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
   2055     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
   2056     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2058     _flag_k = FK_CMP;
   2059     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
   2060 L_3801D2C1:
   2061     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
   2062     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
   2063     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
   2064 L_3801D2CC:
   2065     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
   2066     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
   2067     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2069     _flag_k = FK_CMP;
   2070     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
   2071 L_3801D2D4:
   2072     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
   2073     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
   2074     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
   2075 L_3801D2DF:
   2076     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
   2077     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
   2078     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
   2079 L_3801D2E9:
   2080     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
   2081     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2083     _flag_k = FK_NARROW(FK_CMP, 24);
   2084     RECOMP_BACKEDGE();
   2085     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
   2086 L_3801D2F3:
   2087     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
   2088     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2089     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2090     _flag_k = FK_CMP;
   2091     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
   2092 L_3801D2F7:
   2093     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
   2094     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
   2095     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
   2096     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
   2097     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
   2098     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
   2099     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2101     _flag_k = FK_CMP;
   2102     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
   2103 L_3801D308:
   2104     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
   2105 L_3801D30B:
   2106     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
   2107     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
   2108     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
   2109     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
   2110     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2111     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2112     _flag_k = FK_CMP;
   2113     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
   2114 L_3801D319:
   2115     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
   2116     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
   2117 L_3801D31E:
   2118     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
   2119     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
   2120     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2122     _flag_k = FK_CMP;
   2123     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
   2124 L_3801D326:
   2125     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
   2126     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
   2127 L_3801D32B:
   2128     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
   2129 L_3801D32D:
   2130     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
   2131     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
   2132 L_3801D333:
   2133     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
   2134     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
   2135     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
   2136     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
   2137     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
   2138     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
   2139     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
   2140     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
   2141     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
   2142     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
   2143     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
   2144     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
   2145     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2147     _flag_k = FK_CMP;
   2148     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
   2149 L_3801D358:
   2150     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
   2151 L_3801D35B:
   2152     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
   2153     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
   2154     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
   2155     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
   2156     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2158     _flag_k = FK_CMP;
   2159     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
   2160 L_3801D369:
   2161     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
   2162     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
   2163 L_3801D36E:
   2164     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
   2165     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
   2166     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2167     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2168     _flag_k = FK_CMP;
   2169     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D379; /* 0x3801D373: jne 0x3801d379 */
   2170 L_3801D375:
   2171     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
   2172     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
   2173 L_3801D379:
   2174     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
   2175 L_3801D37C:
   2176     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
   2177 L_3801D37E:
   2178     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
   2179 L_3801D381:
   2180     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
   2181     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
   2182     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2184     _flag_k = FK_CMP;
   2185     RECOMP_BACKEDGE();
   2186     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
   2187 L_3801D38D:
   2188     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   2189     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   2190     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   2191     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   2192     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   2193     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   2194     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   2195     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   2196     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   2197     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   2198     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   2199     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   2200     RECOMP_REGS_OUT();
   2201 }
   2202 
   2203 void sub_3801D32D(void) {
   2204     int _fpu_cmp = 0;
   2205     uint32_t _cf = 0;
   2206     int _df = 1;
   2207     uint32_t _flag_k = FK_NONE;
   2208     uint32_t _flag_a = 0, _flag_b = 0;
   2209     uint32_t _itail_tgt = 0;
   2210     RECOMP_REGS_LOCALS
   2211     RECOMP_ENTER(0x3801D32Du);
   2212 
   2213     goto L_3801D32D;
   2214 L_3801D20D:
   2215     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
   2216     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
   2217     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
   2218     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2219     _cf = 0;
   2220     _flag_k = FK_NARROW(FK_TEST, 24);
   2221     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
   2222 L_3801D21B:
   2223     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
   2224     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
   2225     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
   2226     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2227     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2228     _flag_k = FK_CMP;
   2229     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
   2230 L_3801D228:
   2231     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
   2232     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
   2233     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2235     _flag_k = FK_NARROW(FK_CMP, 24);
   2236     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
   2237 L_3801D231:
   2238     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
   2239     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
   2240     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
   2241     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
   2242     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
   2243     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
   2244     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
   2245     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
   2246 L_3801D24C:
   2247     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
   2248     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2250     _flag_k = FK_CMP;
   2251     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
   2252 L_3801D251:
   2253     eax = ecx; /* 0x3801D251: mov eax, ecx */
   2254     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
   2255     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
   2256     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
   2257     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
   2258     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
   2259     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2261     _flag_k = FK_CMP;
   2262     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
   2263 L_3801D262:
   2264     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
   2265 L_3801D265:
   2266     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
   2267     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
   2268     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
   2269     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
   2270     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2272     _flag_k = FK_CMP;
   2273     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
   2274 L_3801D273:
   2275     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
   2276     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
   2277 L_3801D278:
   2278     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
   2279     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
   2280     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2282     _flag_k = FK_CMP;
   2283     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
   2284 L_3801D27F:
   2285     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
   2286     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
   2287 L_3801D283:
   2288     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
   2289 L_3801D286:
   2290     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
   2291     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
   2292 L_3801D28B:
   2293     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
   2294     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
   2295     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
   2296     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
   2297     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
   2298     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
   2299     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
   2300     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
   2301     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
   2302     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
   2303     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
   2304     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
   2305     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2307     _flag_k = FK_CMP;
   2308     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
   2309 L_3801D2B0:
   2310     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
   2311 L_3801D2B3:
   2312     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
   2313     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
   2314     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
   2315     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
   2316     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2318     _flag_k = FK_CMP;
   2319     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
   2320 L_3801D2C1:
   2321     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
   2322     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
   2323     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
   2324 L_3801D2CC:
   2325     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
   2326     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
   2327     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2329     _flag_k = FK_CMP;
   2330     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
   2331 L_3801D2D4:
   2332     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
   2333     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
   2334     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
   2335 L_3801D2DF:
   2336     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
   2337     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
   2338     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
   2339 L_3801D2E9:
   2340     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
   2341     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2343     _flag_k = FK_NARROW(FK_CMP, 24);
   2344     RECOMP_BACKEDGE();
   2345     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
   2346 L_3801D2F3:
   2347     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
   2348     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2350     _flag_k = FK_CMP;
   2351     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
   2352 L_3801D2F7:
   2353     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
   2354     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
   2355     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
   2356     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
   2357     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
   2358     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
   2359     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2361     _flag_k = FK_CMP;
   2362     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
   2363 L_3801D308:
   2364     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
   2365 L_3801D30B:
   2366     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
   2367     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
   2368     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
   2369     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
   2370     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2372     _flag_k = FK_CMP;
   2373     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
   2374 L_3801D319:
   2375     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
   2376     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
   2377 L_3801D31E:
   2378     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
   2379     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
   2380     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2381     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2382     _flag_k = FK_CMP;
   2383     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
   2384 L_3801D326:
   2385     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
   2386     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
   2387 L_3801D32B:
   2388     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
   2389 L_3801D32D:
   2390     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
   2391     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
   2392 L_3801D333:
   2393     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
   2394     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
   2395     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
   2396     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
   2397     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
   2398     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
   2399     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
   2400     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
   2401     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
   2402     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
   2403     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
   2404     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
   2405     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2407     _flag_k = FK_CMP;
   2408     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
   2409 L_3801D358:
   2410     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
   2411 L_3801D35B:
   2412     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
   2413     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
   2414     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
   2415     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
   2416     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2418     _flag_k = FK_CMP;
   2419     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
   2420 L_3801D369:
   2421     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
   2422     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
   2423 L_3801D36E:
   2424     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
   2425     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
   2426     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2428     _flag_k = FK_CMP;
   2429     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D379; /* 0x3801D373: jne 0x3801d379 */
   2430 L_3801D375:
   2431     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
   2432     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
   2433 L_3801D379:
   2434     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
   2435 L_3801D37C:
   2436     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
   2437 L_3801D37E:
   2438     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
   2439 L_3801D381:
   2440     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
   2441     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
   2442     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2444     _flag_k = FK_CMP;
   2445     RECOMP_BACKEDGE();
   2446     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
   2447 L_3801D38D:
   2448     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   2449     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   2450     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   2451     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   2452     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   2453     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   2454     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   2455     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   2456     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   2457     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   2458     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   2459     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   2460     RECOMP_REGS_OUT();
   2461 }
   2462 
   2463 void sub_3801D333(void) {
   2464     int _fpu_cmp = 0;
   2465     uint32_t _cf = 0;
   2466     int _df = 1;
   2467     uint32_t _flag_k = FK_NONE;
   2468     uint32_t _flag_a = 0, _flag_b = 0;
   2469     uint32_t _itail_tgt = 0;
   2470     RECOMP_REGS_LOCALS
   2471     RECOMP_ENTER(0x3801D333u);
   2472 
   2473     goto L_3801D333;
   2474 L_3801D20D:
   2475     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
   2476     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
   2477     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
   2478     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2479     _cf = 0;
   2480     _flag_k = FK_NARROW(FK_TEST, 24);
   2481     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
   2482 L_3801D21B:
   2483     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
   2484     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
   2485     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
   2486     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2487     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2488     _flag_k = FK_CMP;
   2489     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
   2490 L_3801D228:
   2491     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
   2492     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
   2493     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2494     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2495     _flag_k = FK_NARROW(FK_CMP, 24);
   2496     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
   2497 L_3801D231:
   2498     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
   2499     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
   2500     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
   2501     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
   2502     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
   2503     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
   2504     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
   2505     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
   2506 L_3801D24C:
   2507     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
   2508     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2510     _flag_k = FK_CMP;
   2511     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
   2512 L_3801D251:
   2513     eax = ecx; /* 0x3801D251: mov eax, ecx */
   2514     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
   2515     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
   2516     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
   2517     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
   2518     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
   2519     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2521     _flag_k = FK_CMP;
   2522     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
   2523 L_3801D262:
   2524     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
   2525 L_3801D265:
   2526     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
   2527     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
   2528     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
   2529     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
   2530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2532     _flag_k = FK_CMP;
   2533     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
   2534 L_3801D273:
   2535     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
   2536     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
   2537 L_3801D278:
   2538     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
   2539     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
   2540     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2542     _flag_k = FK_CMP;
   2543     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
   2544 L_3801D27F:
   2545     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
   2546     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
   2547 L_3801D283:
   2548     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
   2549 L_3801D286:
   2550     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
   2551     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
   2552 L_3801D28B:
   2553     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
   2554     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
   2555     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
   2556     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
   2557     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
   2558     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
   2559     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
   2560     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
   2561     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
   2562     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
   2563     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
   2564     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
   2565     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2566     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2567     _flag_k = FK_CMP;
   2568     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
   2569 L_3801D2B0:
   2570     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
   2571 L_3801D2B3:
   2572     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
   2573     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
   2574     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
   2575     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
   2576     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2577     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2578     _flag_k = FK_CMP;
   2579     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
   2580 L_3801D2C1:
   2581     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
   2582     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
   2583     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
   2584 L_3801D2CC:
   2585     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
   2586     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
   2587     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2589     _flag_k = FK_CMP;
   2590     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
   2591 L_3801D2D4:
   2592     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
   2593     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
   2594     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
   2595 L_3801D2DF:
   2596     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
   2597     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
   2598     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
   2599 L_3801D2E9:
   2600     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
   2601     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2602     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2603     _flag_k = FK_NARROW(FK_CMP, 24);
   2604     RECOMP_BACKEDGE();
   2605     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
   2606 L_3801D2F3:
   2607     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
   2608     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   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_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
   2612 L_3801D2F7:
   2613     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
   2614     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
   2615     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
   2616     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
   2617     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
   2618     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
   2619     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2621     _flag_k = FK_CMP;
   2622     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
   2623 L_3801D308:
   2624     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
   2625 L_3801D30B:
   2626     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
   2627     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
   2628     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
   2629     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
   2630     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2631     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2632     _flag_k = FK_CMP;
   2633     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
   2634 L_3801D319:
   2635     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
   2636     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
   2637 L_3801D31E:
   2638     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
   2639     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
   2640     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2642     _flag_k = FK_CMP;
   2643     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
   2644 L_3801D326:
   2645     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
   2646     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
   2647 L_3801D32B:
   2648     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
   2649 L_3801D32D:
   2650     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
   2651     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
   2652 L_3801D333:
   2653     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
   2654     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
   2655     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
   2656     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
   2657     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
   2658     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
   2659     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
   2660     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
   2661     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
   2662     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
   2663     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
   2664     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
   2665     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2667     _flag_k = FK_CMP;
   2668     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
   2669 L_3801D358:
   2670     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
   2671 L_3801D35B:
   2672     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
   2673     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
   2674     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
   2675     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
   2676     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2678     _flag_k = FK_CMP;
   2679     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
   2680 L_3801D369:
   2681     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
   2682     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
   2683 L_3801D36E:
   2684     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
   2685     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
   2686     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   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_3801D379; /* 0x3801D373: jne 0x3801d379 */
   2690 L_3801D375:
   2691     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
   2692     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
   2693 L_3801D379:
   2694     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
   2695 L_3801D37C:
   2696     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
   2697 L_3801D37E:
   2698     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
   2699 L_3801D381:
   2700     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
   2701     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
   2702     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2703     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2704     _flag_k = FK_CMP;
   2705     RECOMP_BACKEDGE();
   2706     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
   2707 L_3801D38D:
   2708     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   2709     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   2710     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   2711     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   2712     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   2713     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   2714     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   2715     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   2716     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   2717     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   2718     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   2719     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   2720     RECOMP_REGS_OUT();
   2721 }
   2722 
   2723 void sub_3801D37C(void) {
   2724     int _fpu_cmp = 0;
   2725     uint32_t _cf = 0;
   2726     int _df = 1;
   2727     uint32_t _flag_k = FK_NONE;
   2728     uint32_t _flag_a = 0, _flag_b = 0;
   2729     uint32_t _itail_tgt = 0;
   2730     RECOMP_REGS_LOCALS
   2731     RECOMP_ENTER(0x3801D37Cu);
   2732 
   2733     goto L_3801D37C;
   2734 L_3801D20D:
   2735     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
   2736     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
   2737     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
   2738     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2739     _cf = 0;
   2740     _flag_k = FK_NARROW(FK_TEST, 24);
   2741     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
   2742 L_3801D21B:
   2743     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
   2744     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
   2745     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
   2746     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2748     _flag_k = FK_CMP;
   2749     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
   2750 L_3801D228:
   2751     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
   2752     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
   2753     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2754     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2755     _flag_k = FK_NARROW(FK_CMP, 24);
   2756     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
   2757 L_3801D231:
   2758     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
   2759     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
   2760     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
   2761     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
   2762     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
   2763     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
   2764     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
   2765     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
   2766 L_3801D24C:
   2767     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
   2768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2770     _flag_k = FK_CMP;
   2771     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
   2772 L_3801D251:
   2773     eax = ecx; /* 0x3801D251: mov eax, ecx */
   2774     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
   2775     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
   2776     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
   2777     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
   2778     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
   2779     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2781     _flag_k = FK_CMP;
   2782     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
   2783 L_3801D262:
   2784     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
   2785 L_3801D265:
   2786     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
   2787     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
   2788     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
   2789     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
   2790     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2792     _flag_k = FK_CMP;
   2793     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
   2794 L_3801D273:
   2795     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
   2796     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
   2797 L_3801D278:
   2798     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
   2799     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
   2800     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2802     _flag_k = FK_CMP;
   2803     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
   2804 L_3801D27F:
   2805     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
   2806     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
   2807 L_3801D283:
   2808     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
   2809 L_3801D286:
   2810     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
   2811     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
   2812 L_3801D28B:
   2813     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
   2814     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
   2815     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
   2816     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
   2817     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
   2818     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
   2819     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
   2820     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
   2821     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
   2822     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
   2823     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
   2824     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
   2825     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2827     _flag_k = FK_CMP;
   2828     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
   2829 L_3801D2B0:
   2830     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
   2831 L_3801D2B3:
   2832     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
   2833     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
   2834     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
   2835     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
   2836     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2838     _flag_k = FK_CMP;
   2839     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
   2840 L_3801D2C1:
   2841     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
   2842     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
   2843     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
   2844 L_3801D2CC:
   2845     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
   2846     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
   2847     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2849     _flag_k = FK_CMP;
   2850     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
   2851 L_3801D2D4:
   2852     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
   2853     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
   2854     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
   2855 L_3801D2DF:
   2856     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
   2857     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
   2858     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
   2859 L_3801D2E9:
   2860     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
   2861     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2862     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2863     _flag_k = FK_NARROW(FK_CMP, 24);
   2864     RECOMP_BACKEDGE();
   2865     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
   2866 L_3801D2F3:
   2867     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
   2868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2870     _flag_k = FK_CMP;
   2871     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
   2872 L_3801D2F7:
   2873     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
   2874     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
   2875     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
   2876     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
   2877     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
   2878     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
   2879     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2881     _flag_k = FK_CMP;
   2882     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
   2883 L_3801D308:
   2884     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
   2885 L_3801D30B:
   2886     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
   2887     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
   2888     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
   2889     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
   2890     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2892     _flag_k = FK_CMP;
   2893     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
   2894 L_3801D319:
   2895     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
   2896     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
   2897 L_3801D31E:
   2898     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
   2899     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
   2900     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2902     _flag_k = FK_CMP;
   2903     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
   2904 L_3801D326:
   2905     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
   2906     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
   2907 L_3801D32B:
   2908     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
   2909 L_3801D32D:
   2910     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
   2911     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
   2912 L_3801D333:
   2913     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
   2914     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
   2915     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
   2916     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
   2917     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
   2918     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
   2919     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
   2920     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
   2921     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
   2922     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
   2923     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
   2924     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
   2925     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2927     _flag_k = FK_CMP;
   2928     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
   2929 L_3801D358:
   2930     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
   2931 L_3801D35B:
   2932     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
   2933     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
   2934     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
   2935     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
   2936     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2938     _flag_k = FK_CMP;
   2939     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
   2940 L_3801D369:
   2941     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
   2942     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
   2943 L_3801D36E:
   2944     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
   2945     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
   2946     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2948     _flag_k = FK_CMP;
   2949     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D379; /* 0x3801D373: jne 0x3801d379 */
   2950 L_3801D375:
   2951     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
   2952     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
   2953 L_3801D379:
   2954     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
   2955 L_3801D37C:
   2956     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
   2957 L_3801D37E:
   2958     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
   2959 L_3801D381:
   2960     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
   2961     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
   2962     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2964     _flag_k = FK_CMP;
   2965     RECOMP_BACKEDGE();
   2966     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
   2967 L_3801D38D:
   2968     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   2969     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   2970     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   2971     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   2972     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   2973     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   2974     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   2975     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   2976     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   2977     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   2978     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   2979     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   2980     RECOMP_REGS_OUT();
   2981 }
   2982 
   2983 void sub_3801D37E(void) {
   2984     int _fpu_cmp = 0;
   2985     uint32_t _cf = 0;
   2986     int _df = 1;
   2987     uint32_t _flag_k = FK_NONE;
   2988     uint32_t _flag_a = 0, _flag_b = 0;
   2989     uint32_t _itail_tgt = 0;
   2990     RECOMP_REGS_LOCALS
   2991     RECOMP_ENTER(0x3801D37Eu);
   2992 
   2993     goto L_3801D37E;
   2994 L_3801D20D:
   2995     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
   2996     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
   2997     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
   2998     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2999     _cf = 0;
   3000     _flag_k = FK_NARROW(FK_TEST, 24);
   3001     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
   3002 L_3801D21B:
   3003     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
   3004     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
   3005     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
   3006     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3007     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3008     _flag_k = FK_CMP;
   3009     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
   3010 L_3801D228:
   3011     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
   3012     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
   3013     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3015     _flag_k = FK_NARROW(FK_CMP, 24);
   3016     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
   3017 L_3801D231:
   3018     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
   3019     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
   3020     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
   3021     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
   3022     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
   3023     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
   3024     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
   3025     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
   3026 L_3801D24C:
   3027     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
   3028     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3030     _flag_k = FK_CMP;
   3031     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
   3032 L_3801D251:
   3033     eax = ecx; /* 0x3801D251: mov eax, ecx */
   3034     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
   3035     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
   3036     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
   3037     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
   3038     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
   3039     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3041     _flag_k = FK_CMP;
   3042     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
   3043 L_3801D262:
   3044     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
   3045 L_3801D265:
   3046     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
   3047     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
   3048     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
   3049     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
   3050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3052     _flag_k = FK_CMP;
   3053     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
   3054 L_3801D273:
   3055     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
   3056     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
   3057 L_3801D278:
   3058     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
   3059     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
   3060     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3061     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3062     _flag_k = FK_CMP;
   3063     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
   3064 L_3801D27F:
   3065     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
   3066     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
   3067 L_3801D283:
   3068     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
   3069 L_3801D286:
   3070     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
   3071     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
   3072 L_3801D28B:
   3073     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
   3074     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
   3075     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
   3076     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
   3077     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
   3078     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
   3079     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
   3080     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
   3081     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
   3082     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
   3083     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
   3084     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
   3085     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3087     _flag_k = FK_CMP;
   3088     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
   3089 L_3801D2B0:
   3090     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
   3091 L_3801D2B3:
   3092     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
   3093     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
   3094     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
   3095     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
   3096     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3098     _flag_k = FK_CMP;
   3099     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
   3100 L_3801D2C1:
   3101     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
   3102     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
   3103     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
   3104 L_3801D2CC:
   3105     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
   3106     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
   3107     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3108     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3109     _flag_k = FK_CMP;
   3110     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
   3111 L_3801D2D4:
   3112     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
   3113     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
   3114     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
   3115 L_3801D2DF:
   3116     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
   3117     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
   3118     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
   3119 L_3801D2E9:
   3120     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
   3121     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3123     _flag_k = FK_NARROW(FK_CMP, 24);
   3124     RECOMP_BACKEDGE();
   3125     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
   3126 L_3801D2F3:
   3127     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
   3128     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3130     _flag_k = FK_CMP;
   3131     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
   3132 L_3801D2F7:
   3133     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
   3134     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
   3135     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
   3136     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
   3137     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
   3138     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
   3139     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3141     _flag_k = FK_CMP;
   3142     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
   3143 L_3801D308:
   3144     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
   3145 L_3801D30B:
   3146     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
   3147     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
   3148     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
   3149     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
   3150     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3152     _flag_k = FK_CMP;
   3153     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
   3154 L_3801D319:
   3155     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
   3156     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
   3157 L_3801D31E:
   3158     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
   3159     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
   3160     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3162     _flag_k = FK_CMP;
   3163     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
   3164 L_3801D326:
   3165     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
   3166     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
   3167 L_3801D32B:
   3168     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
   3169 L_3801D32D:
   3170     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
   3171     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
   3172 L_3801D333:
   3173     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
   3174     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
   3175     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
   3176     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
   3177     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
   3178     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
   3179     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
   3180     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
   3181     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
   3182     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
   3183     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
   3184     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
   3185     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3187     _flag_k = FK_CMP;
   3188     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
   3189 L_3801D358:
   3190     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
   3191 L_3801D35B:
   3192     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
   3193     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
   3194     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
   3195     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
   3196     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3197     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3198     _flag_k = FK_CMP;
   3199     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
   3200 L_3801D369:
   3201     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
   3202     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
   3203 L_3801D36E:
   3204     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
   3205     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
   3206     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3208     _flag_k = FK_CMP;
   3209     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D379; /* 0x3801D373: jne 0x3801d379 */
   3210 L_3801D375:
   3211     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
   3212     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
   3213 L_3801D379:
   3214     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
   3215 L_3801D37C:
   3216     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
   3217 L_3801D37E:
   3218     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
   3219 L_3801D381:
   3220     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
   3221     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
   3222     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3223     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3224     _flag_k = FK_CMP;
   3225     RECOMP_BACKEDGE();
   3226     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
   3227 L_3801D38D:
   3228     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   3229     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   3230     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   3231     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   3232     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   3233     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   3234     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   3235     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   3236     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   3237     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   3238     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   3239     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   3240     RECOMP_REGS_OUT();
   3241 }
   3242 
   3243 void sub_3801D381(void) {
   3244     int _fpu_cmp = 0;
   3245     uint32_t _cf = 0;
   3246     int _df = 1;
   3247     uint32_t _flag_k = FK_NONE;
   3248     uint32_t _flag_a = 0, _flag_b = 0;
   3249     uint32_t _itail_tgt = 0;
   3250     RECOMP_REGS_LOCALS
   3251     RECOMP_ENTER(0x3801D381u);
   3252 
   3253     goto L_3801D381;
   3254 L_3801D20D:
   3255     ecx = MEM32(eax + 0x4); /* 0x3801D20D: mov ecx, dword ptr [eax + 4] */
   3256     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801D210: mov dl, byte ptr [ecx + 0x14] */
   3257     /* test LO8(edx), LO8(edx) */ /* 0x3801D213: test dl, dl */
   3258     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3259     _cf = 0;
   3260     _flag_k = FK_NARROW(FK_TEST, 24);
   3261     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D38D; /* 0x3801D215: jne 0x3801d38d */
   3262 L_3801D21B:
   3263     edi = MEM32(ecx + 0x4); /* 0x3801D21B: mov edi, dword ptr [ecx + 4] */
   3264     edx = MEM32(edi); /* 0x3801D21E: mov edx, dword ptr [edi] */
   3265     /* cmp ecx, edx */ /* 0x3801D220: cmp ecx, edx */
   3266     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3268     _flag_k = FK_CMP;
   3269     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2E9; /* 0x3801D222: jne 0x3801d2e9 */
   3270 L_3801D228:
   3271     edx = MEM32(edi + 0x8); /* 0x3801D228: mov edx, dword ptr [edi + 8] */
   3272     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D22B: cmp byte ptr [edx + 0x14], 0 */
   3273     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3274     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3275     _flag_k = FK_NARROW(FK_CMP, 24);
   3276     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D24C; /* 0x3801D22F: jne 0x3801d24c */
   3277 L_3801D231:
   3278     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D231: mov byte ptr [ecx + 0x14], bl */
   3279     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D234: mov byte ptr [edx + 0x14], bl */
   3280     ecx = MEM32(eax + 0x4); /* 0x3801D237: mov ecx, dword ptr [eax + 4] */
   3281     edx = MEM32(ecx + 0x4); /* 0x3801D23A: mov edx, dword ptr [ecx + 4] */
   3282     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801D23D: mov byte ptr [edx + 0x14], 0 */
   3283     eax = MEM32(eax + 0x4); /* 0x3801D241: mov eax, dword ptr [eax + 4] */
   3284     eax = MEM32(eax + 0x4); /* 0x3801D244: mov eax, dword ptr [eax + 4] */
   3285     goto L_3801D381; /* 0x3801D247: jmp 0x3801d381 */
   3286 L_3801D24C:
   3287     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801D24C: cmp eax, dword ptr [ecx + 8] */
   3288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3290     _flag_k = FK_CMP;
   3291     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D28B; /* 0x3801D24F: jne 0x3801d28b */
   3292 L_3801D251:
   3293     eax = ecx; /* 0x3801D251: mov eax, ecx */
   3294     ecx = MEM32(eax + 0x8); /* 0x3801D253: mov ecx, dword ptr [eax + 8] */
   3295     edx = MEM32(ecx); /* 0x3801D256: mov edx, dword ptr [ecx] */
   3296     MEM32(eax + 0x8) = edx; /* 0x3801D258: mov dword ptr [eax + 8], edx */
   3297     edx = MEM32(ecx); /* 0x3801D25B: mov edx, dword ptr [ecx] */
   3298     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D25D: cmp edx, dword ptr [esi + 8] */
   3299     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3301     _flag_k = FK_CMP;
   3302     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D265; /* 0x3801D260: je 0x3801d265 */
   3303 L_3801D262:
   3304     MEM32(edx + 0x4) = eax; /* 0x3801D262: mov dword ptr [edx + 4], eax */
   3305 L_3801D265:
   3306     edx = MEM32(eax + 0x4); /* 0x3801D265: mov edx, dword ptr [eax + 4] */
   3307     MEM32(ecx + 0x4) = edx; /* 0x3801D268: mov dword ptr [ecx + 4], edx */
   3308     edx = MEM32(esi + 0x4); /* 0x3801D26B: mov edx, dword ptr [esi + 4] */
   3309     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D26E: cmp eax, dword ptr [edx + 4] */
   3310     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3312     _flag_k = FK_CMP;
   3313     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D278; /* 0x3801D271: jne 0x3801d278 */
   3314 L_3801D273:
   3315     MEM32(edx + 0x4) = ecx; /* 0x3801D273: mov dword ptr [edx + 4], ecx */
   3316     goto L_3801D286; /* 0x3801D276: jmp 0x3801d286 */
   3317 L_3801D278:
   3318     edx = MEM32(eax + 0x4); /* 0x3801D278: mov edx, dword ptr [eax + 4] */
   3319     /* cmp eax, MEM32(edx) */ /* 0x3801D27B: cmp eax, dword ptr [edx] */
   3320     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3322     _flag_k = FK_CMP;
   3323     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D283; /* 0x3801D27D: jne 0x3801d283 */
   3324 L_3801D27F:
   3325     MEM32(edx) = ecx; /* 0x3801D27F: mov dword ptr [edx], ecx */
   3326     goto L_3801D286; /* 0x3801D281: jmp 0x3801d286 */
   3327 L_3801D283:
   3328     MEM32(edx + 0x8) = ecx; /* 0x3801D283: mov dword ptr [edx + 8], ecx */
   3329 L_3801D286:
   3330     MEM32(ecx) = eax; /* 0x3801D286: mov dword ptr [ecx], eax */
   3331     MEM32(eax + 0x4) = ecx; /* 0x3801D288: mov dword ptr [eax + 4], ecx */
   3332 L_3801D28B:
   3333     ecx = MEM32(eax + 0x4); /* 0x3801D28B: mov ecx, dword ptr [eax + 4] */
   3334     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D28E: mov byte ptr [ecx + 0x14], bl */
   3335     edx = MEM32(eax + 0x4); /* 0x3801D291: mov edx, dword ptr [eax + 4] */
   3336     ecx = MEM32(edx + 0x4); /* 0x3801D294: mov ecx, dword ptr [edx + 4] */
   3337     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D297: mov byte ptr [ecx + 0x14], 0 */
   3338     edx = MEM32(eax + 0x4); /* 0x3801D29B: mov edx, dword ptr [eax + 4] */
   3339     ecx = MEM32(edx + 0x4); /* 0x3801D29E: mov ecx, dword ptr [edx + 4] */
   3340     edx = MEM32(ecx); /* 0x3801D2A1: mov edx, dword ptr [ecx] */
   3341     edi = MEM32(edx + 0x8); /* 0x3801D2A3: mov edi, dword ptr [edx + 8] */
   3342     MEM32(ecx) = edi; /* 0x3801D2A6: mov dword ptr [ecx], edi */
   3343     edi = MEM32(edx + 0x8); /* 0x3801D2A8: mov edi, dword ptr [edx + 8] */
   3344     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D2AB: cmp edi, dword ptr [esi + 8] */
   3345     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3346     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3347     _flag_k = FK_CMP;
   3348     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D2B3; /* 0x3801D2AE: je 0x3801d2b3 */
   3349 L_3801D2B0:
   3350     MEM32(edi + 0x4) = ecx; /* 0x3801D2B0: mov dword ptr [edi + 4], ecx */
   3351 L_3801D2B3:
   3352     edi = MEM32(ecx + 0x4); /* 0x3801D2B3: mov edi, dword ptr [ecx + 4] */
   3353     MEM32(edx + 0x4) = edi; /* 0x3801D2B6: mov dword ptr [edx + 4], edi */
   3354     edi = MEM32(esi + 0x4); /* 0x3801D2B9: mov edi, dword ptr [esi + 4] */
   3355     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D2BC: cmp ecx, dword ptr [edi + 4] */
   3356     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3358     _flag_k = FK_CMP;
   3359     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2CC; /* 0x3801D2BF: jne 0x3801d2cc */
   3360 L_3801D2C1:
   3361     MEM32(edi + 0x4) = edx; /* 0x3801D2C1: mov dword ptr [edi + 4], edx */
   3362     MEM32(edx + 0x8) = ecx; /* 0x3801D2C4: mov dword ptr [edx + 8], ecx */
   3363     goto L_3801D37E; /* 0x3801D2C7: jmp 0x3801d37e */
   3364 L_3801D2CC:
   3365     edi = MEM32(ecx + 0x4); /* 0x3801D2CC: mov edi, dword ptr [ecx + 4] */
   3366     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801D2CF: cmp ecx, dword ptr [edi + 8] */
   3367     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3368     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3369     _flag_k = FK_CMP;
   3370     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D2DF; /* 0x3801D2D2: jne 0x3801d2df */
   3371 L_3801D2D4:
   3372     MEM32(edi + 0x8) = edx; /* 0x3801D2D4: mov dword ptr [edi + 8], edx */
   3373     MEM32(edx + 0x8) = ecx; /* 0x3801D2D7: mov dword ptr [edx + 8], ecx */
   3374     goto L_3801D37E; /* 0x3801D2DA: jmp 0x3801d37e */
   3375 L_3801D2DF:
   3376     MEM32(edi) = edx; /* 0x3801D2DF: mov dword ptr [edi], edx */
   3377     MEM32(edx + 0x8) = ecx; /* 0x3801D2E1: mov dword ptr [edx + 8], ecx */
   3378     goto L_3801D37E; /* 0x3801D2E4: jmp 0x3801d37e */
   3379 L_3801D2E9:
   3380     /* cmp MEM8(edx + 0x14), 0 */ /* 0x3801D2E9: cmp byte ptr [edx + 0x14], 0 */
   3381     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3383     _flag_k = FK_NARROW(FK_CMP, 24);
   3384     RECOMP_BACKEDGE();
   3385     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D231; /* 0x3801D2ED: je 0x3801d231 */
   3386 L_3801D2F3:
   3387     /* cmp eax, MEM32(ecx) */ /* 0x3801D2F3: cmp eax, dword ptr [ecx] */
   3388     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3390     _flag_k = FK_CMP;
   3391     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D333; /* 0x3801D2F5: jne 0x3801d333 */
   3392 L_3801D2F7:
   3393     eax = ecx; /* 0x3801D2F7: mov eax, ecx */
   3394     ecx = MEM32(eax); /* 0x3801D2F9: mov ecx, dword ptr [eax] */
   3395     edx = MEM32(ecx + 0x8); /* 0x3801D2FB: mov edx, dword ptr [ecx + 8] */
   3396     MEM32(eax) = edx; /* 0x3801D2FE: mov dword ptr [eax], edx */
   3397     edx = MEM32(ecx + 0x8); /* 0x3801D300: mov edx, dword ptr [ecx + 8] */
   3398     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3801D303: cmp edx, dword ptr [esi + 8] */
   3399     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3400     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3401     _flag_k = FK_CMP;
   3402     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D30B; /* 0x3801D306: je 0x3801d30b */
   3403 L_3801D308:
   3404     MEM32(edx + 0x4) = eax; /* 0x3801D308: mov dword ptr [edx + 4], eax */
   3405 L_3801D30B:
   3406     edx = MEM32(eax + 0x4); /* 0x3801D30B: mov edx, dword ptr [eax + 4] */
   3407     MEM32(ecx + 0x4) = edx; /* 0x3801D30E: mov dword ptr [ecx + 4], edx */
   3408     edx = MEM32(esi + 0x4); /* 0x3801D311: mov edx, dword ptr [esi + 4] */
   3409     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801D314: cmp eax, dword ptr [edx + 4] */
   3410     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3412     _flag_k = FK_CMP;
   3413     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D31E; /* 0x3801D317: jne 0x3801d31e */
   3414 L_3801D319:
   3415     MEM32(edx + 0x4) = ecx; /* 0x3801D319: mov dword ptr [edx + 4], ecx */
   3416     goto L_3801D32D; /* 0x3801D31C: jmp 0x3801d32d */
   3417 L_3801D31E:
   3418     edx = MEM32(eax + 0x4); /* 0x3801D31E: mov edx, dword ptr [eax + 4] */
   3419     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801D321: cmp eax, dword ptr [edx + 8] */
   3420     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3422     _flag_k = FK_CMP;
   3423     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D32B; /* 0x3801D324: jne 0x3801d32b */
   3424 L_3801D326:
   3425     MEM32(edx + 0x8) = ecx; /* 0x3801D326: mov dword ptr [edx + 8], ecx */
   3426     goto L_3801D32D; /* 0x3801D329: jmp 0x3801d32d */
   3427 L_3801D32B:
   3428     MEM32(edx) = ecx; /* 0x3801D32B: mov dword ptr [edx], ecx */
   3429 L_3801D32D:
   3430     MEM32(ecx + 0x8) = eax; /* 0x3801D32D: mov dword ptr [ecx + 8], eax */
   3431     MEM32(eax + 0x4) = ecx; /* 0x3801D330: mov dword ptr [eax + 4], ecx */
   3432 L_3801D333:
   3433     ecx = MEM32(eax + 0x4); /* 0x3801D333: mov ecx, dword ptr [eax + 4] */
   3434     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D336: mov byte ptr [ecx + 0x14], bl */
   3435     edx = MEM32(eax + 0x4); /* 0x3801D339: mov edx, dword ptr [eax + 4] */
   3436     ecx = MEM32(edx + 0x4); /* 0x3801D33C: mov ecx, dword ptr [edx + 4] */
   3437     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801D33F: mov byte ptr [ecx + 0x14], 0 */
   3438     edx = MEM32(eax + 0x4); /* 0x3801D343: mov edx, dword ptr [eax + 4] */
   3439     ecx = MEM32(edx + 0x4); /* 0x3801D346: mov ecx, dword ptr [edx + 4] */
   3440     edx = MEM32(ecx + 0x8); /* 0x3801D349: mov edx, dword ptr [ecx + 8] */
   3441     edi = MEM32(edx); /* 0x3801D34C: mov edi, dword ptr [edx] */
   3442     MEM32(ecx + 0x8) = edi; /* 0x3801D34E: mov dword ptr [ecx + 8], edi */
   3443     edi = MEM32(edx); /* 0x3801D351: mov edi, dword ptr [edx] */
   3444     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3801D353: cmp edi, dword ptr [esi + 8] */
   3445     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3447     _flag_k = FK_CMP;
   3448     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D35B; /* 0x3801D356: je 0x3801d35b */
   3449 L_3801D358:
   3450     MEM32(edi + 0x4) = ecx; /* 0x3801D358: mov dword ptr [edi + 4], ecx */
   3451 L_3801D35B:
   3452     edi = MEM32(ecx + 0x4); /* 0x3801D35B: mov edi, dword ptr [ecx + 4] */
   3453     MEM32(edx + 0x4) = edi; /* 0x3801D35E: mov dword ptr [edx + 4], edi */
   3454     edi = MEM32(esi + 0x4); /* 0x3801D361: mov edi, dword ptr [esi + 4] */
   3455     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3801D364: cmp ecx, dword ptr [edi + 4] */
   3456     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3458     _flag_k = FK_CMP;
   3459     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D36E; /* 0x3801D367: jne 0x3801d36e */
   3460 L_3801D369:
   3461     MEM32(edi + 0x4) = edx; /* 0x3801D369: mov dword ptr [edi + 4], edx */
   3462     goto L_3801D37C; /* 0x3801D36C: jmp 0x3801d37c */
   3463 L_3801D36E:
   3464     edi = MEM32(ecx + 0x4); /* 0x3801D36E: mov edi, dword ptr [ecx + 4] */
   3465     /* cmp ecx, MEM32(edi) */ /* 0x3801D371: cmp ecx, dword ptr [edi] */
   3466     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3468     _flag_k = FK_CMP;
   3469     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D379; /* 0x3801D373: jne 0x3801d379 */
   3470 L_3801D375:
   3471     MEM32(edi) = edx; /* 0x3801D375: mov dword ptr [edi], edx */
   3472     goto L_3801D37C; /* 0x3801D377: jmp 0x3801d37c */
   3473 L_3801D379:
   3474     MEM32(edi + 0x8) = edx; /* 0x3801D379: mov dword ptr [edi + 8], edx */
   3475 L_3801D37C:
   3476     MEM32(edx) = ecx; /* 0x3801D37C: mov dword ptr [edx], ecx */
   3477 L_3801D37E:
   3478     MEM32(ecx + 0x4) = edx; /* 0x3801D37E: mov dword ptr [ecx + 4], edx */
   3479 L_3801D381:
   3480     ecx = MEM32(esi + 0x4); /* 0x3801D381: mov ecx, dword ptr [esi + 4] */
   3481     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801D384: cmp eax, dword ptr [ecx + 4] */
   3482     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3484     _flag_k = FK_CMP;
   3485     RECOMP_BACKEDGE();
   3486     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D20D; /* 0x3801D387: jne 0x3801d20d */
   3487 L_3801D38D:
   3488     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   3489     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   3490     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   3491     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   3492     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   3493     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   3494     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   3495     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   3496     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   3497     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   3498     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   3499     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   3500     RECOMP_REGS_OUT();
   3501 }
   3502 
   3503 void sub_3801D38D(void) {
   3504     int _fpu_cmp = 0;
   3505     uint32_t _cf = 0;
   3506     int _df = 1;
   3507     uint32_t _flag_k = FK_NONE;
   3508     uint32_t _flag_a = 0, _flag_b = 0;
   3509     uint32_t _itail_tgt = 0;
   3510     RECOMP_REGS_LOCALS
   3511     RECOMP_ENTER(0x3801D38Du);
   3512 
   3513 L_3801D38D:
   3514     edx = MEM32(esi + 0x4); /* 0x3801D38D: mov edx, dword ptr [esi + 4] */
   3515     eax = MEM32(edx + 0x4); /* 0x3801D390: mov eax, dword ptr [edx + 4] */
   3516     ecx = MEM32(ebp + (-0x4)); /* 0x3801D393: mov ecx, dword ptr [ebp - 4] */
   3517     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801D396: mov byte ptr [eax + 0x14], bl */
   3518     eax = MEM32(ebp + 0x8); /* 0x3801D399: mov eax, dword ptr [ebp + 8] */
   3519     edi = POP32_VAL(esp); /* 0x3801D39C: pop edi */
   3520     esi = POP32_VAL(esp); /* 0x3801D39D: pop esi */
   3521     MEM32(eax) = ecx; /* 0x3801D39E: mov dword ptr [eax], ecx */
   3522     ebx = POP32_VAL(esp); /* 0x3801D3A0: pop ebx */
   3523     esp = ebp; /* 0x3801D3A1: mov esp, ebp */
   3524     ebp = POP32_VAL(esp); /* 0x3801D3A3: pop ebp */
   3525     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3801D3A4: ret 0x10 */
   3526     RECOMP_REGS_OUT();
   3527 }
   3528 
   3529 void sub_3801D3B0(void) {
   3530     int _fpu_cmp = 0;
   3531     uint32_t _cf = 0;
   3532     int _df = 1;
   3533     uint32_t _flag_k = FK_NONE;
   3534     uint32_t _flag_a = 0, _flag_b = 0;
   3535     uint32_t _itail_tgt = 0;
   3536     RECOMP_REGS_LOCALS
   3537     RECOMP_ENTER(0x3801D3B0u);
   3538 
   3539 L_3801D3B0:
   3540     PUSH32(esp, ebp); /* 0x3801D3B0: push ebp */
   3541     ebp = esp; /* 0x3801D3B1: mov ebp, esp */
   3542     PUSH32(esp, ebx); /* 0x3801D3B3: push ebx */
   3543     PUSH32(esp, esi); /* 0x3801D3B4: push esi */
   3544     ebx = ecx; /* 0x3801D3B5: mov ebx, ecx */
   3545     eax = MEM32(ebx + 0x8); /* 0x3801D3B7: mov eax, dword ptr [ebx + 8] */
   3546     PUSH32(esp, edi); /* 0x3801D3BA: push edi */
   3547     edi = MEM32(ebp + 0x8); /* 0x3801D3BB: mov edi, dword ptr [ebp + 8] */
   3548     /* cmp edi, eax */ /* 0x3801D3BE: cmp edi, eax */
   3549     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3551     _flag_k = FK_CMP;
   3552     esi = edi; /* 0x3801D3C0: mov esi, edi */
   3553     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D3E3; /* 0x3801D3C2: je 0x3801d3e3 */
   3554 L_3801D3C4:
   3555     eax = MEM32(esi + 0x8); /* 0x3801D3C4: mov eax, dword ptr [esi + 8] */
   3556     PUSH32(esp, eax); /* 0x3801D3C7: push eax */
   3557     ecx = ebx; /* 0x3801D3C8: mov ecx, ebx */
   3558     RECOMP_ICALL(0x3801D3B0u); /* 0x3801D3CA: call 0x3801d3b0 */ /* not lifted */
   3559     RECOMP_FLAGS_IN();
   3560     esi = MEM32(esi); /* 0x3801D3CF: mov esi, dword ptr [esi] */
   3561     PUSH32(esp, edi); /* 0x3801D3D1: push edi */
   3562     RECOMP_ICALL(0x3804B4F6u); /* 0x3801D3D2: call 0x3804b4f6 */ /* not lifted */
   3563     RECOMP_FLAGS_IN();
   3564     eax = MEM32(ebx + 0x8); /* 0x3801D3D7: mov eax, dword ptr [ebx + 8] */
   3565     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3566     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3567     esp = esp + 4; /* 0x3801D3DA: add esp, 4 */
   3568     _flag_k = FK_ADD;
   3569     /* cmp esi, eax */ /* 0x3801D3DD: cmp esi, eax */
   3570     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3571     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3572     _flag_k = FK_CMP;
   3573     edi = esi; /* 0x3801D3DF: mov edi, esi */
   3574     RECOMP_BACKEDGE();
   3575     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D3C4; /* 0x3801D3E1: jne 0x3801d3c4 */
   3576 L_3801D3E3:
   3577     edi = POP32_VAL(esp); /* 0x3801D3E3: pop edi */
   3578     esi = POP32_VAL(esp); /* 0x3801D3E4: pop esi */
   3579     ebx = POP32_VAL(esp); /* 0x3801D3E5: pop ebx */
   3580     ebp = POP32_VAL(esp); /* 0x3801D3E6: pop ebp */
   3581     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D3E7: ret 4 */
   3582     RECOMP_REGS_OUT();
   3583 }
   3584 
   3585 void sub_3801D3F0(void) {
   3586     int _fpu_cmp = 0;
   3587     uint32_t _cf = 0;
   3588     int _df = 1;
   3589     uint32_t _flag_k = FK_NONE;
   3590     uint32_t _flag_a = 0, _flag_b = 0;
   3591     uint32_t _itail_tgt = 0;
   3592     RECOMP_REGS_LOCALS
   3593     RECOMP_ENTER(0x3801D3F0u);
   3594 
   3595 L_3801D3F0:
   3596     PUSH32(esp, ebp); /* 0x3801D3F0: push ebp */
   3597     ebp = esp; /* 0x3801D3F1: mov ebp, esp */
   3598     PUSH32(esp, ebx); /* 0x3801D3F3: push ebx */
   3599     PUSH32(esp, esi); /* 0x3801D3F4: push esi */
   3600     esi = MEM32(ecx); /* 0x3801D3F5: mov esi, dword ptr [ecx] */
   3601     edx = MEM32(esi + 0x8); /* 0x3801D3F7: mov edx, dword ptr [esi + 8] */
   3602     SET_LO8(eax, MEM8(edx + 0x15)); /* 0x3801D3FA: mov al, byte ptr [edx + 0x15] */
   3603     /* test LO8(eax), LO8(eax) */ /* 0x3801D3FD: test al, al */
   3604     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3605     _cf = 0;
   3606     _flag_k = FK_NARROW(FK_TEST, 24);
   3607     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D422; /* 0x3801D3FF: jne 0x3801d422 */
   3608 L_3801D401:
   3609     eax = MEM32(edx); /* 0x3801D401: mov eax, dword ptr [edx] */
   3610     SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3801D403: mov bl, byte ptr [eax + 0x15] */
   3611     /* test LO8(ebx), LO8(ebx) */ /* 0x3801D406: test bl, bl */
   3612     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3613     _cf = 0;
   3614     _flag_k = FK_NARROW(FK_TEST, 24);
   3615     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D415; /* 0x3801D408: jne 0x3801d415 */
   3616 L_3801D40A:
   3617     edx = eax; /* 0x3801D40A: mov edx, eax */
   3618     eax = MEM32(edx); /* 0x3801D40C: mov eax, dword ptr [edx] */
   3619     SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3801D40E: mov bl, byte ptr [eax + 0x15] */
   3620     /* test LO8(ebx), LO8(ebx) */ /* 0x3801D411: test bl, bl */
   3621     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3622     _cf = 0;
   3623     _flag_k = FK_NARROW(FK_TEST, 24);
   3624     RECOMP_BACKEDGE();
   3625     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D40A; /* 0x3801D413: je 0x3801d40a */
   3626 L_3801D415:
   3627     eax = MEM32(ebp + 0x8); /* 0x3801D415: mov eax, dword ptr [ebp + 8] */
   3628     MEM32(ecx) = edx; /* 0x3801D418: mov dword ptr [ecx], edx */
   3629     MEM32(eax) = esi; /* 0x3801D41A: mov dword ptr [eax], esi */
   3630     esi = POP32_VAL(esp); /* 0x3801D41C: pop esi */
   3631     ebx = POP32_VAL(esp); /* 0x3801D41D: pop ebx */
   3632     ebp = POP32_VAL(esp); /* 0x3801D41E: pop ebp */
   3633     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801D41F: ret 8 */
   3634 L_3801D422:
   3635     eax = MEM32(esi + 0x4); /* 0x3801D422: mov eax, dword ptr [esi + 4] */
   3636     edx = MEM32(ecx); /* 0x3801D425: mov edx, dword ptr [ecx] */
   3637     /* cmp edx, MEM32(eax + 0x8) */ /* 0x3801D427: cmp edx, dword ptr [eax + 8] */
   3638     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3640     _flag_k = FK_CMP;
   3641     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D438; /* 0x3801D42A: jne 0x3801d438 */
   3642 L_3801D42C:
   3643     MEM32(ecx) = eax; /* 0x3801D42C: mov dword ptr [ecx], eax */
   3644     eax = MEM32(eax + 0x4); /* 0x3801D42E: mov eax, dword ptr [eax + 4] */
   3645     edx = MEM32(ecx); /* 0x3801D431: mov edx, dword ptr [ecx] */
   3646     /* cmp edx, MEM32(eax + 0x8) */ /* 0x3801D433: cmp edx, dword ptr [eax + 8] */
   3647     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3649     _flag_k = FK_CMP;
   3650     RECOMP_BACKEDGE();
   3651     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D42C; /* 0x3801D436: je 0x3801d42c */
   3652 L_3801D438:
   3653     edx = MEM32(ecx); /* 0x3801D438: mov edx, dword ptr [ecx] */
   3654     /* cmp MEM32(edx + 0x8), eax */ /* 0x3801D43A: cmp dword ptr [edx + 8], eax */
   3655     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
   3656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3657     _flag_k = FK_CMP;
   3658     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D441; /* 0x3801D43D: je 0x3801d441 */
   3659 L_3801D43F:
   3660     MEM32(ecx) = eax; /* 0x3801D43F: mov dword ptr [ecx], eax */
   3661 L_3801D441:
   3662     eax = MEM32(ebp + 0x8); /* 0x3801D441: mov eax, dword ptr [ebp + 8] */
   3663     MEM32(eax) = esi; /* 0x3801D444: mov dword ptr [eax], esi */
   3664     esi = POP32_VAL(esp); /* 0x3801D446: pop esi */
   3665     ebx = POP32_VAL(esp); /* 0x3801D447: pop ebx */
   3666     ebp = POP32_VAL(esp); /* 0x3801D448: pop ebp */
   3667     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801D449: ret 8 */
   3668     RECOMP_REGS_OUT();
   3669 }
   3670 
   3671 void sub_3801D450(void) {
   3672     int _fpu_cmp = 0;
   3673     uint32_t _cf = 0;
   3674     int _df = 1;
   3675     uint32_t _flag_k = FK_NONE;
   3676     uint32_t _flag_a = 0, _flag_b = 0;
   3677     uint32_t _itail_tgt = 0;
   3678     RECOMP_REGS_LOCALS
   3679     RECOMP_ENTER(0x3801D450u);
   3680 
   3681 L_3801D450:
   3682     PUSH32(esp, ebp); /* 0x3801D450: push ebp */
   3683     ebp = esp; /* 0x3801D451: mov ebp, esp */
   3684     eax = MEM32(ecx + 0x4); /* 0x3801D453: mov eax, dword ptr [ecx + 4] */
   3685     edx = MEM32(eax + 0x4); /* 0x3801D456: mov edx, dword ptr [eax + 4] */
   3686     ecx = MEM32(ecx + 0x8); /* 0x3801D459: mov ecx, dword ptr [ecx + 8] */
   3687     /* cmp edx, ecx */ /* 0x3801D45C: cmp edx, ecx */
   3688     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3690     _flag_k = FK_CMP;
   3691     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D479; /* 0x3801D45E: je 0x3801d479 */
   3692 L_3801D460:
   3693     PUSH32(esp, esi); /* 0x3801D460: push esi */
   3694     esi = MEM32(ebp + 0x8); /* 0x3801D461: mov esi, dword ptr [ebp + 8] */
   3695     esi = MEM32(esi); /* 0x3801D464: mov esi, dword ptr [esi] */
   3696 L_3801D466:
   3697     /* cmp MEM32(edx + 0xC), esi */ /* 0x3801D466: cmp dword ptr [edx + 0xc], esi */
   3698     _flag_a = (uint32_t)(MEM32(edx + 0xC)); _flag_b = (uint32_t)(esi);
   3699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3700     _flag_k = FK_CMP;
   3701     if (CMP_AE(_flag_a, _flag_b)) goto L_3801D470; /* 0x3801D469: jae 0x3801d470 */
   3702 L_3801D46B:
   3703     edx = MEM32(edx + 0x8); /* 0x3801D46B: mov edx, dword ptr [edx + 8] */
   3704     goto L_3801D474; /* 0x3801D46E: jmp 0x3801d474 */
   3705 L_3801D470:
   3706     eax = edx; /* 0x3801D470: mov eax, edx */
   3707     edx = MEM32(edx); /* 0x3801D472: mov edx, dword ptr [edx] */
   3708 L_3801D474:
   3709     /* cmp edx, ecx */ /* 0x3801D474: cmp edx, ecx */
   3710     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3712     _flag_k = FK_CMP;
   3713     RECOMP_BACKEDGE();
   3714     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D466; /* 0x3801D476: jne 0x3801d466 */
   3715 L_3801D478:
   3716     esi = POP32_VAL(esp); /* 0x3801D478: pop esi */
   3717 L_3801D479:
   3718     ebp = POP32_VAL(esp); /* 0x3801D479: pop ebp */
   3719     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D47A: ret 4 */
   3720     RECOMP_REGS_OUT();
   3721 }
   3722 
   3723 void sub_3801D480(void) {
   3724     int _fpu_cmp = 0;
   3725     uint32_t _cf = 0;
   3726     int _df = 1;
   3727     uint32_t _flag_k = FK_NONE;
   3728     uint32_t _flag_a = 0, _flag_b = 0;
   3729     uint32_t _itail_tgt = 0;
   3730     RECOMP_REGS_LOCALS
   3731     RECOMP_ENTER(0x3801D480u);
   3732 
   3733 L_3801D480:
   3734     eax = MEM32(ecx); /* 0x3801D480: mov eax, dword ptr [ecx] */
   3735     edx = MEM32(eax + 0x8); /* 0x3801D482: mov edx, dword ptr [eax + 8] */
   3736     PUSH32(esp, ebx); /* 0x3801D485: push ebx */
   3737     SET_LO8(ebx, MEM8(edx + 0x21)); /* 0x3801D486: mov bl, byte ptr [edx + 0x21] */
   3738     /* test LO8(ebx), LO8(ebx) */ /* 0x3801D489: test bl, bl */
   3739     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3740     _cf = 0;
   3741     _flag_k = FK_NARROW(FK_TEST, 24);
   3742     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D4A5; /* 0x3801D48B: jne 0x3801d4a5 */
   3743 L_3801D48D:
   3744     eax = MEM32(edx); /* 0x3801D48D: mov eax, dword ptr [edx] */
   3745     SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x3801D48F: mov bl, byte ptr [eax + 0x21] */
   3746     /* test LO8(ebx), LO8(ebx) */ /* 0x3801D492: test bl, bl */
   3747     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3748     _cf = 0;
   3749     _flag_k = FK_NARROW(FK_TEST, 24);
   3750     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D4A1; /* 0x3801D494: jne 0x3801d4a1 */
   3751 L_3801D496:
   3752     edx = eax; /* 0x3801D496: mov edx, eax */
   3753     eax = MEM32(edx); /* 0x3801D498: mov eax, dword ptr [edx] */
   3754     SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x3801D49A: mov bl, byte ptr [eax + 0x21] */
   3755     /* test LO8(ebx), LO8(ebx) */ /* 0x3801D49D: test bl, bl */
   3756     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3757     _cf = 0;
   3758     _flag_k = FK_NARROW(FK_TEST, 24);
   3759     RECOMP_BACKEDGE();
   3760     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D496; /* 0x3801D49F: je 0x3801d496 */
   3761 L_3801D4A1:
   3762     MEM32(ecx) = edx; /* 0x3801D4A1: mov dword ptr [ecx], edx */
   3763     ebx = POP32_VAL(esp); /* 0x3801D4A3: pop ebx */
   3764     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D4A4: ret  */
   3765 L_3801D4A5:
   3766     eax = MEM32(eax + 0x4); /* 0x3801D4A5: mov eax, dword ptr [eax + 4] */
   3767     edx = MEM32(ecx); /* 0x3801D4A8: mov edx, dword ptr [ecx] */
   3768     /* cmp edx, MEM32(eax + 0x8) */ /* 0x3801D4AA: cmp edx, dword ptr [eax + 8] */
   3769     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3771     _flag_k = FK_CMP;
   3772     if (CMP_NE(_flag_a, _flag_b)) goto L_3801D4BB; /* 0x3801D4AD: jne 0x3801d4bb */
   3773 L_3801D4AF:
   3774     MEM32(ecx) = eax; /* 0x3801D4AF: mov dword ptr [ecx], eax */
   3775     eax = MEM32(eax + 0x4); /* 0x3801D4B1: mov eax, dword ptr [eax + 4] */
   3776     edx = MEM32(ecx); /* 0x3801D4B4: mov edx, dword ptr [ecx] */
   3777     /* cmp edx, MEM32(eax + 0x8) */ /* 0x3801D4B6: cmp edx, dword ptr [eax + 8] */
   3778     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3779     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3780     _flag_k = FK_CMP;
   3781     RECOMP_BACKEDGE();
   3782     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D4AF; /* 0x3801D4B9: je 0x3801d4af */
   3783 L_3801D4BB:
   3784     edx = MEM32(ecx); /* 0x3801D4BB: mov edx, dword ptr [ecx] */
   3785     /* cmp MEM32(edx + 0x8), eax */ /* 0x3801D4BD: cmp dword ptr [edx + 8], eax */
   3786     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
   3787     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3788     _flag_k = FK_CMP;
   3789     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801D4C4; /* 0x3801D4C0: je 0x3801d4c4 */
   3790 L_3801D4C2:
   3791     MEM32(ecx) = eax; /* 0x3801D4C2: mov dword ptr [ecx], eax */
   3792 L_3801D4C4:
   3793     ebx = POP32_VAL(esp); /* 0x3801D4C4: pop ebx */
   3794     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D4C5: ret  */
   3795     RECOMP_REGS_OUT();
   3796 }
   3797 
   3798 void sub_3801D4D0(void) {
   3799     int _fpu_cmp = 0;
   3800     uint32_t _cf = 0;
   3801     int _df = 1;
   3802     uint32_t _flag_k = FK_NONE;
   3803     uint32_t _flag_a = 0, _flag_b = 0;
   3804     uint32_t _itail_tgt = 0;
   3805     RECOMP_REGS_LOCALS
   3806     RECOMP_ENTER(0x3801D4D0u);
   3807 
   3808 L_3801D4D0:
   3809     eax = MEM32(ecx + 0x4); /* 0x3801D4D0: mov eax, dword ptr [ecx + 4] */
   3810     PUSH32(esp, eax); /* 0x3801D4D3: push eax */
   3811     RECOMP_ICALL(MEM32(0x3804E010)); /* 0x3801D4D4: call dword ptr [0x3804e010] */
   3812     RECOMP_FLAGS_IN();
   3813     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3814     eax = 0; /* 0x3801D4DA: xor eax, eax */
   3815     _cf = 0;
   3816     _flag_k = FK_TEST;
   3817     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D4DC: ret  */
   3818     RECOMP_REGS_OUT();
   3819 }
   3820 
   3821 void sub_3801D4E0(void) {
   3822     int _fpu_cmp = 0;
   3823     uint32_t _cf = 0;
   3824     int _df = 1;
   3825     uint32_t _flag_k = FK_NONE;
   3826     uint32_t _flag_a = 0, _flag_b = 0;
   3827     uint32_t _itail_tgt = 0;
   3828     RECOMP_REGS_LOCALS
   3829     RECOMP_ENTER(0x3801D4E0u);
   3830 
   3831 L_3801D4E0:
   3832     RECOMP_ICALL(MEM32(0x3804E0F8)); /* 0x3801D4E0: call dword ptr [0x3804e0f8] */
   3833     RECOMP_FLAGS_IN();
   3834     MEM32(eax) = 0x28u; /* 0x3801D4E6: mov dword ptr [eax], 0x28 */
   3835     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3836     eax = eax | 0xFFFFFFFFu; /* 0x3801D4EC: or eax, 0xffffffff */
   3837     _cf = 0;
   3838     _flag_k = FK_TEST;
   3839     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D4EF: ret  */
   3840     RECOMP_REGS_OUT();
   3841 }
   3842 
   3843 void sub_3801D4F0(void) {
   3844     int _fpu_cmp = 0;
   3845     uint32_t _cf = 0;
   3846     int _df = 1;
   3847     uint32_t _flag_k = FK_NONE;
   3848     uint32_t _flag_a = 0, _flag_b = 0;
   3849     uint32_t _itail_tgt = 0;
   3850     RECOMP_REGS_LOCALS
   3851     RECOMP_ENTER(0x3801D4F0u);
   3852 
   3853 L_3801D4F0:
   3854     eax = MEM32(ecx + 0x4); /* 0x3801D4F0: mov eax, dword ptr [ecx + 4] */
   3855     PUSH32(esp, eax); /* 0x3801D4F3: push eax */
   3856     RECOMP_ICALL(MEM32(0x3804E00C)); /* 0x3801D4F4: call dword ptr [0x3804e00c] */
   3857     RECOMP_FLAGS_IN();
   3858     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3859     eax = 0; /* 0x3801D4FA: xor eax, eax */
   3860     _cf = 0;
   3861     _flag_k = FK_TEST;
   3862     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D4FC: ret  */
   3863     RECOMP_REGS_OUT();
   3864 }
   3865 
   3866 void sub_3801D500(void) {
   3867     int _fpu_cmp = 0;
   3868     uint32_t _cf = 0;
   3869     int _df = 1;
   3870     uint32_t _flag_k = FK_NONE;
   3871     uint32_t _flag_a = 0, _flag_b = 0;
   3872     uint32_t _itail_tgt = 0;
   3873     RECOMP_REGS_LOCALS
   3874     RECOMP_ENTER(0x3801D500u);
   3875 
   3876 L_3801D500:
   3877     eax = MEM32(ecx + 0x4); /* 0x3801D500: mov eax, dword ptr [ecx + 4] */
   3878     ecx = MEM32(eax + 0x18); /* 0x3801D503: mov ecx, dword ptr [eax + 0x18] */
   3879     /* test ecx, ecx */ /* 0x3801D506: test ecx, ecx */
   3880     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3881     _cf = 0;
   3882     _flag_k = FK_TEST;
   3883     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D518; /* 0x3801D508: jne 0x3801d518 */
   3884 L_3801D50A:
   3885     PUSH32(esp, eax); /* 0x3801D50A: push eax */
   3886     MEM32(eax + 0x18) = 1; /* 0x3801D50B: mov dword ptr [eax + 0x18], 1 */
   3887     RECOMP_ICALL(MEM32(0x3804E008)); /* 0x3801D512: call dword ptr [0x3804e008] */
   3888     RECOMP_FLAGS_IN();
   3889 L_3801D518:
   3890     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3891     eax = 0; /* 0x3801D518: xor eax, eax */
   3892     _cf = 0;
   3893     _flag_k = FK_TEST;
   3894     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D51A: ret  */
   3895     RECOMP_REGS_OUT();
   3896 }
   3897 
   3898 void sub_3801D520(void) {
   3899     int _fpu_cmp = 0;
   3900     uint32_t _cf = 0;
   3901     int _df = 1;
   3902     uint32_t _flag_k = FK_NONE;
   3903     uint32_t _flag_a = 0, _flag_b = 0;
   3904     uint32_t _itail_tgt = 0;
   3905     RECOMP_REGS_LOCALS
   3906     RECOMP_ENTER(0x3801D520u);
   3907 
   3908 L_3801D520:
   3909     PUSH32(esp, ebp); /* 0x3801D520: push ebp */
   3910     ebp = esp; /* 0x3801D521: mov ebp, esp */
   3911     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801D523: push -1 */
   3912     PUSH32(esp, 0x3804C31Eu); /* 0x3801D525: push 0x3804c31e */
   3913     eax = MEM32(FS_BASE + (0)); /* 0x3801D52A: mov eax, dword ptr fs:[0] */
   3914     PUSH32(esp, eax); /* 0x3801D530: push eax */
   3915     MEM32(FS_BASE + (0)) = esp; /* 0x3801D531: mov dword ptr fs:[0], esp */
   3916     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3918     esp = esp - 0x10u; /* 0x3801D538: sub esp, 0x10 */
   3919     _flag_k = FK_CMP;
   3920     PUSH32(esp, esi); /* 0x3801D53B: push esi */
   3921     esi = ecx; /* 0x3801D53C: mov esi, ecx */
   3922     ecx = MEM32(esi + 0x24); /* 0x3801D53E: mov ecx, dword ptr [esi + 0x24] */
   3923     eax = MEM32(ecx); /* 0x3801D541: mov eax, dword ptr [ecx] */
   3924     PUSH32(esp, edi); /* 0x3801D543: push edi */
   3925     PUSH32(esp, 0x34u); /* 0x3801D544: push 0x34 */
   3926     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3801D546: call dword ptr [eax + 4] */
   3927     RECOMP_FLAGS_IN();
   3928     edi = eax; /* 0x3801D549: mov edi, eax */
   3929     /* test edi, edi */ /* 0x3801D54B: test edi, edi */
   3930     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3931     _cf = 0;
   3932     _flag_k = FK_TEST;
   3933     MEM32(ebp + (-0x14)) = edi; /* 0x3801D54D: mov dword ptr [ebp - 0x14], edi */
   3934     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D607; /* 0x3801D550: je 0x3801d607 */
   3935 L_3801D556:
   3936     PUSH32(esp, ebx); /* 0x3801D556: push ebx */
   3937     MEM32(ebp + (-0x18)) = edi; /* 0x3801D557: mov dword ptr [ebp - 0x18], edi */
   3938     ecx = MEM32(esi + 0x10); /* 0x3801D55A: mov ecx, dword ptr [esi + 0x10] */
   3939     eax = MEM32(esi + 0x24); /* 0x3801D55D: mov eax, dword ptr [esi + 0x24] */
   3940     edx = MEM32(esi + 0x18); /* 0x3801D560: mov edx, dword ptr [esi + 0x18] */
   3941     ebx = MEM32(esi + 0x4); /* 0x3801D563: mov ebx, dword ptr [esi + 4] */
   3942     esi = MEM32(esi + 0x8); /* 0x3801D566: mov esi, dword ptr [esi + 8] */
   3943     PUSH32(esp, eax); /* 0x3801D569: push eax */
   3944     PUSH32(esp, ecx); /* 0x3801D56A: push ecx */
   3945     MEM32(ebp + (-0x10)) = esi; /* 0x3801D56B: mov dword ptr [ebp - 0x10], esi */
   3946     ecx = MEM32(ebp + (-0x10)); /* 0x3801D56E: mov ecx, dword ptr [ebp - 0x10] */
   3947     esi = edi + 0x28; /* 0x3801D571: lea esi, [edi + 0x28] */
   3948     PUSH32(esp, esi); /* 0x3801D574: push esi */
   3949     PUSH32(esp, edx); /* 0x3801D575: push edx */
   3950     PUSH32(esp, 0); /* 0x3801D576: push 0 */
   3951     PUSH32(esp, ebx); /* 0x3801D578: push ebx */
   3952     PUSH32(esp, ecx); /* 0x3801D579: push ecx */
   3953     ecx = edi; /* 0x3801D57A: mov ecx, edi */
   3954     MEM32(ebp + (-0x4)) = 0; /* 0x3801D57C: mov dword ptr [ebp - 4], 0 */
   3955     RECOMP_ICALL(MEM32(0x3804E140)); /* 0x3801D583: call dword ptr [0x3804e140] */
   3956     RECOMP_FLAGS_IN();
   3957     MEM32(ebp + (-0x10)) = esi; /* 0x3801D589: mov dword ptr [ebp - 0x10], esi */
   3958     PUSH32(esp, 0x1Cu); /* 0x3801D58C: push 0x1c */
   3959     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3801D58E: mov byte ptr [ebp - 4], 2 */
   3960     MEM32(esi + 0x4) = 0; /* 0x3801D592: mov dword ptr [esi + 4], 0 */
   3961     MEM32(esi + 0x8) = 1; /* 0x3801D599: mov dword ptr [esi + 8], 1 */
   3962     MEM32(esi) = 0x3804F168u; /* 0x3801D5A0: mov dword ptr [esi], 0x3804f168 */
   3963     RECOMP_ICALL(0x3804B676u); /* 0x3801D5A6: call 0x3804b676 */ /* not lifted */
   3964     RECOMP_FLAGS_IN();
   3965     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3966     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3967     esp = esp + 4; /* 0x3801D5AB: add esp, 4 */
   3968     _flag_k = FK_ADD;
   3969     MEM32(ebp + (-0x1C)) = eax; /* 0x3801D5AE: mov dword ptr [ebp - 0x1c], eax */
   3970     /* test eax, eax */ /* 0x3801D5B1: test eax, eax */
   3971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3972     _cf = 0;
   3973     _flag_k = FK_TEST;
   3974     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3801D5B3: mov byte ptr [ebp - 4], 3 */
   3975     ebx = POP32_VAL(esp); /* 0x3801D5B7: pop ebx */
   3976     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D5C8; /* 0x3801D5B8: je 0x3801d5c8 */
   3977 L_3801D5BA:
   3978     PUSH32(esp, 0); /* 0x3801D5BA: push 0 */
   3979     PUSH32(esp, 0); /* 0x3801D5BC: push 0 */
   3980     ecx = eax; /* 0x3801D5BE: mov ecx, eax */
   3981     RECOMP_ICALL(MEM32(0x3804E12C)); /* 0x3801D5C0: call dword ptr [0x3804e12c] */
   3982     RECOMP_FLAGS_IN();
   3983     goto L_3801D5CA; /* 0x3801D5C6: jmp 0x3801d5ca */
   3984 L_3801D5C8:
   3985     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3986     eax = 0; /* 0x3801D5C8: xor eax, eax */
   3987     _cf = 0;
   3988     _flag_k = FK_TEST;
   3989 L_3801D5CA:
   3990     /* test eax, eax */ /* 0x3801D5CA: test eax, eax */
   3991     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3992     _cf = 0;
   3993     _flag_k = FK_TEST;
   3994     MEM32(esi + 0x4) = eax; /* 0x3801D5CC: mov dword ptr [esi + 4], eax */
   3995     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801D5DD; /* 0x3801D5CF: jne 0x3801d5dd */
   3996 L_3801D5D1:
   3997     RECOMP_ICALL(MEM32(0x3804E0F8)); /* 0x3801D5D1: call dword ptr [0x3804e0f8] */
   3998     RECOMP_FLAGS_IN();
   3999     MEM32(eax) = 0xCu; /* 0x3801D5D7: mov dword ptr [eax], 0xc */
   4000 L_3801D5DD:
   4001     edx = MEM32(ebp + 0x8); /* 0x3801D5DD: mov edx, dword ptr [ebp + 8] */
   4002     eax = MEM32(edi + 0x10); /* 0x3801D5E0: mov eax, dword ptr [edi + 0x10] */
   4003     _flag_a = (uint32_t)((edx | 1)); _flag_b = (uint32_t)((edx | 1));
   4004     edx = edx | 1; /* 0x3801D5E3: or edx, 1 */
   4005     _cf = 0;
   4006     _flag_k = FK_TEST;
   4007     edx = ~edx; /* 0x3801D5E6: not edx */
   4008     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4009     eax = eax & edx; /* 0x3801D5E8: and eax, edx */
   4010     _cf = 0;
   4011     _flag_k = FK_TEST;
   4012     MEM32(edi + 0x10) = eax; /* 0x3801D5EA: mov dword ptr [edi + 0x10], eax */
   4013     MEM32(edi) = 0x3804F158u; /* 0x3801D5ED: mov dword ptr [edi], 0x3804f158 */
   4014     eax = edi; /* 0x3801D5F3: mov eax, edi */
   4015     edi = POP32_VAL(esp); /* 0x3801D5F5: pop edi */
   4016     esi = POP32_VAL(esp); /* 0x3801D5F6: pop esi */
   4017     ecx = MEM32(ebp + (-0xC)); /* 0x3801D5F7: mov ecx, dword ptr [ebp - 0xc] */
   4018     MEM32(FS_BASE + (0)) = ecx; /* 0x3801D5FA: mov dword ptr fs:[0], ecx */
   4019     esp = ebp; /* 0x3801D601: mov esp, ebp */
   4020     ebp = POP32_VAL(esp); /* 0x3801D603: pop ebp */
   4021     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D604: ret 4 */
   4022 L_3801D607:
   4023     RECOMP_ICALL(MEM32(0x3804E0F8)); /* 0x3801D607: call dword ptr [0x3804e0f8] */
   4024     RECOMP_FLAGS_IN();
   4025     ecx = MEM32(ebp + (-0xC)); /* 0x3801D60D: mov ecx, dword ptr [ebp - 0xc] */
   4026     MEM32(eax) = 0xCu; /* 0x3801D610: mov dword ptr [eax], 0xc */
   4027     edi = POP32_VAL(esp); /* 0x3801D616: pop edi */
   4028     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4029     eax = 0; /* 0x3801D617: xor eax, eax */
   4030     _cf = 0;
   4031     _flag_k = FK_TEST;
   4032     esi = POP32_VAL(esp); /* 0x3801D619: pop esi */
   4033     MEM32(FS_BASE + (0)) = ecx; /* 0x3801D61A: mov dword ptr fs:[0], ecx */
   4034     esp = ebp; /* 0x3801D621: mov esp, ebp */
   4035     ebp = POP32_VAL(esp); /* 0x3801D623: pop ebp */
   4036     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D624: ret 4 */
   4037     RECOMP_REGS_OUT();
   4038 }
   4039 
   4040 void sub_3801D630(void) {
   4041     int _fpu_cmp = 0;
   4042     uint32_t _cf = 0;
   4043     int _df = 1;
   4044     uint32_t _flag_k = FK_NONE;
   4045     uint32_t _flag_a = 0, _flag_b = 0;
   4046     uint32_t _itail_tgt = 0;
   4047     RECOMP_REGS_LOCALS
   4048     RECOMP_ENTER(0x3801D630u);
   4049 
   4050 L_3801D630:
   4051     PUSH32(esp, ebp); /* 0x3801D630: push ebp */
   4052     ebp = esp; /* 0x3801D631: mov ebp, esp */
   4053     PUSH32(esp, esi); /* 0x3801D633: push esi */
   4054     esi = ecx; /* 0x3801D634: mov esi, ecx */
   4055     RECOMP_ICALL(0x3801D660u); /* 0x3801D636: call 0x3801d660 */ /* not lifted */
   4056     RECOMP_FLAGS_IN();
   4057     /* test MEM8(ebp + 0x8), 1 */ /* 0x3801D63B: test byte ptr [ebp + 8], 1 */
   4058     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4059     _cf = 0;
   4060     _flag_k = FK_NARROW(FK_TEST, 24);
   4061     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D64A; /* 0x3801D63F: je 0x3801d64a */
   4062 L_3801D641:
   4063     PUSH32(esp, esi); /* 0x3801D641: push esi */
   4064     RECOMP_ICALL(0x3804B4F6u); /* 0x3801D642: call 0x3804b4f6 */ /* not lifted */
   4065     RECOMP_FLAGS_IN();
   4066     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4067     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4068     esp = esp + 4; /* 0x3801D647: add esp, 4 */
   4069     _flag_k = FK_ADD;
   4070 L_3801D64A:
   4071     eax = esi; /* 0x3801D64A: mov eax, esi */
   4072     esi = POP32_VAL(esp); /* 0x3801D64C: pop esi */
   4073     ebp = POP32_VAL(esp); /* 0x3801D64D: pop ebp */
   4074     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D64E: ret 4 */
   4075     RECOMP_REGS_OUT();
   4076 }
   4077 
   4078 void sub_3801D660(void) {
   4079     int _fpu_cmp = 0;
   4080     uint32_t _cf = 0;
   4081     int _df = 1;
   4082     uint32_t _flag_k = FK_NONE;
   4083     uint32_t _flag_a = 0, _flag_b = 0;
   4084     uint32_t _itail_tgt = 0;
   4085     RECOMP_REGS_LOCALS
   4086     RECOMP_ENTER(0x3801D660u);
   4087 
   4088 L_3801D660:
   4089     PUSH32(esp, ebp); /* 0x3801D660: push ebp */
   4090     ebp = esp; /* 0x3801D661: mov ebp, esp */
   4091     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801D663: push -1 */
   4092     PUSH32(esp, 0x3804C339u); /* 0x3801D665: push 0x3804c339 */
   4093     eax = MEM32(FS_BASE + (0)); /* 0x3801D66A: mov eax, dword ptr fs:[0] */
   4094     PUSH32(esp, eax); /* 0x3801D670: push eax */
   4095     MEM32(FS_BASE + (0)) = esp; /* 0x3801D671: mov dword ptr fs:[0], esp */
   4096     PUSH32(esp, ecx); /* 0x3801D678: push ecx */
   4097     PUSH32(esp, esi); /* 0x3801D679: push esi */
   4098     esi = ecx; /* 0x3801D67A: mov esi, ecx */
   4099     PUSH32(esp, edi); /* 0x3801D67C: push edi */
   4100     MEM32(ebp + (-0x10)) = esi; /* 0x3801D67D: mov dword ptr [ebp - 0x10], esi */
   4101     MEM32(esi) = 0x3804F168u; /* 0x3801D680: mov dword ptr [esi], 0x3804f168 */
   4102     eax = MEM32(esi + 0x8); /* 0x3801D686: mov eax, dword ptr [esi + 8] */
   4103     /* test eax, eax */ /* 0x3801D689: test eax, eax */
   4104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4105     _cf = 0;
   4106     _flag_k = FK_TEST;
   4107     MEM32(ebp + (-0x4)) = 0; /* 0x3801D68B: mov dword ptr [ebp - 4], 0 */
   4108     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D6AC; /* 0x3801D692: je 0x3801d6ac */
   4109 L_3801D694:
   4110     edi = MEM32(esi + 0x4); /* 0x3801D694: mov edi, dword ptr [esi + 4] */
   4111     /* test edi, edi */ /* 0x3801D697: test edi, edi */
   4112     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4113     _cf = 0;
   4114     _flag_k = FK_TEST;
   4115     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D6AC; /* 0x3801D699: je 0x3801d6ac */
   4116 L_3801D69B:
   4117     ecx = edi; /* 0x3801D69B: mov ecx, edi */
   4118     RECOMP_ICALL(MEM32(0x3804E134)); /* 0x3801D69D: call dword ptr [0x3804e134] */
   4119     RECOMP_FLAGS_IN();
   4120     PUSH32(esp, edi); /* 0x3801D6A3: push edi */
   4121     RECOMP_ICALL(0x3804B4F6u); /* 0x3801D6A4: call 0x3804b4f6 */ /* not lifted */
   4122     RECOMP_FLAGS_IN();
   4123     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4124     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4125     esp = esp + 4; /* 0x3801D6A9: add esp, 4 */
   4126     _flag_k = FK_ADD;
   4127 L_3801D6AC:
   4128     ecx = esi; /* 0x3801D6AC: mov ecx, esi */
   4129     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801D6AE: mov dword ptr [ebp - 4], 0xffffffff */
   4130     RECOMP_ICALL(MEM32(0x3804E144)); /* 0x3801D6B5: call dword ptr [0x3804e144] */
   4131     RECOMP_FLAGS_IN();
   4132     ecx = MEM32(ebp + (-0xC)); /* 0x3801D6BB: mov ecx, dword ptr [ebp - 0xc] */
   4133     edi = POP32_VAL(esp); /* 0x3801D6BE: pop edi */
   4134     esi = POP32_VAL(esp); /* 0x3801D6BF: pop esi */
   4135     MEM32(FS_BASE + (0)) = ecx; /* 0x3801D6C0: mov dword ptr fs:[0], ecx */
   4136     esp = ebp; /* 0x3801D6C7: mov esp, ebp */
   4137     ebp = POP32_VAL(esp); /* 0x3801D6C9: pop ebp */
   4138     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D6CA: ret  */
   4139     RECOMP_REGS_OUT();
   4140 }
   4141 
   4142 void sub_3801D6D0(void) {
   4143     int _fpu_cmp = 0;
   4144     uint32_t _cf = 0;
   4145     int _df = 1;
   4146     uint32_t _flag_k = FK_NONE;
   4147     uint32_t _flag_a = 0, _flag_b = 0;
   4148     uint32_t _itail_tgt = 0;
   4149     RECOMP_REGS_LOCALS
   4150     RECOMP_ENTER(0x3801D6D0u);
   4151 
   4152 L_3801D6D0:
   4153     PUSH32(esp, ebp); /* 0x3801D6D0: push ebp */
   4154     ebp = esp; /* 0x3801D6D1: mov ebp, esp */
   4155     PUSH32(esp, esi); /* 0x3801D6D3: push esi */
   4156     esi = ecx; /* 0x3801D6D4: mov esi, ecx */
   4157     RECOMP_ICALL(0x3801D700u); /* 0x3801D6D6: call 0x3801d700 */ /* not lifted */
   4158     RECOMP_FLAGS_IN();
   4159     /* test MEM8(ebp + 0x8), 1 */ /* 0x3801D6DB: test byte ptr [ebp + 8], 1 */
   4160     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4161     _cf = 0;
   4162     _flag_k = FK_NARROW(FK_TEST, 24);
   4163     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D6EA; /* 0x3801D6DF: je 0x3801d6ea */
   4164 L_3801D6E1:
   4165     PUSH32(esp, esi); /* 0x3801D6E1: push esi */
   4166     RECOMP_ICALL(0x3804B4F6u); /* 0x3801D6E2: call 0x3804b4f6 */ /* not lifted */
   4167     RECOMP_FLAGS_IN();
   4168     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4169     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4170     esp = esp + 4; /* 0x3801D6E7: add esp, 4 */
   4171     _flag_k = FK_ADD;
   4172 L_3801D6EA:
   4173     eax = esi; /* 0x3801D6EA: mov eax, esi */
   4174     esi = POP32_VAL(esp); /* 0x3801D6EC: pop esi */
   4175     ebp = POP32_VAL(esp); /* 0x3801D6ED: pop ebp */
   4176     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D6EE: ret 4 */
   4177     RECOMP_REGS_OUT();
   4178 }
   4179 
   4180 void sub_3801D700(void) {
   4181     int _fpu_cmp = 0;
   4182     uint32_t _cf = 0;
   4183     int _df = 1;
   4184     uint32_t _flag_k = FK_NONE;
   4185     uint32_t _flag_a = 0, _flag_b = 0;
   4186     uint32_t _itail_tgt = 0;
   4187     RECOMP_REGS_LOCALS
   4188     RECOMP_ENTER(0x3801D700u);
   4189 
   4190 L_3801D700:
   4191     PUSH32(esp, ebp); /* 0x3801D700: push ebp */
   4192     ebp = esp; /* 0x3801D701: mov ebp, esp */
   4193     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801D703: push -1 */
   4194     PUSH32(esp, 0x3804C362u); /* 0x3801D705: push 0x3804c362 */
   4195     eax = MEM32(FS_BASE + (0)); /* 0x3801D70A: mov eax, dword ptr fs:[0] */
   4196     PUSH32(esp, eax); /* 0x3801D710: push eax */
   4197     MEM32(FS_BASE + (0)) = esp; /* 0x3801D711: mov dword ptr fs:[0], esp */
   4198     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4200     esp = esp - 8; /* 0x3801D718: sub esp, 8 */
   4201     _flag_k = FK_CMP;
   4202     PUSH32(esp, ebx); /* 0x3801D71B: push ebx */
   4203     PUSH32(esp, esi); /* 0x3801D71C: push esi */
   4204     PUSH32(esp, edi); /* 0x3801D71D: push edi */
   4205     edi = ecx; /* 0x3801D71E: mov edi, ecx */
   4206     MEM32(ebp + (-0x10)) = edi; /* 0x3801D720: mov dword ptr [ebp - 0x10], edi */
   4207     MEM32(edi) = 0x3804F158u; /* 0x3801D723: mov dword ptr [edi], 0x3804f158 */
   4208     esi = edi + 0x28; /* 0x3801D729: lea esi, [edi + 0x28] */
   4209     MEM32(ebp + (-0x4)) = 0; /* 0x3801D72C: mov dword ptr [ebp - 4], 0 */
   4210     MEM32(ebp + (-0x14)) = esi; /* 0x3801D733: mov dword ptr [ebp - 0x14], esi */
   4211     MEM32(esi) = 0x3804F168u; /* 0x3801D736: mov dword ptr [esi], 0x3804f168 */
   4212     eax = MEM32(esi + 0x8); /* 0x3801D73C: mov eax, dword ptr [esi + 8] */
   4213     /* test eax, eax */ /* 0x3801D73F: test eax, eax */
   4214     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4215     _cf = 0;
   4216     _flag_k = FK_TEST;
   4217     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3801D741: mov byte ptr [ebp - 4], 1 */
   4218     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D75F; /* 0x3801D745: je 0x3801d75f */
   4219 L_3801D747:
   4220     ebx = MEM32(esi + 0x4); /* 0x3801D747: mov ebx, dword ptr [esi + 4] */
   4221     /* test ebx, ebx */ /* 0x3801D74A: test ebx, ebx */
   4222     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4223     _cf = 0;
   4224     _flag_k = FK_TEST;
   4225     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D75F; /* 0x3801D74C: je 0x3801d75f */
   4226 L_3801D74E:
   4227     ecx = ebx; /* 0x3801D74E: mov ecx, ebx */
   4228     RECOMP_ICALL(MEM32(0x3804E134)); /* 0x3801D750: call dword ptr [0x3804e134] */
   4229     RECOMP_FLAGS_IN();
   4230     PUSH32(esp, ebx); /* 0x3801D756: push ebx */
   4231     RECOMP_ICALL(0x3804B4F6u); /* 0x3801D757: call 0x3804b4f6 */ /* not lifted */
   4232     RECOMP_FLAGS_IN();
   4233     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4234     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4235     esp = esp + 4; /* 0x3801D75C: add esp, 4 */
   4236     _flag_k = FK_ADD;
   4237 L_3801D75F:
   4238     ecx = esi; /* 0x3801D75F: mov ecx, esi */
   4239     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3801D761: mov byte ptr [ebp - 4], 0 */
   4240     RECOMP_ICALL(MEM32(0x3804E144)); /* 0x3801D765: call dword ptr [0x3804e144] */
   4241     RECOMP_FLAGS_IN();
   4242     ecx = edi; /* 0x3801D76B: mov ecx, edi */
   4243     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801D76D: mov dword ptr [ebp - 4], 0xffffffff */
   4244     RECOMP_ICALL(MEM32(0x3804E130)); /* 0x3801D774: call dword ptr [0x3804e130] */
   4245     RECOMP_FLAGS_IN();
   4246     ecx = MEM32(ebp + (-0xC)); /* 0x3801D77A: mov ecx, dword ptr [ebp - 0xc] */
   4247     edi = POP32_VAL(esp); /* 0x3801D77D: pop edi */
   4248     esi = POP32_VAL(esp); /* 0x3801D77E: pop esi */
   4249     ebx = POP32_VAL(esp); /* 0x3801D77F: pop ebx */
   4250     MEM32(FS_BASE + (0)) = ecx; /* 0x3801D780: mov dword ptr fs:[0], ecx */
   4251     esp = ebp; /* 0x3801D787: mov esp, ebp */
   4252     ebp = POP32_VAL(esp); /* 0x3801D789: pop ebp */
   4253     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D78A: ret  */
   4254     RECOMP_REGS_OUT();
   4255 }
   4256 
   4257 void sub_3801D790(void) {
   4258     int _fpu_cmp = 0;
   4259     uint32_t _cf = 0;
   4260     int _df = 1;
   4261     uint32_t _flag_k = FK_NONE;
   4262     uint32_t _flag_a = 0, _flag_b = 0;
   4263     uint32_t _itail_tgt = 0;
   4264     RECOMP_REGS_LOCALS
   4265     RECOMP_ENTER(0x3801D790u);
   4266 
   4267 L_3801D790:
   4268     RECOMP_ICALL(0x3801D7A0u); /* 0x3801D790: call 0x3801d7a0 */ /* not lifted */
   4269     RECOMP_FLAGS_IN();
   4270     goto L_3801D7B0; /* 0x3801D795: jmp 0x3801d7b0 */
   4271 L_3801D7B0:
   4272     PUSH32(esp, 0x3801D7C0u); /* 0x3801D7B0: push 0x3801d7c0 */
   4273     RECOMP_ICALL(0x3804B54Cu); /* 0x3801D7B5: call 0x3804b54c */ /* not lifted */
   4274     RECOMP_FLAGS_IN();
   4275     ecx = POP32_VAL(esp); /* 0x3801D7BA: pop ecx */
   4276     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D7BB: ret  */
   4277     RECOMP_REGS_OUT();
   4278 }
   4279 
   4280 void sub_3801D7A0(void) {
   4281     int _fpu_cmp = 0;
   4282     uint32_t _cf = 0;
   4283     int _df = 1;
   4284     uint32_t _flag_k = FK_NONE;
   4285     uint32_t _flag_a = 0, _flag_b = 0;
   4286     uint32_t _itail_tgt = 0;
   4287     RECOMP_REGS_LOCALS
   4288     RECOMP_ENTER(0x3801D7A0u);
   4289 
   4290 L_3801D7A0:
   4291     ecx = 0x3806EC31u; /* 0x3801D7A0: mov ecx, 0x3806ec31 */
   4292 L_3801D7A5:
   4293     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
   4294     { RECOMP_REGS_OUT(); return; } /* end of function */
   4295   _ljump:
   4296     switch (_itail_tgt) {
   4297       case 0x3801D7A0u: goto L_3801D7A0;
   4298       case 0x3801D7A5u: goto L_3801D7A5;
   4299       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4300     }
   4301     RECOMP_REGS_OUT();
   4302 }
   4303 
   4304 void sub_3801D7B0(void) {
   4305     int _fpu_cmp = 0;
   4306     uint32_t _cf = 0;
   4307     int _df = 1;
   4308     uint32_t _flag_k = FK_NONE;
   4309     uint32_t _flag_a = 0, _flag_b = 0;
   4310     uint32_t _itail_tgt = 0;
   4311     RECOMP_REGS_LOCALS
   4312     RECOMP_ENTER(0x3801D7B0u);
   4313 
   4314 L_3801D7B0:
   4315     PUSH32(esp, 0x3801D7C0u); /* 0x3801D7B0: push 0x3801d7c0 */
   4316     RECOMP_ICALL(0x3804B54Cu); /* 0x3801D7B5: call 0x3804b54c */ /* not lifted */
   4317     RECOMP_FLAGS_IN();
   4318     ecx = POP32_VAL(esp); /* 0x3801D7BA: pop ecx */
   4319     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D7BB: ret  */
   4320     RECOMP_REGS_OUT();
   4321 }
   4322 
   4323 void sub_3801D7C0(void) {
   4324     int _fpu_cmp = 0;
   4325     uint32_t _cf = 0;
   4326     int _df = 1;
   4327     uint32_t _flag_k = FK_NONE;
   4328     uint32_t _flag_a = 0, _flag_b = 0;
   4329     uint32_t _itail_tgt = 0;
   4330     RECOMP_REGS_LOCALS
   4331     RECOMP_ENTER(0x3801D7C0u);
   4332 
   4333 L_3801D7C0:
   4334     ecx = 0x3806EC31u; /* 0x3801D7C0: mov ecx, 0x3806ec31 */
   4335 L_3801D7C5:
   4336     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
   4337     { RECOMP_REGS_OUT(); return; } /* end of function */
   4338   _ljump:
   4339     switch (_itail_tgt) {
   4340       case 0x3801D7C0u: goto L_3801D7C0;
   4341       case 0x3801D7C5u: goto L_3801D7C5;
   4342       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4343     }
   4344     RECOMP_REGS_OUT();
   4345 }
   4346 
   4347 void sub_3801D7D0(void) {
   4348     int _fpu_cmp = 0;
   4349     uint32_t _cf = 0;
   4350     int _df = 1;
   4351     uint32_t _flag_k = FK_NONE;
   4352     uint32_t _flag_a = 0, _flag_b = 0;
   4353     uint32_t _itail_tgt = 0;
   4354     RECOMP_REGS_LOCALS
   4355     RECOMP_ENTER(0x3801D7D0u);
   4356 
   4357 L_3801D7D0:
   4358     RECOMP_ICALL(0x3801D7E0u); /* 0x3801D7D0: call 0x3801d7e0 */ /* not lifted */
   4359     RECOMP_FLAGS_IN();
   4360     goto L_3801D7F0; /* 0x3801D7D5: jmp 0x3801d7f0 */
   4361 L_3801D7F0:
   4362     PUSH32(esp, 0x3801D800u); /* 0x3801D7F0: push 0x3801d800 */
   4363     RECOMP_ICALL(0x3804B54Cu); /* 0x3801D7F5: call 0x3804b54c */ /* not lifted */
   4364     RECOMP_FLAGS_IN();
   4365     ecx = POP32_VAL(esp); /* 0x3801D7FA: pop ecx */
   4366     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D7FB: ret  */
   4367     RECOMP_REGS_OUT();
   4368 }
   4369 
   4370 void sub_3801D7E0(void) {
   4371     int _fpu_cmp = 0;
   4372     uint32_t _cf = 0;
   4373     int _df = 1;
   4374     uint32_t _flag_k = FK_NONE;
   4375     uint32_t _flag_a = 0, _flag_b = 0;
   4376     uint32_t _itail_tgt = 0;
   4377     RECOMP_REGS_LOCALS
   4378     RECOMP_ENTER(0x3801D7E0u);
   4379 
   4380 L_3801D7E0:
   4381     ecx = 0x3806EC30u; /* 0x3801D7E0: mov ecx, 0x3806ec30 */
   4382 L_3801D7E5:
   4383     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
   4384     { RECOMP_REGS_OUT(); return; } /* end of function */
   4385   _ljump:
   4386     switch (_itail_tgt) {
   4387       case 0x3801D7E0u: goto L_3801D7E0;
   4388       case 0x3801D7E5u: goto L_3801D7E5;
   4389       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4390     }
   4391     RECOMP_REGS_OUT();
   4392 }
   4393 
   4394 void sub_3801D7F0(void) {
   4395     int _fpu_cmp = 0;
   4396     uint32_t _cf = 0;
   4397     int _df = 1;
   4398     uint32_t _flag_k = FK_NONE;
   4399     uint32_t _flag_a = 0, _flag_b = 0;
   4400     uint32_t _itail_tgt = 0;
   4401     RECOMP_REGS_LOCALS
   4402     RECOMP_ENTER(0x3801D7F0u);
   4403 
   4404 L_3801D7F0:
   4405     PUSH32(esp, 0x3801D800u); /* 0x3801D7F0: push 0x3801d800 */
   4406     RECOMP_ICALL(0x3804B54Cu); /* 0x3801D7F5: call 0x3804b54c */ /* not lifted */
   4407     RECOMP_FLAGS_IN();
   4408     ecx = POP32_VAL(esp); /* 0x3801D7FA: pop ecx */
   4409     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D7FB: ret  */
   4410     RECOMP_REGS_OUT();
   4411 }
   4412 
   4413 void sub_3801D800(void) {
   4414     int _fpu_cmp = 0;
   4415     uint32_t _cf = 0;
   4416     int _df = 1;
   4417     uint32_t _flag_k = FK_NONE;
   4418     uint32_t _flag_a = 0, _flag_b = 0;
   4419     uint32_t _itail_tgt = 0;
   4420     RECOMP_REGS_LOCALS
   4421     RECOMP_ENTER(0x3801D800u);
   4422 
   4423 L_3801D800:
   4424     ecx = 0x3806EC30u; /* 0x3801D800: mov ecx, 0x3806ec30 */
   4425 L_3801D805:
   4426     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
   4427     { RECOMP_REGS_OUT(); return; } /* end of function */
   4428   _ljump:
   4429     switch (_itail_tgt) {
   4430       case 0x3801D800u: goto L_3801D800;
   4431       case 0x3801D805u: goto L_3801D805;
   4432       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4433     }
   4434     RECOMP_REGS_OUT();
   4435 }
   4436 
   4437 void sub_3801D810(void) {
   4438     int _fpu_cmp = 0;
   4439     uint32_t _cf = 0;
   4440     int _df = 1;
   4441     uint32_t _flag_k = FK_NONE;
   4442     uint32_t _flag_a = 0, _flag_b = 0;
   4443     uint32_t _itail_tgt = 0;
   4444     RECOMP_REGS_LOCALS
   4445     RECOMP_ENTER(0x3801D810u);
   4446 
   4447 L_3801D810:
   4448     goto L_3801D820; /* 0x3801D810: jmp 0x3801d820 */
   4449 L_3801D820:
   4450     MEM32(0x3806EC2C) = 0x3806B9CCu; /* 0x3801D820: mov dword ptr [0x3806ec2c], 0x3806b9cc */
   4451     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D82A: ret  */
   4452     RECOMP_REGS_OUT();
   4453 }
   4454 
   4455 void sub_3801D820(void) {
   4456     int _fpu_cmp = 0;
   4457     uint32_t _cf = 0;
   4458     int _df = 1;
   4459     uint32_t _flag_k = FK_NONE;
   4460     uint32_t _flag_a = 0, _flag_b = 0;
   4461     uint32_t _itail_tgt = 0;
   4462     RECOMP_REGS_LOCALS
   4463     RECOMP_ENTER(0x3801D820u);
   4464 
   4465 L_3801D820:
   4466     MEM32(0x3806EC2C) = 0x3806B9CCu; /* 0x3801D820: mov dword ptr [0x3806ec2c], 0x3806b9cc */
   4467     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D82A: ret  */
   4468     RECOMP_REGS_OUT();
   4469 }
   4470 
   4471 void sub_3801D830(void) {
   4472     int _fpu_cmp = 0;
   4473     uint32_t _cf = 0;
   4474     int _df = 1;
   4475     uint32_t _flag_k = FK_NONE;
   4476     uint32_t _flag_a = 0, _flag_b = 0;
   4477     uint32_t _itail_tgt = 0;
   4478     RECOMP_REGS_LOCALS
   4479     RECOMP_ENTER(0x3801D830u);
   4480 
   4481 L_3801D830:
   4482     goto L_3801D840; /* 0x3801D830: jmp 0x3801d840 */
   4483 L_3801D840:
   4484     MEM32(0x3806EC28) = 0x3806BA00u; /* 0x3801D840: mov dword ptr [0x3806ec28], 0x3806ba00 */
   4485     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D84A: ret  */
   4486     RECOMP_REGS_OUT();
   4487 }
   4488 
   4489 void sub_3801D840(void) {
   4490     int _fpu_cmp = 0;
   4491     uint32_t _cf = 0;
   4492     int _df = 1;
   4493     uint32_t _flag_k = FK_NONE;
   4494     uint32_t _flag_a = 0, _flag_b = 0;
   4495     uint32_t _itail_tgt = 0;
   4496     RECOMP_REGS_LOCALS
   4497     RECOMP_ENTER(0x3801D840u);
   4498 
   4499 L_3801D840:
   4500     MEM32(0x3806EC28) = 0x3806BA00u; /* 0x3801D840: mov dword ptr [0x3806ec28], 0x3806ba00 */
   4501     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D84A: ret  */
   4502     RECOMP_REGS_OUT();
   4503 }
   4504 
   4505 void sub_3801D850(void) {
   4506     int _fpu_cmp = 0;
   4507     uint32_t _cf = 0;
   4508     int _df = 1;
   4509     uint32_t _flag_k = FK_NONE;
   4510     uint32_t _flag_a = 0, _flag_b = 0;
   4511     uint32_t _itail_tgt = 0;
   4512     RECOMP_REGS_LOCALS
   4513     RECOMP_ENTER(0x3801D850u);
   4514 
   4515 L_3801D850:
   4516     goto L_3801D860; /* 0x3801D850: jmp 0x3801d860 */
   4517 L_3801D860:
   4518     MEM32(0x3806EC24) = 0x3806BA3Cu; /* 0x3801D860: mov dword ptr [0x3806ec24], 0x3806ba3c */
   4519     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D86A: ret  */
   4520     RECOMP_REGS_OUT();
   4521 }
   4522 
   4523 void sub_3801D860(void) {
   4524     int _fpu_cmp = 0;
   4525     uint32_t _cf = 0;
   4526     int _df = 1;
   4527     uint32_t _flag_k = FK_NONE;
   4528     uint32_t _flag_a = 0, _flag_b = 0;
   4529     uint32_t _itail_tgt = 0;
   4530     RECOMP_REGS_LOCALS
   4531     RECOMP_ENTER(0x3801D860u);
   4532 
   4533 L_3801D860:
   4534     MEM32(0x3806EC24) = 0x3806BA3Cu; /* 0x3801D860: mov dword ptr [0x3806ec24], 0x3806ba3c */
   4535     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D86A: ret  */
   4536     RECOMP_REGS_OUT();
   4537 }
   4538 
   4539 void sub_3801D870(void) {
   4540     int _fpu_cmp = 0;
   4541     uint32_t _cf = 0;
   4542     int _df = 1;
   4543     uint32_t _flag_k = FK_NONE;
   4544     uint32_t _flag_a = 0, _flag_b = 0;
   4545     uint32_t _itail_tgt = 0;
   4546     RECOMP_REGS_LOCALS
   4547     RECOMP_ENTER(0x3801D870u);
   4548 
   4549 L_3801D870:
   4550     goto L_3801D880; /* 0x3801D870: jmp 0x3801d880 */
   4551 L_3801D880:
   4552     MEM32(0x3806EC20) = 0x3806BA70u; /* 0x3801D880: mov dword ptr [0x3806ec20], 0x3806ba70 */
   4553     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D88A: ret  */
   4554     RECOMP_REGS_OUT();
   4555 }
   4556 
   4557 void sub_3801D880(void) {
   4558     int _fpu_cmp = 0;
   4559     uint32_t _cf = 0;
   4560     int _df = 1;
   4561     uint32_t _flag_k = FK_NONE;
   4562     uint32_t _flag_a = 0, _flag_b = 0;
   4563     uint32_t _itail_tgt = 0;
   4564     RECOMP_REGS_LOCALS
   4565     RECOMP_ENTER(0x3801D880u);
   4566 
   4567 L_3801D880:
   4568     MEM32(0x3806EC20) = 0x3806BA70u; /* 0x3801D880: mov dword ptr [0x3806ec20], 0x3806ba70 */
   4569     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D88A: ret  */
   4570     RECOMP_REGS_OUT();
   4571 }
   4572 
   4573 void sub_3801D890(void) {
   4574     int _fpu_cmp = 0;
   4575     uint32_t _cf = 0;
   4576     int _df = 1;
   4577     uint32_t _flag_k = FK_NONE;
   4578     uint32_t _flag_a = 0, _flag_b = 0;
   4579     uint32_t _itail_tgt = 0;
   4580     RECOMP_REGS_LOCALS
   4581     RECOMP_ENTER(0x3801D890u);
   4582 
   4583 L_3801D890:
   4584     goto L_3801D8A0; /* 0x3801D890: jmp 0x3801d8a0 */
   4585 L_3801D8A0:
   4586     MEM32(0x3806EC1C) = 0x3806BAA4u; /* 0x3801D8A0: mov dword ptr [0x3806ec1c], 0x3806baa4 */
   4587     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D8AA: ret  */
   4588     RECOMP_REGS_OUT();
   4589 }
   4590 
   4591 void sub_3801D8A0(void) {
   4592     int _fpu_cmp = 0;
   4593     uint32_t _cf = 0;
   4594     int _df = 1;
   4595     uint32_t _flag_k = FK_NONE;
   4596     uint32_t _flag_a = 0, _flag_b = 0;
   4597     uint32_t _itail_tgt = 0;
   4598     RECOMP_REGS_LOCALS
   4599     RECOMP_ENTER(0x3801D8A0u);
   4600 
   4601 L_3801D8A0:
   4602     MEM32(0x3806EC1C) = 0x3806BAA4u; /* 0x3801D8A0: mov dword ptr [0x3806ec1c], 0x3806baa4 */
   4603     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D8AA: ret  */
   4604     RECOMP_REGS_OUT();
   4605 }
   4606 
   4607 void sub_3801D8B0(void) {
   4608     int _fpu_cmp = 0;
   4609     uint32_t _cf = 0;
   4610     int _df = 1;
   4611     uint32_t _flag_k = FK_NONE;
   4612     uint32_t _flag_a = 0, _flag_b = 0;
   4613     uint32_t _itail_tgt = 0;
   4614     RECOMP_REGS_LOCALS
   4615     RECOMP_ENTER(0x3801D8B0u);
   4616 
   4617 L_3801D8B0:
   4618     goto L_3801D8C0; /* 0x3801D8B0: jmp 0x3801d8c0 */
   4619 L_3801D8C0:
   4620     MEM32(0x3806EC18) = 0x3806BAD8u; /* 0x3801D8C0: mov dword ptr [0x3806ec18], 0x3806bad8 */
   4621     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D8CA: ret  */
   4622     RECOMP_REGS_OUT();
   4623 }
   4624 
   4625 void sub_3801D8C0(void) {
   4626     int _fpu_cmp = 0;
   4627     uint32_t _cf = 0;
   4628     int _df = 1;
   4629     uint32_t _flag_k = FK_NONE;
   4630     uint32_t _flag_a = 0, _flag_b = 0;
   4631     uint32_t _itail_tgt = 0;
   4632     RECOMP_REGS_LOCALS
   4633     RECOMP_ENTER(0x3801D8C0u);
   4634 
   4635 L_3801D8C0:
   4636     MEM32(0x3806EC18) = 0x3806BAD8u; /* 0x3801D8C0: mov dword ptr [0x3806ec18], 0x3806bad8 */
   4637     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D8CA: ret  */
   4638     RECOMP_REGS_OUT();
   4639 }
   4640 
   4641 void sub_3801D8D0(void) {
   4642     int _fpu_cmp = 0;
   4643     uint32_t _cf = 0;
   4644     int _df = 1;
   4645     uint32_t _flag_k = FK_NONE;
   4646     uint32_t _flag_a = 0, _flag_b = 0;
   4647     uint32_t _itail_tgt = 0;
   4648     RECOMP_REGS_LOCALS
   4649     RECOMP_ENTER(0x3801D8D0u);
   4650 
   4651 L_3801D8D0:
   4652     goto L_3801D8E0; /* 0x3801D8D0: jmp 0x3801d8e0 */
   4653 L_3801D8E0:
   4654     MEM32(0x3806EC14) = 0x3806BB10u; /* 0x3801D8E0: mov dword ptr [0x3806ec14], 0x3806bb10 */
   4655     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D8EA: ret  */
   4656     RECOMP_REGS_OUT();
   4657 }
   4658 
   4659 void sub_3801D8E0(void) {
   4660     int _fpu_cmp = 0;
   4661     uint32_t _cf = 0;
   4662     int _df = 1;
   4663     uint32_t _flag_k = FK_NONE;
   4664     uint32_t _flag_a = 0, _flag_b = 0;
   4665     uint32_t _itail_tgt = 0;
   4666     RECOMP_REGS_LOCALS
   4667     RECOMP_ENTER(0x3801D8E0u);
   4668 
   4669 L_3801D8E0:
   4670     MEM32(0x3806EC14) = 0x3806BB10u; /* 0x3801D8E0: mov dword ptr [0x3806ec14], 0x3806bb10 */
   4671     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D8EA: ret  */
   4672     RECOMP_REGS_OUT();
   4673 }
   4674 
   4675 void sub_3801D8F0(void) {
   4676     int _fpu_cmp = 0;
   4677     uint32_t _cf = 0;
   4678     int _df = 1;
   4679     uint32_t _flag_k = FK_NONE;
   4680     uint32_t _flag_a = 0, _flag_b = 0;
   4681     uint32_t _itail_tgt = 0;
   4682     RECOMP_REGS_LOCALS
   4683     RECOMP_ENTER(0x3801D8F0u);
   4684 
   4685 L_3801D8F0:
   4686     PUSH32(esp, esi); /* 0x3801D8F0: push esi */
   4687     esi = ecx; /* 0x3801D8F1: mov esi, ecx */
   4688     RECOMP_ICALL(0x3801BAE0u); /* 0x3801D8F3: call 0x3801bae0 */ /* not lifted */
   4689     RECOMP_FLAGS_IN();
   4690     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4691     eax = 0; /* 0x3801D8F8: xor eax, eax */
   4692     _cf = 0;
   4693     _flag_k = FK_TEST;
   4694     MEM32(esi + 0x98) = eax; /* 0x3801D8FA: mov dword ptr [esi + 0x98], eax */
   4695     MEM32(esi + 0x9C) = eax; /* 0x3801D900: mov dword ptr [esi + 0x9c], eax */
   4696     MEM32(esi + 0xA0) = eax; /* 0x3801D906: mov dword ptr [esi + 0xa0], eax */
   4697     MEM32(esi) = 0x3804F190u; /* 0x3801D90C: mov dword ptr [esi], 0x3804f190 */
   4698     eax = esi; /* 0x3801D912: mov eax, esi */
   4699     esi = POP32_VAL(esp); /* 0x3801D914: pop esi */
   4700     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D915: ret 4 */
   4701     RECOMP_REGS_OUT();
   4702 }
   4703 
   4704 void sub_3801D920(void) {
   4705     int _fpu_cmp = 0;
   4706     uint32_t _cf = 0;
   4707     int _df = 1;
   4708     uint32_t _flag_k = FK_NONE;
   4709     uint32_t _flag_a = 0, _flag_b = 0;
   4710     uint32_t _itail_tgt = 0;
   4711     RECOMP_REGS_LOCALS
   4712     RECOMP_ENTER(0x3801D920u);
   4713 
   4714 L_3801D920:
   4715     PUSH32(esp, ebp); /* 0x3801D920: push ebp */
   4716     ebp = esp; /* 0x3801D921: mov ebp, esp */
   4717     PUSH32(esp, ebx); /* 0x3801D923: push ebx */
   4718     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3801D924: mov bl, byte ptr [ebp + 8] */
   4719     /* test LO8(ebx), 2 */ /* 0x3801D927: test bl, 2 */
   4720     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4721     _cf = 0;
   4722     _flag_k = FK_NARROW(FK_TEST, 24);
   4723     PUSH32(esp, esi); /* 0x3801D92A: push esi */
   4724     esi = ecx; /* 0x3801D92B: mov esi, ecx */
   4725     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D95E; /* 0x3801D92D: je 0x3801d95e */
   4726 L_3801D92F:
   4727     eax = MEM32(esi + (-0x4)); /* 0x3801D92F: mov eax, dword ptr [esi - 4] */
   4728     PUSH32(esp, edi); /* 0x3801D932: push edi */
   4729     PUSH32(esp, 0x3801D9E0u); /* 0x3801D933: push 0x3801d9e0 */
   4730     edi = esi + (-0x4); /* 0x3801D938: lea edi, [esi - 4] */
   4731     PUSH32(esp, eax); /* 0x3801D93B: push eax */
   4732     PUSH32(esp, 0xACu); /* 0x3801D93C: push 0xac */
   4733     PUSH32(esp, esi); /* 0x3801D941: push esi */
   4734     RECOMP_ICALL(0x3804B582u); /* 0x3801D942: call 0x3804b582 */ /* not lifted */
   4735     RECOMP_FLAGS_IN();
   4736     /* test LO8(ebx), 1 */ /* 0x3801D947: test bl, 1 */
   4737     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4738     _cf = 0;
   4739     _flag_k = FK_NARROW(FK_TEST, 24);
   4740     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D955; /* 0x3801D94A: je 0x3801d955 */
   4741 L_3801D94C:
   4742     PUSH32(esp, edi); /* 0x3801D94C: push edi */
   4743     RECOMP_ICALL(0x3804B4F6u); /* 0x3801D94D: call 0x3804b4f6 */ /* not lifted */
   4744     RECOMP_FLAGS_IN();
   4745     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4747     esp = esp + 4; /* 0x3801D952: add esp, 4 */
   4748     _flag_k = FK_ADD;
   4749 L_3801D955:
   4750     eax = edi; /* 0x3801D955: mov eax, edi */
   4751     edi = POP32_VAL(esp); /* 0x3801D957: pop edi */
   4752     esi = POP32_VAL(esp); /* 0x3801D958: pop esi */
   4753     ebx = POP32_VAL(esp); /* 0x3801D959: pop ebx */
   4754     ebp = POP32_VAL(esp); /* 0x3801D95A: pop ebp */
   4755     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D95B: ret 4 */
   4756 L_3801D95E:
   4757     ecx = esi; /* 0x3801D95E: mov ecx, esi */
   4758     RECOMP_ICALL(0x3801D9E0u); /* 0x3801D960: call 0x3801d9e0 */ /* not lifted */
   4759     RECOMP_FLAGS_IN();
   4760     /* test LO8(ebx), 1 */ /* 0x3801D965: test bl, 1 */
   4761     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4762     _cf = 0;
   4763     _flag_k = FK_NARROW(FK_TEST, 24);
   4764     if (TEST_Z(_flag_a, _flag_b)) goto L_3801D973; /* 0x3801D968: je 0x3801d973 */
   4765 L_3801D96A:
   4766     PUSH32(esp, esi); /* 0x3801D96A: push esi */
   4767     RECOMP_ICALL(0x3804B4F6u); /* 0x3801D96B: call 0x3804b4f6 */ /* not lifted */
   4768     RECOMP_FLAGS_IN();
   4769     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4770     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4771     esp = esp + 4; /* 0x3801D970: add esp, 4 */
   4772     _flag_k = FK_ADD;
   4773 L_3801D973:
   4774     eax = esi; /* 0x3801D973: mov eax, esi */
   4775     esi = POP32_VAL(esp); /* 0x3801D975: pop esi */
   4776     ebx = POP32_VAL(esp); /* 0x3801D976: pop ebx */
   4777     ebp = POP32_VAL(esp); /* 0x3801D977: pop ebp */
   4778     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801D978: ret 4 */
   4779     RECOMP_REGS_OUT();
   4780 }
   4781 
   4782 void sub_3801D980(void) {
   4783     int _fpu_cmp = 0;
   4784     uint32_t _cf = 0;
   4785     int _df = 1;
   4786     uint32_t _flag_k = FK_NONE;
   4787     uint32_t _flag_a = 0, _flag_b = 0;
   4788     uint32_t _itail_tgt = 0;
   4789     RECOMP_REGS_LOCALS
   4790     RECOMP_ENTER(0x3801D980u);
   4791 
   4792 L_3801D980:
   4793     PUSH32(esp, esi); /* 0x3801D980: push esi */
   4794     esi = ecx; /* 0x3801D981: mov esi, ecx */
   4795     RECOMP_ICALL(0x3801BAE0u); /* 0x3801D983: call 0x3801bae0 */ /* not lifted */
   4796     RECOMP_FLAGS_IN();
   4797     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4798     eax = 0; /* 0x3801D988: xor eax, eax */
   4799     _cf = 0;
   4800     _flag_k = FK_TEST;
   4801     MEM32(esi + 0x98) = eax; /* 0x3801D98A: mov dword ptr [esi + 0x98], eax */
   4802     MEM32(esi + 0x9C) = eax; /* 0x3801D990: mov dword ptr [esi + 0x9c], eax */
   4803     MEM32(esi + 0xA0) = eax; /* 0x3801D996: mov dword ptr [esi + 0xa0], eax */
   4804     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4805     ecx = ecx | 0xFFFFFFFFu; /* 0x3801D99C: or ecx, 0xffffffff */
   4806     _cf = 0;
   4807     _flag_k = FK_TEST;
   4808     MEM32(esi + 0x94) = eax; /* 0x3801D99F: mov dword ptr [esi + 0x94], eax */
   4809     MEM32(esi + 0x88) = eax; /* 0x3801D9A5: mov dword ptr [esi + 0x88], eax */
   4810     MEM32(esi + 0x80) = eax; /* 0x3801D9AB: mov dword ptr [esi + 0x80], eax */
   4811     MEM8(esi + 0xA4) = (uint8_t)(LO8(eax)); /* 0x3801D9B1: mov byte ptr [esi + 0xa4], al */
   4812     MEM32(esi) = 0x3804F190u; /* 0x3801D9B7: mov dword ptr [esi], 0x3804f190 */
   4813     MEM32(esi + 0x84) = ecx; /* 0x3801D9BD: mov dword ptr [esi + 0x84], ecx */
   4814     MEM32(esi + 0x8C) = ecx; /* 0x3801D9C3: mov dword ptr [esi + 0x8c], ecx */
   4815     MEM32(esi + 0x90) = ecx; /* 0x3801D9C9: mov dword ptr [esi + 0x90], ecx */
   4816     MEM32(esi + 0xA8) = 0x42F00000u; /* 0x3801D9CF: mov dword ptr [esi + 0xa8], 0x42f00000 */
   4817     eax = esi; /* 0x3801D9D9: mov eax, esi */
   4818     esi = POP32_VAL(esp); /* 0x3801D9DB: pop esi */
   4819     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801D9DC: ret  */
   4820     RECOMP_REGS_OUT();
   4821 }
   4822 
   4823 void sub_3801D9E0(void) {
   4824     int _fpu_cmp = 0;
   4825     uint32_t _cf = 0;
   4826     int _df = 1;
   4827     uint32_t _flag_k = FK_NONE;
   4828     uint32_t _flag_a = 0, _flag_b = 0;
   4829     uint32_t _itail_tgt = 0;
   4830     RECOMP_REGS_LOCALS
   4831     RECOMP_ENTER(0x3801D9E0u);
   4832 
   4833     goto L_3801D9E0;
   4834 L_3801BCE0:
   4835     PUSH32(esp, ebp); /* 0x3801BCE0: push ebp */
   4836     ebp = esp; /* 0x3801BCE1: mov ebp, esp */
   4837     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801BCE3: push -1 */
   4838     PUSH32(esp, 0x3804C25Cu); /* 0x3801BCE5: push 0x3804c25c */
   4839     eax = MEM32(FS_BASE + (0)); /* 0x3801BCEA: mov eax, dword ptr fs:[0] */
   4840     PUSH32(esp, eax); /* 0x3801BCF0: push eax */
   4841     MEM32(FS_BASE + (0)) = esp; /* 0x3801BCF1: mov dword ptr fs:[0], esp */
   4842     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4844     esp = esp - 0x14u; /* 0x3801BCF8: sub esp, 0x14 */
   4845     _flag_k = FK_CMP;
   4846     PUSH32(esp, ebx); /* 0x3801BCFB: push ebx */
   4847     PUSH32(esp, esi); /* 0x3801BCFC: push esi */
   4848     PUSH32(esp, edi); /* 0x3801BCFD: push edi */
   4849     edi = ecx; /* 0x3801BCFE: mov edi, ecx */
   4850     MEM32(ebp + (-0x14)) = edi; /* 0x3801BD00: mov dword ptr [ebp - 0x14], edi */
   4851     MEM32(edi) = 0x3804F104u; /* 0x3801BD03: mov dword ptr [edi], 0x3804f104 */
   4852     esi = MEM32(edi + 0x48); /* 0x3801BD09: mov esi, dword ptr [edi + 0x48] */
   4853     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4854     ebx = 0; /* 0x3801BD0C: xor ebx, ebx */
   4855     _cf = 0;
   4856     _flag_k = FK_TEST;
   4857     /* cmp esi, ebx */ /* 0x3801BD0E: cmp esi, ebx */
   4858     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4860     _flag_k = FK_CMP;
   4861     MEM32(ebp + (-0x4)) = ebx; /* 0x3801BD10: mov dword ptr [ebp - 4], ebx */
   4862     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BD25; /* 0x3801BD13: je 0x3801bd25 */
   4863 L_3801BD15:
   4864     ecx = esi; /* 0x3801BD15: mov ecx, esi */
   4865     RECOMP_ICALL(0x38021550u); /* 0x3801BD17: call 0x38021550 */ /* not lifted */
   4866     RECOMP_FLAGS_IN();
   4867     PUSH32(esp, esi); /* 0x3801BD1C: push esi */
   4868     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD1D: call 0x3804b4f6 */ /* not lifted */
   4869     RECOMP_FLAGS_IN();
   4870     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4871     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4872     esp = esp + 4; /* 0x3801BD22: add esp, 4 */
   4873     _flag_k = FK_ADD;
   4874 L_3801BD25:
   4875     esi = MEM32(edi + 0x4C); /* 0x3801BD25: mov esi, dword ptr [edi + 0x4c] */
   4876     /* cmp esi, ebx */ /* 0x3801BD28: cmp esi, ebx */
   4877     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4878     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4879     _flag_k = FK_CMP;
   4880     MEM32(edi + 0x48) = ebx; /* 0x3801BD2A: mov dword ptr [edi + 0x48], ebx */
   4881     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BD3F; /* 0x3801BD2D: je 0x3801bd3f */
   4882 L_3801BD2F:
   4883     ecx = esi; /* 0x3801BD2F: mov ecx, esi */
   4884     RECOMP_ICALL(0x38021550u); /* 0x3801BD31: call 0x38021550 */ /* not lifted */
   4885     RECOMP_FLAGS_IN();
   4886     PUSH32(esp, esi); /* 0x3801BD36: push esi */
   4887     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD37: call 0x3804b4f6 */ /* not lifted */
   4888     RECOMP_FLAGS_IN();
   4889     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4890     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4891     esp = esp + 4; /* 0x3801BD3C: add esp, 4 */
   4892     _flag_k = FK_ADD;
   4893 L_3801BD3F:
   4894     esi = MEM32(edi + 0x50); /* 0x3801BD3F: mov esi, dword ptr [edi + 0x50] */
   4895     /* cmp esi, ebx */ /* 0x3801BD42: cmp esi, ebx */
   4896     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4897     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4898     _flag_k = FK_CMP;
   4899     MEM32(edi + 0x4C) = ebx; /* 0x3801BD44: mov dword ptr [edi + 0x4c], ebx */
   4900     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BD59; /* 0x3801BD47: je 0x3801bd59 */
   4901 L_3801BD49:
   4902     ecx = esi; /* 0x3801BD49: mov ecx, esi */
   4903     RECOMP_ICALL(0x38021550u); /* 0x3801BD4B: call 0x38021550 */ /* not lifted */
   4904     RECOMP_FLAGS_IN();
   4905     PUSH32(esp, esi); /* 0x3801BD50: push esi */
   4906     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD51: call 0x3804b4f6 */ /* not lifted */
   4907     RECOMP_FLAGS_IN();
   4908     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4909     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4910     esp = esp + 4; /* 0x3801BD56: add esp, 4 */
   4911     _flag_k = FK_ADD;
   4912 L_3801BD59:
   4913     esi = MEM32(edi + 0x54); /* 0x3801BD59: mov esi, dword ptr [edi + 0x54] */
   4914     /* cmp esi, ebx */ /* 0x3801BD5C: cmp esi, ebx */
   4915     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4917     _flag_k = FK_CMP;
   4918     MEM32(edi + 0x50) = ebx; /* 0x3801BD5E: mov dword ptr [edi + 0x50], ebx */
   4919     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BD99; /* 0x3801BD61: je 0x3801bd99 */
   4920 L_3801BD63:
   4921     eax = MEM32(esi + 0x4); /* 0x3801BD63: mov eax, dword ptr [esi + 4] */
   4922     ecx = MEM32(eax); /* 0x3801BD66: mov ecx, dword ptr [eax] */
   4923     PUSH32(esp, eax); /* 0x3801BD68: push eax */
   4924     PUSH32(esp, ecx); /* 0x3801BD69: push ecx */
   4925     eax = ebp + (-0x10); /* 0x3801BD6A: lea eax, [ebp - 0x10] */
   4926     PUSH32(esp, eax); /* 0x3801BD6D: push eax */
   4927     ecx = esi; /* 0x3801BD6E: mov ecx, esi */
   4928     RECOMP_ICALL(0x3801CAC0u); /* 0x3801BD70: call 0x3801cac0 */ /* not lifted */
   4929     RECOMP_FLAGS_IN();
   4930     eax = MEM32(esi + 0x4); /* 0x3801BD75: mov eax, dword ptr [esi + 4] */
   4931     PUSH32(esp, eax); /* 0x3801BD78: push eax */
   4932     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD79: call 0x3804b4f6 */ /* not lifted */
   4933     RECOMP_FLAGS_IN();
   4934     eax = MEM32(esi + 0x8); /* 0x3801BD7E: mov eax, dword ptr [esi + 8] */
   4935     PUSH32(esp, eax); /* 0x3801BD81: push eax */
   4936     MEM32(esi + 0x4) = ebx; /* 0x3801BD82: mov dword ptr [esi + 4], ebx */
   4937     MEM32(esi + 0x10) = ebx; /* 0x3801BD85: mov dword ptr [esi + 0x10], ebx */
   4938     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD88: call 0x3804b4f6 */ /* not lifted */
   4939     RECOMP_FLAGS_IN();
   4940     PUSH32(esp, esi); /* 0x3801BD8D: push esi */
   4941     MEM32(esi + 0x8) = ebx; /* 0x3801BD8E: mov dword ptr [esi + 8], ebx */
   4942     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD91: call 0x3804b4f6 */ /* not lifted */
   4943     RECOMP_FLAGS_IN();
   4944     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4945     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4946     esp = esp + 0xCu; /* 0x3801BD96: add esp, 0xc */
   4947     _flag_k = FK_ADD;
   4948 L_3801BD99:
   4949     MEM32(edi + 0x54) = ebx; /* 0x3801BD99: mov dword ptr [edi + 0x54], ebx */
   4950     RECOMP_ICALL(0x3803A830u); /* 0x3801BD9C: call 0x3803a830 */ /* not lifted */
   4951     RECOMP_FLAGS_IN();
   4952     MEM32(0x3806EC04) = ebx; /* 0x3801BDA1: mov dword ptr [0x3806ec04], ebx */
   4953     esi = MEM32(edi + 0x78); /* 0x3801BDA7: mov esi, dword ptr [edi + 0x78] */
   4954     /* cmp esi, ebx */ /* 0x3801BDAA: cmp esi, ebx */
   4955     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4957     _flag_k = FK_CMP;
   4958     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BDBE; /* 0x3801BDAC: je 0x3801bdbe */
   4959 L_3801BDAE:
   4960     ecx = esi; /* 0x3801BDAE: mov ecx, esi */
   4961     RECOMP_ICALL(0x38027590u); /* 0x3801BDB0: call 0x38027590 */ /* not lifted */
   4962     RECOMP_FLAGS_IN();
   4963     PUSH32(esp, esi); /* 0x3801BDB5: push esi */
   4964     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BDB6: call 0x3804b4f6 */ /* not lifted */
   4965     RECOMP_FLAGS_IN();
   4966     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4967     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4968     esp = esp + 4; /* 0x3801BDBB: add esp, 4 */
   4969     _flag_k = FK_ADD;
   4970 L_3801BDBE:
   4971     MEM32(edi + 0x78) = ebx; /* 0x3801BDBE: mov dword ptr [edi + 0x78], ebx */
   4972     RECOMP_ICALL(0x38037030u); /* 0x3801BDC1: call 0x38037030 */ /* not lifted */
   4973     RECOMP_FLAGS_IN();
   4974     RECOMP_ICALL(0x38016AF0u); /* 0x3801BDC6: call 0x38016af0 */ /* not lifted */
   4975     RECOMP_FLAGS_IN();
   4976     esi = MEM32(edi + 0x7C); /* 0x3801BDCB: mov esi, dword ptr [edi + 0x7c] */
   4977     /* cmp esi, ebx */ /* 0x3801BDCE: cmp esi, ebx */
   4978     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4980     _flag_k = FK_CMP;
   4981     MEM32(edi + 0x60) = ebx; /* 0x3801BDD0: mov dword ptr [edi + 0x60], ebx */
   4982     MEM32(edi + 0x6C) = ebx; /* 0x3801BDD3: mov dword ptr [edi + 0x6c], ebx */
   4983     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BE73; /* 0x3801BDD6: je 0x3801be73 */
   4984 L_3801BDDC:
   4985     ebx = MEM32(esi + 0x4); /* 0x3801BDDC: mov ebx, dword ptr [esi + 4] */
   4986     ecx = MEM32(esi + 0x10); /* 0x3801BDDF: mov ecx, dword ptr [esi + 0x10] */
   4987     /* test ecx, ecx */ /* 0x3801BDE2: test ecx, ecx */
   4988     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4989     _cf = 0;
   4990     _flag_k = FK_TEST;
   4991     eax = MEM32(ebx); /* 0x3801BDE4: mov eax, dword ptr [ebx] */
   4992     MEM32(ebp + (-0x10)) = eax; /* 0x3801BDE6: mov dword ptr [ebp - 0x10], eax */
   4993     if (TEST_Z(_flag_a, _flag_b)) goto L_3801BE28; /* 0x3801BDE9: je 0x3801be28 */
   4994 L_3801BDEB:
   4995     ecx = eax; /* 0x3801BDEB: mov ecx, eax */
   4996     /* cmp eax, ecx */ /* 0x3801BDED: cmp eax, ecx */
   4997     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4998     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4999     _flag_k = FK_CMP;
   5000     if (CMP_NE(_flag_a, _flag_b)) goto L_3801BE28; /* 0x3801BDEF: jne 0x3801be28 */
   5001 L_3801BDF1:
   5002     /* cmp ebx, ebx */ /* 0x3801BDF1: cmp ebx, ebx */
   5003     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5005     _flag_k = FK_CMP;
   5006     if (CMP_NE(_flag_a, _flag_b)) goto L_3801BE28; /* 0x3801BDF3: jne 0x3801be28 */
   5007 L_3801BDF5:
   5008     ecx = MEM32(ebx + 0x4); /* 0x3801BDF5: mov ecx, dword ptr [ebx + 4] */
   5009     PUSH32(esp, ecx); /* 0x3801BDF8: push ecx */
   5010     ecx = esi; /* 0x3801BDF9: mov ecx, esi */
   5011     RECOMP_ICALL(0x3801D3B0u); /* 0x3801BDFB: call 0x3801d3b0 */ /* not lifted */
   5012     RECOMP_FLAGS_IN();
   5013     eax = MEM32(esi + 0x8); /* 0x3801BE00: mov eax, dword ptr [esi + 8] */
   5014     edx = MEM32(esi + 0x4); /* 0x3801BE03: mov edx, dword ptr [esi + 4] */
   5015     MEM32(edx + 0x4) = eax; /* 0x3801BE06: mov dword ptr [edx + 4], eax */
   5016     eax = MEM32(esi + 0x4); /* 0x3801BE09: mov eax, dword ptr [esi + 4] */
   5017     MEM32(esi + 0x10) = 0; /* 0x3801BE0C: mov dword ptr [esi + 0x10], 0 */
   5018     MEM32(eax) = eax; /* 0x3801BE13: mov dword ptr [eax], eax */
   5019     eax = MEM32(esi + 0x4); /* 0x3801BE15: mov eax, dword ptr [esi + 4] */
   5020     ecx = ebp + (-0x18); /* 0x3801BE18: lea ecx, [ebp - 0x18] */
   5021     PUSH32(esp, ecx); /* 0x3801BE1B: push ecx */
   5022     ecx = esi; /* 0x3801BE1C: mov ecx, esi */
   5023     MEM32(eax + 0x8) = eax; /* 0x3801BE1E: mov dword ptr [eax + 8], eax */
   5024     RECOMP_ICALL(0x380354C0u); /* 0x3801BE21: call 0x380354c0 */ /* not lifted */
   5025     RECOMP_FLAGS_IN();
   5026     goto L_3801BE4D; /* 0x3801BE26: jmp 0x3801be4d */
   5027 L_3801BE28:
   5028     /* cmp eax, ebx */ /* 0x3801BE28: cmp eax, ebx */
   5029     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5031     _flag_k = FK_CMP;
   5032     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BE4D; /* 0x3801BE2A: je 0x3801be4d */
   5033 L_3801BE2C:
   5034     PUSH32(esp, 0); /* 0x3801BE2C: push 0 */
   5035     edx = ebp + (-0x1C); /* 0x3801BE2E: lea edx, [ebp - 0x1c] */
   5036     PUSH32(esp, edx); /* 0x3801BE31: push edx */
   5037     ecx = ebp + (-0x10); /* 0x3801BE32: lea ecx, [ebp - 0x10] */
   5038     RECOMP_ICALL(0x3801D3F0u); /* 0x3801BE35: call 0x3801d3f0 */ /* not lifted */
   5039     RECOMP_FLAGS_IN();
   5040     eax = MEM32(eax); /* 0x3801BE3A: mov eax, dword ptr [eax] */
   5041     PUSH32(esp, eax); /* 0x3801BE3C: push eax */
   5042     ecx = ebp + (-0x20); /* 0x3801BE3D: lea ecx, [ebp - 0x20] */
   5043     PUSH32(esp, ecx); /* 0x3801BE40: push ecx */
   5044     ecx = esi; /* 0x3801BE41: mov ecx, esi */
   5045     RECOMP_ICALL(0x3800F9D0u); /* 0x3801BE43: call 0x3800f9d0 */ /* not lifted */
   5046     RECOMP_FLAGS_IN();
   5047     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x3801BE48: cmp dword ptr [ebp - 0x10], ebx */
   5048     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   5049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5050     _flag_k = FK_CMP;
   5051     RECOMP_BACKEDGE();
   5052     if (CMP_NE(_flag_a, _flag_b)) goto L_3801BE2C; /* 0x3801BE4B: jne 0x3801be2c */
   5053 L_3801BE4D:
   5054     eax = MEM32(esi + 0x4); /* 0x3801BE4D: mov eax, dword ptr [esi + 4] */
   5055     PUSH32(esp, eax); /* 0x3801BE50: push eax */
   5056     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BE51: call 0x3804b4f6 */ /* not lifted */
   5057     RECOMP_FLAGS_IN();
   5058     eax = MEM32(esi + 0x8); /* 0x3801BE56: mov eax, dword ptr [esi + 8] */
   5059     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5060     ebx = 0; /* 0x3801BE59: xor ebx, ebx */
   5061     _cf = 0;
   5062     _flag_k = FK_TEST;
   5063     PUSH32(esp, eax); /* 0x3801BE5B: push eax */
   5064     MEM32(esi + 0x4) = ebx; /* 0x3801BE5C: mov dword ptr [esi + 4], ebx */
   5065     MEM32(esi + 0x10) = ebx; /* 0x3801BE5F: mov dword ptr [esi + 0x10], ebx */
   5066     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BE62: call 0x3804b4f6 */ /* not lifted */
   5067     RECOMP_FLAGS_IN();
   5068     PUSH32(esp, esi); /* 0x3801BE67: push esi */
   5069     MEM32(esi + 0x8) = ebx; /* 0x3801BE68: mov dword ptr [esi + 8], ebx */
   5070     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BE6B: call 0x3804b4f6 */ /* not lifted */
   5071     RECOMP_FLAGS_IN();
   5072     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5073     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5074     esp = esp + 0xCu; /* 0x3801BE70: add esp, 0xc */
   5075     _flag_k = FK_ADD;
   5076 L_3801BE73:
   5077     ecx = edi + 0x4; /* 0x3801BE73: lea ecx, [edi + 4] */
   5078     MEM32(edi + 0x7C) = ebx; /* 0x3801BE76: mov dword ptr [edi + 0x7c], ebx */
   5079     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801BE79: mov dword ptr [ebp - 4], 0xffffffff */
   5080     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801BE80: call dword ptr [0x3804e378] */
   5081     RECOMP_FLAGS_IN();
   5082     ecx = MEM32(ebp + (-0xC)); /* 0x3801BE86: mov ecx, dword ptr [ebp - 0xc] */
   5083     edi = POP32_VAL(esp); /* 0x3801BE89: pop edi */
   5084     esi = POP32_VAL(esp); /* 0x3801BE8A: pop esi */
   5085     ebx = POP32_VAL(esp); /* 0x3801BE8B: pop ebx */
   5086     MEM32(FS_BASE + (0)) = ecx; /* 0x3801BE8C: mov dword ptr fs:[0], ecx */
   5087     esp = ebp; /* 0x3801BE93: mov esp, ebp */
   5088     ebp = POP32_VAL(esp); /* 0x3801BE95: pop ebp */
   5089     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801BE96: ret  */
   5090 L_3801D9E0:
   5091     MEM32(ecx) = 0x3804F190u; /* 0x3801D9E0: mov dword ptr [ecx], 0x3804f190 */
   5092     RECOMP_BACKEDGE();
   5093     goto L_3801BCE0; /* 0x3801D9E6: jmp 0x3801bce0 */
   5094     { RECOMP_REGS_OUT(); return; } /* end of function */
   5095     RECOMP_REGS_OUT();
   5096 }
   5097 
   5098 void sub_3801D9F0(void) {
   5099     int _fpu_cmp = 0;
   5100     uint32_t _cf = 0;
   5101     int _df = 1;
   5102     uint32_t _flag_k = FK_NONE;
   5103     uint32_t _flag_a = 0, _flag_b = 0;
   5104     uint32_t _itail_tgt = 0;
   5105     RECOMP_REGS_LOCALS
   5106     RECOMP_ENTER(0x3801D9F0u);
   5107 
   5108 L_3801D9F0:
   5109     PUSH32(esp, ebp); /* 0x3801D9F0: push ebp */
   5110     ebp = esp; /* 0x3801D9F1: mov ebp, esp */
   5111     eax = MEM32(ebp + 0x8); /* 0x3801D9F3: mov eax, dword ptr [ebp + 8] */
   5112     PUSH32(esp, esi); /* 0x3801D9F6: push esi */
   5113     PUSH32(esp, 0); /* 0x3801D9F7: push 0 */
   5114     esi = ecx; /* 0x3801D9F9: mov esi, ecx */
   5115     PUSH32(esp, eax); /* 0x3801D9FB: push eax */
   5116     RECOMP_ICALL(0x3801C500u); /* 0x3801D9FC: call 0x3801c500 */ /* not lifted */
   5117     RECOMP_FLAGS_IN();
   5118     ecx = MEM32(ebp + 0xC); /* 0x3801DA01: mov ecx, dword ptr [ebp + 0xc] */
   5119     MEM32(esi + 0x84) = ecx; /* 0x3801DA04: mov dword ptr [esi + 0x84], ecx */
   5120     esi = POP32_VAL(esp); /* 0x3801DA0A: pop esi */
   5121     ebp = POP32_VAL(esp); /* 0x3801DA0B: pop ebp */
   5122     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801DA0C: ret 8 */
   5123     RECOMP_REGS_OUT();
   5124 }
   5125 
   5126 void sub_3801DA10(void) {
   5127     int _fpu_cmp = 0;
   5128     uint32_t _cf = 0;
   5129     int _df = 1;
   5130     uint32_t _flag_k = FK_NONE;
   5131     uint32_t _flag_a = 0, _flag_b = 0;
   5132     uint32_t _itail_tgt = 0;
   5133     RECOMP_REGS_LOCALS
   5134     RECOMP_ENTER(0x3801DA10u);
   5135 
   5136 L_3801DA10:
   5137     PUSH32(esp, ebp); /* 0x3801DA10: push ebp */
   5138     ebp = esp; /* 0x3801DA11: mov ebp, esp */
   5139     eax = MEM32(ebp + 0x8); /* 0x3801DA13: mov eax, dword ptr [ebp + 8] */
   5140     eax = MEM32(eax + 0x8); /* 0x3801DA16: mov eax, dword ptr [eax + 8] */
   5141     MEM32(0x3806EC34) = eax; /* 0x3801DA19: mov dword ptr [0x3806ec34], eax */
   5142     edx = MEM32(ecx); /* 0x3801DA1E: mov edx, dword ptr [ecx] */
   5143     PUSH32(esp, eax); /* 0x3801DA20: push eax */
   5144     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3801DA21: call dword ptr [edx + 0x18] */
   5145     RECOMP_FLAGS_IN();
   5146     ebp = POP32_VAL(esp); /* 0x3801DA24: pop ebp */
   5147     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801DA25: ret 8 */
   5148     RECOMP_REGS_OUT();
   5149 }
   5150 
   5151 void sub_3801DA30(void) {
   5152     int _fpu_cmp = 0;
   5153     uint32_t _cf = 0;
   5154     int _df = 1;
   5155     uint32_t _flag_k = FK_NONE;
   5156     uint32_t _flag_a = 0, _flag_b = 0;
   5157     uint32_t _itail_tgt = 0;
   5158     RECOMP_REGS_LOCALS
   5159     RECOMP_ENTER(0x3801DA30u);
   5160 
   5161 L_3801DA30:
   5162     eax = MEM32(0x3806EC34); /* 0x3801DA30: mov eax, dword ptr [0x3806ec34] */
   5163     PUSH32(esp, eax); /* 0x3801DA35: push eax */
   5164     RECOMP_ICALL(0x380295A0u); /* 0x3801DA36: call 0x380295a0 */ /* not lifted */
   5165     RECOMP_FLAGS_IN();
   5166     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5167     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5168     esp = esp + 4; /* 0x3801DA3B: add esp, 4 */
   5169     _flag_k = FK_ADD;
   5170     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801DA3E: ret  */
   5171     RECOMP_REGS_OUT();
   5172 }
   5173 
   5174 void sub_3801DA40(void) {
   5175     int _fpu_cmp = 0;
   5176     uint32_t _cf = 0;
   5177     int _df = 1;
   5178     uint32_t _flag_k = FK_NONE;
   5179     uint32_t _flag_a = 0, _flag_b = 0;
   5180     uint32_t _itail_tgt = 0;
   5181     RECOMP_REGS_LOCALS
   5182     RECOMP_ENTER(0x3801DA40u);
   5183 
   5184 L_3801DA40:
   5185     RECOMP_ICALL(0x3801DA30u); /* 0x3801DA40: call 0x3801da30 */ /* not lifted */
   5186     RECOMP_FLAGS_IN();
   5187     /* test eax, eax */ /* 0x3801DA45: test eax, eax */
   5188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5189     _cf = 0;
   5190     _flag_k = FK_TEST;
   5191     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DA55; /* 0x3801DA47: je 0x3801da55 */
   5192 L_3801DA49:
   5193     RECOMP_ICALL(0x3801DA30u); /* 0x3801DA49: call 0x3801da30 */ /* not lifted */
   5194     RECOMP_FLAGS_IN();
   5195     ecx = eax; /* 0x3801DA4E: mov ecx, eax */
   5196     goto L_38029E80; /* 0x3801DA50: jmp 0x38029e80 */
   5197 L_3801DA55:
   5198     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5199     eax = 0; /* 0x3801DA55: xor eax, eax */
   5200     _cf = 0;
   5201     _flag_k = FK_TEST;
   5202     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801DA57: ret  */
   5203 L_38029E80:
   5204     eax = MEM32(ecx + 0x5C); /* 0x38029E80: mov eax, dword ptr [ecx + 0x5c] */
   5205     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38029E83: ret  */
   5206     RECOMP_REGS_OUT();
   5207 }
   5208 
   5209 void sub_3801DA60(void) {
   5210     int _fpu_cmp = 0;
   5211     uint32_t _cf = 0;
   5212     int _df = 1;
   5213     uint32_t _flag_k = FK_NONE;
   5214     uint32_t _flag_a = 0, _flag_b = 0;
   5215     uint32_t _itail_tgt = 0;
   5216     RECOMP_REGS_LOCALS
   5217     RECOMP_ENTER(0x3801DA60u);
   5218 
   5219 L_3801DA60:
   5220     PUSH32(esp, esi); /* 0x3801DA60: push esi */
   5221     RECOMP_ICALL(0x3801DA30u); /* 0x3801DA61: call 0x3801da30 */ /* not lifted */
   5222     RECOMP_FLAGS_IN();
   5223     esi = eax; /* 0x3801DA66: mov esi, eax */
   5224     /* test esi, esi */ /* 0x3801DA68: test esi, esi */
   5225     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5226     _cf = 0;
   5227     _flag_k = FK_TEST;
   5228     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DAA3; /* 0x3801DA6A: je 0x3801daa3 */
   5229 L_3801DA6C:
   5230     ecx = esi; /* 0x3801DA6C: mov ecx, esi */
   5231     RECOMP_ICALL(0x3802B4C0u); /* 0x3801DA6E: call 0x3802b4c0 */ /* not lifted */
   5232     RECOMP_FLAGS_IN();
   5233     /* test LO8(eax), LO8(eax) */ /* 0x3801DA73: test al, al */
   5234     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5235     _cf = 0;
   5236     _flag_k = FK_NARROW(FK_TEST, 24);
   5237     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801DAA3; /* 0x3801DA75: jne 0x3801daa3 */
   5238 L_3801DA77:
   5239     ecx = esi; /* 0x3801DA77: mov ecx, esi */
   5240     RECOMP_ICALL(0x3802A060u); /* 0x3801DA79: call 0x3802a060 */ /* not lifted */
   5241     RECOMP_FLAGS_IN();
   5242     eax = MEM32(0x3806EC04); /* 0x3801DA7E: mov eax, dword ptr [0x3806ec04] */
   5243     PUSH32(esp, 0); /* 0x3801DA83: push 0 */
   5244     PUSH32(esp, 0x3806C300u); /* 0x3801DA85: push 0x3806c300 */
   5245     PUSH32(esp, 0x3806C220u); /* 0x3801DA8A: push 0x3806c220 */
   5246     PUSH32(esp, 0); /* 0x3801DA8F: push 0 */
   5247     PUSH32(esp, eax); /* 0x3801DA91: push eax */
   5248     RECOMP_ICALL(0x3804B682u); /* 0x3801DA92: call 0x3804b682 */ /* not lifted */
   5249     RECOMP_FLAGS_IN();
   5250     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5251     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5252     esp = esp + 0x14u; /* 0x3801DA97: add esp, 0x14 */
   5253     _flag_k = FK_ADD;
   5254     PUSH32(esp, 1); /* 0x3801DA9A: push 1 */
   5255     ecx = eax; /* 0x3801DA9C: mov ecx, eax */
   5256     RECOMP_ICALL(0x3801C4C0u); /* 0x3801DA9E: call 0x3801c4c0 */ /* not lifted */
   5257     RECOMP_FLAGS_IN();
   5258 L_3801DAA3:
   5259     esi = POP32_VAL(esp); /* 0x3801DAA3: pop esi */
   5260     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801DAA4: ret  */
   5261     RECOMP_REGS_OUT();
   5262 }
   5263 
   5264 void sub_3801DAB0(void) {
   5265     int _fpu_cmp = 0;
   5266     uint32_t _cf = 0;
   5267     int _df = 1;
   5268     uint32_t _flag_k = FK_NONE;
   5269     uint32_t _flag_a = 0, _flag_b = 0;
   5270     uint32_t _itail_tgt = 0;
   5271     RECOMP_REGS_LOCALS
   5272     RECOMP_ENTER(0x3801DAB0u);
   5273 
   5274 L_3801DAB0:
   5275     PUSH32(esp, ebp); /* 0x3801DAB0: push ebp */
   5276     ebp = esp; /* 0x3801DAB1: mov ebp, esp */
   5277     eax = MEM32(ebp + 0x8); /* 0x3801DAB3: mov eax, dword ptr [ebp + 8] */
   5278     PUSH32(esp, esi); /* 0x3801DAB6: push esi */
   5279     esi = ecx; /* 0x3801DAB7: mov esi, ecx */
   5280     PUSH32(esp, eax); /* 0x3801DAB9: push eax */
   5281     RECOMP_ICALL(0x3801BEA0u); /* 0x3801DABA: call 0x3801bea0 */ /* not lifted */
   5282     RECOMP_FLAGS_IN();
   5283     SET_LO8(eax, MEM8(esi + 0xA4)); /* 0x3801DABF: mov al, byte ptr [esi + 0xa4] */
   5284     /* test LO8(eax), LO8(eax) */ /* 0x3801DAC5: test al, al */
   5285     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5286     _cf = 0;
   5287     _flag_k = FK_NARROW(FK_TEST, 24);
   5288     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DB13; /* 0x3801DAC7: je 0x3801db13 */
   5289 L_3801DAC9:
   5290     edx = MEM32(esi); /* 0x3801DAC9: mov edx, dword ptr [esi] */
   5291     ecx = esi; /* 0x3801DACB: mov ecx, esi */
   5292     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3801DACD: call dword ptr [edx + 0x10] */
   5293     RECOMP_FLAGS_IN();
   5294     /* test eax, eax */ /* 0x3801DAD0: test eax, eax */
   5295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5296     _cf = 0;
   5297     _flag_k = FK_TEST;
   5298     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801DAE5; /* 0x3801DAD2: jne 0x3801dae5 */
   5299 L_3801DAD4:
   5300     fp_push(*(float*)&MEM32(esi + 0xA8)); /* 0x3801DAD4: fld dword ptr [esi + 0xa8] */
   5301     _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x3801DADA: fsub dword ptr [ebp + 8] */
   5302     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xA8) = _v; } /* 0x3801DADD: fstp dword ptr [esi + 0xa8] */
   5303     goto L_3801DAEF; /* 0x3801DAE3: jmp 0x3801daef */
   5304 L_3801DAE5:
   5305     MEM32(esi + 0xA8) = 0x42F00000u; /* 0x3801DAE5: mov dword ptr [esi + 0xa8], 0x42f00000 */
   5306 L_3801DAEF:
   5307     fp_push(*(float*)&MEM32(esi + 0xA8)); /* 0x3801DAEF: fld dword ptr [esi + 0xa8] */
   5308     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E928)); /* 0x3801DAF5: fcomp qword ptr [0x3804e928] */
   5309     fp_pop();
   5310     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3801DAFB: fnstsw ax */
   5311     /* test HI8(eax), 1 */ /* 0x3801DAFD: test ah, 1 */
   5312     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5313     _cf = 0;
   5314     _flag_k = FK_NARROW(FK_TEST, 24);
   5315     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DB13; /* 0x3801DB00: je 0x3801db13 */
   5316 L_3801DB02:
   5317     eax = MEM32(esi); /* 0x3801DB02: mov eax, dword ptr [esi] */
   5318     ecx = esi; /* 0x3801DB04: mov ecx, esi */
   5319     RECOMP_ICALL(MEM32(eax + 0x74)); /* 0x3801DB06: call dword ptr [eax + 0x74] */
   5320     RECOMP_FLAGS_IN();
   5321     MEM32(esi + 0xA8) = 0x42F00000u; /* 0x3801DB09: mov dword ptr [esi + 0xa8], 0x42f00000 */
   5322 L_3801DB13:
   5323     esi = POP32_VAL(esp); /* 0x3801DB13: pop esi */
   5324     ebp = POP32_VAL(esp); /* 0x3801DB14: pop ebp */
   5325     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801DB15: ret 4 */
   5326     RECOMP_REGS_OUT();
   5327 }
   5328 
   5329 void sub_3801DB20(void) {
   5330     int _fpu_cmp = 0;
   5331     uint32_t _cf = 0;
   5332     int _df = 1;
   5333     uint32_t _flag_k = FK_NONE;
   5334     uint32_t _flag_a = 0, _flag_b = 0;
   5335     uint32_t _itail_tgt = 0;
   5336     RECOMP_REGS_LOCALS
   5337     RECOMP_ENTER(0x3801DB20u);
   5338 
   5339 L_3801DB20:
   5340     PUSH32(esp, ebp); /* 0x3801DB20: push ebp */
   5341     ebp = esp; /* 0x3801DB21: mov ebp, esp */
   5342     edx = MEM32(ebp + 0xC); /* 0x3801DB23: mov edx, dword ptr [ebp + 0xc] */
   5343     eax = MEM32(ecx); /* 0x3801DB26: mov eax, dword ptr [ecx] */
   5344     PUSH32(esp, edx); /* 0x3801DB28: push edx */
   5345     edx = MEM32(ebp + 0x8); /* 0x3801DB29: mov edx, dword ptr [ebp + 8] */
   5346     PUSH32(esp, edx); /* 0x3801DB2C: push edx */
   5347     RECOMP_ICALL(MEM32(eax + 0x50)); /* 0x3801DB2D: call dword ptr [eax + 0x50] */
   5348     RECOMP_FLAGS_IN();
   5349     ebp = POP32_VAL(esp); /* 0x3801DB30: pop ebp */
   5350     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801DB31: ret 8 */
   5351     RECOMP_REGS_OUT();
   5352 }
   5353 
   5354 void sub_3801DB40(void) {
   5355     int _fpu_cmp = 0;
   5356     uint32_t _cf = 0;
   5357     int _df = 1;
   5358     uint32_t _flag_k = FK_NONE;
   5359     uint32_t _flag_a = 0, _flag_b = 0;
   5360     uint32_t _itail_tgt = 0;
   5361     RECOMP_REGS_LOCALS
   5362     RECOMP_ENTER(0x3801DB40u);
   5363 
   5364 L_3801DB40:
   5365     PUSH32(esp, ebp); /* 0x3801DB40: push ebp */
   5366     ebp = esp; /* 0x3801DB41: mov ebp, esp */
   5367     eax = MEM32(FS_BASE + (0)); /* 0x3801DB43: mov eax, dword ptr fs:[0] */
   5368     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801DB49: push -1 */
   5369     PUSH32(esp, 0x3804C37Bu); /* 0x3801DB4B: push 0x3804c37b */
   5370     PUSH32(esp, eax); /* 0x3801DB50: push eax */
   5371     MEM32(FS_BASE + (0)) = esp; /* 0x3801DB51: mov dword ptr fs:[0], esp */
   5372     PUSH32(esp, ebx); /* 0x3801DB58: push ebx */
   5373     PUSH32(esp, esi); /* 0x3801DB59: push esi */
   5374     PUSH32(esp, edi); /* 0x3801DB5A: push edi */
   5375     edi = MEM32(ebp + 0xC); /* 0x3801DB5B: mov edi, dword ptr [ebp + 0xc] */
   5376     PUSH32(esp, 0x28u); /* 0x3801DB5E: push 0x28 */
   5377     ebx = ecx; /* 0x3801DB60: mov ebx, ecx */
   5378     MEM8(edi + 0x24) = (uint8_t)(0); /* 0x3801DB62: mov byte ptr [edi + 0x24], 0 */
   5379     RECOMP_ICALL(0x3804B676u); /* 0x3801DB66: call 0x3804b676 */ /* not lifted */
   5380     RECOMP_FLAGS_IN();
   5381     esi = eax; /* 0x3801DB6B: mov esi, eax */
   5382     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5383     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5384     esp = esp + 4; /* 0x3801DB6D: add esp, 4 */
   5385     _flag_k = FK_ADD;
   5386     MEM32(ebp + 0xC) = esi; /* 0x3801DB70: mov dword ptr [ebp + 0xc], esi */
   5387     /* test esi, esi */ /* 0x3801DB73: test esi, esi */
   5388     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5389     _cf = 0;
   5390     _flag_k = FK_TEST;
   5391     MEM32(ebp + (-0x4)) = 0; /* 0x3801DB75: mov dword ptr [ebp - 4], 0 */
   5392     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DBA5; /* 0x3801DB7C: je 0x3801dba5 */
   5393 L_3801DB7E:
   5394     eax = MEM32(edi + 0x10); /* 0x3801DB7E: mov eax, dword ptr [edi + 0x10] */
   5395     PUSH32(esp, 0); /* 0x3801DB81: push 0 */
   5396     PUSH32(esp, 0); /* 0x3801DB83: push 0 */
   5397     PUSH32(esp, 0); /* 0x3801DB85: push 0 */
   5398     PUSH32(esp, 0); /* 0x3801DB87: push 0 */
   5399     PUSH32(esp, eax); /* 0x3801DB89: push eax */
   5400     PUSH32(esp, 1); /* 0x3801DB8A: push 1 */
   5401     ecx = edi; /* 0x3801DB8C: mov ecx, edi */
   5402     RECOMP_ICALL(MEM32(0x3804E370)); /* 0x3801DB8E: call dword ptr [0x3804e370] */
   5403     RECOMP_FLAGS_IN();
   5404     PUSH32(esp, eax); /* 0x3801DB94: push eax */
   5405     ecx = esi; /* 0x3801DB95: mov ecx, esi */
   5406     RECOMP_ICALL(MEM32(0x3804E140)); /* 0x3801DB97: call dword ptr [0x3804e140] */
   5407     RECOMP_FLAGS_IN();
   5408     MEM32(esi) = 0x3804F20Cu; /* 0x3801DB9D: mov dword ptr [esi], 0x3804f20c */
   5409     goto L_3801DBA7; /* 0x3801DBA3: jmp 0x3801dba7 */
   5410 L_3801DBA5:
   5411     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5412     esi = 0; /* 0x3801DBA5: xor esi, esi */
   5413     _cf = 0;
   5414     _flag_k = FK_TEST;
   5415 L_3801DBA7:
   5416     ecx = MEM32(ebp + 0x8); /* 0x3801DBA7: mov ecx, dword ptr [ebp + 8] */
   5417     eax = MEM32(ebx); /* 0x3801DBAA: mov eax, dword ptr [ebx] */
   5418     PUSH32(esp, esi); /* 0x3801DBAC: push esi */
   5419     PUSH32(esp, ecx); /* 0x3801DBAD: push ecx */
   5420     ecx = ebx; /* 0x3801DBAE: mov ecx, ebx */
   5421     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801DBB0: mov dword ptr [ebp - 4], 0xffffffff */
   5422     RECOMP_ICALL(MEM32(eax + 0x50)); /* 0x3801DBB7: call dword ptr [eax + 0x50] */
   5423     RECOMP_FLAGS_IN();
   5424     ecx = MEM32(ebp + (-0xC)); /* 0x3801DBBA: mov ecx, dword ptr [ebp - 0xc] */
   5425     edi = POP32_VAL(esp); /* 0x3801DBBD: pop edi */
   5426     esi = POP32_VAL(esp); /* 0x3801DBBE: pop esi */
   5427     MEM32(FS_BASE + (0)) = ecx; /* 0x3801DBBF: mov dword ptr fs:[0], ecx */
   5428     ebx = POP32_VAL(esp); /* 0x3801DBC6: pop ebx */
   5429     esp = ebp; /* 0x3801DBC7: mov esp, ebp */
   5430     ebp = POP32_VAL(esp); /* 0x3801DBC9: pop ebp */
   5431     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801DBCA: ret 8 */
   5432     RECOMP_REGS_OUT();
   5433 }
   5434 
   5435 void sub_3801DBD0(void) {
   5436     int _fpu_cmp = 0;
   5437     uint32_t _cf = 0;
   5438     int _df = 1;
   5439     uint32_t _flag_k = FK_NONE;
   5440     uint32_t _flag_a = 0, _flag_b = 0;
   5441     uint32_t _itail_tgt = 0;
   5442     RECOMP_REGS_LOCALS
   5443     RECOMP_ENTER(0x3801DBD0u);
   5444 
   5445 L_3801DBD0:
   5446     PUSH32(esp, ebp); /* 0x3801DBD0: push ebp */
   5447     ebp = esp; /* 0x3801DBD1: mov ebp, esp */
   5448     PUSH32(esp, esi); /* 0x3801DBD3: push esi */
   5449     esi = ecx; /* 0x3801DBD4: mov esi, ecx */
   5450     RECOMP_ICALL(MEM32(0x3804E130)); /* 0x3801DBD6: call dword ptr [0x3804e130] */
   5451     RECOMP_FLAGS_IN();
   5452     /* test MEM8(ebp + 0x8), 1 */ /* 0x3801DBDC: test byte ptr [ebp + 8], 1 */
   5453     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5454     _cf = 0;
   5455     _flag_k = FK_NARROW(FK_TEST, 24);
   5456     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DBEB; /* 0x3801DBE0: je 0x3801dbeb */
   5457 L_3801DBE2:
   5458     PUSH32(esp, esi); /* 0x3801DBE2: push esi */
   5459     RECOMP_ICALL(0x3804B4F6u); /* 0x3801DBE3: call 0x3804b4f6 */ /* not lifted */
   5460     RECOMP_FLAGS_IN();
   5461     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5462     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5463     esp = esp + 4; /* 0x3801DBE8: add esp, 4 */
   5464     _flag_k = FK_ADD;
   5465 L_3801DBEB:
   5466     eax = esi; /* 0x3801DBEB: mov eax, esi */
   5467     esi = POP32_VAL(esp); /* 0x3801DBED: pop esi */
   5468     ebp = POP32_VAL(esp); /* 0x3801DBEE: pop ebp */
   5469     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801DBEF: ret 4 */
   5470     RECOMP_REGS_OUT();
   5471 }
   5472 
   5473 void sub_3801DC00(void) {
   5474     int _fpu_cmp = 0;
   5475     uint32_t _cf = 0;
   5476     int _df = 1;
   5477     uint32_t _flag_k = FK_NONE;
   5478     uint32_t _flag_a = 0, _flag_b = 0;
   5479     uint32_t _itail_tgt = 0;
   5480     RECOMP_REGS_LOCALS
   5481     RECOMP_ENTER(0x3801DC00u);
   5482 
   5483 L_3801DC00:
   5484     PUSH32(esp, ebp); /* 0x3801DC00: push ebp */
   5485     ebp = esp; /* 0x3801DC01: mov ebp, esp */
   5486     edx = MEM32(ebp + 0xC); /* 0x3801DC03: mov edx, dword ptr [ebp + 0xc] */
   5487     edx = MEM32(edx + 0x2C); /* 0x3801DC06: mov edx, dword ptr [edx + 0x2c] */
   5488     eax = MEM32(ecx); /* 0x3801DC09: mov eax, dword ptr [ecx] */
   5489     PUSH32(esp, edx); /* 0x3801DC0B: push edx */
   5490     edx = MEM32(ebp + 0x8); /* 0x3801DC0C: mov edx, dword ptr [ebp + 8] */
   5491     PUSH32(esp, edx); /* 0x3801DC0F: push edx */
   5492     RECOMP_ICALL(MEM32(eax + 0x50)); /* 0x3801DC10: call dword ptr [eax + 0x50] */
   5493     RECOMP_FLAGS_IN();
   5494     ebp = POP32_VAL(esp); /* 0x3801DC13: pop ebp */
   5495     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801DC14: ret 8 */
   5496     RECOMP_REGS_OUT();
   5497 }
   5498 
   5499 void sub_3801DC20(void) {
   5500     int _fpu_cmp = 0;
   5501     uint32_t _cf = 0;
   5502     int _df = 1;
   5503     uint32_t _flag_k = FK_NONE;
   5504     uint32_t _flag_a = 0, _flag_b = 0;
   5505     uint32_t _itail_tgt = 0;
   5506     RECOMP_REGS_LOCALS
   5507     RECOMP_ENTER(0x3801DC20u);
   5508 
   5509 L_3801DC20:
   5510     PUSH32(esp, ebp); /* 0x3801DC20: push ebp */
   5511     ebp = esp; /* 0x3801DC21: mov ebp, esp */
   5512     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801DC23: push -1 */
   5513     PUSH32(esp, 0x3804C3A4u); /* 0x3801DC25: push 0x3804c3a4 */
   5514     eax = MEM32(FS_BASE + (0)); /* 0x3801DC2A: mov eax, dword ptr fs:[0] */
   5515     PUSH32(esp, eax); /* 0x3801DC30: push eax */
   5516     MEM32(FS_BASE + (0)) = esp; /* 0x3801DC31: mov dword ptr fs:[0], esp */
   5517     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu);
   5518     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5519     esp = esp - 0x4Cu; /* 0x3801DC38: sub esp, 0x4c */
   5520     _flag_k = FK_CMP;
   5521     PUSH32(esp, ebx); /* 0x3801DC3B: push ebx */
   5522     PUSH32(esp, edi); /* 0x3801DC3C: push edi */
   5523     edi = ecx; /* 0x3801DC3D: mov edi, ecx */
   5524     PUSH32(esp, 0x100u); /* 0x3801DC3F: push 0x100 */
   5525     ecx = ebp + (-0x58); /* 0x3801DC44: lea ecx, [ebp - 0x58] */
   5526     RECOMP_ICALL(MEM32(0x3804E384)); /* 0x3801DC47: call dword ptr [0x3804e384] */
   5527     RECOMP_FLAGS_IN();
   5528     ecx = MEM32(ebp + 0x8); /* 0x3801DC4D: mov ecx, dword ptr [ebp + 8] */
   5529     eax = ebp + (-0x58); /* 0x3801DC50: lea eax, [ebp - 0x58] */
   5530     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5531     ebx = 0; /* 0x3801DC53: xor ebx, ebx */
   5532     _cf = 0;
   5533     _flag_k = FK_TEST;
   5534     PUSH32(esp, eax); /* 0x3801DC55: push eax */
   5535     MEM32(ebp + (-0x4)) = ebx; /* 0x3801DC56: mov dword ptr [ebp - 4], ebx */
   5536     RECOMP_ICALL(0x38024450u); /* 0x3801DC59: call 0x38024450 */ /* not lifted */
   5537     RECOMP_FLAGS_IN();
   5538     /* cmp LO8(eax), LO8(ebx) */ /* 0x3801DC5E: cmp al, bl */
   5539     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5541     _flag_k = FK_NARROW(FK_CMP, 24);
   5542     if (CMP_NE(_flag_a, _flag_b)) goto L_3801DC84; /* 0x3801DC60: jne 0x3801dc84 */
   5543 L_3801DC62:
   5544     ecx = ebp + (-0x58); /* 0x3801DC62: lea ecx, [ebp - 0x58] */
   5545     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801DC65: mov dword ptr [ebp - 4], 0xffffffff */
   5546     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801DC6C: call dword ptr [0x3804e378] */
   5547     RECOMP_FLAGS_IN();
   5548     edi = POP32_VAL(esp); /* 0x3801DC72: pop edi */
   5549     ebx = POP32_VAL(esp); /* 0x3801DC73: pop ebx */
   5550     ecx = MEM32(ebp + (-0xC)); /* 0x3801DC74: mov ecx, dword ptr [ebp - 0xc] */
   5551     MEM32(FS_BASE + (0)) = ecx; /* 0x3801DC77: mov dword ptr fs:[0], ecx */
   5552     esp = ebp; /* 0x3801DC7E: mov esp, ebp */
   5553     ebp = POP32_VAL(esp); /* 0x3801DC80: pop ebp */
   5554     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801DC81: ret 4 */
   5555 L_3801DC84:
   5556     PUSH32(esp, esi); /* 0x3801DC84: push esi */
   5557     PUSH32(esp, 0x28u); /* 0x3801DC85: push 0x28 */
   5558     MEM8(ebp + (-0x34)) = (uint8_t)(LO8(ebx)); /* 0x3801DC87: mov byte ptr [ebp - 0x34], bl */
   5559     RECOMP_ICALL(0x3804B676u); /* 0x3801DC8A: call 0x3804b676 */ /* not lifted */
   5560     RECOMP_FLAGS_IN();
   5561     esi = eax; /* 0x3801DC8F: mov esi, eax */
   5562     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5563     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5564     esp = esp + 4; /* 0x3801DC91: add esp, 4 */
   5565     _flag_k = FK_ADD;
   5566     MEM32(ebp + 0x8) = esi; /* 0x3801DC94: mov dword ptr [ebp + 8], esi */
   5567     /* cmp esi, ebx */ /* 0x3801DC97: cmp esi, ebx */
   5568     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   5569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5570     _flag_k = FK_CMP;
   5571     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3801DC99: mov byte ptr [ebp - 4], 1 */
   5572     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801DCC3; /* 0x3801DC9D: je 0x3801dcc3 */
   5573 L_3801DC9F:
   5574     ecx = MEM32(ebp + (-0x48)); /* 0x3801DC9F: mov ecx, dword ptr [ebp - 0x48] */
   5575     PUSH32(esp, ebx); /* 0x3801DCA2: push ebx */
   5576     PUSH32(esp, ebx); /* 0x3801DCA3: push ebx */
   5577     PUSH32(esp, ebx); /* 0x3801DCA4: push ebx */
   5578     PUSH32(esp, ebx); /* 0x3801DCA5: push ebx */
   5579     PUSH32(esp, ecx); /* 0x3801DCA6: push ecx */
   5580     PUSH32(esp, 1); /* 0x3801DCA7: push 1 */
   5581     ecx = ebp + (-0x58); /* 0x3801DCA9: lea ecx, [ebp - 0x58] */
   5582     RECOMP_ICALL(MEM32(0x3804E370)); /* 0x3801DCAC: call dword ptr [0x3804e370] */
   5583     RECOMP_FLAGS_IN();
   5584     PUSH32(esp, eax); /* 0x3801DCB2: push eax */
   5585     ecx = esi; /* 0x3801DCB3: mov ecx, esi */
   5586     RECOMP_ICALL(MEM32(0x3804E140)); /* 0x3801DCB5: call dword ptr [0x3804e140] */
   5587     RECOMP_FLAGS_IN();
   5588     MEM32(esi) = 0x3804F20Cu; /* 0x3801DCBB: mov dword ptr [esi], 0x3804f20c */
   5589     goto L_3801DCC5; /* 0x3801DCC1: jmp 0x3801dcc5 */
   5590 L_3801DCC3:
   5591     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5592     esi = 0; /* 0x3801DCC3: xor esi, esi */
   5593     _cf = 0;
   5594     _flag_k = FK_TEST;
   5595 L_3801DCC5:
   5596     edx = MEM32(edi); /* 0x3801DCC5: mov edx, dword ptr [edi] */
   5597     PUSH32(esp, esi); /* 0x3801DCC7: push esi */
   5598     eax = ebp + (-0x14); /* 0x3801DCC8: lea eax, [ebp - 0x14] */
   5599     PUSH32(esp, eax); /* 0x3801DCCB: push eax */
   5600     ecx = edi; /* 0x3801DCCC: mov ecx, edi */
   5601     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3801DCCE: mov byte ptr [ebp - 4], bl */
   5602     MEM32(ebp + (-0x14)) = 0x2713u; /* 0x3801DCD1: mov dword ptr [ebp - 0x14], 0x2713 */
   5603     MEM32(ebp + (-0x10)) = ebx; /* 0x3801DCD8: mov dword ptr [ebp - 0x10], ebx */
   5604     RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x3801DCDB: call dword ptr [edx + 0x34] */
   5605     RECOMP_FLAGS_IN();
   5606     ecx = ebp + (-0x58); /* 0x3801DCDE: lea ecx, [ebp - 0x58] */
   5607     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801DCE1: mov dword ptr [ebp - 4], 0xffffffff */
   5608     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801DCE8: call dword ptr [0x3804e378] */
   5609     RECOMP_FLAGS_IN();
   5610     ecx = MEM32(ebp + (-0xC)); /* 0x3801DCEE: mov ecx, dword ptr [ebp - 0xc] */
   5611     esi = POP32_VAL(esp); /* 0x3801DCF1: pop esi */
   5612     edi = POP32_VAL(esp); /* 0x3801DCF2: pop edi */
   5613     ebx = POP32_VAL(esp); /* 0x3801DCF3: pop ebx */
   5614     MEM32(FS_BASE + (0)) = ecx; /* 0x3801DCF4: mov dword ptr fs:[0], ecx */
   5615     esp = ebp; /* 0x3801DCFB: mov esp, ebp */
   5616     ebp = POP32_VAL(esp); /* 0x3801DCFD: pop ebp */
   5617     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801DCFE: ret 4 */
   5618     RECOMP_REGS_OUT();
   5619 }
   5620 
   5621 void sub_3801DD10(void) {
   5622     int _fpu_cmp = 0;
   5623     uint32_t _cf = 0;
   5624     int _df = 1;
   5625     uint32_t _flag_k = FK_NONE;
   5626     uint32_t _flag_a = 0, _flag_b = 0;
   5627     uint32_t _itail_tgt = 0;
   5628     RECOMP_REGS_LOCALS
   5629     RECOMP_ENTER(0x3801DD10u);
   5630 
   5631 L_3801DD10:
   5632     PUSH32(esp, ebp); /* 0x3801DD10: push ebp */
   5633     ebp = esp; /* 0x3801DD11: mov ebp, esp */
   5634     eax = MEM32(ebp + 0x8); /* 0x3801DD13: mov eax, dword ptr [ebp + 8] */
   5635     MEM32(ecx + 0x80) = eax; /* 0x3801DD16: mov dword ptr [ecx + 0x80], eax */
   5636     ebp = POP32_VAL(esp); /* 0x3801DD1C: pop ebp */
   5637     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801DD1D: ret 4 */
   5638     RECOMP_REGS_OUT();
   5639 }
   5640 
   5641 void sub_3801DD20(void) {
   5642     int _fpu_cmp = 0;
   5643     uint32_t _cf = 0;
   5644     int _df = 1;
   5645     uint32_t _flag_k = FK_NONE;
   5646     uint32_t _flag_a = 0, _flag_b = 0;
   5647     uint32_t _itail_tgt = 0;
   5648     RECOMP_REGS_LOCALS
   5649     RECOMP_ENTER(0x3801DD20u);
   5650 
   5651 L_3801DD20:
   5652     eax = MEM32(ecx + 0x88); /* 0x3801DD20: mov eax, dword ptr [ecx + 0x88] */
   5653     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801DD26: ret  */
   5654     RECOMP_REGS_OUT();
   5655 }
   5656 
   5657 void sub_3801DD30(void) {
   5658     int _fpu_cmp = 0;
   5659     uint32_t _cf = 0;
   5660     int _df = 1;
   5661     uint32_t _flag_k = FK_NONE;
   5662     uint32_t _flag_a = 0, _flag_b = 0;
   5663     uint32_t _itail_tgt = 0;
   5664     RECOMP_REGS_LOCALS
   5665     RECOMP_ENTER(0x3801DD30u);
   5666 
   5667 L_3801DD30:
   5668     PUSH32(esp, ebp); /* 0x3801DD30: push ebp */
   5669     ebp = esp; /* 0x3801DD31: mov ebp, esp */
   5670     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801DD33: push -1 */
   5671     PUSH32(esp, 0x3804C3C9u); /* 0x3801DD35: push 0x3804c3c9 */
   5672     eax = MEM32(FS_BASE + (0)); /* 0x3801DD3A: mov eax, dword ptr fs:[0] */
   5673     PUSH32(esp, eax); /* 0x3801DD40: push eax */
   5674     MEM32(FS_BASE + (0)) = esp; /* 0x3801DD41: mov dword ptr fs:[0], esp */
   5675     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u);
   5676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5677     esp = esp - 0x94u; /* 0x3801DD48: sub esp, 0x94 */
   5678     _flag_k = FK_CMP;
   5679     PUSH32(esp, ebx); /* 0x3801DD4E: push ebx */
   5680     ebx = MEM32(ebp + 0x8); /* 0x3801DD4F: mov ebx, dword ptr [ebp + 8] */
   5681     PUSH32(esp, esi); /* 0x3801DD52: push esi */
   5682     esi = ecx; /* 0x3801DD53: mov esi, ecx */
   5683     eax = MEM32(esi + 0x88); /* 0x3801DD55: mov eax, dword ptr [esi + 0x88] */
   5684     /* test eax, eax */ /* 0x3801DD5B: test eax, eax */
   5685     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5686     _cf = 0;
   5687     _flag_k = FK_TEST;
   5688     MEM32(ebp + (-0x4C)) = esi; /* 0x3801DD5D: mov dword ptr [ebp - 0x4c], esi */
   5689     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DD6A; /* 0x3801DD60: je 0x3801dd6a */
   5690 L_3801DD62:
   5691     /* test ebx, ebx */ /* 0x3801DD62: test ebx, ebx */
   5692     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5693     _cf = 0;
   5694     _flag_k = FK_TEST;
   5695     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801E0ED; /* 0x3801DD64: jne 0x3801e0ed */
   5696 L_3801DD6A:
   5697     /* test ebx, ebx */ /* 0x3801DD6A: test ebx, ebx */
   5698     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5699     _cf = 0;
   5700     _flag_k = FK_TEST;
   5701     MEM32(esi + 0x88) = ebx; /* 0x3801DD6C: mov dword ptr [esi + 0x88], ebx */
   5702     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801DD8D; /* 0x3801DD72: jne 0x3801dd8d */
   5703 L_3801DD74:
   5704     eax = MEM32(esi); /* 0x3801DD74: mov eax, dword ptr [esi] */
   5705     ecx = esi; /* 0x3801DD76: mov ecx, esi */
   5706     RECOMP_ICALL(MEM32(eax + 0x58)); /* 0x3801DD78: call dword ptr [eax + 0x58] */
   5707     RECOMP_FLAGS_IN();
   5708     esi = POP32_VAL(esp); /* 0x3801DD7B: pop esi */
   5709     ebx = POP32_VAL(esp); /* 0x3801DD7C: pop ebx */
   5710     ecx = MEM32(ebp + (-0xC)); /* 0x3801DD7D: mov ecx, dword ptr [ebp - 0xc] */
   5711     MEM32(FS_BASE + (0)) = ecx; /* 0x3801DD80: mov dword ptr fs:[0], ecx */
   5712     esp = ebp; /* 0x3801DD87: mov esp, ebp */
   5713     ebp = POP32_VAL(esp); /* 0x3801DD89: pop ebp */
   5714     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801DD8A: ret 4 */
   5715 L_3801DD8D:
   5716     ecx = MEM32(0x3806EC04); /* 0x3801DD8D: mov ecx, dword ptr [0x3806ec04] */
   5717     PUSH32(esp, edi); /* 0x3801DD93: push edi */
   5718     PUSH32(esp, 0); /* 0x3801DD94: push 0 */
   5719     PUSH32(esp, 0x3806C300u); /* 0x3801DD96: push 0x3806c300 */
   5720     PUSH32(esp, 0x3806C220u); /* 0x3801DD9B: push 0x3806c220 */
   5721     PUSH32(esp, 0); /* 0x3801DDA0: push 0 */
   5722     PUSH32(esp, ecx); /* 0x3801DDA2: push ecx */
   5723     RECOMP_ICALL(0x3804B682u); /* 0x3801DDA3: call 0x3804b682 */ /* not lifted */
   5724     RECOMP_FLAGS_IN();
   5725     edx = MEM32(esi + 0x88); /* 0x3801DDA8: mov edx, dword ptr [esi + 0x88] */
   5726     eax = MEM32(edx + 0x78); /* 0x3801DDAE: mov eax, dword ptr [edx + 0x78] */
   5727     PUSH32(esp, eax); /* 0x3801DDB1: push eax */
   5728     RECOMP_ICALL(0x380295A0u); /* 0x3801DDB2: call 0x380295a0 */ /* not lifted */
   5729     RECOMP_FLAGS_IN();
   5730     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   5731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5732     esp = esp + 0x18u; /* 0x3801DDB7: add esp, 0x18 */
   5733     _flag_k = FK_ADD;
   5734     ecx = eax; /* 0x3801DDBA: mov ecx, eax */
   5735     RECOMP_ICALL(0x38029E80u); /* 0x3801DDBC: call 0x38029e80 */ /* not lifted */
   5736     RECOMP_FLAGS_IN();
   5737     eax = MEM32(0x3804E4A8); /* 0x3801DDC1: mov eax, dword ptr [0x3804e4a8] */
   5738     ecx = MEM32(eax); /* 0x3801DDC6: mov ecx, dword ptr [eax] */
   5739     PUSH32(esp, 1); /* 0x3801DDC8: push 1 */
   5740     PUSH32(esp, 0x3806C320u); /* 0x3801DDCA: push 0x3806c320 */
   5741     MEM32(ebp + (-0x18)) = 0; /* 0x3801DDCF: mov dword ptr [ebp - 0x18], 0 */
   5742     MEM32(ebp + (-0x14)) = 0x40000000u; /* 0x3801DDD6: mov dword ptr [ebp - 0x14], 0x40000000 */
   5743     MEM32(ebp + (-0x10)) = 0xBF800000u; /* 0x3801DDDD: mov dword ptr [ebp - 0x10], 0xbf800000 */
   5744     RECOMP_ICALL(MEM32(0x3804E490)); /* 0x3801DDE4: call dword ptr [0x3804e490] */
   5745     RECOMP_FLAGS_IN();
   5746     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3801DDEA: fstp dword ptr [ebp - 0x50] */
   5747     ecx = MEM32(esi + 0x88); /* 0x3801DDED: mov ecx, dword ptr [esi + 0x88] */
   5748     RECOMP_ICALL(0x38018E70u); /* 0x3801DDF3: call 0x38018e70 */ /* not lifted */
   5749     RECOMP_FLAGS_IN();
   5750     /* test eax, eax */ /* 0x3801DDF8: test eax, eax */
   5751     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5752     _cf = 0;
   5753     _flag_k = FK_TEST;
   5754     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DE65; /* 0x3801DDFA: je 0x3801de65 */
   5755 L_3801DDFC:
   5756     ecx = eax; /* 0x3801DDFC: mov ecx, eax */
   5757     RECOMP_ICALL(0x38029620u); /* 0x3801DDFE: call 0x38029620 */ /* not lifted */
   5758     RECOMP_FLAGS_IN();
   5759     ecx = ebp + (-0x80); /* 0x3801DE03: lea ecx, [ebp - 0x80] */
   5760     /* cmp ecx, eax */ /* 0x3801DE06: cmp ecx, eax */
   5761     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5763     _flag_k = FK_CMP;
   5764     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801DE15; /* 0x3801DE08: je 0x3801de15 */
   5765 L_3801DE0A:
   5766     edx = MEM32(eax); /* 0x3801DE0A: mov edx, dword ptr [eax] */
   5767     MEM32(ebp + (-0x80)) = edx; /* 0x3801DE0C: mov dword ptr [ebp - 0x80], edx */
   5768     ecx = MEM32(eax + 0x4); /* 0x3801DE0F: mov ecx, dword ptr [eax + 4] */
   5769     MEM32(ebp + (-0x7C)) = ecx; /* 0x3801DE12: mov dword ptr [ebp - 0x7c], ecx */
   5770 L_3801DE15:
   5771     edx = MEM32(eax + 0x8); /* 0x3801DE15: mov edx, dword ptr [eax + 8] */
   5772     MEM32(ebp + (-0x78)) = edx; /* 0x3801DE18: mov dword ptr [ebp - 0x78], edx */
   5773     ecx = MEM32(eax + 0xC); /* 0x3801DE1B: mov ecx, dword ptr [eax + 0xc] */
   5774     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   5775     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5776     eax = eax + 0x10u; /* 0x3801DE1E: add eax, 0x10 */
   5777     _flag_k = FK_ADD;
   5778     MEM32(ebp + (-0x74)) = ecx; /* 0x3801DE21: mov dword ptr [ebp - 0x74], ecx */
   5779     PUSH32(esp, eax); /* 0x3801DE24: push eax */
   5780     ecx = ebp + (-0x70); /* 0x3801DE25: lea ecx, [ebp - 0x70] */
   5781     RECOMP_ICALL(0x3801E100u); /* 0x3801DE28: call 0x3801e100 */ /* not lifted */
   5782     RECOMP_FLAGS_IN();
   5783     /* cmp MEM32(ebp + (-0x7C)), 0x380u */ /* 0x3801DE2D: cmp dword ptr [ebp - 0x7c], 0x380 */
   5784     _flag_a = (uint32_t)(MEM32(ebp + (-0x7C))); _flag_b = (uint32_t)(0x380u);
   5785     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5786     _flag_k = FK_CMP;
   5787     if (CMP_NE(_flag_a, _flag_b)) goto L_3801DE65; /* 0x3801DE34: jne 0x3801de65 */
   5788 L_3801DE36:
   5789     edx = MEM32(0x3804E4A8); /* 0x3801DE36: mov edx, dword ptr [0x3804e4a8] */
   5790     ecx = MEM32(edx); /* 0x3801DE3C: mov ecx, dword ptr [edx] */
   5791     edi = MEM32(0x3804E4AC); /* 0x3801DE3E: mov edi, dword ptr [0x3804e4ac] */
   5792     PUSH32(esp, 1); /* 0x3801DE44: push 1 */
   5793     PUSH32(esp, 1); /* 0x3801DE46: push 1 */
   5794     PUSH32(esp, 1); /* 0x3801DE48: push 1 */
   5795     PUSH32(esp, 0x3806B7F8u); /* 0x3801DE4A: push 0x3806b7f8 */
   5796     RECOMP_ICALL(edi); /* 0x3801DE4F: call edi */
   5797     RECOMP_FLAGS_IN();
   5798     eax = MEM32(0x3804E4A8); /* 0x3801DE51: mov eax, dword ptr [0x3804e4a8] */
   5799     ecx = MEM32(eax); /* 0x3801DE56: mov ecx, dword ptr [eax] */
   5800     PUSH32(esp, 1); /* 0x3801DE58: push 1 */
   5801     PUSH32(esp, 1); /* 0x3801DE5A: push 1 */
   5802     PUSH32(esp, 1); /* 0x3801DE5C: push 1 */
   5803     PUSH32(esp, 0x3806B81Cu); /* 0x3801DE5E: push 0x3806b81c */
   5804     RECOMP_ICALL(edi); /* 0x3801DE63: call edi */
   5805     RECOMP_FLAGS_IN();
   5806 L_3801DE65:
   5807     ecx = MEM32(0x3804E4A8); /* 0x3801DE65: mov ecx, dword ptr [0x3804e4a8] */
   5808     ecx = MEM32(ecx); /* 0x3801DE6B: mov ecx, dword ptr [ecx] */
   5809     PUSH32(esp, 1); /* 0x3801DE6D: push 1 */
   5810     PUSH32(esp, 0x3806B81Cu); /* 0x3801DE6F: push 0x3806b81c */
   5811     RECOMP_ICALL(MEM32(0x3804E498)); /* 0x3801DE74: call dword ptr [0x3804e498] */
   5812     RECOMP_FLAGS_IN();
   5813     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5814     _cf = (eax) != 0;
   5815     eax = (uint32_t)(-(int32_t)eax); /* 0x3801DE7A: neg eax */
   5816     _flag_k = FK_CMP;
   5817     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3801DE7C: sbb al, al */
   5818       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
   5819       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5820       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5821     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5822     SET_LO8(eax, LO8(eax) + 1); /* 0x3801DE7E: inc al */
   5823     _flag_k = FK_NARROW(FK_INC, 24);
   5824     PUSH32(esp, 0x1E4u); /* 0x3801DE80: push 0x1e4 */
   5825     MEM8(ebp + 0x8) = (uint8_t)(LO8(eax)); /* 0x3801DE85: mov byte ptr [ebp + 8], al */
   5826     RECOMP_ICALL(0x3804B676u); /* 0x3801DE88: call 0x3804b676 */ /* not lifted */
   5827     RECOMP_FLAGS_IN();
   5828     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5829     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5830     esp = esp + 4; /* 0x3801DE8D: add esp, 4 */
   5831     _flag_k = FK_ADD;
   5832     MEM32(ebp + (-0x90)) = eax; /* 0x3801DE90: mov dword ptr [ebp - 0x90], eax */
   5833     /* test eax, eax */ /* 0x3801DE96: test eax, eax */
   5834     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5835     _cf = 0;
   5836     _flag_k = FK_TEST;
   5837     MEM32(ebp + (-0x4)) = 0; /* 0x3801DE98: mov dword ptr [ebp - 4], 0 */
   5838     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DED1; /* 0x3801DE9F: je 0x3801ded1 */
   5839 L_3801DEA1:
   5840     edx = MEM32(ebp + 0x8); /* 0x3801DEA1: mov edx, dword ptr [ebp + 8] */
   5841     esi = MEM32(esi + 0x88); /* 0x3801DEA4: mov esi, dword ptr [esi + 0x88] */
   5842     ecx = MEM32(esi + 0x78); /* 0x3801DEAA: mov ecx, dword ptr [esi + 0x78] */
   5843     esi = MEM32(esi + 0x8); /* 0x3801DEAD: mov esi, dword ptr [esi + 8] */
   5844     PUSH32(esp, edx); /* 0x3801DEB0: push edx */
   5845     edx = MEM32(ebp + (-0x50)); /* 0x3801DEB1: mov edx, dword ptr [ebp - 0x50] */
   5846     PUSH32(esp, 0x43480000u); /* 0x3801DEB4: push 0x43480000 */
   5847     PUSH32(esp, 0x3E4CCCCDu); /* 0x3801DEB9: push 0x3e4ccccd */
   5848     PUSH32(esp, edx); /* 0x3801DEBE: push edx */
   5849     PUSH32(esp, 0x3FC90FDBu); /* 0x3801DEBF: push 0x3fc90fdb */
   5850     PUSH32(esp, ecx); /* 0x3801DEC4: push ecx */
   5851     PUSH32(esp, esi); /* 0x3801DEC5: push esi */
   5852     ecx = eax; /* 0x3801DEC6: mov ecx, eax */
   5853     RECOMP_ICALL(0x380064A0u); /* 0x3801DEC8: call 0x380064a0 */ /* not lifted */
   5854     RECOMP_FLAGS_IN();
   5855     esi = eax; /* 0x3801DECD: mov esi, eax */
   5856     goto L_3801DED3; /* 0x3801DECF: jmp 0x3801ded3 */
   5857 L_3801DED1:
   5858     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5859     esi = 0; /* 0x3801DED1: xor esi, esi */
   5860     _cf = 0;
   5861     _flag_k = FK_TEST;
   5862 L_3801DED3:
   5863     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   5864     edi = edi | 0xFFFFFFFFu; /* 0x3801DED3: or edi, 0xffffffff */
   5865     _cf = 0;
   5866     _flag_k = FK_TEST;
   5867     PUSH32(esp, 0); /* 0x3801DED6: push 0 */
   5868     ecx = esi; /* 0x3801DED8: mov ecx, esi */
   5869     MEM32(ebp + (-0x4)) = edi; /* 0x3801DEDA: mov dword ptr [ebp - 4], edi */
   5870     RECOMP_ICALL(0x38019020u); /* 0x3801DEDD: call 0x38019020 */ /* not lifted */
   5871     RECOMP_FLAGS_IN();
   5872     eax = MEM32(ebx + 0x60); /* 0x3801DEE2: mov eax, dword ptr [ebx + 0x60] */
   5873     PUSH32(esp, eax); /* 0x3801DEE5: push eax */
   5874     ecx = esi; /* 0x3801DEE6: mov ecx, esi */
   5875     RECOMP_ICALL(0x38007540u); /* 0x3801DEE8: call 0x38007540 */ /* not lifted */
   5876     RECOMP_FLAGS_IN();
   5877     PUSH32(esp, 0x30u); /* 0x3801DEED: push 0x30 */
   5878     RECOMP_ICALL(0x3804B676u); /* 0x3801DEEF: call 0x3804b676 */ /* not lifted */
   5879     RECOMP_FLAGS_IN();
   5880     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5881     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5882     esp = esp + 4; /* 0x3801DEF4: add esp, 4 */
   5883     _flag_k = FK_ADD;
   5884     MEM32(ebp + 0x8) = eax; /* 0x3801DEF7: mov dword ptr [ebp + 8], eax */
   5885     /* test eax, eax */ /* 0x3801DEFA: test eax, eax */
   5886     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5887     _cf = 0;
   5888     _flag_k = FK_TEST;
   5889     MEM32(ebp + (-0x4)) = 1; /* 0x3801DEFC: mov dword ptr [ebp - 4], 1 */
   5890     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DF2D; /* 0x3801DF03: je 0x3801df2d */
   5891 L_3801DF05:
   5892     PUSH32(esp, 0x3EB33333u); /* 0x3801DF05: push 0x3eb33333 */
   5893     ecx = ebp + (-0x3C); /* 0x3801DF0A: lea ecx, [ebp - 0x3c] */
   5894     PUSH32(esp, ecx); /* 0x3801DF0D: push ecx */
   5895     PUSH32(esp, esi); /* 0x3801DF0E: push esi */
   5896     ecx = eax; /* 0x3801DF0F: mov ecx, eax */
   5897     MEM32(ebp + (-0x3C)) = 0; /* 0x3801DF11: mov dword ptr [ebp - 0x3c], 0 */
   5898     MEM32(ebp + (-0x38)) = 0; /* 0x3801DF18: mov dword ptr [ebp - 0x38], 0 */
   5899     MEM32(ebp + (-0x34)) = 0; /* 0x3801DF1F: mov dword ptr [ebp - 0x34], 0 */
   5900     RECOMP_ICALL(0x38016DD0u); /* 0x3801DF26: call 0x38016dd0 */ /* not lifted */
   5901     RECOMP_FLAGS_IN();
   5902     goto L_3801DF2F; /* 0x3801DF2B: jmp 0x3801df2f */
   5903 L_3801DF2D:
   5904     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5905     eax = 0; /* 0x3801DF2D: xor eax, eax */
   5906     _cf = 0;
   5907     _flag_k = FK_TEST;
   5908 L_3801DF2F:
   5909     PUSH32(esp, eax); /* 0x3801DF2F: push eax */
   5910     ecx = esi; /* 0x3801DF30: mov ecx, esi */
   5911     MEM32(ebp + (-0x4)) = edi; /* 0x3801DF32: mov dword ptr [ebp - 4], edi */
   5912     RECOMP_ICALL(0x38019D20u); /* 0x3801DF35: call 0x38019d20 */ /* not lifted */
   5913     RECOMP_FLAGS_IN();
   5914     edx = ebp + (-0x78); /* 0x3801DF3A: lea edx, [ebp - 0x78] */
   5915     PUSH32(esp, edx); /* 0x3801DF3D: push edx */
   5916     ecx = ebx; /* 0x3801DF3E: mov ecx, ebx */
   5917     RECOMP_ICALL(0x38017FB0u); /* 0x3801DF40: call 0x38017fb0 */ /* not lifted */
   5918     RECOMP_FLAGS_IN();
   5919     ecx = MEM32(ebp + (-0x14)); /* 0x3801DF45: mov ecx, dword ptr [ebp - 0x14] */
   5920     edx = MEM32(ebp + (-0x10)); /* 0x3801DF48: mov edx, dword ptr [ebp - 0x10] */
   5921     edi = eax; /* 0x3801DF4B: mov edi, eax */
   5922     eax = MEM32(ebp + (-0x18)); /* 0x3801DF4D: mov eax, dword ptr [ebp - 0x18] */
   5923     MEM32(ebp + (-0x48)) = eax; /* 0x3801DF50: mov dword ptr [ebp - 0x48], eax */
   5924     MEM32(ebp + (-0x44)) = ecx; /* 0x3801DF53: mov dword ptr [ebp - 0x44], ecx */
   5925     eax = edi; /* 0x3801DF56: mov eax, edi */
   5926     ecx = MEM32(eax); /* 0x3801DF58: mov ecx, dword ptr [eax] */
   5927     MEM32(ebp + (-0x8C)) = ecx; /* 0x3801DF5A: mov dword ptr [ebp - 0x8c], ecx */
   5928     MEM32(ebp + (-0x40)) = edx; /* 0x3801DF60: mov dword ptr [ebp - 0x40], edx */
   5929     edx = MEM32(eax + 0x4); /* 0x3801DF63: mov edx, dword ptr [eax + 4] */
   5930     eax = MEM32(eax + 0x8); /* 0x3801DF66: mov eax, dword ptr [eax + 8] */
   5931     ecx = ebp + (-0x48); /* 0x3801DF69: lea ecx, [ebp - 0x48] */
   5932     PUSH32(esp, ecx); /* 0x3801DF6C: push ecx */
   5933     ecx = ebp + (-0x8C); /* 0x3801DF6D: lea ecx, [ebp - 0x8c] */
   5934     MEM32(ebp + (-0x88)) = edx; /* 0x3801DF73: mov dword ptr [ebp - 0x88], edx */
   5935     MEM32(ebp + (-0x84)) = eax; /* 0x3801DF79: mov dword ptr [ebp - 0x84], eax */
   5936     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3801DF7F: call dword ptr [0x3804e4c8] */
   5937     RECOMP_FLAGS_IN();
   5938     edx = MEM32(eax); /* 0x3801DF85: mov edx, dword ptr [eax] */
   5939     MEM32(ebp + (-0x30)) = edx; /* 0x3801DF87: mov dword ptr [ebp - 0x30], edx */
   5940     ecx = MEM32(eax + 0x4); /* 0x3801DF8A: mov ecx, dword ptr [eax + 4] */
   5941     MEM32(ebp + (-0x2C)) = ecx; /* 0x3801DF8D: mov dword ptr [ebp - 0x2c], ecx */
   5942     edx = MEM32(eax + 0x8); /* 0x3801DF90: mov edx, dword ptr [eax + 8] */
   5943     eax = edi; /* 0x3801DF93: mov eax, edi */
   5944     ecx = MEM32(eax); /* 0x3801DF95: mov ecx, dword ptr [eax] */
   5945     MEM32(ebp + (-0x68)) = ecx; /* 0x3801DF97: mov dword ptr [ebp - 0x68], ecx */
   5946     MEM32(ebp + (-0x28)) = edx; /* 0x3801DF9A: mov dword ptr [ebp - 0x28], edx */
   5947     edx = MEM32(eax + 0x4); /* 0x3801DF9D: mov edx, dword ptr [eax + 4] */
   5948     eax = MEM32(eax + 0x8); /* 0x3801DFA0: mov eax, dword ptr [eax + 8] */
   5949     ecx = ebp + (-0x30); /* 0x3801DFA3: lea ecx, [ebp - 0x30] */
   5950     PUSH32(esp, ecx); /* 0x3801DFA6: push ecx */
   5951     ecx = ebp + (-0x68); /* 0x3801DFA7: lea ecx, [ebp - 0x68] */
   5952     MEM32(ebp + (-0x64)) = edx; /* 0x3801DFAA: mov dword ptr [ebp - 0x64], edx */
   5953     MEM32(ebp + (-0x60)) = eax; /* 0x3801DFAD: mov dword ptr [ebp - 0x60], eax */
   5954     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3801DFB0: call dword ptr [0x3804e4c8] */
   5955     RECOMP_FLAGS_IN();
   5956     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x3801DFB6: fld dword ptr [edi + 0xc] */
   5957     edx = MEM32(eax); /* 0x3801DFB9: mov edx, dword ptr [eax] */
   5958     _st[0] += _st[0]; /* 0x3801DFBB: fadd st(0), st(0) */
   5959     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3801DFBD: fld dword ptr [ebp - 0x30] */
   5960     MEM32(ebp + (-0x18)) = edx; /* 0x3801DFC0: mov dword ptr [ebp - 0x18], edx */
   5961     ecx = MEM32(eax + 0x4); /* 0x3801DFC3: mov ecx, dword ptr [eax + 4] */
   5962     _st[0] *= _st[1]; /* 0x3801DFC6: fmul st(1) */
   5963     MEM32(ebp + (-0x14)) = ecx; /* 0x3801DFC8: mov dword ptr [ebp - 0x14], ecx */
   5964     edx = MEM32(eax + 0x8); /* 0x3801DFCB: mov edx, dword ptr [eax + 8] */
   5965     MEM32(ebp + (-0x10)) = edx; /* 0x3801DFCE: mov dword ptr [ebp - 0x10], edx */
   5966     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3801DFD1: fstp dword ptr [ebp - 0x30] */
   5967     eax = ebp + (-0x30); /* 0x3801DFD4: lea eax, [ebp - 0x30] */
   5968     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3801DFD7: fld dword ptr [ebp - 0x2c] */
   5969     PUSH32(esp, eax); /* 0x3801DFDA: push eax */
   5970     _st[0] *= _st[1]; /* 0x3801DFDB: fmul st(1) */
   5971     ecx = ebp + (-0x48); /* 0x3801DFDD: lea ecx, [ebp - 0x48] */
   5972     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3801DFE0: fstp dword ptr [ebp - 0x2c] */
   5973     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3801DFE3: fld dword ptr [ebp - 0x28] */
   5974     _st[0] *= _st[1]; /* 0x3801DFE6: fmul st(1) */
   5975     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3801DFE8: fstp dword ptr [ebp - 0x28] */
   5976     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3801DFEB: fstp st(0) */
   5977     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3801DFED: fld dword ptr [ebp - 0x18] */
   5978     _st[0] += _st[0]; /* 0x3801DFF0: fadd st(0), st(0) */
   5979     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3801DFF2: fstp dword ptr [ebp - 0x18] */
   5980     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3801DFF5: fld dword ptr [ebp - 0x14] */
   5981     _st[0] += _st[0]; /* 0x3801DFF8: fadd st(0), st(0) */
   5982     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3801DFFA: fstp dword ptr [ebp - 0x14] */
   5983     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3801DFFD: fld dword ptr [ebp - 0x10] */
   5984     _st[0] += _st[0]; /* 0x3801E000: fadd st(0), st(0) */
   5985     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3801E002: fstp dword ptr [ebp - 0x10] */
   5986     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3801E005: call dword ptr [0x3804e4e8] */
   5987     RECOMP_FLAGS_IN();
   5988     ecx = ebp + (-0x18); /* 0x3801E00B: lea ecx, [ebp - 0x18] */
   5989     PUSH32(esp, ecx); /* 0x3801E00E: push ecx */
   5990     ecx = ebp + (-0x48); /* 0x3801E00F: lea ecx, [ebp - 0x48] */
   5991     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3801E012: call dword ptr [0x3804e4e8] */
   5992     RECOMP_FLAGS_IN();
   5993     edx = MEM32(ebp + (-0x48)); /* 0x3801E018: mov edx, dword ptr [ebp - 0x48] */
   5994     eax = MEM32(ebp + (-0x44)); /* 0x3801E01B: mov eax, dword ptr [ebp - 0x44] */
   5995     MEM32(ebp + (-0x3C)) = edx; /* 0x3801E01E: mov dword ptr [ebp - 0x3c], edx */
   5996     ecx = MEM32(ebp + (-0x40)); /* 0x3801E021: mov ecx, dword ptr [ebp - 0x40] */
   5997     MEM32(ebp + (-0x34)) = ecx; /* 0x3801E024: mov dword ptr [ebp - 0x34], ecx */
   5998     ecx = ebx; /* 0x3801E027: mov ecx, ebx */
   5999     MEM32(ebp + (-0x38)) = eax; /* 0x3801E029: mov dword ptr [ebp - 0x38], eax */
   6000     RECOMP_ICALL(0x38017F50u); /* 0x3801E02C: call 0x38017f50 */ /* not lifted */
   6001     RECOMP_FLAGS_IN();
   6002     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3801E031: fld dword ptr [ebp - 0x3c] */
   6003     edx = MEM32(eax); /* 0x3801E034: mov edx, dword ptr [eax] */
   6004     ecx = MEM32(eax + 0x4); /* 0x3801E036: mov ecx, dword ptr [eax + 4] */
   6005     MEM32(ebp + (-0x24)) = edx; /* 0x3801E039: mov dword ptr [ebp - 0x24], edx */
   6006     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3801E03C: fadd dword ptr [ebp - 0x24] */
   6007     edx = MEM32(eax + 0x8); /* 0x3801E03F: mov edx, dword ptr [eax + 8] */
   6008     MEM32(ebp + (-0x20)) = ecx; /* 0x3801E042: mov dword ptr [ebp - 0x20], ecx */
   6009     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3801E045: fstp dword ptr [ebp - 0x24] */
   6010     eax = MEM32(ebp + (-0x24)); /* 0x3801E048: mov eax, dword ptr [ebp - 0x24] */
   6011     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3801E04B: fld dword ptr [ebp - 0x38] */
   6012     MEM32(ebp + (-0x1C)) = edx; /* 0x3801E04E: mov dword ptr [ebp - 0x1c], edx */
   6013     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3801E051: fadd dword ptr [ebp - 0x20] */
   6014     MEM32(ebp + (-0x5C)) = eax; /* 0x3801E054: mov dword ptr [ebp - 0x5c], eax */
   6015     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3801E057: fstp dword ptr [ebp - 0x20] */
   6016     ecx = MEM32(ebp + (-0x20)); /* 0x3801E05A: mov ecx, dword ptr [ebp - 0x20] */
   6017     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3801E05D: fld dword ptr [ebp - 0x34] */
   6018     MEM32(ebp + (-0x58)) = ecx; /* 0x3801E060: mov dword ptr [ebp - 0x58], ecx */
   6019     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3801E063: fadd dword ptr [ebp - 0x1c] */
   6020     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3801E066: fstp dword ptr [ebp - 0x1c] */
   6021     edx = MEM32(ebp + (-0x1C)); /* 0x3801E069: mov edx, dword ptr [ebp - 0x1c] */
   6022     MEM32(ebp + (-0x54)) = edx; /* 0x3801E06C: mov dword ptr [ebp - 0x54], edx */
   6023     RECOMP_ICALL(0x3801DA30u); /* 0x3801E06F: call 0x3801da30 */ /* not lifted */
   6024     RECOMP_FLAGS_IN();
   6025     ecx = eax; /* 0x3801E074: mov ecx, eax */
   6026     RECOMP_ICALL(0x3802BF20u); /* 0x3801E076: call 0x3802bf20 */ /* not lifted */
   6027     RECOMP_FLAGS_IN();
   6028     edx = MEM32(eax); /* 0x3801E07B: mov edx, dword ptr [eax] */
   6029     PUSH32(esp, 0); /* 0x3801E07D: push 0 */
   6030     PUSH32(esp, 0); /* 0x3801E07F: push 0 */
   6031     ecx = ebp + (-0x5C); /* 0x3801E081: lea ecx, [ebp - 0x5c] */
   6032     PUSH32(esp, ecx); /* 0x3801E084: push ecx */
   6033     ecx = eax; /* 0x3801E085: mov ecx, eax */
   6034     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3801E087: call dword ptr [edx + 0x20] */
   6035     RECOMP_FLAGS_IN();
   6036     RECOMP_ICALL(0x3801DA30u); /* 0x3801E08A: call 0x3801da30 */ /* not lifted */
   6037     RECOMP_FLAGS_IN();
   6038     edi = eax; /* 0x3801E08F: mov edi, eax */
   6039     edx = MEM32(edi); /* 0x3801E091: mov edx, dword ptr [edi] */
   6040     eax = ebp + (-0xA0); /* 0x3801E093: lea eax, [ebp - 0xa0] */
   6041     PUSH32(esp, eax); /* 0x3801E099: push eax */
   6042     ecx = ebx; /* 0x3801E09A: mov ecx, ebx */
   6043     MEM32(ebp + 0x8) = edx; /* 0x3801E09C: mov dword ptr [ebp + 8], edx */
   6044     RECOMP_ICALL(0x38017FB0u); /* 0x3801E09F: call 0x38017fb0 */ /* not lifted */
   6045     RECOMP_FLAGS_IN();
   6046     edx = MEM32(ebp + 0x8); /* 0x3801E0A4: mov edx, dword ptr [ebp + 8] */
   6047     PUSH32(esp, eax); /* 0x3801E0A7: push eax */
   6048     ecx = ebp + (-0x5C); /* 0x3801E0A8: lea ecx, [ebp - 0x5c] */
   6049     PUSH32(esp, ecx); /* 0x3801E0AB: push ecx */
   6050     PUSH32(esp, esi); /* 0x3801E0AC: push esi */
   6051     ecx = edi; /* 0x3801E0AD: mov ecx, edi */
   6052     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3801E0AF: call dword ptr [edx + 0x1c] */
   6053     RECOMP_FLAGS_IN();
   6054     eax = MEM32(ebp + (-0x4C)); /* 0x3801E0B2: mov eax, dword ptr [ebp - 0x4c] */
   6055     ecx = MEM32(eax + 0x88); /* 0x3801E0B5: mov ecx, dword ptr [eax + 0x88] */
   6056     RECOMP_ICALL(0x38017EC0u); /* 0x3801E0BB: call 0x38017ec0 */ /* not lifted */
   6057     RECOMP_FLAGS_IN();
   6058     ecx = esi; /* 0x3801E0C0: mov ecx, esi */
   6059     RECOMP_ICALL(0x380088A0u); /* 0x3801E0C2: call 0x380088a0 */ /* not lifted */
   6060     RECOMP_FLAGS_IN();
   6061     ecx = MEM32(0x3806EC04); /* 0x3801E0C7: mov ecx, dword ptr [0x3806ec04] */
   6062     PUSH32(esp, 0); /* 0x3801E0CD: push 0 */
   6063     PUSH32(esp, 0x3806C300u); /* 0x3801E0CF: push 0x3806c300 */
   6064     PUSH32(esp, 0x3806C220u); /* 0x3801E0D4: push 0x3806c220 */
   6065     PUSH32(esp, 0); /* 0x3801E0D9: push 0 */
   6066     PUSH32(esp, ecx); /* 0x3801E0DB: push ecx */
   6067     RECOMP_ICALL(0x3804B682u); /* 0x3801E0DC: call 0x3804b682 */ /* not lifted */
   6068     RECOMP_FLAGS_IN();
   6069     edx = MEM32(eax); /* 0x3801E0E1: mov edx, dword ptr [eax] */
   6070     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6071     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6072     esp = esp + 0x14u; /* 0x3801E0E3: add esp, 0x14 */
   6073     _flag_k = FK_ADD;
   6074     PUSH32(esp, esi); /* 0x3801E0E6: push esi */
   6075     ecx = eax; /* 0x3801E0E7: mov ecx, eax */
   6076     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3801E0E9: call dword ptr [edx + 0x20] */
   6077     RECOMP_FLAGS_IN();
   6078     edi = POP32_VAL(esp); /* 0x3801E0EC: pop edi */
   6079 L_3801E0ED:
   6080     ecx = MEM32(ebp + (-0xC)); /* 0x3801E0ED: mov ecx, dword ptr [ebp - 0xc] */
   6081     esi = POP32_VAL(esp); /* 0x3801E0F0: pop esi */
   6082     ebx = POP32_VAL(esp); /* 0x3801E0F1: pop ebx */
   6083     MEM32(FS_BASE + (0)) = ecx; /* 0x3801E0F2: mov dword ptr fs:[0], ecx */
   6084     esp = ebp; /* 0x3801E0F9: mov esp, ebp */
   6085     ebp = POP32_VAL(esp); /* 0x3801E0FB: pop ebp */
   6086     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E0FC: ret 4 */
   6087     RECOMP_REGS_OUT();
   6088 }
   6089 
   6090 void sub_3801DDD6(void) {
   6091     int _fpu_cmp = 0;
   6092     uint32_t _cf = 0;
   6093     int _df = 1;
   6094     uint32_t _flag_k = FK_NONE;
   6095     uint32_t _flag_a = 0, _flag_b = 0;
   6096     uint32_t _itail_tgt = 0;
   6097     RECOMP_REGS_LOCALS
   6098     RECOMP_ENTER(0x3801DDD6u);
   6099 
   6100 L_3801DDD6:
   6101     MEM32(ebp + (-0x14)) = 0x40000000u; /* 0x3801DDD6: mov dword ptr [ebp - 0x14], 0x40000000 */
   6102     MEM32(ebp + (-0x10)) = 0xBF800000u; /* 0x3801DDDD: mov dword ptr [ebp - 0x10], 0xbf800000 */
   6103     RECOMP_ICALL(MEM32(0x3804E490)); /* 0x3801DDE4: call dword ptr [0x3804e490] */
   6104     RECOMP_FLAGS_IN();
   6105     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x3801DDEA: fstp dword ptr [ebp - 0x50] */
   6106     ecx = MEM32(esi + 0x88); /* 0x3801DDED: mov ecx, dword ptr [esi + 0x88] */
   6107     RECOMP_ICALL(0x38018E70u); /* 0x3801DDF3: call 0x38018e70 */ /* not lifted */
   6108     RECOMP_FLAGS_IN();
   6109     /* test eax, eax */ /* 0x3801DDF8: test eax, eax */
   6110     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6111     _cf = 0;
   6112     _flag_k = FK_TEST;
   6113     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DE65; /* 0x3801DDFA: je 0x3801de65 */
   6114 L_3801DDFC:
   6115     ecx = eax; /* 0x3801DDFC: mov ecx, eax */
   6116     RECOMP_ICALL(0x38029620u); /* 0x3801DDFE: call 0x38029620 */ /* not lifted */
   6117     RECOMP_FLAGS_IN();
   6118     ecx = ebp + (-0x80); /* 0x3801DE03: lea ecx, [ebp - 0x80] */
   6119     /* cmp ecx, eax */ /* 0x3801DE06: cmp ecx, eax */
   6120     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6122     _flag_k = FK_CMP;
   6123     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801DE15; /* 0x3801DE08: je 0x3801de15 */
   6124 L_3801DE0A:
   6125     edx = MEM32(eax); /* 0x3801DE0A: mov edx, dword ptr [eax] */
   6126     MEM32(ebp + (-0x80)) = edx; /* 0x3801DE0C: mov dword ptr [ebp - 0x80], edx */
   6127     ecx = MEM32(eax + 0x4); /* 0x3801DE0F: mov ecx, dword ptr [eax + 4] */
   6128     MEM32(ebp + (-0x7C)) = ecx; /* 0x3801DE12: mov dword ptr [ebp - 0x7c], ecx */
   6129 L_3801DE15:
   6130     edx = MEM32(eax + 0x8); /* 0x3801DE15: mov edx, dword ptr [eax + 8] */
   6131     MEM32(ebp + (-0x78)) = edx; /* 0x3801DE18: mov dword ptr [ebp - 0x78], edx */
   6132     ecx = MEM32(eax + 0xC); /* 0x3801DE1B: mov ecx, dword ptr [eax + 0xc] */
   6133     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   6134     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6135     eax = eax + 0x10u; /* 0x3801DE1E: add eax, 0x10 */
   6136     _flag_k = FK_ADD;
   6137     MEM32(ebp + (-0x74)) = ecx; /* 0x3801DE21: mov dword ptr [ebp - 0x74], ecx */
   6138     PUSH32(esp, eax); /* 0x3801DE24: push eax */
   6139     ecx = ebp + (-0x70); /* 0x3801DE25: lea ecx, [ebp - 0x70] */
   6140     RECOMP_ICALL(0x3801E100u); /* 0x3801DE28: call 0x3801e100 */ /* not lifted */
   6141     RECOMP_FLAGS_IN();
   6142     /* cmp MEM32(ebp + (-0x7C)), 0x380u */ /* 0x3801DE2D: cmp dword ptr [ebp - 0x7c], 0x380 */
   6143     _flag_a = (uint32_t)(MEM32(ebp + (-0x7C))); _flag_b = (uint32_t)(0x380u);
   6144     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6145     _flag_k = FK_CMP;
   6146     if (CMP_NE(_flag_a, _flag_b)) goto L_3801DE65; /* 0x3801DE34: jne 0x3801de65 */
   6147 L_3801DE36:
   6148     edx = MEM32(0x3804E4A8); /* 0x3801DE36: mov edx, dword ptr [0x3804e4a8] */
   6149     ecx = MEM32(edx); /* 0x3801DE3C: mov ecx, dword ptr [edx] */
   6150     edi = MEM32(0x3804E4AC); /* 0x3801DE3E: mov edi, dword ptr [0x3804e4ac] */
   6151     PUSH32(esp, 1); /* 0x3801DE44: push 1 */
   6152     PUSH32(esp, 1); /* 0x3801DE46: push 1 */
   6153     PUSH32(esp, 1); /* 0x3801DE48: push 1 */
   6154     PUSH32(esp, 0x3806B7F8u); /* 0x3801DE4A: push 0x3806b7f8 */
   6155     RECOMP_ICALL(edi); /* 0x3801DE4F: call edi */
   6156     RECOMP_FLAGS_IN();
   6157     eax = MEM32(0x3804E4A8); /* 0x3801DE51: mov eax, dword ptr [0x3804e4a8] */
   6158     ecx = MEM32(eax); /* 0x3801DE56: mov ecx, dword ptr [eax] */
   6159     PUSH32(esp, 1); /* 0x3801DE58: push 1 */
   6160     PUSH32(esp, 1); /* 0x3801DE5A: push 1 */
   6161     PUSH32(esp, 1); /* 0x3801DE5C: push 1 */
   6162     PUSH32(esp, 0x3806B81Cu); /* 0x3801DE5E: push 0x3806b81c */
   6163     RECOMP_ICALL(edi); /* 0x3801DE63: call edi */
   6164     RECOMP_FLAGS_IN();
   6165 L_3801DE65:
   6166     ecx = MEM32(0x3804E4A8); /* 0x3801DE65: mov ecx, dword ptr [0x3804e4a8] */
   6167     ecx = MEM32(ecx); /* 0x3801DE6B: mov ecx, dword ptr [ecx] */
   6168     PUSH32(esp, 1); /* 0x3801DE6D: push 1 */
   6169     PUSH32(esp, 0x3806B81Cu); /* 0x3801DE6F: push 0x3806b81c */
   6170     RECOMP_ICALL(MEM32(0x3804E498)); /* 0x3801DE74: call dword ptr [0x3804e498] */
   6171     RECOMP_FLAGS_IN();
   6172     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   6173     _cf = (eax) != 0;
   6174     eax = (uint32_t)(-(int32_t)eax); /* 0x3801DE7A: neg eax */
   6175     _flag_k = FK_CMP;
   6176     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3801DE7C: sbb al, al */
   6177       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
   6178       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6179       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6180     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6181     SET_LO8(eax, LO8(eax) + 1); /* 0x3801DE7E: inc al */
   6182     _flag_k = FK_NARROW(FK_INC, 24);
   6183     PUSH32(esp, 0x1E4u); /* 0x3801DE80: push 0x1e4 */
   6184     MEM8(ebp + 0x8) = (uint8_t)(LO8(eax)); /* 0x3801DE85: mov byte ptr [ebp + 8], al */
   6185     RECOMP_ICALL(0x3804B676u); /* 0x3801DE88: call 0x3804b676 */ /* not lifted */
   6186     RECOMP_FLAGS_IN();
   6187     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6189     esp = esp + 4; /* 0x3801DE8D: add esp, 4 */
   6190     _flag_k = FK_ADD;
   6191     MEM32(ebp + (-0x90)) = eax; /* 0x3801DE90: mov dword ptr [ebp - 0x90], eax */
   6192     /* test eax, eax */ /* 0x3801DE96: test eax, eax */
   6193     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6194     _cf = 0;
   6195     _flag_k = FK_TEST;
   6196     MEM32(ebp + (-0x4)) = 0; /* 0x3801DE98: mov dword ptr [ebp - 4], 0 */
   6197     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DED1; /* 0x3801DE9F: je 0x3801ded1 */
   6198 L_3801DEA1:
   6199     edx = MEM32(ebp + 0x8); /* 0x3801DEA1: mov edx, dword ptr [ebp + 8] */
   6200     esi = MEM32(esi + 0x88); /* 0x3801DEA4: mov esi, dword ptr [esi + 0x88] */
   6201     ecx = MEM32(esi + 0x78); /* 0x3801DEAA: mov ecx, dword ptr [esi + 0x78] */
   6202     esi = MEM32(esi + 0x8); /* 0x3801DEAD: mov esi, dword ptr [esi + 8] */
   6203     PUSH32(esp, edx); /* 0x3801DEB0: push edx */
   6204     edx = MEM32(ebp + (-0x50)); /* 0x3801DEB1: mov edx, dword ptr [ebp - 0x50] */
   6205     PUSH32(esp, 0x43480000u); /* 0x3801DEB4: push 0x43480000 */
   6206     PUSH32(esp, 0x3E4CCCCDu); /* 0x3801DEB9: push 0x3e4ccccd */
   6207     PUSH32(esp, edx); /* 0x3801DEBE: push edx */
   6208     PUSH32(esp, 0x3FC90FDBu); /* 0x3801DEBF: push 0x3fc90fdb */
   6209     PUSH32(esp, ecx); /* 0x3801DEC4: push ecx */
   6210     PUSH32(esp, esi); /* 0x3801DEC5: push esi */
   6211     ecx = eax; /* 0x3801DEC6: mov ecx, eax */
   6212     RECOMP_ICALL(0x380064A0u); /* 0x3801DEC8: call 0x380064a0 */ /* not lifted */
   6213     RECOMP_FLAGS_IN();
   6214     esi = eax; /* 0x3801DECD: mov esi, eax */
   6215     goto L_3801DED3; /* 0x3801DECF: jmp 0x3801ded3 */
   6216 L_3801DED1:
   6217     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6218     esi = 0; /* 0x3801DED1: xor esi, esi */
   6219     _cf = 0;
   6220     _flag_k = FK_TEST;
   6221 L_3801DED3:
   6222     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   6223     edi = edi | 0xFFFFFFFFu; /* 0x3801DED3: or edi, 0xffffffff */
   6224     _cf = 0;
   6225     _flag_k = FK_TEST;
   6226     PUSH32(esp, 0); /* 0x3801DED6: push 0 */
   6227     ecx = esi; /* 0x3801DED8: mov ecx, esi */
   6228     MEM32(ebp + (-0x4)) = edi; /* 0x3801DEDA: mov dword ptr [ebp - 4], edi */
   6229     RECOMP_ICALL(0x38019020u); /* 0x3801DEDD: call 0x38019020 */ /* not lifted */
   6230     RECOMP_FLAGS_IN();
   6231     eax = MEM32(ebx + 0x60); /* 0x3801DEE2: mov eax, dword ptr [ebx + 0x60] */
   6232     PUSH32(esp, eax); /* 0x3801DEE5: push eax */
   6233     ecx = esi; /* 0x3801DEE6: mov ecx, esi */
   6234     RECOMP_ICALL(0x38007540u); /* 0x3801DEE8: call 0x38007540 */ /* not lifted */
   6235     RECOMP_FLAGS_IN();
   6236     PUSH32(esp, 0x30u); /* 0x3801DEED: push 0x30 */
   6237     RECOMP_ICALL(0x3804B676u); /* 0x3801DEEF: call 0x3804b676 */ /* not lifted */
   6238     RECOMP_FLAGS_IN();
   6239     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6241     esp = esp + 4; /* 0x3801DEF4: add esp, 4 */
   6242     _flag_k = FK_ADD;
   6243     MEM32(ebp + 0x8) = eax; /* 0x3801DEF7: mov dword ptr [ebp + 8], eax */
   6244     /* test eax, eax */ /* 0x3801DEFA: test eax, eax */
   6245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6246     _cf = 0;
   6247     _flag_k = FK_TEST;
   6248     MEM32(ebp + (-0x4)) = 1; /* 0x3801DEFC: mov dword ptr [ebp - 4], 1 */
   6249     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DF2D; /* 0x3801DF03: je 0x3801df2d */
   6250 L_3801DF05:
   6251     PUSH32(esp, 0x3EB33333u); /* 0x3801DF05: push 0x3eb33333 */
   6252     ecx = ebp + (-0x3C); /* 0x3801DF0A: lea ecx, [ebp - 0x3c] */
   6253     PUSH32(esp, ecx); /* 0x3801DF0D: push ecx */
   6254     PUSH32(esp, esi); /* 0x3801DF0E: push esi */
   6255     ecx = eax; /* 0x3801DF0F: mov ecx, eax */
   6256     MEM32(ebp + (-0x3C)) = 0; /* 0x3801DF11: mov dword ptr [ebp - 0x3c], 0 */
   6257     MEM32(ebp + (-0x38)) = 0; /* 0x3801DF18: mov dword ptr [ebp - 0x38], 0 */
   6258     MEM32(ebp + (-0x34)) = 0; /* 0x3801DF1F: mov dword ptr [ebp - 0x34], 0 */
   6259     RECOMP_ICALL(0x38016DD0u); /* 0x3801DF26: call 0x38016dd0 */ /* not lifted */
   6260     RECOMP_FLAGS_IN();
   6261     goto L_3801DF2F; /* 0x3801DF2B: jmp 0x3801df2f */
   6262 L_3801DF2D:
   6263     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6264     eax = 0; /* 0x3801DF2D: xor eax, eax */
   6265     _cf = 0;
   6266     _flag_k = FK_TEST;
   6267 L_3801DF2F:
   6268     PUSH32(esp, eax); /* 0x3801DF2F: push eax */
   6269     ecx = esi; /* 0x3801DF30: mov ecx, esi */
   6270     MEM32(ebp + (-0x4)) = edi; /* 0x3801DF32: mov dword ptr [ebp - 4], edi */
   6271     RECOMP_ICALL(0x38019D20u); /* 0x3801DF35: call 0x38019d20 */ /* not lifted */
   6272     RECOMP_FLAGS_IN();
   6273     edx = ebp + (-0x78); /* 0x3801DF3A: lea edx, [ebp - 0x78] */
   6274     PUSH32(esp, edx); /* 0x3801DF3D: push edx */
   6275     ecx = ebx; /* 0x3801DF3E: mov ecx, ebx */
   6276     RECOMP_ICALL(0x38017FB0u); /* 0x3801DF40: call 0x38017fb0 */ /* not lifted */
   6277     RECOMP_FLAGS_IN();
   6278     ecx = MEM32(ebp + (-0x14)); /* 0x3801DF45: mov ecx, dword ptr [ebp - 0x14] */
   6279     edx = MEM32(ebp + (-0x10)); /* 0x3801DF48: mov edx, dword ptr [ebp - 0x10] */
   6280     edi = eax; /* 0x3801DF4B: mov edi, eax */
   6281     eax = MEM32(ebp + (-0x18)); /* 0x3801DF4D: mov eax, dword ptr [ebp - 0x18] */
   6282     MEM32(ebp + (-0x48)) = eax; /* 0x3801DF50: mov dword ptr [ebp - 0x48], eax */
   6283     MEM32(ebp + (-0x44)) = ecx; /* 0x3801DF53: mov dword ptr [ebp - 0x44], ecx */
   6284     eax = edi; /* 0x3801DF56: mov eax, edi */
   6285     ecx = MEM32(eax); /* 0x3801DF58: mov ecx, dword ptr [eax] */
   6286     MEM32(ebp + (-0x8C)) = ecx; /* 0x3801DF5A: mov dword ptr [ebp - 0x8c], ecx */
   6287     MEM32(ebp + (-0x40)) = edx; /* 0x3801DF60: mov dword ptr [ebp - 0x40], edx */
   6288     edx = MEM32(eax + 0x4); /* 0x3801DF63: mov edx, dword ptr [eax + 4] */
   6289     eax = MEM32(eax + 0x8); /* 0x3801DF66: mov eax, dword ptr [eax + 8] */
   6290     ecx = ebp + (-0x48); /* 0x3801DF69: lea ecx, [ebp - 0x48] */
   6291     PUSH32(esp, ecx); /* 0x3801DF6C: push ecx */
   6292     ecx = ebp + (-0x8C); /* 0x3801DF6D: lea ecx, [ebp - 0x8c] */
   6293     MEM32(ebp + (-0x88)) = edx; /* 0x3801DF73: mov dword ptr [ebp - 0x88], edx */
   6294     MEM32(ebp + (-0x84)) = eax; /* 0x3801DF79: mov dword ptr [ebp - 0x84], eax */
   6295     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3801DF7F: call dword ptr [0x3804e4c8] */
   6296     RECOMP_FLAGS_IN();
   6297     edx = MEM32(eax); /* 0x3801DF85: mov edx, dword ptr [eax] */
   6298     MEM32(ebp + (-0x30)) = edx; /* 0x3801DF87: mov dword ptr [ebp - 0x30], edx */
   6299     ecx = MEM32(eax + 0x4); /* 0x3801DF8A: mov ecx, dword ptr [eax + 4] */
   6300     MEM32(ebp + (-0x2C)) = ecx; /* 0x3801DF8D: mov dword ptr [ebp - 0x2c], ecx */
   6301     edx = MEM32(eax + 0x8); /* 0x3801DF90: mov edx, dword ptr [eax + 8] */
   6302     eax = edi; /* 0x3801DF93: mov eax, edi */
   6303     ecx = MEM32(eax); /* 0x3801DF95: mov ecx, dword ptr [eax] */
   6304     MEM32(ebp + (-0x68)) = ecx; /* 0x3801DF97: mov dword ptr [ebp - 0x68], ecx */
   6305     MEM32(ebp + (-0x28)) = edx; /* 0x3801DF9A: mov dword ptr [ebp - 0x28], edx */
   6306     edx = MEM32(eax + 0x4); /* 0x3801DF9D: mov edx, dword ptr [eax + 4] */
   6307     eax = MEM32(eax + 0x8); /* 0x3801DFA0: mov eax, dword ptr [eax + 8] */
   6308     ecx = ebp + (-0x30); /* 0x3801DFA3: lea ecx, [ebp - 0x30] */
   6309     PUSH32(esp, ecx); /* 0x3801DFA6: push ecx */
   6310     ecx = ebp + (-0x68); /* 0x3801DFA7: lea ecx, [ebp - 0x68] */
   6311     MEM32(ebp + (-0x64)) = edx; /* 0x3801DFAA: mov dword ptr [ebp - 0x64], edx */
   6312     MEM32(ebp + (-0x60)) = eax; /* 0x3801DFAD: mov dword ptr [ebp - 0x60], eax */
   6313     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3801DFB0: call dword ptr [0x3804e4c8] */
   6314     RECOMP_FLAGS_IN();
   6315     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x3801DFB6: fld dword ptr [edi + 0xc] */
   6316     edx = MEM32(eax); /* 0x3801DFB9: mov edx, dword ptr [eax] */
   6317     _st[0] += _st[0]; /* 0x3801DFBB: fadd st(0), st(0) */
   6318     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3801DFBD: fld dword ptr [ebp - 0x30] */
   6319     MEM32(ebp + (-0x18)) = edx; /* 0x3801DFC0: mov dword ptr [ebp - 0x18], edx */
   6320     ecx = MEM32(eax + 0x4); /* 0x3801DFC3: mov ecx, dword ptr [eax + 4] */
   6321     _st[0] *= _st[1]; /* 0x3801DFC6: fmul st(1) */
   6322     MEM32(ebp + (-0x14)) = ecx; /* 0x3801DFC8: mov dword ptr [ebp - 0x14], ecx */
   6323     edx = MEM32(eax + 0x8); /* 0x3801DFCB: mov edx, dword ptr [eax + 8] */
   6324     MEM32(ebp + (-0x10)) = edx; /* 0x3801DFCE: mov dword ptr [ebp - 0x10], edx */
   6325     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3801DFD1: fstp dword ptr [ebp - 0x30] */
   6326     eax = ebp + (-0x30); /* 0x3801DFD4: lea eax, [ebp - 0x30] */
   6327     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3801DFD7: fld dword ptr [ebp - 0x2c] */
   6328     PUSH32(esp, eax); /* 0x3801DFDA: push eax */
   6329     _st[0] *= _st[1]; /* 0x3801DFDB: fmul st(1) */
   6330     ecx = ebp + (-0x48); /* 0x3801DFDD: lea ecx, [ebp - 0x48] */
   6331     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3801DFE0: fstp dword ptr [ebp - 0x2c] */
   6332     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3801DFE3: fld dword ptr [ebp - 0x28] */
   6333     _st[0] *= _st[1]; /* 0x3801DFE6: fmul st(1) */
   6334     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3801DFE8: fstp dword ptr [ebp - 0x28] */
   6335     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3801DFEB: fstp st(0) */
   6336     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3801DFED: fld dword ptr [ebp - 0x18] */
   6337     _st[0] += _st[0]; /* 0x3801DFF0: fadd st(0), st(0) */
   6338     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3801DFF2: fstp dword ptr [ebp - 0x18] */
   6339     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3801DFF5: fld dword ptr [ebp - 0x14] */
   6340     _st[0] += _st[0]; /* 0x3801DFF8: fadd st(0), st(0) */
   6341     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3801DFFA: fstp dword ptr [ebp - 0x14] */
   6342     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3801DFFD: fld dword ptr [ebp - 0x10] */
   6343     _st[0] += _st[0]; /* 0x3801E000: fadd st(0), st(0) */
   6344     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3801E002: fstp dword ptr [ebp - 0x10] */
   6345     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3801E005: call dword ptr [0x3804e4e8] */
   6346     RECOMP_FLAGS_IN();
   6347     ecx = ebp + (-0x18); /* 0x3801E00B: lea ecx, [ebp - 0x18] */
   6348     PUSH32(esp, ecx); /* 0x3801E00E: push ecx */
   6349     ecx = ebp + (-0x48); /* 0x3801E00F: lea ecx, [ebp - 0x48] */
   6350     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3801E012: call dword ptr [0x3804e4e8] */
   6351     RECOMP_FLAGS_IN();
   6352     edx = MEM32(ebp + (-0x48)); /* 0x3801E018: mov edx, dword ptr [ebp - 0x48] */
   6353     eax = MEM32(ebp + (-0x44)); /* 0x3801E01B: mov eax, dword ptr [ebp - 0x44] */
   6354     MEM32(ebp + (-0x3C)) = edx; /* 0x3801E01E: mov dword ptr [ebp - 0x3c], edx */
   6355     ecx = MEM32(ebp + (-0x40)); /* 0x3801E021: mov ecx, dword ptr [ebp - 0x40] */
   6356     MEM32(ebp + (-0x34)) = ecx; /* 0x3801E024: mov dword ptr [ebp - 0x34], ecx */
   6357     ecx = ebx; /* 0x3801E027: mov ecx, ebx */
   6358     MEM32(ebp + (-0x38)) = eax; /* 0x3801E029: mov dword ptr [ebp - 0x38], eax */
   6359     RECOMP_ICALL(0x38017F50u); /* 0x3801E02C: call 0x38017f50 */ /* not lifted */
   6360     RECOMP_FLAGS_IN();
   6361     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3801E031: fld dword ptr [ebp - 0x3c] */
   6362     edx = MEM32(eax); /* 0x3801E034: mov edx, dword ptr [eax] */
   6363     ecx = MEM32(eax + 0x4); /* 0x3801E036: mov ecx, dword ptr [eax + 4] */
   6364     MEM32(ebp + (-0x24)) = edx; /* 0x3801E039: mov dword ptr [ebp - 0x24], edx */
   6365     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3801E03C: fadd dword ptr [ebp - 0x24] */
   6366     edx = MEM32(eax + 0x8); /* 0x3801E03F: mov edx, dword ptr [eax + 8] */
   6367     MEM32(ebp + (-0x20)) = ecx; /* 0x3801E042: mov dword ptr [ebp - 0x20], ecx */
   6368     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3801E045: fstp dword ptr [ebp - 0x24] */
   6369     eax = MEM32(ebp + (-0x24)); /* 0x3801E048: mov eax, dword ptr [ebp - 0x24] */
   6370     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3801E04B: fld dword ptr [ebp - 0x38] */
   6371     MEM32(ebp + (-0x1C)) = edx; /* 0x3801E04E: mov dword ptr [ebp - 0x1c], edx */
   6372     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3801E051: fadd dword ptr [ebp - 0x20] */
   6373     MEM32(ebp + (-0x5C)) = eax; /* 0x3801E054: mov dword ptr [ebp - 0x5c], eax */
   6374     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3801E057: fstp dword ptr [ebp - 0x20] */
   6375     ecx = MEM32(ebp + (-0x20)); /* 0x3801E05A: mov ecx, dword ptr [ebp - 0x20] */
   6376     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3801E05D: fld dword ptr [ebp - 0x34] */
   6377     MEM32(ebp + (-0x58)) = ecx; /* 0x3801E060: mov dword ptr [ebp - 0x58], ecx */
   6378     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3801E063: fadd dword ptr [ebp - 0x1c] */
   6379     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3801E066: fstp dword ptr [ebp - 0x1c] */
   6380     edx = MEM32(ebp + (-0x1C)); /* 0x3801E069: mov edx, dword ptr [ebp - 0x1c] */
   6381     MEM32(ebp + (-0x54)) = edx; /* 0x3801E06C: mov dword ptr [ebp - 0x54], edx */
   6382     RECOMP_ICALL(0x3801DA30u); /* 0x3801E06F: call 0x3801da30 */ /* not lifted */
   6383     RECOMP_FLAGS_IN();
   6384     ecx = eax; /* 0x3801E074: mov ecx, eax */
   6385     RECOMP_ICALL(0x3802BF20u); /* 0x3801E076: call 0x3802bf20 */ /* not lifted */
   6386     RECOMP_FLAGS_IN();
   6387     edx = MEM32(eax); /* 0x3801E07B: mov edx, dword ptr [eax] */
   6388     PUSH32(esp, 0); /* 0x3801E07D: push 0 */
   6389     PUSH32(esp, 0); /* 0x3801E07F: push 0 */
   6390     ecx = ebp + (-0x5C); /* 0x3801E081: lea ecx, [ebp - 0x5c] */
   6391     PUSH32(esp, ecx); /* 0x3801E084: push ecx */
   6392     ecx = eax; /* 0x3801E085: mov ecx, eax */
   6393     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3801E087: call dword ptr [edx + 0x20] */
   6394     RECOMP_FLAGS_IN();
   6395     RECOMP_ICALL(0x3801DA30u); /* 0x3801E08A: call 0x3801da30 */ /* not lifted */
   6396     RECOMP_FLAGS_IN();
   6397     edi = eax; /* 0x3801E08F: mov edi, eax */
   6398     edx = MEM32(edi); /* 0x3801E091: mov edx, dword ptr [edi] */
   6399     eax = ebp + (-0xA0); /* 0x3801E093: lea eax, [ebp - 0xa0] */
   6400     PUSH32(esp, eax); /* 0x3801E099: push eax */
   6401     ecx = ebx; /* 0x3801E09A: mov ecx, ebx */
   6402     MEM32(ebp + 0x8) = edx; /* 0x3801E09C: mov dword ptr [ebp + 8], edx */
   6403     RECOMP_ICALL(0x38017FB0u); /* 0x3801E09F: call 0x38017fb0 */ /* not lifted */
   6404     RECOMP_FLAGS_IN();
   6405     edx = MEM32(ebp + 0x8); /* 0x3801E0A4: mov edx, dword ptr [ebp + 8] */
   6406     PUSH32(esp, eax); /* 0x3801E0A7: push eax */
   6407     ecx = ebp + (-0x5C); /* 0x3801E0A8: lea ecx, [ebp - 0x5c] */
   6408     PUSH32(esp, ecx); /* 0x3801E0AB: push ecx */
   6409     PUSH32(esp, esi); /* 0x3801E0AC: push esi */
   6410     ecx = edi; /* 0x3801E0AD: mov ecx, edi */
   6411     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3801E0AF: call dword ptr [edx + 0x1c] */
   6412     RECOMP_FLAGS_IN();
   6413     eax = MEM32(ebp + (-0x4C)); /* 0x3801E0B2: mov eax, dword ptr [ebp - 0x4c] */
   6414     ecx = MEM32(eax + 0x88); /* 0x3801E0B5: mov ecx, dword ptr [eax + 0x88] */
   6415     RECOMP_ICALL(0x38017EC0u); /* 0x3801E0BB: call 0x38017ec0 */ /* not lifted */
   6416     RECOMP_FLAGS_IN();
   6417     ecx = esi; /* 0x3801E0C0: mov ecx, esi */
   6418     RECOMP_ICALL(0x380088A0u); /* 0x3801E0C2: call 0x380088a0 */ /* not lifted */
   6419     RECOMP_FLAGS_IN();
   6420     ecx = MEM32(0x3806EC04); /* 0x3801E0C7: mov ecx, dword ptr [0x3806ec04] */
   6421     PUSH32(esp, 0); /* 0x3801E0CD: push 0 */
   6422     PUSH32(esp, 0x3806C300u); /* 0x3801E0CF: push 0x3806c300 */
   6423     PUSH32(esp, 0x3806C220u); /* 0x3801E0D4: push 0x3806c220 */
   6424     PUSH32(esp, 0); /* 0x3801E0D9: push 0 */
   6425     PUSH32(esp, ecx); /* 0x3801E0DB: push ecx */
   6426     RECOMP_ICALL(0x3804B682u); /* 0x3801E0DC: call 0x3804b682 */ /* not lifted */
   6427     RECOMP_FLAGS_IN();
   6428     edx = MEM32(eax); /* 0x3801E0E1: mov edx, dword ptr [eax] */
   6429     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6430     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6431     esp = esp + 0x14u; /* 0x3801E0E3: add esp, 0x14 */
   6432     _flag_k = FK_ADD;
   6433     PUSH32(esp, esi); /* 0x3801E0E6: push esi */
   6434     ecx = eax; /* 0x3801E0E7: mov ecx, eax */
   6435     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3801E0E9: call dword ptr [edx + 0x20] */
   6436     RECOMP_FLAGS_IN();
   6437     edi = POP32_VAL(esp); /* 0x3801E0EC: pop edi */
   6438     ecx = MEM32(ebp + (-0xC)); /* 0x3801E0ED: mov ecx, dword ptr [ebp - 0xc] */
   6439     esi = POP32_VAL(esp); /* 0x3801E0F0: pop esi */
   6440     ebx = POP32_VAL(esp); /* 0x3801E0F1: pop ebx */
   6441     MEM32(FS_BASE + (0)) = ecx; /* 0x3801E0F2: mov dword ptr fs:[0], ecx */
   6442     esp = ebp; /* 0x3801E0F9: mov esp, ebp */
   6443     ebp = POP32_VAL(esp); /* 0x3801E0FB: pop ebp */
   6444     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E0FC: ret 4 */
   6445     RECOMP_REGS_OUT();
   6446 }
   6447 
   6448 void sub_3801DED3(void) {
   6449     int _fpu_cmp = 0;
   6450     uint32_t _cf = 0;
   6451     int _df = 1;
   6452     uint32_t _flag_k = FK_NONE;
   6453     uint32_t _flag_a = 0, _flag_b = 0;
   6454     uint32_t _itail_tgt = 0;
   6455     RECOMP_REGS_LOCALS
   6456     RECOMP_ENTER(0x3801DED3u);
   6457 
   6458 L_3801DED3:
   6459     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   6460     edi = edi | 0xFFFFFFFFu; /* 0x3801DED3: or edi, 0xffffffff */
   6461     _cf = 0;
   6462     _flag_k = FK_TEST;
   6463     PUSH32(esp, 0); /* 0x3801DED6: push 0 */
   6464     ecx = esi; /* 0x3801DED8: mov ecx, esi */
   6465     MEM32(ebp + (-0x4)) = edi; /* 0x3801DEDA: mov dword ptr [ebp - 4], edi */
   6466     RECOMP_ICALL(0x38019020u); /* 0x3801DEDD: call 0x38019020 */ /* not lifted */
   6467     RECOMP_FLAGS_IN();
   6468     eax = MEM32(ebx + 0x60); /* 0x3801DEE2: mov eax, dword ptr [ebx + 0x60] */
   6469     PUSH32(esp, eax); /* 0x3801DEE5: push eax */
   6470     ecx = esi; /* 0x3801DEE6: mov ecx, esi */
   6471     RECOMP_ICALL(0x38007540u); /* 0x3801DEE8: call 0x38007540 */ /* not lifted */
   6472     RECOMP_FLAGS_IN();
   6473     PUSH32(esp, 0x30u); /* 0x3801DEED: push 0x30 */
   6474     RECOMP_ICALL(0x3804B676u); /* 0x3801DEEF: call 0x3804b676 */ /* not lifted */
   6475     RECOMP_FLAGS_IN();
   6476     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6477     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6478     esp = esp + 4; /* 0x3801DEF4: add esp, 4 */
   6479     _flag_k = FK_ADD;
   6480     MEM32(ebp + 0x8) = eax; /* 0x3801DEF7: mov dword ptr [ebp + 8], eax */
   6481     /* test eax, eax */ /* 0x3801DEFA: test eax, eax */
   6482     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6483     _cf = 0;
   6484     _flag_k = FK_TEST;
   6485     MEM32(ebp + (-0x4)) = 1; /* 0x3801DEFC: mov dword ptr [ebp - 4], 1 */
   6486     if (TEST_Z(_flag_a, _flag_b)) goto L_3801DF2D; /* 0x3801DF03: je 0x3801df2d */
   6487 L_3801DF05:
   6488     PUSH32(esp, 0x3EB33333u); /* 0x3801DF05: push 0x3eb33333 */
   6489     ecx = ebp + (-0x3C); /* 0x3801DF0A: lea ecx, [ebp - 0x3c] */
   6490     PUSH32(esp, ecx); /* 0x3801DF0D: push ecx */
   6491     PUSH32(esp, esi); /* 0x3801DF0E: push esi */
   6492     ecx = eax; /* 0x3801DF0F: mov ecx, eax */
   6493     MEM32(ebp + (-0x3C)) = 0; /* 0x3801DF11: mov dword ptr [ebp - 0x3c], 0 */
   6494     MEM32(ebp + (-0x38)) = 0; /* 0x3801DF18: mov dword ptr [ebp - 0x38], 0 */
   6495     MEM32(ebp + (-0x34)) = 0; /* 0x3801DF1F: mov dword ptr [ebp - 0x34], 0 */
   6496     RECOMP_ICALL(0x38016DD0u); /* 0x3801DF26: call 0x38016dd0 */ /* not lifted */
   6497     RECOMP_FLAGS_IN();
   6498     goto L_3801DF2F; /* 0x3801DF2B: jmp 0x3801df2f */
   6499 L_3801DF2D:
   6500     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6501     eax = 0; /* 0x3801DF2D: xor eax, eax */
   6502     _cf = 0;
   6503     _flag_k = FK_TEST;
   6504 L_3801DF2F:
   6505     PUSH32(esp, eax); /* 0x3801DF2F: push eax */
   6506     ecx = esi; /* 0x3801DF30: mov ecx, esi */
   6507     MEM32(ebp + (-0x4)) = edi; /* 0x3801DF32: mov dword ptr [ebp - 4], edi */
   6508     RECOMP_ICALL(0x38019D20u); /* 0x3801DF35: call 0x38019d20 */ /* not lifted */
   6509     RECOMP_FLAGS_IN();
   6510     edx = ebp + (-0x78); /* 0x3801DF3A: lea edx, [ebp - 0x78] */
   6511     PUSH32(esp, edx); /* 0x3801DF3D: push edx */
   6512     ecx = ebx; /* 0x3801DF3E: mov ecx, ebx */
   6513     RECOMP_ICALL(0x38017FB0u); /* 0x3801DF40: call 0x38017fb0 */ /* not lifted */
   6514     RECOMP_FLAGS_IN();
   6515     ecx = MEM32(ebp + (-0x14)); /* 0x3801DF45: mov ecx, dword ptr [ebp - 0x14] */
   6516     edx = MEM32(ebp + (-0x10)); /* 0x3801DF48: mov edx, dword ptr [ebp - 0x10] */
   6517     edi = eax; /* 0x3801DF4B: mov edi, eax */
   6518     eax = MEM32(ebp + (-0x18)); /* 0x3801DF4D: mov eax, dword ptr [ebp - 0x18] */
   6519     MEM32(ebp + (-0x48)) = eax; /* 0x3801DF50: mov dword ptr [ebp - 0x48], eax */
   6520     MEM32(ebp + (-0x44)) = ecx; /* 0x3801DF53: mov dword ptr [ebp - 0x44], ecx */
   6521     eax = edi; /* 0x3801DF56: mov eax, edi */
   6522     ecx = MEM32(eax); /* 0x3801DF58: mov ecx, dword ptr [eax] */
   6523     MEM32(ebp + (-0x8C)) = ecx; /* 0x3801DF5A: mov dword ptr [ebp - 0x8c], ecx */
   6524     MEM32(ebp + (-0x40)) = edx; /* 0x3801DF60: mov dword ptr [ebp - 0x40], edx */
   6525     edx = MEM32(eax + 0x4); /* 0x3801DF63: mov edx, dword ptr [eax + 4] */
   6526     eax = MEM32(eax + 0x8); /* 0x3801DF66: mov eax, dword ptr [eax + 8] */
   6527     ecx = ebp + (-0x48); /* 0x3801DF69: lea ecx, [ebp - 0x48] */
   6528     PUSH32(esp, ecx); /* 0x3801DF6C: push ecx */
   6529     ecx = ebp + (-0x8C); /* 0x3801DF6D: lea ecx, [ebp - 0x8c] */
   6530     MEM32(ebp + (-0x88)) = edx; /* 0x3801DF73: mov dword ptr [ebp - 0x88], edx */
   6531     MEM32(ebp + (-0x84)) = eax; /* 0x3801DF79: mov dword ptr [ebp - 0x84], eax */
   6532     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3801DF7F: call dword ptr [0x3804e4c8] */
   6533     RECOMP_FLAGS_IN();
   6534     edx = MEM32(eax); /* 0x3801DF85: mov edx, dword ptr [eax] */
   6535     MEM32(ebp + (-0x30)) = edx; /* 0x3801DF87: mov dword ptr [ebp - 0x30], edx */
   6536     ecx = MEM32(eax + 0x4); /* 0x3801DF8A: mov ecx, dword ptr [eax + 4] */
   6537     MEM32(ebp + (-0x2C)) = ecx; /* 0x3801DF8D: mov dword ptr [ebp - 0x2c], ecx */
   6538     edx = MEM32(eax + 0x8); /* 0x3801DF90: mov edx, dword ptr [eax + 8] */
   6539     eax = edi; /* 0x3801DF93: mov eax, edi */
   6540     ecx = MEM32(eax); /* 0x3801DF95: mov ecx, dword ptr [eax] */
   6541     MEM32(ebp + (-0x68)) = ecx; /* 0x3801DF97: mov dword ptr [ebp - 0x68], ecx */
   6542     MEM32(ebp + (-0x28)) = edx; /* 0x3801DF9A: mov dword ptr [ebp - 0x28], edx */
   6543     edx = MEM32(eax + 0x4); /* 0x3801DF9D: mov edx, dword ptr [eax + 4] */
   6544     eax = MEM32(eax + 0x8); /* 0x3801DFA0: mov eax, dword ptr [eax + 8] */
   6545     ecx = ebp + (-0x30); /* 0x3801DFA3: lea ecx, [ebp - 0x30] */
   6546     PUSH32(esp, ecx); /* 0x3801DFA6: push ecx */
   6547     ecx = ebp + (-0x68); /* 0x3801DFA7: lea ecx, [ebp - 0x68] */
   6548     MEM32(ebp + (-0x64)) = edx; /* 0x3801DFAA: mov dword ptr [ebp - 0x64], edx */
   6549     MEM32(ebp + (-0x60)) = eax; /* 0x3801DFAD: mov dword ptr [ebp - 0x60], eax */
   6550     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3801DFB0: call dword ptr [0x3804e4c8] */
   6551     RECOMP_FLAGS_IN();
   6552     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x3801DFB6: fld dword ptr [edi + 0xc] */
   6553     edx = MEM32(eax); /* 0x3801DFB9: mov edx, dword ptr [eax] */
   6554     _st[0] += _st[0]; /* 0x3801DFBB: fadd st(0), st(0) */
   6555     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3801DFBD: fld dword ptr [ebp - 0x30] */
   6556     MEM32(ebp + (-0x18)) = edx; /* 0x3801DFC0: mov dword ptr [ebp - 0x18], edx */
   6557     ecx = MEM32(eax + 0x4); /* 0x3801DFC3: mov ecx, dword ptr [eax + 4] */
   6558     _st[0] *= _st[1]; /* 0x3801DFC6: fmul st(1) */
   6559     MEM32(ebp + (-0x14)) = ecx; /* 0x3801DFC8: mov dword ptr [ebp - 0x14], ecx */
   6560     edx = MEM32(eax + 0x8); /* 0x3801DFCB: mov edx, dword ptr [eax + 8] */
   6561     MEM32(ebp + (-0x10)) = edx; /* 0x3801DFCE: mov dword ptr [ebp - 0x10], edx */
   6562     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3801DFD1: fstp dword ptr [ebp - 0x30] */
   6563     eax = ebp + (-0x30); /* 0x3801DFD4: lea eax, [ebp - 0x30] */
   6564     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3801DFD7: fld dword ptr [ebp - 0x2c] */
   6565     PUSH32(esp, eax); /* 0x3801DFDA: push eax */
   6566     _st[0] *= _st[1]; /* 0x3801DFDB: fmul st(1) */
   6567     ecx = ebp + (-0x48); /* 0x3801DFDD: lea ecx, [ebp - 0x48] */
   6568     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3801DFE0: fstp dword ptr [ebp - 0x2c] */
   6569     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3801DFE3: fld dword ptr [ebp - 0x28] */
   6570     _st[0] *= _st[1]; /* 0x3801DFE6: fmul st(1) */
   6571     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3801DFE8: fstp dword ptr [ebp - 0x28] */
   6572     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3801DFEB: fstp st(0) */
   6573     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3801DFED: fld dword ptr [ebp - 0x18] */
   6574     _st[0] += _st[0]; /* 0x3801DFF0: fadd st(0), st(0) */
   6575     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3801DFF2: fstp dword ptr [ebp - 0x18] */
   6576     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3801DFF5: fld dword ptr [ebp - 0x14] */
   6577     _st[0] += _st[0]; /* 0x3801DFF8: fadd st(0), st(0) */
   6578     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3801DFFA: fstp dword ptr [ebp - 0x14] */
   6579     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3801DFFD: fld dword ptr [ebp - 0x10] */
   6580     _st[0] += _st[0]; /* 0x3801E000: fadd st(0), st(0) */
   6581     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3801E002: fstp dword ptr [ebp - 0x10] */
   6582     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3801E005: call dword ptr [0x3804e4e8] */
   6583     RECOMP_FLAGS_IN();
   6584     ecx = ebp + (-0x18); /* 0x3801E00B: lea ecx, [ebp - 0x18] */
   6585     PUSH32(esp, ecx); /* 0x3801E00E: push ecx */
   6586     ecx = ebp + (-0x48); /* 0x3801E00F: lea ecx, [ebp - 0x48] */
   6587     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3801E012: call dword ptr [0x3804e4e8] */
   6588     RECOMP_FLAGS_IN();
   6589     edx = MEM32(ebp + (-0x48)); /* 0x3801E018: mov edx, dword ptr [ebp - 0x48] */
   6590     eax = MEM32(ebp + (-0x44)); /* 0x3801E01B: mov eax, dword ptr [ebp - 0x44] */
   6591     MEM32(ebp + (-0x3C)) = edx; /* 0x3801E01E: mov dword ptr [ebp - 0x3c], edx */
   6592     ecx = MEM32(ebp + (-0x40)); /* 0x3801E021: mov ecx, dword ptr [ebp - 0x40] */
   6593     MEM32(ebp + (-0x34)) = ecx; /* 0x3801E024: mov dword ptr [ebp - 0x34], ecx */
   6594     ecx = ebx; /* 0x3801E027: mov ecx, ebx */
   6595     MEM32(ebp + (-0x38)) = eax; /* 0x3801E029: mov dword ptr [ebp - 0x38], eax */
   6596     RECOMP_ICALL(0x38017F50u); /* 0x3801E02C: call 0x38017f50 */ /* not lifted */
   6597     RECOMP_FLAGS_IN();
   6598     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3801E031: fld dword ptr [ebp - 0x3c] */
   6599     edx = MEM32(eax); /* 0x3801E034: mov edx, dword ptr [eax] */
   6600     ecx = MEM32(eax + 0x4); /* 0x3801E036: mov ecx, dword ptr [eax + 4] */
   6601     MEM32(ebp + (-0x24)) = edx; /* 0x3801E039: mov dword ptr [ebp - 0x24], edx */
   6602     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3801E03C: fadd dword ptr [ebp - 0x24] */
   6603     edx = MEM32(eax + 0x8); /* 0x3801E03F: mov edx, dword ptr [eax + 8] */
   6604     MEM32(ebp + (-0x20)) = ecx; /* 0x3801E042: mov dword ptr [ebp - 0x20], ecx */
   6605     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3801E045: fstp dword ptr [ebp - 0x24] */
   6606     eax = MEM32(ebp + (-0x24)); /* 0x3801E048: mov eax, dword ptr [ebp - 0x24] */
   6607     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3801E04B: fld dword ptr [ebp - 0x38] */
   6608     MEM32(ebp + (-0x1C)) = edx; /* 0x3801E04E: mov dword ptr [ebp - 0x1c], edx */
   6609     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3801E051: fadd dword ptr [ebp - 0x20] */
   6610     MEM32(ebp + (-0x5C)) = eax; /* 0x3801E054: mov dword ptr [ebp - 0x5c], eax */
   6611     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3801E057: fstp dword ptr [ebp - 0x20] */
   6612     ecx = MEM32(ebp + (-0x20)); /* 0x3801E05A: mov ecx, dword ptr [ebp - 0x20] */
   6613     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3801E05D: fld dword ptr [ebp - 0x34] */
   6614     MEM32(ebp + (-0x58)) = ecx; /* 0x3801E060: mov dword ptr [ebp - 0x58], ecx */
   6615     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3801E063: fadd dword ptr [ebp - 0x1c] */
   6616     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3801E066: fstp dword ptr [ebp - 0x1c] */
   6617     edx = MEM32(ebp + (-0x1C)); /* 0x3801E069: mov edx, dword ptr [ebp - 0x1c] */
   6618     MEM32(ebp + (-0x54)) = edx; /* 0x3801E06C: mov dword ptr [ebp - 0x54], edx */
   6619     RECOMP_ICALL(0x3801DA30u); /* 0x3801E06F: call 0x3801da30 */ /* not lifted */
   6620     RECOMP_FLAGS_IN();
   6621     ecx = eax; /* 0x3801E074: mov ecx, eax */
   6622     RECOMP_ICALL(0x3802BF20u); /* 0x3801E076: call 0x3802bf20 */ /* not lifted */
   6623     RECOMP_FLAGS_IN();
   6624     edx = MEM32(eax); /* 0x3801E07B: mov edx, dword ptr [eax] */
   6625     PUSH32(esp, 0); /* 0x3801E07D: push 0 */
   6626     PUSH32(esp, 0); /* 0x3801E07F: push 0 */
   6627     ecx = ebp + (-0x5C); /* 0x3801E081: lea ecx, [ebp - 0x5c] */
   6628     PUSH32(esp, ecx); /* 0x3801E084: push ecx */
   6629     ecx = eax; /* 0x3801E085: mov ecx, eax */
   6630     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3801E087: call dword ptr [edx + 0x20] */
   6631     RECOMP_FLAGS_IN();
   6632     RECOMP_ICALL(0x3801DA30u); /* 0x3801E08A: call 0x3801da30 */ /* not lifted */
   6633     RECOMP_FLAGS_IN();
   6634     edi = eax; /* 0x3801E08F: mov edi, eax */
   6635     edx = MEM32(edi); /* 0x3801E091: mov edx, dword ptr [edi] */
   6636     eax = ebp + (-0xA0); /* 0x3801E093: lea eax, [ebp - 0xa0] */
   6637     PUSH32(esp, eax); /* 0x3801E099: push eax */
   6638     ecx = ebx; /* 0x3801E09A: mov ecx, ebx */
   6639     MEM32(ebp + 0x8) = edx; /* 0x3801E09C: mov dword ptr [ebp + 8], edx */
   6640     RECOMP_ICALL(0x38017FB0u); /* 0x3801E09F: call 0x38017fb0 */ /* not lifted */
   6641     RECOMP_FLAGS_IN();
   6642     edx = MEM32(ebp + 0x8); /* 0x3801E0A4: mov edx, dword ptr [ebp + 8] */
   6643     PUSH32(esp, eax); /* 0x3801E0A7: push eax */
   6644     ecx = ebp + (-0x5C); /* 0x3801E0A8: lea ecx, [ebp - 0x5c] */
   6645     PUSH32(esp, ecx); /* 0x3801E0AB: push ecx */
   6646     PUSH32(esp, esi); /* 0x3801E0AC: push esi */
   6647     ecx = edi; /* 0x3801E0AD: mov ecx, edi */
   6648     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3801E0AF: call dword ptr [edx + 0x1c] */
   6649     RECOMP_FLAGS_IN();
   6650     eax = MEM32(ebp + (-0x4C)); /* 0x3801E0B2: mov eax, dword ptr [ebp - 0x4c] */
   6651     ecx = MEM32(eax + 0x88); /* 0x3801E0B5: mov ecx, dword ptr [eax + 0x88] */
   6652     RECOMP_ICALL(0x38017EC0u); /* 0x3801E0BB: call 0x38017ec0 */ /* not lifted */
   6653     RECOMP_FLAGS_IN();
   6654     ecx = esi; /* 0x3801E0C0: mov ecx, esi */
   6655     RECOMP_ICALL(0x380088A0u); /* 0x3801E0C2: call 0x380088a0 */ /* not lifted */
   6656     RECOMP_FLAGS_IN();
   6657     ecx = MEM32(0x3806EC04); /* 0x3801E0C7: mov ecx, dword ptr [0x3806ec04] */
   6658     PUSH32(esp, 0); /* 0x3801E0CD: push 0 */
   6659     PUSH32(esp, 0x3806C300u); /* 0x3801E0CF: push 0x3806c300 */
   6660     PUSH32(esp, 0x3806C220u); /* 0x3801E0D4: push 0x3806c220 */
   6661     PUSH32(esp, 0); /* 0x3801E0D9: push 0 */
   6662     PUSH32(esp, ecx); /* 0x3801E0DB: push ecx */
   6663     RECOMP_ICALL(0x3804B682u); /* 0x3801E0DC: call 0x3804b682 */ /* not lifted */
   6664     RECOMP_FLAGS_IN();
   6665     edx = MEM32(eax); /* 0x3801E0E1: mov edx, dword ptr [eax] */
   6666     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6667     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6668     esp = esp + 0x14u; /* 0x3801E0E3: add esp, 0x14 */
   6669     _flag_k = FK_ADD;
   6670     PUSH32(esp, esi); /* 0x3801E0E6: push esi */
   6671     ecx = eax; /* 0x3801E0E7: mov ecx, eax */
   6672     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3801E0E9: call dword ptr [edx + 0x20] */
   6673     RECOMP_FLAGS_IN();
   6674     edi = POP32_VAL(esp); /* 0x3801E0EC: pop edi */
   6675     ecx = MEM32(ebp + (-0xC)); /* 0x3801E0ED: mov ecx, dword ptr [ebp - 0xc] */
   6676     esi = POP32_VAL(esp); /* 0x3801E0F0: pop esi */
   6677     ebx = POP32_VAL(esp); /* 0x3801E0F1: pop ebx */
   6678     MEM32(FS_BASE + (0)) = ecx; /* 0x3801E0F2: mov dword ptr fs:[0], ecx */
   6679     esp = ebp; /* 0x3801E0F9: mov esp, ebp */
   6680     ebp = POP32_VAL(esp); /* 0x3801E0FB: pop ebp */
   6681     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E0FC: ret 4 */
   6682     RECOMP_REGS_OUT();
   6683 }
   6684 
   6685 void sub_3801DF2F(void) {
   6686     int _fpu_cmp = 0;
   6687     uint32_t _cf = 0;
   6688     int _df = 1;
   6689     uint32_t _flag_k = FK_NONE;
   6690     uint32_t _flag_a = 0, _flag_b = 0;
   6691     uint32_t _itail_tgt = 0;
   6692     RECOMP_REGS_LOCALS
   6693     RECOMP_ENTER(0x3801DF2Fu);
   6694 
   6695 L_3801DF2F:
   6696     PUSH32(esp, eax); /* 0x3801DF2F: push eax */
   6697     ecx = esi; /* 0x3801DF30: mov ecx, esi */
   6698     MEM32(ebp + (-0x4)) = edi; /* 0x3801DF32: mov dword ptr [ebp - 4], edi */
   6699     RECOMP_ICALL(0x38019D20u); /* 0x3801DF35: call 0x38019d20 */ /* not lifted */
   6700     RECOMP_FLAGS_IN();
   6701     edx = ebp + (-0x78); /* 0x3801DF3A: lea edx, [ebp - 0x78] */
   6702     PUSH32(esp, edx); /* 0x3801DF3D: push edx */
   6703     ecx = ebx; /* 0x3801DF3E: mov ecx, ebx */
   6704     RECOMP_ICALL(0x38017FB0u); /* 0x3801DF40: call 0x38017fb0 */ /* not lifted */
   6705     RECOMP_FLAGS_IN();
   6706     ecx = MEM32(ebp + (-0x14)); /* 0x3801DF45: mov ecx, dword ptr [ebp - 0x14] */
   6707     edx = MEM32(ebp + (-0x10)); /* 0x3801DF48: mov edx, dword ptr [ebp - 0x10] */
   6708     edi = eax; /* 0x3801DF4B: mov edi, eax */
   6709     eax = MEM32(ebp + (-0x18)); /* 0x3801DF4D: mov eax, dword ptr [ebp - 0x18] */
   6710     MEM32(ebp + (-0x48)) = eax; /* 0x3801DF50: mov dword ptr [ebp - 0x48], eax */
   6711     MEM32(ebp + (-0x44)) = ecx; /* 0x3801DF53: mov dword ptr [ebp - 0x44], ecx */
   6712     eax = edi; /* 0x3801DF56: mov eax, edi */
   6713     ecx = MEM32(eax); /* 0x3801DF58: mov ecx, dword ptr [eax] */
   6714     MEM32(ebp + (-0x8C)) = ecx; /* 0x3801DF5A: mov dword ptr [ebp - 0x8c], ecx */
   6715     MEM32(ebp + (-0x40)) = edx; /* 0x3801DF60: mov dword ptr [ebp - 0x40], edx */
   6716     edx = MEM32(eax + 0x4); /* 0x3801DF63: mov edx, dword ptr [eax + 4] */
   6717     eax = MEM32(eax + 0x8); /* 0x3801DF66: mov eax, dword ptr [eax + 8] */
   6718     ecx = ebp + (-0x48); /* 0x3801DF69: lea ecx, [ebp - 0x48] */
   6719     PUSH32(esp, ecx); /* 0x3801DF6C: push ecx */
   6720     ecx = ebp + (-0x8C); /* 0x3801DF6D: lea ecx, [ebp - 0x8c] */
   6721     MEM32(ebp + (-0x88)) = edx; /* 0x3801DF73: mov dword ptr [ebp - 0x88], edx */
   6722     MEM32(ebp + (-0x84)) = eax; /* 0x3801DF79: mov dword ptr [ebp - 0x84], eax */
   6723     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3801DF7F: call dword ptr [0x3804e4c8] */
   6724     RECOMP_FLAGS_IN();
   6725     edx = MEM32(eax); /* 0x3801DF85: mov edx, dword ptr [eax] */
   6726     MEM32(ebp + (-0x30)) = edx; /* 0x3801DF87: mov dword ptr [ebp - 0x30], edx */
   6727     ecx = MEM32(eax + 0x4); /* 0x3801DF8A: mov ecx, dword ptr [eax + 4] */
   6728     MEM32(ebp + (-0x2C)) = ecx; /* 0x3801DF8D: mov dword ptr [ebp - 0x2c], ecx */
   6729     edx = MEM32(eax + 0x8); /* 0x3801DF90: mov edx, dword ptr [eax + 8] */
   6730     eax = edi; /* 0x3801DF93: mov eax, edi */
   6731     ecx = MEM32(eax); /* 0x3801DF95: mov ecx, dword ptr [eax] */
   6732     MEM32(ebp + (-0x68)) = ecx; /* 0x3801DF97: mov dword ptr [ebp - 0x68], ecx */
   6733     MEM32(ebp + (-0x28)) = edx; /* 0x3801DF9A: mov dword ptr [ebp - 0x28], edx */
   6734     edx = MEM32(eax + 0x4); /* 0x3801DF9D: mov edx, dword ptr [eax + 4] */
   6735     eax = MEM32(eax + 0x8); /* 0x3801DFA0: mov eax, dword ptr [eax + 8] */
   6736     ecx = ebp + (-0x30); /* 0x3801DFA3: lea ecx, [ebp - 0x30] */
   6737     PUSH32(esp, ecx); /* 0x3801DFA6: push ecx */
   6738     ecx = ebp + (-0x68); /* 0x3801DFA7: lea ecx, [ebp - 0x68] */
   6739     MEM32(ebp + (-0x64)) = edx; /* 0x3801DFAA: mov dword ptr [ebp - 0x64], edx */
   6740     MEM32(ebp + (-0x60)) = eax; /* 0x3801DFAD: mov dword ptr [ebp - 0x60], eax */
   6741     RECOMP_ICALL(MEM32(0x3804E4C8)); /* 0x3801DFB0: call dword ptr [0x3804e4c8] */
   6742     RECOMP_FLAGS_IN();
   6743     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x3801DFB6: fld dword ptr [edi + 0xc] */
   6744     edx = MEM32(eax); /* 0x3801DFB9: mov edx, dword ptr [eax] */
   6745     _st[0] += _st[0]; /* 0x3801DFBB: fadd st(0), st(0) */
   6746     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x3801DFBD: fld dword ptr [ebp - 0x30] */
   6747     MEM32(ebp + (-0x18)) = edx; /* 0x3801DFC0: mov dword ptr [ebp - 0x18], edx */
   6748     ecx = MEM32(eax + 0x4); /* 0x3801DFC3: mov ecx, dword ptr [eax + 4] */
   6749     _st[0] *= _st[1]; /* 0x3801DFC6: fmul st(1) */
   6750     MEM32(ebp + (-0x14)) = ecx; /* 0x3801DFC8: mov dword ptr [ebp - 0x14], ecx */
   6751     edx = MEM32(eax + 0x8); /* 0x3801DFCB: mov edx, dword ptr [eax + 8] */
   6752     MEM32(ebp + (-0x10)) = edx; /* 0x3801DFCE: mov dword ptr [ebp - 0x10], edx */
   6753     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x3801DFD1: fstp dword ptr [ebp - 0x30] */
   6754     eax = ebp + (-0x30); /* 0x3801DFD4: lea eax, [ebp - 0x30] */
   6755     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3801DFD7: fld dword ptr [ebp - 0x2c] */
   6756     PUSH32(esp, eax); /* 0x3801DFDA: push eax */
   6757     _st[0] *= _st[1]; /* 0x3801DFDB: fmul st(1) */
   6758     ecx = ebp + (-0x48); /* 0x3801DFDD: lea ecx, [ebp - 0x48] */
   6759     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3801DFE0: fstp dword ptr [ebp - 0x2c] */
   6760     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3801DFE3: fld dword ptr [ebp - 0x28] */
   6761     _st[0] *= _st[1]; /* 0x3801DFE6: fmul st(1) */
   6762     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3801DFE8: fstp dword ptr [ebp - 0x28] */
   6763     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3801DFEB: fstp st(0) */
   6764     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3801DFED: fld dword ptr [ebp - 0x18] */
   6765     _st[0] += _st[0]; /* 0x3801DFF0: fadd st(0), st(0) */
   6766     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3801DFF2: fstp dword ptr [ebp - 0x18] */
   6767     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3801DFF5: fld dword ptr [ebp - 0x14] */
   6768     _st[0] += _st[0]; /* 0x3801DFF8: fadd st(0), st(0) */
   6769     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3801DFFA: fstp dword ptr [ebp - 0x14] */
   6770     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3801DFFD: fld dword ptr [ebp - 0x10] */
   6771     _st[0] += _st[0]; /* 0x3801E000: fadd st(0), st(0) */
   6772     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3801E002: fstp dword ptr [ebp - 0x10] */
   6773     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3801E005: call dword ptr [0x3804e4e8] */
   6774     RECOMP_FLAGS_IN();
   6775     ecx = ebp + (-0x18); /* 0x3801E00B: lea ecx, [ebp - 0x18] */
   6776     PUSH32(esp, ecx); /* 0x3801E00E: push ecx */
   6777     ecx = ebp + (-0x48); /* 0x3801E00F: lea ecx, [ebp - 0x48] */
   6778     RECOMP_ICALL(MEM32(0x3804E4E8)); /* 0x3801E012: call dword ptr [0x3804e4e8] */
   6779     RECOMP_FLAGS_IN();
   6780     edx = MEM32(ebp + (-0x48)); /* 0x3801E018: mov edx, dword ptr [ebp - 0x48] */
   6781     eax = MEM32(ebp + (-0x44)); /* 0x3801E01B: mov eax, dword ptr [ebp - 0x44] */
   6782     MEM32(ebp + (-0x3C)) = edx; /* 0x3801E01E: mov dword ptr [ebp - 0x3c], edx */
   6783     ecx = MEM32(ebp + (-0x40)); /* 0x3801E021: mov ecx, dword ptr [ebp - 0x40] */
   6784     MEM32(ebp + (-0x34)) = ecx; /* 0x3801E024: mov dword ptr [ebp - 0x34], ecx */
   6785     ecx = ebx; /* 0x3801E027: mov ecx, ebx */
   6786     MEM32(ebp + (-0x38)) = eax; /* 0x3801E029: mov dword ptr [ebp - 0x38], eax */
   6787     RECOMP_ICALL(0x38017F50u); /* 0x3801E02C: call 0x38017f50 */ /* not lifted */
   6788     RECOMP_FLAGS_IN();
   6789     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x3801E031: fld dword ptr [ebp - 0x3c] */
   6790     edx = MEM32(eax); /* 0x3801E034: mov edx, dword ptr [eax] */
   6791     ecx = MEM32(eax + 0x4); /* 0x3801E036: mov ecx, dword ptr [eax + 4] */
   6792     MEM32(ebp + (-0x24)) = edx; /* 0x3801E039: mov dword ptr [ebp - 0x24], edx */
   6793     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3801E03C: fadd dword ptr [ebp - 0x24] */
   6794     edx = MEM32(eax + 0x8); /* 0x3801E03F: mov edx, dword ptr [eax + 8] */
   6795     MEM32(ebp + (-0x20)) = ecx; /* 0x3801E042: mov dword ptr [ebp - 0x20], ecx */
   6796     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3801E045: fstp dword ptr [ebp - 0x24] */
   6797     eax = MEM32(ebp + (-0x24)); /* 0x3801E048: mov eax, dword ptr [ebp - 0x24] */
   6798     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3801E04B: fld dword ptr [ebp - 0x38] */
   6799     MEM32(ebp + (-0x1C)) = edx; /* 0x3801E04E: mov dword ptr [ebp - 0x1c], edx */
   6800     _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3801E051: fadd dword ptr [ebp - 0x20] */
   6801     MEM32(ebp + (-0x5C)) = eax; /* 0x3801E054: mov dword ptr [ebp - 0x5c], eax */
   6802     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3801E057: fstp dword ptr [ebp - 0x20] */
   6803     ecx = MEM32(ebp + (-0x20)); /* 0x3801E05A: mov ecx, dword ptr [ebp - 0x20] */
   6804     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3801E05D: fld dword ptr [ebp - 0x34] */
   6805     MEM32(ebp + (-0x58)) = ecx; /* 0x3801E060: mov dword ptr [ebp - 0x58], ecx */
   6806     _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3801E063: fadd dword ptr [ebp - 0x1c] */
   6807     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3801E066: fstp dword ptr [ebp - 0x1c] */
   6808     edx = MEM32(ebp + (-0x1C)); /* 0x3801E069: mov edx, dword ptr [ebp - 0x1c] */
   6809     MEM32(ebp + (-0x54)) = edx; /* 0x3801E06C: mov dword ptr [ebp - 0x54], edx */
   6810     RECOMP_ICALL(0x3801DA30u); /* 0x3801E06F: call 0x3801da30 */ /* not lifted */
   6811     RECOMP_FLAGS_IN();
   6812     ecx = eax; /* 0x3801E074: mov ecx, eax */
   6813     RECOMP_ICALL(0x3802BF20u); /* 0x3801E076: call 0x3802bf20 */ /* not lifted */
   6814     RECOMP_FLAGS_IN();
   6815     edx = MEM32(eax); /* 0x3801E07B: mov edx, dword ptr [eax] */
   6816     PUSH32(esp, 0); /* 0x3801E07D: push 0 */
   6817     PUSH32(esp, 0); /* 0x3801E07F: push 0 */
   6818     ecx = ebp + (-0x5C); /* 0x3801E081: lea ecx, [ebp - 0x5c] */
   6819     PUSH32(esp, ecx); /* 0x3801E084: push ecx */
   6820     ecx = eax; /* 0x3801E085: mov ecx, eax */
   6821     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3801E087: call dword ptr [edx + 0x20] */
   6822     RECOMP_FLAGS_IN();
   6823     RECOMP_ICALL(0x3801DA30u); /* 0x3801E08A: call 0x3801da30 */ /* not lifted */
   6824     RECOMP_FLAGS_IN();
   6825     edi = eax; /* 0x3801E08F: mov edi, eax */
   6826     edx = MEM32(edi); /* 0x3801E091: mov edx, dword ptr [edi] */
   6827     eax = ebp + (-0xA0); /* 0x3801E093: lea eax, [ebp - 0xa0] */
   6828     PUSH32(esp, eax); /* 0x3801E099: push eax */
   6829     ecx = ebx; /* 0x3801E09A: mov ecx, ebx */
   6830     MEM32(ebp + 0x8) = edx; /* 0x3801E09C: mov dword ptr [ebp + 8], edx */
   6831     RECOMP_ICALL(0x38017FB0u); /* 0x3801E09F: call 0x38017fb0 */ /* not lifted */
   6832     RECOMP_FLAGS_IN();
   6833     edx = MEM32(ebp + 0x8); /* 0x3801E0A4: mov edx, dword ptr [ebp + 8] */
   6834     PUSH32(esp, eax); /* 0x3801E0A7: push eax */
   6835     ecx = ebp + (-0x5C); /* 0x3801E0A8: lea ecx, [ebp - 0x5c] */
   6836     PUSH32(esp, ecx); /* 0x3801E0AB: push ecx */
   6837     PUSH32(esp, esi); /* 0x3801E0AC: push esi */
   6838     ecx = edi; /* 0x3801E0AD: mov ecx, edi */
   6839     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3801E0AF: call dword ptr [edx + 0x1c] */
   6840     RECOMP_FLAGS_IN();
   6841     eax = MEM32(ebp + (-0x4C)); /* 0x3801E0B2: mov eax, dword ptr [ebp - 0x4c] */
   6842     ecx = MEM32(eax + 0x88); /* 0x3801E0B5: mov ecx, dword ptr [eax + 0x88] */
   6843     RECOMP_ICALL(0x38017EC0u); /* 0x3801E0BB: call 0x38017ec0 */ /* not lifted */
   6844     RECOMP_FLAGS_IN();
   6845     ecx = esi; /* 0x3801E0C0: mov ecx, esi */
   6846     RECOMP_ICALL(0x380088A0u); /* 0x3801E0C2: call 0x380088a0 */ /* not lifted */
   6847     RECOMP_FLAGS_IN();
   6848     ecx = MEM32(0x3806EC04); /* 0x3801E0C7: mov ecx, dword ptr [0x3806ec04] */
   6849     PUSH32(esp, 0); /* 0x3801E0CD: push 0 */
   6850     PUSH32(esp, 0x3806C300u); /* 0x3801E0CF: push 0x3806c300 */
   6851     PUSH32(esp, 0x3806C220u); /* 0x3801E0D4: push 0x3806c220 */
   6852     PUSH32(esp, 0); /* 0x3801E0D9: push 0 */
   6853     PUSH32(esp, ecx); /* 0x3801E0DB: push ecx */
   6854     RECOMP_ICALL(0x3804B682u); /* 0x3801E0DC: call 0x3804b682 */ /* not lifted */
   6855     RECOMP_FLAGS_IN();
   6856     edx = MEM32(eax); /* 0x3801E0E1: mov edx, dword ptr [eax] */
   6857     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6859     esp = esp + 0x14u; /* 0x3801E0E3: add esp, 0x14 */
   6860     _flag_k = FK_ADD;
   6861     PUSH32(esp, esi); /* 0x3801E0E6: push esi */
   6862     ecx = eax; /* 0x3801E0E7: mov ecx, eax */
   6863     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3801E0E9: call dword ptr [edx + 0x20] */
   6864     RECOMP_FLAGS_IN();
   6865     edi = POP32_VAL(esp); /* 0x3801E0EC: pop edi */
   6866     ecx = MEM32(ebp + (-0xC)); /* 0x3801E0ED: mov ecx, dword ptr [ebp - 0xc] */
   6867     esi = POP32_VAL(esp); /* 0x3801E0F0: pop esi */
   6868     ebx = POP32_VAL(esp); /* 0x3801E0F1: pop ebx */
   6869     MEM32(FS_BASE + (0)) = ecx; /* 0x3801E0F2: mov dword ptr fs:[0], ecx */
   6870     esp = ebp; /* 0x3801E0F9: mov esp, ebp */
   6871     ebp = POP32_VAL(esp); /* 0x3801E0FB: pop ebp */
   6872     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E0FC: ret 4 */
   6873     RECOMP_REGS_OUT();
   6874 }
   6875 
   6876 void sub_3801E100(void) {
   6877     int _fpu_cmp = 0;
   6878     uint32_t _cf = 0;
   6879     int _df = 1;
   6880     uint32_t _flag_k = FK_NONE;
   6881     uint32_t _flag_a = 0, _flag_b = 0;
   6882     uint32_t _itail_tgt = 0;
   6883     RECOMP_REGS_LOCALS
   6884     RECOMP_ENTER(0x3801E100u);
   6885 
   6886 L_3801E100:
   6887     PUSH32(esp, ebp); /* 0x3801E100: push ebp */
   6888     ebp = esp; /* 0x3801E101: mov ebp, esp */
   6889     eax = ecx; /* 0x3801E103: mov eax, ecx */
   6890     ecx = MEM32(ebp + 0x8); /* 0x3801E105: mov ecx, dword ptr [ebp + 8] */
   6891     /* cmp eax, ecx */ /* 0x3801E108: cmp eax, ecx */
   6892     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6894     _flag_k = FK_CMP;
   6895     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E116; /* 0x3801E10A: je 0x3801e116 */
   6896 L_3801E10C:
   6897     edx = MEM32(ecx); /* 0x3801E10C: mov edx, dword ptr [ecx] */
   6898     MEM32(eax) = edx; /* 0x3801E10E: mov dword ptr [eax], edx */
   6899     ecx = MEM32(ecx + 0x4); /* 0x3801E110: mov ecx, dword ptr [ecx + 4] */
   6900     MEM32(eax + 0x4) = ecx; /* 0x3801E113: mov dword ptr [eax + 4], ecx */
   6901 L_3801E116:
   6902     ebp = POP32_VAL(esp); /* 0x3801E116: pop ebp */
   6903     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E117: ret 4 */
   6904     RECOMP_REGS_OUT();
   6905 }
   6906 
   6907 void sub_3801E120(void) {
   6908     int _fpu_cmp = 0;
   6909     uint32_t _cf = 0;
   6910     int _df = 1;
   6911     uint32_t _flag_k = FK_NONE;
   6912     uint32_t _flag_a = 0, _flag_b = 0;
   6913     uint32_t _itail_tgt = 0;
   6914     RECOMP_REGS_LOCALS
   6915     RECOMP_ENTER(0x3801E120u);
   6916 
   6917 L_3801E120:
   6918     PUSH32(esp, ebp); /* 0x3801E120: push ebp */
   6919     ebp = esp; /* 0x3801E121: mov ebp, esp */
   6920     PUSH32(esp, ecx); /* 0x3801E123: push ecx */
   6921     eax = ecx; /* 0x3801E124: mov eax, ecx */
   6922     SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x3801E126: mov cl, byte ptr [ebp - 1] */
   6923     MEM8(eax + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3801E129: mov byte ptr [eax + 4], cl */
   6924     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6925     ecx = 0; /* 0x3801E12C: xor ecx, ecx */
   6926     _cf = 0;
   6927     _flag_k = FK_TEST;
   6928     MEM32(eax + 0x8) = ecx; /* 0x3801E12E: mov dword ptr [eax + 8], ecx */
   6929     MEM32(eax + 0xC) = ecx; /* 0x3801E131: mov dword ptr [eax + 0xc], ecx */
   6930     MEM32(eax + 0x10) = ecx; /* 0x3801E134: mov dword ptr [eax + 0x10], ecx */
   6931     MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3801E137: mov byte ptr [eax + 0x14], cl */
   6932     MEM32(eax + 0x18) = ecx; /* 0x3801E13A: mov dword ptr [eax + 0x18], ecx */
   6933     MEM32(eax) = 0x3804E7E8u; /* 0x3801E13D: mov dword ptr [eax], 0x3804e7e8 */
   6934     esp = ebp; /* 0x3801E143: mov esp, ebp */
   6935     ebp = POP32_VAL(esp); /* 0x3801E145: pop ebp */
   6936     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E146: ret  */
   6937     RECOMP_REGS_OUT();
   6938 }
   6939 
   6940 void sub_3801E150(void) {
   6941     int _fpu_cmp = 0;
   6942     uint32_t _cf = 0;
   6943     int _df = 1;
   6944     uint32_t _flag_k = FK_NONE;
   6945     uint32_t _flag_a = 0, _flag_b = 0;
   6946     uint32_t _itail_tgt = 0;
   6947     RECOMP_REGS_LOCALS
   6948     RECOMP_ENTER(0x3801E150u);
   6949 
   6950 L_3801E150:
   6951     PUSH32(esp, ebx); /* 0x3801E150: push ebx */
   6952     PUSH32(esp, esi); /* 0x3801E151: push esi */
   6953     PUSH32(esp, edi); /* 0x3801E152: push edi */
   6954     edi = ecx; /* 0x3801E153: mov edi, ecx */
   6955     MEM32(edi) = 0x3804E7E8u; /* 0x3801E155: mov dword ptr [edi], 0x3804e7e8 */
   6956     ebx = MEM32(edi + 0xC); /* 0x3801E15B: mov ebx, dword ptr [edi + 0xc] */
   6957     esi = MEM32(edi + 0x8); /* 0x3801E15E: mov esi, dword ptr [edi + 8] */
   6958     /* cmp esi, ebx */ /* 0x3801E161: cmp esi, ebx */
   6959     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6960     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6961     _flag_k = FK_CMP;
   6962     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E175; /* 0x3801E163: je 0x3801e175 */
   6963 L_3801E165:
   6964     eax = MEM32(esi); /* 0x3801E165: mov eax, dword ptr [esi] */
   6965     PUSH32(esp, 0); /* 0x3801E167: push 0 */
   6966     ecx = esi; /* 0x3801E169: mov ecx, esi */
   6967     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3801E16B: call dword ptr [eax + 0xc] */
   6968     RECOMP_FLAGS_IN();
   6969     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   6970     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6971     esi = esi + 8; /* 0x3801E16E: add esi, 8 */
   6972     _flag_k = FK_ADD;
   6973     /* cmp esi, ebx */ /* 0x3801E171: cmp esi, ebx */
   6974     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6976     _flag_k = FK_CMP;
   6977     RECOMP_BACKEDGE();
   6978     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E165; /* 0x3801E173: jne 0x3801e165 */
   6979 L_3801E175:
   6980     ecx = MEM32(edi + 0x8); /* 0x3801E175: mov ecx, dword ptr [edi + 8] */
   6981     PUSH32(esp, ecx); /* 0x3801E178: push ecx */
   6982     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E179: call 0x3804b4f6 */ /* not lifted */
   6983     RECOMP_FLAGS_IN();
   6984     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6985     eax = 0; /* 0x3801E17E: xor eax, eax */
   6986     _cf = 0;
   6987     _flag_k = FK_TEST;
   6988     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6989     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6990     esp = esp + 4; /* 0x3801E180: add esp, 4 */
   6991     _flag_k = FK_ADD;
   6992     MEM32(edi + 0x8) = eax; /* 0x3801E183: mov dword ptr [edi + 8], eax */
   6993     MEM32(edi + 0xC) = eax; /* 0x3801E186: mov dword ptr [edi + 0xc], eax */
   6994     MEM32(edi + 0x10) = eax; /* 0x3801E189: mov dword ptr [edi + 0x10], eax */
   6995     edi = POP32_VAL(esp); /* 0x3801E18C: pop edi */
   6996     esi = POP32_VAL(esp); /* 0x3801E18D: pop esi */
   6997     ebx = POP32_VAL(esp); /* 0x3801E18E: pop ebx */
   6998     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E18F: ret  */
   6999     RECOMP_REGS_OUT();
   7000 }
   7001 
   7002 void sub_3801E190(void) {
   7003     int _fpu_cmp = 0;
   7004     uint32_t _cf = 0;
   7005     int _df = 1;
   7006     uint32_t _flag_k = FK_NONE;
   7007     uint32_t _flag_a = 0, _flag_b = 0;
   7008     uint32_t _itail_tgt = 0;
   7009     RECOMP_REGS_LOCALS
   7010     RECOMP_ENTER(0x3801E190u);
   7011 
   7012 L_3801E190:
   7013     PUSH32(esp, ebp); /* 0x3801E190: push ebp */
   7014     ebp = esp; /* 0x3801E191: mov ebp, esp */
   7015     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801E193: push -1 */
   7016     PUSH32(esp, 0x3804C3E8u); /* 0x3801E195: push 0x3804c3e8 */
   7017     eax = MEM32(FS_BASE + (0)); /* 0x3801E19A: mov eax, dword ptr fs:[0] */
   7018     PUSH32(esp, eax); /* 0x3801E1A0: push eax */
   7019     MEM32(FS_BASE + (0)) = esp; /* 0x3801E1A1: mov dword ptr fs:[0], esp */
   7020     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7022     esp = esp - 0x14u; /* 0x3801E1A8: sub esp, 0x14 */
   7023     _flag_k = FK_CMP;
   7024     eax = MEM32(ebp + 0x8); /* 0x3801E1AB: mov eax, dword ptr [ebp + 8] */
   7025     PUSH32(esp, ebx); /* 0x3801E1AE: push ebx */
   7026     PUSH32(esp, esi); /* 0x3801E1AF: push esi */
   7027     PUSH32(esp, edi); /* 0x3801E1B0: push edi */
   7028     esi = ecx; /* 0x3801E1B1: mov esi, ecx */
   7029     PUSH32(esp, eax); /* 0x3801E1B3: push eax */
   7030     ecx = ebp + (-0x20); /* 0x3801E1B4: lea ecx, [ebp - 0x20] */
   7031     RECOMP_ICALL(0x3801E540u); /* 0x3801E1B7: call 0x3801e540 */ /* not lifted */
   7032     RECOMP_FLAGS_IN();
   7033     ebx = eax; /* 0x3801E1BC: mov ebx, eax */
   7034     MEM32(ebp + (-0x10)) = ebx; /* 0x3801E1BE: mov dword ptr [ebp - 0x10], ebx */
   7035     eax = MEM32(esi + 0xC); /* 0x3801E1C1: mov eax, dword ptr [esi + 0xc] */
   7036     ecx = MEM32(esi + 0x10); /* 0x3801E1C4: mov ecx, dword ptr [esi + 0x10] */
   7037     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   7038     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7039     esi = esi + 4; /* 0x3801E1C7: add esi, 4 */
   7040     _flag_k = FK_ADD;
   7041     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7043     ecx = ecx - eax; /* 0x3801E1CA: sub ecx, eax */
   7044     _flag_k = FK_CMP;
   7045     if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3801E1CC: sar ecx, 3 */
   7046     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7047     ecx = (uint32_t)((int32_t)ecx >> 3u);
   7048     /* cmp ecx, 1 */ /* 0x3801E1CF: cmp ecx, 1 */
   7049     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7051     _flag_k = FK_CMP;
   7052     MEM32(ebp + (-0x4)) = 0; /* 0x3801E1D2: mov dword ptr [ebp - 4], 0 */
   7053     edi = eax; /* 0x3801E1D9: mov edi, eax */
   7054     if (CMP_AE(_flag_a, _flag_b)) goto L_3801E2C0; /* 0x3801E1DB: jae 0x3801e2c0 */
   7055 L_3801E1E1:
   7056     edx = MEM32(esi + 0x4); /* 0x3801E1E1: mov edx, dword ptr [esi + 4] */
   7057     /* test edx, edx */ /* 0x3801E1E4: test edx, edx */
   7058     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   7059     _cf = 0;
   7060     _flag_k = FK_TEST;
   7061     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E1F4; /* 0x3801E1E6: je 0x3801e1f4 */
   7062 L_3801E1E8:
   7063     ecx = eax; /* 0x3801E1E8: mov ecx, eax */
   7064     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7066     ecx = ecx - edx; /* 0x3801E1EA: sub ecx, edx */
   7067     _flag_k = FK_CMP;
   7068     if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3801E1EC: sar ecx, 3 */
   7069     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7070     ecx = (uint32_t)((int32_t)ecx >> 3u);
   7071     /* cmp ecx, 1 */ /* 0x3801E1EF: cmp ecx, 1 */
   7072     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7074     _flag_k = FK_CMP;
   7075     if (CMP_A(_flag_a, _flag_b)) goto L_3801E1F9; /* 0x3801E1F2: ja 0x3801e1f9 */
   7076 L_3801E1F4:
   7077     ecx = 1; /* 0x3801E1F4: mov ecx, 1 */
   7078 L_3801E1F9:
   7079     /* test edx, edx */ /* 0x3801E1F9: test edx, edx */
   7080     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   7081     _cf = 0;
   7082     _flag_k = FK_TEST;
   7083     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801E201; /* 0x3801E1FB: jne 0x3801e201 */
   7084 L_3801E1FD:
   7085     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7086     eax = 0; /* 0x3801E1FD: xor eax, eax */
   7087     _cf = 0;
   7088     _flag_k = FK_TEST;
   7089     goto L_3801E206; /* 0x3801E1FF: jmp 0x3801e206 */
   7090 L_3801E201:
   7091     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7092     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7093     eax = eax - edx; /* 0x3801E201: sub eax, edx */
   7094     _flag_k = FK_CMP;
   7095     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3801E203: sar eax, 3 */
   7096     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7097     eax = (uint32_t)((int32_t)eax >> 3u);
   7098 L_3801E206:
   7099     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7100     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7101     eax = eax + ecx; /* 0x3801E206: add eax, ecx */
   7102     _flag_k = FK_ADD;
   7103     /* test eax, eax */ /* 0x3801E208: test eax, eax */
   7104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7105     _cf = 0;
   7106     _flag_k = FK_TEST;
   7107     MEM32(ebp + (-0x18)) = eax; /* 0x3801E20A: mov dword ptr [ebp - 0x18], eax */
   7108     if (TEST_NS(_flag_a, _flag_b)) goto L_3801E211; /* 0x3801E20D: jge 0x3801e211 */
   7109 L_3801E20F:
   7110     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7111     eax = 0; /* 0x3801E20F: xor eax, eax */
   7112     _cf = 0;
   7113     _flag_k = FK_TEST;
   7114 L_3801E211:
   7115     edx = eax * 8; /* 0x3801E211: lea edx, [eax*8] */
   7116     PUSH32(esp, edx); /* 0x3801E218: push edx */
   7117     RECOMP_ICALL(0x3804B676u); /* 0x3801E219: call 0x3804b676 */ /* not lifted */
   7118     RECOMP_FLAGS_IN();
   7119     MEM32(ebp + (-0x14)) = eax; /* 0x3801E21E: mov dword ptr [ebp - 0x14], eax */
   7120     ebx = eax; /* 0x3801E221: mov ebx, eax */
   7121     eax = MEM32(esi + 0x4); /* 0x3801E223: mov eax, dword ptr [esi + 4] */
   7122     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7123     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7124     esp = esp + 4; /* 0x3801E226: add esp, 4 */
   7125     _flag_k = FK_ADD;
   7126     /* cmp eax, edi */ /* 0x3801E229: cmp eax, edi */
   7127     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7128     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7129     _flag_k = FK_CMP;
   7130     MEM32(ebp + 0x8) = eax; /* 0x3801E22B: mov dword ptr [ebp + 8], eax */
   7131     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E24F; /* 0x3801E22E: je 0x3801e24f */
   7132 L_3801E230:
   7133     goto L_3801E235; /* 0x3801E230: jmp 0x3801e235 */
   7134 L_3801E232:
   7135     eax = MEM32(ebp + 0x8); /* 0x3801E232: mov eax, dword ptr [ebp + 8] */
   7136 L_3801E235:
   7137     PUSH32(esp, eax); /* 0x3801E235: push eax */
   7138     PUSH32(esp, ebx); /* 0x3801E236: push ebx */
   7139     RECOMP_ICALL(0x38004460u); /* 0x3801E237: call 0x38004460 */ /* not lifted */
   7140     RECOMP_FLAGS_IN();
   7141     eax = MEM32(ebp + 0x8); /* 0x3801E23C: mov eax, dword ptr [ebp + 8] */
   7142     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   7143     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7144     eax = eax + 8; /* 0x3801E23F: add eax, 8 */
   7145     _flag_k = FK_ADD;
   7146     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7147     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7148     esp = esp + 8; /* 0x3801E242: add esp, 8 */
   7149     _flag_k = FK_ADD;
   7150     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
   7151     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7152     ebx = ebx + 8; /* 0x3801E245: add ebx, 8 */
   7153     _flag_k = FK_ADD;
   7154     /* cmp eax, edi */ /* 0x3801E248: cmp eax, edi */
   7155     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7157     _flag_k = FK_CMP;
   7158     MEM32(ebp + 0x8) = eax; /* 0x3801E24A: mov dword ptr [ebp + 8], eax */
   7159     RECOMP_BACKEDGE();
   7160     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E232; /* 0x3801E24D: jne 0x3801e232 */
   7161 L_3801E24F:
   7162     eax = MEM32(ebp + (-0x10)); /* 0x3801E24F: mov eax, dword ptr [ebp - 0x10] */
   7163     PUSH32(esp, eax); /* 0x3801E252: push eax */
   7164     PUSH32(esp, 1); /* 0x3801E253: push 1 */
   7165     PUSH32(esp, ebx); /* 0x3801E255: push ebx */
   7166     ecx = esi; /* 0x3801E256: mov ecx, esi */
   7167     RECOMP_ICALL(0x3801E430u); /* 0x3801E258: call 0x3801e430 */ /* not lifted */
   7168     RECOMP_FLAGS_IN();
   7169     ecx = MEM32(esi + 0x8); /* 0x3801E25D: mov ecx, dword ptr [esi + 8] */
   7170     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
   7171     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7172     ebx = ebx + 8; /* 0x3801E260: add ebx, 8 */
   7173     _flag_k = FK_ADD;
   7174     PUSH32(esp, ebx); /* 0x3801E263: push ebx */
   7175     PUSH32(esp, ecx); /* 0x3801E264: push ecx */
   7176     PUSH32(esp, edi); /* 0x3801E265: push edi */
   7177     ecx = esi; /* 0x3801E266: mov ecx, esi */
   7178     RECOMP_ICALL(0x38004420u); /* 0x3801E268: call 0x38004420 */ /* not lifted */
   7179     RECOMP_FLAGS_IN();
   7180     edx = MEM32(esi + 0x8); /* 0x3801E26D: mov edx, dword ptr [esi + 8] */
   7181     eax = MEM32(esi + 0x4); /* 0x3801E270: mov eax, dword ptr [esi + 4] */
   7182     PUSH32(esp, edx); /* 0x3801E273: push edx */
   7183     PUSH32(esp, eax); /* 0x3801E274: push eax */
   7184     ecx = esi; /* 0x3801E275: mov ecx, esi */
   7185     RECOMP_ICALL(0x380043F0u); /* 0x3801E277: call 0x380043f0 */ /* not lifted */
   7186     RECOMP_FLAGS_IN();
   7187     eax = MEM32(esi + 0x4); /* 0x3801E27C: mov eax, dword ptr [esi + 4] */
   7188     PUSH32(esp, eax); /* 0x3801E27F: push eax */
   7189     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E280: call 0x3804b4f6 */ /* not lifted */
   7190     RECOMP_FLAGS_IN();
   7191     edx = MEM32(ebp + (-0x14)); /* 0x3801E285: mov edx, dword ptr [ebp - 0x14] */
   7192     ecx = MEM32(ebp + (-0x18)); /* 0x3801E288: mov ecx, dword ptr [ebp - 0x18] */
   7193     eax = edx + ecx * 8; /* 0x3801E28B: lea eax, [edx + ecx*8] */
   7194     MEM32(esi + 0xC) = eax; /* 0x3801E28E: mov dword ptr [esi + 0xc], eax */
   7195     eax = MEM32(esi + 0x4); /* 0x3801E291: mov eax, dword ptr [esi + 4] */
   7196     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7197     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7198     esp = esp + 4; /* 0x3801E294: add esp, 4 */
   7199     _flag_k = FK_ADD;
   7200     /* test eax, eax */ /* 0x3801E297: test eax, eax */
   7201     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7202     _cf = 0;
   7203     _flag_k = FK_TEST;
   7204     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801E2AC; /* 0x3801E299: jne 0x3801e2ac */
   7205 L_3801E29B:
   7206     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7207     ecx = 0; /* 0x3801E29B: xor ecx, ecx */
   7208     _cf = 0;
   7209     _flag_k = FK_TEST;
   7210     ecx = edx + ecx * 8 + 0x8; /* 0x3801E29D: lea ecx, [edx + ecx*8 + 8] */
   7211     MEM32(esi + 0x8) = ecx; /* 0x3801E2A1: mov dword ptr [esi + 8], ecx */
   7212     MEM32(esi + 0x4) = edx; /* 0x3801E2A4: mov dword ptr [esi + 4], edx */
   7213     goto L_3801E331; /* 0x3801E2A7: jmp 0x3801e331 */
   7214 L_3801E2AC:
   7215     ecx = MEM32(esi + 0x8); /* 0x3801E2AC: mov ecx, dword ptr [esi + 8] */
   7216     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7218     ecx = ecx - eax; /* 0x3801E2AF: sub ecx, eax */
   7219     _flag_k = FK_CMP;
   7220     if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3801E2B1: sar ecx, 3 */
   7221     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7222     ecx = (uint32_t)((int32_t)ecx >> 3u);
   7223     ecx = edx + ecx * 8 + 0x8; /* 0x3801E2B4: lea ecx, [edx + ecx*8 + 8] */
   7224     MEM32(esi + 0x8) = ecx; /* 0x3801E2B8: mov dword ptr [esi + 8], ecx */
   7225     MEM32(esi + 0x4) = edx; /* 0x3801E2BB: mov dword ptr [esi + 4], edx */
   7226     goto L_3801E331; /* 0x3801E2BE: jmp 0x3801e331 */
   7227 L_3801E2C0:
   7228     edx = eax; /* 0x3801E2C0: mov edx, eax */
   7229     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7231     edx = edx - edi; /* 0x3801E2C2: sub edx, edi */
   7232     _flag_k = FK_CMP;
   7233     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3801E2C4: sar edx, 3 */
   7234     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7235     edx = (uint32_t)((int32_t)edx >> 3u);
   7236     /* cmp edx, 1 */ /* 0x3801E2C7: cmp edx, 1 */
   7237     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   7238     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7239     _flag_k = FK_CMP;
   7240     if (CMP_AE(_flag_a, _flag_b)) goto L_3801E304; /* 0x3801E2CA: jae 0x3801e304 */
   7241 L_3801E2CC:
   7242     ecx = edi + 0x8; /* 0x3801E2CC: lea ecx, [edi + 8] */
   7243     PUSH32(esp, ecx); /* 0x3801E2CF: push ecx */
   7244     PUSH32(esp, eax); /* 0x3801E2D0: push eax */
   7245     PUSH32(esp, edi); /* 0x3801E2D1: push edi */
   7246     ecx = esi; /* 0x3801E2D2: mov ecx, esi */
   7247     RECOMP_ICALL(0x38004420u); /* 0x3801E2D4: call 0x38004420 */ /* not lifted */
   7248     RECOMP_FLAGS_IN();
   7249     eax = MEM32(esi + 0x8); /* 0x3801E2D9: mov eax, dword ptr [esi + 8] */
   7250     edx = eax; /* 0x3801E2DC: mov edx, eax */
   7251     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7253     edx = edx - edi; /* 0x3801E2DE: sub edx, edi */
   7254     _flag_k = FK_CMP;
   7255     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3801E2E0: sar edx, 3 */
   7256     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7257     edx = (uint32_t)((int32_t)edx >> 3u);
   7258     PUSH32(esp, ebx); /* 0x3801E2E3: push ebx */
   7259     ecx = 1; /* 0x3801E2E4: mov ecx, 1 */
   7260     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7261     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7262     ecx = ecx - edx; /* 0x3801E2E9: sub ecx, edx */
   7263     _flag_k = FK_CMP;
   7264     PUSH32(esp, ecx); /* 0x3801E2EB: push ecx */
   7265     PUSH32(esp, eax); /* 0x3801E2EC: push eax */
   7266     ecx = esi; /* 0x3801E2ED: mov ecx, esi */
   7267     RECOMP_ICALL(0x3801E430u); /* 0x3801E2EF: call 0x3801e430 */ /* not lifted */
   7268     RECOMP_FLAGS_IN();
   7269     edx = MEM32(esi + 0x8); /* 0x3801E2F4: mov edx, dword ptr [esi + 8] */
   7270     PUSH32(esp, ebx); /* 0x3801E2F7: push ebx */
   7271     PUSH32(esp, edx); /* 0x3801E2F8: push edx */
   7272     PUSH32(esp, edi); /* 0x3801E2F9: push edi */
   7273     RECOMP_ICALL(0x3801E460u); /* 0x3801E2FA: call 0x3801e460 */ /* not lifted */
   7274     RECOMP_FLAGS_IN();
   7275     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7276     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7277     esp = esp + 0xCu; /* 0x3801E2FF: add esp, 0xc */
   7278     _flag_k = FK_ADD;
   7279     goto L_3801E32D; /* 0x3801E302: jmp 0x3801e32d */
   7280 L_3801E304:
   7281     PUSH32(esp, eax); /* 0x3801E304: push eax */
   7282     PUSH32(esp, eax); /* 0x3801E305: push eax */
   7283     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF8u);
   7284     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7285     eax = eax + 0xFFFFFFF8u; /* 0x3801E306: add eax, -8 */
   7286     _flag_k = FK_ADD;
   7287     PUSH32(esp, eax); /* 0x3801E309: push eax */
   7288     ecx = esi; /* 0x3801E30A: mov ecx, esi */
   7289     RECOMP_ICALL(0x38004420u); /* 0x3801E30C: call 0x38004420 */ /* not lifted */
   7290     RECOMP_FLAGS_IN();
   7291     eax = MEM32(esi + 0x8); /* 0x3801E311: mov eax, dword ptr [esi + 8] */
   7292     PUSH32(esp, eax); /* 0x3801E314: push eax */
   7293     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF8u);
   7294     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7295     eax = eax + 0xFFFFFFF8u; /* 0x3801E315: add eax, -8 */
   7296     _flag_k = FK_ADD;
   7297     PUSH32(esp, eax); /* 0x3801E318: push eax */
   7298     PUSH32(esp, edi); /* 0x3801E319: push edi */
   7299     RECOMP_ICALL(0x3801E490u); /* 0x3801E31A: call 0x3801e490 */ /* not lifted */
   7300     RECOMP_FLAGS_IN();
   7301     PUSH32(esp, ebx); /* 0x3801E31F: push ebx */
   7302     eax = edi + 0x8; /* 0x3801E320: lea eax, [edi + 8] */
   7303     PUSH32(esp, eax); /* 0x3801E323: push eax */
   7304     PUSH32(esp, edi); /* 0x3801E324: push edi */
   7305     RECOMP_ICALL(0x3801E460u); /* 0x3801E325: call 0x3801e460 */ /* not lifted */
   7306     RECOMP_FLAGS_IN();
   7307     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   7308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7309     esp = esp + 0x18u; /* 0x3801E32A: add esp, 0x18 */
   7310     _flag_k = FK_ADD;
   7311 L_3801E32D:
   7312     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(8);
   7313     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7314     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 8; /* 0x3801E32D: add dword ptr [esi + 8], 8 */
   7315     _flag_k = FK_ADD;
   7316 L_3801E331:
   7317     ecx = ebp + (-0x20); /* 0x3801E331: lea ecx, [ebp - 0x20] */
   7318     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801E334: mov dword ptr [ebp - 4], 0xffffffff */
   7319     RECOMP_ICALL(0x3801E5E0u); /* 0x3801E33B: call 0x3801e5e0 */ /* not lifted */
   7320     RECOMP_FLAGS_IN();
   7321     ecx = MEM32(ebp + (-0xC)); /* 0x3801E340: mov ecx, dword ptr [ebp - 0xc] */
   7322     edi = POP32_VAL(esp); /* 0x3801E343: pop edi */
   7323     esi = POP32_VAL(esp); /* 0x3801E344: pop esi */
   7324     ebx = POP32_VAL(esp); /* 0x3801E345: pop ebx */
   7325     MEM32(FS_BASE + (0)) = ecx; /* 0x3801E346: mov dword ptr fs:[0], ecx */
   7326     esp = ebp; /* 0x3801E34D: mov esp, ebp */
   7327     ebp = POP32_VAL(esp); /* 0x3801E34F: pop ebp */
   7328     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E350: ret 4 */
   7329     RECOMP_REGS_OUT();
   7330 }
   7331 
   7332 void sub_3801E331(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(0x3801E331u);
   7341 
   7342 L_3801E331:
   7343     ecx = ebp + (-0x20); /* 0x3801E331: lea ecx, [ebp - 0x20] */
   7344     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801E334: mov dword ptr [ebp - 4], 0xffffffff */
   7345     RECOMP_ICALL(0x3801E5E0u); /* 0x3801E33B: call 0x3801e5e0 */ /* not lifted */
   7346     RECOMP_FLAGS_IN();
   7347     ecx = MEM32(ebp + (-0xC)); /* 0x3801E340: mov ecx, dword ptr [ebp - 0xc] */
   7348     edi = POP32_VAL(esp); /* 0x3801E343: pop edi */
   7349     esi = POP32_VAL(esp); /* 0x3801E344: pop esi */
   7350     ebx = POP32_VAL(esp); /* 0x3801E345: pop ebx */
   7351     MEM32(FS_BASE + (0)) = ecx; /* 0x3801E346: mov dword ptr fs:[0], ecx */
   7352     esp = ebp; /* 0x3801E34D: mov esp, ebp */
   7353     ebp = POP32_VAL(esp); /* 0x3801E34F: pop ebp */
   7354     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E350: ret 4 */
   7355     RECOMP_REGS_OUT();
   7356 }
   7357 
   7358 void sub_3801E360(void) {
   7359     int _fpu_cmp = 0;
   7360     uint32_t _cf = 0;
   7361     int _df = 1;
   7362     uint32_t _flag_k = FK_NONE;
   7363     uint32_t _flag_a = 0, _flag_b = 0;
   7364     uint32_t _itail_tgt = 0;
   7365     RECOMP_REGS_LOCALS
   7366     RECOMP_ENTER(0x3801E360u);
   7367 
   7368 L_3801E360:
   7369     PUSH32(esp, ebp); /* 0x3801E360: push ebp */
   7370     ebp = esp; /* 0x3801E361: mov ebp, esp */
   7371     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7373     esp = esp - 8; /* 0x3801E363: sub esp, 8 */
   7374     _flag_k = FK_CMP;
   7375     PUSH32(esp, edi); /* 0x3801E366: push edi */
   7376     edi = ecx; /* 0x3801E367: mov edi, ecx */
   7377     /* cmp MEM8(edi + 0x14), 1 */ /* 0x3801E369: cmp byte ptr [edi + 0x14], 1 */
   7378     _flag_a = (uint32_t)(MEM8(edi + 0x14)) << 24; _flag_b = (uint32_t)(1) << 24;
   7379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7380     _flag_k = FK_NARROW(FK_CMP, 24);
   7381     MEM32(ebp + (-0x4)) = edi; /* 0x3801E36D: mov dword ptr [ebp - 4], edi */
   7382     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E379; /* 0x3801E370: jne 0x3801e379 */
   7383 L_3801E372:
   7384     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7385     SET_LO8(eax, 0); /* 0x3801E372: xor al, al */
   7386     _cf = 0;
   7387     _flag_k = FK_NARROW(FK_TEST, 24);
   7388     edi = POP32_VAL(esp); /* 0x3801E374: pop edi */
   7389     esp = ebp; /* 0x3801E375: mov esp, ebp */
   7390     ebp = POP32_VAL(esp); /* 0x3801E377: pop ebp */
   7391     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E378: ret  */
   7392 L_3801E379:
   7393     eax = MEM32(edi + 0x8); /* 0x3801E379: mov eax, dword ptr [edi + 8] */
   7394     /* test eax, eax */ /* 0x3801E37C: test eax, eax */
   7395     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7396     _cf = 0;
   7397     _flag_k = FK_TEST;
   7398     PUSH32(esp, esi); /* 0x3801E37E: push esi */
   7399     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E3FF; /* 0x3801E37F: je 0x3801e3ff */
   7400 L_3801E381:
   7401     ecx = MEM32(edi + 0xC); /* 0x3801E381: mov ecx, dword ptr [edi + 0xc] */
   7402     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   7403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7404     ecx = ecx - eax; /* 0x3801E384: sub ecx, eax */
   7405     _flag_k = FK_CMP;
   7406     /* test ecx, 0xFFFFFFF8u */ /* 0x3801E386: test ecx, 0xfffffff8 */
   7407     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u);
   7408     _cf = 0;
   7409     _flag_k = FK_TEST;
   7410     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E3FF; /* 0x3801E38C: je 0x3801e3ff */
   7411 L_3801E38E:
   7412     esi = eax; /* 0x3801E38E: mov esi, eax */
   7413     /* cmp esi, MEM32(edi + 0xC) */ /* 0x3801E390: cmp esi, dword ptr [edi + 0xc] */
   7414     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0xC));
   7415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7416     _flag_k = FK_CMP;
   7417     MEM32(ebp + (-0x8)) = esi; /* 0x3801E393: mov dword ptr [ebp - 8], esi */
   7418     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E3FF; /* 0x3801E396: je 0x3801e3ff */
   7419 L_3801E398:
   7420     PUSH32(esp, ebx); /* 0x3801E398: push ebx */
   7421 L_3801E399:
   7422     edx = MEM32(esi); /* 0x3801E399: mov edx, dword ptr [esi] */
   7423     ecx = esi; /* 0x3801E39B: mov ecx, esi */
   7424     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3801E39D: call dword ptr [edx + 4] */
   7425     RECOMP_FLAGS_IN();
   7426     /* test LO8(eax), LO8(eax) */ /* 0x3801E3A0: test al, al */
   7427     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7428     _cf = 0;
   7429     _flag_k = FK_NARROW(FK_TEST, 24);
   7430     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801E3F3; /* 0x3801E3A2: jne 0x3801e3f3 */
   7431 L_3801E3A4:
   7432     ebx = MEM32(edi + 0xC); /* 0x3801E3A4: mov ebx, dword ptr [edi + 0xc] */
   7433     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   7434     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7435     esi = esi + 8; /* 0x3801E3A7: add esi, 8 */
   7436     _flag_k = FK_ADD;
   7437     /* cmp esi, ebx */ /* 0x3801E3AA: cmp esi, ebx */
   7438     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   7439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7440     _flag_k = FK_CMP;
   7441     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E3C6; /* 0x3801E3AC: je 0x3801e3c6 */
   7442 L_3801E3AE:
   7443     edi = MEM32(ebp + (-0x8)); /* 0x3801E3AE: mov edi, dword ptr [ebp - 8] */
   7444 L_3801E3B1:
   7445     PUSH32(esp, esi); /* 0x3801E3B1: push esi */
   7446     ecx = edi; /* 0x3801E3B2: mov ecx, edi */
   7447     RECOMP_ICALL(0x3801E590u); /* 0x3801E3B4: call 0x3801e590 */ /* not lifted */
   7448     RECOMP_FLAGS_IN();
   7449     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   7450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7451     esi = esi + 8; /* 0x3801E3B9: add esi, 8 */
   7452     _flag_k = FK_ADD;
   7453     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   7454     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7455     edi = edi + 8; /* 0x3801E3BC: add edi, 8 */
   7456     _flag_k = FK_ADD;
   7457     /* cmp esi, ebx */ /* 0x3801E3BF: cmp esi, ebx */
   7458     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   7459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7460     _flag_k = FK_CMP;
   7461     RECOMP_BACKEDGE();
   7462     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E3B1; /* 0x3801E3C1: jne 0x3801e3b1 */
   7463 L_3801E3C3:
   7464     edi = MEM32(ebp + (-0x4)); /* 0x3801E3C3: mov edi, dword ptr [ebp - 4] */
   7465 L_3801E3C6:
   7466     edi = MEM32(edi + 0xC); /* 0x3801E3C6: mov edi, dword ptr [edi + 0xc] */
   7467     esi = edi + (-0x8); /* 0x3801E3C9: lea esi, [edi - 8] */
   7468     /* cmp esi, edi */ /* 0x3801E3CC: cmp esi, edi */
   7469     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7471     _flag_k = FK_CMP;
   7472     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E3E0; /* 0x3801E3CE: je 0x3801e3e0 */
   7473 L_3801E3D0:
   7474     eax = MEM32(esi); /* 0x3801E3D0: mov eax, dword ptr [esi] */
   7475     PUSH32(esp, 0); /* 0x3801E3D2: push 0 */
   7476     ecx = esi; /* 0x3801E3D4: mov ecx, esi */
   7477     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3801E3D6: call dword ptr [eax + 0xc] */
   7478     RECOMP_FLAGS_IN();
   7479     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   7480     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7481     esi = esi + 8; /* 0x3801E3D9: add esi, 8 */
   7482     _flag_k = FK_ADD;
   7483     /* cmp esi, edi */ /* 0x3801E3DC: cmp esi, edi */
   7484     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7486     _flag_k = FK_CMP;
   7487     RECOMP_BACKEDGE();
   7488     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E3D0; /* 0x3801E3DE: jne 0x3801e3d0 */
   7489 L_3801E3E0:
   7490     eax = MEM32(ebp + (-0x4)); /* 0x3801E3E0: mov eax, dword ptr [ebp - 4] */
   7491     ecx = MEM32(eax + 0xC); /* 0x3801E3E3: mov ecx, dword ptr [eax + 0xc] */
   7492     esi = MEM32(ebp + (-0x8)); /* 0x3801E3E6: mov esi, dword ptr [ebp - 8] */
   7493     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u);
   7494     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7495     ecx = ecx + 0xFFFFFFF8u; /* 0x3801E3E9: add ecx, -8 */
   7496     _flag_k = FK_ADD;
   7497     MEM32(eax + 0xC) = ecx; /* 0x3801E3EC: mov dword ptr [eax + 0xc], ecx */
   7498     edi = eax; /* 0x3801E3EF: mov edi, eax */
   7499     goto L_3801E3F9; /* 0x3801E3F1: jmp 0x3801e3f9 */
   7500 L_3801E3F3:
   7501     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   7502     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7503     esi = esi + 8; /* 0x3801E3F3: add esi, 8 */
   7504     _flag_k = FK_ADD;
   7505     MEM32(ebp + (-0x8)) = esi; /* 0x3801E3F6: mov dword ptr [ebp - 8], esi */
   7506 L_3801E3F9:
   7507     /* cmp esi, MEM32(edi + 0xC) */ /* 0x3801E3F9: cmp esi, dword ptr [edi + 0xc] */
   7508     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0xC));
   7509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7510     _flag_k = FK_CMP;
   7511     RECOMP_BACKEDGE();
   7512     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E399; /* 0x3801E3FC: jne 0x3801e399 */
   7513 L_3801E3FE:
   7514     ebx = POP32_VAL(esp); /* 0x3801E3FE: pop ebx */
   7515 L_3801E3FF:
   7516     edx = MEM32(edi); /* 0x3801E3FF: mov edx, dword ptr [edi] */
   7517     ecx = edi; /* 0x3801E401: mov ecx, edi */
   7518     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3801E403: call dword ptr [edx + 0x10] */
   7519     RECOMP_FLAGS_IN();
   7520     /* cmp MEM8(edi + 0x14), 1 */ /* 0x3801E406: cmp byte ptr [edi + 0x14], 1 */
   7521     _flag_a = (uint32_t)(MEM8(edi + 0x14)) << 24; _flag_b = (uint32_t)(1) << 24;
   7522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7523     _flag_k = FK_NARROW(FK_CMP, 24);
   7524     esi = POP32_VAL(esp); /* 0x3801E40A: pop esi */
   7525     SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x3801E40B: setne al */
   7526     edi = POP32_VAL(esp); /* 0x3801E40E: pop edi */
   7527     esp = ebp; /* 0x3801E40F: mov esp, ebp */
   7528     ebp = POP32_VAL(esp); /* 0x3801E411: pop ebp */
   7529     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E412: ret  */
   7530     RECOMP_REGS_OUT();
   7531 }
   7532 
   7533 void sub_3801E420(void) {
   7534     int _fpu_cmp = 0;
   7535     uint32_t _cf = 0;
   7536     int _df = 1;
   7537     uint32_t _flag_k = FK_NONE;
   7538     uint32_t _flag_a = 0, _flag_b = 0;
   7539     uint32_t _itail_tgt = 0;
   7540     RECOMP_REGS_LOCALS
   7541     RECOMP_ENTER(0x3801E420u);
   7542 
   7543 L_3801E420:
   7544     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3801E420: mov byte ptr [ecx + 0x14], 1 */
   7545     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E424: ret  */
   7546     RECOMP_REGS_OUT();
   7547 }
   7548 
   7549 void sub_3801E430(void) {
   7550     int _fpu_cmp = 0;
   7551     uint32_t _cf = 0;
   7552     int _df = 1;
   7553     uint32_t _flag_k = FK_NONE;
   7554     uint32_t _flag_a = 0, _flag_b = 0;
   7555     uint32_t _itail_tgt = 0;
   7556     RECOMP_REGS_LOCALS
   7557     RECOMP_ENTER(0x3801E430u);
   7558 
   7559 L_3801E430:
   7560     PUSH32(esp, ebp); /* 0x3801E430: push ebp */
   7561     ebp = esp; /* 0x3801E431: mov ebp, esp */
   7562     PUSH32(esp, edi); /* 0x3801E433: push edi */
   7563     edi = MEM32(ebp + 0xC); /* 0x3801E434: mov edi, dword ptr [ebp + 0xc] */
   7564     /* test edi, edi */ /* 0x3801E437: test edi, edi */
   7565     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7566     _cf = 0;
   7567     _flag_k = FK_TEST;
   7568     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E455; /* 0x3801E439: jbe 0x3801e455 */
   7569 L_3801E43B:
   7570     PUSH32(esp, ebx); /* 0x3801E43B: push ebx */
   7571     ebx = MEM32(ebp + 0x10); /* 0x3801E43C: mov ebx, dword ptr [ebp + 0x10] */
   7572     PUSH32(esp, esi); /* 0x3801E43F: push esi */
   7573     esi = MEM32(ebp + 0x8); /* 0x3801E440: mov esi, dword ptr [ebp + 8] */
   7574 L_3801E443:
   7575     PUSH32(esp, ebx); /* 0x3801E443: push ebx */
   7576     PUSH32(esp, esi); /* 0x3801E444: push esi */
   7577     RECOMP_ICALL(0x38004460u); /* 0x3801E445: call 0x38004460 */ /* not lifted */
   7578     RECOMP_FLAGS_IN();
   7579     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7580     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7581     esp = esp + 8; /* 0x3801E44A: add esp, 8 */
   7582     _flag_k = FK_ADD;
   7583     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   7584     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7585     esi = esi + 8; /* 0x3801E44D: add esi, 8 */
   7586     _flag_k = FK_ADD;
   7587     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   7588     edi = edi - 1; /* 0x3801E450: dec edi */
   7589     _flag_k = FK_DEC;
   7590     RECOMP_BACKEDGE();
   7591     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3801E443; /* 0x3801E451: jne 0x3801e443 */
   7592 L_3801E453:
   7593     esi = POP32_VAL(esp); /* 0x3801E453: pop esi */
   7594     ebx = POP32_VAL(esp); /* 0x3801E454: pop ebx */
   7595 L_3801E455:
   7596     edi = POP32_VAL(esp); /* 0x3801E455: pop edi */
   7597     ebp = POP32_VAL(esp); /* 0x3801E456: pop ebp */
   7598     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801E457: ret 0xc */
   7599     RECOMP_REGS_OUT();
   7600 }
   7601 
   7602 void sub_3801E460(void) {
   7603     int _fpu_cmp = 0;
   7604     uint32_t _cf = 0;
   7605     int _df = 1;
   7606     uint32_t _flag_k = FK_NONE;
   7607     uint32_t _flag_a = 0, _flag_b = 0;
   7608     uint32_t _itail_tgt = 0;
   7609     RECOMP_REGS_LOCALS
   7610     RECOMP_ENTER(0x3801E460u);
   7611 
   7612 L_3801E460:
   7613     PUSH32(esp, ebp); /* 0x3801E460: push ebp */
   7614     ebp = esp; /* 0x3801E461: mov ebp, esp */
   7615     PUSH32(esp, esi); /* 0x3801E463: push esi */
   7616     esi = MEM32(ebp + 0x8); /* 0x3801E464: mov esi, dword ptr [ebp + 8] */
   7617     PUSH32(esp, edi); /* 0x3801E467: push edi */
   7618     edi = MEM32(ebp + 0xC); /* 0x3801E468: mov edi, dword ptr [ebp + 0xc] */
   7619     /* cmp esi, edi */ /* 0x3801E46B: cmp esi, edi */
   7620     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7622     _flag_k = FK_CMP;
   7623     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E483; /* 0x3801E46D: je 0x3801e483 */
   7624 L_3801E46F:
   7625     PUSH32(esp, ebx); /* 0x3801E46F: push ebx */
   7626     ebx = MEM32(ebp + 0x10); /* 0x3801E470: mov ebx, dword ptr [ebp + 0x10] */
   7627 L_3801E473:
   7628     PUSH32(esp, ebx); /* 0x3801E473: push ebx */
   7629     ecx = esi; /* 0x3801E474: mov ecx, esi */
   7630     RECOMP_ICALL(0x3801E590u); /* 0x3801E476: call 0x3801e590 */ /* not lifted */
   7631     RECOMP_FLAGS_IN();
   7632     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   7633     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7634     esi = esi + 8; /* 0x3801E47B: add esi, 8 */
   7635     _flag_k = FK_ADD;
   7636     /* cmp esi, edi */ /* 0x3801E47E: cmp esi, edi */
   7637     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7638     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7639     _flag_k = FK_CMP;
   7640     RECOMP_BACKEDGE();
   7641     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E473; /* 0x3801E480: jne 0x3801e473 */
   7642 L_3801E482:
   7643     ebx = POP32_VAL(esp); /* 0x3801E482: pop ebx */
   7644 L_3801E483:
   7645     edi = POP32_VAL(esp); /* 0x3801E483: pop edi */
   7646     esi = POP32_VAL(esp); /* 0x3801E484: pop esi */
   7647     ebp = POP32_VAL(esp); /* 0x3801E485: pop ebp */
   7648     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E486: ret  */
   7649     RECOMP_REGS_OUT();
   7650 }
   7651 
   7652 void sub_3801E490(void) {
   7653     int _fpu_cmp = 0;
   7654     uint32_t _cf = 0;
   7655     int _df = 1;
   7656     uint32_t _flag_k = FK_NONE;
   7657     uint32_t _flag_a = 0, _flag_b = 0;
   7658     uint32_t _itail_tgt = 0;
   7659     RECOMP_REGS_LOCALS
   7660     RECOMP_ENTER(0x3801E490u);
   7661 
   7662 L_3801E490:
   7663     PUSH32(esp, ebp); /* 0x3801E490: push ebp */
   7664     ebp = esp; /* 0x3801E491: mov ebp, esp */
   7665     PUSH32(esp, ebx); /* 0x3801E493: push ebx */
   7666     ebx = MEM32(ebp + 0x8); /* 0x3801E494: mov ebx, dword ptr [ebp + 8] */
   7667     PUSH32(esp, esi); /* 0x3801E497: push esi */
   7668     esi = MEM32(ebp + 0xC); /* 0x3801E498: mov esi, dword ptr [ebp + 0xc] */
   7669     /* cmp ebx, esi */ /* 0x3801E49B: cmp ebx, esi */
   7670     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   7671     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7672     _flag_k = FK_CMP;
   7673     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E4BC; /* 0x3801E49D: je 0x3801e4bc */
   7674 L_3801E49F:
   7675     PUSH32(esp, edi); /* 0x3801E49F: push edi */
   7676     edi = MEM32(ebp + 0x10); /* 0x3801E4A0: mov edi, dword ptr [ebp + 0x10] */
   7677 L_3801E4A3:
   7678     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   7679     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7680     esi = esi - 8; /* 0x3801E4A3: sub esi, 8 */
   7681     _flag_k = FK_CMP;
   7682     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   7683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7684     edi = edi - 8; /* 0x3801E4A6: sub edi, 8 */
   7685     _flag_k = FK_CMP;
   7686     PUSH32(esp, esi); /* 0x3801E4A9: push esi */
   7687     ecx = edi; /* 0x3801E4AA: mov ecx, edi */
   7688     RECOMP_ICALL(0x3801E590u); /* 0x3801E4AC: call 0x3801e590 */ /* not lifted */
   7689     RECOMP_FLAGS_IN();
   7690     /* cmp esi, ebx */ /* 0x3801E4B1: cmp esi, ebx */
   7691     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   7692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7693     _flag_k = FK_CMP;
   7694     RECOMP_BACKEDGE();
   7695     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E4A3; /* 0x3801E4B3: jne 0x3801e4a3 */
   7696 L_3801E4B5:
   7697     eax = edi; /* 0x3801E4B5: mov eax, edi */
   7698     edi = POP32_VAL(esp); /* 0x3801E4B7: pop edi */
   7699     esi = POP32_VAL(esp); /* 0x3801E4B8: pop esi */
   7700     ebx = POP32_VAL(esp); /* 0x3801E4B9: pop ebx */
   7701     ebp = POP32_VAL(esp); /* 0x3801E4BA: pop ebp */
   7702     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E4BB: ret  */
   7703 L_3801E4BC:
   7704     eax = MEM32(ebp + 0x10); /* 0x3801E4BC: mov eax, dword ptr [ebp + 0x10] */
   7705     esi = POP32_VAL(esp); /* 0x3801E4BF: pop esi */
   7706     ebx = POP32_VAL(esp); /* 0x3801E4C0: pop ebx */
   7707     ebp = POP32_VAL(esp); /* 0x3801E4C1: pop ebp */
   7708     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E4C2: ret  */
   7709     RECOMP_REGS_OUT();
   7710 }
   7711 
   7712 void sub_3801E4D0(void) {
   7713     int _fpu_cmp = 0;
   7714     uint32_t _cf = 0;
   7715     int _df = 1;
   7716     uint32_t _flag_k = FK_NONE;
   7717     uint32_t _flag_a = 0, _flag_b = 0;
   7718     uint32_t _itail_tgt = 0;
   7719     RECOMP_REGS_LOCALS
   7720     RECOMP_ENTER(0x3801E4D0u);
   7721 
   7722 L_3801E4D0:
   7723     eax = ecx; /* 0x3801E4D0: mov eax, ecx */
   7724     MEM32(eax + 0x4) = 0; /* 0x3801E4D2: mov dword ptr [eax + 4], 0 */
   7725     MEM32(eax) = 0x3804F21Cu; /* 0x3801E4D9: mov dword ptr [eax], 0x3804f21c */
   7726     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E4DF: ret  */
   7727     RECOMP_REGS_OUT();
   7728 }
   7729 
   7730 void sub_3801E4E0(void) {
   7731     int _fpu_cmp = 0;
   7732     uint32_t _cf = 0;
   7733     int _df = 1;
   7734     uint32_t _flag_k = FK_NONE;
   7735     uint32_t _flag_a = 0, _flag_b = 0;
   7736     uint32_t _itail_tgt = 0;
   7737     RECOMP_REGS_LOCALS
   7738     RECOMP_ENTER(0x3801E4E0u);
   7739 
   7740 L_3801E4E0:
   7741     PUSH32(esp, ebp); /* 0x3801E4E0: push ebp */
   7742     ebp = esp; /* 0x3801E4E1: mov ebp, esp */
   7743     PUSH32(esp, ebx); /* 0x3801E4E3: push ebx */
   7744     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3801E4E4: mov bl, byte ptr [ebp + 8] */
   7745     /* test LO8(ebx), 2 */ /* 0x3801E4E7: test bl, 2 */
   7746     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   7747     _cf = 0;
   7748     _flag_k = FK_NARROW(FK_TEST, 24);
   7749     PUSH32(esp, esi); /* 0x3801E4EA: push esi */
   7750     esi = ecx; /* 0x3801E4EB: mov esi, ecx */
   7751     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E51B; /* 0x3801E4ED: je 0x3801e51b */
   7752 L_3801E4EF:
   7753     eax = MEM32(esi + (-0x4)); /* 0x3801E4EF: mov eax, dword ptr [esi - 4] */
   7754     PUSH32(esp, edi); /* 0x3801E4F2: push edi */
   7755     PUSH32(esp, 0x3801E5E0u); /* 0x3801E4F3: push 0x3801e5e0 */
   7756     edi = esi + (-0x4); /* 0x3801E4F8: lea edi, [esi - 4] */
   7757     PUSH32(esp, eax); /* 0x3801E4FB: push eax */
   7758     PUSH32(esp, 8); /* 0x3801E4FC: push 8 */
   7759     PUSH32(esp, esi); /* 0x3801E4FE: push esi */
   7760     RECOMP_ICALL(0x3804B582u); /* 0x3801E4FF: call 0x3804b582 */ /* not lifted */
   7761     RECOMP_FLAGS_IN();
   7762     /* test LO8(ebx), 1 */ /* 0x3801E504: test bl, 1 */
   7763     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7764     _cf = 0;
   7765     _flag_k = FK_NARROW(FK_TEST, 24);
   7766     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E512; /* 0x3801E507: je 0x3801e512 */
   7767 L_3801E509:
   7768     PUSH32(esp, edi); /* 0x3801E509: push edi */
   7769     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E50A: call 0x3804b4f6 */ /* not lifted */
   7770     RECOMP_FLAGS_IN();
   7771     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7772     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7773     esp = esp + 4; /* 0x3801E50F: add esp, 4 */
   7774     _flag_k = FK_ADD;
   7775 L_3801E512:
   7776     eax = edi; /* 0x3801E512: mov eax, edi */
   7777     edi = POP32_VAL(esp); /* 0x3801E514: pop edi */
   7778     esi = POP32_VAL(esp); /* 0x3801E515: pop esi */
   7779     ebx = POP32_VAL(esp); /* 0x3801E516: pop ebx */
   7780     ebp = POP32_VAL(esp); /* 0x3801E517: pop ebp */
   7781     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E518: ret 4 */
   7782 L_3801E51B:
   7783     ecx = esi; /* 0x3801E51B: mov ecx, esi */
   7784     RECOMP_ICALL(0x3801E5E0u); /* 0x3801E51D: call 0x3801e5e0 */ /* not lifted */
   7785     RECOMP_FLAGS_IN();
   7786     /* test LO8(ebx), 1 */ /* 0x3801E522: test bl, 1 */
   7787     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7788     _cf = 0;
   7789     _flag_k = FK_NARROW(FK_TEST, 24);
   7790     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E530; /* 0x3801E525: je 0x3801e530 */
   7791 L_3801E527:
   7792     PUSH32(esp, esi); /* 0x3801E527: push esi */
   7793     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E528: call 0x3804b4f6 */ /* not lifted */
   7794     RECOMP_FLAGS_IN();
   7795     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7796     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7797     esp = esp + 4; /* 0x3801E52D: add esp, 4 */
   7798     _flag_k = FK_ADD;
   7799 L_3801E530:
   7800     eax = esi; /* 0x3801E530: mov eax, esi */
   7801     esi = POP32_VAL(esp); /* 0x3801E532: pop esi */
   7802     ebx = POP32_VAL(esp); /* 0x3801E533: pop ebx */
   7803     ebp = POP32_VAL(esp); /* 0x3801E534: pop ebp */
   7804     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E535: ret 4 */
   7805     RECOMP_REGS_OUT();
   7806 }
   7807 
   7808 void sub_3801E540(void) {
   7809     int _fpu_cmp = 0;
   7810     uint32_t _cf = 0;
   7811     int _df = 1;
   7812     uint32_t _flag_k = FK_NONE;
   7813     uint32_t _flag_a = 0, _flag_b = 0;
   7814     uint32_t _itail_tgt = 0;
   7815     RECOMP_REGS_LOCALS
   7816     RECOMP_ENTER(0x3801E540u);
   7817 
   7818 L_3801E540:
   7819     PUSH32(esp, ebp); /* 0x3801E540: push ebp */
   7820     ebp = esp; /* 0x3801E541: mov ebp, esp */
   7821     eax = ecx; /* 0x3801E543: mov eax, ecx */
   7822     ecx = MEM32(ebp + 0x8); /* 0x3801E545: mov ecx, dword ptr [ebp + 8] */
   7823     MEM32(eax + 0x4) = ecx; /* 0x3801E548: mov dword ptr [eax + 4], ecx */
   7824     MEM32(eax) = 0x3804F21Cu; /* 0x3801E54B: mov dword ptr [eax], 0x3804f21c */
   7825     _flag_a = (uint32_t)(MEM32(ecx + 0x18)); _flag_b = (uint32_t)(1);
   7826     MEM32(ecx + 0x18) = MEM32(ecx + 0x18) + 1; /* 0x3801E551: inc dword ptr [ecx + 0x18] */
   7827     _flag_k = FK_INC;
   7828     ebp = POP32_VAL(esp); /* 0x3801E554: pop ebp */
   7829     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E555: ret 4 */
   7830     RECOMP_REGS_OUT();
   7831 }
   7832 
   7833 void sub_3801E560(void) {
   7834     int _fpu_cmp = 0;
   7835     uint32_t _cf = 0;
   7836     int _df = 1;
   7837     uint32_t _flag_k = FK_NONE;
   7838     uint32_t _flag_a = 0, _flag_b = 0;
   7839     uint32_t _itail_tgt = 0;
   7840     RECOMP_REGS_LOCALS
   7841     RECOMP_ENTER(0x3801E560u);
   7842 
   7843 L_3801E560:
   7844     PUSH32(esp, ebp); /* 0x3801E560: push ebp */
   7845     ebp = esp; /* 0x3801E561: mov ebp, esp */
   7846     eax = ecx; /* 0x3801E563: mov eax, ecx */
   7847     ecx = MEM32(ebp + 0x8); /* 0x3801E565: mov ecx, dword ptr [ebp + 8] */
   7848     MEM32(eax) = 0x3804E7C4u; /* 0x3801E568: mov dword ptr [eax], 0x3804e7c4 */
   7849     edx = MEM32(ecx + 0x4); /* 0x3801E56E: mov edx, dword ptr [ecx + 4] */
   7850     ecx = edx; /* 0x3801E571: mov ecx, edx */
   7851     MEM32(eax + 0x4) = edx; /* 0x3801E573: mov dword ptr [eax + 4], edx */
   7852     MEM32(eax) = 0x3804F21Cu; /* 0x3801E576: mov dword ptr [eax], 0x3804f21c */
   7853     _flag_a = (uint32_t)(MEM32(ecx + 0x18)); _flag_b = (uint32_t)(1);
   7854     MEM32(ecx + 0x18) = MEM32(ecx + 0x18) + 1; /* 0x3801E57C: inc dword ptr [ecx + 0x18] */
   7855     _flag_k = FK_INC;
   7856     ebp = POP32_VAL(esp); /* 0x3801E57F: pop ebp */
   7857     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E580: ret 4 */
   7858     RECOMP_REGS_OUT();
   7859 }
   7860 
   7861 void sub_3801E590(void) {
   7862     int _fpu_cmp = 0;
   7863     uint32_t _cf = 0;
   7864     int _df = 1;
   7865     uint32_t _flag_k = FK_NONE;
   7866     uint32_t _flag_a = 0, _flag_b = 0;
   7867     uint32_t _itail_tgt = 0;
   7868     RECOMP_REGS_LOCALS
   7869     RECOMP_ENTER(0x3801E590u);
   7870 
   7871 L_3801E590:
   7872     PUSH32(esp, ebp); /* 0x3801E590: push ebp */
   7873     ebp = esp; /* 0x3801E591: mov ebp, esp */
   7874     PUSH32(esp, esi); /* 0x3801E593: push esi */
   7875     PUSH32(esp, edi); /* 0x3801E594: push edi */
   7876     edi = MEM32(ebp + 0x8); /* 0x3801E595: mov edi, dword ptr [ebp + 8] */
   7877     esi = ecx; /* 0x3801E598: mov esi, ecx */
   7878     /* cmp esi, edi */ /* 0x3801E59A: cmp esi, edi */
   7879     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7881     _flag_k = FK_CMP;
   7882     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E5CA; /* 0x3801E59C: je 0x3801e5ca */
   7883 L_3801E59E:
   7884     eax = MEM32(esi + 0x4); /* 0x3801E59E: mov eax, dword ptr [esi + 4] */
   7885     /* test eax, eax */ /* 0x3801E5A1: test eax, eax */
   7886     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7887     _cf = 0;
   7888     _flag_k = FK_TEST;
   7889     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E5BD; /* 0x3801E5A3: je 0x3801e5bd */
   7890 L_3801E5A5:
   7891     _flag_a = (uint32_t)(MEM32(eax + 0x18)); _flag_b = (uint32_t)(1);
   7892     MEM32(eax + 0x18) = MEM32(eax + 0x18) - 1; /* 0x3801E5A5: dec dword ptr [eax + 0x18] */
   7893     _flag_k = FK_DEC;
   7894     ecx = MEM32(esi + 0x4); /* 0x3801E5A8: mov ecx, dword ptr [esi + 4] */
   7895     eax = MEM32(ecx + 0x18); /* 0x3801E5AB: mov eax, dword ptr [ecx + 0x18] */
   7896     /* test eax, eax */ /* 0x3801E5AE: test eax, eax */
   7897     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7898     _cf = 0;
   7899     _flag_k = FK_TEST;
   7900     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801E5BD; /* 0x3801E5B0: jne 0x3801e5bd */
   7901 L_3801E5B2:
   7902     /* test ecx, ecx */ /* 0x3801E5B2: test ecx, ecx */
   7903     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7904     _cf = 0;
   7905     _flag_k = FK_TEST;
   7906     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E5BD; /* 0x3801E5B4: je 0x3801e5bd */
   7907 L_3801E5B6:
   7908     eax = MEM32(ecx); /* 0x3801E5B6: mov eax, dword ptr [ecx] */
   7909     PUSH32(esp, 1); /* 0x3801E5B8: push 1 */
   7910     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3801E5BA: call dword ptr [eax + 0xc] */
   7911     RECOMP_FLAGS_IN();
   7912 L_3801E5BD:
   7913     eax = MEM32(edi + 0x4); /* 0x3801E5BD: mov eax, dword ptr [edi + 4] */
   7914     /* test eax, eax */ /* 0x3801E5C0: test eax, eax */
   7915     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7916     _cf = 0;
   7917     _flag_k = FK_TEST;
   7918     MEM32(esi + 0x4) = eax; /* 0x3801E5C2: mov dword ptr [esi + 4], eax */
   7919     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E5CA; /* 0x3801E5C5: je 0x3801e5ca */
   7920 L_3801E5C7:
   7921     _flag_a = (uint32_t)(MEM32(eax + 0x18)); _flag_b = (uint32_t)(1);
   7922     MEM32(eax + 0x18) = MEM32(eax + 0x18) + 1; /* 0x3801E5C7: inc dword ptr [eax + 0x18] */
   7923     _flag_k = FK_INC;
   7924 L_3801E5CA:
   7925     edi = POP32_VAL(esp); /* 0x3801E5CA: pop edi */
   7926     eax = esi; /* 0x3801E5CB: mov eax, esi */
   7927     esi = POP32_VAL(esp); /* 0x3801E5CD: pop esi */
   7928     ebp = POP32_VAL(esp); /* 0x3801E5CE: pop ebp */
   7929     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E5CF: ret 4 */
   7930     RECOMP_REGS_OUT();
   7931 }
   7932 
   7933 void sub_3801E5E0(void) {
   7934     int _fpu_cmp = 0;
   7935     uint32_t _cf = 0;
   7936     int _df = 1;
   7937     uint32_t _flag_k = FK_NONE;
   7938     uint32_t _flag_a = 0, _flag_b = 0;
   7939     uint32_t _itail_tgt = 0;
   7940     RECOMP_REGS_LOCALS
   7941     RECOMP_ENTER(0x3801E5E0u);
   7942 
   7943 L_3801E5E0:
   7944     eax = MEM32(ecx + 0x4); /* 0x3801E5E0: mov eax, dword ptr [ecx + 4] */
   7945     /* test eax, eax */ /* 0x3801E5E3: test eax, eax */
   7946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7947     _cf = 0;
   7948     _flag_k = FK_TEST;
   7949     MEM32(ecx) = 0x3804F21Cu; /* 0x3801E5E5: mov dword ptr [ecx], 0x3804f21c */
   7950     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E605; /* 0x3801E5EB: je 0x3801e605 */
   7951 L_3801E5ED:
   7952     _flag_a = (uint32_t)(MEM32(eax + 0x18)); _flag_b = (uint32_t)(1);
   7953     MEM32(eax + 0x18) = MEM32(eax + 0x18) - 1; /* 0x3801E5ED: dec dword ptr [eax + 0x18] */
   7954     _flag_k = FK_DEC;
   7955     ecx = MEM32(ecx + 0x4); /* 0x3801E5F0: mov ecx, dword ptr [ecx + 4] */
   7956     eax = MEM32(ecx + 0x18); /* 0x3801E5F3: mov eax, dword ptr [ecx + 0x18] */
   7957     /* test eax, eax */ /* 0x3801E5F6: test eax, eax */
   7958     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7959     _cf = 0;
   7960     _flag_k = FK_TEST;
   7961     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801E605; /* 0x3801E5F8: jne 0x3801e605 */
   7962 L_3801E5FA:
   7963     /* test ecx, ecx */ /* 0x3801E5FA: test ecx, ecx */
   7964     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7965     _cf = 0;
   7966     _flag_k = FK_TEST;
   7967     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E605; /* 0x3801E5FC: je 0x3801e605 */
   7968 L_3801E5FE:
   7969     eax = MEM32(ecx); /* 0x3801E5FE: mov eax, dword ptr [ecx] */
   7970     PUSH32(esp, 1); /* 0x3801E600: push 1 */
   7971     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3801E602: call dword ptr [eax + 0xc] */
   7972     RECOMP_FLAGS_IN();
   7973 L_3801E605:
   7974     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E605: ret  */
   7975     RECOMP_REGS_OUT();
   7976 }
   7977 
   7978 void sub_3801E610(void) {
   7979     int _fpu_cmp = 0;
   7980     uint32_t _cf = 0;
   7981     int _df = 1;
   7982     uint32_t _flag_k = FK_NONE;
   7983     uint32_t _flag_a = 0, _flag_b = 0;
   7984     uint32_t _itail_tgt = 0;
   7985     RECOMP_REGS_LOCALS
   7986     RECOMP_ENTER(0x3801E610u);
   7987 
   7988 L_3801E610:
   7989     PUSH32(esp, ebp); /* 0x3801E610: push ebp */
   7990     ebp = esp; /* 0x3801E611: mov ebp, esp */
   7991     ecx = MEM32(ecx + 0x4); /* 0x3801E613: mov ecx, dword ptr [ecx + 4] */
   7992     edx = MEM32(ebp + 0x8); /* 0x3801E616: mov edx, dword ptr [ebp + 8] */
   7993     eax = MEM32(ecx); /* 0x3801E619: mov eax, dword ptr [ecx] */
   7994     PUSH32(esp, edx); /* 0x3801E61B: push edx */
   7995     RECOMP_ICALL(MEM32(eax)); /* 0x3801E61C: call dword ptr [eax] */
   7996     RECOMP_FLAGS_IN();
   7997     ebp = POP32_VAL(esp); /* 0x3801E61E: pop ebp */
   7998     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E61F: ret 4 */
   7999     RECOMP_REGS_OUT();
   8000 }
   8001 
   8002 void sub_3801E630(void) {
   8003     int _fpu_cmp = 0;
   8004     uint32_t _cf = 0;
   8005     int _df = 1;
   8006     uint32_t _flag_k = FK_NONE;
   8007     uint32_t _flag_a = 0, _flag_b = 0;
   8008     uint32_t _itail_tgt = 0;
   8009     RECOMP_REGS_LOCALS
   8010     RECOMP_ENTER(0x3801E630u);
   8011 
   8012 L_3801E630:
   8013     ecx = MEM32(ecx + 0x4); /* 0x3801E630: mov ecx, dword ptr [ecx + 4] */
   8014 L_3801E633:
   8015     eax = MEM32(ecx); /* 0x3801E633: mov eax, dword ptr [ecx] */
   8016 L_3801E635:
   8017     { _itail_tgt = (uint32_t)(MEM32(eax + 0x4)); goto _ljump; }
   8018     { RECOMP_REGS_OUT(); return; } /* end of function */
   8019   _ljump:
   8020     switch (_itail_tgt) {
   8021       case 0x3801E630u: goto L_3801E630;
   8022       case 0x3801E633u: goto L_3801E633;
   8023       case 0x3801E635u: goto L_3801E635;
   8024       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8025     }
   8026     RECOMP_REGS_OUT();
   8027 }
   8028 
   8029 void sub_3801E640(void) {
   8030     int _fpu_cmp = 0;
   8031     uint32_t _cf = 0;
   8032     int _df = 1;
   8033     uint32_t _flag_k = FK_NONE;
   8034     uint32_t _flag_a = 0, _flag_b = 0;
   8035     uint32_t _itail_tgt = 0;
   8036     RECOMP_REGS_LOCALS
   8037     RECOMP_ENTER(0x3801E640u);
   8038 
   8039 L_3801E640:
   8040     ecx = MEM32(ecx + 0x4); /* 0x3801E640: mov ecx, dword ptr [ecx + 4] */
   8041 L_3801E643:
   8042     eax = MEM32(ecx); /* 0x3801E643: mov eax, dword ptr [ecx] */
   8043 L_3801E645:
   8044     { _itail_tgt = (uint32_t)(MEM32(eax + 0x8)); goto _ljump; }
   8045     { RECOMP_REGS_OUT(); return; } /* end of function */
   8046   _ljump:
   8047     switch (_itail_tgt) {
   8048       case 0x3801E640u: goto L_3801E640;
   8049       case 0x3801E643u: goto L_3801E643;
   8050       case 0x3801E645u: goto L_3801E645;
   8051       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8052     }
   8053     RECOMP_REGS_OUT();
   8054 }
   8055 
   8056 void sub_3801E650(void) {
   8057     int _fpu_cmp = 0;
   8058     uint32_t _cf = 0;
   8059     int _df = 1;
   8060     uint32_t _flag_k = FK_NONE;
   8061     uint32_t _flag_a = 0, _flag_b = 0;
   8062     uint32_t _itail_tgt = 0;
   8063     RECOMP_REGS_LOCALS
   8064     RECOMP_ENTER(0x3801E650u);
   8065 
   8066 L_3801E650:
   8067     eax = ecx; /* 0x3801E650: mov eax, ecx */
   8068     MEM32(eax) = 0x3804E7D4u; /* 0x3801E652: mov dword ptr [eax], 0x3804e7d4 */
   8069     MEM32(eax + 0x4) = 0; /* 0x3801E658: mov dword ptr [eax + 4], 0 */
   8070     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E65F: ret  */
   8071     RECOMP_REGS_OUT();
   8072 }
   8073 
   8074 void sub_3801E660(void) {
   8075     int _fpu_cmp = 0;
   8076     uint32_t _cf = 0;
   8077     int _df = 1;
   8078     uint32_t _flag_k = FK_NONE;
   8079     uint32_t _flag_a = 0, _flag_b = 0;
   8080     uint32_t _itail_tgt = 0;
   8081     RECOMP_REGS_LOCALS
   8082     RECOMP_ENTER(0x3801E660u);
   8083 
   8084 L_3801E660:
   8085     PUSH32(esp, ebp); /* 0x3801E660: push ebp */
   8086     ebp = esp; /* 0x3801E661: mov ebp, esp */
   8087     PUSH32(esp, ecx); /* 0x3801E663: push ecx */
   8088     PUSH32(esp, edi); /* 0x3801E664: push edi */
   8089     edi = MEM32(ecx + 0x4); /* 0x3801E665: mov edi, dword ptr [ecx + 4] */
   8090     /* test edi, edi */ /* 0x3801E668: test edi, edi */
   8091     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8092     _cf = 0;
   8093     _flag_k = FK_TEST;
   8094     MEM32(ebp + (-0x4)) = ecx; /* 0x3801E66A: mov dword ptr [ebp - 4], ecx */
   8095     MEM32(ecx) = 0x3804E7D4u; /* 0x3801E66D: mov dword ptr [ecx], 0x3804e7d4 */
   8096     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E6BB; /* 0x3801E673: je 0x3801e6bb */
   8097 L_3801E675:
   8098     PUSH32(esp, ebx); /* 0x3801E675: push ebx */
   8099     ebx = MEM32(edi + 0x8); /* 0x3801E676: mov ebx, dword ptr [edi + 8] */
   8100     PUSH32(esp, esi); /* 0x3801E679: push esi */
   8101     esi = MEM32(edi + 0x4); /* 0x3801E67A: mov esi, dword ptr [edi + 4] */
   8102     /* cmp esi, ebx */ /* 0x3801E67D: cmp esi, ebx */
   8103     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8104     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8105     _flag_k = FK_CMP;
   8106     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E691; /* 0x3801E67F: je 0x3801e691 */
   8107 L_3801E681:
   8108     eax = MEM32(esi); /* 0x3801E681: mov eax, dword ptr [esi] */
   8109     PUSH32(esp, 0); /* 0x3801E683: push 0 */
   8110     ecx = esi; /* 0x3801E685: mov ecx, esi */
   8111     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3801E687: call dword ptr [eax + 0xc] */
   8112     RECOMP_FLAGS_IN();
   8113     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   8114     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8115     esi = esi + 8; /* 0x3801E68A: add esi, 8 */
   8116     _flag_k = FK_ADD;
   8117     /* cmp esi, ebx */ /* 0x3801E68D: cmp esi, ebx */
   8118     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8120     _flag_k = FK_CMP;
   8121     RECOMP_BACKEDGE();
   8122     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E681; /* 0x3801E68F: jne 0x3801e681 */
   8123 L_3801E691:
   8124     ecx = MEM32(edi + 0x4); /* 0x3801E691: mov ecx, dword ptr [edi + 4] */
   8125     PUSH32(esp, ecx); /* 0x3801E694: push ecx */
   8126     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E695: call 0x3804b4f6 */ /* not lifted */
   8127     RECOMP_FLAGS_IN();
   8128     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8129     esi = 0; /* 0x3801E69A: xor esi, esi */
   8130     _cf = 0;
   8131     _flag_k = FK_TEST;
   8132     PUSH32(esp, edi); /* 0x3801E69C: push edi */
   8133     MEM32(edi + 0x4) = esi; /* 0x3801E69D: mov dword ptr [edi + 4], esi */
   8134     MEM32(edi + 0x8) = esi; /* 0x3801E6A0: mov dword ptr [edi + 8], esi */
   8135     MEM32(edi + 0xC) = esi; /* 0x3801E6A3: mov dword ptr [edi + 0xc], esi */
   8136     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E6A6: call 0x3804b4f6 */ /* not lifted */
   8137     RECOMP_FLAGS_IN();
   8138     edx = MEM32(ebp + (-0x4)); /* 0x3801E6AB: mov edx, dword ptr [ebp - 4] */
   8139     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8140     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8141     esp = esp + 8; /* 0x3801E6AE: add esp, 8 */
   8142     _flag_k = FK_ADD;
   8143     MEM32(edx + 0x4) = esi; /* 0x3801E6B1: mov dword ptr [edx + 4], esi */
   8144     esi = POP32_VAL(esp); /* 0x3801E6B4: pop esi */
   8145     ebx = POP32_VAL(esp); /* 0x3801E6B5: pop ebx */
   8146     edi = POP32_VAL(esp); /* 0x3801E6B6: pop edi */
   8147     esp = ebp; /* 0x3801E6B7: mov esp, ebp */
   8148     ebp = POP32_VAL(esp); /* 0x3801E6B9: pop ebp */
   8149     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E6BA: ret  */
   8150 L_3801E6BB:
   8151     MEM32(ecx + 0x4) = 0; /* 0x3801E6BB: mov dword ptr [ecx + 4], 0 */
   8152     edi = POP32_VAL(esp); /* 0x3801E6C2: pop edi */
   8153     esp = ebp; /* 0x3801E6C3: mov esp, ebp */
   8154     ebp = POP32_VAL(esp); /* 0x3801E6C5: pop ebp */
   8155     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E6C6: ret  */
   8156     RECOMP_REGS_OUT();
   8157 }
   8158 
   8159 void sub_3801E6D0(void) {
   8160     int _fpu_cmp = 0;
   8161     uint32_t _cf = 0;
   8162     int _df = 1;
   8163     uint32_t _flag_k = FK_NONE;
   8164     uint32_t _flag_a = 0, _flag_b = 0;
   8165     uint32_t _itail_tgt = 0;
   8166     RECOMP_REGS_LOCALS
   8167     RECOMP_ENTER(0x3801E6D0u);
   8168 
   8169 L_3801E6D0:
   8170     PUSH32(esp, ebp); /* 0x3801E6D0: push ebp */
   8171     ebp = esp; /* 0x3801E6D1: mov ebp, esp */
   8172     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801E6D3: push -1 */
   8173     PUSH32(esp, 0x3804C408u); /* 0x3801E6D5: push 0x3804c408 */
   8174     eax = MEM32(FS_BASE + (0)); /* 0x3801E6DA: mov eax, dword ptr fs:[0] */
   8175     PUSH32(esp, eax); /* 0x3801E6E0: push eax */
   8176     MEM32(FS_BASE + (0)) = esp; /* 0x3801E6E1: mov dword ptr fs:[0], esp */
   8177     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8178     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8179     esp = esp - 0x14u; /* 0x3801E6E8: sub esp, 0x14 */
   8180     _flag_k = FK_CMP;
   8181     PUSH32(esp, ebx); /* 0x3801E6EB: push ebx */
   8182     PUSH32(esp, esi); /* 0x3801E6EC: push esi */
   8183     esi = ecx; /* 0x3801E6ED: mov esi, ecx */
   8184     eax = MEM32(esi + 0x4); /* 0x3801E6EF: mov eax, dword ptr [esi + 4] */
   8185     PUSH32(esp, edi); /* 0x3801E6F2: push edi */
   8186     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8187     edi = 0; /* 0x3801E6F3: xor edi, edi */
   8188     _cf = 0;
   8189     _flag_k = FK_TEST;
   8190     /* cmp eax, edi */ /* 0x3801E6F5: cmp eax, edi */
   8191     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8193     _flag_k = FK_CMP;
   8194     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E71C; /* 0x3801E6F7: jne 0x3801e71c */
   8195 L_3801E6F9:
   8196     PUSH32(esp, 0x10u); /* 0x3801E6F9: push 0x10 */
   8197     RECOMP_ICALL(0x3804B676u); /* 0x3801E6FB: call 0x3804b676 */ /* not lifted */
   8198     RECOMP_FLAGS_IN();
   8199     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8200     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8201     esp = esp + 4; /* 0x3801E700: add esp, 4 */
   8202     _flag_k = FK_ADD;
   8203     /* cmp eax, edi */ /* 0x3801E703: cmp eax, edi */
   8204     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8205     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8206     _flag_k = FK_CMP;
   8207     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E717; /* 0x3801E705: je 0x3801e717 */
   8208 L_3801E707:
   8209     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3801E707: mov cl, byte ptr [ebp + 0xb] */
   8210     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3801E70A: mov byte ptr [eax], cl */
   8211     MEM32(eax + 0x4) = edi; /* 0x3801E70C: mov dword ptr [eax + 4], edi */
   8212     MEM32(eax + 0x8) = edi; /* 0x3801E70F: mov dword ptr [eax + 8], edi */
   8213     MEM32(eax + 0xC) = edi; /* 0x3801E712: mov dword ptr [eax + 0xc], edi */
   8214     goto L_3801E719; /* 0x3801E715: jmp 0x3801e719 */
   8215 L_3801E717:
   8216     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8217     eax = 0; /* 0x3801E717: xor eax, eax */
   8218     _cf = 0;
   8219     _flag_k = FK_TEST;
   8220 L_3801E719:
   8221     MEM32(esi + 0x4) = eax; /* 0x3801E719: mov dword ptr [esi + 4], eax */
   8222 L_3801E71C:
   8223     edx = MEM32(ebp + 0x8); /* 0x3801E71C: mov edx, dword ptr [ebp + 8] */
   8224     PUSH32(esp, edx); /* 0x3801E71F: push edx */
   8225     ecx = ebp + (-0x20); /* 0x3801E720: lea ecx, [ebp - 0x20] */
   8226     RECOMP_ICALL(0x3801E540u); /* 0x3801E723: call 0x3801e540 */ /* not lifted */
   8227     RECOMP_FLAGS_IN();
   8228     ebx = eax; /* 0x3801E728: mov ebx, eax */
   8229     MEM32(ebp + (-0x10)) = ebx; /* 0x3801E72A: mov dword ptr [ebp - 0x10], ebx */
   8230     esi = MEM32(esi + 0x4); /* 0x3801E72D: mov esi, dword ptr [esi + 4] */
   8231     eax = MEM32(esi + 0x8); /* 0x3801E730: mov eax, dword ptr [esi + 8] */
   8232     ecx = MEM32(esi + 0xC); /* 0x3801E733: mov ecx, dword ptr [esi + 0xc] */
   8233     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   8234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8235     ecx = ecx - eax; /* 0x3801E736: sub ecx, eax */
   8236     _flag_k = FK_CMP;
   8237     if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3801E738: sar ecx, 3 */
   8238     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8239     ecx = (uint32_t)((int32_t)ecx >> 3u);
   8240     /* cmp ecx, 1 */ /* 0x3801E73B: cmp ecx, 1 */
   8241     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8242     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8243     _flag_k = FK_CMP;
   8244     MEM32(ebp + (-0x4)) = edi; /* 0x3801E73E: mov dword ptr [ebp - 4], edi */
   8245     edi = eax; /* 0x3801E741: mov edi, eax */
   8246     if (CMP_AE(_flag_a, _flag_b)) goto L_3801E80F; /* 0x3801E743: jae 0x3801e80f */
   8247 L_3801E749:
   8248     edx = MEM32(esi + 0x4); /* 0x3801E749: mov edx, dword ptr [esi + 4] */
   8249     /* test edx, edx */ /* 0x3801E74C: test edx, edx */
   8250     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   8251     _cf = 0;
   8252     _flag_k = FK_TEST;
   8253     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E75C; /* 0x3801E74E: je 0x3801e75c */
   8254 L_3801E750:
   8255     ecx = eax; /* 0x3801E750: mov ecx, eax */
   8256     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8258     ecx = ecx - edx; /* 0x3801E752: sub ecx, edx */
   8259     _flag_k = FK_CMP;
   8260     if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3801E754: sar ecx, 3 */
   8261     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8262     ecx = (uint32_t)((int32_t)ecx >> 3u);
   8263     /* cmp ecx, 1 */ /* 0x3801E757: cmp ecx, 1 */
   8264     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8265     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8266     _flag_k = FK_CMP;
   8267     if (CMP_A(_flag_a, _flag_b)) goto L_3801E761; /* 0x3801E75A: ja 0x3801e761 */
   8268 L_3801E75C:
   8269     ecx = 1; /* 0x3801E75C: mov ecx, 1 */
   8270 L_3801E761:
   8271     /* test edx, edx */ /* 0x3801E761: test edx, edx */
   8272     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   8273     _cf = 0;
   8274     _flag_k = FK_TEST;
   8275     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801E769; /* 0x3801E763: jne 0x3801e769 */
   8276 L_3801E765:
   8277     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8278     eax = 0; /* 0x3801E765: xor eax, eax */
   8279     _cf = 0;
   8280     _flag_k = FK_TEST;
   8281     goto L_3801E76E; /* 0x3801E767: jmp 0x3801e76e */
   8282 L_3801E769:
   8283     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   8284     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8285     eax = eax - edx; /* 0x3801E769: sub eax, edx */
   8286     _flag_k = FK_CMP;
   8287     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3801E76B: sar eax, 3 */
   8288     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8289     eax = (uint32_t)((int32_t)eax >> 3u);
   8290 L_3801E76E:
   8291     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8292     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8293     eax = eax + ecx; /* 0x3801E76E: add eax, ecx */
   8294     _flag_k = FK_ADD;
   8295     /* test eax, eax */ /* 0x3801E770: test eax, eax */
   8296     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8297     _cf = 0;
   8298     _flag_k = FK_TEST;
   8299     MEM32(ebp + (-0x18)) = eax; /* 0x3801E772: mov dword ptr [ebp - 0x18], eax */
   8300     if (TEST_NS(_flag_a, _flag_b)) goto L_3801E779; /* 0x3801E775: jge 0x3801e779 */
   8301 L_3801E777:
   8302     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8303     eax = 0; /* 0x3801E777: xor eax, eax */
   8304     _cf = 0;
   8305     _flag_k = FK_TEST;
   8306 L_3801E779:
   8307     edx = eax * 8; /* 0x3801E779: lea edx, [eax*8] */
   8308     PUSH32(esp, edx); /* 0x3801E780: push edx */
   8309     RECOMP_ICALL(0x3804B676u); /* 0x3801E781: call 0x3804b676 */ /* not lifted */
   8310     RECOMP_FLAGS_IN();
   8311     MEM32(ebp + (-0x14)) = eax; /* 0x3801E786: mov dword ptr [ebp - 0x14], eax */
   8312     ebx = eax; /* 0x3801E789: mov ebx, eax */
   8313     eax = MEM32(esi + 0x4); /* 0x3801E78B: mov eax, dword ptr [esi + 4] */
   8314     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8315     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8316     esp = esp + 4; /* 0x3801E78E: add esp, 4 */
   8317     _flag_k = FK_ADD;
   8318     /* cmp eax, edi */ /* 0x3801E791: cmp eax, edi */
   8319     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8321     _flag_k = FK_CMP;
   8322     MEM32(ebp + 0x8) = eax; /* 0x3801E793: mov dword ptr [ebp + 8], eax */
   8323     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E7B7; /* 0x3801E796: je 0x3801e7b7 */
   8324 L_3801E798:
   8325     goto L_3801E79D; /* 0x3801E798: jmp 0x3801e79d */
   8326 L_3801E79A:
   8327     eax = MEM32(ebp + 0x8); /* 0x3801E79A: mov eax, dword ptr [ebp + 8] */
   8328 L_3801E79D:
   8329     PUSH32(esp, eax); /* 0x3801E79D: push eax */
   8330     PUSH32(esp, ebx); /* 0x3801E79E: push ebx */
   8331     RECOMP_ICALL(0x38004460u); /* 0x3801E79F: call 0x38004460 */ /* not lifted */
   8332     RECOMP_FLAGS_IN();
   8333     eax = MEM32(ebp + 0x8); /* 0x3801E7A4: mov eax, dword ptr [ebp + 8] */
   8334     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   8335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8336     eax = eax + 8; /* 0x3801E7A7: add eax, 8 */
   8337     _flag_k = FK_ADD;
   8338     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8339     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8340     esp = esp + 8; /* 0x3801E7AA: add esp, 8 */
   8341     _flag_k = FK_ADD;
   8342     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
   8343     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8344     ebx = ebx + 8; /* 0x3801E7AD: add ebx, 8 */
   8345     _flag_k = FK_ADD;
   8346     /* cmp eax, edi */ /* 0x3801E7B0: cmp eax, edi */
   8347     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8349     _flag_k = FK_CMP;
   8350     MEM32(ebp + 0x8) = eax; /* 0x3801E7B2: mov dword ptr [ebp + 8], eax */
   8351     RECOMP_BACKEDGE();
   8352     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E79A; /* 0x3801E7B5: jne 0x3801e79a */
   8353 L_3801E7B7:
   8354     eax = MEM32(ebp + (-0x10)); /* 0x3801E7B7: mov eax, dword ptr [ebp - 0x10] */
   8355     PUSH32(esp, eax); /* 0x3801E7BA: push eax */
   8356     PUSH32(esp, 1); /* 0x3801E7BB: push 1 */
   8357     PUSH32(esp, ebx); /* 0x3801E7BD: push ebx */
   8358     ecx = esi; /* 0x3801E7BE: mov ecx, esi */
   8359     RECOMP_ICALL(0x3801E430u); /* 0x3801E7C0: call 0x3801e430 */ /* not lifted */
   8360     RECOMP_FLAGS_IN();
   8361     ecx = MEM32(esi + 0x8); /* 0x3801E7C5: mov ecx, dword ptr [esi + 8] */
   8362     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
   8363     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8364     ebx = ebx + 8; /* 0x3801E7C8: add ebx, 8 */
   8365     _flag_k = FK_ADD;
   8366     PUSH32(esp, ebx); /* 0x3801E7CB: push ebx */
   8367     PUSH32(esp, ecx); /* 0x3801E7CC: push ecx */
   8368     PUSH32(esp, edi); /* 0x3801E7CD: push edi */
   8369     ecx = esi; /* 0x3801E7CE: mov ecx, esi */
   8370     RECOMP_ICALL(0x38004420u); /* 0x3801E7D0: call 0x38004420 */ /* not lifted */
   8371     RECOMP_FLAGS_IN();
   8372     edx = MEM32(esi + 0x8); /* 0x3801E7D5: mov edx, dword ptr [esi + 8] */
   8373     eax = MEM32(esi + 0x4); /* 0x3801E7D8: mov eax, dword ptr [esi + 4] */
   8374     PUSH32(esp, edx); /* 0x3801E7DB: push edx */
   8375     PUSH32(esp, eax); /* 0x3801E7DC: push eax */
   8376     ecx = esi; /* 0x3801E7DD: mov ecx, esi */
   8377     RECOMP_ICALL(0x380043F0u); /* 0x3801E7DF: call 0x380043f0 */ /* not lifted */
   8378     RECOMP_FLAGS_IN();
   8379     eax = MEM32(esi + 0x4); /* 0x3801E7E4: mov eax, dword ptr [esi + 4] */
   8380     PUSH32(esp, eax); /* 0x3801E7E7: push eax */
   8381     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E7E8: call 0x3804b4f6 */ /* not lifted */
   8382     RECOMP_FLAGS_IN();
   8383     ecx = MEM32(ebp + (-0x18)); /* 0x3801E7ED: mov ecx, dword ptr [ebp - 0x18] */
   8384     edi = MEM32(ebp + (-0x14)); /* 0x3801E7F0: mov edi, dword ptr [ebp - 0x14] */
   8385     edx = edi + ecx * 8; /* 0x3801E7F3: lea edx, [edi + ecx*8] */
   8386     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8387     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8388     esp = esp + 4; /* 0x3801E7F6: add esp, 4 */
   8389     _flag_k = FK_ADD;
   8390     ecx = esi; /* 0x3801E7F9: mov ecx, esi */
   8391     MEM32(esi + 0xC) = edx; /* 0x3801E7FB: mov dword ptr [esi + 0xc], edx */
   8392     RECOMP_ICALL(0x3802F0B0u); /* 0x3801E7FE: call 0x3802f0b0 */ /* not lifted */
   8393     RECOMP_FLAGS_IN();
   8394     eax = edi + eax * 8 + 0x8; /* 0x3801E803: lea eax, [edi + eax*8 + 8] */
   8395     MEM32(esi + 0x8) = eax; /* 0x3801E807: mov dword ptr [esi + 8], eax */
   8396     MEM32(esi + 0x4) = edi; /* 0x3801E80A: mov dword ptr [esi + 4], edi */
   8397     goto L_3801E880; /* 0x3801E80D: jmp 0x3801e880 */
   8398 L_3801E80F:
   8399     ecx = eax; /* 0x3801E80F: mov ecx, eax */
   8400     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   8401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8402     ecx = ecx - edi; /* 0x3801E811: sub ecx, edi */
   8403     _flag_k = FK_CMP;
   8404     if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3801E813: sar ecx, 3 */
   8405     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8406     ecx = (uint32_t)((int32_t)ecx >> 3u);
   8407     /* cmp ecx, 1 */ /* 0x3801E816: cmp ecx, 1 */
   8408     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8410     _flag_k = FK_CMP;
   8411     if (CMP_AE(_flag_a, _flag_b)) goto L_3801E853; /* 0x3801E819: jae 0x3801e853 */
   8412 L_3801E81B:
   8413     edx = edi + 0x8; /* 0x3801E81B: lea edx, [edi + 8] */
   8414     PUSH32(esp, edx); /* 0x3801E81E: push edx */
   8415     PUSH32(esp, eax); /* 0x3801E81F: push eax */
   8416     PUSH32(esp, edi); /* 0x3801E820: push edi */
   8417     ecx = esi; /* 0x3801E821: mov ecx, esi */
   8418     RECOMP_ICALL(0x38004420u); /* 0x3801E823: call 0x38004420 */ /* not lifted */
   8419     RECOMP_FLAGS_IN();
   8420     eax = MEM32(esi + 0x8); /* 0x3801E828: mov eax, dword ptr [esi + 8] */
   8421     ecx = eax; /* 0x3801E82B: mov ecx, eax */
   8422     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   8423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8424     ecx = ecx - edi; /* 0x3801E82D: sub ecx, edi */
   8425     _flag_k = FK_CMP;
   8426     if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3801E82F: sar ecx, 3 */
   8427     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8428     ecx = (uint32_t)((int32_t)ecx >> 3u);
   8429     PUSH32(esp, ebx); /* 0x3801E832: push ebx */
   8430     edx = 1; /* 0x3801E833: mov edx, 1 */
   8431     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   8432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8433     edx = edx - ecx; /* 0x3801E838: sub edx, ecx */
   8434     _flag_k = FK_CMP;
   8435     PUSH32(esp, edx); /* 0x3801E83A: push edx */
   8436     PUSH32(esp, eax); /* 0x3801E83B: push eax */
   8437     ecx = esi; /* 0x3801E83C: mov ecx, esi */
   8438     RECOMP_ICALL(0x3801E430u); /* 0x3801E83E: call 0x3801e430 */ /* not lifted */
   8439     RECOMP_FLAGS_IN();
   8440     eax = MEM32(esi + 0x8); /* 0x3801E843: mov eax, dword ptr [esi + 8] */
   8441     PUSH32(esp, ebx); /* 0x3801E846: push ebx */
   8442     PUSH32(esp, eax); /* 0x3801E847: push eax */
   8443     PUSH32(esp, edi); /* 0x3801E848: push edi */
   8444     RECOMP_ICALL(0x3801E460u); /* 0x3801E849: call 0x3801e460 */ /* not lifted */
   8445     RECOMP_FLAGS_IN();
   8446     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8447     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8448     esp = esp + 0xCu; /* 0x3801E84E: add esp, 0xc */
   8449     _flag_k = FK_ADD;
   8450     goto L_3801E87C; /* 0x3801E851: jmp 0x3801e87c */
   8451 L_3801E853:
   8452     PUSH32(esp, eax); /* 0x3801E853: push eax */
   8453     PUSH32(esp, eax); /* 0x3801E854: push eax */
   8454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF8u);
   8455     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8456     eax = eax + 0xFFFFFFF8u; /* 0x3801E855: add eax, -8 */
   8457     _flag_k = FK_ADD;
   8458     PUSH32(esp, eax); /* 0x3801E858: push eax */
   8459     ecx = esi; /* 0x3801E859: mov ecx, esi */
   8460     RECOMP_ICALL(0x38004420u); /* 0x3801E85B: call 0x38004420 */ /* not lifted */
   8461     RECOMP_FLAGS_IN();
   8462     eax = MEM32(esi + 0x8); /* 0x3801E860: mov eax, dword ptr [esi + 8] */
   8463     PUSH32(esp, eax); /* 0x3801E863: push eax */
   8464     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF8u);
   8465     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8466     eax = eax + 0xFFFFFFF8u; /* 0x3801E864: add eax, -8 */
   8467     _flag_k = FK_ADD;
   8468     PUSH32(esp, eax); /* 0x3801E867: push eax */
   8469     PUSH32(esp, edi); /* 0x3801E868: push edi */
   8470     RECOMP_ICALL(0x3801E490u); /* 0x3801E869: call 0x3801e490 */ /* not lifted */
   8471     RECOMP_FLAGS_IN();
   8472     PUSH32(esp, ebx); /* 0x3801E86E: push ebx */
   8473     ecx = edi + 0x8; /* 0x3801E86F: lea ecx, [edi + 8] */
   8474     PUSH32(esp, ecx); /* 0x3801E872: push ecx */
   8475     PUSH32(esp, edi); /* 0x3801E873: push edi */
   8476     RECOMP_ICALL(0x3801E460u); /* 0x3801E874: call 0x3801e460 */ /* not lifted */
   8477     RECOMP_FLAGS_IN();
   8478     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   8479     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8480     esp = esp + 0x18u; /* 0x3801E879: add esp, 0x18 */
   8481     _flag_k = FK_ADD;
   8482 L_3801E87C:
   8483     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(8);
   8484     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8485     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 8; /* 0x3801E87C: add dword ptr [esi + 8], 8 */
   8486     _flag_k = FK_ADD;
   8487 L_3801E880:
   8488     ecx = ebp + (-0x20); /* 0x3801E880: lea ecx, [ebp - 0x20] */
   8489     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801E883: mov dword ptr [ebp - 4], 0xffffffff */
   8490     RECOMP_ICALL(0x3801E5E0u); /* 0x3801E88A: call 0x3801e5e0 */ /* not lifted */
   8491     RECOMP_FLAGS_IN();
   8492     ecx = MEM32(ebp + (-0xC)); /* 0x3801E88F: mov ecx, dword ptr [ebp - 0xc] */
   8493     edi = POP32_VAL(esp); /* 0x3801E892: pop edi */
   8494     esi = POP32_VAL(esp); /* 0x3801E893: pop esi */
   8495     ebx = POP32_VAL(esp); /* 0x3801E894: pop ebx */
   8496     MEM32(FS_BASE + (0)) = ecx; /* 0x3801E895: mov dword ptr fs:[0], ecx */
   8497     esp = ebp; /* 0x3801E89C: mov esp, ebp */
   8498     ebp = POP32_VAL(esp); /* 0x3801E89E: pop ebp */
   8499     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801E89F: ret 4 */
   8500     RECOMP_REGS_OUT();
   8501 }
   8502 
   8503 void sub_3801E8B0(void) {
   8504     int _fpu_cmp = 0;
   8505     uint32_t _cf = 0;
   8506     int _df = 1;
   8507     uint32_t _flag_k = FK_NONE;
   8508     uint32_t _flag_a = 0, _flag_b = 0;
   8509     uint32_t _itail_tgt = 0;
   8510     RECOMP_REGS_LOCALS
   8511     RECOMP_ENTER(0x3801E8B0u);
   8512 
   8513 L_3801E8B0:
   8514     PUSH32(esp, ebp); /* 0x3801E8B0: push ebp */
   8515     ebp = esp; /* 0x3801E8B1: mov ebp, esp */
   8516     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8518     esp = esp - 8; /* 0x3801E8B3: sub esp, 8 */
   8519     _flag_k = FK_CMP;
   8520     eax = MEM32(ecx + 0x4); /* 0x3801E8B6: mov eax, dword ptr [ecx + 4] */
   8521     /* test eax, eax */ /* 0x3801E8B9: test eax, eax */
   8522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8523     _cf = 0;
   8524     _flag_k = FK_TEST;
   8525     PUSH32(esp, ebx); /* 0x3801E8BB: push ebx */
   8526     PUSH32(esp, esi); /* 0x3801E8BC: push esi */
   8527     PUSH32(esp, edi); /* 0x3801E8BD: push edi */
   8528     MEM32(ebp + (-0x4)) = ecx; /* 0x3801E8BE: mov dword ptr [ebp - 4], ecx */
   8529     MEM32(ebp + (-0x8)) = eax; /* 0x3801E8C1: mov dword ptr [ebp - 8], eax */
   8530     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E90C; /* 0x3801E8C4: je 0x3801e90c */
   8531 L_3801E8C6:
   8532     ebx = MEM32(eax + 0x8); /* 0x3801E8C6: mov ebx, dword ptr [eax + 8] */
   8533     edi = MEM32(eax + 0x4); /* 0x3801E8C9: mov edi, dword ptr [eax + 4] */
   8534     esi = ebx; /* 0x3801E8CC: mov esi, ebx */
   8535     /* cmp esi, ebx */ /* 0x3801E8CE: cmp esi, ebx */
   8536     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8538     _flag_k = FK_CMP;
   8539     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E8EA; /* 0x3801E8D0: je 0x3801e8ea */
   8540 L_3801E8D2:
   8541     PUSH32(esp, esi); /* 0x3801E8D2: push esi */
   8542     ecx = edi; /* 0x3801E8D3: mov ecx, edi */
   8543     RECOMP_ICALL(0x3801E590u); /* 0x3801E8D5: call 0x3801e590 */ /* not lifted */
   8544     RECOMP_FLAGS_IN();
   8545     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   8546     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8547     esi = esi + 8; /* 0x3801E8DA: add esi, 8 */
   8548     _flag_k = FK_ADD;
   8549     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   8550     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8551     edi = edi + 8; /* 0x3801E8DD: add edi, 8 */
   8552     _flag_k = FK_ADD;
   8553     /* cmp esi, ebx */ /* 0x3801E8E0: cmp esi, ebx */
   8554     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8556     _flag_k = FK_CMP;
   8557     RECOMP_BACKEDGE();
   8558     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E8D2; /* 0x3801E8E2: jne 0x3801e8d2 */
   8559 L_3801E8E4:
   8560     eax = MEM32(ebp + (-0x8)); /* 0x3801E8E4: mov eax, dword ptr [ebp - 8] */
   8561     ecx = MEM32(ebp + (-0x4)); /* 0x3801E8E7: mov ecx, dword ptr [ebp - 4] */
   8562 L_3801E8EA:
   8563     ebx = MEM32(eax + 0x8); /* 0x3801E8EA: mov ebx, dword ptr [eax + 8] */
   8564     /* cmp edi, ebx */ /* 0x3801E8ED: cmp edi, ebx */
   8565     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   8566     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8567     _flag_k = FK_CMP;
   8568     esi = edi; /* 0x3801E8EF: mov esi, edi */
   8569     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E909; /* 0x3801E8F1: je 0x3801e909 */
   8570 L_3801E8F3:
   8571     eax = MEM32(esi); /* 0x3801E8F3: mov eax, dword ptr [esi] */
   8572     PUSH32(esp, 0); /* 0x3801E8F5: push 0 */
   8573     ecx = esi; /* 0x3801E8F7: mov ecx, esi */
   8574     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3801E8F9: call dword ptr [eax + 0xc] */
   8575     RECOMP_FLAGS_IN();
   8576     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   8577     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8578     esi = esi + 8; /* 0x3801E8FC: add esi, 8 */
   8579     _flag_k = FK_ADD;
   8580     /* cmp esi, ebx */ /* 0x3801E8FF: cmp esi, ebx */
   8581     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8583     _flag_k = FK_CMP;
   8584     RECOMP_BACKEDGE();
   8585     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E8F3; /* 0x3801E901: jne 0x3801e8f3 */
   8586 L_3801E903:
   8587     eax = MEM32(ebp + (-0x8)); /* 0x3801E903: mov eax, dword ptr [ebp - 8] */
   8588     ecx = MEM32(ebp + (-0x4)); /* 0x3801E906: mov ecx, dword ptr [ebp - 4] */
   8589 L_3801E909:
   8590     MEM32(eax + 0x8) = edi; /* 0x3801E909: mov dword ptr [eax + 8], edi */
   8591 L_3801E90C:
   8592     edi = MEM32(ecx + 0x4); /* 0x3801E90C: mov edi, dword ptr [ecx + 4] */
   8593     /* test edi, edi */ /* 0x3801E90F: test edi, edi */
   8594     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8595     _cf = 0;
   8596     _flag_k = FK_TEST;
   8597     if (TEST_Z(_flag_a, _flag_b)) goto L_3801E957; /* 0x3801E911: je 0x3801e957 */
   8598 L_3801E913:
   8599     ebx = MEM32(edi + 0x8); /* 0x3801E913: mov ebx, dword ptr [edi + 8] */
   8600     esi = MEM32(edi + 0x4); /* 0x3801E916: mov esi, dword ptr [edi + 4] */
   8601     /* cmp esi, ebx */ /* 0x3801E919: cmp esi, ebx */
   8602     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8604     _flag_k = FK_CMP;
   8605     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801E92D; /* 0x3801E91B: je 0x3801e92d */
   8606 L_3801E91D:
   8607     edx = MEM32(esi); /* 0x3801E91D: mov edx, dword ptr [esi] */
   8608     PUSH32(esp, 0); /* 0x3801E91F: push 0 */
   8609     ecx = esi; /* 0x3801E921: mov ecx, esi */
   8610     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3801E923: call dword ptr [edx + 0xc] */
   8611     RECOMP_FLAGS_IN();
   8612     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   8613     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8614     esi = esi + 8; /* 0x3801E926: add esi, 8 */
   8615     _flag_k = FK_ADD;
   8616     /* cmp esi, ebx */ /* 0x3801E929: cmp esi, ebx */
   8617     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8619     _flag_k = FK_CMP;
   8620     RECOMP_BACKEDGE();
   8621     if (CMP_NE(_flag_a, _flag_b)) goto L_3801E91D; /* 0x3801E92B: jne 0x3801e91d */
   8622 L_3801E92D:
   8623     eax = MEM32(edi + 0x4); /* 0x3801E92D: mov eax, dword ptr [edi + 4] */
   8624     PUSH32(esp, eax); /* 0x3801E930: push eax */
   8625     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E931: call 0x3804b4f6 */ /* not lifted */
   8626     RECOMP_FLAGS_IN();
   8627     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8628     esi = 0; /* 0x3801E936: xor esi, esi */
   8629     _cf = 0;
   8630     _flag_k = FK_TEST;
   8631     PUSH32(esp, edi); /* 0x3801E938: push edi */
   8632     MEM32(edi + 0x4) = esi; /* 0x3801E939: mov dword ptr [edi + 4], esi */
   8633     MEM32(edi + 0x8) = esi; /* 0x3801E93C: mov dword ptr [edi + 8], esi */
   8634     MEM32(edi + 0xC) = esi; /* 0x3801E93F: mov dword ptr [edi + 0xc], esi */
   8635     RECOMP_ICALL(0x3804B4F6u); /* 0x3801E942: call 0x3804b4f6 */ /* not lifted */
   8636     RECOMP_FLAGS_IN();
   8637     ecx = MEM32(ebp + (-0x4)); /* 0x3801E947: mov ecx, dword ptr [ebp - 4] */
   8638     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8639     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8640     esp = esp + 8; /* 0x3801E94A: add esp, 8 */
   8641     _flag_k = FK_ADD;
   8642     edi = POP32_VAL(esp); /* 0x3801E94D: pop edi */
   8643     MEM32(ecx + 0x4) = esi; /* 0x3801E94E: mov dword ptr [ecx + 4], esi */
   8644     esi = POP32_VAL(esp); /* 0x3801E951: pop esi */
   8645     ebx = POP32_VAL(esp); /* 0x3801E952: pop ebx */
   8646     esp = ebp; /* 0x3801E953: mov esp, ebp */
   8647     ebp = POP32_VAL(esp); /* 0x3801E955: pop ebp */
   8648     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E956: ret  */
   8649 L_3801E957:
   8650     edi = POP32_VAL(esp); /* 0x3801E957: pop edi */
   8651     esi = POP32_VAL(esp); /* 0x3801E958: pop esi */
   8652     MEM32(ecx + 0x4) = 0; /* 0x3801E959: mov dword ptr [ecx + 4], 0 */
   8653     ebx = POP32_VAL(esp); /* 0x3801E960: pop ebx */
   8654     esp = ebp; /* 0x3801E961: mov esp, ebp */
   8655     ebp = POP32_VAL(esp); /* 0x3801E963: pop ebp */
   8656     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801E964: ret  */
   8657     RECOMP_REGS_OUT();
   8658 }