aorecomp

Anarchy Online classic in the browser

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


client/game/llr.dll/lifted-0025.c (348743B)


      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_3803F290(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(0x3803F290u);
     17 
     18 L_3803F290:
     19     PUSH32(esp, ebp); /* 0x3803F290: push ebp */
     20     ebp = esp; /* 0x3803F291: mov ebp, esp */
     21     eax = MEM32(ecx + 0x8); /* 0x3803F293: mov eax, dword ptr [ecx + 8] */
     22     PUSH32(esp, esi); /* 0x3803F296: push esi */
     23     PUSH32(esp, 0); /* 0x3803F297: push 0 */
     24     PUSH32(esp, 0x3806CBF0u); /* 0x3803F299: push 0x3806cbf0 */
     25     PUSH32(esp, 0x3806BF98u); /* 0x3803F29E: push 0x3806bf98 */
     26     PUSH32(esp, 0); /* 0x3803F2A3: push 0 */
     27     PUSH32(esp, eax); /* 0x3803F2A5: push eax */
     28     RECOMP_ICALL(0x3804B682u); /* 0x3803F2A6: call 0x3804b682 */ /* not lifted */
     29     RECOMP_FLAGS_IN();
     30     esi = eax; /* 0x3803F2AB: mov esi, eax */
     31     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
     32     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     33     esp = esp + 0x14u; /* 0x3803F2AD: add esp, 0x14 */
     34     _flag_k = FK_ADD;
     35     /* test esi, esi */ /* 0x3803F2B0: test esi, esi */
     36     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
     37     _cf = 0;
     38     _flag_k = FK_TEST;
     39     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803F2BB; /* 0x3803F2B2: jne 0x3803f2bb */
     40 L_3803F2B4:
     41     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
     42     SET_LO8(eax, 0); /* 0x3803F2B4: xor al, al */
     43     _cf = 0;
     44     _flag_k = FK_NARROW(FK_TEST, 24);
     45     esi = POP32_VAL(esp); /* 0x3803F2B6: pop esi */
     46     ebp = POP32_VAL(esp); /* 0x3803F2B7: pop ebp */
     47     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3803F2B8: ret 0xc */
     48 L_3803F2BB:
     49     ecx = esi; /* 0x3803F2BB: mov ecx, esi */
     50     RECOMP_ICALL(0x38037B20u); /* 0x3803F2BD: call 0x38037b20 */ /* not lifted */
     51     RECOMP_FLAGS_IN();
     52     ecx = MEM32(ebp + 0x8); /* 0x3803F2C2: mov ecx, dword ptr [ebp + 8] */
     53     MEM32(ecx) = eax; /* 0x3803F2C5: mov dword ptr [ecx], eax */
     54     ecx = esi; /* 0x3803F2C7: mov ecx, esi */
     55     RECOMP_ICALL(0x38037B30u); /* 0x3803F2C9: call 0x38037b30 */ /* not lifted */
     56     RECOMP_FLAGS_IN();
     57     edx = MEM32(ebp + 0xC); /* 0x3803F2CE: mov edx, dword ptr [ebp + 0xc] */
     58     ecx = esi; /* 0x3803F2D1: mov ecx, esi */
     59     MEM32(edx) = eax; /* 0x3803F2D3: mov dword ptr [edx], eax */
     60     RECOMP_ICALL(0x38037B40u); /* 0x3803F2D5: call 0x38037b40 */ /* not lifted */
     61     RECOMP_FLAGS_IN();
     62     ecx = MEM32(ebp + 0x10); /* 0x3803F2DA: mov ecx, dword ptr [ebp + 0x10] */
     63     MEM32(ecx) = eax; /* 0x3803F2DD: mov dword ptr [ecx], eax */
     64     SET_LO8(eax, 1); /* 0x3803F2DF: mov al, 1 */
     65     esi = POP32_VAL(esp); /* 0x3803F2E1: pop esi */
     66     ebp = POP32_VAL(esp); /* 0x3803F2E2: pop ebp */
     67     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3803F2E3: ret 0xc */
     68     RECOMP_REGS_OUT();
     69 }
     70 
     71 void sub_3803F2F0(void) {
     72     int _fpu_cmp = 0;
     73     uint32_t _cf = 0;
     74     int _df = 1;
     75     uint32_t _flag_k = FK_NONE;
     76     uint32_t _flag_a = 0, _flag_b = 0;
     77     uint32_t _itail_tgt = 0;
     78     RECOMP_REGS_LOCALS
     79     RECOMP_ENTER(0x3803F2F0u);
     80 
     81 L_3803F2F0:
     82     PUSH32(esp, ebp); /* 0x3803F2F0: push ebp */
     83     ebp = esp; /* 0x3803F2F1: mov ebp, esp */
     84     PUSH32(esp, 0xFFFFFFFFu); /* 0x3803F2F3: push -1 */
     85     PUSH32(esp, 0x3804D017u); /* 0x3803F2F5: push 0x3804d017 */
     86     eax = MEM32(FS_BASE + (0)); /* 0x3803F2FA: mov eax, dword ptr fs:[0] */
     87     PUSH32(esp, eax); /* 0x3803F300: push eax */
     88     MEM32(FS_BASE + (0)) = esp; /* 0x3803F301: mov dword ptr fs:[0], esp */
     89     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x90u);
     90     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     91     esp = esp - 0x90u; /* 0x3803F308: sub esp, 0x90 */
     92     _flag_k = FK_CMP;
     93     PUSH32(esp, ebx); /* 0x3803F30E: push ebx */
     94     PUSH32(esp, esi); /* 0x3803F30F: push esi */
     95     esi = ecx; /* 0x3803F310: mov esi, ecx */
     96     eax = MEM32(esi + 0x24); /* 0x3803F312: mov eax, dword ptr [esi + 0x24] */
     97     PUSH32(esp, edi); /* 0x3803F315: push edi */
     98     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     99     edi = 0; /* 0x3803F316: xor edi, edi */
    100     _cf = 0;
    101     _flag_k = FK_TEST;
    102     /* cmp eax, edi */ /* 0x3803F318: cmp eax, edi */
    103     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    104     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    105     _flag_k = FK_CMP;
    106     MEM32(ebp + (-0x40)) = esi; /* 0x3803F31A: mov dword ptr [ebp - 0x40], esi */
    107     if (CMP_NE(_flag_a, _flag_b)) goto L_3803F548; /* 0x3803F31D: jne 0x3803f548 */
    108 L_3803F323:
    109     PUSH32(esp, 8); /* 0x3803F323: push 8 */
    110     RECOMP_ICALL(0x3804B676u); /* 0x3803F325: call 0x3804b676 */ /* not lifted */
    111     RECOMP_FLAGS_IN();
    112     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    113     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    114     esp = esp + 4; /* 0x3803F32A: add esp, 4 */
    115     _flag_k = FK_ADD;
    116     MEM32(ebp + (-0x9C)) = eax; /* 0x3803F32D: mov dword ptr [ebp - 0x9c], eax */
    117     /* cmp eax, edi */ /* 0x3803F333: cmp eax, edi */
    118     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    120     _flag_k = FK_CMP;
    121     MEM32(ebp + (-0x4)) = edi; /* 0x3803F335: mov dword ptr [ebp - 4], edi */
    122     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803F343; /* 0x3803F338: je 0x3803f343 */
    123 L_3803F33A:
    124     ecx = eax; /* 0x3803F33A: mov ecx, eax */
    125     RECOMP_ICALL(0x380265B0u); /* 0x3803F33C: call 0x380265b0 */ /* not lifted */
    126     RECOMP_FLAGS_IN();
    127     goto L_3803F345; /* 0x3803F341: jmp 0x3803f345 */
    128 L_3803F343:
    129     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    130     eax = 0; /* 0x3803F343: xor eax, eax */
    131     _cf = 0;
    132     _flag_k = FK_TEST;
    133 L_3803F345:
    134     ebx = MEM32(ebp + 0xC); /* 0x3803F345: mov ebx, dword ptr [ebp + 0xc] */
    135     PUSH32(esp, ebx); /* 0x3803F348: push ebx */
    136     ecx = eax; /* 0x3803F349: mov ecx, eax */
    137     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3803F34B: mov dword ptr [ebp - 4], 0xffffffff */
    138     MEM32(esi + 0x24) = eax; /* 0x3803F352: mov dword ptr [esi + 0x24], eax */
    139     RECOMP_ICALL(0x38026600u); /* 0x3803F355: call 0x38026600 */ /* not lifted */
    140     RECOMP_FLAGS_IN();
    141     MEM32(ebp + (-0x30)) = 0; /* 0x3803F35A: mov dword ptr [ebp - 0x30], 0 */
    142     MEM32(ebp + (-0x2C)) = 0; /* 0x3803F361: mov dword ptr [ebp - 0x2c], 0 */
    143     MEM32(ebp + (-0x28)) = 0; /* 0x3803F368: mov dword ptr [ebp - 0x28], 0 */
    144     MEM32(ebp + (-0x24)) = 0; /* 0x3803F36F: mov dword ptr [ebp - 0x24], 0 */
    145     MEM32(ebp + (-0x20)) = 0; /* 0x3803F376: mov dword ptr [ebp - 0x20], 0 */
    146     MEM32(ebp + (-0x1C)) = 0; /* 0x3803F37D: mov dword ptr [ebp - 0x1c], 0 */
    147     MEM32(ebp + (-0x3C)) = 0; /* 0x3803F384: mov dword ptr [ebp - 0x3c], 0 */
    148     MEM32(ebp + (-0x38)) = 0; /* 0x3803F38B: mov dword ptr [ebp - 0x38], 0 */
    149     MEM32(ebp + (-0x34)) = 0; /* 0x3803F392: mov dword ptr [ebp - 0x34], 0 */
    150     MEM32(ebp + (-0x80)) = 0x3F800000u; /* 0x3803F399: mov dword ptr [ebp - 0x80], 0x3f800000 */
    151     MEM32(ebp + (-0x7C)) = 0; /* 0x3803F3A0: mov dword ptr [ebp - 0x7c], 0 */
    152     MEM32(ebp + (-0x78)) = 0; /* 0x3803F3A7: mov dword ptr [ebp - 0x78], 0 */
    153     MEM32(ebp + (-0x74)) = 0; /* 0x3803F3AE: mov dword ptr [ebp - 0x74], 0 */
    154     MEM32(ebp + (-0x70)) = 0; /* 0x3803F3B5: mov dword ptr [ebp - 0x70], 0 */
    155     MEM32(ebp + (-0x6C)) = 0x3F800000u; /* 0x3803F3BC: mov dword ptr [ebp - 0x6c], 0x3f800000 */
    156     MEM32(ebp + (-0x68)) = 0; /* 0x3803F3C3: mov dword ptr [ebp - 0x68], 0 */
    157     MEM32(ebp + (-0x64)) = 0; /* 0x3803F3CA: mov dword ptr [ebp - 0x64], 0 */
    158     MEM32(ebp + (-0x60)) = 0; /* 0x3803F3D1: mov dword ptr [ebp - 0x60], 0 */
    159     MEM32(ebp + (-0x5C)) = 0; /* 0x3803F3D8: mov dword ptr [ebp - 0x5c], 0 */
    160     MEM32(ebp + (-0x58)) = 0x3F800000u; /* 0x3803F3DF: mov dword ptr [ebp - 0x58], 0x3f800000 */
    161     MEM32(ebp + (-0x54)) = 0; /* 0x3803F3E6: mov dword ptr [ebp - 0x54], 0 */
    162     MEM32(ebp + (-0x50)) = 0; /* 0x3803F3ED: mov dword ptr [ebp - 0x50], 0 */
    163     MEM32(ebp + (-0x4C)) = 0; /* 0x3803F3F4: mov dword ptr [ebp - 0x4c], 0 */
    164     MEM32(ebp + (-0x48)) = 0; /* 0x3803F3FB: mov dword ptr [ebp - 0x48], 0 */
    165     MEM32(ebp + (-0x44)) = 0x3F800000u; /* 0x3803F402: mov dword ptr [ebp - 0x44], 0x3f800000 */
    166     PUSH32(esp, edi); /* 0x3803F409: push edi */
    167     ecx = ebp + (-0x80); /* 0x3803F40A: lea ecx, [ebp - 0x80] */
    168     MEM32(ebp + (-0x4)) = 1; /* 0x3803F40D: mov dword ptr [ebp - 4], 1 */
    169     RECOMP_ICALL(MEM32(0x3804E518)); /* 0x3803F414: call dword ptr [0x3804e518] */
    170     RECOMP_FLAGS_IN();
    171     /* cmp ebx, edi */ /* 0x3803F41A: cmp ebx, edi */
    172     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
    173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    174     _flag_k = FK_CMP;
    175     if (CMP_LE(_flag_a, _flag_b)) goto L_3803F548; /* 0x3803F41C: jle 0x3803f548 */
    176 L_3803F422:
    177     eax = MEM32(ebp + 0x10); /* 0x3803F422: mov eax, dword ptr [ebp + 0x10] */
    178     esi = eax + 0x18; /* 0x3803F425: lea esi, [eax + 0x18] */
    179 L_3803F428:
    180     ecx = esi + (-0x18); /* 0x3803F428: lea ecx, [esi - 0x18] */
    181     edx = MEM32(ecx); /* 0x3803F42B: mov edx, dword ptr [ecx] */
    182     eax = MEM32(ecx + 0x4); /* 0x3803F42D: mov eax, dword ptr [ecx + 4] */
    183     ecx = MEM32(ecx + 0x8); /* 0x3803F430: mov ecx, dword ptr [ecx + 8] */
    184     MEM32(ebp + (-0x8C)) = edx; /* 0x3803F433: mov dword ptr [ebp - 0x8c], edx */
    185     edx = ebp + (-0x80); /* 0x3803F439: lea edx, [ebp - 0x80] */
    186     MEM32(ebp + (-0x84)) = ecx; /* 0x3803F43C: mov dword ptr [ebp - 0x84], ecx */
    187     PUSH32(esp, edx); /* 0x3803F442: push edx */
    188     ecx = ebp + (-0x8C); /* 0x3803F443: lea ecx, [ebp - 0x8c] */
    189     MEM32(ebp + (-0x88)) = eax; /* 0x3803F449: mov dword ptr [ebp - 0x88], eax */
    190     RECOMP_ICALL(MEM32(0x3804E4DC)); /* 0x3803F44F: call dword ptr [0x3804e4dc] */
    191     RECOMP_FLAGS_IN();
    192     fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x3803F455: fld dword ptr [ebp - 0x5c] */
    193     ecx = MEM32(eax); /* 0x3803F458: mov ecx, dword ptr [eax] */
    194     MEM32(ebp + (-0x30)) = ecx; /* 0x3803F45A: mov dword ptr [ebp - 0x30], ecx */
    195     edx = MEM32(eax + 0x4); /* 0x3803F45D: mov edx, dword ptr [eax + 4] */
    196     MEM32(ebp + (-0x2C)) = edx; /* 0x3803F460: mov dword ptr [ebp - 0x2c], edx */
    197     eax = MEM32(eax + 0x8); /* 0x3803F463: mov eax, dword ptr [eax + 8] */
    198     MEM32(ebp + (-0x28)) = eax; /* 0x3803F466: mov dword ptr [ebp - 0x28], eax */
    199     ecx = esi + (-0xC); /* 0x3803F469: lea ecx, [esi - 0xc] */
    200     edx = MEM32(ecx); /* 0x3803F46C: mov edx, dword ptr [ecx] */
    201     eax = MEM32(ecx + 0x4); /* 0x3803F46E: mov eax, dword ptr [ecx + 4] */
    202     ecx = MEM32(ecx + 0x8); /* 0x3803F471: mov ecx, dword ptr [ecx + 8] */
    203     MEM32(ebp + (-0x10)) = ecx; /* 0x3803F474: mov dword ptr [ebp - 0x10], ecx */
    204     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3803F477: fmul dword ptr [ebp - 0x10] */
    205     fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x3803F47A: fld dword ptr [ebp - 0x6c] */
    206     MEM32(ebp + (-0x14)) = eax; /* 0x3803F47D: mov dword ptr [ebp - 0x14], eax */
    207     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3803F480: fmul dword ptr [ebp - 0x14] */
    208     MEM32(ebp + (-0x18)) = edx; /* 0x3803F483: mov dword ptr [ebp - 0x18], edx */
    209     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803F486: faddp st(1) */
    210     fp_push(*(float*)&MEM32(ebp + (-0x7C))); /* 0x3803F488: fld dword ptr [ebp - 0x7c] */
    211     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3803F48B: fmul dword ptr [ebp - 0x18] */
    212     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803F48E: faddp st(1) */
    213     _st[0] += (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x3803F490: fadd dword ptr [ebp - 0x4c] */
    214     fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x3803F493: fld dword ptr [ebp - 0x58] */
    215     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3803F496: fmul dword ptr [ebp - 0x10] */
    216     fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x3803F499: fld dword ptr [ebp - 0x68] */
    217     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3803F49C: fmul dword ptr [ebp - 0x14] */
    218     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803F49F: faddp st(1) */
    219     fp_push(*(float*)&MEM32(ebp + (-0x78))); /* 0x3803F4A1: fld dword ptr [ebp - 0x78] */
    220     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3803F4A4: fmul dword ptr [ebp - 0x18] */
    221     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803F4A7: faddp st(1) */
    222     _st[0] += (double)*(float*)ADDR(ebp + (-0x48)); /* 0x3803F4A9: fadd dword ptr [ebp - 0x48] */
    223     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3803F4AC: fstp dword ptr [ebp + 0xc] */
    224     fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x3803F4AF: fld dword ptr [ebp - 0x60] */
    225     edx = MEM32(ebp + 0xC); /* 0x3803F4B2: mov edx, dword ptr [ebp + 0xc] */
    226     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x3803F4B5: fmul dword ptr [ebp - 0x10] */
    227     MEM32(ebp + (-0x10)) = edx; /* 0x3803F4B8: mov dword ptr [ebp - 0x10], edx */
    228     fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x3803F4BB: fld dword ptr [ebp - 0x70] */
    229     MEM32(ebp + (-0x1C)) = edx; /* 0x3803F4BE: mov dword ptr [ebp - 0x1c], edx */
    230     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3803F4C1: fmul dword ptr [ebp - 0x14] */
    231     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803F4C4: faddp st(1) */
    232     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3803F4C6: fld dword ptr [ebp - 0x18] */
    233     _st[0] *= (double)*(float*)ADDR(ebp + (-0x80)); /* 0x3803F4C9: fmul dword ptr [ebp - 0x80] */
    234     { double _v = fp_pop(); _st[0] += _v; } /* 0x3803F4CC: faddp st(1) */
    235     _st[0] += (double)*(float*)ADDR(ebp + (-0x50)); /* 0x3803F4CE: fadd dword ptr [ebp - 0x50] */
    236     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3803F4D1: fstp dword ptr [ebp - 0x18] */
    237     eax = MEM32(ebp + (-0x18)); /* 0x3803F4D4: mov eax, dword ptr [ebp - 0x18] */
    238     MEM32(ebp + (-0x24)) = eax; /* 0x3803F4D7: mov dword ptr [ebp - 0x24], eax */
    239     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3803F4DA: fstp dword ptr [ebp - 0x14] */
    240     ecx = MEM32(ebp + (-0x14)); /* 0x3803F4DD: mov ecx, dword ptr [ebp - 0x14] */
    241     MEM32(ebp + (-0x20)) = ecx; /* 0x3803F4E0: mov dword ptr [ebp - 0x20], ecx */
    242     eax = esi; /* 0x3803F4E3: mov eax, esi */
    243     ecx = MEM32(eax); /* 0x3803F4E5: mov ecx, dword ptr [eax] */
    244     edx = MEM32(eax + 0x4); /* 0x3803F4E7: mov edx, dword ptr [eax + 4] */
    245     eax = MEM32(eax + 0x8); /* 0x3803F4EA: mov eax, dword ptr [eax + 8] */
    246     MEM32(ebp + (-0x98)) = ecx; /* 0x3803F4ED: mov dword ptr [ebp - 0x98], ecx */
    247     ecx = ebp + (-0x80); /* 0x3803F4F3: lea ecx, [ebp - 0x80] */
    248     PUSH32(esp, ecx); /* 0x3803F4F6: push ecx */
    249     ecx = ebp + (-0x98); /* 0x3803F4F7: lea ecx, [ebp - 0x98] */
    250     MEM32(ebp + (-0x94)) = edx; /* 0x3803F4FD: mov dword ptr [ebp - 0x94], edx */
    251     MEM32(ebp + (-0x90)) = eax; /* 0x3803F503: mov dword ptr [ebp - 0x90], eax */
    252     RECOMP_ICALL(MEM32(0x3804E4DC)); /* 0x3803F509: call dword ptr [0x3804e4dc] */
    253     RECOMP_FLAGS_IN();
    254     edx = MEM32(eax); /* 0x3803F50F: mov edx, dword ptr [eax] */
    255     MEM32(ebp + (-0x3C)) = edx; /* 0x3803F511: mov dword ptr [ebp - 0x3c], edx */
    256     ecx = MEM32(eax + 0x4); /* 0x3803F514: mov ecx, dword ptr [eax + 4] */
    257     MEM32(ebp + (-0x38)) = ecx; /* 0x3803F517: mov dword ptr [ebp - 0x38], ecx */
    258     edx = MEM32(eax + 0x8); /* 0x3803F51A: mov edx, dword ptr [eax + 8] */
    259     eax = MEM32(esi + 0xC); /* 0x3803F51D: mov eax, dword ptr [esi + 0xc] */
    260     MEM32(ebp + (-0x34)) = edx; /* 0x3803F520: mov dword ptr [ebp - 0x34], edx */
    261     PUSH32(esp, eax); /* 0x3803F523: push eax */
    262     ecx = ebp + (-0x3C); /* 0x3803F524: lea ecx, [ebp - 0x3c] */
    263     PUSH32(esp, ecx); /* 0x3803F527: push ecx */
    264     ecx = MEM32(ebp + (-0x40)); /* 0x3803F528: mov ecx, dword ptr [ebp - 0x40] */
    265     ecx = MEM32(ecx + 0x24); /* 0x3803F52B: mov ecx, dword ptr [ecx + 0x24] */
    266     edx = ebp + (-0x24); /* 0x3803F52E: lea edx, [ebp - 0x24] */
    267     PUSH32(esp, edx); /* 0x3803F531: push edx */
    268     eax = ebp + (-0x30); /* 0x3803F532: lea eax, [ebp - 0x30] */
    269     PUSH32(esp, eax); /* 0x3803F535: push eax */
    270     PUSH32(esp, edi); /* 0x3803F536: push edi */
    271     RECOMP_ICALL(0x380266C0u); /* 0x3803F537: call 0x380266c0 */ /* not lifted */
    272     RECOMP_FLAGS_IN();
    273     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
    274     edi = edi + 1; /* 0x3803F53C: inc edi */
    275     _flag_k = FK_INC;
    276     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u);
    277     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    278     esi = esi + 0x28u; /* 0x3803F53D: add esi, 0x28 */
    279     _flag_k = FK_ADD;
    280     /* cmp edi, ebx */ /* 0x3803F540: cmp edi, ebx */
    281     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    283     _flag_k = FK_CMP;
    284     RECOMP_BACKEDGE();
    285     if (CMP_L(_flag_a, _flag_b)) goto L_3803F428; /* 0x3803F542: jl 0x3803f428 */
    286 L_3803F548:
    287     ecx = MEM32(ebp + (-0xC)); /* 0x3803F548: mov ecx, dword ptr [ebp - 0xc] */
    288     edi = POP32_VAL(esp); /* 0x3803F54B: pop edi */
    289     esi = POP32_VAL(esp); /* 0x3803F54C: pop esi */
    290     ebx = POP32_VAL(esp); /* 0x3803F54D: pop ebx */
    291     MEM32(FS_BASE + (0)) = ecx; /* 0x3803F54E: mov dword ptr fs:[0], ecx */
    292     esp = ebp; /* 0x3803F555: mov esp, ebp */
    293     ebp = POP32_VAL(esp); /* 0x3803F557: pop ebp */
    294     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3803F558: ret 0xc */
    295     RECOMP_REGS_OUT();
    296 }
    297 
    298 void sub_3803F560(void) {
    299     int _fpu_cmp = 0;
    300     uint32_t _cf = 0;
    301     int _df = 1;
    302     uint32_t _flag_k = FK_NONE;
    303     uint32_t _flag_a = 0, _flag_b = 0;
    304     uint32_t _itail_tgt = 0;
    305     RECOMP_REGS_LOCALS
    306     RECOMP_ENTER(0x3803F560u);
    307 
    308 L_3803F560:
    309     ecx = 0x3806F0E0u; /* 0x3803F560: mov ecx, 0x3806f0e0 */
    310     goto L_38046510; /* 0x3803F565: jmp 0x38046510 */
    311 L_38046510:
    312     PUSH32(esp, ebp); /* 0x38046510: push ebp */
    313     ebp = esp; /* 0x38046511: mov ebp, esp */
    314     PUSH32(esp, 0xFFFFFFFFu); /* 0x38046513: push -1 */
    315     PUSH32(esp, 0x3804D2CBu); /* 0x38046515: push 0x3804d2cb */
    316     eax = MEM32(FS_BASE + (0)); /* 0x3804651A: mov eax, dword ptr fs:[0] */
    317     PUSH32(esp, eax); /* 0x38046520: push eax */
    318     MEM32(FS_BASE + (0)) = esp; /* 0x38046521: mov dword ptr fs:[0], esp */
    319     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    321     esp = esp - 8; /* 0x38046528: sub esp, 8 */
    322     _flag_k = FK_CMP;
    323     PUSH32(esp, esi); /* 0x3804652B: push esi */
    324     esi = ecx; /* 0x3804652C: mov esi, ecx */
    325     PUSH32(esp, edi); /* 0x3804652E: push edi */
    326     eax = MEM32(esi + 0x18); /* 0x3804652F: mov eax, dword ptr [esi + 0x18] */
    327     /* test eax, eax */ /* 0x38046532: test eax, eax */
    328     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    329     _cf = 0;
    330     _flag_k = FK_TEST;
    331     if (TEST_NZ(_flag_a, _flag_b)) goto L_3804658F; /* 0x38046534: jne 0x3804658f */
    332 L_38046536:
    333     PUSH32(esp, 0x1Cu); /* 0x38046536: push 0x1c */
    334     RECOMP_ICALL(0x3804B676u); /* 0x38046538: call 0x3804b676 */ /* not lifted */
    335     RECOMP_FLAGS_IN();
    336     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    337     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    338     esp = esp + 4; /* 0x3804653D: add esp, 4 */
    339     _flag_k = FK_ADD;
    340     MEM32(ebp + (-0x14)) = eax; /* 0x38046540: mov dword ptr [ebp - 0x14], eax */
    341     /* test eax, eax */ /* 0x38046543: test eax, eax */
    342     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    343     _cf = 0;
    344     _flag_k = FK_TEST;
    345     MEM32(ebp + (-0x4)) = 0; /* 0x38046545: mov dword ptr [ebp - 4], 0 */
    346     if (TEST_Z(_flag_a, _flag_b)) goto L_38046560; /* 0x3804654C: je 0x38046560 */
    347 L_3804654E:
    348     ecx = MEM32(esi + 0x4); /* 0x3804654E: mov ecx, dword ptr [esi + 4] */
    349     edx = MEM32(esi); /* 0x38046551: mov edx, dword ptr [esi] */
    350     PUSH32(esp, ecx); /* 0x38046553: push ecx */
    351     PUSH32(esp, edx); /* 0x38046554: push edx */
    352     ecx = eax; /* 0x38046555: mov ecx, eax */
    353     RECOMP_ICALL(0x380463B0u); /* 0x38046557: call 0x380463b0 */ /* not lifted */
    354     RECOMP_FLAGS_IN();
    355     edi = eax; /* 0x3804655C: mov edi, eax */
    356     goto L_38046562; /* 0x3804655E: jmp 0x38046562 */
    357 L_38046560:
    358     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    359     edi = 0; /* 0x38046560: xor edi, edi */
    360     _cf = 0;
    361     _flag_k = FK_TEST;
    362 L_38046562:
    363     /* test edi, edi */ /* 0x38046562: test edi, edi */
    364     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    365     _cf = 0;
    366     _flag_k = FK_TEST;
    367     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38046564: mov dword ptr [ebp - 4], 0xffffffff */
    368     MEM32(ebp + (-0x10)) = edi; /* 0x3804656B: mov dword ptr [ebp - 0x10], edi */
    369     if (TEST_Z(_flag_a, _flag_b)) goto L_380465EB; /* 0x3804656E: je 0x380465eb */
    370 L_38046570:
    371     eax = MEM32(edi + 0x4); /* 0x38046570: mov eax, dword ptr [edi + 4] */
    372     /* test eax, eax */ /* 0x38046573: test eax, eax */
    373     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    374     _cf = 0;
    375     _flag_k = FK_TEST;
    376     if (TEST_Z(_flag_a, _flag_b)) goto L_380465DB; /* 0x38046575: je 0x380465db */
    377 L_38046577:
    378     edx = MEM32(esi + 0x10); /* 0x38046577: mov edx, dword ptr [esi + 0x10] */
    379     ecx = esi + 0x8; /* 0x3804657A: lea ecx, [esi + 8] */
    380     eax = ebp + (-0x10); /* 0x3804657D: lea eax, [ebp - 0x10] */
    381     PUSH32(esp, eax); /* 0x38046580: push eax */
    382     PUSH32(esp, 1); /* 0x38046581: push 1 */
    383     PUSH32(esp, edx); /* 0x38046583: push edx */
    384     RECOMP_ICALL(0x38046650u); /* 0x38046584: call 0x38046650 */ /* not lifted */
    385     RECOMP_FLAGS_IN();
    386     eax = MEM32(ebp + (-0x10)); /* 0x38046589: mov eax, dword ptr [ebp - 0x10] */
    387     MEM32(esi + 0x18) = eax; /* 0x3804658C: mov dword ptr [esi + 0x18], eax */
    388 L_3804658F:
    389     eax = MEM32(esi + 0x18); /* 0x3804658F: mov eax, dword ptr [esi + 0x18] */
    390     edx = MEM32(eax + 0x4); /* 0x38046592: mov edx, dword ptr [eax + 4] */
    391     ecx = MEM32(edx); /* 0x38046595: mov ecx, dword ptr [edx] */
    392     MEM32(eax + 0x4) = ecx; /* 0x38046597: mov dword ptr [eax + 4], ecx */
    393     ecx = MEM32(eax + 0x14); /* 0x3804659A: mov ecx, dword ptr [eax + 0x14] */
    394     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    395     ecx = ecx - 1; /* 0x3804659D: dec ecx */
    396     _flag_k = FK_DEC;
    397     MEM32(eax + 0x14) = ecx; /* 0x3804659E: mov dword ptr [eax + 0x14], ecx */
    398     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_380465C8; /* 0x380465A1: jne 0x380465c8 */
    399 L_380465A3:
    400     MEM32(esi + 0x18) = 0; /* 0x380465A3: mov dword ptr [esi + 0x18], 0 */
    401     eax = MEM32(esi + 0xC); /* 0x380465AA: mov eax, dword ptr [esi + 0xc] */
    402     /* cmp eax, MEM32(esi + 0x10) */ /* 0x380465AD: cmp eax, dword ptr [esi + 0x10] */
    403     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x10));
    404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    405     _flag_k = FK_CMP;
    406     if (CMP_EQ(_flag_a, _flag_b)) goto L_380465C8; /* 0x380465B0: je 0x380465c8 */
    407 L_380465B2:
    408     ecx = MEM32(eax); /* 0x380465B2: mov ecx, dword ptr [eax] */
    409     edi = MEM32(ecx + 0x14); /* 0x380465B4: mov edi, dword ptr [ecx + 0x14] */
    410     /* test edi, edi */ /* 0x380465B7: test edi, edi */
    411     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    412     _cf = 0;
    413     _flag_k = FK_TEST;
    414     if (TEST_Z(_flag_a, _flag_b)) goto L_380465BE; /* 0x380465B9: je 0x380465be */
    415 L_380465BB:
    416     MEM32(esi + 0x18) = ecx; /* 0x380465BB: mov dword ptr [esi + 0x18], ecx */
    417 L_380465BE:
    418     ecx = MEM32(esi + 0x10); /* 0x380465BE: mov ecx, dword ptr [esi + 0x10] */
    419     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
    420     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    421     eax = eax + 4; /* 0x380465C1: add eax, 4 */
    422     _flag_k = FK_ADD;
    423     /* cmp eax, ecx */ /* 0x380465C4: cmp eax, ecx */
    424     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    426     _flag_k = FK_CMP;
    427     RECOMP_BACKEDGE();
    428     if (CMP_NE(_flag_a, _flag_b)) goto L_380465B2; /* 0x380465C6: jne 0x380465b2 */
    429 L_380465C8:
    430     edi = POP32_VAL(esp); /* 0x380465C8: pop edi */
    431     eax = edx + 0x4; /* 0x380465C9: lea eax, [edx + 4] */
    432     esi = POP32_VAL(esp); /* 0x380465CC: pop esi */
    433     ecx = MEM32(ebp + (-0xC)); /* 0x380465CD: mov ecx, dword ptr [ebp - 0xc] */
    434     MEM32(FS_BASE + (0)) = ecx; /* 0x380465D0: mov dword ptr fs:[0], ecx */
    435     esp = ebp; /* 0x380465D7: mov esp, ebp */
    436     ebp = POP32_VAL(esp); /* 0x380465D9: pop ebp */
    437     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380465DA: ret  */
    438 L_380465DB:
    439     ecx = edi; /* 0x380465DB: mov ecx, edi */
    440     RECOMP_ICALL(0x38046460u); /* 0x380465DD: call 0x38046460 */ /* not lifted */
    441     RECOMP_FLAGS_IN();
    442     PUSH32(esp, edi); /* 0x380465E2: push edi */
    443     RECOMP_ICALL(0x3804B4F6u); /* 0x380465E3: call 0x3804b4f6 */ /* not lifted */
    444     RECOMP_FLAGS_IN();
    445     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    446     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    447     esp = esp + 4; /* 0x380465E8: add esp, 4 */
    448     _flag_k = FK_ADD;
    449 L_380465EB:
    450     ecx = MEM32(ebp + (-0xC)); /* 0x380465EB: mov ecx, dword ptr [ebp - 0xc] */
    451     edi = POP32_VAL(esp); /* 0x380465EE: pop edi */
    452     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    453     eax = 0; /* 0x380465EF: xor eax, eax */
    454     _cf = 0;
    455     _flag_k = FK_TEST;
    456     esi = POP32_VAL(esp); /* 0x380465F1: pop esi */
    457     MEM32(FS_BASE + (0)) = ecx; /* 0x380465F2: mov dword ptr fs:[0], ecx */
    458     esp = ebp; /* 0x380465F9: mov esp, ebp */
    459     ebp = POP32_VAL(esp); /* 0x380465FB: pop ebp */
    460     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380465FC: ret  */
    461     RECOMP_REGS_OUT();
    462 }
    463 
    464 void sub_3803F570(void) {
    465     int _fpu_cmp = 0;
    466     uint32_t _cf = 0;
    467     int _df = 1;
    468     uint32_t _flag_k = FK_NONE;
    469     uint32_t _flag_a = 0, _flag_b = 0;
    470     uint32_t _itail_tgt = 0;
    471     RECOMP_REGS_LOCALS
    472     RECOMP_ENTER(0x3803F570u);
    473 
    474 L_3803F570:
    475     PUSH32(esp, ebp); /* 0x3803F570: push ebp */
    476     ebp = esp; /* 0x3803F571: mov ebp, esp */
    477     eax = MEM32(ebp + 0x8); /* 0x3803F573: mov eax, dword ptr [ebp + 8] */
    478     PUSH32(esp, eax); /* 0x3803F576: push eax */
    479     ecx = 0x3806F0E0u; /* 0x3803F577: mov ecx, 0x3806f0e0 */
    480     RECOMP_ICALL(0x38046600u); /* 0x3803F57C: call 0x38046600 */ /* not lifted */
    481     RECOMP_FLAGS_IN();
    482     ebp = POP32_VAL(esp); /* 0x3803F581: pop ebp */
    483     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F582: ret  */
    484     RECOMP_REGS_OUT();
    485 }
    486 
    487 void sub_3803F590(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(0x3803F590u);
    496 
    497 L_3803F590:
    498     PUSH32(esp, ebx); /* 0x3803F590: push ebx */
    499     PUSH32(esp, esi); /* 0x3803F591: push esi */
    500     PUSH32(esp, edi); /* 0x3803F592: push edi */
    501     edi = ecx; /* 0x3803F593: mov edi, ecx */
    502     ebx = MEM32(edi + 0x8); /* 0x3803F595: mov ebx, dword ptr [edi + 8] */
    503     esi = MEM32(edi + 0x4); /* 0x3803F598: mov esi, dword ptr [edi + 4] */
    504     /* cmp esi, ebx */ /* 0x3803F59B: cmp esi, ebx */
    505     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    507     _flag_k = FK_CMP;
    508     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803F5AE; /* 0x3803F59D: je 0x3803f5ae */
    509 L_3803F59F:
    510     eax = MEM32(esi); /* 0x3803F59F: mov eax, dword ptr [esi] */
    511     PUSH32(esp, 0); /* 0x3803F5A1: push 0 */
    512     ecx = esi; /* 0x3803F5A3: mov ecx, esi */
    513     RECOMP_ICALL(MEM32(eax)); /* 0x3803F5A5: call dword ptr [eax] */
    514     RECOMP_FLAGS_IN();
    515     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x48u);
    516     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    517     esi = esi + 0x48u; /* 0x3803F5A7: add esi, 0x48 */
    518     _flag_k = FK_ADD;
    519     /* cmp esi, ebx */ /* 0x3803F5AA: cmp esi, ebx */
    520     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    522     _flag_k = FK_CMP;
    523     RECOMP_BACKEDGE();
    524     if (CMP_NE(_flag_a, _flag_b)) goto L_3803F59F; /* 0x3803F5AC: jne 0x3803f59f */
    525 L_3803F5AE:
    526     ecx = MEM32(edi + 0x4); /* 0x3803F5AE: mov ecx, dword ptr [edi + 4] */
    527     PUSH32(esp, ecx); /* 0x3803F5B1: push ecx */
    528     RECOMP_ICALL(0x3804B4F6u); /* 0x3803F5B2: call 0x3804b4f6 */ /* not lifted */
    529     RECOMP_FLAGS_IN();
    530     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    531     eax = 0; /* 0x3803F5B7: xor eax, eax */
    532     _cf = 0;
    533     _flag_k = FK_TEST;
    534     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    535     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    536     esp = esp + 4; /* 0x3803F5B9: add esp, 4 */
    537     _flag_k = FK_ADD;
    538     MEM32(edi + 0x4) = eax; /* 0x3803F5BC: mov dword ptr [edi + 4], eax */
    539     MEM32(edi + 0x8) = eax; /* 0x3803F5BF: mov dword ptr [edi + 8], eax */
    540     MEM32(edi + 0xC) = eax; /* 0x3803F5C2: mov dword ptr [edi + 0xc], eax */
    541     edi = POP32_VAL(esp); /* 0x3803F5C5: pop edi */
    542     esi = POP32_VAL(esp); /* 0x3803F5C6: pop esi */
    543     ebx = POP32_VAL(esp); /* 0x3803F5C7: pop ebx */
    544     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F5C8: ret  */
    545     RECOMP_REGS_OUT();
    546 }
    547 
    548 void sub_3803F5D0(void) {
    549     int _fpu_cmp = 0;
    550     uint32_t _cf = 0;
    551     int _df = 1;
    552     uint32_t _flag_k = FK_NONE;
    553     uint32_t _flag_a = 0, _flag_b = 0;
    554     uint32_t _itail_tgt = 0;
    555     RECOMP_REGS_LOCALS
    556     RECOMP_ENTER(0x3803F5D0u);
    557 
    558 L_3803F5D0:
    559     RECOMP_ICALL(0x3803F5E0u); /* 0x3803F5D0: call 0x3803f5e0 */ /* not lifted */
    560     RECOMP_FLAGS_IN();
    561     goto L_3803F5F0; /* 0x3803F5D5: jmp 0x3803f5f0 */
    562 L_3803F5F0:
    563     PUSH32(esp, 0x3803F600u); /* 0x3803F5F0: push 0x3803f600 */
    564     RECOMP_ICALL(0x3804B54Cu); /* 0x3803F5F5: call 0x3804b54c */ /* not lifted */
    565     RECOMP_FLAGS_IN();
    566     ecx = POP32_VAL(esp); /* 0x3803F5FA: pop ecx */
    567     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F5FB: ret  */
    568     RECOMP_REGS_OUT();
    569 }
    570 
    571 void sub_3803F5E0(void) {
    572     int _fpu_cmp = 0;
    573     uint32_t _cf = 0;
    574     int _df = 1;
    575     uint32_t _flag_k = FK_NONE;
    576     uint32_t _flag_a = 0, _flag_b = 0;
    577     uint32_t _itail_tgt = 0;
    578     RECOMP_REGS_LOCALS
    579     RECOMP_ENTER(0x3803F5E0u);
    580 
    581 L_3803F5E0:
    582     ecx = 0x3806F141u; /* 0x3803F5E0: mov ecx, 0x3806f141 */
    583 L_3803F5E5:
    584     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
    585     { RECOMP_REGS_OUT(); return; } /* end of function */
    586   _ljump:
    587     switch (_itail_tgt) {
    588       case 0x3803F5E0u: goto L_3803F5E0;
    589       case 0x3803F5E5u: goto L_3803F5E5;
    590       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    591     }
    592     RECOMP_REGS_OUT();
    593 }
    594 
    595 void sub_3803F5F0(void) {
    596     int _fpu_cmp = 0;
    597     uint32_t _cf = 0;
    598     int _df = 1;
    599     uint32_t _flag_k = FK_NONE;
    600     uint32_t _flag_a = 0, _flag_b = 0;
    601     uint32_t _itail_tgt = 0;
    602     RECOMP_REGS_LOCALS
    603     RECOMP_ENTER(0x3803F5F0u);
    604 
    605 L_3803F5F0:
    606     PUSH32(esp, 0x3803F600u); /* 0x3803F5F0: push 0x3803f600 */
    607     RECOMP_ICALL(0x3804B54Cu); /* 0x3803F5F5: call 0x3804b54c */ /* not lifted */
    608     RECOMP_FLAGS_IN();
    609     ecx = POP32_VAL(esp); /* 0x3803F5FA: pop ecx */
    610     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F5FB: ret  */
    611     RECOMP_REGS_OUT();
    612 }
    613 
    614 void sub_3803F600(void) {
    615     int _fpu_cmp = 0;
    616     uint32_t _cf = 0;
    617     int _df = 1;
    618     uint32_t _flag_k = FK_NONE;
    619     uint32_t _flag_a = 0, _flag_b = 0;
    620     uint32_t _itail_tgt = 0;
    621     RECOMP_REGS_LOCALS
    622     RECOMP_ENTER(0x3803F600u);
    623 
    624 L_3803F600:
    625     ecx = 0x3806F141u; /* 0x3803F600: mov ecx, 0x3806f141 */
    626 L_3803F605:
    627     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
    628     { RECOMP_REGS_OUT(); return; } /* end of function */
    629   _ljump:
    630     switch (_itail_tgt) {
    631       case 0x3803F600u: goto L_3803F600;
    632       case 0x3803F605u: goto L_3803F605;
    633       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    634     }
    635     RECOMP_REGS_OUT();
    636 }
    637 
    638 void sub_3803F610(void) {
    639     int _fpu_cmp = 0;
    640     uint32_t _cf = 0;
    641     int _df = 1;
    642     uint32_t _flag_k = FK_NONE;
    643     uint32_t _flag_a = 0, _flag_b = 0;
    644     uint32_t _itail_tgt = 0;
    645     RECOMP_REGS_LOCALS
    646     RECOMP_ENTER(0x3803F610u);
    647 
    648 L_3803F610:
    649     RECOMP_ICALL(0x3803F620u); /* 0x3803F610: call 0x3803f620 */ /* not lifted */
    650     RECOMP_FLAGS_IN();
    651     goto L_3803F630; /* 0x3803F615: jmp 0x3803f630 */
    652 L_3803F630:
    653     PUSH32(esp, 0x3803F640u); /* 0x3803F630: push 0x3803f640 */
    654     RECOMP_ICALL(0x3804B54Cu); /* 0x3803F635: call 0x3804b54c */ /* not lifted */
    655     RECOMP_FLAGS_IN();
    656     ecx = POP32_VAL(esp); /* 0x3803F63A: pop ecx */
    657     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F63B: ret  */
    658     RECOMP_REGS_OUT();
    659 }
    660 
    661 void sub_3803F620(void) {
    662     int _fpu_cmp = 0;
    663     uint32_t _cf = 0;
    664     int _df = 1;
    665     uint32_t _flag_k = FK_NONE;
    666     uint32_t _flag_a = 0, _flag_b = 0;
    667     uint32_t _itail_tgt = 0;
    668     RECOMP_REGS_LOCALS
    669     RECOMP_ENTER(0x3803F620u);
    670 
    671 L_3803F620:
    672     ecx = 0x3806F140u; /* 0x3803F620: mov ecx, 0x3806f140 */
    673 L_3803F625:
    674     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
    675     { RECOMP_REGS_OUT(); return; } /* end of function */
    676   _ljump:
    677     switch (_itail_tgt) {
    678       case 0x3803F620u: goto L_3803F620;
    679       case 0x3803F625u: goto L_3803F625;
    680       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    681     }
    682     RECOMP_REGS_OUT();
    683 }
    684 
    685 void sub_3803F630(void) {
    686     int _fpu_cmp = 0;
    687     uint32_t _cf = 0;
    688     int _df = 1;
    689     uint32_t _flag_k = FK_NONE;
    690     uint32_t _flag_a = 0, _flag_b = 0;
    691     uint32_t _itail_tgt = 0;
    692     RECOMP_REGS_LOCALS
    693     RECOMP_ENTER(0x3803F630u);
    694 
    695 L_3803F630:
    696     PUSH32(esp, 0x3803F640u); /* 0x3803F630: push 0x3803f640 */
    697     RECOMP_ICALL(0x3804B54Cu); /* 0x3803F635: call 0x3804b54c */ /* not lifted */
    698     RECOMP_FLAGS_IN();
    699     ecx = POP32_VAL(esp); /* 0x3803F63A: pop ecx */
    700     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F63B: ret  */
    701     RECOMP_REGS_OUT();
    702 }
    703 
    704 void sub_3803F640(void) {
    705     int _fpu_cmp = 0;
    706     uint32_t _cf = 0;
    707     int _df = 1;
    708     uint32_t _flag_k = FK_NONE;
    709     uint32_t _flag_a = 0, _flag_b = 0;
    710     uint32_t _itail_tgt = 0;
    711     RECOMP_REGS_LOCALS
    712     RECOMP_ENTER(0x3803F640u);
    713 
    714 L_3803F640:
    715     ecx = 0x3806F140u; /* 0x3803F640: mov ecx, 0x3806f140 */
    716 L_3803F645:
    717     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
    718     { RECOMP_REGS_OUT(); return; } /* end of function */
    719   _ljump:
    720     switch (_itail_tgt) {
    721       case 0x3803F640u: goto L_3803F640;
    722       case 0x3803F645u: goto L_3803F645;
    723       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    724     }
    725     RECOMP_REGS_OUT();
    726 }
    727 
    728 void sub_3803F650(void) {
    729     int _fpu_cmp = 0;
    730     uint32_t _cf = 0;
    731     int _df = 1;
    732     uint32_t _flag_k = FK_NONE;
    733     uint32_t _flag_a = 0, _flag_b = 0;
    734     uint32_t _itail_tgt = 0;
    735     RECOMP_REGS_LOCALS
    736     RECOMP_ENTER(0x3803F650u);
    737 
    738 L_3803F650:
    739     PUSH32(esp, ebp); /* 0x3803F650: push ebp */
    740     ebp = esp; /* 0x3803F651: mov ebp, esp */
    741     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    743     esp = esp - 8; /* 0x3803F653: sub esp, 8 */
    744     _flag_k = FK_CMP;
    745     eax = MEM32(ebp + 0x8); /* 0x3803F656: mov eax, dword ptr [ebp + 8] */
    746     PUSH32(esp, esi); /* 0x3803F659: push esi */
    747     esi = ecx; /* 0x3803F65A: mov esi, ecx */
    748     ecx = MEM32(ebp + 0xC); /* 0x3803F65C: mov ecx, dword ptr [ebp + 0xc] */
    749     MEM32(esi) = eax; /* 0x3803F65F: mov dword ptr [esi], eax */
    750     MEM32(esi + 0x4) = ecx; /* 0x3803F661: mov dword ptr [esi + 4], ecx */
    751     fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x3803F664: fld dword ptr [eax + 8] */
    752     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3803F667: fst dword ptr [ebp + 0xc] */
    753     fp_push(*(float*)&MEM32(eax)); /* 0x3803F66A: fld dword ptr [eax] */
    754     MEM32(ebp + (-0x4)) = 0; /* 0x3803F66C: mov dword ptr [ebp - 4], 0 */
    755     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3803F673: fstp dword ptr [ebp + 8] */
    756     MEM32(ebp + (-0x8)) = 0; /* 0x3803F676: mov dword ptr [ebp - 8], 0 */
    757     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803F67D: fcomp dword ptr [0x3804e8e4] */
    758     fp_pop();
    759     ecx = ebp + 0xC; /* 0x3803F683: lea ecx, [ebp + 0xc] */
    760     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803F686: fnstsw ax */
    761     /* test HI8(eax), 0x41u */ /* 0x3803F688: test ah, 0x41 */
    762     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    763     _cf = 0;
    764     _flag_k = FK_NARROW(FK_TEST, 24);
    765     if (TEST_Z(_flag_a, _flag_b)) goto L_3803F690; /* 0x3803F68B: je 0x3803f690 */
    766 L_3803F68D:
    767     ecx = ebp + (-0x4); /* 0x3803F68D: lea ecx, [ebp - 4] */
    768 L_3803F690:
    769     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3803F690: fld dword ptr [ebp + 8] */
    770     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3804E8E4)); /* 0x3803F693: fcomp dword ptr [0x3804e8e4] */
    771     fp_pop();
    772     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803F699: fnstsw ax */
    773     /* test HI8(eax), 0x41u */ /* 0x3803F69B: test ah, 0x41 */
    774     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    775     _cf = 0;
    776     _flag_k = FK_NARROW(FK_TEST, 24);
    777     eax = ebp + 0x8; /* 0x3803F69E: lea eax, [ebp + 8] */
    778     if (TEST_Z(_flag_a, _flag_b)) goto L_3803F6A6; /* 0x3803F6A1: je 0x3803f6a6 */
    779 L_3803F6A3:
    780     eax = ebp + (-0x8); /* 0x3803F6A3: lea eax, [ebp - 8] */
    781 L_3803F6A6:
    782     edx = MEM32(ecx); /* 0x3803F6A6: mov edx, dword ptr [ecx] */
    783     eax = MEM32(eax); /* 0x3803F6A8: mov eax, dword ptr [eax] */
    784     PUSH32(esp, edx); /* 0x3803F6AA: push edx */
    785     PUSH32(esp, eax); /* 0x3803F6AB: push eax */
    786     ecx = esi; /* 0x3803F6AC: mov ecx, esi */
    787     RECOMP_ICALL(0x3803F770u); /* 0x3803F6AE: call 0x3803f770 */ /* not lifted */
    788     RECOMP_FLAGS_IN();
    789     ecx = MEM32(esi + 0x4); /* 0x3803F6B3: mov ecx, dword ptr [esi + 4] */
    790     MEM32(esi + 0x18) = eax; /* 0x3803F6B6: mov dword ptr [esi + 0x18], eax */
    791     edx = MEM32(ecx); /* 0x3803F6B9: mov edx, dword ptr [ecx] */
    792     RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x3803F6BB: call dword ptr [edx + 0x48] */
    793     RECOMP_FLAGS_IN();
    794     ecx = MEM32(esi + 0x4); /* 0x3803F6BE: mov ecx, dword ptr [esi + 4] */
    795     edx = MEM32(ecx); /* 0x3803F6C1: mov edx, dword ptr [ecx] */
    796     MEM32(ebp + 0x8) = eax; /* 0x3803F6C3: mov dword ptr [ebp + 8], eax */
    797     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x3803F6C6: fild dword ptr [ebp + 8] */
    798     eax = MEM32(esi); /* 0x3803F6C9: mov eax, dword ptr [esi] */
    799     _st[0] -= (double)*(float*)ADDR(0x3804F0A0); /* 0x3803F6CB: fsub dword ptr [0x3804f0a0] */
    800     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x3803F6D1: fstp dword ptr [ebp + 0xc] */
    801     fp_push(*(float*)&MEM32(eax + 0x14)); /* 0x3803F6D4: fld dword ptr [eax + 0x14] */
    802     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3803F6D7: fstp dword ptr [ebp + 8] */
    803     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x3803F6DA: call dword ptr [edx + 0x44] */
    804     RECOMP_FLAGS_IN();
    805     MEM32(ebp + (-0x8)) = eax; /* 0x3803F6DD: mov dword ptr [ebp - 8], eax */
    806     fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x3803F6E0: fild dword ptr [ebp - 8] */
    807     eax = MEM32(esi); /* 0x3803F6E3: mov eax, dword ptr [esi] */
    808     ecx = ebp + 0x8; /* 0x3803F6E5: lea ecx, [ebp + 8] */
    809     _st[0] -= (double)*(float*)ADDR(0x3804F0A0); /* 0x3803F6E8: fsub dword ptr [0x3804f0a0] */
    810     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3803F6EE: fstp dword ptr [ebp - 4] */
    811     fp_push(*(float*)&MEM32(eax + 0xC)); /* 0x3803F6F1: fld dword ptr [eax + 0xc] */
    812     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3803F6F4: fst dword ptr [ebp - 8] */
    813     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x3803F6F7: fld dword ptr [ebp + 8] */
    814     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0xC)); /* 0x3803F6FA: fcomp dword ptr [ebp + 0xc] */
    815     fp_pop();
    816     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803F6FD: fnstsw ax */
    817     /* test HI8(eax), 1 */ /* 0x3803F6FF: test ah, 1 */
    818     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    819     _cf = 0;
    820     _flag_k = FK_NARROW(FK_TEST, 24);
    821     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803F707; /* 0x3803F702: jne 0x3803f707 */
    822 L_3803F704:
    823     ecx = ebp + 0xC; /* 0x3803F704: lea ecx, [ebp + 0xc] */
    824 L_3803F707:
    825     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x3803F707: fcomp dword ptr [ebp - 4] */
    826     fp_pop();
    827     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803F70A: fnstsw ax */
    828     /* test HI8(eax), 1 */ /* 0x3803F70C: test ah, 1 */
    829     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    830     _cf = 0;
    831     _flag_k = FK_NARROW(FK_TEST, 24);
    832     eax = ebp + (-0x8); /* 0x3803F70F: lea eax, [ebp - 8] */
    833     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803F717; /* 0x3803F712: jne 0x3803f717 */
    834 L_3803F714:
    835     eax = ebp + (-0x4); /* 0x3803F714: lea eax, [ebp - 4] */
    836 L_3803F717:
    837     ecx = MEM32(ecx); /* 0x3803F717: mov ecx, dword ptr [ecx] */
    838     edx = MEM32(eax); /* 0x3803F719: mov edx, dword ptr [eax] */
    839     PUSH32(esp, ecx); /* 0x3803F71B: push ecx */
    840     PUSH32(esp, edx); /* 0x3803F71C: push edx */
    841     ecx = esi; /* 0x3803F71D: mov ecx, esi */
    842     RECOMP_ICALL(0x3803F770u); /* 0x3803F71F: call 0x3803f770 */ /* not lifted */
    843     RECOMP_FLAGS_IN();
    844     edx = MEM32(esi + 0x18); /* 0x3803F724: mov edx, dword ptr [esi + 0x18] */
    845     MEM32(esi + 0x1C) = eax; /* 0x3803F727: mov dword ptr [esi + 0x1c], eax */
    846     eax = esi + 0xC; /* 0x3803F72A: lea eax, [esi + 0xc] */
    847     PUSH32(esp, eax); /* 0x3803F72D: push eax */
    848     ecx = esi + 0x8; /* 0x3803F72E: lea ecx, [esi + 8] */
    849     PUSH32(esp, ecx); /* 0x3803F731: push ecx */
    850     ecx = MEM32(esi + 0x4); /* 0x3803F732: mov ecx, dword ptr [esi + 4] */
    851     PUSH32(esp, edx); /* 0x3803F735: push edx */
    852     RECOMP_ICALL(0x3802B600u); /* 0x3803F736: call 0x3802b600 */ /* not lifted */
    853     RECOMP_FLAGS_IN();
    854     edx = MEM32(esi + 0x1C); /* 0x3803F73B: mov edx, dword ptr [esi + 0x1c] */
    855     eax = esi + 0x14; /* 0x3803F73E: lea eax, [esi + 0x14] */
    856     PUSH32(esp, eax); /* 0x3803F741: push eax */
    857     ecx = esi + 0x10; /* 0x3803F742: lea ecx, [esi + 0x10] */
    858     PUSH32(esp, ecx); /* 0x3803F745: push ecx */
    859     ecx = MEM32(esi + 0x4); /* 0x3803F746: mov ecx, dword ptr [esi + 4] */
    860     PUSH32(esp, edx); /* 0x3803F749: push edx */
    861     RECOMP_ICALL(0x3802B600u); /* 0x3803F74A: call 0x3802b600 */ /* not lifted */
    862     RECOMP_FLAGS_IN();
    863     ecx = MEM32(esi + 0x4); /* 0x3803F74F: mov ecx, dword ptr [esi + 4] */
    864     RECOMP_ICALL(0x3802BEE0u); /* 0x3803F752: call 0x3802bee0 */ /* not lifted */
    865     RECOMP_FLAGS_IN();
    866     MEM32(esi + 0x20) = eax; /* 0x3803F757: mov dword ptr [esi + 0x20], eax */
    867     eax = esi; /* 0x3803F75A: mov eax, esi */
    868     esi = POP32_VAL(esp); /* 0x3803F75C: pop esi */
    869     esp = ebp; /* 0x3803F75D: mov esp, ebp */
    870     ebp = POP32_VAL(esp); /* 0x3803F75F: pop ebp */
    871     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3803F760: ret 8 */
    872     RECOMP_REGS_OUT();
    873 }
    874 
    875 void sub_3803F770(void) {
    876     int _fpu_cmp = 0;
    877     uint32_t _cf = 0;
    878     int _df = 1;
    879     uint32_t _flag_k = FK_NONE;
    880     uint32_t _flag_a = 0, _flag_b = 0;
    881     uint32_t _itail_tgt = 0;
    882     RECOMP_REGS_LOCALS
    883     RECOMP_ENTER(0x3803F770u);
    884 
    885 L_3803F770:
    886     PUSH32(esp, ebp); /* 0x3803F770: push ebp */
    887     ebp = esp; /* 0x3803F771: mov ebp, esp */
    888     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    890     esp = esp - 0xCu; /* 0x3803F773: sub esp, 0xc */
    891     _flag_k = FK_CMP;
    892     eax = MEM32(ebp + 0x8); /* 0x3803F776: mov eax, dword ptr [ebp + 8] */
    893     edx = MEM32(ebp + 0xC); /* 0x3803F779: mov edx, dword ptr [ebp + 0xc] */
    894     ecx = MEM32(ecx + 0x4); /* 0x3803F77C: mov ecx, dword ptr [ecx + 4] */
    895     MEM32(ebp + (-0xC)) = eax; /* 0x3803F77F: mov dword ptr [ebp - 0xc], eax */
    896     eax = ebp + (-0xC); /* 0x3803F782: lea eax, [ebp - 0xc] */
    897     PUSH32(esp, eax); /* 0x3803F785: push eax */
    898     MEM32(ebp + (-0x8)) = 0; /* 0x3803F786: mov dword ptr [ebp - 8], 0 */
    899     MEM32(ebp + (-0x4)) = edx; /* 0x3803F78D: mov dword ptr [ebp - 4], edx */
    900     RECOMP_ICALL(0x3802B4D0u); /* 0x3803F790: call 0x3802b4d0 */ /* not lifted */
    901     RECOMP_FLAGS_IN();
    902     esp = ebp; /* 0x3803F795: mov esp, ebp */
    903     ebp = POP32_VAL(esp); /* 0x3803F797: pop ebp */
    904     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3803F798: ret 8 */
    905     RECOMP_REGS_OUT();
    906 }
    907 
    908 void sub_3803F7A0(void) {
    909     int _fpu_cmp = 0;
    910     uint32_t _cf = 0;
    911     int _df = 1;
    912     uint32_t _flag_k = FK_NONE;
    913     uint32_t _flag_a = 0, _flag_b = 0;
    914     uint32_t _itail_tgt = 0;
    915     RECOMP_REGS_LOCALS
    916     RECOMP_ENTER(0x3803F7A0u);
    917 
    918 L_3803F7A0:
    919     PUSH32(esp, ebp); /* 0x3803F7A0: push ebp */
    920     ebp = esp; /* 0x3803F7A1: mov ebp, esp */
    921     PUSH32(esp, esi); /* 0x3803F7A3: push esi */
    922     PUSH32(esp, edi); /* 0x3803F7A4: push edi */
    923     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    924     edx = 0; /* 0x3803F7A5: xor edx, edx */
    925     _cf = 0;
    926     _flag_k = FK_TEST;
    927     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    928     esi = 0; /* 0x3803F7A7: xor esi, esi */
    929     _cf = 0;
    930     _flag_k = FK_TEST;
    931     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    932     edi = 0; /* 0x3803F7A9: xor edi, edi */
    933     _cf = 0;
    934     _flag_k = FK_TEST;
    935     /* test ecx, ecx */ /* 0x3803F7AB: test ecx, ecx */
    936     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    937     _cf = 0;
    938     _flag_k = FK_TEST;
    939     if (TEST_Z(_flag_a, _flag_b)) goto L_3803F7B8; /* 0x3803F7AD: je 0x3803f7b8 */
    940 L_3803F7AF:
    941     edx = MEM32(ecx + 0x8); /* 0x3803F7AF: mov edx, dword ptr [ecx + 8] */
    942     esi = MEM32(ecx + 0xC); /* 0x3803F7B2: mov esi, dword ptr [ecx + 0xc] */
    943     edi = MEM32(ecx + 0x18); /* 0x3803F7B5: mov edi, dword ptr [ecx + 0x18] */
    944 L_3803F7B8:
    945     eax = MEM32(ebp + 0x8); /* 0x3803F7B8: mov eax, dword ptr [ebp + 8] */
    946     MEM32(eax + 0xC) = edi; /* 0x3803F7BB: mov dword ptr [eax + 0xc], edi */
    947     edi = POP32_VAL(esp); /* 0x3803F7BE: pop edi */
    948     MEM32(eax + 0x8) = esi; /* 0x3803F7BF: mov dword ptr [eax + 8], esi */
    949     MEM32(eax) = ecx; /* 0x3803F7C2: mov dword ptr [eax], ecx */
    950     MEM32(eax + 0x4) = edx; /* 0x3803F7C4: mov dword ptr [eax + 4], edx */
    951     esi = POP32_VAL(esp); /* 0x3803F7C7: pop esi */
    952     ebp = POP32_VAL(esp); /* 0x3803F7C8: pop ebp */
    953     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3803F7C9: ret 4 */
    954     RECOMP_REGS_OUT();
    955 }
    956 
    957 void sub_3803F7D0(void) {
    958     int _fpu_cmp = 0;
    959     uint32_t _cf = 0;
    960     int _df = 1;
    961     uint32_t _flag_k = FK_NONE;
    962     uint32_t _flag_a = 0, _flag_b = 0;
    963     uint32_t _itail_tgt = 0;
    964     RECOMP_REGS_LOCALS
    965     RECOMP_ENTER(0x3803F7D0u);
    966 
    967 L_3803F7D0:
    968     PUSH32(esp, ebp); /* 0x3803F7D0: push ebp */
    969     ebp = esp; /* 0x3803F7D1: mov ebp, esp */
    970     eax = MEM32(ebp + 0x8); /* 0x3803F7D3: mov eax, dword ptr [ebp + 8] */
    971     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    972     ecx = 0; /* 0x3803F7D6: xor ecx, ecx */
    973     _cf = 0;
    974     _flag_k = FK_TEST;
    975     MEM32(eax) = ecx; /* 0x3803F7D8: mov dword ptr [eax], ecx */
    976     MEM32(eax + 0x4) = ecx; /* 0x3803F7DA: mov dword ptr [eax + 4], ecx */
    977     MEM32(eax + 0x8) = ecx; /* 0x3803F7DD: mov dword ptr [eax + 8], ecx */
    978     MEM32(eax + 0xC) = ecx; /* 0x3803F7E0: mov dword ptr [eax + 0xc], ecx */
    979     ebp = POP32_VAL(esp); /* 0x3803F7E3: pop ebp */
    980     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3803F7E4: ret 4 */
    981     RECOMP_REGS_OUT();
    982 }
    983 
    984 void sub_3803F7F0(void) {
    985     int _fpu_cmp = 0;
    986     uint32_t _cf = 0;
    987     int _df = 1;
    988     uint32_t _flag_k = FK_NONE;
    989     uint32_t _flag_a = 0, _flag_b = 0;
    990     uint32_t _itail_tgt = 0;
    991     RECOMP_REGS_LOCALS
    992     RECOMP_ENTER(0x3803F7F0u);
    993 
    994 L_3803F7F0:
    995     RECOMP_ICALL(0x3803F800u); /* 0x3803F7F0: call 0x3803f800 */ /* not lifted */
    996     RECOMP_FLAGS_IN();
    997     goto L_3803F810; /* 0x3803F7F5: jmp 0x3803f810 */
    998 L_3803F810:
    999     PUSH32(esp, 0x3803F820u); /* 0x3803F810: push 0x3803f820 */
   1000     RECOMP_ICALL(0x3804B54Cu); /* 0x3803F815: call 0x3804b54c */ /* not lifted */
   1001     RECOMP_FLAGS_IN();
   1002     ecx = POP32_VAL(esp); /* 0x3803F81A: pop ecx */
   1003     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F81B: ret  */
   1004     RECOMP_REGS_OUT();
   1005 }
   1006 
   1007 void sub_3803F800(void) {
   1008     int _fpu_cmp = 0;
   1009     uint32_t _cf = 0;
   1010     int _df = 1;
   1011     uint32_t _flag_k = FK_NONE;
   1012     uint32_t _flag_a = 0, _flag_b = 0;
   1013     uint32_t _itail_tgt = 0;
   1014     RECOMP_REGS_LOCALS
   1015     RECOMP_ENTER(0x3803F800u);
   1016 
   1017 L_3803F800:
   1018     ecx = 0x3806F145u; /* 0x3803F800: mov ecx, 0x3806f145 */
   1019 L_3803F805:
   1020     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
   1021     { RECOMP_REGS_OUT(); return; } /* end of function */
   1022   _ljump:
   1023     switch (_itail_tgt) {
   1024       case 0x3803F800u: goto L_3803F800;
   1025       case 0x3803F805u: goto L_3803F805;
   1026       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1027     }
   1028     RECOMP_REGS_OUT();
   1029 }
   1030 
   1031 void sub_3803F810(void) {
   1032     int _fpu_cmp = 0;
   1033     uint32_t _cf = 0;
   1034     int _df = 1;
   1035     uint32_t _flag_k = FK_NONE;
   1036     uint32_t _flag_a = 0, _flag_b = 0;
   1037     uint32_t _itail_tgt = 0;
   1038     RECOMP_REGS_LOCALS
   1039     RECOMP_ENTER(0x3803F810u);
   1040 
   1041 L_3803F810:
   1042     PUSH32(esp, 0x3803F820u); /* 0x3803F810: push 0x3803f820 */
   1043     RECOMP_ICALL(0x3804B54Cu); /* 0x3803F815: call 0x3804b54c */ /* not lifted */
   1044     RECOMP_FLAGS_IN();
   1045     ecx = POP32_VAL(esp); /* 0x3803F81A: pop ecx */
   1046     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F81B: ret  */
   1047     RECOMP_REGS_OUT();
   1048 }
   1049 
   1050 void sub_3803F820(void) {
   1051     int _fpu_cmp = 0;
   1052     uint32_t _cf = 0;
   1053     int _df = 1;
   1054     uint32_t _flag_k = FK_NONE;
   1055     uint32_t _flag_a = 0, _flag_b = 0;
   1056     uint32_t _itail_tgt = 0;
   1057     RECOMP_REGS_LOCALS
   1058     RECOMP_ENTER(0x3803F820u);
   1059 
   1060 L_3803F820:
   1061     ecx = 0x3806F145u; /* 0x3803F820: mov ecx, 0x3806f145 */
   1062 L_3803F825:
   1063     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
   1064     { RECOMP_REGS_OUT(); return; } /* end of function */
   1065   _ljump:
   1066     switch (_itail_tgt) {
   1067       case 0x3803F820u: goto L_3803F820;
   1068       case 0x3803F825u: goto L_3803F825;
   1069       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1070     }
   1071     RECOMP_REGS_OUT();
   1072 }
   1073 
   1074 void sub_3803F830(void) {
   1075     int _fpu_cmp = 0;
   1076     uint32_t _cf = 0;
   1077     int _df = 1;
   1078     uint32_t _flag_k = FK_NONE;
   1079     uint32_t _flag_a = 0, _flag_b = 0;
   1080     uint32_t _itail_tgt = 0;
   1081     RECOMP_REGS_LOCALS
   1082     RECOMP_ENTER(0x3803F830u);
   1083 
   1084 L_3803F830:
   1085     RECOMP_ICALL(0x3803F840u); /* 0x3803F830: call 0x3803f840 */ /* not lifted */
   1086     RECOMP_FLAGS_IN();
   1087     goto L_3803F850; /* 0x3803F835: jmp 0x3803f850 */
   1088 L_3803F850:
   1089     PUSH32(esp, 0x3803F860u); /* 0x3803F850: push 0x3803f860 */
   1090     RECOMP_ICALL(0x3804B54Cu); /* 0x3803F855: call 0x3804b54c */ /* not lifted */
   1091     RECOMP_FLAGS_IN();
   1092     ecx = POP32_VAL(esp); /* 0x3803F85A: pop ecx */
   1093     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F85B: ret  */
   1094     RECOMP_REGS_OUT();
   1095 }
   1096 
   1097 void sub_3803F840(void) {
   1098     int _fpu_cmp = 0;
   1099     uint32_t _cf = 0;
   1100     int _df = 1;
   1101     uint32_t _flag_k = FK_NONE;
   1102     uint32_t _flag_a = 0, _flag_b = 0;
   1103     uint32_t _itail_tgt = 0;
   1104     RECOMP_REGS_LOCALS
   1105     RECOMP_ENTER(0x3803F840u);
   1106 
   1107 L_3803F840:
   1108     ecx = 0x3806F144u; /* 0x3803F840: mov ecx, 0x3806f144 */
   1109 L_3803F845:
   1110     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
   1111     { RECOMP_REGS_OUT(); return; } /* end of function */
   1112   _ljump:
   1113     switch (_itail_tgt) {
   1114       case 0x3803F840u: goto L_3803F840;
   1115       case 0x3803F845u: goto L_3803F845;
   1116       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1117     }
   1118     RECOMP_REGS_OUT();
   1119 }
   1120 
   1121 void sub_3803F850(void) {
   1122     int _fpu_cmp = 0;
   1123     uint32_t _cf = 0;
   1124     int _df = 1;
   1125     uint32_t _flag_k = FK_NONE;
   1126     uint32_t _flag_a = 0, _flag_b = 0;
   1127     uint32_t _itail_tgt = 0;
   1128     RECOMP_REGS_LOCALS
   1129     RECOMP_ENTER(0x3803F850u);
   1130 
   1131 L_3803F850:
   1132     PUSH32(esp, 0x3803F860u); /* 0x3803F850: push 0x3803f860 */
   1133     RECOMP_ICALL(0x3804B54Cu); /* 0x3803F855: call 0x3804b54c */ /* not lifted */
   1134     RECOMP_FLAGS_IN();
   1135     ecx = POP32_VAL(esp); /* 0x3803F85A: pop ecx */
   1136     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F85B: ret  */
   1137     RECOMP_REGS_OUT();
   1138 }
   1139 
   1140 void sub_3803F860(void) {
   1141     int _fpu_cmp = 0;
   1142     uint32_t _cf = 0;
   1143     int _df = 1;
   1144     uint32_t _flag_k = FK_NONE;
   1145     uint32_t _flag_a = 0, _flag_b = 0;
   1146     uint32_t _itail_tgt = 0;
   1147     RECOMP_REGS_LOCALS
   1148     RECOMP_ENTER(0x3803F860u);
   1149 
   1150 L_3803F860:
   1151     ecx = 0x3806F144u; /* 0x3803F860: mov ecx, 0x3806f144 */
   1152 L_3803F865:
   1153     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
   1154     { RECOMP_REGS_OUT(); return; } /* end of function */
   1155   _ljump:
   1156     switch (_itail_tgt) {
   1157       case 0x3803F860u: goto L_3803F860;
   1158       case 0x3803F865u: goto L_3803F865;
   1159       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1160     }
   1161     RECOMP_REGS_OUT();
   1162 }
   1163 
   1164 void sub_3803F870(void) {
   1165     int _fpu_cmp = 0;
   1166     uint32_t _cf = 0;
   1167     int _df = 1;
   1168     uint32_t _flag_k = FK_NONE;
   1169     uint32_t _flag_a = 0, _flag_b = 0;
   1170     uint32_t _itail_tgt = 0;
   1171     RECOMP_REGS_LOCALS
   1172     RECOMP_ENTER(0x3803F870u);
   1173 
   1174 L_3803F870:
   1175     PUSH32(esp, ebp); /* 0x3803F870: push ebp */
   1176     ebp = esp; /* 0x3803F871: mov ebp, esp */
   1177     PUSH32(esp, 0xFFFFFFFFu); /* 0x3803F873: push -1 */
   1178     PUSH32(esp, 0x3804D03Bu); /* 0x3803F875: push 0x3804d03b */
   1179     eax = MEM32(FS_BASE + (0)); /* 0x3803F87A: mov eax, dword ptr fs:[0] */
   1180     PUSH32(esp, eax); /* 0x3803F880: push eax */
   1181     MEM32(FS_BASE + (0)) = esp; /* 0x3803F881: mov dword ptr fs:[0], esp */
   1182     PUSH32(esp, ecx); /* 0x3803F888: push ecx */
   1183     PUSH32(esp, esi); /* 0x3803F889: push esi */
   1184     esi = ecx; /* 0x3803F88A: mov esi, ecx */
   1185     PUSH32(esp, edi); /* 0x3803F88C: push edi */
   1186     MEM32(ebp + (-0x10)) = esi; /* 0x3803F88D: mov dword ptr [ebp - 0x10], esi */
   1187     MEM32(esi) = 0x3804F48Cu; /* 0x3803F890: mov dword ptr [esi], 0x3804f48c */
   1188     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1189     edi = 0; /* 0x3803F896: xor edi, edi */
   1190     _cf = 0;
   1191     _flag_k = FK_TEST;
   1192     ecx = esi + 0x1C; /* 0x3803F898: lea ecx, [esi + 0x1c] */
   1193     MEM32(ebp + (-0x4)) = edi; /* 0x3803F89B: mov dword ptr [ebp - 4], edi */
   1194     RECOMP_ICALL(MEM32(0x3804E7A0)); /* 0x3803F89E: call dword ptr [0x3804e7a0] */
   1195     RECOMP_FLAGS_IN();
   1196     eax = MEM32(esi + 0x8); /* 0x3803F8A4: mov eax, dword ptr [esi + 8] */
   1197     PUSH32(esp, eax); /* 0x3803F8A7: push eax */
   1198     MEM32(ebp + (-0x10)) = eax; /* 0x3803F8A8: mov dword ptr [ebp - 0x10], eax */
   1199     RECOMP_ICALL(0x3804B4F6u); /* 0x3803F8AB: call 0x3804b4f6 */ /* not lifted */
   1200     RECOMP_FLAGS_IN();
   1201     ecx = MEM32(ebp + (-0xC)); /* 0x3803F8B0: mov ecx, dword ptr [ebp - 0xc] */
   1202     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1203     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1204     esp = esp + 4; /* 0x3803F8B3: add esp, 4 */
   1205     _flag_k = FK_ADD;
   1206     MEM32(esi + 0x8) = edi; /* 0x3803F8B6: mov dword ptr [esi + 8], edi */
   1207     MEM32(esi + 0xC) = edi; /* 0x3803F8B9: mov dword ptr [esi + 0xc], edi */
   1208     MEM32(esi + 0x10) = edi; /* 0x3803F8BC: mov dword ptr [esi + 0x10], edi */
   1209     edi = POP32_VAL(esp); /* 0x3803F8BF: pop edi */
   1210     esi = POP32_VAL(esp); /* 0x3803F8C0: pop esi */
   1211     MEM32(FS_BASE + (0)) = ecx; /* 0x3803F8C1: mov dword ptr fs:[0], ecx */
   1212     esp = ebp; /* 0x3803F8C8: mov esp, ebp */
   1213     ebp = POP32_VAL(esp); /* 0x3803F8CA: pop ebp */
   1214     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803F8CB: ret  */
   1215     RECOMP_REGS_OUT();
   1216 }
   1217 
   1218 void sub_3803F8D0(void) {
   1219     int _fpu_cmp = 0;
   1220     uint32_t _cf = 0;
   1221     int _df = 1;
   1222     uint32_t _flag_k = FK_NONE;
   1223     uint32_t _flag_a = 0, _flag_b = 0;
   1224     uint32_t _itail_tgt = 0;
   1225     RECOMP_REGS_LOCALS
   1226     RECOMP_ENTER(0x3803F8D0u);
   1227 
   1228 L_3803F8D0:
   1229     PUSH32(esp, ebp); /* 0x3803F8D0: push ebp */
   1230     ebp = esp; /* 0x3803F8D1: mov ebp, esp */
   1231     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1233     esp = esp - 0x14u; /* 0x3803F8D3: sub esp, 0x14 */
   1234     _flag_k = FK_CMP;
   1235     PUSH32(esp, ebx); /* 0x3803F8D6: push ebx */
   1236     PUSH32(esp, esi); /* 0x3803F8D7: push esi */
   1237     PUSH32(esp, edi); /* 0x3803F8D8: push edi */
   1238     eax = ebp + (-0x4); /* 0x3803F8D9: lea eax, [ebp - 4] */
   1239     edi = ecx; /* 0x3803F8DC: mov edi, ecx */
   1240     ecx = MEM32(ebp + 0x8); /* 0x3803F8DE: mov ecx, dword ptr [ebp + 8] */
   1241     PUSH32(esp, eax); /* 0x3803F8E1: push eax */
   1242     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3803F8E2: call dword ptr [0x3804e388] */
   1243     RECOMP_FLAGS_IN();
   1244     ebx = MEM32(ebp + (-0x4)); /* 0x3803F8E8: mov ebx, dword ptr [ebp - 4] */
   1245     /* test ebx, ebx */ /* 0x3803F8EB: test ebx, ebx */
   1246     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1247     _cf = 0;
   1248     _flag_k = FK_TEST;
   1249     if (TEST_Z(_flag_a, _flag_b)) goto L_3803F9FC; /* 0x3803F8ED: je 0x3803f9fc */
   1250 L_3803F8F3:
   1251     ecx = MEM32(edi + 0x8); /* 0x3803F8F3: mov ecx, dword ptr [edi + 8] */
   1252     /* test ecx, ecx */ /* 0x3803F8F6: test ecx, ecx */
   1253     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1254     _cf = 0;
   1255     _flag_k = FK_TEST;
   1256     esi = edi + 0x4; /* 0x3803F8F8: lea esi, [edi + 4] */
   1257     MEM32(ebp + (-0x14)) = 0; /* 0x3803F8FB: mov dword ptr [ebp - 0x14], 0 */
   1258     MEM32(ebp + (-0x10)) = 0; /* 0x3803F902: mov dword ptr [ebp - 0x10], 0 */
   1259     MEM32(ebp + (-0xC)) = 0; /* 0x3803F909: mov dword ptr [ebp - 0xc], 0 */
   1260     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803F916; /* 0x3803F910: jne 0x3803f916 */
   1261 L_3803F912:
   1262     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1263     edx = 0; /* 0x3803F912: xor edx, edx */
   1264     _cf = 0;
   1265     _flag_k = FK_TEST;
   1266     goto L_3803F92B; /* 0x3803F914: jmp 0x3803f92b */
   1267 L_3803F916:
   1268     edx = MEM32(esi + 0x8); /* 0x3803F916: mov edx, dword ptr [esi + 8] */
   1269     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1270     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1271     edx = edx - ecx; /* 0x3803F919: sub edx, ecx */
   1272     _flag_k = FK_CMP;
   1273     eax = 0x2AAAAAABu; /* 0x3803F91B: mov eax, 0x2aaaaaab */
   1274     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3803F920: imul edx */
   1275       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1276       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1277     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3803F922: sar edx, 1 */
   1278     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1279     edx = (uint32_t)((int32_t)edx >> 1u);
   1280     eax = edx; /* 0x3803F924: mov eax, edx */
   1281     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3803F926: shr eax, 0x1f */
   1282     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1283     eax = eax >> 31u; /* 0x3803F926: shr eax, 0x1f */
   1284     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1285     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1286     edx = edx + eax; /* 0x3803F929: add edx, eax */
   1287     _flag_k = FK_ADD;
   1288 L_3803F92B:
   1289     /* cmp edx, ebx */ /* 0x3803F92B: cmp edx, ebx */
   1290     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   1291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1292     _flag_k = FK_CMP;
   1293     if (CMP_AE(_flag_a, _flag_b)) goto L_3803F960; /* 0x3803F92D: jae 0x3803f960 */
   1294 L_3803F92F:
   1295     /* test ecx, ecx */ /* 0x3803F92F: test ecx, ecx */
   1296     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1297     _cf = 0;
   1298     _flag_k = FK_TEST;
   1299     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803F937; /* 0x3803F931: jne 0x3803f937 */
   1300 L_3803F933:
   1301     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1302     edx = 0; /* 0x3803F933: xor edx, edx */
   1303     _cf = 0;
   1304     _flag_k = FK_TEST;
   1305     goto L_3803F94C; /* 0x3803F935: jmp 0x3803f94c */
   1306 L_3803F937:
   1307     edx = MEM32(esi + 0x8); /* 0x3803F937: mov edx, dword ptr [esi + 8] */
   1308     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1310     edx = edx - ecx; /* 0x3803F93A: sub edx, ecx */
   1311     _flag_k = FK_CMP;
   1312     eax = 0x2AAAAAABu; /* 0x3803F93C: mov eax, 0x2aaaaaab */
   1313     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3803F941: imul edx */
   1314       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1315       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1316     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3803F943: sar edx, 1 */
   1317     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1318     edx = (uint32_t)((int32_t)edx >> 1u);
   1319     ecx = edx; /* 0x3803F945: mov ecx, edx */
   1320     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3803F947: shr ecx, 0x1f */
   1321     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1322     ecx = ecx >> 31u; /* 0x3803F947: shr ecx, 0x1f */
   1323     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1324     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1325     edx = edx + ecx; /* 0x3803F94A: add edx, ecx */
   1326     _flag_k = FK_ADD;
   1327 L_3803F94C:
   1328     ecx = MEM32(esi + 0x8); /* 0x3803F94C: mov ecx, dword ptr [esi + 8] */
   1329     eax = ebp + (-0x14); /* 0x3803F94F: lea eax, [ebp - 0x14] */
   1330     PUSH32(esp, eax); /* 0x3803F952: push eax */
   1331     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   1332     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1333     ebx = ebx - edx; /* 0x3803F953: sub ebx, edx */
   1334     _flag_k = FK_CMP;
   1335     PUSH32(esp, ebx); /* 0x3803F955: push ebx */
   1336     PUSH32(esp, ecx); /* 0x3803F956: push ecx */
   1337     ecx = esi; /* 0x3803F957: mov ecx, esi */
   1338     RECOMP_ICALL(0x38009930u); /* 0x3803F959: call 0x38009930 */ /* not lifted */
   1339     RECOMP_FLAGS_IN();
   1340     goto L_3803F9A4; /* 0x3803F95E: jmp 0x3803f9a4 */
   1341 L_3803F960:
   1342     /* test ecx, ecx */ /* 0x3803F960: test ecx, ecx */
   1343     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1344     _cf = 0;
   1345     _flag_k = FK_TEST;
   1346     if (TEST_Z(_flag_a, _flag_b)) goto L_3803F9A4; /* 0x3803F962: je 0x3803f9a4 */
   1347 L_3803F964:
   1348     ebx = MEM32(esi + 0x8); /* 0x3803F964: mov ebx, dword ptr [esi + 8] */
   1349     edx = ebx; /* 0x3803F967: mov edx, ebx */
   1350     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1351     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1352     edx = edx - ecx; /* 0x3803F969: sub edx, ecx */
   1353     _flag_k = FK_CMP;
   1354     eax = 0x2AAAAAABu; /* 0x3803F96B: mov eax, 0x2aaaaaab */
   1355     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3803F970: imul edx */
   1356       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1357       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1358     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3803F972: sar edx, 1 */
   1359     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1360     edx = (uint32_t)((int32_t)edx >> 1u);
   1361     eax = edx; /* 0x3803F974: mov eax, edx */
   1362     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3803F976: shr eax, 0x1f */
   1363     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1364     eax = eax >> 31u; /* 0x3803F976: shr eax, 0x1f */
   1365     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1367     edx = edx + eax; /* 0x3803F979: add edx, eax */
   1368     _flag_k = FK_ADD;
   1369     eax = MEM32(ebp + (-0x4)); /* 0x3803F97B: mov eax, dword ptr [ebp - 4] */
   1370     /* cmp eax, edx */ /* 0x3803F97E: cmp eax, edx */
   1371     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1373     _flag_k = FK_CMP;
   1374     if (CMP_AE(_flag_a, _flag_b)) goto L_3803F9A4; /* 0x3803F980: jae 0x3803f9a4 */
   1375 L_3803F982:
   1376     edx = eax + eax * 2; /* 0x3803F982: lea edx, [eax + eax*2] */
   1377     ecx = ecx + edx * 4; /* 0x3803F985: lea ecx, [ecx + edx*4] */
   1378     PUSH32(esp, ecx); /* 0x3803F988: push ecx */
   1379     PUSH32(esp, ebx); /* 0x3803F989: push ebx */
   1380     PUSH32(esp, ebx); /* 0x3803F98A: push ebx */
   1381     RECOMP_ICALL(0x3803FB90u); /* 0x3803F98B: call 0x3803fb90 */ /* not lifted */
   1382     RECOMP_FLAGS_IN();
   1383     ebx = eax; /* 0x3803F990: mov ebx, eax */
   1384     eax = MEM32(esi + 0x8); /* 0x3803F992: mov eax, dword ptr [esi + 8] */
   1385     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1386     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1387     esp = esp + 0xCu; /* 0x3803F995: add esp, 0xc */
   1388     _flag_k = FK_ADD;
   1389     PUSH32(esp, eax); /* 0x3803F998: push eax */
   1390     PUSH32(esp, ebx); /* 0x3803F999: push ebx */
   1391     ecx = esi; /* 0x3803F99A: mov ecx, esi */
   1392     RECOMP_ICALL(0x38042760u); /* 0x3803F99C: call 0x38042760 */ /* not lifted */
   1393     RECOMP_FLAGS_IN();
   1394     MEM32(esi + 0x8) = ebx; /* 0x3803F9A1: mov dword ptr [esi + 8], ebx */
   1395 L_3803F9A4:
   1396     esi = MEM32(ebp + 0x8); /* 0x3803F9A4: mov esi, dword ptr [ebp + 8] */
   1397     ebx = MEM32(0x3804E388); /* 0x3803F9A7: mov ebx, dword ptr [0x3804e388] */
   1398     ecx = edi + 0x14; /* 0x3803F9AD: lea ecx, [edi + 0x14] */
   1399     PUSH32(esp, ecx); /* 0x3803F9B0: push ecx */
   1400     ecx = esi; /* 0x3803F9B1: mov ecx, esi */
   1401     RECOMP_ICALL(ebx); /* 0x3803F9B3: call ebx */
   1402     RECOMP_FLAGS_IN();
   1403     edx = edi + 0x18; /* 0x3803F9B5: lea edx, [edi + 0x18] */
   1404     PUSH32(esp, edx); /* 0x3803F9B8: push edx */
   1405     ecx = esi; /* 0x3803F9B9: mov ecx, esi */
   1406     RECOMP_ICALL(ebx); /* 0x3803F9BB: call ebx */
   1407     RECOMP_FLAGS_IN();
   1408     eax = MEM32(ebp + (-0x4)); /* 0x3803F9BD: mov eax, dword ptr [ebp - 4] */
   1409     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1410     ebx = 0; /* 0x3803F9C0: xor ebx, ebx */
   1411     _cf = 0;
   1412     _flag_k = FK_TEST;
   1413     /* test eax, eax */ /* 0x3803F9C2: test eax, eax */
   1414     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1415     _cf = 0;
   1416     _flag_k = FK_TEST;
   1417     if (TEST_LE(_flag_a, _flag_b)) goto L_3803F9FC; /* 0x3803F9C4: jle 0x3803f9fc */
   1418 L_3803F9C6:
   1419     esi = MEM32(0x3804E390); /* 0x3803F9C6: mov esi, dword ptr [0x3804e390] */
   1420     MEM32(ebp + (-0x8)) = ebx; /* 0x3803F9CC: mov dword ptr [ebp - 8], ebx */
   1421 L_3803F9CF:
   1422     eax = MEM32(edi + 0x8); /* 0x3803F9CF: mov eax, dword ptr [edi + 8] */
   1423     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x8)));
   1424     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1425     eax = eax + MEM32(ebp + (-0x8)); /* 0x3803F9D2: add eax, dword ptr [ebp - 8] */
   1426     _flag_k = FK_ADD;
   1427     ecx = eax + 0x8; /* 0x3803F9D5: lea ecx, [eax + 8] */
   1428     PUSH32(esp, ecx); /* 0x3803F9D8: push ecx */
   1429     ecx = MEM32(ebp + 0x8); /* 0x3803F9D9: mov ecx, dword ptr [ebp + 8] */
   1430     edx = eax + 0x4; /* 0x3803F9DC: lea edx, [eax + 4] */
   1431     PUSH32(esp, edx); /* 0x3803F9DF: push edx */
   1432     PUSH32(esp, eax); /* 0x3803F9E0: push eax */
   1433     RECOMP_ICALL(esi); /* 0x3803F9E1: call esi */
   1434     RECOMP_FLAGS_IN();
   1435     ecx = eax; /* 0x3803F9E3: mov ecx, eax */
   1436     RECOMP_ICALL(esi); /* 0x3803F9E5: call esi */
   1437     RECOMP_FLAGS_IN();
   1438     ecx = eax; /* 0x3803F9E7: mov ecx, eax */
   1439     RECOMP_ICALL(esi); /* 0x3803F9E9: call esi */
   1440     RECOMP_FLAGS_IN();
   1441     ecx = MEM32(ebp + (-0x8)); /* 0x3803F9EB: mov ecx, dword ptr [ebp - 8] */
   1442     eax = MEM32(ebp + (-0x4)); /* 0x3803F9EE: mov eax, dword ptr [ebp - 4] */
   1443     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   1444     ebx = ebx + 1; /* 0x3803F9F1: inc ebx */
   1445     _flag_k = FK_INC;
   1446     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   1447     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1448     ecx = ecx + 0xCu; /* 0x3803F9F2: add ecx, 0xc */
   1449     _flag_k = FK_ADD;
   1450     /* cmp ebx, eax */ /* 0x3803F9F5: cmp ebx, eax */
   1451     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   1452     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1453     _flag_k = FK_CMP;
   1454     MEM32(ebp + (-0x8)) = ecx; /* 0x3803F9F7: mov dword ptr [ebp - 8], ecx */
   1455     RECOMP_BACKEDGE();
   1456     if (CMP_L(_flag_a, _flag_b)) goto L_3803F9CF; /* 0x3803F9FA: jl 0x3803f9cf */
   1457 L_3803F9FC:
   1458     esi = MEM32(edi + 0x14); /* 0x3803F9FC: mov esi, dword ptr [edi + 0x14] */
   1459     /* cmp esi, MEM32(edi + 0x18) */ /* 0x3803F9FF: cmp esi, dword ptr [edi + 0x18] */
   1460     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x18));
   1461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1462     _flag_k = FK_CMP;
   1463     if (CMP_GE(_flag_a, _flag_b)) goto L_3803FA24; /* 0x3803FA02: jge 0x3803fa24 */
   1464 L_3803FA04:
   1465     ebx = esi + esi * 2; /* 0x3803FA04: lea ebx, [esi + esi*2] */
   1466     if (2u) _cf = (((ebx) >> 30) & 1u); /* 0x3803FA07: shl ebx, 2 */
   1467     if (2u) { _flag_a = recomp_flags_pack((ebx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1468     ebx = ebx << 2u; /* 0x3803FA07: shl ebx, 2 */
   1469 L_3803FA0A:
   1470     eax = MEM32(edi + 0x8); /* 0x3803FA0A: mov eax, dword ptr [edi + 8] */
   1471     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1472     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1473     eax = eax + ebx; /* 0x3803FA0D: add eax, ebx */
   1474     _flag_k = FK_ADD;
   1475     PUSH32(esp, eax); /* 0x3803FA0F: push eax */
   1476     ecx = edi + 0x1C; /* 0x3803FA10: lea ecx, [edi + 0x1c] */
   1477     RECOMP_ICALL(MEM32(0x3804E7A4)); /* 0x3803FA13: call dword ptr [0x3804e7a4] */
   1478     RECOMP_FLAGS_IN();
   1479     eax = MEM32(edi + 0x18); /* 0x3803FA19: mov eax, dword ptr [edi + 0x18] */
   1480     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   1481     esi = esi + 1; /* 0x3803FA1C: inc esi */
   1482     _flag_k = FK_INC;
   1483     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1484     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1485     ebx = ebx + 0xCu; /* 0x3803FA1D: add ebx, 0xc */
   1486     _flag_k = FK_ADD;
   1487     /* cmp esi, eax */ /* 0x3803FA20: cmp esi, eax */
   1488     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1489     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1490     _flag_k = FK_CMP;
   1491     RECOMP_BACKEDGE();
   1492     if (CMP_L(_flag_a, _flag_b)) goto L_3803FA0A; /* 0x3803FA22: jl 0x3803fa0a */
   1493 L_3803FA24:
   1494     edi = POP32_VAL(esp); /* 0x3803FA24: pop edi */
   1495     esi = POP32_VAL(esp); /* 0x3803FA25: pop esi */
   1496     ebx = POP32_VAL(esp); /* 0x3803FA26: pop ebx */
   1497     esp = ebp; /* 0x3803FA27: mov esp, ebp */
   1498     ebp = POP32_VAL(esp); /* 0x3803FA29: pop ebp */
   1499     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3803FA2A: ret 4 */
   1500     RECOMP_REGS_OUT();
   1501 }
   1502 
   1503 void sub_3803FA30(void) {
   1504     int _fpu_cmp = 0;
   1505     uint32_t _cf = 0;
   1506     int _df = 1;
   1507     uint32_t _flag_k = FK_NONE;
   1508     uint32_t _flag_a = 0, _flag_b = 0;
   1509     uint32_t _itail_tgt = 0;
   1510     RECOMP_REGS_LOCALS
   1511     RECOMP_ENTER(0x3803FA30u);
   1512 
   1513 L_3803FA30:
   1514     PUSH32(esp, ebp); /* 0x3803FA30: push ebp */
   1515     ebp = esp; /* 0x3803FA31: mov ebp, esp */
   1516     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   1517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1518     esp = esp - 0x2Cu; /* 0x3803FA33: sub esp, 0x2c */
   1519     _flag_k = FK_CMP;
   1520     eax = MEM32(ebp + 0x8); /* 0x3803FA36: mov eax, dword ptr [ebp + 8] */
   1521     PUSH32(esp, ebx); /* 0x3803FA39: push ebx */
   1522     PUSH32(esp, esi); /* 0x3803FA3A: push esi */
   1523     esi = ecx; /* 0x3803FA3B: mov esi, ecx */
   1524     ecx = MEM32(eax + 0x8); /* 0x3803FA3D: mov ecx, dword ptr [eax + 8] */
   1525     eax = MEM32(esi + 0x8); /* 0x3803FA40: mov eax, dword ptr [esi + 8] */
   1526     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1527     ebx = 0; /* 0x3803FA43: xor ebx, ebx */
   1528     _cf = 0;
   1529     _flag_k = FK_TEST;
   1530     /* cmp eax, ebx */ /* 0x3803FA45: cmp eax, ebx */
   1531     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1532     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1533     _flag_k = FK_CMP;
   1534     PUSH32(esp, edi); /* 0x3803FA47: push edi */
   1535     MEM32(ebp + (-0xC)) = ebx; /* 0x3803FA48: mov dword ptr [ebp - 0xc], ebx */
   1536     MEM32(ebp + (-0x14)) = ecx; /* 0x3803FA4B: mov dword ptr [ebp - 0x14], ecx */
   1537     if (CMP_NE(_flag_a, _flag_b)) goto L_3803FA55; /* 0x3803FA4E: jne 0x3803fa55 */
   1538 L_3803FA50:
   1539     MEM32(ebp + (-0x10)) = ebx; /* 0x3803FA50: mov dword ptr [ebp - 0x10], ebx */
   1540     goto L_3803FA6D; /* 0x3803FA53: jmp 0x3803fa6d */
   1541 L_3803FA55:
   1542     ecx = MEM32(esi + 0xC); /* 0x3803FA55: mov ecx, dword ptr [esi + 0xc] */
   1543     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1545     ecx = ecx - eax; /* 0x3803FA58: sub ecx, eax */
   1546     _flag_k = FK_CMP;
   1547     eax = 0x2AAAAAABu; /* 0x3803FA5A: mov eax, 0x2aaaaaab */
   1548     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3803FA5F: imul ecx */
   1549       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1550       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1551     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3803FA61: sar edx, 1 */
   1552     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1553     edx = (uint32_t)((int32_t)edx >> 1u);
   1554     eax = edx; /* 0x3803FA63: mov eax, edx */
   1555     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3803FA65: shr eax, 0x1f */
   1556     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1557     eax = eax >> 31u; /* 0x3803FA65: shr eax, 0x1f */
   1558     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1560     edx = edx + eax; /* 0x3803FA68: add edx, eax */
   1561     _flag_k = FK_ADD;
   1562     MEM32(ebp + (-0x10)) = edx; /* 0x3803FA6A: mov dword ptr [ebp - 0x10], edx */
   1563 L_3803FA6D:
   1564     edi = 1; /* 0x3803FA6D: mov edi, 1 */
   1565 L_3803FA72:
   1566     eax = MEM32(esi + 0x8); /* 0x3803FA72: mov eax, dword ptr [esi + 8] */
   1567     /* test eax, eax */ /* 0x3803FA75: test eax, eax */
   1568     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1569     _cf = 0;
   1570     _flag_k = FK_TEST;
   1571     if (TEST_Z(_flag_a, _flag_b)) goto L_3803FB20; /* 0x3803FA77: je 0x3803fb20 */
   1572 L_3803FA7D:
   1573     ecx = MEM32(esi + 0xC); /* 0x3803FA7D: mov ecx, dword ptr [esi + 0xc] */
   1574     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1575     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1576     ecx = ecx - eax; /* 0x3803FA80: sub ecx, eax */
   1577     _flag_k = FK_CMP;
   1578     eax = 0x2AAAAAABu; /* 0x3803FA82: mov eax, 0x2aaaaaab */
   1579     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3803FA87: imul ecx */
   1580       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1581       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1582     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3803FA89: sar edx, 1 */
   1583     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1584     edx = (uint32_t)((int32_t)edx >> 1u);
   1585     ecx = edx; /* 0x3803FA8B: mov ecx, edx */
   1586     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3803FA8D: shr ecx, 0x1f */
   1587     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1588     ecx = ecx >> 31u; /* 0x3803FA8D: shr ecx, 0x1f */
   1589     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1590     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1591     edx = edx + ecx; /* 0x3803FA90: add edx, ecx */
   1592     _flag_k = FK_ADD;
   1593     eax = edi + (-0x1); /* 0x3803FA92: lea eax, [edi - 1] */
   1594     /* cmp eax, edx */ /* 0x3803FA95: cmp eax, edx */
   1595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1597     _flag_k = FK_CMP;
   1598     if (CMP_AE(_flag_a, _flag_b)) goto L_3803FB20; /* 0x3803FA97: jae 0x3803fb20 */
   1599 L_3803FA9D:
   1600     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1601     edx = 0; /* 0x3803FA9D: xor edx, edx */
   1602     _cf = 0;
   1603     _flag_k = FK_TEST;
   1604     eax = edi; /* 0x3803FA9F: mov eax, edi */
   1605     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(ebp + (-0x10)); /* 0x3803FAA1: div dword ptr [ebp - 0x10] */
   1606       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   1607       else { eax = 0; edx = 0; } }
   1608     ecx = MEM32(esi + 0x8); /* 0x3803FAA4: mov ecx, dword ptr [esi + 8] */
   1609     fp_push(*(float*)&MEM32(ebx + ecx + 0x8)); /* 0x3803FAA7: fld dword ptr [ebx + ecx + 8] */
   1610     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3803FAAB: fsub dword ptr [ebp - 0x14] */
   1611     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3803FAAE: fstp dword ptr [ebp - 8] */
   1612     edx = edx + edx * 2; /* 0x3803FAB1: lea edx, [edx + edx*2] */
   1613     fp_push(*(float*)&MEM32(ecx + edx * 4 + 0x8)); /* 0x3803FAB4: fld dword ptr [ecx + edx*4 + 8] */
   1614     edx = ecx + edx * 4; /* 0x3803FAB8: lea edx, [ecx + edx*4] */
   1615     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3803FABB: fsub dword ptr [ebp - 0x14] */
   1616     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3803FABE: fst dword ptr [ebp - 4] */
   1617     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3803FAC1: fmul dword ptr [ebp - 8] */
   1618     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E928)); /* 0x3803FAC4: fcomp qword ptr [0x3804e928] */
   1619     fp_pop();
   1620     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803FACA: fnstsw ax */
   1621     /* test HI8(eax), 1 */ /* 0x3803FACC: test ah, 1 */
   1622     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1623     _cf = 0;
   1624     _flag_k = FK_NARROW(FK_TEST, 24);
   1625     if (TEST_Z(_flag_a, _flag_b)) goto L_3803FB17; /* 0x3803FACF: je 0x3803fb17 */
   1626 L_3803FAD1:
   1627     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3803FAD1: fld dword ptr [ebp - 4] */
   1628     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3803FAD4: fsub dword ptr [ebp - 8] */
   1629     fp_push(_st[0]); /* 0x3803FAD7: fld st(0) */
   1630     _st[0] = fabs(_st[0]); /* 0x3803FAD9: fabs  */
   1631     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804F8B0)); /* 0x3803FADB: fcomp qword ptr [0x3804f8b0] */
   1632     fp_pop();
   1633     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803FAE1: fnstsw ax */
   1634     /* test HI8(eax), 1 */ /* 0x3803FAE3: test ah, 1 */
   1635     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1636     _cf = 0;
   1637     _flag_k = FK_NARROW(FK_TEST, 24);
   1638     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803FB15; /* 0x3803FAE6: jne 0x3803fb15 */
   1639 L_3803FAE8:
   1640     fp_push(*(float*)&MEM32(ebx + ecx)); /* 0x3803FAE8: fld dword ptr [ebx + ecx] */
   1641     eax = MEM32(ebp + 0x8); /* 0x3803FAEB: mov eax, dword ptr [ebp + 8] */
   1642     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3803FAEE: fmul dword ptr [ebp - 4] */
   1643     fp_push(*(float*)&MEM32(edx)); /* 0x3803FAF1: fld dword ptr [edx] */
   1644     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3803FAF3: fmul dword ptr [ebp - 8] */
   1645     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803FAF6: fsubp st(1) */
   1646     _st[0] /= _st[1]; /* 0x3803FAF8: fdiv st(1) */
   1647     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(eax)); /* 0x3803FAFA: fcomp dword ptr [eax] */
   1648     fp_pop();
   1649     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803FAFC: fnstsw ax */
   1650     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803FAFE: fstp st(0) */
   1651     /* test HI8(eax), 0x41u */ /* 0x3803FB00: test ah, 0x41 */
   1652     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1653     _cf = 0;
   1654     _flag_k = FK_NARROW(FK_TEST, 24);
   1655     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803FB17; /* 0x3803FB03: jne 0x3803fb17 */
   1656 L_3803FB05:
   1657     eax = MEM32(ebp + (-0xC)); /* 0x3803FB05: mov eax, dword ptr [ebp - 0xc] */
   1658     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1659     eax = eax + 1; /* 0x3803FB08: inc eax */
   1660     _flag_k = FK_INC;
   1661     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1662     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1663     ebx = ebx + 0xCu; /* 0x3803FB09: add ebx, 0xc */
   1664     _flag_k = FK_ADD;
   1665     MEM32(ebp + (-0xC)) = eax; /* 0x3803FB0C: mov dword ptr [ebp - 0xc], eax */
   1666     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   1667     edi = edi + 1; /* 0x3803FB0F: inc edi */
   1668     _flag_k = FK_INC;
   1669     RECOMP_BACKEDGE();
   1670     goto L_3803FA72; /* 0x3803FB10: jmp 0x3803fa72 */
   1671 L_3803FB15:
   1672     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803FB15: fstp st(0) */
   1673 L_3803FB17:
   1674     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1675     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1676     ebx = ebx + 0xCu; /* 0x3803FB17: add ebx, 0xc */
   1677     _flag_k = FK_ADD;
   1678     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   1679     edi = edi + 1; /* 0x3803FB1A: inc edi */
   1680     _flag_k = FK_INC;
   1681     RECOMP_BACKEDGE();
   1682     goto L_3803FA72; /* 0x3803FB1B: jmp 0x3803fa72 */
   1683 L_3803FB20:
   1684     /* test MEM8(ebp + (-0xC)), 1 */ /* 0x3803FB20: test byte ptr [ebp - 0xc], 1 */
   1685     _flag_a = (uint32_t)(MEM8(ebp + (-0xC))) << 24; _flag_b = (uint32_t)(1) << 24;
   1686     _cf = 0;
   1687     _flag_k = FK_NARROW(FK_TEST, 24);
   1688     if (TEST_Z(_flag_a, _flag_b)) goto L_3803FB7F; /* 0x3803FB24: je 0x3803fb7f */
   1689 L_3803FB26:
   1690     ecx = ebp + 0x8; /* 0x3803FB26: lea ecx, [ebp + 8] */
   1691     PUSH32(esp, ecx); /* 0x3803FB29: push ecx */
   1692     ecx = MEM32(ebp + 0x8); /* 0x3803FB2A: mov ecx, dword ptr [ebp + 8] */
   1693     edx = ebp + (-0x20); /* 0x3803FB2D: lea edx, [ebp - 0x20] */
   1694     PUSH32(esp, edx); /* 0x3803FB30: push edx */
   1695     eax = ebp + (-0x2C); /* 0x3803FB31: lea eax, [ebp - 0x2c] */
   1696     PUSH32(esp, eax); /* 0x3803FB34: push eax */
   1697     PUSH32(esp, ecx); /* 0x3803FB35: push ecx */
   1698     ecx = esi + 0x1C; /* 0x3803FB36: lea ecx, [esi + 0x1c] */
   1699     MEM32(ebp + (-0x2C)) = 0; /* 0x3803FB39: mov dword ptr [ebp - 0x2c], 0 */
   1700     MEM32(ebp + (-0x28)) = 0; /* 0x3803FB40: mov dword ptr [ebp - 0x28], 0 */
   1701     MEM32(ebp + (-0x24)) = 0; /* 0x3803FB47: mov dword ptr [ebp - 0x24], 0 */
   1702     MEM32(ebp + (-0x20)) = 0; /* 0x3803FB4E: mov dword ptr [ebp - 0x20], 0 */
   1703     MEM32(ebp + (-0x1C)) = 0; /* 0x3803FB55: mov dword ptr [ebp - 0x1c], 0 */
   1704     MEM32(ebp + (-0x18)) = 0; /* 0x3803FB5C: mov dword ptr [ebp - 0x18], 0 */
   1705     RECOMP_ICALL(MEM32(0x3804E7A8)); /* 0x3803FB63: call dword ptr [0x3804e7a8] */
   1706     RECOMP_FLAGS_IN();
   1707     fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x3803FB69: fld dword ptr [esi + 0x44] */
   1708     _st[0] = (double)*(float*)ADDR(ebp + 0x8) / _st[0]; /* 0x3803FB6C: fdivr dword ptr [ebp + 8] */
   1709     edx = MEM32(ebp + 0xC); /* 0x3803FB6F: mov edx, dword ptr [ebp + 0xc] */
   1710     edi = POP32_VAL(esp); /* 0x3803FB72: pop edi */
   1711     esi = POP32_VAL(esp); /* 0x3803FB73: pop esi */
   1712     SET_LO8(eax, 1); /* 0x3803FB74: mov al, 1 */
   1713     ebx = POP32_VAL(esp); /* 0x3803FB76: pop ebx */
   1714     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x3803FB77: fstp dword ptr [edx] */
   1715     esp = ebp; /* 0x3803FB79: mov esp, ebp */
   1716     ebp = POP32_VAL(esp); /* 0x3803FB7B: pop ebp */
   1717     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3803FB7C: ret 8 */
   1718 L_3803FB7F:
   1719     edi = POP32_VAL(esp); /* 0x3803FB7F: pop edi */
   1720     esi = POP32_VAL(esp); /* 0x3803FB80: pop esi */
   1721     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   1722     SET_LO8(eax, 0); /* 0x3803FB81: xor al, al */
   1723     _cf = 0;
   1724     _flag_k = FK_NARROW(FK_TEST, 24);
   1725     ebx = POP32_VAL(esp); /* 0x3803FB83: pop ebx */
   1726     esp = ebp; /* 0x3803FB84: mov esp, ebp */
   1727     ebp = POP32_VAL(esp); /* 0x3803FB86: pop ebp */
   1728     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3803FB87: ret 8 */
   1729     RECOMP_REGS_OUT();
   1730 }
   1731 
   1732 void sub_3803FA72(void) {
   1733     int _fpu_cmp = 0;
   1734     uint32_t _cf = 0;
   1735     int _df = 1;
   1736     uint32_t _flag_k = FK_NONE;
   1737     uint32_t _flag_a = 0, _flag_b = 0;
   1738     uint32_t _itail_tgt = 0;
   1739     RECOMP_REGS_LOCALS
   1740     RECOMP_ENTER(0x3803FA72u);
   1741 
   1742 L_3803FA72:
   1743     eax = MEM32(esi + 0x8); /* 0x3803FA72: mov eax, dword ptr [esi + 8] */
   1744     /* test eax, eax */ /* 0x3803FA75: test eax, eax */
   1745     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1746     _cf = 0;
   1747     _flag_k = FK_TEST;
   1748     if (TEST_Z(_flag_a, _flag_b)) goto L_3803FB20; /* 0x3803FA77: je 0x3803fb20 */
   1749 L_3803FA7D:
   1750     ecx = MEM32(esi + 0xC); /* 0x3803FA7D: mov ecx, dword ptr [esi + 0xc] */
   1751     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1753     ecx = ecx - eax; /* 0x3803FA80: sub ecx, eax */
   1754     _flag_k = FK_CMP;
   1755     eax = 0x2AAAAAABu; /* 0x3803FA82: mov eax, 0x2aaaaaab */
   1756     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3803FA87: imul ecx */
   1757       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1758       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1759     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3803FA89: sar edx, 1 */
   1760     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1761     edx = (uint32_t)((int32_t)edx >> 1u);
   1762     ecx = edx; /* 0x3803FA8B: mov ecx, edx */
   1763     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3803FA8D: shr ecx, 0x1f */
   1764     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1765     ecx = ecx >> 31u; /* 0x3803FA8D: shr ecx, 0x1f */
   1766     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   1767     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1768     edx = edx + ecx; /* 0x3803FA90: add edx, ecx */
   1769     _flag_k = FK_ADD;
   1770     eax = edi + (-0x1); /* 0x3803FA92: lea eax, [edi - 1] */
   1771     /* cmp eax, edx */ /* 0x3803FA95: cmp eax, edx */
   1772     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1773     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1774     _flag_k = FK_CMP;
   1775     if (CMP_AE(_flag_a, _flag_b)) goto L_3803FB20; /* 0x3803FA97: jae 0x3803fb20 */
   1776 L_3803FA9D:
   1777     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1778     edx = 0; /* 0x3803FA9D: xor edx, edx */
   1779     _cf = 0;
   1780     _flag_k = FK_TEST;
   1781     eax = edi; /* 0x3803FA9F: mov eax, edi */
   1782     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(ebp + (-0x10)); /* 0x3803FAA1: div dword ptr [ebp - 0x10] */
   1783       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   1784       else { eax = 0; edx = 0; } }
   1785     ecx = MEM32(esi + 0x8); /* 0x3803FAA4: mov ecx, dword ptr [esi + 8] */
   1786     fp_push(*(float*)&MEM32(ebx + ecx + 0x8)); /* 0x3803FAA7: fld dword ptr [ebx + ecx + 8] */
   1787     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3803FAAB: fsub dword ptr [ebp - 0x14] */
   1788     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3803FAAE: fstp dword ptr [ebp - 8] */
   1789     edx = edx + edx * 2; /* 0x3803FAB1: lea edx, [edx + edx*2] */
   1790     fp_push(*(float*)&MEM32(ecx + edx * 4 + 0x8)); /* 0x3803FAB4: fld dword ptr [ecx + edx*4 + 8] */
   1791     edx = ecx + edx * 4; /* 0x3803FAB8: lea edx, [ecx + edx*4] */
   1792     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3803FABB: fsub dword ptr [ebp - 0x14] */
   1793     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3803FABE: fst dword ptr [ebp - 4] */
   1794     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3803FAC1: fmul dword ptr [ebp - 8] */
   1795     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804E928)); /* 0x3803FAC4: fcomp qword ptr [0x3804e928] */
   1796     fp_pop();
   1797     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803FACA: fnstsw ax */
   1798     /* test HI8(eax), 1 */ /* 0x3803FACC: test ah, 1 */
   1799     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1800     _cf = 0;
   1801     _flag_k = FK_NARROW(FK_TEST, 24);
   1802     if (TEST_Z(_flag_a, _flag_b)) goto L_3803FB17; /* 0x3803FACF: je 0x3803fb17 */
   1803 L_3803FAD1:
   1804     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3803FAD1: fld dword ptr [ebp - 4] */
   1805     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3803FAD4: fsub dword ptr [ebp - 8] */
   1806     fp_push(_st[0]); /* 0x3803FAD7: fld st(0) */
   1807     _st[0] = fabs(_st[0]); /* 0x3803FAD9: fabs  */
   1808     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x3804F8B0)); /* 0x3803FADB: fcomp qword ptr [0x3804f8b0] */
   1809     fp_pop();
   1810     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803FAE1: fnstsw ax */
   1811     /* test HI8(eax), 1 */ /* 0x3803FAE3: test ah, 1 */
   1812     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1813     _cf = 0;
   1814     _flag_k = FK_NARROW(FK_TEST, 24);
   1815     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803FB15; /* 0x3803FAE6: jne 0x3803fb15 */
   1816 L_3803FAE8:
   1817     fp_push(*(float*)&MEM32(ebx + ecx)); /* 0x3803FAE8: fld dword ptr [ebx + ecx] */
   1818     eax = MEM32(ebp + 0x8); /* 0x3803FAEB: mov eax, dword ptr [ebp + 8] */
   1819     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3803FAEE: fmul dword ptr [ebp - 4] */
   1820     fp_push(*(float*)&MEM32(edx)); /* 0x3803FAF1: fld dword ptr [edx] */
   1821     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3803FAF3: fmul dword ptr [ebp - 8] */
   1822     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3803FAF6: fsubp st(1) */
   1823     _st[0] /= _st[1]; /* 0x3803FAF8: fdiv st(1) */
   1824     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(eax)); /* 0x3803FAFA: fcomp dword ptr [eax] */
   1825     fp_pop();
   1826     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3803FAFC: fnstsw ax */
   1827     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803FAFE: fstp st(0) */
   1828     /* test HI8(eax), 0x41u */ /* 0x3803FB00: test ah, 0x41 */
   1829     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1830     _cf = 0;
   1831     _flag_k = FK_NARROW(FK_TEST, 24);
   1832     if (TEST_NZ(_flag_a, _flag_b)) goto L_3803FB17; /* 0x3803FB03: jne 0x3803fb17 */
   1833 L_3803FB05:
   1834     eax = MEM32(ebp + (-0xC)); /* 0x3803FB05: mov eax, dword ptr [ebp - 0xc] */
   1835     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1836     eax = eax + 1; /* 0x3803FB08: inc eax */
   1837     _flag_k = FK_INC;
   1838     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1839     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1840     ebx = ebx + 0xCu; /* 0x3803FB09: add ebx, 0xc */
   1841     _flag_k = FK_ADD;
   1842     MEM32(ebp + (-0xC)) = eax; /* 0x3803FB0C: mov dword ptr [ebp - 0xc], eax */
   1843     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   1844     edi = edi + 1; /* 0x3803FB0F: inc edi */
   1845     _flag_k = FK_INC;
   1846     RECOMP_BACKEDGE();
   1847     goto L_3803FA72; /* 0x3803FB10: jmp 0x3803fa72 */
   1848 L_3803FB15:
   1849     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3803FB15: fstp st(0) */
   1850 L_3803FB17:
   1851     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
   1852     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1853     ebx = ebx + 0xCu; /* 0x3803FB17: add ebx, 0xc */
   1854     _flag_k = FK_ADD;
   1855     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   1856     edi = edi + 1; /* 0x3803FB1A: inc edi */
   1857     _flag_k = FK_INC;
   1858     RECOMP_BACKEDGE();
   1859     goto L_3803FA72; /* 0x3803FB1B: jmp 0x3803fa72 */
   1860 L_3803FB20:
   1861     /* test MEM8(ebp + (-0xC)), 1 */ /* 0x3803FB20: test byte ptr [ebp - 0xc], 1 */
   1862     _flag_a = (uint32_t)(MEM8(ebp + (-0xC))) << 24; _flag_b = (uint32_t)(1) << 24;
   1863     _cf = 0;
   1864     _flag_k = FK_NARROW(FK_TEST, 24);
   1865     if (TEST_Z(_flag_a, _flag_b)) goto L_3803FB7F; /* 0x3803FB24: je 0x3803fb7f */
   1866 L_3803FB26:
   1867     ecx = ebp + 0x8; /* 0x3803FB26: lea ecx, [ebp + 8] */
   1868     PUSH32(esp, ecx); /* 0x3803FB29: push ecx */
   1869     ecx = MEM32(ebp + 0x8); /* 0x3803FB2A: mov ecx, dword ptr [ebp + 8] */
   1870     edx = ebp + (-0x20); /* 0x3803FB2D: lea edx, [ebp - 0x20] */
   1871     PUSH32(esp, edx); /* 0x3803FB30: push edx */
   1872     eax = ebp + (-0x2C); /* 0x3803FB31: lea eax, [ebp - 0x2c] */
   1873     PUSH32(esp, eax); /* 0x3803FB34: push eax */
   1874     PUSH32(esp, ecx); /* 0x3803FB35: push ecx */
   1875     ecx = esi + 0x1C; /* 0x3803FB36: lea ecx, [esi + 0x1c] */
   1876     MEM32(ebp + (-0x2C)) = 0; /* 0x3803FB39: mov dword ptr [ebp - 0x2c], 0 */
   1877     MEM32(ebp + (-0x28)) = 0; /* 0x3803FB40: mov dword ptr [ebp - 0x28], 0 */
   1878     MEM32(ebp + (-0x24)) = 0; /* 0x3803FB47: mov dword ptr [ebp - 0x24], 0 */
   1879     MEM32(ebp + (-0x20)) = 0; /* 0x3803FB4E: mov dword ptr [ebp - 0x20], 0 */
   1880     MEM32(ebp + (-0x1C)) = 0; /* 0x3803FB55: mov dword ptr [ebp - 0x1c], 0 */
   1881     MEM32(ebp + (-0x18)) = 0; /* 0x3803FB5C: mov dword ptr [ebp - 0x18], 0 */
   1882     RECOMP_ICALL(MEM32(0x3804E7A8)); /* 0x3803FB63: call dword ptr [0x3804e7a8] */
   1883     RECOMP_FLAGS_IN();
   1884     fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x3803FB69: fld dword ptr [esi + 0x44] */
   1885     _st[0] = (double)*(float*)ADDR(ebp + 0x8) / _st[0]; /* 0x3803FB6C: fdivr dword ptr [ebp + 8] */
   1886     edx = MEM32(ebp + 0xC); /* 0x3803FB6F: mov edx, dword ptr [ebp + 0xc] */
   1887     edi = POP32_VAL(esp); /* 0x3803FB72: pop edi */
   1888     esi = POP32_VAL(esp); /* 0x3803FB73: pop esi */
   1889     SET_LO8(eax, 1); /* 0x3803FB74: mov al, 1 */
   1890     ebx = POP32_VAL(esp); /* 0x3803FB76: pop ebx */
   1891     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x3803FB77: fstp dword ptr [edx] */
   1892     esp = ebp; /* 0x3803FB79: mov esp, ebp */
   1893     ebp = POP32_VAL(esp); /* 0x3803FB7B: pop ebp */
   1894     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3803FB7C: ret 8 */
   1895 L_3803FB7F:
   1896     edi = POP32_VAL(esp); /* 0x3803FB7F: pop edi */
   1897     esi = POP32_VAL(esp); /* 0x3803FB80: pop esi */
   1898     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   1899     SET_LO8(eax, 0); /* 0x3803FB81: xor al, al */
   1900     _cf = 0;
   1901     _flag_k = FK_NARROW(FK_TEST, 24);
   1902     ebx = POP32_VAL(esp); /* 0x3803FB83: pop ebx */
   1903     esp = ebp; /* 0x3803FB84: mov esp, ebp */
   1904     ebp = POP32_VAL(esp); /* 0x3803FB86: pop ebp */
   1905     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3803FB87: ret 8 */
   1906     RECOMP_REGS_OUT();
   1907 }
   1908 
   1909 void sub_3803FB63(void) {
   1910     int _fpu_cmp = 0;
   1911     uint32_t _cf = 0;
   1912     int _df = 1;
   1913     uint32_t _flag_k = FK_NONE;
   1914     uint32_t _flag_a = 0, _flag_b = 0;
   1915     uint32_t _itail_tgt = 0;
   1916     RECOMP_REGS_LOCALS
   1917     RECOMP_ENTER(0x3803FB63u);
   1918 
   1919 L_3803FB63:
   1920     RECOMP_ICALL(MEM32(0x3804E7A8)); /* 0x3803FB63: call dword ptr [0x3804e7a8] */
   1921     RECOMP_FLAGS_IN();
   1922     fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x3803FB69: fld dword ptr [esi + 0x44] */
   1923     _st[0] = (double)*(float*)ADDR(ebp + 0x8) / _st[0]; /* 0x3803FB6C: fdivr dword ptr [ebp + 8] */
   1924     edx = MEM32(ebp + 0xC); /* 0x3803FB6F: mov edx, dword ptr [ebp + 0xc] */
   1925     edi = POP32_VAL(esp); /* 0x3803FB72: pop edi */
   1926     esi = POP32_VAL(esp); /* 0x3803FB73: pop esi */
   1927     SET_LO8(eax, 1); /* 0x3803FB74: mov al, 1 */
   1928     ebx = POP32_VAL(esp); /* 0x3803FB76: pop ebx */
   1929     { float _v = (float)fp_pop(); *(float*)ADDR(edx) = _v; } /* 0x3803FB77: fstp dword ptr [edx] */
   1930     esp = ebp; /* 0x3803FB79: mov esp, ebp */
   1931     ebp = POP32_VAL(esp); /* 0x3803FB7B: pop ebp */
   1932     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3803FB7C: ret 8 */
   1933     RECOMP_REGS_OUT();
   1934 }
   1935 
   1936 void sub_3803FB90(void) {
   1937     int _fpu_cmp = 0;
   1938     uint32_t _cf = 0;
   1939     int _df = 1;
   1940     uint32_t _flag_k = FK_NONE;
   1941     uint32_t _flag_a = 0, _flag_b = 0;
   1942     uint32_t _itail_tgt = 0;
   1943     RECOMP_REGS_LOCALS
   1944     RECOMP_ENTER(0x3803FB90u);
   1945 
   1946 L_3803FB90:
   1947     PUSH32(esp, ebp); /* 0x3803FB90: push ebp */
   1948     ebp = esp; /* 0x3803FB91: mov ebp, esp */
   1949     ecx = MEM32(ebp + 0x8); /* 0x3803FB93: mov ecx, dword ptr [ebp + 8] */
   1950     edx = MEM32(ebp + 0xC); /* 0x3803FB96: mov edx, dword ptr [ebp + 0xc] */
   1951     /* cmp ecx, edx */ /* 0x3803FB99: cmp ecx, edx */
   1952     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1954     _flag_k = FK_CMP;
   1955     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803FBC6; /* 0x3803FB9B: je 0x3803fbc6 */
   1956 L_3803FB9D:
   1957     eax = MEM32(ebp + 0x10); /* 0x3803FB9D: mov eax, dword ptr [ebp + 0x10] */
   1958     PUSH32(esp, ebx); /* 0x3803FBA0: push ebx */
   1959     PUSH32(esp, esi); /* 0x3803FBA1: push esi */
   1960     PUSH32(esp, edi); /* 0x3803FBA2: push edi */
   1961 L_3803FBA3:
   1962     esi = ecx; /* 0x3803FBA3: mov esi, ecx */
   1963     ebx = MEM32(esi); /* 0x3803FBA5: mov ebx, dword ptr [esi] */
   1964     edi = eax; /* 0x3803FBA7: mov edi, eax */
   1965     MEM32(edi) = ebx; /* 0x3803FBA9: mov dword ptr [edi], ebx */
   1966     ebx = MEM32(esi + 0x4); /* 0x3803FBAB: mov ebx, dword ptr [esi + 4] */
   1967     MEM32(edi + 0x4) = ebx; /* 0x3803FBAE: mov dword ptr [edi + 4], ebx */
   1968     esi = MEM32(esi + 0x8); /* 0x3803FBB1: mov esi, dword ptr [esi + 8] */
   1969     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   1970     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1971     ecx = ecx + 0xCu; /* 0x3803FBB4: add ecx, 0xc */
   1972     _flag_k = FK_ADD;
   1973     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1974     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1975     eax = eax + 0xCu; /* 0x3803FBB7: add eax, 0xc */
   1976     _flag_k = FK_ADD;
   1977     /* cmp ecx, edx */ /* 0x3803FBBA: cmp ecx, edx */
   1978     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1980     _flag_k = FK_CMP;
   1981     MEM32(edi + 0x8) = esi; /* 0x3803FBBC: mov dword ptr [edi + 8], esi */
   1982     RECOMP_BACKEDGE();
   1983     if (CMP_NE(_flag_a, _flag_b)) goto L_3803FBA3; /* 0x3803FBBF: jne 0x3803fba3 */
   1984 L_3803FBC1:
   1985     edi = POP32_VAL(esp); /* 0x3803FBC1: pop edi */
   1986     esi = POP32_VAL(esp); /* 0x3803FBC2: pop esi */
   1987     ebx = POP32_VAL(esp); /* 0x3803FBC3: pop ebx */
   1988     ebp = POP32_VAL(esp); /* 0x3803FBC4: pop ebp */
   1989     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FBC5: ret  */
   1990 L_3803FBC6:
   1991     eax = MEM32(ebp + 0x10); /* 0x3803FBC6: mov eax, dword ptr [ebp + 0x10] */
   1992     ebp = POP32_VAL(esp); /* 0x3803FBC9: pop ebp */
   1993     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FBCA: ret  */
   1994     RECOMP_REGS_OUT();
   1995 }
   1996 
   1997 void sub_3803FBD0(void) {
   1998     int _fpu_cmp = 0;
   1999     uint32_t _cf = 0;
   2000     int _df = 1;
   2001     uint32_t _flag_k = FK_NONE;
   2002     uint32_t _flag_a = 0, _flag_b = 0;
   2003     uint32_t _itail_tgt = 0;
   2004     RECOMP_REGS_LOCALS
   2005     RECOMP_ENTER(0x3803FBD0u);
   2006 
   2007 L_3803FBD0:
   2008     RECOMP_ICALL(0x3803FBE0u); /* 0x3803FBD0: call 0x3803fbe0 */ /* not lifted */
   2009     RECOMP_FLAGS_IN();
   2010     goto L_3803FBF0; /* 0x3803FBD5: jmp 0x3803fbf0 */
   2011 L_3803FBF0:
   2012     PUSH32(esp, 0x3803FC00u); /* 0x3803FBF0: push 0x3803fc00 */
   2013     RECOMP_ICALL(0x3804B54Cu); /* 0x3803FBF5: call 0x3804b54c */ /* not lifted */
   2014     RECOMP_FLAGS_IN();
   2015     ecx = POP32_VAL(esp); /* 0x3803FBFA: pop ecx */
   2016     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FBFB: ret  */
   2017     RECOMP_REGS_OUT();
   2018 }
   2019 
   2020 void sub_3803FBE0(void) {
   2021     int _fpu_cmp = 0;
   2022     uint32_t _cf = 0;
   2023     int _df = 1;
   2024     uint32_t _flag_k = FK_NONE;
   2025     uint32_t _flag_a = 0, _flag_b = 0;
   2026     uint32_t _itail_tgt = 0;
   2027     RECOMP_REGS_LOCALS
   2028     RECOMP_ENTER(0x3803FBE0u);
   2029 
   2030 L_3803FBE0:
   2031     ecx = 0x3806F18Du; /* 0x3803FBE0: mov ecx, 0x3806f18d */
   2032 L_3803FBE5:
   2033     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
   2034     { RECOMP_REGS_OUT(); return; } /* end of function */
   2035   _ljump:
   2036     switch (_itail_tgt) {
   2037       case 0x3803FBE0u: goto L_3803FBE0;
   2038       case 0x3803FBE5u: goto L_3803FBE5;
   2039       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2040     }
   2041     RECOMP_REGS_OUT();
   2042 }
   2043 
   2044 void sub_3803FBF0(void) {
   2045     int _fpu_cmp = 0;
   2046     uint32_t _cf = 0;
   2047     int _df = 1;
   2048     uint32_t _flag_k = FK_NONE;
   2049     uint32_t _flag_a = 0, _flag_b = 0;
   2050     uint32_t _itail_tgt = 0;
   2051     RECOMP_REGS_LOCALS
   2052     RECOMP_ENTER(0x3803FBF0u);
   2053 
   2054 L_3803FBF0:
   2055     PUSH32(esp, 0x3803FC00u); /* 0x3803FBF0: push 0x3803fc00 */
   2056     RECOMP_ICALL(0x3804B54Cu); /* 0x3803FBF5: call 0x3804b54c */ /* not lifted */
   2057     RECOMP_FLAGS_IN();
   2058     ecx = POP32_VAL(esp); /* 0x3803FBFA: pop ecx */
   2059     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FBFB: ret  */
   2060     RECOMP_REGS_OUT();
   2061 }
   2062 
   2063 void sub_3803FC00(void) {
   2064     int _fpu_cmp = 0;
   2065     uint32_t _cf = 0;
   2066     int _df = 1;
   2067     uint32_t _flag_k = FK_NONE;
   2068     uint32_t _flag_a = 0, _flag_b = 0;
   2069     uint32_t _itail_tgt = 0;
   2070     RECOMP_REGS_LOCALS
   2071     RECOMP_ENTER(0x3803FC00u);
   2072 
   2073 L_3803FC00:
   2074     ecx = 0x3806F18Du; /* 0x3803FC00: mov ecx, 0x3806f18d */
   2075 L_3803FC05:
   2076     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
   2077     { RECOMP_REGS_OUT(); return; } /* end of function */
   2078   _ljump:
   2079     switch (_itail_tgt) {
   2080       case 0x3803FC00u: goto L_3803FC00;
   2081       case 0x3803FC05u: goto L_3803FC05;
   2082       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2083     }
   2084     RECOMP_REGS_OUT();
   2085 }
   2086 
   2087 void sub_3803FC10(void) {
   2088     int _fpu_cmp = 0;
   2089     uint32_t _cf = 0;
   2090     int _df = 1;
   2091     uint32_t _flag_k = FK_NONE;
   2092     uint32_t _flag_a = 0, _flag_b = 0;
   2093     uint32_t _itail_tgt = 0;
   2094     RECOMP_REGS_LOCALS
   2095     RECOMP_ENTER(0x3803FC10u);
   2096 
   2097 L_3803FC10:
   2098     RECOMP_ICALL(0x3803FC20u); /* 0x3803FC10: call 0x3803fc20 */ /* not lifted */
   2099     RECOMP_FLAGS_IN();
   2100     goto L_3803FC30; /* 0x3803FC15: jmp 0x3803fc30 */
   2101 L_3803FC30:
   2102     PUSH32(esp, 0x3803FC40u); /* 0x3803FC30: push 0x3803fc40 */
   2103     RECOMP_ICALL(0x3804B54Cu); /* 0x3803FC35: call 0x3804b54c */ /* not lifted */
   2104     RECOMP_FLAGS_IN();
   2105     ecx = POP32_VAL(esp); /* 0x3803FC3A: pop ecx */
   2106     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FC3B: ret  */
   2107     RECOMP_REGS_OUT();
   2108 }
   2109 
   2110 void sub_3803FC20(void) {
   2111     int _fpu_cmp = 0;
   2112     uint32_t _cf = 0;
   2113     int _df = 1;
   2114     uint32_t _flag_k = FK_NONE;
   2115     uint32_t _flag_a = 0, _flag_b = 0;
   2116     uint32_t _itail_tgt = 0;
   2117     RECOMP_REGS_LOCALS
   2118     RECOMP_ENTER(0x3803FC20u);
   2119 
   2120 L_3803FC20:
   2121     ecx = 0x3806F18Cu; /* 0x3803FC20: mov ecx, 0x3806f18c */
   2122 L_3803FC25:
   2123     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
   2124     { RECOMP_REGS_OUT(); return; } /* end of function */
   2125   _ljump:
   2126     switch (_itail_tgt) {
   2127       case 0x3803FC20u: goto L_3803FC20;
   2128       case 0x3803FC25u: goto L_3803FC25;
   2129       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2130     }
   2131     RECOMP_REGS_OUT();
   2132 }
   2133 
   2134 void sub_3803FC30(void) {
   2135     int _fpu_cmp = 0;
   2136     uint32_t _cf = 0;
   2137     int _df = 1;
   2138     uint32_t _flag_k = FK_NONE;
   2139     uint32_t _flag_a = 0, _flag_b = 0;
   2140     uint32_t _itail_tgt = 0;
   2141     RECOMP_REGS_LOCALS
   2142     RECOMP_ENTER(0x3803FC30u);
   2143 
   2144 L_3803FC30:
   2145     PUSH32(esp, 0x3803FC40u); /* 0x3803FC30: push 0x3803fc40 */
   2146     RECOMP_ICALL(0x3804B54Cu); /* 0x3803FC35: call 0x3804b54c */ /* not lifted */
   2147     RECOMP_FLAGS_IN();
   2148     ecx = POP32_VAL(esp); /* 0x3803FC3A: pop ecx */
   2149     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FC3B: ret  */
   2150     RECOMP_REGS_OUT();
   2151 }
   2152 
   2153 void sub_3803FC40(void) {
   2154     int _fpu_cmp = 0;
   2155     uint32_t _cf = 0;
   2156     int _df = 1;
   2157     uint32_t _flag_k = FK_NONE;
   2158     uint32_t _flag_a = 0, _flag_b = 0;
   2159     uint32_t _itail_tgt = 0;
   2160     RECOMP_REGS_LOCALS
   2161     RECOMP_ENTER(0x3803FC40u);
   2162 
   2163 L_3803FC40:
   2164     ecx = 0x3806F18Cu; /* 0x3803FC40: mov ecx, 0x3806f18c */
   2165 L_3803FC45:
   2166     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
   2167     { RECOMP_REGS_OUT(); return; } /* end of function */
   2168   _ljump:
   2169     switch (_itail_tgt) {
   2170       case 0x3803FC40u: goto L_3803FC40;
   2171       case 0x3803FC45u: goto L_3803FC45;
   2172       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2173     }
   2174     RECOMP_REGS_OUT();
   2175 }
   2176 
   2177 void sub_3803FC50(void) {
   2178     int _fpu_cmp = 0;
   2179     uint32_t _cf = 0;
   2180     int _df = 1;
   2181     uint32_t _flag_k = FK_NONE;
   2182     uint32_t _flag_a = 0, _flag_b = 0;
   2183     uint32_t _itail_tgt = 0;
   2184     RECOMP_REGS_LOCALS
   2185     RECOMP_ENTER(0x3803FC50u);
   2186 
   2187 L_3803FC50:
   2188     goto L_3803FC60; /* 0x3803FC50: jmp 0x3803fc60 */
   2189 L_3803FC60:
   2190     MEM32(0x3806F188) = 0x3806B9CCu; /* 0x3803FC60: mov dword ptr [0x3806f188], 0x3806b9cc */
   2191     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FC6A: ret  */
   2192     RECOMP_REGS_OUT();
   2193 }
   2194 
   2195 void sub_3803FC60(void) {
   2196     int _fpu_cmp = 0;
   2197     uint32_t _cf = 0;
   2198     int _df = 1;
   2199     uint32_t _flag_k = FK_NONE;
   2200     uint32_t _flag_a = 0, _flag_b = 0;
   2201     uint32_t _itail_tgt = 0;
   2202     RECOMP_REGS_LOCALS
   2203     RECOMP_ENTER(0x3803FC60u);
   2204 
   2205 L_3803FC60:
   2206     MEM32(0x3806F188) = 0x3806B9CCu; /* 0x3803FC60: mov dword ptr [0x3806f188], 0x3806b9cc */
   2207     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FC6A: ret  */
   2208     RECOMP_REGS_OUT();
   2209 }
   2210 
   2211 void sub_3803FC70(void) {
   2212     int _fpu_cmp = 0;
   2213     uint32_t _cf = 0;
   2214     int _df = 1;
   2215     uint32_t _flag_k = FK_NONE;
   2216     uint32_t _flag_a = 0, _flag_b = 0;
   2217     uint32_t _itail_tgt = 0;
   2218     RECOMP_REGS_LOCALS
   2219     RECOMP_ENTER(0x3803FC70u);
   2220 
   2221 L_3803FC70:
   2222     goto L_3803FC80; /* 0x3803FC70: jmp 0x3803fc80 */
   2223 L_3803FC80:
   2224     MEM32(0x3806F184) = 0x3806BA00u; /* 0x3803FC80: mov dword ptr [0x3806f184], 0x3806ba00 */
   2225     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FC8A: ret  */
   2226     RECOMP_REGS_OUT();
   2227 }
   2228 
   2229 void sub_3803FC80(void) {
   2230     int _fpu_cmp = 0;
   2231     uint32_t _cf = 0;
   2232     int _df = 1;
   2233     uint32_t _flag_k = FK_NONE;
   2234     uint32_t _flag_a = 0, _flag_b = 0;
   2235     uint32_t _itail_tgt = 0;
   2236     RECOMP_REGS_LOCALS
   2237     RECOMP_ENTER(0x3803FC80u);
   2238 
   2239 L_3803FC80:
   2240     MEM32(0x3806F184) = 0x3806BA00u; /* 0x3803FC80: mov dword ptr [0x3806f184], 0x3806ba00 */
   2241     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FC8A: ret  */
   2242     RECOMP_REGS_OUT();
   2243 }
   2244 
   2245 void sub_3803FC90(void) {
   2246     int _fpu_cmp = 0;
   2247     uint32_t _cf = 0;
   2248     int _df = 1;
   2249     uint32_t _flag_k = FK_NONE;
   2250     uint32_t _flag_a = 0, _flag_b = 0;
   2251     uint32_t _itail_tgt = 0;
   2252     RECOMP_REGS_LOCALS
   2253     RECOMP_ENTER(0x3803FC90u);
   2254 
   2255 L_3803FC90:
   2256     goto L_3803FCA0; /* 0x3803FC90: jmp 0x3803fca0 */
   2257 L_3803FCA0:
   2258     MEM32(0x3806F180) = 0x3806BA3Cu; /* 0x3803FCA0: mov dword ptr [0x3806f180], 0x3806ba3c */
   2259     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FCAA: ret  */
   2260     RECOMP_REGS_OUT();
   2261 }
   2262 
   2263 void sub_3803FCA0(void) {
   2264     int _fpu_cmp = 0;
   2265     uint32_t _cf = 0;
   2266     int _df = 1;
   2267     uint32_t _flag_k = FK_NONE;
   2268     uint32_t _flag_a = 0, _flag_b = 0;
   2269     uint32_t _itail_tgt = 0;
   2270     RECOMP_REGS_LOCALS
   2271     RECOMP_ENTER(0x3803FCA0u);
   2272 
   2273 L_3803FCA0:
   2274     MEM32(0x3806F180) = 0x3806BA3Cu; /* 0x3803FCA0: mov dword ptr [0x3806f180], 0x3806ba3c */
   2275     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FCAA: ret  */
   2276     RECOMP_REGS_OUT();
   2277 }
   2278 
   2279 void sub_3803FCB0(void) {
   2280     int _fpu_cmp = 0;
   2281     uint32_t _cf = 0;
   2282     int _df = 1;
   2283     uint32_t _flag_k = FK_NONE;
   2284     uint32_t _flag_a = 0, _flag_b = 0;
   2285     uint32_t _itail_tgt = 0;
   2286     RECOMP_REGS_LOCALS
   2287     RECOMP_ENTER(0x3803FCB0u);
   2288 
   2289 L_3803FCB0:
   2290     goto L_3803FCC0; /* 0x3803FCB0: jmp 0x3803fcc0 */
   2291 L_3803FCC0:
   2292     MEM32(0x3806F17C) = 0x3806BA70u; /* 0x3803FCC0: mov dword ptr [0x3806f17c], 0x3806ba70 */
   2293     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FCCA: ret  */
   2294     RECOMP_REGS_OUT();
   2295 }
   2296 
   2297 void sub_3803FCC0(void) {
   2298     int _fpu_cmp = 0;
   2299     uint32_t _cf = 0;
   2300     int _df = 1;
   2301     uint32_t _flag_k = FK_NONE;
   2302     uint32_t _flag_a = 0, _flag_b = 0;
   2303     uint32_t _itail_tgt = 0;
   2304     RECOMP_REGS_LOCALS
   2305     RECOMP_ENTER(0x3803FCC0u);
   2306 
   2307 L_3803FCC0:
   2308     MEM32(0x3806F17C) = 0x3806BA70u; /* 0x3803FCC0: mov dword ptr [0x3806f17c], 0x3806ba70 */
   2309     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FCCA: ret  */
   2310     RECOMP_REGS_OUT();
   2311 }
   2312 
   2313 void sub_3803FCD0(void) {
   2314     int _fpu_cmp = 0;
   2315     uint32_t _cf = 0;
   2316     int _df = 1;
   2317     uint32_t _flag_k = FK_NONE;
   2318     uint32_t _flag_a = 0, _flag_b = 0;
   2319     uint32_t _itail_tgt = 0;
   2320     RECOMP_REGS_LOCALS
   2321     RECOMP_ENTER(0x3803FCD0u);
   2322 
   2323 L_3803FCD0:
   2324     goto L_3803FCE0; /* 0x3803FCD0: jmp 0x3803fce0 */
   2325 L_3803FCE0:
   2326     MEM32(0x3806F178) = 0x3806BAA4u; /* 0x3803FCE0: mov dword ptr [0x3806f178], 0x3806baa4 */
   2327     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FCEA: ret  */
   2328     RECOMP_REGS_OUT();
   2329 }
   2330 
   2331 void sub_3803FCE0(void) {
   2332     int _fpu_cmp = 0;
   2333     uint32_t _cf = 0;
   2334     int _df = 1;
   2335     uint32_t _flag_k = FK_NONE;
   2336     uint32_t _flag_a = 0, _flag_b = 0;
   2337     uint32_t _itail_tgt = 0;
   2338     RECOMP_REGS_LOCALS
   2339     RECOMP_ENTER(0x3803FCE0u);
   2340 
   2341 L_3803FCE0:
   2342     MEM32(0x3806F178) = 0x3806BAA4u; /* 0x3803FCE0: mov dword ptr [0x3806f178], 0x3806baa4 */
   2343     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FCEA: ret  */
   2344     RECOMP_REGS_OUT();
   2345 }
   2346 
   2347 void sub_3803FCF0(void) {
   2348     int _fpu_cmp = 0;
   2349     uint32_t _cf = 0;
   2350     int _df = 1;
   2351     uint32_t _flag_k = FK_NONE;
   2352     uint32_t _flag_a = 0, _flag_b = 0;
   2353     uint32_t _itail_tgt = 0;
   2354     RECOMP_REGS_LOCALS
   2355     RECOMP_ENTER(0x3803FCF0u);
   2356 
   2357 L_3803FCF0:
   2358     goto L_3803FD00; /* 0x3803FCF0: jmp 0x3803fd00 */
   2359 L_3803FD00:
   2360     MEM32(0x3806F174) = 0x3806BAD8u; /* 0x3803FD00: mov dword ptr [0x3806f174], 0x3806bad8 */
   2361     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FD0A: ret  */
   2362     RECOMP_REGS_OUT();
   2363 }
   2364 
   2365 void sub_3803FD00(void) {
   2366     int _fpu_cmp = 0;
   2367     uint32_t _cf = 0;
   2368     int _df = 1;
   2369     uint32_t _flag_k = FK_NONE;
   2370     uint32_t _flag_a = 0, _flag_b = 0;
   2371     uint32_t _itail_tgt = 0;
   2372     RECOMP_REGS_LOCALS
   2373     RECOMP_ENTER(0x3803FD00u);
   2374 
   2375 L_3803FD00:
   2376     MEM32(0x3806F174) = 0x3806BAD8u; /* 0x3803FD00: mov dword ptr [0x3806f174], 0x3806bad8 */
   2377     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FD0A: ret  */
   2378     RECOMP_REGS_OUT();
   2379 }
   2380 
   2381 void sub_3803FD10(void) {
   2382     int _fpu_cmp = 0;
   2383     uint32_t _cf = 0;
   2384     int _df = 1;
   2385     uint32_t _flag_k = FK_NONE;
   2386     uint32_t _flag_a = 0, _flag_b = 0;
   2387     uint32_t _itail_tgt = 0;
   2388     RECOMP_REGS_LOCALS
   2389     RECOMP_ENTER(0x3803FD10u);
   2390 
   2391 L_3803FD10:
   2392     goto L_3803FD20; /* 0x3803FD10: jmp 0x3803fd20 */
   2393 L_3803FD20:
   2394     MEM32(0x3806F170) = 0x3806BB10u; /* 0x3803FD20: mov dword ptr [0x3806f170], 0x3806bb10 */
   2395     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FD2A: ret  */
   2396     RECOMP_REGS_OUT();
   2397 }
   2398 
   2399 void sub_3803FD20(void) {
   2400     int _fpu_cmp = 0;
   2401     uint32_t _cf = 0;
   2402     int _df = 1;
   2403     uint32_t _flag_k = FK_NONE;
   2404     uint32_t _flag_a = 0, _flag_b = 0;
   2405     uint32_t _itail_tgt = 0;
   2406     RECOMP_REGS_LOCALS
   2407     RECOMP_ENTER(0x3803FD20u);
   2408 
   2409 L_3803FD20:
   2410     MEM32(0x3806F170) = 0x3806BB10u; /* 0x3803FD20: mov dword ptr [0x3806f170], 0x3806bb10 */
   2411     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FD2A: ret  */
   2412     RECOMP_REGS_OUT();
   2413 }
   2414 
   2415 void sub_3803FD30(void) {
   2416     int _fpu_cmp = 0;
   2417     uint32_t _cf = 0;
   2418     int _df = 1;
   2419     uint32_t _flag_k = FK_NONE;
   2420     uint32_t _flag_a = 0, _flag_b = 0;
   2421     uint32_t _itail_tgt = 0;
   2422     RECOMP_REGS_LOCALS
   2423     RECOMP_ENTER(0x3803FD30u);
   2424 
   2425 L_3803FD30:
   2426     goto L_3803FD40; /* 0x3803FD30: jmp 0x3803fd40 */
   2427 L_3803FD40:
   2428     MEM32(0x3806F16C) = 0x3806BB4Cu; /* 0x3803FD40: mov dword ptr [0x3806f16c], 0x3806bb4c */
   2429     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FD4A: ret  */
   2430     RECOMP_REGS_OUT();
   2431 }
   2432 
   2433 void sub_3803FD40(void) {
   2434     int _fpu_cmp = 0;
   2435     uint32_t _cf = 0;
   2436     int _df = 1;
   2437     uint32_t _flag_k = FK_NONE;
   2438     uint32_t _flag_a = 0, _flag_b = 0;
   2439     uint32_t _itail_tgt = 0;
   2440     RECOMP_REGS_LOCALS
   2441     RECOMP_ENTER(0x3803FD40u);
   2442 
   2443 L_3803FD40:
   2444     MEM32(0x3806F16C) = 0x3806BB4Cu; /* 0x3803FD40: mov dword ptr [0x3806f16c], 0x3806bb4c */
   2445     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FD4A: ret  */
   2446     RECOMP_REGS_OUT();
   2447 }
   2448 
   2449 void sub_3803FD50(void) {
   2450     int _fpu_cmp = 0;
   2451     uint32_t _cf = 0;
   2452     int _df = 1;
   2453     uint32_t _flag_k = FK_NONE;
   2454     uint32_t _flag_a = 0, _flag_b = 0;
   2455     uint32_t _itail_tgt = 0;
   2456     RECOMP_REGS_LOCALS
   2457     RECOMP_ENTER(0x3803FD50u);
   2458 
   2459 L_3803FD50:
   2460     goto L_3803FD60; /* 0x3803FD50: jmp 0x3803fd60 */
   2461 L_3803FD60:
   2462     MEM32(0x3806F168) = 0x3806BB84u; /* 0x3803FD60: mov dword ptr [0x3806f168], 0x3806bb84 */
   2463     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FD6A: ret  */
   2464     RECOMP_REGS_OUT();
   2465 }
   2466 
   2467 void sub_3803FD60(void) {
   2468     int _fpu_cmp = 0;
   2469     uint32_t _cf = 0;
   2470     int _df = 1;
   2471     uint32_t _flag_k = FK_NONE;
   2472     uint32_t _flag_a = 0, _flag_b = 0;
   2473     uint32_t _itail_tgt = 0;
   2474     RECOMP_REGS_LOCALS
   2475     RECOMP_ENTER(0x3803FD60u);
   2476 
   2477 L_3803FD60:
   2478     MEM32(0x3806F168) = 0x3806BB84u; /* 0x3803FD60: mov dword ptr [0x3806f168], 0x3806bb84 */
   2479     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FD6A: ret  */
   2480     RECOMP_REGS_OUT();
   2481 }
   2482 
   2483 void sub_3803FD70(void) {
   2484     int _fpu_cmp = 0;
   2485     uint32_t _cf = 0;
   2486     int _df = 1;
   2487     uint32_t _flag_k = FK_NONE;
   2488     uint32_t _flag_a = 0, _flag_b = 0;
   2489     uint32_t _itail_tgt = 0;
   2490     RECOMP_REGS_LOCALS
   2491     RECOMP_ENTER(0x3803FD70u);
   2492 
   2493 L_3803FD70:
   2494     goto L_3803FD80; /* 0x3803FD70: jmp 0x3803fd80 */
   2495 L_3803FD80:
   2496     MEM32(0x3806F164) = 0x3806BBB8u; /* 0x3803FD80: mov dword ptr [0x3806f164], 0x3806bbb8 */
   2497     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FD8A: ret  */
   2498     RECOMP_REGS_OUT();
   2499 }
   2500 
   2501 void sub_3803FD80(void) {
   2502     int _fpu_cmp = 0;
   2503     uint32_t _cf = 0;
   2504     int _df = 1;
   2505     uint32_t _flag_k = FK_NONE;
   2506     uint32_t _flag_a = 0, _flag_b = 0;
   2507     uint32_t _itail_tgt = 0;
   2508     RECOMP_REGS_LOCALS
   2509     RECOMP_ENTER(0x3803FD80u);
   2510 
   2511 L_3803FD80:
   2512     MEM32(0x3806F164) = 0x3806BBB8u; /* 0x3803FD80: mov dword ptr [0x3806f164], 0x3806bbb8 */
   2513     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FD8A: ret  */
   2514     RECOMP_REGS_OUT();
   2515 }
   2516 
   2517 void sub_3803FD90(void) {
   2518     int _fpu_cmp = 0;
   2519     uint32_t _cf = 0;
   2520     int _df = 1;
   2521     uint32_t _flag_k = FK_NONE;
   2522     uint32_t _flag_a = 0, _flag_b = 0;
   2523     uint32_t _itail_tgt = 0;
   2524     RECOMP_REGS_LOCALS
   2525     RECOMP_ENTER(0x3803FD90u);
   2526 
   2527 L_3803FD90:
   2528     goto L_3803FDA0; /* 0x3803FD90: jmp 0x3803fda0 */
   2529 L_3803FDA0:
   2530     MEM32(0x3806F160) = 0x3806BBF4u; /* 0x3803FDA0: mov dword ptr [0x3806f160], 0x3806bbf4 */
   2531     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FDAA: ret  */
   2532     RECOMP_REGS_OUT();
   2533 }
   2534 
   2535 void sub_3803FDA0(void) {
   2536     int _fpu_cmp = 0;
   2537     uint32_t _cf = 0;
   2538     int _df = 1;
   2539     uint32_t _flag_k = FK_NONE;
   2540     uint32_t _flag_a = 0, _flag_b = 0;
   2541     uint32_t _itail_tgt = 0;
   2542     RECOMP_REGS_LOCALS
   2543     RECOMP_ENTER(0x3803FDA0u);
   2544 
   2545 L_3803FDA0:
   2546     MEM32(0x3806F160) = 0x3806BBF4u; /* 0x3803FDA0: mov dword ptr [0x3806f160], 0x3806bbf4 */
   2547     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FDAA: ret  */
   2548     RECOMP_REGS_OUT();
   2549 }
   2550 
   2551 void sub_3803FDB0(void) {
   2552     int _fpu_cmp = 0;
   2553     uint32_t _cf = 0;
   2554     int _df = 1;
   2555     uint32_t _flag_k = FK_NONE;
   2556     uint32_t _flag_a = 0, _flag_b = 0;
   2557     uint32_t _itail_tgt = 0;
   2558     RECOMP_REGS_LOCALS
   2559     RECOMP_ENTER(0x3803FDB0u);
   2560 
   2561 L_3803FDB0:
   2562     goto L_3803FDC0; /* 0x3803FDB0: jmp 0x3803fdc0 */
   2563 L_3803FDC0:
   2564     MEM32(0x3806F15C) = 0x3806BC2Cu; /* 0x3803FDC0: mov dword ptr [0x3806f15c], 0x3806bc2c */
   2565     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FDCA: ret  */
   2566     RECOMP_REGS_OUT();
   2567 }
   2568 
   2569 void sub_3803FDC0(void) {
   2570     int _fpu_cmp = 0;
   2571     uint32_t _cf = 0;
   2572     int _df = 1;
   2573     uint32_t _flag_k = FK_NONE;
   2574     uint32_t _flag_a = 0, _flag_b = 0;
   2575     uint32_t _itail_tgt = 0;
   2576     RECOMP_REGS_LOCALS
   2577     RECOMP_ENTER(0x3803FDC0u);
   2578 
   2579 L_3803FDC0:
   2580     MEM32(0x3806F15C) = 0x3806BC2Cu; /* 0x3803FDC0: mov dword ptr [0x3806f15c], 0x3806bc2c */
   2581     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FDCA: ret  */
   2582     RECOMP_REGS_OUT();
   2583 }
   2584 
   2585 void sub_3803FDD0(void) {
   2586     int _fpu_cmp = 0;
   2587     uint32_t _cf = 0;
   2588     int _df = 1;
   2589     uint32_t _flag_k = FK_NONE;
   2590     uint32_t _flag_a = 0, _flag_b = 0;
   2591     uint32_t _itail_tgt = 0;
   2592     RECOMP_REGS_LOCALS
   2593     RECOMP_ENTER(0x3803FDD0u);
   2594 
   2595 L_3803FDD0:
   2596     goto L_3803FDE0; /* 0x3803FDD0: jmp 0x3803fde0 */
   2597 L_3803FDE0:
   2598     MEM32(0x3806F158) = 0x3806BC68u; /* 0x3803FDE0: mov dword ptr [0x3806f158], 0x3806bc68 */
   2599     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FDEA: ret  */
   2600     RECOMP_REGS_OUT();
   2601 }
   2602 
   2603 void sub_3803FDE0(void) {
   2604     int _fpu_cmp = 0;
   2605     uint32_t _cf = 0;
   2606     int _df = 1;
   2607     uint32_t _flag_k = FK_NONE;
   2608     uint32_t _flag_a = 0, _flag_b = 0;
   2609     uint32_t _itail_tgt = 0;
   2610     RECOMP_REGS_LOCALS
   2611     RECOMP_ENTER(0x3803FDE0u);
   2612 
   2613 L_3803FDE0:
   2614     MEM32(0x3806F158) = 0x3806BC68u; /* 0x3803FDE0: mov dword ptr [0x3806f158], 0x3806bc68 */
   2615     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FDEA: ret  */
   2616     RECOMP_REGS_OUT();
   2617 }
   2618 
   2619 void sub_3803FDF0(void) {
   2620     int _fpu_cmp = 0;
   2621     uint32_t _cf = 0;
   2622     int _df = 1;
   2623     uint32_t _flag_k = FK_NONE;
   2624     uint32_t _flag_a = 0, _flag_b = 0;
   2625     uint32_t _itail_tgt = 0;
   2626     RECOMP_REGS_LOCALS
   2627     RECOMP_ENTER(0x3803FDF0u);
   2628 
   2629 L_3803FDF0:
   2630     goto L_3803FE00; /* 0x3803FDF0: jmp 0x3803fe00 */
   2631 L_3803FE00:
   2632     MEM32(0x3806F154) = 0x3806BCA4u; /* 0x3803FE00: mov dword ptr [0x3806f154], 0x3806bca4 */
   2633     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FE0A: ret  */
   2634     RECOMP_REGS_OUT();
   2635 }
   2636 
   2637 void sub_3803FE00(void) {
   2638     int _fpu_cmp = 0;
   2639     uint32_t _cf = 0;
   2640     int _df = 1;
   2641     uint32_t _flag_k = FK_NONE;
   2642     uint32_t _flag_a = 0, _flag_b = 0;
   2643     uint32_t _itail_tgt = 0;
   2644     RECOMP_REGS_LOCALS
   2645     RECOMP_ENTER(0x3803FE00u);
   2646 
   2647 L_3803FE00:
   2648     MEM32(0x3806F154) = 0x3806BCA4u; /* 0x3803FE00: mov dword ptr [0x3806f154], 0x3806bca4 */
   2649     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FE0A: ret  */
   2650     RECOMP_REGS_OUT();
   2651 }
   2652 
   2653 void sub_3803FE10(void) {
   2654     int _fpu_cmp = 0;
   2655     uint32_t _cf = 0;
   2656     int _df = 1;
   2657     uint32_t _flag_k = FK_NONE;
   2658     uint32_t _flag_a = 0, _flag_b = 0;
   2659     uint32_t _itail_tgt = 0;
   2660     RECOMP_REGS_LOCALS
   2661     RECOMP_ENTER(0x3803FE10u);
   2662 
   2663 L_3803FE10:
   2664     goto L_3803FE20; /* 0x3803FE10: jmp 0x3803fe20 */
   2665 L_3803FE20:
   2666     MEM32(0x3806F150) = 0x3806BCD8u; /* 0x3803FE20: mov dword ptr [0x3806f150], 0x3806bcd8 */
   2667     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FE2A: ret  */
   2668     RECOMP_REGS_OUT();
   2669 }
   2670 
   2671 void sub_3803FE20(void) {
   2672     int _fpu_cmp = 0;
   2673     uint32_t _cf = 0;
   2674     int _df = 1;
   2675     uint32_t _flag_k = FK_NONE;
   2676     uint32_t _flag_a = 0, _flag_b = 0;
   2677     uint32_t _itail_tgt = 0;
   2678     RECOMP_REGS_LOCALS
   2679     RECOMP_ENTER(0x3803FE20u);
   2680 
   2681 L_3803FE20:
   2682     MEM32(0x3806F150) = 0x3806BCD8u; /* 0x3803FE20: mov dword ptr [0x3806f150], 0x3806bcd8 */
   2683     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FE2A: ret  */
   2684     RECOMP_REGS_OUT();
   2685 }
   2686 
   2687 void sub_3803FE30(void) {
   2688     int _fpu_cmp = 0;
   2689     uint32_t _cf = 0;
   2690     int _df = 1;
   2691     uint32_t _flag_k = FK_NONE;
   2692     uint32_t _flag_a = 0, _flag_b = 0;
   2693     uint32_t _itail_tgt = 0;
   2694     RECOMP_REGS_LOCALS
   2695     RECOMP_ENTER(0x3803FE30u);
   2696 
   2697 L_3803FE30:
   2698     goto L_3803FE40; /* 0x3803FE30: jmp 0x3803fe40 */
   2699 L_3803FE40:
   2700     MEM32(0x3806F14C) = 0x3806BD0Cu; /* 0x3803FE40: mov dword ptr [0x3806f14c], 0x3806bd0c */
   2701     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FE4A: ret  */
   2702     RECOMP_REGS_OUT();
   2703 }
   2704 
   2705 void sub_3803FE40(void) {
   2706     int _fpu_cmp = 0;
   2707     uint32_t _cf = 0;
   2708     int _df = 1;
   2709     uint32_t _flag_k = FK_NONE;
   2710     uint32_t _flag_a = 0, _flag_b = 0;
   2711     uint32_t _itail_tgt = 0;
   2712     RECOMP_REGS_LOCALS
   2713     RECOMP_ENTER(0x3803FE40u);
   2714 
   2715 L_3803FE40:
   2716     MEM32(0x3806F14C) = 0x3806BD0Cu; /* 0x3803FE40: mov dword ptr [0x3806f14c], 0x3806bd0c */
   2717     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FE4A: ret  */
   2718     RECOMP_REGS_OUT();
   2719 }
   2720 
   2721 void sub_3803FE50(void) {
   2722     int _fpu_cmp = 0;
   2723     uint32_t _cf = 0;
   2724     int _df = 1;
   2725     uint32_t _flag_k = FK_NONE;
   2726     uint32_t _flag_a = 0, _flag_b = 0;
   2727     uint32_t _itail_tgt = 0;
   2728     RECOMP_REGS_LOCALS
   2729     RECOMP_ENTER(0x3803FE50u);
   2730 
   2731 L_3803FE50:
   2732     goto L_3803FE60; /* 0x3803FE50: jmp 0x3803fe60 */
   2733 L_3803FE60:
   2734     PUSH32(esp, ebp); /* 0x3803FE60: push ebp */
   2735     ebp = esp; /* 0x3803FE61: mov ebp, esp */
   2736     PUSH32(esp, 0xFFFFFFFFu); /* 0x3803FE63: push -1 */
   2737     PUSH32(esp, 0x3804D05Bu); /* 0x3803FE65: push 0x3804d05b */
   2738     eax = MEM32(FS_BASE + (0)); /* 0x3803FE6A: mov eax, dword ptr fs:[0] */
   2739     PUSH32(esp, eax); /* 0x3803FE70: push eax */
   2740     MEM32(FS_BASE + (0)) = esp; /* 0x3803FE71: mov dword ptr fs:[0], esp */
   2741     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2743     esp = esp - 8; /* 0x3803FE78: sub esp, 8 */
   2744     _flag_k = FK_CMP;
   2745     PUSH32(esp, ebx); /* 0x3803FE7B: push ebx */
   2746     PUSH32(esp, esi); /* 0x3803FE7C: push esi */
   2747     PUSH32(esp, 0x14u); /* 0x3803FE7D: push 0x14 */
   2748     RECOMP_ICALL(0x3804B676u); /* 0x3803FE7F: call 0x3804b676 */ /* not lifted */
   2749     RECOMP_FLAGS_IN();
   2750     esi = eax; /* 0x3803FE84: mov esi, eax */
   2751     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2752     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2753     esp = esp + 4; /* 0x3803FE86: add esp, 4 */
   2754     _flag_k = FK_ADD;
   2755     MEM32(ebp + (-0x14)) = esi; /* 0x3803FE89: mov dword ptr [ebp - 0x14], esi */
   2756     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2757     ebx = 0; /* 0x3803FE8C: xor ebx, ebx */
   2758     _cf = 0;
   2759     _flag_k = FK_TEST;
   2760     /* cmp esi, ebx */ /* 0x3803FE8E: cmp esi, ebx */
   2761     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2763     _flag_k = FK_CMP;
   2764     MEM32(ebp + (-0x4)) = ebx; /* 0x3803FE90: mov dword ptr [ebp - 4], ebx */
   2765     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803FF02; /* 0x3803FE93: je 0x3803ff02 */
   2766 L_3803FE95:
   2767     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3803FE95: mov al, byte ptr [ebp - 0xd] */
   2768     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3803FE98: mov cl, byte ptr [ebp - 0xd] */
   2769     PUSH32(esp, edi); /* 0x3803FE9B: push edi */
   2770     PUSH32(esp, 0x1Cu); /* 0x3803FE9C: push 0x1c */
   2771     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3803FE9E: mov byte ptr [esi], al */
   2772     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3803FEA0: mov byte ptr [esi + 1], cl */
   2773     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3803FEA3: mov byte ptr [esi + 0xc], bl */
   2774     RECOMP_ICALL(0x3804B676u); /* 0x3803FEA6: call 0x3804b676 */ /* not lifted */
   2775     RECOMP_FLAGS_IN();
   2776     MEM32(eax + 0x4) = ebx; /* 0x3803FEAB: mov dword ptr [eax + 4], ebx */
   2777     MEM8(eax + 0x19) = (uint8_t)(LO8(ebx)); /* 0x3803FEAE: mov byte ptr [eax + 0x19], bl */
   2778     SET_LO8(ecx, 1); /* 0x3803FEB1: mov cl, 1 */
   2779     MEM8(eax + 0x18) = (uint8_t)(LO8(ecx)); /* 0x3803FEB3: mov byte ptr [eax + 0x18], cl */
   2780     MEM32(esi + 0x8) = eax; /* 0x3803FEB6: mov dword ptr [esi + 8], eax */
   2781     MEM8(eax + 0x19) = (uint8_t)(LO8(ecx)); /* 0x3803FEB9: mov byte ptr [eax + 0x19], cl */
   2782     edx = MEM32(esi + 0x8); /* 0x3803FEBC: mov edx, dword ptr [esi + 8] */
   2783     MEM32(edx) = ebx; /* 0x3803FEBF: mov dword ptr [edx], ebx */
   2784     eax = MEM32(esi + 0x8); /* 0x3803FEC1: mov eax, dword ptr [esi + 8] */
   2785     MEM32(eax + 0x8) = ebx; /* 0x3803FEC4: mov dword ptr [eax + 8], ebx */
   2786     edi = MEM32(esi + 0x8); /* 0x3803FEC7: mov edi, dword ptr [esi + 8] */
   2787     PUSH32(esp, 0x1Cu); /* 0x3803FECA: push 0x1c */
   2788     RECOMP_ICALL(0x3804B676u); /* 0x3803FECC: call 0x3804b676 */ /* not lifted */
   2789     RECOMP_FLAGS_IN();
   2790     MEM32(eax + 0x4) = edi; /* 0x3803FED1: mov dword ptr [eax + 4], edi */
   2791     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3803FED4: mov byte ptr [eax + 0x18], bl */
   2792     MEM8(eax + 0x19) = (uint8_t)(LO8(ebx)); /* 0x3803FED7: mov byte ptr [eax + 0x19], bl */
   2793     MEM32(esi + 0x4) = eax; /* 0x3803FEDA: mov dword ptr [esi + 4], eax */
   2794     MEM32(eax) = eax; /* 0x3803FEDD: mov dword ptr [eax], eax */
   2795     eax = MEM32(esi + 0x4); /* 0x3803FEDF: mov eax, dword ptr [esi + 4] */
   2796     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2797     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2798     esp = esp + 8; /* 0x3803FEE2: add esp, 8 */
   2799     _flag_k = FK_ADD;
   2800     MEM32(eax + 0x8) = eax; /* 0x3803FEE5: mov dword ptr [eax + 8], eax */
   2801     MEM32(esi + 0x10) = ebx; /* 0x3803FEE8: mov dword ptr [esi + 0x10], ebx */
   2802     edi = POP32_VAL(esp); /* 0x3803FEEB: pop edi */
   2803     MEM32(0x3806F148) = esi; /* 0x3803FEEC: mov dword ptr [0x3806f148], esi */
   2804     esi = POP32_VAL(esp); /* 0x3803FEF2: pop esi */
   2805     ebx = POP32_VAL(esp); /* 0x3803FEF3: pop ebx */
   2806     ecx = MEM32(ebp + (-0xC)); /* 0x3803FEF4: mov ecx, dword ptr [ebp - 0xc] */
   2807     MEM32(FS_BASE + (0)) = ecx; /* 0x3803FEF7: mov dword ptr fs:[0], ecx */
   2808     esp = ebp; /* 0x3803FEFE: mov esp, ebp */
   2809     ebp = POP32_VAL(esp); /* 0x3803FF00: pop ebp */
   2810     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FF01: ret  */
   2811 L_3803FF02:
   2812     ecx = MEM32(ebp + (-0xC)); /* 0x3803FF02: mov ecx, dword ptr [ebp - 0xc] */
   2813     esi = POP32_VAL(esp); /* 0x3803FF05: pop esi */
   2814     MEM32(0x3806F148) = ebx; /* 0x3803FF06: mov dword ptr [0x3806f148], ebx */
   2815     ebx = POP32_VAL(esp); /* 0x3803FF0C: pop ebx */
   2816     MEM32(FS_BASE + (0)) = ecx; /* 0x3803FF0D: mov dword ptr fs:[0], ecx */
   2817     esp = ebp; /* 0x3803FF14: mov esp, ebp */
   2818     ebp = POP32_VAL(esp); /* 0x3803FF16: pop ebp */
   2819     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FF17: ret  */
   2820     RECOMP_REGS_OUT();
   2821 }
   2822 
   2823 void sub_3803FE60(void) {
   2824     int _fpu_cmp = 0;
   2825     uint32_t _cf = 0;
   2826     int _df = 1;
   2827     uint32_t _flag_k = FK_NONE;
   2828     uint32_t _flag_a = 0, _flag_b = 0;
   2829     uint32_t _itail_tgt = 0;
   2830     RECOMP_REGS_LOCALS
   2831     RECOMP_ENTER(0x3803FE60u);
   2832 
   2833 L_3803FE60:
   2834     PUSH32(esp, ebp); /* 0x3803FE60: push ebp */
   2835     ebp = esp; /* 0x3803FE61: mov ebp, esp */
   2836     PUSH32(esp, 0xFFFFFFFFu); /* 0x3803FE63: push -1 */
   2837     PUSH32(esp, 0x3804D05Bu); /* 0x3803FE65: push 0x3804d05b */
   2838     eax = MEM32(FS_BASE + (0)); /* 0x3803FE6A: mov eax, dword ptr fs:[0] */
   2839     PUSH32(esp, eax); /* 0x3803FE70: push eax */
   2840     MEM32(FS_BASE + (0)) = esp; /* 0x3803FE71: mov dword ptr fs:[0], esp */
   2841     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2843     esp = esp - 8; /* 0x3803FE78: sub esp, 8 */
   2844     _flag_k = FK_CMP;
   2845     PUSH32(esp, ebx); /* 0x3803FE7B: push ebx */
   2846     PUSH32(esp, esi); /* 0x3803FE7C: push esi */
   2847     PUSH32(esp, 0x14u); /* 0x3803FE7D: push 0x14 */
   2848     RECOMP_ICALL(0x3804B676u); /* 0x3803FE7F: call 0x3804b676 */ /* not lifted */
   2849     RECOMP_FLAGS_IN();
   2850     esi = eax; /* 0x3803FE84: mov esi, eax */
   2851     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2852     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2853     esp = esp + 4; /* 0x3803FE86: add esp, 4 */
   2854     _flag_k = FK_ADD;
   2855     MEM32(ebp + (-0x14)) = esi; /* 0x3803FE89: mov dword ptr [ebp - 0x14], esi */
   2856     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2857     ebx = 0; /* 0x3803FE8C: xor ebx, ebx */
   2858     _cf = 0;
   2859     _flag_k = FK_TEST;
   2860     /* cmp esi, ebx */ /* 0x3803FE8E: cmp esi, ebx */
   2861     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2862     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2863     _flag_k = FK_CMP;
   2864     MEM32(ebp + (-0x4)) = ebx; /* 0x3803FE90: mov dword ptr [ebp - 4], ebx */
   2865     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803FF02; /* 0x3803FE93: je 0x3803ff02 */
   2866 L_3803FE95:
   2867     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3803FE95: mov al, byte ptr [ebp - 0xd] */
   2868     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3803FE98: mov cl, byte ptr [ebp - 0xd] */
   2869     PUSH32(esp, edi); /* 0x3803FE9B: push edi */
   2870     PUSH32(esp, 0x1Cu); /* 0x3803FE9C: push 0x1c */
   2871     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3803FE9E: mov byte ptr [esi], al */
   2872     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3803FEA0: mov byte ptr [esi + 1], cl */
   2873     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3803FEA3: mov byte ptr [esi + 0xc], bl */
   2874     RECOMP_ICALL(0x3804B676u); /* 0x3803FEA6: call 0x3804b676 */ /* not lifted */
   2875     RECOMP_FLAGS_IN();
   2876     MEM32(eax + 0x4) = ebx; /* 0x3803FEAB: mov dword ptr [eax + 4], ebx */
   2877     MEM8(eax + 0x19) = (uint8_t)(LO8(ebx)); /* 0x3803FEAE: mov byte ptr [eax + 0x19], bl */
   2878     SET_LO8(ecx, 1); /* 0x3803FEB1: mov cl, 1 */
   2879     MEM8(eax + 0x18) = (uint8_t)(LO8(ecx)); /* 0x3803FEB3: mov byte ptr [eax + 0x18], cl */
   2880     MEM32(esi + 0x8) = eax; /* 0x3803FEB6: mov dword ptr [esi + 8], eax */
   2881     MEM8(eax + 0x19) = (uint8_t)(LO8(ecx)); /* 0x3803FEB9: mov byte ptr [eax + 0x19], cl */
   2882     edx = MEM32(esi + 0x8); /* 0x3803FEBC: mov edx, dword ptr [esi + 8] */
   2883     MEM32(edx) = ebx; /* 0x3803FEBF: mov dword ptr [edx], ebx */
   2884     eax = MEM32(esi + 0x8); /* 0x3803FEC1: mov eax, dword ptr [esi + 8] */
   2885     MEM32(eax + 0x8) = ebx; /* 0x3803FEC4: mov dword ptr [eax + 8], ebx */
   2886     edi = MEM32(esi + 0x8); /* 0x3803FEC7: mov edi, dword ptr [esi + 8] */
   2887     PUSH32(esp, 0x1Cu); /* 0x3803FECA: push 0x1c */
   2888     RECOMP_ICALL(0x3804B676u); /* 0x3803FECC: call 0x3804b676 */ /* not lifted */
   2889     RECOMP_FLAGS_IN();
   2890     MEM32(eax + 0x4) = edi; /* 0x3803FED1: mov dword ptr [eax + 4], edi */
   2891     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3803FED4: mov byte ptr [eax + 0x18], bl */
   2892     MEM8(eax + 0x19) = (uint8_t)(LO8(ebx)); /* 0x3803FED7: mov byte ptr [eax + 0x19], bl */
   2893     MEM32(esi + 0x4) = eax; /* 0x3803FEDA: mov dword ptr [esi + 4], eax */
   2894     MEM32(eax) = eax; /* 0x3803FEDD: mov dword ptr [eax], eax */
   2895     eax = MEM32(esi + 0x4); /* 0x3803FEDF: mov eax, dword ptr [esi + 4] */
   2896     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2897     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2898     esp = esp + 8; /* 0x3803FEE2: add esp, 8 */
   2899     _flag_k = FK_ADD;
   2900     MEM32(eax + 0x8) = eax; /* 0x3803FEE5: mov dword ptr [eax + 8], eax */
   2901     MEM32(esi + 0x10) = ebx; /* 0x3803FEE8: mov dword ptr [esi + 0x10], ebx */
   2902     edi = POP32_VAL(esp); /* 0x3803FEEB: pop edi */
   2903     MEM32(0x3806F148) = esi; /* 0x3803FEEC: mov dword ptr [0x3806f148], esi */
   2904     esi = POP32_VAL(esp); /* 0x3803FEF2: pop esi */
   2905     ebx = POP32_VAL(esp); /* 0x3803FEF3: pop ebx */
   2906     ecx = MEM32(ebp + (-0xC)); /* 0x3803FEF4: mov ecx, dword ptr [ebp - 0xc] */
   2907     MEM32(FS_BASE + (0)) = ecx; /* 0x3803FEF7: mov dword ptr fs:[0], ecx */
   2908     esp = ebp; /* 0x3803FEFE: mov esp, ebp */
   2909     ebp = POP32_VAL(esp); /* 0x3803FF00: pop ebp */
   2910     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FF01: ret  */
   2911 L_3803FF02:
   2912     ecx = MEM32(ebp + (-0xC)); /* 0x3803FF02: mov ecx, dword ptr [ebp - 0xc] */
   2913     esi = POP32_VAL(esp); /* 0x3803FF05: pop esi */
   2914     MEM32(0x3806F148) = ebx; /* 0x3803FF06: mov dword ptr [0x3806f148], ebx */
   2915     ebx = POP32_VAL(esp); /* 0x3803FF0C: pop ebx */
   2916     MEM32(FS_BASE + (0)) = ecx; /* 0x3803FF0D: mov dword ptr fs:[0], ecx */
   2917     esp = ebp; /* 0x3803FF14: mov esp, ebp */
   2918     ebp = POP32_VAL(esp); /* 0x3803FF16: pop ebp */
   2919     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FF17: ret  */
   2920     RECOMP_REGS_OUT();
   2921 }
   2922 
   2923 void sub_3803FF20(void) {
   2924     int _fpu_cmp = 0;
   2925     uint32_t _cf = 0;
   2926     int _df = 1;
   2927     uint32_t _flag_k = FK_NONE;
   2928     uint32_t _flag_a = 0, _flag_b = 0;
   2929     uint32_t _itail_tgt = 0;
   2930     RECOMP_REGS_LOCALS
   2931     RECOMP_ENTER(0x3803FF20u);
   2932 
   2933 L_3803FF20:
   2934     PUSH32(esp, esi); /* 0x3803FF20: push esi */
   2935     esi = MEM32(0x3806F148); /* 0x3803FF21: mov esi, dword ptr [0x3806f148] */
   2936     /* test esi, esi */ /* 0x3803FF27: test esi, esi */
   2937     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2938     _cf = 0;
   2939     _flag_k = FK_TEST;
   2940     if (TEST_Z(_flag_a, _flag_b)) goto L_3803FF3B; /* 0x3803FF29: je 0x3803ff3b */
   2941 L_3803FF2B:
   2942     ecx = esi; /* 0x3803FF2B: mov ecx, esi */
   2943     RECOMP_ICALL(0x3803FF50u); /* 0x3803FF2D: call 0x3803ff50 */ /* not lifted */
   2944     RECOMP_FLAGS_IN();
   2945     PUSH32(esp, esi); /* 0x3803FF32: push esi */
   2946     RECOMP_ICALL(0x3804B4F6u); /* 0x3803FF33: call 0x3804b4f6 */ /* not lifted */
   2947     RECOMP_FLAGS_IN();
   2948     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2949     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2950     esp = esp + 4; /* 0x3803FF38: add esp, 4 */
   2951     _flag_k = FK_ADD;
   2952 L_3803FF3B:
   2953     MEM32(0x3806F148) = 0; /* 0x3803FF3B: mov dword ptr [0x3806f148], 0 */
   2954     esi = POP32_VAL(esp); /* 0x3803FF45: pop esi */
   2955     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3803FF46: ret  */
   2956     RECOMP_REGS_OUT();
   2957 }
   2958 
   2959 void sub_3803FF50(void) {
   2960     int _fpu_cmp = 0;
   2961     uint32_t _cf = 0;
   2962     int _df = 1;
   2963     uint32_t _flag_k = FK_NONE;
   2964     uint32_t _flag_a = 0, _flag_b = 0;
   2965     uint32_t _itail_tgt = 0;
   2966     RECOMP_REGS_LOCALS
   2967     RECOMP_ENTER(0x3803FF50u);
   2968 
   2969 L_3803FF50:
   2970     PUSH32(esp, ebp); /* 0x3803FF50: push ebp */
   2971     ebp = esp; /* 0x3803FF51: mov ebp, esp */
   2972     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2974     esp = esp - 8; /* 0x3803FF53: sub esp, 8 */
   2975     _flag_k = FK_CMP;
   2976     PUSH32(esp, ebx); /* 0x3803FF56: push ebx */
   2977     PUSH32(esp, esi); /* 0x3803FF57: push esi */
   2978     esi = ecx; /* 0x3803FF58: mov esi, ecx */
   2979     ecx = MEM32(esi + 0x10); /* 0x3803FF5A: mov ecx, dword ptr [esi + 0x10] */
   2980     /* test ecx, ecx */ /* 0x3803FF5D: test ecx, ecx */
   2981     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2982     _cf = 0;
   2983     _flag_k = FK_TEST;
   2984     PUSH32(esp, edi); /* 0x3803FF5F: push edi */
   2985     edi = MEM32(esi + 0x4); /* 0x3803FF60: mov edi, dword ptr [esi + 4] */
   2986     eax = MEM32(edi); /* 0x3803FF63: mov eax, dword ptr [edi] */
   2987     MEM32(ebp + (-0x4)) = eax; /* 0x3803FF65: mov dword ptr [ebp - 4], eax */
   2988     if (TEST_Z(_flag_a, _flag_b)) goto L_3803FFC5; /* 0x3803FF68: je 0x3803ffc5 */
   2989 L_3803FF6A:
   2990     ecx = eax; /* 0x3803FF6A: mov ecx, eax */
   2991     /* cmp eax, ecx */ /* 0x3803FF6C: cmp eax, ecx */
   2992     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2994     _flag_k = FK_CMP;
   2995     if (CMP_NE(_flag_a, _flag_b)) goto L_3803FFC5; /* 0x3803FF6E: jne 0x3803ffc5 */
   2996 L_3803FF70:
   2997     /* cmp edi, edi */ /* 0x3803FF70: cmp edi, edi */
   2998     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2999     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3000     _flag_k = FK_CMP;
   3001     if (CMP_NE(_flag_a, _flag_b)) goto L_3803FFC5; /* 0x3803FF72: jne 0x3803ffc5 */
   3002 L_3803FF74:
   3003     ebx = MEM32(edi + 0x4); /* 0x3803FF74: mov ebx, dword ptr [edi + 4] */
   3004     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3803FF77: cmp ebx, dword ptr [esi + 8] */
   3005     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3007     _flag_k = FK_CMP;
   3008     edi = ebx; /* 0x3803FF7A: mov edi, ebx */
   3009     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803FF9D; /* 0x3803FF7C: je 0x3803ff9d */
   3010 L_3803FF7E:
   3011     eax = MEM32(edi + 0x8); /* 0x3803FF7E: mov eax, dword ptr [edi + 8] */
   3012     PUSH32(esp, eax); /* 0x3803FF81: push eax */
   3013     ecx = esi; /* 0x3803FF82: mov ecx, esi */
   3014     RECOMP_ICALL(0x38040400u); /* 0x3803FF84: call 0x38040400 */ /* not lifted */
   3015     RECOMP_FLAGS_IN();
   3016     edi = MEM32(edi); /* 0x3803FF89: mov edi, dword ptr [edi] */
   3017     PUSH32(esp, ebx); /* 0x3803FF8B: push ebx */
   3018     RECOMP_ICALL(0x3804B4F6u); /* 0x3803FF8C: call 0x3804b4f6 */ /* not lifted */
   3019     RECOMP_FLAGS_IN();
   3020     eax = MEM32(esi + 0x8); /* 0x3803FF91: mov eax, dword ptr [esi + 8] */
   3021     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3022     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3023     esp = esp + 4; /* 0x3803FF94: add esp, 4 */
   3024     _flag_k = FK_ADD;
   3025     /* cmp edi, eax */ /* 0x3803FF97: cmp edi, eax */
   3026     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3027     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3028     _flag_k = FK_CMP;
   3029     ebx = edi; /* 0x3803FF99: mov ebx, edi */
   3030     RECOMP_BACKEDGE();
   3031     if (CMP_NE(_flag_a, _flag_b)) goto L_3803FF7E; /* 0x3803FF9B: jne 0x3803ff7e */
   3032 L_3803FF9D:
   3033     ecx = MEM32(esi + 0x4); /* 0x3803FF9D: mov ecx, dword ptr [esi + 4] */
   3034     edx = MEM32(esi + 0x8); /* 0x3803FFA0: mov edx, dword ptr [esi + 8] */
   3035     MEM32(ecx + 0x4) = edx; /* 0x3803FFA3: mov dword ptr [ecx + 4], edx */
   3036     eax = MEM32(esi + 0x4); /* 0x3803FFA6: mov eax, dword ptr [esi + 4] */
   3037     MEM32(esi + 0x10) = 0; /* 0x3803FFA9: mov dword ptr [esi + 0x10], 0 */
   3038     MEM32(eax) = eax; /* 0x3803FFB0: mov dword ptr [eax], eax */
   3039     eax = MEM32(esi + 0x4); /* 0x3803FFB2: mov eax, dword ptr [esi + 4] */
   3040     MEM32(eax + 0x8) = eax; /* 0x3803FFB5: mov dword ptr [eax + 8], eax */
   3041     eax = ebp + (-0x8); /* 0x3803FFB8: lea eax, [ebp - 8] */
   3042     PUSH32(esp, eax); /* 0x3803FFBB: push eax */
   3043     ecx = esi; /* 0x3803FFBC: mov ecx, esi */
   3044     RECOMP_ICALL(0x380354C0u); /* 0x3803FFBE: call 0x380354c0 */ /* not lifted */
   3045     RECOMP_FLAGS_IN();
   3046     goto L_3803FFE6; /* 0x3803FFC3: jmp 0x3803ffe6 */
   3047 L_3803FFC5:
   3048     /* cmp eax, edi */ /* 0x3803FFC5: cmp eax, edi */
   3049     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3051     _flag_k = FK_CMP;
   3052     if (CMP_EQ(_flag_a, _flag_b)) goto L_3803FFE6; /* 0x3803FFC7: je 0x3803ffe6 */
   3053 L_3803FFC9:
   3054     ecx = ebp + (-0x4); /* 0x3803FFC9: lea ecx, [ebp - 4] */
   3055     ebx = eax; /* 0x3803FFCC: mov ebx, eax */
   3056     RECOMP_ICALL(0x380249B0u); /* 0x3803FFCE: call 0x380249b0 */ /* not lifted */
   3057     RECOMP_FLAGS_IN();
   3058     PUSH32(esp, ebx); /* 0x3803FFD3: push ebx */
   3059     ecx = ebp + (-0x8); /* 0x3803FFD4: lea ecx, [ebp - 8] */
   3060     PUSH32(esp, ecx); /* 0x3803FFD7: push ecx */
   3061     ecx = esi; /* 0x3803FFD8: mov ecx, esi */
   3062     RECOMP_ICALL(0x3801ACB0u); /* 0x3803FFDA: call 0x3801acb0 */ /* not lifted */
   3063     RECOMP_FLAGS_IN();
   3064     eax = MEM32(ebp + (-0x4)); /* 0x3803FFDF: mov eax, dword ptr [ebp - 4] */
   3065     /* cmp eax, edi */ /* 0x3803FFE2: cmp eax, edi */
   3066     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3068     _flag_k = FK_CMP;
   3069     RECOMP_BACKEDGE();
   3070     if (CMP_NE(_flag_a, _flag_b)) goto L_3803FFC9; /* 0x3803FFE4: jne 0x3803ffc9 */
   3071 L_3803FFE6:
   3072     edx = MEM32(esi + 0x4); /* 0x3803FFE6: mov edx, dword ptr [esi + 4] */
   3073     PUSH32(esp, edx); /* 0x3803FFE9: push edx */
   3074     RECOMP_ICALL(0x3804B4F6u); /* 0x3803FFEA: call 0x3804b4f6 */ /* not lifted */
   3075     RECOMP_FLAGS_IN();
   3076     eax = MEM32(esi + 0x8); /* 0x3803FFEF: mov eax, dword ptr [esi + 8] */
   3077     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3078     edi = 0; /* 0x3803FFF2: xor edi, edi */
   3079     _cf = 0;
   3080     _flag_k = FK_TEST;
   3081     PUSH32(esp, eax); /* 0x3803FFF4: push eax */
   3082     MEM32(esi + 0x4) = edi; /* 0x3803FFF5: mov dword ptr [esi + 4], edi */
   3083     MEM32(esi + 0x10) = edi; /* 0x3803FFF8: mov dword ptr [esi + 0x10], edi */
   3084     RECOMP_ICALL(0x3804B4F6u); /* 0x3803FFFB: call 0x3804b4f6 */ /* not lifted */
   3085     RECOMP_FLAGS_IN();
   3086     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3087     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3088     esp = esp + 8; /* 0x38040000: add esp, 8 */
   3089     _flag_k = FK_ADD;
   3090     MEM32(esi + 0x8) = edi; /* 0x38040003: mov dword ptr [esi + 8], edi */
   3091     edi = POP32_VAL(esp); /* 0x38040006: pop edi */
   3092     esi = POP32_VAL(esp); /* 0x38040007: pop esi */
   3093     ebx = POP32_VAL(esp); /* 0x38040008: pop ebx */
   3094     esp = ebp; /* 0x38040009: mov esp, ebp */
   3095     ebp = POP32_VAL(esp); /* 0x3804000B: pop ebp */
   3096     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804000C: ret  */
   3097     RECOMP_REGS_OUT();
   3098 }
   3099 
   3100 void sub_38040010(void) {
   3101     int _fpu_cmp = 0;
   3102     uint32_t _cf = 0;
   3103     int _df = 1;
   3104     uint32_t _flag_k = FK_NONE;
   3105     uint32_t _flag_a = 0, _flag_b = 0;
   3106     uint32_t _itail_tgt = 0;
   3107     RECOMP_REGS_LOCALS
   3108     RECOMP_ENTER(0x38040010u);
   3109 
   3110 L_38040010:
   3111     PUSH32(esp, ebp); /* 0x38040010: push ebp */
   3112     ebp = esp; /* 0x38040011: mov ebp, esp */
   3113     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   3114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3115     esp = esp - 0x28u; /* 0x38040013: sub esp, 0x28 */
   3116     _flag_k = FK_CMP;
   3117     ecx = MEM32(0x3806F148); /* 0x38040016: mov ecx, dword ptr [0x3806f148] */
   3118     PUSH32(esp, esi); /* 0x3804001C: push esi */
   3119     esi = MEM32(ebp + 0x8); /* 0x3804001D: mov esi, dword ptr [ebp + 8] */
   3120     PUSH32(esp, esi); /* 0x38040020: push esi */
   3121     eax = ebp + 0x8; /* 0x38040021: lea eax, [ebp + 8] */
   3122     PUSH32(esp, eax); /* 0x38040024: push eax */
   3123     RECOMP_ICALL(0x38040370u); /* 0x38040025: call 0x38040370 */ /* not lifted */
   3124     RECOMP_FLAGS_IN();
   3125     ecx = MEM32(0x3806F148); /* 0x3804002A: mov ecx, dword ptr [0x3806f148] */
   3126     eax = MEM32(eax); /* 0x38040030: mov eax, dword ptr [eax] */
   3127     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38040032: cmp eax, dword ptr [ecx + 4] */
   3128     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3130     _flag_k = FK_CMP;
   3131     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040045; /* 0x38040035: je 0x38040045 */
   3132 L_38040037:
   3133     ecx = MEM32(eax + 0x14); /* 0x38040037: mov ecx, dword ptr [eax + 0x14] */
   3134     _flag_a = (uint32_t)(MEM32(ecx + 0xC)); _flag_b = (uint32_t)(1);
   3135     MEM32(ecx + 0xC) = MEM32(ecx + 0xC) + 1; /* 0x3804003A: inc dword ptr [ecx + 0xc] */
   3136     _flag_k = FK_INC;
   3137     eax = MEM32(eax + 0x14); /* 0x3804003D: mov eax, dword ptr [eax + 0x14] */
   3138     esi = POP32_VAL(esp); /* 0x38040040: pop esi */
   3139     esp = ebp; /* 0x38040041: mov esp, ebp */
   3140     ebp = POP32_VAL(esp); /* 0x38040043: pop ebp */
   3141     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38040044: ret  */
   3142 L_38040045:
   3143     PUSH32(esp, ebx); /* 0x38040045: push ebx */
   3144     PUSH32(esp, edi); /* 0x38040046: push edi */
   3145     RECOMP_ICALL(0x38016B10u); /* 0x38040047: call 0x38016b10 */ /* not lifted */
   3146     RECOMP_FLAGS_IN();
   3147     ecx = eax; /* 0x3804004C: mov ecx, eax */
   3148     RECOMP_ICALL(0x38014120u); /* 0x3804004E: call 0x38014120 */ /* not lifted */
   3149     RECOMP_FLAGS_IN();
   3150     edx = MEM32(eax); /* 0x38040053: mov edx, dword ptr [eax] */
   3151     PUSH32(esp, esi); /* 0x38040055: push esi */
   3152     ecx = eax; /* 0x38040056: mov ecx, eax */
   3153     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x38040058: call dword ptr [edx + 8] */
   3154     RECOMP_FLAGS_IN();
   3155     /* test eax, eax */ /* 0x3804005B: test eax, eax */
   3156     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3157     _cf = 0;
   3158     _flag_k = FK_TEST;
   3159     MEM32(ebp + (-0x4)) = eax; /* 0x3804005D: mov dword ptr [ebp - 4], eax */
   3160     if (TEST_Z(_flag_a, _flag_b)) goto L_3804014B; /* 0x38040060: je 0x3804014b */
   3161 L_38040066:
   3162     edi = MEM32(eax + 0xC); /* 0x38040066: mov edi, dword ptr [eax + 0xc] */
   3163     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   3164     edi = edi + 1; /* 0x38040069: inc edi */
   3165     _flag_k = FK_INC;
   3166     ecx = ebp + (-0x28); /* 0x3804006A: lea ecx, [ebp - 0x28] */
   3167     /* cmp ecx, esi */ /* 0x3804006D: cmp ecx, esi */
   3168     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3170     _flag_k = FK_CMP;
   3171     MEM32(eax + 0xC) = edi; /* 0x3804006F: mov dword ptr [eax + 0xc], edi */
   3172     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804007F; /* 0x38040072: je 0x3804007f */
   3173 L_38040074:
   3174     edx = MEM32(esi); /* 0x38040074: mov edx, dword ptr [esi] */
   3175     ecx = MEM32(esi + 0x4); /* 0x38040076: mov ecx, dword ptr [esi + 4] */
   3176     MEM32(ebp + (-0x28)) = edx; /* 0x38040079: mov dword ptr [ebp - 0x28], edx */
   3177     MEM32(ebp + (-0x24)) = ecx; /* 0x3804007C: mov dword ptr [ebp - 0x24], ecx */
   3178 L_3804007F:
   3179     edi = MEM32(0x3806F148); /* 0x3804007F: mov edi, dword ptr [0x3806f148] */
   3180     MEM32(ebp + (-0x20)) = eax; /* 0x38040085: mov dword ptr [ebp - 0x20], eax */
   3181     ebx = MEM32(edi + 0x4); /* 0x38040088: mov ebx, dword ptr [edi + 4] */
   3182     esi = MEM32(ebx + 0x4); /* 0x3804008B: mov esi, dword ptr [ebx + 4] */
   3183     /* cmp esi, MEM32(edi + 0x8) */ /* 0x3804008E: cmp esi, dword ptr [edi + 8] */
   3184     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3186     _flag_k = FK_CMP;
   3187     SET_LO8(eax, 1); /* 0x38040091: mov al, 1 */
   3188     if (CMP_EQ(_flag_a, _flag_b)) goto L_380400B3; /* 0x38040093: je 0x380400b3 */
   3189 L_38040095:
   3190     edx = esi + 0xC; /* 0x38040095: lea edx, [esi + 0xc] */
   3191     PUSH32(esp, edx); /* 0x38040098: push edx */
   3192     ecx = ebp + (-0x28); /* 0x38040099: lea ecx, [ebp - 0x28] */
   3193     ebx = esi; /* 0x3804009C: mov ebx, esi */
   3194     RECOMP_ICALL(0x380179F0u); /* 0x3804009E: call 0x380179f0 */ /* not lifted */
   3195     RECOMP_FLAGS_IN();
   3196     /* test LO8(eax), LO8(eax) */ /* 0x380400A3: test al, al */
   3197     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3198     _cf = 0;
   3199     _flag_k = FK_NARROW(FK_TEST, 24);
   3200     if (TEST_Z(_flag_a, _flag_b)) goto L_380400AB; /* 0x380400A5: je 0x380400ab */
   3201 L_380400A7:
   3202     esi = MEM32(esi); /* 0x380400A7: mov esi, dword ptr [esi] */
   3203     goto L_380400AE; /* 0x380400A9: jmp 0x380400ae */
   3204 L_380400AB:
   3205     esi = MEM32(esi + 0x8); /* 0x380400AB: mov esi, dword ptr [esi + 8] */
   3206 L_380400AE:
   3207     /* cmp esi, MEM32(edi + 0x8) */ /* 0x380400AE: cmp esi, dword ptr [edi + 8] */
   3208     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3210     _flag_k = FK_CMP;
   3211     RECOMP_BACKEDGE();
   3212     if (CMP_NE(_flag_a, _flag_b)) goto L_38040095; /* 0x380400B1: jne 0x38040095 */
   3213 L_380400B3:
   3214     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x380400B3: mov cl, byte ptr [edi + 0xc] */
   3215     /* test LO8(ecx), LO8(ecx) */ /* 0x380400B6: test cl, cl */
   3216     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3217     _cf = 0;
   3218     _flag_k = FK_NARROW(FK_TEST, 24);
   3219     if (TEST_Z(_flag_a, _flag_b)) goto L_380400D5; /* 0x380400B8: je 0x380400d5 */
   3220 L_380400BA:
   3221     eax = ebp + (-0x28); /* 0x380400BA: lea eax, [ebp - 0x28] */
   3222     PUSH32(esp, eax); /* 0x380400BD: push eax */
   3223     PUSH32(esp, ebx); /* 0x380400BE: push ebx */
   3224     PUSH32(esp, esi); /* 0x380400BF: push esi */
   3225     ecx = ebp + (-0xC); /* 0x380400C0: lea ecx, [ebp - 0xc] */
   3226     PUSH32(esp, ecx); /* 0x380400C3: push ecx */
   3227     ecx = edi; /* 0x380400C4: mov ecx, edi */
   3228     RECOMP_ICALL(0x38040440u); /* 0x380400C6: call 0x38040440 */ /* not lifted */
   3229     RECOMP_FLAGS_IN();
   3230     eax = MEM32(ebp + (-0x4)); /* 0x380400CB: mov eax, dword ptr [ebp - 4] */
   3231     edi = POP32_VAL(esp); /* 0x380400CE: pop edi */
   3232     ebx = POP32_VAL(esp); /* 0x380400CF: pop ebx */
   3233     esi = POP32_VAL(esp); /* 0x380400D0: pop esi */
   3234     esp = ebp; /* 0x380400D1: mov esp, ebp */
   3235     ebp = POP32_VAL(esp); /* 0x380400D3: pop ebp */
   3236     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380400D4: ret  */
   3237 L_380400D5:
   3238     /* test LO8(eax), LO8(eax) */ /* 0x380400D5: test al, al */
   3239     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3240     _cf = 0;
   3241     _flag_k = FK_NARROW(FK_TEST, 24);
   3242     MEM32(ebp + (-0x8)) = ebx; /* 0x380400D7: mov dword ptr [ebp - 8], ebx */
   3243     if (TEST_Z(_flag_a, _flag_b)) goto L_38040106; /* 0x380400DA: je 0x38040106 */
   3244 L_380400DC:
   3245     edx = MEM32(edi + 0x4); /* 0x380400DC: mov edx, dword ptr [edi + 4] */
   3246     /* cmp ebx, MEM32(edx) */ /* 0x380400DF: cmp ebx, dword ptr [edx] */
   3247     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx));
   3248     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3249     _flag_k = FK_CMP;
   3250     if (CMP_NE(_flag_a, _flag_b)) goto L_380400FE; /* 0x380400E1: jne 0x380400fe */
   3251 L_380400E3:
   3252     eax = ebp + (-0x28); /* 0x380400E3: lea eax, [ebp - 0x28] */
   3253     PUSH32(esp, eax); /* 0x380400E6: push eax */
   3254     PUSH32(esp, ebx); /* 0x380400E7: push ebx */
   3255     PUSH32(esp, esi); /* 0x380400E8: push esi */
   3256     ecx = ebp + (-0x10); /* 0x380400E9: lea ecx, [ebp - 0x10] */
   3257     PUSH32(esp, ecx); /* 0x380400EC: push ecx */
   3258     ecx = edi; /* 0x380400ED: mov ecx, edi */
   3259     RECOMP_ICALL(0x38040440u); /* 0x380400EF: call 0x38040440 */ /* not lifted */
   3260     RECOMP_FLAGS_IN();
   3261     eax = MEM32(ebp + (-0x4)); /* 0x380400F4: mov eax, dword ptr [ebp - 4] */
   3262     edi = POP32_VAL(esp); /* 0x380400F7: pop edi */
   3263     ebx = POP32_VAL(esp); /* 0x380400F8: pop ebx */
   3264     esi = POP32_VAL(esp); /* 0x380400F9: pop esi */
   3265     esp = ebp; /* 0x380400FA: mov esp, ebp */
   3266     ebp = POP32_VAL(esp); /* 0x380400FC: pop ebp */
   3267     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380400FD: ret  */
   3268 L_380400FE:
   3269     ecx = ebp + (-0x8); /* 0x380400FE: lea ecx, [ebp - 8] */
   3270     RECOMP_ICALL(0x3801B170u); /* 0x38040101: call 0x3801b170 */ /* not lifted */
   3271     RECOMP_FLAGS_IN();
   3272 L_38040106:
   3273     edx = MEM32(ebp + (-0x8)); /* 0x38040106: mov edx, dword ptr [ebp - 8] */
   3274     eax = ebp + (-0x28); /* 0x38040109: lea eax, [ebp - 0x28] */
   3275     ecx = edx + 0xC; /* 0x3804010C: lea ecx, [edx + 0xc] */
   3276     PUSH32(esp, eax); /* 0x3804010F: push eax */
   3277     RECOMP_ICALL(0x380179F0u); /* 0x38040110: call 0x380179f0 */ /* not lifted */
   3278     RECOMP_FLAGS_IN();
   3279     /* test LO8(eax), LO8(eax) */ /* 0x38040115: test al, al */
   3280     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3281     _cf = 0;
   3282     _flag_k = FK_NARROW(FK_TEST, 24);
   3283     if (TEST_Z(_flag_a, _flag_b)) goto L_38040134; /* 0x38040117: je 0x38040134 */
   3284 L_38040119:
   3285     ecx = ebp + (-0x28); /* 0x38040119: lea ecx, [ebp - 0x28] */
   3286     PUSH32(esp, ecx); /* 0x3804011C: push ecx */
   3287     PUSH32(esp, ebx); /* 0x3804011D: push ebx */
   3288     PUSH32(esp, esi); /* 0x3804011E: push esi */
   3289     edx = ebp + (-0x14); /* 0x3804011F: lea edx, [ebp - 0x14] */
   3290     PUSH32(esp, edx); /* 0x38040122: push edx */
   3291     ecx = edi; /* 0x38040123: mov ecx, edi */
   3292     RECOMP_ICALL(0x38040440u); /* 0x38040125: call 0x38040440 */ /* not lifted */
   3293     RECOMP_FLAGS_IN();
   3294     eax = MEM32(ebp + (-0x4)); /* 0x3804012A: mov eax, dword ptr [ebp - 4] */
   3295     edi = POP32_VAL(esp); /* 0x3804012D: pop edi */
   3296     ebx = POP32_VAL(esp); /* 0x3804012E: pop ebx */
   3297     esi = POP32_VAL(esp); /* 0x3804012F: pop esi */
   3298     esp = ebp; /* 0x38040130: mov esp, ebp */
   3299     ebp = POP32_VAL(esp); /* 0x38040132: pop ebp */
   3300     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38040133: ret  */
   3301 L_38040134:
   3302     eax = ebp + 0xB; /* 0x38040134: lea eax, [ebp + 0xb] */
   3303     PUSH32(esp, eax); /* 0x38040137: push eax */
   3304     ecx = ebp + (-0x8); /* 0x38040138: lea ecx, [ebp - 8] */
   3305     PUSH32(esp, ecx); /* 0x3804013B: push ecx */
   3306     ecx = ebp + (-0x1C); /* 0x3804013C: lea ecx, [ebp - 0x1c] */
   3307     MEM8(ebp + 0xB) = (uint8_t)(0); /* 0x3804013F: mov byte ptr [ebp + 0xb], 0 */
   3308     RECOMP_ICALL(0x38035680u); /* 0x38040143: call 0x38035680 */ /* not lifted */
   3309     RECOMP_FLAGS_IN();
   3310     eax = MEM32(ebp + (-0x4)); /* 0x38040148: mov eax, dword ptr [ebp - 4] */
   3311 L_3804014B:
   3312     edi = POP32_VAL(esp); /* 0x3804014B: pop edi */
   3313     ebx = POP32_VAL(esp); /* 0x3804014C: pop ebx */
   3314     esi = POP32_VAL(esp); /* 0x3804014D: pop esi */
   3315     esp = ebp; /* 0x3804014E: mov esp, ebp */
   3316     ebp = POP32_VAL(esp); /* 0x38040150: pop ebp */
   3317     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38040151: ret  */
   3318     RECOMP_REGS_OUT();
   3319 }
   3320 
   3321 void sub_38040160(void) {
   3322     int _fpu_cmp = 0;
   3323     uint32_t _cf = 0;
   3324     int _df = 1;
   3325     uint32_t _flag_k = FK_NONE;
   3326     uint32_t _flag_a = 0, _flag_b = 0;
   3327     uint32_t _itail_tgt = 0;
   3328     RECOMP_REGS_LOCALS
   3329     RECOMP_ENTER(0x38040160u);
   3330 
   3331 L_38040160:
   3332     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3333     eax = 0; /* 0x38040160: xor eax, eax */
   3334     _cf = 0;
   3335     _flag_k = FK_TEST;
   3336     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38040162: ret  */
   3337     RECOMP_REGS_OUT();
   3338 }
   3339 
   3340 void sub_38040170(void) {
   3341     int _fpu_cmp = 0;
   3342     uint32_t _cf = 0;
   3343     int _df = 1;
   3344     uint32_t _flag_k = FK_NONE;
   3345     uint32_t _flag_a = 0, _flag_b = 0;
   3346     uint32_t _itail_tgt = 0;
   3347     RECOMP_REGS_LOCALS
   3348     RECOMP_ENTER(0x38040170u);
   3349 
   3350 L_38040170:
   3351     PUSH32(esp, ebp); /* 0x38040170: push ebp */
   3352     ebp = esp; /* 0x38040171: mov ebp, esp */
   3353     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3355     esp = esp - 0x14u; /* 0x38040173: sub esp, 0x14 */
   3356     _flag_k = FK_CMP;
   3357     PUSH32(esp, ebx); /* 0x38040176: push ebx */
   3358     PUSH32(esp, esi); /* 0x38040177: push esi */
   3359     PUSH32(esp, edi); /* 0x38040178: push edi */
   3360     edi = MEM32(ebp + 0x8); /* 0x38040179: mov edi, dword ptr [ebp + 8] */
   3361     /* test edi, edi */ /* 0x3804017C: test edi, edi */
   3362     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3363     _cf = 0;
   3364     _flag_k = FK_TEST;
   3365     if (TEST_Z(_flag_a, _flag_b)) goto L_380402B9; /* 0x3804017E: je 0x380402b9 */
   3366 L_38040184:
   3367     eax = edi + 0x4; /* 0x38040184: lea eax, [edi + 4] */
   3368     ecx = ebp + (-0x14); /* 0x38040187: lea ecx, [ebp - 0x14] */
   3369     /* cmp ecx, eax */ /* 0x3804018A: cmp ecx, eax */
   3370     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3372     _flag_k = FK_CMP;
   3373     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040199; /* 0x3804018C: je 0x38040199 */
   3374 L_3804018E:
   3375     edx = MEM32(eax); /* 0x3804018E: mov edx, dword ptr [eax] */
   3376     eax = MEM32(eax + 0x4); /* 0x38040190: mov eax, dword ptr [eax + 4] */
   3377     MEM32(ebp + (-0x14)) = edx; /* 0x38040193: mov dword ptr [ebp - 0x14], edx */
   3378     MEM32(ebp + (-0x10)) = eax; /* 0x38040196: mov dword ptr [ebp - 0x10], eax */
   3379 L_38040199:
   3380     esi = MEM32(0x3806F148); /* 0x38040199: mov esi, dword ptr [0x3806f148] */
   3381     ecx = ebp + (-0x14); /* 0x3804019F: lea ecx, [ebp - 0x14] */
   3382     PUSH32(esp, ecx); /* 0x380401A2: push ecx */
   3383     ecx = esi; /* 0x380401A3: mov ecx, esi */
   3384     RECOMP_ICALL(0x38040680u); /* 0x380401A5: call 0x38040680 */ /* not lifted */
   3385     RECOMP_FLAGS_IN();
   3386     /* cmp eax, MEM32(esi + 0x4) */ /* 0x380401AA: cmp eax, dword ptr [esi + 4] */
   3387     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3389     _flag_k = FK_CMP;
   3390     MEM32(ebp + 0x8) = eax; /* 0x380401AD: mov dword ptr [ebp + 8], eax */
   3391     if (CMP_EQ(_flag_a, _flag_b)) goto L_380401C7; /* 0x380401B0: je 0x380401c7 */
   3392 L_380401B2:
   3393     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3394     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3395     eax = eax + 0xCu; /* 0x380401B2: add eax, 0xc */
   3396     _flag_k = FK_ADD;
   3397     PUSH32(esp, eax); /* 0x380401B5: push eax */
   3398     ecx = ebp + (-0x14); /* 0x380401B6: lea ecx, [ebp - 0x14] */
   3399     RECOMP_ICALL(0x380179F0u); /* 0x380401B9: call 0x380179f0 */ /* not lifted */
   3400     RECOMP_FLAGS_IN();
   3401     /* test LO8(eax), LO8(eax) */ /* 0x380401BE: test al, al */
   3402     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3403     _cf = 0;
   3404     _flag_k = FK_NARROW(FK_TEST, 24);
   3405     if (TEST_NZ(_flag_a, _flag_b)) goto L_380401C7; /* 0x380401C0: jne 0x380401c7 */
   3406 L_380401C2:
   3407     eax = ebp + 0x8; /* 0x380401C2: lea eax, [ebp + 8] */
   3408     goto L_380401D0; /* 0x380401C5: jmp 0x380401d0 */
   3409 L_380401C7:
   3410     edx = MEM32(esi + 0x4); /* 0x380401C7: mov edx, dword ptr [esi + 4] */
   3411     MEM32(ebp + (-0x4)) = edx; /* 0x380401CA: mov dword ptr [ebp - 4], edx */
   3412     eax = ebp + (-0x4); /* 0x380401CD: lea eax, [ebp - 4] */
   3413 L_380401D0:
   3414     ecx = MEM32(0x3806F148); /* 0x380401D0: mov ecx, dword ptr [0x3806f148] */
   3415     eax = MEM32(eax); /* 0x380401D6: mov eax, dword ptr [eax] */
   3416     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x380401D8: cmp eax, dword ptr [ecx + 4] */
   3417     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3419     _flag_k = FK_CMP;
   3420     if (CMP_EQ(_flag_a, _flag_b)) goto L_380402B9; /* 0x380401DB: je 0x380402b9 */
   3421 L_380401E1:
   3422     esi = MEM32(0x3804E458); /* 0x380401E1: mov esi, dword ptr [0x3804e458] */
   3423     ebx = MEM32(edi + 0xC); /* 0x380401E7: mov ebx, dword ptr [edi + 0xc] */
   3424     ecx = edi; /* 0x380401EA: mov ecx, edi */
   3425     RECOMP_ICALL(esi); /* 0x380401EC: call esi */
   3426     RECOMP_FLAGS_IN();
   3427     /* cmp ebx, 2 */ /* 0x380401EE: cmp ebx, 2 */
   3428     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(2);
   3429     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3430     _flag_k = FK_CMP;
   3431     if (CMP_NE(_flag_a, _flag_b)) goto L_380402B9; /* 0x380401F1: jne 0x380402b9 */
   3432 L_380401F7:
   3433     ecx = edi; /* 0x380401F7: mov ecx, edi */
   3434     RECOMP_ICALL(esi); /* 0x380401F9: call esi */
   3435     RECOMP_FLAGS_IN();
   3436     esi = MEM32(0x3806F148); /* 0x380401FB: mov esi, dword ptr [0x3806f148] */
   3437     edx = ebp + (-0x14); /* 0x38040201: lea edx, [ebp - 0x14] */
   3438     PUSH32(esp, edx); /* 0x38040204: push edx */
   3439     ecx = esi; /* 0x38040205: mov ecx, esi */
   3440     RECOMP_ICALL(0x380406D0u); /* 0x38040207: call 0x380406d0 */ /* not lifted */
   3441     RECOMP_FLAGS_IN();
   3442     ebx = eax; /* 0x3804020C: mov ebx, eax */
   3443     eax = ebp + (-0x14); /* 0x3804020E: lea eax, [ebp - 0x14] */
   3444     PUSH32(esp, eax); /* 0x38040211: push eax */
   3445     ecx = esi; /* 0x38040212: mov ecx, esi */
   3446     RECOMP_ICALL(0x38040680u); /* 0x38040214: call 0x38040680 */ /* not lifted */
   3447     RECOMP_FLAGS_IN();
   3448     edi = eax; /* 0x38040219: mov edi, eax */
   3449     /* cmp edi, ebx */ /* 0x3804021B: cmp edi, ebx */
   3450     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3451     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3452     _flag_k = FK_CMP;
   3453     MEM32(ebp + 0x8) = edi; /* 0x3804021D: mov dword ptr [ebp + 8], edi */
   3454     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804022F; /* 0x38040220: je 0x3804022f */
   3455 L_38040222:
   3456     ecx = ebp + 0x8; /* 0x38040222: lea ecx, [ebp + 8] */
   3457     RECOMP_ICALL(0x380249B0u); /* 0x38040225: call 0x380249b0 */ /* not lifted */
   3458     RECOMP_FLAGS_IN();
   3459     /* cmp MEM32(ebp + 0x8), ebx */ /* 0x3804022A: cmp dword ptr [ebp + 8], ebx */
   3460     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(ebx);
   3461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3462     _flag_k = FK_CMP;
   3463     RECOMP_BACKEDGE();
   3464     if (CMP_NE(_flag_a, _flag_b)) goto L_38040222; /* 0x3804022D: jne 0x38040222 */
   3465 L_3804022F:
   3466     eax = MEM32(esi + 0x10); /* 0x3804022F: mov eax, dword ptr [esi + 0x10] */
   3467     /* test eax, eax */ /* 0x38040232: test eax, eax */
   3468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3469     _cf = 0;
   3470     _flag_k = FK_TEST;
   3471     MEM32(ebp + (-0x4)) = edi; /* 0x38040234: mov dword ptr [ebp - 4], edi */
   3472     if (TEST_Z(_flag_a, _flag_b)) goto L_3804029A; /* 0x38040237: je 0x3804029a */
   3473 L_38040239:
   3474     eax = MEM32(esi + 0x4); /* 0x38040239: mov eax, dword ptr [esi + 4] */
   3475     /* cmp edi, MEM32(eax) */ /* 0x3804023C: cmp edi, dword ptr [eax] */
   3476     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   3477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3478     _flag_k = FK_CMP;
   3479     if (CMP_NE(_flag_a, _flag_b)) goto L_3804029A; /* 0x3804023E: jne 0x3804029a */
   3480 L_38040240:
   3481     /* cmp ebx, eax */ /* 0x38040240: cmp ebx, eax */
   3482     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   3483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3484     _flag_k = FK_CMP;
   3485     if (CMP_NE(_flag_a, _flag_b)) goto L_3804029A; /* 0x38040242: jne 0x3804029a */
   3486 L_38040244:
   3487     ebx = MEM32(eax + 0x4); /* 0x38040244: mov ebx, dword ptr [eax + 4] */
   3488     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x38040247: cmp ebx, dword ptr [esi + 8] */
   3489     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3490     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3491     _flag_k = FK_CMP;
   3492     edi = ebx; /* 0x3804024A: mov edi, ebx */
   3493     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804026D; /* 0x3804024C: je 0x3804026d */
   3494 L_3804024E:
   3495     ecx = MEM32(edi + 0x8); /* 0x3804024E: mov ecx, dword ptr [edi + 8] */
   3496     PUSH32(esp, ecx); /* 0x38040251: push ecx */
   3497     ecx = esi; /* 0x38040252: mov ecx, esi */
   3498     RECOMP_ICALL(0x38040400u); /* 0x38040254: call 0x38040400 */ /* not lifted */
   3499     RECOMP_FLAGS_IN();
   3500     edi = MEM32(edi); /* 0x38040259: mov edi, dword ptr [edi] */
   3501     PUSH32(esp, ebx); /* 0x3804025B: push ebx */
   3502     RECOMP_ICALL(0x3804B4F6u); /* 0x3804025C: call 0x3804b4f6 */ /* not lifted */
   3503     RECOMP_FLAGS_IN();
   3504     eax = MEM32(esi + 0x8); /* 0x38040261: mov eax, dword ptr [esi + 8] */
   3505     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3506     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3507     esp = esp + 4; /* 0x38040264: add esp, 4 */
   3508     _flag_k = FK_ADD;
   3509     /* cmp edi, eax */ /* 0x38040267: cmp edi, eax */
   3510     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3512     _flag_k = FK_CMP;
   3513     ebx = edi; /* 0x38040269: mov ebx, edi */
   3514     RECOMP_BACKEDGE();
   3515     if (CMP_NE(_flag_a, _flag_b)) goto L_3804024E; /* 0x3804026B: jne 0x3804024e */
   3516 L_3804026D:
   3517     eax = MEM32(esi + 0x8); /* 0x3804026D: mov eax, dword ptr [esi + 8] */
   3518     edx = MEM32(esi + 0x4); /* 0x38040270: mov edx, dword ptr [esi + 4] */
   3519     MEM32(edx + 0x4) = eax; /* 0x38040273: mov dword ptr [edx + 4], eax */
   3520     eax = MEM32(esi + 0x4); /* 0x38040276: mov eax, dword ptr [esi + 4] */
   3521     MEM32(esi + 0x10) = 0; /* 0x38040279: mov dword ptr [esi + 0x10], 0 */
   3522     MEM32(eax) = eax; /* 0x38040280: mov dword ptr [eax], eax */
   3523     eax = MEM32(esi + 0x4); /* 0x38040282: mov eax, dword ptr [esi + 4] */
   3524     ecx = ebp + (-0x8); /* 0x38040285: lea ecx, [ebp - 8] */
   3525     PUSH32(esp, ecx); /* 0x38040288: push ecx */
   3526     ecx = esi; /* 0x38040289: mov ecx, esi */
   3527     MEM32(eax + 0x8) = eax; /* 0x3804028B: mov dword ptr [eax + 8], eax */
   3528     RECOMP_ICALL(0x380354C0u); /* 0x3804028E: call 0x380354c0 */ /* not lifted */
   3529     RECOMP_FLAGS_IN();
   3530     edi = POP32_VAL(esp); /* 0x38040293: pop edi */
   3531     esi = POP32_VAL(esp); /* 0x38040294: pop esi */
   3532     ebx = POP32_VAL(esp); /* 0x38040295: pop ebx */
   3533     esp = ebp; /* 0x38040296: mov esp, ebp */
   3534     ebp = POP32_VAL(esp); /* 0x38040298: pop ebp */
   3535     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38040299: ret  */
   3536 L_3804029A:
   3537     /* cmp edi, ebx */ /* 0x3804029A: cmp edi, ebx */
   3538     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3539     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3540     _flag_k = FK_CMP;
   3541     if (CMP_EQ(_flag_a, _flag_b)) goto L_380402B9; /* 0x3804029C: je 0x380402b9 */
   3542 L_3804029E:
   3543     ecx = ebp + (-0x4); /* 0x3804029E: lea ecx, [ebp - 4] */
   3544     RECOMP_ICALL(0x380249B0u); /* 0x380402A1: call 0x380249b0 */ /* not lifted */
   3545     RECOMP_FLAGS_IN();
   3546     PUSH32(esp, edi); /* 0x380402A6: push edi */
   3547     edx = ebp + (-0xC); /* 0x380402A7: lea edx, [ebp - 0xc] */
   3548     PUSH32(esp, edx); /* 0x380402AA: push edx */
   3549     ecx = esi; /* 0x380402AB: mov ecx, esi */
   3550     RECOMP_ICALL(0x3801ACB0u); /* 0x380402AD: call 0x3801acb0 */ /* not lifted */
   3551     RECOMP_FLAGS_IN();
   3552     edi = MEM32(ebp + (-0x4)); /* 0x380402B2: mov edi, dword ptr [ebp - 4] */
   3553     /* cmp edi, ebx */ /* 0x380402B5: cmp edi, ebx */
   3554     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3556     _flag_k = FK_CMP;
   3557     RECOMP_BACKEDGE();
   3558     if (CMP_NE(_flag_a, _flag_b)) goto L_3804029E; /* 0x380402B7: jne 0x3804029e */
   3559 L_380402B9:
   3560     edi = POP32_VAL(esp); /* 0x380402B9: pop edi */
   3561     esi = POP32_VAL(esp); /* 0x380402BA: pop esi */
   3562     ebx = POP32_VAL(esp); /* 0x380402BB: pop ebx */
   3563     esp = ebp; /* 0x380402BC: mov esp, ebp */
   3564     ebp = POP32_VAL(esp); /* 0x380402BE: pop ebp */
   3565     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380402BF: ret  */
   3566     RECOMP_REGS_OUT();
   3567 }
   3568 
   3569 void sub_380402C0(void) {
   3570     int _fpu_cmp = 0;
   3571     uint32_t _cf = 0;
   3572     int _df = 1;
   3573     uint32_t _flag_k = FK_NONE;
   3574     uint32_t _flag_a = 0, _flag_b = 0;
   3575     uint32_t _itail_tgt = 0;
   3576     RECOMP_REGS_LOCALS
   3577     RECOMP_ENTER(0x380402C0u);
   3578 
   3579 L_380402C0:
   3580     PUSH32(esp, ebp); /* 0x380402C0: push ebp */
   3581     ebp = esp; /* 0x380402C1: mov ebp, esp */
   3582     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3584     esp = esp - 8; /* 0x380402C3: sub esp, 8 */
   3585     _flag_k = FK_CMP;
   3586     PUSH32(esp, ebx); /* 0x380402C6: push ebx */
   3587     PUSH32(esp, esi); /* 0x380402C7: push esi */
   3588     esi = MEM32(0x3806F148); /* 0x380402C8: mov esi, dword ptr [0x3806f148] */
   3589     /* test esi, esi */ /* 0x380402CE: test esi, esi */
   3590     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3591     _cf = 0;
   3592     _flag_k = FK_TEST;
   3593     PUSH32(esp, edi); /* 0x380402D0: push edi */
   3594     if (TEST_Z(_flag_a, _flag_b)) goto L_3804035C; /* 0x380402D1: je 0x3804035c */
   3595 L_380402D7:
   3596     edi = MEM32(esi + 0x4); /* 0x380402D7: mov edi, dword ptr [esi + 4] */
   3597     ecx = MEM32(esi + 0x10); /* 0x380402DA: mov ecx, dword ptr [esi + 0x10] */
   3598     /* test ecx, ecx */ /* 0x380402DD: test ecx, ecx */
   3599     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3600     _cf = 0;
   3601     _flag_k = FK_TEST;
   3602     eax = MEM32(edi); /* 0x380402DF: mov eax, dword ptr [edi] */
   3603     MEM32(ebp + (-0x4)) = eax; /* 0x380402E1: mov dword ptr [ebp - 4], eax */
   3604     if (TEST_Z(_flag_a, _flag_b)) goto L_3804033B; /* 0x380402E4: je 0x3804033b */
   3605 L_380402E6:
   3606     ecx = eax; /* 0x380402E6: mov ecx, eax */
   3607     /* cmp eax, ecx */ /* 0x380402E8: cmp eax, ecx */
   3608     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3609     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3610     _flag_k = FK_CMP;
   3611     if (CMP_NE(_flag_a, _flag_b)) goto L_3804033B; /* 0x380402EA: jne 0x3804033b */
   3612 L_380402EC:
   3613     /* cmp edi, edi */ /* 0x380402EC: cmp edi, edi */
   3614     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3616     _flag_k = FK_CMP;
   3617     if (CMP_NE(_flag_a, _flag_b)) goto L_3804033B; /* 0x380402EE: jne 0x3804033b */
   3618 L_380402F0:
   3619     ebx = MEM32(edi + 0x4); /* 0x380402F0: mov ebx, dword ptr [edi + 4] */
   3620     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x380402F3: cmp ebx, dword ptr [esi + 8] */
   3621     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3623     _flag_k = FK_CMP;
   3624     edi = ebx; /* 0x380402F6: mov edi, ebx */
   3625     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040319; /* 0x380402F8: je 0x38040319 */
   3626 L_380402FA:
   3627     eax = MEM32(edi + 0x8); /* 0x380402FA: mov eax, dword ptr [edi + 8] */
   3628     PUSH32(esp, eax); /* 0x380402FD: push eax */
   3629     ecx = esi; /* 0x380402FE: mov ecx, esi */
   3630     RECOMP_ICALL(0x38040400u); /* 0x38040300: call 0x38040400 */ /* not lifted */
   3631     RECOMP_FLAGS_IN();
   3632     edi = MEM32(edi); /* 0x38040305: mov edi, dword ptr [edi] */
   3633     PUSH32(esp, ebx); /* 0x38040307: push ebx */
   3634     RECOMP_ICALL(0x3804B4F6u); /* 0x38040308: call 0x3804b4f6 */ /* not lifted */
   3635     RECOMP_FLAGS_IN();
   3636     eax = MEM32(esi + 0x8); /* 0x3804030D: mov eax, dword ptr [esi + 8] */
   3637     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3638     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3639     esp = esp + 4; /* 0x38040310: add esp, 4 */
   3640     _flag_k = FK_ADD;
   3641     /* cmp edi, eax */ /* 0x38040313: cmp edi, eax */
   3642     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3644     _flag_k = FK_CMP;
   3645     ebx = edi; /* 0x38040315: mov ebx, edi */
   3646     RECOMP_BACKEDGE();
   3647     if (CMP_NE(_flag_a, _flag_b)) goto L_380402FA; /* 0x38040317: jne 0x380402fa */
   3648 L_38040319:
   3649     ecx = MEM32(esi + 0x4); /* 0x38040319: mov ecx, dword ptr [esi + 4] */
   3650     edx = MEM32(esi + 0x8); /* 0x3804031C: mov edx, dword ptr [esi + 8] */
   3651     MEM32(ecx + 0x4) = edx; /* 0x3804031F: mov dword ptr [ecx + 4], edx */
   3652     eax = MEM32(esi + 0x4); /* 0x38040322: mov eax, dword ptr [esi + 4] */
   3653     MEM32(esi + 0x10) = 0; /* 0x38040325: mov dword ptr [esi + 0x10], 0 */
   3654     MEM32(eax) = eax; /* 0x3804032C: mov dword ptr [eax], eax */
   3655     esi = MEM32(esi + 0x4); /* 0x3804032E: mov esi, dword ptr [esi + 4] */
   3656     edi = POP32_VAL(esp); /* 0x38040331: pop edi */
   3657     MEM32(esi + 0x8) = esi; /* 0x38040332: mov dword ptr [esi + 8], esi */
   3658     esi = POP32_VAL(esp); /* 0x38040335: pop esi */
   3659     ebx = POP32_VAL(esp); /* 0x38040336: pop ebx */
   3660     esp = ebp; /* 0x38040337: mov esp, ebp */
   3661     ebp = POP32_VAL(esp); /* 0x38040339: pop ebp */
   3662     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804033A: ret  */
   3663 L_3804033B:
   3664     /* cmp eax, edi */ /* 0x3804033B: cmp eax, edi */
   3665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3667     _flag_k = FK_CMP;
   3668     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804035C; /* 0x3804033D: je 0x3804035c */
   3669 L_3804033F:
   3670     ecx = ebp + (-0x4); /* 0x3804033F: lea ecx, [ebp - 4] */
   3671     ebx = eax; /* 0x38040342: mov ebx, eax */
   3672     RECOMP_ICALL(0x380249B0u); /* 0x38040344: call 0x380249b0 */ /* not lifted */
   3673     RECOMP_FLAGS_IN();
   3674     PUSH32(esp, ebx); /* 0x38040349: push ebx */
   3675     eax = ebp + (-0x8); /* 0x3804034A: lea eax, [ebp - 8] */
   3676     PUSH32(esp, eax); /* 0x3804034D: push eax */
   3677     ecx = esi; /* 0x3804034E: mov ecx, esi */
   3678     RECOMP_ICALL(0x3801ACB0u); /* 0x38040350: call 0x3801acb0 */ /* not lifted */
   3679     RECOMP_FLAGS_IN();
   3680     eax = MEM32(ebp + (-0x4)); /* 0x38040355: mov eax, dword ptr [ebp - 4] */
   3681     /* cmp eax, edi */ /* 0x38040358: cmp eax, edi */
   3682     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3684     _flag_k = FK_CMP;
   3685     RECOMP_BACKEDGE();
   3686     if (CMP_NE(_flag_a, _flag_b)) goto L_3804033F; /* 0x3804035A: jne 0x3804033f */
   3687 L_3804035C:
   3688     edi = POP32_VAL(esp); /* 0x3804035C: pop edi */
   3689     esi = POP32_VAL(esp); /* 0x3804035D: pop esi */
   3690     ebx = POP32_VAL(esp); /* 0x3804035E: pop ebx */
   3691     esp = ebp; /* 0x3804035F: mov esp, ebp */
   3692     ebp = POP32_VAL(esp); /* 0x38040361: pop ebp */
   3693     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38040362: ret  */
   3694     RECOMP_REGS_OUT();
   3695 }
   3696 
   3697 void sub_38040370(void) {
   3698     int _fpu_cmp = 0;
   3699     uint32_t _cf = 0;
   3700     int _df = 1;
   3701     uint32_t _flag_k = FK_NONE;
   3702     uint32_t _flag_a = 0, _flag_b = 0;
   3703     uint32_t _itail_tgt = 0;
   3704     RECOMP_REGS_LOCALS
   3705     RECOMP_ENTER(0x38040370u);
   3706 
   3707 L_38040370:
   3708     PUSH32(esp, ebp); /* 0x38040370: push ebp */
   3709     ebp = esp; /* 0x38040371: mov ebp, esp */
   3710     PUSH32(esp, ecx); /* 0x38040373: push ecx */
   3711     PUSH32(esp, ebx); /* 0x38040374: push ebx */
   3712     PUSH32(esp, esi); /* 0x38040375: push esi */
   3713     ebx = ecx; /* 0x38040376: mov ebx, ecx */
   3714     eax = MEM32(ebx + 0x8); /* 0x38040378: mov eax, dword ptr [ebx + 8] */
   3715     PUSH32(esp, edi); /* 0x3804037B: push edi */
   3716     edi = MEM32(ebx + 0x4); /* 0x3804037C: mov edi, dword ptr [ebx + 4] */
   3717     esi = MEM32(edi + 0x4); /* 0x3804037F: mov esi, dword ptr [edi + 4] */
   3718     /* cmp esi, eax */ /* 0x38040382: cmp esi, eax */
   3719     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3721     _flag_k = FK_CMP;
   3722     if (CMP_EQ(_flag_a, _flag_b)) goto L_380403A4; /* 0x38040384: je 0x380403a4 */
   3723 L_38040386:
   3724     eax = MEM32(ebp + 0xC); /* 0x38040386: mov eax, dword ptr [ebp + 0xc] */
   3725     PUSH32(esp, eax); /* 0x38040389: push eax */
   3726     ecx = esi + 0xC; /* 0x3804038A: lea ecx, [esi + 0xc] */
   3727     RECOMP_ICALL(0x380179F0u); /* 0x3804038D: call 0x380179f0 */ /* not lifted */
   3728     RECOMP_FLAGS_IN();
   3729     /* test LO8(eax), LO8(eax) */ /* 0x38040392: test al, al */
   3730     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3731     _cf = 0;
   3732     _flag_k = FK_NARROW(FK_TEST, 24);
   3733     if (TEST_Z(_flag_a, _flag_b)) goto L_3804039B; /* 0x38040394: je 0x3804039b */
   3734 L_38040396:
   3735     esi = MEM32(esi + 0x8); /* 0x38040396: mov esi, dword ptr [esi + 8] */
   3736     goto L_3804039F; /* 0x38040399: jmp 0x3804039f */
   3737 L_3804039B:
   3738     edi = esi; /* 0x3804039B: mov edi, esi */
   3739     esi = MEM32(esi); /* 0x3804039D: mov esi, dword ptr [esi] */
   3740 L_3804039F:
   3741     /* cmp esi, MEM32(ebx + 0x8) */ /* 0x3804039F: cmp esi, dword ptr [ebx + 8] */
   3742     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8));
   3743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3744     _flag_k = FK_CMP;
   3745     RECOMP_BACKEDGE();
   3746     if (CMP_NE(_flag_a, _flag_b)) goto L_38040386; /* 0x380403A2: jne 0x38040386 */
   3747 L_380403A4:
   3748     ebx = MEM32(ebx + 0x4); /* 0x380403A4: mov ebx, dword ptr [ebx + 4] */
   3749     /* cmp edi, ebx */ /* 0x380403A7: cmp edi, ebx */
   3750     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3752     _flag_k = FK_CMP;
   3753     MEM32(ebp + (-0x4)) = edi; /* 0x380403A9: mov dword ptr [ebp - 4], edi */
   3754     if (CMP_EQ(_flag_a, _flag_b)) goto L_380403E1; /* 0x380403AC: je 0x380403e1 */
   3755 L_380403AE:
   3756     edx = MEM32(ebp + 0xC); /* 0x380403AE: mov edx, dword ptr [ebp + 0xc] */
   3757     eax = MEM32(edx); /* 0x380403B1: mov eax, dword ptr [edx] */
   3758     ecx = MEM32(edi + 0xC); /* 0x380403B3: mov ecx, dword ptr [edi + 0xc] */
   3759     /* cmp eax, ecx */ /* 0x380403B6: cmp eax, ecx */
   3760     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3762     _flag_k = FK_CMP;
   3763     if (CMP_NE(_flag_a, _flag_b)) goto L_380403C7; /* 0x380403B8: jne 0x380403c7 */
   3764 L_380403BA:
   3765     eax = MEM32(edi + 0x10); /* 0x380403BA: mov eax, dword ptr [edi + 0x10] */
   3766     ecx = MEM32(edx + 0x4); /* 0x380403BD: mov ecx, dword ptr [edx + 4] */
   3767     /* cmp ecx, eax */ /* 0x380403C0: cmp ecx, eax */
   3768     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3770     _flag_k = FK_CMP;
   3771     SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x380403C2: setb al */
   3772     goto L_380403CA; /* 0x380403C5: jmp 0x380403ca */
   3773 L_380403C7:
   3774     SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x380403C7: setl al */
   3775 L_380403CA:
   3776     /* test LO8(eax), LO8(eax) */ /* 0x380403CA: test al, al */
   3777     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3778     _cf = 0;
   3779     _flag_k = FK_NARROW(FK_TEST, 24);
   3780     if (TEST_NZ(_flag_a, _flag_b)) goto L_380403E1; /* 0x380403CC: jne 0x380403e1 */
   3781 L_380403CE:
   3782     eax = ebp + (-0x4); /* 0x380403CE: lea eax, [ebp - 4] */
   3783     edx = MEM32(eax); /* 0x380403D1: mov edx, dword ptr [eax] */
   3784     eax = MEM32(ebp + 0x8); /* 0x380403D3: mov eax, dword ptr [ebp + 8] */
   3785     edi = POP32_VAL(esp); /* 0x380403D6: pop edi */
   3786     esi = POP32_VAL(esp); /* 0x380403D7: pop esi */
   3787     MEM32(eax) = edx; /* 0x380403D8: mov dword ptr [eax], edx */
   3788     ebx = POP32_VAL(esp); /* 0x380403DA: pop ebx */
   3789     esp = ebp; /* 0x380403DB: mov esp, ebp */
   3790     ebp = POP32_VAL(esp); /* 0x380403DD: pop ebp */
   3791     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380403DE: ret 8 */
   3792 L_380403E1:
   3793     eax = ebp + 0xC; /* 0x380403E1: lea eax, [ebp + 0xc] */
   3794     MEM32(ebp + 0xC) = ebx; /* 0x380403E4: mov dword ptr [ebp + 0xc], ebx */
   3795     edx = MEM32(eax); /* 0x380403E7: mov edx, dword ptr [eax] */
   3796     eax = MEM32(ebp + 0x8); /* 0x380403E9: mov eax, dword ptr [ebp + 8] */
   3797     edi = POP32_VAL(esp); /* 0x380403EC: pop edi */
   3798     esi = POP32_VAL(esp); /* 0x380403ED: pop esi */
   3799     MEM32(eax) = edx; /* 0x380403EE: mov dword ptr [eax], edx */
   3800     ebx = POP32_VAL(esp); /* 0x380403F0: pop ebx */
   3801     esp = ebp; /* 0x380403F1: mov esp, ebp */
   3802     ebp = POP32_VAL(esp); /* 0x380403F3: pop ebp */
   3803     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380403F4: ret 8 */
   3804     RECOMP_REGS_OUT();
   3805 }
   3806 
   3807 void sub_38040400(void) {
   3808     int _fpu_cmp = 0;
   3809     uint32_t _cf = 0;
   3810     int _df = 1;
   3811     uint32_t _flag_k = FK_NONE;
   3812     uint32_t _flag_a = 0, _flag_b = 0;
   3813     uint32_t _itail_tgt = 0;
   3814     RECOMP_REGS_LOCALS
   3815     RECOMP_ENTER(0x38040400u);
   3816 
   3817 L_38040400:
   3818     PUSH32(esp, ebp); /* 0x38040400: push ebp */
   3819     ebp = esp; /* 0x38040401: mov ebp, esp */
   3820     PUSH32(esp, ebx); /* 0x38040403: push ebx */
   3821     PUSH32(esp, esi); /* 0x38040404: push esi */
   3822     ebx = ecx; /* 0x38040405: mov ebx, ecx */
   3823     eax = MEM32(ebx + 0x8); /* 0x38040407: mov eax, dword ptr [ebx + 8] */
   3824     PUSH32(esp, edi); /* 0x3804040A: push edi */
   3825     edi = MEM32(ebp + 0x8); /* 0x3804040B: mov edi, dword ptr [ebp + 8] */
   3826     /* cmp edi, eax */ /* 0x3804040E: cmp edi, eax */
   3827     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3829     _flag_k = FK_CMP;
   3830     esi = edi; /* 0x38040410: mov esi, edi */
   3831     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040433; /* 0x38040412: je 0x38040433 */
   3832 L_38040414:
   3833     eax = MEM32(esi + 0x8); /* 0x38040414: mov eax, dword ptr [esi + 8] */
   3834     PUSH32(esp, eax); /* 0x38040417: push eax */
   3835     ecx = ebx; /* 0x38040418: mov ecx, ebx */
   3836     RECOMP_ICALL(0x38040400u); /* 0x3804041A: call 0x38040400 */ /* not lifted */
   3837     RECOMP_FLAGS_IN();
   3838     esi = MEM32(esi); /* 0x3804041F: mov esi, dword ptr [esi] */
   3839     PUSH32(esp, edi); /* 0x38040421: push edi */
   3840     RECOMP_ICALL(0x3804B4F6u); /* 0x38040422: call 0x3804b4f6 */ /* not lifted */
   3841     RECOMP_FLAGS_IN();
   3842     eax = MEM32(ebx + 0x8); /* 0x38040427: mov eax, dword ptr [ebx + 8] */
   3843     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3844     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3845     esp = esp + 4; /* 0x3804042A: add esp, 4 */
   3846     _flag_k = FK_ADD;
   3847     /* cmp esi, eax */ /* 0x3804042D: cmp esi, eax */
   3848     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3850     _flag_k = FK_CMP;
   3851     edi = esi; /* 0x3804042F: mov edi, esi */
   3852     RECOMP_BACKEDGE();
   3853     if (CMP_NE(_flag_a, _flag_b)) goto L_38040414; /* 0x38040431: jne 0x38040414 */
   3854 L_38040433:
   3855     edi = POP32_VAL(esp); /* 0x38040433: pop edi */
   3856     esi = POP32_VAL(esp); /* 0x38040434: pop esi */
   3857     ebx = POP32_VAL(esp); /* 0x38040435: pop ebx */
   3858     ebp = POP32_VAL(esp); /* 0x38040436: pop ebp */
   3859     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38040437: ret 4 */
   3860     RECOMP_REGS_OUT();
   3861 }
   3862 
   3863 void sub_38040440(void) {
   3864     int _fpu_cmp = 0;
   3865     uint32_t _cf = 0;
   3866     int _df = 1;
   3867     uint32_t _flag_k = FK_NONE;
   3868     uint32_t _flag_a = 0, _flag_b = 0;
   3869     uint32_t _itail_tgt = 0;
   3870     RECOMP_REGS_LOCALS
   3871     RECOMP_ENTER(0x38040440u);
   3872 
   3873 L_38040440:
   3874     PUSH32(esp, ebp); /* 0x38040440: push ebp */
   3875     ebp = esp; /* 0x38040441: mov ebp, esp */
   3876     PUSH32(esp, ecx); /* 0x38040443: push ecx */
   3877     PUSH32(esp, ebx); /* 0x38040444: push ebx */
   3878     PUSH32(esp, esi); /* 0x38040445: push esi */
   3879     PUSH32(esp, edi); /* 0x38040446: push edi */
   3880     PUSH32(esp, 0x1Cu); /* 0x38040447: push 0x1c */
   3881     esi = ecx; /* 0x38040449: mov esi, ecx */
   3882     RECOMP_ICALL(0x3804B676u); /* 0x3804044B: call 0x3804b676 */ /* not lifted */
   3883     RECOMP_FLAGS_IN();
   3884     edi = MEM32(ebp + 0x10); /* 0x38040450: mov edi, dword ptr [ebp + 0x10] */
   3885     ebx = MEM32(ebp + 0x14); /* 0x38040453: mov ebx, dword ptr [ebp + 0x14] */
   3886     MEM32(eax + 0x4) = edi; /* 0x38040456: mov dword ptr [eax + 4], edi */
   3887     MEM8(eax + 0x18) = (uint8_t)(0); /* 0x38040459: mov byte ptr [eax + 0x18], 0 */
   3888     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x3804045D: mov byte ptr [eax + 0x19], 0 */
   3889     ecx = MEM32(esi + 0x8); /* 0x38040461: mov ecx, dword ptr [esi + 8] */
   3890     MEM32(eax) = ecx; /* 0x38040464: mov dword ptr [eax], ecx */
   3891     edx = MEM32(esi + 0x8); /* 0x38040466: mov edx, dword ptr [esi + 8] */
   3892     MEM32(ebp + (-0x4)) = eax; /* 0x38040469: mov dword ptr [ebp - 4], eax */
   3893     MEM32(eax + 0x8) = edx; /* 0x3804046C: mov dword ptr [eax + 8], edx */
   3894     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   3895     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3896     eax = eax + 0xCu; /* 0x3804046F: add eax, 0xc */
   3897     _flag_k = FK_ADD;
   3898     PUSH32(esp, ebx); /* 0x38040472: push ebx */
   3899     PUSH32(esp, eax); /* 0x38040473: push eax */
   3900     RECOMP_ICALL(0x3801B440u); /* 0x38040474: call 0x3801b440 */ /* not lifted */
   3901     RECOMP_FLAGS_IN();
   3902     ecx = MEM32(esi + 0x10); /* 0x38040479: mov ecx, dword ptr [esi + 0x10] */
   3903     eax = MEM32(esi + 0x4); /* 0x3804047C: mov eax, dword ptr [esi + 4] */
   3904     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3905     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3906     esp = esp + 0xCu; /* 0x3804047F: add esp, 0xc */
   3907     _flag_k = FK_ADD;
   3908     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3909     ecx = ecx + 1; /* 0x38040482: inc ecx */
   3910     _flag_k = FK_INC;
   3911     /* cmp edi, eax */ /* 0x38040483: cmp edi, eax */
   3912     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3913     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3914     _flag_k = FK_CMP;
   3915     MEM32(esi + 0x10) = ecx; /* 0x38040485: mov dword ptr [esi + 0x10], ecx */
   3916     if (CMP_EQ(_flag_a, _flag_b)) goto L_380404B4; /* 0x38040488: je 0x380404b4 */
   3917 L_3804048A:
   3918     eax = MEM32(ebp + 0xC); /* 0x3804048A: mov eax, dword ptr [ebp + 0xc] */
   3919     /* cmp eax, MEM32(esi + 0x8) */ /* 0x3804048D: cmp eax, dword ptr [esi + 8] */
   3920     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3922     _flag_k = FK_CMP;
   3923     if (CMP_NE(_flag_a, _flag_b)) goto L_380404B4; /* 0x38040490: jne 0x380404b4 */
   3924 L_38040492:
   3925     ecx = edi + 0xC; /* 0x38040492: lea ecx, [edi + 0xc] */
   3926     PUSH32(esp, ecx); /* 0x38040495: push ecx */
   3927     ecx = ebx; /* 0x38040496: mov ecx, ebx */
   3928     RECOMP_ICALL(0x380179F0u); /* 0x38040498: call 0x380179f0 */ /* not lifted */
   3929     RECOMP_FLAGS_IN();
   3930     /* test LO8(eax), LO8(eax) */ /* 0x3804049D: test al, al */
   3931     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3932     _cf = 0;
   3933     _flag_k = FK_NARROW(FK_TEST, 24);
   3934     if (TEST_NZ(_flag_a, _flag_b)) goto L_380404B4; /* 0x3804049F: jne 0x380404b4 */
   3935 L_380404A1:
   3936     ecx = MEM32(ebp + (-0x4)); /* 0x380404A1: mov ecx, dword ptr [ebp - 4] */
   3937     MEM32(edi + 0x8) = ecx; /* 0x380404A4: mov dword ptr [edi + 8], ecx */
   3938     eax = MEM32(esi + 0x4); /* 0x380404A7: mov eax, dword ptr [esi + 4] */
   3939     /* cmp edi, MEM32(eax + 0x8) */ /* 0x380404AA: cmp edi, dword ptr [eax + 8] */
   3940     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3942     _flag_k = FK_CMP;
   3943     if (CMP_NE(_flag_a, _flag_b)) goto L_380404D4; /* 0x380404AD: jne 0x380404d4 */
   3944 L_380404AF:
   3945     MEM32(eax + 0x8) = ecx; /* 0x380404AF: mov dword ptr [eax + 8], ecx */
   3946     goto L_380404D4; /* 0x380404B2: jmp 0x380404d4 */
   3947 L_380404B4:
   3948     ecx = MEM32(ebp + (-0x4)); /* 0x380404B4: mov ecx, dword ptr [ebp - 4] */
   3949     MEM32(edi) = ecx; /* 0x380404B7: mov dword ptr [edi], ecx */
   3950     eax = MEM32(esi + 0x4); /* 0x380404B9: mov eax, dword ptr [esi + 4] */
   3951     /* cmp edi, eax */ /* 0x380404BC: cmp edi, eax */
   3952     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3954     _flag_k = FK_CMP;
   3955     if (CMP_NE(_flag_a, _flag_b)) goto L_380404CB; /* 0x380404BE: jne 0x380404cb */
   3956 L_380404C0:
   3957     MEM32(eax + 0x4) = ecx; /* 0x380404C0: mov dword ptr [eax + 4], ecx */
   3958     edx = MEM32(esi + 0x4); /* 0x380404C3: mov edx, dword ptr [esi + 4] */
   3959     MEM32(edx + 0x8) = ecx; /* 0x380404C6: mov dword ptr [edx + 8], ecx */
   3960     goto L_380404D4; /* 0x380404C9: jmp 0x380404d4 */
   3961 L_380404CB:
   3962     /* cmp edi, MEM32(eax) */ /* 0x380404CB: cmp edi, dword ptr [eax] */
   3963     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   3964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3965     _flag_k = FK_CMP;
   3966     if (CMP_NE(_flag_a, _flag_b)) goto L_380404D4; /* 0x380404CD: jne 0x380404d4 */
   3967 L_380404CF:
   3968     ecx = MEM32(ebp + (-0x4)); /* 0x380404CF: mov ecx, dword ptr [ebp - 4] */
   3969     MEM32(eax) = ecx; /* 0x380404D2: mov dword ptr [eax], ecx */
   3970 L_380404D4:
   3971     edx = MEM32(esi + 0x4); /* 0x380404D4: mov edx, dword ptr [esi + 4] */
   3972     eax = MEM32(ebp + (-0x4)); /* 0x380404D7: mov eax, dword ptr [ebp - 4] */
   3973     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380404DA: cmp eax, dword ptr [edx + 4] */
   3974     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3976     _flag_k = FK_CMP;
   3977     SET_LO8(ebx, 1); /* 0x380404DD: mov bl, 1 */
   3978     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404DF: je 0x38040665 */
   3979 L_380404E5:
   3980     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   3981     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   3982     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   3983     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3984     _cf = 0;
   3985     _flag_k = FK_NARROW(FK_TEST, 24);
   3986     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   3987 L_380404F3:
   3988     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   3989     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   3990     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   3991     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3993     _flag_k = FK_CMP;
   3994     if (CMP_NE(_flag_a, _flag_b)) goto L_380405C1; /* 0x380404FA: jne 0x380405c1 */
   3995 L_38040500:
   3996     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   3997     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   3998     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   3999     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4000     _flag_k = FK_NARROW(FK_CMP, 24);
   4001     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   4002 L_38040509:
   4003     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   4004     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   4005     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   4006     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   4007     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   4008     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   4009     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   4010     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   4011 L_38040524:
   4012     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   4013     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4015     _flag_k = FK_CMP;
   4016     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   4017 L_38040529:
   4018     eax = ecx; /* 0x38040529: mov eax, ecx */
   4019     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   4020     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   4021     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   4022     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   4023     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   4024     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4026     _flag_k = FK_CMP;
   4027     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   4028 L_3804053A:
   4029     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   4030 L_3804053D:
   4031     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   4032     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   4033     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   4034     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   4035     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4037     _flag_k = FK_CMP;
   4038     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   4039 L_3804054B:
   4040     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   4041     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   4042 L_38040550:
   4043     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   4044     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   4045     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4047     _flag_k = FK_CMP;
   4048     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   4049 L_38040557:
   4050     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   4051     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   4052 L_3804055B:
   4053     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   4054 L_3804055E:
   4055     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   4056     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   4057 L_38040563:
   4058     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   4059     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   4060     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   4061     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   4062     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   4063     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   4064     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   4065     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   4066     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   4067     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   4068     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   4069     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   4070     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4072     _flag_k = FK_CMP;
   4073     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   4074 L_38040588:
   4075     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   4076 L_3804058B:
   4077     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   4078     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   4079     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   4080     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   4081     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4083     _flag_k = FK_CMP;
   4084     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   4085 L_38040599:
   4086     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   4087     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   4088     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   4089 L_380405A4:
   4090     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   4091     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   4092     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4094     _flag_k = FK_CMP;
   4095     if (CMP_NE(_flag_a, _flag_b)) goto L_380405B7; /* 0x380405AA: jne 0x380405b7 */
   4096 L_380405AC:
   4097     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   4098     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   4099     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   4100 L_380405B7:
   4101     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   4102     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   4103     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   4104 L_380405C1:
   4105     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   4106     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4108     _flag_k = FK_NARROW(FK_CMP, 24);
   4109     RECOMP_BACKEDGE();
   4110     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   4111 L_380405CB:
   4112     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   4113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4115     _flag_k = FK_CMP;
   4116     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   4117 L_380405CF:
   4118     eax = ecx; /* 0x380405CF: mov eax, ecx */
   4119     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   4120     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   4121     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   4122     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   4123     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   4124     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4125     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4126     _flag_k = FK_CMP;
   4127     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   4128 L_380405E0:
   4129     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   4130 L_380405E3:
   4131     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   4132     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   4133     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   4134     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   4135     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4137     _flag_k = FK_CMP;
   4138     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   4139 L_380405F1:
   4140     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   4141     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   4142 L_380405F6:
   4143     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   4144     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   4145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4147     _flag_k = FK_CMP;
   4148     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   4149 L_380405FE:
   4150     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   4151     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   4152 L_38040603:
   4153     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   4154 L_38040605:
   4155     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   4156     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   4157 L_3804060B:
   4158     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   4159     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   4160     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   4161     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   4162     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   4163     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   4164     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   4165     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   4166     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   4167     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   4168     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   4169     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   4170     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4171     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4172     _flag_k = FK_CMP;
   4173     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   4174 L_38040630:
   4175     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   4176 L_38040633:
   4177     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   4178     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   4179     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   4180     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   4181     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4183     _flag_k = FK_CMP;
   4184     if (CMP_NE(_flag_a, _flag_b)) goto L_38040646; /* 0x3804063F: jne 0x38040646 */
   4185 L_38040641:
   4186     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   4187     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   4188 L_38040646:
   4189     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   4190     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   4191     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4193     _flag_k = FK_CMP;
   4194     if (CMP_NE(_flag_a, _flag_b)) goto L_38040651; /* 0x3804064B: jne 0x38040651 */
   4195 L_3804064D:
   4196     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   4197     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   4198 L_38040651:
   4199     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   4200 L_38040654:
   4201     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   4202 L_38040656:
   4203     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   4204 L_38040659:
   4205     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   4206     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   4207     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4209     _flag_k = FK_CMP;
   4210     RECOMP_BACKEDGE();
   4211     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   4212 L_38040665:
   4213     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   4214     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   4215     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   4216     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   4217     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   4218     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   4219     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   4220     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   4221     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   4222     esp = ebp; /* 0x38040679: mov esp, ebp */
   4223     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   4224     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   4225     RECOMP_REGS_OUT();
   4226 }
   4227 
   4228 void sub_380404E5(void) {
   4229     int _fpu_cmp = 0;
   4230     uint32_t _cf = 0;
   4231     int _df = 1;
   4232     uint32_t _flag_k = FK_NONE;
   4233     uint32_t _flag_a = 0, _flag_b = 0;
   4234     uint32_t _itail_tgt = 0;
   4235     RECOMP_REGS_LOCALS
   4236     RECOMP_ENTER(0x380404E5u);
   4237 
   4238 L_380404E5:
   4239     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   4240     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   4241     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   4242     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4243     _cf = 0;
   4244     _flag_k = FK_NARROW(FK_TEST, 24);
   4245     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   4246 L_380404F3:
   4247     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   4248     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   4249     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   4250     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4251     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4252     _flag_k = FK_CMP;
   4253     if (CMP_NE(_flag_a, _flag_b)) goto L_380405C1; /* 0x380404FA: jne 0x380405c1 */
   4254 L_38040500:
   4255     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   4256     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   4257     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4258     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4259     _flag_k = FK_NARROW(FK_CMP, 24);
   4260     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   4261 L_38040509:
   4262     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   4263     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   4264     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   4265     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   4266     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   4267     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   4268     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   4269     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   4270 L_38040524:
   4271     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   4272     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4274     _flag_k = FK_CMP;
   4275     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   4276 L_38040529:
   4277     eax = ecx; /* 0x38040529: mov eax, ecx */
   4278     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   4279     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   4280     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   4281     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   4282     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   4283     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4284     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4285     _flag_k = FK_CMP;
   4286     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   4287 L_3804053A:
   4288     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   4289 L_3804053D:
   4290     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   4291     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   4292     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   4293     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   4294     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4296     _flag_k = FK_CMP;
   4297     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   4298 L_3804054B:
   4299     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   4300     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   4301 L_38040550:
   4302     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   4303     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   4304     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4306     _flag_k = FK_CMP;
   4307     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   4308 L_38040557:
   4309     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   4310     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   4311 L_3804055B:
   4312     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   4313 L_3804055E:
   4314     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   4315     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   4316 L_38040563:
   4317     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   4318     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   4319     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   4320     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   4321     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   4322     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   4323     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   4324     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   4325     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   4326     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   4327     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   4328     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   4329     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4330     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4331     _flag_k = FK_CMP;
   4332     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   4333 L_38040588:
   4334     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   4335 L_3804058B:
   4336     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   4337     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   4338     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   4339     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   4340     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4341     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4342     _flag_k = FK_CMP;
   4343     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   4344 L_38040599:
   4345     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   4346     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   4347     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   4348 L_380405A4:
   4349     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   4350     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   4351     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4352     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4353     _flag_k = FK_CMP;
   4354     if (CMP_NE(_flag_a, _flag_b)) goto L_380405B7; /* 0x380405AA: jne 0x380405b7 */
   4355 L_380405AC:
   4356     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   4357     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   4358     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   4359 L_380405B7:
   4360     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   4361     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   4362     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   4363 L_380405C1:
   4364     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   4365     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4367     _flag_k = FK_NARROW(FK_CMP, 24);
   4368     RECOMP_BACKEDGE();
   4369     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   4370 L_380405CB:
   4371     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   4372     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4374     _flag_k = FK_CMP;
   4375     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   4376 L_380405CF:
   4377     eax = ecx; /* 0x380405CF: mov eax, ecx */
   4378     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   4379     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   4380     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   4381     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   4382     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   4383     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4385     _flag_k = FK_CMP;
   4386     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   4387 L_380405E0:
   4388     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   4389 L_380405E3:
   4390     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   4391     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   4392     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   4393     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   4394     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4395     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4396     _flag_k = FK_CMP;
   4397     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   4398 L_380405F1:
   4399     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   4400     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   4401 L_380405F6:
   4402     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   4403     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   4404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4406     _flag_k = FK_CMP;
   4407     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   4408 L_380405FE:
   4409     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   4410     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   4411 L_38040603:
   4412     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   4413 L_38040605:
   4414     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   4415     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   4416 L_3804060B:
   4417     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   4418     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   4419     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   4420     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   4421     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   4422     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   4423     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   4424     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   4425     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   4426     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   4427     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   4428     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   4429     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4431     _flag_k = FK_CMP;
   4432     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   4433 L_38040630:
   4434     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   4435 L_38040633:
   4436     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   4437     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   4438     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   4439     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   4440     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4441     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4442     _flag_k = FK_CMP;
   4443     if (CMP_NE(_flag_a, _flag_b)) goto L_38040646; /* 0x3804063F: jne 0x38040646 */
   4444 L_38040641:
   4445     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   4446     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   4447 L_38040646:
   4448     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   4449     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   4450     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4451     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4452     _flag_k = FK_CMP;
   4453     if (CMP_NE(_flag_a, _flag_b)) goto L_38040651; /* 0x3804064B: jne 0x38040651 */
   4454 L_3804064D:
   4455     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   4456     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   4457 L_38040651:
   4458     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   4459 L_38040654:
   4460     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   4461 L_38040656:
   4462     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   4463 L_38040659:
   4464     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   4465     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   4466     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4468     _flag_k = FK_CMP;
   4469     RECOMP_BACKEDGE();
   4470     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   4471 L_38040665:
   4472     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   4473     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   4474     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   4475     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   4476     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   4477     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   4478     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   4479     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   4480     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   4481     esp = ebp; /* 0x38040679: mov esp, ebp */
   4482     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   4483     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   4484     RECOMP_REGS_OUT();
   4485 }
   4486 
   4487 void sub_38040509(void) {
   4488     int _fpu_cmp = 0;
   4489     uint32_t _cf = 0;
   4490     int _df = 1;
   4491     uint32_t _flag_k = FK_NONE;
   4492     uint32_t _flag_a = 0, _flag_b = 0;
   4493     uint32_t _itail_tgt = 0;
   4494     RECOMP_REGS_LOCALS
   4495     RECOMP_ENTER(0x38040509u);
   4496 
   4497     goto L_38040509;
   4498 L_380404E5:
   4499     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   4500     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   4501     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   4502     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4503     _cf = 0;
   4504     _flag_k = FK_NARROW(FK_TEST, 24);
   4505     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   4506 L_380404F3:
   4507     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   4508     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   4509     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   4510     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4512     _flag_k = FK_CMP;
   4513     if (CMP_NE(_flag_a, _flag_b)) goto L_380405C1; /* 0x380404FA: jne 0x380405c1 */
   4514 L_38040500:
   4515     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   4516     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   4517     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4518     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4519     _flag_k = FK_NARROW(FK_CMP, 24);
   4520     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   4521 L_38040509:
   4522     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   4523     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   4524     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   4525     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   4526     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   4527     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   4528     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   4529     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   4530 L_38040524:
   4531     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   4532     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4534     _flag_k = FK_CMP;
   4535     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   4536 L_38040529:
   4537     eax = ecx; /* 0x38040529: mov eax, ecx */
   4538     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   4539     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   4540     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   4541     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   4542     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   4543     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4545     _flag_k = FK_CMP;
   4546     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   4547 L_3804053A:
   4548     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   4549 L_3804053D:
   4550     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   4551     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   4552     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   4553     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   4554     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4556     _flag_k = FK_CMP;
   4557     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   4558 L_3804054B:
   4559     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   4560     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   4561 L_38040550:
   4562     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   4563     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   4564     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4566     _flag_k = FK_CMP;
   4567     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   4568 L_38040557:
   4569     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   4570     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   4571 L_3804055B:
   4572     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   4573 L_3804055E:
   4574     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   4575     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   4576 L_38040563:
   4577     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   4578     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   4579     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   4580     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   4581     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   4582     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   4583     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   4584     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   4585     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   4586     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   4587     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   4588     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   4589     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4590     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4591     _flag_k = FK_CMP;
   4592     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   4593 L_38040588:
   4594     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   4595 L_3804058B:
   4596     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   4597     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   4598     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   4599     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   4600     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4602     _flag_k = FK_CMP;
   4603     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   4604 L_38040599:
   4605     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   4606     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   4607     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   4608 L_380405A4:
   4609     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   4610     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   4611     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4613     _flag_k = FK_CMP;
   4614     if (CMP_NE(_flag_a, _flag_b)) goto L_380405B7; /* 0x380405AA: jne 0x380405b7 */
   4615 L_380405AC:
   4616     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   4617     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   4618     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   4619 L_380405B7:
   4620     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   4621     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   4622     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   4623 L_380405C1:
   4624     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   4625     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4627     _flag_k = FK_NARROW(FK_CMP, 24);
   4628     RECOMP_BACKEDGE();
   4629     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   4630 L_380405CB:
   4631     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   4632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4633     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4634     _flag_k = FK_CMP;
   4635     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   4636 L_380405CF:
   4637     eax = ecx; /* 0x380405CF: mov eax, ecx */
   4638     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   4639     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   4640     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   4641     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   4642     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   4643     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4644     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4645     _flag_k = FK_CMP;
   4646     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   4647 L_380405E0:
   4648     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   4649 L_380405E3:
   4650     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   4651     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   4652     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   4653     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   4654     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4656     _flag_k = FK_CMP;
   4657     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   4658 L_380405F1:
   4659     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   4660     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   4661 L_380405F6:
   4662     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   4663     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   4664     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4666     _flag_k = FK_CMP;
   4667     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   4668 L_380405FE:
   4669     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   4670     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   4671 L_38040603:
   4672     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   4673 L_38040605:
   4674     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   4675     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   4676 L_3804060B:
   4677     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   4678     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   4679     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   4680     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   4681     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   4682     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   4683     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   4684     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   4685     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   4686     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   4687     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   4688     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   4689     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4691     _flag_k = FK_CMP;
   4692     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   4693 L_38040630:
   4694     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   4695 L_38040633:
   4696     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   4697     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   4698     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   4699     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   4700     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4702     _flag_k = FK_CMP;
   4703     if (CMP_NE(_flag_a, _flag_b)) goto L_38040646; /* 0x3804063F: jne 0x38040646 */
   4704 L_38040641:
   4705     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   4706     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   4707 L_38040646:
   4708     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   4709     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   4710     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4712     _flag_k = FK_CMP;
   4713     if (CMP_NE(_flag_a, _flag_b)) goto L_38040651; /* 0x3804064B: jne 0x38040651 */
   4714 L_3804064D:
   4715     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   4716     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   4717 L_38040651:
   4718     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   4719 L_38040654:
   4720     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   4721 L_38040656:
   4722     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   4723 L_38040659:
   4724     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   4725     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   4726     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4728     _flag_k = FK_CMP;
   4729     RECOMP_BACKEDGE();
   4730     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   4731 L_38040665:
   4732     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   4733     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   4734     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   4735     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   4736     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   4737     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   4738     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   4739     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   4740     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   4741     esp = ebp; /* 0x38040679: mov esp, ebp */
   4742     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   4743     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   4744     RECOMP_REGS_OUT();
   4745 }
   4746 
   4747 void sub_3804055E(void) {
   4748     int _fpu_cmp = 0;
   4749     uint32_t _cf = 0;
   4750     int _df = 1;
   4751     uint32_t _flag_k = FK_NONE;
   4752     uint32_t _flag_a = 0, _flag_b = 0;
   4753     uint32_t _itail_tgt = 0;
   4754     RECOMP_REGS_LOCALS
   4755     RECOMP_ENTER(0x3804055Eu);
   4756 
   4757     goto L_3804055E;
   4758 L_380404E5:
   4759     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   4760     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   4761     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   4762     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4763     _cf = 0;
   4764     _flag_k = FK_NARROW(FK_TEST, 24);
   4765     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   4766 L_380404F3:
   4767     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   4768     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   4769     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   4770     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4772     _flag_k = FK_CMP;
   4773     if (CMP_NE(_flag_a, _flag_b)) goto L_380405C1; /* 0x380404FA: jne 0x380405c1 */
   4774 L_38040500:
   4775     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   4776     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   4777     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4778     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4779     _flag_k = FK_NARROW(FK_CMP, 24);
   4780     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   4781 L_38040509:
   4782     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   4783     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   4784     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   4785     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   4786     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   4787     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   4788     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   4789     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   4790 L_38040524:
   4791     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   4792     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4794     _flag_k = FK_CMP;
   4795     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   4796 L_38040529:
   4797     eax = ecx; /* 0x38040529: mov eax, ecx */
   4798     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   4799     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   4800     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   4801     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   4802     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   4803     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4805     _flag_k = FK_CMP;
   4806     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   4807 L_3804053A:
   4808     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   4809 L_3804053D:
   4810     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   4811     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   4812     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   4813     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   4814     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4816     _flag_k = FK_CMP;
   4817     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   4818 L_3804054B:
   4819     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   4820     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   4821 L_38040550:
   4822     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   4823     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   4824     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4825     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4826     _flag_k = FK_CMP;
   4827     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   4828 L_38040557:
   4829     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   4830     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   4831 L_3804055B:
   4832     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   4833 L_3804055E:
   4834     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   4835     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   4836 L_38040563:
   4837     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   4838     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   4839     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   4840     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   4841     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   4842     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   4843     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   4844     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   4845     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   4846     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   4847     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   4848     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   4849     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4850     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4851     _flag_k = FK_CMP;
   4852     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   4853 L_38040588:
   4854     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   4855 L_3804058B:
   4856     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   4857     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   4858     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   4859     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   4860     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4862     _flag_k = FK_CMP;
   4863     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   4864 L_38040599:
   4865     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   4866     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   4867     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   4868 L_380405A4:
   4869     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   4870     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   4871     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4873     _flag_k = FK_CMP;
   4874     if (CMP_NE(_flag_a, _flag_b)) goto L_380405B7; /* 0x380405AA: jne 0x380405b7 */
   4875 L_380405AC:
   4876     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   4877     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   4878     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   4879 L_380405B7:
   4880     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   4881     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   4882     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   4883 L_380405C1:
   4884     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   4885     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4887     _flag_k = FK_NARROW(FK_CMP, 24);
   4888     RECOMP_BACKEDGE();
   4889     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   4890 L_380405CB:
   4891     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   4892     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4894     _flag_k = FK_CMP;
   4895     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   4896 L_380405CF:
   4897     eax = ecx; /* 0x380405CF: mov eax, ecx */
   4898     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   4899     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   4900     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   4901     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   4902     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   4903     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4904     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4905     _flag_k = FK_CMP;
   4906     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   4907 L_380405E0:
   4908     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   4909 L_380405E3:
   4910     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   4911     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   4912     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   4913     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   4914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4916     _flag_k = FK_CMP;
   4917     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   4918 L_380405F1:
   4919     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   4920     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   4921 L_380405F6:
   4922     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   4923     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   4924     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4926     _flag_k = FK_CMP;
   4927     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   4928 L_380405FE:
   4929     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   4930     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   4931 L_38040603:
   4932     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   4933 L_38040605:
   4934     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   4935     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   4936 L_3804060B:
   4937     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   4938     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   4939     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   4940     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   4941     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   4942     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   4943     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   4944     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   4945     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   4946     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   4947     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   4948     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   4949     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4950     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4951     _flag_k = FK_CMP;
   4952     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   4953 L_38040630:
   4954     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   4955 L_38040633:
   4956     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   4957     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   4958     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   4959     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   4960     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4961     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4962     _flag_k = FK_CMP;
   4963     if (CMP_NE(_flag_a, _flag_b)) goto L_38040646; /* 0x3804063F: jne 0x38040646 */
   4964 L_38040641:
   4965     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   4966     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   4967 L_38040646:
   4968     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   4969     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   4970     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   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_38040651; /* 0x3804064B: jne 0x38040651 */
   4974 L_3804064D:
   4975     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   4976     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   4977 L_38040651:
   4978     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   4979 L_38040654:
   4980     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   4981 L_38040656:
   4982     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   4983 L_38040659:
   4984     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   4985     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   4986     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4987     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4988     _flag_k = FK_CMP;
   4989     RECOMP_BACKEDGE();
   4990     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   4991 L_38040665:
   4992     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   4993     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   4994     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   4995     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   4996     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   4997     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   4998     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   4999     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   5000     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   5001     esp = ebp; /* 0x38040679: mov esp, ebp */
   5002     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   5003     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   5004     RECOMP_REGS_OUT();
   5005 }
   5006 
   5007 void sub_38040563(void) {
   5008     int _fpu_cmp = 0;
   5009     uint32_t _cf = 0;
   5010     int _df = 1;
   5011     uint32_t _flag_k = FK_NONE;
   5012     uint32_t _flag_a = 0, _flag_b = 0;
   5013     uint32_t _itail_tgt = 0;
   5014     RECOMP_REGS_LOCALS
   5015     RECOMP_ENTER(0x38040563u);
   5016 
   5017     goto L_38040563;
   5018 L_380404E5:
   5019     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   5020     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   5021     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   5022     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5023     _cf = 0;
   5024     _flag_k = FK_NARROW(FK_TEST, 24);
   5025     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   5026 L_380404F3:
   5027     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   5028     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   5029     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   5030     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5032     _flag_k = FK_CMP;
   5033     if (CMP_NE(_flag_a, _flag_b)) goto L_380405C1; /* 0x380404FA: jne 0x380405c1 */
   5034 L_38040500:
   5035     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   5036     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   5037     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   5038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5039     _flag_k = FK_NARROW(FK_CMP, 24);
   5040     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   5041 L_38040509:
   5042     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   5043     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   5044     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   5045     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   5046     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   5047     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   5048     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   5049     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   5050 L_38040524:
   5051     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   5052     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5054     _flag_k = FK_CMP;
   5055     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   5056 L_38040529:
   5057     eax = ecx; /* 0x38040529: mov eax, ecx */
   5058     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   5059     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   5060     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   5061     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   5062     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   5063     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5065     _flag_k = FK_CMP;
   5066     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   5067 L_3804053A:
   5068     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   5069 L_3804053D:
   5070     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   5071     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   5072     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   5073     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   5074     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5076     _flag_k = FK_CMP;
   5077     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   5078 L_3804054B:
   5079     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   5080     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   5081 L_38040550:
   5082     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   5083     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   5084     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5085     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5086     _flag_k = FK_CMP;
   5087     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   5088 L_38040557:
   5089     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   5090     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   5091 L_3804055B:
   5092     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   5093 L_3804055E:
   5094     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   5095     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   5096 L_38040563:
   5097     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   5098     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   5099     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   5100     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   5101     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   5102     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   5103     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   5104     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   5105     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   5106     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   5107     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   5108     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   5109     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5110     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5111     _flag_k = FK_CMP;
   5112     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   5113 L_38040588:
   5114     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   5115 L_3804058B:
   5116     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   5117     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   5118     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   5119     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   5120     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5122     _flag_k = FK_CMP;
   5123     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   5124 L_38040599:
   5125     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   5126     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   5127     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   5128 L_380405A4:
   5129     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   5130     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   5131     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5133     _flag_k = FK_CMP;
   5134     if (CMP_NE(_flag_a, _flag_b)) goto L_380405B7; /* 0x380405AA: jne 0x380405b7 */
   5135 L_380405AC:
   5136     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   5137     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   5138     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   5139 L_380405B7:
   5140     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   5141     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   5142     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   5143 L_380405C1:
   5144     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   5145     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   5146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5147     _flag_k = FK_NARROW(FK_CMP, 24);
   5148     RECOMP_BACKEDGE();
   5149     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   5150 L_380405CB:
   5151     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   5152     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5153     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5154     _flag_k = FK_CMP;
   5155     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   5156 L_380405CF:
   5157     eax = ecx; /* 0x380405CF: mov eax, ecx */
   5158     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   5159     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   5160     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   5161     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   5162     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   5163     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5165     _flag_k = FK_CMP;
   5166     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   5167 L_380405E0:
   5168     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   5169 L_380405E3:
   5170     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   5171     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   5172     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   5173     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   5174     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5176     _flag_k = FK_CMP;
   5177     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   5178 L_380405F1:
   5179     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   5180     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   5181 L_380405F6:
   5182     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   5183     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   5184     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5186     _flag_k = FK_CMP;
   5187     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   5188 L_380405FE:
   5189     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   5190     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   5191 L_38040603:
   5192     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   5193 L_38040605:
   5194     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   5195     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   5196 L_3804060B:
   5197     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   5198     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   5199     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   5200     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   5201     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   5202     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   5203     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   5204     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   5205     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   5206     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   5207     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   5208     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   5209     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5210     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5211     _flag_k = FK_CMP;
   5212     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   5213 L_38040630:
   5214     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   5215 L_38040633:
   5216     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   5217     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   5218     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   5219     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   5220     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5222     _flag_k = FK_CMP;
   5223     if (CMP_NE(_flag_a, _flag_b)) goto L_38040646; /* 0x3804063F: jne 0x38040646 */
   5224 L_38040641:
   5225     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   5226     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   5227 L_38040646:
   5228     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   5229     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   5230     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5231     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5232     _flag_k = FK_CMP;
   5233     if (CMP_NE(_flag_a, _flag_b)) goto L_38040651; /* 0x3804064B: jne 0x38040651 */
   5234 L_3804064D:
   5235     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   5236     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   5237 L_38040651:
   5238     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   5239 L_38040654:
   5240     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   5241 L_38040656:
   5242     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   5243 L_38040659:
   5244     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   5245     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   5246     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5248     _flag_k = FK_CMP;
   5249     RECOMP_BACKEDGE();
   5250     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   5251 L_38040665:
   5252     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   5253     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   5254     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   5255     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   5256     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   5257     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   5258     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   5259     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   5260     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   5261     esp = ebp; /* 0x38040679: mov esp, ebp */
   5262     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   5263     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   5264     RECOMP_REGS_OUT();
   5265 }
   5266 
   5267 void sub_380405C1(void) {
   5268     int _fpu_cmp = 0;
   5269     uint32_t _cf = 0;
   5270     int _df = 1;
   5271     uint32_t _flag_k = FK_NONE;
   5272     uint32_t _flag_a = 0, _flag_b = 0;
   5273     uint32_t _itail_tgt = 0;
   5274     RECOMP_REGS_LOCALS
   5275     RECOMP_ENTER(0x380405C1u);
   5276 
   5277     goto L_380405C1;
   5278 L_380404E5:
   5279     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   5280     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   5281     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   5282     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5283     _cf = 0;
   5284     _flag_k = FK_NARROW(FK_TEST, 24);
   5285     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   5286 L_380404F3:
   5287     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   5288     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   5289     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   5290     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5292     _flag_k = FK_CMP;
   5293     if (CMP_NE(_flag_a, _flag_b)) goto L_380405C1; /* 0x380404FA: jne 0x380405c1 */
   5294 L_38040500:
   5295     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   5296     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   5297     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   5298     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5299     _flag_k = FK_NARROW(FK_CMP, 24);
   5300     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   5301 L_38040509:
   5302     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   5303     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   5304     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   5305     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   5306     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   5307     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   5308     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   5309     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   5310 L_38040524:
   5311     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   5312     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5314     _flag_k = FK_CMP;
   5315     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   5316 L_38040529:
   5317     eax = ecx; /* 0x38040529: mov eax, ecx */
   5318     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   5319     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   5320     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   5321     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   5322     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   5323     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5324     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5325     _flag_k = FK_CMP;
   5326     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   5327 L_3804053A:
   5328     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   5329 L_3804053D:
   5330     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   5331     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   5332     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   5333     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   5334     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5335     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5336     _flag_k = FK_CMP;
   5337     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   5338 L_3804054B:
   5339     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   5340     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   5341 L_38040550:
   5342     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   5343     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   5344     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5346     _flag_k = FK_CMP;
   5347     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   5348 L_38040557:
   5349     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   5350     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   5351 L_3804055B:
   5352     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   5353 L_3804055E:
   5354     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   5355     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   5356 L_38040563:
   5357     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   5358     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   5359     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   5360     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   5361     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   5362     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   5363     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   5364     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   5365     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   5366     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   5367     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   5368     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   5369     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5370     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5371     _flag_k = FK_CMP;
   5372     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   5373 L_38040588:
   5374     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   5375 L_3804058B:
   5376     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   5377     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   5378     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   5379     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   5380     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5381     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5382     _flag_k = FK_CMP;
   5383     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   5384 L_38040599:
   5385     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   5386     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   5387     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   5388 L_380405A4:
   5389     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   5390     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   5391     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5393     _flag_k = FK_CMP;
   5394     if (CMP_NE(_flag_a, _flag_b)) goto L_380405B7; /* 0x380405AA: jne 0x380405b7 */
   5395 L_380405AC:
   5396     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   5397     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   5398     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   5399 L_380405B7:
   5400     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   5401     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   5402     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   5403 L_380405C1:
   5404     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   5405     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   5406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5407     _flag_k = FK_NARROW(FK_CMP, 24);
   5408     RECOMP_BACKEDGE();
   5409     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   5410 L_380405CB:
   5411     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   5412     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5414     _flag_k = FK_CMP;
   5415     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   5416 L_380405CF:
   5417     eax = ecx; /* 0x380405CF: mov eax, ecx */
   5418     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   5419     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   5420     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   5421     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   5422     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   5423     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5424     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5425     _flag_k = FK_CMP;
   5426     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   5427 L_380405E0:
   5428     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   5429 L_380405E3:
   5430     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   5431     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   5432     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   5433     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   5434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5436     _flag_k = FK_CMP;
   5437     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   5438 L_380405F1:
   5439     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   5440     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   5441 L_380405F6:
   5442     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   5443     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   5444     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5446     _flag_k = FK_CMP;
   5447     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   5448 L_380405FE:
   5449     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   5450     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   5451 L_38040603:
   5452     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   5453 L_38040605:
   5454     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   5455     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   5456 L_3804060B:
   5457     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   5458     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   5459     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   5460     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   5461     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   5462     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   5463     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   5464     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   5465     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   5466     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   5467     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   5468     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   5469     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5471     _flag_k = FK_CMP;
   5472     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   5473 L_38040630:
   5474     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   5475 L_38040633:
   5476     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   5477     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   5478     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   5479     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   5480     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5481     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5482     _flag_k = FK_CMP;
   5483     if (CMP_NE(_flag_a, _flag_b)) goto L_38040646; /* 0x3804063F: jne 0x38040646 */
   5484 L_38040641:
   5485     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   5486     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   5487 L_38040646:
   5488     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   5489     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   5490     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   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_38040651; /* 0x3804064B: jne 0x38040651 */
   5494 L_3804064D:
   5495     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   5496     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   5497 L_38040651:
   5498     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   5499 L_38040654:
   5500     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   5501 L_38040656:
   5502     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   5503 L_38040659:
   5504     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   5505     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   5506     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5508     _flag_k = FK_CMP;
   5509     RECOMP_BACKEDGE();
   5510     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   5511 L_38040665:
   5512     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   5513     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   5514     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   5515     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   5516     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   5517     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   5518     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   5519     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   5520     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   5521     esp = ebp; /* 0x38040679: mov esp, ebp */
   5522     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   5523     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   5524     RECOMP_REGS_OUT();
   5525 }
   5526 
   5527 void sub_38040605(void) {
   5528     int _fpu_cmp = 0;
   5529     uint32_t _cf = 0;
   5530     int _df = 1;
   5531     uint32_t _flag_k = FK_NONE;
   5532     uint32_t _flag_a = 0, _flag_b = 0;
   5533     uint32_t _itail_tgt = 0;
   5534     RECOMP_REGS_LOCALS
   5535     RECOMP_ENTER(0x38040605u);
   5536 
   5537     goto L_38040605;
   5538 L_380404E5:
   5539     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   5540     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   5541     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   5542     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5543     _cf = 0;
   5544     _flag_k = FK_NARROW(FK_TEST, 24);
   5545     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   5546 L_380404F3:
   5547     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   5548     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   5549     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   5550     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5551     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5552     _flag_k = FK_CMP;
   5553     if (CMP_NE(_flag_a, _flag_b)) goto L_380405C1; /* 0x380404FA: jne 0x380405c1 */
   5554 L_38040500:
   5555     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   5556     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   5557     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   5558     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5559     _flag_k = FK_NARROW(FK_CMP, 24);
   5560     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   5561 L_38040509:
   5562     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   5563     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   5564     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   5565     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   5566     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   5567     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   5568     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   5569     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   5570 L_38040524:
   5571     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   5572     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5574     _flag_k = FK_CMP;
   5575     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   5576 L_38040529:
   5577     eax = ecx; /* 0x38040529: mov eax, ecx */
   5578     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   5579     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   5580     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   5581     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   5582     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   5583     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5585     _flag_k = FK_CMP;
   5586     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   5587 L_3804053A:
   5588     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   5589 L_3804053D:
   5590     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   5591     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   5592     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   5593     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   5594     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5596     _flag_k = FK_CMP;
   5597     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   5598 L_3804054B:
   5599     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   5600     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   5601 L_38040550:
   5602     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   5603     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   5604     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5605     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5606     _flag_k = FK_CMP;
   5607     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   5608 L_38040557:
   5609     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   5610     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   5611 L_3804055B:
   5612     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   5613 L_3804055E:
   5614     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   5615     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   5616 L_38040563:
   5617     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   5618     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   5619     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   5620     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   5621     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   5622     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   5623     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   5624     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   5625     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   5626     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   5627     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   5628     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   5629     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5631     _flag_k = FK_CMP;
   5632     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   5633 L_38040588:
   5634     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   5635 L_3804058B:
   5636     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   5637     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   5638     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   5639     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   5640     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5642     _flag_k = FK_CMP;
   5643     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   5644 L_38040599:
   5645     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   5646     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   5647     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   5648 L_380405A4:
   5649     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   5650     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   5651     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5653     _flag_k = FK_CMP;
   5654     if (CMP_NE(_flag_a, _flag_b)) goto L_380405B7; /* 0x380405AA: jne 0x380405b7 */
   5655 L_380405AC:
   5656     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   5657     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   5658     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   5659 L_380405B7:
   5660     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   5661     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   5662     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   5663 L_380405C1:
   5664     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   5665     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   5666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5667     _flag_k = FK_NARROW(FK_CMP, 24);
   5668     RECOMP_BACKEDGE();
   5669     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   5670 L_380405CB:
   5671     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   5672     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5673     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5674     _flag_k = FK_CMP;
   5675     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   5676 L_380405CF:
   5677     eax = ecx; /* 0x380405CF: mov eax, ecx */
   5678     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   5679     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   5680     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   5681     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   5682     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   5683     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5685     _flag_k = FK_CMP;
   5686     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   5687 L_380405E0:
   5688     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   5689 L_380405E3:
   5690     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   5691     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   5692     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   5693     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   5694     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5696     _flag_k = FK_CMP;
   5697     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   5698 L_380405F1:
   5699     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   5700     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   5701 L_380405F6:
   5702     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   5703     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   5704     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5705     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5706     _flag_k = FK_CMP;
   5707     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   5708 L_380405FE:
   5709     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   5710     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   5711 L_38040603:
   5712     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   5713 L_38040605:
   5714     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   5715     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   5716 L_3804060B:
   5717     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   5718     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   5719     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   5720     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   5721     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   5722     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   5723     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   5724     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   5725     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   5726     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   5727     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   5728     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   5729     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5731     _flag_k = FK_CMP;
   5732     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   5733 L_38040630:
   5734     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   5735 L_38040633:
   5736     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   5737     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   5738     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   5739     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   5740     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5741     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5742     _flag_k = FK_CMP;
   5743     if (CMP_NE(_flag_a, _flag_b)) goto L_38040646; /* 0x3804063F: jne 0x38040646 */
   5744 L_38040641:
   5745     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   5746     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   5747 L_38040646:
   5748     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   5749     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   5750     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5752     _flag_k = FK_CMP;
   5753     if (CMP_NE(_flag_a, _flag_b)) goto L_38040651; /* 0x3804064B: jne 0x38040651 */
   5754 L_3804064D:
   5755     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   5756     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   5757 L_38040651:
   5758     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   5759 L_38040654:
   5760     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   5761 L_38040656:
   5762     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   5763 L_38040659:
   5764     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   5765     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   5766     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5767     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5768     _flag_k = FK_CMP;
   5769     RECOMP_BACKEDGE();
   5770     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   5771 L_38040665:
   5772     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   5773     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   5774     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   5775     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   5776     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   5777     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   5778     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   5779     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   5780     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   5781     esp = ebp; /* 0x38040679: mov esp, ebp */
   5782     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   5783     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   5784     RECOMP_REGS_OUT();
   5785 }
   5786 
   5787 void sub_3804060B(void) {
   5788     int _fpu_cmp = 0;
   5789     uint32_t _cf = 0;
   5790     int _df = 1;
   5791     uint32_t _flag_k = FK_NONE;
   5792     uint32_t _flag_a = 0, _flag_b = 0;
   5793     uint32_t _itail_tgt = 0;
   5794     RECOMP_REGS_LOCALS
   5795     RECOMP_ENTER(0x3804060Bu);
   5796 
   5797     goto L_3804060B;
   5798 L_380404E5:
   5799     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   5800     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   5801     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   5802     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5803     _cf = 0;
   5804     _flag_k = FK_NARROW(FK_TEST, 24);
   5805     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   5806 L_380404F3:
   5807     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   5808     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   5809     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   5810     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5811     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5812     _flag_k = FK_CMP;
   5813     if (CMP_NE(_flag_a, _flag_b)) goto L_380405C1; /* 0x380404FA: jne 0x380405c1 */
   5814 L_38040500:
   5815     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   5816     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   5817     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   5818     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5819     _flag_k = FK_NARROW(FK_CMP, 24);
   5820     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   5821 L_38040509:
   5822     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   5823     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   5824     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   5825     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   5826     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   5827     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   5828     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   5829     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   5830 L_38040524:
   5831     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   5832     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5834     _flag_k = FK_CMP;
   5835     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   5836 L_38040529:
   5837     eax = ecx; /* 0x38040529: mov eax, ecx */
   5838     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   5839     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   5840     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   5841     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   5842     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   5843     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5845     _flag_k = FK_CMP;
   5846     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   5847 L_3804053A:
   5848     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   5849 L_3804053D:
   5850     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   5851     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   5852     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   5853     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   5854     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5856     _flag_k = FK_CMP;
   5857     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   5858 L_3804054B:
   5859     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   5860     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   5861 L_38040550:
   5862     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   5863     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   5864     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   5865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5866     _flag_k = FK_CMP;
   5867     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   5868 L_38040557:
   5869     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   5870     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   5871 L_3804055B:
   5872     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   5873 L_3804055E:
   5874     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   5875     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   5876 L_38040563:
   5877     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   5878     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   5879     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   5880     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   5881     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   5882     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   5883     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   5884     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   5885     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   5886     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   5887     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   5888     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   5889     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5890     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5891     _flag_k = FK_CMP;
   5892     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   5893 L_38040588:
   5894     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   5895 L_3804058B:
   5896     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   5897     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   5898     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   5899     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   5900     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5902     _flag_k = FK_CMP;
   5903     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   5904 L_38040599:
   5905     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   5906     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   5907     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   5908 L_380405A4:
   5909     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   5910     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   5911     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   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_380405B7; /* 0x380405AA: jne 0x380405b7 */
   5915 L_380405AC:
   5916     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   5917     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   5918     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   5919 L_380405B7:
   5920     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   5921     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   5922     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   5923 L_380405C1:
   5924     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   5925     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   5926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5927     _flag_k = FK_NARROW(FK_CMP, 24);
   5928     RECOMP_BACKEDGE();
   5929     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   5930 L_380405CB:
   5931     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   5932     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5934     _flag_k = FK_CMP;
   5935     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   5936 L_380405CF:
   5937     eax = ecx; /* 0x380405CF: mov eax, ecx */
   5938     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   5939     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   5940     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   5941     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   5942     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   5943     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5945     _flag_k = FK_CMP;
   5946     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   5947 L_380405E0:
   5948     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   5949 L_380405E3:
   5950     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   5951     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   5952     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   5953     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   5954     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5956     _flag_k = FK_CMP;
   5957     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   5958 L_380405F1:
   5959     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   5960     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   5961 L_380405F6:
   5962     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   5963     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   5964     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5966     _flag_k = FK_CMP;
   5967     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   5968 L_380405FE:
   5969     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   5970     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   5971 L_38040603:
   5972     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   5973 L_38040605:
   5974     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   5975     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   5976 L_3804060B:
   5977     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   5978     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   5979     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   5980     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   5981     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   5982     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   5983     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   5984     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   5985     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   5986     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   5987     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   5988     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   5989     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5991     _flag_k = FK_CMP;
   5992     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   5993 L_38040630:
   5994     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   5995 L_38040633:
   5996     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   5997     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   5998     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   5999     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   6000     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6002     _flag_k = FK_CMP;
   6003     if (CMP_NE(_flag_a, _flag_b)) goto L_38040646; /* 0x3804063F: jne 0x38040646 */
   6004 L_38040641:
   6005     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   6006     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   6007 L_38040646:
   6008     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   6009     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   6010     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6011     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6012     _flag_k = FK_CMP;
   6013     if (CMP_NE(_flag_a, _flag_b)) goto L_38040651; /* 0x3804064B: jne 0x38040651 */
   6014 L_3804064D:
   6015     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   6016     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   6017 L_38040651:
   6018     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   6019 L_38040654:
   6020     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   6021 L_38040656:
   6022     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   6023 L_38040659:
   6024     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   6025     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   6026     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6027     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6028     _flag_k = FK_CMP;
   6029     RECOMP_BACKEDGE();
   6030     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   6031 L_38040665:
   6032     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   6033     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   6034     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   6035     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   6036     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   6037     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   6038     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   6039     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   6040     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   6041     esp = ebp; /* 0x38040679: mov esp, ebp */
   6042     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   6043     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   6044     RECOMP_REGS_OUT();
   6045 }
   6046 
   6047 void sub_38040654(void) {
   6048     int _fpu_cmp = 0;
   6049     uint32_t _cf = 0;
   6050     int _df = 1;
   6051     uint32_t _flag_k = FK_NONE;
   6052     uint32_t _flag_a = 0, _flag_b = 0;
   6053     uint32_t _itail_tgt = 0;
   6054     RECOMP_REGS_LOCALS
   6055     RECOMP_ENTER(0x38040654u);
   6056 
   6057     goto L_38040654;
   6058 L_380404E5:
   6059     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   6060     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   6061     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   6062     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6063     _cf = 0;
   6064     _flag_k = FK_NARROW(FK_TEST, 24);
   6065     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   6066 L_380404F3:
   6067     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   6068     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   6069     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   6070     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   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_380405C1; /* 0x380404FA: jne 0x380405c1 */
   6074 L_38040500:
   6075     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   6076     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   6077     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   6078     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6079     _flag_k = FK_NARROW(FK_CMP, 24);
   6080     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   6081 L_38040509:
   6082     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   6083     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   6084     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   6085     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   6086     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   6087     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   6088     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   6089     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   6090 L_38040524:
   6091     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   6092     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6094     _flag_k = FK_CMP;
   6095     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   6096 L_38040529:
   6097     eax = ecx; /* 0x38040529: mov eax, ecx */
   6098     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   6099     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   6100     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   6101     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   6102     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   6103     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6104     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6105     _flag_k = FK_CMP;
   6106     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   6107 L_3804053A:
   6108     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   6109 L_3804053D:
   6110     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   6111     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   6112     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   6113     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   6114     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6116     _flag_k = FK_CMP;
   6117     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   6118 L_3804054B:
   6119     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   6120     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   6121 L_38040550:
   6122     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   6123     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   6124     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   6125     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6126     _flag_k = FK_CMP;
   6127     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   6128 L_38040557:
   6129     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   6130     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   6131 L_3804055B:
   6132     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   6133 L_3804055E:
   6134     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   6135     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   6136 L_38040563:
   6137     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   6138     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   6139     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   6140     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   6141     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   6142     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   6143     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   6144     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   6145     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   6146     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   6147     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   6148     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   6149     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6150     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6151     _flag_k = FK_CMP;
   6152     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   6153 L_38040588:
   6154     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   6155 L_3804058B:
   6156     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   6157     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   6158     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   6159     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   6160     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6162     _flag_k = FK_CMP;
   6163     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   6164 L_38040599:
   6165     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   6166     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   6167     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   6168 L_380405A4:
   6169     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   6170     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   6171     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   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_380405B7; /* 0x380405AA: jne 0x380405b7 */
   6175 L_380405AC:
   6176     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   6177     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   6178     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   6179 L_380405B7:
   6180     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   6181     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   6182     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   6183 L_380405C1:
   6184     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   6185     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   6186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6187     _flag_k = FK_NARROW(FK_CMP, 24);
   6188     RECOMP_BACKEDGE();
   6189     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   6190 L_380405CB:
   6191     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   6192     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6194     _flag_k = FK_CMP;
   6195     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   6196 L_380405CF:
   6197     eax = ecx; /* 0x380405CF: mov eax, ecx */
   6198     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   6199     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   6200     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   6201     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   6202     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   6203     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6204     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6205     _flag_k = FK_CMP;
   6206     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   6207 L_380405E0:
   6208     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   6209 L_380405E3:
   6210     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   6211     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   6212     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   6213     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   6214     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6216     _flag_k = FK_CMP;
   6217     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   6218 L_380405F1:
   6219     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   6220     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   6221 L_380405F6:
   6222     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   6223     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   6224     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   6225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6226     _flag_k = FK_CMP;
   6227     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   6228 L_380405FE:
   6229     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   6230     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   6231 L_38040603:
   6232     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   6233 L_38040605:
   6234     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   6235     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   6236 L_3804060B:
   6237     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   6238     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   6239     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   6240     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   6241     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   6242     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   6243     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   6244     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   6245     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   6246     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   6247     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   6248     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   6249     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6251     _flag_k = FK_CMP;
   6252     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   6253 L_38040630:
   6254     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   6255 L_38040633:
   6256     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   6257     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   6258     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   6259     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   6260     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6261     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6262     _flag_k = FK_CMP;
   6263     if (CMP_NE(_flag_a, _flag_b)) goto L_38040646; /* 0x3804063F: jne 0x38040646 */
   6264 L_38040641:
   6265     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   6266     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   6267 L_38040646:
   6268     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   6269     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   6270     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6272     _flag_k = FK_CMP;
   6273     if (CMP_NE(_flag_a, _flag_b)) goto L_38040651; /* 0x3804064B: jne 0x38040651 */
   6274 L_3804064D:
   6275     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   6276     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   6277 L_38040651:
   6278     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   6279 L_38040654:
   6280     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   6281 L_38040656:
   6282     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   6283 L_38040659:
   6284     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   6285     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   6286     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6287     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6288     _flag_k = FK_CMP;
   6289     RECOMP_BACKEDGE();
   6290     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   6291 L_38040665:
   6292     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   6293     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   6294     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   6295     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   6296     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   6297     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   6298     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   6299     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   6300     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   6301     esp = ebp; /* 0x38040679: mov esp, ebp */
   6302     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   6303     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   6304     RECOMP_REGS_OUT();
   6305 }
   6306 
   6307 void sub_38040656(void) {
   6308     int _fpu_cmp = 0;
   6309     uint32_t _cf = 0;
   6310     int _df = 1;
   6311     uint32_t _flag_k = FK_NONE;
   6312     uint32_t _flag_a = 0, _flag_b = 0;
   6313     uint32_t _itail_tgt = 0;
   6314     RECOMP_REGS_LOCALS
   6315     RECOMP_ENTER(0x38040656u);
   6316 
   6317     goto L_38040656;
   6318 L_380404E5:
   6319     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   6320     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   6321     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   6322     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6323     _cf = 0;
   6324     _flag_k = FK_NARROW(FK_TEST, 24);
   6325     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   6326 L_380404F3:
   6327     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   6328     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   6329     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   6330     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6331     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6332     _flag_k = FK_CMP;
   6333     if (CMP_NE(_flag_a, _flag_b)) goto L_380405C1; /* 0x380404FA: jne 0x380405c1 */
   6334 L_38040500:
   6335     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   6336     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   6337     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   6338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6339     _flag_k = FK_NARROW(FK_CMP, 24);
   6340     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   6341 L_38040509:
   6342     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   6343     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   6344     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   6345     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   6346     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   6347     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   6348     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   6349     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   6350 L_38040524:
   6351     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   6352     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6353     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6354     _flag_k = FK_CMP;
   6355     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   6356 L_38040529:
   6357     eax = ecx; /* 0x38040529: mov eax, ecx */
   6358     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   6359     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   6360     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   6361     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   6362     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   6363     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6365     _flag_k = FK_CMP;
   6366     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   6367 L_3804053A:
   6368     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   6369 L_3804053D:
   6370     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   6371     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   6372     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   6373     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   6374     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6375     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6376     _flag_k = FK_CMP;
   6377     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   6378 L_3804054B:
   6379     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   6380     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   6381 L_38040550:
   6382     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   6383     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   6384     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   6385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6386     _flag_k = FK_CMP;
   6387     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   6388 L_38040557:
   6389     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   6390     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   6391 L_3804055B:
   6392     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   6393 L_3804055E:
   6394     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   6395     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   6396 L_38040563:
   6397     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   6398     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   6399     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   6400     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   6401     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   6402     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   6403     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   6404     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   6405     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   6406     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   6407     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   6408     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   6409     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6411     _flag_k = FK_CMP;
   6412     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   6413 L_38040588:
   6414     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   6415 L_3804058B:
   6416     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   6417     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   6418     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   6419     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   6420     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6422     _flag_k = FK_CMP;
   6423     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   6424 L_38040599:
   6425     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   6426     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   6427     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   6428 L_380405A4:
   6429     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   6430     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   6431     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6433     _flag_k = FK_CMP;
   6434     if (CMP_NE(_flag_a, _flag_b)) goto L_380405B7; /* 0x380405AA: jne 0x380405b7 */
   6435 L_380405AC:
   6436     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   6437     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   6438     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   6439 L_380405B7:
   6440     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   6441     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   6442     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   6443 L_380405C1:
   6444     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   6445     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   6446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6447     _flag_k = FK_NARROW(FK_CMP, 24);
   6448     RECOMP_BACKEDGE();
   6449     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   6450 L_380405CB:
   6451     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   6452     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6454     _flag_k = FK_CMP;
   6455     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   6456 L_380405CF:
   6457     eax = ecx; /* 0x380405CF: mov eax, ecx */
   6458     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   6459     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   6460     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   6461     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   6462     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   6463     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6465     _flag_k = FK_CMP;
   6466     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   6467 L_380405E0:
   6468     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   6469 L_380405E3:
   6470     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   6471     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   6472     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   6473     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   6474     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6476     _flag_k = FK_CMP;
   6477     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   6478 L_380405F1:
   6479     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   6480     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   6481 L_380405F6:
   6482     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   6483     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   6484     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   6485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6486     _flag_k = FK_CMP;
   6487     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   6488 L_380405FE:
   6489     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   6490     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   6491 L_38040603:
   6492     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   6493 L_38040605:
   6494     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   6495     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   6496 L_3804060B:
   6497     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   6498     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   6499     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   6500     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   6501     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   6502     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   6503     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   6504     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   6505     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   6506     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   6507     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   6508     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   6509     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6511     _flag_k = FK_CMP;
   6512     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   6513 L_38040630:
   6514     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   6515 L_38040633:
   6516     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   6517     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   6518     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   6519     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   6520     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   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_38040646; /* 0x3804063F: jne 0x38040646 */
   6524 L_38040641:
   6525     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   6526     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   6527 L_38040646:
   6528     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   6529     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   6530     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6532     _flag_k = FK_CMP;
   6533     if (CMP_NE(_flag_a, _flag_b)) goto L_38040651; /* 0x3804064B: jne 0x38040651 */
   6534 L_3804064D:
   6535     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   6536     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   6537 L_38040651:
   6538     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   6539 L_38040654:
   6540     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   6541 L_38040656:
   6542     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   6543 L_38040659:
   6544     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   6545     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   6546     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6547     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6548     _flag_k = FK_CMP;
   6549     RECOMP_BACKEDGE();
   6550     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   6551 L_38040665:
   6552     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   6553     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   6554     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   6555     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   6556     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   6557     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   6558     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   6559     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   6560     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   6561     esp = ebp; /* 0x38040679: mov esp, ebp */
   6562     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   6563     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   6564     RECOMP_REGS_OUT();
   6565 }
   6566 
   6567 void sub_38040659(void) {
   6568     int _fpu_cmp = 0;
   6569     uint32_t _cf = 0;
   6570     int _df = 1;
   6571     uint32_t _flag_k = FK_NONE;
   6572     uint32_t _flag_a = 0, _flag_b = 0;
   6573     uint32_t _itail_tgt = 0;
   6574     RECOMP_REGS_LOCALS
   6575     RECOMP_ENTER(0x38040659u);
   6576 
   6577     goto L_38040659;
   6578 L_380404E5:
   6579     ecx = MEM32(eax + 0x4); /* 0x380404E5: mov ecx, dword ptr [eax + 4] */
   6580     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x380404E8: mov dl, byte ptr [ecx + 0x18] */
   6581     /* test LO8(edx), LO8(edx) */ /* 0x380404EB: test dl, dl */
   6582     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6583     _cf = 0;
   6584     _flag_k = FK_NARROW(FK_TEST, 24);
   6585     if (TEST_NZ(_flag_a, _flag_b)) goto L_38040665; /* 0x380404ED: jne 0x38040665 */
   6586 L_380404F3:
   6587     edi = MEM32(ecx + 0x4); /* 0x380404F3: mov edi, dword ptr [ecx + 4] */
   6588     edx = MEM32(edi); /* 0x380404F6: mov edx, dword ptr [edi] */
   6589     /* cmp ecx, edx */ /* 0x380404F8: cmp ecx, edx */
   6590     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6591     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6592     _flag_k = FK_CMP;
   6593     if (CMP_NE(_flag_a, _flag_b)) goto L_380405C1; /* 0x380404FA: jne 0x380405c1 */
   6594 L_38040500:
   6595     edx = MEM32(edi + 0x8); /* 0x38040500: mov edx, dword ptr [edi + 8] */
   6596     /* cmp MEM8(edx + 0x18), 0 */ /* 0x38040503: cmp byte ptr [edx + 0x18], 0 */
   6597     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   6598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6599     _flag_k = FK_NARROW(FK_CMP, 24);
   6600     if (CMP_NE(_flag_a, _flag_b)) goto L_38040524; /* 0x38040507: jne 0x38040524 */
   6601 L_38040509:
   6602     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040509: mov byte ptr [ecx + 0x18], bl */
   6603     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804050C: mov byte ptr [edx + 0x18], bl */
   6604     ecx = MEM32(eax + 0x4); /* 0x3804050F: mov ecx, dword ptr [eax + 4] */
   6605     edx = MEM32(ecx + 0x4); /* 0x38040512: mov edx, dword ptr [ecx + 4] */
   6606     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38040515: mov byte ptr [edx + 0x18], 0 */
   6607     eax = MEM32(eax + 0x4); /* 0x38040519: mov eax, dword ptr [eax + 4] */
   6608     eax = MEM32(eax + 0x4); /* 0x3804051C: mov eax, dword ptr [eax + 4] */
   6609     goto L_38040659; /* 0x3804051F: jmp 0x38040659 */
   6610 L_38040524:
   6611     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38040524: cmp eax, dword ptr [ecx + 8] */
   6612     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6614     _flag_k = FK_CMP;
   6615     if (CMP_NE(_flag_a, _flag_b)) goto L_38040563; /* 0x38040527: jne 0x38040563 */
   6616 L_38040529:
   6617     eax = ecx; /* 0x38040529: mov eax, ecx */
   6618     ecx = MEM32(eax + 0x8); /* 0x3804052B: mov ecx, dword ptr [eax + 8] */
   6619     edx = MEM32(ecx); /* 0x3804052E: mov edx, dword ptr [ecx] */
   6620     MEM32(eax + 0x8) = edx; /* 0x38040530: mov dword ptr [eax + 8], edx */
   6621     edx = MEM32(ecx); /* 0x38040533: mov edx, dword ptr [ecx] */
   6622     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38040535: cmp edx, dword ptr [esi + 8] */
   6623     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6625     _flag_k = FK_CMP;
   6626     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804053D; /* 0x38040538: je 0x3804053d */
   6627 L_3804053A:
   6628     MEM32(edx + 0x4) = eax; /* 0x3804053A: mov dword ptr [edx + 4], eax */
   6629 L_3804053D:
   6630     edx = MEM32(eax + 0x4); /* 0x3804053D: mov edx, dword ptr [eax + 4] */
   6631     MEM32(ecx + 0x4) = edx; /* 0x38040540: mov dword ptr [ecx + 4], edx */
   6632     edx = MEM32(esi + 0x4); /* 0x38040543: mov edx, dword ptr [esi + 4] */
   6633     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38040546: cmp eax, dword ptr [edx + 4] */
   6634     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6635     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6636     _flag_k = FK_CMP;
   6637     if (CMP_NE(_flag_a, _flag_b)) goto L_38040550; /* 0x38040549: jne 0x38040550 */
   6638 L_3804054B:
   6639     MEM32(edx + 0x4) = ecx; /* 0x3804054B: mov dword ptr [edx + 4], ecx */
   6640     goto L_3804055E; /* 0x3804054E: jmp 0x3804055e */
   6641 L_38040550:
   6642     edx = MEM32(eax + 0x4); /* 0x38040550: mov edx, dword ptr [eax + 4] */
   6643     /* cmp eax, MEM32(edx) */ /* 0x38040553: cmp eax, dword ptr [edx] */
   6644     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   6645     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6646     _flag_k = FK_CMP;
   6647     if (CMP_NE(_flag_a, _flag_b)) goto L_3804055B; /* 0x38040555: jne 0x3804055b */
   6648 L_38040557:
   6649     MEM32(edx) = ecx; /* 0x38040557: mov dword ptr [edx], ecx */
   6650     goto L_3804055E; /* 0x38040559: jmp 0x3804055e */
   6651 L_3804055B:
   6652     MEM32(edx + 0x8) = ecx; /* 0x3804055B: mov dword ptr [edx + 8], ecx */
   6653 L_3804055E:
   6654     MEM32(ecx) = eax; /* 0x3804055E: mov dword ptr [ecx], eax */
   6655     MEM32(eax + 0x4) = ecx; /* 0x38040560: mov dword ptr [eax + 4], ecx */
   6656 L_38040563:
   6657     ecx = MEM32(eax + 0x4); /* 0x38040563: mov ecx, dword ptr [eax + 4] */
   6658     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38040566: mov byte ptr [ecx + 0x18], bl */
   6659     edx = MEM32(eax + 0x4); /* 0x38040569: mov edx, dword ptr [eax + 4] */
   6660     ecx = MEM32(edx + 0x4); /* 0x3804056C: mov ecx, dword ptr [edx + 4] */
   6661     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3804056F: mov byte ptr [ecx + 0x18], 0 */
   6662     edx = MEM32(eax + 0x4); /* 0x38040573: mov edx, dword ptr [eax + 4] */
   6663     ecx = MEM32(edx + 0x4); /* 0x38040576: mov ecx, dword ptr [edx + 4] */
   6664     edx = MEM32(ecx); /* 0x38040579: mov edx, dword ptr [ecx] */
   6665     edi = MEM32(edx + 0x8); /* 0x3804057B: mov edi, dword ptr [edx + 8] */
   6666     MEM32(ecx) = edi; /* 0x3804057E: mov dword ptr [ecx], edi */
   6667     edi = MEM32(edx + 0x8); /* 0x38040580: mov edi, dword ptr [edx + 8] */
   6668     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38040583: cmp edi, dword ptr [esi + 8] */
   6669     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6671     _flag_k = FK_CMP;
   6672     if (CMP_EQ(_flag_a, _flag_b)) goto L_3804058B; /* 0x38040586: je 0x3804058b */
   6673 L_38040588:
   6674     MEM32(edi + 0x4) = ecx; /* 0x38040588: mov dword ptr [edi + 4], ecx */
   6675 L_3804058B:
   6676     edi = MEM32(ecx + 0x4); /* 0x3804058B: mov edi, dword ptr [ecx + 4] */
   6677     MEM32(edx + 0x4) = edi; /* 0x3804058E: mov dword ptr [edx + 4], edi */
   6678     edi = MEM32(esi + 0x4); /* 0x38040591: mov edi, dword ptr [esi + 4] */
   6679     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38040594: cmp ecx, dword ptr [edi + 4] */
   6680     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6681     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6682     _flag_k = FK_CMP;
   6683     if (CMP_NE(_flag_a, _flag_b)) goto L_380405A4; /* 0x38040597: jne 0x380405a4 */
   6684 L_38040599:
   6685     MEM32(edi + 0x4) = edx; /* 0x38040599: mov dword ptr [edi + 4], edx */
   6686     MEM32(edx + 0x8) = ecx; /* 0x3804059C: mov dword ptr [edx + 8], ecx */
   6687     goto L_38040656; /* 0x3804059F: jmp 0x38040656 */
   6688 L_380405A4:
   6689     edi = MEM32(ecx + 0x4); /* 0x380405A4: mov edi, dword ptr [ecx + 4] */
   6690     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380405A7: cmp ecx, dword ptr [edi + 8] */
   6691     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6693     _flag_k = FK_CMP;
   6694     if (CMP_NE(_flag_a, _flag_b)) goto L_380405B7; /* 0x380405AA: jne 0x380405b7 */
   6695 L_380405AC:
   6696     MEM32(edi + 0x8) = edx; /* 0x380405AC: mov dword ptr [edi + 8], edx */
   6697     MEM32(edx + 0x8) = ecx; /* 0x380405AF: mov dword ptr [edx + 8], ecx */
   6698     goto L_38040656; /* 0x380405B2: jmp 0x38040656 */
   6699 L_380405B7:
   6700     MEM32(edi) = edx; /* 0x380405B7: mov dword ptr [edi], edx */
   6701     MEM32(edx + 0x8) = ecx; /* 0x380405B9: mov dword ptr [edx + 8], ecx */
   6702     goto L_38040656; /* 0x380405BC: jmp 0x38040656 */
   6703 L_380405C1:
   6704     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380405C1: cmp byte ptr [edx + 0x18], 0 */
   6705     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   6706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6707     _flag_k = FK_NARROW(FK_CMP, 24);
   6708     RECOMP_BACKEDGE();
   6709     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040509; /* 0x380405C5: je 0x38040509 */
   6710 L_380405CB:
   6711     /* cmp eax, MEM32(ecx) */ /* 0x380405CB: cmp eax, dword ptr [ecx] */
   6712     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6714     _flag_k = FK_CMP;
   6715     if (CMP_NE(_flag_a, _flag_b)) goto L_3804060B; /* 0x380405CD: jne 0x3804060b */
   6716 L_380405CF:
   6717     eax = ecx; /* 0x380405CF: mov eax, ecx */
   6718     ecx = MEM32(eax); /* 0x380405D1: mov ecx, dword ptr [eax] */
   6719     edx = MEM32(ecx + 0x8); /* 0x380405D3: mov edx, dword ptr [ecx + 8] */
   6720     MEM32(eax) = edx; /* 0x380405D6: mov dword ptr [eax], edx */
   6721     edx = MEM32(ecx + 0x8); /* 0x380405D8: mov edx, dword ptr [ecx + 8] */
   6722     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380405DB: cmp edx, dword ptr [esi + 8] */
   6723     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6724     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6725     _flag_k = FK_CMP;
   6726     if (CMP_EQ(_flag_a, _flag_b)) goto L_380405E3; /* 0x380405DE: je 0x380405e3 */
   6727 L_380405E0:
   6728     MEM32(edx + 0x4) = eax; /* 0x380405E0: mov dword ptr [edx + 4], eax */
   6729 L_380405E3:
   6730     edx = MEM32(eax + 0x4); /* 0x380405E3: mov edx, dword ptr [eax + 4] */
   6731     MEM32(ecx + 0x4) = edx; /* 0x380405E6: mov dword ptr [ecx + 4], edx */
   6732     edx = MEM32(esi + 0x4); /* 0x380405E9: mov edx, dword ptr [esi + 4] */
   6733     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380405EC: cmp eax, dword ptr [edx + 4] */
   6734     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6736     _flag_k = FK_CMP;
   6737     if (CMP_NE(_flag_a, _flag_b)) goto L_380405F6; /* 0x380405EF: jne 0x380405f6 */
   6738 L_380405F1:
   6739     MEM32(edx + 0x4) = ecx; /* 0x380405F1: mov dword ptr [edx + 4], ecx */
   6740     goto L_38040605; /* 0x380405F4: jmp 0x38040605 */
   6741 L_380405F6:
   6742     edx = MEM32(eax + 0x4); /* 0x380405F6: mov edx, dword ptr [eax + 4] */
   6743     /* cmp eax, MEM32(edx + 0x8) */ /* 0x380405F9: cmp eax, dword ptr [edx + 8] */
   6744     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   6745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6746     _flag_k = FK_CMP;
   6747     if (CMP_NE(_flag_a, _flag_b)) goto L_38040603; /* 0x380405FC: jne 0x38040603 */
   6748 L_380405FE:
   6749     MEM32(edx + 0x8) = ecx; /* 0x380405FE: mov dword ptr [edx + 8], ecx */
   6750     goto L_38040605; /* 0x38040601: jmp 0x38040605 */
   6751 L_38040603:
   6752     MEM32(edx) = ecx; /* 0x38040603: mov dword ptr [edx], ecx */
   6753 L_38040605:
   6754     MEM32(ecx + 0x8) = eax; /* 0x38040605: mov dword ptr [ecx + 8], eax */
   6755     MEM32(eax + 0x4) = ecx; /* 0x38040608: mov dword ptr [eax + 4], ecx */
   6756 L_3804060B:
   6757     ecx = MEM32(eax + 0x4); /* 0x3804060B: mov ecx, dword ptr [eax + 4] */
   6758     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804060E: mov byte ptr [ecx + 0x18], bl */
   6759     edx = MEM32(eax + 0x4); /* 0x38040611: mov edx, dword ptr [eax + 4] */
   6760     ecx = MEM32(edx + 0x4); /* 0x38040614: mov ecx, dword ptr [edx + 4] */
   6761     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38040617: mov byte ptr [ecx + 0x18], 0 */
   6762     edx = MEM32(eax + 0x4); /* 0x3804061B: mov edx, dword ptr [eax + 4] */
   6763     ecx = MEM32(edx + 0x4); /* 0x3804061E: mov ecx, dword ptr [edx + 4] */
   6764     edx = MEM32(ecx + 0x8); /* 0x38040621: mov edx, dword ptr [ecx + 8] */
   6765     edi = MEM32(edx); /* 0x38040624: mov edi, dword ptr [edx] */
   6766     MEM32(ecx + 0x8) = edi; /* 0x38040626: mov dword ptr [ecx + 8], edi */
   6767     edi = MEM32(edx); /* 0x38040629: mov edi, dword ptr [edx] */
   6768     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3804062B: cmp edi, dword ptr [esi + 8] */
   6769     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6771     _flag_k = FK_CMP;
   6772     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040633; /* 0x3804062E: je 0x38040633 */
   6773 L_38040630:
   6774     MEM32(edi + 0x4) = ecx; /* 0x38040630: mov dword ptr [edi + 4], ecx */
   6775 L_38040633:
   6776     edi = MEM32(ecx + 0x4); /* 0x38040633: mov edi, dword ptr [ecx + 4] */
   6777     MEM32(edx + 0x4) = edi; /* 0x38040636: mov dword ptr [edx + 4], edi */
   6778     edi = MEM32(esi + 0x4); /* 0x38040639: mov edi, dword ptr [esi + 4] */
   6779     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3804063C: cmp ecx, dword ptr [edi + 4] */
   6780     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6782     _flag_k = FK_CMP;
   6783     if (CMP_NE(_flag_a, _flag_b)) goto L_38040646; /* 0x3804063F: jne 0x38040646 */
   6784 L_38040641:
   6785     MEM32(edi + 0x4) = edx; /* 0x38040641: mov dword ptr [edi + 4], edx */
   6786     goto L_38040654; /* 0x38040644: jmp 0x38040654 */
   6787 L_38040646:
   6788     edi = MEM32(ecx + 0x4); /* 0x38040646: mov edi, dword ptr [ecx + 4] */
   6789     /* cmp ecx, MEM32(edi) */ /* 0x38040649: cmp ecx, dword ptr [edi] */
   6790     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6792     _flag_k = FK_CMP;
   6793     if (CMP_NE(_flag_a, _flag_b)) goto L_38040651; /* 0x3804064B: jne 0x38040651 */
   6794 L_3804064D:
   6795     MEM32(edi) = edx; /* 0x3804064D: mov dword ptr [edi], edx */
   6796     goto L_38040654; /* 0x3804064F: jmp 0x38040654 */
   6797 L_38040651:
   6798     MEM32(edi + 0x8) = edx; /* 0x38040651: mov dword ptr [edi + 8], edx */
   6799 L_38040654:
   6800     MEM32(edx) = ecx; /* 0x38040654: mov dword ptr [edx], ecx */
   6801 L_38040656:
   6802     MEM32(ecx + 0x4) = edx; /* 0x38040656: mov dword ptr [ecx + 4], edx */
   6803 L_38040659:
   6804     ecx = MEM32(esi + 0x4); /* 0x38040659: mov ecx, dword ptr [esi + 4] */
   6805     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3804065C: cmp eax, dword ptr [ecx + 4] */
   6806     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6807     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6808     _flag_k = FK_CMP;
   6809     RECOMP_BACKEDGE();
   6810     if (CMP_NE(_flag_a, _flag_b)) goto L_380404E5; /* 0x3804065F: jne 0x380404e5 */
   6811 L_38040665:
   6812     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   6813     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   6814     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   6815     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   6816     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   6817     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   6818     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   6819     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   6820     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   6821     esp = ebp; /* 0x38040679: mov esp, ebp */
   6822     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   6823     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   6824     RECOMP_REGS_OUT();
   6825 }
   6826 
   6827 void sub_38040665(void) {
   6828     int _fpu_cmp = 0;
   6829     uint32_t _cf = 0;
   6830     int _df = 1;
   6831     uint32_t _flag_k = FK_NONE;
   6832     uint32_t _flag_a = 0, _flag_b = 0;
   6833     uint32_t _itail_tgt = 0;
   6834     RECOMP_REGS_LOCALS
   6835     RECOMP_ENTER(0x38040665u);
   6836 
   6837 L_38040665:
   6838     edx = MEM32(esi + 0x4); /* 0x38040665: mov edx, dword ptr [esi + 4] */
   6839     eax = MEM32(edx + 0x4); /* 0x38040668: mov eax, dword ptr [edx + 4] */
   6840     ecx = MEM32(ebp + (-0x4)); /* 0x3804066B: mov ecx, dword ptr [ebp - 4] */
   6841     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3804066E: mov byte ptr [eax + 0x18], bl */
   6842     eax = MEM32(ebp + 0x8); /* 0x38040671: mov eax, dword ptr [ebp + 8] */
   6843     edi = POP32_VAL(esp); /* 0x38040674: pop edi */
   6844     esi = POP32_VAL(esp); /* 0x38040675: pop esi */
   6845     MEM32(eax) = ecx; /* 0x38040676: mov dword ptr [eax], ecx */
   6846     ebx = POP32_VAL(esp); /* 0x38040678: pop ebx */
   6847     esp = ebp; /* 0x38040679: mov esp, ebp */
   6848     ebp = POP32_VAL(esp); /* 0x3804067B: pop ebp */
   6849     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3804067C: ret 0x10 */
   6850     RECOMP_REGS_OUT();
   6851 }
   6852 
   6853 void sub_38040680(void) {
   6854     int _fpu_cmp = 0;
   6855     uint32_t _cf = 0;
   6856     int _df = 1;
   6857     uint32_t _flag_k = FK_NONE;
   6858     uint32_t _flag_a = 0, _flag_b = 0;
   6859     uint32_t _itail_tgt = 0;
   6860     RECOMP_REGS_LOCALS
   6861     RECOMP_ENTER(0x38040680u);
   6862 
   6863 L_38040680:
   6864     PUSH32(esp, ebp); /* 0x38040680: push ebp */
   6865     ebp = esp; /* 0x38040681: mov ebp, esp */
   6866     eax = MEM32(ecx + 0x4); /* 0x38040683: mov eax, dword ptr [ecx + 4] */
   6867     edx = MEM32(eax + 0x4); /* 0x38040686: mov edx, dword ptr [eax + 4] */
   6868     PUSH32(esp, edi); /* 0x38040689: push edi */
   6869     edi = MEM32(ecx + 0x8); /* 0x3804068A: mov edi, dword ptr [ecx + 8] */
   6870     /* cmp edx, edi */ /* 0x3804068D: cmp edx, edi */
   6871     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6873     _flag_k = FK_CMP;
   6874     if (CMP_EQ(_flag_a, _flag_b)) goto L_380406C0; /* 0x3804068F: je 0x380406c0 */
   6875 L_38040691:
   6876     PUSH32(esp, ebx); /* 0x38040691: push ebx */
   6877     ebx = MEM32(ebp + 0x8); /* 0x38040692: mov ebx, dword ptr [ebp + 8] */
   6878     PUSH32(esp, esi); /* 0x38040695: push esi */
   6879     esi = MEM32(ebx); /* 0x38040696: mov esi, dword ptr [ebx] */
   6880 L_38040698:
   6881     ecx = MEM32(edx + 0xC); /* 0x38040698: mov ecx, dword ptr [edx + 0xc] */
   6882     /* cmp ecx, esi */ /* 0x3804069B: cmp ecx, esi */
   6883     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   6884     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6885     _flag_k = FK_CMP;
   6886     if (CMP_NE(_flag_a, _flag_b)) goto L_380406AA; /* 0x3804069D: jne 0x380406aa */
   6887 L_3804069F:
   6888     ecx = MEM32(edx + 0x10); /* 0x3804069F: mov ecx, dword ptr [edx + 0x10] */
   6889     /* cmp ecx, MEM32(ebx + 0x4) */ /* 0x380406A2: cmp ecx, dword ptr [ebx + 4] */
   6890     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x4));
   6891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6892     _flag_k = FK_CMP;
   6893     SET_LO8(ecx, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x380406A5: setb cl */
   6894     goto L_380406AD; /* 0x380406A8: jmp 0x380406ad */
   6895 L_380406AA:
   6896     SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x380406AA: setl cl */
   6897 L_380406AD:
   6898     /* test LO8(ecx), LO8(ecx) */ /* 0x380406AD: test cl, cl */
   6899     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6900     _cf = 0;
   6901     _flag_k = FK_NARROW(FK_TEST, 24);
   6902     if (TEST_Z(_flag_a, _flag_b)) goto L_380406B6; /* 0x380406AF: je 0x380406b6 */
   6903 L_380406B1:
   6904     edx = MEM32(edx + 0x8); /* 0x380406B1: mov edx, dword ptr [edx + 8] */
   6905     goto L_380406BA; /* 0x380406B4: jmp 0x380406ba */
   6906 L_380406B6:
   6907     eax = edx; /* 0x380406B6: mov eax, edx */
   6908     edx = MEM32(edx); /* 0x380406B8: mov edx, dword ptr [edx] */
   6909 L_380406BA:
   6910     /* cmp edx, edi */ /* 0x380406BA: cmp edx, edi */
   6911     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6913     _flag_k = FK_CMP;
   6914     RECOMP_BACKEDGE();
   6915     if (CMP_NE(_flag_a, _flag_b)) goto L_38040698; /* 0x380406BC: jne 0x38040698 */
   6916 L_380406BE:
   6917     esi = POP32_VAL(esp); /* 0x380406BE: pop esi */
   6918     ebx = POP32_VAL(esp); /* 0x380406BF: pop ebx */
   6919 L_380406C0:
   6920     edi = POP32_VAL(esp); /* 0x380406C0: pop edi */
   6921     ebp = POP32_VAL(esp); /* 0x380406C1: pop ebp */
   6922     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380406C2: ret 4 */
   6923     RECOMP_REGS_OUT();
   6924 }
   6925 
   6926 void sub_380406D0(void) {
   6927     int _fpu_cmp = 0;
   6928     uint32_t _cf = 0;
   6929     int _df = 1;
   6930     uint32_t _flag_k = FK_NONE;
   6931     uint32_t _flag_a = 0, _flag_b = 0;
   6932     uint32_t _itail_tgt = 0;
   6933     RECOMP_REGS_LOCALS
   6934     RECOMP_ENTER(0x380406D0u);
   6935 
   6936 L_380406D0:
   6937     PUSH32(esp, ebp); /* 0x380406D0: push ebp */
   6938     ebp = esp; /* 0x380406D1: mov ebp, esp */
   6939     eax = MEM32(ecx + 0x4); /* 0x380406D3: mov eax, dword ptr [ecx + 4] */
   6940     edx = MEM32(eax + 0x4); /* 0x380406D6: mov edx, dword ptr [eax + 4] */
   6941     PUSH32(esp, edi); /* 0x380406D9: push edi */
   6942     edi = MEM32(ecx + 0x8); /* 0x380406DA: mov edi, dword ptr [ecx + 8] */
   6943     /* cmp edx, edi */ /* 0x380406DD: cmp edx, edi */
   6944     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6946     _flag_k = FK_CMP;
   6947     if (CMP_EQ(_flag_a, _flag_b)) goto L_38040710; /* 0x380406DF: je 0x38040710 */
   6948 L_380406E1:
   6949     PUSH32(esp, ebx); /* 0x380406E1: push ebx */
   6950     ebx = MEM32(ebp + 0x8); /* 0x380406E2: mov ebx, dword ptr [ebp + 8] */
   6951     PUSH32(esp, esi); /* 0x380406E5: push esi */
   6952     esi = MEM32(ebx); /* 0x380406E6: mov esi, dword ptr [ebx] */
   6953 L_380406E8:
   6954     ecx = MEM32(edx + 0xC); /* 0x380406E8: mov ecx, dword ptr [edx + 0xc] */
   6955     /* cmp esi, ecx */ /* 0x380406EB: cmp esi, ecx */
   6956     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   6957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6958     _flag_k = FK_CMP;
   6959     if (CMP_NE(_flag_a, _flag_b)) goto L_380406FA; /* 0x380406ED: jne 0x380406fa */
   6960 L_380406EF:
   6961     ecx = MEM32(ebx + 0x4); /* 0x380406EF: mov ecx, dword ptr [ebx + 4] */
   6962     /* cmp ecx, MEM32(edx + 0x10) */ /* 0x380406F2: cmp ecx, dword ptr [edx + 0x10] */
   6963     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edx + 0x10));
   6964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6965     _flag_k = FK_CMP;
   6966     SET_LO8(ecx, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x380406F5: setb cl */
   6967     goto L_380406FD; /* 0x380406F8: jmp 0x380406fd */
   6968 L_380406FA:
   6969     SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x380406FA: setl cl */
   6970 L_380406FD:
   6971     /* test LO8(ecx), LO8(ecx) */ /* 0x380406FD: test cl, cl */
   6972     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6973     _cf = 0;
   6974     _flag_k = FK_NARROW(FK_TEST, 24);
   6975     if (TEST_Z(_flag_a, _flag_b)) goto L_38040707; /* 0x380406FF: je 0x38040707 */
   6976 L_38040701:
   6977     eax = edx; /* 0x38040701: mov eax, edx */
   6978     edx = MEM32(edx); /* 0x38040703: mov edx, dword ptr [edx] */
   6979     goto L_3804070A; /* 0x38040705: jmp 0x3804070a */
   6980 L_38040707:
   6981     edx = MEM32(edx + 0x8); /* 0x38040707: mov edx, dword ptr [edx + 8] */
   6982 L_3804070A:
   6983     /* cmp edx, edi */ /* 0x3804070A: cmp edx, edi */
   6984     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6985     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6986     _flag_k = FK_CMP;
   6987     RECOMP_BACKEDGE();
   6988     if (CMP_NE(_flag_a, _flag_b)) goto L_380406E8; /* 0x3804070C: jne 0x380406e8 */
   6989 L_3804070E:
   6990     esi = POP32_VAL(esp); /* 0x3804070E: pop esi */
   6991     ebx = POP32_VAL(esp); /* 0x3804070F: pop ebx */
   6992 L_38040710:
   6993     edi = POP32_VAL(esp); /* 0x38040710: pop edi */
   6994     ebp = POP32_VAL(esp); /* 0x38040711: pop ebp */
   6995     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38040712: ret 4 */
   6996     RECOMP_REGS_OUT();
   6997 }
   6998 
   6999 void sub_38040720(void) {
   7000     int _fpu_cmp = 0;
   7001     uint32_t _cf = 0;
   7002     int _df = 1;
   7003     uint32_t _flag_k = FK_NONE;
   7004     uint32_t _flag_a = 0, _flag_b = 0;
   7005     uint32_t _itail_tgt = 0;
   7006     RECOMP_REGS_LOCALS
   7007     RECOMP_ENTER(0x38040720u);
   7008 
   7009 L_38040720:
   7010     RECOMP_ICALL(0x38040730u); /* 0x38040720: call 0x38040730 */ /* not lifted */
   7011     RECOMP_FLAGS_IN();
   7012     goto L_38040740; /* 0x38040725: jmp 0x38040740 */
   7013 L_38040740:
   7014     PUSH32(esp, 0x38040750u); /* 0x38040740: push 0x38040750 */
   7015     RECOMP_ICALL(0x3804B54Cu); /* 0x38040745: call 0x3804b54c */ /* not lifted */
   7016     RECOMP_FLAGS_IN();
   7017     ecx = POP32_VAL(esp); /* 0x3804074A: pop ecx */
   7018     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804074B: ret  */
   7019     RECOMP_REGS_OUT();
   7020 }
   7021 
   7022 void sub_38040730(void) {
   7023     int _fpu_cmp = 0;
   7024     uint32_t _cf = 0;
   7025     int _df = 1;
   7026     uint32_t _flag_k = FK_NONE;
   7027     uint32_t _flag_a = 0, _flag_b = 0;
   7028     uint32_t _itail_tgt = 0;
   7029     RECOMP_REGS_LOCALS
   7030     RECOMP_ENTER(0x38040730u);
   7031 
   7032 L_38040730:
   7033     ecx = 0x3806F191u; /* 0x38040730: mov ecx, 0x3806f191 */
   7034 L_38040735:
   7035     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
   7036     { RECOMP_REGS_OUT(); return; } /* end of function */
   7037   _ljump:
   7038     switch (_itail_tgt) {
   7039       case 0x38040730u: goto L_38040730;
   7040       case 0x38040735u: goto L_38040735;
   7041       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7042     }
   7043     RECOMP_REGS_OUT();
   7044 }
   7045 
   7046 void sub_38040740(void) {
   7047     int _fpu_cmp = 0;
   7048     uint32_t _cf = 0;
   7049     int _df = 1;
   7050     uint32_t _flag_k = FK_NONE;
   7051     uint32_t _flag_a = 0, _flag_b = 0;
   7052     uint32_t _itail_tgt = 0;
   7053     RECOMP_REGS_LOCALS
   7054     RECOMP_ENTER(0x38040740u);
   7055 
   7056 L_38040740:
   7057     PUSH32(esp, 0x38040750u); /* 0x38040740: push 0x38040750 */
   7058     RECOMP_ICALL(0x3804B54Cu); /* 0x38040745: call 0x3804b54c */ /* not lifted */
   7059     RECOMP_FLAGS_IN();
   7060     ecx = POP32_VAL(esp); /* 0x3804074A: pop ecx */
   7061     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804074B: ret  */
   7062     RECOMP_REGS_OUT();
   7063 }
   7064 
   7065 void sub_38040750(void) {
   7066     int _fpu_cmp = 0;
   7067     uint32_t _cf = 0;
   7068     int _df = 1;
   7069     uint32_t _flag_k = FK_NONE;
   7070     uint32_t _flag_a = 0, _flag_b = 0;
   7071     uint32_t _itail_tgt = 0;
   7072     RECOMP_REGS_LOCALS
   7073     RECOMP_ENTER(0x38040750u);
   7074 
   7075 L_38040750:
   7076     ecx = 0x3806F191u; /* 0x38040750: mov ecx, 0x3806f191 */
   7077 L_38040755:
   7078     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
   7079     { RECOMP_REGS_OUT(); return; } /* end of function */
   7080   _ljump:
   7081     switch (_itail_tgt) {
   7082       case 0x38040750u: goto L_38040750;
   7083       case 0x38040755u: goto L_38040755;
   7084       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7085     }
   7086     RECOMP_REGS_OUT();
   7087 }
   7088 
   7089 void sub_38040760(void) {
   7090     int _fpu_cmp = 0;
   7091     uint32_t _cf = 0;
   7092     int _df = 1;
   7093     uint32_t _flag_k = FK_NONE;
   7094     uint32_t _flag_a = 0, _flag_b = 0;
   7095     uint32_t _itail_tgt = 0;
   7096     RECOMP_REGS_LOCALS
   7097     RECOMP_ENTER(0x38040760u);
   7098 
   7099 L_38040760:
   7100     RECOMP_ICALL(0x38040770u); /* 0x38040760: call 0x38040770 */ /* not lifted */
   7101     RECOMP_FLAGS_IN();
   7102     goto L_38040780; /* 0x38040765: jmp 0x38040780 */
   7103 L_38040780:
   7104     PUSH32(esp, 0x38040790u); /* 0x38040780: push 0x38040790 */
   7105     RECOMP_ICALL(0x3804B54Cu); /* 0x38040785: call 0x3804b54c */ /* not lifted */
   7106     RECOMP_FLAGS_IN();
   7107     ecx = POP32_VAL(esp); /* 0x3804078A: pop ecx */
   7108     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3804078B: ret  */
   7109     RECOMP_REGS_OUT();
   7110 }