aorecomp

Anarchy Online classic in the browser

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


client/game/llr.dll/lifted-0010.c (527552B)


      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_3801B110(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(0x3801B110u);
     17 
     18 L_3801B110:
     19     PUSH32(esp, ebp); /* 0x3801B110: push ebp */
     20     ebp = esp; /* 0x3801B111: mov ebp, esp */
     21     edx = MEM32(ecx + 0x4); /* 0x3801B113: mov edx, dword ptr [ecx + 4] */
     22     eax = MEM32(edx + 0x4); /* 0x3801B116: mov eax, dword ptr [edx + 4] */
     23     PUSH32(esp, edi); /* 0x3801B119: push edi */
     24     edi = MEM32(ecx + 0x8); /* 0x3801B11A: mov edi, dword ptr [ecx + 8] */
     25     /* cmp eax, edi */ /* 0x3801B11D: cmp eax, edi */
     26     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
     27     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     28     _flag_k = FK_CMP;
     29     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B15A; /* 0x3801B11F: je 0x3801b15a */
     30 L_3801B121:
     31     PUSH32(esp, ebx); /* 0x3801B121: push ebx */
     32     ebx = MEM32(ebp + 0xC); /* 0x3801B122: mov ebx, dword ptr [ebp + 0xc] */
     33     PUSH32(esp, esi); /* 0x3801B125: push esi */
     34     esi = MEM32(ebx); /* 0x3801B126: mov esi, dword ptr [ebx] */
     35 L_3801B128:
     36     ecx = MEM32(eax + 0xC); /* 0x3801B128: mov ecx, dword ptr [eax + 0xc] */
     37     /* cmp esi, ecx */ /* 0x3801B12B: cmp esi, ecx */
     38     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
     39     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     40     _flag_k = FK_CMP;
     41     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B13A; /* 0x3801B12D: jne 0x3801b13a */
     42 L_3801B12F:
     43     ecx = MEM32(ebx + 0x4); /* 0x3801B12F: mov ecx, dword ptr [ebx + 4] */
     44     /* cmp ecx, MEM32(eax + 0x10) */ /* 0x3801B132: cmp ecx, dword ptr [eax + 0x10] */
     45     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x10));
     46     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     47     _flag_k = FK_CMP;
     48     SET_LO8(ecx, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3801B135: setb cl */
     49     goto L_3801B13D; /* 0x3801B138: jmp 0x3801b13d */
     50 L_3801B13A:
     51     SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x3801B13A: setl cl */
     52 L_3801B13D:
     53     /* test LO8(ecx), LO8(ecx) */ /* 0x3801B13D: test cl, cl */
     54     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
     55     _cf = 0;
     56     _flag_k = FK_NARROW(FK_TEST, 24);
     57     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B147; /* 0x3801B13F: je 0x3801b147 */
     58 L_3801B141:
     59     edx = eax; /* 0x3801B141: mov edx, eax */
     60     eax = MEM32(eax); /* 0x3801B143: mov eax, dword ptr [eax] */
     61     goto L_3801B14A; /* 0x3801B145: jmp 0x3801b14a */
     62 L_3801B147:
     63     eax = MEM32(eax + 0x8); /* 0x3801B147: mov eax, dword ptr [eax + 8] */
     64 L_3801B14A:
     65     /* cmp eax, edi */ /* 0x3801B14A: cmp eax, edi */
     66     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
     67     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     68     _flag_k = FK_CMP;
     69     RECOMP_BACKEDGE();
     70     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B128; /* 0x3801B14C: jne 0x3801b128 */
     71 L_3801B14E:
     72     eax = MEM32(ebp + 0x8); /* 0x3801B14E: mov eax, dword ptr [ebp + 8] */
     73     esi = POP32_VAL(esp); /* 0x3801B151: pop esi */
     74     ebx = POP32_VAL(esp); /* 0x3801B152: pop ebx */
     75     MEM32(eax) = edx; /* 0x3801B153: mov dword ptr [eax], edx */
     76     edi = POP32_VAL(esp); /* 0x3801B155: pop edi */
     77     ebp = POP32_VAL(esp); /* 0x3801B156: pop ebp */
     78     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801B157: ret 8 */
     79 L_3801B15A:
     80     eax = MEM32(ebp + 0x8); /* 0x3801B15A: mov eax, dword ptr [ebp + 8] */
     81     MEM32(eax) = edx; /* 0x3801B15D: mov dword ptr [eax], edx */
     82     edi = POP32_VAL(esp); /* 0x3801B15F: pop edi */
     83     ebp = POP32_VAL(esp); /* 0x3801B160: pop ebp */
     84     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801B161: ret 8 */
     85     RECOMP_REGS_OUT();
     86 }
     87 
     88 void sub_3801B170(void) {
     89     int _fpu_cmp = 0;
     90     uint32_t _cf = 0;
     91     int _df = 1;
     92     uint32_t _flag_k = FK_NONE;
     93     uint32_t _flag_a = 0, _flag_b = 0;
     94     uint32_t _itail_tgt = 0;
     95     RECOMP_REGS_LOCALS
     96     RECOMP_ENTER(0x3801B170u);
     97 
     98 L_3801B170:
     99     eax = MEM32(ecx); /* 0x3801B170: mov eax, dword ptr [ecx] */
    100     SET_LO8(edx, MEM8(eax + 0x18)); /* 0x3801B172: mov dl, byte ptr [eax + 0x18] */
    101     /* test LO8(edx), LO8(edx) */ /* 0x3801B175: test dl, dl */
    102     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    103     _cf = 0;
    104     _flag_k = FK_NARROW(FK_TEST, 24);
    105     PUSH32(esp, ebx); /* 0x3801B177: push ebx */
    106     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801B189; /* 0x3801B178: jne 0x3801b189 */
    107 L_3801B17A:
    108     edx = MEM32(eax + 0x4); /* 0x3801B17A: mov edx, dword ptr [eax + 4] */
    109     /* cmp MEM32(edx + 0x4), eax */ /* 0x3801B17D: cmp dword ptr [edx + 4], eax */
    110     _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax);
    111     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    112     _flag_k = FK_CMP;
    113     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B189; /* 0x3801B180: jne 0x3801b189 */
    114 L_3801B182:
    115     eax = MEM32(eax + 0x8); /* 0x3801B182: mov eax, dword ptr [eax + 8] */
    116     MEM32(ecx) = eax; /* 0x3801B185: mov dword ptr [ecx], eax */
    117     ebx = POP32_VAL(esp); /* 0x3801B187: pop ebx */
    118     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B188: ret  */
    119 L_3801B189:
    120     edx = MEM32(eax); /* 0x3801B189: mov edx, dword ptr [eax] */
    121     SET_LO8(ebx, MEM8(edx + 0x19)); /* 0x3801B18B: mov bl, byte ptr [edx + 0x19] */
    122     /* test LO8(ebx), LO8(ebx) */ /* 0x3801B18E: test bl, bl */
    123     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    124     _cf = 0;
    125     _flag_k = FK_NARROW(FK_TEST, 24);
    126     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801B1AC; /* 0x3801B190: jne 0x3801b1ac */
    127 L_3801B192:
    128     eax = MEM32(edx + 0x8); /* 0x3801B192: mov eax, dword ptr [edx + 8] */
    129     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x3801B195: mov bl, byte ptr [eax + 0x19] */
    130     /* test LO8(ebx), LO8(ebx) */ /* 0x3801B198: test bl, bl */
    131     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    132     _cf = 0;
    133     _flag_k = FK_NARROW(FK_TEST, 24);
    134     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801B1A8; /* 0x3801B19A: jne 0x3801b1a8 */
    135 L_3801B19C:
    136     edx = eax; /* 0x3801B19C: mov edx, eax */
    137     eax = MEM32(edx + 0x8); /* 0x3801B19E: mov eax, dword ptr [edx + 8] */
    138     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x3801B1A1: mov bl, byte ptr [eax + 0x19] */
    139     /* test LO8(ebx), LO8(ebx) */ /* 0x3801B1A4: test bl, bl */
    140     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    141     _cf = 0;
    142     _flag_k = FK_NARROW(FK_TEST, 24);
    143     RECOMP_BACKEDGE();
    144     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B19C; /* 0x3801B1A6: je 0x3801b19c */
    145 L_3801B1A8:
    146     MEM32(ecx) = edx; /* 0x3801B1A8: mov dword ptr [ecx], edx */
    147     ebx = POP32_VAL(esp); /* 0x3801B1AA: pop ebx */
    148     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B1AB: ret  */
    149 L_3801B1AC:
    150     eax = MEM32(eax + 0x4); /* 0x3801B1AC: mov eax, dword ptr [eax + 4] */
    151     edx = MEM32(ecx); /* 0x3801B1AF: mov edx, dword ptr [ecx] */
    152     /* cmp edx, MEM32(eax) */ /* 0x3801B1B1: cmp edx, dword ptr [eax] */
    153     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
    154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    155     _flag_k = FK_CMP;
    156     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B1C0; /* 0x3801B1B3: jne 0x3801b1c0 */
    157 L_3801B1B5:
    158     MEM32(ecx) = eax; /* 0x3801B1B5: mov dword ptr [ecx], eax */
    159     eax = MEM32(eax + 0x4); /* 0x3801B1B7: mov eax, dword ptr [eax + 4] */
    160     edx = MEM32(ecx); /* 0x3801B1BA: mov edx, dword ptr [ecx] */
    161     /* cmp edx, MEM32(eax) */ /* 0x3801B1BC: cmp edx, dword ptr [eax] */
    162     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
    163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    164     _flag_k = FK_CMP;
    165     RECOMP_BACKEDGE();
    166     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B1B5; /* 0x3801B1BE: je 0x3801b1b5 */
    167 L_3801B1C0:
    168     MEM32(ecx) = eax; /* 0x3801B1C0: mov dword ptr [ecx], eax */
    169     ebx = POP32_VAL(esp); /* 0x3801B1C2: pop ebx */
    170     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B1C3: ret  */
    171     RECOMP_REGS_OUT();
    172 }
    173 
    174 void sub_3801B1D0(void) {
    175     int _fpu_cmp = 0;
    176     uint32_t _cf = 0;
    177     int _df = 1;
    178     uint32_t _flag_k = FK_NONE;
    179     uint32_t _flag_a = 0, _flag_b = 0;
    180     uint32_t _itail_tgt = 0;
    181     RECOMP_REGS_LOCALS
    182     RECOMP_ENTER(0x3801B1D0u);
    183 
    184 L_3801B1D0:
    185     PUSH32(esp, ebp); /* 0x3801B1D0: push ebp */
    186     ebp = esp; /* 0x3801B1D1: mov ebp, esp */
    187     PUSH32(esp, ecx); /* 0x3801B1D3: push ecx */
    188     PUSH32(esp, ebx); /* 0x3801B1D4: push ebx */
    189     PUSH32(esp, esi); /* 0x3801B1D5: push esi */
    190     esi = ecx; /* 0x3801B1D6: mov esi, ecx */
    191     ecx = MEM32(ebp + 0x8); /* 0x3801B1D8: mov ecx, dword ptr [ebp + 8] */
    192     ebx = ecx + ecx + 0x2; /* 0x3801B1DB: lea ebx, [ecx + ecx + 2] */
    193     /* cmp ebx, 8 */ /* 0x3801B1DF: cmp ebx, 8 */
    194     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
    195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    196     _flag_k = FK_CMP;
    197     PUSH32(esp, edi); /* 0x3801B1E2: push edi */
    198     MEM32(ebp + 0x8) = ebx; /* 0x3801B1E3: mov dword ptr [ebp + 8], ebx */
    199     if (CMP_AE(_flag_a, _flag_b)) goto L_3801B1F0; /* 0x3801B1E6: jae 0x3801b1f0 */
    200 L_3801B1E8:
    201     ebx = 8; /* 0x3801B1E8: mov ebx, 8 */
    202     MEM32(ebp + 0x8) = ebx; /* 0x3801B1ED: mov dword ptr [ebp + 8], ebx */
    203 L_3801B1F0:
    204     eax = MEM32(esi + 0x28); /* 0x3801B1F0: mov eax, dword ptr [esi + 0x28] */
    205     /* cmp ebx, eax */ /* 0x3801B1F3: cmp ebx, eax */
    206     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
    207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    208     _flag_k = FK_CMP;
    209     if (CMP_A(_flag_a, _flag_b)) goto L_3801B267; /* 0x3801B1F5: ja 0x3801b267 */
    210 L_3801B1F7:
    211     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3801B1F7: shr eax, 2 */
    212     if (2u) { _flag_a = recomp_flags_pack((eax >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    213     eax = eax >> 2u; /* 0x3801B1F7: shr eax, 2 */
    214     /* cmp eax, ebx */ /* 0x3801B1FA: cmp eax, ebx */
    215     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    217     _flag_k = FK_CMP;
    218     if (CMP_AE(_flag_a, _flag_b)) goto L_3801B267; /* 0x3801B1FC: jae 0x3801b267 */
    219 L_3801B1FE:
    220     edx = MEM32(esi + 0x24); /* 0x3801B1FE: mov edx, dword ptr [esi + 0x24] */
    221     edi = edx + eax * 4; /* 0x3801B201: lea edi, [edx + eax*4] */
    222     edx = MEM32(esi + 0x10); /* 0x3801B204: mov edx, dword ptr [esi + 0x10] */
    223     eax = edx + (-0x4); /* 0x3801B207: lea eax, [edx - 4] */
    224     /* cmp edi, eax */ /* 0x3801B20A: cmp edi, eax */
    225     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    226     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    227     _flag_k = FK_CMP;
    228     if (CMP_AE(_flag_a, _flag_b)) goto L_3801B23B; /* 0x3801B20C: jae 0x3801b23b */
    229 L_3801B20E:
    230     esi = MEM32(esi + 0x20); /* 0x3801B20E: mov esi, dword ptr [esi + 0x20] */
    231     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
    232     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    233     esi = esi + 8; /* 0x3801B211: add esi, 8 */
    234     _flag_k = FK_ADD;
    235     eax = edx + (-0x4); /* 0x3801B214: lea eax, [edx - 4] */
    236     /* cmp eax, esi */ /* 0x3801B217: cmp eax, esi */
    237     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    238     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    239     _flag_k = FK_CMP;
    240     ecx = edi; /* 0x3801B219: mov ecx, edi */
    241     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B2C0; /* 0x3801B21B: je 0x3801b2c0 */
    242 L_3801B221:
    243     edx = MEM32(eax); /* 0x3801B221: mov edx, dword ptr [eax] */
    244     MEM32(ecx) = edx; /* 0x3801B223: mov dword ptr [ecx], edx */
    245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    246     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    247     eax = eax + 4; /* 0x3801B225: add eax, 4 */
    248     _flag_k = FK_ADD;
    249     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    250     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    251     ecx = ecx + 4; /* 0x3801B228: add ecx, 4 */
    252     _flag_k = FK_ADD;
    253     /* cmp eax, esi */ /* 0x3801B22B: cmp eax, esi */
    254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    256     _flag_k = FK_CMP;
    257     RECOMP_BACKEDGE();
    258     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B221; /* 0x3801B22D: jne 0x3801b221 */
    259 L_3801B22F:
    260     eax = edi + 0x4; /* 0x3801B22F: lea eax, [edi + 4] */
    261     edi = POP32_VAL(esp); /* 0x3801B232: pop edi */
    262     esi = POP32_VAL(esp); /* 0x3801B233: pop esi */
    263     ebx = POP32_VAL(esp); /* 0x3801B234: pop ebx */
    264     esp = ebp; /* 0x3801B235: mov esp, ebp */
    265     ebp = POP32_VAL(esp); /* 0x3801B237: pop ebp */
    266     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801B238: ret 4 */
    267 L_3801B23B:
    268     eax = MEM32(esi + 0x20); /* 0x3801B23B: mov eax, dword ptr [esi + 0x20] */
    269     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
    270     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    271     eax = eax + 8; /* 0x3801B23E: add eax, 8 */
    272     _flag_k = FK_ADD;
    273     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu);
    274     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    275     edx = edx + 0xFFFFFFFCu; /* 0x3801B241: add edx, -4 */
    276     _flag_k = FK_ADD;
    277     /* cmp edx, eax */ /* 0x3801B244: cmp edx, eax */
    278     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    280     _flag_k = FK_CMP;
    281     ecx = edi + ecx * 4 + 0x8; /* 0x3801B246: lea ecx, [edi + ecx*4 + 8] */
    282     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B2C0; /* 0x3801B24A: je 0x3801b2c0 */
    283 L_3801B24C:
    284     esi = MEM32(eax + (-0x4)); /* 0x3801B24C: mov esi, dword ptr [eax - 4] */
    285     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    287     eax = eax - 4; /* 0x3801B24F: sub eax, 4 */
    288     _flag_k = FK_CMP;
    289     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    291     ecx = ecx - 4; /* 0x3801B252: sub ecx, 4 */
    292     _flag_k = FK_CMP;
    293     /* cmp eax, edx */ /* 0x3801B255: cmp eax, edx */
    294     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    296     _flag_k = FK_CMP;
    297     MEM32(ecx) = esi; /* 0x3801B257: mov dword ptr [ecx], esi */
    298     RECOMP_BACKEDGE();
    299     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B24C; /* 0x3801B259: jne 0x3801b24c */
    300 L_3801B25B:
    301     eax = edi + 0x4; /* 0x3801B25B: lea eax, [edi + 4] */
    302     edi = POP32_VAL(esp); /* 0x3801B25E: pop edi */
    303     esi = POP32_VAL(esp); /* 0x3801B25F: pop esi */
    304     ebx = POP32_VAL(esp); /* 0x3801B260: pop ebx */
    305     esp = ebp; /* 0x3801B261: mov esp, ebp */
    306     ebp = POP32_VAL(esp); /* 0x3801B263: pop ebp */
    307     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801B264: ret 4 */
    308 L_3801B267:
    309     eax = ebx * 4; /* 0x3801B267: lea eax, [ebx*4] */
    310     /* test eax, eax */ /* 0x3801B26E: test eax, eax */
    311     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    312     _cf = 0;
    313     _flag_k = FK_TEST;
    314     if (TEST_NS(_flag_a, _flag_b)) goto L_3801B274; /* 0x3801B270: jge 0x3801b274 */
    315 L_3801B272:
    316     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    317     eax = 0; /* 0x3801B272: xor eax, eax */
    318     _cf = 0;
    319     _flag_k = FK_TEST;
    320 L_3801B274:
    321     PUSH32(esp, eax); /* 0x3801B274: push eax */
    322     RECOMP_ICALL(0x3804B676u); /* 0x3801B275: call 0x3804b676 */ /* not lifted */
    323     RECOMP_FLAGS_IN();
    324     ecx = ebx; /* 0x3801B27A: mov ecx, ebx */
    325     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3801B27C: shr ecx, 2 */
    326     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    327     ecx = ecx >> 2u; /* 0x3801B27C: shr ecx, 2 */
    328     edi = eax + ecx * 4; /* 0x3801B27F: lea edi, [eax + ecx*4] */
    329     ecx = MEM32(esi + 0x20); /* 0x3801B282: mov ecx, dword ptr [esi + 0x20] */
    330     MEM32(ebp + (-0x4)) = eax; /* 0x3801B285: mov dword ptr [ebp - 4], eax */
    331     eax = MEM32(esi + 0x10); /* 0x3801B288: mov eax, dword ptr [esi + 0x10] */
    332     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    333     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    334     ecx = ecx + 8; /* 0x3801B28B: add ecx, 8 */
    335     _flag_k = FK_ADD;
    336     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    338     eax = eax - 4; /* 0x3801B28E: sub eax, 4 */
    339     _flag_k = FK_CMP;
    340     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    341     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    342     esp = esp + 4; /* 0x3801B291: add esp, 4 */
    343     _flag_k = FK_ADD;
    344     /* cmp eax, ecx */ /* 0x3801B294: cmp eax, ecx */
    345     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    346     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    347     _flag_k = FK_CMP;
    348     edx = edi; /* 0x3801B296: mov edx, edi */
    349     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B2AB; /* 0x3801B298: je 0x3801b2ab */
    350 L_3801B29A:
    351     ebx = MEM32(eax); /* 0x3801B29A: mov ebx, dword ptr [eax] */
    352     MEM32(edx) = ebx; /* 0x3801B29C: mov dword ptr [edx], ebx */
    353     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    354     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    355     eax = eax + 4; /* 0x3801B29E: add eax, 4 */
    356     _flag_k = FK_ADD;
    357     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
    358     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    359     edx = edx + 4; /* 0x3801B2A1: add edx, 4 */
    360     _flag_k = FK_ADD;
    361     /* cmp eax, ecx */ /* 0x3801B2A4: cmp eax, ecx */
    362     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    364     _flag_k = FK_CMP;
    365     RECOMP_BACKEDGE();
    366     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B29A; /* 0x3801B2A6: jne 0x3801b29a */
    367 L_3801B2A8:
    368     ebx = MEM32(ebp + 0x8); /* 0x3801B2A8: mov ebx, dword ptr [ebp + 8] */
    369 L_3801B2AB:
    370     edx = MEM32(esi + 0x24); /* 0x3801B2AB: mov edx, dword ptr [esi + 0x24] */
    371     PUSH32(esp, edx); /* 0x3801B2AE: push edx */
    372     RECOMP_ICALL(0x3804B4F6u); /* 0x3801B2AF: call 0x3804b4f6 */ /* not lifted */
    373     RECOMP_FLAGS_IN();
    374     eax = MEM32(ebp + (-0x4)); /* 0x3801B2B4: mov eax, dword ptr [ebp - 4] */
    375     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    377     esp = esp + 4; /* 0x3801B2B7: add esp, 4 */
    378     _flag_k = FK_ADD;
    379     MEM32(esi + 0x24) = eax; /* 0x3801B2BA: mov dword ptr [esi + 0x24], eax */
    380     MEM32(esi + 0x28) = ebx; /* 0x3801B2BD: mov dword ptr [esi + 0x28], ebx */
    381 L_3801B2C0:
    382     eax = edi + 0x4; /* 0x3801B2C0: lea eax, [edi + 4] */
    383     edi = POP32_VAL(esp); /* 0x3801B2C3: pop edi */
    384     esi = POP32_VAL(esp); /* 0x3801B2C4: pop esi */
    385     ebx = POP32_VAL(esp); /* 0x3801B2C5: pop ebx */
    386     esp = ebp; /* 0x3801B2C6: mov esp, ebp */
    387     ebp = POP32_VAL(esp); /* 0x3801B2C8: pop ebp */
    388     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801B2C9: ret 4 */
    389     RECOMP_REGS_OUT();
    390 }
    391 
    392 void sub_3801B2D0(void) {
    393     int _fpu_cmp = 0;
    394     uint32_t _cf = 0;
    395     int _df = 1;
    396     uint32_t _flag_k = FK_NONE;
    397     uint32_t _flag_a = 0, _flag_b = 0;
    398     uint32_t _itail_tgt = 0;
    399     RECOMP_REGS_LOCALS
    400     RECOMP_ENTER(0x3801B2D0u);
    401 
    402 L_3801B2D0:
    403     PUSH32(esp, ebp); /* 0x3801B2D0: push ebp */
    404     ebp = esp; /* 0x3801B2D1: mov ebp, esp */
    405     eax = ecx; /* 0x3801B2D3: mov eax, ecx */
    406     ecx = MEM32(ebp + 0xC); /* 0x3801B2D5: mov ecx, dword ptr [ebp + 0xc] */
    407     edx = MEM32(ecx); /* 0x3801B2D8: mov edx, dword ptr [ecx] */
    408     MEM32(eax) = edx; /* 0x3801B2DA: mov dword ptr [eax], edx */
    409     edx = MEM32(ecx); /* 0x3801B2DC: mov edx, dword ptr [ecx] */
    410     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1000u);
    411     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    412     edx = edx + 0x1000u; /* 0x3801B2DE: add edx, 0x1000 */
    413     _flag_k = FK_ADD;
    414     MEM32(eax + 0x4) = edx; /* 0x3801B2E4: mov dword ptr [eax + 4], edx */
    415     edx = MEM32(ebp + 0x8); /* 0x3801B2E7: mov edx, dword ptr [ebp + 8] */
    416     MEM32(eax + 0x8) = edx; /* 0x3801B2EA: mov dword ptr [eax + 8], edx */
    417     MEM32(eax + 0xC) = ecx; /* 0x3801B2ED: mov dword ptr [eax + 0xc], ecx */
    418     ebp = POP32_VAL(esp); /* 0x3801B2F0: pop ebp */
    419     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801B2F1: ret 8 */
    420     RECOMP_REGS_OUT();
    421 }
    422 
    423 void sub_3801B300(void) {
    424     int _fpu_cmp = 0;
    425     uint32_t _cf = 0;
    426     int _df = 1;
    427     uint32_t _flag_k = FK_NONE;
    428     uint32_t _flag_a = 0, _flag_b = 0;
    429     uint32_t _itail_tgt = 0;
    430     RECOMP_REGS_LOCALS
    431     RECOMP_ENTER(0x3801B300u);
    432 
    433 L_3801B300:
    434     PUSH32(esp, ebp); /* 0x3801B300: push ebp */
    435     ebp = esp; /* 0x3801B301: mov ebp, esp */
    436     PUSH32(esp, ebx); /* 0x3801B303: push ebx */
    437     ebx = MEM32(ebp + 0xC); /* 0x3801B304: mov ebx, dword ptr [ebp + 0xc] */
    438     PUSH32(esp, esi); /* 0x3801B307: push esi */
    439     esi = MEM32(ebp + 0x8); /* 0x3801B308: mov esi, dword ptr [ebp + 8] */
    440     /* cmp esi, ebx */ /* 0x3801B30B: cmp esi, ebx */
    441     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    442     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    443     _flag_k = FK_CMP;
    444     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B330; /* 0x3801B30D: je 0x3801b330 */
    445 L_3801B30F:
    446     PUSH32(esp, edi); /* 0x3801B30F: push edi */
    447     edi = MEM32(ebp + 0x10); /* 0x3801B310: mov edi, dword ptr [ebp + 0x10] */
    448 L_3801B313:
    449     PUSH32(esp, esi); /* 0x3801B313: push esi */
    450     PUSH32(esp, edi); /* 0x3801B314: push edi */
    451     RECOMP_ICALL(0x3801B4C0u); /* 0x3801B315: call 0x3801b4c0 */ /* not lifted */
    452     RECOMP_FLAGS_IN();
    453     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
    454     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    455     esi = esi + 0x14u; /* 0x3801B31A: add esi, 0x14 */
    456     _flag_k = FK_ADD;
    457     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    458     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    459     esp = esp + 8; /* 0x3801B31D: add esp, 8 */
    460     _flag_k = FK_ADD;
    461     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
    462     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    463     edi = edi + 0x14u; /* 0x3801B320: add edi, 0x14 */
    464     _flag_k = FK_ADD;
    465     /* cmp esi, ebx */ /* 0x3801B323: cmp esi, ebx */
    466     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    468     _flag_k = FK_CMP;
    469     RECOMP_BACKEDGE();
    470     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B313; /* 0x3801B325: jne 0x3801b313 */
    471 L_3801B327:
    472     eax = edi; /* 0x3801B327: mov eax, edi */
    473     edi = POP32_VAL(esp); /* 0x3801B329: pop edi */
    474     esi = POP32_VAL(esp); /* 0x3801B32A: pop esi */
    475     ebx = POP32_VAL(esp); /* 0x3801B32B: pop ebx */
    476     ebp = POP32_VAL(esp); /* 0x3801B32C: pop ebp */
    477     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801B32D: ret 0xc */
    478 L_3801B330:
    479     eax = MEM32(ebp + 0x10); /* 0x3801B330: mov eax, dword ptr [ebp + 0x10] */
    480     esi = POP32_VAL(esp); /* 0x3801B333: pop esi */
    481     ebx = POP32_VAL(esp); /* 0x3801B334: pop ebx */
    482     ebp = POP32_VAL(esp); /* 0x3801B335: pop ebp */
    483     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801B336: ret 0xc */
    484     RECOMP_REGS_OUT();
    485 }
    486 
    487 void sub_3801B340(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(0x3801B340u);
    496 
    497 L_3801B340:
    498     PUSH32(esp, ebp); /* 0x3801B340: push ebp */
    499     ebp = esp; /* 0x3801B341: mov ebp, esp */
    500     PUSH32(esp, edi); /* 0x3801B343: push edi */
    501     edi = MEM32(ebp + 0xC); /* 0x3801B344: mov edi, dword ptr [ebp + 0xc] */
    502     /* test edi, edi */ /* 0x3801B347: test edi, edi */
    503     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    504     _cf = 0;
    505     _flag_k = FK_TEST;
    506     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B365; /* 0x3801B349: jbe 0x3801b365 */
    507 L_3801B34B:
    508     PUSH32(esp, ebx); /* 0x3801B34B: push ebx */
    509     ebx = MEM32(ebp + 0x10); /* 0x3801B34C: mov ebx, dword ptr [ebp + 0x10] */
    510     PUSH32(esp, esi); /* 0x3801B34F: push esi */
    511     esi = MEM32(ebp + 0x8); /* 0x3801B350: mov esi, dword ptr [ebp + 8] */
    512 L_3801B353:
    513     PUSH32(esp, ebx); /* 0x3801B353: push ebx */
    514     PUSH32(esp, esi); /* 0x3801B354: push esi */
    515     RECOMP_ICALL(0x3801B4C0u); /* 0x3801B355: call 0x3801b4c0 */ /* not lifted */
    516     RECOMP_FLAGS_IN();
    517     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    518     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    519     esp = esp + 8; /* 0x3801B35A: add esp, 8 */
    520     _flag_k = FK_ADD;
    521     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
    522     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    523     esi = esi + 0x14u; /* 0x3801B35D: add esi, 0x14 */
    524     _flag_k = FK_ADD;
    525     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
    526     edi = edi - 1; /* 0x3801B360: dec edi */
    527     _flag_k = FK_DEC;
    528     RECOMP_BACKEDGE();
    529     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3801B353; /* 0x3801B361: jne 0x3801b353 */
    530 L_3801B363:
    531     esi = POP32_VAL(esp); /* 0x3801B363: pop esi */
    532     ebx = POP32_VAL(esp); /* 0x3801B364: pop ebx */
    533 L_3801B365:
    534     edi = POP32_VAL(esp); /* 0x3801B365: pop edi */
    535     ebp = POP32_VAL(esp); /* 0x3801B366: pop ebp */
    536     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801B367: ret 0xc */
    537     RECOMP_REGS_OUT();
    538 }
    539 
    540 void sub_3801B370(void) {
    541     int _fpu_cmp = 0;
    542     uint32_t _cf = 0;
    543     int _df = 1;
    544     uint32_t _flag_k = FK_NONE;
    545     uint32_t _flag_a = 0, _flag_b = 0;
    546     uint32_t _itail_tgt = 0;
    547     RECOMP_REGS_LOCALS
    548     RECOMP_ENTER(0x3801B370u);
    549 
    550 L_3801B370:
    551     PUSH32(esp, ebp); /* 0x3801B370: push ebp */
    552     ebp = esp; /* 0x3801B371: mov ebp, esp */
    553     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801B373: push -1 */
    554     PUSH32(esp, 0x3804C1A8u); /* 0x3801B375: push 0x3804c1a8 */
    555     eax = MEM32(FS_BASE + (0)); /* 0x3801B37A: mov eax, dword ptr fs:[0] */
    556     PUSH32(esp, eax); /* 0x3801B380: push eax */
    557     MEM32(FS_BASE + (0)) = esp; /* 0x3801B381: mov dword ptr fs:[0], esp */
    558     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    560     esp = esp - 8; /* 0x3801B388: sub esp, 8 */
    561     _flag_k = FK_CMP;
    562     PUSH32(esp, esi); /* 0x3801B38B: push esi */
    563     esi = MEM32(ebp + 0x8); /* 0x3801B38C: mov esi, dword ptr [ebp + 8] */
    564     PUSH32(esp, edi); /* 0x3801B38F: push edi */
    565     PUSH32(esp, esi); /* 0x3801B390: push esi */
    566     ecx = ebp + (-0x14); /* 0x3801B391: lea ecx, [ebp - 0x14] */
    567     RECOMP_ICALL(0x3801B5B0u); /* 0x3801B394: call 0x3801b5b0 */ /* not lifted */
    568     RECOMP_FLAGS_IN();
    569     edi = MEM32(ebp + 0xC); /* 0x3801B399: mov edi, dword ptr [ebp + 0xc] */
    570     PUSH32(esp, edi); /* 0x3801B39C: push edi */
    571     ecx = esi; /* 0x3801B39D: mov ecx, esi */
    572     MEM32(ebp + (-0x4)) = 0; /* 0x3801B39F: mov dword ptr [ebp - 4], 0 */
    573     RECOMP_ICALL(0x3801B5D0u); /* 0x3801B3A6: call 0x3801b5d0 */ /* not lifted */
    574     RECOMP_FLAGS_IN();
    575     eax = ebp + (-0x14); /* 0x3801B3AB: lea eax, [ebp - 0x14] */
    576     PUSH32(esp, eax); /* 0x3801B3AE: push eax */
    577     ecx = edi; /* 0x3801B3AF: mov ecx, edi */
    578     RECOMP_ICALL(0x3801B5D0u); /* 0x3801B3B1: call 0x3801b5d0 */ /* not lifted */
    579     RECOMP_FLAGS_IN();
    580     ecx = ebp + (-0x14); /* 0x3801B3B6: lea ecx, [ebp - 0x14] */
    581     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801B3B9: mov dword ptr [ebp - 4], 0xffffffff */
    582     RECOMP_ICALL(0x3801B610u); /* 0x3801B3C0: call 0x3801b610 */ /* not lifted */
    583     RECOMP_FLAGS_IN();
    584     ecx = MEM32(ebp + (-0xC)); /* 0x3801B3C5: mov ecx, dword ptr [ebp - 0xc] */
    585     edi = POP32_VAL(esp); /* 0x3801B3C8: pop edi */
    586     esi = POP32_VAL(esp); /* 0x3801B3C9: pop esi */
    587     MEM32(FS_BASE + (0)) = ecx; /* 0x3801B3CA: mov dword ptr fs:[0], ecx */
    588     esp = ebp; /* 0x3801B3D1: mov esp, ebp */
    589     ebp = POP32_VAL(esp); /* 0x3801B3D3: pop ebp */
    590     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B3D4: ret  */
    591     RECOMP_REGS_OUT();
    592 }
    593 
    594 void sub_3801B3E0(void) {
    595     int _fpu_cmp = 0;
    596     uint32_t _cf = 0;
    597     int _df = 1;
    598     uint32_t _flag_k = FK_NONE;
    599     uint32_t _flag_a = 0, _flag_b = 0;
    600     uint32_t _itail_tgt = 0;
    601     RECOMP_REGS_LOCALS
    602     RECOMP_ENTER(0x3801B3E0u);
    603 
    604 L_3801B3E0:
    605     PUSH32(esp, ebp); /* 0x3801B3E0: push ebp */
    606     ebp = esp; /* 0x3801B3E1: mov ebp, esp */
    607     eax = MEM32(ebp + 0x8); /* 0x3801B3E3: mov eax, dword ptr [ebp + 8] */
    608     PUSH32(esp, esi); /* 0x3801B3E6: push esi */
    609     esi = MEM32(ebp + 0xC); /* 0x3801B3E7: mov esi, dword ptr [ebp + 0xc] */
    610     /* cmp eax, esi */ /* 0x3801B3EA: cmp eax, esi */
    611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    613     _flag_k = FK_CMP;
    614     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B432; /* 0x3801B3EC: je 0x3801b432 */
    615 L_3801B3EE:
    616     edx = MEM32(ebp + 0x10); /* 0x3801B3EE: mov edx, dword ptr [ebp + 0x10] */
    617     PUSH32(esp, ebx); /* 0x3801B3F1: push ebx */
    618 L_3801B3F2:
    619     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(1);
    620     MEM32(edx) = MEM32(edx) + 1; /* 0x3801B3F2: inc dword ptr [edx] */
    621     _flag_k = FK_INC;
    622     ecx = MEM32(eax + 0x8); /* 0x3801B3F4: mov ecx, dword ptr [eax + 8] */
    623     SET_LO8(ebx, MEM8(ecx + 0x19)); /* 0x3801B3F7: mov bl, byte ptr [ecx + 0x19] */
    624     /* test LO8(ebx), LO8(ebx) */ /* 0x3801B3FA: test bl, bl */
    625     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    626     _cf = 0;
    627     _flag_k = FK_NARROW(FK_TEST, 24);
    628     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801B414; /* 0x3801B3FC: jne 0x3801b414 */
    629 L_3801B3FE:
    630     eax = MEM32(ecx); /* 0x3801B3FE: mov eax, dword ptr [ecx] */
    631     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x3801B400: mov bl, byte ptr [eax + 0x19] */
    632     /* test LO8(ebx), LO8(ebx) */ /* 0x3801B403: test bl, bl */
    633     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    634     _cf = 0;
    635     _flag_k = FK_NARROW(FK_TEST, 24);
    636     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801B42B; /* 0x3801B405: jne 0x3801b42b */
    637 L_3801B407:
    638     ecx = eax; /* 0x3801B407: mov ecx, eax */
    639     eax = MEM32(ecx); /* 0x3801B409: mov eax, dword ptr [ecx] */
    640     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x3801B40B: mov bl, byte ptr [eax + 0x19] */
    641     /* test LO8(ebx), LO8(ebx) */ /* 0x3801B40E: test bl, bl */
    642     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    643     _cf = 0;
    644     _flag_k = FK_NARROW(FK_TEST, 24);
    645     RECOMP_BACKEDGE();
    646     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B407; /* 0x3801B410: je 0x3801b407 */
    647 L_3801B412:
    648     goto L_3801B42B; /* 0x3801B412: jmp 0x3801b42b */
    649 L_3801B414:
    650     ecx = MEM32(eax + 0x4); /* 0x3801B414: mov ecx, dword ptr [eax + 4] */
    651     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801B417: cmp eax, dword ptr [ecx + 8] */
    652     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
    653     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    654     _flag_k = FK_CMP;
    655     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B426; /* 0x3801B41A: jne 0x3801b426 */
    656 L_3801B41C:
    657     eax = ecx; /* 0x3801B41C: mov eax, ecx */
    658     ecx = MEM32(ecx + 0x4); /* 0x3801B41E: mov ecx, dword ptr [ecx + 4] */
    659     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3801B421: cmp eax, dword ptr [ecx + 8] */
    660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
    661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    662     _flag_k = FK_CMP;
    663     RECOMP_BACKEDGE();
    664     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B41C; /* 0x3801B424: je 0x3801b41c */
    665 L_3801B426:
    666     /* cmp MEM32(eax + 0x8), ecx */ /* 0x3801B426: cmp dword ptr [eax + 8], ecx */
    667     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx);
    668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    669     _flag_k = FK_CMP;
    670     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B42D; /* 0x3801B429: je 0x3801b42d */
    671 L_3801B42B:
    672     eax = ecx; /* 0x3801B42B: mov eax, ecx */
    673 L_3801B42D:
    674     /* cmp eax, esi */ /* 0x3801B42D: cmp eax, esi */
    675     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    677     _flag_k = FK_CMP;
    678     RECOMP_BACKEDGE();
    679     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B3F2; /* 0x3801B42F: jne 0x3801b3f2 */
    680 L_3801B431:
    681     ebx = POP32_VAL(esp); /* 0x3801B431: pop ebx */
    682 L_3801B432:
    683     esi = POP32_VAL(esp); /* 0x3801B432: pop esi */
    684     ebp = POP32_VAL(esp); /* 0x3801B433: pop ebp */
    685     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B434: ret  */
    686     RECOMP_REGS_OUT();
    687 }
    688 
    689 void sub_3801B440(void) {
    690     int _fpu_cmp = 0;
    691     uint32_t _cf = 0;
    692     int _df = 1;
    693     uint32_t _flag_k = FK_NONE;
    694     uint32_t _flag_a = 0, _flag_b = 0;
    695     uint32_t _itail_tgt = 0;
    696     RECOMP_REGS_LOCALS
    697     RECOMP_ENTER(0x3801B440u);
    698 
    699 L_3801B440:
    700     PUSH32(esp, ebp); /* 0x3801B440: push ebp */
    701     ebp = esp; /* 0x3801B441: mov ebp, esp */
    702     eax = MEM32(ebp + 0x8); /* 0x3801B443: mov eax, dword ptr [ebp + 8] */
    703     /* test eax, eax */ /* 0x3801B446: test eax, eax */
    704     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    705     _cf = 0;
    706     _flag_k = FK_TEST;
    707     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B461; /* 0x3801B448: je 0x3801b461 */
    708 L_3801B44A:
    709     ecx = MEM32(ebp + 0xC); /* 0x3801B44A: mov ecx, dword ptr [ebp + 0xc] */
    710     /* cmp eax, ecx */ /* 0x3801B44D: cmp eax, ecx */
    711     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    712     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    713     _flag_k = FK_CMP;
    714     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B45B; /* 0x3801B44F: je 0x3801b45b */
    715 L_3801B451:
    716     edx = MEM32(ecx); /* 0x3801B451: mov edx, dword ptr [ecx] */
    717     MEM32(eax) = edx; /* 0x3801B453: mov dword ptr [eax], edx */
    718     edx = MEM32(ecx + 0x4); /* 0x3801B455: mov edx, dword ptr [ecx + 4] */
    719     MEM32(eax + 0x4) = edx; /* 0x3801B458: mov dword ptr [eax + 4], edx */
    720 L_3801B45B:
    721     ecx = MEM32(ecx + 0x8); /* 0x3801B45B: mov ecx, dword ptr [ecx + 8] */
    722     MEM32(eax + 0x8) = ecx; /* 0x3801B45E: mov dword ptr [eax + 8], ecx */
    723 L_3801B461:
    724     ebp = POP32_VAL(esp); /* 0x3801B461: pop ebp */
    725     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B462: ret  */
    726     RECOMP_REGS_OUT();
    727 }
    728 
    729 void sub_3801B470(void) {
    730     int _fpu_cmp = 0;
    731     uint32_t _cf = 0;
    732     int _df = 1;
    733     uint32_t _flag_k = FK_NONE;
    734     uint32_t _flag_a = 0, _flag_b = 0;
    735     uint32_t _itail_tgt = 0;
    736     RECOMP_REGS_LOCALS
    737     RECOMP_ENTER(0x3801B470u);
    738 
    739 L_3801B470:
    740     PUSH32(esp, ebp); /* 0x3801B470: push ebp */
    741     ebp = esp; /* 0x3801B471: mov ebp, esp */
    742     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801B473: push -1 */
    743     PUSH32(esp, 0x3804C1D1u); /* 0x3801B475: push 0x3804c1d1 */
    744     eax = MEM32(FS_BASE + (0)); /* 0x3801B47A: mov eax, dword ptr fs:[0] */
    745     PUSH32(esp, eax); /* 0x3801B480: push eax */
    746     MEM32(FS_BASE + (0)) = esp; /* 0x3801B481: mov dword ptr fs:[0], esp */
    747     PUSH32(esp, ecx); /* 0x3801B488: push ecx */
    748     ecx = MEM32(ebp + 0x8); /* 0x3801B489: mov ecx, dword ptr [ebp + 8] */
    749     MEM32(ebp + (-0x10)) = ecx; /* 0x3801B48C: mov dword ptr [ebp - 0x10], ecx */
    750     /* test ecx, ecx */ /* 0x3801B48F: test ecx, ecx */
    751     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    752     _cf = 0;
    753     _flag_k = FK_TEST;
    754     MEM32(ebp + (-0x4)) = 0; /* 0x3801B491: mov dword ptr [ebp - 4], 0 */
    755     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B4A3; /* 0x3801B498: je 0x3801b4a3 */
    756 L_3801B49A:
    757     eax = MEM32(ebp + 0xC); /* 0x3801B49A: mov eax, dword ptr [ebp + 0xc] */
    758     PUSH32(esp, eax); /* 0x3801B49D: push eax */
    759     RECOMP_ICALL(0x3801B5B0u); /* 0x3801B49E: call 0x3801b5b0 */ /* not lifted */
    760     RECOMP_FLAGS_IN();
    761 L_3801B4A3:
    762     ecx = MEM32(ebp + (-0xC)); /* 0x3801B4A3: mov ecx, dword ptr [ebp - 0xc] */
    763     MEM32(FS_BASE + (0)) = ecx; /* 0x3801B4A6: mov dword ptr fs:[0], ecx */
    764     esp = ebp; /* 0x3801B4AD: mov esp, ebp */
    765     ebp = POP32_VAL(esp); /* 0x3801B4AF: pop ebp */
    766     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B4B0: ret  */
    767     RECOMP_REGS_OUT();
    768 }
    769 
    770 void sub_3801B4C0(void) {
    771     int _fpu_cmp = 0;
    772     uint32_t _cf = 0;
    773     int _df = 1;
    774     uint32_t _flag_k = FK_NONE;
    775     uint32_t _flag_a = 0, _flag_b = 0;
    776     uint32_t _itail_tgt = 0;
    777     RECOMP_REGS_LOCALS
    778     RECOMP_ENTER(0x3801B4C0u);
    779 
    780 L_3801B4C0:
    781     PUSH32(esp, ebp); /* 0x3801B4C0: push ebp */
    782     ebp = esp; /* 0x3801B4C1: mov ebp, esp */
    783     eax = MEM32(ebp + 0x8); /* 0x3801B4C3: mov eax, dword ptr [ebp + 8] */
    784     /* test eax, eax */ /* 0x3801B4C6: test eax, eax */
    785     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    786     _cf = 0;
    787     _flag_k = FK_TEST;
    788     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B4F1; /* 0x3801B4C8: je 0x3801b4f1 */
    789 L_3801B4CA:
    790     ecx = MEM32(ebp + 0xC); /* 0x3801B4CA: mov ecx, dword ptr [ebp + 0xc] */
    791     /* cmp eax, ecx */ /* 0x3801B4CD: cmp eax, ecx */
    792     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    794     _flag_k = FK_CMP;
    795     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B4DB; /* 0x3801B4CF: je 0x3801b4db */
    796 L_3801B4D1:
    797     edx = MEM32(ecx); /* 0x3801B4D1: mov edx, dword ptr [ecx] */
    798     MEM32(eax) = edx; /* 0x3801B4D3: mov dword ptr [eax], edx */
    799     edx = MEM32(ecx + 0x4); /* 0x3801B4D5: mov edx, dword ptr [ecx + 4] */
    800     MEM32(eax + 0x4) = edx; /* 0x3801B4D8: mov dword ptr [eax + 4], edx */
    801 L_3801B4DB:
    802     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    803     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    804     ecx = ecx + 8; /* 0x3801B4DB: add ecx, 8 */
    805     _flag_k = FK_ADD;
    806     edx = MEM32(ecx); /* 0x3801B4DE: mov edx, dword ptr [ecx] */
    807     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
    808     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    809     eax = eax + 8; /* 0x3801B4E0: add eax, 8 */
    810     _flag_k = FK_ADD;
    811     MEM32(eax) = edx; /* 0x3801B4E3: mov dword ptr [eax], edx */
    812     edx = MEM32(ecx + 0x4); /* 0x3801B4E5: mov edx, dword ptr [ecx + 4] */
    813     MEM32(eax + 0x4) = edx; /* 0x3801B4E8: mov dword ptr [eax + 4], edx */
    814     ecx = MEM32(ecx + 0x8); /* 0x3801B4EB: mov ecx, dword ptr [ecx + 8] */
    815     MEM32(eax + 0x8) = ecx; /* 0x3801B4EE: mov dword ptr [eax + 8], ecx */
    816 L_3801B4F1:
    817     ebp = POP32_VAL(esp); /* 0x3801B4F1: pop ebp */
    818     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B4F2: ret  */
    819     RECOMP_REGS_OUT();
    820 }
    821 
    822 void sub_3801B500(void) {
    823     int _fpu_cmp = 0;
    824     uint32_t _cf = 0;
    825     int _df = 1;
    826     uint32_t _flag_k = FK_NONE;
    827     uint32_t _flag_a = 0, _flag_b = 0;
    828     uint32_t _itail_tgt = 0;
    829     RECOMP_REGS_LOCALS
    830     RECOMP_ENTER(0x3801B500u);
    831 
    832     goto L_3801B500;
    833 L_38017820:
    834     PUSH32(esp, ebp); /* 0x38017820: push ebp */
    835     ebp = esp; /* 0x38017821: mov ebp, esp */
    836     PUSH32(esp, ebx); /* 0x38017823: push ebx */
    837     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x38017824: mov bl, byte ptr [ebp + 8] */
    838     /* test LO8(ebx), 2 */ /* 0x38017827: test bl, 2 */
    839     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
    840     _cf = 0;
    841     _flag_k = FK_NARROW(FK_TEST, 24);
    842     PUSH32(esp, esi); /* 0x3801782A: push esi */
    843     esi = ecx; /* 0x3801782B: mov esi, ecx */
    844     if (TEST_Z(_flag_a, _flag_b)) goto L_3801785E; /* 0x3801782D: je 0x3801785e */
    845 L_3801782F:
    846     eax = MEM32(esi + (-0x4)); /* 0x3801782F: mov eax, dword ptr [esi - 4] */
    847     PUSH32(esp, edi); /* 0x38017832: push edi */
    848     PUSH32(esp, 0x38017A20u); /* 0x38017833: push 0x38017a20 */
    849     edi = esi + (-0x4); /* 0x38017838: lea edi, [esi - 4] */
    850     PUSH32(esp, eax); /* 0x3801783B: push eax */
    851     PUSH32(esp, 0xB4u); /* 0x3801783C: push 0xb4 */
    852     PUSH32(esp, esi); /* 0x38017841: push esi */
    853     RECOMP_ICALL(0x3804B582u); /* 0x38017842: call 0x3804b582 */ /* not lifted */
    854     RECOMP_FLAGS_IN();
    855     /* test LO8(ebx), 1 */ /* 0x38017847: test bl, 1 */
    856     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    857     _cf = 0;
    858     _flag_k = FK_NARROW(FK_TEST, 24);
    859     if (TEST_Z(_flag_a, _flag_b)) goto L_38017855; /* 0x3801784A: je 0x38017855 */
    860 L_3801784C:
    861     PUSH32(esp, edi); /* 0x3801784C: push edi */
    862     RECOMP_ICALL(0x3804B4F6u); /* 0x3801784D: call 0x3804b4f6 */ /* not lifted */
    863     RECOMP_FLAGS_IN();
    864     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    865     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    866     esp = esp + 4; /* 0x38017852: add esp, 4 */
    867     _flag_k = FK_ADD;
    868 L_38017855:
    869     eax = edi; /* 0x38017855: mov eax, edi */
    870     edi = POP32_VAL(esp); /* 0x38017857: pop edi */
    871     esi = POP32_VAL(esp); /* 0x38017858: pop esi */
    872     ebx = POP32_VAL(esp); /* 0x38017859: pop ebx */
    873     ebp = POP32_VAL(esp); /* 0x3801785A: pop ebp */
    874     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801785B: ret 4 */
    875 L_3801785E:
    876     ecx = esi; /* 0x3801785E: mov ecx, esi */
    877     RECOMP_ICALL(0x38017A20u); /* 0x38017860: call 0x38017a20 */ /* not lifted */
    878     RECOMP_FLAGS_IN();
    879     /* test LO8(ebx), 1 */ /* 0x38017865: test bl, 1 */
    880     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
    881     _cf = 0;
    882     _flag_k = FK_NARROW(FK_TEST, 24);
    883     if (TEST_Z(_flag_a, _flag_b)) goto L_38017873; /* 0x38017868: je 0x38017873 */
    884 L_3801786A:
    885     PUSH32(esp, esi); /* 0x3801786A: push esi */
    886     RECOMP_ICALL(0x3804B4F6u); /* 0x3801786B: call 0x3804b4f6 */ /* not lifted */
    887     RECOMP_FLAGS_IN();
    888     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    889     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    890     esp = esp + 4; /* 0x38017870: add esp, 4 */
    891     _flag_k = FK_ADD;
    892 L_38017873:
    893     eax = esi; /* 0x38017873: mov eax, esi */
    894     esi = POP32_VAL(esp); /* 0x38017875: pop esi */
    895     ebx = POP32_VAL(esp); /* 0x38017876: pop ebx */
    896     ebp = POP32_VAL(esp); /* 0x38017877: pop ebp */
    897     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38017878: ret 4 */
    898 L_3801B500:
    899     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
    900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    901     ecx = ecx - 0x20u; /* 0x3801B500: sub ecx, 0x20 */
    902     _flag_k = FK_CMP;
    903     RECOMP_BACKEDGE();
    904     goto L_38017820; /* 0x3801B503: jmp 0x38017820 */
    905     { RECOMP_REGS_OUT(); return; } /* end of function */
    906     RECOMP_REGS_OUT();
    907 }
    908 
    909 void sub_3801B510(void) {
    910     int _fpu_cmp = 0;
    911     uint32_t _cf = 0;
    912     int _df = 1;
    913     uint32_t _flag_k = FK_NONE;
    914     uint32_t _flag_a = 0, _flag_b = 0;
    915     uint32_t _itail_tgt = 0;
    916     RECOMP_REGS_LOCALS
    917     RECOMP_ENTER(0x3801B510u);
    918 
    919 L_3801B510:
    920     PUSH32(esp, ebp); /* 0x3801B510: push ebp */
    921     ebp = esp; /* 0x3801B511: mov ebp, esp */
    922     edx = MEM32(ebp + 0x8); /* 0x3801B513: mov edx, dword ptr [ebp + 8] */
    923     eax = ecx; /* 0x3801B516: mov eax, ecx */
    924     ecx = eax + 0x4; /* 0x3801B518: lea ecx, [eax + 4] */
    925     /* cmp ecx, edx */ /* 0x3801B51B: 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_EQ(_flag_a, _flag_b)) goto L_3801B52B; /* 0x3801B51D: je 0x3801b52b */
    930 L_3801B51F:
    931     PUSH32(esp, esi); /* 0x3801B51F: push esi */
    932     esi = MEM32(edx); /* 0x3801B520: mov esi, dword ptr [edx] */
    933     MEM32(ecx) = esi; /* 0x3801B522: mov dword ptr [ecx], esi */
    934     edx = MEM32(edx + 0x4); /* 0x3801B524: mov edx, dword ptr [edx + 4] */
    935     MEM32(ecx + 0x4) = edx; /* 0x3801B527: mov dword ptr [ecx + 4], edx */
    936     esi = POP32_VAL(esp); /* 0x3801B52A: pop esi */
    937 L_3801B52B:
    938     ecx = 1; /* 0x3801B52B: mov ecx, 1 */
    939     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    940     edx = 0; /* 0x3801B530: xor edx, edx */
    941     _cf = 0;
    942     _flag_k = FK_TEST;
    943     MEM32(eax + 0xC) = ecx; /* 0x3801B532: mov dword ptr [eax + 0xc], ecx */
    944     MEM32(eax + 0x10) = ecx; /* 0x3801B535: mov dword ptr [eax + 0x10], ecx */
    945     MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x3801B538: mov byte ptr [eax + 0x14], dl */
    946     MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x3801B53B: mov byte ptr [eax + 0x15], cl */
    947     MEM32(eax + 0x18) = edx; /* 0x3801B53E: mov dword ptr [eax + 0x18], edx */
    948     MEM32(eax) = 0x3804F0B4u; /* 0x3801B541: mov dword ptr [eax], 0x3804f0b4 */
    949     ebp = POP32_VAL(esp); /* 0x3801B547: pop ebp */
    950     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801B548: ret 4 */
    951     RECOMP_REGS_OUT();
    952 }
    953 
    954 void sub_3801B550(void) {
    955     int _fpu_cmp = 0;
    956     uint32_t _cf = 0;
    957     int _df = 1;
    958     uint32_t _flag_k = FK_NONE;
    959     uint32_t _flag_a = 0, _flag_b = 0;
    960     uint32_t _itail_tgt = 0;
    961     RECOMP_REGS_LOCALS
    962     RECOMP_ENTER(0x3801B550u);
    963 
    964 L_3801B550:
    965     MEM32(ecx) = 0x3804F0B4u; /* 0x3801B550: mov dword ptr [ecx], 0x3804f0b4 */
    966 L_3801B556:
    967     { _itail_tgt = (uint32_t)(MEM32(0x3804E454)); goto _ljump; }
    968     { RECOMP_REGS_OUT(); return; } /* end of function */
    969   _ljump:
    970     switch (_itail_tgt) {
    971       case 0x3801B550u: goto L_3801B550;
    972       case 0x3801B556u: goto L_3801B556;
    973       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    974     }
    975     RECOMP_REGS_OUT();
    976 }
    977 
    978 void sub_3801B560(void) {
    979     int _fpu_cmp = 0;
    980     uint32_t _cf = 0;
    981     int _df = 1;
    982     uint32_t _flag_k = FK_NONE;
    983     uint32_t _flag_a = 0, _flag_b = 0;
    984     uint32_t _itail_tgt = 0;
    985     RECOMP_REGS_LOCALS
    986     RECOMP_ENTER(0x3801B560u);
    987 
    988 L_3801B560:
    989     PUSH32(esp, ebp); /* 0x3801B560: push ebp */
    990     ebp = esp; /* 0x3801B561: mov ebp, esp */
    991     eax = ecx; /* 0x3801B563: mov eax, ecx */
    992     ecx = MEM32(ebp + 0x8); /* 0x3801B565: mov ecx, dword ptr [ebp + 8] */
    993     MEM32(eax + 0x4) = ecx; /* 0x3801B568: mov dword ptr [eax + 4], ecx */
    994     MEM32(eax) = 0x3804F0E4u; /* 0x3801B56B: mov dword ptr [eax], 0x3804f0e4 */
    995     _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1);
    996     MEM32(ecx + 0xC) = MEM32(ecx + 0xC) + 1; /* 0x3801B571: inc dword ptr [ecx + 0xc] */
    997     _flag_k = FK_INC;
    998     ebp = POP32_VAL(esp); /* 0x3801B574: pop ebp */
    999     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801B575: ret 4 */
   1000     RECOMP_REGS_OUT();
   1001 }
   1002 
   1003 void sub_3801B580(void) {
   1004     int _fpu_cmp = 0;
   1005     uint32_t _cf = 0;
   1006     int _df = 1;
   1007     uint32_t _flag_k = FK_NONE;
   1008     uint32_t _flag_a = 0, _flag_b = 0;
   1009     uint32_t _itail_tgt = 0;
   1010     RECOMP_REGS_LOCALS
   1011     RECOMP_ENTER(0x3801B580u);
   1012 
   1013 L_3801B580:
   1014     PUSH32(esp, ebp); /* 0x3801B580: push ebp */
   1015     ebp = esp; /* 0x3801B581: mov ebp, esp */
   1016     PUSH32(esp, esi); /* 0x3801B583: push esi */
   1017     esi = ecx; /* 0x3801B584: mov esi, ecx */
   1018     RECOMP_ICALL(0x3801B610u); /* 0x3801B586: call 0x3801b610 */ /* not lifted */
   1019     RECOMP_FLAGS_IN();
   1020     /* test MEM8(ebp + 0x8), 1 */ /* 0x3801B58B: test byte ptr [ebp + 8], 1 */
   1021     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   1022     _cf = 0;
   1023     _flag_k = FK_NARROW(FK_TEST, 24);
   1024     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B59A; /* 0x3801B58F: je 0x3801b59a */
   1025 L_3801B591:
   1026     PUSH32(esp, esi); /* 0x3801B591: push esi */
   1027     RECOMP_ICALL(0x3804B4F6u); /* 0x3801B592: call 0x3804b4f6 */ /* not lifted */
   1028     RECOMP_FLAGS_IN();
   1029     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1030     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1031     esp = esp + 4; /* 0x3801B597: add esp, 4 */
   1032     _flag_k = FK_ADD;
   1033 L_3801B59A:
   1034     eax = esi; /* 0x3801B59A: mov eax, esi */
   1035     esi = POP32_VAL(esp); /* 0x3801B59C: pop esi */
   1036     ebp = POP32_VAL(esp); /* 0x3801B59D: pop ebp */
   1037     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801B59E: ret 4 */
   1038     RECOMP_REGS_OUT();
   1039 }
   1040 
   1041 void sub_3801B5B0(void) {
   1042     int _fpu_cmp = 0;
   1043     uint32_t _cf = 0;
   1044     int _df = 1;
   1045     uint32_t _flag_k = FK_NONE;
   1046     uint32_t _flag_a = 0, _flag_b = 0;
   1047     uint32_t _itail_tgt = 0;
   1048     RECOMP_REGS_LOCALS
   1049     RECOMP_ENTER(0x3801B5B0u);
   1050 
   1051 L_3801B5B0:
   1052     PUSH32(esp, ebp); /* 0x3801B5B0: push ebp */
   1053     ebp = esp; /* 0x3801B5B1: mov ebp, esp */
   1054     eax = ecx; /* 0x3801B5B3: mov eax, ecx */
   1055     ecx = MEM32(ebp + 0x8); /* 0x3801B5B5: mov ecx, dword ptr [ebp + 8] */
   1056     edx = MEM32(ecx + 0x4); /* 0x3801B5B8: mov edx, dword ptr [ecx + 4] */
   1057     ecx = edx; /* 0x3801B5BB: mov ecx, edx */
   1058     MEM32(eax + 0x4) = edx; /* 0x3801B5BD: mov dword ptr [eax + 4], edx */
   1059     MEM32(eax) = 0x3804F0E4u; /* 0x3801B5C0: mov dword ptr [eax], 0x3804f0e4 */
   1060     _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1);
   1061     MEM32(ecx + 0xC) = MEM32(ecx + 0xC) + 1; /* 0x3801B5C6: inc dword ptr [ecx + 0xc] */
   1062     _flag_k = FK_INC;
   1063     ebp = POP32_VAL(esp); /* 0x3801B5C9: pop ebp */
   1064     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801B5CA: ret 4 */
   1065     RECOMP_REGS_OUT();
   1066 }
   1067 
   1068 void sub_3801B5D0(void) {
   1069     int _fpu_cmp = 0;
   1070     uint32_t _cf = 0;
   1071     int _df = 1;
   1072     uint32_t _flag_k = FK_NONE;
   1073     uint32_t _flag_a = 0, _flag_b = 0;
   1074     uint32_t _itail_tgt = 0;
   1075     RECOMP_REGS_LOCALS
   1076     RECOMP_ENTER(0x3801B5D0u);
   1077 
   1078 L_3801B5D0:
   1079     PUSH32(esp, ebp); /* 0x3801B5D0: push ebp */
   1080     ebp = esp; /* 0x3801B5D1: mov ebp, esp */
   1081     PUSH32(esp, ebx); /* 0x3801B5D3: push ebx */
   1082     ebx = MEM32(ebp + 0x8); /* 0x3801B5D4: mov ebx, dword ptr [ebp + 8] */
   1083     PUSH32(esp, esi); /* 0x3801B5D7: push esi */
   1084     esi = ecx; /* 0x3801B5D8: mov esi, ecx */
   1085     /* cmp esi, ebx */ /* 0x3801B5DA: cmp esi, ebx */
   1086     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1088     _flag_k = FK_CMP;
   1089     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B607; /* 0x3801B5DC: je 0x3801b607 */
   1090 L_3801B5DE:
   1091     ecx = MEM32(esi + 0x4); /* 0x3801B5DE: mov ecx, dword ptr [esi + 4] */
   1092     /* test ecx, ecx */ /* 0x3801B5E1: test ecx, ecx */
   1093     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1094     _cf = 0;
   1095     _flag_k = FK_TEST;
   1096     PUSH32(esp, edi); /* 0x3801B5E3: push edi */
   1097     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B5F9; /* 0x3801B5E4: je 0x3801b5f9 */
   1098 L_3801B5E6:
   1099     edi = MEM32(0x3804E458); /* 0x3801B5E6: mov edi, dword ptr [0x3804e458] */
   1100     RECOMP_ICALL(edi); /* 0x3801B5EC: call edi */
   1101     RECOMP_FLAGS_IN();
   1102     ecx = MEM32(esi + 0x4); /* 0x3801B5EE: mov ecx, dword ptr [esi + 4] */
   1103     /* cmp MEM32(ecx + 0xC), 1 */ /* 0x3801B5F1: cmp dword ptr [ecx + 0xc], 1 */
   1104     _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1);
   1105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1106     _flag_k = FK_CMP;
   1107     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B5F9; /* 0x3801B5F5: jne 0x3801b5f9 */
   1108 L_3801B5F7:
   1109     RECOMP_ICALL(edi); /* 0x3801B5F7: call edi */
   1110     RECOMP_FLAGS_IN();
   1111 L_3801B5F9:
   1112     eax = MEM32(ebx + 0x4); /* 0x3801B5F9: mov eax, dword ptr [ebx + 4] */
   1113     /* test eax, eax */ /* 0x3801B5FC: test eax, eax */
   1114     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1115     _cf = 0;
   1116     _flag_k = FK_TEST;
   1117     MEM32(esi + 0x4) = eax; /* 0x3801B5FE: mov dword ptr [esi + 4], eax */
   1118     edi = POP32_VAL(esp); /* 0x3801B601: pop edi */
   1119     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B607; /* 0x3801B602: je 0x3801b607 */
   1120 L_3801B604:
   1121     _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(1);
   1122     MEM32(eax + 0xC) = MEM32(eax + 0xC) + 1; /* 0x3801B604: inc dword ptr [eax + 0xc] */
   1123     _flag_k = FK_INC;
   1124 L_3801B607:
   1125     eax = esi; /* 0x3801B607: mov eax, esi */
   1126     esi = POP32_VAL(esp); /* 0x3801B609: pop esi */
   1127     ebx = POP32_VAL(esp); /* 0x3801B60A: pop ebx */
   1128     ebp = POP32_VAL(esp); /* 0x3801B60B: pop ebp */
   1129     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801B60C: ret 4 */
   1130     RECOMP_REGS_OUT();
   1131 }
   1132 
   1133 void sub_3801B610(void) {
   1134     int _fpu_cmp = 0;
   1135     uint32_t _cf = 0;
   1136     int _df = 1;
   1137     uint32_t _flag_k = FK_NONE;
   1138     uint32_t _flag_a = 0, _flag_b = 0;
   1139     uint32_t _itail_tgt = 0;
   1140     RECOMP_REGS_LOCALS
   1141     RECOMP_ENTER(0x3801B610u);
   1142 
   1143 L_3801B610:
   1144     PUSH32(esp, esi); /* 0x3801B610: push esi */
   1145     esi = ecx; /* 0x3801B611: mov esi, ecx */
   1146     ecx = MEM32(esi + 0x4); /* 0x3801B613: mov ecx, dword ptr [esi + 4] */
   1147     /* test ecx, ecx */ /* 0x3801B616: test ecx, ecx */
   1148     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1149     _cf = 0;
   1150     _flag_k = FK_TEST;
   1151     PUSH32(esp, edi); /* 0x3801B618: push edi */
   1152     MEM32(esi) = 0x3804F0E4u; /* 0x3801B619: mov dword ptr [esi], 0x3804f0e4 */
   1153     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B634; /* 0x3801B61F: je 0x3801b634 */
   1154 L_3801B621:
   1155     edi = MEM32(0x3804E458); /* 0x3801B621: mov edi, dword ptr [0x3804e458] */
   1156     RECOMP_ICALL(edi); /* 0x3801B627: call edi */
   1157     RECOMP_FLAGS_IN();
   1158     ecx = MEM32(esi + 0x4); /* 0x3801B629: mov ecx, dword ptr [esi + 4] */
   1159     /* cmp MEM32(ecx + 0xC), 1 */ /* 0x3801B62C: cmp dword ptr [ecx + 0xc], 1 */
   1160     _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1);
   1161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1162     _flag_k = FK_CMP;
   1163     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B634; /* 0x3801B630: jne 0x3801b634 */
   1164 L_3801B632:
   1165     RECOMP_ICALL(edi); /* 0x3801B632: call edi */
   1166     RECOMP_FLAGS_IN();
   1167 L_3801B634:
   1168     edi = POP32_VAL(esp); /* 0x3801B634: pop edi */
   1169     esi = POP32_VAL(esp); /* 0x3801B635: pop esi */
   1170     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B636: ret  */
   1171     RECOMP_REGS_OUT();
   1172 }
   1173 
   1174 void sub_3801B640(void) {
   1175     int _fpu_cmp = 0;
   1176     uint32_t _cf = 0;
   1177     int _df = 1;
   1178     uint32_t _flag_k = FK_NONE;
   1179     uint32_t _flag_a = 0, _flag_b = 0;
   1180     uint32_t _itail_tgt = 0;
   1181     RECOMP_REGS_LOCALS
   1182     RECOMP_ENTER(0x3801B640u);
   1183 
   1184 L_3801B640:
   1185     PUSH32(esp, ebp); /* 0x3801B640: push ebp */
   1186     ebp = esp; /* 0x3801B641: mov ebp, esp */
   1187     ecx = MEM32(ecx + 0x4); /* 0x3801B643: mov ecx, dword ptr [ecx + 4] */
   1188     /* test ecx, ecx */ /* 0x3801B646: test ecx, ecx */
   1189     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1190     _cf = 0;
   1191     _flag_k = FK_TEST;
   1192     if (TEST_Z(_flag_a, _flag_b)) goto L_3801B653; /* 0x3801B648: je 0x3801b653 */
   1193 L_3801B64A:
   1194     edx = MEM32(ebp + 0x8); /* 0x3801B64A: mov edx, dword ptr [ebp + 8] */
   1195     eax = MEM32(ecx); /* 0x3801B64D: mov eax, dword ptr [ecx] */
   1196     PUSH32(esp, edx); /* 0x3801B64F: push edx */
   1197     RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x3801B650: call dword ptr [eax + 0x28] */
   1198     RECOMP_FLAGS_IN();
   1199 L_3801B653:
   1200     ebp = POP32_VAL(esp); /* 0x3801B653: pop ebp */
   1201     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801B654: ret 4 */
   1202     RECOMP_REGS_OUT();
   1203 }
   1204 
   1205 void sub_3801B660(void) {
   1206     int _fpu_cmp = 0;
   1207     uint32_t _cf = 0;
   1208     int _df = 1;
   1209     uint32_t _flag_k = FK_NONE;
   1210     uint32_t _flag_a = 0, _flag_b = 0;
   1211     uint32_t _itail_tgt = 0;
   1212     RECOMP_REGS_LOCALS
   1213     RECOMP_ENTER(0x3801B660u);
   1214 
   1215 L_3801B660:
   1216     RECOMP_ICALL(0x3801B670u); /* 0x3801B660: call 0x3801b670 */ /* not lifted */
   1217     RECOMP_FLAGS_IN();
   1218     goto L_3801B680; /* 0x3801B665: jmp 0x3801b680 */
   1219 L_3801B680:
   1220     PUSH32(esp, 0x3801B690u); /* 0x3801B680: push 0x3801b690 */
   1221     RECOMP_ICALL(0x3804B54Cu); /* 0x3801B685: call 0x3804b54c */ /* not lifted */
   1222     RECOMP_FLAGS_IN();
   1223     ecx = POP32_VAL(esp); /* 0x3801B68A: pop ecx */
   1224     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B68B: ret  */
   1225     RECOMP_REGS_OUT();
   1226 }
   1227 
   1228 void sub_3801B670(void) {
   1229     int _fpu_cmp = 0;
   1230     uint32_t _cf = 0;
   1231     int _df = 1;
   1232     uint32_t _flag_k = FK_NONE;
   1233     uint32_t _flag_a = 0, _flag_b = 0;
   1234     uint32_t _itail_tgt = 0;
   1235     RECOMP_REGS_LOCALS
   1236     RECOMP_ENTER(0x3801B670u);
   1237 
   1238 L_3801B670:
   1239     ecx = 0x3806EC01u; /* 0x3801B670: mov ecx, 0x3806ec01 */
   1240 L_3801B675:
   1241     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
   1242     { RECOMP_REGS_OUT(); return; } /* end of function */
   1243   _ljump:
   1244     switch (_itail_tgt) {
   1245       case 0x3801B670u: goto L_3801B670;
   1246       case 0x3801B675u: goto L_3801B675;
   1247       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1248     }
   1249     RECOMP_REGS_OUT();
   1250 }
   1251 
   1252 void sub_3801B680(void) {
   1253     int _fpu_cmp = 0;
   1254     uint32_t _cf = 0;
   1255     int _df = 1;
   1256     uint32_t _flag_k = FK_NONE;
   1257     uint32_t _flag_a = 0, _flag_b = 0;
   1258     uint32_t _itail_tgt = 0;
   1259     RECOMP_REGS_LOCALS
   1260     RECOMP_ENTER(0x3801B680u);
   1261 
   1262 L_3801B680:
   1263     PUSH32(esp, 0x3801B690u); /* 0x3801B680: push 0x3801b690 */
   1264     RECOMP_ICALL(0x3804B54Cu); /* 0x3801B685: call 0x3804b54c */ /* not lifted */
   1265     RECOMP_FLAGS_IN();
   1266     ecx = POP32_VAL(esp); /* 0x3801B68A: pop ecx */
   1267     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B68B: ret  */
   1268     RECOMP_REGS_OUT();
   1269 }
   1270 
   1271 void sub_3801B690(void) {
   1272     int _fpu_cmp = 0;
   1273     uint32_t _cf = 0;
   1274     int _df = 1;
   1275     uint32_t _flag_k = FK_NONE;
   1276     uint32_t _flag_a = 0, _flag_b = 0;
   1277     uint32_t _itail_tgt = 0;
   1278     RECOMP_REGS_LOCALS
   1279     RECOMP_ENTER(0x3801B690u);
   1280 
   1281 L_3801B690:
   1282     ecx = 0x3806EC01u; /* 0x3801B690: mov ecx, 0x3806ec01 */
   1283 L_3801B695:
   1284     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
   1285     { RECOMP_REGS_OUT(); return; } /* end of function */
   1286   _ljump:
   1287     switch (_itail_tgt) {
   1288       case 0x3801B690u: goto L_3801B690;
   1289       case 0x3801B695u: goto L_3801B695;
   1290       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1291     }
   1292     RECOMP_REGS_OUT();
   1293 }
   1294 
   1295 void sub_3801B6A0(void) {
   1296     int _fpu_cmp = 0;
   1297     uint32_t _cf = 0;
   1298     int _df = 1;
   1299     uint32_t _flag_k = FK_NONE;
   1300     uint32_t _flag_a = 0, _flag_b = 0;
   1301     uint32_t _itail_tgt = 0;
   1302     RECOMP_REGS_LOCALS
   1303     RECOMP_ENTER(0x3801B6A0u);
   1304 
   1305 L_3801B6A0:
   1306     RECOMP_ICALL(0x3801B6B0u); /* 0x3801B6A0: call 0x3801b6b0 */ /* not lifted */
   1307     RECOMP_FLAGS_IN();
   1308     goto L_3801B6C0; /* 0x3801B6A5: jmp 0x3801b6c0 */
   1309 L_3801B6C0:
   1310     PUSH32(esp, 0x3801B6D0u); /* 0x3801B6C0: push 0x3801b6d0 */
   1311     RECOMP_ICALL(0x3804B54Cu); /* 0x3801B6C5: call 0x3804b54c */ /* not lifted */
   1312     RECOMP_FLAGS_IN();
   1313     ecx = POP32_VAL(esp); /* 0x3801B6CA: pop ecx */
   1314     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B6CB: ret  */
   1315     RECOMP_REGS_OUT();
   1316 }
   1317 
   1318 void sub_3801B6B0(void) {
   1319     int _fpu_cmp = 0;
   1320     uint32_t _cf = 0;
   1321     int _df = 1;
   1322     uint32_t _flag_k = FK_NONE;
   1323     uint32_t _flag_a = 0, _flag_b = 0;
   1324     uint32_t _itail_tgt = 0;
   1325     RECOMP_REGS_LOCALS
   1326     RECOMP_ENTER(0x3801B6B0u);
   1327 
   1328 L_3801B6B0:
   1329     ecx = 0x3806EC00u; /* 0x3801B6B0: mov ecx, 0x3806ec00 */
   1330 L_3801B6B5:
   1331     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
   1332     { RECOMP_REGS_OUT(); return; } /* end of function */
   1333   _ljump:
   1334     switch (_itail_tgt) {
   1335       case 0x3801B6B0u: goto L_3801B6B0;
   1336       case 0x3801B6B5u: goto L_3801B6B5;
   1337       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1338     }
   1339     RECOMP_REGS_OUT();
   1340 }
   1341 
   1342 void sub_3801B6C0(void) {
   1343     int _fpu_cmp = 0;
   1344     uint32_t _cf = 0;
   1345     int _df = 1;
   1346     uint32_t _flag_k = FK_NONE;
   1347     uint32_t _flag_a = 0, _flag_b = 0;
   1348     uint32_t _itail_tgt = 0;
   1349     RECOMP_REGS_LOCALS
   1350     RECOMP_ENTER(0x3801B6C0u);
   1351 
   1352 L_3801B6C0:
   1353     PUSH32(esp, 0x3801B6D0u); /* 0x3801B6C0: push 0x3801b6d0 */
   1354     RECOMP_ICALL(0x3804B54Cu); /* 0x3801B6C5: call 0x3804b54c */ /* not lifted */
   1355     RECOMP_FLAGS_IN();
   1356     ecx = POP32_VAL(esp); /* 0x3801B6CA: pop ecx */
   1357     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B6CB: ret  */
   1358     RECOMP_REGS_OUT();
   1359 }
   1360 
   1361 void sub_3801B6D0(void) {
   1362     int _fpu_cmp = 0;
   1363     uint32_t _cf = 0;
   1364     int _df = 1;
   1365     uint32_t _flag_k = FK_NONE;
   1366     uint32_t _flag_a = 0, _flag_b = 0;
   1367     uint32_t _itail_tgt = 0;
   1368     RECOMP_REGS_LOCALS
   1369     RECOMP_ENTER(0x3801B6D0u);
   1370 
   1371 L_3801B6D0:
   1372     ecx = 0x3806EC00u; /* 0x3801B6D0: mov ecx, 0x3806ec00 */
   1373 L_3801B6D5:
   1374     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
   1375     { RECOMP_REGS_OUT(); return; } /* end of function */
   1376   _ljump:
   1377     switch (_itail_tgt) {
   1378       case 0x3801B6D0u: goto L_3801B6D0;
   1379       case 0x3801B6D5u: goto L_3801B6D5;
   1380       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1381     }
   1382     RECOMP_REGS_OUT();
   1383 }
   1384 
   1385 void sub_3801B6E0(void) {
   1386     int _fpu_cmp = 0;
   1387     uint32_t _cf = 0;
   1388     int _df = 1;
   1389     uint32_t _flag_k = FK_NONE;
   1390     uint32_t _flag_a = 0, _flag_b = 0;
   1391     uint32_t _itail_tgt = 0;
   1392     RECOMP_REGS_LOCALS
   1393     RECOMP_ENTER(0x3801B6E0u);
   1394 
   1395 L_3801B6E0:
   1396     goto L_3801B6F0; /* 0x3801B6E0: jmp 0x3801b6f0 */
   1397 L_3801B6F0:
   1398     MEM32(0x3806EBFC) = 0x3806B9CCu; /* 0x3801B6F0: mov dword ptr [0x3806ebfc], 0x3806b9cc */
   1399     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B6FA: ret  */
   1400     RECOMP_REGS_OUT();
   1401 }
   1402 
   1403 void sub_3801B6F0(void) {
   1404     int _fpu_cmp = 0;
   1405     uint32_t _cf = 0;
   1406     int _df = 1;
   1407     uint32_t _flag_k = FK_NONE;
   1408     uint32_t _flag_a = 0, _flag_b = 0;
   1409     uint32_t _itail_tgt = 0;
   1410     RECOMP_REGS_LOCALS
   1411     RECOMP_ENTER(0x3801B6F0u);
   1412 
   1413 L_3801B6F0:
   1414     MEM32(0x3806EBFC) = 0x3806B9CCu; /* 0x3801B6F0: mov dword ptr [0x3806ebfc], 0x3806b9cc */
   1415     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B6FA: ret  */
   1416     RECOMP_REGS_OUT();
   1417 }
   1418 
   1419 void sub_3801B700(void) {
   1420     int _fpu_cmp = 0;
   1421     uint32_t _cf = 0;
   1422     int _df = 1;
   1423     uint32_t _flag_k = FK_NONE;
   1424     uint32_t _flag_a = 0, _flag_b = 0;
   1425     uint32_t _itail_tgt = 0;
   1426     RECOMP_REGS_LOCALS
   1427     RECOMP_ENTER(0x3801B700u);
   1428 
   1429 L_3801B700:
   1430     goto L_3801B710; /* 0x3801B700: jmp 0x3801b710 */
   1431 L_3801B710:
   1432     MEM32(0x3806EBF8) = 0x3806BA00u; /* 0x3801B710: mov dword ptr [0x3806ebf8], 0x3806ba00 */
   1433     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B71A: ret  */
   1434     RECOMP_REGS_OUT();
   1435 }
   1436 
   1437 void sub_3801B710(void) {
   1438     int _fpu_cmp = 0;
   1439     uint32_t _cf = 0;
   1440     int _df = 1;
   1441     uint32_t _flag_k = FK_NONE;
   1442     uint32_t _flag_a = 0, _flag_b = 0;
   1443     uint32_t _itail_tgt = 0;
   1444     RECOMP_REGS_LOCALS
   1445     RECOMP_ENTER(0x3801B710u);
   1446 
   1447 L_3801B710:
   1448     MEM32(0x3806EBF8) = 0x3806BA00u; /* 0x3801B710: mov dword ptr [0x3806ebf8], 0x3806ba00 */
   1449     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B71A: ret  */
   1450     RECOMP_REGS_OUT();
   1451 }
   1452 
   1453 void sub_3801B720(void) {
   1454     int _fpu_cmp = 0;
   1455     uint32_t _cf = 0;
   1456     int _df = 1;
   1457     uint32_t _flag_k = FK_NONE;
   1458     uint32_t _flag_a = 0, _flag_b = 0;
   1459     uint32_t _itail_tgt = 0;
   1460     RECOMP_REGS_LOCALS
   1461     RECOMP_ENTER(0x3801B720u);
   1462 
   1463 L_3801B720:
   1464     goto L_3801B730; /* 0x3801B720: jmp 0x3801b730 */
   1465 L_3801B730:
   1466     MEM32(0x3806EBF4) = 0x3806BA3Cu; /* 0x3801B730: mov dword ptr [0x3806ebf4], 0x3806ba3c */
   1467     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B73A: ret  */
   1468     RECOMP_REGS_OUT();
   1469 }
   1470 
   1471 void sub_3801B730(void) {
   1472     int _fpu_cmp = 0;
   1473     uint32_t _cf = 0;
   1474     int _df = 1;
   1475     uint32_t _flag_k = FK_NONE;
   1476     uint32_t _flag_a = 0, _flag_b = 0;
   1477     uint32_t _itail_tgt = 0;
   1478     RECOMP_REGS_LOCALS
   1479     RECOMP_ENTER(0x3801B730u);
   1480 
   1481 L_3801B730:
   1482     MEM32(0x3806EBF4) = 0x3806BA3Cu; /* 0x3801B730: mov dword ptr [0x3806ebf4], 0x3806ba3c */
   1483     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B73A: ret  */
   1484     RECOMP_REGS_OUT();
   1485 }
   1486 
   1487 void sub_3801B740(void) {
   1488     int _fpu_cmp = 0;
   1489     uint32_t _cf = 0;
   1490     int _df = 1;
   1491     uint32_t _flag_k = FK_NONE;
   1492     uint32_t _flag_a = 0, _flag_b = 0;
   1493     uint32_t _itail_tgt = 0;
   1494     RECOMP_REGS_LOCALS
   1495     RECOMP_ENTER(0x3801B740u);
   1496 
   1497 L_3801B740:
   1498     goto L_3801B750; /* 0x3801B740: jmp 0x3801b750 */
   1499 L_3801B750:
   1500     MEM32(0x3806EBF0) = 0x3806BA70u; /* 0x3801B750: mov dword ptr [0x3806ebf0], 0x3806ba70 */
   1501     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B75A: ret  */
   1502     RECOMP_REGS_OUT();
   1503 }
   1504 
   1505 void sub_3801B750(void) {
   1506     int _fpu_cmp = 0;
   1507     uint32_t _cf = 0;
   1508     int _df = 1;
   1509     uint32_t _flag_k = FK_NONE;
   1510     uint32_t _flag_a = 0, _flag_b = 0;
   1511     uint32_t _itail_tgt = 0;
   1512     RECOMP_REGS_LOCALS
   1513     RECOMP_ENTER(0x3801B750u);
   1514 
   1515 L_3801B750:
   1516     MEM32(0x3806EBF0) = 0x3806BA70u; /* 0x3801B750: mov dword ptr [0x3806ebf0], 0x3806ba70 */
   1517     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B75A: ret  */
   1518     RECOMP_REGS_OUT();
   1519 }
   1520 
   1521 void sub_3801B760(void) {
   1522     int _fpu_cmp = 0;
   1523     uint32_t _cf = 0;
   1524     int _df = 1;
   1525     uint32_t _flag_k = FK_NONE;
   1526     uint32_t _flag_a = 0, _flag_b = 0;
   1527     uint32_t _itail_tgt = 0;
   1528     RECOMP_REGS_LOCALS
   1529     RECOMP_ENTER(0x3801B760u);
   1530 
   1531 L_3801B760:
   1532     goto L_3801B770; /* 0x3801B760: jmp 0x3801b770 */
   1533 L_3801B770:
   1534     MEM32(0x3806EBEC) = 0x3806BAA4u; /* 0x3801B770: mov dword ptr [0x3806ebec], 0x3806baa4 */
   1535     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B77A: ret  */
   1536     RECOMP_REGS_OUT();
   1537 }
   1538 
   1539 void sub_3801B770(void) {
   1540     int _fpu_cmp = 0;
   1541     uint32_t _cf = 0;
   1542     int _df = 1;
   1543     uint32_t _flag_k = FK_NONE;
   1544     uint32_t _flag_a = 0, _flag_b = 0;
   1545     uint32_t _itail_tgt = 0;
   1546     RECOMP_REGS_LOCALS
   1547     RECOMP_ENTER(0x3801B770u);
   1548 
   1549 L_3801B770:
   1550     MEM32(0x3806EBEC) = 0x3806BAA4u; /* 0x3801B770: mov dword ptr [0x3806ebec], 0x3806baa4 */
   1551     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B77A: ret  */
   1552     RECOMP_REGS_OUT();
   1553 }
   1554 
   1555 void sub_3801B780(void) {
   1556     int _fpu_cmp = 0;
   1557     uint32_t _cf = 0;
   1558     int _df = 1;
   1559     uint32_t _flag_k = FK_NONE;
   1560     uint32_t _flag_a = 0, _flag_b = 0;
   1561     uint32_t _itail_tgt = 0;
   1562     RECOMP_REGS_LOCALS
   1563     RECOMP_ENTER(0x3801B780u);
   1564 
   1565 L_3801B780:
   1566     goto L_3801B790; /* 0x3801B780: jmp 0x3801b790 */
   1567 L_3801B790:
   1568     MEM32(0x3806EBE8) = 0x3806BAD8u; /* 0x3801B790: mov dword ptr [0x3806ebe8], 0x3806bad8 */
   1569     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B79A: ret  */
   1570     RECOMP_REGS_OUT();
   1571 }
   1572 
   1573 void sub_3801B790(void) {
   1574     int _fpu_cmp = 0;
   1575     uint32_t _cf = 0;
   1576     int _df = 1;
   1577     uint32_t _flag_k = FK_NONE;
   1578     uint32_t _flag_a = 0, _flag_b = 0;
   1579     uint32_t _itail_tgt = 0;
   1580     RECOMP_REGS_LOCALS
   1581     RECOMP_ENTER(0x3801B790u);
   1582 
   1583 L_3801B790:
   1584     MEM32(0x3806EBE8) = 0x3806BAD8u; /* 0x3801B790: mov dword ptr [0x3806ebe8], 0x3806bad8 */
   1585     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B79A: ret  */
   1586     RECOMP_REGS_OUT();
   1587 }
   1588 
   1589 void sub_3801B7A0(void) {
   1590     int _fpu_cmp = 0;
   1591     uint32_t _cf = 0;
   1592     int _df = 1;
   1593     uint32_t _flag_k = FK_NONE;
   1594     uint32_t _flag_a = 0, _flag_b = 0;
   1595     uint32_t _itail_tgt = 0;
   1596     RECOMP_REGS_LOCALS
   1597     RECOMP_ENTER(0x3801B7A0u);
   1598 
   1599 L_3801B7A0:
   1600     goto L_3801B7B0; /* 0x3801B7A0: jmp 0x3801b7b0 */
   1601 L_3801B7B0:
   1602     MEM32(0x3806EBE4) = 0x3806BB10u; /* 0x3801B7B0: mov dword ptr [0x3806ebe4], 0x3806bb10 */
   1603     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B7BA: ret  */
   1604     RECOMP_REGS_OUT();
   1605 }
   1606 
   1607 void sub_3801B7B0(void) {
   1608     int _fpu_cmp = 0;
   1609     uint32_t _cf = 0;
   1610     int _df = 1;
   1611     uint32_t _flag_k = FK_NONE;
   1612     uint32_t _flag_a = 0, _flag_b = 0;
   1613     uint32_t _itail_tgt = 0;
   1614     RECOMP_REGS_LOCALS
   1615     RECOMP_ENTER(0x3801B7B0u);
   1616 
   1617 L_3801B7B0:
   1618     MEM32(0x3806EBE4) = 0x3806BB10u; /* 0x3801B7B0: mov dword ptr [0x3806ebe4], 0x3806bb10 */
   1619     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B7BA: ret  */
   1620     RECOMP_REGS_OUT();
   1621 }
   1622 
   1623 void sub_3801B7C0(void) {
   1624     int _fpu_cmp = 0;
   1625     uint32_t _cf = 0;
   1626     int _df = 1;
   1627     uint32_t _flag_k = FK_NONE;
   1628     uint32_t _flag_a = 0, _flag_b = 0;
   1629     uint32_t _itail_tgt = 0;
   1630     RECOMP_REGS_LOCALS
   1631     RECOMP_ENTER(0x3801B7C0u);
   1632 
   1633 L_3801B7C0:
   1634     goto L_3801B7D0; /* 0x3801B7C0: jmp 0x3801b7d0 */
   1635 L_3801B7D0:
   1636     MEM32(0x3806EBE0) = 0x3806BB4Cu; /* 0x3801B7D0: mov dword ptr [0x3806ebe0], 0x3806bb4c */
   1637     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B7DA: ret  */
   1638     RECOMP_REGS_OUT();
   1639 }
   1640 
   1641 void sub_3801B7D0(void) {
   1642     int _fpu_cmp = 0;
   1643     uint32_t _cf = 0;
   1644     int _df = 1;
   1645     uint32_t _flag_k = FK_NONE;
   1646     uint32_t _flag_a = 0, _flag_b = 0;
   1647     uint32_t _itail_tgt = 0;
   1648     RECOMP_REGS_LOCALS
   1649     RECOMP_ENTER(0x3801B7D0u);
   1650 
   1651 L_3801B7D0:
   1652     MEM32(0x3806EBE0) = 0x3806BB4Cu; /* 0x3801B7D0: mov dword ptr [0x3806ebe0], 0x3806bb4c */
   1653     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B7DA: ret  */
   1654     RECOMP_REGS_OUT();
   1655 }
   1656 
   1657 void sub_3801B7E0(void) {
   1658     int _fpu_cmp = 0;
   1659     uint32_t _cf = 0;
   1660     int _df = 1;
   1661     uint32_t _flag_k = FK_NONE;
   1662     uint32_t _flag_a = 0, _flag_b = 0;
   1663     uint32_t _itail_tgt = 0;
   1664     RECOMP_REGS_LOCALS
   1665     RECOMP_ENTER(0x3801B7E0u);
   1666 
   1667 L_3801B7E0:
   1668     goto L_3801B7F0; /* 0x3801B7E0: jmp 0x3801b7f0 */
   1669 L_3801B7F0:
   1670     MEM32(0x3806EBDC) = 0x3806BB84u; /* 0x3801B7F0: mov dword ptr [0x3806ebdc], 0x3806bb84 */
   1671     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B7FA: ret  */
   1672     RECOMP_REGS_OUT();
   1673 }
   1674 
   1675 void sub_3801B7F0(void) {
   1676     int _fpu_cmp = 0;
   1677     uint32_t _cf = 0;
   1678     int _df = 1;
   1679     uint32_t _flag_k = FK_NONE;
   1680     uint32_t _flag_a = 0, _flag_b = 0;
   1681     uint32_t _itail_tgt = 0;
   1682     RECOMP_REGS_LOCALS
   1683     RECOMP_ENTER(0x3801B7F0u);
   1684 
   1685 L_3801B7F0:
   1686     MEM32(0x3806EBDC) = 0x3806BB84u; /* 0x3801B7F0: mov dword ptr [0x3806ebdc], 0x3806bb84 */
   1687     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B7FA: ret  */
   1688     RECOMP_REGS_OUT();
   1689 }
   1690 
   1691 void sub_3801B800(void) {
   1692     int _fpu_cmp = 0;
   1693     uint32_t _cf = 0;
   1694     int _df = 1;
   1695     uint32_t _flag_k = FK_NONE;
   1696     uint32_t _flag_a = 0, _flag_b = 0;
   1697     uint32_t _itail_tgt = 0;
   1698     RECOMP_REGS_LOCALS
   1699     RECOMP_ENTER(0x3801B800u);
   1700 
   1701 L_3801B800:
   1702     goto L_3801B810; /* 0x3801B800: jmp 0x3801b810 */
   1703 L_3801B810:
   1704     MEM32(0x3806EBD8) = 0x3806BBB8u; /* 0x3801B810: mov dword ptr [0x3806ebd8], 0x3806bbb8 */
   1705     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B81A: ret  */
   1706     RECOMP_REGS_OUT();
   1707 }
   1708 
   1709 void sub_3801B810(void) {
   1710     int _fpu_cmp = 0;
   1711     uint32_t _cf = 0;
   1712     int _df = 1;
   1713     uint32_t _flag_k = FK_NONE;
   1714     uint32_t _flag_a = 0, _flag_b = 0;
   1715     uint32_t _itail_tgt = 0;
   1716     RECOMP_REGS_LOCALS
   1717     RECOMP_ENTER(0x3801B810u);
   1718 
   1719 L_3801B810:
   1720     MEM32(0x3806EBD8) = 0x3806BBB8u; /* 0x3801B810: mov dword ptr [0x3806ebd8], 0x3806bbb8 */
   1721     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B81A: ret  */
   1722     RECOMP_REGS_OUT();
   1723 }
   1724 
   1725 void sub_3801B820(void) {
   1726     int _fpu_cmp = 0;
   1727     uint32_t _cf = 0;
   1728     int _df = 1;
   1729     uint32_t _flag_k = FK_NONE;
   1730     uint32_t _flag_a = 0, _flag_b = 0;
   1731     uint32_t _itail_tgt = 0;
   1732     RECOMP_REGS_LOCALS
   1733     RECOMP_ENTER(0x3801B820u);
   1734 
   1735 L_3801B820:
   1736     goto L_3801B830; /* 0x3801B820: jmp 0x3801b830 */
   1737 L_3801B830:
   1738     MEM32(0x3806EBD4) = 0x3806BBF4u; /* 0x3801B830: mov dword ptr [0x3806ebd4], 0x3806bbf4 */
   1739     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B83A: ret  */
   1740     RECOMP_REGS_OUT();
   1741 }
   1742 
   1743 void sub_3801B830(void) {
   1744     int _fpu_cmp = 0;
   1745     uint32_t _cf = 0;
   1746     int _df = 1;
   1747     uint32_t _flag_k = FK_NONE;
   1748     uint32_t _flag_a = 0, _flag_b = 0;
   1749     uint32_t _itail_tgt = 0;
   1750     RECOMP_REGS_LOCALS
   1751     RECOMP_ENTER(0x3801B830u);
   1752 
   1753 L_3801B830:
   1754     MEM32(0x3806EBD4) = 0x3806BBF4u; /* 0x3801B830: mov dword ptr [0x3806ebd4], 0x3806bbf4 */
   1755     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B83A: ret  */
   1756     RECOMP_REGS_OUT();
   1757 }
   1758 
   1759 void sub_3801B840(void) {
   1760     int _fpu_cmp = 0;
   1761     uint32_t _cf = 0;
   1762     int _df = 1;
   1763     uint32_t _flag_k = FK_NONE;
   1764     uint32_t _flag_a = 0, _flag_b = 0;
   1765     uint32_t _itail_tgt = 0;
   1766     RECOMP_REGS_LOCALS
   1767     RECOMP_ENTER(0x3801B840u);
   1768 
   1769 L_3801B840:
   1770     goto L_3801B850; /* 0x3801B840: jmp 0x3801b850 */
   1771 L_3801B850:
   1772     MEM32(0x3806EBD0) = 0x3806BC2Cu; /* 0x3801B850: mov dword ptr [0x3806ebd0], 0x3806bc2c */
   1773     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B85A: ret  */
   1774     RECOMP_REGS_OUT();
   1775 }
   1776 
   1777 void sub_3801B850(void) {
   1778     int _fpu_cmp = 0;
   1779     uint32_t _cf = 0;
   1780     int _df = 1;
   1781     uint32_t _flag_k = FK_NONE;
   1782     uint32_t _flag_a = 0, _flag_b = 0;
   1783     uint32_t _itail_tgt = 0;
   1784     RECOMP_REGS_LOCALS
   1785     RECOMP_ENTER(0x3801B850u);
   1786 
   1787 L_3801B850:
   1788     MEM32(0x3806EBD0) = 0x3806BC2Cu; /* 0x3801B850: mov dword ptr [0x3806ebd0], 0x3806bc2c */
   1789     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801B85A: ret  */
   1790     RECOMP_REGS_OUT();
   1791 }
   1792 
   1793 void sub_3801B860(void) {
   1794     int _fpu_cmp = 0;
   1795     uint32_t _cf = 0;
   1796     int _df = 1;
   1797     uint32_t _flag_k = FK_NONE;
   1798     uint32_t _flag_a = 0, _flag_b = 0;
   1799     uint32_t _itail_tgt = 0;
   1800     RECOMP_REGS_LOCALS
   1801     RECOMP_ENTER(0x3801B860u);
   1802 
   1803 L_3801B860:
   1804     PUSH32(esp, ebp); /* 0x3801B860: push ebp */
   1805     ebp = esp; /* 0x3801B861: mov ebp, esp */
   1806     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801B863: push -1 */
   1807     PUSH32(esp, 0x3804C1E8u); /* 0x3801B865: push 0x3804c1e8 */
   1808     eax = MEM32(FS_BASE + (0)); /* 0x3801B86A: mov eax, dword ptr fs:[0] */
   1809     PUSH32(esp, eax); /* 0x3801B870: push eax */
   1810     MEM32(FS_BASE + (0)) = esp; /* 0x3801B871: mov dword ptr fs:[0], esp */
   1811     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1813     esp = esp - 8; /* 0x3801B878: sub esp, 8 */
   1814     _flag_k = FK_CMP;
   1815     PUSH32(esp, ebx); /* 0x3801B87B: push ebx */
   1816     ebx = MEM32(ebp + 0x8); /* 0x3801B87C: mov ebx, dword ptr [ebp + 8] */
   1817     SET_LO8(eax, MEM8(ebx)); /* 0x3801B87F: mov al, byte ptr [ebx] */
   1818     PUSH32(esp, esi); /* 0x3801B881: push esi */
   1819     PUSH32(esp, edi); /* 0x3801B882: push edi */
   1820     edi = ecx; /* 0x3801B883: mov edi, ecx */
   1821     PUSH32(esp, 0xCu); /* 0x3801B885: push 0xc */
   1822     MEM32(ebp + (-0x14)) = edi; /* 0x3801B887: mov dword ptr [ebp - 0x14], edi */
   1823     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3801B88A: mov byte ptr [edi], al */
   1824     RECOMP_ICALL(0x3804B676u); /* 0x3801B88C: call 0x3804b676 */ /* not lifted */
   1825     RECOMP_FLAGS_IN();
   1826     MEM32(eax) = eax; /* 0x3801B891: mov dword ptr [eax], eax */
   1827     MEM32(eax + 0x4) = eax; /* 0x3801B893: mov dword ptr [eax + 4], eax */
   1828     MEM32(edi + 0x4) = eax; /* 0x3801B896: mov dword ptr [edi + 4], eax */
   1829     MEM32(edi + 0x8) = 0; /* 0x3801B899: mov dword ptr [edi + 8], 0 */
   1830     ecx = MEM32(ebx + 0x4); /* 0x3801B8A0: mov ecx, dword ptr [ebx + 4] */
   1831     esi = MEM32(ecx); /* 0x3801B8A3: mov esi, dword ptr [ecx] */
   1832     eax = MEM32(eax); /* 0x3801B8A5: mov eax, dword ptr [eax] */
   1833     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1834     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1835     esp = esp + 4; /* 0x3801B8A7: add esp, 4 */
   1836     _flag_k = FK_ADD;
   1837     /* cmp esi, ecx */ /* 0x3801B8AA: cmp esi, ecx */
   1838     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   1839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1840     _flag_k = FK_CMP;
   1841     MEM32(ebp + (-0x10)) = ecx; /* 0x3801B8AC: mov dword ptr [ebp - 0x10], ecx */
   1842     MEM32(ebp + 0x8) = eax; /* 0x3801B8AF: mov dword ptr [ebp + 8], eax */
   1843     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B8F0; /* 0x3801B8B2: je 0x3801b8f0 */
   1844 L_3801B8B4:
   1845     goto L_3801B8B9; /* 0x3801B8B4: jmp 0x3801b8b9 */
   1846 L_3801B8B6:
   1847     eax = MEM32(ebp + 0x8); /* 0x3801B8B6: mov eax, dword ptr [ebp + 8] */
   1848 L_3801B8B9:
   1849     ecx = MEM32(eax + 0x4); /* 0x3801B8B9: mov ecx, dword ptr [eax + 4] */
   1850     PUSH32(esp, ecx); /* 0x3801B8BC: push ecx */
   1851     PUSH32(esp, eax); /* 0x3801B8BD: push eax */
   1852     ecx = edi; /* 0x3801B8BE: mov ecx, edi */
   1853     RECOMP_ICALL(0x3802E0F0u); /* 0x3801B8C0: call 0x3802e0f0 */ /* not lifted */
   1854     RECOMP_FLAGS_IN();
   1855     edx = MEM32(ebp + 0x8); /* 0x3801B8C5: mov edx, dword ptr [ebp + 8] */
   1856     MEM32(edx + 0x4) = eax; /* 0x3801B8C8: mov dword ptr [edx + 4], eax */
   1857     ecx = MEM32(eax + 0x4); /* 0x3801B8CB: mov ecx, dword ptr [eax + 4] */
   1858     MEM32(ecx) = eax; /* 0x3801B8CE: mov dword ptr [ecx], eax */
   1859     ecx = esi + 0x8; /* 0x3801B8D0: lea ecx, [esi + 8] */
   1860     PUSH32(esp, ecx); /* 0x3801B8D3: push ecx */
   1861     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   1862     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1863     eax = eax + 8; /* 0x3801B8D4: add eax, 8 */
   1864     _flag_k = FK_ADD;
   1865     PUSH32(esp, eax); /* 0x3801B8D7: push eax */
   1866     RECOMP_ICALL(0x3802F560u); /* 0x3801B8D8: call 0x3802f560 */ /* not lifted */
   1867     RECOMP_FLAGS_IN();
   1868     ecx = MEM32(edi + 0x8); /* 0x3801B8DD: mov ecx, dword ptr [edi + 8] */
   1869     eax = MEM32(ebp + (-0x10)); /* 0x3801B8E0: mov eax, dword ptr [ebp - 0x10] */
   1870     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1871     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1872     esp = esp + 8; /* 0x3801B8E3: add esp, 8 */
   1873     _flag_k = FK_ADD;
   1874     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1875     ecx = ecx + 1; /* 0x3801B8E6: inc ecx */
   1876     _flag_k = FK_INC;
   1877     MEM32(edi + 0x8) = ecx; /* 0x3801B8E7: mov dword ptr [edi + 8], ecx */
   1878     esi = MEM32(esi); /* 0x3801B8EA: mov esi, dword ptr [esi] */
   1879     /* cmp esi, eax */ /* 0x3801B8EC: cmp esi, eax */
   1880     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1882     _flag_k = FK_CMP;
   1883     RECOMP_BACKEDGE();
   1884     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B8B6; /* 0x3801B8EE: jne 0x3801b8b6 */
   1885 L_3801B8F0:
   1886     eax = MEM32(ebx + 0xC); /* 0x3801B8F0: mov eax, dword ptr [ebx + 0xc] */
   1887     MEM32(edi + 0xC) = eax; /* 0x3801B8F3: mov dword ptr [edi + 0xc], eax */
   1888     SET_LO8(ecx, MEM8(ebx + 0x10)); /* 0x3801B8F6: mov cl, byte ptr [ebx + 0x10] */
   1889     esi = edi + 0x10; /* 0x3801B8F9: lea esi, [edi + 0x10] */
   1890     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3801B8FC: mov byte ptr [esi], cl */
   1891     SET_LO8(edx, MEM8(ebx + 0x11)); /* 0x3801B8FE: mov dl, byte ptr [ebx + 0x11] */
   1892     MEM8(esi + 0x1) = (uint8_t)(LO8(edx)); /* 0x3801B901: mov byte ptr [esi + 1], dl */
   1893     SET_LO8(eax, MEM8(ebx + 0x1C)); /* 0x3801B904: mov al, byte ptr [ebx + 0x1c] */
   1894     PUSH32(esp, 0x24u); /* 0x3801B907: push 0x24 */
   1895     MEM32(ebp + (-0x4)) = 0; /* 0x3801B909: mov dword ptr [ebp - 4], 0 */
   1896     MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x3801B910: mov byte ptr [esi + 0xc], al */
   1897     RECOMP_ICALL(0x3804B676u); /* 0x3801B913: call 0x3804b676 */ /* not lifted */
   1898     RECOMP_FLAGS_IN();
   1899     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1900     ecx = 0; /* 0x3801B918: xor ecx, ecx */
   1901     _cf = 0;
   1902     _flag_k = FK_TEST;
   1903     MEM32(eax + 0x4) = ecx; /* 0x3801B91A: mov dword ptr [eax + 4], ecx */
   1904     MEM8(eax + 0x21) = (uint8_t)(LO8(ecx)); /* 0x3801B91D: mov byte ptr [eax + 0x21], cl */
   1905     SET_LO8(edx, 1); /* 0x3801B920: mov dl, 1 */
   1906     MEM8(eax + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801B922: mov byte ptr [eax + 0x20], dl */
   1907     MEM32(esi + 0x8) = eax; /* 0x3801B925: mov dword ptr [esi + 8], eax */
   1908     MEM8(eax + 0x21) = (uint8_t)(LO8(edx)); /* 0x3801B928: mov byte ptr [eax + 0x21], dl */
   1909     edx = MEM32(esi + 0x8); /* 0x3801B92B: mov edx, dword ptr [esi + 8] */
   1910     MEM32(edx) = ecx; /* 0x3801B92E: mov dword ptr [edx], ecx */
   1911     eax = MEM32(esi + 0x8); /* 0x3801B930: mov eax, dword ptr [esi + 8] */
   1912     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1913     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1914     esp = esp + 4; /* 0x3801B933: add esp, 4 */
   1915     _flag_k = FK_ADD;
   1916     PUSH32(esp, ecx); /* 0x3801B936: push ecx */
   1917     MEM32(eax + 0x8) = ecx; /* 0x3801B937: mov dword ptr [eax + 8], ecx */
   1918     ecx = MEM32(esi + 0x8); /* 0x3801B93A: mov ecx, dword ptr [esi + 8] */
   1919     PUSH32(esp, ecx); /* 0x3801B93D: push ecx */
   1920     ecx = esi; /* 0x3801B93E: mov ecx, esi */
   1921     RECOMP_ICALL(0x38025130u); /* 0x3801B940: call 0x38025130 */ /* not lifted */
   1922     RECOMP_FLAGS_IN();
   1923     MEM32(esi + 0x4) = eax; /* 0x3801B945: mov dword ptr [esi + 4], eax */
   1924     MEM32(eax) = eax; /* 0x3801B948: mov dword ptr [eax], eax */
   1925     eax = MEM32(esi + 0x4); /* 0x3801B94A: mov eax, dword ptr [esi + 4] */
   1926     MEM32(eax + 0x8) = eax; /* 0x3801B94D: mov dword ptr [eax + 8], eax */
   1927     eax = MEM32(esi + 0x4); /* 0x3801B950: mov eax, dword ptr [esi + 4] */
   1928     MEM32(esi + 0x10) = 0; /* 0x3801B953: mov dword ptr [esi + 0x10], 0 */
   1929     edx = MEM32(ebx + 0x14); /* 0x3801B95A: mov edx, dword ptr [ebx + 0x14] */
   1930     PUSH32(esp, eax); /* 0x3801B95D: push eax */
   1931     MEM32(ebp + 0x8) = eax; /* 0x3801B95E: mov dword ptr [ebp + 8], eax */
   1932     eax = MEM32(edx + 0x4); /* 0x3801B961: mov eax, dword ptr [edx + 4] */
   1933     PUSH32(esp, eax); /* 0x3801B964: push eax */
   1934     ecx = esi; /* 0x3801B965: mov ecx, esi */
   1935     RECOMP_ICALL(0x3801CFD0u); /* 0x3801B967: call 0x3801cfd0 */ /* not lifted */
   1936     RECOMP_FLAGS_IN();
   1937     ecx = MEM32(ebp + 0x8); /* 0x3801B96C: mov ecx, dword ptr [ebp + 8] */
   1938     MEM32(ecx + 0x4) = eax; /* 0x3801B96F: mov dword ptr [ecx + 4], eax */
   1939     edx = MEM32(ebx + 0x20); /* 0x3801B972: mov edx, dword ptr [ebx + 0x20] */
   1940     ebx = MEM32(esi + 0x4); /* 0x3801B975: mov ebx, dword ptr [esi + 4] */
   1941     ecx = MEM32(esi + 0x8); /* 0x3801B978: mov ecx, dword ptr [esi + 8] */
   1942     MEM32(esi + 0x10) = edx; /* 0x3801B97B: mov dword ptr [esi + 0x10], edx */
   1943     eax = MEM32(ebx + 0x4); /* 0x3801B97E: mov eax, dword ptr [ebx + 4] */
   1944     /* cmp eax, ecx */ /* 0x3801B981: cmp eax, ecx */
   1945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1947     _flag_k = FK_CMP;
   1948     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B9A1; /* 0x3801B983: je 0x3801b9a1 */
   1949 L_3801B985:
   1950     PUSH32(esp, eax); /* 0x3801B985: push eax */
   1951     RECOMP_ICALL(0x38020B00u); /* 0x3801B986: call 0x38020b00 */ /* not lifted */
   1952     RECOMP_FLAGS_IN();
   1953     MEM32(ebx) = eax; /* 0x3801B98B: mov dword ptr [ebx], eax */
   1954     esi = MEM32(esi + 0x4); /* 0x3801B98D: mov esi, dword ptr [esi + 4] */
   1955     eax = MEM32(esi + 0x4); /* 0x3801B990: mov eax, dword ptr [esi + 4] */
   1956     PUSH32(esp, eax); /* 0x3801B993: push eax */
   1957     RECOMP_ICALL(0x3801D0B0u); /* 0x3801B994: call 0x3801d0b0 */ /* not lifted */
   1958     RECOMP_FLAGS_IN();
   1959     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1960     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1961     esp = esp + 8; /* 0x3801B999: add esp, 8 */
   1962     _flag_k = FK_ADD;
   1963     MEM32(esi + 0x8) = eax; /* 0x3801B99C: mov dword ptr [esi + 8], eax */
   1964     goto L_3801B9A9; /* 0x3801B99F: jmp 0x3801b9a9 */
   1965 L_3801B9A1:
   1966     MEM32(ebx) = ebx; /* 0x3801B9A1: mov dword ptr [ebx], ebx */
   1967     esi = MEM32(esi + 0x4); /* 0x3801B9A3: mov esi, dword ptr [esi + 4] */
   1968     MEM32(esi + 0x8) = esi; /* 0x3801B9A6: mov dword ptr [esi + 8], esi */
   1969 L_3801B9A9:
   1970     ecx = MEM32(ebp + (-0xC)); /* 0x3801B9A9: mov ecx, dword ptr [ebp - 0xc] */
   1971     eax = edi; /* 0x3801B9AC: mov eax, edi */
   1972     edi = POP32_VAL(esp); /* 0x3801B9AE: pop edi */
   1973     esi = POP32_VAL(esp); /* 0x3801B9AF: pop esi */
   1974     ebx = POP32_VAL(esp); /* 0x3801B9B0: pop ebx */
   1975     MEM32(FS_BASE + (0)) = ecx; /* 0x3801B9B1: mov dword ptr fs:[0], ecx */
   1976     esp = ebp; /* 0x3801B9B8: mov esp, ebp */
   1977     ebp = POP32_VAL(esp); /* 0x3801B9BA: pop ebp */
   1978     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801B9BB: ret 4 */
   1979     RECOMP_REGS_OUT();
   1980 }
   1981 
   1982 void sub_3801B9C0(void) {
   1983     int _fpu_cmp = 0;
   1984     uint32_t _cf = 0;
   1985     int _df = 1;
   1986     uint32_t _flag_k = FK_NONE;
   1987     uint32_t _flag_a = 0, _flag_b = 0;
   1988     uint32_t _itail_tgt = 0;
   1989     RECOMP_REGS_LOCALS
   1990     RECOMP_ENTER(0x3801B9C0u);
   1991 
   1992 L_3801B9C0:
   1993     PUSH32(esp, ebp); /* 0x3801B9C0: push ebp */
   1994     ebp = esp; /* 0x3801B9C1: mov ebp, esp */
   1995     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1996     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1997     esp = esp - 0xCu; /* 0x3801B9C3: sub esp, 0xc */
   1998     _flag_k = FK_CMP;
   1999     edx = MEM32(ebp + 0x8); /* 0x3801B9C6: mov edx, dword ptr [ebp + 8] */
   2000     /* cmp ecx, edx */ /* 0x3801B9C9: cmp ecx, edx */
   2001     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2003     _flag_k = FK_CMP;
   2004     PUSH32(esp, ebx); /* 0x3801B9CB: push ebx */
   2005     PUSH32(esp, esi); /* 0x3801B9CC: push esi */
   2006     PUSH32(esp, edi); /* 0x3801B9CD: push edi */
   2007     MEM32(ebp + (-0x4)) = ecx; /* 0x3801B9CE: mov dword ptr [ebp - 4], ecx */
   2008     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BA35; /* 0x3801B9D1: je 0x3801ba35 */
   2009 L_3801B9D3:
   2010     esi = MEM32(ecx + 0x4); /* 0x3801B9D3: mov esi, dword ptr [ecx + 4] */
   2011     eax = MEM32(esi); /* 0x3801B9D6: mov eax, dword ptr [esi] */
   2012     /* cmp eax, esi */ /* 0x3801B9D8: cmp eax, esi */
   2013     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2015     _flag_k = FK_CMP;
   2016     edx = MEM32(edx + 0x4); /* 0x3801B9DA: mov edx, dword ptr [edx + 4] */
   2017     ebx = MEM32(edx); /* 0x3801B9DD: mov ebx, dword ptr [edx] */
   2018     MEM32(ebp + (-0x8)) = edx; /* 0x3801B9DF: mov dword ptr [ebp - 8], edx */
   2019     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B9F6; /* 0x3801B9E2: je 0x3801b9f6 */
   2020 L_3801B9E4:
   2021     /* cmp ebx, edx */ /* 0x3801B9E4: cmp ebx, edx */
   2022     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   2023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2024     _flag_k = FK_CMP;
   2025     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801B9F6; /* 0x3801B9E6: je 0x3801b9f6 */
   2026 L_3801B9E8:
   2027     edi = MEM32(ebx + 0x8); /* 0x3801B9E8: mov edi, dword ptr [ebx + 8] */
   2028     MEM32(eax + 0x8) = edi; /* 0x3801B9EB: mov dword ptr [eax + 8], edi */
   2029     eax = MEM32(eax); /* 0x3801B9EE: mov eax, dword ptr [eax] */
   2030     /* cmp eax, esi */ /* 0x3801B9F0: cmp eax, esi */
   2031     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2033     _flag_k = FK_CMP;
   2034     ebx = MEM32(ebx); /* 0x3801B9F2: mov ebx, dword ptr [ebx] */
   2035     RECOMP_BACKEDGE();
   2036     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B9E4; /* 0x3801B9F4: jne 0x3801b9e4 */
   2037 L_3801B9F6:
   2038     /* cmp eax, esi */ /* 0x3801B9F6: cmp eax, esi */
   2039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2041     _flag_k = FK_CMP;
   2042     edi = eax; /* 0x3801B9F8: mov edi, eax */
   2043     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BA14; /* 0x3801B9FA: je 0x3801ba14 */
   2044 L_3801B9FC:
   2045     eax = edi; /* 0x3801B9FC: mov eax, edi */
   2046     edi = MEM32(edi); /* 0x3801B9FE: mov edi, dword ptr [edi] */
   2047     PUSH32(esp, eax); /* 0x3801BA00: push eax */
   2048     eax = ebp + (-0xC); /* 0x3801BA01: lea eax, [ebp - 0xc] */
   2049     PUSH32(esp, eax); /* 0x3801BA04: push eax */
   2050     RECOMP_ICALL(0x3801CBD0u); /* 0x3801BA05: call 0x3801cbd0 */ /* not lifted */
   2051     RECOMP_FLAGS_IN();
   2052     /* cmp edi, esi */ /* 0x3801BA0A: cmp edi, esi */
   2053     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   2054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2055     _flag_k = FK_CMP;
   2056     ecx = MEM32(ebp + (-0x4)); /* 0x3801BA0C: mov ecx, dword ptr [ebp - 4] */
   2057     RECOMP_BACKEDGE();
   2058     if (CMP_NE(_flag_a, _flag_b)) goto L_3801B9FC; /* 0x3801BA0F: jne 0x3801b9fc */
   2059 L_3801BA11:
   2060     edx = MEM32(ebp + (-0x8)); /* 0x3801BA11: mov edx, dword ptr [ebp - 8] */
   2061 L_3801BA14:
   2062     /* cmp ebx, edx */ /* 0x3801BA14: cmp ebx, edx */
   2063     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   2064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2065     _flag_k = FK_CMP;
   2066     edi = ebx; /* 0x3801BA16: mov edi, ebx */
   2067     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BA32; /* 0x3801BA18: je 0x3801ba32 */
   2068 L_3801BA1A:
   2069     edx = edi + 0x8; /* 0x3801BA1A: lea edx, [edi + 8] */
   2070     PUSH32(esp, edx); /* 0x3801BA1D: push edx */
   2071     PUSH32(esp, esi); /* 0x3801BA1E: push esi */
   2072     eax = ebp + (-0xC); /* 0x3801BA1F: lea eax, [ebp - 0xc] */
   2073     PUSH32(esp, eax); /* 0x3801BA22: push eax */
   2074     RECOMP_ICALL(0x3801CB70u); /* 0x3801BA23: call 0x3801cb70 */ /* not lifted */
   2075     RECOMP_FLAGS_IN();
   2076     edi = MEM32(edi); /* 0x3801BA28: mov edi, dword ptr [edi] */
   2077     /* cmp edi, MEM32(ebp + (-0x8)) */ /* 0x3801BA2A: cmp edi, dword ptr [ebp - 8] */
   2078     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x8)));
   2079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2080     _flag_k = FK_CMP;
   2081     ecx = MEM32(ebp + (-0x4)); /* 0x3801BA2D: mov ecx, dword ptr [ebp - 4] */
   2082     RECOMP_BACKEDGE();
   2083     if (CMP_NE(_flag_a, _flag_b)) goto L_3801BA1A; /* 0x3801BA30: jne 0x3801ba1a */
   2084 L_3801BA32:
   2085     edx = MEM32(ebp + 0x8); /* 0x3801BA32: mov edx, dword ptr [ebp + 8] */
   2086 L_3801BA35:
   2087     eax = MEM32(edx + 0xC); /* 0x3801BA35: mov eax, dword ptr [edx + 0xc] */
   2088     ebx = edx + 0x10; /* 0x3801BA38: lea ebx, [edx + 0x10] */
   2089     esi = ecx + 0x10; /* 0x3801BA3B: lea esi, [ecx + 0x10] */
   2090     /* cmp esi, ebx */ /* 0x3801BA3E: cmp esi, ebx */
   2091     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2092     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2093     _flag_k = FK_CMP;
   2094     MEM32(ecx + 0xC) = eax; /* 0x3801BA40: mov dword ptr [ecx + 0xc], eax */
   2095     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BAD4; /* 0x3801BA43: je 0x3801bad4 */
   2096 L_3801BA49:
   2097     edi = MEM32(esi + 0x4); /* 0x3801BA49: mov edi, dword ptr [esi + 4] */
   2098     ecx = MEM32(esi + 0x10); /* 0x3801BA4C: mov ecx, dword ptr [esi + 0x10] */
   2099     /* test ecx, ecx */ /* 0x3801BA4F: test ecx, ecx */
   2100     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2101     _cf = 0;
   2102     _flag_k = FK_TEST;
   2103     eax = MEM32(edi); /* 0x3801BA51: mov eax, dword ptr [edi] */
   2104     MEM32(ebp + 0x8) = eax; /* 0x3801BA53: mov dword ptr [ebp + 8], eax */
   2105     if (TEST_Z(_flag_a, _flag_b)) goto L_3801BA95; /* 0x3801BA56: je 0x3801ba95 */
   2106 L_3801BA58:
   2107     ecx = eax; /* 0x3801BA58: mov ecx, eax */
   2108     /* cmp eax, ecx */ /* 0x3801BA5A: cmp eax, ecx */
   2109     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2110     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2111     _flag_k = FK_CMP;
   2112     if (CMP_NE(_flag_a, _flag_b)) goto L_3801BA95; /* 0x3801BA5C: jne 0x3801ba95 */
   2113 L_3801BA5E:
   2114     /* cmp edi, edi */ /* 0x3801BA5E: cmp edi, edi */
   2115     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2117     _flag_k = FK_CMP;
   2118     if (CMP_NE(_flag_a, _flag_b)) goto L_3801BA95; /* 0x3801BA60: jne 0x3801ba95 */
   2119 L_3801BA62:
   2120     ecx = MEM32(edi + 0x4); /* 0x3801BA62: mov ecx, dword ptr [edi + 4] */
   2121     PUSH32(esp, ecx); /* 0x3801BA65: push ecx */
   2122     ecx = esi; /* 0x3801BA66: mov ecx, esi */
   2123     RECOMP_ICALL(0x3801D070u); /* 0x3801BA68: call 0x3801d070 */ /* not lifted */
   2124     RECOMP_FLAGS_IN();
   2125     eax = MEM32(esi + 0x8); /* 0x3801BA6D: mov eax, dword ptr [esi + 8] */
   2126     edx = MEM32(esi + 0x4); /* 0x3801BA70: mov edx, dword ptr [esi + 4] */
   2127     MEM32(edx + 0x4) = eax; /* 0x3801BA73: mov dword ptr [edx + 4], eax */
   2128     eax = MEM32(esi + 0x4); /* 0x3801BA76: mov eax, dword ptr [esi + 4] */
   2129     MEM32(esi + 0x10) = 0; /* 0x3801BA79: mov dword ptr [esi + 0x10], 0 */
   2130     MEM32(eax) = eax; /* 0x3801BA80: mov dword ptr [eax], eax */
   2131     eax = MEM32(esi + 0x4); /* 0x3801BA82: mov eax, dword ptr [esi + 4] */
   2132     ecx = ebp + (-0xC); /* 0x3801BA85: lea ecx, [ebp - 0xc] */
   2133     PUSH32(esp, ecx); /* 0x3801BA88: push ecx */
   2134     ecx = esi; /* 0x3801BA89: mov ecx, esi */
   2135     MEM32(eax + 0x8) = eax; /* 0x3801BA8B: mov dword ptr [eax + 8], eax */
   2136     RECOMP_ICALL(0x380354C0u); /* 0x3801BA8E: call 0x380354c0 */ /* not lifted */
   2137     RECOMP_FLAGS_IN();
   2138     goto L_3801BABA; /* 0x3801BA93: jmp 0x3801baba */
   2139 L_3801BA95:
   2140     /* cmp eax, edi */ /* 0x3801BA95: cmp eax, edi */
   2141     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2142     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2143     _flag_k = FK_CMP;
   2144     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BABA; /* 0x3801BA97: je 0x3801baba */
   2145 L_3801BA99:
   2146     PUSH32(esp, 0); /* 0x3801BA99: push 0 */
   2147     edx = ebp + (-0xC); /* 0x3801BA9B: lea edx, [ebp - 0xc] */
   2148     PUSH32(esp, edx); /* 0x3801BA9E: push edx */
   2149     ecx = ebp + 0x8; /* 0x3801BA9F: lea ecx, [ebp + 8] */
   2150     RECOMP_ICALL(0x3801D0D0u); /* 0x3801BAA2: call 0x3801d0d0 */ /* not lifted */
   2151     RECOMP_FLAGS_IN();
   2152     eax = MEM32(eax); /* 0x3801BAA7: mov eax, dword ptr [eax] */
   2153     PUSH32(esp, eax); /* 0x3801BAA9: push eax */
   2154     ecx = ebp + (-0x8); /* 0x3801BAAA: lea ecx, [ebp - 8] */
   2155     PUSH32(esp, ecx); /* 0x3801BAAD: push ecx */
   2156     ecx = esi; /* 0x3801BAAE: mov ecx, esi */
   2157     RECOMP_ICALL(0x3801CC10u); /* 0x3801BAB0: call 0x3801cc10 */ /* not lifted */
   2158     RECOMP_FLAGS_IN();
   2159     /* cmp MEM32(ebp + 0x8), edi */ /* 0x3801BAB5: cmp dword ptr [ebp + 8], edi */
   2160     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(edi);
   2161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2162     _flag_k = FK_CMP;
   2163     RECOMP_BACKEDGE();
   2164     if (CMP_NE(_flag_a, _flag_b)) goto L_3801BA99; /* 0x3801BAB8: jne 0x3801ba99 */
   2165 L_3801BABA:
   2166     SET_LO8(edx, MEM8(ebx + 0x1)); /* 0x3801BABA: mov dl, byte ptr [ebx + 1] */
   2167     PUSH32(esp, ebx); /* 0x3801BABD: push ebx */
   2168     ecx = esi; /* 0x3801BABE: mov ecx, esi */
   2169     MEM8(esi + 0x1) = (uint8_t)(LO8(edx)); /* 0x3801BAC0: mov byte ptr [esi + 1], dl */
   2170     RECOMP_ICALL(0x3801C770u); /* 0x3801BAC3: call 0x3801c770 */ /* not lifted */
   2171     RECOMP_FLAGS_IN();
   2172     eax = MEM32(ebp + (-0x4)); /* 0x3801BAC8: mov eax, dword ptr [ebp - 4] */
   2173     edi = POP32_VAL(esp); /* 0x3801BACB: pop edi */
   2174     esi = POP32_VAL(esp); /* 0x3801BACC: pop esi */
   2175     ebx = POP32_VAL(esp); /* 0x3801BACD: pop ebx */
   2176     esp = ebp; /* 0x3801BACE: mov esp, ebp */
   2177     ebp = POP32_VAL(esp); /* 0x3801BAD0: pop ebp */
   2178     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801BAD1: ret 4 */
   2179 L_3801BAD4:
   2180     edi = POP32_VAL(esp); /* 0x3801BAD4: pop edi */
   2181     esi = POP32_VAL(esp); /* 0x3801BAD5: pop esi */
   2182     eax = ecx; /* 0x3801BAD6: mov eax, ecx */
   2183     ebx = POP32_VAL(esp); /* 0x3801BAD8: pop ebx */
   2184     esp = ebp; /* 0x3801BAD9: mov esp, ebp */
   2185     ebp = POP32_VAL(esp); /* 0x3801BADB: pop ebp */
   2186     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801BADC: ret 4 */
   2187     RECOMP_REGS_OUT();
   2188 }
   2189 
   2190 void sub_3801BAE0(void) {
   2191     int _fpu_cmp = 0;
   2192     uint32_t _cf = 0;
   2193     int _df = 1;
   2194     uint32_t _flag_k = FK_NONE;
   2195     uint32_t _flag_a = 0, _flag_b = 0;
   2196     uint32_t _itail_tgt = 0;
   2197     RECOMP_REGS_LOCALS
   2198     RECOMP_ENTER(0x3801BAE0u);
   2199 
   2200 L_3801BAE0:
   2201     PUSH32(esp, ebp); /* 0x3801BAE0: push ebp */
   2202     ebp = esp; /* 0x3801BAE1: mov ebp, esp */
   2203     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801BAE3: push -1 */
   2204     PUSH32(esp, 0x3804C243u); /* 0x3801BAE5: push 0x3804c243 */
   2205     eax = MEM32(FS_BASE + (0)); /* 0x3801BAEA: mov eax, dword ptr fs:[0] */
   2206     PUSH32(esp, eax); /* 0x3801BAF0: push eax */
   2207     MEM32(FS_BASE + (0)) = esp; /* 0x3801BAF1: mov dword ptr fs:[0], esp */
   2208     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2210     esp = esp - 0x10u; /* 0x3801BAF8: sub esp, 0x10 */
   2211     _flag_k = FK_CMP;
   2212     PUSH32(esp, ebx); /* 0x3801BAFB: push ebx */
   2213     PUSH32(esp, esi); /* 0x3801BAFC: push esi */
   2214     esi = ecx; /* 0x3801BAFD: mov esi, ecx */
   2215     PUSH32(esp, edi); /* 0x3801BAFF: push edi */
   2216     PUSH32(esp, 0x800u); /* 0x3801BB00: push 0x800 */
   2217     ecx = esi + 0x4; /* 0x3801BB05: lea ecx, [esi + 4] */
   2218     MEM32(ebp + (-0x18)) = esi; /* 0x3801BB08: mov dword ptr [ebp - 0x18], esi */
   2219     RECOMP_ICALL(MEM32(0x3804E384)); /* 0x3801BB0B: call dword ptr [0x3804e384] */
   2220     RECOMP_FLAGS_IN();
   2221     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2222     ebx = 0; /* 0x3801BB11: xor ebx, ebx */
   2223     _cf = 0;
   2224     _flag_k = FK_TEST;
   2225     MEM32(esi + 0x48) = ebx; /* 0x3801BB13: mov dword ptr [esi + 0x48], ebx */
   2226     MEM32(esi + 0x4C) = ebx; /* 0x3801BB16: mov dword ptr [esi + 0x4c], ebx */
   2227     MEM32(esi + 0x50) = ebx; /* 0x3801BB19: mov dword ptr [esi + 0x50], ebx */
   2228     MEM32(esi + 0x54) = ebx; /* 0x3801BB1C: mov dword ptr [esi + 0x54], ebx */
   2229     MEM8(esi + 0x58) = (uint8_t)(LO8(ebx)); /* 0x3801BB1F: mov byte ptr [esi + 0x58], bl */
   2230     MEM32(esi + 0x5C) = ebx; /* 0x3801BB22: mov dword ptr [esi + 0x5c], ebx */
   2231     MEM32(esi + 0x60) = ebx; /* 0x3801BB25: mov dword ptr [esi + 0x60], ebx */
   2232     MEM32(esi + 0x64) = ebx; /* 0x3801BB28: mov dword ptr [esi + 0x64], ebx */
   2233     MEM32(esi + 0x68) = ebx; /* 0x3801BB2B: mov dword ptr [esi + 0x68], ebx */
   2234     MEM32(esi + 0x6C) = ebx; /* 0x3801BB2E: mov dword ptr [esi + 0x6c], ebx */
   2235     MEM32(esi + 0x70) = ebx; /* 0x3801BB31: mov dword ptr [esi + 0x70], ebx */
   2236     MEM32(esi + 0x74) = ebx; /* 0x3801BB34: mov dword ptr [esi + 0x74], ebx */
   2237     MEM32(esi + 0x78) = ebx; /* 0x3801BB37: mov dword ptr [esi + 0x78], ebx */
   2238     MEM32(esi + 0x7C) = ebx; /* 0x3801BB3A: mov dword ptr [esi + 0x7c], ebx */
   2239     MEM32(esi) = 0x3804F104u; /* 0x3801BB3D: mov dword ptr [esi], 0x3804f104 */
   2240     PUSH32(esp, 8); /* 0x3801BB43: push 8 */
   2241     MEM32(ebp + (-0x4)) = ebx; /* 0x3801BB45: mov dword ptr [ebp - 4], ebx */
   2242     MEM32(0x3806EC04) = esi; /* 0x3801BB48: mov dword ptr [0x3806ec04], esi */
   2243     RECOMP_ICALL(0x3804B676u); /* 0x3801BB4E: call 0x3804b676 */ /* not lifted */
   2244     RECOMP_FLAGS_IN();
   2245     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2246     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2247     esp = esp + 4; /* 0x3801BB53: add esp, 4 */
   2248     _flag_k = FK_ADD;
   2249     MEM32(ebp + (-0x14)) = eax; /* 0x3801BB56: mov dword ptr [ebp - 0x14], eax */
   2250     /* cmp eax, ebx */ /* 0x3801BB59: cmp eax, ebx */
   2251     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2253     _flag_k = FK_CMP;
   2254     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3801BB5B: mov byte ptr [ebp - 4], 1 */
   2255     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BB6A; /* 0x3801BB5F: je 0x3801bb6a */
   2256 L_3801BB61:
   2257     ecx = eax; /* 0x3801BB61: mov ecx, eax */
   2258     RECOMP_ICALL(0x380214F0u); /* 0x3801BB63: call 0x380214f0 */ /* not lifted */
   2259     RECOMP_FLAGS_IN();
   2260     goto L_3801BB6C; /* 0x3801BB68: jmp 0x3801bb6c */
   2261 L_3801BB6A:
   2262     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2263     eax = 0; /* 0x3801BB6A: xor eax, eax */
   2264     _cf = 0;
   2265     _flag_k = FK_TEST;
   2266 L_3801BB6C:
   2267     PUSH32(esp, 8); /* 0x3801BB6C: push 8 */
   2268     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3801BB6E: mov byte ptr [ebp - 4], bl */
   2269     MEM32(esi + 0x48) = eax; /* 0x3801BB71: mov dword ptr [esi + 0x48], eax */
   2270     RECOMP_ICALL(0x3804B676u); /* 0x3801BB74: call 0x3804b676 */ /* not lifted */
   2271     RECOMP_FLAGS_IN();
   2272     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2273     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2274     esp = esp + 4; /* 0x3801BB79: add esp, 4 */
   2275     _flag_k = FK_ADD;
   2276     MEM32(ebp + (-0x14)) = eax; /* 0x3801BB7C: mov dword ptr [ebp - 0x14], eax */
   2277     /* cmp eax, ebx */ /* 0x3801BB7F: cmp eax, ebx */
   2278     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2280     _flag_k = FK_CMP;
   2281     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3801BB81: mov byte ptr [ebp - 4], 2 */
   2282     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BB90; /* 0x3801BB85: je 0x3801bb90 */
   2283 L_3801BB87:
   2284     ecx = eax; /* 0x3801BB87: mov ecx, eax */
   2285     RECOMP_ICALL(0x380214F0u); /* 0x3801BB89: call 0x380214f0 */ /* not lifted */
   2286     RECOMP_FLAGS_IN();
   2287     goto L_3801BB92; /* 0x3801BB8E: jmp 0x3801bb92 */
   2288 L_3801BB90:
   2289     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2290     eax = 0; /* 0x3801BB90: xor eax, eax */
   2291     _cf = 0;
   2292     _flag_k = FK_TEST;
   2293 L_3801BB92:
   2294     PUSH32(esp, 8); /* 0x3801BB92: push 8 */
   2295     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3801BB94: mov byte ptr [ebp - 4], bl */
   2296     MEM32(esi + 0x4C) = eax; /* 0x3801BB97: mov dword ptr [esi + 0x4c], eax */
   2297     RECOMP_ICALL(0x3804B676u); /* 0x3801BB9A: call 0x3804b676 */ /* not lifted */
   2298     RECOMP_FLAGS_IN();
   2299     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2300     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2301     esp = esp + 4; /* 0x3801BB9F: add esp, 4 */
   2302     _flag_k = FK_ADD;
   2303     MEM32(ebp + (-0x14)) = eax; /* 0x3801BBA2: mov dword ptr [ebp - 0x14], eax */
   2304     /* cmp eax, ebx */ /* 0x3801BBA5: cmp eax, ebx */
   2305     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2307     _flag_k = FK_CMP;
   2308     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3801BBA7: mov byte ptr [ebp - 4], 3 */
   2309     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BBB6; /* 0x3801BBAB: je 0x3801bbb6 */
   2310 L_3801BBAD:
   2311     ecx = eax; /* 0x3801BBAD: mov ecx, eax */
   2312     RECOMP_ICALL(0x380214F0u); /* 0x3801BBAF: call 0x380214f0 */ /* not lifted */
   2313     RECOMP_FLAGS_IN();
   2314     goto L_3801BBB8; /* 0x3801BBB4: jmp 0x3801bbb8 */
   2315 L_3801BBB6:
   2316     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2317     eax = 0; /* 0x3801BBB6: xor eax, eax */
   2318     _cf = 0;
   2319     _flag_k = FK_TEST;
   2320 L_3801BBB8:
   2321     PUSH32(esp, 0x14u); /* 0x3801BBB8: push 0x14 */
   2322     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3801BBBA: mov byte ptr [ebp - 4], bl */
   2323     MEM32(esi + 0x50) = eax; /* 0x3801BBBD: mov dword ptr [esi + 0x50], eax */
   2324     RECOMP_ICALL(0x3804B676u); /* 0x3801BBC0: call 0x3804b676 */ /* not lifted */
   2325     RECOMP_FLAGS_IN();
   2326     edi = eax; /* 0x3801BBC5: mov edi, eax */
   2327     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2328     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2329     esp = esp + 4; /* 0x3801BBC7: add esp, 4 */
   2330     _flag_k = FK_ADD;
   2331     MEM32(ebp + (-0x1C)) = edi; /* 0x3801BBCA: mov dword ptr [ebp - 0x1c], edi */
   2332     /* cmp edi, ebx */ /* 0x3801BBCD: cmp edi, ebx */
   2333     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2335     _flag_k = FK_CMP;
   2336     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3801BBCF: mov byte ptr [ebp - 4], 4 */
   2337     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BC32; /* 0x3801BBD3: je 0x3801bc32 */
   2338 L_3801BBD5:
   2339     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3801BBD5: mov al, byte ptr [ebp - 0xd] */
   2340     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3801BBD8: mov cl, byte ptr [ebp - 0xd] */
   2341     PUSH32(esp, 0x18u); /* 0x3801BBDB: push 0x18 */
   2342     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3801BBDD: mov byte ptr [edi], al */
   2343     MEM8(edi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3801BBDF: mov byte ptr [edi + 1], cl */
   2344     MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3801BBE2: mov byte ptr [edi + 0xc], bl */
   2345     RECOMP_ICALL(0x3804B676u); /* 0x3801BBE5: call 0x3804b676 */ /* not lifted */
   2346     RECOMP_FLAGS_IN();
   2347     MEM32(eax + 0x4) = ebx; /* 0x3801BBEA: mov dword ptr [eax + 4], ebx */
   2348     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3801BBED: mov byte ptr [eax + 0x14], 1 */
   2349     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3801BBF1: mov byte ptr [eax + 0x15], bl */
   2350     MEM32(edi + 0x8) = eax; /* 0x3801BBF4: mov dword ptr [edi + 8], eax */
   2351     MEM8(eax + 0x15) = (uint8_t)(1); /* 0x3801BBF7: mov byte ptr [eax + 0x15], 1 */
   2352     eax = MEM32(edi + 0x8); /* 0x3801BBFB: mov eax, dword ptr [edi + 8] */
   2353     MEM32(eax) = ebx; /* 0x3801BBFE: mov dword ptr [eax], ebx */
   2354     edx = MEM32(edi + 0x8); /* 0x3801BC00: mov edx, dword ptr [edi + 8] */
   2355     MEM32(edx + 0x8) = ebx; /* 0x3801BC03: mov dword ptr [edx + 8], ebx */
   2356     eax = MEM32(edi + 0x8); /* 0x3801BC06: mov eax, dword ptr [edi + 8] */
   2357     PUSH32(esp, 0x18u); /* 0x3801BC09: push 0x18 */
   2358     MEM32(ebp + (-0x14)) = eax; /* 0x3801BC0B: mov dword ptr [ebp - 0x14], eax */
   2359     RECOMP_ICALL(0x3804B676u); /* 0x3801BC0E: call 0x3804b676 */ /* not lifted */
   2360     RECOMP_FLAGS_IN();
   2361     ecx = MEM32(ebp + (-0x14)); /* 0x3801BC13: mov ecx, dword ptr [ebp - 0x14] */
   2362     MEM32(eax + 0x4) = ecx; /* 0x3801BC16: mov dword ptr [eax + 4], ecx */
   2363     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801BC19: mov byte ptr [eax + 0x14], bl */
   2364     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3801BC1C: mov byte ptr [eax + 0x15], bl */
   2365     MEM32(edi + 0x4) = eax; /* 0x3801BC1F: mov dword ptr [edi + 4], eax */
   2366     MEM32(eax) = eax; /* 0x3801BC22: mov dword ptr [eax], eax */
   2367     eax = MEM32(edi + 0x4); /* 0x3801BC24: mov eax, dword ptr [edi + 4] */
   2368     MEM32(eax + 0x8) = eax; /* 0x3801BC27: mov dword ptr [eax + 8], eax */
   2369     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2370     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2371     esp = esp + 8; /* 0x3801BC2A: add esp, 8 */
   2372     _flag_k = FK_ADD;
   2373     MEM32(edi + 0x10) = ebx; /* 0x3801BC2D: mov dword ptr [edi + 0x10], ebx */
   2374     goto L_3801BC34; /* 0x3801BC30: jmp 0x3801bc34 */
   2375 L_3801BC32:
   2376     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2377     edi = 0; /* 0x3801BC32: xor edi, edi */
   2378     _cf = 0;
   2379     _flag_k = FK_TEST;
   2380 L_3801BC34:
   2381     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3801BC34: mov byte ptr [ebp - 4], bl */
   2382     MEM32(esi + 0x54) = edi; /* 0x3801BC37: mov dword ptr [esi + 0x54], edi */
   2383     RECOMP_ICALL(0x38016AC0u); /* 0x3801BC3A: call 0x38016ac0 */ /* not lifted */
   2384     RECOMP_FLAGS_IN();
   2385     PUSH32(esp, 0x14u); /* 0x3801BC3F: push 0x14 */
   2386     RECOMP_ICALL(0x3804B676u); /* 0x3801BC41: call 0x3804b676 */ /* not lifted */
   2387     RECOMP_FLAGS_IN();
   2388     edi = eax; /* 0x3801BC46: mov edi, eax */
   2389     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2390     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2391     esp = esp + 4; /* 0x3801BC48: add esp, 4 */
   2392     _flag_k = FK_ADD;
   2393     MEM32(ebp + (-0x1C)) = edi; /* 0x3801BC4B: mov dword ptr [ebp - 0x1c], edi */
   2394     /* cmp edi, ebx */ /* 0x3801BC4E: cmp edi, ebx */
   2395     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2396     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2397     _flag_k = FK_CMP;
   2398     MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x3801BC50: mov byte ptr [ebp - 4], 5 */
   2399     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BCC7; /* 0x3801BC54: je 0x3801bcc7 */
   2400 L_3801BC56:
   2401     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x3801BC56: mov dl, byte ptr [ebp - 0xd] */
   2402     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3801BC59: mov al, byte ptr [ebp - 0xd] */
   2403     PUSH32(esp, 0x18u); /* 0x3801BC5C: push 0x18 */
   2404     MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x3801BC5E: mov byte ptr [edi], dl */
   2405     MEM8(edi + 0x1) = (uint8_t)(LO8(eax)); /* 0x3801BC60: mov byte ptr [edi + 1], al */
   2406     MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3801BC63: mov byte ptr [edi + 0xc], bl */
   2407     RECOMP_ICALL(0x3804B676u); /* 0x3801BC66: call 0x3804b676 */ /* not lifted */
   2408     RECOMP_FLAGS_IN();
   2409     MEM32(eax + 0x4) = ebx; /* 0x3801BC6B: mov dword ptr [eax + 4], ebx */
   2410     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3801BC6E: mov byte ptr [eax + 0x14], 1 */
   2411     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3801BC72: mov byte ptr [eax + 0x15], bl */
   2412     MEM32(edi + 0x8) = eax; /* 0x3801BC75: mov dword ptr [edi + 8], eax */
   2413     MEM8(eax + 0x15) = (uint8_t)(1); /* 0x3801BC78: mov byte ptr [eax + 0x15], 1 */
   2414     ecx = MEM32(edi + 0x8); /* 0x3801BC7C: mov ecx, dword ptr [edi + 8] */
   2415     MEM32(ecx) = ebx; /* 0x3801BC7F: mov dword ptr [ecx], ebx */
   2416     edx = MEM32(edi + 0x8); /* 0x3801BC81: mov edx, dword ptr [edi + 8] */
   2417     MEM32(edx + 0x8) = ebx; /* 0x3801BC84: mov dword ptr [edx + 8], ebx */
   2418     eax = MEM32(edi + 0x8); /* 0x3801BC87: mov eax, dword ptr [edi + 8] */
   2419     PUSH32(esp, 0x18u); /* 0x3801BC8A: push 0x18 */
   2420     MEM32(ebp + (-0x14)) = eax; /* 0x3801BC8C: mov dword ptr [ebp - 0x14], eax */
   2421     RECOMP_ICALL(0x3804B676u); /* 0x3801BC8F: call 0x3804b676 */ /* not lifted */
   2422     RECOMP_FLAGS_IN();
   2423     ecx = MEM32(ebp + (-0x14)); /* 0x3801BC94: mov ecx, dword ptr [ebp - 0x14] */
   2424     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3801BC97: mov byte ptr [eax + 0x14], bl */
   2425     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3801BC9A: mov byte ptr [eax + 0x15], bl */
   2426     MEM32(eax + 0x4) = ecx; /* 0x3801BC9D: mov dword ptr [eax + 4], ecx */
   2427     MEM32(edi + 0x4) = eax; /* 0x3801BCA0: mov dword ptr [edi + 4], eax */
   2428     MEM32(eax) = eax; /* 0x3801BCA3: mov dword ptr [eax], eax */
   2429     eax = MEM32(edi + 0x4); /* 0x3801BCA5: mov eax, dword ptr [edi + 4] */
   2430     MEM32(eax + 0x8) = eax; /* 0x3801BCA8: mov dword ptr [eax + 8], eax */
   2431     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2432     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2433     esp = esp + 8; /* 0x3801BCAB: add esp, 8 */
   2434     _flag_k = FK_ADD;
   2435     MEM32(edi + 0x10) = ebx; /* 0x3801BCAE: mov dword ptr [edi + 0x10], ebx */
   2436     MEM32(esi + 0x7C) = edi; /* 0x3801BCB1: mov dword ptr [esi + 0x7c], edi */
   2437     edi = POP32_VAL(esp); /* 0x3801BCB4: pop edi */
   2438     eax = esi; /* 0x3801BCB5: mov eax, esi */
   2439     esi = POP32_VAL(esp); /* 0x3801BCB7: pop esi */
   2440     ebx = POP32_VAL(esp); /* 0x3801BCB8: pop ebx */
   2441     ecx = MEM32(ebp + (-0xC)); /* 0x3801BCB9: mov ecx, dword ptr [ebp - 0xc] */
   2442     MEM32(FS_BASE + (0)) = ecx; /* 0x3801BCBC: mov dword ptr fs:[0], ecx */
   2443     esp = ebp; /* 0x3801BCC3: mov esp, ebp */
   2444     ebp = POP32_VAL(esp); /* 0x3801BCC5: pop ebp */
   2445     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801BCC6: ret  */
   2446 L_3801BCC7:
   2447     ecx = MEM32(ebp + (-0xC)); /* 0x3801BCC7: mov ecx, dword ptr [ebp - 0xc] */
   2448     MEM32(esi + 0x7C) = ebx; /* 0x3801BCCA: mov dword ptr [esi + 0x7c], ebx */
   2449     edi = POP32_VAL(esp); /* 0x3801BCCD: pop edi */
   2450     eax = esi; /* 0x3801BCCE: mov eax, esi */
   2451     esi = POP32_VAL(esp); /* 0x3801BCD0: pop esi */
   2452     ebx = POP32_VAL(esp); /* 0x3801BCD1: pop ebx */
   2453     MEM32(FS_BASE + (0)) = ecx; /* 0x3801BCD2: mov dword ptr fs:[0], ecx */
   2454     esp = ebp; /* 0x3801BCD9: mov esp, ebp */
   2455     ebp = POP32_VAL(esp); /* 0x3801BCDB: pop ebp */
   2456     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801BCDC: ret  */
   2457     RECOMP_REGS_OUT();
   2458 }
   2459 
   2460 void sub_3801BCE0(void) {
   2461     int _fpu_cmp = 0;
   2462     uint32_t _cf = 0;
   2463     int _df = 1;
   2464     uint32_t _flag_k = FK_NONE;
   2465     uint32_t _flag_a = 0, _flag_b = 0;
   2466     uint32_t _itail_tgt = 0;
   2467     RECOMP_REGS_LOCALS
   2468     RECOMP_ENTER(0x3801BCE0u);
   2469 
   2470 L_3801BCE0:
   2471     PUSH32(esp, ebp); /* 0x3801BCE0: push ebp */
   2472     ebp = esp; /* 0x3801BCE1: mov ebp, esp */
   2473     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801BCE3: push -1 */
   2474     PUSH32(esp, 0x3804C25Cu); /* 0x3801BCE5: push 0x3804c25c */
   2475     eax = MEM32(FS_BASE + (0)); /* 0x3801BCEA: mov eax, dword ptr fs:[0] */
   2476     PUSH32(esp, eax); /* 0x3801BCF0: push eax */
   2477     MEM32(FS_BASE + (0)) = esp; /* 0x3801BCF1: mov dword ptr fs:[0], esp */
   2478     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2480     esp = esp - 0x14u; /* 0x3801BCF8: sub esp, 0x14 */
   2481     _flag_k = FK_CMP;
   2482     PUSH32(esp, ebx); /* 0x3801BCFB: push ebx */
   2483     PUSH32(esp, esi); /* 0x3801BCFC: push esi */
   2484     PUSH32(esp, edi); /* 0x3801BCFD: push edi */
   2485     edi = ecx; /* 0x3801BCFE: mov edi, ecx */
   2486     MEM32(ebp + (-0x14)) = edi; /* 0x3801BD00: mov dword ptr [ebp - 0x14], edi */
   2487     MEM32(edi) = 0x3804F104u; /* 0x3801BD03: mov dword ptr [edi], 0x3804f104 */
   2488     esi = MEM32(edi + 0x48); /* 0x3801BD09: mov esi, dword ptr [edi + 0x48] */
   2489     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2490     ebx = 0; /* 0x3801BD0C: xor ebx, ebx */
   2491     _cf = 0;
   2492     _flag_k = FK_TEST;
   2493     /* cmp esi, ebx */ /* 0x3801BD0E: cmp esi, ebx */
   2494     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2496     _flag_k = FK_CMP;
   2497     MEM32(ebp + (-0x4)) = ebx; /* 0x3801BD10: mov dword ptr [ebp - 4], ebx */
   2498     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BD25; /* 0x3801BD13: je 0x3801bd25 */
   2499 L_3801BD15:
   2500     ecx = esi; /* 0x3801BD15: mov ecx, esi */
   2501     RECOMP_ICALL(0x38021550u); /* 0x3801BD17: call 0x38021550 */ /* not lifted */
   2502     RECOMP_FLAGS_IN();
   2503     PUSH32(esp, esi); /* 0x3801BD1C: push esi */
   2504     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD1D: call 0x3804b4f6 */ /* not lifted */
   2505     RECOMP_FLAGS_IN();
   2506     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2507     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2508     esp = esp + 4; /* 0x3801BD22: add esp, 4 */
   2509     _flag_k = FK_ADD;
   2510 L_3801BD25:
   2511     esi = MEM32(edi + 0x4C); /* 0x3801BD25: mov esi, dword ptr [edi + 0x4c] */
   2512     /* cmp esi, ebx */ /* 0x3801BD28: cmp esi, ebx */
   2513     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2515     _flag_k = FK_CMP;
   2516     MEM32(edi + 0x48) = ebx; /* 0x3801BD2A: mov dword ptr [edi + 0x48], ebx */
   2517     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BD3F; /* 0x3801BD2D: je 0x3801bd3f */
   2518 L_3801BD2F:
   2519     ecx = esi; /* 0x3801BD2F: mov ecx, esi */
   2520     RECOMP_ICALL(0x38021550u); /* 0x3801BD31: call 0x38021550 */ /* not lifted */
   2521     RECOMP_FLAGS_IN();
   2522     PUSH32(esp, esi); /* 0x3801BD36: push esi */
   2523     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD37: call 0x3804b4f6 */ /* not lifted */
   2524     RECOMP_FLAGS_IN();
   2525     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2526     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2527     esp = esp + 4; /* 0x3801BD3C: add esp, 4 */
   2528     _flag_k = FK_ADD;
   2529 L_3801BD3F:
   2530     esi = MEM32(edi + 0x50); /* 0x3801BD3F: mov esi, dword ptr [edi + 0x50] */
   2531     /* cmp esi, ebx */ /* 0x3801BD42: cmp esi, ebx */
   2532     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2534     _flag_k = FK_CMP;
   2535     MEM32(edi + 0x4C) = ebx; /* 0x3801BD44: mov dword ptr [edi + 0x4c], ebx */
   2536     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BD59; /* 0x3801BD47: je 0x3801bd59 */
   2537 L_3801BD49:
   2538     ecx = esi; /* 0x3801BD49: mov ecx, esi */
   2539     RECOMP_ICALL(0x38021550u); /* 0x3801BD4B: call 0x38021550 */ /* not lifted */
   2540     RECOMP_FLAGS_IN();
   2541     PUSH32(esp, esi); /* 0x3801BD50: push esi */
   2542     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD51: call 0x3804b4f6 */ /* not lifted */
   2543     RECOMP_FLAGS_IN();
   2544     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2545     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2546     esp = esp + 4; /* 0x3801BD56: add esp, 4 */
   2547     _flag_k = FK_ADD;
   2548 L_3801BD59:
   2549     esi = MEM32(edi + 0x54); /* 0x3801BD59: mov esi, dword ptr [edi + 0x54] */
   2550     /* cmp esi, ebx */ /* 0x3801BD5C: cmp esi, ebx */
   2551     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2553     _flag_k = FK_CMP;
   2554     MEM32(edi + 0x50) = ebx; /* 0x3801BD5E: mov dword ptr [edi + 0x50], ebx */
   2555     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BD99; /* 0x3801BD61: je 0x3801bd99 */
   2556 L_3801BD63:
   2557     eax = MEM32(esi + 0x4); /* 0x3801BD63: mov eax, dword ptr [esi + 4] */
   2558     ecx = MEM32(eax); /* 0x3801BD66: mov ecx, dword ptr [eax] */
   2559     PUSH32(esp, eax); /* 0x3801BD68: push eax */
   2560     PUSH32(esp, ecx); /* 0x3801BD69: push ecx */
   2561     eax = ebp + (-0x10); /* 0x3801BD6A: lea eax, [ebp - 0x10] */
   2562     PUSH32(esp, eax); /* 0x3801BD6D: push eax */
   2563     ecx = esi; /* 0x3801BD6E: mov ecx, esi */
   2564     RECOMP_ICALL(0x3801CAC0u); /* 0x3801BD70: call 0x3801cac0 */ /* not lifted */
   2565     RECOMP_FLAGS_IN();
   2566     eax = MEM32(esi + 0x4); /* 0x3801BD75: mov eax, dword ptr [esi + 4] */
   2567     PUSH32(esp, eax); /* 0x3801BD78: push eax */
   2568     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD79: call 0x3804b4f6 */ /* not lifted */
   2569     RECOMP_FLAGS_IN();
   2570     eax = MEM32(esi + 0x8); /* 0x3801BD7E: mov eax, dword ptr [esi + 8] */
   2571     PUSH32(esp, eax); /* 0x3801BD81: push eax */
   2572     MEM32(esi + 0x4) = ebx; /* 0x3801BD82: mov dword ptr [esi + 4], ebx */
   2573     MEM32(esi + 0x10) = ebx; /* 0x3801BD85: mov dword ptr [esi + 0x10], ebx */
   2574     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD88: call 0x3804b4f6 */ /* not lifted */
   2575     RECOMP_FLAGS_IN();
   2576     PUSH32(esp, esi); /* 0x3801BD8D: push esi */
   2577     MEM32(esi + 0x8) = ebx; /* 0x3801BD8E: mov dword ptr [esi + 8], ebx */
   2578     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BD91: call 0x3804b4f6 */ /* not lifted */
   2579     RECOMP_FLAGS_IN();
   2580     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2581     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2582     esp = esp + 0xCu; /* 0x3801BD96: add esp, 0xc */
   2583     _flag_k = FK_ADD;
   2584 L_3801BD99:
   2585     MEM32(edi + 0x54) = ebx; /* 0x3801BD99: mov dword ptr [edi + 0x54], ebx */
   2586     RECOMP_ICALL(0x3803A830u); /* 0x3801BD9C: call 0x3803a830 */ /* not lifted */
   2587     RECOMP_FLAGS_IN();
   2588     MEM32(0x3806EC04) = ebx; /* 0x3801BDA1: mov dword ptr [0x3806ec04], ebx */
   2589     esi = MEM32(edi + 0x78); /* 0x3801BDA7: mov esi, dword ptr [edi + 0x78] */
   2590     /* cmp esi, ebx */ /* 0x3801BDAA: cmp esi, ebx */
   2591     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2592     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2593     _flag_k = FK_CMP;
   2594     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BDBE; /* 0x3801BDAC: je 0x3801bdbe */
   2595 L_3801BDAE:
   2596     ecx = esi; /* 0x3801BDAE: mov ecx, esi */
   2597     RECOMP_ICALL(0x38027590u); /* 0x3801BDB0: call 0x38027590 */ /* not lifted */
   2598     RECOMP_FLAGS_IN();
   2599     PUSH32(esp, esi); /* 0x3801BDB5: push esi */
   2600     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BDB6: call 0x3804b4f6 */ /* not lifted */
   2601     RECOMP_FLAGS_IN();
   2602     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2603     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2604     esp = esp + 4; /* 0x3801BDBB: add esp, 4 */
   2605     _flag_k = FK_ADD;
   2606 L_3801BDBE:
   2607     MEM32(edi + 0x78) = ebx; /* 0x3801BDBE: mov dword ptr [edi + 0x78], ebx */
   2608     RECOMP_ICALL(0x38037030u); /* 0x3801BDC1: call 0x38037030 */ /* not lifted */
   2609     RECOMP_FLAGS_IN();
   2610     RECOMP_ICALL(0x38016AF0u); /* 0x3801BDC6: call 0x38016af0 */ /* not lifted */
   2611     RECOMP_FLAGS_IN();
   2612     esi = MEM32(edi + 0x7C); /* 0x3801BDCB: mov esi, dword ptr [edi + 0x7c] */
   2613     /* cmp esi, ebx */ /* 0x3801BDCE: cmp esi, ebx */
   2614     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2616     _flag_k = FK_CMP;
   2617     MEM32(edi + 0x60) = ebx; /* 0x3801BDD0: mov dword ptr [edi + 0x60], ebx */
   2618     MEM32(edi + 0x6C) = ebx; /* 0x3801BDD3: mov dword ptr [edi + 0x6c], ebx */
   2619     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801BE73; /* 0x3801BDD6: je 0x3801be73 */
   2620 L_3801BDDC:
   2621     ebx = MEM32(esi + 0x4); /* 0x3801BDDC: mov ebx, dword ptr [esi + 4] */
   2622     ecx = MEM32(esi + 0x10); /* 0x3801BDDF: mov ecx, dword ptr [esi + 0x10] */
   2623     /* test ecx, ecx */ /* 0x3801BDE2: test ecx, ecx */
   2624     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2625     _cf = 0;
   2626     _flag_k = FK_TEST;
   2627     eax = MEM32(ebx); /* 0x3801BDE4: mov eax, dword ptr [ebx] */
   2628     MEM32(ebp + (-0x10)) = eax; /* 0x3801BDE6: mov dword ptr [ebp - 0x10], eax */
   2629     if (TEST_Z(_flag_a, _flag_b)) goto L_3801BE28; /* 0x3801BDE9: je 0x3801be28 */
   2630 L_3801BDEB:
   2631     ecx = eax; /* 0x3801BDEB: mov ecx, eax */
   2632     /* cmp eax, ecx */ /* 0x3801BDED: cmp eax, ecx */
   2633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2635     _flag_k = FK_CMP;
   2636     if (CMP_NE(_flag_a, _flag_b)) goto L_3801BE28; /* 0x3801BDEF: jne 0x3801be28 */
   2637 L_3801BDF1:
   2638     /* cmp ebx, ebx */ /* 0x3801BDF1: cmp ebx, ebx */
   2639     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2641     _flag_k = FK_CMP;
   2642     if (CMP_NE(_flag_a, _flag_b)) goto L_3801BE28; /* 0x3801BDF3: jne 0x3801be28 */
   2643 L_3801BDF5:
   2644     ecx = MEM32(ebx + 0x4); /* 0x3801BDF5: mov ecx, dword ptr [ebx + 4] */
   2645     PUSH32(esp, ecx); /* 0x3801BDF8: push ecx */
   2646     ecx = esi; /* 0x3801BDF9: mov ecx, esi */
   2647     RECOMP_ICALL(0x3801D3B0u); /* 0x3801BDFB: call 0x3801d3b0 */ /* not lifted */
   2648     RECOMP_FLAGS_IN();
   2649     eax = MEM32(esi + 0x8); /* 0x3801BE00: mov eax, dword ptr [esi + 8] */
   2650     edx = MEM32(esi + 0x4); /* 0x3801BE03: mov edx, dword ptr [esi + 4] */
   2651     MEM32(edx + 0x4) = eax; /* 0x3801BE06: mov dword ptr [edx + 4], eax */
   2652     eax = MEM32(esi + 0x4); /* 0x3801BE09: mov eax, dword ptr [esi + 4] */
   2653     MEM32(esi + 0x10) = 0; /* 0x3801BE0C: mov dword ptr [esi + 0x10], 0 */
   2654     MEM32(eax) = eax; /* 0x3801BE13: mov dword ptr [eax], eax */
   2655     eax = MEM32(esi + 0x4); /* 0x3801BE15: mov eax, dword ptr [esi + 4] */
   2656     ecx = ebp + (-0x18); /* 0x3801BE18: lea ecx, [ebp - 0x18] */
   2657     PUSH32(esp, ecx); /* 0x3801BE1B: push ecx */
   2658     ecx = esi; /* 0x3801BE1C: mov ecx, esi */
   2659     MEM32(eax + 0x8) = eax; /* 0x3801BE1E: mov dword ptr [eax + 8], eax */
   2660     RECOMP_ICALL(0x380354C0u); /* 0x3801BE21: call 0x380354c0 */ /* not lifted */
   2661     RECOMP_FLAGS_IN();
   2662     goto L_3801BE4D; /* 0x3801BE26: jmp 0x3801be4d */
   2663 L_3801BE28:
   2664     /* cmp eax, ebx */ /* 0x3801BE28: cmp eax, ebx */
   2665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   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_3801BE4D; /* 0x3801BE2A: je 0x3801be4d */
   2669 L_3801BE2C:
   2670     PUSH32(esp, 0); /* 0x3801BE2C: push 0 */
   2671     edx = ebp + (-0x1C); /* 0x3801BE2E: lea edx, [ebp - 0x1c] */
   2672     PUSH32(esp, edx); /* 0x3801BE31: push edx */
   2673     ecx = ebp + (-0x10); /* 0x3801BE32: lea ecx, [ebp - 0x10] */
   2674     RECOMP_ICALL(0x3801D3F0u); /* 0x3801BE35: call 0x3801d3f0 */ /* not lifted */
   2675     RECOMP_FLAGS_IN();
   2676     eax = MEM32(eax); /* 0x3801BE3A: mov eax, dword ptr [eax] */
   2677     PUSH32(esp, eax); /* 0x3801BE3C: push eax */
   2678     ecx = ebp + (-0x20); /* 0x3801BE3D: lea ecx, [ebp - 0x20] */
   2679     PUSH32(esp, ecx); /* 0x3801BE40: push ecx */
   2680     ecx = esi; /* 0x3801BE41: mov ecx, esi */
   2681     RECOMP_ICALL(0x3800F9D0u); /* 0x3801BE43: call 0x3800f9d0 */ /* not lifted */
   2682     RECOMP_FLAGS_IN();
   2683     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x3801BE48: cmp dword ptr [ebp - 0x10], ebx */
   2684     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   2685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2686     _flag_k = FK_CMP;
   2687     RECOMP_BACKEDGE();
   2688     if (CMP_NE(_flag_a, _flag_b)) goto L_3801BE2C; /* 0x3801BE4B: jne 0x3801be2c */
   2689 L_3801BE4D:
   2690     eax = MEM32(esi + 0x4); /* 0x3801BE4D: mov eax, dword ptr [esi + 4] */
   2691     PUSH32(esp, eax); /* 0x3801BE50: push eax */
   2692     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BE51: call 0x3804b4f6 */ /* not lifted */
   2693     RECOMP_FLAGS_IN();
   2694     eax = MEM32(esi + 0x8); /* 0x3801BE56: mov eax, dword ptr [esi + 8] */
   2695     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2696     ebx = 0; /* 0x3801BE59: xor ebx, ebx */
   2697     _cf = 0;
   2698     _flag_k = FK_TEST;
   2699     PUSH32(esp, eax); /* 0x3801BE5B: push eax */
   2700     MEM32(esi + 0x4) = ebx; /* 0x3801BE5C: mov dword ptr [esi + 4], ebx */
   2701     MEM32(esi + 0x10) = ebx; /* 0x3801BE5F: mov dword ptr [esi + 0x10], ebx */
   2702     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BE62: call 0x3804b4f6 */ /* not lifted */
   2703     RECOMP_FLAGS_IN();
   2704     PUSH32(esp, esi); /* 0x3801BE67: push esi */
   2705     MEM32(esi + 0x8) = ebx; /* 0x3801BE68: mov dword ptr [esi + 8], ebx */
   2706     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BE6B: call 0x3804b4f6 */ /* not lifted */
   2707     RECOMP_FLAGS_IN();
   2708     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2709     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2710     esp = esp + 0xCu; /* 0x3801BE70: add esp, 0xc */
   2711     _flag_k = FK_ADD;
   2712 L_3801BE73:
   2713     ecx = edi + 0x4; /* 0x3801BE73: lea ecx, [edi + 4] */
   2714     MEM32(edi + 0x7C) = ebx; /* 0x3801BE76: mov dword ptr [edi + 0x7c], ebx */
   2715     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801BE79: mov dword ptr [ebp - 4], 0xffffffff */
   2716     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801BE80: call dword ptr [0x3804e378] */
   2717     RECOMP_FLAGS_IN();
   2718     ecx = MEM32(ebp + (-0xC)); /* 0x3801BE86: mov ecx, dword ptr [ebp - 0xc] */
   2719     edi = POP32_VAL(esp); /* 0x3801BE89: pop edi */
   2720     esi = POP32_VAL(esp); /* 0x3801BE8A: pop esi */
   2721     ebx = POP32_VAL(esp); /* 0x3801BE8B: pop ebx */
   2722     MEM32(FS_BASE + (0)) = ecx; /* 0x3801BE8C: mov dword ptr fs:[0], ecx */
   2723     esp = ebp; /* 0x3801BE93: mov esp, ebp */
   2724     ebp = POP32_VAL(esp); /* 0x3801BE95: pop ebp */
   2725     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801BE96: ret  */
   2726     RECOMP_REGS_OUT();
   2727 }
   2728 
   2729 void sub_3801BE4D(void) {
   2730     int _fpu_cmp = 0;
   2731     uint32_t _cf = 0;
   2732     int _df = 1;
   2733     uint32_t _flag_k = FK_NONE;
   2734     uint32_t _flag_a = 0, _flag_b = 0;
   2735     uint32_t _itail_tgt = 0;
   2736     RECOMP_REGS_LOCALS
   2737     RECOMP_ENTER(0x3801BE4Du);
   2738 
   2739 L_3801BE4D:
   2740     eax = MEM32(esi + 0x4); /* 0x3801BE4D: mov eax, dword ptr [esi + 4] */
   2741     PUSH32(esp, eax); /* 0x3801BE50: push eax */
   2742     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BE51: call 0x3804b4f6 */ /* not lifted */
   2743     RECOMP_FLAGS_IN();
   2744     eax = MEM32(esi + 0x8); /* 0x3801BE56: mov eax, dword ptr [esi + 8] */
   2745     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2746     ebx = 0; /* 0x3801BE59: xor ebx, ebx */
   2747     _cf = 0;
   2748     _flag_k = FK_TEST;
   2749     PUSH32(esp, eax); /* 0x3801BE5B: push eax */
   2750     MEM32(esi + 0x4) = ebx; /* 0x3801BE5C: mov dword ptr [esi + 4], ebx */
   2751     MEM32(esi + 0x10) = ebx; /* 0x3801BE5F: mov dword ptr [esi + 0x10], ebx */
   2752     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BE62: call 0x3804b4f6 */ /* not lifted */
   2753     RECOMP_FLAGS_IN();
   2754     PUSH32(esp, esi); /* 0x3801BE67: push esi */
   2755     MEM32(esi + 0x8) = ebx; /* 0x3801BE68: mov dword ptr [esi + 8], ebx */
   2756     RECOMP_ICALL(0x3804B4F6u); /* 0x3801BE6B: call 0x3804b4f6 */ /* not lifted */
   2757     RECOMP_FLAGS_IN();
   2758     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2759     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2760     esp = esp + 0xCu; /* 0x3801BE70: add esp, 0xc */
   2761     _flag_k = FK_ADD;
   2762     ecx = edi + 0x4; /* 0x3801BE73: lea ecx, [edi + 4] */
   2763     MEM32(edi + 0x7C) = ebx; /* 0x3801BE76: mov dword ptr [edi + 0x7c], ebx */
   2764     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801BE79: mov dword ptr [ebp - 4], 0xffffffff */
   2765     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801BE80: call dword ptr [0x3804e378] */
   2766     RECOMP_FLAGS_IN();
   2767     ecx = MEM32(ebp + (-0xC)); /* 0x3801BE86: mov ecx, dword ptr [ebp - 0xc] */
   2768     edi = POP32_VAL(esp); /* 0x3801BE89: pop edi */
   2769     esi = POP32_VAL(esp); /* 0x3801BE8A: pop esi */
   2770     ebx = POP32_VAL(esp); /* 0x3801BE8B: pop ebx */
   2771     MEM32(FS_BASE + (0)) = ecx; /* 0x3801BE8C: mov dword ptr fs:[0], ecx */
   2772     esp = ebp; /* 0x3801BE93: mov esp, ebp */
   2773     ebp = POP32_VAL(esp); /* 0x3801BE95: pop ebp */
   2774     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801BE96: ret  */
   2775     RECOMP_REGS_OUT();
   2776 }
   2777 
   2778 void sub_3801BEA0(void) {
   2779     int _fpu_cmp = 0;
   2780     uint32_t _cf = 0;
   2781     int _df = 1;
   2782     uint32_t _flag_k = FK_NONE;
   2783     uint32_t _flag_a = 0, _flag_b = 0;
   2784     uint32_t _itail_tgt = 0;
   2785     RECOMP_REGS_LOCALS
   2786     RECOMP_ENTER(0x3801BEA0u);
   2787 
   2788 L_3801BEA0:
   2789     PUSH32(esp, ebp); /* 0x3801BEA0: push ebp */
   2790     ebp = esp; /* 0x3801BEA1: mov ebp, esp */
   2791     PUSH32(esp, esi); /* 0x3801BEA3: push esi */
   2792     esi = ecx; /* 0x3801BEA4: mov esi, ecx */
   2793     edx = MEM32(esi + 0x68); /* 0x3801BEA6: mov edx, dword ptr [esi + 0x68] */
   2794     ecx = MEM32(ebp + 0x8); /* 0x3801BEA9: mov ecx, dword ptr [ebp + 8] */
   2795     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2796     edx = edx + 1; /* 0x3801BEAC: inc edx */
   2797     _flag_k = FK_INC;
   2798     MEM32(esi + 0x68) = edx; /* 0x3801BEAD: mov dword ptr [esi + 0x68], edx */
   2799     eax = MEM32(0x3804E6B4); /* 0x3801BEB0: mov eax, dword ptr [0x3804e6b4] */
   2800     MEM8(eax) = (uint8_t)(0); /* 0x3801BEB5: mov byte ptr [eax], 0 */
   2801     MEM32(esi + 0x64) = ecx; /* 0x3801BEB8: mov dword ptr [esi + 0x64], ecx */
   2802     ecx = esi; /* 0x3801BEBB: mov ecx, esi */
   2803     RECOMP_ICALL(0x3801C380u); /* 0x3801BEBD: call 0x3801c380 */ /* not lifted */
   2804     RECOMP_FLAGS_IN();
   2805     RECOMP_ICALL(0x38036FC0u); /* 0x3801BEC2: call 0x38036fc0 */ /* not lifted */
   2806     RECOMP_FLAGS_IN();
   2807     /* test eax, eax */ /* 0x3801BEC7: test eax, eax */
   2808     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2809     _cf = 0;
   2810     _flag_k = FK_TEST;
   2811     if (TEST_Z(_flag_a, _flag_b)) goto L_3801BED7; /* 0x3801BEC9: je 0x3801bed7 */
   2812 L_3801BECB:
   2813     RECOMP_ICALL(0x38036FC0u); /* 0x3801BECB: call 0x38036fc0 */ /* not lifted */
   2814     RECOMP_FLAGS_IN();
   2815     edx = MEM32(eax); /* 0x3801BED0: mov edx, dword ptr [eax] */
   2816     ecx = eax; /* 0x3801BED2: mov ecx, eax */
   2817     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3801BED4: call dword ptr [edx + 0x24] */
   2818     RECOMP_FLAGS_IN();
   2819 L_3801BED7:
   2820     fp_push(*(float*)&MEM32(0x3806EC10)); /* 0x3801BED7: fld dword ptr [0x3806ec10] */
   2821     ecx = MEM32(0x3806EC0C); /* 0x3801BEDD: mov ecx, dword ptr [0x3806ec0c] */
   2822     _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x3801BEE3: fadd dword ptr [ebp + 8] */
   2823     eax = MEM32(0x3806EC08); /* 0x3801BEE6: mov eax, dword ptr [0x3806ec08] */
   2824     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2825     ecx = ecx + 1; /* 0x3801BEEB: inc ecx */
   2826     _flag_k = FK_INC;
   2827     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2828     eax = eax + 1; /* 0x3801BEEC: inc eax */
   2829     _flag_k = FK_INC;
   2830     { float _v = (float)_st[0]; *(float*)ADDR(0x3806EC10) = _v; } /* 0x3801BEED: fst dword ptr [0x3806ec10] */
   2831     MEM32(0x3806EC08) = eax; /* 0x3801BEF3: mov dword ptr [0x3806ec08], eax */
   2832     fp_push((double)(int32_t)MEM32(0x3806C218)); /* 0x3801BEF8: fild dword ptr [0x3806c218] */
   2833     MEM32(0x3806EC0C) = ecx; /* 0x3801BEFE: mov dword ptr [0x3806ec0c], ecx */
   2834     fp_xch(1); /* 0x3801BF04: fxch st(1) */
   2835     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x3801BF06: fcompp  */
   2836     fp_pop(); fp_pop();
   2837     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3801BF08: fnstsw ax */
   2838     /* test HI8(eax), 0x41u */ /* 0x3801BF0A: test ah, 0x41 */
   2839     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2840     _cf = 0;
   2841     _flag_k = FK_NARROW(FK_TEST, 24);
   2842     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801BF36; /* 0x3801BF0D: jne 0x3801bf36 */
   2843 L_3801BF0F:
   2844     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3801BF0F: fld dword ptr [ebp + 8] */
   2845     MEM32(0x3806C218) = 0xFu; /* 0x3801BF12: mov dword ptr [0x3806c218], 0xf */
   2846     _st[0] += (double)*(float*)ADDR(esi + 0x74); /* 0x3801BF1C: fadd dword ptr [esi + 0x74] */
   2847     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x74) = _v; } /* 0x3801BF1F: fstp dword ptr [esi + 0x74] */
   2848     MEM32(0x3806EC0C) = 0; /* 0x3801BF22: mov dword ptr [0x3806ec0c], 0 */
   2849     MEM32(0x3806EC10) = 0; /* 0x3801BF2C: mov dword ptr [0x3806ec10], 0 */
   2850 L_3801BF36:
   2851     esi = POP32_VAL(esp); /* 0x3801BF36: pop esi */
   2852     ebp = POP32_VAL(esp); /* 0x3801BF37: pop ebp */
   2853     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801BF38: ret 4 */
   2854     RECOMP_REGS_OUT();
   2855 }
   2856 
   2857 void sub_3801BF40(void) {
   2858     int _fpu_cmp = 0;
   2859     uint32_t _cf = 0;
   2860     int _df = 1;
   2861     uint32_t _flag_k = FK_NONE;
   2862     uint32_t _flag_a = 0, _flag_b = 0;
   2863     uint32_t _itail_tgt = 0;
   2864     RECOMP_REGS_LOCALS
   2865     RECOMP_ENTER(0x3801BF40u);
   2866     RECOMP_EH_ENTER();
   2867 
   2868 L_3801BF40:
   2869     PUSH32(esp, ebp); /* 0x3801BF40: push ebp */
   2870     ebp = esp; /* 0x3801BF41: mov ebp, esp */
   2871     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801BF43: push -1 */
   2872     PUSH32(esp, 0x3804C279u); /* 0x3801BF45: push 0x3804c279 */
   2873     eax = MEM32(FS_BASE + (0)); /* 0x3801BF4A: mov eax, dword ptr fs:[0] */
   2874     PUSH32(esp, eax); /* 0x3801BF50: push eax */
   2875     MEM32(FS_BASE + (0)) = esp; /* 0x3801BF51: mov dword ptr fs:[0], esp */
   2876     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u);
   2877     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2878     esp = esp - 0x50u; /* 0x3801BF58: sub esp, 0x50 */
   2879     _flag_k = FK_CMP;
   2880     eax = MEM32(ebp + 0xC); /* 0x3801BF5B: mov eax, dword ptr [ebp + 0xc] */
   2881     PUSH32(esp, ebx); /* 0x3801BF5E: push ebx */
   2882     PUSH32(esp, esi); /* 0x3801BF5F: push esi */
   2883     PUSH32(esp, edi); /* 0x3801BF60: push edi */
   2884     MEM32(ebp + (-0x10)) = esp; /* 0x3801BF61: mov dword ptr [ebp - 0x10], esp */
   2885     MEM32(ebp + (-0x14)) = ecx; /* 0x3801BF64: mov dword ptr [ebp - 0x14], ecx */
   2886     ecx = MEM32(ebp + 0x8); /* 0x3801BF67: mov ecx, dword ptr [ebp + 8] */
   2887     PUSH32(esp, eax); /* 0x3801BF6A: push eax */
   2888     PUSH32(esp, ecx); /* 0x3801BF6B: push ecx */
   2889     ecx = ebp + (-0x58); /* 0x3801BF6C: lea ecx, [ebp - 0x58] */
   2890     RECOMP_ICALL(MEM32(0x3804E380)); /* 0x3801BF6F: call dword ptr [0x3804e380] */
   2891     RECOMP_FLAGS_IN();
   2892     MEM32(ebp + (-0x4)) = 0; /* 0x3801BF75: mov dword ptr [ebp - 4], 0 */
   2893 L_3801BF7C:
   2894     ecx = ebp + (-0x58); /* 0x3801BF7C: lea ecx, [ebp - 0x58] */
   2895     RECOMP_ICALL(MEM32(0x3804E3C4)); /* 0x3801BF7F: call dword ptr [0x3804e3c4] */
   2896     RECOMP_FLAGS_IN();
   2897     /* cmp eax, MEM32(ebp + 0xC) */ /* 0x3801BF85: cmp eax, dword ptr [ebp + 0xc] */
   2898     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
   2899     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2900     _flag_k = FK_CMP;
   2901     if (CMP_AE(_flag_a, _flag_b)) goto L_3801BFC6; /* 0x3801BF88: jae 0x3801bfc6 */
   2902 L_3801BF8A:
   2903     eax = MEM32(ebp + 0x10); /* 0x3801BF8A: mov eax, dword ptr [ebp + 0x10] */
   2904     edx = ebp + (-0x58); /* 0x3801BF8D: lea edx, [ebp - 0x58] */
   2905     PUSH32(esp, edx); /* 0x3801BF90: push edx */
   2906     PUSH32(esp, eax); /* 0x3801BF91: push eax */
   2907     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3801BF92: mov byte ptr [ebp - 4], 1 */
   2908     RECOMP_ICALL(0x380240B0u); /* 0x3801BF96: call 0x380240b0 */ /* not lifted */
   2909     RECOMP_FLAGS_IN();
   2910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2912     esp = esp + 8; /* 0x3801BF9B: add esp, 8 */
   2913     _flag_k = FK_ADD;
   2914     goto L_3801BFB0; /* 0x3801BF9E: jmp 0x3801bfb0 */
   2915 L_3801BFAD:
   2916     eax = MEM32(ebp + 0x8); /* 0x3801BFAD: mov eax, dword ptr [ebp + 8] */
   2917 L_3801BFB0:
   2918     /* test eax, eax */ /* 0x3801BFB0: test eax, eax */
   2919     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2920     _cf = 0;
   2921     _flag_k = FK_TEST;
   2922     MEM32(ebp + (-0x4)) = 0; /* 0x3801BFB2: mov dword ptr [ebp - 4], 0 */
   2923     if (TEST_Z(_flag_a, _flag_b)) goto L_3801BFC6; /* 0x3801BFB9: je 0x3801bfc6 */
   2924 L_3801BFBB:
   2925     ecx = MEM32(ebp + (-0x14)); /* 0x3801BFBB: mov ecx, dword ptr [ebp - 0x14] */
   2926     PUSH32(esp, eax); /* 0x3801BFBE: push eax */
   2927     RECOMP_ICALL(0x3801C010u); /* 0x3801BFBF: call 0x3801c010 */ /* not lifted */
   2928     RECOMP_FLAGS_IN();
   2929     RECOMP_BACKEDGE();
   2930     goto L_3801BF7C; /* 0x3801BFC4: jmp 0x3801bf7c */
   2931 L_3801BFC6:
   2932     ecx = ebp + (-0x58); /* 0x3801BFC6: lea ecx, [ebp - 0x58] */
   2933     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801BFC9: mov dword ptr [ebp - 4], 0xffffffff */
   2934     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801BFD0: call dword ptr [0x3804e378] */
   2935     RECOMP_FLAGS_IN();
   2936     ecx = MEM32(ebp + (-0xC)); /* 0x3801BFD6: mov ecx, dword ptr [ebp - 0xc] */
   2937     edi = POP32_VAL(esp); /* 0x3801BFD9: pop edi */
   2938     esi = POP32_VAL(esp); /* 0x3801BFDA: pop esi */
   2939     MEM32(FS_BASE + (0)) = ecx; /* 0x3801BFDB: mov dword ptr fs:[0], ecx */
   2940     ebx = POP32_VAL(esp); /* 0x3801BFE2: pop ebx */
   2941     esp = ebp; /* 0x3801BFE3: mov esp, ebp */
   2942     ebp = POP32_VAL(esp); /* 0x3801BFE5: pop ebp */
   2943     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } /* 0x3801BFE6: ret 0xc */
   2944   _ljump:
   2945     switch (_itail_tgt) {
   2946       case 0x3801BFADu: goto L_3801BFAD;
   2947       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; }
   2948     }
   2949     RECOMP_EH_LEAVE(); RECOMP_REGS_OUT();
   2950 }
   2951 
   2952 void sub_3801BF7C(void) {
   2953     int _fpu_cmp = 0;
   2954     uint32_t _cf = 0;
   2955     int _df = 1;
   2956     uint32_t _flag_k = FK_NONE;
   2957     uint32_t _flag_a = 0, _flag_b = 0;
   2958     uint32_t _itail_tgt = 0;
   2959     RECOMP_REGS_LOCALS
   2960     RECOMP_ENTER(0x3801BF7Cu);
   2961 
   2962 L_3801BF7C:
   2963     ecx = ebp + (-0x58); /* 0x3801BF7C: lea ecx, [ebp - 0x58] */
   2964     RECOMP_ICALL(MEM32(0x3804E3C4)); /* 0x3801BF7F: call dword ptr [0x3804e3c4] */
   2965     RECOMP_FLAGS_IN();
   2966     /* cmp eax, MEM32(ebp + 0xC) */ /* 0x3801BF85: cmp eax, dword ptr [ebp + 0xc] */
   2967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
   2968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2969     _flag_k = FK_CMP;
   2970     if (CMP_AE(_flag_a, _flag_b)) goto L_3801BFC6; /* 0x3801BF88: jae 0x3801bfc6 */
   2971 L_3801BF8A:
   2972     eax = MEM32(ebp + 0x10); /* 0x3801BF8A: mov eax, dword ptr [ebp + 0x10] */
   2973     edx = ebp + (-0x58); /* 0x3801BF8D: lea edx, [ebp - 0x58] */
   2974     PUSH32(esp, edx); /* 0x3801BF90: push edx */
   2975     PUSH32(esp, eax); /* 0x3801BF91: push eax */
   2976     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3801BF92: mov byte ptr [ebp - 4], 1 */
   2977     RECOMP_ICALL(0x380240B0u); /* 0x3801BF96: call 0x380240b0 */ /* not lifted */
   2978     RECOMP_FLAGS_IN();
   2979     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2980     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2981     esp = esp + 8; /* 0x3801BF9B: add esp, 8 */
   2982     _flag_k = FK_ADD;
   2983     goto L_3801BFB0; /* 0x3801BF9E: jmp 0x3801bfb0 */
   2984 L_3801BFB0:
   2985     /* test eax, eax */ /* 0x3801BFB0: test eax, eax */
   2986     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2987     _cf = 0;
   2988     _flag_k = FK_TEST;
   2989     MEM32(ebp + (-0x4)) = 0; /* 0x3801BFB2: mov dword ptr [ebp - 4], 0 */
   2990     if (TEST_Z(_flag_a, _flag_b)) goto L_3801BFC6; /* 0x3801BFB9: je 0x3801bfc6 */
   2991 L_3801BFBB:
   2992     ecx = MEM32(ebp + (-0x14)); /* 0x3801BFBB: mov ecx, dword ptr [ebp - 0x14] */
   2993     PUSH32(esp, eax); /* 0x3801BFBE: push eax */
   2994     RECOMP_ICALL(0x3801C010u); /* 0x3801BFBF: call 0x3801c010 */ /* not lifted */
   2995     RECOMP_FLAGS_IN();
   2996     RECOMP_BACKEDGE();
   2997     goto L_3801BF7C; /* 0x3801BFC4: jmp 0x3801bf7c */
   2998 L_3801BFC6:
   2999     ecx = ebp + (-0x58); /* 0x3801BFC6: lea ecx, [ebp - 0x58] */
   3000     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801BFC9: mov dword ptr [ebp - 4], 0xffffffff */
   3001     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801BFD0: call dword ptr [0x3804e378] */
   3002     RECOMP_FLAGS_IN();
   3003     ecx = MEM32(ebp + (-0xC)); /* 0x3801BFD6: mov ecx, dword ptr [ebp - 0xc] */
   3004     edi = POP32_VAL(esp); /* 0x3801BFD9: pop edi */
   3005     esi = POP32_VAL(esp); /* 0x3801BFDA: pop esi */
   3006     MEM32(FS_BASE + (0)) = ecx; /* 0x3801BFDB: mov dword ptr fs:[0], ecx */
   3007     ebx = POP32_VAL(esp); /* 0x3801BFE2: pop ebx */
   3008     esp = ebp; /* 0x3801BFE3: mov esp, ebp */
   3009     ebp = POP32_VAL(esp); /* 0x3801BFE5: pop ebp */
   3010     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801BFE6: ret 0xc */
   3011     RECOMP_REGS_OUT();
   3012 }
   3013 
   3014 void sub_3801BFA0(void) {
   3015     int _fpu_cmp = 0;
   3016     uint32_t _cf = 0;
   3017     int _df = 1;
   3018     uint32_t _flag_k = FK_NONE;
   3019     uint32_t _flag_a = 0, _flag_b = 0;
   3020     uint32_t _itail_tgt = 0;
   3021     RECOMP_REGS_LOCALS
   3022     RECOMP_ENTER(0x3801BFA0u);
   3023 
   3024 L_3801BFA0:
   3025     MEM32(ebp + 0x8) = 0; /* 0x3801BFA0: mov dword ptr [ebp + 8], 0 */
   3026     eax = 0x3801BFADu; /* 0x3801BFA7: mov eax, 0x3801bfad */
   3027     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801BFAC: ret  */
   3028     RECOMP_REGS_OUT();
   3029 }
   3030 
   3031 void sub_3801BFAD(void) {
   3032     int _fpu_cmp = 0;
   3033     uint32_t _cf = 0;
   3034     int _df = 1;
   3035     uint32_t _flag_k = FK_NONE;
   3036     uint32_t _flag_a = 0, _flag_b = 0;
   3037     uint32_t _itail_tgt = 0;
   3038     RECOMP_REGS_LOCALS
   3039     RECOMP_ENTER(0x3801BFADu);
   3040 
   3041     goto L_3801BFAD;
   3042 L_3801BF7C:
   3043     ecx = ebp + (-0x58); /* 0x3801BF7C: lea ecx, [ebp - 0x58] */
   3044     RECOMP_ICALL(MEM32(0x3804E3C4)); /* 0x3801BF7F: call dword ptr [0x3804e3c4] */
   3045     RECOMP_FLAGS_IN();
   3046     /* cmp eax, MEM32(ebp + 0xC) */ /* 0x3801BF85: cmp eax, dword ptr [ebp + 0xc] */
   3047     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
   3048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3049     _flag_k = FK_CMP;
   3050     if (CMP_AE(_flag_a, _flag_b)) goto L_3801BFC6; /* 0x3801BF88: jae 0x3801bfc6 */
   3051 L_3801BF8A:
   3052     eax = MEM32(ebp + 0x10); /* 0x3801BF8A: mov eax, dword ptr [ebp + 0x10] */
   3053     edx = ebp + (-0x58); /* 0x3801BF8D: lea edx, [ebp - 0x58] */
   3054     PUSH32(esp, edx); /* 0x3801BF90: push edx */
   3055     PUSH32(esp, eax); /* 0x3801BF91: push eax */
   3056     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3801BF92: mov byte ptr [ebp - 4], 1 */
   3057     RECOMP_ICALL(0x380240B0u); /* 0x3801BF96: call 0x380240b0 */ /* not lifted */
   3058     RECOMP_FLAGS_IN();
   3059     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3060     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3061     esp = esp + 8; /* 0x3801BF9B: add esp, 8 */
   3062     _flag_k = FK_ADD;
   3063     goto L_3801BFB0; /* 0x3801BF9E: jmp 0x3801bfb0 */
   3064 L_3801BFAD:
   3065     eax = MEM32(ebp + 0x8); /* 0x3801BFAD: mov eax, dword ptr [ebp + 8] */
   3066 L_3801BFB0:
   3067     /* test eax, eax */ /* 0x3801BFB0: test eax, eax */
   3068     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3069     _cf = 0;
   3070     _flag_k = FK_TEST;
   3071     MEM32(ebp + (-0x4)) = 0; /* 0x3801BFB2: mov dword ptr [ebp - 4], 0 */
   3072     if (TEST_Z(_flag_a, _flag_b)) goto L_3801BFC6; /* 0x3801BFB9: je 0x3801bfc6 */
   3073 L_3801BFBB:
   3074     ecx = MEM32(ebp + (-0x14)); /* 0x3801BFBB: mov ecx, dword ptr [ebp - 0x14] */
   3075     PUSH32(esp, eax); /* 0x3801BFBE: push eax */
   3076     RECOMP_ICALL(0x3801C010u); /* 0x3801BFBF: call 0x3801c010 */ /* not lifted */
   3077     RECOMP_FLAGS_IN();
   3078     RECOMP_BACKEDGE();
   3079     goto L_3801BF7C; /* 0x3801BFC4: jmp 0x3801bf7c */
   3080 L_3801BFC6:
   3081     ecx = ebp + (-0x58); /* 0x3801BFC6: lea ecx, [ebp - 0x58] */
   3082     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801BFC9: mov dword ptr [ebp - 4], 0xffffffff */
   3083     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801BFD0: call dword ptr [0x3804e378] */
   3084     RECOMP_FLAGS_IN();
   3085     ecx = MEM32(ebp + (-0xC)); /* 0x3801BFD6: mov ecx, dword ptr [ebp - 0xc] */
   3086     edi = POP32_VAL(esp); /* 0x3801BFD9: pop edi */
   3087     esi = POP32_VAL(esp); /* 0x3801BFDA: pop esi */
   3088     MEM32(FS_BASE + (0)) = ecx; /* 0x3801BFDB: mov dword ptr fs:[0], ecx */
   3089     ebx = POP32_VAL(esp); /* 0x3801BFE2: pop ebx */
   3090     esp = ebp; /* 0x3801BFE3: mov esp, ebp */
   3091     ebp = POP32_VAL(esp); /* 0x3801BFE5: pop ebp */
   3092     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801BFE6: ret 0xc */
   3093     RECOMP_REGS_OUT();
   3094 }
   3095 
   3096 void sub_3801BFB0(void) {
   3097     int _fpu_cmp = 0;
   3098     uint32_t _cf = 0;
   3099     int _df = 1;
   3100     uint32_t _flag_k = FK_NONE;
   3101     uint32_t _flag_a = 0, _flag_b = 0;
   3102     uint32_t _itail_tgt = 0;
   3103     RECOMP_REGS_LOCALS
   3104     RECOMP_ENTER(0x3801BFB0u);
   3105 
   3106     goto L_3801BFB0;
   3107 L_3801BF7C:
   3108     ecx = ebp + (-0x58); /* 0x3801BF7C: lea ecx, [ebp - 0x58] */
   3109     RECOMP_ICALL(MEM32(0x3804E3C4)); /* 0x3801BF7F: call dword ptr [0x3804e3c4] */
   3110     RECOMP_FLAGS_IN();
   3111     /* cmp eax, MEM32(ebp + 0xC) */ /* 0x3801BF85: cmp eax, dword ptr [ebp + 0xc] */
   3112     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
   3113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3114     _flag_k = FK_CMP;
   3115     if (CMP_AE(_flag_a, _flag_b)) goto L_3801BFC6; /* 0x3801BF88: jae 0x3801bfc6 */
   3116 L_3801BF8A:
   3117     eax = MEM32(ebp + 0x10); /* 0x3801BF8A: mov eax, dword ptr [ebp + 0x10] */
   3118     edx = ebp + (-0x58); /* 0x3801BF8D: lea edx, [ebp - 0x58] */
   3119     PUSH32(esp, edx); /* 0x3801BF90: push edx */
   3120     PUSH32(esp, eax); /* 0x3801BF91: push eax */
   3121     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3801BF92: mov byte ptr [ebp - 4], 1 */
   3122     RECOMP_ICALL(0x380240B0u); /* 0x3801BF96: call 0x380240b0 */ /* not lifted */
   3123     RECOMP_FLAGS_IN();
   3124     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3125     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3126     esp = esp + 8; /* 0x3801BF9B: add esp, 8 */
   3127     _flag_k = FK_ADD;
   3128     goto L_3801BFB0; /* 0x3801BF9E: jmp 0x3801bfb0 */
   3129 L_3801BFB0:
   3130     /* test eax, eax */ /* 0x3801BFB0: test eax, eax */
   3131     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3132     _cf = 0;
   3133     _flag_k = FK_TEST;
   3134     MEM32(ebp + (-0x4)) = 0; /* 0x3801BFB2: mov dword ptr [ebp - 4], 0 */
   3135     if (TEST_Z(_flag_a, _flag_b)) goto L_3801BFC6; /* 0x3801BFB9: je 0x3801bfc6 */
   3136 L_3801BFBB:
   3137     ecx = MEM32(ebp + (-0x14)); /* 0x3801BFBB: mov ecx, dword ptr [ebp - 0x14] */
   3138     PUSH32(esp, eax); /* 0x3801BFBE: push eax */
   3139     RECOMP_ICALL(0x3801C010u); /* 0x3801BFBF: call 0x3801c010 */ /* not lifted */
   3140     RECOMP_FLAGS_IN();
   3141     RECOMP_BACKEDGE();
   3142     goto L_3801BF7C; /* 0x3801BFC4: jmp 0x3801bf7c */
   3143 L_3801BFC6:
   3144     ecx = ebp + (-0x58); /* 0x3801BFC6: lea ecx, [ebp - 0x58] */
   3145     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801BFC9: mov dword ptr [ebp - 4], 0xffffffff */
   3146     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801BFD0: call dword ptr [0x3804e378] */
   3147     RECOMP_FLAGS_IN();
   3148     ecx = MEM32(ebp + (-0xC)); /* 0x3801BFD6: mov ecx, dword ptr [ebp - 0xc] */
   3149     edi = POP32_VAL(esp); /* 0x3801BFD9: pop edi */
   3150     esi = POP32_VAL(esp); /* 0x3801BFDA: pop esi */
   3151     MEM32(FS_BASE + (0)) = ecx; /* 0x3801BFDB: mov dword ptr fs:[0], ecx */
   3152     ebx = POP32_VAL(esp); /* 0x3801BFE2: pop ebx */
   3153     esp = ebp; /* 0x3801BFE3: mov esp, ebp */
   3154     ebp = POP32_VAL(esp); /* 0x3801BFE5: pop ebp */
   3155     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801BFE6: ret 0xc */
   3156     RECOMP_REGS_OUT();
   3157 }
   3158 
   3159 void sub_3801BFC6(void) {
   3160     int _fpu_cmp = 0;
   3161     uint32_t _cf = 0;
   3162     int _df = 1;
   3163     uint32_t _flag_k = FK_NONE;
   3164     uint32_t _flag_a = 0, _flag_b = 0;
   3165     uint32_t _itail_tgt = 0;
   3166     RECOMP_REGS_LOCALS
   3167     RECOMP_ENTER(0x3801BFC6u);
   3168 
   3169 L_3801BFC6:
   3170     ecx = ebp + (-0x58); /* 0x3801BFC6: lea ecx, [ebp - 0x58] */
   3171     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801BFC9: mov dword ptr [ebp - 4], 0xffffffff */
   3172     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801BFD0: call dword ptr [0x3804e378] */
   3173     RECOMP_FLAGS_IN();
   3174     ecx = MEM32(ebp + (-0xC)); /* 0x3801BFD6: mov ecx, dword ptr [ebp - 0xc] */
   3175     edi = POP32_VAL(esp); /* 0x3801BFD9: pop edi */
   3176     esi = POP32_VAL(esp); /* 0x3801BFDA: pop esi */
   3177     MEM32(FS_BASE + (0)) = ecx; /* 0x3801BFDB: mov dword ptr fs:[0], ecx */
   3178     ebx = POP32_VAL(esp); /* 0x3801BFE2: pop ebx */
   3179     esp = ebp; /* 0x3801BFE3: mov esp, ebp */
   3180     ebp = POP32_VAL(esp); /* 0x3801BFE5: pop ebp */
   3181     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801BFE6: ret 0xc */
   3182     RECOMP_REGS_OUT();
   3183 }
   3184 
   3185 void sub_3801BFF0(void) {
   3186     int _fpu_cmp = 0;
   3187     uint32_t _cf = 0;
   3188     int _df = 1;
   3189     uint32_t _flag_k = FK_NONE;
   3190     uint32_t _flag_a = 0, _flag_b = 0;
   3191     uint32_t _itail_tgt = 0;
   3192     RECOMP_REGS_LOCALS
   3193     RECOMP_ENTER(0x3801BFF0u);
   3194 
   3195 L_3801BFF0:
   3196     PUSH32(esp, ebp); /* 0x3801BFF0: push ebp */
   3197     ebp = esp; /* 0x3801BFF1: mov ebp, esp */
   3198     eax = MEM32(ebp + 0x8); /* 0x3801BFF3: mov eax, dword ptr [ebp + 8] */
   3199     ecx = MEM32(ecx + 0x48); /* 0x3801BFF6: mov ecx, dword ptr [ecx + 0x48] */
   3200     PUSH32(esp, eax); /* 0x3801BFF9: push eax */
   3201     RECOMP_ICALL(0x38021AD0u); /* 0x3801BFFA: call 0x38021ad0 */ /* not lifted */
   3202     RECOMP_FLAGS_IN();
   3203     ebp = POP32_VAL(esp); /* 0x3801BFFF: pop ebp */
   3204     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C000: ret 4 */
   3205     RECOMP_REGS_OUT();
   3206 }
   3207 
   3208 void sub_3801C010(void) {
   3209     int _fpu_cmp = 0;
   3210     uint32_t _cf = 0;
   3211     int _df = 1;
   3212     uint32_t _flag_k = FK_NONE;
   3213     uint32_t _flag_a = 0, _flag_b = 0;
   3214     uint32_t _itail_tgt = 0;
   3215     RECOMP_REGS_LOCALS
   3216     RECOMP_ENTER(0x3801C010u);
   3217 
   3218 L_3801C010:
   3219     PUSH32(esp, ebp); /* 0x3801C010: push ebp */
   3220     ebp = esp; /* 0x3801C011: mov ebp, esp */
   3221     eax = MEM32(ebp + 0x8); /* 0x3801C013: mov eax, dword ptr [ebp + 8] */
   3222     ecx = MEM32(ecx + 0x4C); /* 0x3801C016: mov ecx, dword ptr [ecx + 0x4c] */
   3223     PUSH32(esp, eax); /* 0x3801C019: push eax */
   3224     RECOMP_ICALL(0x38021AD0u); /* 0x3801C01A: call 0x38021ad0 */ /* not lifted */
   3225     RECOMP_FLAGS_IN();
   3226     ebp = POP32_VAL(esp); /* 0x3801C01F: pop ebp */
   3227     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C020: ret 4 */
   3228     RECOMP_REGS_OUT();
   3229 }
   3230 
   3231 void sub_3801C030(void) {
   3232     int _fpu_cmp = 0;
   3233     uint32_t _cf = 0;
   3234     int _df = 1;
   3235     uint32_t _flag_k = FK_NONE;
   3236     uint32_t _flag_a = 0, _flag_b = 0;
   3237     uint32_t _itail_tgt = 0;
   3238     RECOMP_REGS_LOCALS
   3239     RECOMP_ENTER(0x3801C030u);
   3240 
   3241 L_3801C030:
   3242     PUSH32(esp, ebp); /* 0x3801C030: push ebp */
   3243     ebp = esp; /* 0x3801C031: mov ebp, esp */
   3244     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801C033: push -1 */
   3245     PUSH32(esp, 0x3804C2C1u); /* 0x3801C035: push 0x3804c2c1 */
   3246     eax = MEM32(FS_BASE + (0)); /* 0x3801C03A: mov eax, dword ptr fs:[0] */
   3247     PUSH32(esp, eax); /* 0x3801C040: push eax */
   3248     MEM32(FS_BASE + (0)) = esp; /* 0x3801C041: mov dword ptr fs:[0], esp */
   3249     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x54u);
   3250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3251     esp = esp - 0x54u; /* 0x3801C048: sub esp, 0x54 */
   3252     _flag_k = FK_CMP;
   3253     eax = MEM32(ebp + 0x8); /* 0x3801C04B: mov eax, dword ptr [ebp + 8] */
   3254     PUSH32(esp, ebx); /* 0x3801C04E: push ebx */
   3255     PUSH32(esp, esi); /* 0x3801C04F: push esi */
   3256     PUSH32(esp, 0); /* 0x3801C050: push 0 */
   3257     PUSH32(esp, 0x3806BE98u); /* 0x3801C052: push 0x3806be98 */
   3258     PUSH32(esp, 0x3806BE78u); /* 0x3801C057: push 0x3806be78 */
   3259     ebx = ecx; /* 0x3801C05C: mov ebx, ecx */
   3260     PUSH32(esp, 0); /* 0x3801C05E: push 0 */
   3261     PUSH32(esp, eax); /* 0x3801C060: push eax */
   3262     MEM32(ebp + (-0x10)) = ebx; /* 0x3801C061: mov dword ptr [ebp - 0x10], ebx */
   3263     RECOMP_ICALL(0x3804B682u); /* 0x3801C064: call 0x3804b682 */ /* not lifted */
   3264     RECOMP_FLAGS_IN();
   3265     esi = eax; /* 0x3801C069: mov esi, eax */
   3266     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3267     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3268     esp = esp + 0x14u; /* 0x3801C06B: add esp, 0x14 */
   3269     _flag_k = FK_ADD;
   3270     ecx = esi; /* 0x3801C06E: mov ecx, esi */
   3271     RECOMP_ICALL(0x38024410u); /* 0x3801C070: call 0x38024410 */ /* not lifted */
   3272     RECOMP_FLAGS_IN();
   3273     PUSH32(esp, 0x800u); /* 0x3801C075: push 0x800 */
   3274     ecx = ebp + (-0x60); /* 0x3801C07A: lea ecx, [ebp - 0x60] */
   3275     RECOMP_ICALL(MEM32(0x3804E384)); /* 0x3801C07D: call dword ptr [0x3804e384] */
   3276     RECOMP_FLAGS_IN();
   3277     ecx = ebp + (-0x60); /* 0x3801C083: lea ecx, [ebp - 0x60] */
   3278     PUSH32(esp, ecx); /* 0x3801C086: push ecx */
   3279     ecx = esi; /* 0x3801C087: mov ecx, esi */
   3280     MEM32(ebp + (-0x4)) = 0; /* 0x3801C089: mov dword ptr [ebp - 4], 0 */
   3281     RECOMP_ICALL(0x38024450u); /* 0x3801C090: call 0x38024450 */ /* not lifted */
   3282     RECOMP_FLAGS_IN();
   3283     /* test LO8(eax), LO8(eax) */ /* 0x3801C095: test al, al */
   3284     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3285     _cf = 0;
   3286     _flag_k = FK_NARROW(FK_TEST, 24);
   3287     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C0BB; /* 0x3801C097: jne 0x3801c0bb */
   3288 L_3801C099:
   3289     ecx = ebp + (-0x60); /* 0x3801C099: lea ecx, [ebp - 0x60] */
   3290     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801C09C: mov dword ptr [ebp - 4], 0xffffffff */
   3291     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801C0A3: call dword ptr [0x3804e378] */
   3292     RECOMP_FLAGS_IN();
   3293     esi = POP32_VAL(esp); /* 0x3801C0A9: pop esi */
   3294     ebx = POP32_VAL(esp); /* 0x3801C0AA: pop ebx */
   3295     ecx = MEM32(ebp + (-0xC)); /* 0x3801C0AB: mov ecx, dword ptr [ebp - 0xc] */
   3296     MEM32(FS_BASE + (0)) = ecx; /* 0x3801C0AE: mov dword ptr fs:[0], ecx */
   3297     esp = ebp; /* 0x3801C0B5: mov esp, ebp */
   3298     ebp = POP32_VAL(esp); /* 0x3801C0B7: pop ebp */
   3299     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C0B8: ret 4 */
   3300 L_3801C0BB:
   3301     PUSH32(esp, edi); /* 0x3801C0BB: push edi */
   3302     PUSH32(esp, 0x34u); /* 0x3801C0BC: push 0x34 */
   3303     MEM8(ebp + (-0x3C)) = (uint8_t)(0); /* 0x3801C0BE: mov byte ptr [ebp - 0x3c], 0 */
   3304     RECOMP_ICALL(0x3804B676u); /* 0x3801C0C2: call 0x3804b676 */ /* not lifted */
   3305     RECOMP_FLAGS_IN();
   3306     edi = eax; /* 0x3801C0C7: mov edi, eax */
   3307     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3309     esp = esp + 4; /* 0x3801C0C9: add esp, 4 */
   3310     _flag_k = FK_ADD;
   3311     MEM32(ebp + 0x8) = edi; /* 0x3801C0CC: mov dword ptr [ebp + 8], edi */
   3312     /* test edi, edi */ /* 0x3801C0CF: test edi, edi */
   3313     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3314     _cf = 0;
   3315     _flag_k = FK_TEST;
   3316     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3801C0D1: mov byte ptr [ebp - 4], 1 */
   3317     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C15B; /* 0x3801C0D5: je 0x3801c15b */
   3318 L_3801C0DB:
   3319     ebx = MEM32(ebp + (-0x50)); /* 0x3801C0DB: mov ebx, dword ptr [ebp - 0x50] */
   3320     ecx = ebp + (-0x60); /* 0x3801C0DE: lea ecx, [ebp - 0x60] */
   3321     RECOMP_ICALL(MEM32(0x3804E370)); /* 0x3801C0E1: call dword ptr [0x3804e370] */
   3322     RECOMP_FLAGS_IN();
   3323     PUSH32(esp, 0); /* 0x3801C0E7: push 0 */
   3324     PUSH32(esp, 0); /* 0x3801C0E9: push 0 */
   3325     esi = edi + 0x28; /* 0x3801C0EB: lea esi, [edi + 0x28] */
   3326     PUSH32(esp, esi); /* 0x3801C0EE: push esi */
   3327     PUSH32(esp, 0); /* 0x3801C0EF: push 0 */
   3328     PUSH32(esp, ebx); /* 0x3801C0F1: push ebx */
   3329     PUSH32(esp, 1); /* 0x3801C0F2: push 1 */
   3330     PUSH32(esp, eax); /* 0x3801C0F4: push eax */
   3331     ecx = edi; /* 0x3801C0F5: mov ecx, edi */
   3332     RECOMP_ICALL(MEM32(0x3804E140)); /* 0x3801C0F7: call dword ptr [0x3804e140] */
   3333     RECOMP_FLAGS_IN();
   3334     MEM32(ebp + (-0x14)) = esi; /* 0x3801C0FD: mov dword ptr [ebp - 0x14], esi */
   3335     PUSH32(esp, 0x1Cu); /* 0x3801C100: push 0x1c */
   3336     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3801C102: mov byte ptr [ebp - 4], 3 */
   3337     MEM32(esi + 0x4) = 0; /* 0x3801C106: mov dword ptr [esi + 4], 0 */
   3338     MEM32(esi + 0x8) = 1; /* 0x3801C10D: mov dword ptr [esi + 8], 1 */
   3339     MEM32(esi) = 0x3804F168u; /* 0x3801C114: mov dword ptr [esi], 0x3804f168 */
   3340     RECOMP_ICALL(0x3804B676u); /* 0x3801C11A: call 0x3804b676 */ /* not lifted */
   3341     RECOMP_FLAGS_IN();
   3342     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3343     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3344     esp = esp + 4; /* 0x3801C11F: add esp, 4 */
   3345     _flag_k = FK_ADD;
   3346     MEM32(ebp + (-0x18)) = eax; /* 0x3801C122: mov dword ptr [ebp - 0x18], eax */
   3347     /* test eax, eax */ /* 0x3801C125: test eax, eax */
   3348     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3349     _cf = 0;
   3350     _flag_k = FK_TEST;
   3351     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3801C127: mov byte ptr [ebp - 4], 4 */
   3352     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C13B; /* 0x3801C12B: je 0x3801c13b */
   3353 L_3801C12D:
   3354     PUSH32(esp, 0); /* 0x3801C12D: push 0 */
   3355     PUSH32(esp, 0); /* 0x3801C12F: push 0 */
   3356     ecx = eax; /* 0x3801C131: mov ecx, eax */
   3357     RECOMP_ICALL(MEM32(0x3804E12C)); /* 0x3801C133: call dword ptr [0x3804e12c] */
   3358     RECOMP_FLAGS_IN();
   3359     goto L_3801C13D; /* 0x3801C139: jmp 0x3801c13d */
   3360 L_3801C13B:
   3361     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3362     eax = 0; /* 0x3801C13B: xor eax, eax */
   3363     _cf = 0;
   3364     _flag_k = FK_TEST;
   3365 L_3801C13D:
   3366     /* test eax, eax */ /* 0x3801C13D: test eax, eax */
   3367     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3368     _cf = 0;
   3369     _flag_k = FK_TEST;
   3370     MEM32(esi + 0x4) = eax; /* 0x3801C13F: mov dword ptr [esi + 4], eax */
   3371     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C150; /* 0x3801C142: jne 0x3801c150 */
   3372 L_3801C144:
   3373     RECOMP_ICALL(MEM32(0x3804E0F8)); /* 0x3801C144: call dword ptr [0x3804e0f8] */
   3374     RECOMP_FLAGS_IN();
   3375     MEM32(eax) = 0xCu; /* 0x3801C14A: mov dword ptr [eax], 0xc */
   3376 L_3801C150:
   3377     ebx = MEM32(ebp + (-0x10)); /* 0x3801C150: mov ebx, dword ptr [ebp - 0x10] */
   3378     MEM32(edi) = 0x3804F158u; /* 0x3801C153: mov dword ptr [edi], 0x3804f158 */
   3379     goto L_3801C15D; /* 0x3801C159: jmp 0x3801c15d */
   3380 L_3801C15B:
   3381     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3382     edi = 0; /* 0x3801C15B: xor edi, edi */
   3383     _cf = 0;
   3384     _flag_k = FK_TEST;
   3385 L_3801C15D:
   3386     edx = MEM32(ebx); /* 0x3801C15D: mov edx, dword ptr [ebx] */
   3387     PUSH32(esp, edi); /* 0x3801C15F: push edi */
   3388     eax = ebp + (-0x1C); /* 0x3801C160: lea eax, [ebp - 0x1c] */
   3389     PUSH32(esp, eax); /* 0x3801C163: push eax */
   3390     ecx = ebx; /* 0x3801C164: mov ecx, ebx */
   3391     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3801C166: mov byte ptr [ebp - 4], 0 */
   3392     MEM32(ebp + (-0x1C)) = 0x2718u; /* 0x3801C16A: mov dword ptr [ebp - 0x1c], 0x2718 */
   3393     MEM32(ebp + (-0x18)) = 1; /* 0x3801C171: mov dword ptr [ebp - 0x18], 1 */
   3394     RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x3801C178: call dword ptr [edx + 0x34] */
   3395     RECOMP_FLAGS_IN();
   3396     ecx = ebp + (-0x60); /* 0x3801C17B: lea ecx, [ebp - 0x60] */
   3397     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801C17E: mov dword ptr [ebp - 4], 0xffffffff */
   3398     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3801C185: call dword ptr [0x3804e378] */
   3399     RECOMP_FLAGS_IN();
   3400     ecx = MEM32(ebp + (-0xC)); /* 0x3801C18B: mov ecx, dword ptr [ebp - 0xc] */
   3401     edi = POP32_VAL(esp); /* 0x3801C18E: pop edi */
   3402     esi = POP32_VAL(esp); /* 0x3801C18F: pop esi */
   3403     ebx = POP32_VAL(esp); /* 0x3801C190: pop ebx */
   3404     MEM32(FS_BASE + (0)) = ecx; /* 0x3801C191: mov dword ptr fs:[0], ecx */
   3405     esp = ebp; /* 0x3801C198: mov esp, ebp */
   3406     ebp = POP32_VAL(esp); /* 0x3801C19A: pop ebp */
   3407     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C19B: ret 4 */
   3408     RECOMP_REGS_OUT();
   3409 }
   3410 
   3411 void sub_3801C1A0(void) {
   3412     int _fpu_cmp = 0;
   3413     uint32_t _cf = 0;
   3414     int _df = 1;
   3415     uint32_t _flag_k = FK_NONE;
   3416     uint32_t _flag_a = 0, _flag_b = 0;
   3417     uint32_t _itail_tgt = 0;
   3418     RECOMP_REGS_LOCALS
   3419     RECOMP_ENTER(0x3801C1A0u);
   3420 
   3421 L_3801C1A0:
   3422     PUSH32(esp, ebp); /* 0x3801C1A0: push ebp */
   3423     ebp = esp; /* 0x3801C1A1: mov ebp, esp */
   3424     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3426     esp = esp - 0x14u; /* 0x3801C1A3: sub esp, 0x14 */
   3427     _flag_k = FK_CMP;
   3428     PUSH32(esp, edi); /* 0x3801C1A6: push edi */
   3429     edi = ecx; /* 0x3801C1A7: mov edi, ecx */
   3430     ecx = MEM32(ebp + 0x8); /* 0x3801C1A9: mov ecx, dword ptr [ebp + 8] */
   3431     eax = MEM32(ecx); /* 0x3801C1AC: mov eax, dword ptr [ecx] */
   3432     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3801C1AE: call dword ptr [eax + 4] */
   3433     RECOMP_FLAGS_IN();
   3434     /* cmp eax, 1 */ /* 0x3801C1B1: cmp eax, 1 */
   3435     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3436     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3437     _flag_k = FK_CMP;
   3438     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C222; /* 0x3801C1B4: je 0x3801c222 */
   3439 L_3801C1B6:
   3440     ecx = MEM32(ebp + 0x8); /* 0x3801C1B6: mov ecx, dword ptr [ebp + 8] */
   3441     edx = MEM32(ecx); /* 0x3801C1B9: mov edx, dword ptr [ecx] */
   3442     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3801C1BB: call dword ptr [edx + 4] */
   3443     RECOMP_FLAGS_IN();
   3444     /* cmp eax, 3 */ /* 0x3801C1BE: cmp eax, 3 */
   3445     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   3446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3447     _flag_k = FK_CMP;
   3448     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C1CC; /* 0x3801C1C1: jne 0x3801c1cc */
   3449 L_3801C1C3:
   3450     SET_LO8(eax, 1); /* 0x3801C1C3: mov al, 1 */
   3451     edi = POP32_VAL(esp); /* 0x3801C1C5: pop edi */
   3452     esp = ebp; /* 0x3801C1C6: mov esp, ebp */
   3453     ebp = POP32_VAL(esp); /* 0x3801C1C8: pop ebp */
   3454     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C1C9: ret 4 */
   3455 L_3801C1CC:
   3456     PUSH32(esp, esi); /* 0x3801C1CC: push esi */
   3457     esi = MEM32(edi + 0x54); /* 0x3801C1CD: mov esi, dword ptr [edi + 0x54] */
   3458     eax = ebp + 0x8; /* 0x3801C1D0: lea eax, [ebp + 8] */
   3459     PUSH32(esp, eax); /* 0x3801C1D3: push eax */
   3460     ecx = ebp + (-0x10); /* 0x3801C1D4: lea ecx, [ebp - 0x10] */
   3461     PUSH32(esp, ecx); /* 0x3801C1D7: push ecx */
   3462     ecx = esi; /* 0x3801C1D8: mov ecx, esi */
   3463     RECOMP_ICALL(0x38027CF0u); /* 0x3801C1DA: call 0x38027cf0 */ /* not lifted */
   3464     RECOMP_FLAGS_IN();
   3465     eax = MEM32(eax); /* 0x3801C1DF: mov eax, dword ptr [eax] */
   3466     esi = MEM32(esi + 0x4); /* 0x3801C1E1: mov esi, dword ptr [esi + 4] */
   3467     /* cmp eax, esi */ /* 0x3801C1E4: cmp eax, esi */
   3468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3470     _flag_k = FK_CMP;
   3471     edx = MEM32(ebp + 0x8); /* 0x3801C1E6: mov edx, dword ptr [ebp + 8] */
   3472     MEM32(ebp + (-0x4)) = eax; /* 0x3801C1E9: mov dword ptr [ebp - 4], eax */
   3473     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C1F8; /* 0x3801C1EC: je 0x3801c1f8 */
   3474 L_3801C1EE:
   3475     /* cmp edx, MEM32(eax + 0xC) */ /* 0x3801C1EE: cmp edx, dword ptr [eax + 0xc] */
   3476     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   3477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3478     _flag_k = FK_CMP;
   3479     if (CMP_B(_flag_a, _flag_b)) goto L_3801C1F8; /* 0x3801C1F1: jb 0x3801c1f8 */
   3480 L_3801C1F3:
   3481     eax = ebp + (-0x4); /* 0x3801C1F3: lea eax, [ebp - 4] */
   3482     goto L_3801C1FE; /* 0x3801C1F6: jmp 0x3801c1fe */
   3483 L_3801C1F8:
   3484     MEM32(ebp + (-0x8)) = esi; /* 0x3801C1F8: mov dword ptr [ebp - 8], esi */
   3485     eax = ebp + (-0x8); /* 0x3801C1FB: lea eax, [ebp - 8] */
   3486 L_3801C1FE:
   3487     ecx = MEM32(edi + 0x54); /* 0x3801C1FE: mov ecx, dword ptr [edi + 0x54] */
   3488     esi = MEM32(ecx + 0x4); /* 0x3801C201: mov esi, dword ptr [ecx + 4] */
   3489     eax = MEM32(eax); /* 0x3801C204: mov eax, dword ptr [eax] */
   3490     /* cmp eax, esi */ /* 0x3801C206: cmp eax, esi */
   3491     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3493     _flag_k = FK_CMP;
   3494     esi = POP32_VAL(esp); /* 0x3801C208: pop esi */
   3495     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C22B; /* 0x3801C209: jne 0x3801c22b */
   3496 L_3801C20B:
   3497     MEM32(ebp + (-0x14)) = edx; /* 0x3801C20B: mov dword ptr [ebp - 0x14], edx */
   3498     edx = ebp + (-0x14); /* 0x3801C20E: lea edx, [ebp - 0x14] */
   3499     PUSH32(esp, edx); /* 0x3801C211: push edx */
   3500     eax = ebp + (-0xC); /* 0x3801C212: lea eax, [ebp - 0xc] */
   3501     PUSH32(esp, eax); /* 0x3801C215: push eax */
   3502     MEM32(ebp + (-0x10)) = 0; /* 0x3801C216: mov dword ptr [ebp - 0x10], 0 */
   3503     RECOMP_ICALL(0x3801C870u); /* 0x3801C21D: call 0x3801c870 */ /* not lifted */
   3504     RECOMP_FLAGS_IN();
   3505 L_3801C222:
   3506     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3507     SET_LO8(eax, 0); /* 0x3801C222: xor al, al */
   3508     _cf = 0;
   3509     _flag_k = FK_NARROW(FK_TEST, 24);
   3510     edi = POP32_VAL(esp); /* 0x3801C224: pop edi */
   3511     esp = ebp; /* 0x3801C225: mov esp, ebp */
   3512     ebp = POP32_VAL(esp); /* 0x3801C227: pop ebp */
   3513     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C228: ret 4 */
   3514 L_3801C22B:
   3515     ecx = MEM32(eax + 0x10); /* 0x3801C22B: mov ecx, dword ptr [eax + 0x10] */
   3516     /* cmp ecx, 0x1388u */ /* 0x3801C22E: cmp ecx, 0x1388 */
   3517     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1388u);
   3518     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3519     _flag_k = FK_CMP;
   3520     edx = ecx + 0x1; /* 0x3801C234: lea edx, [ecx + 1] */
   3521     MEM32(eax + 0x10) = edx; /* 0x3801C237: mov dword ptr [eax + 0x10], edx */
   3522     RECOMP_BACKEDGE();
   3523     if (CMP_LE(_flag_a, _flag_b)) goto L_3801C222; /* 0x3801C23A: jle 0x3801c222 */
   3524 L_3801C23C:
   3525     SET_LO8(eax, 1); /* 0x3801C23C: mov al, 1 */
   3526     edi = POP32_VAL(esp); /* 0x3801C23E: pop edi */
   3527     esp = ebp; /* 0x3801C23F: mov esp, ebp */
   3528     ebp = POP32_VAL(esp); /* 0x3801C241: pop ebp */
   3529     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C242: ret 4 */
   3530     RECOMP_REGS_OUT();
   3531 }
   3532 
   3533 void sub_3801C250(void) {
   3534     int _fpu_cmp = 0;
   3535     uint32_t _cf = 0;
   3536     int _df = 1;
   3537     uint32_t _flag_k = FK_NONE;
   3538     uint32_t _flag_a = 0, _flag_b = 0;
   3539     uint32_t _itail_tgt = 0;
   3540     RECOMP_REGS_LOCALS
   3541     RECOMP_ENTER(0x3801C250u);
   3542 
   3543 L_3801C250:
   3544     eax = MEM32(ecx + 0x54); /* 0x3801C250: mov eax, dword ptr [ecx + 0x54] */
   3545     edx = MEM32(eax + 0x4); /* 0x3801C253: mov edx, dword ptr [eax + 4] */
   3546     eax = MEM32(edx); /* 0x3801C256: mov eax, dword ptr [edx] */
   3547     /* cmp eax, edx */ /* 0x3801C258: cmp eax, edx */
   3548     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3549     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3550     _flag_k = FK_CMP;
   3551     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C2A8; /* 0x3801C25A: je 0x3801c2a8 */
   3552 L_3801C25C:
   3553     PUSH32(esp, ebx); /* 0x3801C25C: push ebx */
   3554 L_3801C25D:
   3555     MEM32(eax + 0x10) = 0x000F423Fu; /* 0x3801C25D: mov dword ptr [eax + 0x10], 0xf423f */
   3556     edx = MEM32(eax + 0x8); /* 0x3801C264: mov edx, dword ptr [eax + 8] */
   3557     SET_LO8(ebx, MEM8(edx + 0x15)); /* 0x3801C267: mov bl, byte ptr [edx + 0x15] */
   3558     /* test LO8(ebx), LO8(ebx) */ /* 0x3801C26A: test bl, bl */
   3559     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3560     _cf = 0;
   3561     _flag_k = FK_NARROW(FK_TEST, 24);
   3562     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C286; /* 0x3801C26C: jne 0x3801c286 */
   3563 L_3801C26E:
   3564     eax = edx; /* 0x3801C26E: mov eax, edx */
   3565     edx = MEM32(eax); /* 0x3801C270: mov edx, dword ptr [eax] */
   3566     SET_LO8(ebx, MEM8(edx + 0x15)); /* 0x3801C272: mov bl, byte ptr [edx + 0x15] */
   3567     /* test LO8(ebx), LO8(ebx) */ /* 0x3801C275: test bl, bl */
   3568     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3569     _cf = 0;
   3570     _flag_k = FK_NARROW(FK_TEST, 24);
   3571     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C29F; /* 0x3801C277: jne 0x3801c29f */
   3572 L_3801C279:
   3573     eax = edx; /* 0x3801C279: mov eax, edx */
   3574     edx = MEM32(eax); /* 0x3801C27B: mov edx, dword ptr [eax] */
   3575     SET_LO8(ebx, MEM8(edx + 0x15)); /* 0x3801C27D: mov bl, byte ptr [edx + 0x15] */
   3576     /* test LO8(ebx), LO8(ebx) */ /* 0x3801C280: test bl, bl */
   3577     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3578     _cf = 0;
   3579     _flag_k = FK_NARROW(FK_TEST, 24);
   3580     RECOMP_BACKEDGE();
   3581     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C279; /* 0x3801C282: je 0x3801c279 */
   3582 L_3801C284:
   3583     goto L_3801C29F; /* 0x3801C284: jmp 0x3801c29f */
   3584 L_3801C286:
   3585     edx = MEM32(eax + 0x4); /* 0x3801C286: mov edx, dword ptr [eax + 4] */
   3586     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801C289: cmp eax, dword ptr [edx + 8] */
   3587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3589     _flag_k = FK_CMP;
   3590     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C298; /* 0x3801C28C: jne 0x3801c298 */
   3591 L_3801C28E:
   3592     eax = edx; /* 0x3801C28E: mov eax, edx */
   3593     edx = MEM32(edx + 0x4); /* 0x3801C290: mov edx, dword ptr [edx + 4] */
   3594     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3801C293: cmp eax, dword ptr [edx + 8] */
   3595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3597     _flag_k = FK_CMP;
   3598     RECOMP_BACKEDGE();
   3599     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C28E; /* 0x3801C296: je 0x3801c28e */
   3600 L_3801C298:
   3601     /* cmp MEM32(eax + 0x8), edx */ /* 0x3801C298: cmp dword ptr [eax + 8], edx */
   3602     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(edx);
   3603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3604     _flag_k = FK_CMP;
   3605     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C29F; /* 0x3801C29B: je 0x3801c29f */
   3606 L_3801C29D:
   3607     eax = edx; /* 0x3801C29D: mov eax, edx */
   3608 L_3801C29F:
   3609     edx = MEM32(ecx + 0x54); /* 0x3801C29F: mov edx, dword ptr [ecx + 0x54] */
   3610     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801C2A2: cmp eax, dword ptr [edx + 4] */
   3611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3613     _flag_k = FK_CMP;
   3614     RECOMP_BACKEDGE();
   3615     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C25D; /* 0x3801C2A5: jne 0x3801c25d */
   3616 L_3801C2A7:
   3617     ebx = POP32_VAL(esp); /* 0x3801C2A7: pop ebx */
   3618 L_3801C2A8:
   3619     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801C2A8: ret  */
   3620     RECOMP_REGS_OUT();
   3621 }
   3622 
   3623 void sub_3801C2B0(void) {
   3624     int _fpu_cmp = 0;
   3625     uint32_t _cf = 0;
   3626     int _df = 1;
   3627     uint32_t _flag_k = FK_NONE;
   3628     uint32_t _flag_a = 0, _flag_b = 0;
   3629     uint32_t _itail_tgt = 0;
   3630     RECOMP_REGS_LOCALS
   3631     RECOMP_ENTER(0x3801C2B0u);
   3632 
   3633 L_3801C2B0:
   3634     PUSH32(esp, ebp); /* 0x3801C2B0: push ebp */
   3635     ebp = esp; /* 0x3801C2B1: mov ebp, esp */
   3636     PUSH32(esp, ecx); /* 0x3801C2B3: push ecx */
   3637     PUSH32(esp, esi); /* 0x3801C2B4: push esi */
   3638     esi = ecx; /* 0x3801C2B5: mov esi, ecx */
   3639     ecx = MEM32(esi + 0x50); /* 0x3801C2B7: mov ecx, dword ptr [esi + 0x50] */
   3640     MEM32(ebp + (-0x4)) = 0; /* 0x3801C2BA: mov dword ptr [ebp - 4], 0 */
   3641     RECOMP_ICALL(0x38021DC0u); /* 0x3801C2C1: call 0x38021dc0 */ /* not lifted */
   3642     RECOMP_FLAGS_IN();
   3643     /* test LO8(eax), LO8(eax) */ /* 0x3801C2C6: test al, al */
   3644     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3645     _cf = 0;
   3646     _flag_k = FK_NARROW(FK_TEST, 24);
   3647     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C313; /* 0x3801C2C8: jne 0x3801c313 */
   3648 L_3801C2CA:
   3649     ecx = MEM32(esi + 0x50); /* 0x3801C2CA: mov ecx, dword ptr [esi + 0x50] */
   3650     eax = ebp + (-0x4); /* 0x3801C2CD: lea eax, [ebp - 4] */
   3651     PUSH32(esp, eax); /* 0x3801C2D0: push eax */
   3652     RECOMP_ICALL(0x38021CA0u); /* 0x3801C2D1: call 0x38021ca0 */ /* not lifted */
   3653     RECOMP_FLAGS_IN();
   3654     ecx = MEM32(ebp + (-0x4)); /* 0x3801C2D6: mov ecx, dword ptr [ebp - 4] */
   3655     PUSH32(esp, ecx); /* 0x3801C2D9: push ecx */
   3656     ecx = esi; /* 0x3801C2DA: mov ecx, esi */
   3657     RECOMP_ICALL(0x3801C1A0u); /* 0x3801C2DC: call 0x3801c1a0 */ /* not lifted */
   3658     RECOMP_FLAGS_IN();
   3659     /* cmp LO8(eax), 1 */ /* 0x3801C2E1: cmp al, 1 */
   3660     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3662     _flag_k = FK_NARROW(FK_CMP, 24);
   3663     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C2FB; /* 0x3801C2E3: jne 0x3801c2fb */
   3664 L_3801C2E5:
   3665     ecx = MEM32(ebp + (-0x4)); /* 0x3801C2E5: mov ecx, dword ptr [ebp - 4] */
   3666     /* test ecx, ecx */ /* 0x3801C2E8: test ecx, ecx */
   3667     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3668     _cf = 0;
   3669     _flag_k = FK_TEST;
   3670     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C2F2; /* 0x3801C2EA: je 0x3801c2f2 */
   3671 L_3801C2EC:
   3672     edx = MEM32(ecx); /* 0x3801C2EC: mov edx, dword ptr [ecx] */
   3673     PUSH32(esp, 1); /* 0x3801C2EE: push 1 */
   3674     RECOMP_ICALL(MEM32(edx)); /* 0x3801C2F0: call dword ptr [edx] */
   3675     RECOMP_FLAGS_IN();
   3676 L_3801C2F2:
   3677     MEM32(ebp + (-0x4)) = 0; /* 0x3801C2F2: mov dword ptr [ebp - 4], 0 */
   3678     goto L_3801C307; /* 0x3801C2F9: jmp 0x3801c307 */
   3679 L_3801C2FB:
   3680     eax = MEM32(ebp + (-0x4)); /* 0x3801C2FB: mov eax, dword ptr [ebp - 4] */
   3681     ecx = MEM32(esi + 0x48); /* 0x3801C2FE: mov ecx, dword ptr [esi + 0x48] */
   3682     PUSH32(esp, eax); /* 0x3801C301: push eax */
   3683     RECOMP_ICALL(0x38021AD0u); /* 0x3801C302: call 0x38021ad0 */ /* not lifted */
   3684     RECOMP_FLAGS_IN();
   3685 L_3801C307:
   3686     ecx = MEM32(esi + 0x50); /* 0x3801C307: mov ecx, dword ptr [esi + 0x50] */
   3687     RECOMP_ICALL(0x38021DC0u); /* 0x3801C30A: call 0x38021dc0 */ /* not lifted */
   3688     RECOMP_FLAGS_IN();
   3689     /* test LO8(eax), LO8(eax) */ /* 0x3801C30F: test al, al */
   3690     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3691     _cf = 0;
   3692     _flag_k = FK_NARROW(FK_TEST, 24);
   3693     RECOMP_BACKEDGE();
   3694     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C2CA; /* 0x3801C311: je 0x3801c2ca */
   3695 L_3801C313:
   3696     esi = POP32_VAL(esp); /* 0x3801C313: pop esi */
   3697     esp = ebp; /* 0x3801C314: mov esp, ebp */
   3698     ebp = POP32_VAL(esp); /* 0x3801C316: pop ebp */
   3699     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801C317: ret  */
   3700     RECOMP_REGS_OUT();
   3701 }
   3702 
   3703 void sub_3801C320(void) {
   3704     int _fpu_cmp = 0;
   3705     uint32_t _cf = 0;
   3706     int _df = 1;
   3707     uint32_t _flag_k = FK_NONE;
   3708     uint32_t _flag_a = 0, _flag_b = 0;
   3709     uint32_t _itail_tgt = 0;
   3710     RECOMP_REGS_LOCALS
   3711     RECOMP_ENTER(0x3801C320u);
   3712 
   3713 L_3801C320:
   3714     PUSH32(esp, ebp); /* 0x3801C320: push ebp */
   3715     ebp = esp; /* 0x3801C321: mov ebp, esp */
   3716     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3718     esp = esp - 8; /* 0x3801C323: sub esp, 8 */
   3719     _flag_k = FK_CMP;
   3720     PUSH32(esp, esi); /* 0x3801C326: push esi */
   3721     PUSH32(esp, edi); /* 0x3801C327: push edi */
   3722     edi = ecx; /* 0x3801C328: mov edi, ecx */
   3723     esi = MEM32(edi + 0x54); /* 0x3801C32A: mov esi, dword ptr [edi + 0x54] */
   3724     eax = ebp + 0x8; /* 0x3801C32D: lea eax, [ebp + 8] */
   3725     PUSH32(esp, eax); /* 0x3801C330: push eax */
   3726     ecx = esi; /* 0x3801C331: mov ecx, esi */
   3727     RECOMP_ICALL(0x3801D450u); /* 0x3801C333: call 0x3801d450 */ /* not lifted */
   3728     RECOMP_FLAGS_IN();
   3729     esi = MEM32(esi + 0x4); /* 0x3801C338: mov esi, dword ptr [esi + 4] */
   3730     /* cmp eax, esi */ /* 0x3801C33B: cmp eax, esi */
   3731     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3733     _flag_k = FK_CMP;
   3734     MEM32(ebp + (-0x4)) = eax; /* 0x3801C33D: mov dword ptr [ebp - 4], eax */
   3735     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C34F; /* 0x3801C340: je 0x3801c34f */
   3736 L_3801C342:
   3737     ecx = MEM32(ebp + 0x8); /* 0x3801C342: mov ecx, dword ptr [ebp + 8] */
   3738     /* cmp ecx, MEM32(eax + 0xC) */ /* 0x3801C345: cmp ecx, dword ptr [eax + 0xc] */
   3739     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   3740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3741     _flag_k = FK_CMP;
   3742     if (CMP_B(_flag_a, _flag_b)) goto L_3801C34F; /* 0x3801C348: jb 0x3801c34f */
   3743 L_3801C34A:
   3744     eax = ebp + (-0x4); /* 0x3801C34A: lea eax, [ebp - 4] */
   3745     goto L_3801C355; /* 0x3801C34D: jmp 0x3801c355 */
   3746 L_3801C34F:
   3747     MEM32(ebp + (-0x8)) = esi; /* 0x3801C34F: mov dword ptr [ebp - 8], esi */
   3748     eax = ebp + (-0x8); /* 0x3801C352: lea eax, [ebp - 8] */
   3749 L_3801C355:
   3750     ecx = MEM32(edi + 0x54); /* 0x3801C355: mov ecx, dword ptr [edi + 0x54] */
   3751     eax = MEM32(eax); /* 0x3801C358: mov eax, dword ptr [eax] */
   3752     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801C35A: cmp eax, dword ptr [ecx + 4] */
   3753     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3754     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3755     _flag_k = FK_CMP;
   3756     edi = POP32_VAL(esp); /* 0x3801C35D: pop edi */
   3757     esi = POP32_VAL(esp); /* 0x3801C35E: pop esi */
   3758     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C36B; /* 0x3801C35F: je 0x3801c36b */
   3759 L_3801C361:
   3760     PUSH32(esp, eax); /* 0x3801C361: push eax */
   3761     edx = ebp + (-0x8); /* 0x3801C362: lea edx, [ebp - 8] */
   3762     PUSH32(esp, edx); /* 0x3801C365: push edx */
   3763     RECOMP_ICALL(0x3800F9D0u); /* 0x3801C366: call 0x3800f9d0 */ /* not lifted */
   3764     RECOMP_FLAGS_IN();
   3765 L_3801C36B:
   3766     esp = ebp; /* 0x3801C36B: mov esp, ebp */
   3767     ebp = POP32_VAL(esp); /* 0x3801C36D: pop ebp */
   3768     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C36E: ret 4 */
   3769     RECOMP_REGS_OUT();
   3770 }
   3771 
   3772 void sub_3801C380(void) {
   3773     int _fpu_cmp = 0;
   3774     uint32_t _cf = 0;
   3775     int _df = 1;
   3776     uint32_t _flag_k = FK_NONE;
   3777     uint32_t _flag_a = 0, _flag_b = 0;
   3778     uint32_t _itail_tgt = 0;
   3779     RECOMP_REGS_LOCALS
   3780     RECOMP_ENTER(0x3801C380u);
   3781 
   3782 L_3801C380:
   3783     PUSH32(esp, ebp); /* 0x3801C380: push ebp */
   3784     ebp = esp; /* 0x3801C381: mov ebp, esp */
   3785     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3787     esp = esp - 8; /* 0x3801C383: sub esp, 8 */
   3788     _flag_k = FK_CMP;
   3789     PUSH32(esp, ebx); /* 0x3801C386: push ebx */
   3790     PUSH32(esp, esi); /* 0x3801C387: push esi */
   3791     esi = ecx; /* 0x3801C388: mov esi, ecx */
   3792     ecx = MEM32(esi + 0x48); /* 0x3801C38A: mov ecx, dword ptr [esi + 0x48] */
   3793     PUSH32(esp, edi); /* 0x3801C38D: push edi */
   3794     RECOMP_ICALL(0x38014120u); /* 0x3801C38E: call 0x38014120 */ /* not lifted */
   3795     RECOMP_FLAGS_IN();
   3796     ecx = MEM32(esi + 0x48); /* 0x3801C393: mov ecx, dword ptr [esi + 0x48] */
   3797     edi = eax; /* 0x3801C396: mov edi, eax */
   3798     eax = MEM32(esi + 0x4C); /* 0x3801C398: mov eax, dword ptr [esi + 0x4c] */
   3799     PUSH32(esp, eax); /* 0x3801C39B: push eax */
   3800     RECOMP_ICALL(0x38021DD0u); /* 0x3801C39C: call 0x38021dd0 */ /* not lifted */
   3801     RECOMP_FLAGS_IN();
   3802     ecx = MEM32(esi + 0x48); /* 0x3801C3A1: mov ecx, dword ptr [esi + 0x48] */
   3803     ebx = MEM32(esi); /* 0x3801C3A4: mov ebx, dword ptr [esi] */
   3804     PUSH32(esp, edi); /* 0x3801C3A6: push edi */
   3805     RECOMP_ICALL(0x38014120u); /* 0x3801C3A7: call 0x38014120 */ /* not lifted */
   3806     RECOMP_FLAGS_IN();
   3807     PUSH32(esp, eax); /* 0x3801C3AC: push eax */
   3808     ecx = esi; /* 0x3801C3AD: mov ecx, esi */
   3809     RECOMP_ICALL(MEM32(ebx + 0x44)); /* 0x3801C3AF: call dword ptr [ebx + 0x44] */
   3810     RECOMP_FLAGS_IN();
   3811     ecx = esi; /* 0x3801C3B2: mov ecx, esi */
   3812     RECOMP_ICALL(0x3801C2B0u); /* 0x3801C3B4: call 0x3801c2b0 */ /* not lifted */
   3813     RECOMP_FLAGS_IN();
   3814     ecx = MEM32(esi + 0x48); /* 0x3801C3B9: mov ecx, dword ptr [esi + 0x48] */
   3815     SET_LO8(ebx, 1); /* 0x3801C3BC: mov bl, 1 */
   3816     RECOMP_ICALL(0x38021DC0u); /* 0x3801C3BE: call 0x38021dc0 */ /* not lifted */
   3817     RECOMP_FLAGS_IN();
   3818     /* test LO8(eax), LO8(eax) */ /* 0x3801C3C3: test al, al */
   3819     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3820     _cf = 0;
   3821     _flag_k = FK_NARROW(FK_TEST, 24);
   3822     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C494; /* 0x3801C3C5: jne 0x3801c494 */
   3823 L_3801C3CB:
   3824     SET_LO8(eax, MEM8(esi + 0x58)); /* 0x3801C3CB: mov al, byte ptr [esi + 0x58] */
   3825     /* test LO8(eax), LO8(eax) */ /* 0x3801C3CE: test al, al */
   3826     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3827     _cf = 0;
   3828     _flag_k = FK_NARROW(FK_TEST, 24);
   3829     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C494; /* 0x3801C3D0: jne 0x3801c494 */
   3830 L_3801C3D6:
   3831     /* test LO8(ebx), LO8(ebx) */ /* 0x3801C3D6: test bl, bl */
   3832     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3833     _cf = 0;
   3834     _flag_k = FK_NARROW(FK_TEST, 24);
   3835     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C494; /* 0x3801C3D8: je 0x3801c494 */
   3836 L_3801C3DE:
   3837     ecx = ebp + (-0x4); /* 0x3801C3DE: lea ecx, [ebp - 4] */
   3838     PUSH32(esp, ecx); /* 0x3801C3E1: push ecx */
   3839     ecx = MEM32(esi + 0x48); /* 0x3801C3E2: mov ecx, dword ptr [esi + 0x48] */
   3840     MEM32(ebp + (-0x4)) = 0; /* 0x3801C3E5: mov dword ptr [ebp - 4], 0 */
   3841     RECOMP_ICALL(0x38021CA0u); /* 0x3801C3EC: call 0x38021ca0 */ /* not lifted */
   3842     RECOMP_FLAGS_IN();
   3843     ecx = MEM32(ebp + (-0x4)); /* 0x3801C3F1: mov ecx, dword ptr [ebp - 4] */
   3844     edx = MEM32(ecx); /* 0x3801C3F4: mov edx, dword ptr [ecx] */
   3845     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3801C3F6: call dword ptr [edx + 4] */
   3846     RECOMP_FLAGS_IN();
   3847     /* cmp eax, 1 */ /* 0x3801C3F9: cmp eax, 1 */
   3848     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3850     _flag_k = FK_CMP;
   3851     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C40C; /* 0x3801C3FC: je 0x3801c40c */
   3852 L_3801C3FE:
   3853     eax = MEM32(ebp + (-0x4)); /* 0x3801C3FE: mov eax, dword ptr [ebp - 4] */
   3854     ecx = MEM32(esi + 0x50); /* 0x3801C401: mov ecx, dword ptr [esi + 0x50] */
   3855     PUSH32(esp, eax); /* 0x3801C404: push eax */
   3856     RECOMP_ICALL(0x38021AD0u); /* 0x3801C405: call 0x38021ad0 */ /* not lifted */
   3857     RECOMP_FLAGS_IN();
   3858     goto L_3801C484; /* 0x3801C40A: jmp 0x3801c484 */
   3859 L_3801C40C:
   3860     ecx = MEM32(ebp + (-0x4)); /* 0x3801C40C: mov ecx, dword ptr [ebp - 4] */
   3861     edx = MEM32(ecx); /* 0x3801C40F: mov edx, dword ptr [ecx] */
   3862     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3801C411: call dword ptr [edx + 8] */
   3863     RECOMP_FLAGS_IN();
   3864     edi = eax; /* 0x3801C414: mov edi, eax */
   3865     eax = MEM32(ebp + (-0x4)); /* 0x3801C416: mov eax, dword ptr [ebp - 4] */
   3866     PUSH32(esp, eax); /* 0x3801C419: push eax */
   3867     ecx = esi; /* 0x3801C41A: mov ecx, esi */
   3868     RECOMP_ICALL(0x3801C320u); /* 0x3801C41C: call 0x3801c320 */ /* not lifted */
   3869     RECOMP_FLAGS_IN();
   3870     eax = MEM32(ebp + (-0x4)); /* 0x3801C421: mov eax, dword ptr [ebp - 4] */
   3871     edx = MEM32(esi); /* 0x3801C424: mov edx, dword ptr [esi] */
   3872     PUSH32(esp, eax); /* 0x3801C426: push eax */
   3873     ecx = esi; /* 0x3801C427: mov ecx, esi */
   3874     RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x3801C429: call dword ptr [edx + 0x48] */
   3875     RECOMP_FLAGS_IN();
   3876     ecx = MEM32(ebp + (-0x4)); /* 0x3801C42C: mov ecx, dword ptr [ebp - 4] */
   3877     edx = MEM32(ecx); /* 0x3801C42F: mov edx, dword ptr [ecx] */
   3878     SET_LO8(ebx, LO8(eax)); /* 0x3801C431: mov bl, al */
   3879     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3801C433: call dword ptr [edx + 0xc] */
   3880     RECOMP_FLAGS_IN();
   3881     /* cmp LO8(eax), 1 */ /* 0x3801C436: cmp al, 1 */
   3882     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3883     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3884     _flag_k = FK_NARROW(FK_CMP, 24);
   3885     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C477; /* 0x3801C438: jne 0x3801c477 */
   3886 L_3801C43A:
   3887     /* test edi, edi */ /* 0x3801C43A: test edi, edi */
   3888     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3889     _cf = 0;
   3890     _flag_k = FK_TEST;
   3891     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C468; /* 0x3801C43C: je 0x3801c468 */
   3892 L_3801C43E:
   3893     eax = MEM32(ebp + (-0x4)); /* 0x3801C43E: mov eax, dword ptr [ebp - 4] */
   3894     PUSH32(esp, 0); /* 0x3801C441: push 0 */
   3895     PUSH32(esp, 0x3806BE98u); /* 0x3801C443: push 0x3806be98 */
   3896     PUSH32(esp, 0x3806BE78u); /* 0x3801C448: push 0x3806be78 */
   3897     PUSH32(esp, 0); /* 0x3801C44D: push 0 */
   3898     PUSH32(esp, eax); /* 0x3801C44F: push eax */
   3899     RECOMP_ICALL(0x3804B682u); /* 0x3801C450: call 0x3804b682 */ /* not lifted */
   3900     RECOMP_FLAGS_IN();
   3901     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3902     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3903     esp = esp + 0x14u; /* 0x3801C455: add esp, 0x14 */
   3904     _flag_k = FK_ADD;
   3905     ecx = ebp + (-0x8); /* 0x3801C458: lea ecx, [ebp - 8] */
   3906     PUSH32(esp, ecx); /* 0x3801C45B: push ecx */
   3907     ecx = edi; /* 0x3801C45C: mov ecx, edi */
   3908     MEM32(ebp + (-0x8)) = eax; /* 0x3801C45E: mov dword ptr [ebp - 8], eax */
   3909     RECOMP_ICALL(0x3801A610u); /* 0x3801C461: call 0x3801a610 */ /* not lifted */
   3910     RECOMP_FLAGS_IN();
   3911     goto L_3801C484; /* 0x3801C466: jmp 0x3801c484 */
   3912 L_3801C468:
   3913     ecx = MEM32(ebp + (-0x4)); /* 0x3801C468: mov ecx, dword ptr [ebp - 4] */
   3914     /* test ecx, ecx */ /* 0x3801C46B: test ecx, ecx */
   3915     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3916     _cf = 0;
   3917     _flag_k = FK_TEST;
   3918     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C484; /* 0x3801C46D: je 0x3801c484 */
   3919 L_3801C46F:
   3920     edx = MEM32(ecx); /* 0x3801C46F: mov edx, dword ptr [ecx] */
   3921     PUSH32(esp, 1); /* 0x3801C471: push 1 */
   3922     RECOMP_ICALL(MEM32(edx)); /* 0x3801C473: call dword ptr [edx] */
   3923     RECOMP_FLAGS_IN();
   3924     goto L_3801C484; /* 0x3801C475: jmp 0x3801c484 */
   3925 L_3801C477:
   3926     ecx = MEM32(ebp + (-0x4)); /* 0x3801C477: mov ecx, dword ptr [ebp - 4] */
   3927     /* test ecx, ecx */ /* 0x3801C47A: test ecx, ecx */
   3928     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3929     _cf = 0;
   3930     _flag_k = FK_TEST;
   3931     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C484; /* 0x3801C47C: je 0x3801c484 */
   3932 L_3801C47E:
   3933     eax = MEM32(ecx); /* 0x3801C47E: mov eax, dword ptr [ecx] */
   3934     PUSH32(esp, 1); /* 0x3801C480: push 1 */
   3935     RECOMP_ICALL(MEM32(eax)); /* 0x3801C482: call dword ptr [eax] */
   3936     RECOMP_FLAGS_IN();
   3937 L_3801C484:
   3938     ecx = MEM32(esi + 0x48); /* 0x3801C484: mov ecx, dword ptr [esi + 0x48] */
   3939     RECOMP_ICALL(0x38021DC0u); /* 0x3801C487: call 0x38021dc0 */ /* not lifted */
   3940     RECOMP_FLAGS_IN();
   3941     /* test LO8(eax), LO8(eax) */ /* 0x3801C48C: test al, al */
   3942     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3943     _cf = 0;
   3944     _flag_k = FK_NARROW(FK_TEST, 24);
   3945     RECOMP_BACKEDGE();
   3946     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C3CB; /* 0x3801C48E: je 0x3801c3cb */
   3947 L_3801C494:
   3948     ecx = MEM32(esi + 0x48); /* 0x3801C494: mov ecx, dword ptr [esi + 0x48] */
   3949     edi = MEM32(esi); /* 0x3801C497: mov edi, dword ptr [esi] */
   3950     RECOMP_ICALL(0x38014120u); /* 0x3801C499: call 0x38014120 */ /* not lifted */
   3951     RECOMP_FLAGS_IN();
   3952     PUSH32(esp, eax); /* 0x3801C49E: push eax */
   3953     ecx = esi; /* 0x3801C49F: mov ecx, esi */
   3954     RECOMP_ICALL(MEM32(edi + 0x4C)); /* 0x3801C4A1: call dword ptr [edi + 0x4c] */
   3955     RECOMP_FLAGS_IN();
   3956     edi = POP32_VAL(esp); /* 0x3801C4A4: pop edi */
   3957     esi = POP32_VAL(esp); /* 0x3801C4A5: pop esi */
   3958     ebx = POP32_VAL(esp); /* 0x3801C4A6: pop ebx */
   3959     esp = ebp; /* 0x3801C4A7: mov esp, ebp */
   3960     ebp = POP32_VAL(esp); /* 0x3801C4A9: pop ebp */
   3961     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801C4AA: ret  */
   3962     RECOMP_REGS_OUT();
   3963 }
   3964 
   3965 void sub_3801C4B0(void) {
   3966     int _fpu_cmp = 0;
   3967     uint32_t _cf = 0;
   3968     int _df = 1;
   3969     uint32_t _flag_k = FK_NONE;
   3970     uint32_t _flag_a = 0, _flag_b = 0;
   3971     uint32_t _itail_tgt = 0;
   3972     RECOMP_REGS_LOCALS
   3973     RECOMP_ENTER(0x3801C4B0u);
   3974 
   3975 L_3801C4B0:
   3976     SET_LO8(eax, 1); /* 0x3801C4B0: mov al, 1 */
   3977     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C4B2: ret 4 */
   3978     RECOMP_REGS_OUT();
   3979 }
   3980 
   3981 void sub_3801C4C0(void) {
   3982     int _fpu_cmp = 0;
   3983     uint32_t _cf = 0;
   3984     int _df = 1;
   3985     uint32_t _flag_k = FK_NONE;
   3986     uint32_t _flag_a = 0, _flag_b = 0;
   3987     uint32_t _itail_tgt = 0;
   3988     RECOMP_REGS_LOCALS
   3989     RECOMP_ENTER(0x3801C4C0u);
   3990 
   3991 L_3801C4C0:
   3992     PUSH32(esp, ebp); /* 0x3801C4C0: push ebp */
   3993     ebp = esp; /* 0x3801C4C1: mov ebp, esp */
   3994     SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x3801C4C3: mov al, byte ptr [ebp + 8] */
   3995     MEM8(ecx + 0x58) = (uint8_t)(LO8(eax)); /* 0x3801C4C6: mov byte ptr [ecx + 0x58], al */
   3996     ebp = POP32_VAL(esp); /* 0x3801C4C9: pop ebp */
   3997     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C4CA: ret 4 */
   3998     RECOMP_REGS_OUT();
   3999 }
   4000 
   4001 void sub_3801C4D0(void) {
   4002     int _fpu_cmp = 0;
   4003     uint32_t _cf = 0;
   4004     int _df = 1;
   4005     uint32_t _flag_k = FK_NONE;
   4006     uint32_t _flag_a = 0, _flag_b = 0;
   4007     uint32_t _itail_tgt = 0;
   4008     RECOMP_REGS_LOCALS
   4009     RECOMP_ENTER(0x3801C4D0u);
   4010 
   4011 L_3801C4D0:
   4012     PUSH32(esp, ebp); /* 0x3801C4D0: push ebp */
   4013     ebp = esp; /* 0x3801C4D1: mov ebp, esp */
   4014     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4016     esp = esp - 8; /* 0x3801C4D3: sub esp, 8 */
   4017     _flag_k = FK_CMP;
   4018     eax = MEM32(ebp + 0x8); /* 0x3801C4D6: mov eax, dword ptr [ebp + 8] */
   4019     ecx = ebp + (-0x8); /* 0x3801C4D9: lea ecx, [ebp - 8] */
   4020     /* cmp eax, ecx */ /* 0x3801C4DC: cmp eax, ecx */
   4021     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4023     _flag_k = FK_CMP;
   4024     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C4ED; /* 0x3801C4DE: je 0x3801c4ed */
   4025 L_3801C4E0:
   4026     MEM32(eax) = 0; /* 0x3801C4E0: mov dword ptr [eax], 0 */
   4027     MEM32(eax + 0x4) = 0; /* 0x3801C4E6: mov dword ptr [eax + 4], 0 */
   4028 L_3801C4ED:
   4029     esp = ebp; /* 0x3801C4ED: mov esp, ebp */
   4030     ebp = POP32_VAL(esp); /* 0x3801C4EF: pop ebp */
   4031     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C4F0: ret 4 */
   4032     RECOMP_REGS_OUT();
   4033 }
   4034 
   4035 void sub_3801C500(void) {
   4036     int _fpu_cmp = 0;
   4037     uint32_t _cf = 0;
   4038     int _df = 1;
   4039     uint32_t _flag_k = FK_NONE;
   4040     uint32_t _flag_a = 0, _flag_b = 0;
   4041     uint32_t _itail_tgt = 0;
   4042     RECOMP_REGS_LOCALS
   4043     RECOMP_ENTER(0x3801C500u);
   4044 
   4045 L_3801C500:
   4046     PUSH32(esp, ebp); /* 0x3801C500: push ebp */
   4047     ebp = esp; /* 0x3801C501: mov ebp, esp */
   4048     eax = MEM32(FS_BASE + (0)); /* 0x3801C503: mov eax, dword ptr fs:[0] */
   4049     PUSH32(esp, 0xFFFFFFFFu); /* 0x3801C509: push -1 */
   4050     PUSH32(esp, 0x3804C2DBu); /* 0x3801C50B: push 0x3804c2db */
   4051     PUSH32(esp, eax); /* 0x3801C510: push eax */
   4052     eax = MEM32(ebp + 0xC); /* 0x3801C511: mov eax, dword ptr [ebp + 0xc] */
   4053     MEM32(FS_BASE + (0)) = esp; /* 0x3801C514: mov dword ptr fs:[0], esp */
   4054     PUSH32(esp, esi); /* 0x3801C51B: push esi */
   4055     PUSH32(esp, edi); /* 0x3801C51C: push edi */
   4056     edi = MEM32(ebp + 0x8); /* 0x3801C51D: mov edi, dword ptr [ebp + 8] */
   4057     esi = ecx; /* 0x3801C520: mov esi, ecx */
   4058     MEM32(esi + 0x6C) = eax; /* 0x3801C522: mov dword ptr [esi + 0x6c], eax */
   4059     MEM32(esi + 0x60) = edi; /* 0x3801C525: mov dword ptr [esi + 0x60], edi */
   4060     RECOMP_ICALL(0x38016B10u); /* 0x3801C528: call 0x38016b10 */ /* not lifted */
   4061     RECOMP_FLAGS_IN();
   4062     PUSH32(esp, edi); /* 0x3801C52D: push edi */
   4063     ecx = eax; /* 0x3801C52E: mov ecx, eax */
   4064     RECOMP_ICALL(0x38016B20u); /* 0x3801C530: call 0x38016b20 */ /* not lifted */
   4065     RECOMP_FLAGS_IN();
   4066     PUSH32(esp, 0x10u); /* 0x3801C535: push 0x10 */
   4067     RECOMP_ICALL(0x3804B676u); /* 0x3801C537: call 0x3804b676 */ /* not lifted */
   4068     RECOMP_FLAGS_IN();
   4069     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4070     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4071     esp = esp + 4; /* 0x3801C53C: add esp, 4 */
   4072     _flag_k = FK_ADD;
   4073     MEM32(ebp + 0xC) = eax; /* 0x3801C53F: mov dword ptr [ebp + 0xc], eax */
   4074     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4075     edi = 0; /* 0x3801C542: xor edi, edi */
   4076     _cf = 0;
   4077     _flag_k = FK_TEST;
   4078     /* cmp eax, edi */ /* 0x3801C544: cmp eax, edi */
   4079     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4081     _flag_k = FK_CMP;
   4082     MEM32(ebp + (-0x4)) = edi; /* 0x3801C546: mov dword ptr [ebp - 4], edi */
   4083     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C554; /* 0x3801C549: je 0x3801c554 */
   4084 L_3801C54B:
   4085     ecx = eax; /* 0x3801C54B: mov ecx, eax */
   4086     RECOMP_ICALL(0x380274C0u); /* 0x3801C54D: call 0x380274c0 */ /* not lifted */
   4087     RECOMP_FLAGS_IN();
   4088     goto L_3801C556; /* 0x3801C552: jmp 0x3801c556 */
   4089 L_3801C554:
   4090     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4091     eax = 0; /* 0x3801C554: xor eax, eax */
   4092     _cf = 0;
   4093     _flag_k = FK_TEST;
   4094 L_3801C556:
   4095     ecx = MEM32(esi + 0x60); /* 0x3801C556: mov ecx, dword ptr [esi + 0x60] */
   4096     PUSH32(esp, edi); /* 0x3801C559: push edi */
   4097     PUSH32(esp, ecx); /* 0x3801C55A: push ecx */
   4098     PUSH32(esp, edi); /* 0x3801C55B: push edi */
   4099     ecx = eax; /* 0x3801C55C: mov ecx, eax */
   4100     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3801C55E: mov dword ptr [ebp - 4], 0xffffffff */
   4101     MEM32(esi + 0x78) = eax; /* 0x3801C565: mov dword ptr [esi + 0x78], eax */
   4102     RECOMP_ICALL(0x380277E0u); /* 0x3801C568: call 0x380277e0 */ /* not lifted */
   4103     RECOMP_FLAGS_IN();
   4104     edx = MEM32(0x3806EC04); /* 0x3801C56D: mov edx, dword ptr [0x3806ec04] */
   4105     ecx = MEM32(ebp + (-0xC)); /* 0x3801C573: mov ecx, dword ptr [ebp - 0xc] */
   4106     MEM32(edx + 0x5C) = edi; /* 0x3801C576: mov dword ptr [edx + 0x5c], edi */
   4107     edi = POP32_VAL(esp); /* 0x3801C579: pop edi */
   4108     MEM32(FS_BASE + (0)) = ecx; /* 0x3801C57A: mov dword ptr fs:[0], ecx */
   4109     esi = POP32_VAL(esp); /* 0x3801C581: pop esi */
   4110     esp = ebp; /* 0x3801C582: mov esp, ebp */
   4111     ebp = POP32_VAL(esp); /* 0x3801C584: pop ebp */
   4112     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801C585: ret 8 */
   4113     RECOMP_REGS_OUT();
   4114 }
   4115 
   4116 void sub_3801C590(void) {
   4117     int _fpu_cmp = 0;
   4118     uint32_t _cf = 0;
   4119     int _df = 1;
   4120     uint32_t _flag_k = FK_NONE;
   4121     uint32_t _flag_a = 0, _flag_b = 0;
   4122     uint32_t _itail_tgt = 0;
   4123     RECOMP_REGS_LOCALS
   4124     RECOMP_ENTER(0x3801C590u);
   4125 
   4126 L_3801C590:
   4127     MEM32(ecx + 0x5C) = 1; /* 0x3801C590: mov dword ptr [ecx + 0x5c], 1 */
   4128     goto L_3802AC70; /* 0x3801C597: jmp 0x3802ac70 */
   4129 L_3802AC70:
   4130     eax = MEM32(0x3806C85C); /* 0x3802AC70: mov eax, dword ptr [0x3806c85c] */
   4131     eax = MEM32(eax + 0x4); /* 0x3802AC75: mov eax, dword ptr [eax + 4] */
   4132     PUSH32(esp, esi); /* 0x3802AC78: push esi */
   4133     esi = MEM32(eax); /* 0x3802AC79: mov esi, dword ptr [eax] */
   4134     /* cmp esi, eax */ /* 0x3802AC7B: cmp esi, eax */
   4135     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4137     _flag_k = FK_CMP;
   4138     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802ACCF; /* 0x3802AC7D: je 0x3802accf */
   4139 L_3802AC7F:
   4140     eax = MEM32(esi + 0x8); /* 0x3802AC7F: mov eax, dword ptr [esi + 8] */
   4141     SET_LO8(edx, MEM8(eax + 0x15)); /* 0x3802AC82: mov dl, byte ptr [eax + 0x15] */
   4142     /* test LO8(edx), LO8(edx) */ /* 0x3802AC85: test dl, dl */
   4143     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4144     _cf = 0;
   4145     _flag_k = FK_NARROW(FK_TEST, 24);
   4146     ecx = esi; /* 0x3802AC87: mov ecx, esi */
   4147     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802ACA3; /* 0x3802AC89: jne 0x3802aca3 */
   4148 L_3802AC8B:
   4149     esi = eax; /* 0x3802AC8B: mov esi, eax */
   4150     eax = MEM32(esi); /* 0x3802AC8D: mov eax, dword ptr [esi] */
   4151     SET_LO8(edx, MEM8(eax + 0x15)); /* 0x3802AC8F: mov dl, byte ptr [eax + 0x15] */
   4152     /* test LO8(edx), LO8(edx) */ /* 0x3802AC92: test dl, dl */
   4153     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4154     _cf = 0;
   4155     _flag_k = FK_NARROW(FK_TEST, 24);
   4156     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802ACBC; /* 0x3802AC94: jne 0x3802acbc */
   4157 L_3802AC96:
   4158     esi = eax; /* 0x3802AC96: mov esi, eax */
   4159     eax = MEM32(esi); /* 0x3802AC98: mov eax, dword ptr [esi] */
   4160     SET_LO8(edx, MEM8(eax + 0x15)); /* 0x3802AC9A: mov dl, byte ptr [eax + 0x15] */
   4161     /* test LO8(edx), LO8(edx) */ /* 0x3802AC9D: test dl, dl */
   4162     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4163     _cf = 0;
   4164     _flag_k = FK_NARROW(FK_TEST, 24);
   4165     RECOMP_BACKEDGE();
   4166     if (TEST_Z(_flag_a, _flag_b)) goto L_3802AC96; /* 0x3802AC9F: je 0x3802ac96 */
   4167 L_3802ACA1:
   4168     goto L_3802ACBC; /* 0x3802ACA1: jmp 0x3802acbc */
   4169 L_3802ACA3:
   4170     eax = MEM32(esi + 0x4); /* 0x3802ACA3: mov eax, dword ptr [esi + 4] */
   4171     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3802ACA6: cmp esi, dword ptr [eax + 8] */
   4172     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4174     _flag_k = FK_CMP;
   4175     if (CMP_NE(_flag_a, _flag_b)) goto L_3802ACB5; /* 0x3802ACA9: jne 0x3802acb5 */
   4176 L_3802ACAB:
   4177     esi = eax; /* 0x3802ACAB: mov esi, eax */
   4178     eax = MEM32(eax + 0x4); /* 0x3802ACAD: mov eax, dword ptr [eax + 4] */
   4179     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3802ACB0: cmp esi, dword ptr [eax + 8] */
   4180     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4181     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4182     _flag_k = FK_CMP;
   4183     RECOMP_BACKEDGE();
   4184     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802ACAB; /* 0x3802ACB3: je 0x3802acab */
   4185 L_3802ACB5:
   4186     /* cmp MEM32(esi + 0x8), eax */ /* 0x3802ACB5: cmp dword ptr [esi + 8], eax */
   4187     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   4188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4189     _flag_k = FK_CMP;
   4190     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802ACBC; /* 0x3802ACB8: je 0x3802acbc */
   4191 L_3802ACBA:
   4192     esi = eax; /* 0x3802ACBA: mov esi, eax */
   4193 L_3802ACBC:
   4194     ecx = MEM32(ecx + 0x10); /* 0x3802ACBC: mov ecx, dword ptr [ecx + 0x10] */
   4195     RECOMP_ICALL(0x3802A060u); /* 0x3802ACBF: call 0x3802a060 */ /* not lifted */
   4196     RECOMP_FLAGS_IN();
   4197     ecx = MEM32(0x3806C85C); /* 0x3802ACC4: mov ecx, dword ptr [0x3806c85c] */
   4198     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3802ACCA: cmp esi, dword ptr [ecx + 4] */
   4199     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4201     _flag_k = FK_CMP;
   4202     RECOMP_BACKEDGE();
   4203     if (CMP_NE(_flag_a, _flag_b)) goto L_3802AC7F; /* 0x3802ACCD: jne 0x3802ac7f */
   4204 L_3802ACCF:
   4205     esi = POP32_VAL(esp); /* 0x3802ACCF: pop esi */
   4206     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802ACD0: ret  */
   4207     RECOMP_REGS_OUT();
   4208 }
   4209 
   4210 void sub_3801C5A0(void) {
   4211     int _fpu_cmp = 0;
   4212     uint32_t _cf = 0;
   4213     int _df = 1;
   4214     uint32_t _flag_k = FK_NONE;
   4215     uint32_t _flag_a = 0, _flag_b = 0;
   4216     uint32_t _itail_tgt = 0;
   4217     RECOMP_REGS_LOCALS
   4218     RECOMP_ENTER(0x3801C5A0u);
   4219 
   4220 L_3801C5A0:
   4221     PUSH32(esp, esi); /* 0x3801C5A0: push esi */
   4222     esi = ecx; /* 0x3801C5A1: mov esi, ecx */
   4223     eax = MEM32(esi + 0x5C); /* 0x3801C5A3: mov eax, dword ptr [esi + 0x5c] */
   4224     /* cmp eax, 2 */ /* 0x3801C5A6: cmp eax, 2 */
   4225     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   4226     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4227     _flag_k = FK_CMP;
   4228     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C5AF; /* 0x3801C5A9: jne 0x3801c5af */
   4229 L_3801C5AB:
   4230     SET_LO8(eax, 1); /* 0x3801C5AB: mov al, 1 */
   4231     esi = POP32_VAL(esp); /* 0x3801C5AD: pop esi */
   4232     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801C5AE: ret  */
   4233 L_3801C5AF:
   4234     /* cmp eax, 1 */ /* 0x3801C5AF: cmp eax, 1 */
   4235     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4236     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4237     _flag_k = FK_CMP;
   4238     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C5CE; /* 0x3801C5B2: jne 0x3801c5ce */
   4239 L_3801C5B4:
   4240     RECOMP_ICALL(0x3802ACE0u); /* 0x3801C5B4: call 0x3802ace0 */ /* not lifted */
   4241     RECOMP_FLAGS_IN();
   4242     /* test eax, eax */ /* 0x3801C5B9: test eax, eax */
   4243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4244     _cf = 0;
   4245     _flag_k = FK_TEST;
   4246     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C5CE; /* 0x3801C5BB: jne 0x3801c5ce */
   4247 L_3801C5BD:
   4248     eax = MEM32(esi); /* 0x3801C5BD: mov eax, dword ptr [esi] */
   4249     ecx = esi; /* 0x3801C5BF: mov ecx, esi */
   4250     MEM32(esi + 0x5C) = 2; /* 0x3801C5C1: mov dword ptr [esi + 0x5c], 2 */
   4251     RECOMP_ICALL(MEM32(eax)); /* 0x3801C5C8: call dword ptr [eax] */
   4252     RECOMP_FLAGS_IN();
   4253     SET_LO8(eax, 1); /* 0x3801C5CA: mov al, 1 */
   4254     esi = POP32_VAL(esp); /* 0x3801C5CC: pop esi */
   4255     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801C5CD: ret  */
   4256 L_3801C5CE:
   4257     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4258     SET_LO8(eax, 0); /* 0x3801C5CE: xor al, al */
   4259     _cf = 0;
   4260     _flag_k = FK_NARROW(FK_TEST, 24);
   4261     esi = POP32_VAL(esp); /* 0x3801C5D0: pop esi */
   4262     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801C5D1: ret  */
   4263     RECOMP_REGS_OUT();
   4264 }
   4265 
   4266 void sub_3801C5E0(void) {
   4267     int _fpu_cmp = 0;
   4268     uint32_t _cf = 0;
   4269     int _df = 1;
   4270     uint32_t _flag_k = FK_NONE;
   4271     uint32_t _flag_a = 0, _flag_b = 0;
   4272     uint32_t _itail_tgt = 0;
   4273     RECOMP_REGS_LOCALS
   4274     RECOMP_ENTER(0x3801C5E0u);
   4275 
   4276 L_3801C5E0:
   4277     PUSH32(esp, ebp); /* 0x3801C5E0: push ebp */
   4278     ebp = esp; /* 0x3801C5E1: mov ebp, esp */
   4279     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u);
   4280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4281     esp = esp - 0x58u; /* 0x3801C5E3: sub esp, 0x58 */
   4282     _flag_k = FK_CMP;
   4283     edx = MEM32(ebp + 0x8); /* 0x3801C5E6: mov edx, dword ptr [ebp + 8] */
   4284     PUSH32(esp, ebx); /* 0x3801C5E9: push ebx */
   4285     PUSH32(esp, esi); /* 0x3801C5EA: push esi */
   4286     PUSH32(esp, edi); /* 0x3801C5EB: push edi */
   4287     edi = MEM32(ecx + 0x7C); /* 0x3801C5EC: mov edi, dword ptr [ecx + 0x7c] */
   4288     ebx = MEM32(edi + 0x4); /* 0x3801C5EF: mov ebx, dword ptr [edi + 4] */
   4289     ecx = MEM32(edi + 0x8); /* 0x3801C5F2: mov ecx, dword ptr [edi + 8] */
   4290     MEM32(ebp + (-0x20)) = edx; /* 0x3801C5F5: mov dword ptr [ebp - 0x20], edx */
   4291     MEM8(ebp + (-0x1C)) = (uint8_t)(0); /* 0x3801C5F8: mov byte ptr [ebp - 0x1c], 0 */
   4292     esi = MEM32(ebx + 0x4); /* 0x3801C5FC: mov esi, dword ptr [ebx + 4] */
   4293     /* cmp esi, ecx */ /* 0x3801C5FF: cmp esi, ecx */
   4294     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   4295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4296     _flag_k = FK_CMP;
   4297     SET_LO8(eax, 1); /* 0x3801C601: mov al, 1 */
   4298     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C61C; /* 0x3801C603: je 0x3801c61c */
   4299 L_3801C605:
   4300     /* cmp edx, MEM32(esi + 0xC) */ /* 0x3801C605: cmp edx, dword ptr [esi + 0xc] */
   4301     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   4302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4303     _flag_k = FK_CMP;
   4304     SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3801C608: setb al */
   4305     /* test LO8(eax), LO8(eax) */ /* 0x3801C60B: test al, al */
   4306     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4307     _cf = 0;
   4308     _flag_k = FK_NARROW(FK_TEST, 24);
   4309     ebx = esi; /* 0x3801C60D: mov ebx, esi */
   4310     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C615; /* 0x3801C60F: je 0x3801c615 */
   4311 L_3801C611:
   4312     esi = MEM32(esi); /* 0x3801C611: mov esi, dword ptr [esi] */
   4313     goto L_3801C618; /* 0x3801C613: jmp 0x3801c618 */
   4314 L_3801C615:
   4315     esi = MEM32(esi + 0x8); /* 0x3801C615: mov esi, dword ptr [esi + 8] */
   4316 L_3801C618:
   4317     /* cmp esi, ecx */ /* 0x3801C618: cmp esi, ecx */
   4318     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   4319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4320     _flag_k = FK_CMP;
   4321     RECOMP_BACKEDGE();
   4322     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C605; /* 0x3801C61A: jne 0x3801c605 */
   4323 L_3801C61C:
   4324     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x3801C61C: mov cl, byte ptr [edi + 0xc] */
   4325     /* test LO8(ecx), LO8(ecx) */ /* 0x3801C61F: test cl, cl */
   4326     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4327     _cf = 0;
   4328     _flag_k = FK_NARROW(FK_TEST, 24);
   4329     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C651; /* 0x3801C621: je 0x3801c651 */
   4330 L_3801C623:
   4331     eax = ebp + 0xB; /* 0x3801C623: lea eax, [ebp + 0xb] */
   4332     PUSH32(esp, eax); /* 0x3801C626: push eax */
   4333     ecx = ebp + (-0x20); /* 0x3801C627: lea ecx, [ebp - 0x20] */
   4334     PUSH32(esp, ecx); /* 0x3801C62A: push ecx */
   4335     PUSH32(esp, ebx); /* 0x3801C62B: push ebx */
   4336     PUSH32(esp, esi); /* 0x3801C62C: push esi */
   4337     edx = ebp + (-0xC); /* 0x3801C62D: lea edx, [ebp - 0xc] */
   4338     PUSH32(esp, edx); /* 0x3801C630: push edx */
   4339     ecx = edi; /* 0x3801C631: mov ecx, edi */
   4340     MEM8(ebp + 0xB) = (uint8_t)(1); /* 0x3801C633: mov byte ptr [ebp + 0xb], 1 */
   4341     RECOMP_ICALL(0x3801D170u); /* 0x3801C637: call 0x3801d170 */ /* not lifted */
   4342     RECOMP_FLAGS_IN();
   4343     PUSH32(esp, eax); /* 0x3801C63C: push eax */
   4344     ecx = ebp + (-0x30); /* 0x3801C63D: lea ecx, [ebp - 0x30] */
   4345     RECOMP_ICALL(0x38035680u); /* 0x3801C640: call 0x38035680 */ /* not lifted */
   4346     RECOMP_FLAGS_IN();
   4347     ecx = eax; /* 0x3801C645: mov ecx, eax */
   4348     eax = MEM32(ecx); /* 0x3801C647: mov eax, dword ptr [ecx] */
   4349     ecx = MEM32(ecx + 0x4); /* 0x3801C649: mov ecx, dword ptr [ecx + 4] */
   4350     goto L_3801C6D6; /* 0x3801C64C: jmp 0x3801c6d6 */
   4351 L_3801C651:
   4352     /* test LO8(eax), LO8(eax) */ /* 0x3801C651: test al, al */
   4353     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4354     _cf = 0;
   4355     _flag_k = FK_NARROW(FK_TEST, 24);
   4356     MEM32(ebp + (-0x8)) = ebx; /* 0x3801C653: mov dword ptr [ebp - 8], ebx */
   4357     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C691; /* 0x3801C656: je 0x3801c691 */
   4358 L_3801C658:
   4359     edx = ebp + (-0x10); /* 0x3801C658: lea edx, [ebp - 0x10] */
   4360     PUSH32(esp, edx); /* 0x3801C65B: push edx */
   4361     ecx = edi; /* 0x3801C65C: mov ecx, edi */
   4362     RECOMP_ICALL(0x380354C0u); /* 0x3801C65E: call 0x380354c0 */ /* not lifted */
   4363     RECOMP_FLAGS_IN();
   4364     ecx = MEM32(ebp + (-0x8)); /* 0x3801C663: mov ecx, dword ptr [ebp - 8] */
   4365     /* cmp ecx, MEM32(eax) */ /* 0x3801C666: cmp ecx, dword ptr [eax] */
   4366     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   4367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4368     _flag_k = FK_CMP;
   4369     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C689; /* 0x3801C668: jne 0x3801c689 */
   4370 L_3801C66A:
   4371     edx = ebp + (-0x1); /* 0x3801C66A: lea edx, [ebp - 1] */
   4372     PUSH32(esp, edx); /* 0x3801C66D: push edx */
   4373     eax = ebp + (-0x20); /* 0x3801C66E: lea eax, [ebp - 0x20] */
   4374     PUSH32(esp, eax); /* 0x3801C671: push eax */
   4375     PUSH32(esp, ebx); /* 0x3801C672: push ebx */
   4376     PUSH32(esp, esi); /* 0x3801C673: push esi */
   4377     ecx = ebp + (-0x14); /* 0x3801C674: lea ecx, [ebp - 0x14] */
   4378     PUSH32(esp, ecx); /* 0x3801C677: push ecx */
   4379     ecx = edi; /* 0x3801C678: mov ecx, edi */
   4380     MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x3801C67A: mov byte ptr [ebp - 1], 1 */
   4381     RECOMP_ICALL(0x3801D170u); /* 0x3801C67E: call 0x3801d170 */ /* not lifted */
   4382     RECOMP_FLAGS_IN();
   4383     PUSH32(esp, eax); /* 0x3801C683: push eax */
   4384     ecx = ebp + (-0x38); /* 0x3801C684: lea ecx, [ebp - 0x38] */
   4385     goto L_3801C6CA; /* 0x3801C687: jmp 0x3801c6ca */
   4386 L_3801C689:
   4387     ecx = ebp + (-0x8); /* 0x3801C689: lea ecx, [ebp - 8] */
   4388     RECOMP_ICALL(0x38013690u); /* 0x3801C68C: call 0x38013690 */ /* not lifted */
   4389     RECOMP_FLAGS_IN();
   4390 L_3801C691:
   4391     eax = MEM32(ebp + (-0x8)); /* 0x3801C691: mov eax, dword ptr [ebp - 8] */
   4392     ecx = MEM32(eax + 0xC); /* 0x3801C694: mov ecx, dword ptr [eax + 0xc] */
   4393     /* cmp ecx, MEM32(ebp + (-0x20)) */ /* 0x3801C697: cmp ecx, dword ptr [ebp - 0x20] */
   4394     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20)));
   4395     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4396     _flag_k = FK_CMP;
   4397     if (CMP_AE(_flag_a, _flag_b)) goto L_3801C6BB; /* 0x3801C69A: jae 0x3801c6bb */
   4398 L_3801C69C:
   4399     edx = ebp + (-0x2); /* 0x3801C69C: lea edx, [ebp - 2] */
   4400     PUSH32(esp, edx); /* 0x3801C69F: push edx */
   4401     eax = ebp + (-0x20); /* 0x3801C6A0: lea eax, [ebp - 0x20] */
   4402     PUSH32(esp, eax); /* 0x3801C6A3: push eax */
   4403     PUSH32(esp, ebx); /* 0x3801C6A4: push ebx */
   4404     PUSH32(esp, esi); /* 0x3801C6A5: push esi */
   4405     ecx = ebp + (-0x18); /* 0x3801C6A6: lea ecx, [ebp - 0x18] */
   4406     PUSH32(esp, ecx); /* 0x3801C6A9: push ecx */
   4407     ecx = edi; /* 0x3801C6AA: mov ecx, edi */
   4408     MEM8(ebp + (-0x2)) = (uint8_t)(1); /* 0x3801C6AC: mov byte ptr [ebp - 2], 1 */
   4409     RECOMP_ICALL(0x3801D170u); /* 0x3801C6B0: call 0x3801d170 */ /* not lifted */
   4410     RECOMP_FLAGS_IN();
   4411     PUSH32(esp, eax); /* 0x3801C6B5: push eax */
   4412     ecx = ebp + (-0x40); /* 0x3801C6B6: lea ecx, [ebp - 0x40] */
   4413     goto L_3801C6CA; /* 0x3801C6B9: jmp 0x3801c6ca */
   4414 L_3801C6BB:
   4415     eax = ebp + (-0x3); /* 0x3801C6BB: lea eax, [ebp - 3] */
   4416     ecx = ebp + (-0x8); /* 0x3801C6BE: lea ecx, [ebp - 8] */
   4417     PUSH32(esp, eax); /* 0x3801C6C1: push eax */
   4418     PUSH32(esp, ecx); /* 0x3801C6C2: push ecx */
   4419     MEM8(ebp + (-0x3)) = (uint8_t)(0); /* 0x3801C6C3: mov byte ptr [ebp - 3], 0 */
   4420     ecx = ebp + (-0x48); /* 0x3801C6C7: lea ecx, [ebp - 0x48] */
   4421 L_3801C6CA:
   4422     RECOMP_ICALL(0x38035680u); /* 0x3801C6CA: call 0x38035680 */ /* not lifted */
   4423     RECOMP_FLAGS_IN();
   4424     edx = eax; /* 0x3801C6CF: mov edx, eax */
   4425     eax = MEM32(edx); /* 0x3801C6D1: mov eax, dword ptr [edx] */
   4426     ecx = MEM32(edx + 0x4); /* 0x3801C6D3: mov ecx, dword ptr [edx + 4] */
   4427 L_3801C6D6:
   4428     MEM32(ebp + (-0x28)) = eax; /* 0x3801C6D6: mov dword ptr [ebp - 0x28], eax */
   4429     MEM32(ebp + (-0x24)) = ecx; /* 0x3801C6D9: mov dword ptr [ebp - 0x24], ecx */
   4430     eax = ebp + (-0x24); /* 0x3801C6DC: lea eax, [ebp - 0x24] */
   4431     PUSH32(esp, eax); /* 0x3801C6DF: push eax */
   4432     ecx = ebp + (-0x28); /* 0x3801C6E0: lea ecx, [ebp - 0x28] */
   4433     PUSH32(esp, ecx); /* 0x3801C6E3: push ecx */
   4434     ecx = ebp + (-0x50); /* 0x3801C6E4: lea ecx, [ebp - 0x50] */
   4435     RECOMP_ICALL(0x38035680u); /* 0x3801C6E7: call 0x38035680 */ /* not lifted */
   4436     RECOMP_FLAGS_IN();
   4437     edx = eax; /* 0x3801C6EC: mov edx, eax */
   4438     eax = MEM32(edx); /* 0x3801C6EE: mov eax, dword ptr [edx] */
   4439     ecx = MEM32(edx + 0x4); /* 0x3801C6F0: mov ecx, dword ptr [edx + 4] */
   4440     edi = POP32_VAL(esp); /* 0x3801C6F3: pop edi */
   4441     esi = POP32_VAL(esp); /* 0x3801C6F4: pop esi */
   4442     MEM32(ebp + (-0x54)) = ecx; /* 0x3801C6F5: mov dword ptr [ebp - 0x54], ecx */
   4443     MEM8(eax + 0x10) = (uint8_t)(1); /* 0x3801C6F8: mov byte ptr [eax + 0x10], 1 */
   4444     ebx = POP32_VAL(esp); /* 0x3801C6FC: pop ebx */
   4445     esp = ebp; /* 0x3801C6FD: mov esp, ebp */
   4446     ebp = POP32_VAL(esp); /* 0x3801C6FF: pop ebp */
   4447     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C700: ret 4 */
   4448     RECOMP_REGS_OUT();
   4449 }
   4450 
   4451 void sub_3801C6D6(void) {
   4452     int _fpu_cmp = 0;
   4453     uint32_t _cf = 0;
   4454     int _df = 1;
   4455     uint32_t _flag_k = FK_NONE;
   4456     uint32_t _flag_a = 0, _flag_b = 0;
   4457     uint32_t _itail_tgt = 0;
   4458     RECOMP_REGS_LOCALS
   4459     RECOMP_ENTER(0x3801C6D6u);
   4460 
   4461 L_3801C6D6:
   4462     MEM32(ebp + (-0x28)) = eax; /* 0x3801C6D6: mov dword ptr [ebp - 0x28], eax */
   4463     MEM32(ebp + (-0x24)) = ecx; /* 0x3801C6D9: mov dword ptr [ebp - 0x24], ecx */
   4464     eax = ebp + (-0x24); /* 0x3801C6DC: lea eax, [ebp - 0x24] */
   4465     PUSH32(esp, eax); /* 0x3801C6DF: push eax */
   4466     ecx = ebp + (-0x28); /* 0x3801C6E0: lea ecx, [ebp - 0x28] */
   4467     PUSH32(esp, ecx); /* 0x3801C6E3: push ecx */
   4468     ecx = ebp + (-0x50); /* 0x3801C6E4: lea ecx, [ebp - 0x50] */
   4469     RECOMP_ICALL(0x38035680u); /* 0x3801C6E7: call 0x38035680 */ /* not lifted */
   4470     RECOMP_FLAGS_IN();
   4471     edx = eax; /* 0x3801C6EC: mov edx, eax */
   4472     eax = MEM32(edx); /* 0x3801C6EE: mov eax, dword ptr [edx] */
   4473     ecx = MEM32(edx + 0x4); /* 0x3801C6F0: mov ecx, dword ptr [edx + 4] */
   4474     edi = POP32_VAL(esp); /* 0x3801C6F3: pop edi */
   4475     esi = POP32_VAL(esp); /* 0x3801C6F4: pop esi */
   4476     MEM32(ebp + (-0x54)) = ecx; /* 0x3801C6F5: mov dword ptr [ebp - 0x54], ecx */
   4477     MEM8(eax + 0x10) = (uint8_t)(1); /* 0x3801C6F8: mov byte ptr [eax + 0x10], 1 */
   4478     ebx = POP32_VAL(esp); /* 0x3801C6FC: pop ebx */
   4479     esp = ebp; /* 0x3801C6FD: mov esp, ebp */
   4480     ebp = POP32_VAL(esp); /* 0x3801C6FF: pop ebp */
   4481     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C700: ret 4 */
   4482     RECOMP_REGS_OUT();
   4483 }
   4484 
   4485 void sub_3801C710(void) {
   4486     int _fpu_cmp = 0;
   4487     uint32_t _cf = 0;
   4488     int _df = 1;
   4489     uint32_t _flag_k = FK_NONE;
   4490     uint32_t _flag_a = 0, _flag_b = 0;
   4491     uint32_t _itail_tgt = 0;
   4492     RECOMP_REGS_LOCALS
   4493     RECOMP_ENTER(0x3801C710u);
   4494 
   4495 L_3801C710:
   4496     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4497     SET_LO8(eax, 0); /* 0x3801C710: xor al, al */
   4498     _cf = 0;
   4499     _flag_k = FK_NARROW(FK_TEST, 24);
   4500     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C712: ret 4 */
   4501     RECOMP_REGS_OUT();
   4502 }
   4503 
   4504 void sub_3801C720(void) {
   4505     int _fpu_cmp = 0;
   4506     uint32_t _cf = 0;
   4507     int _df = 1;
   4508     uint32_t _flag_k = FK_NONE;
   4509     uint32_t _flag_a = 0, _flag_b = 0;
   4510     uint32_t _itail_tgt = 0;
   4511     RECOMP_REGS_LOCALS
   4512     RECOMP_ENTER(0x3801C720u);
   4513 
   4514 L_3801C720:
   4515     PUSH32(esp, ebx); /* 0x3801C720: push ebx */
   4516     PUSH32(esp, esi); /* 0x3801C721: push esi */
   4517     PUSH32(esp, edi); /* 0x3801C722: push edi */
   4518     edi = ecx; /* 0x3801C723: mov edi, ecx */
   4519     ebx = MEM32(edi + 0x4); /* 0x3801C725: mov ebx, dword ptr [edi + 4] */
   4520     esi = MEM32(ebx); /* 0x3801C728: mov esi, dword ptr [ebx] */
   4521     /* cmp esi, ebx */ /* 0x3801C72A: cmp esi, ebx */
   4522     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4524     _flag_k = FK_CMP;
   4525     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C755; /* 0x3801C72C: je 0x3801c755 */
   4526 L_3801C72E:
   4527     eax = esi; /* 0x3801C72E: mov eax, esi */
   4528     ecx = MEM32(eax + 0x4); /* 0x3801C730: mov ecx, dword ptr [eax + 4] */
   4529     edx = MEM32(eax); /* 0x3801C733: mov edx, dword ptr [eax] */
   4530     esi = MEM32(esi); /* 0x3801C735: mov esi, dword ptr [esi] */
   4531     MEM32(ecx) = edx; /* 0x3801C737: mov dword ptr [ecx], edx */
   4532     ecx = MEM32(eax); /* 0x3801C739: mov ecx, dword ptr [eax] */
   4533     edx = MEM32(eax + 0x4); /* 0x3801C73B: mov edx, dword ptr [eax + 4] */
   4534     PUSH32(esp, eax); /* 0x3801C73E: push eax */
   4535     MEM32(ecx + 0x4) = edx; /* 0x3801C73F: mov dword ptr [ecx + 4], edx */
   4536     RECOMP_ICALL(0x3804B4F6u); /* 0x3801C742: call 0x3804b4f6 */ /* not lifted */
   4537     RECOMP_FLAGS_IN();
   4538     ecx = MEM32(edi + 0x8); /* 0x3801C747: mov ecx, dword ptr [edi + 8] */
   4539     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4540     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4541     esp = esp + 4; /* 0x3801C74A: add esp, 4 */
   4542     _flag_k = FK_ADD;
   4543     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4544     ecx = ecx - 1; /* 0x3801C74D: dec ecx */
   4545     _flag_k = FK_DEC;
   4546     /* cmp esi, ebx */ /* 0x3801C74E: cmp esi, ebx */
   4547     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4549     _flag_k = FK_CMP;
   4550     MEM32(edi + 0x8) = ecx; /* 0x3801C750: mov dword ptr [edi + 8], ecx */
   4551     RECOMP_BACKEDGE();
   4552     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C72E; /* 0x3801C753: jne 0x3801c72e */
   4553 L_3801C755:
   4554     eax = MEM32(edi + 0x4); /* 0x3801C755: mov eax, dword ptr [edi + 4] */
   4555     PUSH32(esp, eax); /* 0x3801C758: push eax */
   4556     RECOMP_ICALL(0x3804B4F6u); /* 0x3801C759: call 0x3804b4f6 */ /* not lifted */
   4557     RECOMP_FLAGS_IN();
   4558     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4560     esp = esp + 4; /* 0x3801C75E: add esp, 4 */
   4561     _flag_k = FK_ADD;
   4562     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4563     eax = 0; /* 0x3801C761: xor eax, eax */
   4564     _cf = 0;
   4565     _flag_k = FK_TEST;
   4566     MEM32(edi + 0x4) = eax; /* 0x3801C763: mov dword ptr [edi + 4], eax */
   4567     MEM32(edi + 0x8) = eax; /* 0x3801C766: mov dword ptr [edi + 8], eax */
   4568     edi = POP32_VAL(esp); /* 0x3801C769: pop edi */
   4569     esi = POP32_VAL(esp); /* 0x3801C76A: pop esi */
   4570     ebx = POP32_VAL(esp); /* 0x3801C76B: pop ebx */
   4571     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3801C76C: ret  */
   4572     RECOMP_REGS_OUT();
   4573 }
   4574 
   4575 void sub_3801C770(void) {
   4576     int _fpu_cmp = 0;
   4577     uint32_t _cf = 0;
   4578     int _df = 1;
   4579     uint32_t _flag_k = FK_NONE;
   4580     uint32_t _flag_a = 0, _flag_b = 0;
   4581     uint32_t _itail_tgt = 0;
   4582     RECOMP_REGS_LOCALS
   4583     RECOMP_ENTER(0x3801C770u);
   4584 
   4585 L_3801C770:
   4586     PUSH32(esp, ebp); /* 0x3801C770: push ebp */
   4587     ebp = esp; /* 0x3801C771: mov ebp, esp */
   4588     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4590     esp = esp - 0xCu; /* 0x3801C773: sub esp, 0xc */
   4591     _flag_k = FK_CMP;
   4592     PUSH32(esp, ebx); /* 0x3801C776: push ebx */
   4593     PUSH32(esp, esi); /* 0x3801C777: push esi */
   4594     esi = ecx; /* 0x3801C778: mov esi, ecx */
   4595     eax = MEM32(esi + 0x4); /* 0x3801C77A: mov eax, dword ptr [esi + 4] */
   4596     ecx = MEM32(ebp + 0x8); /* 0x3801C77D: mov ecx, dword ptr [ebp + 8] */
   4597     edx = MEM32(ecx + 0x4); /* 0x3801C780: mov edx, dword ptr [ecx + 4] */
   4598     ebx = MEM32(edx + 0x4); /* 0x3801C783: mov ebx, dword ptr [edx + 4] */
   4599     MEM32(ebp + (-0xC)) = eax; /* 0x3801C786: mov dword ptr [ebp - 0xc], eax */
   4600     eax = MEM32(esi + 0x8); /* 0x3801C789: mov eax, dword ptr [esi + 8] */
   4601     MEM32(ebp + (-0x8)) = eax; /* 0x3801C78C: mov dword ptr [ebp - 8], eax */
   4602     SET_LO8(eax, MEM8(ebx + 0x21)); /* 0x3801C78F: mov al, byte ptr [ebx + 0x21] */
   4603     /* test LO8(eax), LO8(eax) */ /* 0x3801C792: test al, al */
   4604     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4605     _cf = 0;
   4606     _flag_k = FK_NARROW(FK_TEST, 24);
   4607     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C7FB; /* 0x3801C794: jne 0x3801c7fb */
   4608 L_3801C796:
   4609     SET_LO8(ecx, MEM8(ebx + 0x20)); /* 0x3801C796: mov cl, byte ptr [ebx + 0x20] */
   4610     PUSH32(esp, edi); /* 0x3801C799: push edi */
   4611     PUSH32(esp, 0x24u); /* 0x3801C79A: push 0x24 */
   4612     MEM8(ebp + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x3801C79C: mov byte ptr [ebp - 1], cl */
   4613     RECOMP_ICALL(0x3804B676u); /* 0x3801C79F: call 0x3804b676 */ /* not lifted */
   4614     RECOMP_FLAGS_IN();
   4615     edx = MEM32(ebp + (-0xC)); /* 0x3801C7A4: mov edx, dword ptr [ebp - 0xc] */
   4616     edi = eax; /* 0x3801C7A7: mov edi, eax */
   4617     SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3801C7A9: mov al, byte ptr [ebp - 1] */
   4618     ecx = ebx + 0xC; /* 0x3801C7AC: lea ecx, [ebx + 0xc] */
   4619     MEM32(edi + 0x4) = edx; /* 0x3801C7AF: mov dword ptr [edi + 4], edx */
   4620     PUSH32(esp, ecx); /* 0x3801C7B2: push ecx */
   4621     edx = edi + 0xC; /* 0x3801C7B3: lea edx, [edi + 0xc] */
   4622     PUSH32(esp, edx); /* 0x3801C7B6: push edx */
   4623     MEM8(edi + 0x20) = (uint8_t)(LO8(eax)); /* 0x3801C7B7: mov byte ptr [edi + 0x20], al */
   4624     MEM8(edi + 0x21) = (uint8_t)(0); /* 0x3801C7BA: mov byte ptr [edi + 0x21], 0 */
   4625     RECOMP_ICALL(0x38012100u); /* 0x3801C7BE: call 0x38012100 */ /* not lifted */
   4626     RECOMP_FLAGS_IN();
   4627     eax = MEM32(esi + 0x8); /* 0x3801C7C3: mov eax, dword ptr [esi + 8] */
   4628     edx = MEM32(ebp + (-0x8)); /* 0x3801C7C6: mov edx, dword ptr [ebp - 8] */
   4629     MEM32(edi) = eax; /* 0x3801C7C9: mov dword ptr [edi], eax */
   4630     ecx = MEM32(esi + 0x8); /* 0x3801C7CB: mov ecx, dword ptr [esi + 8] */
   4631     MEM32(edi + 0x8) = ecx; /* 0x3801C7CE: mov dword ptr [edi + 8], ecx */
   4632     eax = MEM32(esi + 0x8); /* 0x3801C7D1: mov eax, dword ptr [esi + 8] */
   4633     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4634     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4635     esp = esp + 0xCu; /* 0x3801C7D4: add esp, 0xc */
   4636     _flag_k = FK_ADD;
   4637     /* cmp edx, eax */ /* 0x3801C7D7: cmp edx, eax */
   4638     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4640     _flag_k = FK_CMP;
   4641     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C7DE; /* 0x3801C7D9: jne 0x3801c7de */
   4642 L_3801C7DB:
   4643     MEM32(ebp + (-0x8)) = edi; /* 0x3801C7DB: mov dword ptr [ebp - 8], edi */
   4644 L_3801C7DE:
   4645     eax = MEM32(ebx); /* 0x3801C7DE: mov eax, dword ptr [ebx] */
   4646     PUSH32(esp, edi); /* 0x3801C7E0: push edi */
   4647     PUSH32(esp, eax); /* 0x3801C7E1: push eax */
   4648     ecx = esi; /* 0x3801C7E2: mov ecx, esi */
   4649     RECOMP_ICALL(0x3801CFD0u); /* 0x3801C7E4: call 0x3801cfd0 */ /* not lifted */
   4650     RECOMP_FLAGS_IN();
   4651     MEM32(edi) = eax; /* 0x3801C7E9: mov dword ptr [edi], eax */
   4652     ecx = MEM32(ebx + 0x8); /* 0x3801C7EB: mov ecx, dword ptr [ebx + 8] */
   4653     PUSH32(esp, edi); /* 0x3801C7EE: push edi */
   4654     PUSH32(esp, ecx); /* 0x3801C7EF: push ecx */
   4655     ecx = esi; /* 0x3801C7F0: mov ecx, esi */
   4656     RECOMP_ICALL(0x3801CFD0u); /* 0x3801C7F2: call 0x3801cfd0 */ /* not lifted */
   4657     RECOMP_FLAGS_IN();
   4658     MEM32(edi + 0x8) = eax; /* 0x3801C7F7: mov dword ptr [edi + 8], eax */
   4659     edi = POP32_VAL(esp); /* 0x3801C7FA: pop edi */
   4660 L_3801C7FB:
   4661     edx = MEM32(esi + 0x4); /* 0x3801C7FB: mov edx, dword ptr [esi + 4] */
   4662     eax = MEM32(ebp + (-0x8)); /* 0x3801C7FE: mov eax, dword ptr [ebp - 8] */
   4663     ecx = MEM32(ebp + 0x8); /* 0x3801C801: mov ecx, dword ptr [ebp + 8] */
   4664     MEM32(edx + 0x4) = eax; /* 0x3801C804: mov dword ptr [edx + 4], eax */
   4665     edx = MEM32(ecx + 0x10); /* 0x3801C807: mov edx, dword ptr [ecx + 0x10] */
   4666     ecx = MEM32(esi + 0x8); /* 0x3801C80A: mov ecx, dword ptr [esi + 8] */
   4667     MEM32(esi + 0x10) = edx; /* 0x3801C80D: mov dword ptr [esi + 0x10], edx */
   4668     edx = MEM32(esi + 0x4); /* 0x3801C810: mov edx, dword ptr [esi + 4] */
   4669     eax = MEM32(edx + 0x4); /* 0x3801C813: mov eax, dword ptr [edx + 4] */
   4670     /* cmp eax, ecx */ /* 0x3801C816: cmp eax, ecx */
   4671     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4673     _flag_k = FK_CMP;
   4674     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C857; /* 0x3801C818: je 0x3801c857 */
   4675 L_3801C81A:
   4676     ecx = MEM32(eax); /* 0x3801C81A: mov ecx, dword ptr [eax] */
   4677     SET_LO8(ebx, MEM8(ecx + 0x21)); /* 0x3801C81C: mov bl, byte ptr [ecx + 0x21] */
   4678     /* test LO8(ebx), LO8(ebx) */ /* 0x3801C81F: test bl, bl */
   4679     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4680     _cf = 0;
   4681     _flag_k = FK_NARROW(FK_TEST, 24);
   4682     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C82E; /* 0x3801C821: jne 0x3801c82e */
   4683 L_3801C823:
   4684     eax = ecx; /* 0x3801C823: mov eax, ecx */
   4685     ecx = MEM32(eax); /* 0x3801C825: mov ecx, dword ptr [eax] */
   4686     SET_LO8(ebx, MEM8(ecx + 0x21)); /* 0x3801C827: mov bl, byte ptr [ecx + 0x21] */
   4687     /* test LO8(ebx), LO8(ebx) */ /* 0x3801C82A: test bl, bl */
   4688     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4689     _cf = 0;
   4690     _flag_k = FK_NARROW(FK_TEST, 24);
   4691     RECOMP_BACKEDGE();
   4692     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C823; /* 0x3801C82C: je 0x3801c823 */
   4693 L_3801C82E:
   4694     MEM32(edx) = eax; /* 0x3801C82E: mov dword ptr [edx], eax */
   4695     esi = MEM32(esi + 0x4); /* 0x3801C830: mov esi, dword ptr [esi + 4] */
   4696     ecx = MEM32(esi + 0x4); /* 0x3801C833: mov ecx, dword ptr [esi + 4] */
   4697     eax = MEM32(ecx + 0x8); /* 0x3801C836: mov eax, dword ptr [ecx + 8] */
   4698     SET_LO8(edx, MEM8(eax + 0x21)); /* 0x3801C839: mov dl, byte ptr [eax + 0x21] */
   4699     /* test LO8(edx), LO8(edx) */ /* 0x3801C83C: test dl, dl */
   4700     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4701     _cf = 0;
   4702     _flag_k = FK_NARROW(FK_TEST, 24);
   4703     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C84C; /* 0x3801C83E: jne 0x3801c84c */
   4704 L_3801C840:
   4705     ecx = eax; /* 0x3801C840: mov ecx, eax */
   4706     eax = MEM32(ecx + 0x8); /* 0x3801C842: mov eax, dword ptr [ecx + 8] */
   4707     SET_LO8(edx, MEM8(eax + 0x21)); /* 0x3801C845: mov dl, byte ptr [eax + 0x21] */
   4708     /* test LO8(edx), LO8(edx) */ /* 0x3801C848: test dl, dl */
   4709     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4710     _cf = 0;
   4711     _flag_k = FK_NARROW(FK_TEST, 24);
   4712     RECOMP_BACKEDGE();
   4713     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C840; /* 0x3801C84A: je 0x3801c840 */
   4714 L_3801C84C:
   4715     MEM32(esi + 0x8) = ecx; /* 0x3801C84C: mov dword ptr [esi + 8], ecx */
   4716     esi = POP32_VAL(esp); /* 0x3801C84F: pop esi */
   4717     ebx = POP32_VAL(esp); /* 0x3801C850: pop ebx */
   4718     esp = ebp; /* 0x3801C851: mov esp, ebp */
   4719     ebp = POP32_VAL(esp); /* 0x3801C853: pop ebp */
   4720     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C854: ret 4 */
   4721 L_3801C857:
   4722     MEM32(edx) = edx; /* 0x3801C857: mov dword ptr [edx], edx */
   4723     esi = MEM32(esi + 0x4); /* 0x3801C859: mov esi, dword ptr [esi + 4] */
   4724     MEM32(esi + 0x8) = esi; /* 0x3801C85C: mov dword ptr [esi + 8], esi */
   4725     esi = POP32_VAL(esp); /* 0x3801C85F: pop esi */
   4726     ebx = POP32_VAL(esp); /* 0x3801C860: pop ebx */
   4727     esp = ebp; /* 0x3801C861: mov esp, ebp */
   4728     ebp = POP32_VAL(esp); /* 0x3801C863: pop ebp */
   4729     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3801C864: ret 4 */
   4730     RECOMP_REGS_OUT();
   4731 }
   4732 
   4733 void sub_3801C870(void) {
   4734     int _fpu_cmp = 0;
   4735     uint32_t _cf = 0;
   4736     int _df = 1;
   4737     uint32_t _flag_k = FK_NONE;
   4738     uint32_t _flag_a = 0, _flag_b = 0;
   4739     uint32_t _itail_tgt = 0;
   4740     RECOMP_REGS_LOCALS
   4741     RECOMP_ENTER(0x3801C870u);
   4742 
   4743 L_3801C870:
   4744     PUSH32(esp, ebp); /* 0x3801C870: push ebp */
   4745     ebp = esp; /* 0x3801C871: mov ebp, esp */
   4746     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4748     esp = esp - 0xCu; /* 0x3801C873: sub esp, 0xc */
   4749     _flag_k = FK_CMP;
   4750     PUSH32(esp, ebx); /* 0x3801C876: push ebx */
   4751     PUSH32(esp, esi); /* 0x3801C877: push esi */
   4752     PUSH32(esp, edi); /* 0x3801C878: push edi */
   4753     edi = ecx; /* 0x3801C879: mov edi, ecx */
   4754     ecx = MEM32(edi + 0x4); /* 0x3801C87B: mov ecx, dword ptr [edi + 4] */
   4755     ebx = MEM32(ecx + 0x4); /* 0x3801C87E: mov ebx, dword ptr [ecx + 4] */
   4756     edx = MEM32(edi + 0x8); /* 0x3801C881: mov edx, dword ptr [edi + 8] */
   4757     /* cmp ebx, edx */ /* 0x3801C884: cmp ebx, edx */
   4758     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   4759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4760     _flag_k = FK_CMP;
   4761     esi = ecx; /* 0x3801C886: mov esi, ecx */
   4762     SET_LO8(eax, 1); /* 0x3801C888: mov al, 1 */
   4763     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C8AE; /* 0x3801C88A: je 0x3801c8ae */
   4764 L_3801C88C:
   4765     eax = MEM32(ebp + 0xC); /* 0x3801C88C: mov eax, dword ptr [ebp + 0xc] */
   4766     eax = MEM32(eax); /* 0x3801C88F: mov eax, dword ptr [eax] */
   4767     MEM32(ebp + (-0x8)) = eax; /* 0x3801C891: mov dword ptr [ebp - 8], eax */
   4768 L_3801C894:
   4769     eax = MEM32(ebp + (-0x8)); /* 0x3801C894: mov eax, dword ptr [ebp - 8] */
   4770     /* cmp eax, MEM32(ebx + 0xC) */ /* 0x3801C897: cmp eax, dword ptr [ebx + 0xc] */
   4771     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC));
   4772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4773     _flag_k = FK_CMP;
   4774     esi = ebx; /* 0x3801C89A: mov esi, ebx */
   4775     SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3801C89C: setb al */
   4776     /* test LO8(eax), LO8(eax) */ /* 0x3801C89F: test al, al */
   4777     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4778     _cf = 0;
   4779     _flag_k = FK_NARROW(FK_TEST, 24);
   4780     if (TEST_Z(_flag_a, _flag_b)) goto L_3801C8A7; /* 0x3801C8A1: je 0x3801c8a7 */
   4781 L_3801C8A3:
   4782     ebx = MEM32(ebx); /* 0x3801C8A3: mov ebx, dword ptr [ebx] */
   4783     goto L_3801C8AA; /* 0x3801C8A5: jmp 0x3801c8aa */
   4784 L_3801C8A7:
   4785     ebx = MEM32(ebx + 0x8); /* 0x3801C8A7: mov ebx, dword ptr [ebx + 8] */
   4786 L_3801C8AA:
   4787     /* cmp ebx, edx */ /* 0x3801C8AA: cmp ebx, edx */
   4788     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   4789     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4790     _flag_k = FK_CMP;
   4791     RECOMP_BACKEDGE();
   4792     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C894; /* 0x3801C8AC: jne 0x3801c894 */
   4793 L_3801C8AE:
   4794     SET_LO8(edx, MEM8(edi + 0xC)); /* 0x3801C8AE: mov dl, byte ptr [edi + 0xc] */
   4795     /* test LO8(edx), LO8(edx) */ /* 0x3801C8B1: test dl, dl */
   4796     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4797     _cf = 0;
   4798     _flag_k = FK_NARROW(FK_TEST, 24);
   4799     if (TEST_Z(_flag_a, _flag_b)) goto L_3801CA29; /* 0x3801C8B3: je 0x3801ca29 */
   4800 L_3801C8B9:
   4801     PUSH32(esp, 0); /* 0x3801C8B9: push 0 */
   4802     PUSH32(esp, esi); /* 0x3801C8BB: push esi */
   4803     ecx = edi; /* 0x3801C8BC: mov ecx, edi */
   4804     RECOMP_ICALL(0x3802F160u); /* 0x3801C8BE: call 0x3802f160 */ /* not lifted */
   4805     RECOMP_FLAGS_IN();
   4806     ecx = MEM32(edi + 0x8); /* 0x3801C8C3: mov ecx, dword ptr [edi + 8] */
   4807     MEM32(eax) = ecx; /* 0x3801C8C6: mov dword ptr [eax], ecx */
   4808     edx = MEM32(edi + 0x8); /* 0x3801C8C8: mov edx, dword ptr [edi + 8] */
   4809     ecx = MEM32(ebp + 0xC); /* 0x3801C8CB: mov ecx, dword ptr [ebp + 0xc] */
   4810     MEM32(ebp + (-0x4)) = eax; /* 0x3801C8CE: mov dword ptr [ebp - 4], eax */
   4811     MEM32(eax + 0x8) = edx; /* 0x3801C8D1: mov dword ptr [eax + 8], edx */
   4812     PUSH32(esp, ecx); /* 0x3801C8D4: push ecx */
   4813     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   4814     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4815     eax = eax + 0xCu; /* 0x3801C8D5: add eax, 0xc */
   4816     _flag_k = FK_ADD;
   4817     PUSH32(esp, eax); /* 0x3801C8D8: push eax */
   4818     RECOMP_ICALL(0x3802F370u); /* 0x3801C8D9: call 0x3802f370 */ /* not lifted */
   4819     RECOMP_FLAGS_IN();
   4820     ecx = MEM32(edi + 0x10); /* 0x3801C8DE: mov ecx, dword ptr [edi + 0x10] */
   4821     eax = MEM32(edi + 0x4); /* 0x3801C8E1: mov eax, dword ptr [edi + 4] */
   4822     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4823     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4824     esp = esp + 8; /* 0x3801C8E4: add esp, 8 */
   4825     _flag_k = FK_ADD;
   4826     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4827     ecx = ecx + 1; /* 0x3801C8E7: inc ecx */
   4828     _flag_k = FK_INC;
   4829     /* cmp esi, eax */ /* 0x3801C8E8: cmp esi, eax */
   4830     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4832     _flag_k = FK_CMP;
   4833     MEM32(edi + 0x10) = ecx; /* 0x3801C8EA: mov dword ptr [edi + 0x10], ecx */
   4834     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801C911; /* 0x3801C8ED: je 0x3801c911 */
   4835 L_3801C8EF:
   4836     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3801C8EF: cmp ebx, dword ptr [edi + 8] */
   4837     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4838     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4839     _flag_k = FK_CMP;
   4840     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C911; /* 0x3801C8F2: jne 0x3801c911 */
   4841 L_3801C8F4:
   4842     edx = MEM32(ebp + 0xC); /* 0x3801C8F4: mov edx, dword ptr [ebp + 0xc] */
   4843     eax = MEM32(edx); /* 0x3801C8F7: mov eax, dword ptr [edx] */
   4844     /* cmp eax, MEM32(esi + 0xC) */ /* 0x3801C8F9: cmp eax, dword ptr [esi + 0xc] */
   4845     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   4846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4847     _flag_k = FK_CMP;
   4848     if (CMP_B(_flag_a, _flag_b)) goto L_3801C911; /* 0x3801C8FC: jb 0x3801c911 */
   4849 L_3801C8FE:
   4850     ebx = MEM32(ebp + (-0x4)); /* 0x3801C8FE: mov ebx, dword ptr [ebp - 4] */
   4851     MEM32(esi + 0x8) = ebx; /* 0x3801C901: mov dword ptr [esi + 8], ebx */
   4852     eax = MEM32(edi + 0x4); /* 0x3801C904: mov eax, dword ptr [edi + 4] */
   4853     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3801C907: cmp esi, dword ptr [eax + 8] */
   4854     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4856     _flag_k = FK_CMP;
   4857     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C934; /* 0x3801C90A: jne 0x3801c934 */
   4858 L_3801C90C:
   4859     MEM32(eax + 0x8) = ebx; /* 0x3801C90C: mov dword ptr [eax + 8], ebx */
   4860     goto L_3801C934; /* 0x3801C90F: jmp 0x3801c934 */
   4861 L_3801C911:
   4862     ecx = MEM32(ebp + (-0x4)); /* 0x3801C911: mov ecx, dword ptr [ebp - 4] */
   4863     MEM32(esi) = ecx; /* 0x3801C914: mov dword ptr [esi], ecx */
   4864     eax = MEM32(edi + 0x4); /* 0x3801C916: mov eax, dword ptr [edi + 4] */
   4865     /* cmp esi, eax */ /* 0x3801C919: cmp esi, eax */
   4866     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4867     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4868     _flag_k = FK_CMP;
   4869     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C928; /* 0x3801C91B: jne 0x3801c928 */
   4870 L_3801C91D:
   4871     MEM32(eax + 0x4) = ecx; /* 0x3801C91D: mov dword ptr [eax + 4], ecx */
   4872     edx = MEM32(edi + 0x4); /* 0x3801C920: mov edx, dword ptr [edi + 4] */
   4873     MEM32(edx + 0x8) = ecx; /* 0x3801C923: mov dword ptr [edx + 8], ecx */
   4874     goto L_3801C931; /* 0x3801C926: jmp 0x3801c931 */
   4875 L_3801C928:
   4876     /* cmp esi, MEM32(eax) */ /* 0x3801C928: cmp esi, dword ptr [eax] */
   4877     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   4878     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4879     _flag_k = FK_CMP;
   4880     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C931; /* 0x3801C92A: jne 0x3801c931 */
   4881 L_3801C92C:
   4882     ecx = MEM32(ebp + (-0x4)); /* 0x3801C92C: mov ecx, dword ptr [ebp - 4] */
   4883     MEM32(eax) = ecx; /* 0x3801C92F: mov dword ptr [eax], ecx */
   4884 L_3801C931:
   4885     ebx = MEM32(ebp + (-0x4)); /* 0x3801C931: mov ebx, dword ptr [ebp - 4] */
   4886 L_3801C934:
   4887     edx = MEM32(edi + 0x4); /* 0x3801C934: mov edx, dword ptr [edi + 4] */
   4888     /* cmp ebx, MEM32(edx + 0x4) */ /* 0x3801C937: cmp ebx, dword ptr [edx + 4] */
   4889     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4890     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4891     _flag_k = FK_CMP;
   4892     esi = ebx; /* 0x3801C93A: mov esi, ebx */
   4893     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CA07; /* 0x3801C93C: je 0x3801ca07 */
   4894 L_3801C942:
   4895     eax = MEM32(esi + 0x4); /* 0x3801C942: mov eax, dword ptr [esi + 4] */
   4896     SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x3801C945: mov cl, byte ptr [eax + 0x14] */
   4897     /* test LO8(ecx), LO8(ecx) */ /* 0x3801C948: test cl, cl */
   4898     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4899     _cf = 0;
   4900     _flag_k = FK_NARROW(FK_TEST, 24);
   4901     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CA07; /* 0x3801C94A: jne 0x3801ca07 */
   4902 L_3801C950:
   4903     edx = MEM32(eax + 0x4); /* 0x3801C950: mov edx, dword ptr [eax + 4] */
   4904     ecx = MEM32(edx); /* 0x3801C953: mov ecx, dword ptr [edx] */
   4905     /* cmp eax, ecx */ /* 0x3801C955: cmp eax, ecx */
   4906     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4908     _flag_k = FK_CMP;
   4909     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C9AD; /* 0x3801C957: jne 0x3801c9ad */
   4910 L_3801C959:
   4911     ecx = MEM32(edx + 0x8); /* 0x3801C959: mov ecx, dword ptr [edx + 8] */
   4912     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801C95C: mov dl, byte ptr [ecx + 0x14] */
   4913     /* test LO8(edx), LO8(edx) */ /* 0x3801C95F: test dl, dl */
   4914     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4915     _cf = 0;
   4916     _flag_k = FK_NARROW(FK_TEST, 24);
   4917     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C97D; /* 0x3801C961: jne 0x3801c97d */
   4918 L_3801C963:
   4919     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3801C963: mov byte ptr [eax + 0x14], 1 */
   4920     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3801C967: mov byte ptr [ecx + 0x14], 1 */
   4921     eax = MEM32(esi + 0x4); /* 0x3801C96B: mov eax, dword ptr [esi + 4] */
   4922     ecx = MEM32(eax + 0x4); /* 0x3801C96E: mov ecx, dword ptr [eax + 4] */
   4923     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801C971: mov byte ptr [ecx + 0x14], 0 */
   4924     edx = MEM32(esi + 0x4); /* 0x3801C975: mov edx, dword ptr [esi + 4] */
   4925     esi = MEM32(edx + 0x4); /* 0x3801C978: mov esi, dword ptr [edx + 4] */
   4926     goto L_3801C9FB; /* 0x3801C97B: jmp 0x3801c9fb */
   4927 L_3801C97D:
   4928     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3801C97D: cmp esi, dword ptr [eax + 8] */
   4929     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4930     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4931     _flag_k = FK_CMP;
   4932     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C98C; /* 0x3801C980: jne 0x3801c98c */
   4933 L_3801C982:
   4934     esi = eax; /* 0x3801C982: mov esi, eax */
   4935     PUSH32(esp, esi); /* 0x3801C984: push esi */
   4936     ecx = edi; /* 0x3801C985: mov ecx, edi */
   4937     RECOMP_ICALL(0x3803B270u); /* 0x3801C987: call 0x3803b270 */ /* not lifted */
   4938     RECOMP_FLAGS_IN();
   4939 L_3801C98C:
   4940     eax = MEM32(esi + 0x4); /* 0x3801C98C: mov eax, dword ptr [esi + 4] */
   4941     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3801C98F: mov byte ptr [eax + 0x14], 1 */
   4942     ecx = MEM32(esi + 0x4); /* 0x3801C993: mov ecx, dword ptr [esi + 4] */
   4943     edx = MEM32(ecx + 0x4); /* 0x3801C996: mov edx, dword ptr [ecx + 4] */
   4944     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3801C999: mov byte ptr [edx + 0x14], 0 */
   4945     eax = MEM32(esi + 0x4); /* 0x3801C99D: mov eax, dword ptr [esi + 4] */
   4946     ecx = MEM32(eax + 0x4); /* 0x3801C9A0: mov ecx, dword ptr [eax + 4] */
   4947     PUSH32(esp, ecx); /* 0x3801C9A3: push ecx */
   4948     ecx = edi; /* 0x3801C9A4: mov ecx, edi */
   4949     RECOMP_ICALL(0x3802F100u); /* 0x3801C9A6: call 0x3802f100 */ /* not lifted */
   4950     RECOMP_FLAGS_IN();
   4951     goto L_3801C9FB; /* 0x3801C9AB: jmp 0x3801c9fb */
   4952 L_3801C9AD:
   4953     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3801C9AD: mov dl, byte ptr [ecx + 0x14] */
   4954     /* test LO8(edx), LO8(edx) */ /* 0x3801C9B0: test dl, dl */
   4955     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4956     _cf = 0;
   4957     _flag_k = FK_NARROW(FK_TEST, 24);
   4958     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801C9CE; /* 0x3801C9B2: jne 0x3801c9ce */
   4959 L_3801C9B4:
   4960     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3801C9B4: mov byte ptr [eax + 0x14], 1 */
   4961     MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3801C9B8: mov byte ptr [ecx + 0x14], 1 */
   4962     edx = MEM32(esi + 0x4); /* 0x3801C9BC: mov edx, dword ptr [esi + 4] */
   4963     eax = MEM32(edx + 0x4); /* 0x3801C9BF: mov eax, dword ptr [edx + 4] */
   4964     MEM8(eax + 0x14) = (uint8_t)(0); /* 0x3801C9C2: mov byte ptr [eax + 0x14], 0 */
   4965     ecx = MEM32(esi + 0x4); /* 0x3801C9C6: mov ecx, dword ptr [esi + 4] */
   4966     esi = MEM32(ecx + 0x4); /* 0x3801C9C9: mov esi, dword ptr [ecx + 4] */
   4967     goto L_3801C9FB; /* 0x3801C9CC: jmp 0x3801c9fb */
   4968 L_3801C9CE:
   4969     /* cmp esi, MEM32(eax) */ /* 0x3801C9CE: cmp esi, dword ptr [eax] */
   4970     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   4971     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4972     _flag_k = FK_CMP;
   4973     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C9DC; /* 0x3801C9D0: jne 0x3801c9dc */
   4974 L_3801C9D2:
   4975     esi = eax; /* 0x3801C9D2: mov esi, eax */
   4976     PUSH32(esp, esi); /* 0x3801C9D4: push esi */
   4977     ecx = edi; /* 0x3801C9D5: mov ecx, edi */
   4978     RECOMP_ICALL(0x3802F100u); /* 0x3801C9D7: call 0x3802f100 */ /* not lifted */
   4979     RECOMP_FLAGS_IN();
   4980 L_3801C9DC:
   4981     edx = MEM32(esi + 0x4); /* 0x3801C9DC: mov edx, dword ptr [esi + 4] */
   4982     MEM8(edx + 0x14) = (uint8_t)(1); /* 0x3801C9DF: mov byte ptr [edx + 0x14], 1 */
   4983     eax = MEM32(esi + 0x4); /* 0x3801C9E3: mov eax, dword ptr [esi + 4] */
   4984     ecx = MEM32(eax + 0x4); /* 0x3801C9E6: mov ecx, dword ptr [eax + 4] */
   4985     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3801C9E9: mov byte ptr [ecx + 0x14], 0 */
   4986     edx = MEM32(esi + 0x4); /* 0x3801C9ED: mov edx, dword ptr [esi + 4] */
   4987     eax = MEM32(edx + 0x4); /* 0x3801C9F0: mov eax, dword ptr [edx + 4] */
   4988     PUSH32(esp, eax); /* 0x3801C9F3: push eax */
   4989     ecx = edi; /* 0x3801C9F4: mov ecx, edi */
   4990     RECOMP_ICALL(0x3803B270u); /* 0x3801C9F6: call 0x3803b270 */ /* not lifted */
   4991     RECOMP_FLAGS_IN();
   4992 L_3801C9FB:
   4993     ecx = MEM32(edi + 0x4); /* 0x3801C9FB: mov ecx, dword ptr [edi + 4] */
   4994     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3801C9FE: cmp esi, dword ptr [ecx + 4] */
   4995     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4996     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4997     _flag_k = FK_CMP;
   4998     RECOMP_BACKEDGE();
   4999     if (CMP_NE(_flag_a, _flag_b)) goto L_3801C942; /* 0x3801CA01: jne 0x3801c942 */
   5000 L_3801CA07:
   5001     edx = MEM32(edi + 0x4); /* 0x3801CA07: mov edx, dword ptr [edi + 4] */
   5002     eax = MEM32(edx + 0x4); /* 0x3801CA0A: mov eax, dword ptr [edx + 4] */
   5003     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3801CA0D: mov byte ptr [eax + 0x14], 1 */
   5004     eax = MEM32(ebp + 0x8); /* 0x3801CA11: mov eax, dword ptr [ebp + 8] */
   5005     edi = POP32_VAL(esp); /* 0x3801CA14: pop edi */
   5006     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3801CA15: mov byte ptr [ebp - 8], 1 */
   5007     ecx = MEM32(ebp + (-0x8)); /* 0x3801CA19: mov ecx, dword ptr [ebp - 8] */
   5008     MEM32(eax) = ebx; /* 0x3801CA1C: mov dword ptr [eax], ebx */
   5009     esi = POP32_VAL(esp); /* 0x3801CA1E: pop esi */
   5010     MEM32(eax + 0x4) = ecx; /* 0x3801CA1F: mov dword ptr [eax + 4], ecx */
   5011     ebx = POP32_VAL(esp); /* 0x3801CA22: pop ebx */
   5012     esp = ebp; /* 0x3801CA23: mov esp, ebp */
   5013     ebp = POP32_VAL(esp); /* 0x3801CA25: pop ebp */
   5014     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CA26: ret 8 */
   5015 L_3801CA29:
   5016     /* test LO8(eax), LO8(eax) */ /* 0x3801CA29: test al, al */
   5017     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5018     _cf = 0;
   5019     _flag_k = FK_NARROW(FK_TEST, 24);
   5020     edx = esi; /* 0x3801CA2B: mov edx, esi */
   5021     MEM32(ebp + (-0x8)) = edx; /* 0x3801CA2D: mov dword ptr [ebp - 8], edx */
   5022     if (TEST_Z(_flag_a, _flag_b)) goto L_3801CA6C; /* 0x3801CA30: je 0x3801ca6c */
   5023 L_3801CA32:
   5024     /* cmp esi, MEM32(ecx) */ /* 0x3801CA32: cmp esi, dword ptr [ecx] */
   5025     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx));
   5026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5027     _flag_k = FK_CMP;
   5028     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CA61; /* 0x3801CA34: jne 0x3801ca61 */
   5029 L_3801CA36:
   5030     edx = MEM32(ebp + 0xC); /* 0x3801CA36: mov edx, dword ptr [ebp + 0xc] */
   5031     PUSH32(esp, edx); /* 0x3801CA39: push edx */
   5032     PUSH32(esp, esi); /* 0x3801CA3A: push esi */
   5033     PUSH32(esp, ebx); /* 0x3801CA3B: push ebx */
   5034     eax = ebp + 0xC; /* 0x3801CA3C: lea eax, [ebp + 0xc] */
   5035     PUSH32(esp, eax); /* 0x3801CA3F: push eax */
   5036     ecx = edi; /* 0x3801CA40: mov ecx, edi */
   5037     RECOMP_ICALL(0x3801D170u); /* 0x3801CA42: call 0x3801d170 */ /* not lifted */
   5038     RECOMP_FLAGS_IN();
   5039     ecx = MEM32(eax); /* 0x3801CA47: mov ecx, dword ptr [eax] */
   5040     eax = MEM32(ebp + 0x8); /* 0x3801CA49: mov eax, dword ptr [ebp + 8] */
   5041     edi = POP32_VAL(esp); /* 0x3801CA4C: pop edi */
   5042     MEM32(eax) = ecx; /* 0x3801CA4D: mov dword ptr [eax], ecx */
   5043     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3801CA4F: mov byte ptr [ebp - 8], 1 */
   5044     ecx = MEM32(ebp + (-0x8)); /* 0x3801CA53: mov ecx, dword ptr [ebp - 8] */
   5045     esi = POP32_VAL(esp); /* 0x3801CA56: pop esi */
   5046     MEM32(eax + 0x4) = ecx; /* 0x3801CA57: mov dword ptr [eax + 4], ecx */
   5047     ebx = POP32_VAL(esp); /* 0x3801CA5A: pop ebx */
   5048     esp = ebp; /* 0x3801CA5B: mov esp, ebp */
   5049     ebp = POP32_VAL(esp); /* 0x3801CA5D: pop ebp */
   5050     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CA5E: ret 8 */
   5051 L_3801CA61:
   5052     ecx = ebp + (-0x8); /* 0x3801CA61: lea ecx, [ebp - 8] */
   5053     RECOMP_ICALL(0x38013690u); /* 0x3801CA64: call 0x38013690 */ /* not lifted */
   5054     RECOMP_FLAGS_IN();
   5055     edx = MEM32(ebp + (-0x8)); /* 0x3801CA69: mov edx, dword ptr [ebp - 8] */
   5056 L_3801CA6C:
   5057     ecx = MEM32(edx + 0xC); /* 0x3801CA6C: mov ecx, dword ptr [edx + 0xc] */
   5058     eax = MEM32(ebp + 0xC); /* 0x3801CA6F: mov eax, dword ptr [ebp + 0xc] */
   5059     /* cmp ecx, MEM32(eax) */ /* 0x3801CA72: cmp ecx, dword ptr [eax] */
   5060     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   5061     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5062     _flag_k = FK_CMP;
   5063     if (CMP_AE(_flag_a, _flag_b)) goto L_3801CA9E; /* 0x3801CA74: jae 0x3801ca9e */
   5064 L_3801CA76:
   5065     PUSH32(esp, eax); /* 0x3801CA76: push eax */
   5066     PUSH32(esp, esi); /* 0x3801CA77: push esi */
   5067     PUSH32(esp, ebx); /* 0x3801CA78: push ebx */
   5068     edx = ebp + 0xC; /* 0x3801CA79: lea edx, [ebp + 0xc] */
   5069     PUSH32(esp, edx); /* 0x3801CA7C: push edx */
   5070     ecx = edi; /* 0x3801CA7D: mov ecx, edi */
   5071     RECOMP_ICALL(0x3801D170u); /* 0x3801CA7F: call 0x3801d170 */ /* not lifted */
   5072     RECOMP_FLAGS_IN();
   5073     ecx = MEM32(eax); /* 0x3801CA84: mov ecx, dword ptr [eax] */
   5074     eax = MEM32(ebp + 0x8); /* 0x3801CA86: mov eax, dword ptr [ebp + 8] */
   5075     edi = POP32_VAL(esp); /* 0x3801CA89: pop edi */
   5076     MEM32(eax) = ecx; /* 0x3801CA8A: mov dword ptr [eax], ecx */
   5077     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3801CA8C: mov byte ptr [ebp - 8], 1 */
   5078     ecx = MEM32(ebp + (-0x8)); /* 0x3801CA90: mov ecx, dword ptr [ebp - 8] */
   5079     esi = POP32_VAL(esp); /* 0x3801CA93: pop esi */
   5080     MEM32(eax + 0x4) = ecx; /* 0x3801CA94: mov dword ptr [eax + 4], ecx */
   5081     ebx = POP32_VAL(esp); /* 0x3801CA97: pop ebx */
   5082     esp = ebp; /* 0x3801CA98: mov esp, ebp */
   5083     ebp = POP32_VAL(esp); /* 0x3801CA9A: pop ebp */
   5084     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CA9B: ret 8 */
   5085 L_3801CA9E:
   5086     eax = MEM32(ebp + 0x8); /* 0x3801CA9E: mov eax, dword ptr [ebp + 8] */
   5087     edi = POP32_VAL(esp); /* 0x3801CAA1: pop edi */
   5088     MEM32(eax) = edx; /* 0x3801CAA2: mov dword ptr [eax], edx */
   5089     MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x3801CAA4: mov byte ptr [ebp - 8], 0 */
   5090     edx = MEM32(ebp + (-0x8)); /* 0x3801CAA8: mov edx, dword ptr [ebp - 8] */
   5091     esi = POP32_VAL(esp); /* 0x3801CAAB: pop esi */
   5092     MEM32(eax + 0x4) = edx; /* 0x3801CAAC: mov dword ptr [eax + 4], edx */
   5093     ebx = POP32_VAL(esp); /* 0x3801CAAF: pop ebx */
   5094     esp = ebp; /* 0x3801CAB0: mov esp, ebp */
   5095     ebp = POP32_VAL(esp); /* 0x3801CAB2: pop ebp */
   5096     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CAB3: ret 8 */
   5097     RECOMP_REGS_OUT();
   5098 }
   5099 
   5100 void sub_3801CAC0(void) {
   5101     int _fpu_cmp = 0;
   5102     uint32_t _cf = 0;
   5103     int _df = 1;
   5104     uint32_t _flag_k = FK_NONE;
   5105     uint32_t _flag_a = 0, _flag_b = 0;
   5106     uint32_t _itail_tgt = 0;
   5107     RECOMP_REGS_LOCALS
   5108     RECOMP_ENTER(0x3801CAC0u);
   5109 
   5110 L_3801CAC0:
   5111     PUSH32(esp, ebp); /* 0x3801CAC0: push ebp */
   5112     ebp = esp; /* 0x3801CAC1: mov ebp, esp */
   5113     PUSH32(esp, ebx); /* 0x3801CAC3: push ebx */
   5114     ebx = MEM32(ebp + 0x10); /* 0x3801CAC4: mov ebx, dword ptr [ebp + 0x10] */
   5115     PUSH32(esp, esi); /* 0x3801CAC7: push esi */
   5116     esi = ecx; /* 0x3801CAC8: mov esi, ecx */
   5117     eax = MEM32(esi + 0x10); /* 0x3801CACA: mov eax, dword ptr [esi + 0x10] */
   5118     /* test eax, eax */ /* 0x3801CACD: test eax, eax */
   5119     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5120     _cf = 0;
   5121     _flag_k = FK_TEST;
   5122     ecx = MEM32(ebp + 0xC); /* 0x3801CACF: mov ecx, dword ptr [ebp + 0xc] */
   5123     PUSH32(esp, edi); /* 0x3801CAD2: push edi */
   5124     if (TEST_Z(_flag_a, _flag_b)) goto L_3801CB35; /* 0x3801CAD3: je 0x3801cb35 */
   5125 L_3801CAD5:
   5126     eax = MEM32(esi + 0x4); /* 0x3801CAD5: mov eax, dword ptr [esi + 4] */
   5127     /* cmp ecx, MEM32(eax) */ /* 0x3801CAD8: cmp ecx, dword ptr [eax] */
   5128     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   5129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5130     _flag_k = FK_CMP;
   5131     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CB35; /* 0x3801CADA: jne 0x3801cb35 */
   5132 L_3801CADC:
   5133     /* cmp ebx, eax */ /* 0x3801CADC: cmp ebx, eax */
   5134     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   5135     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5136     _flag_k = FK_CMP;
   5137     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CB35; /* 0x3801CADE: jne 0x3801cb35 */
   5138 L_3801CAE0:
   5139     ebx = MEM32(eax + 0x4); /* 0x3801CAE0: mov ebx, dword ptr [eax + 4] */
   5140     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3801CAE3: cmp ebx, dword ptr [esi + 8] */
   5141     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5142     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5143     _flag_k = FK_CMP;
   5144     edi = ebx; /* 0x3801CAE6: mov edi, ebx */
   5145     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CB09; /* 0x3801CAE8: je 0x3801cb09 */
   5146 L_3801CAEA:
   5147     eax = MEM32(edi + 0x8); /* 0x3801CAEA: mov eax, dword ptr [edi + 8] */
   5148     PUSH32(esp, eax); /* 0x3801CAED: push eax */
   5149     ecx = esi; /* 0x3801CAEE: mov ecx, esi */
   5150     RECOMP_ICALL(0x3801D130u); /* 0x3801CAF0: call 0x3801d130 */ /* not lifted */
   5151     RECOMP_FLAGS_IN();
   5152     edi = MEM32(edi); /* 0x3801CAF5: mov edi, dword ptr [edi] */
   5153     PUSH32(esp, ebx); /* 0x3801CAF7: push ebx */
   5154     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CAF8: call 0x3804b4f6 */ /* not lifted */
   5155     RECOMP_FLAGS_IN();
   5156     eax = MEM32(esi + 0x8); /* 0x3801CAFD: mov eax, dword ptr [esi + 8] */
   5157     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5158     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5159     esp = esp + 4; /* 0x3801CB00: add esp, 4 */
   5160     _flag_k = FK_ADD;
   5161     /* cmp edi, eax */ /* 0x3801CB03: cmp edi, eax */
   5162     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   5163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5164     _flag_k = FK_CMP;
   5165     ebx = edi; /* 0x3801CB05: mov ebx, edi */
   5166     RECOMP_BACKEDGE();
   5167     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CAEA; /* 0x3801CB07: jne 0x3801caea */
   5168 L_3801CB09:
   5169     ecx = MEM32(esi + 0x4); /* 0x3801CB09: mov ecx, dword ptr [esi + 4] */
   5170     edx = MEM32(esi + 0x8); /* 0x3801CB0C: mov edx, dword ptr [esi + 8] */
   5171     MEM32(ecx + 0x4) = edx; /* 0x3801CB0F: mov dword ptr [ecx + 4], edx */
   5172     eax = MEM32(esi + 0x4); /* 0x3801CB12: mov eax, dword ptr [esi + 4] */
   5173     MEM32(esi + 0x10) = 0; /* 0x3801CB15: mov dword ptr [esi + 0x10], 0 */
   5174     MEM32(eax) = eax; /* 0x3801CB1C: mov dword ptr [eax], eax */
   5175     eax = MEM32(esi + 0x4); /* 0x3801CB1E: mov eax, dword ptr [esi + 4] */
   5176     MEM32(eax + 0x8) = eax; /* 0x3801CB21: mov dword ptr [eax + 8], eax */
   5177     eax = MEM32(esi + 0x4); /* 0x3801CB24: mov eax, dword ptr [esi + 4] */
   5178     ecx = MEM32(eax); /* 0x3801CB27: mov ecx, dword ptr [eax] */
   5179     eax = MEM32(ebp + 0x8); /* 0x3801CB29: mov eax, dword ptr [ebp + 8] */
   5180     edi = POP32_VAL(esp); /* 0x3801CB2C: pop edi */
   5181     esi = POP32_VAL(esp); /* 0x3801CB2D: pop esi */
   5182     MEM32(eax) = ecx; /* 0x3801CB2E: mov dword ptr [eax], ecx */
   5183     ebx = POP32_VAL(esp); /* 0x3801CB30: pop ebx */
   5184     ebp = POP32_VAL(esp); /* 0x3801CB31: pop ebp */
   5185     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801CB32: ret 0xc */
   5186 L_3801CB35:
   5187     /* cmp ecx, ebx */ /* 0x3801CB35: cmp ecx, ebx */
   5188     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   5189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5190     _flag_k = FK_CMP;
   5191     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CB56; /* 0x3801CB37: je 0x3801cb56 */
   5192 L_3801CB39:
   5193     edi = ecx; /* 0x3801CB39: mov edi, ecx */
   5194     ecx = ebp + 0xC; /* 0x3801CB3B: lea ecx, [ebp + 0xc] */
   5195     RECOMP_ICALL(0x38035590u); /* 0x3801CB3E: call 0x38035590 */ /* not lifted */
   5196     RECOMP_FLAGS_IN();
   5197     PUSH32(esp, edi); /* 0x3801CB43: push edi */
   5198     ecx = ebp + 0x10; /* 0x3801CB44: lea ecx, [ebp + 0x10] */
   5199     PUSH32(esp, ecx); /* 0x3801CB47: push ecx */
   5200     ecx = esi; /* 0x3801CB48: mov ecx, esi */
   5201     RECOMP_ICALL(0x3800F9D0u); /* 0x3801CB4A: call 0x3800f9d0 */ /* not lifted */
   5202     RECOMP_FLAGS_IN();
   5203     ecx = MEM32(ebp + 0xC); /* 0x3801CB4F: mov ecx, dword ptr [ebp + 0xc] */
   5204     /* cmp ecx, ebx */ /* 0x3801CB52: cmp ecx, ebx */
   5205     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   5206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5207     _flag_k = FK_CMP;
   5208     RECOMP_BACKEDGE();
   5209     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CB39; /* 0x3801CB54: jne 0x3801cb39 */
   5210 L_3801CB56:
   5211     eax = MEM32(ebp + 0x8); /* 0x3801CB56: mov eax, dword ptr [ebp + 8] */
   5212     edi = POP32_VAL(esp); /* 0x3801CB59: pop edi */
   5213     esi = POP32_VAL(esp); /* 0x3801CB5A: pop esi */
   5214     MEM32(eax) = ecx; /* 0x3801CB5B: mov dword ptr [eax], ecx */
   5215     ebx = POP32_VAL(esp); /* 0x3801CB5D: pop ebx */
   5216     ebp = POP32_VAL(esp); /* 0x3801CB5E: pop ebp */
   5217     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801CB5F: ret 0xc */
   5218     RECOMP_REGS_OUT();
   5219 }
   5220 
   5221 void sub_3801CB70(void) {
   5222     int _fpu_cmp = 0;
   5223     uint32_t _cf = 0;
   5224     int _df = 1;
   5225     uint32_t _flag_k = FK_NONE;
   5226     uint32_t _flag_a = 0, _flag_b = 0;
   5227     uint32_t _itail_tgt = 0;
   5228     RECOMP_REGS_LOCALS
   5229     RECOMP_ENTER(0x3801CB70u);
   5230 
   5231 L_3801CB70:
   5232     PUSH32(esp, ebp); /* 0x3801CB70: push ebp */
   5233     ebp = esp; /* 0x3801CB71: mov ebp, esp */
   5234     PUSH32(esp, ebx); /* 0x3801CB73: push ebx */
   5235     PUSH32(esp, esi); /* 0x3801CB74: push esi */
   5236     esi = MEM32(ebp + 0xC); /* 0x3801CB75: mov esi, dword ptr [ebp + 0xc] */
   5237     PUSH32(esp, edi); /* 0x3801CB78: push edi */
   5238     edi = MEM32(esi + 0x4); /* 0x3801CB79: mov edi, dword ptr [esi + 4] */
   5239     PUSH32(esp, 0xCu); /* 0x3801CB7C: push 0xc */
   5240     ebx = ecx; /* 0x3801CB7E: mov ebx, ecx */
   5241     RECOMP_ICALL(0x3804B676u); /* 0x3801CB80: call 0x3804b676 */ /* not lifted */
   5242     RECOMP_FLAGS_IN();
   5243     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5244     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5245     esp = esp + 4; /* 0x3801CB85: add esp, 4 */
   5246     _flag_k = FK_ADD;
   5247     /* test esi, esi */ /* 0x3801CB88: test esi, esi */
   5248     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5249     _cf = 0;
   5250     _flag_k = FK_TEST;
   5251     ecx = esi; /* 0x3801CB8A: mov ecx, esi */
   5252     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CB90; /* 0x3801CB8C: jne 0x3801cb90 */
   5253 L_3801CB8E:
   5254     ecx = eax; /* 0x3801CB8E: mov ecx, eax */
   5255 L_3801CB90:
   5256     /* test edi, edi */ /* 0x3801CB90: test edi, edi */
   5257     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5258     _cf = 0;
   5259     _flag_k = FK_TEST;
   5260     MEM32(eax) = ecx; /* 0x3801CB92: mov dword ptr [eax], ecx */
   5261     ecx = edi; /* 0x3801CB94: mov ecx, edi */
   5262     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CB9A; /* 0x3801CB96: jne 0x3801cb9a */
   5263 L_3801CB98:
   5264     ecx = eax; /* 0x3801CB98: mov ecx, eax */
   5265 L_3801CB9A:
   5266     MEM32(eax + 0x4) = ecx; /* 0x3801CB9A: mov dword ptr [eax + 4], ecx */
   5267     MEM32(esi + 0x4) = eax; /* 0x3801CB9D: mov dword ptr [esi + 4], eax */
   5268     ecx = MEM32(eax + 0x4); /* 0x3801CBA0: mov ecx, dword ptr [eax + 4] */
   5269     MEM32(ecx) = eax; /* 0x3801CBA3: mov dword ptr [ecx], eax */
   5270     ecx = eax + 0x8; /* 0x3801CBA5: lea ecx, [eax + 8] */
   5271     /* test ecx, ecx */ /* 0x3801CBA8: test ecx, ecx */
   5272     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5273     _cf = 0;
   5274     _flag_k = FK_TEST;
   5275     if (TEST_Z(_flag_a, _flag_b)) goto L_3801CBB3; /* 0x3801CBAA: je 0x3801cbb3 */
   5276 L_3801CBAC:
   5277     edx = MEM32(ebp + 0x10); /* 0x3801CBAC: mov edx, dword ptr [ebp + 0x10] */
   5278     edx = MEM32(edx); /* 0x3801CBAF: mov edx, dword ptr [edx] */
   5279     MEM32(ecx) = edx; /* 0x3801CBB1: mov dword ptr [ecx], edx */
   5280 L_3801CBB3:
   5281     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(1);
   5282     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 1; /* 0x3801CBB3: inc dword ptr [ebx + 8] */
   5283     _flag_k = FK_INC;
   5284     ecx = MEM32(ebp + 0x8); /* 0x3801CBB6: mov ecx, dword ptr [ebp + 8] */
   5285     edi = POP32_VAL(esp); /* 0x3801CBB9: pop edi */
   5286     esi = POP32_VAL(esp); /* 0x3801CBBA: pop esi */
   5287     MEM32(ecx) = eax; /* 0x3801CBBB: mov dword ptr [ecx], eax */
   5288     eax = ecx; /* 0x3801CBBD: mov eax, ecx */
   5289     ebx = POP32_VAL(esp); /* 0x3801CBBF: pop ebx */
   5290     ebp = POP32_VAL(esp); /* 0x3801CBC0: pop ebp */
   5291     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3801CBC1: ret 0xc */
   5292     RECOMP_REGS_OUT();
   5293 }
   5294 
   5295 void sub_3801CBD0(void) {
   5296     int _fpu_cmp = 0;
   5297     uint32_t _cf = 0;
   5298     int _df = 1;
   5299     uint32_t _flag_k = FK_NONE;
   5300     uint32_t _flag_a = 0, _flag_b = 0;
   5301     uint32_t _itail_tgt = 0;
   5302     RECOMP_REGS_LOCALS
   5303     RECOMP_ENTER(0x3801CBD0u);
   5304 
   5305 L_3801CBD0:
   5306     PUSH32(esp, ebp); /* 0x3801CBD0: push ebp */
   5307     ebp = esp; /* 0x3801CBD1: mov ebp, esp */
   5308     eax = MEM32(ebp + 0xC); /* 0x3801CBD3: mov eax, dword ptr [ebp + 0xc] */
   5309     edx = MEM32(eax); /* 0x3801CBD6: mov edx, dword ptr [eax] */
   5310     PUSH32(esp, esi); /* 0x3801CBD8: push esi */
   5311     esi = ecx; /* 0x3801CBD9: mov esi, ecx */
   5312     ecx = MEM32(eax + 0x4); /* 0x3801CBDB: mov ecx, dword ptr [eax + 4] */
   5313     PUSH32(esp, edi); /* 0x3801CBDE: push edi */
   5314     edi = MEM32(eax); /* 0x3801CBDF: mov edi, dword ptr [eax] */
   5315     MEM32(ecx) = edx; /* 0x3801CBE1: mov dword ptr [ecx], edx */
   5316     ecx = MEM32(eax); /* 0x3801CBE3: mov ecx, dword ptr [eax] */
   5317     edx = MEM32(eax + 0x4); /* 0x3801CBE5: mov edx, dword ptr [eax + 4] */
   5318     PUSH32(esp, eax); /* 0x3801CBE8: push eax */
   5319     MEM32(ecx + 0x4) = edx; /* 0x3801CBE9: mov dword ptr [ecx + 4], edx */
   5320     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CBEC: call 0x3804b4f6 */ /* not lifted */
   5321     RECOMP_FLAGS_IN();
   5322     eax = MEM32(esi + 0x8); /* 0x3801CBF1: mov eax, dword ptr [esi + 8] */
   5323     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5324     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5325     esp = esp + 4; /* 0x3801CBF4: add esp, 4 */
   5326     _flag_k = FK_ADD;
   5327     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5328     eax = eax - 1; /* 0x3801CBF7: dec eax */
   5329     _flag_k = FK_DEC;
   5330     MEM32(esi + 0x8) = eax; /* 0x3801CBF8: mov dword ptr [esi + 8], eax */
   5331     eax = MEM32(ebp + 0x8); /* 0x3801CBFB: mov eax, dword ptr [ebp + 8] */
   5332     MEM32(eax) = edi; /* 0x3801CBFE: mov dword ptr [eax], edi */
   5333     edi = POP32_VAL(esp); /* 0x3801CC00: pop edi */
   5334     esi = POP32_VAL(esp); /* 0x3801CC01: pop esi */
   5335     ebp = POP32_VAL(esp); /* 0x3801CC02: pop ebp */
   5336     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CC03: ret 8 */
   5337     RECOMP_REGS_OUT();
   5338 }
   5339 
   5340 void sub_3801CC10(void) {
   5341     int _fpu_cmp = 0;
   5342     uint32_t _cf = 0;
   5343     int _df = 1;
   5344     uint32_t _flag_k = FK_NONE;
   5345     uint32_t _flag_a = 0, _flag_b = 0;
   5346     uint32_t _itail_tgt = 0;
   5347     RECOMP_REGS_LOCALS
   5348     RECOMP_ENTER(0x3801CC10u);
   5349 
   5350 L_3801CC10:
   5351     PUSH32(esp, ebp); /* 0x3801CC10: push ebp */
   5352     ebp = esp; /* 0x3801CC11: mov ebp, esp */
   5353     PUSH32(esp, ecx); /* 0x3801CC13: push ecx */
   5354     PUSH32(esp, ebx); /* 0x3801CC14: push ebx */
   5355     PUSH32(esp, esi); /* 0x3801CC15: push esi */
   5356     esi = MEM32(ebp + 0xC); /* 0x3801CC16: mov esi, dword ptr [ebp + 0xc] */
   5357     PUSH32(esp, edi); /* 0x3801CC19: push edi */
   5358     edi = ecx; /* 0x3801CC1A: mov edi, ecx */
   5359     ecx = ebp + 0xC; /* 0x3801CC1C: lea ecx, [ebp + 0xc] */
   5360     RECOMP_ICALL(0x3801D480u); /* 0x3801CC1F: call 0x3801d480 */ /* not lifted */
   5361     RECOMP_FLAGS_IN();
   5362     edx = MEM32(esi); /* 0x3801CC24: mov edx, dword ptr [esi] */
   5363     eax = MEM32(edi + 0x8); /* 0x3801CC26: mov eax, dword ptr [edi + 8] */
   5364     /* cmp edx, eax */ /* 0x3801CC29: cmp edx, eax */
   5365     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5367     _flag_k = FK_CMP;
   5368     MEM32(ebp + (-0x4)) = esi; /* 0x3801CC2B: mov dword ptr [ebp - 4], esi */
   5369     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CC50; /* 0x3801CC2E: jne 0x3801cc50 */
   5370 L_3801CC30:
   5371     eax = MEM32(esi + 0x8); /* 0x3801CC30: mov eax, dword ptr [esi + 8] */
   5372 L_3801CC33:
   5373     ecx = MEM32(ebp + (-0x4)); /* 0x3801CC33: mov ecx, dword ptr [ebp - 4] */
   5374     edx = MEM32(ecx + 0x4); /* 0x3801CC36: mov edx, dword ptr [ecx + 4] */
   5375     MEM32(eax + 0x4) = edx; /* 0x3801CC39: mov dword ptr [eax + 4], edx */
   5376     ecx = MEM32(edi + 0x4); /* 0x3801CC3C: mov ecx, dword ptr [edi + 4] */
   5377     /* cmp MEM32(ecx + 0x4), esi */ /* 0x3801CC3F: cmp dword ptr [ecx + 4], esi */
   5378     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi);
   5379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5380     _flag_k = FK_CMP;
   5381     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CCD3; /* 0x3801CC42: jne 0x3801ccd3 */
   5382 L_3801CC48:
   5383     MEM32(ecx + 0x4) = eax; /* 0x3801CC48: mov dword ptr [ecx + 4], eax */
   5384     goto L_3801CCE1; /* 0x3801CC4B: jmp 0x3801cce1 */
   5385 L_3801CC50:
   5386     ecx = MEM32(esi + 0x8); /* 0x3801CC50: mov ecx, dword ptr [esi + 8] */
   5387     /* cmp ecx, eax */ /* 0x3801CC53: cmp ecx, eax */
   5388     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5390     _flag_k = FK_CMP;
   5391     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CC5B; /* 0x3801CC55: jne 0x3801cc5b */
   5392 L_3801CC57:
   5393     eax = edx; /* 0x3801CC57: mov eax, edx */
   5394     RECOMP_BACKEDGE();
   5395     goto L_3801CC33; /* 0x3801CC59: jmp 0x3801cc33 */
   5396 L_3801CC5B:
   5397     eax = MEM32(ecx); /* 0x3801CC5B: mov eax, dword ptr [ecx] */
   5398     SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x3801CC5D: mov bl, byte ptr [eax + 0x21] */
   5399     /* test LO8(ebx), LO8(ebx) */ /* 0x3801CC60: test bl, bl */
   5400     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5401     _cf = 0;
   5402     _flag_k = FK_NARROW(FK_TEST, 24);
   5403     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CC6F; /* 0x3801CC62: jne 0x3801cc6f */
   5404 L_3801CC64:
   5405     ecx = eax; /* 0x3801CC64: mov ecx, eax */
   5406     eax = MEM32(ecx); /* 0x3801CC66: mov eax, dword ptr [ecx] */
   5407     SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x3801CC68: mov bl, byte ptr [eax + 0x21] */
   5408     /* test LO8(ebx), LO8(ebx) */ /* 0x3801CC6B: test bl, bl */
   5409     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5410     _cf = 0;
   5411     _flag_k = FK_NARROW(FK_TEST, 24);
   5412     RECOMP_BACKEDGE();
   5413     if (TEST_Z(_flag_a, _flag_b)) goto L_3801CC64; /* 0x3801CC6D: je 0x3801cc64 */
   5414 L_3801CC6F:
   5415     /* cmp ecx, esi */ /* 0x3801CC6F: cmp ecx, esi */
   5416     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   5417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5418     _flag_k = FK_CMP;
   5419     eax = MEM32(ecx + 0x8); /* 0x3801CC71: mov eax, dword ptr [ecx + 8] */
   5420     MEM32(ebp + (-0x4)) = ecx; /* 0x3801CC74: mov dword ptr [ebp - 4], ecx */
   5421     RECOMP_BACKEDGE();
   5422     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CC33; /* 0x3801CC77: je 0x3801cc33 */
   5423 L_3801CC79:
   5424     MEM32(edx + 0x4) = ecx; /* 0x3801CC79: mov dword ptr [edx + 4], ecx */
   5425     edx = MEM32(esi); /* 0x3801CC7C: mov edx, dword ptr [esi] */
   5426     MEM32(ecx) = edx; /* 0x3801CC7E: mov dword ptr [ecx], edx */
   5427     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CC80: cmp ecx, dword ptr [esi + 8] */
   5428     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5430     _flag_k = FK_CMP;
   5431     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CC8A; /* 0x3801CC83: jne 0x3801cc8a */
   5432 L_3801CC85:
   5433     MEM32(eax + 0x4) = ecx; /* 0x3801CC85: mov dword ptr [eax + 4], ecx */
   5434     goto L_3801CCA1; /* 0x3801CC88: jmp 0x3801cca1 */
   5435 L_3801CC8A:
   5436     edx = MEM32(ecx + 0x4); /* 0x3801CC8A: mov edx, dword ptr [ecx + 4] */
   5437     MEM32(eax + 0x4) = edx; /* 0x3801CC8D: mov dword ptr [eax + 4], edx */
   5438     edx = MEM32(ecx + 0x4); /* 0x3801CC90: mov edx, dword ptr [ecx + 4] */
   5439     MEM32(edx) = eax; /* 0x3801CC93: mov dword ptr [edx], eax */
   5440     edx = MEM32(esi + 0x8); /* 0x3801CC95: mov edx, dword ptr [esi + 8] */
   5441     MEM32(ecx + 0x8) = edx; /* 0x3801CC98: mov dword ptr [ecx + 8], edx */
   5442     edx = MEM32(esi + 0x8); /* 0x3801CC9B: mov edx, dword ptr [esi + 8] */
   5443     MEM32(edx + 0x4) = ecx; /* 0x3801CC9E: mov dword ptr [edx + 4], ecx */
   5444 L_3801CCA1:
   5445     edx = MEM32(edi + 0x4); /* 0x3801CCA1: mov edx, dword ptr [edi + 4] */
   5446     /* cmp MEM32(edx + 0x4), esi */ /* 0x3801CCA4: cmp dword ptr [edx + 4], esi */
   5447     _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi);
   5448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5449     _flag_k = FK_CMP;
   5450     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CCAE; /* 0x3801CCA7: jne 0x3801ccae */
   5451 L_3801CCA9:
   5452     MEM32(edx + 0x4) = ecx; /* 0x3801CCA9: mov dword ptr [edx + 4], ecx */
   5453     goto L_3801CCBC; /* 0x3801CCAC: jmp 0x3801ccbc */
   5454 L_3801CCAE:
   5455     edx = MEM32(esi + 0x4); /* 0x3801CCAE: mov edx, dword ptr [esi + 4] */
   5456     /* cmp MEM32(edx), esi */ /* 0x3801CCB1: cmp dword ptr [edx], esi */
   5457     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi);
   5458     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5459     _flag_k = FK_CMP;
   5460     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CCB9; /* 0x3801CCB3: jne 0x3801ccb9 */
   5461 L_3801CCB5:
   5462     MEM32(edx) = ecx; /* 0x3801CCB5: mov dword ptr [edx], ecx */
   5463     goto L_3801CCBC; /* 0x3801CCB7: jmp 0x3801ccbc */
   5464 L_3801CCB9:
   5465     MEM32(edx + 0x8) = ecx; /* 0x3801CCB9: mov dword ptr [edx + 8], ecx */
   5466 L_3801CCBC:
   5467     edx = MEM32(esi + 0x4); /* 0x3801CCBC: mov edx, dword ptr [esi + 4] */
   5468     MEM32(ecx + 0x4) = edx; /* 0x3801CCBF: mov dword ptr [ecx + 4], edx */
   5469     SET_LO8(ebx, MEM8(esi + 0x20)); /* 0x3801CCC2: mov bl, byte ptr [esi + 0x20] */
   5470     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CCC5: mov dl, byte ptr [ecx + 0x20] */
   5471     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CCC8: mov byte ptr [ecx + 0x20], bl */
   5472     MEM8(esi + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CCCB: mov byte ptr [esi + 0x20], dl */
   5473     MEM32(ebp + (-0x4)) = esi; /* 0x3801CCCE: mov dword ptr [ebp - 4], esi */
   5474     goto L_3801CD38; /* 0x3801CCD1: jmp 0x3801cd38 */
   5475 L_3801CCD3:
   5476     ecx = MEM32(esi + 0x4); /* 0x3801CCD3: mov ecx, dword ptr [esi + 4] */
   5477     /* cmp MEM32(ecx), esi */ /* 0x3801CCD6: cmp dword ptr [ecx], esi */
   5478     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi);
   5479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5480     _flag_k = FK_CMP;
   5481     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CCDE; /* 0x3801CCD8: jne 0x3801ccde */
   5482 L_3801CCDA:
   5483     MEM32(ecx) = eax; /* 0x3801CCDA: mov dword ptr [ecx], eax */
   5484     goto L_3801CCE1; /* 0x3801CCDC: jmp 0x3801cce1 */
   5485 L_3801CCDE:
   5486     MEM32(ecx + 0x8) = eax; /* 0x3801CCDE: mov dword ptr [ecx + 8], eax */
   5487 L_3801CCE1:
   5488     ebx = MEM32(edi + 0x4); /* 0x3801CCE1: mov ebx, dword ptr [edi + 4] */
   5489     /* cmp MEM32(ebx), esi */ /* 0x3801CCE4: cmp dword ptr [ebx], esi */
   5490     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi);
   5491     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5492     _flag_k = FK_CMP;
   5493     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD0B; /* 0x3801CCE6: jne 0x3801cd0b */
   5494 L_3801CCE8:
   5495     ecx = MEM32(esi + 0x8); /* 0x3801CCE8: mov ecx, dword ptr [esi + 8] */
   5496     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801CCEB: cmp ecx, dword ptr [edi + 8] */
   5497     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5498     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5499     _flag_k = FK_CMP;
   5500     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CCF5; /* 0x3801CCEE: jne 0x3801ccf5 */
   5501 L_3801CCF0:
   5502     edx = MEM32(esi + 0x4); /* 0x3801CCF0: mov edx, dword ptr [esi + 4] */
   5503     goto L_3801CD09; /* 0x3801CCF3: jmp 0x3801cd09 */
   5504 L_3801CCF5:
   5505     ecx = MEM32(eax); /* 0x3801CCF5: mov ecx, dword ptr [eax] */
   5506     /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3801CCF7: cmp byte ptr [ecx + 0x21], 0 */
   5507     _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24;
   5508     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5509     _flag_k = FK_NARROW(FK_CMP, 24);
   5510     edx = eax; /* 0x3801CCFB: mov edx, eax */
   5511     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD09; /* 0x3801CCFD: jne 0x3801cd09 */
   5512 L_3801CCFF:
   5513     edx = ecx; /* 0x3801CCFF: mov edx, ecx */
   5514     ecx = MEM32(edx); /* 0x3801CD01: mov ecx, dword ptr [edx] */
   5515     /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3801CD03: cmp byte ptr [ecx + 0x21], 0 */
   5516     _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24;
   5517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5518     _flag_k = FK_NARROW(FK_CMP, 24);
   5519     RECOMP_BACKEDGE();
   5520     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CCFF; /* 0x3801CD07: je 0x3801ccff */
   5521 L_3801CD09:
   5522     MEM32(ebx) = edx; /* 0x3801CD09: mov dword ptr [ebx], edx */
   5523 L_3801CD0B:
   5524     ebx = MEM32(edi + 0x4); /* 0x3801CD0B: mov ebx, dword ptr [edi + 4] */
   5525     /* cmp MEM32(ebx + 0x8), esi */ /* 0x3801CD0E: cmp dword ptr [ebx + 8], esi */
   5526     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   5527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5528     _flag_k = FK_CMP;
   5529     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD38; /* 0x3801CD11: jne 0x3801cd38 */
   5530 L_3801CD13:
   5531     ecx = MEM32(esi); /* 0x3801CD13: mov ecx, dword ptr [esi] */
   5532     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801CD15: cmp ecx, dword ptr [edi + 8] */
   5533     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5535     _flag_k = FK_CMP;
   5536     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD1F; /* 0x3801CD18: jne 0x3801cd1f */
   5537 L_3801CD1A:
   5538     edx = MEM32(esi + 0x4); /* 0x3801CD1A: mov edx, dword ptr [esi + 4] */
   5539     goto L_3801CD35; /* 0x3801CD1D: jmp 0x3801cd35 */
   5540 L_3801CD1F:
   5541     ecx = MEM32(eax + 0x8); /* 0x3801CD1F: mov ecx, dword ptr [eax + 8] */
   5542     /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3801CD22: cmp byte ptr [ecx + 0x21], 0 */
   5543     _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24;
   5544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5545     _flag_k = FK_NARROW(FK_CMP, 24);
   5546     edx = eax; /* 0x3801CD26: mov edx, eax */
   5547     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD35; /* 0x3801CD28: jne 0x3801cd35 */
   5548 L_3801CD2A:
   5549     edx = ecx; /* 0x3801CD2A: mov edx, ecx */
   5550     ecx = MEM32(edx + 0x8); /* 0x3801CD2C: mov ecx, dword ptr [edx + 8] */
   5551     /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3801CD2F: cmp byte ptr [ecx + 0x21], 0 */
   5552     _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24;
   5553     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5554     _flag_k = FK_NARROW(FK_CMP, 24);
   5555     RECOMP_BACKEDGE();
   5556     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD2A; /* 0x3801CD33: je 0x3801cd2a */
   5557 L_3801CD35:
   5558     MEM32(ebx + 0x8) = edx; /* 0x3801CD35: mov dword ptr [ebx + 8], edx */
   5559 L_3801CD38:
   5560     ecx = MEM32(ebp + (-0x4)); /* 0x3801CD38: mov ecx, dword ptr [ebp - 4] */
   5561     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD3B: mov dl, byte ptr [ecx + 0x20] */
   5562     SET_LO8(ebx, 1); /* 0x3801CD3E: mov bl, 1 */
   5563     /* cmp LO8(edx), LO8(ebx) */ /* 0x3801CD40: cmp dl, bl */
   5564     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5566     _flag_k = FK_NARROW(FK_CMP, 24);
   5567     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA5; /* 0x3801CD42: jne 0x3801cfa5 */
   5568 L_3801CD48:
   5569     edx = MEM32(edi + 0x4); /* 0x3801CD48: mov edx, dword ptr [edi + 4] */
   5570     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801CD4B: cmp eax, dword ptr [edx + 4] */
   5571     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5572     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5573     _flag_k = FK_CMP;
   5574     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD4E: je 0x3801cfa2 */
   5575 L_3801CD54:
   5576     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   5577     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5579     _flag_k = FK_NARROW(FK_CMP, 24);
   5580     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   5581 L_3801CD5D:
   5582     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   5583     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   5584     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   5585     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5586     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5587     _flag_k = FK_CMP;
   5588     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   5589 L_3801CD66:
   5590     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   5591     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   5592     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   5593     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5594     _cf = 0;
   5595     _flag_k = FK_NARROW(FK_TEST, 24);
   5596     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   5597 L_3801CD70:
   5598     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   5599     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   5600     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   5601     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   5602     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   5603     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   5604     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   5605     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   5606     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   5607     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5609     _flag_k = FK_CMP;
   5610     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   5611 L_3801CD8C:
   5612     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   5613 L_3801CD8F:
   5614     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   5615     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   5616     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   5617     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   5618     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5620     _flag_k = FK_CMP;
   5621     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   5622 L_3801CD9D:
   5623     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   5624     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   5625 L_3801CDA2:
   5626     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   5627     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   5628     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5630     _flag_k = FK_CMP;
   5631     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   5632 L_3801CDA9:
   5633     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   5634     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   5635 L_3801CDAD:
   5636     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   5637 L_3801CDB0:
   5638     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   5639     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   5640     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   5641     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   5642 L_3801CDBB:
   5643     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   5644     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   5645     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5647     _flag_k = FK_NARROW(FK_CMP, 24);
   5648     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   5649 L_3801CDC6:
   5650     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   5651     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   5652     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5653     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5654     _flag_k = FK_NARROW(FK_CMP, 24);
   5655     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   5656 L_3801CDD2:
   5657     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   5658 L_3801CDD4:
   5659     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   5660     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   5661     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5662     _cf = 0;
   5663     _flag_k = FK_NARROW(FK_TEST, 24);
   5664     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   5665 L_3801CDDB:
   5666     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   5667     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   5668     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   5669     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   5670     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   5671     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   5672     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   5673     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   5674     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   5675     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5677     _flag_k = FK_CMP;
   5678     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   5679 L_3801CDF7:
   5680     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   5681 L_3801CDFA:
   5682     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   5683     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   5684     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   5685     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   5686     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5688     _flag_k = FK_CMP;
   5689     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   5690 L_3801CE08:
   5691     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   5692     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   5693 L_3801CE0D:
   5694     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   5695     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   5696     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5698     _flag_k = FK_CMP;
   5699     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   5700 L_3801CE15:
   5701     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   5702     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   5703 L_3801CE1A:
   5704     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   5705 L_3801CE1C:
   5706     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   5707     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   5708     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   5709     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   5710 L_3801CE27:
   5711     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   5712     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   5713     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5714     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5715     _flag_k = FK_NARROW(FK_CMP, 24);
   5716     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   5717 L_3801CE33:
   5718     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   5719     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   5720     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5721     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5722     _flag_k = FK_NARROW(FK_CMP, 24);
   5723     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   5724 L_3801CE3E:
   5725     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   5726     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   5727     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   5728     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   5729     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5731     _flag_k = FK_CMP;
   5732     RECOMP_BACKEDGE();
   5733     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   5734 L_3801CE51:
   5735     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   5736 L_3801CE56:
   5737     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   5738     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   5739     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5741     _flag_k = FK_NARROW(FK_CMP, 24);
   5742     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   5743 L_3801CE5E:
   5744     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   5745     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   5746     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   5747     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   5748     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   5749     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   5750     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   5751     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   5752     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5754     _flag_k = FK_CMP;
   5755     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   5756 L_3801CE76:
   5757     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   5758 L_3801CE79:
   5759     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   5760     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   5761     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   5762     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   5763     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5765     _flag_k = FK_CMP;
   5766     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   5767 L_3801CE87:
   5768     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   5769     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   5770 L_3801CE8C:
   5771     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   5772     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   5773     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5774     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5775     _flag_k = FK_CMP;
   5776     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   5777 L_3801CE94:
   5778     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   5779     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   5780 L_3801CE99:
   5781     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   5782 L_3801CE9B:
   5783     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   5784     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   5785     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   5786     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   5787 L_3801CEA7:
   5788     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   5789     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   5790     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   5791     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   5792     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   5793     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   5794     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   5795     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   5796     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   5797     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   5798     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   5799     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   5800     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   5801     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5803     _flag_k = FK_CMP;
   5804     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   5805 L_3801CECE:
   5806     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   5807 L_3801CED1:
   5808     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   5809     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   5810     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   5811     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   5812     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5814     _flag_k = FK_CMP;
   5815     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   5816 L_3801CEDF:
   5817     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   5818     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   5819     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   5820 L_3801CEE9:
   5821     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   5822     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   5823     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5825     _flag_k = FK_CMP;
   5826     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   5827 L_3801CEF0:
   5828     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   5829     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   5830     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   5831 L_3801CEF9:
   5832     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   5833     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   5834     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   5835 L_3801CF03:
   5836     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   5837     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   5838     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   5839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5840     _flag_k = FK_NARROW(FK_CMP, 24);
   5841     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   5842 L_3801CF0A:
   5843     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   5844     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   5845     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   5846     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   5847     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   5848     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   5849     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   5850     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   5851     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5853     _flag_k = FK_CMP;
   5854     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   5855 L_3801CF23:
   5856     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   5857 L_3801CF26:
   5858     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   5859     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   5860     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   5861     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   5862     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5864     _flag_k = FK_CMP;
   5865     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   5866 L_3801CF34:
   5867     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   5868     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   5869 L_3801CF39:
   5870     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   5871     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
   5872     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   5873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5874     _flag_k = FK_CMP;
   5875     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
   5876 L_3801CF40:
   5877     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
   5878     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
   5879 L_3801CF44:
   5880     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
   5881 L_3801CF47:
   5882     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
   5883     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
   5884     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
   5885     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
   5886 L_3801CF51:
   5887     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
   5888     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
   5889     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
   5890     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
   5891     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
   5892     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
   5893     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
   5894     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
   5895     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
   5896     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
   5897     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
   5898     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
   5899     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
   5900     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5902     _flag_k = FK_CMP;
   5903     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
   5904 L_3801CF77:
   5905     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
   5906 L_3801CF7A:
   5907     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
   5908     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
   5909     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
   5910     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
   5911     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5913     _flag_k = FK_CMP;
   5914     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
   5915 L_3801CF88:
   5916     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
   5917     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
   5918 L_3801CF8D:
   5919     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
   5920     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
   5921     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5922     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5923     _flag_k = FK_CMP;
   5924     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
   5925 L_3801CF95:
   5926     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
   5927     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
   5928 L_3801CF9A:
   5929     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
   5930 L_3801CF9C:
   5931     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
   5932 L_3801CF9F:
   5933     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
   5934 L_3801CFA2:
   5935     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
   5936 L_3801CFA5:
   5937     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
   5938     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
   5939     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
   5940     RECOMP_FLAGS_IN();
   5941     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
   5942     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
   5943     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5944     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5945     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
   5946     _flag_k = FK_ADD;
   5947     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5948     eax = eax - 1; /* 0x3801CFB7: dec eax */
   5949     _flag_k = FK_DEC;
   5950     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
   5951     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
   5952     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
   5953     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
   5954     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
   5955     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
   5956     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
   5957     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
   5958     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
   5959     RECOMP_REGS_OUT();
   5960 }
   5961 
   5962 void sub_3801CCE1(void) {
   5963     int _fpu_cmp = 0;
   5964     uint32_t _cf = 0;
   5965     int _df = 1;
   5966     uint32_t _flag_k = FK_NONE;
   5967     uint32_t _flag_a = 0, _flag_b = 0;
   5968     uint32_t _itail_tgt = 0;
   5969     RECOMP_REGS_LOCALS
   5970     RECOMP_ENTER(0x3801CCE1u);
   5971 
   5972 L_3801CCE1:
   5973     ebx = MEM32(edi + 0x4); /* 0x3801CCE1: mov ebx, dword ptr [edi + 4] */
   5974     /* cmp MEM32(ebx), esi */ /* 0x3801CCE4: cmp dword ptr [ebx], esi */
   5975     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi);
   5976     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5977     _flag_k = FK_CMP;
   5978     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD0B; /* 0x3801CCE6: jne 0x3801cd0b */
   5979 L_3801CCE8:
   5980     ecx = MEM32(esi + 0x8); /* 0x3801CCE8: mov ecx, dword ptr [esi + 8] */
   5981     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801CCEB: cmp ecx, dword ptr [edi + 8] */
   5982     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5984     _flag_k = FK_CMP;
   5985     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CCF5; /* 0x3801CCEE: jne 0x3801ccf5 */
   5986 L_3801CCF0:
   5987     edx = MEM32(esi + 0x4); /* 0x3801CCF0: mov edx, dword ptr [esi + 4] */
   5988     goto L_3801CD09; /* 0x3801CCF3: jmp 0x3801cd09 */
   5989 L_3801CCF5:
   5990     ecx = MEM32(eax); /* 0x3801CCF5: mov ecx, dword ptr [eax] */
   5991     /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3801CCF7: cmp byte ptr [ecx + 0x21], 0 */
   5992     _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24;
   5993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5994     _flag_k = FK_NARROW(FK_CMP, 24);
   5995     edx = eax; /* 0x3801CCFB: mov edx, eax */
   5996     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD09; /* 0x3801CCFD: jne 0x3801cd09 */
   5997 L_3801CCFF:
   5998     edx = ecx; /* 0x3801CCFF: mov edx, ecx */
   5999     ecx = MEM32(edx); /* 0x3801CD01: mov ecx, dword ptr [edx] */
   6000     /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3801CD03: cmp byte ptr [ecx + 0x21], 0 */
   6001     _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24;
   6002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6003     _flag_k = FK_NARROW(FK_CMP, 24);
   6004     RECOMP_BACKEDGE();
   6005     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CCFF; /* 0x3801CD07: je 0x3801ccff */
   6006 L_3801CD09:
   6007     MEM32(ebx) = edx; /* 0x3801CD09: mov dword ptr [ebx], edx */
   6008 L_3801CD0B:
   6009     ebx = MEM32(edi + 0x4); /* 0x3801CD0B: mov ebx, dword ptr [edi + 4] */
   6010     /* cmp MEM32(ebx + 0x8), esi */ /* 0x3801CD0E: cmp dword ptr [ebx + 8], esi */
   6011     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   6012     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6013     _flag_k = FK_CMP;
   6014     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD38; /* 0x3801CD11: jne 0x3801cd38 */
   6015 L_3801CD13:
   6016     ecx = MEM32(esi); /* 0x3801CD13: mov ecx, dword ptr [esi] */
   6017     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801CD15: cmp ecx, dword ptr [edi + 8] */
   6018     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6020     _flag_k = FK_CMP;
   6021     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD1F; /* 0x3801CD18: jne 0x3801cd1f */
   6022 L_3801CD1A:
   6023     edx = MEM32(esi + 0x4); /* 0x3801CD1A: mov edx, dword ptr [esi + 4] */
   6024     goto L_3801CD35; /* 0x3801CD1D: jmp 0x3801cd35 */
   6025 L_3801CD1F:
   6026     ecx = MEM32(eax + 0x8); /* 0x3801CD1F: mov ecx, dword ptr [eax + 8] */
   6027     /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3801CD22: cmp byte ptr [ecx + 0x21], 0 */
   6028     _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24;
   6029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6030     _flag_k = FK_NARROW(FK_CMP, 24);
   6031     edx = eax; /* 0x3801CD26: mov edx, eax */
   6032     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD35; /* 0x3801CD28: jne 0x3801cd35 */
   6033 L_3801CD2A:
   6034     edx = ecx; /* 0x3801CD2A: mov edx, ecx */
   6035     ecx = MEM32(edx + 0x8); /* 0x3801CD2C: mov ecx, dword ptr [edx + 8] */
   6036     /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3801CD2F: cmp byte ptr [ecx + 0x21], 0 */
   6037     _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24;
   6038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6039     _flag_k = FK_NARROW(FK_CMP, 24);
   6040     RECOMP_BACKEDGE();
   6041     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD2A; /* 0x3801CD33: je 0x3801cd2a */
   6042 L_3801CD35:
   6043     MEM32(ebx + 0x8) = edx; /* 0x3801CD35: mov dword ptr [ebx + 8], edx */
   6044 L_3801CD38:
   6045     ecx = MEM32(ebp + (-0x4)); /* 0x3801CD38: mov ecx, dword ptr [ebp - 4] */
   6046     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD3B: mov dl, byte ptr [ecx + 0x20] */
   6047     SET_LO8(ebx, 1); /* 0x3801CD3E: mov bl, 1 */
   6048     /* cmp LO8(edx), LO8(ebx) */ /* 0x3801CD40: cmp dl, bl */
   6049     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6051     _flag_k = FK_NARROW(FK_CMP, 24);
   6052     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA5; /* 0x3801CD42: jne 0x3801cfa5 */
   6053 L_3801CD48:
   6054     edx = MEM32(edi + 0x4); /* 0x3801CD48: mov edx, dword ptr [edi + 4] */
   6055     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801CD4B: cmp eax, dword ptr [edx + 4] */
   6056     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6058     _flag_k = FK_CMP;
   6059     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD4E: je 0x3801cfa2 */
   6060 L_3801CD54:
   6061     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   6062     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6063     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6064     _flag_k = FK_NARROW(FK_CMP, 24);
   6065     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   6066 L_3801CD5D:
   6067     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   6068     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   6069     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   6070     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6072     _flag_k = FK_CMP;
   6073     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   6074 L_3801CD66:
   6075     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   6076     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   6077     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   6078     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6079     _cf = 0;
   6080     _flag_k = FK_NARROW(FK_TEST, 24);
   6081     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   6082 L_3801CD70:
   6083     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   6084     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   6085     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   6086     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   6087     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   6088     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   6089     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   6090     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   6091     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   6092     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6094     _flag_k = FK_CMP;
   6095     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   6096 L_3801CD8C:
   6097     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   6098 L_3801CD8F:
   6099     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   6100     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   6101     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   6102     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   6103     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6104     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6105     _flag_k = FK_CMP;
   6106     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   6107 L_3801CD9D:
   6108     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   6109     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   6110 L_3801CDA2:
   6111     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   6112     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   6113     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6115     _flag_k = FK_CMP;
   6116     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   6117 L_3801CDA9:
   6118     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   6119     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   6120 L_3801CDAD:
   6121     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   6122 L_3801CDB0:
   6123     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   6124     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   6125     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   6126     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   6127 L_3801CDBB:
   6128     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   6129     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   6130     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6131     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6132     _flag_k = FK_NARROW(FK_CMP, 24);
   6133     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   6134 L_3801CDC6:
   6135     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   6136     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   6137     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6138     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6139     _flag_k = FK_NARROW(FK_CMP, 24);
   6140     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   6141 L_3801CDD2:
   6142     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   6143 L_3801CDD4:
   6144     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   6145     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   6146     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6147     _cf = 0;
   6148     _flag_k = FK_NARROW(FK_TEST, 24);
   6149     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   6150 L_3801CDDB:
   6151     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   6152     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   6153     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   6154     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   6155     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   6156     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   6157     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   6158     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   6159     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   6160     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6162     _flag_k = FK_CMP;
   6163     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   6164 L_3801CDF7:
   6165     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   6166 L_3801CDFA:
   6167     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   6168     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   6169     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   6170     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   6171     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6173     _flag_k = FK_CMP;
   6174     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   6175 L_3801CE08:
   6176     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   6177     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   6178 L_3801CE0D:
   6179     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   6180     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   6181     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6183     _flag_k = FK_CMP;
   6184     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   6185 L_3801CE15:
   6186     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   6187     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   6188 L_3801CE1A:
   6189     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   6190 L_3801CE1C:
   6191     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   6192     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   6193     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   6194     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   6195 L_3801CE27:
   6196     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   6197     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   6198     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6200     _flag_k = FK_NARROW(FK_CMP, 24);
   6201     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   6202 L_3801CE33:
   6203     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   6204     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   6205     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6207     _flag_k = FK_NARROW(FK_CMP, 24);
   6208     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   6209 L_3801CE3E:
   6210     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   6211     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   6212     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   6213     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   6214     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6216     _flag_k = FK_CMP;
   6217     RECOMP_BACKEDGE();
   6218     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   6219 L_3801CE51:
   6220     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   6221 L_3801CE56:
   6222     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   6223     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   6224     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6226     _flag_k = FK_NARROW(FK_CMP, 24);
   6227     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   6228 L_3801CE5E:
   6229     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   6230     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   6231     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   6232     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   6233     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   6234     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   6235     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   6236     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   6237     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6238     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6239     _flag_k = FK_CMP;
   6240     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   6241 L_3801CE76:
   6242     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   6243 L_3801CE79:
   6244     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   6245     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   6246     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   6247     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   6248     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6250     _flag_k = FK_CMP;
   6251     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   6252 L_3801CE87:
   6253     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   6254     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   6255 L_3801CE8C:
   6256     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   6257     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   6258     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6259     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6260     _flag_k = FK_CMP;
   6261     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   6262 L_3801CE94:
   6263     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   6264     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   6265 L_3801CE99:
   6266     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   6267 L_3801CE9B:
   6268     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   6269     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   6270     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   6271     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   6272 L_3801CEA7:
   6273     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   6274     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   6275     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   6276     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   6277     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   6278     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   6279     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   6280     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   6281     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   6282     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   6283     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   6284     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   6285     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   6286     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6287     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6288     _flag_k = FK_CMP;
   6289     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   6290 L_3801CECE:
   6291     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   6292 L_3801CED1:
   6293     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   6294     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   6295     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   6296     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   6297     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6298     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6299     _flag_k = FK_CMP;
   6300     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   6301 L_3801CEDF:
   6302     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   6303     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   6304     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   6305 L_3801CEE9:
   6306     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   6307     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   6308     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6310     _flag_k = FK_CMP;
   6311     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   6312 L_3801CEF0:
   6313     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   6314     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   6315     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   6316 L_3801CEF9:
   6317     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   6318     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   6319     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   6320 L_3801CF03:
   6321     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   6322     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   6323     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6325     _flag_k = FK_NARROW(FK_CMP, 24);
   6326     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   6327 L_3801CF0A:
   6328     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   6329     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   6330     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   6331     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   6332     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   6333     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   6334     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   6335     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   6336     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6338     _flag_k = FK_CMP;
   6339     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   6340 L_3801CF23:
   6341     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   6342 L_3801CF26:
   6343     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   6344     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   6345     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   6346     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   6347     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6349     _flag_k = FK_CMP;
   6350     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   6351 L_3801CF34:
   6352     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   6353     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   6354 L_3801CF39:
   6355     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   6356     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
   6357     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6359     _flag_k = FK_CMP;
   6360     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
   6361 L_3801CF40:
   6362     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
   6363     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
   6364 L_3801CF44:
   6365     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
   6366 L_3801CF47:
   6367     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
   6368     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
   6369     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
   6370     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
   6371 L_3801CF51:
   6372     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
   6373     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
   6374     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
   6375     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
   6376     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
   6377     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
   6378     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
   6379     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
   6380     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
   6381     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
   6382     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
   6383     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
   6384     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
   6385     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6386     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6387     _flag_k = FK_CMP;
   6388     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
   6389 L_3801CF77:
   6390     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
   6391 L_3801CF7A:
   6392     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
   6393     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
   6394     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
   6395     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
   6396     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6398     _flag_k = FK_CMP;
   6399     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
   6400 L_3801CF88:
   6401     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
   6402     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
   6403 L_3801CF8D:
   6404     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
   6405     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
   6406     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6407     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6408     _flag_k = FK_CMP;
   6409     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
   6410 L_3801CF95:
   6411     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
   6412     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
   6413 L_3801CF9A:
   6414     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
   6415 L_3801CF9C:
   6416     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
   6417 L_3801CF9F:
   6418     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
   6419 L_3801CFA2:
   6420     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
   6421 L_3801CFA5:
   6422     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
   6423     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
   6424     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
   6425     RECOMP_FLAGS_IN();
   6426     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
   6427     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
   6428     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6429     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6430     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
   6431     _flag_k = FK_ADD;
   6432     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6433     eax = eax - 1; /* 0x3801CFB7: dec eax */
   6434     _flag_k = FK_DEC;
   6435     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
   6436     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
   6437     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
   6438     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
   6439     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
   6440     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
   6441     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
   6442     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
   6443     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
   6444     RECOMP_REGS_OUT();
   6445 }
   6446 
   6447 void sub_3801CD09(void) {
   6448     int _fpu_cmp = 0;
   6449     uint32_t _cf = 0;
   6450     int _df = 1;
   6451     uint32_t _flag_k = FK_NONE;
   6452     uint32_t _flag_a = 0, _flag_b = 0;
   6453     uint32_t _itail_tgt = 0;
   6454     RECOMP_REGS_LOCALS
   6455     RECOMP_ENTER(0x3801CD09u);
   6456 
   6457 L_3801CD09:
   6458     MEM32(ebx) = edx; /* 0x3801CD09: mov dword ptr [ebx], edx */
   6459     ebx = MEM32(edi + 0x4); /* 0x3801CD0B: mov ebx, dword ptr [edi + 4] */
   6460     /* cmp MEM32(ebx + 0x8), esi */ /* 0x3801CD0E: cmp dword ptr [ebx + 8], esi */
   6461     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi);
   6462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6463     _flag_k = FK_CMP;
   6464     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD38; /* 0x3801CD11: jne 0x3801cd38 */
   6465 L_3801CD13:
   6466     ecx = MEM32(esi); /* 0x3801CD13: mov ecx, dword ptr [esi] */
   6467     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3801CD15: cmp ecx, dword ptr [edi + 8] */
   6468     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6470     _flag_k = FK_CMP;
   6471     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD1F; /* 0x3801CD18: jne 0x3801cd1f */
   6472 L_3801CD1A:
   6473     edx = MEM32(esi + 0x4); /* 0x3801CD1A: mov edx, dword ptr [esi + 4] */
   6474     goto L_3801CD35; /* 0x3801CD1D: jmp 0x3801cd35 */
   6475 L_3801CD1F:
   6476     ecx = MEM32(eax + 0x8); /* 0x3801CD1F: mov ecx, dword ptr [eax + 8] */
   6477     /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3801CD22: cmp byte ptr [ecx + 0x21], 0 */
   6478     _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24;
   6479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6480     _flag_k = FK_NARROW(FK_CMP, 24);
   6481     edx = eax; /* 0x3801CD26: mov edx, eax */
   6482     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD35; /* 0x3801CD28: jne 0x3801cd35 */
   6483 L_3801CD2A:
   6484     edx = ecx; /* 0x3801CD2A: mov edx, ecx */
   6485     ecx = MEM32(edx + 0x8); /* 0x3801CD2C: mov ecx, dword ptr [edx + 8] */
   6486     /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3801CD2F: cmp byte ptr [ecx + 0x21], 0 */
   6487     _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24;
   6488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6489     _flag_k = FK_NARROW(FK_CMP, 24);
   6490     RECOMP_BACKEDGE();
   6491     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD2A; /* 0x3801CD33: je 0x3801cd2a */
   6492 L_3801CD35:
   6493     MEM32(ebx + 0x8) = edx; /* 0x3801CD35: mov dword ptr [ebx + 8], edx */
   6494 L_3801CD38:
   6495     ecx = MEM32(ebp + (-0x4)); /* 0x3801CD38: mov ecx, dword ptr [ebp - 4] */
   6496     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD3B: mov dl, byte ptr [ecx + 0x20] */
   6497     SET_LO8(ebx, 1); /* 0x3801CD3E: mov bl, 1 */
   6498     /* cmp LO8(edx), LO8(ebx) */ /* 0x3801CD40: cmp dl, bl */
   6499     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6500     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6501     _flag_k = FK_NARROW(FK_CMP, 24);
   6502     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA5; /* 0x3801CD42: jne 0x3801cfa5 */
   6503 L_3801CD48:
   6504     edx = MEM32(edi + 0x4); /* 0x3801CD48: mov edx, dword ptr [edi + 4] */
   6505     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801CD4B: cmp eax, dword ptr [edx + 4] */
   6506     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6508     _flag_k = FK_CMP;
   6509     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD4E: je 0x3801cfa2 */
   6510 L_3801CD54:
   6511     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   6512     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6514     _flag_k = FK_NARROW(FK_CMP, 24);
   6515     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   6516 L_3801CD5D:
   6517     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   6518     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   6519     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   6520     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6522     _flag_k = FK_CMP;
   6523     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   6524 L_3801CD66:
   6525     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   6526     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   6527     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   6528     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6529     _cf = 0;
   6530     _flag_k = FK_NARROW(FK_TEST, 24);
   6531     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   6532 L_3801CD70:
   6533     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   6534     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   6535     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   6536     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   6537     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   6538     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   6539     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   6540     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   6541     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   6542     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6543     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6544     _flag_k = FK_CMP;
   6545     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   6546 L_3801CD8C:
   6547     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   6548 L_3801CD8F:
   6549     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   6550     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   6551     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   6552     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   6553     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6554     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6555     _flag_k = FK_CMP;
   6556     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   6557 L_3801CD9D:
   6558     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   6559     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   6560 L_3801CDA2:
   6561     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   6562     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   6563     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6565     _flag_k = FK_CMP;
   6566     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   6567 L_3801CDA9:
   6568     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   6569     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   6570 L_3801CDAD:
   6571     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   6572 L_3801CDB0:
   6573     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   6574     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   6575     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   6576     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   6577 L_3801CDBB:
   6578     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   6579     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   6580     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6582     _flag_k = FK_NARROW(FK_CMP, 24);
   6583     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   6584 L_3801CDC6:
   6585     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   6586     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   6587     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6589     _flag_k = FK_NARROW(FK_CMP, 24);
   6590     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   6591 L_3801CDD2:
   6592     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   6593 L_3801CDD4:
   6594     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   6595     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   6596     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6597     _cf = 0;
   6598     _flag_k = FK_NARROW(FK_TEST, 24);
   6599     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   6600 L_3801CDDB:
   6601     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   6602     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   6603     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   6604     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   6605     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   6606     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   6607     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   6608     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   6609     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   6610     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6612     _flag_k = FK_CMP;
   6613     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   6614 L_3801CDF7:
   6615     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   6616 L_3801CDFA:
   6617     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   6618     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   6619     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   6620     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   6621     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6623     _flag_k = FK_CMP;
   6624     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   6625 L_3801CE08:
   6626     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   6627     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   6628 L_3801CE0D:
   6629     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   6630     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   6631     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6633     _flag_k = FK_CMP;
   6634     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   6635 L_3801CE15:
   6636     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   6637     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   6638 L_3801CE1A:
   6639     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   6640 L_3801CE1C:
   6641     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   6642     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   6643     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   6644     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   6645 L_3801CE27:
   6646     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   6647     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   6648     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6649     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6650     _flag_k = FK_NARROW(FK_CMP, 24);
   6651     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   6652 L_3801CE33:
   6653     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   6654     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   6655     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6657     _flag_k = FK_NARROW(FK_CMP, 24);
   6658     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   6659 L_3801CE3E:
   6660     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   6661     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   6662     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   6663     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   6664     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6666     _flag_k = FK_CMP;
   6667     RECOMP_BACKEDGE();
   6668     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   6669 L_3801CE51:
   6670     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   6671 L_3801CE56:
   6672     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   6673     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   6674     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6675     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6676     _flag_k = FK_NARROW(FK_CMP, 24);
   6677     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   6678 L_3801CE5E:
   6679     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   6680     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   6681     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   6682     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   6683     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   6684     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   6685     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   6686     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   6687     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6689     _flag_k = FK_CMP;
   6690     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   6691 L_3801CE76:
   6692     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   6693 L_3801CE79:
   6694     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   6695     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   6696     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   6697     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   6698     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6700     _flag_k = FK_CMP;
   6701     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   6702 L_3801CE87:
   6703     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   6704     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   6705 L_3801CE8C:
   6706     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   6707     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   6708     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6710     _flag_k = FK_CMP;
   6711     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   6712 L_3801CE94:
   6713     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   6714     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   6715 L_3801CE99:
   6716     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   6717 L_3801CE9B:
   6718     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   6719     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   6720     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   6721     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   6722 L_3801CEA7:
   6723     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   6724     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   6725     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   6726     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   6727     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   6728     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   6729     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   6730     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   6731     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   6732     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   6733     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   6734     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   6735     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   6736     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6738     _flag_k = FK_CMP;
   6739     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   6740 L_3801CECE:
   6741     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   6742 L_3801CED1:
   6743     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   6744     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   6745     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   6746     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   6747     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6749     _flag_k = FK_CMP;
   6750     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   6751 L_3801CEDF:
   6752     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   6753     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   6754     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   6755 L_3801CEE9:
   6756     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   6757     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   6758     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6760     _flag_k = FK_CMP;
   6761     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   6762 L_3801CEF0:
   6763     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   6764     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   6765     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   6766 L_3801CEF9:
   6767     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   6768     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   6769     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   6770 L_3801CF03:
   6771     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   6772     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   6773     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6774     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6775     _flag_k = FK_NARROW(FK_CMP, 24);
   6776     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   6777 L_3801CF0A:
   6778     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   6779     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   6780     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   6781     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   6782     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   6783     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   6784     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   6785     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   6786     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6787     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6788     _flag_k = FK_CMP;
   6789     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   6790 L_3801CF23:
   6791     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   6792 L_3801CF26:
   6793     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   6794     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   6795     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   6796     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   6797     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6798     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6799     _flag_k = FK_CMP;
   6800     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   6801 L_3801CF34:
   6802     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   6803     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   6804 L_3801CF39:
   6805     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   6806     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
   6807     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6809     _flag_k = FK_CMP;
   6810     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
   6811 L_3801CF40:
   6812     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
   6813     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
   6814 L_3801CF44:
   6815     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
   6816 L_3801CF47:
   6817     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
   6818     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
   6819     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
   6820     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
   6821 L_3801CF51:
   6822     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
   6823     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
   6824     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
   6825     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
   6826     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
   6827     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
   6828     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
   6829     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
   6830     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
   6831     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
   6832     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
   6833     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
   6834     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
   6835     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6836     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6837     _flag_k = FK_CMP;
   6838     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
   6839 L_3801CF77:
   6840     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
   6841 L_3801CF7A:
   6842     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
   6843     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
   6844     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
   6845     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
   6846     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6848     _flag_k = FK_CMP;
   6849     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
   6850 L_3801CF88:
   6851     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
   6852     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
   6853 L_3801CF8D:
   6854     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
   6855     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
   6856     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6858     _flag_k = FK_CMP;
   6859     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
   6860 L_3801CF95:
   6861     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
   6862     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
   6863 L_3801CF9A:
   6864     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
   6865 L_3801CF9C:
   6866     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
   6867 L_3801CF9F:
   6868     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
   6869 L_3801CFA2:
   6870     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
   6871 L_3801CFA5:
   6872     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
   6873     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
   6874     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
   6875     RECOMP_FLAGS_IN();
   6876     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
   6877     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
   6878     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6879     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6880     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
   6881     _flag_k = FK_ADD;
   6882     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6883     eax = eax - 1; /* 0x3801CFB7: dec eax */
   6884     _flag_k = FK_DEC;
   6885     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
   6886     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
   6887     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
   6888     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
   6889     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
   6890     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
   6891     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
   6892     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
   6893     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
   6894     RECOMP_REGS_OUT();
   6895 }
   6896 
   6897 void sub_3801CD35(void) {
   6898     int _fpu_cmp = 0;
   6899     uint32_t _cf = 0;
   6900     int _df = 1;
   6901     uint32_t _flag_k = FK_NONE;
   6902     uint32_t _flag_a = 0, _flag_b = 0;
   6903     uint32_t _itail_tgt = 0;
   6904     RECOMP_REGS_LOCALS
   6905     RECOMP_ENTER(0x3801CD35u);
   6906 
   6907 L_3801CD35:
   6908     MEM32(ebx + 0x8) = edx; /* 0x3801CD35: mov dword ptr [ebx + 8], edx */
   6909     ecx = MEM32(ebp + (-0x4)); /* 0x3801CD38: mov ecx, dword ptr [ebp - 4] */
   6910     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD3B: mov dl, byte ptr [ecx + 0x20] */
   6911     SET_LO8(ebx, 1); /* 0x3801CD3E: mov bl, 1 */
   6912     /* cmp LO8(edx), LO8(ebx) */ /* 0x3801CD40: cmp dl, bl */
   6913     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6915     _flag_k = FK_NARROW(FK_CMP, 24);
   6916     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA5; /* 0x3801CD42: jne 0x3801cfa5 */
   6917 L_3801CD48:
   6918     edx = MEM32(edi + 0x4); /* 0x3801CD48: mov edx, dword ptr [edi + 4] */
   6919     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3801CD4B: cmp eax, dword ptr [edx + 4] */
   6920     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6922     _flag_k = FK_CMP;
   6923     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD4E: je 0x3801cfa2 */
   6924 L_3801CD54:
   6925     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   6926     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6927     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6928     _flag_k = FK_NARROW(FK_CMP, 24);
   6929     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   6930 L_3801CD5D:
   6931     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   6932     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   6933     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   6934     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6935     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6936     _flag_k = FK_CMP;
   6937     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   6938 L_3801CD66:
   6939     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   6940     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   6941     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   6942     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6943     _cf = 0;
   6944     _flag_k = FK_NARROW(FK_TEST, 24);
   6945     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   6946 L_3801CD70:
   6947     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   6948     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   6949     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   6950     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   6951     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   6952     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   6953     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   6954     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   6955     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   6956     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6958     _flag_k = FK_CMP;
   6959     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   6960 L_3801CD8C:
   6961     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   6962 L_3801CD8F:
   6963     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   6964     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   6965     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   6966     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   6967     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   6968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6969     _flag_k = FK_CMP;
   6970     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   6971 L_3801CD9D:
   6972     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   6973     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   6974 L_3801CDA2:
   6975     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   6976     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   6977     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   6978     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6979     _flag_k = FK_CMP;
   6980     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   6981 L_3801CDA9:
   6982     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   6983     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   6984 L_3801CDAD:
   6985     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   6986 L_3801CDB0:
   6987     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   6988     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   6989     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   6990     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   6991 L_3801CDBB:
   6992     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   6993     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   6994     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6995     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6996     _flag_k = FK_NARROW(FK_CMP, 24);
   6997     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   6998 L_3801CDC6:
   6999     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   7000     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   7001     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7003     _flag_k = FK_NARROW(FK_CMP, 24);
   7004     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   7005 L_3801CDD2:
   7006     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   7007 L_3801CDD4:
   7008     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   7009     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   7010     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7011     _cf = 0;
   7012     _flag_k = FK_NARROW(FK_TEST, 24);
   7013     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   7014 L_3801CDDB:
   7015     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   7016     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   7017     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   7018     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   7019     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   7020     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   7021     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   7022     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   7023     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   7024     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7026     _flag_k = FK_CMP;
   7027     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   7028 L_3801CDF7:
   7029     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   7030 L_3801CDFA:
   7031     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   7032     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   7033     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   7034     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   7035     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7037     _flag_k = FK_CMP;
   7038     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   7039 L_3801CE08:
   7040     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   7041     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   7042 L_3801CE0D:
   7043     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   7044     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   7045     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7047     _flag_k = FK_CMP;
   7048     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   7049 L_3801CE15:
   7050     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   7051     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   7052 L_3801CE1A:
   7053     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   7054 L_3801CE1C:
   7055     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   7056     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   7057     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   7058     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   7059 L_3801CE27:
   7060     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   7061     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   7062     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7063     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7064     _flag_k = FK_NARROW(FK_CMP, 24);
   7065     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   7066 L_3801CE33:
   7067     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   7068     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   7069     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7070     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7071     _flag_k = FK_NARROW(FK_CMP, 24);
   7072     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   7073 L_3801CE3E:
   7074     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   7075     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   7076     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   7077     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   7078     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7080     _flag_k = FK_CMP;
   7081     RECOMP_BACKEDGE();
   7082     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   7083 L_3801CE51:
   7084     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   7085 L_3801CE56:
   7086     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   7087     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   7088     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7089     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7090     _flag_k = FK_NARROW(FK_CMP, 24);
   7091     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   7092 L_3801CE5E:
   7093     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   7094     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   7095     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   7096     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   7097     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   7098     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   7099     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   7100     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   7101     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7103     _flag_k = FK_CMP;
   7104     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   7105 L_3801CE76:
   7106     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   7107 L_3801CE79:
   7108     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   7109     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   7110     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   7111     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   7112     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7114     _flag_k = FK_CMP;
   7115     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   7116 L_3801CE87:
   7117     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   7118     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   7119 L_3801CE8C:
   7120     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   7121     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   7122     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7124     _flag_k = FK_CMP;
   7125     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   7126 L_3801CE94:
   7127     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   7128     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   7129 L_3801CE99:
   7130     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   7131 L_3801CE9B:
   7132     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   7133     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   7134     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   7135     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   7136 L_3801CEA7:
   7137     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   7138     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   7139     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   7140     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   7141     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   7142     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   7143     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   7144     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   7145     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   7146     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   7147     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   7148     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   7149     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   7150     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7152     _flag_k = FK_CMP;
   7153     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   7154 L_3801CECE:
   7155     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   7156 L_3801CED1:
   7157     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   7158     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   7159     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   7160     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   7161     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7162     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7163     _flag_k = FK_CMP;
   7164     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   7165 L_3801CEDF:
   7166     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   7167     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   7168     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   7169 L_3801CEE9:
   7170     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   7171     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   7172     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7174     _flag_k = FK_CMP;
   7175     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   7176 L_3801CEF0:
   7177     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   7178     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   7179     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   7180 L_3801CEF9:
   7181     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   7182     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   7183     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   7184 L_3801CF03:
   7185     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   7186     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   7187     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7189     _flag_k = FK_NARROW(FK_CMP, 24);
   7190     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   7191 L_3801CF0A:
   7192     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   7193     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   7194     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   7195     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   7196     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   7197     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   7198     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   7199     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   7200     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7201     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7202     _flag_k = FK_CMP;
   7203     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   7204 L_3801CF23:
   7205     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   7206 L_3801CF26:
   7207     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   7208     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   7209     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   7210     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   7211     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7212     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7213     _flag_k = FK_CMP;
   7214     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   7215 L_3801CF34:
   7216     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   7217     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   7218 L_3801CF39:
   7219     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   7220     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
   7221     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7223     _flag_k = FK_CMP;
   7224     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
   7225 L_3801CF40:
   7226     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
   7227     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
   7228 L_3801CF44:
   7229     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
   7230 L_3801CF47:
   7231     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
   7232     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
   7233     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
   7234     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
   7235 L_3801CF51:
   7236     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
   7237     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
   7238     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
   7239     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
   7240     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
   7241     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
   7242     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
   7243     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
   7244     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
   7245     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
   7246     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
   7247     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
   7248     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
   7249     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7251     _flag_k = FK_CMP;
   7252     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
   7253 L_3801CF77:
   7254     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
   7255 L_3801CF7A:
   7256     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
   7257     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
   7258     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
   7259     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
   7260     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7261     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7262     _flag_k = FK_CMP;
   7263     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
   7264 L_3801CF88:
   7265     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
   7266     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
   7267 L_3801CF8D:
   7268     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
   7269     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
   7270     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7272     _flag_k = FK_CMP;
   7273     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
   7274 L_3801CF95:
   7275     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
   7276     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
   7277 L_3801CF9A:
   7278     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
   7279 L_3801CF9C:
   7280     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
   7281 L_3801CF9F:
   7282     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
   7283 L_3801CFA2:
   7284     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
   7285 L_3801CFA5:
   7286     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
   7287     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
   7288     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
   7289     RECOMP_FLAGS_IN();
   7290     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
   7291     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
   7292     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7293     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7294     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
   7295     _flag_k = FK_ADD;
   7296     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7297     eax = eax - 1; /* 0x3801CFB7: dec eax */
   7298     _flag_k = FK_DEC;
   7299     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
   7300     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
   7301     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
   7302     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
   7303     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
   7304     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
   7305     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
   7306     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
   7307     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
   7308     RECOMP_REGS_OUT();
   7309 }
   7310 
   7311 void sub_3801CD54(void) {
   7312     int _fpu_cmp = 0;
   7313     uint32_t _cf = 0;
   7314     int _df = 1;
   7315     uint32_t _flag_k = FK_NONE;
   7316     uint32_t _flag_a = 0, _flag_b = 0;
   7317     uint32_t _itail_tgt = 0;
   7318     RECOMP_REGS_LOCALS
   7319     RECOMP_ENTER(0x3801CD54u);
   7320 
   7321 L_3801CD54:
   7322     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   7323     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7325     _flag_k = FK_NARROW(FK_CMP, 24);
   7326     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   7327 L_3801CD5D:
   7328     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   7329     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   7330     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   7331     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7332     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7333     _flag_k = FK_CMP;
   7334     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   7335 L_3801CD66:
   7336     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   7337     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   7338     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   7339     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7340     _cf = 0;
   7341     _flag_k = FK_NARROW(FK_TEST, 24);
   7342     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   7343 L_3801CD70:
   7344     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   7345     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   7346     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   7347     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   7348     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   7349     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   7350     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   7351     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   7352     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   7353     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7355     _flag_k = FK_CMP;
   7356     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   7357 L_3801CD8C:
   7358     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   7359 L_3801CD8F:
   7360     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   7361     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   7362     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   7363     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   7364     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7366     _flag_k = FK_CMP;
   7367     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   7368 L_3801CD9D:
   7369     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   7370     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   7371 L_3801CDA2:
   7372     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   7373     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   7374     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7375     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7376     _flag_k = FK_CMP;
   7377     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   7378 L_3801CDA9:
   7379     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   7380     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   7381 L_3801CDAD:
   7382     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   7383 L_3801CDB0:
   7384     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   7385     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   7386     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   7387     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   7388 L_3801CDBB:
   7389     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   7390     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   7391     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7393     _flag_k = FK_NARROW(FK_CMP, 24);
   7394     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   7395 L_3801CDC6:
   7396     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   7397     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   7398     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7400     _flag_k = FK_NARROW(FK_CMP, 24);
   7401     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   7402 L_3801CDD2:
   7403     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   7404 L_3801CDD4:
   7405     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   7406     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   7407     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7408     _cf = 0;
   7409     _flag_k = FK_NARROW(FK_TEST, 24);
   7410     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   7411 L_3801CDDB:
   7412     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   7413     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   7414     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   7415     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   7416     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   7417     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   7418     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   7419     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   7420     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   7421     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7423     _flag_k = FK_CMP;
   7424     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   7425 L_3801CDF7:
   7426     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   7427 L_3801CDFA:
   7428     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   7429     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   7430     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   7431     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   7432     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7434     _flag_k = FK_CMP;
   7435     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   7436 L_3801CE08:
   7437     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   7438     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   7439 L_3801CE0D:
   7440     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   7441     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   7442     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7444     _flag_k = FK_CMP;
   7445     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   7446 L_3801CE15:
   7447     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   7448     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   7449 L_3801CE1A:
   7450     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   7451 L_3801CE1C:
   7452     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   7453     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   7454     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   7455     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   7456 L_3801CE27:
   7457     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   7458     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   7459     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7461     _flag_k = FK_NARROW(FK_CMP, 24);
   7462     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   7463 L_3801CE33:
   7464     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   7465     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   7466     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7468     _flag_k = FK_NARROW(FK_CMP, 24);
   7469     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   7470 L_3801CE3E:
   7471     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   7472     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   7473     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   7474     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   7475     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7477     _flag_k = FK_CMP;
   7478     RECOMP_BACKEDGE();
   7479     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   7480 L_3801CE51:
   7481     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   7482 L_3801CE56:
   7483     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   7484     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   7485     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7486     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7487     _flag_k = FK_NARROW(FK_CMP, 24);
   7488     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   7489 L_3801CE5E:
   7490     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   7491     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   7492     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   7493     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   7494     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   7495     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   7496     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   7497     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   7498     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7500     _flag_k = FK_CMP;
   7501     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   7502 L_3801CE76:
   7503     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   7504 L_3801CE79:
   7505     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   7506     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   7507     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   7508     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   7509     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7511     _flag_k = FK_CMP;
   7512     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   7513 L_3801CE87:
   7514     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   7515     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   7516 L_3801CE8C:
   7517     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   7518     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   7519     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7521     _flag_k = FK_CMP;
   7522     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   7523 L_3801CE94:
   7524     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   7525     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   7526 L_3801CE99:
   7527     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   7528 L_3801CE9B:
   7529     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   7530     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   7531     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   7532     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   7533 L_3801CEA7:
   7534     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   7535     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   7536     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   7537     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   7538     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   7539     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   7540     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   7541     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   7542     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   7543     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   7544     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   7545     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   7546     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   7547     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7549     _flag_k = FK_CMP;
   7550     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   7551 L_3801CECE:
   7552     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   7553 L_3801CED1:
   7554     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   7555     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   7556     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   7557     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   7558     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7560     _flag_k = FK_CMP;
   7561     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   7562 L_3801CEDF:
   7563     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   7564     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   7565     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   7566 L_3801CEE9:
   7567     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   7568     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   7569     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7571     _flag_k = FK_CMP;
   7572     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   7573 L_3801CEF0:
   7574     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   7575     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   7576     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   7577 L_3801CEF9:
   7578     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   7579     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   7580     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   7581 L_3801CF03:
   7582     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   7583     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   7584     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7585     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7586     _flag_k = FK_NARROW(FK_CMP, 24);
   7587     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   7588 L_3801CF0A:
   7589     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   7590     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   7591     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   7592     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   7593     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   7594     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   7595     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   7596     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   7597     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7599     _flag_k = FK_CMP;
   7600     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   7601 L_3801CF23:
   7602     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   7603 L_3801CF26:
   7604     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   7605     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   7606     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   7607     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   7608     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7609     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7610     _flag_k = FK_CMP;
   7611     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   7612 L_3801CF34:
   7613     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   7614     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   7615 L_3801CF39:
   7616     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   7617     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
   7618     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7620     _flag_k = FK_CMP;
   7621     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
   7622 L_3801CF40:
   7623     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
   7624     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
   7625 L_3801CF44:
   7626     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
   7627 L_3801CF47:
   7628     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
   7629     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
   7630     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
   7631     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
   7632 L_3801CF51:
   7633     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
   7634     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
   7635     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
   7636     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
   7637     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
   7638     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
   7639     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
   7640     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
   7641     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
   7642     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
   7643     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
   7644     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
   7645     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
   7646     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7648     _flag_k = FK_CMP;
   7649     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
   7650 L_3801CF77:
   7651     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
   7652 L_3801CF7A:
   7653     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
   7654     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
   7655     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
   7656     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
   7657     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7658     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7659     _flag_k = FK_CMP;
   7660     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
   7661 L_3801CF88:
   7662     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
   7663     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
   7664 L_3801CF8D:
   7665     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
   7666     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
   7667     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7669     _flag_k = FK_CMP;
   7670     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
   7671 L_3801CF95:
   7672     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
   7673     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
   7674 L_3801CF9A:
   7675     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
   7676 L_3801CF9C:
   7677     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
   7678 L_3801CF9F:
   7679     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
   7680 L_3801CFA2:
   7681     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
   7682     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
   7683     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
   7684     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
   7685     RECOMP_FLAGS_IN();
   7686     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
   7687     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
   7688     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7689     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7690     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
   7691     _flag_k = FK_ADD;
   7692     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7693     eax = eax - 1; /* 0x3801CFB7: dec eax */
   7694     _flag_k = FK_DEC;
   7695     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
   7696     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
   7697     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
   7698     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
   7699     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
   7700     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
   7701     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
   7702     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
   7703     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
   7704     RECOMP_REGS_OUT();
   7705 }
   7706 
   7707 void sub_3801CDB0(void) {
   7708     int _fpu_cmp = 0;
   7709     uint32_t _cf = 0;
   7710     int _df = 1;
   7711     uint32_t _flag_k = FK_NONE;
   7712     uint32_t _flag_a = 0, _flag_b = 0;
   7713     uint32_t _itail_tgt = 0;
   7714     RECOMP_REGS_LOCALS
   7715     RECOMP_ENTER(0x3801CDB0u);
   7716 
   7717     goto L_3801CDB0;
   7718 L_3801CD54:
   7719     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   7720     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7721     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7722     _flag_k = FK_NARROW(FK_CMP, 24);
   7723     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   7724 L_3801CD5D:
   7725     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   7726     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   7727     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   7728     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7729     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7730     _flag_k = FK_CMP;
   7731     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   7732 L_3801CD66:
   7733     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   7734     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   7735     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   7736     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7737     _cf = 0;
   7738     _flag_k = FK_NARROW(FK_TEST, 24);
   7739     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   7740 L_3801CD70:
   7741     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   7742     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   7743     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   7744     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   7745     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   7746     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   7747     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   7748     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   7749     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   7750     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7752     _flag_k = FK_CMP;
   7753     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   7754 L_3801CD8C:
   7755     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   7756 L_3801CD8F:
   7757     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   7758     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   7759     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   7760     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   7761     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7763     _flag_k = FK_CMP;
   7764     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   7765 L_3801CD9D:
   7766     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   7767     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   7768 L_3801CDA2:
   7769     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   7770     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   7771     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7773     _flag_k = FK_CMP;
   7774     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   7775 L_3801CDA9:
   7776     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   7777     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   7778 L_3801CDAD:
   7779     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   7780 L_3801CDB0:
   7781     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   7782     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   7783     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   7784     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   7785 L_3801CDBB:
   7786     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   7787     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   7788     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7789     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7790     _flag_k = FK_NARROW(FK_CMP, 24);
   7791     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   7792 L_3801CDC6:
   7793     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   7794     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   7795     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7796     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7797     _flag_k = FK_NARROW(FK_CMP, 24);
   7798     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   7799 L_3801CDD2:
   7800     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   7801 L_3801CDD4:
   7802     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   7803     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   7804     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7805     _cf = 0;
   7806     _flag_k = FK_NARROW(FK_TEST, 24);
   7807     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   7808 L_3801CDDB:
   7809     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   7810     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   7811     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   7812     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   7813     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   7814     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   7815     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   7816     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   7817     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   7818     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7820     _flag_k = FK_CMP;
   7821     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   7822 L_3801CDF7:
   7823     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   7824 L_3801CDFA:
   7825     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   7826     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   7827     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   7828     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   7829     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7831     _flag_k = FK_CMP;
   7832     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   7833 L_3801CE08:
   7834     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   7835     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   7836 L_3801CE0D:
   7837     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   7838     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   7839     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7841     _flag_k = FK_CMP;
   7842     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   7843 L_3801CE15:
   7844     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   7845     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   7846 L_3801CE1A:
   7847     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   7848 L_3801CE1C:
   7849     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   7850     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   7851     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   7852     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   7853 L_3801CE27:
   7854     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   7855     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   7856     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7858     _flag_k = FK_NARROW(FK_CMP, 24);
   7859     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   7860 L_3801CE33:
   7861     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   7862     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   7863     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7865     _flag_k = FK_NARROW(FK_CMP, 24);
   7866     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   7867 L_3801CE3E:
   7868     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   7869     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   7870     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   7871     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   7872     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7874     _flag_k = FK_CMP;
   7875     RECOMP_BACKEDGE();
   7876     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   7877 L_3801CE51:
   7878     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   7879 L_3801CE56:
   7880     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   7881     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   7882     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7883     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7884     _flag_k = FK_NARROW(FK_CMP, 24);
   7885     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   7886 L_3801CE5E:
   7887     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   7888     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   7889     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   7890     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   7891     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   7892     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   7893     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   7894     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   7895     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7897     _flag_k = FK_CMP;
   7898     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   7899 L_3801CE76:
   7900     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   7901 L_3801CE79:
   7902     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   7903     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   7904     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   7905     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   7906     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7908     _flag_k = FK_CMP;
   7909     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   7910 L_3801CE87:
   7911     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   7912     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   7913 L_3801CE8C:
   7914     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   7915     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   7916     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7918     _flag_k = FK_CMP;
   7919     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   7920 L_3801CE94:
   7921     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   7922     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   7923 L_3801CE99:
   7924     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   7925 L_3801CE9B:
   7926     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   7927     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   7928     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   7929     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   7930 L_3801CEA7:
   7931     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   7932     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   7933     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   7934     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   7935     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   7936     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   7937     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   7938     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   7939     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   7940     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   7941     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   7942     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   7943     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   7944     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7946     _flag_k = FK_CMP;
   7947     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   7948 L_3801CECE:
   7949     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   7950 L_3801CED1:
   7951     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   7952     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   7953     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   7954     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   7955     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   7956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7957     _flag_k = FK_CMP;
   7958     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   7959 L_3801CEDF:
   7960     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   7961     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   7962     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   7963 L_3801CEE9:
   7964     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   7965     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   7966     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   7967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7968     _flag_k = FK_CMP;
   7969     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   7970 L_3801CEF0:
   7971     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   7972     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   7973     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   7974 L_3801CEF9:
   7975     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   7976     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   7977     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   7978 L_3801CF03:
   7979     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   7980     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   7981     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7983     _flag_k = FK_NARROW(FK_CMP, 24);
   7984     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   7985 L_3801CF0A:
   7986     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   7987     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   7988     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   7989     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   7990     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   7991     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   7992     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   7993     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   7994     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7995     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7996     _flag_k = FK_CMP;
   7997     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   7998 L_3801CF23:
   7999     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   8000 L_3801CF26:
   8001     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   8002     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   8003     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   8004     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   8005     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8007     _flag_k = FK_CMP;
   8008     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   8009 L_3801CF34:
   8010     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   8011     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   8012 L_3801CF39:
   8013     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   8014     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
   8015     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8017     _flag_k = FK_CMP;
   8018     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
   8019 L_3801CF40:
   8020     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
   8021     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
   8022 L_3801CF44:
   8023     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
   8024 L_3801CF47:
   8025     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
   8026     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
   8027     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
   8028     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
   8029 L_3801CF51:
   8030     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
   8031     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
   8032     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
   8033     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
   8034     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
   8035     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
   8036     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
   8037     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
   8038     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
   8039     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
   8040     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
   8041     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
   8042     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
   8043     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8044     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8045     _flag_k = FK_CMP;
   8046     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
   8047 L_3801CF77:
   8048     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
   8049 L_3801CF7A:
   8050     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
   8051     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
   8052     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
   8053     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
   8054     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8056     _flag_k = FK_CMP;
   8057     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
   8058 L_3801CF88:
   8059     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
   8060     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
   8061 L_3801CF8D:
   8062     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
   8063     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
   8064     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8066     _flag_k = FK_CMP;
   8067     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
   8068 L_3801CF95:
   8069     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
   8070     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
   8071 L_3801CF9A:
   8072     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
   8073 L_3801CF9C:
   8074     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
   8075 L_3801CF9F:
   8076     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
   8077 L_3801CFA2:
   8078     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
   8079     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
   8080     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
   8081     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
   8082     RECOMP_FLAGS_IN();
   8083     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
   8084     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
   8085     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8086     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8087     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
   8088     _flag_k = FK_ADD;
   8089     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8090     eax = eax - 1; /* 0x3801CFB7: dec eax */
   8091     _flag_k = FK_DEC;
   8092     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
   8093     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
   8094     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
   8095     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
   8096     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
   8097     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
   8098     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
   8099     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
   8100     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
   8101     RECOMP_REGS_OUT();
   8102 }
   8103 
   8104 void sub_3801CDBB(void) {
   8105     int _fpu_cmp = 0;
   8106     uint32_t _cf = 0;
   8107     int _df = 1;
   8108     uint32_t _flag_k = FK_NONE;
   8109     uint32_t _flag_a = 0, _flag_b = 0;
   8110     uint32_t _itail_tgt = 0;
   8111     RECOMP_REGS_LOCALS
   8112     RECOMP_ENTER(0x3801CDBBu);
   8113 
   8114     goto L_3801CDBB;
   8115 L_3801CD54:
   8116     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   8117     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8118     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8119     _flag_k = FK_NARROW(FK_CMP, 24);
   8120     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   8121 L_3801CD5D:
   8122     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   8123     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   8124     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   8125     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8127     _flag_k = FK_CMP;
   8128     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   8129 L_3801CD66:
   8130     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   8131     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   8132     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   8133     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8134     _cf = 0;
   8135     _flag_k = FK_NARROW(FK_TEST, 24);
   8136     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   8137 L_3801CD70:
   8138     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   8139     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   8140     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   8141     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   8142     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   8143     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   8144     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   8145     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   8146     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   8147     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8149     _flag_k = FK_CMP;
   8150     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   8151 L_3801CD8C:
   8152     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   8153 L_3801CD8F:
   8154     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   8155     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   8156     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   8157     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   8158     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8160     _flag_k = FK_CMP;
   8161     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   8162 L_3801CD9D:
   8163     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   8164     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   8165 L_3801CDA2:
   8166     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   8167     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   8168     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8170     _flag_k = FK_CMP;
   8171     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   8172 L_3801CDA9:
   8173     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   8174     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   8175 L_3801CDAD:
   8176     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   8177 L_3801CDB0:
   8178     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   8179     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   8180     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   8181     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   8182 L_3801CDBB:
   8183     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   8184     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   8185     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8187     _flag_k = FK_NARROW(FK_CMP, 24);
   8188     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   8189 L_3801CDC6:
   8190     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   8191     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   8192     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8194     _flag_k = FK_NARROW(FK_CMP, 24);
   8195     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   8196 L_3801CDD2:
   8197     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   8198 L_3801CDD4:
   8199     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   8200     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   8201     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8202     _cf = 0;
   8203     _flag_k = FK_NARROW(FK_TEST, 24);
   8204     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   8205 L_3801CDDB:
   8206     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   8207     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   8208     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   8209     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   8210     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   8211     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   8212     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   8213     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   8214     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   8215     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8217     _flag_k = FK_CMP;
   8218     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   8219 L_3801CDF7:
   8220     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   8221 L_3801CDFA:
   8222     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   8223     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   8224     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   8225     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   8226     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8227     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8228     _flag_k = FK_CMP;
   8229     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   8230 L_3801CE08:
   8231     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   8232     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   8233 L_3801CE0D:
   8234     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   8235     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   8236     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8238     _flag_k = FK_CMP;
   8239     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   8240 L_3801CE15:
   8241     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   8242     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   8243 L_3801CE1A:
   8244     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   8245 L_3801CE1C:
   8246     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   8247     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   8248     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   8249     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   8250 L_3801CE27:
   8251     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   8252     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   8253     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8255     _flag_k = FK_NARROW(FK_CMP, 24);
   8256     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   8257 L_3801CE33:
   8258     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   8259     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   8260     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8261     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8262     _flag_k = FK_NARROW(FK_CMP, 24);
   8263     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   8264 L_3801CE3E:
   8265     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   8266     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   8267     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   8268     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   8269     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8270     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8271     _flag_k = FK_CMP;
   8272     RECOMP_BACKEDGE();
   8273     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   8274 L_3801CE51:
   8275     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   8276 L_3801CE56:
   8277     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   8278     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   8279     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8281     _flag_k = FK_NARROW(FK_CMP, 24);
   8282     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   8283 L_3801CE5E:
   8284     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   8285     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   8286     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   8287     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   8288     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   8289     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   8290     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   8291     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   8292     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8294     _flag_k = FK_CMP;
   8295     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   8296 L_3801CE76:
   8297     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   8298 L_3801CE79:
   8299     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   8300     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   8301     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   8302     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   8303     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8305     _flag_k = FK_CMP;
   8306     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   8307 L_3801CE87:
   8308     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   8309     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   8310 L_3801CE8C:
   8311     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   8312     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   8313     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8314     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8315     _flag_k = FK_CMP;
   8316     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   8317 L_3801CE94:
   8318     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   8319     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   8320 L_3801CE99:
   8321     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   8322 L_3801CE9B:
   8323     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   8324     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   8325     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   8326     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   8327 L_3801CEA7:
   8328     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   8329     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   8330     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   8331     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   8332     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   8333     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   8334     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   8335     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   8336     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   8337     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   8338     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   8339     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   8340     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   8341     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8343     _flag_k = FK_CMP;
   8344     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   8345 L_3801CECE:
   8346     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   8347 L_3801CED1:
   8348     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   8349     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   8350     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   8351     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   8352     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8353     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8354     _flag_k = FK_CMP;
   8355     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   8356 L_3801CEDF:
   8357     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   8358     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   8359     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   8360 L_3801CEE9:
   8361     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   8362     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   8363     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8365     _flag_k = FK_CMP;
   8366     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   8367 L_3801CEF0:
   8368     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   8369     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   8370     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   8371 L_3801CEF9:
   8372     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   8373     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   8374     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   8375 L_3801CF03:
   8376     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   8377     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   8378     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8380     _flag_k = FK_NARROW(FK_CMP, 24);
   8381     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   8382 L_3801CF0A:
   8383     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   8384     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   8385     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   8386     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   8387     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   8388     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   8389     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   8390     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   8391     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8393     _flag_k = FK_CMP;
   8394     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   8395 L_3801CF23:
   8396     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   8397 L_3801CF26:
   8398     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   8399     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   8400     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   8401     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   8402     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8404     _flag_k = FK_CMP;
   8405     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   8406 L_3801CF34:
   8407     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   8408     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   8409 L_3801CF39:
   8410     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   8411     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
   8412     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8414     _flag_k = FK_CMP;
   8415     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
   8416 L_3801CF40:
   8417     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
   8418     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
   8419 L_3801CF44:
   8420     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
   8421 L_3801CF47:
   8422     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
   8423     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
   8424     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
   8425     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
   8426 L_3801CF51:
   8427     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
   8428     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
   8429     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
   8430     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
   8431     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
   8432     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
   8433     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
   8434     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
   8435     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
   8436     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
   8437     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
   8438     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
   8439     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
   8440     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8441     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8442     _flag_k = FK_CMP;
   8443     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
   8444 L_3801CF77:
   8445     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
   8446 L_3801CF7A:
   8447     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
   8448     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
   8449     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
   8450     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
   8451     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8452     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8453     _flag_k = FK_CMP;
   8454     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
   8455 L_3801CF88:
   8456     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
   8457     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
   8458 L_3801CF8D:
   8459     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
   8460     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
   8461     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8463     _flag_k = FK_CMP;
   8464     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
   8465 L_3801CF95:
   8466     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
   8467     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
   8468 L_3801CF9A:
   8469     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
   8470 L_3801CF9C:
   8471     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
   8472 L_3801CF9F:
   8473     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
   8474 L_3801CFA2:
   8475     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
   8476     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
   8477     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
   8478     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
   8479     RECOMP_FLAGS_IN();
   8480     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
   8481     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
   8482     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8483     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8484     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
   8485     _flag_k = FK_ADD;
   8486     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8487     eax = eax - 1; /* 0x3801CFB7: dec eax */
   8488     _flag_k = FK_DEC;
   8489     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
   8490     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
   8491     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
   8492     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
   8493     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
   8494     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
   8495     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
   8496     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
   8497     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
   8498     RECOMP_REGS_OUT();
   8499 }
   8500 
   8501 void sub_3801CDD4(void) {
   8502     int _fpu_cmp = 0;
   8503     uint32_t _cf = 0;
   8504     int _df = 1;
   8505     uint32_t _flag_k = FK_NONE;
   8506     uint32_t _flag_a = 0, _flag_b = 0;
   8507     uint32_t _itail_tgt = 0;
   8508     RECOMP_REGS_LOCALS
   8509     RECOMP_ENTER(0x3801CDD4u);
   8510 
   8511     goto L_3801CDD4;
   8512 L_3801CD54:
   8513     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   8514     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8515     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8516     _flag_k = FK_NARROW(FK_CMP, 24);
   8517     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   8518 L_3801CD5D:
   8519     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   8520     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   8521     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   8522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8524     _flag_k = FK_CMP;
   8525     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   8526 L_3801CD66:
   8527     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   8528     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   8529     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   8530     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8531     _cf = 0;
   8532     _flag_k = FK_NARROW(FK_TEST, 24);
   8533     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   8534 L_3801CD70:
   8535     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   8536     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   8537     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   8538     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   8539     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   8540     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   8541     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   8542     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   8543     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   8544     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8545     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8546     _flag_k = FK_CMP;
   8547     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   8548 L_3801CD8C:
   8549     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   8550 L_3801CD8F:
   8551     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   8552     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   8553     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   8554     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   8555     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8557     _flag_k = FK_CMP;
   8558     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   8559 L_3801CD9D:
   8560     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   8561     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   8562 L_3801CDA2:
   8563     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   8564     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   8565     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8566     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8567     _flag_k = FK_CMP;
   8568     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   8569 L_3801CDA9:
   8570     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   8571     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   8572 L_3801CDAD:
   8573     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   8574 L_3801CDB0:
   8575     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   8576     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   8577     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   8578     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   8579 L_3801CDBB:
   8580     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   8581     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   8582     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8584     _flag_k = FK_NARROW(FK_CMP, 24);
   8585     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   8586 L_3801CDC6:
   8587     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   8588     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   8589     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8590     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8591     _flag_k = FK_NARROW(FK_CMP, 24);
   8592     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   8593 L_3801CDD2:
   8594     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   8595 L_3801CDD4:
   8596     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   8597     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   8598     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8599     _cf = 0;
   8600     _flag_k = FK_NARROW(FK_TEST, 24);
   8601     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   8602 L_3801CDDB:
   8603     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   8604     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   8605     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   8606     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   8607     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   8608     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   8609     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   8610     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   8611     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   8612     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8614     _flag_k = FK_CMP;
   8615     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   8616 L_3801CDF7:
   8617     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   8618 L_3801CDFA:
   8619     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   8620     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   8621     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   8622     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   8623     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8625     _flag_k = FK_CMP;
   8626     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   8627 L_3801CE08:
   8628     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   8629     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   8630 L_3801CE0D:
   8631     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   8632     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   8633     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8635     _flag_k = FK_CMP;
   8636     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   8637 L_3801CE15:
   8638     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   8639     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   8640 L_3801CE1A:
   8641     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   8642 L_3801CE1C:
   8643     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   8644     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   8645     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   8646     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   8647 L_3801CE27:
   8648     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   8649     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   8650     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8651     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8652     _flag_k = FK_NARROW(FK_CMP, 24);
   8653     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   8654 L_3801CE33:
   8655     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   8656     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   8657     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8658     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8659     _flag_k = FK_NARROW(FK_CMP, 24);
   8660     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   8661 L_3801CE3E:
   8662     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   8663     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   8664     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   8665     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   8666     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8668     _flag_k = FK_CMP;
   8669     RECOMP_BACKEDGE();
   8670     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   8671 L_3801CE51:
   8672     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   8673 L_3801CE56:
   8674     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   8675     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   8676     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8678     _flag_k = FK_NARROW(FK_CMP, 24);
   8679     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   8680 L_3801CE5E:
   8681     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   8682     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   8683     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   8684     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   8685     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   8686     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   8687     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   8688     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   8689     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8691     _flag_k = FK_CMP;
   8692     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   8693 L_3801CE76:
   8694     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   8695 L_3801CE79:
   8696     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   8697     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   8698     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   8699     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   8700     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8702     _flag_k = FK_CMP;
   8703     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   8704 L_3801CE87:
   8705     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   8706     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   8707 L_3801CE8C:
   8708     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   8709     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   8710     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8712     _flag_k = FK_CMP;
   8713     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   8714 L_3801CE94:
   8715     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   8716     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   8717 L_3801CE99:
   8718     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   8719 L_3801CE9B:
   8720     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   8721     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   8722     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   8723     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   8724 L_3801CEA7:
   8725     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   8726     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   8727     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   8728     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   8729     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   8730     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   8731     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   8732     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   8733     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   8734     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   8735     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   8736     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   8737     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   8738     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8739     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8740     _flag_k = FK_CMP;
   8741     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   8742 L_3801CECE:
   8743     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   8744 L_3801CED1:
   8745     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   8746     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   8747     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   8748     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   8749     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8750     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8751     _flag_k = FK_CMP;
   8752     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   8753 L_3801CEDF:
   8754     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   8755     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   8756     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   8757 L_3801CEE9:
   8758     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   8759     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   8760     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8762     _flag_k = FK_CMP;
   8763     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   8764 L_3801CEF0:
   8765     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   8766     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   8767     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   8768 L_3801CEF9:
   8769     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   8770     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   8771     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   8772 L_3801CF03:
   8773     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   8774     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   8775     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8776     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8777     _flag_k = FK_NARROW(FK_CMP, 24);
   8778     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   8779 L_3801CF0A:
   8780     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   8781     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   8782     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   8783     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   8784     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   8785     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   8786     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   8787     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   8788     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8789     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8790     _flag_k = FK_CMP;
   8791     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   8792 L_3801CF23:
   8793     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   8794 L_3801CF26:
   8795     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   8796     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   8797     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   8798     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   8799     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8801     _flag_k = FK_CMP;
   8802     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   8803 L_3801CF34:
   8804     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   8805     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   8806 L_3801CF39:
   8807     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   8808     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
   8809     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8811     _flag_k = FK_CMP;
   8812     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
   8813 L_3801CF40:
   8814     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
   8815     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
   8816 L_3801CF44:
   8817     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
   8818 L_3801CF47:
   8819     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
   8820     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
   8821     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
   8822     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
   8823 L_3801CF51:
   8824     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
   8825     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
   8826     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
   8827     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
   8828     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
   8829     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
   8830     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
   8831     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
   8832     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
   8833     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
   8834     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
   8835     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
   8836     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
   8837     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8838     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8839     _flag_k = FK_CMP;
   8840     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
   8841 L_3801CF77:
   8842     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
   8843 L_3801CF7A:
   8844     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
   8845     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
   8846     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
   8847     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
   8848     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8850     _flag_k = FK_CMP;
   8851     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
   8852 L_3801CF88:
   8853     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
   8854     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
   8855 L_3801CF8D:
   8856     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
   8857     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
   8858     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8860     _flag_k = FK_CMP;
   8861     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
   8862 L_3801CF95:
   8863     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
   8864     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
   8865 L_3801CF9A:
   8866     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
   8867 L_3801CF9C:
   8868     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
   8869 L_3801CF9F:
   8870     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
   8871 L_3801CFA2:
   8872     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
   8873     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
   8874     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
   8875     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
   8876     RECOMP_FLAGS_IN();
   8877     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
   8878     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
   8879     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8880     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8881     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
   8882     _flag_k = FK_ADD;
   8883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8884     eax = eax - 1; /* 0x3801CFB7: dec eax */
   8885     _flag_k = FK_DEC;
   8886     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
   8887     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
   8888     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
   8889     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
   8890     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
   8891     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
   8892     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
   8893     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
   8894     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
   8895     RECOMP_REGS_OUT();
   8896 }
   8897 
   8898 void sub_3801CE1C(void) {
   8899     int _fpu_cmp = 0;
   8900     uint32_t _cf = 0;
   8901     int _df = 1;
   8902     uint32_t _flag_k = FK_NONE;
   8903     uint32_t _flag_a = 0, _flag_b = 0;
   8904     uint32_t _itail_tgt = 0;
   8905     RECOMP_REGS_LOCALS
   8906     RECOMP_ENTER(0x3801CE1Cu);
   8907 
   8908     goto L_3801CE1C;
   8909 L_3801CD54:
   8910     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   8911     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8913     _flag_k = FK_NARROW(FK_CMP, 24);
   8914     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   8915 L_3801CD5D:
   8916     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   8917     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   8918     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   8919     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8920     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8921     _flag_k = FK_CMP;
   8922     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   8923 L_3801CD66:
   8924     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   8925     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   8926     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   8927     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8928     _cf = 0;
   8929     _flag_k = FK_NARROW(FK_TEST, 24);
   8930     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   8931 L_3801CD70:
   8932     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   8933     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   8934     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   8935     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   8936     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   8937     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   8938     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   8939     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   8940     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   8941     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8943     _flag_k = FK_CMP;
   8944     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   8945 L_3801CD8C:
   8946     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   8947 L_3801CD8F:
   8948     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   8949     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   8950     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   8951     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   8952     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   8953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8954     _flag_k = FK_CMP;
   8955     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   8956 L_3801CD9D:
   8957     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   8958     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   8959 L_3801CDA2:
   8960     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   8961     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   8962     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   8963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8964     _flag_k = FK_CMP;
   8965     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   8966 L_3801CDA9:
   8967     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   8968     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   8969 L_3801CDAD:
   8970     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   8971 L_3801CDB0:
   8972     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   8973     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   8974     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   8975     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   8976 L_3801CDBB:
   8977     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   8978     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   8979     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8980     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8981     _flag_k = FK_NARROW(FK_CMP, 24);
   8982     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   8983 L_3801CDC6:
   8984     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   8985     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   8986     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8987     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8988     _flag_k = FK_NARROW(FK_CMP, 24);
   8989     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   8990 L_3801CDD2:
   8991     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   8992 L_3801CDD4:
   8993     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   8994     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   8995     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8996     _cf = 0;
   8997     _flag_k = FK_NARROW(FK_TEST, 24);
   8998     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   8999 L_3801CDDB:
   9000     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   9001     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   9002     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   9003     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   9004     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   9005     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   9006     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   9007     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   9008     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   9009     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9010     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9011     _flag_k = FK_CMP;
   9012     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   9013 L_3801CDF7:
   9014     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   9015 L_3801CDFA:
   9016     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   9017     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   9018     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   9019     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   9020     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9022     _flag_k = FK_CMP;
   9023     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   9024 L_3801CE08:
   9025     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   9026     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   9027 L_3801CE0D:
   9028     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   9029     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   9030     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9032     _flag_k = FK_CMP;
   9033     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   9034 L_3801CE15:
   9035     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   9036     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   9037 L_3801CE1A:
   9038     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   9039 L_3801CE1C:
   9040     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   9041     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   9042     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   9043     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   9044 L_3801CE27:
   9045     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   9046     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   9047     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9049     _flag_k = FK_NARROW(FK_CMP, 24);
   9050     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   9051 L_3801CE33:
   9052     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   9053     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   9054     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9056     _flag_k = FK_NARROW(FK_CMP, 24);
   9057     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   9058 L_3801CE3E:
   9059     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   9060     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   9061     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   9062     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   9063     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9065     _flag_k = FK_CMP;
   9066     RECOMP_BACKEDGE();
   9067     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   9068 L_3801CE51:
   9069     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   9070 L_3801CE56:
   9071     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   9072     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   9073     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9075     _flag_k = FK_NARROW(FK_CMP, 24);
   9076     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   9077 L_3801CE5E:
   9078     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   9079     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   9080     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   9081     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   9082     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   9083     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   9084     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   9085     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   9086     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9088     _flag_k = FK_CMP;
   9089     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   9090 L_3801CE76:
   9091     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   9092 L_3801CE79:
   9093     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   9094     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   9095     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   9096     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   9097     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9098     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9099     _flag_k = FK_CMP;
   9100     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   9101 L_3801CE87:
   9102     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   9103     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   9104 L_3801CE8C:
   9105     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   9106     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   9107     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9108     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9109     _flag_k = FK_CMP;
   9110     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   9111 L_3801CE94:
   9112     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   9113     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   9114 L_3801CE99:
   9115     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   9116 L_3801CE9B:
   9117     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   9118     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   9119     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   9120     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   9121 L_3801CEA7:
   9122     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   9123     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   9124     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   9125     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   9126     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   9127     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   9128     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   9129     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   9130     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   9131     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   9132     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   9133     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   9134     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   9135     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9137     _flag_k = FK_CMP;
   9138     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   9139 L_3801CECE:
   9140     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   9141 L_3801CED1:
   9142     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   9143     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   9144     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   9145     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   9146     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9148     _flag_k = FK_CMP;
   9149     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   9150 L_3801CEDF:
   9151     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   9152     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   9153     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   9154 L_3801CEE9:
   9155     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   9156     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   9157     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9159     _flag_k = FK_CMP;
   9160     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   9161 L_3801CEF0:
   9162     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   9163     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   9164     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   9165 L_3801CEF9:
   9166     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   9167     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   9168     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   9169 L_3801CF03:
   9170     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   9171     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   9172     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9174     _flag_k = FK_NARROW(FK_CMP, 24);
   9175     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   9176 L_3801CF0A:
   9177     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   9178     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   9179     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   9180     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   9181     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   9182     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   9183     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   9184     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   9185     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9187     _flag_k = FK_CMP;
   9188     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   9189 L_3801CF23:
   9190     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   9191 L_3801CF26:
   9192     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   9193     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   9194     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   9195     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   9196     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9197     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9198     _flag_k = FK_CMP;
   9199     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   9200 L_3801CF34:
   9201     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   9202     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   9203 L_3801CF39:
   9204     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   9205     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
   9206     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9208     _flag_k = FK_CMP;
   9209     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
   9210 L_3801CF40:
   9211     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
   9212     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
   9213 L_3801CF44:
   9214     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
   9215 L_3801CF47:
   9216     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
   9217     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
   9218     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
   9219     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
   9220 L_3801CF51:
   9221     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
   9222     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
   9223     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
   9224     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
   9225     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
   9226     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
   9227     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
   9228     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
   9229     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
   9230     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
   9231     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
   9232     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
   9233     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
   9234     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9236     _flag_k = FK_CMP;
   9237     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
   9238 L_3801CF77:
   9239     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
   9240 L_3801CF7A:
   9241     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
   9242     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
   9243     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
   9244     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
   9245     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9247     _flag_k = FK_CMP;
   9248     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
   9249 L_3801CF88:
   9250     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
   9251     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
   9252 L_3801CF8D:
   9253     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
   9254     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
   9255     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9256     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9257     _flag_k = FK_CMP;
   9258     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
   9259 L_3801CF95:
   9260     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
   9261     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
   9262 L_3801CF9A:
   9263     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
   9264 L_3801CF9C:
   9265     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
   9266 L_3801CF9F:
   9267     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
   9268 L_3801CFA2:
   9269     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
   9270     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
   9271     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
   9272     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
   9273     RECOMP_FLAGS_IN();
   9274     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
   9275     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
   9276     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9277     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9278     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
   9279     _flag_k = FK_ADD;
   9280     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9281     eax = eax - 1; /* 0x3801CFB7: dec eax */
   9282     _flag_k = FK_DEC;
   9283     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
   9284     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
   9285     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
   9286     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
   9287     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
   9288     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
   9289     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
   9290     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
   9291     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
   9292     RECOMP_REGS_OUT();
   9293 }
   9294 
   9295 void sub_3801CE27(void) {
   9296     int _fpu_cmp = 0;
   9297     uint32_t _cf = 0;
   9298     int _df = 1;
   9299     uint32_t _flag_k = FK_NONE;
   9300     uint32_t _flag_a = 0, _flag_b = 0;
   9301     uint32_t _itail_tgt = 0;
   9302     RECOMP_REGS_LOCALS
   9303     RECOMP_ENTER(0x3801CE27u);
   9304 
   9305     goto L_3801CE27;
   9306 L_3801CD54:
   9307     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   9308     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9310     _flag_k = FK_NARROW(FK_CMP, 24);
   9311     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   9312 L_3801CD5D:
   9313     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   9314     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   9315     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   9316     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9318     _flag_k = FK_CMP;
   9319     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   9320 L_3801CD66:
   9321     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   9322     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   9323     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   9324     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9325     _cf = 0;
   9326     _flag_k = FK_NARROW(FK_TEST, 24);
   9327     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   9328 L_3801CD70:
   9329     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   9330     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   9331     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   9332     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   9333     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   9334     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   9335     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   9336     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   9337     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   9338     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9340     _flag_k = FK_CMP;
   9341     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   9342 L_3801CD8C:
   9343     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   9344 L_3801CD8F:
   9345     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   9346     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   9347     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   9348     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   9349     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9351     _flag_k = FK_CMP;
   9352     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   9353 L_3801CD9D:
   9354     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   9355     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   9356 L_3801CDA2:
   9357     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   9358     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   9359     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9361     _flag_k = FK_CMP;
   9362     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   9363 L_3801CDA9:
   9364     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   9365     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   9366 L_3801CDAD:
   9367     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   9368 L_3801CDB0:
   9369     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   9370     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   9371     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   9372     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   9373 L_3801CDBB:
   9374     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   9375     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   9376     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9378     _flag_k = FK_NARROW(FK_CMP, 24);
   9379     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   9380 L_3801CDC6:
   9381     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   9382     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   9383     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9385     _flag_k = FK_NARROW(FK_CMP, 24);
   9386     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   9387 L_3801CDD2:
   9388     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   9389 L_3801CDD4:
   9390     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   9391     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   9392     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9393     _cf = 0;
   9394     _flag_k = FK_NARROW(FK_TEST, 24);
   9395     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   9396 L_3801CDDB:
   9397     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   9398     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   9399     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   9400     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   9401     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   9402     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   9403     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   9404     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   9405     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   9406     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9407     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9408     _flag_k = FK_CMP;
   9409     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   9410 L_3801CDF7:
   9411     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   9412 L_3801CDFA:
   9413     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   9414     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   9415     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   9416     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   9417     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9419     _flag_k = FK_CMP;
   9420     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   9421 L_3801CE08:
   9422     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   9423     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   9424 L_3801CE0D:
   9425     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   9426     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   9427     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9428     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9429     _flag_k = FK_CMP;
   9430     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   9431 L_3801CE15:
   9432     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   9433     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   9434 L_3801CE1A:
   9435     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   9436 L_3801CE1C:
   9437     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   9438     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   9439     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   9440     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   9441 L_3801CE27:
   9442     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   9443     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   9444     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9446     _flag_k = FK_NARROW(FK_CMP, 24);
   9447     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   9448 L_3801CE33:
   9449     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   9450     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   9451     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9452     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9453     _flag_k = FK_NARROW(FK_CMP, 24);
   9454     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   9455 L_3801CE3E:
   9456     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   9457     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   9458     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   9459     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   9460     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9462     _flag_k = FK_CMP;
   9463     RECOMP_BACKEDGE();
   9464     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   9465 L_3801CE51:
   9466     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   9467 L_3801CE56:
   9468     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   9469     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   9470     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9471     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9472     _flag_k = FK_NARROW(FK_CMP, 24);
   9473     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   9474 L_3801CE5E:
   9475     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   9476     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   9477     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   9478     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   9479     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   9480     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   9481     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   9482     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   9483     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9485     _flag_k = FK_CMP;
   9486     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   9487 L_3801CE76:
   9488     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   9489 L_3801CE79:
   9490     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   9491     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   9492     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   9493     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   9494     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9496     _flag_k = FK_CMP;
   9497     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   9498 L_3801CE87:
   9499     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   9500     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   9501 L_3801CE8C:
   9502     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   9503     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   9504     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9506     _flag_k = FK_CMP;
   9507     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   9508 L_3801CE94:
   9509     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   9510     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   9511 L_3801CE99:
   9512     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   9513 L_3801CE9B:
   9514     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   9515     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   9516     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   9517     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   9518 L_3801CEA7:
   9519     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   9520     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   9521     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   9522     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   9523     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   9524     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   9525     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   9526     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   9527     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   9528     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   9529     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   9530     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   9531     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   9532     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9534     _flag_k = FK_CMP;
   9535     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   9536 L_3801CECE:
   9537     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   9538 L_3801CED1:
   9539     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   9540     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   9541     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   9542     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   9543     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9545     _flag_k = FK_CMP;
   9546     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   9547 L_3801CEDF:
   9548     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   9549     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   9550     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   9551 L_3801CEE9:
   9552     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   9553     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   9554     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9556     _flag_k = FK_CMP;
   9557     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   9558 L_3801CEF0:
   9559     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   9560     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   9561     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   9562 L_3801CEF9:
   9563     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   9564     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   9565     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   9566 L_3801CF03:
   9567     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   9568     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   9569     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9571     _flag_k = FK_NARROW(FK_CMP, 24);
   9572     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   9573 L_3801CF0A:
   9574     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   9575     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   9576     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   9577     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   9578     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   9579     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   9580     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   9581     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   9582     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9584     _flag_k = FK_CMP;
   9585     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   9586 L_3801CF23:
   9587     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   9588 L_3801CF26:
   9589     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   9590     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   9591     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   9592     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   9593     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9594     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9595     _flag_k = FK_CMP;
   9596     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   9597 L_3801CF34:
   9598     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   9599     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   9600 L_3801CF39:
   9601     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   9602     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
   9603     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9605     _flag_k = FK_CMP;
   9606     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
   9607 L_3801CF40:
   9608     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
   9609     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
   9610 L_3801CF44:
   9611     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
   9612 L_3801CF47:
   9613     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
   9614     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
   9615     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
   9616     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
   9617 L_3801CF51:
   9618     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
   9619     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
   9620     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
   9621     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
   9622     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
   9623     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
   9624     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
   9625     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
   9626     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
   9627     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
   9628     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
   9629     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
   9630     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
   9631     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9633     _flag_k = FK_CMP;
   9634     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
   9635 L_3801CF77:
   9636     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
   9637 L_3801CF7A:
   9638     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
   9639     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
   9640     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
   9641     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
   9642     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9644     _flag_k = FK_CMP;
   9645     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
   9646 L_3801CF88:
   9647     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
   9648     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
   9649 L_3801CF8D:
   9650     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
   9651     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
   9652     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9653     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9654     _flag_k = FK_CMP;
   9655     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
   9656 L_3801CF95:
   9657     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
   9658     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
   9659 L_3801CF9A:
   9660     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
   9661 L_3801CF9C:
   9662     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
   9663 L_3801CF9F:
   9664     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
   9665 L_3801CFA2:
   9666     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
   9667     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
   9668     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
   9669     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
   9670     RECOMP_FLAGS_IN();
   9671     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
   9672     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
   9673     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9674     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9675     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
   9676     _flag_k = FK_ADD;
   9677     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9678     eax = eax - 1; /* 0x3801CFB7: dec eax */
   9679     _flag_k = FK_DEC;
   9680     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
   9681     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
   9682     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
   9683     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
   9684     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
   9685     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
   9686     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
   9687     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
   9688     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
   9689     RECOMP_REGS_OUT();
   9690 }
   9691 
   9692 void sub_3801CE3E(void) {
   9693     int _fpu_cmp = 0;
   9694     uint32_t _cf = 0;
   9695     int _df = 1;
   9696     uint32_t _flag_k = FK_NONE;
   9697     uint32_t _flag_a = 0, _flag_b = 0;
   9698     uint32_t _itail_tgt = 0;
   9699     RECOMP_REGS_LOCALS
   9700     RECOMP_ENTER(0x3801CE3Eu);
   9701 
   9702     goto L_3801CE3E;
   9703 L_3801CD54:
   9704     /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3801CD54: cmp byte ptr [eax + 0x20], bl */
   9705     _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9707     _flag_k = FK_NARROW(FK_CMP, 24);
   9708     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CFA2; /* 0x3801CD57: jne 0x3801cfa2 */
   9709 L_3801CD5D:
   9710     edx = MEM32(eax + 0x4); /* 0x3801CD5D: mov edx, dword ptr [eax + 4] */
   9711     ecx = MEM32(edx); /* 0x3801CD60: mov ecx, dword ptr [edx] */
   9712     /* cmp eax, ecx */ /* 0x3801CD62: cmp eax, ecx */
   9713     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9714     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9715     _flag_k = FK_CMP;
   9716     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDD4; /* 0x3801CD64: jne 0x3801cdd4 */
   9717 L_3801CD66:
   9718     ecx = MEM32(edx + 0x8); /* 0x3801CD66: mov ecx, dword ptr [edx + 8] */
   9719     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CD69: mov dl, byte ptr [ecx + 0x20] */
   9720     /* test LO8(edx), LO8(edx) */ /* 0x3801CD6C: test dl, dl */
   9721     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9722     _cf = 0;
   9723     _flag_k = FK_NARROW(FK_TEST, 24);
   9724     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CDBB; /* 0x3801CD6E: jne 0x3801cdbb */
   9725 L_3801CD70:
   9726     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CD70: mov byte ptr [ecx + 0x20], bl */
   9727     ecx = MEM32(eax + 0x4); /* 0x3801CD73: mov ecx, dword ptr [eax + 4] */
   9728     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CD76: mov byte ptr [ecx + 0x20], 0 */
   9729     ecx = MEM32(eax + 0x4); /* 0x3801CD7A: mov ecx, dword ptr [eax + 4] */
   9730     edx = MEM32(ecx + 0x8); /* 0x3801CD7D: mov edx, dword ptr [ecx + 8] */
   9731     esi = MEM32(edx); /* 0x3801CD80: mov esi, dword ptr [edx] */
   9732     MEM32(ecx + 0x8) = esi; /* 0x3801CD82: mov dword ptr [ecx + 8], esi */
   9733     esi = MEM32(edx); /* 0x3801CD85: mov esi, dword ptr [edx] */
   9734     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CD87: cmp esi, dword ptr [edi + 8] */
   9735     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9737     _flag_k = FK_CMP;
   9738     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CD8F; /* 0x3801CD8A: je 0x3801cd8f */
   9739 L_3801CD8C:
   9740     MEM32(esi + 0x4) = ecx; /* 0x3801CD8C: mov dword ptr [esi + 4], ecx */
   9741 L_3801CD8F:
   9742     esi = MEM32(ecx + 0x4); /* 0x3801CD8F: mov esi, dword ptr [ecx + 4] */
   9743     MEM32(edx + 0x4) = esi; /* 0x3801CD92: mov dword ptr [edx + 4], esi */
   9744     esi = MEM32(edi + 0x4); /* 0x3801CD95: mov esi, dword ptr [edi + 4] */
   9745     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CD98: cmp ecx, dword ptr [esi + 4] */
   9746     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9748     _flag_k = FK_CMP;
   9749     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDA2; /* 0x3801CD9B: jne 0x3801cda2 */
   9750 L_3801CD9D:
   9751     MEM32(esi + 0x4) = edx; /* 0x3801CD9D: mov dword ptr [esi + 4], edx */
   9752     goto L_3801CDB0; /* 0x3801CDA0: jmp 0x3801cdb0 */
   9753 L_3801CDA2:
   9754     esi = MEM32(ecx + 0x4); /* 0x3801CDA2: mov esi, dword ptr [ecx + 4] */
   9755     /* cmp ecx, MEM32(esi) */ /* 0x3801CDA5: cmp ecx, dword ptr [esi] */
   9756     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9758     _flag_k = FK_CMP;
   9759     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CDAD; /* 0x3801CDA7: jne 0x3801cdad */
   9760 L_3801CDA9:
   9761     MEM32(esi) = edx; /* 0x3801CDA9: mov dword ptr [esi], edx */
   9762     goto L_3801CDB0; /* 0x3801CDAB: jmp 0x3801cdb0 */
   9763 L_3801CDAD:
   9764     MEM32(esi + 0x8) = edx; /* 0x3801CDAD: mov dword ptr [esi + 8], edx */
   9765 L_3801CDB0:
   9766     MEM32(edx) = ecx; /* 0x3801CDB0: mov dword ptr [edx], ecx */
   9767     MEM32(ecx + 0x4) = edx; /* 0x3801CDB2: mov dword ptr [ecx + 4], edx */
   9768     edx = MEM32(eax + 0x4); /* 0x3801CDB5: mov edx, dword ptr [eax + 4] */
   9769     ecx = MEM32(edx + 0x8); /* 0x3801CDB8: mov ecx, dword ptr [edx + 8] */
   9770 L_3801CDBB:
   9771     edx = MEM32(ecx); /* 0x3801CDBB: mov edx, dword ptr [ecx] */
   9772     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDBD: cmp byte ptr [edx + 0x20], bl */
   9773     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9774     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9775     _flag_k = FK_NARROW(FK_CMP, 24);
   9776     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDC0: jne 0x3801ce56 */
   9777 L_3801CDC6:
   9778     edx = MEM32(ecx + 0x8); /* 0x3801CDC6: mov edx, dword ptr [ecx + 8] */
   9779     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CDC9: cmp byte ptr [edx + 0x20], bl */
   9780     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9782     _flag_k = FK_NARROW(FK_CMP, 24);
   9783     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE56; /* 0x3801CDCC: jne 0x3801ce56 */
   9784 L_3801CDD2:
   9785     goto L_3801CE3E; /* 0x3801CDD2: jmp 0x3801ce3e */
   9786 L_3801CDD4:
   9787     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3801CDD4: mov dl, byte ptr [ecx + 0x20] */
   9788     /* test LO8(edx), LO8(edx) */ /* 0x3801CDD7: test dl, dl */
   9789     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9790     _cf = 0;
   9791     _flag_k = FK_NARROW(FK_TEST, 24);
   9792     if (TEST_NZ(_flag_a, _flag_b)) goto L_3801CE27; /* 0x3801CDD9: jne 0x3801ce27 */
   9793 L_3801CDDB:
   9794     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CDDB: mov byte ptr [ecx + 0x20], bl */
   9795     ecx = MEM32(eax + 0x4); /* 0x3801CDDE: mov ecx, dword ptr [eax + 4] */
   9796     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CDE1: mov byte ptr [ecx + 0x20], 0 */
   9797     ecx = MEM32(eax + 0x4); /* 0x3801CDE5: mov ecx, dword ptr [eax + 4] */
   9798     edx = MEM32(ecx); /* 0x3801CDE8: mov edx, dword ptr [ecx] */
   9799     esi = MEM32(edx + 0x8); /* 0x3801CDEA: mov esi, dword ptr [edx + 8] */
   9800     MEM32(ecx) = esi; /* 0x3801CDED: mov dword ptr [ecx], esi */
   9801     esi = MEM32(edx + 0x8); /* 0x3801CDEF: mov esi, dword ptr [edx + 8] */
   9802     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CDF2: cmp esi, dword ptr [edi + 8] */
   9803     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9805     _flag_k = FK_CMP;
   9806     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CDFA; /* 0x3801CDF5: je 0x3801cdfa */
   9807 L_3801CDF7:
   9808     MEM32(esi + 0x4) = ecx; /* 0x3801CDF7: mov dword ptr [esi + 4], ecx */
   9809 L_3801CDFA:
   9810     esi = MEM32(ecx + 0x4); /* 0x3801CDFA: mov esi, dword ptr [ecx + 4] */
   9811     MEM32(edx + 0x4) = esi; /* 0x3801CDFD: mov dword ptr [edx + 4], esi */
   9812     esi = MEM32(edi + 0x4); /* 0x3801CE00: mov esi, dword ptr [edi + 4] */
   9813     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE03: cmp ecx, dword ptr [esi + 4] */
   9814     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9816     _flag_k = FK_CMP;
   9817     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE0D; /* 0x3801CE06: jne 0x3801ce0d */
   9818 L_3801CE08:
   9819     MEM32(esi + 0x4) = edx; /* 0x3801CE08: mov dword ptr [esi + 4], edx */
   9820     goto L_3801CE1C; /* 0x3801CE0B: jmp 0x3801ce1c */
   9821 L_3801CE0D:
   9822     esi = MEM32(ecx + 0x4); /* 0x3801CE0D: mov esi, dword ptr [ecx + 4] */
   9823     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE10: cmp ecx, dword ptr [esi + 8] */
   9824     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9825     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9826     _flag_k = FK_CMP;
   9827     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE1A; /* 0x3801CE13: jne 0x3801ce1a */
   9828 L_3801CE15:
   9829     MEM32(esi + 0x8) = edx; /* 0x3801CE15: mov dword ptr [esi + 8], edx */
   9830     goto L_3801CE1C; /* 0x3801CE18: jmp 0x3801ce1c */
   9831 L_3801CE1A:
   9832     MEM32(esi) = edx; /* 0x3801CE1A: mov dword ptr [esi], edx */
   9833 L_3801CE1C:
   9834     MEM32(edx + 0x8) = ecx; /* 0x3801CE1C: mov dword ptr [edx + 8], ecx */
   9835     MEM32(ecx + 0x4) = edx; /* 0x3801CE1F: mov dword ptr [ecx + 4], edx */
   9836     edx = MEM32(eax + 0x4); /* 0x3801CE22: mov edx, dword ptr [eax + 4] */
   9837     ecx = MEM32(edx); /* 0x3801CE25: mov ecx, dword ptr [edx] */
   9838 L_3801CE27:
   9839     edx = MEM32(ecx + 0x8); /* 0x3801CE27: mov edx, dword ptr [ecx + 8] */
   9840     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE2A: cmp byte ptr [edx + 0x20], bl */
   9841     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9843     _flag_k = FK_NARROW(FK_CMP, 24);
   9844     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE2D: jne 0x3801cf03 */
   9845 L_3801CE33:
   9846     edx = MEM32(ecx); /* 0x3801CE33: mov edx, dword ptr [ecx] */
   9847     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE35: cmp byte ptr [edx + 0x20], bl */
   9848     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9850     _flag_k = FK_NARROW(FK_CMP, 24);
   9851     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF03; /* 0x3801CE38: jne 0x3801cf03 */
   9852 L_3801CE3E:
   9853     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE3E: mov byte ptr [ecx + 0x20], 0 */
   9854     ecx = MEM32(edi + 0x4); /* 0x3801CE42: mov ecx, dword ptr [edi + 4] */
   9855     eax = MEM32(eax + 0x4); /* 0x3801CE45: mov eax, dword ptr [eax + 4] */
   9856     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3801CE48: cmp eax, dword ptr [ecx + 4] */
   9857     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9859     _flag_k = FK_CMP;
   9860     RECOMP_BACKEDGE();
   9861     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CD54; /* 0x3801CE4B: jne 0x3801cd54 */
   9862 L_3801CE51:
   9863     goto L_3801CFA2; /* 0x3801CE51: jmp 0x3801cfa2 */
   9864 L_3801CE56:
   9865     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
   9866     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
   9867     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9869     _flag_k = FK_NARROW(FK_CMP, 24);
   9870     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
   9871 L_3801CE5E:
   9872     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
   9873     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
   9874     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
   9875     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
   9876     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
   9877     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
   9878     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
   9879     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
   9880     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9882     _flag_k = FK_CMP;
   9883     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
   9884 L_3801CE76:
   9885     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
   9886 L_3801CE79:
   9887     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
   9888     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
   9889     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
   9890     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
   9891     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9892     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9893     _flag_k = FK_CMP;
   9894     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
   9895 L_3801CE87:
   9896     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
   9897     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
   9898 L_3801CE8C:
   9899     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
   9900     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
   9901     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9903     _flag_k = FK_CMP;
   9904     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
   9905 L_3801CE94:
   9906     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
   9907     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
   9908 L_3801CE99:
   9909     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
   9910 L_3801CE9B:
   9911     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
   9912     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
   9913     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
   9914     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
   9915 L_3801CEA7:
   9916     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
   9917     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
   9918     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
   9919     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
   9920     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
   9921     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
   9922     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
   9923     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
   9924     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
   9925     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
   9926     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
   9927     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
   9928     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
   9929     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9930     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9931     _flag_k = FK_CMP;
   9932     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
   9933 L_3801CECE:
   9934     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
   9935 L_3801CED1:
   9936     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
   9937     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
   9938     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
   9939     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
   9940     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9942     _flag_k = FK_CMP;
   9943     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
   9944 L_3801CEDF:
   9945     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
   9946     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
   9947     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
   9948 L_3801CEE9:
   9949     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
   9950     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
   9951     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
   9952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9953     _flag_k = FK_CMP;
   9954     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
   9955 L_3801CEF0:
   9956     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
   9957     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
   9958     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
   9959 L_3801CEF9:
   9960     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
   9961     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
   9962     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
   9963 L_3801CF03:
   9964     edx = MEM32(ecx); /* 0x3801CF03: mov edx, dword ptr [ecx] */
   9965     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CF05: cmp byte ptr [edx + 0x20], bl */
   9966     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9968     _flag_k = FK_NARROW(FK_CMP, 24);
   9969     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF51; /* 0x3801CF08: jne 0x3801cf51 */
   9970 L_3801CF0A:
   9971     edx = MEM32(ecx + 0x8); /* 0x3801CF0A: mov edx, dword ptr [ecx + 8] */
   9972     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF0D: mov byte ptr [edx + 0x20], bl */
   9973     edx = MEM32(ecx + 0x8); /* 0x3801CF10: mov edx, dword ptr [ecx + 8] */
   9974     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CF13: mov byte ptr [ecx + 0x20], 0 */
   9975     esi = MEM32(edx); /* 0x3801CF17: mov esi, dword ptr [edx] */
   9976     MEM32(ecx + 0x8) = esi; /* 0x3801CF19: mov dword ptr [ecx + 8], esi */
   9977     esi = MEM32(edx); /* 0x3801CF1C: mov esi, dword ptr [edx] */
   9978     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF1E: cmp esi, dword ptr [edi + 8] */
   9979     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9980     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9981     _flag_k = FK_CMP;
   9982     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF26; /* 0x3801CF21: je 0x3801cf26 */
   9983 L_3801CF23:
   9984     MEM32(esi + 0x4) = ecx; /* 0x3801CF23: mov dword ptr [esi + 4], ecx */
   9985 L_3801CF26:
   9986     esi = MEM32(ecx + 0x4); /* 0x3801CF26: mov esi, dword ptr [ecx + 4] */
   9987     MEM32(edx + 0x4) = esi; /* 0x3801CF29: mov dword ptr [edx + 4], esi */
   9988     esi = MEM32(edi + 0x4); /* 0x3801CF2C: mov esi, dword ptr [edi + 4] */
   9989     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF2F: cmp ecx, dword ptr [esi + 4] */
   9990     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   9991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9992     _flag_k = FK_CMP;
   9993     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF39; /* 0x3801CF32: jne 0x3801cf39 */
   9994 L_3801CF34:
   9995     MEM32(esi + 0x4) = edx; /* 0x3801CF34: mov dword ptr [esi + 4], edx */
   9996     goto L_3801CF47; /* 0x3801CF37: jmp 0x3801cf47 */
   9997 L_3801CF39:
   9998     esi = MEM32(ecx + 0x4); /* 0x3801CF39: mov esi, dword ptr [ecx + 4] */
   9999     /* cmp ecx, MEM32(esi) */ /* 0x3801CF3C: cmp ecx, dword ptr [esi] */
  10000     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10002     _flag_k = FK_CMP;
  10003     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF44; /* 0x3801CF3E: jne 0x3801cf44 */
  10004 L_3801CF40:
  10005     MEM32(esi) = edx; /* 0x3801CF40: mov dword ptr [esi], edx */
  10006     goto L_3801CF47; /* 0x3801CF42: jmp 0x3801cf47 */
  10007 L_3801CF44:
  10008     MEM32(esi + 0x8) = edx; /* 0x3801CF44: mov dword ptr [esi + 8], edx */
  10009 L_3801CF47:
  10010     MEM32(edx) = ecx; /* 0x3801CF47: mov dword ptr [edx], ecx */
  10011     MEM32(ecx + 0x4) = edx; /* 0x3801CF49: mov dword ptr [ecx + 4], edx */
  10012     ecx = MEM32(eax + 0x4); /* 0x3801CF4C: mov ecx, dword ptr [eax + 4] */
  10013     ecx = MEM32(ecx); /* 0x3801CF4F: mov ecx, dword ptr [ecx] */
  10014 L_3801CF51:
  10015     edx = MEM32(eax + 0x4); /* 0x3801CF51: mov edx, dword ptr [eax + 4] */
  10016     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CF54: mov dl, byte ptr [edx + 0x20] */
  10017     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CF57: mov byte ptr [ecx + 0x20], dl */
  10018     edx = MEM32(eax + 0x4); /* 0x3801CF5A: mov edx, dword ptr [eax + 4] */
  10019     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF5D: mov byte ptr [edx + 0x20], bl */
  10020     ecx = MEM32(ecx); /* 0x3801CF60: mov ecx, dword ptr [ecx] */
  10021     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CF62: mov byte ptr [ecx + 0x20], bl */
  10022     ecx = MEM32(eax + 0x4); /* 0x3801CF65: mov ecx, dword ptr [eax + 4] */
  10023     edx = MEM32(ecx); /* 0x3801CF68: mov edx, dword ptr [ecx] */
  10024     esi = MEM32(edx + 0x8); /* 0x3801CF6A: mov esi, dword ptr [edx + 8] */
  10025     MEM32(ecx) = esi; /* 0x3801CF6D: mov dword ptr [ecx], esi */
  10026     esi = MEM32(edx + 0x8); /* 0x3801CF6F: mov esi, dword ptr [edx + 8] */
  10027     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CF72: cmp esi, dword ptr [edi + 8] */
  10028     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10030     _flag_k = FK_CMP;
  10031     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CF7A; /* 0x3801CF75: je 0x3801cf7a */
  10032 L_3801CF77:
  10033     MEM32(esi + 0x4) = ecx; /* 0x3801CF77: mov dword ptr [esi + 4], ecx */
  10034 L_3801CF7A:
  10035     esi = MEM32(ecx + 0x4); /* 0x3801CF7A: mov esi, dword ptr [ecx + 4] */
  10036     MEM32(edx + 0x4) = esi; /* 0x3801CF7D: mov dword ptr [edx + 4], esi */
  10037     esi = MEM32(edi + 0x4); /* 0x3801CF80: mov esi, dword ptr [edi + 4] */
  10038     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CF83: cmp ecx, dword ptr [esi + 4] */
  10039     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10041     _flag_k = FK_CMP;
  10042     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF8D; /* 0x3801CF86: jne 0x3801cf8d */
  10043 L_3801CF88:
  10044     MEM32(esi + 0x4) = edx; /* 0x3801CF88: mov dword ptr [esi + 4], edx */
  10045     goto L_3801CF9C; /* 0x3801CF8B: jmp 0x3801cf9c */
  10046 L_3801CF8D:
  10047     esi = MEM32(ecx + 0x4); /* 0x3801CF8D: mov esi, dword ptr [ecx + 4] */
  10048     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CF90: cmp ecx, dword ptr [esi + 8] */
  10049     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10051     _flag_k = FK_CMP;
  10052     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CF9A; /* 0x3801CF93: jne 0x3801cf9a */
  10053 L_3801CF95:
  10054     MEM32(esi + 0x8) = edx; /* 0x3801CF95: mov dword ptr [esi + 8], edx */
  10055     goto L_3801CF9C; /* 0x3801CF98: jmp 0x3801cf9c */
  10056 L_3801CF9A:
  10057     MEM32(esi) = edx; /* 0x3801CF9A: mov dword ptr [esi], edx */
  10058 L_3801CF9C:
  10059     MEM32(edx + 0x8) = ecx; /* 0x3801CF9C: mov dword ptr [edx + 8], ecx */
  10060 L_3801CF9F:
  10061     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
  10062 L_3801CFA2:
  10063     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
  10064     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
  10065     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
  10066     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
  10067     RECOMP_FLAGS_IN();
  10068     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
  10069     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
  10070     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10071     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10072     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
  10073     _flag_k = FK_ADD;
  10074     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10075     eax = eax - 1; /* 0x3801CFB7: dec eax */
  10076     _flag_k = FK_DEC;
  10077     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
  10078     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
  10079     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
  10080     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
  10081     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
  10082     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
  10083     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
  10084     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
  10085     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
  10086     RECOMP_REGS_OUT();
  10087 }
  10088 
  10089 void sub_3801CE56(void) {
  10090     int _fpu_cmp = 0;
  10091     uint32_t _cf = 0;
  10092     int _df = 1;
  10093     uint32_t _flag_k = FK_NONE;
  10094     uint32_t _flag_a = 0, _flag_b = 0;
  10095     uint32_t _itail_tgt = 0;
  10096     RECOMP_REGS_LOCALS
  10097     RECOMP_ENTER(0x3801CE56u);
  10098 
  10099 L_3801CE56:
  10100     edx = MEM32(ecx + 0x8); /* 0x3801CE56: mov edx, dword ptr [ecx + 8] */
  10101     /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3801CE59: cmp byte ptr [edx + 0x20], bl */
  10102     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10104     _flag_k = FK_NARROW(FK_CMP, 24);
  10105     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEA7; /* 0x3801CE5C: jne 0x3801cea7 */
  10106 L_3801CE5E:
  10107     edx = MEM32(ecx); /* 0x3801CE5E: mov edx, dword ptr [ecx] */
  10108     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CE60: mov byte ptr [edx + 0x20], bl */
  10109     edx = MEM32(ecx); /* 0x3801CE63: mov edx, dword ptr [ecx] */
  10110     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3801CE65: mov byte ptr [ecx + 0x20], 0 */
  10111     esi = MEM32(edx + 0x8); /* 0x3801CE69: mov esi, dword ptr [edx + 8] */
  10112     MEM32(ecx) = esi; /* 0x3801CE6C: mov dword ptr [ecx], esi */
  10113     esi = MEM32(edx + 0x8); /* 0x3801CE6E: mov esi, dword ptr [edx + 8] */
  10114     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CE71: cmp esi, dword ptr [edi + 8] */
  10115     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10117     _flag_k = FK_CMP;
  10118     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CE79; /* 0x3801CE74: je 0x3801ce79 */
  10119 L_3801CE76:
  10120     MEM32(esi + 0x4) = ecx; /* 0x3801CE76: mov dword ptr [esi + 4], ecx */
  10121 L_3801CE79:
  10122     esi = MEM32(ecx + 0x4); /* 0x3801CE79: mov esi, dword ptr [ecx + 4] */
  10123     MEM32(edx + 0x4) = esi; /* 0x3801CE7C: mov dword ptr [edx + 4], esi */
  10124     esi = MEM32(edi + 0x4); /* 0x3801CE7F: mov esi, dword ptr [edi + 4] */
  10125     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CE82: cmp ecx, dword ptr [esi + 4] */
  10126     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10128     _flag_k = FK_CMP;
  10129     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE8C; /* 0x3801CE85: jne 0x3801ce8c */
  10130 L_3801CE87:
  10131     MEM32(esi + 0x4) = edx; /* 0x3801CE87: mov dword ptr [esi + 4], edx */
  10132     goto L_3801CE9B; /* 0x3801CE8A: jmp 0x3801ce9b */
  10133 L_3801CE8C:
  10134     esi = MEM32(ecx + 0x4); /* 0x3801CE8C: mov esi, dword ptr [ecx + 4] */
  10135     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3801CE8F: cmp ecx, dword ptr [esi + 8] */
  10136     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10137     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10138     _flag_k = FK_CMP;
  10139     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CE99; /* 0x3801CE92: jne 0x3801ce99 */
  10140 L_3801CE94:
  10141     MEM32(esi + 0x8) = edx; /* 0x3801CE94: mov dword ptr [esi + 8], edx */
  10142     goto L_3801CE9B; /* 0x3801CE97: jmp 0x3801ce9b */
  10143 L_3801CE99:
  10144     MEM32(esi) = edx; /* 0x3801CE99: mov dword ptr [esi], edx */
  10145 L_3801CE9B:
  10146     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
  10147     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
  10148     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
  10149     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
  10150 L_3801CEA7:
  10151     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
  10152     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
  10153     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
  10154     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
  10155     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
  10156     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
  10157     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
  10158     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
  10159     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
  10160     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
  10161     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
  10162     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
  10163     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
  10164     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10165     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10166     _flag_k = FK_CMP;
  10167     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
  10168 L_3801CECE:
  10169     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
  10170 L_3801CED1:
  10171     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
  10172     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
  10173     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
  10174     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
  10175     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10177     _flag_k = FK_CMP;
  10178     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
  10179 L_3801CEDF:
  10180     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
  10181     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
  10182     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
  10183 L_3801CEE9:
  10184     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
  10185     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
  10186     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10188     _flag_k = FK_CMP;
  10189     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
  10190 L_3801CEF0:
  10191     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
  10192     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
  10193     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
  10194 L_3801CEF9:
  10195     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
  10196     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
  10197     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
  10198 L_3801CF9F:
  10199     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
  10200     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
  10201     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
  10202     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
  10203     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
  10204     RECOMP_FLAGS_IN();
  10205     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
  10206     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
  10207     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10208     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10209     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
  10210     _flag_k = FK_ADD;
  10211     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10212     eax = eax - 1; /* 0x3801CFB7: dec eax */
  10213     _flag_k = FK_DEC;
  10214     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
  10215     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
  10216     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
  10217     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
  10218     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
  10219     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
  10220     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
  10221     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
  10222     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
  10223     RECOMP_REGS_OUT();
  10224 }
  10225 
  10226 void sub_3801CE9B(void) {
  10227     int _fpu_cmp = 0;
  10228     uint32_t _cf = 0;
  10229     int _df = 1;
  10230     uint32_t _flag_k = FK_NONE;
  10231     uint32_t _flag_a = 0, _flag_b = 0;
  10232     uint32_t _itail_tgt = 0;
  10233     RECOMP_REGS_LOCALS
  10234     RECOMP_ENTER(0x3801CE9Bu);
  10235 
  10236 L_3801CE9B:
  10237     MEM32(edx + 0x8) = ecx; /* 0x3801CE9B: mov dword ptr [edx + 8], ecx */
  10238     MEM32(ecx + 0x4) = edx; /* 0x3801CE9E: mov dword ptr [ecx + 4], edx */
  10239     ecx = MEM32(eax + 0x4); /* 0x3801CEA1: mov ecx, dword ptr [eax + 4] */
  10240     ecx = MEM32(ecx + 0x8); /* 0x3801CEA4: mov ecx, dword ptr [ecx + 8] */
  10241     edx = MEM32(eax + 0x4); /* 0x3801CEA7: mov edx, dword ptr [eax + 4] */
  10242     SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3801CEAA: mov dl, byte ptr [edx + 0x20] */
  10243     MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3801CEAD: mov byte ptr [ecx + 0x20], dl */
  10244     edx = MEM32(eax + 0x4); /* 0x3801CEB0: mov edx, dword ptr [eax + 4] */
  10245     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB3: mov byte ptr [edx + 0x20], bl */
  10246     ecx = MEM32(ecx + 0x8); /* 0x3801CEB6: mov ecx, dword ptr [ecx + 8] */
  10247     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CEB9: mov byte ptr [ecx + 0x20], bl */
  10248     ecx = MEM32(eax + 0x4); /* 0x3801CEBC: mov ecx, dword ptr [eax + 4] */
  10249     edx = MEM32(ecx + 0x8); /* 0x3801CEBF: mov edx, dword ptr [ecx + 8] */
  10250     esi = MEM32(edx); /* 0x3801CEC2: mov esi, dword ptr [edx] */
  10251     MEM32(ecx + 0x8) = esi; /* 0x3801CEC4: mov dword ptr [ecx + 8], esi */
  10252     esi = MEM32(edx); /* 0x3801CEC7: mov esi, dword ptr [edx] */
  10253     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3801CEC9: cmp esi, dword ptr [edi + 8] */
  10254     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10256     _flag_k = FK_CMP;
  10257     if (CMP_EQ(_flag_a, _flag_b)) goto L_3801CED1; /* 0x3801CECC: je 0x3801ced1 */
  10258 L_3801CECE:
  10259     MEM32(esi + 0x4) = ecx; /* 0x3801CECE: mov dword ptr [esi + 4], ecx */
  10260 L_3801CED1:
  10261     esi = MEM32(ecx + 0x4); /* 0x3801CED1: mov esi, dword ptr [ecx + 4] */
  10262     MEM32(edx + 0x4) = esi; /* 0x3801CED4: mov dword ptr [edx + 4], esi */
  10263     esi = MEM32(edi + 0x4); /* 0x3801CED7: mov esi, dword ptr [edi + 4] */
  10264     /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3801CEDA: cmp ecx, dword ptr [esi + 4] */
  10265     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4));
  10266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10267     _flag_k = FK_CMP;
  10268     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEE9; /* 0x3801CEDD: jne 0x3801cee9 */
  10269 L_3801CEDF:
  10270     MEM32(esi + 0x4) = edx; /* 0x3801CEDF: mov dword ptr [esi + 4], edx */
  10271     MEM32(edx) = ecx; /* 0x3801CEE2: mov dword ptr [edx], ecx */
  10272     goto L_3801CF9F; /* 0x3801CEE4: jmp 0x3801cf9f */
  10273 L_3801CEE9:
  10274     esi = MEM32(ecx + 0x4); /* 0x3801CEE9: mov esi, dword ptr [ecx + 4] */
  10275     /* cmp ecx, MEM32(esi) */ /* 0x3801CEEC: cmp ecx, dword ptr [esi] */
  10276     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi));
  10277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10278     _flag_k = FK_CMP;
  10279     if (CMP_NE(_flag_a, _flag_b)) goto L_3801CEF9; /* 0x3801CEEE: jne 0x3801cef9 */
  10280 L_3801CEF0:
  10281     MEM32(esi) = edx; /* 0x3801CEF0: mov dword ptr [esi], edx */
  10282     MEM32(edx) = ecx; /* 0x3801CEF2: mov dword ptr [edx], ecx */
  10283     goto L_3801CF9F; /* 0x3801CEF4: jmp 0x3801cf9f */
  10284 L_3801CEF9:
  10285     MEM32(esi + 0x8) = edx; /* 0x3801CEF9: mov dword ptr [esi + 8], edx */
  10286     MEM32(edx) = ecx; /* 0x3801CEFC: mov dword ptr [edx], ecx */
  10287     goto L_3801CF9F; /* 0x3801CEFE: jmp 0x3801cf9f */
  10288 L_3801CF9F:
  10289     MEM32(ecx + 0x4) = edx; /* 0x3801CF9F: mov dword ptr [ecx + 4], edx */
  10290     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3801CFA2: mov byte ptr [eax + 0x20], bl */
  10291     edx = MEM32(ebp + (-0x4)); /* 0x3801CFA5: mov edx, dword ptr [ebp - 4] */
  10292     PUSH32(esp, edx); /* 0x3801CFA8: push edx */
  10293     RECOMP_ICALL(0x3804B4F6u); /* 0x3801CFA9: call 0x3804b4f6 */ /* not lifted */
  10294     RECOMP_FLAGS_IN();
  10295     eax = MEM32(edi + 0x10); /* 0x3801CFAE: mov eax, dword ptr [edi + 0x10] */
  10296     ecx = MEM32(ebp + 0xC); /* 0x3801CFB1: mov ecx, dword ptr [ebp + 0xc] */
  10297     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10298     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10299     esp = esp + 4; /* 0x3801CFB4: add esp, 4 */
  10300     _flag_k = FK_ADD;
  10301     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10302     eax = eax - 1; /* 0x3801CFB7: dec eax */
  10303     _flag_k = FK_DEC;
  10304     MEM32(edi + 0x10) = eax; /* 0x3801CFB8: mov dword ptr [edi + 0x10], eax */
  10305     eax = MEM32(ebp + 0x8); /* 0x3801CFBB: mov eax, dword ptr [ebp + 8] */
  10306     edi = POP32_VAL(esp); /* 0x3801CFBE: pop edi */
  10307     esi = POP32_VAL(esp); /* 0x3801CFBF: pop esi */
  10308     MEM32(eax) = ecx; /* 0x3801CFC0: mov dword ptr [eax], ecx */
  10309     ebx = POP32_VAL(esp); /* 0x3801CFC2: pop ebx */
  10310     esp = ebp; /* 0x3801CFC3: mov esp, ebp */
  10311     ebp = POP32_VAL(esp); /* 0x3801CFC5: pop ebp */
  10312     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3801CFC6: ret 8 */
  10313     RECOMP_REGS_OUT();
  10314 }