aorecomp

Anarchy Online classic in the browser

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


client/game/llr.dll/lifted-0014.c (771064B)


      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_38023580(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(0x38023580u);
     17 
     18 L_38023580:
     19     PUSH32(esp, 1); /* 0x38023580: push 1 */
     20     PUSH32(esp, 0x3806C5D8u); /* 0x38023582: push 0x3806c5d8 */
     21     ecx = 0x3806ED00u; /* 0x38023587: mov ecx, 0x3806ed00 */
     22     RECOMP_ICALL(0x380235A0u); /* 0x3802358C: call 0x380235a0 */ /* not lifted */
     23     RECOMP_FLAGS_IN();
     24     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023591: ret  */
     25     RECOMP_REGS_OUT();
     26 }
     27 
     28 void sub_380235A0(void) {
     29     int _fpu_cmp = 0;
     30     uint32_t _cf = 0;
     31     int _df = 1;
     32     uint32_t _flag_k = FK_NONE;
     33     uint32_t _flag_a = 0, _flag_b = 0;
     34     uint32_t _itail_tgt = 0;
     35     RECOMP_REGS_LOCALS
     36     RECOMP_ENTER(0x380235A0u);
     37 
     38 L_380235A0:
     39     PUSH32(esp, ebp); /* 0x380235A0: push ebp */
     40     ebp = esp; /* 0x380235A1: mov ebp, esp */
     41     PUSH32(esp, 0xFFFFFFFFu); /* 0x380235A3: push -1 */
     42     PUSH32(esp, 0x3804C4C8u); /* 0x380235A5: push 0x3804c4c8 */
     43     eax = MEM32(FS_BASE + (0)); /* 0x380235AA: mov eax, dword ptr fs:[0] */
     44     PUSH32(esp, eax); /* 0x380235B0: push eax */
     45     MEM32(FS_BASE + (0)) = esp; /* 0x380235B1: mov dword ptr fs:[0], esp */
     46     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
     47     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     48     esp = esp - 8; /* 0x380235B8: sub esp, 8 */
     49     _flag_k = FK_CMP;
     50     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x380235BB: mov al, byte ptr [ebp + 0xb] */
     51     PUSH32(esp, ebx); /* 0x380235BE: push ebx */
     52     ebx = ecx; /* 0x380235BF: mov ebx, ecx */
     53     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x380235C1: mov cl, byte ptr [ebp + 0xb] */
     54     PUSH32(esp, esi); /* 0x380235C4: push esi */
     55     PUSH32(esp, edi); /* 0x380235C5: push edi */
     56     PUSH32(esp, 0x1Cu); /* 0x380235C6: push 0x1c */
     57     MEM32(ebp + (-0x14)) = ebx; /* 0x380235C8: mov dword ptr [ebp - 0x14], ebx */
     58     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x380235CB: mov byte ptr [ebx], al */
     59     MEM8(ebx + 0x1) = (uint8_t)(LO8(ecx)); /* 0x380235CD: mov byte ptr [ebx + 1], cl */
     60     MEM8(ebx + 0xC) = (uint8_t)(0); /* 0x380235D0: mov byte ptr [ebx + 0xc], 0 */
     61     RECOMP_ICALL(0x3804B676u); /* 0x380235D4: call 0x3804b676 */ /* not lifted */
     62     RECOMP_FLAGS_IN();
     63     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x380235D9: mov byte ptr [eax + 0x18], 1 */
     64     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x380235DD: mov byte ptr [eax + 0x19], 0 */
     65     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     66     edi = 0; /* 0x380235E1: xor edi, edi */
     67     _cf = 0;
     68     _flag_k = FK_TEST;
     69     MEM32(eax + 0x4) = edi; /* 0x380235E3: mov dword ptr [eax + 4], edi */
     70     MEM32(ebx + 0x8) = eax; /* 0x380235E6: mov dword ptr [ebx + 8], eax */
     71     MEM8(eax + 0x19) = (uint8_t)(1); /* 0x380235E9: mov byte ptr [eax + 0x19], 1 */
     72     eax = MEM32(ebx + 0x8); /* 0x380235ED: mov eax, dword ptr [ebx + 8] */
     73     MEM32(eax) = edi; /* 0x380235F0: mov dword ptr [eax], edi */
     74     edx = MEM32(ebx + 0x8); /* 0x380235F2: mov edx, dword ptr [ebx + 8] */
     75     MEM32(edx + 0x8) = edi; /* 0x380235F5: mov dword ptr [edx + 8], edi */
     76     esi = MEM32(ebx + 0x8); /* 0x380235F8: mov esi, dword ptr [ebx + 8] */
     77     PUSH32(esp, 0x1Cu); /* 0x380235FB: push 0x1c */
     78     RECOMP_ICALL(0x3804B676u); /* 0x380235FD: call 0x3804b676 */ /* not lifted */
     79     RECOMP_FLAGS_IN();
     80     MEM32(eax + 0x4) = esi; /* 0x38023602: mov dword ptr [eax + 4], esi */
     81     MEM8(eax + 0x18) = (uint8_t)(0); /* 0x38023605: mov byte ptr [eax + 0x18], 0 */
     82     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x38023609: mov byte ptr [eax + 0x19], 0 */
     83     MEM32(ebx + 0x4) = eax; /* 0x3802360D: mov dword ptr [ebx + 4], eax */
     84     MEM32(eax) = eax; /* 0x38023610: mov dword ptr [eax], eax */
     85     eax = MEM32(ebx + 0x4); /* 0x38023612: mov eax, dword ptr [ebx + 4] */
     86     MEM32(eax + 0x8) = eax; /* 0x38023615: mov dword ptr [eax + 8], eax */
     87     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
     88     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     89     esp = esp + 8; /* 0x38023618: add esp, 8 */
     90     _flag_k = FK_ADD;
     91     MEM32(ebx + 0x10) = edi; /* 0x3802361B: mov dword ptr [ebx + 0x10], edi */
     92     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3802361E: mov al, byte ptr [ebp + 0xb] */
     93     MEM32(ebx + 0x14) = edi; /* 0x38023621: mov dword ptr [ebx + 0x14], edi */
     94     esi = ebx + 0x18; /* 0x38023624: lea esi, [ebx + 0x18] */
     95     MEM32(ebp + (-0x4)) = edi; /* 0x38023627: mov dword ptr [ebp - 4], edi */
     96     MEM32(esi + 0x4) = edi; /* 0x3802362A: mov dword ptr [esi + 4], edi */
     97     MEM32(esi + 0x8) = edi; /* 0x3802362D: mov dword ptr [esi + 8], edi */
     98     MEM32(esi + 0xC) = edi; /* 0x38023630: mov dword ptr [esi + 0xc], edi */
     99     edi = MEM32(ebp + 0x8); /* 0x38023633: mov edi, dword ptr [ebp + 8] */
    100     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
    101     ecx = ecx | 0xFFFFFFFFu; /* 0x38023636: or ecx, 0xffffffff */
    102     _cf = 0;
    103     _flag_k = FK_TEST;
    104     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x38023639: mov byte ptr [esi], al */
    105     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    106     eax = 0; /* 0x3802363B: xor eax, eax */
    107     _cf = 0;
    108     _flag_k = FK_TEST;
    109     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3802363D: repne scasb al, byte ptr es:[edi] */
    110     ecx = ~ecx; /* 0x3802363F: not ecx */
    111     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    112     ecx = ecx - 1; /* 0x38023641: dec ecx */
    113     _flag_k = FK_DEC;
    114     edi = ecx; /* 0x38023642: mov edi, ecx */
    115     ecx = esi; /* 0x38023644: mov ecx, esi */
    116     MEM32(ebp + (-0x10)) = edi; /* 0x38023646: mov dword ptr [ebp - 0x10], edi */
    117     RECOMP_ICALL(MEM32(0x3804E048)); /* 0x38023649: call dword ptr [0x3804e048] */
    118     RECOMP_FLAGS_IN();
    119     /* cmp eax, edi */ /* 0x3802364F: cmp eax, edi */
    120     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    122     _flag_k = FK_CMP;
    123     if (CMP_AE(_flag_a, _flag_b)) goto L_38023659; /* 0x38023651: jae 0x38023659 */
    124 L_38023653:
    125     RECOMP_ICALL(MEM32(0x3804E058)); /* 0x38023653: call dword ptr [0x3804e058] */
    126     RECOMP_FLAGS_IN();
    127 L_38023659:
    128     eax = MEM32(esi + 0x4); /* 0x38023659: mov eax, dword ptr [esi + 4] */
    129     /* test eax, eax */ /* 0x3802365C: test eax, eax */
    130     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    131     _cf = 0;
    132     _flag_k = FK_TEST;
    133     MEM32(esi + 0x8) = 0; /* 0x3802365E: mov dword ptr [esi + 8], 0 */
    134     if (TEST_Z(_flag_a, _flag_b)) goto L_38023682; /* 0x38023665: je 0x38023682 */
    135 L_38023667:
    136     SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x38023667: mov al, byte ptr [eax - 1] */
    137     /* test LO8(eax), LO8(eax) */ /* 0x3802366A: test al, al */
    138     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    139     _cf = 0;
    140     _flag_k = FK_NARROW(FK_TEST, 24);
    141     if (TEST_Z(_flag_a, _flag_b)) goto L_38023682; /* 0x3802366C: je 0x38023682 */
    142 L_3802366E:
    143     /* cmp LO8(eax), 0xFFu */ /* 0x3802366E: cmp al, 0xff */
    144     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
    145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    146     _flag_k = FK_NARROW(FK_CMP, 24);
    147     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023682; /* 0x38023670: je 0x38023682 */
    148 L_38023672:
    149     /* test edi, edi */ /* 0x38023672: test edi, edi */
    150     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    151     _cf = 0;
    152     _flag_k = FK_TEST;
    153     if (TEST_NZ(_flag_a, _flag_b)) goto L_380236A8; /* 0x38023674: jne 0x380236a8 */
    154 L_38023676:
    155     PUSH32(esp, 1); /* 0x38023676: push 1 */
    156     ecx = esi; /* 0x38023678: mov ecx, esi */
    157     RECOMP_ICALL(MEM32(0x3804E05C)); /* 0x3802367A: call dword ptr [0x3804e05c] */
    158     RECOMP_FLAGS_IN();
    159     goto L_380236D6; /* 0x38023680: jmp 0x380236d6 */
    160 L_38023682:
    161     /* test edi, edi */ /* 0x38023682: test edi, edi */
    162     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    163     _cf = 0;
    164     _flag_k = FK_TEST;
    165     if (TEST_NZ(_flag_a, _flag_b)) goto L_38023692; /* 0x38023684: jne 0x38023692 */
    166 L_38023686:
    167     PUSH32(esp, 1); /* 0x38023686: push 1 */
    168     ecx = esi; /* 0x38023688: mov ecx, esi */
    169     RECOMP_ICALL(MEM32(0x3804E05C)); /* 0x3802368A: call dword ptr [0x3804e05c] */
    170     RECOMP_FLAGS_IN();
    171     goto L_380236D6; /* 0x38023690: jmp 0x380236d6 */
    172 L_38023692:
    173     eax = MEM32(esi + 0xC); /* 0x38023692: mov eax, dword ptr [esi + 0xc] */
    174     /* cmp eax, 0x1Fu */ /* 0x38023695: cmp eax, 0x1f */
    175     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu);
    176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    177     _flag_k = FK_CMP;
    178     if (CMP_A(_flag_a, _flag_b)) goto L_3802369E; /* 0x38023698: ja 0x3802369e */
    179 L_3802369A:
    180     /* cmp eax, edi */ /* 0x3802369A: cmp eax, edi */
    181     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    183     _flag_k = FK_CMP;
    184     if (CMP_AE(_flag_a, _flag_b)) goto L_380236B1; /* 0x3802369C: jae 0x380236b1 */
    185 L_3802369E:
    186     PUSH32(esp, 1); /* 0x3802369E: push 1 */
    187     ecx = esi; /* 0x380236A0: mov ecx, esi */
    188     RECOMP_ICALL(MEM32(0x3804E05C)); /* 0x380236A2: call dword ptr [0x3804e05c] */
    189     RECOMP_FLAGS_IN();
    190 L_380236A8:
    191     PUSH32(esp, edi); /* 0x380236A8: push edi */
    192     ecx = esi; /* 0x380236A9: mov ecx, esi */
    193     RECOMP_ICALL(MEM32(0x3804E050)); /* 0x380236AB: call dword ptr [0x3804e050] */
    194     RECOMP_FLAGS_IN();
    195 L_380236B1:
    196     esi = MEM32(ebp + 0x8); /* 0x380236B1: mov esi, dword ptr [ebp + 8] */
    197     ecx = edi; /* 0x380236B4: mov ecx, edi */
    198     edi = MEM32(ebx + 0x1C); /* 0x380236B6: mov edi, dword ptr [ebx + 0x1c] */
    199     edx = ecx; /* 0x380236B9: mov edx, ecx */
    200     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x380236BB: shr ecx, 2 */
    201     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    202     ecx = ecx >> 2u; /* 0x380236BB: shr ecx, 2 */
    203     eax = ebx + 0x18; /* 0x380236BE: lea eax, [ebx + 0x18] */
    204     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x380236C1: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
    205     ecx = edx; /* 0x380236C3: mov ecx, edx */
    206     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
    207     ecx = ecx & 3; /* 0x380236C5: and ecx, 3 */
    208     _cf = 0;
    209     _flag_k = FK_TEST;
    210     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x380236C8: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
    211     ecx = MEM32(ebp + (-0x10)); /* 0x380236CA: mov ecx, dword ptr [ebp - 0x10] */
    212     PUSH32(esp, ecx); /* 0x380236CD: push ecx */
    213     ecx = eax; /* 0x380236CE: mov ecx, eax */
    214     RECOMP_ICALL(MEM32(0x3804E054)); /* 0x380236D0: call dword ptr [0x3804e054] */
    215     RECOMP_FLAGS_IN();
    216 L_380236D6:
    217     edx = MEM32(ebp + 0xC); /* 0x380236D6: mov edx, dword ptr [ebp + 0xc] */
    218     ecx = MEM32(ebp + (-0xC)); /* 0x380236D9: mov ecx, dword ptr [ebp - 0xc] */
    219     edi = POP32_VAL(esp); /* 0x380236DC: pop edi */
    220     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu);
    221     edx = edx & 0xFFu; /* 0x380236DD: and edx, 0xff */
    222     _cf = 0;
    223     _flag_k = FK_TEST;
    224     MEM32(ebx + 0x28) = edx; /* 0x380236E3: mov dword ptr [ebx + 0x28], edx */
    225     esi = POP32_VAL(esp); /* 0x380236E6: pop esi */
    226     eax = ebx; /* 0x380236E7: mov eax, ebx */
    227     ebx = POP32_VAL(esp); /* 0x380236E9: pop ebx */
    228     MEM32(FS_BASE + (0)) = ecx; /* 0x380236EA: mov dword ptr fs:[0], ecx */
    229     esp = ebp; /* 0x380236F1: mov esp, ebp */
    230     ebp = POP32_VAL(esp); /* 0x380236F3: pop ebp */
    231     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380236F4: ret 8 */
    232     RECOMP_REGS_OUT();
    233 }
    234 
    235 void sub_38023700(void) {
    236     int _fpu_cmp = 0;
    237     uint32_t _cf = 0;
    238     int _df = 1;
    239     uint32_t _flag_k = FK_NONE;
    240     uint32_t _flag_a = 0, _flag_b = 0;
    241     uint32_t _itail_tgt = 0;
    242     RECOMP_REGS_LOCALS
    243     RECOMP_ENTER(0x38023700u);
    244 
    245 L_38023700:
    246     PUSH32(esp, ebp); /* 0x38023700: push ebp */
    247     ebp = esp; /* 0x38023701: mov ebp, esp */
    248     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    250     esp = esp - 8; /* 0x38023703: sub esp, 8 */
    251     _flag_k = FK_CMP;
    252     PUSH32(esp, ebx); /* 0x38023706: push ebx */
    253     PUSH32(esp, esi); /* 0x38023707: push esi */
    254     esi = ecx; /* 0x38023708: mov esi, ecx */
    255     ecx = MEM32(esi + 0x10); /* 0x3802370A: mov ecx, dword ptr [esi + 0x10] */
    256     /* test ecx, ecx */ /* 0x3802370D: test ecx, ecx */
    257     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    258     _cf = 0;
    259     _flag_k = FK_TEST;
    260     PUSH32(esp, edi); /* 0x3802370F: push edi */
    261     edi = MEM32(esi + 0x4); /* 0x38023710: mov edi, dword ptr [esi + 4] */
    262     eax = MEM32(edi); /* 0x38023713: mov eax, dword ptr [edi] */
    263     MEM32(ebp + (-0x4)) = eax; /* 0x38023715: mov dword ptr [ebp - 4], eax */
    264     if (TEST_Z(_flag_a, _flag_b)) goto L_38023775; /* 0x38023718: je 0x38023775 */
    265 L_3802371A:
    266     ecx = eax; /* 0x3802371A: mov ecx, eax */
    267     /* cmp eax, ecx */ /* 0x3802371C: cmp eax, ecx */
    268     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    269     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    270     _flag_k = FK_CMP;
    271     if (CMP_NE(_flag_a, _flag_b)) goto L_38023775; /* 0x3802371E: jne 0x38023775 */
    272 L_38023720:
    273     /* cmp edi, edi */ /* 0x38023720: cmp edi, edi */
    274     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    276     _flag_k = FK_CMP;
    277     if (CMP_NE(_flag_a, _flag_b)) goto L_38023775; /* 0x38023722: jne 0x38023775 */
    278 L_38023724:
    279     ebx = MEM32(edi + 0x4); /* 0x38023724: mov ebx, dword ptr [edi + 4] */
    280     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x38023727: cmp ebx, dword ptr [esi + 8] */
    281     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    283     _flag_k = FK_CMP;
    284     edi = ebx; /* 0x3802372A: mov edi, ebx */
    285     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802374D; /* 0x3802372C: je 0x3802374d */
    286 L_3802372E:
    287     eax = MEM32(edi + 0x8); /* 0x3802372E: mov eax, dword ptr [edi + 8] */
    288     PUSH32(esp, eax); /* 0x38023731: push eax */
    289     ecx = esi; /* 0x38023732: mov ecx, esi */
    290     RECOMP_ICALL(0x380250D0u); /* 0x38023734: call 0x380250d0 */ /* not lifted */
    291     RECOMP_FLAGS_IN();
    292     edi = MEM32(edi); /* 0x38023739: mov edi, dword ptr [edi] */
    293     PUSH32(esp, ebx); /* 0x3802373B: push ebx */
    294     RECOMP_ICALL(0x3804B4F6u); /* 0x3802373C: call 0x3804b4f6 */ /* not lifted */
    295     RECOMP_FLAGS_IN();
    296     eax = MEM32(esi + 0x8); /* 0x38023741: mov eax, dword ptr [esi + 8] */
    297     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    298     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    299     esp = esp + 4; /* 0x38023744: add esp, 4 */
    300     _flag_k = FK_ADD;
    301     /* cmp edi, eax */ /* 0x38023747: cmp edi, eax */
    302     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    304     _flag_k = FK_CMP;
    305     ebx = edi; /* 0x38023749: mov ebx, edi */
    306     RECOMP_BACKEDGE();
    307     if (CMP_NE(_flag_a, _flag_b)) goto L_3802372E; /* 0x3802374B: jne 0x3802372e */
    308 L_3802374D:
    309     ecx = MEM32(esi + 0x4); /* 0x3802374D: mov ecx, dword ptr [esi + 4] */
    310     edx = MEM32(esi + 0x8); /* 0x38023750: mov edx, dword ptr [esi + 8] */
    311     MEM32(ecx + 0x4) = edx; /* 0x38023753: mov dword ptr [ecx + 4], edx */
    312     eax = MEM32(esi + 0x4); /* 0x38023756: mov eax, dword ptr [esi + 4] */
    313     MEM32(esi + 0x10) = 0; /* 0x38023759: mov dword ptr [esi + 0x10], 0 */
    314     MEM32(eax) = eax; /* 0x38023760: mov dword ptr [eax], eax */
    315     eax = MEM32(esi + 0x4); /* 0x38023762: mov eax, dword ptr [esi + 4] */
    316     MEM32(eax + 0x8) = eax; /* 0x38023765: mov dword ptr [eax + 8], eax */
    317     eax = ebp + (-0x8); /* 0x38023768: lea eax, [ebp - 8] */
    318     PUSH32(esp, eax); /* 0x3802376B: push eax */
    319     ecx = esi; /* 0x3802376C: mov ecx, esi */
    320     RECOMP_ICALL(0x380354C0u); /* 0x3802376E: call 0x380354c0 */ /* not lifted */
    321     RECOMP_FLAGS_IN();
    322     goto L_38023796; /* 0x38023773: jmp 0x38023796 */
    323 L_38023775:
    324     /* cmp eax, edi */ /* 0x38023775: cmp eax, edi */
    325     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    326     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    327     _flag_k = FK_CMP;
    328     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023796; /* 0x38023777: je 0x38023796 */
    329 L_38023779:
    330     ecx = ebp + (-0x4); /* 0x38023779: lea ecx, [ebp - 4] */
    331     ebx = eax; /* 0x3802377C: mov ebx, eax */
    332     RECOMP_ICALL(0x380249B0u); /* 0x3802377E: call 0x380249b0 */ /* not lifted */
    333     RECOMP_FLAGS_IN();
    334     PUSH32(esp, ebx); /* 0x38023783: push ebx */
    335     ecx = ebp + (-0x8); /* 0x38023784: lea ecx, [ebp - 8] */
    336     PUSH32(esp, ecx); /* 0x38023787: push ecx */
    337     ecx = esi; /* 0x38023788: mov ecx, esi */
    338     RECOMP_ICALL(0x3801ACB0u); /* 0x3802378A: call 0x3801acb0 */ /* not lifted */
    339     RECOMP_FLAGS_IN();
    340     eax = MEM32(ebp + (-0x4)); /* 0x3802378F: mov eax, dword ptr [ebp - 4] */
    341     /* cmp eax, edi */ /* 0x38023792: cmp eax, edi */
    342     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    344     _flag_k = FK_CMP;
    345     RECOMP_BACKEDGE();
    346     if (CMP_NE(_flag_a, _flag_b)) goto L_38023779; /* 0x38023794: jne 0x38023779 */
    347 L_38023796:
    348     edx = MEM32(esi + 0x4); /* 0x38023796: mov edx, dword ptr [esi + 4] */
    349     PUSH32(esp, edx); /* 0x38023799: push edx */
    350     RECOMP_ICALL(0x3804B4F6u); /* 0x3802379A: call 0x3804b4f6 */ /* not lifted */
    351     RECOMP_FLAGS_IN();
    352     eax = MEM32(esi + 0x8); /* 0x3802379F: mov eax, dword ptr [esi + 8] */
    353     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    354     edi = 0; /* 0x380237A2: xor edi, edi */
    355     _cf = 0;
    356     _flag_k = FK_TEST;
    357     PUSH32(esp, eax); /* 0x380237A4: push eax */
    358     MEM32(esi + 0x4) = edi; /* 0x380237A5: mov dword ptr [esi + 4], edi */
    359     MEM32(esi + 0x10) = edi; /* 0x380237A8: mov dword ptr [esi + 0x10], edi */
    360     RECOMP_ICALL(0x3804B4F6u); /* 0x380237AB: call 0x3804b4f6 */ /* not lifted */
    361     RECOMP_FLAGS_IN();
    362     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    363     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    364     esp = esp + 8; /* 0x380237B0: add esp, 8 */
    365     _flag_k = FK_ADD;
    366     MEM32(esi + 0x8) = edi; /* 0x380237B3: mov dword ptr [esi + 8], edi */
    367     edi = POP32_VAL(esp); /* 0x380237B6: pop edi */
    368     esi = POP32_VAL(esp); /* 0x380237B7: pop esi */
    369     ebx = POP32_VAL(esp); /* 0x380237B8: pop ebx */
    370     esp = ebp; /* 0x380237B9: mov esp, ebp */
    371     ebp = POP32_VAL(esp); /* 0x380237BB: pop ebp */
    372     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380237BC: ret  */
    373     RECOMP_REGS_OUT();
    374 }
    375 
    376 void sub_38023796(void) {
    377     int _fpu_cmp = 0;
    378     uint32_t _cf = 0;
    379     int _df = 1;
    380     uint32_t _flag_k = FK_NONE;
    381     uint32_t _flag_a = 0, _flag_b = 0;
    382     uint32_t _itail_tgt = 0;
    383     RECOMP_REGS_LOCALS
    384     RECOMP_ENTER(0x38023796u);
    385 
    386 L_38023796:
    387     edx = MEM32(esi + 0x4); /* 0x38023796: mov edx, dword ptr [esi + 4] */
    388     PUSH32(esp, edx); /* 0x38023799: push edx */
    389     RECOMP_ICALL(0x3804B4F6u); /* 0x3802379A: call 0x3804b4f6 */ /* not lifted */
    390     RECOMP_FLAGS_IN();
    391     eax = MEM32(esi + 0x8); /* 0x3802379F: mov eax, dword ptr [esi + 8] */
    392     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    393     edi = 0; /* 0x380237A2: xor edi, edi */
    394     _cf = 0;
    395     _flag_k = FK_TEST;
    396     PUSH32(esp, eax); /* 0x380237A4: push eax */
    397     MEM32(esi + 0x4) = edi; /* 0x380237A5: mov dword ptr [esi + 4], edi */
    398     MEM32(esi + 0x10) = edi; /* 0x380237A8: mov dword ptr [esi + 0x10], edi */
    399     RECOMP_ICALL(0x3804B4F6u); /* 0x380237AB: call 0x3804b4f6 */ /* not lifted */
    400     RECOMP_FLAGS_IN();
    401     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    402     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    403     esp = esp + 8; /* 0x380237B0: add esp, 8 */
    404     _flag_k = FK_ADD;
    405     MEM32(esi + 0x8) = edi; /* 0x380237B3: mov dword ptr [esi + 8], edi */
    406     edi = POP32_VAL(esp); /* 0x380237B6: pop edi */
    407     esi = POP32_VAL(esp); /* 0x380237B7: pop esi */
    408     ebx = POP32_VAL(esp); /* 0x380237B8: pop ebx */
    409     esp = ebp; /* 0x380237B9: mov esp, ebp */
    410     ebp = POP32_VAL(esp); /* 0x380237BB: pop ebp */
    411     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380237BC: ret  */
    412     RECOMP_REGS_OUT();
    413 }
    414 
    415 void sub_380237C0(void) {
    416     int _fpu_cmp = 0;
    417     uint32_t _cf = 0;
    418     int _df = 1;
    419     uint32_t _flag_k = FK_NONE;
    420     uint32_t _flag_a = 0, _flag_b = 0;
    421     uint32_t _itail_tgt = 0;
    422     RECOMP_REGS_LOCALS
    423     RECOMP_ENTER(0x380237C0u);
    424 
    425 L_380237C0:
    426     PUSH32(esp, 0x380237D0u); /* 0x380237C0: push 0x380237d0 */
    427     RECOMP_ICALL(0x3804B54Cu); /* 0x380237C5: call 0x3804b54c */ /* not lifted */
    428     RECOMP_FLAGS_IN();
    429     ecx = POP32_VAL(esp); /* 0x380237CA: pop ecx */
    430     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380237CB: ret  */
    431     RECOMP_REGS_OUT();
    432 }
    433 
    434 void sub_380237D0(void) {
    435     int _fpu_cmp = 0;
    436     uint32_t _cf = 0;
    437     int _df = 1;
    438     uint32_t _flag_k = FK_NONE;
    439     uint32_t _flag_a = 0, _flag_b = 0;
    440     uint32_t _itail_tgt = 0;
    441     RECOMP_REGS_LOCALS
    442     RECOMP_ENTER(0x380237D0u);
    443 
    444 L_380237D0:
    445     ecx = 0x3806ED00u; /* 0x380237D0: mov ecx, 0x3806ed00 */
    446     goto L_380237E0; /* 0x380237D5: jmp 0x380237e0 */
    447 L_380237E0:
    448     PUSH32(esp, ebp); /* 0x380237E0: push ebp */
    449     ebp = esp; /* 0x380237E1: mov ebp, esp */
    450     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    451     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    452     esp = esp - 8; /* 0x380237E3: sub esp, 8 */
    453     _flag_k = FK_CMP;
    454     PUSH32(esp, ebx); /* 0x380237E6: push ebx */
    455     PUSH32(esp, esi); /* 0x380237E7: push esi */
    456     esi = ecx; /* 0x380237E8: mov esi, ecx */
    457     eax = MEM32(esi + 0x1C); /* 0x380237EA: mov eax, dword ptr [esi + 0x1c] */
    458     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    459     ebx = 0; /* 0x380237ED: xor ebx, ebx */
    460     _cf = 0;
    461     _flag_k = FK_TEST;
    462     /* cmp eax, ebx */ /* 0x380237EF: cmp eax, ebx */
    463     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    465     _flag_k = FK_CMP;
    466     PUSH32(esp, edi); /* 0x380237F1: push edi */
    467     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023810; /* 0x380237F2: je 0x38023810 */
    468 L_380237F4:
    469     ecx = eax + (-0x1); /* 0x380237F4: lea ecx, [eax - 1] */
    470     SET_LO8(eax, MEM8(ecx)); /* 0x380237F7: mov al, byte ptr [ecx] */
    471     /* test LO8(eax), LO8(eax) */ /* 0x380237F9: test al, al */
    472     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    473     _cf = 0;
    474     _flag_k = FK_NARROW(FK_TEST, 24);
    475     if (TEST_Z(_flag_a, _flag_b)) goto L_38023807; /* 0x380237FB: je 0x38023807 */
    476 L_380237FD:
    477     /* cmp LO8(eax), 0xFFu */ /* 0x380237FD: cmp al, 0xff */
    478     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
    479     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    480     _flag_k = FK_NARROW(FK_CMP, 24);
    481     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023807; /* 0x380237FF: je 0x38023807 */
    482 L_38023801:
    483     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    484     SET_LO8(eax, LO8(eax) - 1); /* 0x38023801: dec al */
    485     _flag_k = FK_NARROW(FK_DEC, 24);
    486     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x38023803: mov byte ptr [ecx], al */
    487     goto L_38023810; /* 0x38023805: jmp 0x38023810 */
    488 L_38023807:
    489     PUSH32(esp, ecx); /* 0x38023807: push ecx */
    490     RECOMP_ICALL(0x3804B4F6u); /* 0x38023808: call 0x3804b4f6 */ /* not lifted */
    491     RECOMP_FLAGS_IN();
    492     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    493     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    494     esp = esp + 4; /* 0x3802380D: add esp, 4 */
    495     _flag_k = FK_ADD;
    496 L_38023810:
    497     MEM32(esi + 0x1C) = ebx; /* 0x38023810: mov dword ptr [esi + 0x1c], ebx */
    498     MEM32(esi + 0x20) = ebx; /* 0x38023813: mov dword ptr [esi + 0x20], ebx */
    499     MEM32(esi + 0x24) = ebx; /* 0x38023816: mov dword ptr [esi + 0x24], ebx */
    500     edi = MEM32(esi + 0x4); /* 0x38023819: mov edi, dword ptr [esi + 4] */
    501     /* cmp MEM32(esi + 0x10), ebx */ /* 0x3802381C: cmp dword ptr [esi + 0x10], ebx */
    502     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx);
    503     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    504     _flag_k = FK_CMP;
    505     eax = MEM32(edi); /* 0x3802381F: mov eax, dword ptr [edi] */
    506     MEM32(ebp + (-0x4)) = eax; /* 0x38023821: mov dword ptr [ebp - 4], eax */
    507     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023854; /* 0x38023824: je 0x38023854 */
    508 L_38023826:
    509     ecx = eax; /* 0x38023826: mov ecx, eax */
    510     /* cmp eax, ecx */ /* 0x38023828: cmp eax, ecx */
    511     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    513     _flag_k = FK_CMP;
    514     if (CMP_NE(_flag_a, _flag_b)) goto L_38023854; /* 0x3802382A: jne 0x38023854 */
    515 L_3802382C:
    516     /* cmp edi, edi */ /* 0x3802382C: cmp edi, edi */
    517     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    518     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    519     _flag_k = FK_CMP;
    520     if (CMP_NE(_flag_a, _flag_b)) goto L_38023854; /* 0x3802382E: jne 0x38023854 */
    521 L_38023830:
    522     eax = MEM32(edi + 0x4); /* 0x38023830: mov eax, dword ptr [edi + 4] */
    523     PUSH32(esp, eax); /* 0x38023833: push eax */
    524     ecx = esi; /* 0x38023834: mov ecx, esi */
    525     RECOMP_ICALL(0x380250D0u); /* 0x38023836: call 0x380250d0 */ /* not lifted */
    526     RECOMP_FLAGS_IN();
    527     ecx = MEM32(esi + 0x4); /* 0x3802383B: mov ecx, dword ptr [esi + 4] */
    528     edx = MEM32(esi + 0x8); /* 0x3802383E: mov edx, dword ptr [esi + 8] */
    529     MEM32(ecx + 0x4) = edx; /* 0x38023841: mov dword ptr [ecx + 4], edx */
    530     eax = MEM32(esi + 0x4); /* 0x38023844: mov eax, dword ptr [esi + 4] */
    531     MEM32(esi + 0x10) = ebx; /* 0x38023847: mov dword ptr [esi + 0x10], ebx */
    532     MEM32(eax) = eax; /* 0x3802384A: mov dword ptr [eax], eax */
    533     eax = MEM32(esi + 0x4); /* 0x3802384C: mov eax, dword ptr [esi + 4] */
    534     MEM32(eax + 0x8) = eax; /* 0x3802384F: mov dword ptr [eax + 8], eax */
    535     goto L_38023877; /* 0x38023852: jmp 0x38023877 */
    536 L_38023854:
    537     /* cmp eax, edi */ /* 0x38023854: cmp eax, edi */
    538     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    539     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    540     _flag_k = FK_CMP;
    541     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023877; /* 0x38023856: je 0x38023877 */
    542 L_38023858:
    543     ecx = ebp + (-0x4); /* 0x38023858: lea ecx, [ebp - 4] */
    544     ebx = eax; /* 0x3802385B: mov ebx, eax */
    545     RECOMP_ICALL(0x380249B0u); /* 0x3802385D: call 0x380249b0 */ /* not lifted */
    546     RECOMP_FLAGS_IN();
    547     PUSH32(esp, ebx); /* 0x38023862: push ebx */
    548     eax = ebp + (-0x8); /* 0x38023863: lea eax, [ebp - 8] */
    549     PUSH32(esp, eax); /* 0x38023866: push eax */
    550     ecx = esi; /* 0x38023867: mov ecx, esi */
    551     RECOMP_ICALL(0x3801ACB0u); /* 0x38023869: call 0x3801acb0 */ /* not lifted */
    552     RECOMP_FLAGS_IN();
    553     eax = MEM32(ebp + (-0x4)); /* 0x3802386E: mov eax, dword ptr [ebp - 4] */
    554     /* cmp eax, edi */ /* 0x38023871: cmp eax, edi */
    555     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    557     _flag_k = FK_CMP;
    558     RECOMP_BACKEDGE();
    559     if (CMP_NE(_flag_a, _flag_b)) goto L_38023858; /* 0x38023873: jne 0x38023858 */
    560 L_38023875:
    561     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    562     ebx = 0; /* 0x38023875: xor ebx, ebx */
    563     _cf = 0;
    564     _flag_k = FK_TEST;
    565 L_38023877:
    566     ecx = MEM32(esi + 0x4); /* 0x38023877: mov ecx, dword ptr [esi + 4] */
    567     PUSH32(esp, ecx); /* 0x3802387A: push ecx */
    568     RECOMP_ICALL(0x3804B4F6u); /* 0x3802387B: call 0x3804b4f6 */ /* not lifted */
    569     RECOMP_FLAGS_IN();
    570     edx = MEM32(esi + 0x8); /* 0x38023880: mov edx, dword ptr [esi + 8] */
    571     PUSH32(esp, edx); /* 0x38023883: push edx */
    572     MEM32(esi + 0x4) = ebx; /* 0x38023884: mov dword ptr [esi + 4], ebx */
    573     MEM32(esi + 0x10) = ebx; /* 0x38023887: mov dword ptr [esi + 0x10], ebx */
    574     RECOMP_ICALL(0x3804B4F6u); /* 0x3802388A: call 0x3804b4f6 */ /* not lifted */
    575     RECOMP_FLAGS_IN();
    576     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    577     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    578     esp = esp + 8; /* 0x3802388F: add esp, 8 */
    579     _flag_k = FK_ADD;
    580     edi = POP32_VAL(esp); /* 0x38023892: pop edi */
    581     MEM32(esi + 0x8) = ebx; /* 0x38023893: mov dword ptr [esi + 8], ebx */
    582     esi = POP32_VAL(esp); /* 0x38023896: pop esi */
    583     ebx = POP32_VAL(esp); /* 0x38023897: pop ebx */
    584     esp = ebp; /* 0x38023898: mov esp, ebp */
    585     ebp = POP32_VAL(esp); /* 0x3802389A: pop ebp */
    586     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802389B: ret  */
    587     RECOMP_REGS_OUT();
    588 }
    589 
    590 void sub_380237E0(void) {
    591     int _fpu_cmp = 0;
    592     uint32_t _cf = 0;
    593     int _df = 1;
    594     uint32_t _flag_k = FK_NONE;
    595     uint32_t _flag_a = 0, _flag_b = 0;
    596     uint32_t _itail_tgt = 0;
    597     RECOMP_REGS_LOCALS
    598     RECOMP_ENTER(0x380237E0u);
    599 
    600 L_380237E0:
    601     PUSH32(esp, ebp); /* 0x380237E0: push ebp */
    602     ebp = esp; /* 0x380237E1: mov ebp, esp */
    603     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    605     esp = esp - 8; /* 0x380237E3: sub esp, 8 */
    606     _flag_k = FK_CMP;
    607     PUSH32(esp, ebx); /* 0x380237E6: push ebx */
    608     PUSH32(esp, esi); /* 0x380237E7: push esi */
    609     esi = ecx; /* 0x380237E8: mov esi, ecx */
    610     eax = MEM32(esi + 0x1C); /* 0x380237EA: mov eax, dword ptr [esi + 0x1c] */
    611     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    612     ebx = 0; /* 0x380237ED: xor ebx, ebx */
    613     _cf = 0;
    614     _flag_k = FK_TEST;
    615     /* cmp eax, ebx */ /* 0x380237EF: cmp eax, ebx */
    616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    618     _flag_k = FK_CMP;
    619     PUSH32(esp, edi); /* 0x380237F1: push edi */
    620     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023810; /* 0x380237F2: je 0x38023810 */
    621 L_380237F4:
    622     ecx = eax + (-0x1); /* 0x380237F4: lea ecx, [eax - 1] */
    623     SET_LO8(eax, MEM8(ecx)); /* 0x380237F7: mov al, byte ptr [ecx] */
    624     /* test LO8(eax), LO8(eax) */ /* 0x380237F9: test al, al */
    625     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    626     _cf = 0;
    627     _flag_k = FK_NARROW(FK_TEST, 24);
    628     if (TEST_Z(_flag_a, _flag_b)) goto L_38023807; /* 0x380237FB: je 0x38023807 */
    629 L_380237FD:
    630     /* cmp LO8(eax), 0xFFu */ /* 0x380237FD: cmp al, 0xff */
    631     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
    632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    633     _flag_k = FK_NARROW(FK_CMP, 24);
    634     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023807; /* 0x380237FF: je 0x38023807 */
    635 L_38023801:
    636     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    637     SET_LO8(eax, LO8(eax) - 1); /* 0x38023801: dec al */
    638     _flag_k = FK_NARROW(FK_DEC, 24);
    639     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x38023803: mov byte ptr [ecx], al */
    640     goto L_38023810; /* 0x38023805: jmp 0x38023810 */
    641 L_38023807:
    642     PUSH32(esp, ecx); /* 0x38023807: push ecx */
    643     RECOMP_ICALL(0x3804B4F6u); /* 0x38023808: call 0x3804b4f6 */ /* not lifted */
    644     RECOMP_FLAGS_IN();
    645     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    646     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    647     esp = esp + 4; /* 0x3802380D: add esp, 4 */
    648     _flag_k = FK_ADD;
    649 L_38023810:
    650     MEM32(esi + 0x1C) = ebx; /* 0x38023810: mov dword ptr [esi + 0x1c], ebx */
    651     MEM32(esi + 0x20) = ebx; /* 0x38023813: mov dword ptr [esi + 0x20], ebx */
    652     MEM32(esi + 0x24) = ebx; /* 0x38023816: mov dword ptr [esi + 0x24], ebx */
    653     edi = MEM32(esi + 0x4); /* 0x38023819: mov edi, dword ptr [esi + 4] */
    654     /* cmp MEM32(esi + 0x10), ebx */ /* 0x3802381C: cmp dword ptr [esi + 0x10], ebx */
    655     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx);
    656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    657     _flag_k = FK_CMP;
    658     eax = MEM32(edi); /* 0x3802381F: mov eax, dword ptr [edi] */
    659     MEM32(ebp + (-0x4)) = eax; /* 0x38023821: mov dword ptr [ebp - 4], eax */
    660     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023854; /* 0x38023824: je 0x38023854 */
    661 L_38023826:
    662     ecx = eax; /* 0x38023826: mov ecx, eax */
    663     /* cmp eax, ecx */ /* 0x38023828: cmp eax, ecx */
    664     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    666     _flag_k = FK_CMP;
    667     if (CMP_NE(_flag_a, _flag_b)) goto L_38023854; /* 0x3802382A: jne 0x38023854 */
    668 L_3802382C:
    669     /* cmp edi, edi */ /* 0x3802382C: cmp edi, edi */
    670     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    671     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    672     _flag_k = FK_CMP;
    673     if (CMP_NE(_flag_a, _flag_b)) goto L_38023854; /* 0x3802382E: jne 0x38023854 */
    674 L_38023830:
    675     eax = MEM32(edi + 0x4); /* 0x38023830: mov eax, dword ptr [edi + 4] */
    676     PUSH32(esp, eax); /* 0x38023833: push eax */
    677     ecx = esi; /* 0x38023834: mov ecx, esi */
    678     RECOMP_ICALL(0x380250D0u); /* 0x38023836: call 0x380250d0 */ /* not lifted */
    679     RECOMP_FLAGS_IN();
    680     ecx = MEM32(esi + 0x4); /* 0x3802383B: mov ecx, dword ptr [esi + 4] */
    681     edx = MEM32(esi + 0x8); /* 0x3802383E: mov edx, dword ptr [esi + 8] */
    682     MEM32(ecx + 0x4) = edx; /* 0x38023841: mov dword ptr [ecx + 4], edx */
    683     eax = MEM32(esi + 0x4); /* 0x38023844: mov eax, dword ptr [esi + 4] */
    684     MEM32(esi + 0x10) = ebx; /* 0x38023847: mov dword ptr [esi + 0x10], ebx */
    685     MEM32(eax) = eax; /* 0x3802384A: mov dword ptr [eax], eax */
    686     eax = MEM32(esi + 0x4); /* 0x3802384C: mov eax, dword ptr [esi + 4] */
    687     MEM32(eax + 0x8) = eax; /* 0x3802384F: mov dword ptr [eax + 8], eax */
    688     goto L_38023877; /* 0x38023852: jmp 0x38023877 */
    689 L_38023854:
    690     /* cmp eax, edi */ /* 0x38023854: cmp eax, edi */
    691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    693     _flag_k = FK_CMP;
    694     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023877; /* 0x38023856: je 0x38023877 */
    695 L_38023858:
    696     ecx = ebp + (-0x4); /* 0x38023858: lea ecx, [ebp - 4] */
    697     ebx = eax; /* 0x3802385B: mov ebx, eax */
    698     RECOMP_ICALL(0x380249B0u); /* 0x3802385D: call 0x380249b0 */ /* not lifted */
    699     RECOMP_FLAGS_IN();
    700     PUSH32(esp, ebx); /* 0x38023862: push ebx */
    701     eax = ebp + (-0x8); /* 0x38023863: lea eax, [ebp - 8] */
    702     PUSH32(esp, eax); /* 0x38023866: push eax */
    703     ecx = esi; /* 0x38023867: mov ecx, esi */
    704     RECOMP_ICALL(0x3801ACB0u); /* 0x38023869: call 0x3801acb0 */ /* not lifted */
    705     RECOMP_FLAGS_IN();
    706     eax = MEM32(ebp + (-0x4)); /* 0x3802386E: mov eax, dword ptr [ebp - 4] */
    707     /* cmp eax, edi */ /* 0x38023871: cmp eax, edi */
    708     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    710     _flag_k = FK_CMP;
    711     RECOMP_BACKEDGE();
    712     if (CMP_NE(_flag_a, _flag_b)) goto L_38023858; /* 0x38023873: jne 0x38023858 */
    713 L_38023875:
    714     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    715     ebx = 0; /* 0x38023875: xor ebx, ebx */
    716     _cf = 0;
    717     _flag_k = FK_TEST;
    718 L_38023877:
    719     ecx = MEM32(esi + 0x4); /* 0x38023877: mov ecx, dword ptr [esi + 4] */
    720     PUSH32(esp, ecx); /* 0x3802387A: push ecx */
    721     RECOMP_ICALL(0x3804B4F6u); /* 0x3802387B: call 0x3804b4f6 */ /* not lifted */
    722     RECOMP_FLAGS_IN();
    723     edx = MEM32(esi + 0x8); /* 0x38023880: mov edx, dword ptr [esi + 8] */
    724     PUSH32(esp, edx); /* 0x38023883: push edx */
    725     MEM32(esi + 0x4) = ebx; /* 0x38023884: mov dword ptr [esi + 4], ebx */
    726     MEM32(esi + 0x10) = ebx; /* 0x38023887: mov dword ptr [esi + 0x10], ebx */
    727     RECOMP_ICALL(0x3804B4F6u); /* 0x3802388A: call 0x3804b4f6 */ /* not lifted */
    728     RECOMP_FLAGS_IN();
    729     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    730     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    731     esp = esp + 8; /* 0x3802388F: add esp, 8 */
    732     _flag_k = FK_ADD;
    733     edi = POP32_VAL(esp); /* 0x38023892: pop edi */
    734     MEM32(esi + 0x8) = ebx; /* 0x38023893: mov dword ptr [esi + 8], ebx */
    735     esi = POP32_VAL(esp); /* 0x38023896: pop esi */
    736     ebx = POP32_VAL(esp); /* 0x38023897: pop ebx */
    737     esp = ebp; /* 0x38023898: mov esp, ebp */
    738     ebp = POP32_VAL(esp); /* 0x3802389A: pop ebp */
    739     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802389B: ret  */
    740     RECOMP_REGS_OUT();
    741 }
    742 
    743 void sub_38023810(void) {
    744     int _fpu_cmp = 0;
    745     uint32_t _cf = 0;
    746     int _df = 1;
    747     uint32_t _flag_k = FK_NONE;
    748     uint32_t _flag_a = 0, _flag_b = 0;
    749     uint32_t _itail_tgt = 0;
    750     RECOMP_REGS_LOCALS
    751     RECOMP_ENTER(0x38023810u);
    752 
    753 L_38023810:
    754     MEM32(esi + 0x1C) = ebx; /* 0x38023810: mov dword ptr [esi + 0x1c], ebx */
    755     MEM32(esi + 0x20) = ebx; /* 0x38023813: mov dword ptr [esi + 0x20], ebx */
    756     MEM32(esi + 0x24) = ebx; /* 0x38023816: mov dword ptr [esi + 0x24], ebx */
    757     edi = MEM32(esi + 0x4); /* 0x38023819: mov edi, dword ptr [esi + 4] */
    758     /* cmp MEM32(esi + 0x10), ebx */ /* 0x3802381C: cmp dword ptr [esi + 0x10], ebx */
    759     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx);
    760     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    761     _flag_k = FK_CMP;
    762     eax = MEM32(edi); /* 0x3802381F: mov eax, dword ptr [edi] */
    763     MEM32(ebp + (-0x4)) = eax; /* 0x38023821: mov dword ptr [ebp - 4], eax */
    764     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023854; /* 0x38023824: je 0x38023854 */
    765 L_38023826:
    766     ecx = eax; /* 0x38023826: mov ecx, eax */
    767     /* cmp eax, ecx */ /* 0x38023828: cmp eax, ecx */
    768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    770     _flag_k = FK_CMP;
    771     if (CMP_NE(_flag_a, _flag_b)) goto L_38023854; /* 0x3802382A: jne 0x38023854 */
    772 L_3802382C:
    773     /* cmp edi, edi */ /* 0x3802382C: cmp edi, edi */
    774     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    775     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    776     _flag_k = FK_CMP;
    777     if (CMP_NE(_flag_a, _flag_b)) goto L_38023854; /* 0x3802382E: jne 0x38023854 */
    778 L_38023830:
    779     eax = MEM32(edi + 0x4); /* 0x38023830: mov eax, dword ptr [edi + 4] */
    780     PUSH32(esp, eax); /* 0x38023833: push eax */
    781     ecx = esi; /* 0x38023834: mov ecx, esi */
    782     RECOMP_ICALL(0x380250D0u); /* 0x38023836: call 0x380250d0 */ /* not lifted */
    783     RECOMP_FLAGS_IN();
    784     ecx = MEM32(esi + 0x4); /* 0x3802383B: mov ecx, dword ptr [esi + 4] */
    785     edx = MEM32(esi + 0x8); /* 0x3802383E: mov edx, dword ptr [esi + 8] */
    786     MEM32(ecx + 0x4) = edx; /* 0x38023841: mov dword ptr [ecx + 4], edx */
    787     eax = MEM32(esi + 0x4); /* 0x38023844: mov eax, dword ptr [esi + 4] */
    788     MEM32(esi + 0x10) = ebx; /* 0x38023847: mov dword ptr [esi + 0x10], ebx */
    789     MEM32(eax) = eax; /* 0x3802384A: mov dword ptr [eax], eax */
    790     eax = MEM32(esi + 0x4); /* 0x3802384C: mov eax, dword ptr [esi + 4] */
    791     MEM32(eax + 0x8) = eax; /* 0x3802384F: mov dword ptr [eax + 8], eax */
    792     goto L_38023877; /* 0x38023852: jmp 0x38023877 */
    793 L_38023854:
    794     /* cmp eax, edi */ /* 0x38023854: cmp eax, edi */
    795     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    796     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    797     _flag_k = FK_CMP;
    798     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023877; /* 0x38023856: je 0x38023877 */
    799 L_38023858:
    800     ecx = ebp + (-0x4); /* 0x38023858: lea ecx, [ebp - 4] */
    801     ebx = eax; /* 0x3802385B: mov ebx, eax */
    802     RECOMP_ICALL(0x380249B0u); /* 0x3802385D: call 0x380249b0 */ /* not lifted */
    803     RECOMP_FLAGS_IN();
    804     PUSH32(esp, ebx); /* 0x38023862: push ebx */
    805     eax = ebp + (-0x8); /* 0x38023863: lea eax, [ebp - 8] */
    806     PUSH32(esp, eax); /* 0x38023866: push eax */
    807     ecx = esi; /* 0x38023867: mov ecx, esi */
    808     RECOMP_ICALL(0x3801ACB0u); /* 0x38023869: call 0x3801acb0 */ /* not lifted */
    809     RECOMP_FLAGS_IN();
    810     eax = MEM32(ebp + (-0x4)); /* 0x3802386E: mov eax, dword ptr [ebp - 4] */
    811     /* cmp eax, edi */ /* 0x38023871: cmp eax, edi */
    812     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    814     _flag_k = FK_CMP;
    815     RECOMP_BACKEDGE();
    816     if (CMP_NE(_flag_a, _flag_b)) goto L_38023858; /* 0x38023873: jne 0x38023858 */
    817 L_38023875:
    818     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    819     ebx = 0; /* 0x38023875: xor ebx, ebx */
    820     _cf = 0;
    821     _flag_k = FK_TEST;
    822 L_38023877:
    823     ecx = MEM32(esi + 0x4); /* 0x38023877: mov ecx, dword ptr [esi + 4] */
    824     PUSH32(esp, ecx); /* 0x3802387A: push ecx */
    825     RECOMP_ICALL(0x3804B4F6u); /* 0x3802387B: call 0x3804b4f6 */ /* not lifted */
    826     RECOMP_FLAGS_IN();
    827     edx = MEM32(esi + 0x8); /* 0x38023880: mov edx, dword ptr [esi + 8] */
    828     PUSH32(esp, edx); /* 0x38023883: push edx */
    829     MEM32(esi + 0x4) = ebx; /* 0x38023884: mov dword ptr [esi + 4], ebx */
    830     MEM32(esi + 0x10) = ebx; /* 0x38023887: mov dword ptr [esi + 0x10], ebx */
    831     RECOMP_ICALL(0x3804B4F6u); /* 0x3802388A: call 0x3804b4f6 */ /* not lifted */
    832     RECOMP_FLAGS_IN();
    833     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    834     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    835     esp = esp + 8; /* 0x3802388F: add esp, 8 */
    836     _flag_k = FK_ADD;
    837     edi = POP32_VAL(esp); /* 0x38023892: pop edi */
    838     MEM32(esi + 0x8) = ebx; /* 0x38023893: mov dword ptr [esi + 8], ebx */
    839     esi = POP32_VAL(esp); /* 0x38023896: pop esi */
    840     ebx = POP32_VAL(esp); /* 0x38023897: pop ebx */
    841     esp = ebp; /* 0x38023898: mov esp, ebp */
    842     ebp = POP32_VAL(esp); /* 0x3802389A: pop ebp */
    843     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802389B: ret  */
    844     RECOMP_REGS_OUT();
    845 }
    846 
    847 void sub_38023877(void) {
    848     int _fpu_cmp = 0;
    849     uint32_t _cf = 0;
    850     int _df = 1;
    851     uint32_t _flag_k = FK_NONE;
    852     uint32_t _flag_a = 0, _flag_b = 0;
    853     uint32_t _itail_tgt = 0;
    854     RECOMP_REGS_LOCALS
    855     RECOMP_ENTER(0x38023877u);
    856 
    857 L_38023877:
    858     ecx = MEM32(esi + 0x4); /* 0x38023877: mov ecx, dword ptr [esi + 4] */
    859     PUSH32(esp, ecx); /* 0x3802387A: push ecx */
    860     RECOMP_ICALL(0x3804B4F6u); /* 0x3802387B: call 0x3804b4f6 */ /* not lifted */
    861     RECOMP_FLAGS_IN();
    862     edx = MEM32(esi + 0x8); /* 0x38023880: mov edx, dword ptr [esi + 8] */
    863     PUSH32(esp, edx); /* 0x38023883: push edx */
    864     MEM32(esi + 0x4) = ebx; /* 0x38023884: mov dword ptr [esi + 4], ebx */
    865     MEM32(esi + 0x10) = ebx; /* 0x38023887: mov dword ptr [esi + 0x10], ebx */
    866     RECOMP_ICALL(0x3804B4F6u); /* 0x3802388A: call 0x3804b4f6 */ /* not lifted */
    867     RECOMP_FLAGS_IN();
    868     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    869     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    870     esp = esp + 8; /* 0x3802388F: add esp, 8 */
    871     _flag_k = FK_ADD;
    872     edi = POP32_VAL(esp); /* 0x38023892: pop edi */
    873     MEM32(esi + 0x8) = ebx; /* 0x38023893: mov dword ptr [esi + 8], ebx */
    874     esi = POP32_VAL(esp); /* 0x38023896: pop esi */
    875     ebx = POP32_VAL(esp); /* 0x38023897: pop ebx */
    876     esp = ebp; /* 0x38023898: mov esp, ebp */
    877     ebp = POP32_VAL(esp); /* 0x3802389A: pop ebp */
    878     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802389B: ret  */
    879     RECOMP_REGS_OUT();
    880 }
    881 
    882 void sub_380238A0(void) {
    883     int _fpu_cmp = 0;
    884     uint32_t _cf = 0;
    885     int _df = 1;
    886     uint32_t _flag_k = FK_NONE;
    887     uint32_t _flag_a = 0, _flag_b = 0;
    888     uint32_t _itail_tgt = 0;
    889     RECOMP_REGS_LOCALS
    890     RECOMP_ENTER(0x380238A0u);
    891 
    892 L_380238A0:
    893     RECOMP_ICALL(0x380238B0u); /* 0x380238A0: call 0x380238b0 */ /* not lifted */
    894     RECOMP_FLAGS_IN();
    895     goto L_380238D0; /* 0x380238A5: jmp 0x380238d0 */
    896 L_380238D0:
    897     PUSH32(esp, 0x380238E0u); /* 0x380238D0: push 0x380238e0 */
    898     RECOMP_ICALL(0x3804B54Cu); /* 0x380238D5: call 0x3804b54c */ /* not lifted */
    899     RECOMP_FLAGS_IN();
    900     ecx = POP32_VAL(esp); /* 0x380238DA: pop ecx */
    901     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380238DB: ret  */
    902     RECOMP_REGS_OUT();
    903 }
    904 
    905 void sub_380238B0(void) {
    906     int _fpu_cmp = 0;
    907     uint32_t _cf = 0;
    908     int _df = 1;
    909     uint32_t _flag_k = FK_NONE;
    910     uint32_t _flag_a = 0, _flag_b = 0;
    911     uint32_t _itail_tgt = 0;
    912     RECOMP_REGS_LOCALS
    913     RECOMP_ENTER(0x380238B0u);
    914 
    915 L_380238B0:
    916     PUSH32(esp, 0); /* 0x380238B0: push 0 */
    917     PUSH32(esp, 0x3806C5E4u); /* 0x380238B2: push 0x3806c5e4 */
    918     ecx = 0x3806ECD0u; /* 0x380238B7: mov ecx, 0x3806ecd0 */
    919     RECOMP_ICALL(0x380235A0u); /* 0x380238BC: call 0x380235a0 */ /* not lifted */
    920     RECOMP_FLAGS_IN();
    921     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380238C1: ret  */
    922     RECOMP_REGS_OUT();
    923 }
    924 
    925 void sub_380238D0(void) {
    926     int _fpu_cmp = 0;
    927     uint32_t _cf = 0;
    928     int _df = 1;
    929     uint32_t _flag_k = FK_NONE;
    930     uint32_t _flag_a = 0, _flag_b = 0;
    931     uint32_t _itail_tgt = 0;
    932     RECOMP_REGS_LOCALS
    933     RECOMP_ENTER(0x380238D0u);
    934 
    935 L_380238D0:
    936     PUSH32(esp, 0x380238E0u); /* 0x380238D0: push 0x380238e0 */
    937     RECOMP_ICALL(0x3804B54Cu); /* 0x380238D5: call 0x3804b54c */ /* not lifted */
    938     RECOMP_FLAGS_IN();
    939     ecx = POP32_VAL(esp); /* 0x380238DA: pop ecx */
    940     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380238DB: ret  */
    941     RECOMP_REGS_OUT();
    942 }
    943 
    944 void sub_380238E0(void) {
    945     int _fpu_cmp = 0;
    946     uint32_t _cf = 0;
    947     int _df = 1;
    948     uint32_t _flag_k = FK_NONE;
    949     uint32_t _flag_a = 0, _flag_b = 0;
    950     uint32_t _itail_tgt = 0;
    951     RECOMP_REGS_LOCALS
    952     RECOMP_ENTER(0x380238E0u);
    953 
    954     goto L_380238E0;
    955 L_380237E0:
    956     PUSH32(esp, ebp); /* 0x380237E0: push ebp */
    957     ebp = esp; /* 0x380237E1: mov ebp, esp */
    958     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    959     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    960     esp = esp - 8; /* 0x380237E3: sub esp, 8 */
    961     _flag_k = FK_CMP;
    962     PUSH32(esp, ebx); /* 0x380237E6: push ebx */
    963     PUSH32(esp, esi); /* 0x380237E7: push esi */
    964     esi = ecx; /* 0x380237E8: mov esi, ecx */
    965     eax = MEM32(esi + 0x1C); /* 0x380237EA: mov eax, dword ptr [esi + 0x1c] */
    966     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    967     ebx = 0; /* 0x380237ED: xor ebx, ebx */
    968     _cf = 0;
    969     _flag_k = FK_TEST;
    970     /* cmp eax, ebx */ /* 0x380237EF: cmp eax, ebx */
    971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    973     _flag_k = FK_CMP;
    974     PUSH32(esp, edi); /* 0x380237F1: push edi */
    975     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023810; /* 0x380237F2: je 0x38023810 */
    976 L_380237F4:
    977     ecx = eax + (-0x1); /* 0x380237F4: lea ecx, [eax - 1] */
    978     SET_LO8(eax, MEM8(ecx)); /* 0x380237F7: mov al, byte ptr [ecx] */
    979     /* test LO8(eax), LO8(eax) */ /* 0x380237F9: test al, al */
    980     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    981     _cf = 0;
    982     _flag_k = FK_NARROW(FK_TEST, 24);
    983     if (TEST_Z(_flag_a, _flag_b)) goto L_38023807; /* 0x380237FB: je 0x38023807 */
    984 L_380237FD:
    985     /* cmp LO8(eax), 0xFFu */ /* 0x380237FD: cmp al, 0xff */
    986     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
    987     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    988     _flag_k = FK_NARROW(FK_CMP, 24);
    989     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023807; /* 0x380237FF: je 0x38023807 */
    990 L_38023801:
    991     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    992     SET_LO8(eax, LO8(eax) - 1); /* 0x38023801: dec al */
    993     _flag_k = FK_NARROW(FK_DEC, 24);
    994     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x38023803: mov byte ptr [ecx], al */
    995     goto L_38023810; /* 0x38023805: jmp 0x38023810 */
    996 L_38023807:
    997     PUSH32(esp, ecx); /* 0x38023807: push ecx */
    998     RECOMP_ICALL(0x3804B4F6u); /* 0x38023808: call 0x3804b4f6 */ /* not lifted */
    999     RECOMP_FLAGS_IN();
   1000     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1001     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1002     esp = esp + 4; /* 0x3802380D: add esp, 4 */
   1003     _flag_k = FK_ADD;
   1004 L_38023810:
   1005     MEM32(esi + 0x1C) = ebx; /* 0x38023810: mov dword ptr [esi + 0x1c], ebx */
   1006     MEM32(esi + 0x20) = ebx; /* 0x38023813: mov dword ptr [esi + 0x20], ebx */
   1007     MEM32(esi + 0x24) = ebx; /* 0x38023816: mov dword ptr [esi + 0x24], ebx */
   1008     edi = MEM32(esi + 0x4); /* 0x38023819: mov edi, dword ptr [esi + 4] */
   1009     /* cmp MEM32(esi + 0x10), ebx */ /* 0x3802381C: cmp dword ptr [esi + 0x10], ebx */
   1010     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx);
   1011     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1012     _flag_k = FK_CMP;
   1013     eax = MEM32(edi); /* 0x3802381F: mov eax, dword ptr [edi] */
   1014     MEM32(ebp + (-0x4)) = eax; /* 0x38023821: mov dword ptr [ebp - 4], eax */
   1015     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023854; /* 0x38023824: je 0x38023854 */
   1016 L_38023826:
   1017     ecx = eax; /* 0x38023826: mov ecx, eax */
   1018     /* cmp eax, ecx */ /* 0x38023828: cmp eax, ecx */
   1019     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1021     _flag_k = FK_CMP;
   1022     if (CMP_NE(_flag_a, _flag_b)) goto L_38023854; /* 0x3802382A: jne 0x38023854 */
   1023 L_3802382C:
   1024     /* cmp edi, edi */ /* 0x3802382C: cmp edi, edi */
   1025     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1027     _flag_k = FK_CMP;
   1028     if (CMP_NE(_flag_a, _flag_b)) goto L_38023854; /* 0x3802382E: jne 0x38023854 */
   1029 L_38023830:
   1030     eax = MEM32(edi + 0x4); /* 0x38023830: mov eax, dword ptr [edi + 4] */
   1031     PUSH32(esp, eax); /* 0x38023833: push eax */
   1032     ecx = esi; /* 0x38023834: mov ecx, esi */
   1033     RECOMP_ICALL(0x380250D0u); /* 0x38023836: call 0x380250d0 */ /* not lifted */
   1034     RECOMP_FLAGS_IN();
   1035     ecx = MEM32(esi + 0x4); /* 0x3802383B: mov ecx, dword ptr [esi + 4] */
   1036     edx = MEM32(esi + 0x8); /* 0x3802383E: mov edx, dword ptr [esi + 8] */
   1037     MEM32(ecx + 0x4) = edx; /* 0x38023841: mov dword ptr [ecx + 4], edx */
   1038     eax = MEM32(esi + 0x4); /* 0x38023844: mov eax, dword ptr [esi + 4] */
   1039     MEM32(esi + 0x10) = ebx; /* 0x38023847: mov dword ptr [esi + 0x10], ebx */
   1040     MEM32(eax) = eax; /* 0x3802384A: mov dword ptr [eax], eax */
   1041     eax = MEM32(esi + 0x4); /* 0x3802384C: mov eax, dword ptr [esi + 4] */
   1042     MEM32(eax + 0x8) = eax; /* 0x3802384F: mov dword ptr [eax + 8], eax */
   1043     goto L_38023877; /* 0x38023852: jmp 0x38023877 */
   1044 L_38023854:
   1045     /* cmp eax, edi */ /* 0x38023854: cmp eax, edi */
   1046     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1048     _flag_k = FK_CMP;
   1049     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023877; /* 0x38023856: je 0x38023877 */
   1050 L_38023858:
   1051     ecx = ebp + (-0x4); /* 0x38023858: lea ecx, [ebp - 4] */
   1052     ebx = eax; /* 0x3802385B: mov ebx, eax */
   1053     RECOMP_ICALL(0x380249B0u); /* 0x3802385D: call 0x380249b0 */ /* not lifted */
   1054     RECOMP_FLAGS_IN();
   1055     PUSH32(esp, ebx); /* 0x38023862: push ebx */
   1056     eax = ebp + (-0x8); /* 0x38023863: lea eax, [ebp - 8] */
   1057     PUSH32(esp, eax); /* 0x38023866: push eax */
   1058     ecx = esi; /* 0x38023867: mov ecx, esi */
   1059     RECOMP_ICALL(0x3801ACB0u); /* 0x38023869: call 0x3801acb0 */ /* not lifted */
   1060     RECOMP_FLAGS_IN();
   1061     eax = MEM32(ebp + (-0x4)); /* 0x3802386E: mov eax, dword ptr [ebp - 4] */
   1062     /* cmp eax, edi */ /* 0x38023871: cmp eax, edi */
   1063     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1065     _flag_k = FK_CMP;
   1066     RECOMP_BACKEDGE();
   1067     if (CMP_NE(_flag_a, _flag_b)) goto L_38023858; /* 0x38023873: jne 0x38023858 */
   1068 L_38023875:
   1069     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1070     ebx = 0; /* 0x38023875: xor ebx, ebx */
   1071     _cf = 0;
   1072     _flag_k = FK_TEST;
   1073 L_38023877:
   1074     ecx = MEM32(esi + 0x4); /* 0x38023877: mov ecx, dword ptr [esi + 4] */
   1075     PUSH32(esp, ecx); /* 0x3802387A: push ecx */
   1076     RECOMP_ICALL(0x3804B4F6u); /* 0x3802387B: call 0x3804b4f6 */ /* not lifted */
   1077     RECOMP_FLAGS_IN();
   1078     edx = MEM32(esi + 0x8); /* 0x38023880: mov edx, dword ptr [esi + 8] */
   1079     PUSH32(esp, edx); /* 0x38023883: push edx */
   1080     MEM32(esi + 0x4) = ebx; /* 0x38023884: mov dword ptr [esi + 4], ebx */
   1081     MEM32(esi + 0x10) = ebx; /* 0x38023887: mov dword ptr [esi + 0x10], ebx */
   1082     RECOMP_ICALL(0x3804B4F6u); /* 0x3802388A: call 0x3804b4f6 */ /* not lifted */
   1083     RECOMP_FLAGS_IN();
   1084     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1085     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1086     esp = esp + 8; /* 0x3802388F: add esp, 8 */
   1087     _flag_k = FK_ADD;
   1088     edi = POP32_VAL(esp); /* 0x38023892: pop edi */
   1089     MEM32(esi + 0x8) = ebx; /* 0x38023893: mov dword ptr [esi + 8], ebx */
   1090     esi = POP32_VAL(esp); /* 0x38023896: pop esi */
   1091     ebx = POP32_VAL(esp); /* 0x38023897: pop ebx */
   1092     esp = ebp; /* 0x38023898: mov esp, ebp */
   1093     ebp = POP32_VAL(esp); /* 0x3802389A: pop ebp */
   1094     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802389B: ret  */
   1095 L_380238E0:
   1096     ecx = 0x3806ECD0u; /* 0x380238E0: mov ecx, 0x3806ecd0 */
   1097     RECOMP_BACKEDGE();
   1098     goto L_380237E0; /* 0x380238E5: jmp 0x380237e0 */
   1099     { RECOMP_REGS_OUT(); return; } /* end of function */
   1100     RECOMP_REGS_OUT();
   1101 }
   1102 
   1103 void sub_380238F0(void) {
   1104     int _fpu_cmp = 0;
   1105     uint32_t _cf = 0;
   1106     int _df = 1;
   1107     uint32_t _flag_k = FK_NONE;
   1108     uint32_t _flag_a = 0, _flag_b = 0;
   1109     uint32_t _itail_tgt = 0;
   1110     RECOMP_REGS_LOCALS
   1111     RECOMP_ENTER(0x380238F0u);
   1112 
   1113 L_380238F0:
   1114     PUSH32(esp, ebp); /* 0x380238F0: push ebp */
   1115     ebp = esp; /* 0x380238F1: mov ebp, esp */
   1116     PUSH32(esp, 0xFFFFFFFFu); /* 0x380238F3: push -1 */
   1117     PUSH32(esp, 0x3804C4EBu); /* 0x380238F5: push 0x3804c4eb */
   1118     eax = MEM32(FS_BASE + (0)); /* 0x380238FA: mov eax, dword ptr fs:[0] */
   1119     PUSH32(esp, eax); /* 0x38023900: push eax */
   1120     MEM32(FS_BASE + (0)) = esp; /* 0x38023901: mov dword ptr fs:[0], esp */
   1121     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1123     esp = esp - 8; /* 0x38023908: sub esp, 8 */
   1124     _flag_k = FK_CMP;
   1125     SET_LO8(eax, MEM8(0x3806ECC8)); /* 0x3802390B: mov al, byte ptr [0x3806ecc8] */
   1126     /* test LO8(eax), 1 */ /* 0x38023910: test al, 1 */
   1127     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1128     _cf = 0;
   1129     _flag_k = FK_NARROW(FK_TEST, 24);
   1130     if (TEST_NZ(_flag_a, _flag_b)) goto L_380239C4; /* 0x38023912: jne 0x380239c4 */
   1131 L_38023918:
   1132     PUSH32(esp, ebx); /* 0x38023918: push ebx */
   1133     SET_LO8(ebx, LO8(eax)); /* 0x38023919: mov bl, al */
   1134     PUSH32(esp, esi); /* 0x3802391B: push esi */
   1135     _flag_a = (uint32_t)((LO8(ebx) | 1)) << 24; _flag_b = (uint32_t)((LO8(ebx) | 1)) << 24;
   1136     SET_LO8(ebx, LO8(ebx) | 1); /* 0x3802391C: or bl, 1 */
   1137     _cf = 0;
   1138     _flag_k = FK_NARROW(FK_TEST, 24);
   1139     PUSH32(esp, 0x14u); /* 0x3802391F: push 0x14 */
   1140     MEM8(0x3806ECC8) = (uint8_t)(LO8(ebx)); /* 0x38023921: mov byte ptr [0x3806ecc8], bl */
   1141     RECOMP_ICALL(0x3804B676u); /* 0x38023927: call 0x3804b676 */ /* not lifted */
   1142     RECOMP_FLAGS_IN();
   1143     esi = eax; /* 0x3802392C: mov esi, eax */
   1144     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1145     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1146     esp = esp + 4; /* 0x3802392E: add esp, 4 */
   1147     _flag_k = FK_ADD;
   1148     MEM32(ebp + (-0x14)) = esi; /* 0x38023931: mov dword ptr [ebp - 0x14], esi */
   1149     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1150     ebx = 0; /* 0x38023934: xor ebx, ebx */
   1151     _cf = 0;
   1152     _flag_k = FK_TEST;
   1153     /* cmp esi, ebx */ /* 0x38023936: cmp esi, ebx */
   1154     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1156     _flag_k = FK_CMP;
   1157     MEM32(ebp + (-0x4)) = ebx; /* 0x38023938: mov dword ptr [ebp - 4], ebx */
   1158     if (CMP_EQ(_flag_a, _flag_b)) goto L_380239AB; /* 0x3802393B: je 0x380239ab */
   1159 L_3802393D:
   1160     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3802393D: mov al, byte ptr [ebp - 0xd] */
   1161     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x38023940: mov cl, byte ptr [ebp - 0xd] */
   1162     PUSH32(esp, edi); /* 0x38023943: push edi */
   1163     PUSH32(esp, 0x18u); /* 0x38023944: push 0x18 */
   1164     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x38023946: mov byte ptr [esi], al */
   1165     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x38023948: mov byte ptr [esi + 1], cl */
   1166     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3802394B: mov byte ptr [esi + 0xc], bl */
   1167     RECOMP_ICALL(0x3804B676u); /* 0x3802394E: call 0x3804b676 */ /* not lifted */
   1168     RECOMP_FLAGS_IN();
   1169     MEM32(eax + 0x4) = ebx; /* 0x38023953: mov dword ptr [eax + 4], ebx */
   1170     MEM8(eax + 0x14) = (uint8_t)(1); /* 0x38023956: mov byte ptr [eax + 0x14], 1 */
   1171     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3802395A: mov byte ptr [eax + 0x15], bl */
   1172     MEM32(esi + 0x8) = eax; /* 0x3802395D: mov dword ptr [esi + 8], eax */
   1173     MEM8(eax + 0x15) = (uint8_t)(1); /* 0x38023960: mov byte ptr [eax + 0x15], 1 */
   1174     edx = MEM32(esi + 0x8); /* 0x38023964: mov edx, dword ptr [esi + 8] */
   1175     MEM32(edx) = ebx; /* 0x38023967: mov dword ptr [edx], ebx */
   1176     eax = MEM32(esi + 0x8); /* 0x38023969: mov eax, dword ptr [esi + 8] */
   1177     MEM32(eax + 0x8) = ebx; /* 0x3802396C: mov dword ptr [eax + 8], ebx */
   1178     edi = MEM32(esi + 0x8); /* 0x3802396F: mov edi, dword ptr [esi + 8] */
   1179     PUSH32(esp, 0x18u); /* 0x38023972: push 0x18 */
   1180     RECOMP_ICALL(0x3804B676u); /* 0x38023974: call 0x3804b676 */ /* not lifted */
   1181     RECOMP_FLAGS_IN();
   1182     MEM32(eax + 0x4) = edi; /* 0x38023979: mov dword ptr [eax + 4], edi */
   1183     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3802397C: mov byte ptr [eax + 0x14], bl */
   1184     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3802397F: mov byte ptr [eax + 0x15], bl */
   1185     MEM32(esi + 0x4) = eax; /* 0x38023982: mov dword ptr [esi + 4], eax */
   1186     MEM32(eax) = eax; /* 0x38023985: mov dword ptr [eax], eax */
   1187     eax = MEM32(esi + 0x4); /* 0x38023987: mov eax, dword ptr [esi + 4] */
   1188     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1190     esp = esp + 8; /* 0x3802398A: add esp, 8 */
   1191     _flag_k = FK_ADD;
   1192     MEM32(eax + 0x8) = eax; /* 0x3802398D: mov dword ptr [eax + 8], eax */
   1193     MEM32(esi + 0x10) = ebx; /* 0x38023990: mov dword ptr [esi + 0x10], ebx */
   1194     edi = POP32_VAL(esp); /* 0x38023993: pop edi */
   1195     eax = esi; /* 0x38023994: mov eax, esi */
   1196     esi = POP32_VAL(esp); /* 0x38023996: pop esi */
   1197     MEM32(0x3806ECC4) = eax; /* 0x38023997: mov dword ptr [0x3806ecc4], eax */
   1198     ebx = POP32_VAL(esp); /* 0x3802399C: pop ebx */
   1199     ecx = MEM32(ebp + (-0xC)); /* 0x3802399D: mov ecx, dword ptr [ebp - 0xc] */
   1200     MEM32(FS_BASE + (0)) = ecx; /* 0x380239A0: mov dword ptr fs:[0], ecx */
   1201     esp = ebp; /* 0x380239A7: mov esp, ebp */
   1202     ebp = POP32_VAL(esp); /* 0x380239A9: pop ebp */
   1203     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380239AA: ret  */
   1204 L_380239AB:
   1205     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1206     esi = 0; /* 0x380239AB: xor esi, esi */
   1207     _cf = 0;
   1208     _flag_k = FK_TEST;
   1209     eax = esi; /* 0x380239AD: mov eax, esi */
   1210     esi = POP32_VAL(esp); /* 0x380239AF: pop esi */
   1211     MEM32(0x3806ECC4) = eax; /* 0x380239B0: mov dword ptr [0x3806ecc4], eax */
   1212     ebx = POP32_VAL(esp); /* 0x380239B5: pop ebx */
   1213     ecx = MEM32(ebp + (-0xC)); /* 0x380239B6: mov ecx, dword ptr [ebp - 0xc] */
   1214     MEM32(FS_BASE + (0)) = ecx; /* 0x380239B9: mov dword ptr fs:[0], ecx */
   1215     esp = ebp; /* 0x380239C0: mov esp, ebp */
   1216     ebp = POP32_VAL(esp); /* 0x380239C2: pop ebp */
   1217     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380239C3: ret  */
   1218 L_380239C4:
   1219     ecx = MEM32(ebp + (-0xC)); /* 0x380239C4: mov ecx, dword ptr [ebp - 0xc] */
   1220     eax = MEM32(0x3806ECC4); /* 0x380239C7: mov eax, dword ptr [0x3806ecc4] */
   1221     MEM32(FS_BASE + (0)) = ecx; /* 0x380239CC: mov dword ptr fs:[0], ecx */
   1222     esp = ebp; /* 0x380239D3: mov esp, ebp */
   1223     ebp = POP32_VAL(esp); /* 0x380239D5: pop ebp */
   1224     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380239D6: ret  */
   1225     RECOMP_REGS_OUT();
   1226 }
   1227 
   1228 void sub_380239E0(void) {
   1229     int _fpu_cmp = 0;
   1230     uint32_t _cf = 0;
   1231     int _df = 1;
   1232     uint32_t _flag_k = FK_NONE;
   1233     uint32_t _flag_a = 0, _flag_b = 0;
   1234     uint32_t _itail_tgt = 0;
   1235     RECOMP_REGS_LOCALS
   1236     RECOMP_ENTER(0x380239E0u);
   1237 
   1238 L_380239E0:
   1239     PUSH32(esp, ebp); /* 0x380239E0: push ebp */
   1240     ebp = esp; /* 0x380239E1: mov ebp, esp */
   1241     PUSH32(esp, 0xFFFFFFFFu); /* 0x380239E3: push -1 */
   1242     PUSH32(esp, 0x3804C50Bu); /* 0x380239E5: push 0x3804c50b */
   1243     eax = MEM32(FS_BASE + (0)); /* 0x380239EA: mov eax, dword ptr fs:[0] */
   1244     PUSH32(esp, eax); /* 0x380239F0: push eax */
   1245     MEM32(FS_BASE + (0)) = esp; /* 0x380239F1: mov dword ptr fs:[0], esp */
   1246     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1248     esp = esp - 8; /* 0x380239F8: sub esp, 8 */
   1249     _flag_k = FK_CMP;
   1250     SET_LO8(eax, MEM8(0x3806ECC0)); /* 0x380239FB: mov al, byte ptr [0x3806ecc0] */
   1251     /* test LO8(eax), 1 */ /* 0x38023A00: test al, 1 */
   1252     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1253     _cf = 0;
   1254     _flag_k = FK_NARROW(FK_TEST, 24);
   1255     if (TEST_NZ(_flag_a, _flag_b)) goto L_38023AB4; /* 0x38023A02: jne 0x38023ab4 */
   1256 L_38023A08:
   1257     PUSH32(esp, ebx); /* 0x38023A08: push ebx */
   1258     SET_LO8(ebx, LO8(eax)); /* 0x38023A09: mov bl, al */
   1259     PUSH32(esp, esi); /* 0x38023A0B: push esi */
   1260     _flag_a = (uint32_t)((LO8(ebx) | 1)) << 24; _flag_b = (uint32_t)((LO8(ebx) | 1)) << 24;
   1261     SET_LO8(ebx, LO8(ebx) | 1); /* 0x38023A0C: or bl, 1 */
   1262     _cf = 0;
   1263     _flag_k = FK_NARROW(FK_TEST, 24);
   1264     PUSH32(esp, 0x14u); /* 0x38023A0F: push 0x14 */
   1265     MEM8(0x3806ECC0) = (uint8_t)(LO8(ebx)); /* 0x38023A11: mov byte ptr [0x3806ecc0], bl */
   1266     RECOMP_ICALL(0x3804B676u); /* 0x38023A17: call 0x3804b676 */ /* not lifted */
   1267     RECOMP_FLAGS_IN();
   1268     esi = eax; /* 0x38023A1C: mov esi, eax */
   1269     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1270     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1271     esp = esp + 4; /* 0x38023A1E: add esp, 4 */
   1272     _flag_k = FK_ADD;
   1273     MEM32(ebp + (-0x14)) = esi; /* 0x38023A21: mov dword ptr [ebp - 0x14], esi */
   1274     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1275     ebx = 0; /* 0x38023A24: xor ebx, ebx */
   1276     _cf = 0;
   1277     _flag_k = FK_TEST;
   1278     /* cmp esi, ebx */ /* 0x38023A26: cmp esi, ebx */
   1279     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1281     _flag_k = FK_CMP;
   1282     MEM32(ebp + (-0x4)) = ebx; /* 0x38023A28: mov dword ptr [ebp - 4], ebx */
   1283     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023A9B; /* 0x38023A2B: je 0x38023a9b */
   1284 L_38023A2D:
   1285     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x38023A2D: mov al, byte ptr [ebp - 0xd] */
   1286     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x38023A30: mov cl, byte ptr [ebp - 0xd] */
   1287     PUSH32(esp, edi); /* 0x38023A33: push edi */
   1288     PUSH32(esp, 0x24u); /* 0x38023A34: push 0x24 */
   1289     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x38023A36: mov byte ptr [esi], al */
   1290     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x38023A38: mov byte ptr [esi + 1], cl */
   1291     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x38023A3B: mov byte ptr [esi + 0xc], bl */
   1292     RECOMP_ICALL(0x3804B676u); /* 0x38023A3E: call 0x3804b676 */ /* not lifted */
   1293     RECOMP_FLAGS_IN();
   1294     MEM32(eax + 0x4) = ebx; /* 0x38023A43: mov dword ptr [eax + 4], ebx */
   1295     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x38023A46: mov byte ptr [eax + 0x20], 1 */
   1296     MEM8(eax + 0x21) = (uint8_t)(LO8(ebx)); /* 0x38023A4A: mov byte ptr [eax + 0x21], bl */
   1297     MEM32(esi + 0x8) = eax; /* 0x38023A4D: mov dword ptr [esi + 8], eax */
   1298     MEM8(eax + 0x21) = (uint8_t)(1); /* 0x38023A50: mov byte ptr [eax + 0x21], 1 */
   1299     edx = MEM32(esi + 0x8); /* 0x38023A54: mov edx, dword ptr [esi + 8] */
   1300     MEM32(edx) = ebx; /* 0x38023A57: mov dword ptr [edx], ebx */
   1301     eax = MEM32(esi + 0x8); /* 0x38023A59: mov eax, dword ptr [esi + 8] */
   1302     MEM32(eax + 0x8) = ebx; /* 0x38023A5C: mov dword ptr [eax + 8], ebx */
   1303     edi = MEM32(esi + 0x8); /* 0x38023A5F: mov edi, dword ptr [esi + 8] */
   1304     PUSH32(esp, 0x24u); /* 0x38023A62: push 0x24 */
   1305     RECOMP_ICALL(0x3804B676u); /* 0x38023A64: call 0x3804b676 */ /* not lifted */
   1306     RECOMP_FLAGS_IN();
   1307     MEM32(eax + 0x4) = edi; /* 0x38023A69: mov dword ptr [eax + 4], edi */
   1308     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38023A6C: mov byte ptr [eax + 0x20], bl */
   1309     MEM8(eax + 0x21) = (uint8_t)(LO8(ebx)); /* 0x38023A6F: mov byte ptr [eax + 0x21], bl */
   1310     MEM32(esi + 0x4) = eax; /* 0x38023A72: mov dword ptr [esi + 4], eax */
   1311     MEM32(eax) = eax; /* 0x38023A75: mov dword ptr [eax], eax */
   1312     eax = MEM32(esi + 0x4); /* 0x38023A77: mov eax, dword ptr [esi + 4] */
   1313     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1314     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1315     esp = esp + 8; /* 0x38023A7A: add esp, 8 */
   1316     _flag_k = FK_ADD;
   1317     MEM32(eax + 0x8) = eax; /* 0x38023A7D: mov dword ptr [eax + 8], eax */
   1318     MEM32(esi + 0x10) = ebx; /* 0x38023A80: mov dword ptr [esi + 0x10], ebx */
   1319     edi = POP32_VAL(esp); /* 0x38023A83: pop edi */
   1320     eax = esi; /* 0x38023A84: mov eax, esi */
   1321     esi = POP32_VAL(esp); /* 0x38023A86: pop esi */
   1322     MEM32(0x3806ECBC) = eax; /* 0x38023A87: mov dword ptr [0x3806ecbc], eax */
   1323     ebx = POP32_VAL(esp); /* 0x38023A8C: pop ebx */
   1324     ecx = MEM32(ebp + (-0xC)); /* 0x38023A8D: mov ecx, dword ptr [ebp - 0xc] */
   1325     MEM32(FS_BASE + (0)) = ecx; /* 0x38023A90: mov dword ptr fs:[0], ecx */
   1326     esp = ebp; /* 0x38023A97: mov esp, ebp */
   1327     ebp = POP32_VAL(esp); /* 0x38023A99: pop ebp */
   1328     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023A9A: ret  */
   1329 L_38023A9B:
   1330     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1331     esi = 0; /* 0x38023A9B: xor esi, esi */
   1332     _cf = 0;
   1333     _flag_k = FK_TEST;
   1334     eax = esi; /* 0x38023A9D: mov eax, esi */
   1335     esi = POP32_VAL(esp); /* 0x38023A9F: pop esi */
   1336     MEM32(0x3806ECBC) = eax; /* 0x38023AA0: mov dword ptr [0x3806ecbc], eax */
   1337     ebx = POP32_VAL(esp); /* 0x38023AA5: pop ebx */
   1338     ecx = MEM32(ebp + (-0xC)); /* 0x38023AA6: mov ecx, dword ptr [ebp - 0xc] */
   1339     MEM32(FS_BASE + (0)) = ecx; /* 0x38023AA9: mov dword ptr fs:[0], ecx */
   1340     esp = ebp; /* 0x38023AB0: mov esp, ebp */
   1341     ebp = POP32_VAL(esp); /* 0x38023AB2: pop ebp */
   1342     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023AB3: ret  */
   1343 L_38023AB4:
   1344     ecx = MEM32(ebp + (-0xC)); /* 0x38023AB4: mov ecx, dword ptr [ebp - 0xc] */
   1345     eax = MEM32(0x3806ECBC); /* 0x38023AB7: mov eax, dword ptr [0x3806ecbc] */
   1346     MEM32(FS_BASE + (0)) = ecx; /* 0x38023ABC: mov dword ptr fs:[0], ecx */
   1347     esp = ebp; /* 0x38023AC3: mov esp, ebp */
   1348     ebp = POP32_VAL(esp); /* 0x38023AC5: pop ebp */
   1349     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023AC6: ret  */
   1350     RECOMP_REGS_OUT();
   1351 }
   1352 
   1353 void sub_38023AD0(void) {
   1354     int _fpu_cmp = 0;
   1355     uint32_t _cf = 0;
   1356     int _df = 1;
   1357     uint32_t _flag_k = FK_NONE;
   1358     uint32_t _flag_a = 0, _flag_b = 0;
   1359     uint32_t _itail_tgt = 0;
   1360     RECOMP_REGS_LOCALS
   1361     RECOMP_ENTER(0x38023AD0u);
   1362 
   1363 L_38023AD0:
   1364     PUSH32(esp, ebp); /* 0x38023AD0: push ebp */
   1365     ebp = esp; /* 0x38023AD1: mov ebp, esp */
   1366     PUSH32(esp, 0xFFFFFFFFu); /* 0x38023AD3: push -1 */
   1367     PUSH32(esp, 0x3804C528u); /* 0x38023AD5: push 0x3804c528 */
   1368     eax = MEM32(FS_BASE + (0)); /* 0x38023ADA: mov eax, dword ptr fs:[0] */
   1369     PUSH32(esp, eax); /* 0x38023AE0: push eax */
   1370     MEM32(FS_BASE + (0)) = esp; /* 0x38023AE1: mov dword ptr fs:[0], esp */
   1371     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1373     esp = esp - 0x10u; /* 0x38023AE8: sub esp, 0x10 */
   1374     _flag_k = FK_CMP;
   1375     PUSH32(esp, ebx); /* 0x38023AEB: push ebx */
   1376     PUSH32(esp, esi); /* 0x38023AEC: push esi */
   1377     eax = ebp + (-0x1C); /* 0x38023AED: lea eax, [ebp - 0x1c] */
   1378     esi = ecx; /* 0x38023AF0: mov esi, ecx */
   1379     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1380     ebx = 0; /* 0x38023AF2: xor ebx, ebx */
   1381     _cf = 0;
   1382     _flag_k = FK_TEST;
   1383     PUSH32(esp, eax); /* 0x38023AF4: push eax */
   1384     MEM32(ebp + (-0x14)) = esi; /* 0x38023AF5: mov dword ptr [ebp - 0x14], esi */
   1385     MEM32(ebp + (-0x1C)) = ebx; /* 0x38023AF8: mov dword ptr [ebp - 0x1c], ebx */
   1386     MEM32(ebp + (-0x18)) = ebx; /* 0x38023AFB: mov dword ptr [ebp - 0x18], ebx */
   1387     RECOMP_ICALL(0x38021490u); /* 0x38023AFE: call 0x38021490 */ /* not lifted */
   1388     RECOMP_FLAGS_IN();
   1389     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x38023B03: mov byte ptr [esi + 0xc], bl */
   1390     ecx = MEM32(0x3806C5D4); /* 0x38023B06: mov ecx, dword ptr [0x3806c5d4] */
   1391     PUSH32(esp, 0x10u); /* 0x38023B0C: push 0x10 */
   1392     MEM32(ebp + (-0x4)) = ebx; /* 0x38023B0E: mov dword ptr [ebp - 4], ebx */
   1393     MEM32(esi + 0x10) = ecx; /* 0x38023B11: mov dword ptr [esi + 0x10], ecx */
   1394     MEM32(esi + 0x18) = ebx; /* 0x38023B14: mov dword ptr [esi + 0x18], ebx */
   1395     MEM32(esi + 0x1C) = ebx; /* 0x38023B17: mov dword ptr [esi + 0x1c], ebx */
   1396     MEM32(esi) = 0x3804EDD0u; /* 0x38023B1A: mov dword ptr [esi], 0x3804edd0 */
   1397     RECOMP_ICALL(0x3804B676u); /* 0x38023B20: call 0x3804b676 */ /* not lifted */
   1398     RECOMP_FLAGS_IN();
   1399     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1400     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1401     esp = esp + 4; /* 0x38023B25: add esp, 4 */
   1402     _flag_k = FK_ADD;
   1403     /* cmp eax, ebx */ /* 0x38023B28: cmp eax, ebx */
   1404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1406     _flag_k = FK_CMP;
   1407     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023B4F; /* 0x38023B2A: je 0x38023b4f */
   1408 L_38023B2C:
   1409     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x38023B2C: mov dl, byte ptr [ebp - 0xd] */
   1410     MEM32(eax + 0x4) = ebx; /* 0x38023B2F: mov dword ptr [eax + 4], ebx */
   1411     MEM32(eax + 0x8) = ebx; /* 0x38023B32: mov dword ptr [eax + 8], ebx */
   1412     MEM32(eax + 0xC) = ebx; /* 0x38023B35: mov dword ptr [eax + 0xc], ebx */
   1413     MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x38023B38: mov byte ptr [eax], dl */
   1414     MEM32(esi + 0x14) = eax; /* 0x38023B3A: mov dword ptr [esi + 0x14], eax */
   1415     eax = esi; /* 0x38023B3D: mov eax, esi */
   1416     esi = POP32_VAL(esp); /* 0x38023B3F: pop esi */
   1417     ebx = POP32_VAL(esp); /* 0x38023B40: pop ebx */
   1418     ecx = MEM32(ebp + (-0xC)); /* 0x38023B41: mov ecx, dword ptr [ebp - 0xc] */
   1419     MEM32(FS_BASE + (0)) = ecx; /* 0x38023B44: mov dword ptr fs:[0], ecx */
   1420     esp = ebp; /* 0x38023B4B: mov esp, ebp */
   1421     ebp = POP32_VAL(esp); /* 0x38023B4D: pop ebp */
   1422     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023B4E: ret  */
   1423 L_38023B4F:
   1424     ecx = MEM32(ebp + (-0xC)); /* 0x38023B4F: mov ecx, dword ptr [ebp - 0xc] */
   1425     MEM32(esi + 0x14) = ebx; /* 0x38023B52: mov dword ptr [esi + 0x14], ebx */
   1426     eax = esi; /* 0x38023B55: mov eax, esi */
   1427     esi = POP32_VAL(esp); /* 0x38023B57: pop esi */
   1428     ebx = POP32_VAL(esp); /* 0x38023B58: pop ebx */
   1429     MEM32(FS_BASE + (0)) = ecx; /* 0x38023B59: mov dword ptr fs:[0], ecx */
   1430     esp = ebp; /* 0x38023B60: mov esp, ebp */
   1431     ebp = POP32_VAL(esp); /* 0x38023B62: pop ebp */
   1432     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023B63: ret  */
   1433     RECOMP_REGS_OUT();
   1434 }
   1435 
   1436 void sub_38023B70(void) {
   1437     int _fpu_cmp = 0;
   1438     uint32_t _cf = 0;
   1439     int _df = 1;
   1440     uint32_t _flag_k = FK_NONE;
   1441     uint32_t _flag_a = 0, _flag_b = 0;
   1442     uint32_t _itail_tgt = 0;
   1443     RECOMP_REGS_LOCALS
   1444     RECOMP_ENTER(0x38023B70u);
   1445 
   1446 L_38023B70:
   1447     PUSH32(esp, ebp); /* 0x38023B70: push ebp */
   1448     ebp = esp; /* 0x38023B71: mov ebp, esp */
   1449     PUSH32(esp, 0xFFFFFFFFu); /* 0x38023B73: push -1 */
   1450     PUSH32(esp, 0x3804C553u); /* 0x38023B75: push 0x3804c553 */
   1451     eax = MEM32(FS_BASE + (0)); /* 0x38023B7A: mov eax, dword ptr fs:[0] */
   1452     PUSH32(esp, eax); /* 0x38023B80: push eax */
   1453     MEM32(FS_BASE + (0)) = esp; /* 0x38023B81: mov dword ptr fs:[0], esp */
   1454     PUSH32(esp, ecx); /* 0x38023B88: push ecx */
   1455     eax = MEM32(ebp + 0x8); /* 0x38023B89: mov eax, dword ptr [ebp + 8] */
   1456     PUSH32(esp, ebx); /* 0x38023B8C: push ebx */
   1457     PUSH32(esp, esi); /* 0x38023B8D: push esi */
   1458     PUSH32(esp, edi); /* 0x38023B8E: push edi */
   1459     edi = ecx; /* 0x38023B8F: mov edi, ecx */
   1460     PUSH32(esp, eax); /* 0x38023B91: push eax */
   1461     MEM32(ebp + (-0x10)) = edi; /* 0x38023B92: mov dword ptr [ebp - 0x10], edi */
   1462     RECOMP_ICALL(0x38021490u); /* 0x38023B95: call 0x38021490 */ /* not lifted */
   1463     RECOMP_FLAGS_IN();
   1464     esi = MEM32(ebp + 0xC); /* 0x38023B9A: mov esi, dword ptr [ebp + 0xc] */
   1465     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1466     eax = 0; /* 0x38023B9D: xor eax, eax */
   1467     _cf = 0;
   1468     _flag_k = FK_TEST;
   1469     MEM8(edi + 0xC) = (uint8_t)(1); /* 0x38023B9F: mov byte ptr [edi + 0xc], 1 */
   1470     ecx = MEM32(0x3806C5D4); /* 0x38023BA3: mov ecx, dword ptr [0x3806c5d4] */
   1471     PUSH32(esp, esi); /* 0x38023BA9: push esi */
   1472     MEM32(ebp + (-0x4)) = eax; /* 0x38023BAA: mov dword ptr [ebp - 4], eax */
   1473     MEM32(edi + 0x10) = ecx; /* 0x38023BAD: mov dword ptr [edi + 0x10], ecx */
   1474     MEM32(edi + 0x1C) = eax; /* 0x38023BB0: mov dword ptr [edi + 0x1c], eax */
   1475     MEM32(edi) = 0x3804EDD0u; /* 0x38023BB3: mov dword ptr [edi], 0x3804edd0 */
   1476     RECOMP_ICALL(0x38023F20u); /* 0x38023BB9: call 0x38023f20 */ /* not lifted */
   1477     RECOMP_FLAGS_IN();
   1478     PUSH32(esp, 0x10u); /* 0x38023BBE: push 0x10 */
   1479     MEM32(edi + 0x18) = eax; /* 0x38023BC0: mov dword ptr [edi + 0x18], eax */
   1480     RECOMP_ICALL(0x3804B676u); /* 0x38023BC3: call 0x3804b676 */ /* not lifted */
   1481     RECOMP_FLAGS_IN();
   1482     ebx = eax; /* 0x38023BC8: mov ebx, eax */
   1483     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1484     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1485     esp = esp + 8; /* 0x38023BCA: add esp, 8 */
   1486     _flag_k = FK_ADD;
   1487     MEM32(ebp + 0xC) = ebx; /* 0x38023BCD: mov dword ptr [ebp + 0xc], ebx */
   1488     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1489     eax = 0; /* 0x38023BD0: xor eax, eax */
   1490     _cf = 0;
   1491     _flag_k = FK_TEST;
   1492     /* cmp ebx, eax */ /* 0x38023BD2: cmp ebx, eax */
   1493     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   1494     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1495     _flag_k = FK_CMP;
   1496     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x38023BD4: mov byte ptr [ebp - 4], 1 */
   1497     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023D34; /* 0x38023BD8: je 0x38023d34 */
   1498 L_38023BDE:
   1499     SET_LO8(edx, MEM8(esi)); /* 0x38023BDE: mov dl, byte ptr [esi] */
   1500     MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x38023BE0: mov byte ptr [ebx], dl */
   1501     MEM32(ebx + 0x4) = eax; /* 0x38023BE2: mov dword ptr [ebx + 4], eax */
   1502     MEM32(ebx + 0x8) = eax; /* 0x38023BE5: mov dword ptr [ebx + 8], eax */
   1503     MEM32(ebx + 0xC) = eax; /* 0x38023BE8: mov dword ptr [ebx + 0xc], eax */
   1504     eax = MEM32(0x3804E07C); /* 0x38023BEB: mov eax, dword ptr [0x3804e07c] */
   1505     ecx = MEM32(esi + 0x8); /* 0x38023BF0: mov ecx, dword ptr [esi + 8] */
   1506     eax = MEM32(eax); /* 0x38023BF3: mov eax, dword ptr [eax] */
   1507     edi = ecx; /* 0x38023BF5: mov edi, ecx */
   1508     /* cmp eax, edi */ /* 0x38023BF7: cmp eax, edi */
   1509     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1511     _flag_k = FK_CMP;
   1512     MEM32(ebp + 0x8) = edi; /* 0x38023BF9: mov dword ptr [ebp + 8], edi */
   1513     if (CMP_AE(_flag_a, _flag_b)) goto L_38023C03; /* 0x38023BFC: jae 0x38023c03 */
   1514 L_38023BFE:
   1515     MEM32(ebp + 0x8) = eax; /* 0x38023BFE: mov dword ptr [ebp + 8], eax */
   1516     edi = eax; /* 0x38023C01: mov edi, eax */
   1517 L_38023C03:
   1518     /* cmp ebx, esi */ /* 0x38023C03: cmp ebx, esi */
   1519     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   1520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1521     _flag_k = FK_CMP;
   1522     if (CMP_NE(_flag_a, _flag_b)) goto L_38023C84; /* 0x38023C05: jne 0x38023c84 */
   1523 L_38023C07:
   1524     /* test edi, edi */ /* 0x38023C07: test edi, edi */
   1525     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1526     _cf = 0;
   1527     _flag_k = FK_TEST;
   1528     esi = eax; /* 0x38023C09: mov esi, eax */
   1529     if (TEST_Z(_flag_a, _flag_b)) goto L_38023C13; /* 0x38023C0B: jbe 0x38023c13 */
   1530 L_38023C0D:
   1531     RECOMP_ICALL(MEM32(0x3804E040)); /* 0x38023C0D: call dword ptr [0x3804e040] */
   1532     RECOMP_FLAGS_IN();
   1533 L_38023C13:
   1534     eax = MEM32(ebx + 0x8); /* 0x38023C13: mov eax, dword ptr [ebx + 8] */
   1535     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1537     eax = eax - edi; /* 0x38023C16: sub eax, edi */
   1538     _flag_k = FK_CMP;
   1539     /* cmp eax, esi */ /* 0x38023C18: cmp eax, esi */
   1540     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1542     _flag_k = FK_CMP;
   1543     if (CMP_AE(_flag_a, _flag_b)) goto L_38023C1E; /* 0x38023C1A: jae 0x38023c1e */
   1544 L_38023C1C:
   1545     esi = eax; /* 0x38023C1C: mov esi, eax */
   1546 L_38023C1E:
   1547     /* test esi, esi */ /* 0x38023C1E: test esi, esi */
   1548     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1549     _cf = 0;
   1550     _flag_k = FK_TEST;
   1551     if (TEST_Z(_flag_a, _flag_b)) goto L_38023D1B; /* 0x38023C20: jbe 0x38023d1b */
   1552 L_38023C26:
   1553     ecx = ebx; /* 0x38023C26: mov ecx, ebx */
   1554     RECOMP_ICALL(MEM32(0x3804E044)); /* 0x38023C28: call dword ptr [0x3804e044] */
   1555     RECOMP_FLAGS_IN();
   1556     edx = MEM32(ebx + 0x8); /* 0x38023C2E: mov edx, dword ptr [ebx + 8] */
   1557     ecx = MEM32(ebx + 0x4); /* 0x38023C31: mov ecx, dword ptr [ebx + 4] */
   1558     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   1559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1560     edx = edx - esi; /* 0x38023C34: sub edx, esi */
   1561     _flag_k = FK_CMP;
   1562     eax = ecx + edi; /* 0x38023C36: lea eax, [ecx + edi] */
   1563     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   1564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1565     edx = edx - edi; /* 0x38023C39: sub edx, edi */
   1566     _flag_k = FK_CMP;
   1567     PUSH32(esp, edx); /* 0x38023C3B: push edx */
   1568     ecx = eax + esi; /* 0x38023C3C: lea ecx, [eax + esi] */
   1569     PUSH32(esp, ecx); /* 0x38023C3F: push ecx */
   1570     PUSH32(esp, eax); /* 0x38023C40: push eax */
   1571     RECOMP_ICALL(MEM32(0x3804E0F4)); /* 0x38023C41: call dword ptr [0x3804e0f4] */
   1572     RECOMP_FLAGS_IN();
   1573     edi = MEM32(ebx + 0x8); /* 0x38023C47: mov edi, dword ptr [ebx + 8] */
   1574     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1575     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1576     esp = esp + 0xCu; /* 0x38023C4A: add esp, 0xc */
   1577     _flag_k = FK_ADD;
   1578     PUSH32(esp, 0); /* 0x38023C4D: push 0 */
   1579     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   1580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1581     edi = edi - esi; /* 0x38023C4F: sub edi, esi */
   1582     _flag_k = FK_CMP;
   1583     PUSH32(esp, edi); /* 0x38023C51: push edi */
   1584     ecx = ebx; /* 0x38023C52: mov ecx, ebx */
   1585     RECOMP_ICALL(MEM32(0x3804E024)); /* 0x38023C54: call dword ptr [0x3804e024] */
   1586     RECOMP_FLAGS_IN();
   1587     /* test LO8(eax), LO8(eax) */ /* 0x38023C5A: test al, al */
   1588     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1589     _cf = 0;
   1590     _flag_k = FK_NARROW(FK_TEST, 24);
   1591     if (TEST_Z(_flag_a, _flag_b)) goto L_38023D1B; /* 0x38023C5C: je 0x38023d1b */
   1592 L_38023C62:
   1593     PUSH32(esp, edi); /* 0x38023C62: push edi */
   1594     ecx = ebx; /* 0x38023C63: mov ecx, ebx */
   1595     RECOMP_ICALL(MEM32(0x3804E054)); /* 0x38023C65: call dword ptr [0x3804e054] */
   1596     RECOMP_FLAGS_IN();
   1597     eax = MEM32(ebp + (-0x10)); /* 0x38023C6B: mov eax, dword ptr [ebp - 0x10] */
   1598     edi = POP32_VAL(esp); /* 0x38023C6E: pop edi */
   1599     esi = POP32_VAL(esp); /* 0x38023C6F: pop esi */
   1600     MEM32(eax + 0x14) = ebx; /* 0x38023C70: mov dword ptr [eax + 0x14], ebx */
   1601     ebx = POP32_VAL(esp); /* 0x38023C73: pop ebx */
   1602     ecx = MEM32(ebp + (-0xC)); /* 0x38023C74: mov ecx, dword ptr [ebp - 0xc] */
   1603     MEM32(FS_BASE + (0)) = ecx; /* 0x38023C77: mov dword ptr fs:[0], ecx */
   1604     esp = ebp; /* 0x38023C7E: mov esp, ebp */
   1605     ebp = POP32_VAL(esp); /* 0x38023C80: pop ebp */
   1606     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38023C81: ret 8 */
   1607 L_38023C84:
   1608     /* test edi, edi */ /* 0x38023C84: test edi, edi */
   1609     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1610     _cf = 0;
   1611     _flag_k = FK_TEST;
   1612     if (TEST_Z(_flag_a, _flag_b)) goto L_38023CDF; /* 0x38023C86: jbe 0x38023cdf */
   1613 L_38023C88:
   1614     /* cmp edi, ecx */ /* 0x38023C88: cmp edi, ecx */
   1615     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   1616     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1617     _flag_k = FK_CMP;
   1618     if (CMP_NE(_flag_a, _flag_b)) goto L_38023CDF; /* 0x38023C8A: jne 0x38023cdf */
   1619 L_38023C8C:
   1620     eax = MEM32(esi + 0x4); /* 0x38023C8C: mov eax, dword ptr [esi + 4] */
   1621     /* test eax, eax */ /* 0x38023C8F: test eax, eax */
   1622     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1623     _cf = 0;
   1624     _flag_k = FK_TEST;
   1625     if (TEST_NZ(_flag_a, _flag_b)) goto L_38023C98; /* 0x38023C91: jne 0x38023c98 */
   1626 L_38023C93:
   1627     eax = MEM32(0x3804E080); /* 0x38023C93: mov eax, dword ptr [0x3804e080] */
   1628 L_38023C98:
   1629     /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x38023C98: cmp byte ptr [eax - 1], 0xfe */
   1630     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24;
   1631     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1632     _flag_k = FK_NARROW(FK_CMP, 24);
   1633     if (CMP_AE(_flag_a, _flag_b)) goto L_38023CDF; /* 0x38023C9C: jae 0x38023cdf */
   1634 L_38023C9E:
   1635     PUSH32(esp, 1); /* 0x38023C9E: push 1 */
   1636     ecx = ebx; /* 0x38023CA0: mov ecx, ebx */
   1637     RECOMP_ICALL(MEM32(0x3804E05C)); /* 0x38023CA2: call dword ptr [0x3804e05c] */
   1638     RECOMP_FLAGS_IN();
   1639     eax = MEM32(esi + 0x4); /* 0x38023CA8: mov eax, dword ptr [esi + 4] */
   1640     /* test eax, eax */ /* 0x38023CAB: test eax, eax */
   1641     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1642     _cf = 0;
   1643     _flag_k = FK_TEST;
   1644     if (TEST_NZ(_flag_a, _flag_b)) goto L_38023CB4; /* 0x38023CAD: jne 0x38023cb4 */
   1645 L_38023CAF:
   1646     eax = MEM32(0x3804E080); /* 0x38023CAF: mov eax, dword ptr [0x3804e080] */
   1647 L_38023CB4:
   1648     MEM32(ebx + 0x4) = eax; /* 0x38023CB4: mov dword ptr [ebx + 4], eax */
   1649     edx = MEM32(esi + 0x8); /* 0x38023CB7: mov edx, dword ptr [esi + 8] */
   1650     MEM32(ebx + 0x8) = edx; /* 0x38023CBA: mov dword ptr [ebx + 8], edx */
   1651     ecx = MEM32(esi + 0xC); /* 0x38023CBD: mov ecx, dword ptr [esi + 0xc] */
   1652     MEM32(ebx + 0xC) = ecx; /* 0x38023CC0: mov dword ptr [ebx + 0xc], ecx */
   1653     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24;
   1654     MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x38023CC3: inc byte ptr [eax - 1] */
   1655     _flag_k = FK_NARROW(FK_INC, 24);
   1656     eax = MEM32(ebp + (-0x10)); /* 0x38023CC6: mov eax, dword ptr [ebp - 0x10] */
   1657     edi = POP32_VAL(esp); /* 0x38023CC9: pop edi */
   1658     esi = POP32_VAL(esp); /* 0x38023CCA: pop esi */
   1659     MEM32(eax + 0x14) = ebx; /* 0x38023CCB: mov dword ptr [eax + 0x14], ebx */
   1660     ebx = POP32_VAL(esp); /* 0x38023CCE: pop ebx */
   1661     ecx = MEM32(ebp + (-0xC)); /* 0x38023CCF: mov ecx, dword ptr [ebp - 0xc] */
   1662     MEM32(FS_BASE + (0)) = ecx; /* 0x38023CD2: mov dword ptr fs:[0], ecx */
   1663     esp = ebp; /* 0x38023CD9: mov esp, ebp */
   1664     ebp = POP32_VAL(esp); /* 0x38023CDB: pop ebp */
   1665     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38023CDC: ret 8 */
   1666 L_38023CDF:
   1667     PUSH32(esp, 1); /* 0x38023CDF: push 1 */
   1668     PUSH32(esp, edi); /* 0x38023CE1: push edi */
   1669     ecx = ebx; /* 0x38023CE2: mov ecx, ebx */
   1670     RECOMP_ICALL(MEM32(0x3804E024)); /* 0x38023CE4: call dword ptr [0x3804e024] */
   1671     RECOMP_FLAGS_IN();
   1672     /* test LO8(eax), LO8(eax) */ /* 0x38023CEA: test al, al */
   1673     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1674     _cf = 0;
   1675     _flag_k = FK_NARROW(FK_TEST, 24);
   1676     if (TEST_Z(_flag_a, _flag_b)) goto L_38023D1B; /* 0x38023CEC: je 0x38023d1b */
   1677 L_38023CEE:
   1678     esi = MEM32(esi + 0x4); /* 0x38023CEE: mov esi, dword ptr [esi + 4] */
   1679     /* test esi, esi */ /* 0x38023CF1: test esi, esi */
   1680     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1681     _cf = 0;
   1682     _flag_k = FK_TEST;
   1683     if (TEST_NZ(_flag_a, _flag_b)) goto L_38023CFB; /* 0x38023CF3: jne 0x38023cfb */
   1684 L_38023CF5:
   1685     esi = MEM32(0x3804E080); /* 0x38023CF5: mov esi, dword ptr [0x3804e080] */
   1686 L_38023CFB:
   1687     eax = MEM32(ebp + 0x8); /* 0x38023CFB: mov eax, dword ptr [ebp + 8] */
   1688     ecx = edi; /* 0x38023CFE: mov ecx, edi */
   1689     edi = MEM32(ebx + 0x4); /* 0x38023D00: mov edi, dword ptr [ebx + 4] */
   1690     edx = ecx; /* 0x38023D03: mov edx, ecx */
   1691     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38023D05: shr ecx, 2 */
   1692     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1693     ecx = ecx >> 2u; /* 0x38023D05: shr ecx, 2 */
   1694     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x38023D08: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1695     ecx = edx; /* 0x38023D0A: mov ecx, edx */
   1696     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   1697     ecx = ecx & 3; /* 0x38023D0C: and ecx, 3 */
   1698     _cf = 0;
   1699     _flag_k = FK_TEST;
   1700     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x38023D0F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1701     ecx = MEM32(ebx + 0x4); /* 0x38023D11: mov ecx, dword ptr [ebx + 4] */
   1702     MEM32(ebx + 0x8) = eax; /* 0x38023D14: mov dword ptr [ebx + 8], eax */
   1703     MEM8(ecx + eax) = (uint8_t)(0); /* 0x38023D17: mov byte ptr [ecx + eax], 0 */
   1704 L_38023D1B:
   1705     eax = MEM32(ebp + (-0x10)); /* 0x38023D1B: mov eax, dword ptr [ebp - 0x10] */
   1706     edi = POP32_VAL(esp); /* 0x38023D1E: pop edi */
   1707     esi = POP32_VAL(esp); /* 0x38023D1F: pop esi */
   1708     MEM32(eax + 0x14) = ebx; /* 0x38023D20: mov dword ptr [eax + 0x14], ebx */
   1709     ebx = POP32_VAL(esp); /* 0x38023D23: pop ebx */
   1710     ecx = MEM32(ebp + (-0xC)); /* 0x38023D24: mov ecx, dword ptr [ebp - 0xc] */
   1711     MEM32(FS_BASE + (0)) = ecx; /* 0x38023D27: mov dword ptr fs:[0], ecx */
   1712     esp = ebp; /* 0x38023D2E: mov esp, ebp */
   1713     ebp = POP32_VAL(esp); /* 0x38023D30: pop ebp */
   1714     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38023D31: ret 8 */
   1715 L_38023D34:
   1716     ecx = MEM32(ebp + (-0xC)); /* 0x38023D34: mov ecx, dword ptr [ebp - 0xc] */
   1717     MEM32(edi + 0x14) = eax; /* 0x38023D37: mov dword ptr [edi + 0x14], eax */
   1718     eax = edi; /* 0x38023D3A: mov eax, edi */
   1719     edi = POP32_VAL(esp); /* 0x38023D3C: pop edi */
   1720     esi = POP32_VAL(esp); /* 0x38023D3D: pop esi */
   1721     ebx = POP32_VAL(esp); /* 0x38023D3E: pop ebx */
   1722     MEM32(FS_BASE + (0)) = ecx; /* 0x38023D3F: mov dword ptr fs:[0], ecx */
   1723     esp = ebp; /* 0x38023D46: mov esp, ebp */
   1724     ebp = POP32_VAL(esp); /* 0x38023D48: pop ebp */
   1725     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38023D49: ret 8 */
   1726     RECOMP_REGS_OUT();
   1727 }
   1728 
   1729 void sub_38023D50(void) {
   1730     int _fpu_cmp = 0;
   1731     uint32_t _cf = 0;
   1732     int _df = 1;
   1733     uint32_t _flag_k = FK_NONE;
   1734     uint32_t _flag_a = 0, _flag_b = 0;
   1735     uint32_t _itail_tgt = 0;
   1736     RECOMP_REGS_LOCALS
   1737     RECOMP_ENTER(0x38023D50u);
   1738 
   1739 L_38023D50:
   1740     PUSH32(esp, ebx); /* 0x38023D50: push ebx */
   1741     PUSH32(esp, esi); /* 0x38023D51: push esi */
   1742     PUSH32(esp, edi); /* 0x38023D52: push edi */
   1743     edi = ecx; /* 0x38023D53: mov edi, ecx */
   1744     esi = MEM32(edi + 0x14); /* 0x38023D55: mov esi, dword ptr [edi + 0x14] */
   1745     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1746     ebx = 0; /* 0x38023D58: xor ebx, ebx */
   1747     _cf = 0;
   1748     _flag_k = FK_TEST;
   1749     /* cmp esi, ebx */ /* 0x38023D5A: cmp esi, ebx */
   1750     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1752     _flag_k = FK_CMP;
   1753     MEM32(edi) = 0x3804EDD0u; /* 0x38023D5C: mov dword ptr [edi], 0x3804edd0 */
   1754     MEM32(edi + 0x10) = 0xDEDEDEDEu; /* 0x38023D62: mov dword ptr [edi + 0x10], 0xdededede */
   1755     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023DA0; /* 0x38023D69: je 0x38023da0 */
   1756 L_38023D6B:
   1757     eax = MEM32(esi + 0x4); /* 0x38023D6B: mov eax, dword ptr [esi + 4] */
   1758     /* cmp eax, ebx */ /* 0x38023D6E: cmp eax, ebx */
   1759     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1760     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1761     _flag_k = FK_CMP;
   1762     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023D8E; /* 0x38023D70: je 0x38023d8e */
   1763 L_38023D72:
   1764     ecx = eax + (-0x1); /* 0x38023D72: lea ecx, [eax - 1] */
   1765     SET_LO8(eax, MEM8(ecx)); /* 0x38023D75: mov al, byte ptr [ecx] */
   1766     /* cmp LO8(eax), LO8(ebx) */ /* 0x38023D77: cmp al, bl */
   1767     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1768     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1769     _flag_k = FK_NARROW(FK_CMP, 24);
   1770     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023D85; /* 0x38023D79: je 0x38023d85 */
   1771 L_38023D7B:
   1772     /* cmp LO8(eax), 0xFFu */ /* 0x38023D7B: cmp al, 0xff */
   1773     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   1774     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1775     _flag_k = FK_NARROW(FK_CMP, 24);
   1776     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023D85; /* 0x38023D7D: je 0x38023d85 */
   1777 L_38023D7F:
   1778     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1779     SET_LO8(eax, LO8(eax) - 1); /* 0x38023D7F: dec al */
   1780     _flag_k = FK_NARROW(FK_DEC, 24);
   1781     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x38023D81: mov byte ptr [ecx], al */
   1782     goto L_38023D8E; /* 0x38023D83: jmp 0x38023d8e */
   1783 L_38023D85:
   1784     PUSH32(esp, ecx); /* 0x38023D85: push ecx */
   1785     RECOMP_ICALL(0x3804B4F6u); /* 0x38023D86: call 0x3804b4f6 */ /* not lifted */
   1786     RECOMP_FLAGS_IN();
   1787     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1788     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1789     esp = esp + 4; /* 0x38023D8B: add esp, 4 */
   1790     _flag_k = FK_ADD;
   1791 L_38023D8E:
   1792     PUSH32(esp, esi); /* 0x38023D8E: push esi */
   1793     MEM32(esi + 0x4) = ebx; /* 0x38023D8F: mov dword ptr [esi + 4], ebx */
   1794     MEM32(esi + 0x8) = ebx; /* 0x38023D92: mov dword ptr [esi + 8], ebx */
   1795     MEM32(esi + 0xC) = ebx; /* 0x38023D95: mov dword ptr [esi + 0xc], ebx */
   1796     RECOMP_ICALL(0x3804B4F6u); /* 0x38023D98: call 0x3804b4f6 */ /* not lifted */
   1797     RECOMP_FLAGS_IN();
   1798     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1800     esp = esp + 4; /* 0x38023D9D: add esp, 4 */
   1801     _flag_k = FK_ADD;
   1802 L_38023DA0:
   1803     ecx = edi; /* 0x38023DA0: mov ecx, edi */
   1804     MEM32(edi + 0x14) = ebx; /* 0x38023DA2: mov dword ptr [edi + 0x14], ebx */
   1805     RECOMP_ICALL(0x380214C0u); /* 0x38023DA5: call 0x380214c0 */ /* not lifted */
   1806     RECOMP_FLAGS_IN();
   1807     edi = POP32_VAL(esp); /* 0x38023DAA: pop edi */
   1808     esi = POP32_VAL(esp); /* 0x38023DAB: pop esi */
   1809     ebx = POP32_VAL(esp); /* 0x38023DAC: pop ebx */
   1810     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023DAD: ret  */
   1811     RECOMP_REGS_OUT();
   1812 }
   1813 
   1814 void sub_38023D8E(void) {
   1815     int _fpu_cmp = 0;
   1816     uint32_t _cf = 0;
   1817     int _df = 1;
   1818     uint32_t _flag_k = FK_NONE;
   1819     uint32_t _flag_a = 0, _flag_b = 0;
   1820     uint32_t _itail_tgt = 0;
   1821     RECOMP_REGS_LOCALS
   1822     RECOMP_ENTER(0x38023D8Eu);
   1823 
   1824 L_38023D8E:
   1825     PUSH32(esp, esi); /* 0x38023D8E: push esi */
   1826     MEM32(esi + 0x4) = ebx; /* 0x38023D8F: mov dword ptr [esi + 4], ebx */
   1827     MEM32(esi + 0x8) = ebx; /* 0x38023D92: mov dword ptr [esi + 8], ebx */
   1828     MEM32(esi + 0xC) = ebx; /* 0x38023D95: mov dword ptr [esi + 0xc], ebx */
   1829     RECOMP_ICALL(0x3804B4F6u); /* 0x38023D98: call 0x3804b4f6 */ /* not lifted */
   1830     RECOMP_FLAGS_IN();
   1831     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1832     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1833     esp = esp + 4; /* 0x38023D9D: add esp, 4 */
   1834     _flag_k = FK_ADD;
   1835     ecx = edi; /* 0x38023DA0: mov ecx, edi */
   1836     MEM32(edi + 0x14) = ebx; /* 0x38023DA2: mov dword ptr [edi + 0x14], ebx */
   1837     RECOMP_ICALL(0x380214C0u); /* 0x38023DA5: call 0x380214c0 */ /* not lifted */
   1838     RECOMP_FLAGS_IN();
   1839     edi = POP32_VAL(esp); /* 0x38023DAA: pop edi */
   1840     esi = POP32_VAL(esp); /* 0x38023DAB: pop esi */
   1841     ebx = POP32_VAL(esp); /* 0x38023DAC: pop ebx */
   1842     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023DAD: ret  */
   1843     RECOMP_REGS_OUT();
   1844 }
   1845 
   1846 void sub_38023DB0(void) {
   1847     int _fpu_cmp = 0;
   1848     uint32_t _cf = 0;
   1849     int _df = 1;
   1850     uint32_t _flag_k = FK_NONE;
   1851     uint32_t _flag_a = 0, _flag_b = 0;
   1852     uint32_t _itail_tgt = 0;
   1853     RECOMP_REGS_LOCALS
   1854     RECOMP_ENTER(0x38023DB0u);
   1855 
   1856 L_38023DB0:
   1857     PUSH32(esp, ebp); /* 0x38023DB0: push ebp */
   1858     ebp = esp; /* 0x38023DB1: mov ebp, esp */
   1859     PUSH32(esp, 0xFFFFFFFFu); /* 0x38023DB3: push -1 */
   1860     PUSH32(esp, 0x3804C570u); /* 0x38023DB5: push 0x3804c570 */
   1861     eax = MEM32(FS_BASE + (0)); /* 0x38023DBA: mov eax, dword ptr fs:[0] */
   1862     PUSH32(esp, eax); /* 0x38023DC0: push eax */
   1863     MEM32(FS_BASE + (0)) = esp; /* 0x38023DC1: mov dword ptr fs:[0], esp */
   1864     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u);
   1865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1866     esp = esp - 0x38u; /* 0x38023DC8: sub esp, 0x38 */
   1867     _flag_k = FK_CMP;
   1868     PUSH32(esp, ebx); /* 0x38023DCB: push ebx */
   1869     PUSH32(esp, esi); /* 0x38023DCC: push esi */
   1870     esi = MEM32(ebp + 0x8); /* 0x38023DCD: mov esi, dword ptr [ebp + 8] */
   1871     PUSH32(esp, edi); /* 0x38023DD0: push edi */
   1872     PUSH32(esp, esi); /* 0x38023DD1: push esi */
   1873     RECOMP_ICALL(0x38023F20u); /* 0x38023DD2: call 0x38023f20 */ /* not lifted */
   1874     RECOMP_FLAGS_IN();
   1875     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1876     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1877     esp = esp + 4; /* 0x38023DD7: add esp, 4 */
   1878     _flag_k = FK_ADD;
   1879     edi = eax; /* 0x38023DDA: mov edi, eax */
   1880     RECOMP_ICALL(0x380238F0u); /* 0x38023DDC: call 0x380238f0 */ /* not lifted */
   1881     RECOMP_FLAGS_IN();
   1882     ebx = eax; /* 0x38023DE1: mov ebx, eax */
   1883     RECOMP_ICALL(0x380239E0u); /* 0x38023DE3: call 0x380239e0 */ /* not lifted */
   1884     RECOMP_FLAGS_IN();
   1885     ecx = ebp + (-0x14); /* 0x38023DE8: lea ecx, [ebp - 0x14] */
   1886     PUSH32(esp, ecx); /* 0x38023DEB: push ecx */
   1887     MEM32(ebp + 0x8) = eax; /* 0x38023DEC: mov dword ptr [ebp + 8], eax */
   1888     eax = MEM32(ebp + 0xC); /* 0x38023DEF: mov eax, dword ptr [ebp + 0xc] */
   1889     edx = ebp + (-0x1C); /* 0x38023DF2: lea edx, [ebp - 0x1c] */
   1890     PUSH32(esp, edx); /* 0x38023DF5: push edx */
   1891     ecx = ebx; /* 0x38023DF6: mov ecx, ebx */
   1892     MEM32(ebp + (-0x14)) = edi; /* 0x38023DF8: mov dword ptr [ebp - 0x14], edi */
   1893     MEM32(ebp + (-0x10)) = eax; /* 0x38023DFB: mov dword ptr [ebp - 0x10], eax */
   1894     RECOMP_ICALL(0x3802DA60u); /* 0x38023DFE: call 0x3802da60 */ /* not lifted */
   1895     RECOMP_FLAGS_IN();
   1896     SET_LO8(eax, MEM8(esi)); /* 0x38023E03: mov al, byte ptr [esi] */
   1897     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1898     ebx = 0; /* 0x38023E05: xor ebx, ebx */
   1899     _cf = 0;
   1900     _flag_k = FK_TEST;
   1901     PUSH32(esp, ebx); /* 0x38023E07: push ebx */
   1902     ecx = ebp + (-0x40); /* 0x38023E08: lea ecx, [ebp - 0x40] */
   1903     MEM32(ebp + (-0x44)) = edi; /* 0x38023E0B: mov dword ptr [ebp - 0x44], edi */
   1904     MEM8(ebp + (-0x40)) = (uint8_t)(LO8(eax)); /* 0x38023E0E: mov byte ptr [ebp - 0x40], al */
   1905     RECOMP_ICALL(MEM32(0x3804E05C)); /* 0x38023E11: call dword ptr [0x3804e05c] */
   1906     RECOMP_FLAGS_IN();
   1907     ecx = MEM32(0x3804E07C); /* 0x38023E17: mov ecx, dword ptr [0x3804e07c] */
   1908     edx = MEM32(ecx); /* 0x38023E1D: mov edx, dword ptr [ecx] */
   1909     PUSH32(esp, edx); /* 0x38023E1F: push edx */
   1910     PUSH32(esp, ebx); /* 0x38023E20: push ebx */
   1911     PUSH32(esp, esi); /* 0x38023E21: push esi */
   1912     ecx = ebp + (-0x40); /* 0x38023E22: lea ecx, [ebp - 0x40] */
   1913     RECOMP_ICALL(MEM32(0x3804E078)); /* 0x38023E25: call dword ptr [0x3804e078] */
   1914     RECOMP_FLAGS_IN();
   1915     SET_LO8(ecx, MEM8(ebp + (-0x40))); /* 0x38023E2B: mov cl, byte ptr [ebp - 0x40] */
   1916     eax = MEM32(ebp + (-0x44)); /* 0x38023E2E: mov eax, dword ptr [ebp - 0x44] */
   1917     MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(ecx)); /* 0x38023E31: mov byte ptr [ebp - 0x2c], cl */
   1918     PUSH32(esp, ebx); /* 0x38023E34: push ebx */
   1919     ecx = ebp + (-0x2C); /* 0x38023E35: lea ecx, [ebp - 0x2c] */
   1920     MEM32(ebp + (-0x4)) = ebx; /* 0x38023E38: mov dword ptr [ebp - 4], ebx */
   1921     MEM32(ebp + (-0x30)) = eax; /* 0x38023E3B: mov dword ptr [ebp - 0x30], eax */
   1922     RECOMP_ICALL(MEM32(0x3804E05C)); /* 0x38023E3E: call dword ptr [0x3804e05c] */
   1923     RECOMP_FLAGS_IN();
   1924     edx = MEM32(0x3804E07C); /* 0x38023E44: mov edx, dword ptr [0x3804e07c] */
   1925     eax = MEM32(edx); /* 0x38023E4A: mov eax, dword ptr [edx] */
   1926     PUSH32(esp, eax); /* 0x38023E4C: push eax */
   1927     PUSH32(esp, ebx); /* 0x38023E4D: push ebx */
   1928     ecx = ebp + (-0x40); /* 0x38023E4E: lea ecx, [ebp - 0x40] */
   1929     PUSH32(esp, ecx); /* 0x38023E51: push ecx */
   1930     ecx = ebp + (-0x2C); /* 0x38023E52: lea ecx, [ebp - 0x2c] */
   1931     RECOMP_ICALL(MEM32(0x3804E078)); /* 0x38023E55: call dword ptr [0x3804e078] */
   1932     RECOMP_FLAGS_IN();
   1933     ecx = MEM32(ebp + 0x8); /* 0x38023E5B: mov ecx, dword ptr [ebp + 8] */
   1934     edx = ebp + (-0x30); /* 0x38023E5E: lea edx, [ebp - 0x30] */
   1935     PUSH32(esp, edx); /* 0x38023E61: push edx */
   1936     eax = ebp + (-0x1C); /* 0x38023E62: lea eax, [ebp - 0x1c] */
   1937     PUSH32(esp, eax); /* 0x38023E65: push eax */
   1938     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x38023E66: mov byte ptr [ebp - 4], 1 */
   1939     RECOMP_ICALL(0x38024680u); /* 0x38023E6A: call 0x38024680 */ /* not lifted */
   1940     RECOMP_FLAGS_IN();
   1941     eax = MEM32(ebp + (-0x28)); /* 0x38023E6F: mov eax, dword ptr [ebp - 0x28] */
   1942     /* cmp eax, ebx */ /* 0x38023E72: cmp eax, ebx */
   1943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1945     _flag_k = FK_CMP;
   1946     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023E92; /* 0x38023E74: je 0x38023e92 */
   1947 L_38023E76:
   1948     ecx = eax + (-0x1); /* 0x38023E76: lea ecx, [eax - 1] */
   1949     SET_LO8(eax, MEM8(ecx)); /* 0x38023E79: mov al, byte ptr [ecx] */
   1950     /* cmp LO8(eax), LO8(ebx) */ /* 0x38023E7B: cmp al, bl */
   1951     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1953     _flag_k = FK_NARROW(FK_CMP, 24);
   1954     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023E89; /* 0x38023E7D: je 0x38023e89 */
   1955 L_38023E7F:
   1956     /* cmp LO8(eax), 0xFFu */ /* 0x38023E7F: cmp al, 0xff */
   1957     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   1958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1959     _flag_k = FK_NARROW(FK_CMP, 24);
   1960     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023E89; /* 0x38023E81: je 0x38023e89 */
   1961 L_38023E83:
   1962     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1963     SET_LO8(eax, LO8(eax) - 1); /* 0x38023E83: dec al */
   1964     _flag_k = FK_NARROW(FK_DEC, 24);
   1965     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x38023E85: mov byte ptr [ecx], al */
   1966     goto L_38023E92; /* 0x38023E87: jmp 0x38023e92 */
   1967 L_38023E89:
   1968     PUSH32(esp, ecx); /* 0x38023E89: push ecx */
   1969     RECOMP_ICALL(0x3804B4F6u); /* 0x38023E8A: call 0x3804b4f6 */ /* not lifted */
   1970     RECOMP_FLAGS_IN();
   1971     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1972     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1973     esp = esp + 4; /* 0x38023E8F: add esp, 4 */
   1974     _flag_k = FK_ADD;
   1975 L_38023E92:
   1976     eax = MEM32(ebp + (-0x3C)); /* 0x38023E92: mov eax, dword ptr [ebp - 0x3c] */
   1977     /* cmp eax, ebx */ /* 0x38023E95: cmp eax, ebx */
   1978     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1980     _flag_k = FK_CMP;
   1981     MEM32(ebp + (-0x28)) = ebx; /* 0x38023E97: mov dword ptr [ebp - 0x28], ebx */
   1982     MEM32(ebp + (-0x24)) = ebx; /* 0x38023E9A: mov dword ptr [ebp - 0x24], ebx */
   1983     MEM32(ebp + (-0x20)) = ebx; /* 0x38023E9D: mov dword ptr [ebp - 0x20], ebx */
   1984     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023ECD; /* 0x38023EA0: je 0x38023ecd */
   1985 L_38023EA2:
   1986     ecx = eax + (-0x1); /* 0x38023EA2: lea ecx, [eax - 1] */
   1987     SET_LO8(eax, MEM8(ecx)); /* 0x38023EA5: mov al, byte ptr [ecx] */
   1988     /* cmp LO8(eax), LO8(ebx) */ /* 0x38023EA7: cmp al, bl */
   1989     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   1990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1991     _flag_k = FK_NARROW(FK_CMP, 24);
   1992     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023EC4; /* 0x38023EA9: je 0x38023ec4 */
   1993 L_38023EAB:
   1994     /* cmp LO8(eax), 0xFFu */ /* 0x38023EAB: cmp al, 0xff */
   1995     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   1996     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1997     _flag_k = FK_NARROW(FK_CMP, 24);
   1998     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023EC4; /* 0x38023EAD: je 0x38023ec4 */
   1999 L_38023EAF:
   2000     edi = POP32_VAL(esp); /* 0x38023EAF: pop edi */
   2001     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2002     SET_LO8(eax, LO8(eax) - 1); /* 0x38023EB0: dec al */
   2003     _flag_k = FK_NARROW(FK_DEC, 24);
   2004     esi = POP32_VAL(esp); /* 0x38023EB2: pop esi */
   2005     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x38023EB3: mov byte ptr [ecx], al */
   2006     ebx = POP32_VAL(esp); /* 0x38023EB5: pop ebx */
   2007     ecx = MEM32(ebp + (-0xC)); /* 0x38023EB6: mov ecx, dword ptr [ebp - 0xc] */
   2008     MEM32(FS_BASE + (0)) = ecx; /* 0x38023EB9: mov dword ptr fs:[0], ecx */
   2009     esp = ebp; /* 0x38023EC0: mov esp, ebp */
   2010     ebp = POP32_VAL(esp); /* 0x38023EC2: pop ebp */
   2011     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023EC3: ret  */
   2012 L_38023EC4:
   2013     PUSH32(esp, ecx); /* 0x38023EC4: push ecx */
   2014     RECOMP_ICALL(0x3804B4F6u); /* 0x38023EC5: call 0x3804b4f6 */ /* not lifted */
   2015     RECOMP_FLAGS_IN();
   2016     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2017     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2018     esp = esp + 4; /* 0x38023ECA: add esp, 4 */
   2019     _flag_k = FK_ADD;
   2020 L_38023ECD:
   2021     ecx = MEM32(ebp + (-0xC)); /* 0x38023ECD: mov ecx, dword ptr [ebp - 0xc] */
   2022     edi = POP32_VAL(esp); /* 0x38023ED0: pop edi */
   2023     esi = POP32_VAL(esp); /* 0x38023ED1: pop esi */
   2024     ebx = POP32_VAL(esp); /* 0x38023ED2: pop ebx */
   2025     MEM32(FS_BASE + (0)) = ecx; /* 0x38023ED3: mov dword ptr fs:[0], ecx */
   2026     esp = ebp; /* 0x38023EDA: mov esp, ebp */
   2027     ebp = POP32_VAL(esp); /* 0x38023EDC: pop ebp */
   2028     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023EDD: ret  */
   2029     RECOMP_REGS_OUT();
   2030 }
   2031 
   2032 void sub_38023EE0(void) {
   2033     int _fpu_cmp = 0;
   2034     uint32_t _cf = 0;
   2035     int _df = 1;
   2036     uint32_t _flag_k = FK_NONE;
   2037     uint32_t _flag_a = 0, _flag_b = 0;
   2038     uint32_t _itail_tgt = 0;
   2039     RECOMP_REGS_LOCALS
   2040     RECOMP_ENTER(0x38023EE0u);
   2041 
   2042 L_38023EE0:
   2043     PUSH32(esp, esi); /* 0x38023EE0: push esi */
   2044     esi = ecx; /* 0x38023EE1: mov esi, ecx */
   2045     eax = MEM32(esi + 0x8); /* 0x38023EE3: mov eax, dword ptr [esi + 8] */
   2046     /* test eax, eax */ /* 0x38023EE6: test eax, eax */
   2047     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2048     _cf = 0;
   2049     _flag_k = FK_TEST;
   2050     if (TEST_Z(_flag_a, _flag_b)) goto L_38023F06; /* 0x38023EE8: je 0x38023f06 */
   2051 L_38023EEA:
   2052     ecx = eax + (-0x1); /* 0x38023EEA: lea ecx, [eax - 1] */
   2053     SET_LO8(eax, MEM8(ecx)); /* 0x38023EED: mov al, byte ptr [ecx] */
   2054     /* test LO8(eax), LO8(eax) */ /* 0x38023EEF: test al, al */
   2055     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2056     _cf = 0;
   2057     _flag_k = FK_NARROW(FK_TEST, 24);
   2058     if (TEST_Z(_flag_a, _flag_b)) goto L_38023EFD; /* 0x38023EF1: je 0x38023efd */
   2059 L_38023EF3:
   2060     /* cmp LO8(eax), 0xFFu */ /* 0x38023EF3: cmp al, 0xff */
   2061     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   2062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2063     _flag_k = FK_NARROW(FK_CMP, 24);
   2064     if (CMP_EQ(_flag_a, _flag_b)) goto L_38023EFD; /* 0x38023EF5: je 0x38023efd */
   2065 L_38023EF7:
   2066     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2067     SET_LO8(eax, LO8(eax) - 1); /* 0x38023EF7: dec al */
   2068     _flag_k = FK_NARROW(FK_DEC, 24);
   2069     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x38023EF9: mov byte ptr [ecx], al */
   2070     goto L_38023F06; /* 0x38023EFB: jmp 0x38023f06 */
   2071 L_38023EFD:
   2072     PUSH32(esp, ecx); /* 0x38023EFD: push ecx */
   2073     RECOMP_ICALL(0x3804B4F6u); /* 0x38023EFE: call 0x3804b4f6 */ /* not lifted */
   2074     RECOMP_FLAGS_IN();
   2075     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2076     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2077     esp = esp + 4; /* 0x38023F03: add esp, 4 */
   2078     _flag_k = FK_ADD;
   2079 L_38023F06:
   2080     MEM32(esi + 0x8) = 0; /* 0x38023F06: mov dword ptr [esi + 8], 0 */
   2081     MEM32(esi + 0xC) = 0; /* 0x38023F0D: mov dword ptr [esi + 0xc], 0 */
   2082     MEM32(esi + 0x10) = 0; /* 0x38023F14: mov dword ptr [esi + 0x10], 0 */
   2083     esi = POP32_VAL(esp); /* 0x38023F1B: pop esi */
   2084     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023F1C: ret  */
   2085     RECOMP_REGS_OUT();
   2086 }
   2087 
   2088 void sub_38023F06(void) {
   2089     int _fpu_cmp = 0;
   2090     uint32_t _cf = 0;
   2091     int _df = 1;
   2092     uint32_t _flag_k = FK_NONE;
   2093     uint32_t _flag_a = 0, _flag_b = 0;
   2094     uint32_t _itail_tgt = 0;
   2095     RECOMP_REGS_LOCALS
   2096     RECOMP_ENTER(0x38023F06u);
   2097 
   2098 L_38023F06:
   2099     MEM32(esi + 0x8) = 0; /* 0x38023F06: mov dword ptr [esi + 8], 0 */
   2100     MEM32(esi + 0xC) = 0; /* 0x38023F0D: mov dword ptr [esi + 0xc], 0 */
   2101     MEM32(esi + 0x10) = 0; /* 0x38023F14: mov dword ptr [esi + 0x10], 0 */
   2102     esi = POP32_VAL(esp); /* 0x38023F1B: pop esi */
   2103     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023F1C: ret  */
   2104     RECOMP_REGS_OUT();
   2105 }
   2106 
   2107 void sub_38023F20(void) {
   2108     int _fpu_cmp = 0;
   2109     uint32_t _cf = 0;
   2110     int _df = 1;
   2111     uint32_t _flag_k = FK_NONE;
   2112     uint32_t _flag_a = 0, _flag_b = 0;
   2113     uint32_t _itail_tgt = 0;
   2114     RECOMP_REGS_LOCALS
   2115     RECOMP_ENTER(0x38023F20u);
   2116 
   2117 L_38023F20:
   2118     PUSH32(esp, ebp); /* 0x38023F20: push ebp */
   2119     ebp = esp; /* 0x38023F21: mov ebp, esp */
   2120     ecx = MEM32(ebp + 0x8); /* 0x38023F23: mov ecx, dword ptr [ebp + 8] */
   2121     PUSH32(esp, edi); /* 0x38023F26: push edi */
   2122     edi = MEM32(ecx + 0x8); /* 0x38023F27: mov edi, dword ptr [ecx + 8] */
   2123     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2124     eax = 0; /* 0x38023F2A: xor eax, eax */
   2125     _cf = 0;
   2126     _flag_k = FK_TEST;
   2127     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2128     edx = 0; /* 0x38023F2C: xor edx, edx */
   2129     _cf = 0;
   2130     _flag_k = FK_TEST;
   2131     /* test edi, edi */ /* 0x38023F2E: test edi, edi */
   2132     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2133     _cf = 0;
   2134     _flag_k = FK_TEST;
   2135     if (TEST_Z(_flag_a, _flag_b)) goto L_38023F5A; /* 0x38023F30: jbe 0x38023f5a */
   2136 L_38023F32:
   2137     PUSH32(esp, ebx); /* 0x38023F32: push ebx */
   2138     ebx = MEM32(ecx + 0x4); /* 0x38023F33: mov ebx, dword ptr [ecx + 4] */
   2139     PUSH32(esp, esi); /* 0x38023F36: push esi */
   2140 L_38023F37:
   2141     /* test ebx, ebx */ /* 0x38023F37: test ebx, ebx */
   2142     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2143     _cf = 0;
   2144     _flag_k = FK_TEST;
   2145     esi = MEM32(0x3804E080); /* 0x38023F39: mov esi, dword ptr [0x3804e080] */
   2146     if (TEST_Z(_flag_a, _flag_b)) goto L_38023F44; /* 0x38023F3F: je 0x38023f44 */
   2147 L_38023F41:
   2148     esi = ebx + edx; /* 0x38023F41: lea esi, [ebx + edx] */
   2149 L_38023F44:
   2150     esi = (int32_t)(int8_t)MEM8(esi); /* 0x38023F44: movsx esi, byte ptr [esi] */
   2151     ecx = edx; /* 0x38023F47: mov ecx, edx */
   2152     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   2153     ecx = ecx & 3; /* 0x38023F49: and ecx, 3 */
   2154     _cf = 0;
   2155     _flag_k = FK_TEST;
   2156     if (3u) _cf = (((ecx) >> 29) & 1u); /* 0x38023F4C: shl ecx, 3 */
   2157     if (3u) { _flag_a = recomp_flags_pack((ecx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2158     ecx = ecx << 3u; /* 0x38023F4C: shl ecx, 3 */
   2159     if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((esi) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x38023F4F: shl esi, cl */
   2160     if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((esi << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2161     esi = esi << ((LO8(ecx)) & 31); /* 0x38023F4F: shl esi, cl */
   2162     _flag_a = (uint32_t)((eax ^ esi)); _flag_b = (uint32_t)((eax ^ esi));
   2163     eax = eax ^ esi; /* 0x38023F51: xor eax, esi */
   2164     _cf = 0;
   2165     _flag_k = FK_TEST;
   2166     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2167     edx = edx + 1; /* 0x38023F53: inc edx */
   2168     _flag_k = FK_INC;
   2169     /* cmp edx, edi */ /* 0x38023F54: cmp edx, edi */
   2170     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   2171     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2172     _flag_k = FK_CMP;
   2173     RECOMP_BACKEDGE();
   2174     if (CMP_B(_flag_a, _flag_b)) goto L_38023F37; /* 0x38023F56: jb 0x38023f37 */
   2175 L_38023F58:
   2176     esi = POP32_VAL(esp); /* 0x38023F58: pop esi */
   2177     ebx = POP32_VAL(esp); /* 0x38023F59: pop ebx */
   2178 L_38023F5A:
   2179     edi = POP32_VAL(esp); /* 0x38023F5A: pop edi */
   2180     ebp = POP32_VAL(esp); /* 0x38023F5B: pop ebp */
   2181     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38023F5C: ret  */
   2182     RECOMP_REGS_OUT();
   2183 }
   2184 
   2185 void sub_38023F60(void) {
   2186     int _fpu_cmp = 0;
   2187     uint32_t _cf = 0;
   2188     int _df = 1;
   2189     uint32_t _flag_k = FK_NONE;
   2190     uint32_t _flag_a = 0, _flag_b = 0;
   2191     uint32_t _itail_tgt = 0;
   2192     RECOMP_REGS_LOCALS
   2193     RECOMP_ENTER(0x38023F60u);
   2194 
   2195 L_38023F60:
   2196     PUSH32(esp, ebp); /* 0x38023F60: push ebp */
   2197     ebp = esp; /* 0x38023F61: mov ebp, esp */
   2198     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2200     esp = esp - 8; /* 0x38023F63: sub esp, 8 */
   2201     _flag_k = FK_CMP;
   2202     SET_LO8(eax, MEM8(0x3806ECB8)); /* 0x38023F66: mov al, byte ptr [0x3806ecb8] */
   2203     PUSH32(esp, ebx); /* 0x38023F6B: push ebx */
   2204     edx = 1; /* 0x38023F6C: mov edx, 1 */
   2205     /* test LO8(edx), LO8(eax) */ /* 0x38023F71: test dl, al */
   2206     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2207     _cf = 0;
   2208     _flag_k = FK_NARROW(FK_TEST, 24);
   2209     PUSH32(esp, esi); /* 0x38023F73: push esi */
   2210     PUSH32(esp, edi); /* 0x38023F74: push edi */
   2211     if (TEST_NZ(_flag_a, _flag_b)) goto L_38023FEB; /* 0x38023F75: jne 0x38023feb */
   2212 L_38023F77:
   2213     _flag_a = (uint32_t)((LO8(eax) | LO8(edx))) << 24; _flag_b = (uint32_t)((LO8(eax) | LO8(edx))) << 24;
   2214     SET_LO8(eax, LO8(eax) | LO8(edx)); /* 0x38023F77: or al, dl */
   2215     _cf = 0;
   2216     _flag_k = FK_NARROW(FK_TEST, 24);
   2217     MEM8(0x3806ECB8) = (uint8_t)(LO8(eax)); /* 0x38023F79: mov byte ptr [0x3806ecb8], al */
   2218     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x38023F7E: mov al, byte ptr [ebp + 0xb] */
   2219     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   2220     ecx = ecx | 0xFFFFFFFFu; /* 0x38023F81: or ecx, 0xffffffff */
   2221     _cf = 0;
   2222     _flag_k = FK_TEST;
   2223     MEM8(0x3806ECA8) = (uint8_t)(LO8(eax)); /* 0x38023F84: mov byte ptr [0x3806eca8], al */
   2224     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2225     eax = 0; /* 0x38023F89: xor eax, eax */
   2226     _cf = 0;
   2227     _flag_k = FK_TEST;
   2228     edi = 0x3806C5ECu; /* 0x38023F8B: mov edi, 0x3806c5ec */
   2229     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x38023F90: repne scasb al, byte ptr es:[edi] */
   2230     ecx = ~ecx; /* 0x38023F92: not ecx */
   2231     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2232     ecx = ecx - 1; /* 0x38023F94: dec ecx */
   2233     _flag_k = FK_DEC;
   2234     ebx = ecx; /* 0x38023F95: mov ebx, ecx */
   2235     PUSH32(esp, edx); /* 0x38023F97: push edx */
   2236     PUSH32(esp, ebx); /* 0x38023F98: push ebx */
   2237     ecx = 0x3806ECA8u; /* 0x38023F99: mov ecx, 0x3806eca8 */
   2238     MEM32(0x3806ECAC) = eax; /* 0x38023F9E: mov dword ptr [0x3806ecac], eax */
   2239     MEM32(0x3806ECB0) = eax; /* 0x38023FA3: mov dword ptr [0x3806ecb0], eax */
   2240     MEM32(0x3806ECB4) = eax; /* 0x38023FA8: mov dword ptr [0x3806ecb4], eax */
   2241     RECOMP_ICALL(MEM32(0x3804E024)); /* 0x38023FAD: call dword ptr [0x3804e024] */
   2242     RECOMP_FLAGS_IN();
   2243     /* test LO8(eax), LO8(eax) */ /* 0x38023FB3: test al, al */
   2244     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2245     _cf = 0;
   2246     _flag_k = FK_NARROW(FK_TEST, 24);
   2247     if (TEST_Z(_flag_a, _flag_b)) goto L_38023FDE; /* 0x38023FB5: je 0x38023fde */
   2248 L_38023FB7:
   2249     edi = MEM32(0x3806ECAC); /* 0x38023FB7: mov edi, dword ptr [0x3806ecac] */
   2250     ecx = ebx; /* 0x38023FBD: mov ecx, ebx */
   2251     edx = ecx; /* 0x38023FBF: mov edx, ecx */
   2252     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x38023FC1: shr ecx, 2 */
   2253     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2254     ecx = ecx >> 2u; /* 0x38023FC1: shr ecx, 2 */
   2255     esi = 0x3806C5ECu; /* 0x38023FC4: mov esi, 0x3806c5ec */
   2256     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x38023FC9: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   2257     ecx = edx; /* 0x38023FCB: mov ecx, edx */
   2258     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   2259     ecx = ecx & 3; /* 0x38023FCD: and ecx, 3 */
   2260     _cf = 0;
   2261     _flag_k = FK_TEST;
   2262     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x38023FD0: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   2263     PUSH32(esp, ebx); /* 0x38023FD2: push ebx */
   2264     ecx = 0x3806ECA8u; /* 0x38023FD3: mov ecx, 0x3806eca8 */
   2265     RECOMP_ICALL(MEM32(0x3804E054)); /* 0x38023FD8: call dword ptr [0x3804e054] */
   2266     RECOMP_FLAGS_IN();
   2267 L_38023FDE:
   2268     PUSH32(esp, 0x38024040u); /* 0x38023FDE: push 0x38024040 */
   2269     RECOMP_ICALL(0x3804B54Cu); /* 0x38023FE3: call 0x3804b54c */ /* not lifted */
   2270     RECOMP_FLAGS_IN();
   2271     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2272     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2273     esp = esp + 4; /* 0x38023FE8: add esp, 4 */
   2274     _flag_k = FK_ADD;
   2275 L_38023FEB:
   2276     RECOMP_ICALL(0x380239E0u); /* 0x38023FEB: call 0x380239e0 */ /* not lifted */
   2277     RECOMP_FLAGS_IN();
   2278     esi = eax; /* 0x38023FF0: mov esi, eax */
   2279     edi = MEM32(esi + 0x4); /* 0x38023FF2: mov edi, dword ptr [esi + 4] */
   2280     eax = ebp + 0x8; /* 0x38023FF5: lea eax, [ebp + 8] */
   2281     PUSH32(esp, eax); /* 0x38023FF8: push eax */
   2282     ecx = esi; /* 0x38023FF9: mov ecx, esi */
   2283     RECOMP_ICALL(0x3800FE80u); /* 0x38023FFB: call 0x3800fe80 */ /* not lifted */
   2284     RECOMP_FLAGS_IN();
   2285     ecx = MEM32(esi + 0x4); /* 0x38024000: mov ecx, dword ptr [esi + 4] */
   2286     /* cmp eax, ecx */ /* 0x38024003: cmp eax, ecx */
   2287     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2289     _flag_k = FK_CMP;
   2290     MEM32(ebp + (-0x4)) = eax; /* 0x38024005: mov dword ptr [ebp - 4], eax */
   2291     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024017; /* 0x38024008: je 0x38024017 */
   2292 L_3802400A:
   2293     edx = MEM32(ebp + 0x8); /* 0x3802400A: mov edx, dword ptr [ebp + 8] */
   2294     /* cmp edx, MEM32(eax + 0xC) */ /* 0x3802400D: cmp edx, dword ptr [eax + 0xc] */
   2295     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   2296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2297     _flag_k = FK_CMP;
   2298     if (CMP_L(_flag_a, _flag_b)) goto L_38024017; /* 0x38024010: jl 0x38024017 */
   2299 L_38024012:
   2300     eax = ebp + (-0x4); /* 0x38024012: lea eax, [ebp - 4] */
   2301     goto L_3802401D; /* 0x38024015: jmp 0x3802401d */
   2302 L_38024017:
   2303     MEM32(ebp + (-0x8)) = ecx; /* 0x38024017: mov dword ptr [ebp - 8], ecx */
   2304     eax = ebp + (-0x8); /* 0x3802401A: lea eax, [ebp - 8] */
   2305 L_3802401D:
   2306     /* cmp MEM32(eax), edi */ /* 0x3802401D: cmp dword ptr [eax], edi */
   2307     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi);
   2308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2309     _flag_k = FK_CMP;
   2310     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024033; /* 0x3802401F: je 0x38024033 */
   2311 L_38024021:
   2312     eax = ebp + 0x8; /* 0x38024021: lea eax, [ebp + 8] */
   2313     PUSH32(esp, eax); /* 0x38024024: push eax */
   2314     ecx = esi; /* 0x38024025: mov ecx, esi */
   2315     RECOMP_ICALL(0x380245A0u); /* 0x38024027: call 0x380245a0 */ /* not lifted */
   2316     RECOMP_FLAGS_IN();
   2317     edi = POP32_VAL(esp); /* 0x3802402C: pop edi */
   2318     esi = POP32_VAL(esp); /* 0x3802402D: pop esi */
   2319     ebx = POP32_VAL(esp); /* 0x3802402E: pop ebx */
   2320     esp = ebp; /* 0x3802402F: mov esp, ebp */
   2321     ebp = POP32_VAL(esp); /* 0x38024031: pop ebp */
   2322     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38024032: ret  */
   2323 L_38024033:
   2324     edi = POP32_VAL(esp); /* 0x38024033: pop edi */
   2325     esi = POP32_VAL(esp); /* 0x38024034: pop esi */
   2326     eax = 0x3806ECA8u; /* 0x38024035: mov eax, 0x3806eca8 */
   2327     ebx = POP32_VAL(esp); /* 0x3802403A: pop ebx */
   2328     esp = ebp; /* 0x3802403B: mov esp, ebp */
   2329     ebp = POP32_VAL(esp); /* 0x3802403D: pop ebp */
   2330     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802403E: ret  */
   2331     RECOMP_REGS_OUT();
   2332 }
   2333 
   2334 void sub_38024040(void) {
   2335     int _fpu_cmp = 0;
   2336     uint32_t _cf = 0;
   2337     int _df = 1;
   2338     uint32_t _flag_k = FK_NONE;
   2339     uint32_t _flag_a = 0, _flag_b = 0;
   2340     uint32_t _itail_tgt = 0;
   2341     RECOMP_REGS_LOCALS
   2342     RECOMP_ENTER(0x38024040u);
   2343 
   2344 L_38024040:
   2345     ecx = MEM32(0x3806ECAC); /* 0x38024040: mov ecx, dword ptr [0x3806ecac] */
   2346     /* test ecx, ecx */ /* 0x38024046: test ecx, ecx */
   2347     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2348     _cf = 0;
   2349     _flag_k = FK_TEST;
   2350     if (TEST_Z(_flag_a, _flag_b)) goto L_38024066; /* 0x38024048: je 0x38024066 */
   2351 L_3802404A:
   2352     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x3802404A: mov al, byte ptr [ecx - 1] */
   2353     /* test LO8(eax), LO8(eax) */ /* 0x3802404D: test al, al */
   2354     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2355     _cf = 0;
   2356     _flag_k = FK_NARROW(FK_TEST, 24);
   2357     if (TEST_Z(_flag_a, _flag_b)) goto L_3802405C; /* 0x3802404F: je 0x3802405c */
   2358 L_38024051:
   2359     /* cmp LO8(eax), 0xFFu */ /* 0x38024051: cmp al, 0xff */
   2360     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   2361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2362     _flag_k = FK_NARROW(FK_CMP, 24);
   2363     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802405C; /* 0x38024053: je 0x3802405c */
   2364 L_38024055:
   2365     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2366     SET_LO8(eax, LO8(eax) - 1); /* 0x38024055: dec al */
   2367     _flag_k = FK_NARROW(FK_DEC, 24);
   2368     MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x38024057: mov byte ptr [ecx - 1], al */
   2369     goto L_38024066; /* 0x3802405A: jmp 0x38024066 */
   2370 L_3802405C:
   2371     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2372     ecx = ecx - 1; /* 0x3802405C: dec ecx */
   2373     _flag_k = FK_DEC;
   2374     PUSH32(esp, ecx); /* 0x3802405D: push ecx */
   2375     RECOMP_ICALL(0x3804B4F6u); /* 0x3802405E: call 0x3804b4f6 */ /* not lifted */
   2376     RECOMP_FLAGS_IN();
   2377     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2378     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2379     esp = esp + 4; /* 0x38024063: add esp, 4 */
   2380     _flag_k = FK_ADD;
   2381 L_38024066:
   2382     MEM32(0x3806ECAC) = 0; /* 0x38024066: mov dword ptr [0x3806ecac], 0 */
   2383     MEM32(0x3806ECB0) = 0; /* 0x38024070: mov dword ptr [0x3806ecb0], 0 */
   2384     MEM32(0x3806ECB4) = 0; /* 0x3802407A: mov dword ptr [0x3806ecb4], 0 */
   2385     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38024084: ret  */
   2386     RECOMP_REGS_OUT();
   2387 }
   2388 
   2389 void sub_38024090(void) {
   2390     int _fpu_cmp = 0;
   2391     uint32_t _cf = 0;
   2392     int _df = 1;
   2393     uint32_t _flag_k = FK_NONE;
   2394     uint32_t _flag_a = 0, _flag_b = 0;
   2395     uint32_t _itail_tgt = 0;
   2396     RECOMP_REGS_LOCALS
   2397     RECOMP_ENTER(0x38024090u);
   2398 
   2399 L_38024090:
   2400     eax = MEM32(ecx + 0x14); /* 0x38024090: mov eax, dword ptr [ecx + 0x14] */
   2401     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38024093: ret  */
   2402     RECOMP_REGS_OUT();
   2403 }
   2404 
   2405 void sub_380240A0(void) {
   2406     int _fpu_cmp = 0;
   2407     uint32_t _cf = 0;
   2408     int _df = 1;
   2409     uint32_t _flag_k = FK_NONE;
   2410     uint32_t _flag_a = 0, _flag_b = 0;
   2411     uint32_t _itail_tgt = 0;
   2412     RECOMP_REGS_LOCALS
   2413     RECOMP_ENTER(0x380240A0u);
   2414 
   2415 L_380240A0:
   2416     eax = MEM32(ecx + 0x18); /* 0x380240A0: mov eax, dword ptr [ecx + 0x18] */
   2417     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380240A3: ret  */
   2418     RECOMP_REGS_OUT();
   2419 }
   2420 
   2421 void sub_380240B0(void) {
   2422     int _fpu_cmp = 0;
   2423     uint32_t _cf = 0;
   2424     int _df = 1;
   2425     uint32_t _flag_k = FK_NONE;
   2426     uint32_t _flag_a = 0, _flag_b = 0;
   2427     uint32_t _itail_tgt = 0;
   2428     RECOMP_REGS_LOCALS
   2429     RECOMP_ENTER(0x380240B0u);
   2430 
   2431 L_380240B0:
   2432     PUSH32(esp, ebp); /* 0x380240B0: push ebp */
   2433     ebp = esp; /* 0x380240B1: mov ebp, esp */
   2434     PUSH32(esp, 0xFFFFFFFFu); /* 0x380240B3: push -1 */
   2435     PUSH32(esp, 0x3804C580u); /* 0x380240B5: push 0x3804c580 */
   2436     eax = MEM32(FS_BASE + (0)); /* 0x380240BA: mov eax, dword ptr fs:[0] */
   2437     PUSH32(esp, eax); /* 0x380240C0: push eax */
   2438     MEM32(FS_BASE + (0)) = esp; /* 0x380240C1: mov dword ptr fs:[0], esp */
   2439     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x244u);
   2440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2441     esp = esp - 0x244u; /* 0x380240C8: sub esp, 0x244 */
   2442     _flag_k = FK_CMP;
   2443     PUSH32(esp, ebx); /* 0x380240CE: push ebx */
   2444     PUSH32(esp, esi); /* 0x380240CF: push esi */
   2445     esi = MEM32(ebp + 0xC); /* 0x380240D0: mov esi, dword ptr [ebp + 0xc] */
   2446     PUSH32(esp, edi); /* 0x380240D3: push edi */
   2447     eax = ebp + (-0x18); /* 0x380240D4: lea eax, [ebp - 0x18] */
   2448     MEM32(ebp + (-0x10)) = esp; /* 0x380240D7: mov dword ptr [ebp - 0x10], esp */
   2449     PUSH32(esp, eax); /* 0x380240DA: push eax */
   2450     ecx = esi; /* 0x380240DB: mov ecx, esi */
   2451     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x380240DD: call dword ptr [0x3804e388] */
   2452     RECOMP_FLAGS_IN();
   2453     ecx = MEM32(ebp + (-0x18)); /* 0x380240E3: mov ecx, dword ptr [ebp - 0x18] */
   2454     MEM32(ebp + (-0x14)) = ecx; /* 0x380240E6: mov dword ptr [ebp - 0x14], ecx */
   2455     ecx = esi; /* 0x380240E9: mov ecx, esi */
   2456     RECOMP_ICALL(MEM32(0x3804E398)); /* 0x380240EB: call dword ptr [0x3804e398] */
   2457     RECOMP_FLAGS_IN();
   2458     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2459     edx = 0; /* 0x380240F1: xor edx, edx */
   2460     _cf = 0;
   2461     _flag_k = FK_TEST;
   2462     edi = eax; /* 0x380240F3: mov edi, eax */
   2463     eax = MEM32(ebp + (-0x14)); /* 0x380240F5: mov eax, dword ptr [ebp - 0x14] */
   2464     MEM32(ebp + (-0x20)) = edx; /* 0x380240F8: mov dword ptr [ebp - 0x20], edx */
   2465     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2466     ecx = 0; /* 0x380240FB: xor ecx, ecx */
   2467     _cf = 0;
   2468     _flag_k = FK_TEST;
   2469     edx = ebp + (-0x28); /* 0x380240FD: lea edx, [ebp - 0x28] */
   2470     ebx = eax; /* 0x38024100: mov ebx, eax */
   2471     MEM32(ebp + (-0x28)) = eax; /* 0x38024102: mov dword ptr [ebp - 0x28], eax */
   2472     PUSH32(esp, edx); /* 0x38024105: push edx */
   2473     eax = ebp + (-0x30); /* 0x38024106: lea eax, [ebp - 0x30] */
   2474     MEM32(ebp + (-0x24)) = ecx; /* 0x38024109: mov dword ptr [ebp - 0x24], ecx */
   2475     PUSH32(esp, eax); /* 0x3802410C: push eax */
   2476     ecx = 0x3806ED00u; /* 0x3802410D: mov ecx, 0x3806ed00 */
   2477     RECOMP_ICALL(0x380248D0u); /* 0x38024112: call 0x380248d0 */ /* not lifted */
   2478     RECOMP_FLAGS_IN();
   2479     eax = MEM32(eax); /* 0x38024117: mov eax, dword ptr [eax] */
   2480     _flag_a = (uint32_t)(MEM32(eax + 0x10)); _flag_b = (uint32_t)(1);
   2481     MEM32(eax + 0x10) = MEM32(eax + 0x10) + 1; /* 0x38024119: inc dword ptr [eax + 0x10] */
   2482     _flag_k = FK_INC;
   2483     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2484     ecx = 0; /* 0x3802411C: xor ecx, ecx */
   2485     _cf = 0;
   2486     _flag_k = FK_TEST;
   2487     MEM32(ebp + (-0x20)) = ecx; /* 0x3802411E: mov dword ptr [ebp - 0x20], ecx */
   2488     ecx = ebp + (-0x28); /* 0x38024121: lea ecx, [ebp - 0x28] */
   2489     PUSH32(esp, ecx); /* 0x38024124: push ecx */
   2490     edx = ebp + (-0x30); /* 0x38024125: lea edx, [ebp - 0x30] */
   2491     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2492     eax = 0; /* 0x38024128: xor eax, eax */
   2493     _cf = 0;
   2494     _flag_k = FK_TEST;
   2495     PUSH32(esp, edx); /* 0x3802412A: push edx */
   2496     ecx = 0x3806ED00u; /* 0x3802412B: mov ecx, 0x3806ed00 */
   2497     MEM32(ebp + (-0x28)) = ebx; /* 0x38024130: mov dword ptr [ebp - 0x28], ebx */
   2498     MEM32(ebp + (-0x24)) = eax; /* 0x38024133: mov dword ptr [ebp - 0x24], eax */
   2499     RECOMP_ICALL(0x380248D0u); /* 0x38024136: call 0x380248d0 */ /* not lifted */
   2500     RECOMP_FLAGS_IN();
   2501     eax = MEM32(eax); /* 0x3802413B: mov eax, dword ptr [eax] */
   2502     _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(edi);
   2503     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2504     MEM32(eax + 0x14) = MEM32(eax + 0x14) + edi; /* 0x3802413D: add dword ptr [eax + 0x14], edi */
   2505     _flag_k = FK_ADD;
   2506     eax = MEM32(0x3806ED14); /* 0x38024140: mov eax, dword ptr [0x3806ed14] */
   2507     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2508     eax = eax + 1; /* 0x38024145: inc eax */
   2509     _flag_k = FK_INC;
   2510     /* cmp eax, 0x3E8u */ /* 0x38024146: cmp eax, 0x3e8 */
   2511     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3E8u);
   2512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2513     _flag_k = FK_CMP;
   2514     MEM32(0x3806ED14) = eax; /* 0x3802414B: mov dword ptr [0x3806ed14], eax */
   2515     if (CMP_LE(_flag_a, _flag_b)) goto L_38024166; /* 0x38024150: jle 0x38024166 */
   2516 L_38024152:
   2517     ecx = 0x3806ED00u; /* 0x38024152: mov ecx, 0x3806ed00 */
   2518     RECOMP_ICALL(0x380243B0u); /* 0x38024157: call 0x380243b0 */ /* not lifted */
   2519     RECOMP_FLAGS_IN();
   2520     MEM32(0x3806ED14) = 0; /* 0x3802415C: mov dword ptr [0x3806ed14], 0 */
   2521 L_38024166:
   2522     RECOMP_ICALL(0x380238F0u); /* 0x38024166: call 0x380238f0 */ /* not lifted */
   2523     RECOMP_FLAGS_IN();
   2524     edi = eax; /* 0x3802416B: mov edi, eax */
   2525     eax = ebp + (-0x14); /* 0x3802416D: lea eax, [ebp - 0x14] */
   2526     PUSH32(esp, eax); /* 0x38024170: push eax */
   2527     ecx = ebp + (-0x2C); /* 0x38024171: lea ecx, [ebp - 0x2c] */
   2528     PUSH32(esp, ecx); /* 0x38024174: push ecx */
   2529     ecx = edi; /* 0x38024175: mov ecx, edi */
   2530     RECOMP_ICALL(0x3800FD90u); /* 0x38024177: call 0x3800fd90 */ /* not lifted */
   2531     RECOMP_FLAGS_IN();
   2532     eax = MEM32(eax); /* 0x3802417C: mov eax, dword ptr [eax] */
   2533     ecx = MEM32(edi + 0x4); /* 0x3802417E: mov ecx, dword ptr [edi + 4] */
   2534     /* cmp eax, ecx */ /* 0x38024181: cmp eax, ecx */
   2535     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2537     _flag_k = FK_CMP;
   2538     MEM32(ebp + (-0x18)) = eax; /* 0x38024183: mov dword ptr [ebp - 0x18], eax */
   2539     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024195; /* 0x38024186: je 0x38024195 */
   2540 L_38024188:
   2541     edx = MEM32(ebp + (-0x14)); /* 0x38024188: mov edx, dword ptr [ebp - 0x14] */
   2542     /* cmp edx, MEM32(eax + 0xC) */ /* 0x3802418B: cmp edx, dword ptr [eax + 0xc] */
   2543     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   2544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2545     _flag_k = FK_CMP;
   2546     if (CMP_L(_flag_a, _flag_b)) goto L_38024195; /* 0x3802418E: jl 0x38024195 */
   2547 L_38024190:
   2548     eax = ebp + (-0x18); /* 0x38024190: lea eax, [ebp - 0x18] */
   2549     goto L_3802419B; /* 0x38024193: jmp 0x3802419b */
   2550 L_38024195:
   2551     MEM32(ebp + (-0x1C)) = ecx; /* 0x38024195: mov dword ptr [ebp - 0x1c], ecx */
   2552     eax = ebp + (-0x1C); /* 0x38024198: lea eax, [ebp - 0x1c] */
   2553 L_3802419B:
   2554     eax = MEM32(eax); /* 0x3802419B: mov eax, dword ptr [eax] */
   2555     /* cmp eax, ecx */ /* 0x3802419D: cmp eax, ecx */
   2556     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2558     _flag_k = FK_CMP;
   2559     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024262; /* 0x3802419F: je 0x38024262 */
   2560 L_380241A5:
   2561     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x380241A5: call dword ptr [eax + 0x10] */
   2562     RECOMP_FLAGS_IN();
   2563     edi = eax; /* 0x380241A8: mov edi, eax */
   2564     /* test edi, edi */ /* 0x380241AA: test edi, edi */
   2565     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2566     _cf = 0;
   2567     _flag_k = FK_TEST;
   2568     MEM32(ebp + (-0x18)) = edi; /* 0x380241AC: mov dword ptr [ebp - 0x18], edi */
   2569     if (TEST_Z(_flag_a, _flag_b)) goto L_38024262; /* 0x380241AF: je 0x38024262 */
   2570 L_380241B5:
   2571     eax = MEM32(ebp + (-0x14)); /* 0x380241B5: mov eax, dword ptr [ebp - 0x14] */
   2572     ecx = edi + 0x4; /* 0x380241B8: lea ecx, [edi + 4] */
   2573     PUSH32(esp, ecx); /* 0x380241BB: push ecx */
   2574     PUSH32(esp, esi); /* 0x380241BC: push esi */
   2575     MEM32(edi + 0x18) = eax; /* 0x380241BD: mov dword ptr [edi + 0x18], eax */
   2576     RECOMP_ICALL(0x3804AE70u); /* 0x380241C0: call 0x3804ae70 */ /* not lifted */
   2577     RECOMP_FLAGS_IN();
   2578     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2579     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2580     esp = esp + 8; /* 0x380241C5: add esp, 8 */
   2581     _flag_k = FK_ADD;
   2582     ecx = esi; /* 0x380241C8: mov ecx, esi */
   2583     RECOMP_ICALL(MEM32(0x3804E374)); /* 0x380241CA: call dword ptr [0x3804e374] */
   2584     RECOMP_FLAGS_IN();
   2585     /* test eax, eax */ /* 0x380241D0: test eax, eax */
   2586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2587     _cf = 0;
   2588     _flag_k = FK_TEST;
   2589     if (TEST_NZ(_flag_a, _flag_b)) goto L_380241F7; /* 0x380241D2: jne 0x380241f7 */
   2590 L_380241D4:
   2591     edx = MEM32(edi); /* 0x380241D4: mov edx, dword ptr [edi] */
   2592     PUSH32(esp, 1); /* 0x380241D6: push 1 */
   2593     ecx = edi; /* 0x380241D8: mov ecx, edi */
   2594     RECOMP_ICALL(MEM32(edx)); /* 0x380241DA: call dword ptr [edx] */
   2595     RECOMP_FLAGS_IN();
   2596     PUSH32(esp, 0x3806C6C0u); /* 0x380241DC: push 0x3806c6c0 */
   2597     ecx = ebp + (-0x48); /* 0x380241E1: lea ecx, [ebp - 0x48] */
   2598     RECOMP_ICALL(0x38014060u); /* 0x380241E4: call 0x38014060 */ /* not lifted */
   2599     RECOMP_FLAGS_IN();
   2600     PUSH32(esp, 0x38052D38u); /* 0x380241E9: push 0x38052d38 */
   2601     eax = ebp + (-0x48); /* 0x380241EE: lea eax, [ebp - 0x48] */
   2602     PUSH32(esp, eax); /* 0x380241F1: push eax */
   2603     RECOMP_ICALL(0x3804B68Eu); /* 0x380241F2: call 0x3804b68e */ /* not lifted */
   2604     RECOMP_FLAGS_IN();
   2605 L_380241F7:
   2606     ecx = ebp + 0xF; /* 0x380241F7: lea ecx, [ebp + 0xf] */
   2607     PUSH32(esp, ecx); /* 0x380241FA: push ecx */
   2608     ecx = esi; /* 0x380241FB: mov ecx, esi */
   2609     RECOMP_ICALL(MEM32(0x3804E38C)); /* 0x380241FD: call dword ptr [0x3804e38c] */
   2610     RECOMP_FLAGS_IN();
   2611     SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x38024203: mov al, byte ptr [ebp + 0xf] */
   2612     /* test LO8(eax), LO8(eax) */ /* 0x38024206: test al, al */
   2613     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2614     _cf = 0;
   2615     _flag_k = FK_NARROW(FK_TEST, 24);
   2616     if (TEST_Z(_flag_a, _flag_b)) goto L_38024213; /* 0x38024208: je 0x38024213 */
   2617 L_3802420A:
   2618     /* cmp LO8(eax), 1 */ /* 0x3802420A: cmp al, 1 */
   2619     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2621     _flag_k = FK_NARROW(FK_CMP, 24);
   2622     if (CMP_NE(_flag_a, _flag_b)) goto L_38024262; /* 0x3802420C: jne 0x38024262 */
   2623 L_3802420E:
   2624     MEM8(edi + 0xC) = (uint8_t)(LO8(eax)); /* 0x3802420E: mov byte ptr [edi + 0xc], al */
   2625     goto L_38024217; /* 0x38024211: jmp 0x38024217 */
   2626 L_38024213:
   2627     MEM8(edi + 0xC) = (uint8_t)(0); /* 0x38024213: mov byte ptr [edi + 0xc], 0 */
   2628 L_38024217:
   2629     edx = MEM32(edi); /* 0x38024217: mov edx, dword ptr [edi] */
   2630     PUSH32(esp, esi); /* 0x38024219: push esi */
   2631     ecx = edi; /* 0x3802421A: mov ecx, edi */
   2632     MEM32(ebp + (-0x4)) = 0; /* 0x3802421C: mov dword ptr [ebp - 4], 0 */
   2633     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x38024223: call dword ptr [edx + 0x18] */
   2634     RECOMP_FLAGS_IN();
   2635     ecx = esi; /* 0x38024226: mov ecx, esi */
   2636     ebx = eax; /* 0x38024228: mov ebx, eax */
   2637     RECOMP_ICALL(MEM32(0x3804E374)); /* 0x3802422A: call dword ptr [0x3804e374] */
   2638     RECOMP_FLAGS_IN();
   2639     /* test eax, eax */ /* 0x38024230: test eax, eax */
   2640     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2641     _cf = 0;
   2642     _flag_k = FK_TEST;
   2643     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802424F; /* 0x38024232: jne 0x3802424f */
   2644 L_38024234:
   2645     PUSH32(esp, 0x3806C6B4u); /* 0x38024234: push 0x3806c6b4 */
   2646     ecx = ebp + (-0x38); /* 0x38024239: lea ecx, [ebp - 0x38] */
   2647     RECOMP_ICALL(0x38014060u); /* 0x3802423C: call 0x38014060 */ /* not lifted */
   2648     RECOMP_FLAGS_IN();
   2649     PUSH32(esp, 0x38052D38u); /* 0x38024241: push 0x38052d38 */
   2650     eax = ebp + (-0x38); /* 0x38024246: lea eax, [ebp - 0x38] */
   2651     PUSH32(esp, eax); /* 0x38024249: push eax */
   2652     RECOMP_ICALL(0x3804B68Eu); /* 0x3802424A: call 0x3804b68e */ /* not lifted */
   2653     RECOMP_FLAGS_IN();
   2654 L_3802424F:
   2655     /* test ebx, ebx */ /* 0x3802424F: test ebx, ebx */
   2656     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2657     _cf = 0;
   2658     _flag_k = FK_TEST;
   2659     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38024251: mov dword ptr [ebp - 4], 0xffffffff */
   2660     if (TEST_Z(_flag_a, _flag_b)) goto L_38024275; /* 0x38024258: je 0x38024275 */
   2661 L_3802425A:
   2662     edx = MEM32(edi); /* 0x3802425A: mov edx, dword ptr [edi] */
   2663     PUSH32(esp, 1); /* 0x3802425C: push 1 */
   2664     ecx = edi; /* 0x3802425E: mov ecx, edi */
   2665     RECOMP_ICALL(MEM32(edx)); /* 0x38024260: call dword ptr [edx] */
   2666     RECOMP_FLAGS_IN();
   2667 L_38024262:
   2668     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2669     eax = 0; /* 0x38024262: xor eax, eax */
   2670     _cf = 0;
   2671     _flag_k = FK_TEST;
   2672     ecx = MEM32(ebp + (-0xC)); /* 0x38024264: mov ecx, dword ptr [ebp - 0xc] */
   2673     MEM32(FS_BASE + (0)) = ecx; /* 0x38024267: mov dword ptr fs:[0], ecx */
   2674     edi = POP32_VAL(esp); /* 0x3802426E: pop edi */
   2675     esi = POP32_VAL(esp); /* 0x3802426F: pop esi */
   2676     ebx = POP32_VAL(esp); /* 0x38024270: pop ebx */
   2677     esp = ebp; /* 0x38024271: mov esp, ebp */
   2678     ebp = POP32_VAL(esp); /* 0x38024273: pop ebp */
   2679     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38024274: ret  */
   2680 L_38024275:
   2681     ecx = MEM32(ebp + (-0xC)); /* 0x38024275: mov ecx, dword ptr [ebp - 0xc] */
   2682     eax = edi; /* 0x38024278: mov eax, edi */
   2683     edi = POP32_VAL(esp); /* 0x3802427A: pop edi */
   2684     esi = POP32_VAL(esp); /* 0x3802427B: pop esi */
   2685     MEM32(FS_BASE + (0)) = ecx; /* 0x3802427C: mov dword ptr fs:[0], ecx */
   2686     ebx = POP32_VAL(esp); /* 0x38024283: pop ebx */
   2687     esp = ebp; /* 0x38024284: mov esp, ebp */
   2688     ebp = POP32_VAL(esp); /* 0x38024286: pop ebp */
   2689     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38024287: ret  */
   2690     RECOMP_REGS_OUT();
   2691 }
   2692 
   2693 void sub_38024288(void) {
   2694     int _fpu_cmp = 0;
   2695     uint32_t _cf = 0;
   2696     int _df = 1;
   2697     uint32_t _flag_k = FK_NONE;
   2698     uint32_t _flag_a = 0, _flag_b = 0;
   2699     uint32_t _itail_tgt = 0;
   2700     RECOMP_REGS_LOCALS
   2701     RECOMP_ENTER(0x38024288u);
   2702 
   2703 L_38024288:
   2704     ecx = MEM32(ebp + (-0x18)); /* 0x38024288: mov ecx, dword ptr [ebp - 0x18] */
   2705     /* test ecx, ecx */ /* 0x3802428B: test ecx, ecx */
   2706     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2707     _cf = 0;
   2708     _flag_k = FK_TEST;
   2709     if (TEST_Z(_flag_a, _flag_b)) goto L_38024295; /* 0x3802428D: je 0x38024295 */
   2710 L_3802428F:
   2711     eax = MEM32(ecx); /* 0x3802428F: mov eax, dword ptr [ecx] */
   2712     PUSH32(esp, 1); /* 0x38024291: push 1 */
   2713     RECOMP_ICALL(MEM32(eax)); /* 0x38024293: call dword ptr [eax] */
   2714     RECOMP_FLAGS_IN();
   2715 L_38024295:
   2716     ecx = MEM32(ebp + (-0x14)); /* 0x38024295: mov ecx, dword ptr [ebp - 0x14] */
   2717     PUSH32(esp, ecx); /* 0x38024298: push ecx */
   2718     RECOMP_ICALL(0x38023F60u); /* 0x38024299: call 0x38023f60 */ /* not lifted */
   2719     RECOMP_FLAGS_IN();
   2720     eax = MEM32(eax + 0x4); /* 0x3802429E: mov eax, dword ptr [eax + 4] */
   2721     esi = MEM32(0x3804E080); /* 0x380242A1: mov esi, dword ptr [0x3804e080] */
   2722     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2723     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2724     esp = esp + 4; /* 0x380242A7: add esp, 4 */
   2725     _flag_k = FK_ADD;
   2726     /* test eax, eax */ /* 0x380242AA: test eax, eax */
   2727     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2728     _cf = 0;
   2729     _flag_k = FK_TEST;
   2730     if (TEST_Z(_flag_a, _flag_b)) goto L_380242B0; /* 0x380242AC: je 0x380242b0 */
   2731 L_380242AE:
   2732     esi = eax; /* 0x380242AE: mov esi, eax */
   2733 L_380242B0:
   2734     ecx = MEM32(ebp + (-0x2C)); /* 0x380242B0: mov ecx, dword ptr [ebp - 0x2c] */
   2735     RECOMP_ICALL(0x38014120u); /* 0x380242B3: call 0x38014120 */ /* not lifted */
   2736     RECOMP_FLAGS_IN();
   2737     PUSH32(esp, eax); /* 0x380242B8: push eax */
   2738     PUSH32(esp, esi); /* 0x380242B9: push esi */
   2739     edx = ebp + (-0x154); /* 0x380242BA: lea edx, [ebp - 0x154] */
   2740     PUSH32(esp, 0x3806C67Cu); /* 0x380242C0: push 0x3806c67c */
   2741     PUSH32(esp, edx); /* 0x380242C5: push edx */
   2742     RECOMP_ICALL(MEM32(0x3804E09C)); /* 0x380242C6: call dword ptr [0x3804e09c] */
   2743     RECOMP_FLAGS_IN();
   2744     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2745     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2746     esp = esp + 0x10u; /* 0x380242CC: add esp, 0x10 */
   2747     _flag_k = FK_ADD;
   2748     eax = ebp + (-0x154); /* 0x380242CF: lea eax, [ebp - 0x154] */
   2749     PUSH32(esp, eax); /* 0x380242D5: push eax */
   2750     ecx = ebp + (-0x58); /* 0x380242D6: lea ecx, [ebp - 0x58] */
   2751     RECOMP_ICALL(0x38014060u); /* 0x380242D9: call 0x38014060 */ /* not lifted */
   2752     RECOMP_FLAGS_IN();
   2753     PUSH32(esp, 0x38052D38u); /* 0x380242DE: push 0x38052d38 */
   2754     ecx = ebp + (-0x58); /* 0x380242E3: lea ecx, [ebp - 0x58] */
   2755     PUSH32(esp, ecx); /* 0x380242E6: push ecx */
   2756     RECOMP_ICALL(0x3804B68Eu); /* 0x380242E7: call 0x3804b68e */ /* not lifted */
   2757     RECOMP_FLAGS_IN();
   2758     ecx = MEM32(ebp + (-0x18)); /* 0x380242EC: mov ecx, dword ptr [ebp - 0x18] */
   2759     /* test ecx, ecx */ /* 0x380242EF: test ecx, ecx */
   2760     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2761     _cf = 0;
   2762     _flag_k = FK_TEST;
   2763     if (TEST_Z(_flag_a, _flag_b)) goto L_380242F9; /* 0x380242F1: je 0x380242f9 */
   2764 L_380242F3:
   2765     edx = MEM32(ecx); /* 0x380242F3: mov edx, dword ptr [ecx] */
   2766     PUSH32(esp, 1); /* 0x380242F5: push 1 */
   2767     RECOMP_ICALL(MEM32(edx)); /* 0x380242F7: call dword ptr [edx] */
   2768     RECOMP_FLAGS_IN();
   2769 L_380242F9:
   2770     eax = MEM32(ebp + (-0x14)); /* 0x380242F9: mov eax, dword ptr [ebp - 0x14] */
   2771     PUSH32(esp, eax); /* 0x380242FC: push eax */
   2772     RECOMP_ICALL(0x38023F60u); /* 0x380242FD: call 0x38023f60 */ /* not lifted */
   2773     RECOMP_FLAGS_IN();
   2774     eax = MEM32(eax + 0x4); /* 0x38024302: mov eax, dword ptr [eax + 4] */
   2775     esi = MEM32(0x3804E080); /* 0x38024305: mov esi, dword ptr [0x3804e080] */
   2776     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2777     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2778     esp = esp + 4; /* 0x3802430B: add esp, 4 */
   2779     _flag_k = FK_ADD;
   2780     /* test eax, eax */ /* 0x3802430E: test eax, eax */
   2781     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2782     _cf = 0;
   2783     _flag_k = FK_TEST;
   2784     if (TEST_Z(_flag_a, _flag_b)) goto L_38024314; /* 0x38024310: je 0x38024314 */
   2785 L_38024312:
   2786     esi = eax; /* 0x38024312: mov esi, eax */
   2787 L_38024314:
   2788     ecx = MEM32(ebp + (-0x1C)); /* 0x38024314: mov ecx, dword ptr [ebp - 0x1c] */
   2789     edx = MEM32(ecx); /* 0x38024317: mov edx, dword ptr [ecx] */
   2790     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x38024319: call dword ptr [edx + 4] */
   2791     RECOMP_FLAGS_IN();
   2792     PUSH32(esp, eax); /* 0x3802431C: push eax */
   2793     PUSH32(esp, esi); /* 0x3802431D: push esi */
   2794     eax = ebp + (-0x154); /* 0x3802431E: lea eax, [ebp - 0x154] */
   2795     PUSH32(esp, 0x3806C648u); /* 0x38024324: push 0x3806c648 */
   2796     PUSH32(esp, eax); /* 0x38024329: push eax */
   2797     RECOMP_ICALL(MEM32(0x3804E09C)); /* 0x3802432A: call dword ptr [0x3804e09c] */
   2798     RECOMP_FLAGS_IN();
   2799     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2800     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2801     esp = esp + 0x10u; /* 0x38024330: add esp, 0x10 */
   2802     _flag_k = FK_ADD;
   2803     ecx = ebp + (-0x154); /* 0x38024333: lea ecx, [ebp - 0x154] */
   2804     PUSH32(esp, ecx); /* 0x38024339: push ecx */
   2805     ecx = ebp + (-0x50); /* 0x3802433A: lea ecx, [ebp - 0x50] */
   2806     RECOMP_ICALL(0x38014060u); /* 0x3802433D: call 0x38014060 */ /* not lifted */
   2807     RECOMP_FLAGS_IN();
   2808     PUSH32(esp, 0x38052D38u); /* 0x38024342: push 0x38052d38 */
   2809     edx = ebp + (-0x50); /* 0x38024347: lea edx, [ebp - 0x50] */
   2810     PUSH32(esp, edx); /* 0x3802434A: push edx */
   2811     RECOMP_ICALL(0x3804B68Eu); /* 0x3802434B: call 0x3804b68e */ /* not lifted */
   2812     RECOMP_FLAGS_IN();
   2813     ecx = MEM32(ebp + (-0x18)); /* 0x38024350: mov ecx, dword ptr [ebp - 0x18] */
   2814     /* test ecx, ecx */ /* 0x38024353: test ecx, ecx */
   2815     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2816     _cf = 0;
   2817     _flag_k = FK_TEST;
   2818     if (TEST_Z(_flag_a, _flag_b)) goto L_3802435D; /* 0x38024355: je 0x3802435d */
   2819 L_38024357:
   2820     eax = MEM32(ecx); /* 0x38024357: mov eax, dword ptr [ecx] */
   2821     PUSH32(esp, 1); /* 0x38024359: push 1 */
   2822     RECOMP_ICALL(MEM32(eax)); /* 0x3802435B: call dword ptr [eax] */
   2823     RECOMP_FLAGS_IN();
   2824 L_3802435D:
   2825     ecx = MEM32(ebp + (-0x14)); /* 0x3802435D: mov ecx, dword ptr [ebp - 0x14] */
   2826     PUSH32(esp, ecx); /* 0x38024360: push ecx */
   2827     RECOMP_ICALL(0x38023F60u); /* 0x38024361: call 0x38023f60 */ /* not lifted */
   2828     RECOMP_FLAGS_IN();
   2829     eax = MEM32(eax + 0x4); /* 0x38024366: mov eax, dword ptr [eax + 4] */
   2830     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2831     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2832     esp = esp + 4; /* 0x38024369: add esp, 4 */
   2833     _flag_k = FK_ADD;
   2834     /* test eax, eax */ /* 0x3802436C: test eax, eax */
   2835     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2836     _cf = 0;
   2837     _flag_k = FK_TEST;
   2838     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024375; /* 0x3802436E: jne 0x38024375 */
   2839 L_38024370:
   2840     eax = MEM32(0x3804E080); /* 0x38024370: mov eax, dword ptr [0x3804e080] */
   2841 L_38024375:
   2842     PUSH32(esp, eax); /* 0x38024375: push eax */
   2843     edx = ebp + (-0x250); /* 0x38024376: lea edx, [ebp - 0x250] */
   2844     PUSH32(esp, 0x3806C610u); /* 0x3802437C: push 0x3806c610 */
   2845     PUSH32(esp, edx); /* 0x38024381: push edx */
   2846     RECOMP_ICALL(MEM32(0x3804E09C)); /* 0x38024382: call dword ptr [0x3804e09c] */
   2847     RECOMP_FLAGS_IN();
   2848     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2849     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2850     esp = esp + 0xCu; /* 0x38024388: add esp, 0xc */
   2851     _flag_k = FK_ADD;
   2852     eax = ebp + (-0x250); /* 0x3802438B: lea eax, [ebp - 0x250] */
   2853     PUSH32(esp, eax); /* 0x38024391: push eax */
   2854     ecx = ebp + (-0x40); /* 0x38024392: lea ecx, [ebp - 0x40] */
   2855     RECOMP_ICALL(0x38014060u); /* 0x38024395: call 0x38014060 */ /* not lifted */
   2856     RECOMP_FLAGS_IN();
   2857     PUSH32(esp, 0x38052D38u); /* 0x3802439A: push 0x38052d38 */
   2858     ecx = ebp + (-0x40); /* 0x3802439F: lea ecx, [ebp - 0x40] */
   2859     PUSH32(esp, ecx); /* 0x380243A2: push ecx */
   2860     RECOMP_ICALL(0x3804B68Eu); /* 0x380243A3: call 0x3804b68e */ /* not lifted */
   2861     RECOMP_FLAGS_IN();
   2862     /* nop */ /* 0x380243A8: nop  */
   2863     /* nop */ /* 0x380243A9: nop  */
   2864     /* nop */ /* 0x380243AA: nop  */
   2865     /* nop */ /* 0x380243AB: nop  */
   2866     /* nop */ /* 0x380243AC: nop  */
   2867     /* nop */ /* 0x380243AD: nop  */
   2868     /* nop */ /* 0x380243AE: nop  */
   2869     /* nop */ /* 0x380243AF: nop  */
   2870     PUSH32(esp, esi); /* 0x380243B0: push esi */
   2871     esi = ecx; /* 0x380243B1: mov esi, ecx */
   2872     ecx = MEM32(esi + 0x4); /* 0x380243B3: mov ecx, dword ptr [esi + 4] */
   2873     eax = MEM32(ecx); /* 0x380243B6: mov eax, dword ptr [ecx] */
   2874     /* cmp eax, ecx */ /* 0x380243B8: cmp eax, ecx */
   2875     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2877     _flag_k = FK_CMP;
   2878     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243EF; /* 0x380243BA: je 0x380243ef */
   2879 L_380243BC:
   2880     ecx = MEM32(eax + 0x8); /* 0x380243BC: mov ecx, dword ptr [eax + 8] */
   2881     SET_LO8(edx, MEM8(ecx + 0x19)); /* 0x380243BF: mov dl, byte ptr [ecx + 0x19] */
   2882     /* test LO8(edx), LO8(edx) */ /* 0x380243C2: test dl, dl */
   2883     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2884     _cf = 0;
   2885     _flag_k = FK_NARROW(FK_TEST, 24);
   2886     if (TEST_NZ(_flag_a, _flag_b)) goto L_380243D1; /* 0x380243C4: jne 0x380243d1 */
   2887 L_380243C6:
   2888     PUSH32(esp, ecx); /* 0x380243C6: push ecx */
   2889     RECOMP_ICALL(0x38025110u); /* 0x380243C7: call 0x38025110 */ /* not lifted */
   2890     RECOMP_FLAGS_IN();
   2891     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2892     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2893     esp = esp + 4; /* 0x380243CC: add esp, 4 */
   2894     _flag_k = FK_ADD;
   2895     goto L_380243EA; /* 0x380243CF: jmp 0x380243ea */
   2896 L_380243D1:
   2897     ecx = MEM32(eax + 0x4); /* 0x380243D1: mov ecx, dword ptr [eax + 4] */
   2898     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243D4: cmp eax, dword ptr [ecx + 8] */
   2899     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2901     _flag_k = FK_CMP;
   2902     if (CMP_NE(_flag_a, _flag_b)) goto L_380243E3; /* 0x380243D7: jne 0x380243e3 */
   2903 L_380243D9:
   2904     eax = ecx; /* 0x380243D9: mov eax, ecx */
   2905     ecx = MEM32(ecx + 0x4); /* 0x380243DB: mov ecx, dword ptr [ecx + 4] */
   2906     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243DE: cmp eax, dword ptr [ecx + 8] */
   2907     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2909     _flag_k = FK_CMP;
   2910     RECOMP_BACKEDGE();
   2911     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243D9; /* 0x380243E1: je 0x380243d9 */
   2912 L_380243E3:
   2913     /* cmp MEM32(eax + 0x8), ecx */ /* 0x380243E3: cmp dword ptr [eax + 8], ecx */
   2914     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx);
   2915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2916     _flag_k = FK_CMP;
   2917     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243EA; /* 0x380243E6: je 0x380243ea */
   2918 L_380243E8:
   2919     eax = ecx; /* 0x380243E8: mov eax, ecx */
   2920 L_380243EA:
   2921     /* cmp eax, MEM32(esi + 0x4) */ /* 0x380243EA: cmp eax, dword ptr [esi + 4] */
   2922     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   2923     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2924     _flag_k = FK_CMP;
   2925     RECOMP_BACKEDGE();
   2926     if (CMP_NE(_flag_a, _flag_b)) goto L_380243BC; /* 0x380243ED: jne 0x380243bc */
   2927 L_380243EF:
   2928     esi = POP32_VAL(esp); /* 0x380243EF: pop esi */
   2929     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380243F0: ret  */
   2930     RECOMP_REGS_OUT();
   2931 }
   2932 
   2933 void sub_380242EC(void) {
   2934     int _fpu_cmp = 0;
   2935     uint32_t _cf = 0;
   2936     int _df = 1;
   2937     uint32_t _flag_k = FK_NONE;
   2938     uint32_t _flag_a = 0, _flag_b = 0;
   2939     uint32_t _itail_tgt = 0;
   2940     RECOMP_REGS_LOCALS
   2941     RECOMP_ENTER(0x380242ECu);
   2942 
   2943 L_380242EC:
   2944     ecx = MEM32(ebp + (-0x18)); /* 0x380242EC: mov ecx, dword ptr [ebp - 0x18] */
   2945     /* test ecx, ecx */ /* 0x380242EF: test ecx, ecx */
   2946     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2947     _cf = 0;
   2948     _flag_k = FK_TEST;
   2949     if (TEST_Z(_flag_a, _flag_b)) goto L_380242F9; /* 0x380242F1: je 0x380242f9 */
   2950 L_380242F3:
   2951     edx = MEM32(ecx); /* 0x380242F3: mov edx, dword ptr [ecx] */
   2952     PUSH32(esp, 1); /* 0x380242F5: push 1 */
   2953     RECOMP_ICALL(MEM32(edx)); /* 0x380242F7: call dword ptr [edx] */
   2954     RECOMP_FLAGS_IN();
   2955 L_380242F9:
   2956     eax = MEM32(ebp + (-0x14)); /* 0x380242F9: mov eax, dword ptr [ebp - 0x14] */
   2957     PUSH32(esp, eax); /* 0x380242FC: push eax */
   2958     RECOMP_ICALL(0x38023F60u); /* 0x380242FD: call 0x38023f60 */ /* not lifted */
   2959     RECOMP_FLAGS_IN();
   2960     eax = MEM32(eax + 0x4); /* 0x38024302: mov eax, dword ptr [eax + 4] */
   2961     esi = MEM32(0x3804E080); /* 0x38024305: mov esi, dword ptr [0x3804e080] */
   2962     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2963     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2964     esp = esp + 4; /* 0x3802430B: add esp, 4 */
   2965     _flag_k = FK_ADD;
   2966     /* test eax, eax */ /* 0x3802430E: test eax, eax */
   2967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2968     _cf = 0;
   2969     _flag_k = FK_TEST;
   2970     if (TEST_Z(_flag_a, _flag_b)) goto L_38024314; /* 0x38024310: je 0x38024314 */
   2971 L_38024312:
   2972     esi = eax; /* 0x38024312: mov esi, eax */
   2973 L_38024314:
   2974     ecx = MEM32(ebp + (-0x1C)); /* 0x38024314: mov ecx, dword ptr [ebp - 0x1c] */
   2975     edx = MEM32(ecx); /* 0x38024317: mov edx, dword ptr [ecx] */
   2976     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x38024319: call dword ptr [edx + 4] */
   2977     RECOMP_FLAGS_IN();
   2978     PUSH32(esp, eax); /* 0x3802431C: push eax */
   2979     PUSH32(esp, esi); /* 0x3802431D: push esi */
   2980     eax = ebp + (-0x154); /* 0x3802431E: lea eax, [ebp - 0x154] */
   2981     PUSH32(esp, 0x3806C648u); /* 0x38024324: push 0x3806c648 */
   2982     PUSH32(esp, eax); /* 0x38024329: push eax */
   2983     RECOMP_ICALL(MEM32(0x3804E09C)); /* 0x3802432A: call dword ptr [0x3804e09c] */
   2984     RECOMP_FLAGS_IN();
   2985     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2986     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2987     esp = esp + 0x10u; /* 0x38024330: add esp, 0x10 */
   2988     _flag_k = FK_ADD;
   2989     ecx = ebp + (-0x154); /* 0x38024333: lea ecx, [ebp - 0x154] */
   2990     PUSH32(esp, ecx); /* 0x38024339: push ecx */
   2991     ecx = ebp + (-0x50); /* 0x3802433A: lea ecx, [ebp - 0x50] */
   2992     RECOMP_ICALL(0x38014060u); /* 0x3802433D: call 0x38014060 */ /* not lifted */
   2993     RECOMP_FLAGS_IN();
   2994     PUSH32(esp, 0x38052D38u); /* 0x38024342: push 0x38052d38 */
   2995     edx = ebp + (-0x50); /* 0x38024347: lea edx, [ebp - 0x50] */
   2996     PUSH32(esp, edx); /* 0x3802434A: push edx */
   2997     RECOMP_ICALL(0x3804B68Eu); /* 0x3802434B: call 0x3804b68e */ /* not lifted */
   2998     RECOMP_FLAGS_IN();
   2999     ecx = MEM32(ebp + (-0x18)); /* 0x38024350: mov ecx, dword ptr [ebp - 0x18] */
   3000     /* test ecx, ecx */ /* 0x38024353: test ecx, ecx */
   3001     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3002     _cf = 0;
   3003     _flag_k = FK_TEST;
   3004     if (TEST_Z(_flag_a, _flag_b)) goto L_3802435D; /* 0x38024355: je 0x3802435d */
   3005 L_38024357:
   3006     eax = MEM32(ecx); /* 0x38024357: mov eax, dword ptr [ecx] */
   3007     PUSH32(esp, 1); /* 0x38024359: push 1 */
   3008     RECOMP_ICALL(MEM32(eax)); /* 0x3802435B: call dword ptr [eax] */
   3009     RECOMP_FLAGS_IN();
   3010 L_3802435D:
   3011     ecx = MEM32(ebp + (-0x14)); /* 0x3802435D: mov ecx, dword ptr [ebp - 0x14] */
   3012     PUSH32(esp, ecx); /* 0x38024360: push ecx */
   3013     RECOMP_ICALL(0x38023F60u); /* 0x38024361: call 0x38023f60 */ /* not lifted */
   3014     RECOMP_FLAGS_IN();
   3015     eax = MEM32(eax + 0x4); /* 0x38024366: mov eax, dword ptr [eax + 4] */
   3016     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3017     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3018     esp = esp + 4; /* 0x38024369: add esp, 4 */
   3019     _flag_k = FK_ADD;
   3020     /* test eax, eax */ /* 0x3802436C: test eax, eax */
   3021     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3022     _cf = 0;
   3023     _flag_k = FK_TEST;
   3024     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024375; /* 0x3802436E: jne 0x38024375 */
   3025 L_38024370:
   3026     eax = MEM32(0x3804E080); /* 0x38024370: mov eax, dword ptr [0x3804e080] */
   3027 L_38024375:
   3028     PUSH32(esp, eax); /* 0x38024375: push eax */
   3029     edx = ebp + (-0x250); /* 0x38024376: lea edx, [ebp - 0x250] */
   3030     PUSH32(esp, 0x3806C610u); /* 0x3802437C: push 0x3806c610 */
   3031     PUSH32(esp, edx); /* 0x38024381: push edx */
   3032     RECOMP_ICALL(MEM32(0x3804E09C)); /* 0x38024382: call dword ptr [0x3804e09c] */
   3033     RECOMP_FLAGS_IN();
   3034     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3035     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3036     esp = esp + 0xCu; /* 0x38024388: add esp, 0xc */
   3037     _flag_k = FK_ADD;
   3038     eax = ebp + (-0x250); /* 0x3802438B: lea eax, [ebp - 0x250] */
   3039     PUSH32(esp, eax); /* 0x38024391: push eax */
   3040     ecx = ebp + (-0x40); /* 0x38024392: lea ecx, [ebp - 0x40] */
   3041     RECOMP_ICALL(0x38014060u); /* 0x38024395: call 0x38014060 */ /* not lifted */
   3042     RECOMP_FLAGS_IN();
   3043     PUSH32(esp, 0x38052D38u); /* 0x3802439A: push 0x38052d38 */
   3044     ecx = ebp + (-0x40); /* 0x3802439F: lea ecx, [ebp - 0x40] */
   3045     PUSH32(esp, ecx); /* 0x380243A2: push ecx */
   3046     RECOMP_ICALL(0x3804B68Eu); /* 0x380243A3: call 0x3804b68e */ /* not lifted */
   3047     RECOMP_FLAGS_IN();
   3048     /* nop */ /* 0x380243A8: nop  */
   3049     /* nop */ /* 0x380243A9: nop  */
   3050     /* nop */ /* 0x380243AA: nop  */
   3051     /* nop */ /* 0x380243AB: nop  */
   3052     /* nop */ /* 0x380243AC: nop  */
   3053     /* nop */ /* 0x380243AD: nop  */
   3054     /* nop */ /* 0x380243AE: nop  */
   3055     /* nop */ /* 0x380243AF: nop  */
   3056     PUSH32(esp, esi); /* 0x380243B0: push esi */
   3057     esi = ecx; /* 0x380243B1: mov esi, ecx */
   3058     ecx = MEM32(esi + 0x4); /* 0x380243B3: mov ecx, dword ptr [esi + 4] */
   3059     eax = MEM32(ecx); /* 0x380243B6: mov eax, dword ptr [ecx] */
   3060     /* cmp eax, ecx */ /* 0x380243B8: cmp eax, ecx */
   3061     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3063     _flag_k = FK_CMP;
   3064     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243EF; /* 0x380243BA: je 0x380243ef */
   3065 L_380243BC:
   3066     ecx = MEM32(eax + 0x8); /* 0x380243BC: mov ecx, dword ptr [eax + 8] */
   3067     SET_LO8(edx, MEM8(ecx + 0x19)); /* 0x380243BF: mov dl, byte ptr [ecx + 0x19] */
   3068     /* test LO8(edx), LO8(edx) */ /* 0x380243C2: test dl, dl */
   3069     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3070     _cf = 0;
   3071     _flag_k = FK_NARROW(FK_TEST, 24);
   3072     if (TEST_NZ(_flag_a, _flag_b)) goto L_380243D1; /* 0x380243C4: jne 0x380243d1 */
   3073 L_380243C6:
   3074     PUSH32(esp, ecx); /* 0x380243C6: push ecx */
   3075     RECOMP_ICALL(0x38025110u); /* 0x380243C7: call 0x38025110 */ /* not lifted */
   3076     RECOMP_FLAGS_IN();
   3077     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3078     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3079     esp = esp + 4; /* 0x380243CC: add esp, 4 */
   3080     _flag_k = FK_ADD;
   3081     goto L_380243EA; /* 0x380243CF: jmp 0x380243ea */
   3082 L_380243D1:
   3083     ecx = MEM32(eax + 0x4); /* 0x380243D1: mov ecx, dword ptr [eax + 4] */
   3084     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243D4: cmp eax, dword ptr [ecx + 8] */
   3085     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3087     _flag_k = FK_CMP;
   3088     if (CMP_NE(_flag_a, _flag_b)) goto L_380243E3; /* 0x380243D7: jne 0x380243e3 */
   3089 L_380243D9:
   3090     eax = ecx; /* 0x380243D9: mov eax, ecx */
   3091     ecx = MEM32(ecx + 0x4); /* 0x380243DB: mov ecx, dword ptr [ecx + 4] */
   3092     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243DE: cmp eax, dword ptr [ecx + 8] */
   3093     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3094     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3095     _flag_k = FK_CMP;
   3096     RECOMP_BACKEDGE();
   3097     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243D9; /* 0x380243E1: je 0x380243d9 */
   3098 L_380243E3:
   3099     /* cmp MEM32(eax + 0x8), ecx */ /* 0x380243E3: cmp dword ptr [eax + 8], ecx */
   3100     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx);
   3101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3102     _flag_k = FK_CMP;
   3103     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243EA; /* 0x380243E6: je 0x380243ea */
   3104 L_380243E8:
   3105     eax = ecx; /* 0x380243E8: mov eax, ecx */
   3106 L_380243EA:
   3107     /* cmp eax, MEM32(esi + 0x4) */ /* 0x380243EA: cmp eax, dword ptr [esi + 4] */
   3108     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3110     _flag_k = FK_CMP;
   3111     RECOMP_BACKEDGE();
   3112     if (CMP_NE(_flag_a, _flag_b)) goto L_380243BC; /* 0x380243ED: jne 0x380243bc */
   3113 L_380243EF:
   3114     esi = POP32_VAL(esp); /* 0x380243EF: pop esi */
   3115     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380243F0: ret  */
   3116     RECOMP_REGS_OUT();
   3117 }
   3118 
   3119 void sub_38024350(void) {
   3120     int _fpu_cmp = 0;
   3121     uint32_t _cf = 0;
   3122     int _df = 1;
   3123     uint32_t _flag_k = FK_NONE;
   3124     uint32_t _flag_a = 0, _flag_b = 0;
   3125     uint32_t _itail_tgt = 0;
   3126     RECOMP_REGS_LOCALS
   3127     RECOMP_ENTER(0x38024350u);
   3128 
   3129 L_38024350:
   3130     ecx = MEM32(ebp + (-0x18)); /* 0x38024350: mov ecx, dword ptr [ebp - 0x18] */
   3131     /* test ecx, ecx */ /* 0x38024353: test ecx, ecx */
   3132     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3133     _cf = 0;
   3134     _flag_k = FK_TEST;
   3135     if (TEST_Z(_flag_a, _flag_b)) goto L_3802435D; /* 0x38024355: je 0x3802435d */
   3136 L_38024357:
   3137     eax = MEM32(ecx); /* 0x38024357: mov eax, dword ptr [ecx] */
   3138     PUSH32(esp, 1); /* 0x38024359: push 1 */
   3139     RECOMP_ICALL(MEM32(eax)); /* 0x3802435B: call dword ptr [eax] */
   3140     RECOMP_FLAGS_IN();
   3141 L_3802435D:
   3142     ecx = MEM32(ebp + (-0x14)); /* 0x3802435D: mov ecx, dword ptr [ebp - 0x14] */
   3143     PUSH32(esp, ecx); /* 0x38024360: push ecx */
   3144     RECOMP_ICALL(0x38023F60u); /* 0x38024361: call 0x38023f60 */ /* not lifted */
   3145     RECOMP_FLAGS_IN();
   3146     eax = MEM32(eax + 0x4); /* 0x38024366: mov eax, dword ptr [eax + 4] */
   3147     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3148     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3149     esp = esp + 4; /* 0x38024369: add esp, 4 */
   3150     _flag_k = FK_ADD;
   3151     /* test eax, eax */ /* 0x3802436C: test eax, eax */
   3152     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3153     _cf = 0;
   3154     _flag_k = FK_TEST;
   3155     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024375; /* 0x3802436E: jne 0x38024375 */
   3156 L_38024370:
   3157     eax = MEM32(0x3804E080); /* 0x38024370: mov eax, dword ptr [0x3804e080] */
   3158 L_38024375:
   3159     PUSH32(esp, eax); /* 0x38024375: push eax */
   3160     edx = ebp + (-0x250); /* 0x38024376: lea edx, [ebp - 0x250] */
   3161     PUSH32(esp, 0x3806C610u); /* 0x3802437C: push 0x3806c610 */
   3162     PUSH32(esp, edx); /* 0x38024381: push edx */
   3163     RECOMP_ICALL(MEM32(0x3804E09C)); /* 0x38024382: call dword ptr [0x3804e09c] */
   3164     RECOMP_FLAGS_IN();
   3165     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3166     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3167     esp = esp + 0xCu; /* 0x38024388: add esp, 0xc */
   3168     _flag_k = FK_ADD;
   3169     eax = ebp + (-0x250); /* 0x3802438B: lea eax, [ebp - 0x250] */
   3170     PUSH32(esp, eax); /* 0x38024391: push eax */
   3171     ecx = ebp + (-0x40); /* 0x38024392: lea ecx, [ebp - 0x40] */
   3172     RECOMP_ICALL(0x38014060u); /* 0x38024395: call 0x38014060 */ /* not lifted */
   3173     RECOMP_FLAGS_IN();
   3174     PUSH32(esp, 0x38052D38u); /* 0x3802439A: push 0x38052d38 */
   3175     ecx = ebp + (-0x40); /* 0x3802439F: lea ecx, [ebp - 0x40] */
   3176     PUSH32(esp, ecx); /* 0x380243A2: push ecx */
   3177     RECOMP_ICALL(0x3804B68Eu); /* 0x380243A3: call 0x3804b68e */ /* not lifted */
   3178     RECOMP_FLAGS_IN();
   3179     /* nop */ /* 0x380243A8: nop  */
   3180     /* nop */ /* 0x380243A9: nop  */
   3181     /* nop */ /* 0x380243AA: nop  */
   3182     /* nop */ /* 0x380243AB: nop  */
   3183     /* nop */ /* 0x380243AC: nop  */
   3184     /* nop */ /* 0x380243AD: nop  */
   3185     /* nop */ /* 0x380243AE: nop  */
   3186     /* nop */ /* 0x380243AF: nop  */
   3187     PUSH32(esp, esi); /* 0x380243B0: push esi */
   3188     esi = ecx; /* 0x380243B1: mov esi, ecx */
   3189     ecx = MEM32(esi + 0x4); /* 0x380243B3: mov ecx, dword ptr [esi + 4] */
   3190     eax = MEM32(ecx); /* 0x380243B6: mov eax, dword ptr [ecx] */
   3191     /* cmp eax, ecx */ /* 0x380243B8: cmp eax, ecx */
   3192     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3194     _flag_k = FK_CMP;
   3195     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243EF; /* 0x380243BA: je 0x380243ef */
   3196 L_380243BC:
   3197     ecx = MEM32(eax + 0x8); /* 0x380243BC: mov ecx, dword ptr [eax + 8] */
   3198     SET_LO8(edx, MEM8(ecx + 0x19)); /* 0x380243BF: mov dl, byte ptr [ecx + 0x19] */
   3199     /* test LO8(edx), LO8(edx) */ /* 0x380243C2: test dl, dl */
   3200     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3201     _cf = 0;
   3202     _flag_k = FK_NARROW(FK_TEST, 24);
   3203     if (TEST_NZ(_flag_a, _flag_b)) goto L_380243D1; /* 0x380243C4: jne 0x380243d1 */
   3204 L_380243C6:
   3205     PUSH32(esp, ecx); /* 0x380243C6: push ecx */
   3206     RECOMP_ICALL(0x38025110u); /* 0x380243C7: call 0x38025110 */ /* not lifted */
   3207     RECOMP_FLAGS_IN();
   3208     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3209     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3210     esp = esp + 4; /* 0x380243CC: add esp, 4 */
   3211     _flag_k = FK_ADD;
   3212     goto L_380243EA; /* 0x380243CF: jmp 0x380243ea */
   3213 L_380243D1:
   3214     ecx = MEM32(eax + 0x4); /* 0x380243D1: mov ecx, dword ptr [eax + 4] */
   3215     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243D4: cmp eax, dword ptr [ecx + 8] */
   3216     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3218     _flag_k = FK_CMP;
   3219     if (CMP_NE(_flag_a, _flag_b)) goto L_380243E3; /* 0x380243D7: jne 0x380243e3 */
   3220 L_380243D9:
   3221     eax = ecx; /* 0x380243D9: mov eax, ecx */
   3222     ecx = MEM32(ecx + 0x4); /* 0x380243DB: mov ecx, dword ptr [ecx + 4] */
   3223     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243DE: cmp eax, dword ptr [ecx + 8] */
   3224     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3226     _flag_k = FK_CMP;
   3227     RECOMP_BACKEDGE();
   3228     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243D9; /* 0x380243E1: je 0x380243d9 */
   3229 L_380243E3:
   3230     /* cmp MEM32(eax + 0x8), ecx */ /* 0x380243E3: cmp dword ptr [eax + 8], ecx */
   3231     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx);
   3232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3233     _flag_k = FK_CMP;
   3234     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243EA; /* 0x380243E6: je 0x380243ea */
   3235 L_380243E8:
   3236     eax = ecx; /* 0x380243E8: mov eax, ecx */
   3237 L_380243EA:
   3238     /* cmp eax, MEM32(esi + 0x4) */ /* 0x380243EA: cmp eax, dword ptr [esi + 4] */
   3239     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3240     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3241     _flag_k = FK_CMP;
   3242     RECOMP_BACKEDGE();
   3243     if (CMP_NE(_flag_a, _flag_b)) goto L_380243BC; /* 0x380243ED: jne 0x380243bc */
   3244 L_380243EF:
   3245     esi = POP32_VAL(esp); /* 0x380243EF: pop esi */
   3246     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380243F0: ret  */
   3247     RECOMP_REGS_OUT();
   3248 }
   3249 
   3250 void sub_380243B0(void) {
   3251     int _fpu_cmp = 0;
   3252     uint32_t _cf = 0;
   3253     int _df = 1;
   3254     uint32_t _flag_k = FK_NONE;
   3255     uint32_t _flag_a = 0, _flag_b = 0;
   3256     uint32_t _itail_tgt = 0;
   3257     RECOMP_REGS_LOCALS
   3258     RECOMP_ENTER(0x380243B0u);
   3259 
   3260 L_380243B0:
   3261     PUSH32(esp, esi); /* 0x380243B0: push esi */
   3262     esi = ecx; /* 0x380243B1: mov esi, ecx */
   3263     ecx = MEM32(esi + 0x4); /* 0x380243B3: mov ecx, dword ptr [esi + 4] */
   3264     eax = MEM32(ecx); /* 0x380243B6: mov eax, dword ptr [ecx] */
   3265     /* cmp eax, ecx */ /* 0x380243B8: cmp eax, ecx */
   3266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3268     _flag_k = FK_CMP;
   3269     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243EF; /* 0x380243BA: je 0x380243ef */
   3270 L_380243BC:
   3271     ecx = MEM32(eax + 0x8); /* 0x380243BC: mov ecx, dword ptr [eax + 8] */
   3272     SET_LO8(edx, MEM8(ecx + 0x19)); /* 0x380243BF: mov dl, byte ptr [ecx + 0x19] */
   3273     /* test LO8(edx), LO8(edx) */ /* 0x380243C2: test dl, dl */
   3274     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3275     _cf = 0;
   3276     _flag_k = FK_NARROW(FK_TEST, 24);
   3277     if (TEST_NZ(_flag_a, _flag_b)) goto L_380243D1; /* 0x380243C4: jne 0x380243d1 */
   3278 L_380243C6:
   3279     PUSH32(esp, ecx); /* 0x380243C6: push ecx */
   3280     RECOMP_ICALL(0x38025110u); /* 0x380243C7: call 0x38025110 */ /* not lifted */
   3281     RECOMP_FLAGS_IN();
   3282     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3283     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3284     esp = esp + 4; /* 0x380243CC: add esp, 4 */
   3285     _flag_k = FK_ADD;
   3286     goto L_380243EA; /* 0x380243CF: jmp 0x380243ea */
   3287 L_380243D1:
   3288     ecx = MEM32(eax + 0x4); /* 0x380243D1: mov ecx, dword ptr [eax + 4] */
   3289     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243D4: cmp eax, dword ptr [ecx + 8] */
   3290     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3292     _flag_k = FK_CMP;
   3293     if (CMP_NE(_flag_a, _flag_b)) goto L_380243E3; /* 0x380243D7: jne 0x380243e3 */
   3294 L_380243D9:
   3295     eax = ecx; /* 0x380243D9: mov eax, ecx */
   3296     ecx = MEM32(ecx + 0x4); /* 0x380243DB: mov ecx, dword ptr [ecx + 4] */
   3297     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243DE: cmp eax, dword ptr [ecx + 8] */
   3298     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3300     _flag_k = FK_CMP;
   3301     RECOMP_BACKEDGE();
   3302     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243D9; /* 0x380243E1: je 0x380243d9 */
   3303 L_380243E3:
   3304     /* cmp MEM32(eax + 0x8), ecx */ /* 0x380243E3: cmp dword ptr [eax + 8], ecx */
   3305     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx);
   3306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3307     _flag_k = FK_CMP;
   3308     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243EA; /* 0x380243E6: je 0x380243ea */
   3309 L_380243E8:
   3310     eax = ecx; /* 0x380243E8: mov eax, ecx */
   3311 L_380243EA:
   3312     /* cmp eax, MEM32(esi + 0x4) */ /* 0x380243EA: cmp eax, dword ptr [esi + 4] */
   3313     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3314     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3315     _flag_k = FK_CMP;
   3316     RECOMP_BACKEDGE();
   3317     if (CMP_NE(_flag_a, _flag_b)) goto L_380243BC; /* 0x380243ED: jne 0x380243bc */
   3318 L_380243EF:
   3319     esi = POP32_VAL(esp); /* 0x380243EF: pop esi */
   3320     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380243F0: ret  */
   3321     RECOMP_REGS_OUT();
   3322 }
   3323 
   3324 void sub_380243BC(void) {
   3325     int _fpu_cmp = 0;
   3326     uint32_t _cf = 0;
   3327     int _df = 1;
   3328     uint32_t _flag_k = FK_NONE;
   3329     uint32_t _flag_a = 0, _flag_b = 0;
   3330     uint32_t _itail_tgt = 0;
   3331     RECOMP_REGS_LOCALS
   3332     RECOMP_ENTER(0x380243BCu);
   3333 
   3334 L_380243BC:
   3335     ecx = MEM32(eax + 0x8); /* 0x380243BC: mov ecx, dword ptr [eax + 8] */
   3336     SET_LO8(edx, MEM8(ecx + 0x19)); /* 0x380243BF: mov dl, byte ptr [ecx + 0x19] */
   3337     /* test LO8(edx), LO8(edx) */ /* 0x380243C2: test dl, dl */
   3338     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3339     _cf = 0;
   3340     _flag_k = FK_NARROW(FK_TEST, 24);
   3341     if (TEST_NZ(_flag_a, _flag_b)) goto L_380243D1; /* 0x380243C4: jne 0x380243d1 */
   3342 L_380243C6:
   3343     PUSH32(esp, ecx); /* 0x380243C6: push ecx */
   3344     RECOMP_ICALL(0x38025110u); /* 0x380243C7: call 0x38025110 */ /* not lifted */
   3345     RECOMP_FLAGS_IN();
   3346     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3348     esp = esp + 4; /* 0x380243CC: add esp, 4 */
   3349     _flag_k = FK_ADD;
   3350     goto L_380243EA; /* 0x380243CF: jmp 0x380243ea */
   3351 L_380243D1:
   3352     ecx = MEM32(eax + 0x4); /* 0x380243D1: mov ecx, dword ptr [eax + 4] */
   3353     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243D4: cmp eax, dword ptr [ecx + 8] */
   3354     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3356     _flag_k = FK_CMP;
   3357     if (CMP_NE(_flag_a, _flag_b)) goto L_380243E3; /* 0x380243D7: jne 0x380243e3 */
   3358 L_380243D9:
   3359     eax = ecx; /* 0x380243D9: mov eax, ecx */
   3360     ecx = MEM32(ecx + 0x4); /* 0x380243DB: mov ecx, dword ptr [ecx + 4] */
   3361     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243DE: cmp eax, dword ptr [ecx + 8] */
   3362     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3364     _flag_k = FK_CMP;
   3365     RECOMP_BACKEDGE();
   3366     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243D9; /* 0x380243E1: je 0x380243d9 */
   3367 L_380243E3:
   3368     /* cmp MEM32(eax + 0x8), ecx */ /* 0x380243E3: cmp dword ptr [eax + 8], ecx */
   3369     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx);
   3370     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3371     _flag_k = FK_CMP;
   3372     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243EA; /* 0x380243E6: je 0x380243ea */
   3373 L_380243E8:
   3374     eax = ecx; /* 0x380243E8: mov eax, ecx */
   3375 L_380243EA:
   3376     /* cmp eax, MEM32(esi + 0x4) */ /* 0x380243EA: cmp eax, dword ptr [esi + 4] */
   3377     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3379     _flag_k = FK_CMP;
   3380     RECOMP_BACKEDGE();
   3381     if (CMP_NE(_flag_a, _flag_b)) goto L_380243BC; /* 0x380243ED: jne 0x380243bc */
   3382 L_380243EF:
   3383     esi = POP32_VAL(esp); /* 0x380243EF: pop esi */
   3384     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380243F0: ret  */
   3385     RECOMP_REGS_OUT();
   3386 }
   3387 
   3388 void sub_380243EA(void) {
   3389     int _fpu_cmp = 0;
   3390     uint32_t _cf = 0;
   3391     int _df = 1;
   3392     uint32_t _flag_k = FK_NONE;
   3393     uint32_t _flag_a = 0, _flag_b = 0;
   3394     uint32_t _itail_tgt = 0;
   3395     RECOMP_REGS_LOCALS
   3396     RECOMP_ENTER(0x380243EAu);
   3397 
   3398     goto L_380243EA;
   3399 L_380243BC:
   3400     ecx = MEM32(eax + 0x8); /* 0x380243BC: mov ecx, dword ptr [eax + 8] */
   3401     SET_LO8(edx, MEM8(ecx + 0x19)); /* 0x380243BF: mov dl, byte ptr [ecx + 0x19] */
   3402     /* test LO8(edx), LO8(edx) */ /* 0x380243C2: test dl, dl */
   3403     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3404     _cf = 0;
   3405     _flag_k = FK_NARROW(FK_TEST, 24);
   3406     if (TEST_NZ(_flag_a, _flag_b)) goto L_380243D1; /* 0x380243C4: jne 0x380243d1 */
   3407 L_380243C6:
   3408     PUSH32(esp, ecx); /* 0x380243C6: push ecx */
   3409     RECOMP_ICALL(0x38025110u); /* 0x380243C7: call 0x38025110 */ /* not lifted */
   3410     RECOMP_FLAGS_IN();
   3411     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3412     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3413     esp = esp + 4; /* 0x380243CC: add esp, 4 */
   3414     _flag_k = FK_ADD;
   3415     goto L_380243EA; /* 0x380243CF: jmp 0x380243ea */
   3416 L_380243D1:
   3417     ecx = MEM32(eax + 0x4); /* 0x380243D1: mov ecx, dword ptr [eax + 4] */
   3418     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243D4: cmp eax, dword ptr [ecx + 8] */
   3419     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3421     _flag_k = FK_CMP;
   3422     if (CMP_NE(_flag_a, _flag_b)) goto L_380243E3; /* 0x380243D7: jne 0x380243e3 */
   3423 L_380243D9:
   3424     eax = ecx; /* 0x380243D9: mov eax, ecx */
   3425     ecx = MEM32(ecx + 0x4); /* 0x380243DB: mov ecx, dword ptr [ecx + 4] */
   3426     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x380243DE: cmp eax, dword ptr [ecx + 8] */
   3427     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3428     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3429     _flag_k = FK_CMP;
   3430     RECOMP_BACKEDGE();
   3431     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243D9; /* 0x380243E1: je 0x380243d9 */
   3432 L_380243E3:
   3433     /* cmp MEM32(eax + 0x8), ecx */ /* 0x380243E3: cmp dword ptr [eax + 8], ecx */
   3434     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx);
   3435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3436     _flag_k = FK_CMP;
   3437     if (CMP_EQ(_flag_a, _flag_b)) goto L_380243EA; /* 0x380243E6: je 0x380243ea */
   3438 L_380243E8:
   3439     eax = ecx; /* 0x380243E8: mov eax, ecx */
   3440 L_380243EA:
   3441     /* cmp eax, MEM32(esi + 0x4) */ /* 0x380243EA: cmp eax, dword ptr [esi + 4] */
   3442     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   3443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3444     _flag_k = FK_CMP;
   3445     RECOMP_BACKEDGE();
   3446     if (CMP_NE(_flag_a, _flag_b)) goto L_380243BC; /* 0x380243ED: jne 0x380243bc */
   3447 L_380243EF:
   3448     esi = POP32_VAL(esp); /* 0x380243EF: pop esi */
   3449     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380243F0: ret  */
   3450     RECOMP_REGS_OUT();
   3451 }
   3452 
   3453 void sub_38024400(void) {
   3454     int _fpu_cmp = 0;
   3455     uint32_t _cf = 0;
   3456     int _df = 1;
   3457     uint32_t _flag_k = FK_NONE;
   3458     uint32_t _flag_a = 0, _flag_b = 0;
   3459     uint32_t _itail_tgt = 0;
   3460     RECOMP_REGS_LOCALS
   3461     RECOMP_ENTER(0x38024400u);
   3462 
   3463 L_38024400:
   3464     SET_LO8(eax, MEM8(ecx + 0xC)); /* 0x38024400: mov al, byte ptr [ecx + 0xc] */
   3465     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38024403: ret  */
   3466     RECOMP_REGS_OUT();
   3467 }
   3468 
   3469 void sub_38024410(void) {
   3470     int _fpu_cmp = 0;
   3471     uint32_t _cf = 0;
   3472     int _df = 1;
   3473     uint32_t _flag_k = FK_NONE;
   3474     uint32_t _flag_a = 0, _flag_b = 0;
   3475     uint32_t _itail_tgt = 0;
   3476     RECOMP_REGS_LOCALS
   3477     RECOMP_ENTER(0x38024410u);
   3478 
   3479 L_38024410:
   3480     MEM8(ecx + 0xC) = (uint8_t)(0); /* 0x38024410: mov byte ptr [ecx + 0xc], 0 */
   3481     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38024414: ret  */
   3482     RECOMP_REGS_OUT();
   3483 }
   3484 
   3485 void sub_38024420(void) {
   3486     int _fpu_cmp = 0;
   3487     uint32_t _cf = 0;
   3488     int _df = 1;
   3489     uint32_t _flag_k = FK_NONE;
   3490     uint32_t _flag_a = 0, _flag_b = 0;
   3491     uint32_t _itail_tgt = 0;
   3492     RECOMP_REGS_LOCALS
   3493     RECOMP_ENTER(0x38024420u);
   3494 
   3495 L_38024420:
   3496     PUSH32(esp, ebp); /* 0x38024420: push ebp */
   3497     ebp = esp; /* 0x38024421: mov ebp, esp */
   3498     eax = MEM32(ebp + 0x8); /* 0x38024423: mov eax, dword ptr [ebp + 8] */
   3499     MEM32(ecx + 0x1C) = eax; /* 0x38024426: mov dword ptr [ecx + 0x1c], eax */
   3500     ebp = POP32_VAL(esp); /* 0x38024429: pop ebp */
   3501     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3802442A: ret 4 */
   3502     RECOMP_REGS_OUT();
   3503 }
   3504 
   3505 void sub_38024430(void) {
   3506     int _fpu_cmp = 0;
   3507     uint32_t _cf = 0;
   3508     int _df = 1;
   3509     uint32_t _flag_k = FK_NONE;
   3510     uint32_t _flag_a = 0, _flag_b = 0;
   3511     uint32_t _itail_tgt = 0;
   3512     RECOMP_REGS_LOCALS
   3513     RECOMP_ENTER(0x38024430u);
   3514 
   3515 L_38024430:
   3516     eax = MEM32(ecx + 0x1C); /* 0x38024430: mov eax, dword ptr [ecx + 0x1c] */
   3517     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38024433: ret  */
   3518     RECOMP_REGS_OUT();
   3519 }
   3520 
   3521 void sub_38024440(void) {
   3522     int _fpu_cmp = 0;
   3523     uint32_t _cf = 0;
   3524     int _df = 1;
   3525     uint32_t _flag_k = FK_NONE;
   3526     uint32_t _flag_a = 0, _flag_b = 0;
   3527     uint32_t _itail_tgt = 0;
   3528     RECOMP_REGS_LOCALS
   3529     RECOMP_ENTER(0x38024440u);
   3530 
   3531 L_38024440:
   3532     MEM8(ecx + 0xC) = (uint8_t)(1); /* 0x38024440: mov byte ptr [ecx + 0xc], 1 */
   3533     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38024444: ret  */
   3534     RECOMP_REGS_OUT();
   3535 }
   3536 
   3537 void sub_38024450(void) {
   3538     int _fpu_cmp = 0;
   3539     uint32_t _cf = 0;
   3540     int _df = 1;
   3541     uint32_t _flag_k = FK_NONE;
   3542     uint32_t _flag_a = 0, _flag_b = 0;
   3543     uint32_t _itail_tgt = 0;
   3544     RECOMP_REGS_LOCALS
   3545     RECOMP_ENTER(0x38024450u);
   3546     RECOMP_EH_ENTER();
   3547 
   3548 L_38024450:
   3549     PUSH32(esp, ebp); /* 0x38024450: push ebp */
   3550     ebp = esp; /* 0x38024451: mov ebp, esp */
   3551     PUSH32(esp, 0xFFFFFFFFu); /* 0x38024453: push -1 */
   3552     PUSH32(esp, 0x3804C590u); /* 0x38024455: push 0x3804c590 */
   3553     eax = MEM32(FS_BASE + (0)); /* 0x3802445A: mov eax, dword ptr fs:[0] */
   3554     PUSH32(esp, eax); /* 0x38024460: push eax */
   3555     MEM32(FS_BASE + (0)) = esp; /* 0x38024461: mov dword ptr fs:[0], esp */
   3556     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   3557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3558     esp = esp - 0x24u; /* 0x38024468: sub esp, 0x24 */
   3559     _flag_k = FK_CMP;
   3560     PUSH32(esp, ebx); /* 0x3802446B: push ebx */
   3561     PUSH32(esp, esi); /* 0x3802446C: push esi */
   3562     PUSH32(esp, edi); /* 0x3802446D: push edi */
   3563     edi = MEM32(ebp + 0x8); /* 0x3802446E: mov edi, dword ptr [ebp + 8] */
   3564     esi = ecx; /* 0x38024471: mov esi, ecx */
   3565     eax = MEM32(esi + 0x18); /* 0x38024473: mov eax, dword ptr [esi + 0x18] */
   3566     MEM32(ebp + (-0x10)) = esp; /* 0x38024476: mov dword ptr [ebp - 0x10], esp */
   3567     PUSH32(esp, eax); /* 0x38024479: push eax */
   3568     ecx = edi; /* 0x3802447A: mov ecx, edi */
   3569     RECOMP_ICALL(MEM32(0x3804E394)); /* 0x3802447C: call dword ptr [0x3804e394] */
   3570     RECOMP_FLAGS_IN();
   3571     eax = esi + 0x4; /* 0x38024482: lea eax, [esi + 4] */
   3572     PUSH32(esp, eax); /* 0x38024485: push eax */
   3573     PUSH32(esp, edi); /* 0x38024486: push edi */
   3574     RECOMP_ICALL(0x3804AE40u); /* 0x38024487: call 0x3804ae40 */ /* not lifted */
   3575     RECOMP_FLAGS_IN();
   3576     SET_LO8(eax, MEM8(esi + 0xC)); /* 0x3802448C: mov al, byte ptr [esi + 0xc] */
   3577     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3578     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3579     esp = esp + 8; /* 0x3802448F: add esp, 8 */
   3580     _flag_k = FK_ADD;
   3581     /* cmp LO8(eax), 1 */ /* 0x38024492: cmp al, 1 */
   3582     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3584     _flag_k = FK_NARROW(FK_CMP, 24);
   3585     if (CMP_NE(_flag_a, _flag_b)) goto L_3802449A; /* 0x38024494: jne 0x3802449a */
   3586 L_38024496:
   3587     PUSH32(esp, 1); /* 0x38024496: push 1 */
   3588     goto L_3802449C; /* 0x38024498: jmp 0x3802449c */
   3589 L_3802449A:
   3590     PUSH32(esp, 0); /* 0x3802449A: push 0 */
   3591 L_3802449C:
   3592     ecx = edi; /* 0x3802449C: mov ecx, edi */
   3593     RECOMP_ICALL(MEM32(0x3804E3C0)); /* 0x3802449E: call dword ptr [0x3804e3c0] */
   3594     RECOMP_FLAGS_IN();
   3595     edx = MEM32(esi); /* 0x380244A4: mov edx, dword ptr [esi] */
   3596     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3597     ebx = 0; /* 0x380244A6: xor ebx, ebx */
   3598     _cf = 0;
   3599     _flag_k = FK_TEST;
   3600     PUSH32(esp, edi); /* 0x380244A8: push edi */
   3601     ecx = esi; /* 0x380244A9: mov ecx, esi */
   3602     MEM32(ebp + (-0x4)) = ebx; /* 0x380244AB: mov dword ptr [ebp - 4], ebx */
   3603     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x380244AE: call dword ptr [edx + 0x1c] */
   3604     RECOMP_FLAGS_IN();
   3605     ecx = edi; /* 0x380244B1: mov ecx, edi */
   3606     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380244B3: mov dword ptr [ebp - 4], 0xffffffff */
   3607     RECOMP_ICALL(MEM32(0x3804E374)); /* 0x380244BA: call dword ptr [0x3804e374] */
   3608     RECOMP_FLAGS_IN();
   3609     /* test eax, eax */ /* 0x380244C0: test eax, eax */
   3610     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3611     _cf = 0;
   3612     _flag_k = FK_TEST;
   3613     if (TEST_Z(_flag_a, _flag_b)) goto L_38024585; /* 0x380244C2: je 0x38024585 */
   3614 L_380244C8:
   3615     ecx = edi; /* 0x380244C8: mov ecx, edi */
   3616     RECOMP_ICALL(MEM32(0x3804E398)); /* 0x380244CA: call dword ptr [0x3804e398] */
   3617     RECOMP_FLAGS_IN();
   3618     esi = MEM32(esi + 0x18); /* 0x380244D0: mov esi, dword ptr [esi + 0x18] */
   3619     edi = eax; /* 0x380244D3: mov edi, eax */
   3620     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3621     eax = 0; /* 0x380244D5: xor eax, eax */
   3622     _cf = 0;
   3623     _flag_k = FK_TEST;
   3624     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3625     ecx = 0; /* 0x380244D7: xor ecx, ecx */
   3626     _cf = 0;
   3627     _flag_k = FK_TEST;
   3628     MEM32(ebp + (-0x28)) = eax; /* 0x380244D9: mov dword ptr [ebp - 0x28], eax */
   3629     MEM32(ebp + (-0x24)) = ecx; /* 0x380244DC: mov dword ptr [ebp - 0x24], ecx */
   3630     eax = ebp + (-0x2C); /* 0x380244DF: lea eax, [ebp - 0x2c] */
   3631     PUSH32(esp, eax); /* 0x380244E2: push eax */
   3632     ecx = ebp + (-0x18); /* 0x380244E3: lea ecx, [ebp - 0x18] */
   3633     PUSH32(esp, ecx); /* 0x380244E6: push ecx */
   3634     ecx = 0x3806ECD0u; /* 0x380244E7: mov ecx, 0x3806ecd0 */
   3635     MEM32(ebp + (-0x2C)) = esi; /* 0x380244EC: mov dword ptr [ebp - 0x2c], esi */
   3636     RECOMP_ICALL(0x38024E80u); /* 0x380244EF: call 0x38024e80 */ /* not lifted */
   3637     RECOMP_FLAGS_IN();
   3638     edx = eax; /* 0x380244F4: mov edx, eax */
   3639     eax = MEM32(edx); /* 0x380244F6: mov eax, dword ptr [edx] */
   3640     ecx = MEM32(edx + 0x4); /* 0x380244F8: mov ecx, dword ptr [edx + 4] */
   3641     MEM32(ebp + (-0x1C)) = ecx; /* 0x380244FB: mov dword ptr [ebp - 0x1c], ecx */
   3642     _flag_a = (uint32_t)(MEM32(eax + 0x10)); _flag_b = (uint32_t)(1);
   3643     MEM32(eax + 0x10) = MEM32(eax + 0x10) + 1; /* 0x380244FE: inc dword ptr [eax + 0x10] */
   3644     _flag_k = FK_INC;
   3645     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3646     eax = 0; /* 0x38024501: xor eax, eax */
   3647     _cf = 0;
   3648     _flag_k = FK_TEST;
   3649     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3650     ecx = 0; /* 0x38024503: xor ecx, ecx */
   3651     _cf = 0;
   3652     _flag_k = FK_TEST;
   3653     edx = ebp + (-0x2C); /* 0x38024505: lea edx, [ebp - 0x2c] */
   3654     MEM32(ebp + (-0x28)) = eax; /* 0x38024508: mov dword ptr [ebp - 0x28], eax */
   3655     PUSH32(esp, edx); /* 0x3802450B: push edx */
   3656     eax = ebp + (-0x20); /* 0x3802450C: lea eax, [ebp - 0x20] */
   3657     MEM32(ebp + (-0x24)) = ecx; /* 0x3802450F: mov dword ptr [ebp - 0x24], ecx */
   3658     PUSH32(esp, eax); /* 0x38024512: push eax */
   3659     ecx = 0x3806ECD0u; /* 0x38024513: mov ecx, 0x3806ecd0 */
   3660     MEM32(ebp + (-0x2C)) = esi; /* 0x38024518: mov dword ptr [ebp - 0x2c], esi */
   3661     RECOMP_ICALL(0x38024E80u); /* 0x3802451B: call 0x38024e80 */ /* not lifted */
   3662     RECOMP_FLAGS_IN();
   3663     ecx = eax; /* 0x38024520: mov ecx, eax */
   3664     eax = MEM32(ecx); /* 0x38024522: mov eax, dword ptr [ecx] */
   3665     esi = MEM32(eax + 0x14); /* 0x38024524: mov esi, dword ptr [eax + 0x14] */
   3666     edx = MEM32(ecx + 0x4); /* 0x38024527: mov edx, dword ptr [ecx + 4] */
   3667     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   3668     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3669     esi = esi + edi; /* 0x3802452A: add esi, edi */
   3670     _flag_k = FK_ADD;
   3671     MEM32(eax + 0x14) = esi; /* 0x3802452C: mov dword ptr [eax + 0x14], esi */
   3672     eax = MEM32(0x3806ECE4); /* 0x3802452F: mov eax, dword ptr [0x3806ece4] */
   3673     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3674     eax = eax + 1; /* 0x38024534: inc eax */
   3675     _flag_k = FK_INC;
   3676     /* cmp eax, 0x3E8u */ /* 0x38024535: cmp eax, 0x3e8 */
   3677     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3E8u);
   3678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3679     _flag_k = FK_CMP;
   3680     MEM32(ebp + (-0x14)) = edx; /* 0x3802453A: mov dword ptr [ebp - 0x14], edx */
   3681     MEM32(0x3806ECE4) = eax; /* 0x3802453D: mov dword ptr [0x3806ece4], eax */
   3682     if (CMP_LE(_flag_a, _flag_b)) goto L_3802456A; /* 0x38024542: jle 0x3802456a */
   3683 L_38024544:
   3684     eax = MEM32(0x3806ECD4); /* 0x38024544: mov eax, dword ptr [0x3806ecd4] */
   3685     ecx = MEM32(eax); /* 0x38024549: mov ecx, dword ptr [eax] */
   3686     /* cmp ecx, eax */ /* 0x3802454B: cmp ecx, eax */
   3687     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3689     _flag_k = FK_CMP;
   3690     MEM32(ebp + 0x8) = ecx; /* 0x3802454D: mov dword ptr [ebp + 8], ecx */
   3691     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024564; /* 0x38024550: je 0x38024564 */
   3692 L_38024552:
   3693     ecx = ebp + 0x8; /* 0x38024552: lea ecx, [ebp + 8] */
   3694     RECOMP_ICALL(0x380249B0u); /* 0x38024555: call 0x380249b0 */ /* not lifted */
   3695     RECOMP_FLAGS_IN();
   3696     eax = MEM32(0x3806ECD4); /* 0x3802455A: mov eax, dword ptr [0x3806ecd4] */
   3697     /* cmp MEM32(ebp + 0x8), eax */ /* 0x3802455F: cmp dword ptr [ebp + 8], eax */
   3698     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(eax);
   3699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3700     _flag_k = FK_CMP;
   3701     RECOMP_BACKEDGE();
   3702     if (CMP_NE(_flag_a, _flag_b)) goto L_38024552; /* 0x38024562: jne 0x38024552 */
   3703 L_38024564:
   3704     MEM32(0x3806ECE4) = ebx; /* 0x38024564: mov dword ptr [0x3806ece4], ebx */
   3705 L_3802456A:
   3706     SET_LO8(eax, 1); /* 0x3802456A: mov al, 1 */
   3707     ecx = MEM32(ebp + (-0xC)); /* 0x3802456C: mov ecx, dword ptr [ebp - 0xc] */
   3708     MEM32(FS_BASE + (0)) = ecx; /* 0x3802456F: mov dword ptr fs:[0], ecx */
   3709     edi = POP32_VAL(esp); /* 0x38024576: pop edi */
   3710     esi = POP32_VAL(esp); /* 0x38024577: pop esi */
   3711     ebx = POP32_VAL(esp); /* 0x38024578: pop ebx */
   3712     esp = ebp; /* 0x38024579: mov esp, ebp */
   3713     ebp = POP32_VAL(esp); /* 0x3802457B: pop ebp */
   3714     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } /* 0x3802457C: ret 4 */
   3715 L_38024585:
   3716     ecx = MEM32(ebp + (-0xC)); /* 0x38024585: mov ecx, dword ptr [ebp - 0xc] */
   3717     edi = POP32_VAL(esp); /* 0x38024588: pop edi */
   3718     esi = POP32_VAL(esp); /* 0x38024589: pop esi */
   3719     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3720     SET_LO8(eax, 0); /* 0x3802458A: xor al, al */
   3721     _cf = 0;
   3722     _flag_k = FK_NARROW(FK_TEST, 24);
   3723     MEM32(FS_BASE + (0)) = ecx; /* 0x3802458C: mov dword ptr fs:[0], ecx */
   3724     ebx = POP32_VAL(esp); /* 0x38024593: pop ebx */
   3725     esp = ebp; /* 0x38024594: mov esp, ebp */
   3726     ebp = POP32_VAL(esp); /* 0x38024596: pop ebp */
   3727     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } /* 0x38024597: ret 4 */
   3728   _ljump:
   3729     switch (_itail_tgt) {
   3730       case 0x38024585u: goto L_38024585;
   3731       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; }
   3732     }
   3733     RECOMP_EH_LEAVE(); RECOMP_REGS_OUT();
   3734 }
   3735 
   3736 void sub_3802457F(void) {
   3737     int _fpu_cmp = 0;
   3738     uint32_t _cf = 0;
   3739     int _df = 1;
   3740     uint32_t _flag_k = FK_NONE;
   3741     uint32_t _flag_a = 0, _flag_b = 0;
   3742     uint32_t _itail_tgt = 0;
   3743     RECOMP_REGS_LOCALS
   3744     RECOMP_ENTER(0x3802457Fu);
   3745 
   3746 L_3802457F:
   3747     eax = 0x38024585u; /* 0x3802457F: mov eax, 0x38024585 */
   3748     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38024584: ret  */
   3749     RECOMP_REGS_OUT();
   3750 }
   3751 
   3752 void sub_38024585(void) {
   3753     int _fpu_cmp = 0;
   3754     uint32_t _cf = 0;
   3755     int _df = 1;
   3756     uint32_t _flag_k = FK_NONE;
   3757     uint32_t _flag_a = 0, _flag_b = 0;
   3758     uint32_t _itail_tgt = 0;
   3759     RECOMP_REGS_LOCALS
   3760     RECOMP_ENTER(0x38024585u);
   3761 
   3762 L_38024585:
   3763     ecx = MEM32(ebp + (-0xC)); /* 0x38024585: mov ecx, dword ptr [ebp - 0xc] */
   3764     edi = POP32_VAL(esp); /* 0x38024588: pop edi */
   3765     esi = POP32_VAL(esp); /* 0x38024589: pop esi */
   3766     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3767     SET_LO8(eax, 0); /* 0x3802458A: xor al, al */
   3768     _cf = 0;
   3769     _flag_k = FK_NARROW(FK_TEST, 24);
   3770     MEM32(FS_BASE + (0)) = ecx; /* 0x3802458C: mov dword ptr fs:[0], ecx */
   3771     ebx = POP32_VAL(esp); /* 0x38024593: pop ebx */
   3772     esp = ebp; /* 0x38024594: mov esp, ebp */
   3773     ebp = POP32_VAL(esp); /* 0x38024596: pop ebp */
   3774     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38024597: ret 4 */
   3775     RECOMP_REGS_OUT();
   3776 }
   3777 
   3778 void sub_380245A0(void) {
   3779     int _fpu_cmp = 0;
   3780     uint32_t _cf = 0;
   3781     int _df = 1;
   3782     uint32_t _flag_k = FK_NONE;
   3783     uint32_t _flag_a = 0, _flag_b = 0;
   3784     uint32_t _itail_tgt = 0;
   3785     RECOMP_REGS_LOCALS
   3786     RECOMP_ENTER(0x380245A0u);
   3787 
   3788 L_380245A0:
   3789     PUSH32(esp, ebp); /* 0x380245A0: push ebp */
   3790     ebp = esp; /* 0x380245A1: mov ebp, esp */
   3791     PUSH32(esp, 0xFFFFFFFFu); /* 0x380245A3: push -1 */
   3792     PUSH32(esp, 0x3804C5B1u); /* 0x380245A5: push 0x3804c5b1 */
   3793     eax = MEM32(FS_BASE + (0)); /* 0x380245AA: mov eax, dword ptr fs:[0] */
   3794     PUSH32(esp, eax); /* 0x380245B0: push eax */
   3795     MEM32(FS_BASE + (0)) = esp; /* 0x380245B1: mov dword ptr fs:[0], esp */
   3796     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   3797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3798     esp = esp - 0x2Cu; /* 0x380245B8: sub esp, 0x2c */
   3799     _flag_k = FK_CMP;
   3800     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x380245BB: mov al, byte ptr [ebp + 0xb] */
   3801     PUSH32(esp, ebx); /* 0x380245BE: push ebx */
   3802     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3803     ebx = 0; /* 0x380245BF: xor ebx, ebx */
   3804     _cf = 0;
   3805     _flag_k = FK_TEST;
   3806     PUSH32(esp, esi); /* 0x380245C1: push esi */
   3807     esi = ecx; /* 0x380245C2: mov esi, ecx */
   3808     MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x380245C4: mov byte ptr [ebp - 0x24], al */
   3809     MEM32(ebp + (-0x20)) = ebx; /* 0x380245C7: mov dword ptr [ebp - 0x20], ebx */
   3810     MEM32(ebp + (-0x1C)) = ebx; /* 0x380245CA: mov dword ptr [ebp - 0x1c], ebx */
   3811     MEM32(ebp + (-0x18)) = ebx; /* 0x380245CD: mov dword ptr [ebp - 0x18], ebx */
   3812     ecx = MEM32(ebp + 0x8); /* 0x380245D0: mov ecx, dword ptr [ebp + 8] */
   3813     edx = MEM32(ecx); /* 0x380245D3: mov edx, dword ptr [ecx] */
   3814     PUSH32(esp, ebx); /* 0x380245D5: push ebx */
   3815     ecx = ebp + (-0x34); /* 0x380245D6: lea ecx, [ebp - 0x34] */
   3816     MEM32(ebp + (-0x4)) = ebx; /* 0x380245D9: mov dword ptr [ebp - 4], ebx */
   3817     MEM32(ebp + (-0x38)) = edx; /* 0x380245DC: mov dword ptr [ebp - 0x38], edx */
   3818     MEM8(ebp + (-0x34)) = (uint8_t)(LO8(eax)); /* 0x380245DF: mov byte ptr [ebp - 0x34], al */
   3819     RECOMP_ICALL(MEM32(0x3804E05C)); /* 0x380245E2: call dword ptr [0x3804e05c] */
   3820     RECOMP_FLAGS_IN();
   3821     eax = MEM32(0x3804E07C); /* 0x380245E8: mov eax, dword ptr [0x3804e07c] */
   3822     ecx = MEM32(eax); /* 0x380245ED: mov ecx, dword ptr [eax] */
   3823     PUSH32(esp, ecx); /* 0x380245EF: push ecx */
   3824     PUSH32(esp, ebx); /* 0x380245F0: push ebx */
   3825     edx = ebp + (-0x24); /* 0x380245F1: lea edx, [ebp - 0x24] */
   3826     PUSH32(esp, edx); /* 0x380245F4: push edx */
   3827     ecx = ebp + (-0x34); /* 0x380245F5: lea ecx, [ebp - 0x34] */
   3828     RECOMP_ICALL(MEM32(0x3804E078)); /* 0x380245F8: call dword ptr [0x3804e078] */
   3829     RECOMP_FLAGS_IN();
   3830     eax = ebp + (-0x38); /* 0x380245FE: lea eax, [ebp - 0x38] */
   3831     PUSH32(esp, eax); /* 0x38024601: push eax */
   3832     ecx = ebp + (-0x14); /* 0x38024602: lea ecx, [ebp - 0x14] */
   3833     PUSH32(esp, ecx); /* 0x38024605: push ecx */
   3834     ecx = esi; /* 0x38024606: mov ecx, esi */
   3835     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x38024608: mov byte ptr [ebp - 4], 1 */
   3836     RECOMP_ICALL(0x38024680u); /* 0x3802460C: call 0x38024680 */ /* not lifted */
   3837     RECOMP_FLAGS_IN();
   3838     esi = MEM32(eax); /* 0x38024611: mov esi, dword ptr [eax] */
   3839     edx = MEM32(eax + 0x4); /* 0x38024613: mov edx, dword ptr [eax + 4] */
   3840     eax = MEM32(ebp + (-0x30)); /* 0x38024616: mov eax, dword ptr [ebp - 0x30] */
   3841     /* cmp eax, ebx */ /* 0x38024619: cmp eax, ebx */
   3842     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3844     _flag_k = FK_CMP;
   3845     MEM32(ebp + (-0x10)) = edx; /* 0x3802461B: mov dword ptr [ebp - 0x10], edx */
   3846     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802463C; /* 0x3802461E: je 0x3802463c */
   3847 L_38024620:
   3848     ecx = eax + (-0x1); /* 0x38024620: lea ecx, [eax - 1] */
   3849     SET_LO8(eax, MEM8(ecx)); /* 0x38024623: mov al, byte ptr [ecx] */
   3850     /* cmp LO8(eax), LO8(ebx) */ /* 0x38024625: cmp al, bl */
   3851     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3853     _flag_k = FK_NARROW(FK_CMP, 24);
   3854     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024633; /* 0x38024627: je 0x38024633 */
   3855 L_38024629:
   3856     /* cmp LO8(eax), 0xFFu */ /* 0x38024629: cmp al, 0xff */
   3857     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   3858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3859     _flag_k = FK_NARROW(FK_CMP, 24);
   3860     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024633; /* 0x3802462B: je 0x38024633 */
   3861 L_3802462D:
   3862     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3863     SET_LO8(eax, LO8(eax) - 1); /* 0x3802462D: dec al */
   3864     _flag_k = FK_NARROW(FK_DEC, 24);
   3865     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3802462F: mov byte ptr [ecx], al */
   3866     goto L_3802463C; /* 0x38024631: jmp 0x3802463c */
   3867 L_38024633:
   3868     PUSH32(esp, ecx); /* 0x38024633: push ecx */
   3869     RECOMP_ICALL(0x3804B4F6u); /* 0x38024634: call 0x3804b4f6 */ /* not lifted */
   3870     RECOMP_FLAGS_IN();
   3871     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3873     esp = esp + 4; /* 0x38024639: add esp, 4 */
   3874     _flag_k = FK_ADD;
   3875 L_3802463C:
   3876     eax = MEM32(ebp + (-0x20)); /* 0x3802463C: mov eax, dword ptr [ebp - 0x20] */
   3877     /* cmp eax, ebx */ /* 0x3802463F: cmp eax, ebx */
   3878     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3879     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3880     _flag_k = FK_CMP;
   3881     MEM32(ebp + (-0x30)) = ebx; /* 0x38024641: mov dword ptr [ebp - 0x30], ebx */
   3882     MEM32(ebp + (-0x2C)) = ebx; /* 0x38024644: mov dword ptr [ebp - 0x2c], ebx */
   3883     MEM32(ebp + (-0x28)) = ebx; /* 0x38024647: mov dword ptr [ebp - 0x28], ebx */
   3884     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024668; /* 0x3802464A: je 0x38024668 */
   3885 L_3802464C:
   3886     ecx = eax + (-0x1); /* 0x3802464C: lea ecx, [eax - 1] */
   3887     SET_LO8(eax, MEM8(ecx)); /* 0x3802464F: mov al, byte ptr [ecx] */
   3888     /* cmp LO8(eax), LO8(ebx) */ /* 0x38024651: cmp al, bl */
   3889     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3890     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3891     _flag_k = FK_NARROW(FK_CMP, 24);
   3892     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802465F; /* 0x38024653: je 0x3802465f */
   3893 L_38024655:
   3894     /* cmp LO8(eax), 0xFFu */ /* 0x38024655: cmp al, 0xff */
   3895     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   3896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3897     _flag_k = FK_NARROW(FK_CMP, 24);
   3898     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802465F; /* 0x38024657: je 0x3802465f */
   3899 L_38024659:
   3900     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3901     SET_LO8(eax, LO8(eax) - 1); /* 0x38024659: dec al */
   3902     _flag_k = FK_NARROW(FK_DEC, 24);
   3903     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3802465B: mov byte ptr [ecx], al */
   3904     goto L_38024668; /* 0x3802465D: jmp 0x38024668 */
   3905 L_3802465F:
   3906     PUSH32(esp, ecx); /* 0x3802465F: push ecx */
   3907     RECOMP_ICALL(0x3804B4F6u); /* 0x38024660: call 0x3804b4f6 */ /* not lifted */
   3908     RECOMP_FLAGS_IN();
   3909     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3910     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3911     esp = esp + 4; /* 0x38024665: add esp, 4 */
   3912     _flag_k = FK_ADD;
   3913 L_38024668:
   3914     ecx = MEM32(ebp + (-0xC)); /* 0x38024668: mov ecx, dword ptr [ebp - 0xc] */
   3915     eax = esi + 0x10; /* 0x3802466B: lea eax, [esi + 0x10] */
   3916     esi = POP32_VAL(esp); /* 0x3802466E: pop esi */
   3917     ebx = POP32_VAL(esp); /* 0x3802466F: pop ebx */
   3918     MEM32(FS_BASE + (0)) = ecx; /* 0x38024670: mov dword ptr fs:[0], ecx */
   3919     esp = ebp; /* 0x38024677: mov esp, ebp */
   3920     ebp = POP32_VAL(esp); /* 0x38024679: pop ebp */
   3921     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3802467A: ret 4 */
   3922     RECOMP_REGS_OUT();
   3923 }
   3924 
   3925 void sub_38024680(void) {
   3926     int _fpu_cmp = 0;
   3927     uint32_t _cf = 0;
   3928     int _df = 1;
   3929     uint32_t _flag_k = FK_NONE;
   3930     uint32_t _flag_a = 0, _flag_b = 0;
   3931     uint32_t _itail_tgt = 0;
   3932     RECOMP_REGS_LOCALS
   3933     RECOMP_ENTER(0x38024680u);
   3934 
   3935 L_38024680:
   3936     PUSH32(esp, ebp); /* 0x38024680: push ebp */
   3937     ebp = esp; /* 0x38024681: mov ebp, esp */
   3938     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3939     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3940     esp = esp - 0xCu; /* 0x38024683: sub esp, 0xc */
   3941     _flag_k = FK_CMP;
   3942     PUSH32(esp, ebx); /* 0x38024686: push ebx */
   3943     PUSH32(esp, esi); /* 0x38024687: push esi */
   3944     PUSH32(esp, edi); /* 0x38024688: push edi */
   3945     edi = ecx; /* 0x38024689: mov edi, ecx */
   3946     ecx = MEM32(edi + 0x4); /* 0x3802468B: mov ecx, dword ptr [edi + 4] */
   3947     ebx = MEM32(ecx + 0x4); /* 0x3802468E: mov ebx, dword ptr [ecx + 4] */
   3948     edx = MEM32(edi + 0x8); /* 0x38024691: mov edx, dword ptr [edi + 8] */
   3949     /* cmp ebx, edx */ /* 0x38024694: cmp ebx, edx */
   3950     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   3951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3952     _flag_k = FK_CMP;
   3953     esi = ecx; /* 0x38024696: mov esi, ecx */
   3954     SET_LO8(eax, 1); /* 0x38024698: mov al, 1 */
   3955     if (CMP_EQ(_flag_a, _flag_b)) goto L_380246BE; /* 0x3802469A: je 0x380246be */
   3956 L_3802469C:
   3957     eax = MEM32(ebp + 0xC); /* 0x3802469C: mov eax, dword ptr [ebp + 0xc] */
   3958     eax = MEM32(eax); /* 0x3802469F: mov eax, dword ptr [eax] */
   3959     MEM32(ebp + (-0x8)) = eax; /* 0x380246A1: mov dword ptr [ebp - 8], eax */
   3960 L_380246A4:
   3961     eax = MEM32(ebp + (-0x8)); /* 0x380246A4: mov eax, dword ptr [ebp - 8] */
   3962     /* cmp eax, MEM32(ebx + 0xC) */ /* 0x380246A7: cmp eax, dword ptr [ebx + 0xc] */
   3963     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC));
   3964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3965     _flag_k = FK_CMP;
   3966     esi = ebx; /* 0x380246AA: mov esi, ebx */
   3967     SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x380246AC: setl al */
   3968     /* test LO8(eax), LO8(eax) */ /* 0x380246AF: test al, al */
   3969     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3970     _cf = 0;
   3971     _flag_k = FK_NARROW(FK_TEST, 24);
   3972     if (TEST_Z(_flag_a, _flag_b)) goto L_380246B7; /* 0x380246B1: je 0x380246b7 */
   3973 L_380246B3:
   3974     ebx = MEM32(ebx); /* 0x380246B3: mov ebx, dword ptr [ebx] */
   3975     goto L_380246BA; /* 0x380246B5: jmp 0x380246ba */
   3976 L_380246B7:
   3977     ebx = MEM32(ebx + 0x8); /* 0x380246B7: mov ebx, dword ptr [ebx + 8] */
   3978 L_380246BA:
   3979     /* cmp ebx, edx */ /* 0x380246BA: cmp ebx, edx */
   3980     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   3981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3982     _flag_k = FK_CMP;
   3983     RECOMP_BACKEDGE();
   3984     if (CMP_NE(_flag_a, _flag_b)) goto L_380246A4; /* 0x380246BC: jne 0x380246a4 */
   3985 L_380246BE:
   3986     SET_LO8(edx, MEM8(edi + 0xC)); /* 0x380246BE: mov dl, byte ptr [edi + 0xc] */
   3987     /* test LO8(edx), LO8(edx) */ /* 0x380246C1: test dl, dl */
   3988     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3989     _cf = 0;
   3990     _flag_k = FK_NARROW(FK_TEST, 24);
   3991     if (TEST_Z(_flag_a, _flag_b)) goto L_38024839; /* 0x380246C3: je 0x38024839 */
   3992 L_380246C9:
   3993     PUSH32(esp, 0); /* 0x380246C9: push 0 */
   3994     PUSH32(esp, esi); /* 0x380246CB: push esi */
   3995     ecx = edi; /* 0x380246CC: mov ecx, edi */
   3996     RECOMP_ICALL(0x38025130u); /* 0x380246CE: call 0x38025130 */ /* not lifted */
   3997     RECOMP_FLAGS_IN();
   3998     ecx = MEM32(edi + 0x8); /* 0x380246D3: mov ecx, dword ptr [edi + 8] */
   3999     MEM32(eax) = ecx; /* 0x380246D6: mov dword ptr [eax], ecx */
   4000     edx = MEM32(edi + 0x8); /* 0x380246D8: mov edx, dword ptr [edi + 8] */
   4001     ecx = MEM32(ebp + 0xC); /* 0x380246DB: mov ecx, dword ptr [ebp + 0xc] */
   4002     MEM32(ebp + (-0x4)) = eax; /* 0x380246DE: mov dword ptr [ebp - 4], eax */
   4003     MEM32(eax + 0x8) = edx; /* 0x380246E1: mov dword ptr [eax + 8], edx */
   4004     PUSH32(esp, ecx); /* 0x380246E4: push ecx */
   4005     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   4006     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4007     eax = eax + 0xCu; /* 0x380246E5: add eax, 0xc */
   4008     _flag_k = FK_ADD;
   4009     PUSH32(esp, eax); /* 0x380246E8: push eax */
   4010     RECOMP_ICALL(0x380253D0u); /* 0x380246E9: call 0x380253d0 */ /* not lifted */
   4011     RECOMP_FLAGS_IN();
   4012     ecx = MEM32(edi + 0x10); /* 0x380246EE: mov ecx, dword ptr [edi + 0x10] */
   4013     eax = MEM32(edi + 0x4); /* 0x380246F1: mov eax, dword ptr [edi + 4] */
   4014     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4016     esp = esp + 8; /* 0x380246F4: add esp, 8 */
   4017     _flag_k = FK_ADD;
   4018     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4019     ecx = ecx + 1; /* 0x380246F7: inc ecx */
   4020     _flag_k = FK_INC;
   4021     /* cmp esi, eax */ /* 0x380246F8: cmp esi, eax */
   4022     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4024     _flag_k = FK_CMP;
   4025     MEM32(edi + 0x10) = ecx; /* 0x380246FA: mov dword ptr [edi + 0x10], ecx */
   4026     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024721; /* 0x380246FD: je 0x38024721 */
   4027 L_380246FF:
   4028     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x380246FF: cmp ebx, dword ptr [edi + 8] */
   4029     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4031     _flag_k = FK_CMP;
   4032     if (CMP_NE(_flag_a, _flag_b)) goto L_38024721; /* 0x38024702: jne 0x38024721 */
   4033 L_38024704:
   4034     edx = MEM32(ebp + 0xC); /* 0x38024704: mov edx, dword ptr [ebp + 0xc] */
   4035     eax = MEM32(edx); /* 0x38024707: mov eax, dword ptr [edx] */
   4036     /* cmp eax, MEM32(esi + 0xC) */ /* 0x38024709: cmp eax, dword ptr [esi + 0xc] */
   4037     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   4038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4039     _flag_k = FK_CMP;
   4040     if (CMP_L(_flag_a, _flag_b)) goto L_38024721; /* 0x3802470C: jl 0x38024721 */
   4041 L_3802470E:
   4042     ebx = MEM32(ebp + (-0x4)); /* 0x3802470E: mov ebx, dword ptr [ebp - 4] */
   4043     MEM32(esi + 0x8) = ebx; /* 0x38024711: mov dword ptr [esi + 8], ebx */
   4044     eax = MEM32(edi + 0x4); /* 0x38024714: mov eax, dword ptr [edi + 4] */
   4045     /* cmp esi, MEM32(eax + 0x8) */ /* 0x38024717: cmp esi, dword ptr [eax + 8] */
   4046     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4048     _flag_k = FK_CMP;
   4049     if (CMP_NE(_flag_a, _flag_b)) goto L_38024744; /* 0x3802471A: jne 0x38024744 */
   4050 L_3802471C:
   4051     MEM32(eax + 0x8) = ebx; /* 0x3802471C: mov dword ptr [eax + 8], ebx */
   4052     goto L_38024744; /* 0x3802471F: jmp 0x38024744 */
   4053 L_38024721:
   4054     ecx = MEM32(ebp + (-0x4)); /* 0x38024721: mov ecx, dword ptr [ebp - 4] */
   4055     MEM32(esi) = ecx; /* 0x38024724: mov dword ptr [esi], ecx */
   4056     eax = MEM32(edi + 0x4); /* 0x38024726: mov eax, dword ptr [edi + 4] */
   4057     /* cmp esi, eax */ /* 0x38024729: cmp esi, eax */
   4058     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4059     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4060     _flag_k = FK_CMP;
   4061     if (CMP_NE(_flag_a, _flag_b)) goto L_38024738; /* 0x3802472B: jne 0x38024738 */
   4062 L_3802472D:
   4063     MEM32(eax + 0x4) = ecx; /* 0x3802472D: mov dword ptr [eax + 4], ecx */
   4064     edx = MEM32(edi + 0x4); /* 0x38024730: mov edx, dword ptr [edi + 4] */
   4065     MEM32(edx + 0x8) = ecx; /* 0x38024733: mov dword ptr [edx + 8], ecx */
   4066     goto L_38024741; /* 0x38024736: jmp 0x38024741 */
   4067 L_38024738:
   4068     /* cmp esi, MEM32(eax) */ /* 0x38024738: cmp esi, dword ptr [eax] */
   4069     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   4070     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4071     _flag_k = FK_CMP;
   4072     if (CMP_NE(_flag_a, _flag_b)) goto L_38024741; /* 0x3802473A: jne 0x38024741 */
   4073 L_3802473C:
   4074     ecx = MEM32(ebp + (-0x4)); /* 0x3802473C: mov ecx, dword ptr [ebp - 4] */
   4075     MEM32(eax) = ecx; /* 0x3802473F: mov dword ptr [eax], ecx */
   4076 L_38024741:
   4077     ebx = MEM32(ebp + (-0x4)); /* 0x38024741: mov ebx, dword ptr [ebp - 4] */
   4078 L_38024744:
   4079     edx = MEM32(edi + 0x4); /* 0x38024744: mov edx, dword ptr [edi + 4] */
   4080     /* cmp ebx, MEM32(edx + 0x4) */ /* 0x38024747: cmp ebx, dword ptr [edx + 4] */
   4081     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4083     _flag_k = FK_CMP;
   4084     esi = ebx; /* 0x3802474A: mov esi, ebx */
   4085     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024817; /* 0x3802474C: je 0x38024817 */
   4086 L_38024752:
   4087     eax = MEM32(esi + 0x4); /* 0x38024752: mov eax, dword ptr [esi + 4] */
   4088     SET_LO8(ecx, MEM8(eax + 0x20)); /* 0x38024755: mov cl, byte ptr [eax + 0x20] */
   4089     /* test LO8(ecx), LO8(ecx) */ /* 0x38024758: test cl, cl */
   4090     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4091     _cf = 0;
   4092     _flag_k = FK_NARROW(FK_TEST, 24);
   4093     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024817; /* 0x3802475A: jne 0x38024817 */
   4094 L_38024760:
   4095     edx = MEM32(eax + 0x4); /* 0x38024760: mov edx, dword ptr [eax + 4] */
   4096     ecx = MEM32(edx); /* 0x38024763: mov ecx, dword ptr [edx] */
   4097     /* cmp eax, ecx */ /* 0x38024765: cmp eax, ecx */
   4098     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4099     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4100     _flag_k = FK_CMP;
   4101     if (CMP_NE(_flag_a, _flag_b)) goto L_380247BD; /* 0x38024767: jne 0x380247bd */
   4102 L_38024769:
   4103     ecx = MEM32(edx + 0x8); /* 0x38024769: mov ecx, dword ptr [edx + 8] */
   4104     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3802476C: mov dl, byte ptr [ecx + 0x20] */
   4105     /* test LO8(edx), LO8(edx) */ /* 0x3802476F: test dl, dl */
   4106     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4107     _cf = 0;
   4108     _flag_k = FK_NARROW(FK_TEST, 24);
   4109     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802478D; /* 0x38024771: jne 0x3802478d */
   4110 L_38024773:
   4111     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x38024773: mov byte ptr [eax + 0x20], 1 */
   4112     MEM8(ecx + 0x20) = (uint8_t)(1); /* 0x38024777: mov byte ptr [ecx + 0x20], 1 */
   4113     eax = MEM32(esi + 0x4); /* 0x3802477B: mov eax, dword ptr [esi + 4] */
   4114     ecx = MEM32(eax + 0x4); /* 0x3802477E: mov ecx, dword ptr [eax + 4] */
   4115     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024781: mov byte ptr [ecx + 0x20], 0 */
   4116     edx = MEM32(esi + 0x4); /* 0x38024785: mov edx, dword ptr [esi + 4] */
   4117     esi = MEM32(edx + 0x4); /* 0x38024788: mov esi, dword ptr [edx + 4] */
   4118     goto L_3802480B; /* 0x3802478B: jmp 0x3802480b */
   4119 L_3802478D:
   4120     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3802478D: cmp esi, dword ptr [eax + 8] */
   4121     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4123     _flag_k = FK_CMP;
   4124     if (CMP_NE(_flag_a, _flag_b)) goto L_3802479C; /* 0x38024790: jne 0x3802479c */
   4125 L_38024792:
   4126     esi = eax; /* 0x38024792: mov esi, eax */
   4127     PUSH32(esp, esi); /* 0x38024794: push esi */
   4128     ecx = edi; /* 0x38024795: mov ecx, edi */
   4129     RECOMP_ICALL(0x3803B270u); /* 0x38024797: call 0x3803b270 */ /* not lifted */
   4130     RECOMP_FLAGS_IN();
   4131 L_3802479C:
   4132     eax = MEM32(esi + 0x4); /* 0x3802479C: mov eax, dword ptr [esi + 4] */
   4133     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x3802479F: mov byte ptr [eax + 0x20], 1 */
   4134     ecx = MEM32(esi + 0x4); /* 0x380247A3: mov ecx, dword ptr [esi + 4] */
   4135     edx = MEM32(ecx + 0x4); /* 0x380247A6: mov edx, dword ptr [ecx + 4] */
   4136     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x380247A9: mov byte ptr [edx + 0x20], 0 */
   4137     eax = MEM32(esi + 0x4); /* 0x380247AD: mov eax, dword ptr [esi + 4] */
   4138     ecx = MEM32(eax + 0x4); /* 0x380247B0: mov ecx, dword ptr [eax + 4] */
   4139     PUSH32(esp, ecx); /* 0x380247B3: push ecx */
   4140     ecx = edi; /* 0x380247B4: mov ecx, edi */
   4141     RECOMP_ICALL(0x3802F100u); /* 0x380247B6: call 0x3802f100 */ /* not lifted */
   4142     RECOMP_FLAGS_IN();
   4143     goto L_3802480B; /* 0x380247BB: jmp 0x3802480b */
   4144 L_380247BD:
   4145     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x380247BD: mov dl, byte ptr [ecx + 0x20] */
   4146     /* test LO8(edx), LO8(edx) */ /* 0x380247C0: test dl, dl */
   4147     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4148     _cf = 0;
   4149     _flag_k = FK_NARROW(FK_TEST, 24);
   4150     if (TEST_NZ(_flag_a, _flag_b)) goto L_380247DE; /* 0x380247C2: jne 0x380247de */
   4151 L_380247C4:
   4152     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x380247C4: mov byte ptr [eax + 0x20], 1 */
   4153     MEM8(ecx + 0x20) = (uint8_t)(1); /* 0x380247C8: mov byte ptr [ecx + 0x20], 1 */
   4154     edx = MEM32(esi + 0x4); /* 0x380247CC: mov edx, dword ptr [esi + 4] */
   4155     eax = MEM32(edx + 0x4); /* 0x380247CF: mov eax, dword ptr [edx + 4] */
   4156     MEM8(eax + 0x20) = (uint8_t)(0); /* 0x380247D2: mov byte ptr [eax + 0x20], 0 */
   4157     ecx = MEM32(esi + 0x4); /* 0x380247D6: mov ecx, dword ptr [esi + 4] */
   4158     esi = MEM32(ecx + 0x4); /* 0x380247D9: mov esi, dword ptr [ecx + 4] */
   4159     goto L_3802480B; /* 0x380247DC: jmp 0x3802480b */
   4160 L_380247DE:
   4161     /* cmp esi, MEM32(eax) */ /* 0x380247DE: cmp esi, dword ptr [eax] */
   4162     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   4163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4164     _flag_k = FK_CMP;
   4165     if (CMP_NE(_flag_a, _flag_b)) goto L_380247EC; /* 0x380247E0: jne 0x380247ec */
   4166 L_380247E2:
   4167     esi = eax; /* 0x380247E2: mov esi, eax */
   4168     PUSH32(esp, esi); /* 0x380247E4: push esi */
   4169     ecx = edi; /* 0x380247E5: mov ecx, edi */
   4170     RECOMP_ICALL(0x3802F100u); /* 0x380247E7: call 0x3802f100 */ /* not lifted */
   4171     RECOMP_FLAGS_IN();
   4172 L_380247EC:
   4173     edx = MEM32(esi + 0x4); /* 0x380247EC: mov edx, dword ptr [esi + 4] */
   4174     MEM8(edx + 0x20) = (uint8_t)(1); /* 0x380247EF: mov byte ptr [edx + 0x20], 1 */
   4175     eax = MEM32(esi + 0x4); /* 0x380247F3: mov eax, dword ptr [esi + 4] */
   4176     ecx = MEM32(eax + 0x4); /* 0x380247F6: mov ecx, dword ptr [eax + 4] */
   4177     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x380247F9: mov byte ptr [ecx + 0x20], 0 */
   4178     edx = MEM32(esi + 0x4); /* 0x380247FD: mov edx, dword ptr [esi + 4] */
   4179     eax = MEM32(edx + 0x4); /* 0x38024800: mov eax, dword ptr [edx + 4] */
   4180     PUSH32(esp, eax); /* 0x38024803: push eax */
   4181     ecx = edi; /* 0x38024804: mov ecx, edi */
   4182     RECOMP_ICALL(0x3803B270u); /* 0x38024806: call 0x3803b270 */ /* not lifted */
   4183     RECOMP_FLAGS_IN();
   4184 L_3802480B:
   4185     ecx = MEM32(edi + 0x4); /* 0x3802480B: mov ecx, dword ptr [edi + 4] */
   4186     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3802480E: cmp esi, dword ptr [ecx + 4] */
   4187     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4189     _flag_k = FK_CMP;
   4190     RECOMP_BACKEDGE();
   4191     if (CMP_NE(_flag_a, _flag_b)) goto L_38024752; /* 0x38024811: jne 0x38024752 */
   4192 L_38024817:
   4193     edx = MEM32(edi + 0x4); /* 0x38024817: mov edx, dword ptr [edi + 4] */
   4194     eax = MEM32(edx + 0x4); /* 0x3802481A: mov eax, dword ptr [edx + 4] */
   4195     MEM8(eax + 0x20) = (uint8_t)(1); /* 0x3802481D: mov byte ptr [eax + 0x20], 1 */
   4196     eax = MEM32(ebp + 0x8); /* 0x38024821: mov eax, dword ptr [ebp + 8] */
   4197     edi = POP32_VAL(esp); /* 0x38024824: pop edi */
   4198     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x38024825: mov byte ptr [ebp - 8], 1 */
   4199     ecx = MEM32(ebp + (-0x8)); /* 0x38024829: mov ecx, dword ptr [ebp - 8] */
   4200     MEM32(eax) = ebx; /* 0x3802482C: mov dword ptr [eax], ebx */
   4201     esi = POP32_VAL(esp); /* 0x3802482E: pop esi */
   4202     MEM32(eax + 0x4) = ecx; /* 0x3802482F: mov dword ptr [eax + 4], ecx */
   4203     ebx = POP32_VAL(esp); /* 0x38024832: pop ebx */
   4204     esp = ebp; /* 0x38024833: mov esp, ebp */
   4205     ebp = POP32_VAL(esp); /* 0x38024835: pop ebp */
   4206     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38024836: ret 8 */
   4207 L_38024839:
   4208     /* test LO8(eax), LO8(eax) */ /* 0x38024839: test al, al */
   4209     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4210     _cf = 0;
   4211     _flag_k = FK_NARROW(FK_TEST, 24);
   4212     edx = esi; /* 0x3802483B: mov edx, esi */
   4213     MEM32(ebp + (-0x8)) = edx; /* 0x3802483D: mov dword ptr [ebp - 8], edx */
   4214     if (TEST_Z(_flag_a, _flag_b)) goto L_3802487C; /* 0x38024840: je 0x3802487c */
   4215 L_38024842:
   4216     /* cmp esi, MEM32(ecx) */ /* 0x38024842: cmp esi, dword ptr [ecx] */
   4217     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx));
   4218     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4219     _flag_k = FK_CMP;
   4220     if (CMP_NE(_flag_a, _flag_b)) goto L_38024871; /* 0x38024844: jne 0x38024871 */
   4221 L_38024846:
   4222     edx = MEM32(ebp + 0xC); /* 0x38024846: mov edx, dword ptr [ebp + 0xc] */
   4223     PUSH32(esp, edx); /* 0x38024849: push edx */
   4224     PUSH32(esp, esi); /* 0x3802484A: push esi */
   4225     PUSH32(esp, ebx); /* 0x3802484B: push ebx */
   4226     eax = ebp + 0xC; /* 0x3802484C: lea eax, [ebp + 0xc] */
   4227     PUSH32(esp, eax); /* 0x3802484F: push eax */
   4228     ecx = edi; /* 0x38024850: mov ecx, edi */
   4229     RECOMP_ICALL(0x38024C40u); /* 0x38024852: call 0x38024c40 */ /* not lifted */
   4230     RECOMP_FLAGS_IN();
   4231     ecx = MEM32(eax); /* 0x38024857: mov ecx, dword ptr [eax] */
   4232     eax = MEM32(ebp + 0x8); /* 0x38024859: mov eax, dword ptr [ebp + 8] */
   4233     edi = POP32_VAL(esp); /* 0x3802485C: pop edi */
   4234     MEM32(eax) = ecx; /* 0x3802485D: mov dword ptr [eax], ecx */
   4235     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3802485F: mov byte ptr [ebp - 8], 1 */
   4236     ecx = MEM32(ebp + (-0x8)); /* 0x38024863: mov ecx, dword ptr [ebp - 8] */
   4237     esi = POP32_VAL(esp); /* 0x38024866: pop esi */
   4238     MEM32(eax + 0x4) = ecx; /* 0x38024867: mov dword ptr [eax + 4], ecx */
   4239     ebx = POP32_VAL(esp); /* 0x3802486A: pop ebx */
   4240     esp = ebp; /* 0x3802486B: mov esp, ebp */
   4241     ebp = POP32_VAL(esp); /* 0x3802486D: pop ebp */
   4242     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3802486E: ret 8 */
   4243 L_38024871:
   4244     ecx = ebp + (-0x8); /* 0x38024871: lea ecx, [ebp - 8] */
   4245     RECOMP_ICALL(0x3803B2D0u); /* 0x38024874: call 0x3803b2d0 */ /* not lifted */
   4246     RECOMP_FLAGS_IN();
   4247     edx = MEM32(ebp + (-0x8)); /* 0x38024879: mov edx, dword ptr [ebp - 8] */
   4248 L_3802487C:
   4249     ecx = MEM32(edx + 0xC); /* 0x3802487C: mov ecx, dword ptr [edx + 0xc] */
   4250     eax = MEM32(ebp + 0xC); /* 0x3802487F: mov eax, dword ptr [ebp + 0xc] */
   4251     /* cmp ecx, MEM32(eax) */ /* 0x38024882: cmp ecx, dword ptr [eax] */
   4252     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   4253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4254     _flag_k = FK_CMP;
   4255     if (CMP_GE(_flag_a, _flag_b)) goto L_380248AE; /* 0x38024884: jge 0x380248ae */
   4256 L_38024886:
   4257     PUSH32(esp, eax); /* 0x38024886: push eax */
   4258     PUSH32(esp, esi); /* 0x38024887: push esi */
   4259     PUSH32(esp, ebx); /* 0x38024888: push ebx */
   4260     edx = ebp + 0xC; /* 0x38024889: lea edx, [ebp + 0xc] */
   4261     PUSH32(esp, edx); /* 0x3802488C: push edx */
   4262     ecx = edi; /* 0x3802488D: mov ecx, edi */
   4263     RECOMP_ICALL(0x38024C40u); /* 0x3802488F: call 0x38024c40 */ /* not lifted */
   4264     RECOMP_FLAGS_IN();
   4265     ecx = MEM32(eax); /* 0x38024894: mov ecx, dword ptr [eax] */
   4266     eax = MEM32(ebp + 0x8); /* 0x38024896: mov eax, dword ptr [ebp + 8] */
   4267     edi = POP32_VAL(esp); /* 0x38024899: pop edi */
   4268     MEM32(eax) = ecx; /* 0x3802489A: mov dword ptr [eax], ecx */
   4269     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3802489C: mov byte ptr [ebp - 8], 1 */
   4270     ecx = MEM32(ebp + (-0x8)); /* 0x380248A0: mov ecx, dword ptr [ebp - 8] */
   4271     esi = POP32_VAL(esp); /* 0x380248A3: pop esi */
   4272     MEM32(eax + 0x4) = ecx; /* 0x380248A4: mov dword ptr [eax + 4], ecx */
   4273     ebx = POP32_VAL(esp); /* 0x380248A7: pop ebx */
   4274     esp = ebp; /* 0x380248A8: mov esp, ebp */
   4275     ebp = POP32_VAL(esp); /* 0x380248AA: pop ebp */
   4276     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380248AB: ret 8 */
   4277 L_380248AE:
   4278     eax = MEM32(ebp + 0x8); /* 0x380248AE: mov eax, dword ptr [ebp + 8] */
   4279     edi = POP32_VAL(esp); /* 0x380248B1: pop edi */
   4280     MEM32(eax) = edx; /* 0x380248B2: mov dword ptr [eax], edx */
   4281     MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x380248B4: mov byte ptr [ebp - 8], 0 */
   4282     edx = MEM32(ebp + (-0x8)); /* 0x380248B8: mov edx, dword ptr [ebp - 8] */
   4283     esi = POP32_VAL(esp); /* 0x380248BB: pop esi */
   4284     MEM32(eax + 0x4) = edx; /* 0x380248BC: mov dword ptr [eax + 4], edx */
   4285     ebx = POP32_VAL(esp); /* 0x380248BF: pop ebx */
   4286     esp = ebp; /* 0x380248C0: mov esp, ebp */
   4287     ebp = POP32_VAL(esp); /* 0x380248C2: pop ebp */
   4288     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380248C3: ret 8 */
   4289     RECOMP_REGS_OUT();
   4290 }
   4291 
   4292 void sub_380248D0(void) {
   4293     int _fpu_cmp = 0;
   4294     uint32_t _cf = 0;
   4295     int _df = 1;
   4296     uint32_t _flag_k = FK_NONE;
   4297     uint32_t _flag_a = 0, _flag_b = 0;
   4298     uint32_t _itail_tgt = 0;
   4299     RECOMP_REGS_LOCALS
   4300     RECOMP_ENTER(0x380248D0u);
   4301 
   4302 L_380248D0:
   4303     PUSH32(esp, ebp); /* 0x380248D0: push ebp */
   4304     ebp = esp; /* 0x380248D1: mov ebp, esp */
   4305     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4307     esp = esp - 0x10u; /* 0x380248D3: sub esp, 0x10 */
   4308     _flag_k = FK_CMP;
   4309     PUSH32(esp, ebx); /* 0x380248D6: push ebx */
   4310     ebx = ecx; /* 0x380248D7: mov ebx, ecx */
   4311     edx = MEM32(ebx + 0x4); /* 0x380248D9: mov edx, dword ptr [ebx + 4] */
   4312     ecx = MEM32(ebx + 0x8); /* 0x380248DC: mov ecx, dword ptr [ebx + 8] */
   4313     PUSH32(esp, esi); /* 0x380248DF: push esi */
   4314     esi = MEM32(edx + 0x4); /* 0x380248E0: mov esi, dword ptr [edx + 4] */
   4315     /* cmp esi, ecx */ /* 0x380248E3: cmp esi, ecx */
   4316     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   4317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4318     _flag_k = FK_CMP;
   4319     PUSH32(esp, edi); /* 0x380248E5: push edi */
   4320     edi = edx; /* 0x380248E6: mov edi, edx */
   4321     SET_LO8(eax, 1); /* 0x380248E8: mov al, 1 */
   4322     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802490E; /* 0x380248EA: je 0x3802490e */
   4323 L_380248EC:
   4324     eax = MEM32(ebp + 0xC); /* 0x380248EC: mov eax, dword ptr [ebp + 0xc] */
   4325     eax = MEM32(eax); /* 0x380248EF: mov eax, dword ptr [eax] */
   4326     MEM32(ebp + (-0x4)) = eax; /* 0x380248F1: mov dword ptr [ebp - 4], eax */
   4327 L_380248F4:
   4328     eax = MEM32(ebp + (-0x4)); /* 0x380248F4: mov eax, dword ptr [ebp - 4] */
   4329     /* cmp eax, MEM32(esi + 0xC) */ /* 0x380248F7: cmp eax, dword ptr [esi + 0xc] */
   4330     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   4331     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4332     _flag_k = FK_CMP;
   4333     edi = esi; /* 0x380248FA: mov edi, esi */
   4334     SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x380248FC: setb al */
   4335     /* test LO8(eax), LO8(eax) */ /* 0x380248FF: test al, al */
   4336     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4337     _cf = 0;
   4338     _flag_k = FK_NARROW(FK_TEST, 24);
   4339     if (TEST_Z(_flag_a, _flag_b)) goto L_38024907; /* 0x38024901: je 0x38024907 */
   4340 L_38024903:
   4341     esi = MEM32(esi); /* 0x38024903: mov esi, dword ptr [esi] */
   4342     goto L_3802490A; /* 0x38024905: jmp 0x3802490a */
   4343 L_38024907:
   4344     esi = MEM32(esi + 0x8); /* 0x38024907: mov esi, dword ptr [esi + 8] */
   4345 L_3802490A:
   4346     /* cmp esi, ecx */ /* 0x3802490A: cmp esi, ecx */
   4347     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   4348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4349     _flag_k = FK_CMP;
   4350     RECOMP_BACKEDGE();
   4351     if (CMP_NE(_flag_a, _flag_b)) goto L_380248F4; /* 0x3802490C: jne 0x380248f4 */
   4352 L_3802490E:
   4353     SET_LO8(ecx, MEM8(ebx + 0xC)); /* 0x3802490E: mov cl, byte ptr [ebx + 0xc] */
   4354     /* test LO8(ecx), LO8(ecx) */ /* 0x38024911: test cl, cl */
   4355     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4356     _cf = 0;
   4357     _flag_k = FK_NARROW(FK_TEST, 24);
   4358     if (TEST_Z(_flag_a, _flag_b)) goto L_38024933; /* 0x38024913: je 0x38024933 */
   4359 L_38024915:
   4360     ecx = MEM32(ebp + 0xC); /* 0x38024915: mov ecx, dword ptr [ebp + 0xc] */
   4361     PUSH32(esp, ecx); /* 0x38024918: push ecx */
   4362     PUSH32(esp, edi); /* 0x38024919: push edi */
   4363     PUSH32(esp, esi); /* 0x3802491A: push esi */
   4364     edx = ebp + (-0x8); /* 0x3802491B: lea edx, [ebp - 8] */
   4365     PUSH32(esp, edx); /* 0x3802491E: push edx */
   4366     ecx = ebx; /* 0x3802491F: mov ecx, ebx */
   4367     RECOMP_ICALL(0x38025160u); /* 0x38024921: call 0x38025160 */ /* not lifted */
   4368     RECOMP_FLAGS_IN();
   4369     eax = MEM32(eax); /* 0x38024926: mov eax, dword ptr [eax] */
   4370     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x38024928: mov byte ptr [ebp - 0xc], 1 */
   4371     ecx = eax; /* 0x3802492C: mov ecx, eax */
   4372     eax = MEM32(ebp + (-0xC)); /* 0x3802492E: mov eax, dword ptr [ebp - 0xc] */
   4373     goto L_38024995; /* 0x38024931: jmp 0x38024995 */
   4374 L_38024933:
   4375     /* test LO8(eax), LO8(eax) */ /* 0x38024933: test al, al */
   4376     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4377     _cf = 0;
   4378     _flag_k = FK_NARROW(FK_TEST, 24);
   4379     ecx = edi; /* 0x38024935: mov ecx, edi */
   4380     MEM32(ebp + (-0x4)) = ecx; /* 0x38024937: mov dword ptr [ebp - 4], ecx */
   4381     if (TEST_Z(_flag_a, _flag_b)) goto L_38024969; /* 0x3802493A: je 0x38024969 */
   4382 L_3802493C:
   4383     /* cmp edi, MEM32(edx) */ /* 0x3802493C: cmp edi, dword ptr [edx] */
   4384     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx));
   4385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4386     _flag_k = FK_CMP;
   4387     if (CMP_NE(_flag_a, _flag_b)) goto L_3802495E; /* 0x3802493E: jne 0x3802495e */
   4388 L_38024940:
   4389     eax = MEM32(ebp + 0xC); /* 0x38024940: mov eax, dword ptr [ebp + 0xc] */
   4390     PUSH32(esp, eax); /* 0x38024943: push eax */
   4391     PUSH32(esp, edi); /* 0x38024944: push edi */
   4392     PUSH32(esp, esi); /* 0x38024945: push esi */
   4393     ecx = ebp + (-0xC); /* 0x38024946: lea ecx, [ebp - 0xc] */
   4394     PUSH32(esp, ecx); /* 0x38024949: push ecx */
   4395     ecx = ebx; /* 0x3802494A: mov ecx, ebx */
   4396     RECOMP_ICALL(0x38025160u); /* 0x3802494C: call 0x38025160 */ /* not lifted */
   4397     RECOMP_FLAGS_IN();
   4398     eax = MEM32(eax); /* 0x38024951: mov eax, dword ptr [eax] */
   4399     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x38024953: mov byte ptr [ebp - 0xc], 1 */
   4400     ecx = eax; /* 0x38024957: mov ecx, eax */
   4401     eax = MEM32(ebp + (-0xC)); /* 0x38024959: mov eax, dword ptr [ebp - 0xc] */
   4402     goto L_38024995; /* 0x3802495C: jmp 0x38024995 */
   4403 L_3802495E:
   4404     ecx = ebp + (-0x4); /* 0x3802495E: lea ecx, [ebp - 4] */
   4405     RECOMP_ICALL(0x3801B170u); /* 0x38024961: call 0x3801b170 */ /* not lifted */
   4406     RECOMP_FLAGS_IN();
   4407     ecx = MEM32(ebp + (-0x4)); /* 0x38024966: mov ecx, dword ptr [ebp - 4] */
   4408 L_38024969:
   4409     edx = MEM32(ecx + 0xC); /* 0x38024969: mov edx, dword ptr [ecx + 0xc] */
   4410     eax = MEM32(ebp + 0xC); /* 0x3802496C: mov eax, dword ptr [ebp + 0xc] */
   4411     /* cmp edx, MEM32(eax) */ /* 0x3802496F: cmp edx, dword ptr [eax] */
   4412     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   4413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4414     _flag_k = FK_CMP;
   4415     if (CMP_AE(_flag_a, _flag_b)) goto L_3802498E; /* 0x38024971: jae 0x3802498e */
   4416 L_38024973:
   4417     PUSH32(esp, eax); /* 0x38024973: push eax */
   4418     PUSH32(esp, edi); /* 0x38024974: push edi */
   4419     PUSH32(esp, esi); /* 0x38024975: push esi */
   4420     eax = ebp + 0xC; /* 0x38024976: lea eax, [ebp + 0xc] */
   4421     PUSH32(esp, eax); /* 0x38024979: push eax */
   4422     ecx = ebx; /* 0x3802497A: mov ecx, ebx */
   4423     RECOMP_ICALL(0x38025160u); /* 0x3802497C: call 0x38025160 */ /* not lifted */
   4424     RECOMP_FLAGS_IN();
   4425     eax = MEM32(eax); /* 0x38024981: mov eax, dword ptr [eax] */
   4426     MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x38024983: mov byte ptr [ebp - 0xc], 1 */
   4427     ecx = eax; /* 0x38024987: mov ecx, eax */
   4428     eax = MEM32(ebp + (-0xC)); /* 0x38024989: mov eax, dword ptr [ebp - 0xc] */
   4429     goto L_38024995; /* 0x3802498C: jmp 0x38024995 */
   4430 L_3802498E:
   4431     MEM8(ebp + (-0xC)) = (uint8_t)(0); /* 0x3802498E: mov byte ptr [ebp - 0xc], 0 */
   4432     eax = MEM32(ebp + (-0xC)); /* 0x38024992: mov eax, dword ptr [ebp - 0xc] */
   4433 L_38024995:
   4434     MEM8(ebp + (-0xC)) = (uint8_t)(LO8(eax)); /* 0x38024995: mov byte ptr [ebp - 0xc], al */
   4435     eax = MEM32(ebp + 0x8); /* 0x38024998: mov eax, dword ptr [ebp + 8] */
   4436     edi = POP32_VAL(esp); /* 0x3802499B: pop edi */
   4437     MEM32(eax) = ecx; /* 0x3802499C: mov dword ptr [eax], ecx */
   4438     ecx = MEM32(ebp + (-0xC)); /* 0x3802499E: mov ecx, dword ptr [ebp - 0xc] */
   4439     esi = POP32_VAL(esp); /* 0x380249A1: pop esi */
   4440     MEM32(eax + 0x4) = ecx; /* 0x380249A2: mov dword ptr [eax + 4], ecx */
   4441     ebx = POP32_VAL(esp); /* 0x380249A5: pop ebx */
   4442     esp = ebp; /* 0x380249A6: mov esp, ebp */
   4443     ebp = POP32_VAL(esp); /* 0x380249A8: pop ebp */
   4444     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380249A9: ret 8 */
   4445     RECOMP_REGS_OUT();
   4446 }
   4447 
   4448 void sub_380249B0(void) {
   4449     int _fpu_cmp = 0;
   4450     uint32_t _cf = 0;
   4451     int _df = 1;
   4452     uint32_t _flag_k = FK_NONE;
   4453     uint32_t _flag_a = 0, _flag_b = 0;
   4454     uint32_t _itail_tgt = 0;
   4455     RECOMP_REGS_LOCALS
   4456     RECOMP_ENTER(0x380249B0u);
   4457 
   4458 L_380249B0:
   4459     eax = MEM32(ecx); /* 0x380249B0: mov eax, dword ptr [ecx] */
   4460     edx = MEM32(eax + 0x8); /* 0x380249B2: mov edx, dword ptr [eax + 8] */
   4461     PUSH32(esp, ebx); /* 0x380249B5: push ebx */
   4462     SET_LO8(ebx, MEM8(edx + 0x19)); /* 0x380249B6: mov bl, byte ptr [edx + 0x19] */
   4463     /* test LO8(ebx), LO8(ebx) */ /* 0x380249B9: test bl, bl */
   4464     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4465     _cf = 0;
   4466     _flag_k = FK_NARROW(FK_TEST, 24);
   4467     if (TEST_NZ(_flag_a, _flag_b)) goto L_380249D5; /* 0x380249BB: jne 0x380249d5 */
   4468 L_380249BD:
   4469     eax = MEM32(edx); /* 0x380249BD: mov eax, dword ptr [edx] */
   4470     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x380249BF: mov bl, byte ptr [eax + 0x19] */
   4471     /* test LO8(ebx), LO8(ebx) */ /* 0x380249C2: test bl, bl */
   4472     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4473     _cf = 0;
   4474     _flag_k = FK_NARROW(FK_TEST, 24);
   4475     if (TEST_NZ(_flag_a, _flag_b)) goto L_380249D1; /* 0x380249C4: jne 0x380249d1 */
   4476 L_380249C6:
   4477     edx = eax; /* 0x380249C6: mov edx, eax */
   4478     eax = MEM32(edx); /* 0x380249C8: mov eax, dword ptr [edx] */
   4479     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x380249CA: mov bl, byte ptr [eax + 0x19] */
   4480     /* test LO8(ebx), LO8(ebx) */ /* 0x380249CD: test bl, bl */
   4481     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   4482     _cf = 0;
   4483     _flag_k = FK_NARROW(FK_TEST, 24);
   4484     RECOMP_BACKEDGE();
   4485     if (TEST_Z(_flag_a, _flag_b)) goto L_380249C6; /* 0x380249CF: je 0x380249c6 */
   4486 L_380249D1:
   4487     MEM32(ecx) = edx; /* 0x380249D1: mov dword ptr [ecx], edx */
   4488     ebx = POP32_VAL(esp); /* 0x380249D3: pop ebx */
   4489     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380249D4: ret  */
   4490 L_380249D5:
   4491     eax = MEM32(eax + 0x4); /* 0x380249D5: mov eax, dword ptr [eax + 4] */
   4492     edx = MEM32(ecx); /* 0x380249D8: mov edx, dword ptr [ecx] */
   4493     /* cmp edx, MEM32(eax + 0x8) */ /* 0x380249DA: cmp edx, dword ptr [eax + 8] */
   4494     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4496     _flag_k = FK_CMP;
   4497     if (CMP_NE(_flag_a, _flag_b)) goto L_380249EB; /* 0x380249DD: jne 0x380249eb */
   4498 L_380249DF:
   4499     MEM32(ecx) = eax; /* 0x380249DF: mov dword ptr [ecx], eax */
   4500     eax = MEM32(eax + 0x4); /* 0x380249E1: mov eax, dword ptr [eax + 4] */
   4501     edx = MEM32(ecx); /* 0x380249E4: mov edx, dword ptr [ecx] */
   4502     /* cmp edx, MEM32(eax + 0x8) */ /* 0x380249E6: cmp edx, dword ptr [eax + 8] */
   4503     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4504     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4505     _flag_k = FK_CMP;
   4506     RECOMP_BACKEDGE();
   4507     if (CMP_EQ(_flag_a, _flag_b)) goto L_380249DF; /* 0x380249E9: je 0x380249df */
   4508 L_380249EB:
   4509     edx = MEM32(ecx); /* 0x380249EB: mov edx, dword ptr [ecx] */
   4510     /* cmp MEM32(edx + 0x8), eax */ /* 0x380249ED: cmp dword ptr [edx + 8], eax */
   4511     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
   4512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4513     _flag_k = FK_CMP;
   4514     if (CMP_EQ(_flag_a, _flag_b)) goto L_380249F4; /* 0x380249F0: je 0x380249f4 */
   4515 L_380249F2:
   4516     MEM32(ecx) = eax; /* 0x380249F2: mov dword ptr [ecx], eax */
   4517 L_380249F4:
   4518     ebx = POP32_VAL(esp); /* 0x380249F4: pop ebx */
   4519     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380249F5: ret  */
   4520     RECOMP_REGS_OUT();
   4521 }
   4522 
   4523 void sub_38024A00(void) {
   4524     int _fpu_cmp = 0;
   4525     uint32_t _cf = 0;
   4526     int _df = 1;
   4527     uint32_t _flag_k = FK_NONE;
   4528     uint32_t _flag_a = 0, _flag_b = 0;
   4529     uint32_t _itail_tgt = 0;
   4530     RECOMP_REGS_LOCALS
   4531     RECOMP_ENTER(0x38024A00u);
   4532 
   4533 L_38024A00:
   4534     PUSH32(esp, ebp); /* 0x38024A00: push ebp */
   4535     ebp = esp; /* 0x38024A01: mov ebp, esp */
   4536     PUSH32(esp, ecx); /* 0x38024A03: push ecx */
   4537     PUSH32(esp, ebx); /* 0x38024A04: push ebx */
   4538     PUSH32(esp, esi); /* 0x38024A05: push esi */
   4539     PUSH32(esp, edi); /* 0x38024A06: push edi */
   4540     PUSH32(esp, 0x18u); /* 0x38024A07: push 0x18 */
   4541     esi = ecx; /* 0x38024A09: mov esi, ecx */
   4542     RECOMP_ICALL(0x3804B676u); /* 0x38024A0B: call 0x3804b676 */ /* not lifted */
   4543     RECOMP_FLAGS_IN();
   4544     edi = MEM32(ebp + 0x10); /* 0x38024A10: mov edi, dword ptr [ebp + 0x10] */
   4545     ebx = MEM32(ebp + 0x14); /* 0x38024A13: mov ebx, dword ptr [ebp + 0x14] */
   4546     MEM32(eax + 0x4) = edi; /* 0x38024A16: mov dword ptr [eax + 4], edi */
   4547     MEM8(eax + 0x14) = (uint8_t)(0); /* 0x38024A19: mov byte ptr [eax + 0x14], 0 */
   4548     MEM8(eax + 0x15) = (uint8_t)(0); /* 0x38024A1D: mov byte ptr [eax + 0x15], 0 */
   4549     ecx = MEM32(esi + 0x8); /* 0x38024A21: mov ecx, dword ptr [esi + 8] */
   4550     MEM32(eax) = ecx; /* 0x38024A24: mov dword ptr [eax], ecx */
   4551     edx = MEM32(esi + 0x8); /* 0x38024A26: mov edx, dword ptr [esi + 8] */
   4552     MEM32(ebp + (-0x4)) = eax; /* 0x38024A29: mov dword ptr [ebp - 4], eax */
   4553     MEM32(eax + 0x8) = edx; /* 0x38024A2C: mov dword ptr [eax + 8], edx */
   4554     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   4555     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4556     eax = eax + 0xCu; /* 0x38024A2F: add eax, 0xc */
   4557     _flag_k = FK_ADD;
   4558     PUSH32(esp, ebx); /* 0x38024A32: push ebx */
   4559     PUSH32(esp, eax); /* 0x38024A33: push eax */
   4560     RECOMP_ICALL(0x3802F370u); /* 0x38024A34: call 0x3802f370 */ /* not lifted */
   4561     RECOMP_FLAGS_IN();
   4562     ecx = MEM32(esi + 0x10); /* 0x38024A39: mov ecx, dword ptr [esi + 0x10] */
   4563     eax = MEM32(esi + 0x4); /* 0x38024A3C: mov eax, dword ptr [esi + 4] */
   4564     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4565     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4566     esp = esp + 0xCu; /* 0x38024A3F: add esp, 0xc */
   4567     _flag_k = FK_ADD;
   4568     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4569     ecx = ecx + 1; /* 0x38024A42: inc ecx */
   4570     _flag_k = FK_INC;
   4571     /* cmp edi, eax */ /* 0x38024A43: cmp edi, eax */
   4572     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4574     _flag_k = FK_CMP;
   4575     MEM32(esi + 0x10) = ecx; /* 0x38024A45: mov dword ptr [esi + 0x10], ecx */
   4576     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024A6C; /* 0x38024A48: je 0x38024a6c */
   4577 L_38024A4A:
   4578     eax = MEM32(ebp + 0xC); /* 0x38024A4A: mov eax, dword ptr [ebp + 0xc] */
   4579     /* cmp eax, MEM32(esi + 0x8) */ /* 0x38024A4D: cmp eax, dword ptr [esi + 8] */
   4580     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4582     _flag_k = FK_CMP;
   4583     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A6C; /* 0x38024A50: jne 0x38024a6c */
   4584 L_38024A52:
   4585     ecx = MEM32(ebx); /* 0x38024A52: mov ecx, dword ptr [ebx] */
   4586     /* cmp ecx, MEM32(edi + 0xC) */ /* 0x38024A54: cmp ecx, dword ptr [edi + 0xc] */
   4587     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC));
   4588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4589     _flag_k = FK_CMP;
   4590     if (CMP_L(_flag_a, _flag_b)) goto L_38024A6C; /* 0x38024A57: jl 0x38024a6c */
   4591 L_38024A59:
   4592     ecx = MEM32(ebp + (-0x4)); /* 0x38024A59: mov ecx, dword ptr [ebp - 4] */
   4593     MEM32(edi + 0x8) = ecx; /* 0x38024A5C: mov dword ptr [edi + 8], ecx */
   4594     eax = MEM32(esi + 0x4); /* 0x38024A5F: mov eax, dword ptr [esi + 4] */
   4595     /* cmp edi, MEM32(eax + 0x8) */ /* 0x38024A62: cmp edi, dword ptr [eax + 8] */
   4596     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4598     _flag_k = FK_CMP;
   4599     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A8C; /* 0x38024A65: jne 0x38024a8c */
   4600 L_38024A67:
   4601     MEM32(eax + 0x8) = ecx; /* 0x38024A67: mov dword ptr [eax + 8], ecx */
   4602     goto L_38024A8C; /* 0x38024A6A: jmp 0x38024a8c */
   4603 L_38024A6C:
   4604     ecx = MEM32(ebp + (-0x4)); /* 0x38024A6C: mov ecx, dword ptr [ebp - 4] */
   4605     MEM32(edi) = ecx; /* 0x38024A6F: mov dword ptr [edi], ecx */
   4606     eax = MEM32(esi + 0x4); /* 0x38024A71: mov eax, dword ptr [esi + 4] */
   4607     /* cmp edi, eax */ /* 0x38024A74: cmp edi, eax */
   4608     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4609     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4610     _flag_k = FK_CMP;
   4611     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A83; /* 0x38024A76: jne 0x38024a83 */
   4612 L_38024A78:
   4613     MEM32(eax + 0x4) = ecx; /* 0x38024A78: mov dword ptr [eax + 4], ecx */
   4614     edx = MEM32(esi + 0x4); /* 0x38024A7B: mov edx, dword ptr [esi + 4] */
   4615     MEM32(edx + 0x8) = ecx; /* 0x38024A7E: mov dword ptr [edx + 8], ecx */
   4616     goto L_38024A8C; /* 0x38024A81: jmp 0x38024a8c */
   4617 L_38024A83:
   4618     /* cmp edi, MEM32(eax) */ /* 0x38024A83: cmp edi, dword ptr [eax] */
   4619     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   4620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4621     _flag_k = FK_CMP;
   4622     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A8C; /* 0x38024A85: jne 0x38024a8c */
   4623 L_38024A87:
   4624     ecx = MEM32(ebp + (-0x4)); /* 0x38024A87: mov ecx, dword ptr [ebp - 4] */
   4625     MEM32(eax) = ecx; /* 0x38024A8A: mov dword ptr [eax], ecx */
   4626 L_38024A8C:
   4627     edx = MEM32(esi + 0x4); /* 0x38024A8C: mov edx, dword ptr [esi + 4] */
   4628     eax = MEM32(ebp + (-0x4)); /* 0x38024A8F: mov eax, dword ptr [ebp - 4] */
   4629     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024A92: cmp eax, dword ptr [edx + 4] */
   4630     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4631     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4632     _flag_k = FK_CMP;
   4633     SET_LO8(ebx, 1); /* 0x38024A95: mov bl, 1 */
   4634     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024A97: je 0x38024c1d */
   4635 L_38024A9D:
   4636     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   4637     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   4638     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   4639     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4640     _cf = 0;
   4641     _flag_k = FK_NARROW(FK_TEST, 24);
   4642     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   4643 L_38024AAB:
   4644     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   4645     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   4646     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   4647     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4649     _flag_k = FK_CMP;
   4650     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   4651 L_38024AB8:
   4652     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   4653     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   4654     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4656     _flag_k = FK_NARROW(FK_CMP, 24);
   4657     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   4658 L_38024AC1:
   4659     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   4660     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   4661     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   4662     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   4663     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   4664     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   4665     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   4666     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   4667 L_38024ADC:
   4668     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   4669     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4671     _flag_k = FK_CMP;
   4672     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   4673 L_38024AE1:
   4674     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   4675     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   4676     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   4677     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   4678     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   4679     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   4680     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4681     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4682     _flag_k = FK_CMP;
   4683     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   4684 L_38024AF2:
   4685     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   4686 L_38024AF5:
   4687     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   4688     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   4689     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   4690     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   4691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4693     _flag_k = FK_CMP;
   4694     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   4695 L_38024B03:
   4696     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   4697     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   4698 L_38024B08:
   4699     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   4700     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   4701     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4703     _flag_k = FK_CMP;
   4704     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   4705 L_38024B0F:
   4706     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   4707     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   4708 L_38024B13:
   4709     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   4710 L_38024B16:
   4711     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   4712     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   4713 L_38024B1B:
   4714     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   4715     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   4716     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   4717     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   4718     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   4719     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   4720     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   4721     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   4722     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   4723     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   4724     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   4725     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   4726     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4728     _flag_k = FK_CMP;
   4729     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   4730 L_38024B40:
   4731     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   4732 L_38024B43:
   4733     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   4734     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   4735     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   4736     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   4737     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4739     _flag_k = FK_CMP;
   4740     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   4741 L_38024B51:
   4742     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   4743     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   4744     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   4745 L_38024B5C:
   4746     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   4747     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   4748     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4749     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4750     _flag_k = FK_CMP;
   4751     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   4752 L_38024B64:
   4753     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   4754     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   4755     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   4756 L_38024B6F:
   4757     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   4758     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   4759     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   4760 L_38024B79:
   4761     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   4762     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4764     _flag_k = FK_NARROW(FK_CMP, 24);
   4765     RECOMP_BACKEDGE();
   4766     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   4767 L_38024B83:
   4768     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   4769     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4771     _flag_k = FK_CMP;
   4772     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   4773 L_38024B87:
   4774     eax = ecx; /* 0x38024B87: mov eax, ecx */
   4775     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   4776     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   4777     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   4778     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   4779     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   4780     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4782     _flag_k = FK_CMP;
   4783     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   4784 L_38024B98:
   4785     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   4786 L_38024B9B:
   4787     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   4788     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   4789     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   4790     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   4791     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4792     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4793     _flag_k = FK_CMP;
   4794     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   4795 L_38024BA9:
   4796     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   4797     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   4798 L_38024BAE:
   4799     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   4800     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   4801     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4803     _flag_k = FK_CMP;
   4804     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   4805 L_38024BB6:
   4806     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   4807     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   4808 L_38024BBB:
   4809     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   4810 L_38024BBD:
   4811     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   4812     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   4813 L_38024BC3:
   4814     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   4815     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   4816     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   4817     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   4818     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   4819     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   4820     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   4821     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   4822     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   4823     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   4824     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   4825     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   4826     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4828     _flag_k = FK_CMP;
   4829     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   4830 L_38024BE8:
   4831     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   4832 L_38024BEB:
   4833     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   4834     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   4835     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   4836     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   4837     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4838     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4839     _flag_k = FK_CMP;
   4840     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   4841 L_38024BF9:
   4842     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   4843     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   4844 L_38024BFE:
   4845     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   4846     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   4847     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4849     _flag_k = FK_CMP;
   4850     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   4851 L_38024C05:
   4852     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   4853     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   4854 L_38024C09:
   4855     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   4856 L_38024C0C:
   4857     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   4858 L_38024C0E:
   4859     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   4860 L_38024C11:
   4861     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   4862     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   4863     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4865     _flag_k = FK_CMP;
   4866     RECOMP_BACKEDGE();
   4867     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   4868 L_38024C1D:
   4869     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   4870     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   4871     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   4872     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   4873     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   4874     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   4875     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   4876     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   4877     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   4878     esp = ebp; /* 0x38024C31: mov esp, ebp */
   4879     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   4880     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   4881     RECOMP_REGS_OUT();
   4882 }
   4883 
   4884 void sub_38024A9D(void) {
   4885     int _fpu_cmp = 0;
   4886     uint32_t _cf = 0;
   4887     int _df = 1;
   4888     uint32_t _flag_k = FK_NONE;
   4889     uint32_t _flag_a = 0, _flag_b = 0;
   4890     uint32_t _itail_tgt = 0;
   4891     RECOMP_REGS_LOCALS
   4892     RECOMP_ENTER(0x38024A9Du);
   4893 
   4894 L_38024A9D:
   4895     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   4896     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   4897     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   4898     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4899     _cf = 0;
   4900     _flag_k = FK_NARROW(FK_TEST, 24);
   4901     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   4902 L_38024AAB:
   4903     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   4904     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   4905     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   4906     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4908     _flag_k = FK_CMP;
   4909     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   4910 L_38024AB8:
   4911     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   4912     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   4913     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4915     _flag_k = FK_NARROW(FK_CMP, 24);
   4916     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   4917 L_38024AC1:
   4918     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   4919     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   4920     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   4921     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   4922     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   4923     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   4924     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   4925     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   4926 L_38024ADC:
   4927     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   4928     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4929     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4930     _flag_k = FK_CMP;
   4931     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   4932 L_38024AE1:
   4933     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   4934     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   4935     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   4936     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   4937     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   4938     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   4939     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4940     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4941     _flag_k = FK_CMP;
   4942     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   4943 L_38024AF2:
   4944     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   4945 L_38024AF5:
   4946     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   4947     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   4948     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   4949     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   4950     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4952     _flag_k = FK_CMP;
   4953     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   4954 L_38024B03:
   4955     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   4956     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   4957 L_38024B08:
   4958     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   4959     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   4960     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   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_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   4964 L_38024B0F:
   4965     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   4966     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   4967 L_38024B13:
   4968     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   4969 L_38024B16:
   4970     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   4971     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   4972 L_38024B1B:
   4973     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   4974     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   4975     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   4976     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   4977     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   4978     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   4979     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   4980     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   4981     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   4982     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   4983     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   4984     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   4985     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4987     _flag_k = FK_CMP;
   4988     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   4989 L_38024B40:
   4990     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   4991 L_38024B43:
   4992     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   4993     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   4994     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   4995     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   4996     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4998     _flag_k = FK_CMP;
   4999     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   5000 L_38024B51:
   5001     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   5002     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   5003     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   5004 L_38024B5C:
   5005     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   5006     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   5007     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5009     _flag_k = FK_CMP;
   5010     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   5011 L_38024B64:
   5012     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   5013     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   5014     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   5015 L_38024B6F:
   5016     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   5017     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   5018     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   5019 L_38024B79:
   5020     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   5021     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5023     _flag_k = FK_NARROW(FK_CMP, 24);
   5024     RECOMP_BACKEDGE();
   5025     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   5026 L_38024B83:
   5027     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   5028     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5030     _flag_k = FK_CMP;
   5031     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   5032 L_38024B87:
   5033     eax = ecx; /* 0x38024B87: mov eax, ecx */
   5034     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   5035     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   5036     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   5037     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   5038     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   5039     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5041     _flag_k = FK_CMP;
   5042     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   5043 L_38024B98:
   5044     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   5045 L_38024B9B:
   5046     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   5047     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   5048     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   5049     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   5050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5052     _flag_k = FK_CMP;
   5053     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   5054 L_38024BA9:
   5055     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   5056     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   5057 L_38024BAE:
   5058     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   5059     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   5060     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5061     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5062     _flag_k = FK_CMP;
   5063     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   5064 L_38024BB6:
   5065     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   5066     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   5067 L_38024BBB:
   5068     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   5069 L_38024BBD:
   5070     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   5071     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   5072 L_38024BC3:
   5073     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   5074     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   5075     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   5076     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   5077     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   5078     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   5079     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   5080     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   5081     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   5082     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   5083     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   5084     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   5085     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5086     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5087     _flag_k = FK_CMP;
   5088     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   5089 L_38024BE8:
   5090     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   5091 L_38024BEB:
   5092     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   5093     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   5094     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   5095     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   5096     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5098     _flag_k = FK_CMP;
   5099     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   5100 L_38024BF9:
   5101     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   5102     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   5103 L_38024BFE:
   5104     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   5105     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   5106     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5108     _flag_k = FK_CMP;
   5109     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   5110 L_38024C05:
   5111     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   5112     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   5113 L_38024C09:
   5114     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   5115 L_38024C0C:
   5116     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   5117 L_38024C0E:
   5118     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   5119 L_38024C11:
   5120     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   5121     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   5122     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5124     _flag_k = FK_CMP;
   5125     RECOMP_BACKEDGE();
   5126     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   5127 L_38024C1D:
   5128     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   5129     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   5130     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   5131     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   5132     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   5133     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   5134     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   5135     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   5136     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   5137     esp = ebp; /* 0x38024C31: mov esp, ebp */
   5138     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   5139     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   5140     RECOMP_REGS_OUT();
   5141 }
   5142 
   5143 void sub_38024AC1(void) {
   5144     int _fpu_cmp = 0;
   5145     uint32_t _cf = 0;
   5146     int _df = 1;
   5147     uint32_t _flag_k = FK_NONE;
   5148     uint32_t _flag_a = 0, _flag_b = 0;
   5149     uint32_t _itail_tgt = 0;
   5150     RECOMP_REGS_LOCALS
   5151     RECOMP_ENTER(0x38024AC1u);
   5152 
   5153     goto L_38024AC1;
   5154 L_38024A9D:
   5155     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   5156     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   5157     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   5158     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5159     _cf = 0;
   5160     _flag_k = FK_NARROW(FK_TEST, 24);
   5161     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   5162 L_38024AAB:
   5163     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   5164     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   5165     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   5166     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5167     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5168     _flag_k = FK_CMP;
   5169     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   5170 L_38024AB8:
   5171     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   5172     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   5173     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5175     _flag_k = FK_NARROW(FK_CMP, 24);
   5176     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   5177 L_38024AC1:
   5178     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   5179     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   5180     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   5181     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   5182     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   5183     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   5184     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   5185     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   5186 L_38024ADC:
   5187     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   5188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5190     _flag_k = FK_CMP;
   5191     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   5192 L_38024AE1:
   5193     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   5194     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   5195     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   5196     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   5197     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   5198     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   5199     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5201     _flag_k = FK_CMP;
   5202     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   5203 L_38024AF2:
   5204     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   5205 L_38024AF5:
   5206     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   5207     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   5208     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   5209     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   5210     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5212     _flag_k = FK_CMP;
   5213     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   5214 L_38024B03:
   5215     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   5216     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   5217 L_38024B08:
   5218     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   5219     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   5220     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   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_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   5224 L_38024B0F:
   5225     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   5226     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   5227 L_38024B13:
   5228     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   5229 L_38024B16:
   5230     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   5231     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   5232 L_38024B1B:
   5233     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   5234     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   5235     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   5236     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   5237     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   5238     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   5239     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   5240     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   5241     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   5242     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   5243     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   5244     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   5245     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5247     _flag_k = FK_CMP;
   5248     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   5249 L_38024B40:
   5250     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   5251 L_38024B43:
   5252     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   5253     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   5254     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   5255     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   5256     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5258     _flag_k = FK_CMP;
   5259     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   5260 L_38024B51:
   5261     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   5262     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   5263     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   5264 L_38024B5C:
   5265     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   5266     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   5267     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5269     _flag_k = FK_CMP;
   5270     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   5271 L_38024B64:
   5272     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   5273     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   5274     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   5275 L_38024B6F:
   5276     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   5277     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   5278     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   5279 L_38024B79:
   5280     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   5281     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5283     _flag_k = FK_NARROW(FK_CMP, 24);
   5284     RECOMP_BACKEDGE();
   5285     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   5286 L_38024B83:
   5287     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   5288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5290     _flag_k = FK_CMP;
   5291     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   5292 L_38024B87:
   5293     eax = ecx; /* 0x38024B87: mov eax, ecx */
   5294     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   5295     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   5296     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   5297     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   5298     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   5299     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5301     _flag_k = FK_CMP;
   5302     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   5303 L_38024B98:
   5304     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   5305 L_38024B9B:
   5306     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   5307     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   5308     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   5309     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   5310     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5312     _flag_k = FK_CMP;
   5313     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   5314 L_38024BA9:
   5315     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   5316     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   5317 L_38024BAE:
   5318     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   5319     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   5320     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5322     _flag_k = FK_CMP;
   5323     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   5324 L_38024BB6:
   5325     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   5326     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   5327 L_38024BBB:
   5328     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   5329 L_38024BBD:
   5330     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   5331     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   5332 L_38024BC3:
   5333     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   5334     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   5335     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   5336     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   5337     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   5338     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   5339     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   5340     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   5341     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   5342     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   5343     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   5344     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   5345     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5346     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5347     _flag_k = FK_CMP;
   5348     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   5349 L_38024BE8:
   5350     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   5351 L_38024BEB:
   5352     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   5353     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   5354     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   5355     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   5356     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5358     _flag_k = FK_CMP;
   5359     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   5360 L_38024BF9:
   5361     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   5362     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   5363 L_38024BFE:
   5364     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   5365     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   5366     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5368     _flag_k = FK_CMP;
   5369     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   5370 L_38024C05:
   5371     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   5372     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   5373 L_38024C09:
   5374     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   5375 L_38024C0C:
   5376     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   5377 L_38024C0E:
   5378     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   5379 L_38024C11:
   5380     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   5381     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   5382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5384     _flag_k = FK_CMP;
   5385     RECOMP_BACKEDGE();
   5386     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   5387 L_38024C1D:
   5388     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   5389     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   5390     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   5391     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   5392     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   5393     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   5394     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   5395     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   5396     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   5397     esp = ebp; /* 0x38024C31: mov esp, ebp */
   5398     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   5399     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   5400     RECOMP_REGS_OUT();
   5401 }
   5402 
   5403 void sub_38024B16(void) {
   5404     int _fpu_cmp = 0;
   5405     uint32_t _cf = 0;
   5406     int _df = 1;
   5407     uint32_t _flag_k = FK_NONE;
   5408     uint32_t _flag_a = 0, _flag_b = 0;
   5409     uint32_t _itail_tgt = 0;
   5410     RECOMP_REGS_LOCALS
   5411     RECOMP_ENTER(0x38024B16u);
   5412 
   5413     goto L_38024B16;
   5414 L_38024A9D:
   5415     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   5416     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   5417     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   5418     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5419     _cf = 0;
   5420     _flag_k = FK_NARROW(FK_TEST, 24);
   5421     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   5422 L_38024AAB:
   5423     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   5424     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   5425     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   5426     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5428     _flag_k = FK_CMP;
   5429     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   5430 L_38024AB8:
   5431     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   5432     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   5433     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5434     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5435     _flag_k = FK_NARROW(FK_CMP, 24);
   5436     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   5437 L_38024AC1:
   5438     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   5439     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   5440     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   5441     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   5442     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   5443     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   5444     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   5445     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   5446 L_38024ADC:
   5447     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   5448     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5450     _flag_k = FK_CMP;
   5451     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   5452 L_38024AE1:
   5453     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   5454     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   5455     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   5456     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   5457     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   5458     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   5459     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5461     _flag_k = FK_CMP;
   5462     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   5463 L_38024AF2:
   5464     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   5465 L_38024AF5:
   5466     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   5467     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   5468     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   5469     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   5470     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5471     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5472     _flag_k = FK_CMP;
   5473     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   5474 L_38024B03:
   5475     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   5476     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   5477 L_38024B08:
   5478     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   5479     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   5480     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   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_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   5484 L_38024B0F:
   5485     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   5486     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   5487 L_38024B13:
   5488     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   5489 L_38024B16:
   5490     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   5491     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   5492 L_38024B1B:
   5493     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   5494     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   5495     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   5496     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   5497     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   5498     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   5499     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   5500     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   5501     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   5502     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   5503     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   5504     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   5505     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5507     _flag_k = FK_CMP;
   5508     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   5509 L_38024B40:
   5510     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   5511 L_38024B43:
   5512     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   5513     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   5514     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   5515     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   5516     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5518     _flag_k = FK_CMP;
   5519     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   5520 L_38024B51:
   5521     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   5522     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   5523     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   5524 L_38024B5C:
   5525     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   5526     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   5527     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5529     _flag_k = FK_CMP;
   5530     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   5531 L_38024B64:
   5532     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   5533     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   5534     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   5535 L_38024B6F:
   5536     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   5537     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   5538     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   5539 L_38024B79:
   5540     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   5541     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5543     _flag_k = FK_NARROW(FK_CMP, 24);
   5544     RECOMP_BACKEDGE();
   5545     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   5546 L_38024B83:
   5547     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   5548     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5549     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5550     _flag_k = FK_CMP;
   5551     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   5552 L_38024B87:
   5553     eax = ecx; /* 0x38024B87: mov eax, ecx */
   5554     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   5555     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   5556     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   5557     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   5558     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   5559     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5561     _flag_k = FK_CMP;
   5562     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   5563 L_38024B98:
   5564     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   5565 L_38024B9B:
   5566     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   5567     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   5568     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   5569     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   5570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5571     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5572     _flag_k = FK_CMP;
   5573     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   5574 L_38024BA9:
   5575     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   5576     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   5577 L_38024BAE:
   5578     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   5579     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   5580     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5582     _flag_k = FK_CMP;
   5583     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   5584 L_38024BB6:
   5585     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   5586     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   5587 L_38024BBB:
   5588     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   5589 L_38024BBD:
   5590     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   5591     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   5592 L_38024BC3:
   5593     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   5594     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   5595     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   5596     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   5597     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   5598     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   5599     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   5600     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   5601     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   5602     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   5603     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   5604     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   5605     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5607     _flag_k = FK_CMP;
   5608     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   5609 L_38024BE8:
   5610     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   5611 L_38024BEB:
   5612     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   5613     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   5614     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   5615     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   5616     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5618     _flag_k = FK_CMP;
   5619     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   5620 L_38024BF9:
   5621     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   5622     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   5623 L_38024BFE:
   5624     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   5625     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   5626     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5627     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5628     _flag_k = FK_CMP;
   5629     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   5630 L_38024C05:
   5631     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   5632     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   5633 L_38024C09:
   5634     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   5635 L_38024C0C:
   5636     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   5637 L_38024C0E:
   5638     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   5639 L_38024C11:
   5640     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   5641     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   5642     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5644     _flag_k = FK_CMP;
   5645     RECOMP_BACKEDGE();
   5646     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   5647 L_38024C1D:
   5648     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   5649     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   5650     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   5651     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   5652     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   5653     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   5654     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   5655     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   5656     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   5657     esp = ebp; /* 0x38024C31: mov esp, ebp */
   5658     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   5659     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   5660     RECOMP_REGS_OUT();
   5661 }
   5662 
   5663 void sub_38024B1B(void) {
   5664     int _fpu_cmp = 0;
   5665     uint32_t _cf = 0;
   5666     int _df = 1;
   5667     uint32_t _flag_k = FK_NONE;
   5668     uint32_t _flag_a = 0, _flag_b = 0;
   5669     uint32_t _itail_tgt = 0;
   5670     RECOMP_REGS_LOCALS
   5671     RECOMP_ENTER(0x38024B1Bu);
   5672 
   5673     goto L_38024B1B;
   5674 L_38024A9D:
   5675     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   5676     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   5677     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   5678     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5679     _cf = 0;
   5680     _flag_k = FK_NARROW(FK_TEST, 24);
   5681     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   5682 L_38024AAB:
   5683     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   5684     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   5685     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   5686     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5688     _flag_k = FK_CMP;
   5689     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   5690 L_38024AB8:
   5691     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   5692     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   5693     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5695     _flag_k = FK_NARROW(FK_CMP, 24);
   5696     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   5697 L_38024AC1:
   5698     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   5699     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   5700     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   5701     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   5702     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   5703     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   5704     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   5705     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   5706 L_38024ADC:
   5707     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   5708     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5710     _flag_k = FK_CMP;
   5711     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   5712 L_38024AE1:
   5713     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   5714     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   5715     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   5716     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   5717     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   5718     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   5719     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5721     _flag_k = FK_CMP;
   5722     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   5723 L_38024AF2:
   5724     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   5725 L_38024AF5:
   5726     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   5727     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   5728     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   5729     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   5730     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5731     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5732     _flag_k = FK_CMP;
   5733     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   5734 L_38024B03:
   5735     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   5736     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   5737 L_38024B08:
   5738     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   5739     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   5740     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   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_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   5744 L_38024B0F:
   5745     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   5746     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   5747 L_38024B13:
   5748     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   5749 L_38024B16:
   5750     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   5751     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   5752 L_38024B1B:
   5753     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   5754     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   5755     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   5756     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   5757     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   5758     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   5759     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   5760     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   5761     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   5762     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   5763     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   5764     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   5765     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5767     _flag_k = FK_CMP;
   5768     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   5769 L_38024B40:
   5770     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   5771 L_38024B43:
   5772     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   5773     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   5774     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   5775     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   5776     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5778     _flag_k = FK_CMP;
   5779     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   5780 L_38024B51:
   5781     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   5782     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   5783     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   5784 L_38024B5C:
   5785     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   5786     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   5787     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5789     _flag_k = FK_CMP;
   5790     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   5791 L_38024B64:
   5792     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   5793     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   5794     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   5795 L_38024B6F:
   5796     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   5797     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   5798     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   5799 L_38024B79:
   5800     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   5801     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5803     _flag_k = FK_NARROW(FK_CMP, 24);
   5804     RECOMP_BACKEDGE();
   5805     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   5806 L_38024B83:
   5807     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   5808     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5809     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5810     _flag_k = FK_CMP;
   5811     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   5812 L_38024B87:
   5813     eax = ecx; /* 0x38024B87: mov eax, ecx */
   5814     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   5815     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   5816     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   5817     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   5818     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   5819     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5821     _flag_k = FK_CMP;
   5822     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   5823 L_38024B98:
   5824     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   5825 L_38024B9B:
   5826     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   5827     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   5828     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   5829     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   5830     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5832     _flag_k = FK_CMP;
   5833     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   5834 L_38024BA9:
   5835     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   5836     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   5837 L_38024BAE:
   5838     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   5839     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   5840     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5842     _flag_k = FK_CMP;
   5843     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   5844 L_38024BB6:
   5845     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   5846     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   5847 L_38024BBB:
   5848     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   5849 L_38024BBD:
   5850     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   5851     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   5852 L_38024BC3:
   5853     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   5854     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   5855     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   5856     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   5857     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   5858     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   5859     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   5860     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   5861     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   5862     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   5863     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   5864     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   5865     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5866     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5867     _flag_k = FK_CMP;
   5868     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   5869 L_38024BE8:
   5870     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   5871 L_38024BEB:
   5872     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   5873     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   5874     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   5875     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   5876     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5877     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5878     _flag_k = FK_CMP;
   5879     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   5880 L_38024BF9:
   5881     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   5882     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   5883 L_38024BFE:
   5884     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   5885     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   5886     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5887     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5888     _flag_k = FK_CMP;
   5889     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   5890 L_38024C05:
   5891     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   5892     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   5893 L_38024C09:
   5894     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   5895 L_38024C0C:
   5896     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   5897 L_38024C0E:
   5898     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   5899 L_38024C11:
   5900     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   5901     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   5902     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5904     _flag_k = FK_CMP;
   5905     RECOMP_BACKEDGE();
   5906     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   5907 L_38024C1D:
   5908     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   5909     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   5910     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   5911     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   5912     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   5913     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   5914     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   5915     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   5916     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   5917     esp = ebp; /* 0x38024C31: mov esp, ebp */
   5918     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   5919     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   5920     RECOMP_REGS_OUT();
   5921 }
   5922 
   5923 void sub_38024B79(void) {
   5924     int _fpu_cmp = 0;
   5925     uint32_t _cf = 0;
   5926     int _df = 1;
   5927     uint32_t _flag_k = FK_NONE;
   5928     uint32_t _flag_a = 0, _flag_b = 0;
   5929     uint32_t _itail_tgt = 0;
   5930     RECOMP_REGS_LOCALS
   5931     RECOMP_ENTER(0x38024B79u);
   5932 
   5933     goto L_38024B79;
   5934 L_38024A9D:
   5935     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   5936     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   5937     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   5938     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5939     _cf = 0;
   5940     _flag_k = FK_NARROW(FK_TEST, 24);
   5941     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   5942 L_38024AAB:
   5943     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   5944     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   5945     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   5946     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   5947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5948     _flag_k = FK_CMP;
   5949     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   5950 L_38024AB8:
   5951     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   5952     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   5953     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   5954     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5955     _flag_k = FK_NARROW(FK_CMP, 24);
   5956     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   5957 L_38024AC1:
   5958     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   5959     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   5960     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   5961     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   5962     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   5963     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   5964     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   5965     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   5966 L_38024ADC:
   5967     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   5968     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   5969     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5970     _flag_k = FK_CMP;
   5971     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   5972 L_38024AE1:
   5973     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   5974     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   5975     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   5976     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   5977     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   5978     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   5979     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5980     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5981     _flag_k = FK_CMP;
   5982     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   5983 L_38024AF2:
   5984     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   5985 L_38024AF5:
   5986     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   5987     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   5988     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   5989     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   5990     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5992     _flag_k = FK_CMP;
   5993     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   5994 L_38024B03:
   5995     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   5996     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   5997 L_38024B08:
   5998     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   5999     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   6000     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   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_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   6004 L_38024B0F:
   6005     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   6006     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   6007 L_38024B13:
   6008     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   6009 L_38024B16:
   6010     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   6011     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   6012 L_38024B1B:
   6013     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   6014     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   6015     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   6016     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   6017     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   6018     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   6019     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   6020     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   6021     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   6022     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   6023     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   6024     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   6025     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6027     _flag_k = FK_CMP;
   6028     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   6029 L_38024B40:
   6030     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   6031 L_38024B43:
   6032     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   6033     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   6034     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   6035     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   6036     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6038     _flag_k = FK_CMP;
   6039     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   6040 L_38024B51:
   6041     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   6042     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   6043     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   6044 L_38024B5C:
   6045     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   6046     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   6047     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6049     _flag_k = FK_CMP;
   6050     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   6051 L_38024B64:
   6052     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   6053     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   6054     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   6055 L_38024B6F:
   6056     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   6057     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   6058     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   6059 L_38024B79:
   6060     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   6061     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   6062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6063     _flag_k = FK_NARROW(FK_CMP, 24);
   6064     RECOMP_BACKEDGE();
   6065     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   6066 L_38024B83:
   6067     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   6068     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6069     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6070     _flag_k = FK_CMP;
   6071     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   6072 L_38024B87:
   6073     eax = ecx; /* 0x38024B87: mov eax, ecx */
   6074     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   6075     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   6076     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   6077     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   6078     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   6079     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6081     _flag_k = FK_CMP;
   6082     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   6083 L_38024B98:
   6084     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   6085 L_38024B9B:
   6086     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   6087     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   6088     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   6089     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   6090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6091     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6092     _flag_k = FK_CMP;
   6093     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   6094 L_38024BA9:
   6095     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   6096     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   6097 L_38024BAE:
   6098     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   6099     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   6100     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   6101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6102     _flag_k = FK_CMP;
   6103     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   6104 L_38024BB6:
   6105     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   6106     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   6107 L_38024BBB:
   6108     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   6109 L_38024BBD:
   6110     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   6111     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   6112 L_38024BC3:
   6113     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   6114     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   6115     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   6116     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   6117     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   6118     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   6119     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   6120     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   6121     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   6122     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   6123     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   6124     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   6125     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6127     _flag_k = FK_CMP;
   6128     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   6129 L_38024BE8:
   6130     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   6131 L_38024BEB:
   6132     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   6133     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   6134     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   6135     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   6136     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6137     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6138     _flag_k = FK_CMP;
   6139     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   6140 L_38024BF9:
   6141     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   6142     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   6143 L_38024BFE:
   6144     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   6145     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   6146     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6148     _flag_k = FK_CMP;
   6149     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   6150 L_38024C05:
   6151     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   6152     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   6153 L_38024C09:
   6154     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   6155 L_38024C0C:
   6156     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   6157 L_38024C0E:
   6158     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   6159 L_38024C11:
   6160     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   6161     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   6162     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6164     _flag_k = FK_CMP;
   6165     RECOMP_BACKEDGE();
   6166     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   6167 L_38024C1D:
   6168     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   6169     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   6170     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   6171     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   6172     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   6173     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   6174     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   6175     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   6176     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   6177     esp = ebp; /* 0x38024C31: mov esp, ebp */
   6178     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   6179     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   6180     RECOMP_REGS_OUT();
   6181 }
   6182 
   6183 void sub_38024BBD(void) {
   6184     int _fpu_cmp = 0;
   6185     uint32_t _cf = 0;
   6186     int _df = 1;
   6187     uint32_t _flag_k = FK_NONE;
   6188     uint32_t _flag_a = 0, _flag_b = 0;
   6189     uint32_t _itail_tgt = 0;
   6190     RECOMP_REGS_LOCALS
   6191     RECOMP_ENTER(0x38024BBDu);
   6192 
   6193     goto L_38024BBD;
   6194 L_38024A9D:
   6195     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   6196     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   6197     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   6198     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6199     _cf = 0;
   6200     _flag_k = FK_NARROW(FK_TEST, 24);
   6201     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   6202 L_38024AAB:
   6203     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   6204     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   6205     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   6206     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6208     _flag_k = FK_CMP;
   6209     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   6210 L_38024AB8:
   6211     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   6212     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   6213     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   6214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6215     _flag_k = FK_NARROW(FK_CMP, 24);
   6216     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   6217 L_38024AC1:
   6218     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   6219     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   6220     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   6221     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   6222     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   6223     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   6224     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   6225     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   6226 L_38024ADC:
   6227     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   6228     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6229     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6230     _flag_k = FK_CMP;
   6231     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   6232 L_38024AE1:
   6233     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   6234     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   6235     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   6236     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   6237     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   6238     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   6239     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6240     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6241     _flag_k = FK_CMP;
   6242     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   6243 L_38024AF2:
   6244     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   6245 L_38024AF5:
   6246     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   6247     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   6248     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   6249     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   6250     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6251     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6252     _flag_k = FK_CMP;
   6253     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   6254 L_38024B03:
   6255     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   6256     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   6257 L_38024B08:
   6258     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   6259     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   6260     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   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_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   6264 L_38024B0F:
   6265     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   6266     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   6267 L_38024B13:
   6268     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   6269 L_38024B16:
   6270     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   6271     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   6272 L_38024B1B:
   6273     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   6274     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   6275     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   6276     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   6277     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   6278     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   6279     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   6280     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   6281     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   6282     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   6283     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   6284     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   6285     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6287     _flag_k = FK_CMP;
   6288     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   6289 L_38024B40:
   6290     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   6291 L_38024B43:
   6292     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   6293     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   6294     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   6295     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   6296     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6298     _flag_k = FK_CMP;
   6299     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   6300 L_38024B51:
   6301     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   6302     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   6303     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   6304 L_38024B5C:
   6305     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   6306     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   6307     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6309     _flag_k = FK_CMP;
   6310     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   6311 L_38024B64:
   6312     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   6313     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   6314     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   6315 L_38024B6F:
   6316     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   6317     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   6318     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   6319 L_38024B79:
   6320     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   6321     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   6322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6323     _flag_k = FK_NARROW(FK_CMP, 24);
   6324     RECOMP_BACKEDGE();
   6325     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   6326 L_38024B83:
   6327     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   6328     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6330     _flag_k = FK_CMP;
   6331     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   6332 L_38024B87:
   6333     eax = ecx; /* 0x38024B87: mov eax, ecx */
   6334     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   6335     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   6336     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   6337     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   6338     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   6339     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6341     _flag_k = FK_CMP;
   6342     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   6343 L_38024B98:
   6344     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   6345 L_38024B9B:
   6346     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   6347     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   6348     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   6349     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   6350     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6351     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6352     _flag_k = FK_CMP;
   6353     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   6354 L_38024BA9:
   6355     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   6356     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   6357 L_38024BAE:
   6358     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   6359     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   6360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   6361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6362     _flag_k = FK_CMP;
   6363     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   6364 L_38024BB6:
   6365     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   6366     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   6367 L_38024BBB:
   6368     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   6369 L_38024BBD:
   6370     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   6371     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   6372 L_38024BC3:
   6373     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   6374     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   6375     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   6376     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   6377     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   6378     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   6379     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   6380     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   6381     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   6382     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   6383     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   6384     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   6385     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6386     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6387     _flag_k = FK_CMP;
   6388     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   6389 L_38024BE8:
   6390     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   6391 L_38024BEB:
   6392     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   6393     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   6394     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   6395     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   6396     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6398     _flag_k = FK_CMP;
   6399     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   6400 L_38024BF9:
   6401     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   6402     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   6403 L_38024BFE:
   6404     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   6405     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   6406     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6407     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6408     _flag_k = FK_CMP;
   6409     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   6410 L_38024C05:
   6411     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   6412     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   6413 L_38024C09:
   6414     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   6415 L_38024C0C:
   6416     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   6417 L_38024C0E:
   6418     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   6419 L_38024C11:
   6420     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   6421     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   6422     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6424     _flag_k = FK_CMP;
   6425     RECOMP_BACKEDGE();
   6426     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   6427 L_38024C1D:
   6428     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   6429     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   6430     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   6431     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   6432     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   6433     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   6434     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   6435     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   6436     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   6437     esp = ebp; /* 0x38024C31: mov esp, ebp */
   6438     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   6439     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   6440     RECOMP_REGS_OUT();
   6441 }
   6442 
   6443 void sub_38024BC3(void) {
   6444     int _fpu_cmp = 0;
   6445     uint32_t _cf = 0;
   6446     int _df = 1;
   6447     uint32_t _flag_k = FK_NONE;
   6448     uint32_t _flag_a = 0, _flag_b = 0;
   6449     uint32_t _itail_tgt = 0;
   6450     RECOMP_REGS_LOCALS
   6451     RECOMP_ENTER(0x38024BC3u);
   6452 
   6453     goto L_38024BC3;
   6454 L_38024A9D:
   6455     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   6456     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   6457     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   6458     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6459     _cf = 0;
   6460     _flag_k = FK_NARROW(FK_TEST, 24);
   6461     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   6462 L_38024AAB:
   6463     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   6464     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   6465     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   6466     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6468     _flag_k = FK_CMP;
   6469     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   6470 L_38024AB8:
   6471     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   6472     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   6473     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   6474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6475     _flag_k = FK_NARROW(FK_CMP, 24);
   6476     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   6477 L_38024AC1:
   6478     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   6479     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   6480     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   6481     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   6482     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   6483     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   6484     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   6485     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   6486 L_38024ADC:
   6487     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   6488     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6489     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6490     _flag_k = FK_CMP;
   6491     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   6492 L_38024AE1:
   6493     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   6494     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   6495     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   6496     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   6497     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   6498     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   6499     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6500     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6501     _flag_k = FK_CMP;
   6502     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   6503 L_38024AF2:
   6504     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   6505 L_38024AF5:
   6506     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   6507     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   6508     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   6509     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   6510     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6512     _flag_k = FK_CMP;
   6513     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   6514 L_38024B03:
   6515     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   6516     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   6517 L_38024B08:
   6518     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   6519     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   6520     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   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_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   6524 L_38024B0F:
   6525     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   6526     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   6527 L_38024B13:
   6528     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   6529 L_38024B16:
   6530     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   6531     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   6532 L_38024B1B:
   6533     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   6534     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   6535     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   6536     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   6537     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   6538     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   6539     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   6540     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   6541     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   6542     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   6543     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   6544     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   6545     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6547     _flag_k = FK_CMP;
   6548     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   6549 L_38024B40:
   6550     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   6551 L_38024B43:
   6552     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   6553     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   6554     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   6555     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   6556     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6558     _flag_k = FK_CMP;
   6559     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   6560 L_38024B51:
   6561     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   6562     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   6563     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   6564 L_38024B5C:
   6565     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   6566     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   6567     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6569     _flag_k = FK_CMP;
   6570     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   6571 L_38024B64:
   6572     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   6573     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   6574     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   6575 L_38024B6F:
   6576     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   6577     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   6578     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   6579 L_38024B79:
   6580     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   6581     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   6582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6583     _flag_k = FK_NARROW(FK_CMP, 24);
   6584     RECOMP_BACKEDGE();
   6585     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   6586 L_38024B83:
   6587     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   6588     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6590     _flag_k = FK_CMP;
   6591     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   6592 L_38024B87:
   6593     eax = ecx; /* 0x38024B87: mov eax, ecx */
   6594     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   6595     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   6596     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   6597     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   6598     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   6599     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6600     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6601     _flag_k = FK_CMP;
   6602     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   6603 L_38024B98:
   6604     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   6605 L_38024B9B:
   6606     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   6607     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   6608     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   6609     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   6610     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6612     _flag_k = FK_CMP;
   6613     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   6614 L_38024BA9:
   6615     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   6616     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   6617 L_38024BAE:
   6618     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   6619     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   6620     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   6621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6622     _flag_k = FK_CMP;
   6623     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   6624 L_38024BB6:
   6625     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   6626     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   6627 L_38024BBB:
   6628     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   6629 L_38024BBD:
   6630     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   6631     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   6632 L_38024BC3:
   6633     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   6634     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   6635     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   6636     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   6637     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   6638     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   6639     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   6640     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   6641     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   6642     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   6643     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   6644     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   6645     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6647     _flag_k = FK_CMP;
   6648     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   6649 L_38024BE8:
   6650     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   6651 L_38024BEB:
   6652     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   6653     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   6654     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   6655     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   6656     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6658     _flag_k = FK_CMP;
   6659     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   6660 L_38024BF9:
   6661     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   6662     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   6663 L_38024BFE:
   6664     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   6665     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   6666     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6668     _flag_k = FK_CMP;
   6669     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   6670 L_38024C05:
   6671     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   6672     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   6673 L_38024C09:
   6674     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   6675 L_38024C0C:
   6676     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   6677 L_38024C0E:
   6678     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   6679 L_38024C11:
   6680     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   6681     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   6682     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6684     _flag_k = FK_CMP;
   6685     RECOMP_BACKEDGE();
   6686     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   6687 L_38024C1D:
   6688     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   6689     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   6690     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   6691     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   6692     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   6693     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   6694     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   6695     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   6696     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   6697     esp = ebp; /* 0x38024C31: mov esp, ebp */
   6698     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   6699     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   6700     RECOMP_REGS_OUT();
   6701 }
   6702 
   6703 void sub_38024C0C(void) {
   6704     int _fpu_cmp = 0;
   6705     uint32_t _cf = 0;
   6706     int _df = 1;
   6707     uint32_t _flag_k = FK_NONE;
   6708     uint32_t _flag_a = 0, _flag_b = 0;
   6709     uint32_t _itail_tgt = 0;
   6710     RECOMP_REGS_LOCALS
   6711     RECOMP_ENTER(0x38024C0Cu);
   6712 
   6713     goto L_38024C0C;
   6714 L_38024A9D:
   6715     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   6716     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   6717     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   6718     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6719     _cf = 0;
   6720     _flag_k = FK_NARROW(FK_TEST, 24);
   6721     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   6722 L_38024AAB:
   6723     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   6724     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   6725     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   6726     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6728     _flag_k = FK_CMP;
   6729     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   6730 L_38024AB8:
   6731     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   6732     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   6733     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   6734     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6735     _flag_k = FK_NARROW(FK_CMP, 24);
   6736     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   6737 L_38024AC1:
   6738     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   6739     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   6740     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   6741     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   6742     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   6743     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   6744     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   6745     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   6746 L_38024ADC:
   6747     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   6748     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   6749     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6750     _flag_k = FK_CMP;
   6751     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   6752 L_38024AE1:
   6753     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   6754     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   6755     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   6756     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   6757     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   6758     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   6759     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6760     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6761     _flag_k = FK_CMP;
   6762     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   6763 L_38024AF2:
   6764     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   6765 L_38024AF5:
   6766     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   6767     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   6768     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   6769     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   6770     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6772     _flag_k = FK_CMP;
   6773     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   6774 L_38024B03:
   6775     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   6776     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   6777 L_38024B08:
   6778     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   6779     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   6780     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   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_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   6784 L_38024B0F:
   6785     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   6786     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   6787 L_38024B13:
   6788     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   6789 L_38024B16:
   6790     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   6791     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   6792 L_38024B1B:
   6793     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   6794     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   6795     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   6796     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   6797     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   6798     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   6799     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   6800     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   6801     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   6802     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   6803     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   6804     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   6805     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6807     _flag_k = FK_CMP;
   6808     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   6809 L_38024B40:
   6810     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   6811 L_38024B43:
   6812     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   6813     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   6814     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   6815     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   6816     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6818     _flag_k = FK_CMP;
   6819     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   6820 L_38024B51:
   6821     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   6822     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   6823     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   6824 L_38024B5C:
   6825     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   6826     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   6827     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   6828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6829     _flag_k = FK_CMP;
   6830     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   6831 L_38024B64:
   6832     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   6833     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   6834     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   6835 L_38024B6F:
   6836     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   6837     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   6838     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   6839 L_38024B79:
   6840     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   6841     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   6842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6843     _flag_k = FK_NARROW(FK_CMP, 24);
   6844     RECOMP_BACKEDGE();
   6845     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   6846 L_38024B83:
   6847     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   6848     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6850     _flag_k = FK_CMP;
   6851     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   6852 L_38024B87:
   6853     eax = ecx; /* 0x38024B87: mov eax, ecx */
   6854     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   6855     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   6856     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   6857     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   6858     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   6859     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6860     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6861     _flag_k = FK_CMP;
   6862     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   6863 L_38024B98:
   6864     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   6865 L_38024B9B:
   6866     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   6867     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   6868     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   6869     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   6870     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   6871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6872     _flag_k = FK_CMP;
   6873     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   6874 L_38024BA9:
   6875     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   6876     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   6877 L_38024BAE:
   6878     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   6879     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   6880     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   6881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6882     _flag_k = FK_CMP;
   6883     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   6884 L_38024BB6:
   6885     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   6886     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   6887 L_38024BBB:
   6888     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   6889 L_38024BBD:
   6890     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   6891     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   6892 L_38024BC3:
   6893     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   6894     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   6895     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   6896     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   6897     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   6898     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   6899     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   6900     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   6901     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   6902     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   6903     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   6904     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   6905     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6906     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6907     _flag_k = FK_CMP;
   6908     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   6909 L_38024BE8:
   6910     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   6911 L_38024BEB:
   6912     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   6913     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   6914     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   6915     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   6916     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   6917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6918     _flag_k = FK_CMP;
   6919     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   6920 L_38024BF9:
   6921     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   6922     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   6923 L_38024BFE:
   6924     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   6925     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   6926     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   6927     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6928     _flag_k = FK_CMP;
   6929     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   6930 L_38024C05:
   6931     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   6932     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   6933 L_38024C09:
   6934     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   6935 L_38024C0C:
   6936     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   6937 L_38024C0E:
   6938     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   6939 L_38024C11:
   6940     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   6941     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   6942     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   6943     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6944     _flag_k = FK_CMP;
   6945     RECOMP_BACKEDGE();
   6946     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   6947 L_38024C1D:
   6948     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   6949     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   6950     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   6951     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   6952     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   6953     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   6954     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   6955     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   6956     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   6957     esp = ebp; /* 0x38024C31: mov esp, ebp */
   6958     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   6959     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   6960     RECOMP_REGS_OUT();
   6961 }
   6962 
   6963 void sub_38024C0E(void) {
   6964     int _fpu_cmp = 0;
   6965     uint32_t _cf = 0;
   6966     int _df = 1;
   6967     uint32_t _flag_k = FK_NONE;
   6968     uint32_t _flag_a = 0, _flag_b = 0;
   6969     uint32_t _itail_tgt = 0;
   6970     RECOMP_REGS_LOCALS
   6971     RECOMP_ENTER(0x38024C0Eu);
   6972 
   6973     goto L_38024C0E;
   6974 L_38024A9D:
   6975     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   6976     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   6977     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   6978     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6979     _cf = 0;
   6980     _flag_k = FK_NARROW(FK_TEST, 24);
   6981     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   6982 L_38024AAB:
   6983     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   6984     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   6985     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   6986     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6987     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6988     _flag_k = FK_CMP;
   6989     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   6990 L_38024AB8:
   6991     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   6992     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   6993     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   6994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6995     _flag_k = FK_NARROW(FK_CMP, 24);
   6996     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   6997 L_38024AC1:
   6998     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   6999     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   7000     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   7001     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   7002     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   7003     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   7004     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   7005     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   7006 L_38024ADC:
   7007     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   7008     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   7009     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7010     _flag_k = FK_CMP;
   7011     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   7012 L_38024AE1:
   7013     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   7014     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   7015     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   7016     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   7017     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   7018     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   7019     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7020     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7021     _flag_k = FK_CMP;
   7022     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   7023 L_38024AF2:
   7024     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   7025 L_38024AF5:
   7026     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   7027     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   7028     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   7029     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   7030     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7032     _flag_k = FK_CMP;
   7033     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   7034 L_38024B03:
   7035     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   7036     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   7037 L_38024B08:
   7038     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   7039     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   7040     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   7041     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7042     _flag_k = FK_CMP;
   7043     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   7044 L_38024B0F:
   7045     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   7046     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   7047 L_38024B13:
   7048     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   7049 L_38024B16:
   7050     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   7051     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   7052 L_38024B1B:
   7053     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   7054     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   7055     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   7056     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   7057     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   7058     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   7059     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   7060     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   7061     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   7062     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   7063     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   7064     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   7065     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7067     _flag_k = FK_CMP;
   7068     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   7069 L_38024B40:
   7070     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   7071 L_38024B43:
   7072     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   7073     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   7074     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   7075     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   7076     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7078     _flag_k = FK_CMP;
   7079     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   7080 L_38024B51:
   7081     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   7082     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   7083     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   7084 L_38024B5C:
   7085     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   7086     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   7087     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7089     _flag_k = FK_CMP;
   7090     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   7091 L_38024B64:
   7092     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   7093     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   7094     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   7095 L_38024B6F:
   7096     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   7097     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   7098     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   7099 L_38024B79:
   7100     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   7101     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   7102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7103     _flag_k = FK_NARROW(FK_CMP, 24);
   7104     RECOMP_BACKEDGE();
   7105     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   7106 L_38024B83:
   7107     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   7108     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   7109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7110     _flag_k = FK_CMP;
   7111     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   7112 L_38024B87:
   7113     eax = ecx; /* 0x38024B87: mov eax, ecx */
   7114     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   7115     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   7116     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   7117     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   7118     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   7119     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7120     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7121     _flag_k = FK_CMP;
   7122     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   7123 L_38024B98:
   7124     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   7125 L_38024B9B:
   7126     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   7127     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   7128     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   7129     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   7130     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7131     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7132     _flag_k = FK_CMP;
   7133     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   7134 L_38024BA9:
   7135     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   7136     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   7137 L_38024BAE:
   7138     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   7139     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   7140     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   7141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7142     _flag_k = FK_CMP;
   7143     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   7144 L_38024BB6:
   7145     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   7146     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   7147 L_38024BBB:
   7148     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   7149 L_38024BBD:
   7150     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   7151     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   7152 L_38024BC3:
   7153     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   7154     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   7155     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   7156     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   7157     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   7158     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   7159     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   7160     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   7161     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   7162     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   7163     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   7164     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   7165     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7166     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7167     _flag_k = FK_CMP;
   7168     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   7169 L_38024BE8:
   7170     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   7171 L_38024BEB:
   7172     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   7173     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   7174     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   7175     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   7176     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7178     _flag_k = FK_CMP;
   7179     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   7180 L_38024BF9:
   7181     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   7182     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   7183 L_38024BFE:
   7184     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   7185     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   7186     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   7187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7188     _flag_k = FK_CMP;
   7189     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   7190 L_38024C05:
   7191     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   7192     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   7193 L_38024C09:
   7194     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   7195 L_38024C0C:
   7196     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   7197 L_38024C0E:
   7198     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   7199 L_38024C11:
   7200     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   7201     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   7202     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7204     _flag_k = FK_CMP;
   7205     RECOMP_BACKEDGE();
   7206     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   7207 L_38024C1D:
   7208     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   7209     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   7210     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   7211     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   7212     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   7213     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   7214     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   7215     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   7216     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   7217     esp = ebp; /* 0x38024C31: mov esp, ebp */
   7218     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   7219     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   7220     RECOMP_REGS_OUT();
   7221 }
   7222 
   7223 void sub_38024C11(void) {
   7224     int _fpu_cmp = 0;
   7225     uint32_t _cf = 0;
   7226     int _df = 1;
   7227     uint32_t _flag_k = FK_NONE;
   7228     uint32_t _flag_a = 0, _flag_b = 0;
   7229     uint32_t _itail_tgt = 0;
   7230     RECOMP_REGS_LOCALS
   7231     RECOMP_ENTER(0x38024C11u);
   7232 
   7233     goto L_38024C11;
   7234 L_38024A9D:
   7235     ecx = MEM32(eax + 0x4); /* 0x38024A9D: mov ecx, dword ptr [eax + 4] */
   7236     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x38024AA0: mov dl, byte ptr [ecx + 0x14] */
   7237     /* test LO8(edx), LO8(edx) */ /* 0x38024AA3: test dl, dl */
   7238     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7239     _cf = 0;
   7240     _flag_k = FK_NARROW(FK_TEST, 24);
   7241     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024C1D; /* 0x38024AA5: jne 0x38024c1d */
   7242 L_38024AAB:
   7243     edi = MEM32(ecx + 0x4); /* 0x38024AAB: mov edi, dword ptr [ecx + 4] */
   7244     edx = MEM32(edi); /* 0x38024AAE: mov edx, dword ptr [edi] */
   7245     /* cmp ecx, edx */ /* 0x38024AB0: cmp ecx, edx */
   7246     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7248     _flag_k = FK_CMP;
   7249     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B79; /* 0x38024AB2: jne 0x38024b79 */
   7250 L_38024AB8:
   7251     edx = MEM32(edi + 0x8); /* 0x38024AB8: mov edx, dword ptr [edi + 8] */
   7252     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024ABB: cmp byte ptr [edx + 0x14], 0 */
   7253     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   7254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7255     _flag_k = FK_NARROW(FK_CMP, 24);
   7256     if (CMP_NE(_flag_a, _flag_b)) goto L_38024ADC; /* 0x38024ABF: jne 0x38024adc */
   7257 L_38024AC1:
   7258     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC1: mov byte ptr [ecx + 0x14], bl */
   7259     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024AC4: mov byte ptr [edx + 0x14], bl */
   7260     ecx = MEM32(eax + 0x4); /* 0x38024AC7: mov ecx, dword ptr [eax + 4] */
   7261     edx = MEM32(ecx + 0x4); /* 0x38024ACA: mov edx, dword ptr [ecx + 4] */
   7262     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x38024ACD: mov byte ptr [edx + 0x14], 0 */
   7263     eax = MEM32(eax + 0x4); /* 0x38024AD1: mov eax, dword ptr [eax + 4] */
   7264     eax = MEM32(eax + 0x4); /* 0x38024AD4: mov eax, dword ptr [eax + 4] */
   7265     goto L_38024C11; /* 0x38024AD7: jmp 0x38024c11 */
   7266 L_38024ADC:
   7267     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024ADC: cmp eax, dword ptr [ecx + 8] */
   7268     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   7269     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7270     _flag_k = FK_CMP;
   7271     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B1B; /* 0x38024ADF: jne 0x38024b1b */
   7272 L_38024AE1:
   7273     eax = ecx; /* 0x38024AE1: mov eax, ecx */
   7274     ecx = MEM32(eax + 0x8); /* 0x38024AE3: mov ecx, dword ptr [eax + 8] */
   7275     edx = MEM32(ecx); /* 0x38024AE6: mov edx, dword ptr [ecx] */
   7276     MEM32(eax + 0x8) = edx; /* 0x38024AE8: mov dword ptr [eax + 8], edx */
   7277     edx = MEM32(ecx); /* 0x38024AEB: mov edx, dword ptr [ecx] */
   7278     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024AED: cmp edx, dword ptr [esi + 8] */
   7279     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7281     _flag_k = FK_CMP;
   7282     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AF5; /* 0x38024AF0: je 0x38024af5 */
   7283 L_38024AF2:
   7284     MEM32(edx + 0x4) = eax; /* 0x38024AF2: mov dword ptr [edx + 4], eax */
   7285 L_38024AF5:
   7286     edx = MEM32(eax + 0x4); /* 0x38024AF5: mov edx, dword ptr [eax + 4] */
   7287     MEM32(ecx + 0x4) = edx; /* 0x38024AF8: mov dword ptr [ecx + 4], edx */
   7288     edx = MEM32(esi + 0x4); /* 0x38024AFB: mov edx, dword ptr [esi + 4] */
   7289     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024AFE: cmp eax, dword ptr [edx + 4] */
   7290     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7292     _flag_k = FK_CMP;
   7293     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B08; /* 0x38024B01: jne 0x38024b08 */
   7294 L_38024B03:
   7295     MEM32(edx + 0x4) = ecx; /* 0x38024B03: mov dword ptr [edx + 4], ecx */
   7296     goto L_38024B16; /* 0x38024B06: jmp 0x38024b16 */
   7297 L_38024B08:
   7298     edx = MEM32(eax + 0x4); /* 0x38024B08: mov edx, dword ptr [eax + 4] */
   7299     /* cmp eax, MEM32(edx) */ /* 0x38024B0B: cmp eax, dword ptr [edx] */
   7300     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   7301     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7302     _flag_k = FK_CMP;
   7303     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B13; /* 0x38024B0D: jne 0x38024b13 */
   7304 L_38024B0F:
   7305     MEM32(edx) = ecx; /* 0x38024B0F: mov dword ptr [edx], ecx */
   7306     goto L_38024B16; /* 0x38024B11: jmp 0x38024b16 */
   7307 L_38024B13:
   7308     MEM32(edx + 0x8) = ecx; /* 0x38024B13: mov dword ptr [edx + 8], ecx */
   7309 L_38024B16:
   7310     MEM32(ecx) = eax; /* 0x38024B16: mov dword ptr [ecx], eax */
   7311     MEM32(eax + 0x4) = ecx; /* 0x38024B18: mov dword ptr [eax + 4], ecx */
   7312 L_38024B1B:
   7313     ecx = MEM32(eax + 0x4); /* 0x38024B1B: mov ecx, dword ptr [eax + 4] */
   7314     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024B1E: mov byte ptr [ecx + 0x14], bl */
   7315     edx = MEM32(eax + 0x4); /* 0x38024B21: mov edx, dword ptr [eax + 4] */
   7316     ecx = MEM32(edx + 0x4); /* 0x38024B24: mov ecx, dword ptr [edx + 4] */
   7317     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024B27: mov byte ptr [ecx + 0x14], 0 */
   7318     edx = MEM32(eax + 0x4); /* 0x38024B2B: mov edx, dword ptr [eax + 4] */
   7319     ecx = MEM32(edx + 0x4); /* 0x38024B2E: mov ecx, dword ptr [edx + 4] */
   7320     edx = MEM32(ecx); /* 0x38024B31: mov edx, dword ptr [ecx] */
   7321     edi = MEM32(edx + 0x8); /* 0x38024B33: mov edi, dword ptr [edx + 8] */
   7322     MEM32(ecx) = edi; /* 0x38024B36: mov dword ptr [ecx], edi */
   7323     edi = MEM32(edx + 0x8); /* 0x38024B38: mov edi, dword ptr [edx + 8] */
   7324     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024B3B: cmp edi, dword ptr [esi + 8] */
   7325     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7326     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7327     _flag_k = FK_CMP;
   7328     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B43; /* 0x38024B3E: je 0x38024b43 */
   7329 L_38024B40:
   7330     MEM32(edi + 0x4) = ecx; /* 0x38024B40: mov dword ptr [edi + 4], ecx */
   7331 L_38024B43:
   7332     edi = MEM32(ecx + 0x4); /* 0x38024B43: mov edi, dword ptr [ecx + 4] */
   7333     MEM32(edx + 0x4) = edi; /* 0x38024B46: mov dword ptr [edx + 4], edi */
   7334     edi = MEM32(esi + 0x4); /* 0x38024B49: mov edi, dword ptr [esi + 4] */
   7335     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024B4C: cmp ecx, dword ptr [edi + 4] */
   7336     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7338     _flag_k = FK_CMP;
   7339     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B5C; /* 0x38024B4F: jne 0x38024b5c */
   7340 L_38024B51:
   7341     MEM32(edi + 0x4) = edx; /* 0x38024B51: mov dword ptr [edi + 4], edx */
   7342     MEM32(edx + 0x8) = ecx; /* 0x38024B54: mov dword ptr [edx + 8], ecx */
   7343     goto L_38024C0E; /* 0x38024B57: jmp 0x38024c0e */
   7344 L_38024B5C:
   7345     edi = MEM32(ecx + 0x4); /* 0x38024B5C: mov edi, dword ptr [ecx + 4] */
   7346     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024B5F: cmp ecx, dword ptr [edi + 8] */
   7347     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7349     _flag_k = FK_CMP;
   7350     if (CMP_NE(_flag_a, _flag_b)) goto L_38024B6F; /* 0x38024B62: jne 0x38024b6f */
   7351 L_38024B64:
   7352     MEM32(edi + 0x8) = edx; /* 0x38024B64: mov dword ptr [edi + 8], edx */
   7353     MEM32(edx + 0x8) = ecx; /* 0x38024B67: mov dword ptr [edx + 8], ecx */
   7354     goto L_38024C0E; /* 0x38024B6A: jmp 0x38024c0e */
   7355 L_38024B6F:
   7356     MEM32(edi) = edx; /* 0x38024B6F: mov dword ptr [edi], edx */
   7357     MEM32(edx + 0x8) = ecx; /* 0x38024B71: mov dword ptr [edx + 8], ecx */
   7358     goto L_38024C0E; /* 0x38024B74: jmp 0x38024c0e */
   7359 L_38024B79:
   7360     /* cmp MEM8(edx + 0x14), 0 */ /* 0x38024B79: cmp byte ptr [edx + 0x14], 0 */
   7361     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   7362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7363     _flag_k = FK_NARROW(FK_CMP, 24);
   7364     RECOMP_BACKEDGE();
   7365     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024AC1; /* 0x38024B7D: je 0x38024ac1 */
   7366 L_38024B83:
   7367     /* cmp eax, MEM32(ecx) */ /* 0x38024B83: cmp eax, dword ptr [ecx] */
   7368     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   7369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7370     _flag_k = FK_CMP;
   7371     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BC3; /* 0x38024B85: jne 0x38024bc3 */
   7372 L_38024B87:
   7373     eax = ecx; /* 0x38024B87: mov eax, ecx */
   7374     ecx = MEM32(eax); /* 0x38024B89: mov ecx, dword ptr [eax] */
   7375     edx = MEM32(ecx + 0x8); /* 0x38024B8B: mov edx, dword ptr [ecx + 8] */
   7376     MEM32(eax) = edx; /* 0x38024B8E: mov dword ptr [eax], edx */
   7377     edx = MEM32(ecx + 0x8); /* 0x38024B90: mov edx, dword ptr [ecx + 8] */
   7378     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024B93: cmp edx, dword ptr [esi + 8] */
   7379     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7380     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7381     _flag_k = FK_CMP;
   7382     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024B9B; /* 0x38024B96: je 0x38024b9b */
   7383 L_38024B98:
   7384     MEM32(edx + 0x4) = eax; /* 0x38024B98: mov dword ptr [edx + 4], eax */
   7385 L_38024B9B:
   7386     edx = MEM32(eax + 0x4); /* 0x38024B9B: mov edx, dword ptr [eax + 4] */
   7387     MEM32(ecx + 0x4) = edx; /* 0x38024B9E: mov dword ptr [ecx + 4], edx */
   7388     edx = MEM32(esi + 0x4); /* 0x38024BA1: mov edx, dword ptr [esi + 4] */
   7389     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024BA4: cmp eax, dword ptr [edx + 4] */
   7390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7392     _flag_k = FK_CMP;
   7393     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BAE; /* 0x38024BA7: jne 0x38024bae */
   7394 L_38024BA9:
   7395     MEM32(edx + 0x4) = ecx; /* 0x38024BA9: mov dword ptr [edx + 4], ecx */
   7396     goto L_38024BBD; /* 0x38024BAC: jmp 0x38024bbd */
   7397 L_38024BAE:
   7398     edx = MEM32(eax + 0x4); /* 0x38024BAE: mov edx, dword ptr [eax + 4] */
   7399     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024BB1: cmp eax, dword ptr [edx + 8] */
   7400     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   7401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7402     _flag_k = FK_CMP;
   7403     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BBB; /* 0x38024BB4: jne 0x38024bbb */
   7404 L_38024BB6:
   7405     MEM32(edx + 0x8) = ecx; /* 0x38024BB6: mov dword ptr [edx + 8], ecx */
   7406     goto L_38024BBD; /* 0x38024BB9: jmp 0x38024bbd */
   7407 L_38024BBB:
   7408     MEM32(edx) = ecx; /* 0x38024BBB: mov dword ptr [edx], ecx */
   7409 L_38024BBD:
   7410     MEM32(ecx + 0x8) = eax; /* 0x38024BBD: mov dword ptr [ecx + 8], eax */
   7411     MEM32(eax + 0x4) = ecx; /* 0x38024BC0: mov dword ptr [eax + 4], ecx */
   7412 L_38024BC3:
   7413     ecx = MEM32(eax + 0x4); /* 0x38024BC3: mov ecx, dword ptr [eax + 4] */
   7414     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024BC6: mov byte ptr [ecx + 0x14], bl */
   7415     edx = MEM32(eax + 0x4); /* 0x38024BC9: mov edx, dword ptr [eax + 4] */
   7416     ecx = MEM32(edx + 0x4); /* 0x38024BCC: mov ecx, dword ptr [edx + 4] */
   7417     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x38024BCF: mov byte ptr [ecx + 0x14], 0 */
   7418     edx = MEM32(eax + 0x4); /* 0x38024BD3: mov edx, dword ptr [eax + 4] */
   7419     ecx = MEM32(edx + 0x4); /* 0x38024BD6: mov ecx, dword ptr [edx + 4] */
   7420     edx = MEM32(ecx + 0x8); /* 0x38024BD9: mov edx, dword ptr [ecx + 8] */
   7421     edi = MEM32(edx); /* 0x38024BDC: mov edi, dword ptr [edx] */
   7422     MEM32(ecx + 0x8) = edi; /* 0x38024BDE: mov dword ptr [ecx + 8], edi */
   7423     edi = MEM32(edx); /* 0x38024BE1: mov edi, dword ptr [edx] */
   7424     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024BE3: cmp edi, dword ptr [esi + 8] */
   7425     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7427     _flag_k = FK_CMP;
   7428     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024BEB; /* 0x38024BE6: je 0x38024beb */
   7429 L_38024BE8:
   7430     MEM32(edi + 0x4) = ecx; /* 0x38024BE8: mov dword ptr [edi + 4], ecx */
   7431 L_38024BEB:
   7432     edi = MEM32(ecx + 0x4); /* 0x38024BEB: mov edi, dword ptr [ecx + 4] */
   7433     MEM32(edx + 0x4) = edi; /* 0x38024BEE: mov dword ptr [edx + 4], edi */
   7434     edi = MEM32(esi + 0x4); /* 0x38024BF1: mov edi, dword ptr [esi + 4] */
   7435     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024BF4: cmp ecx, dword ptr [edi + 4] */
   7436     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7438     _flag_k = FK_CMP;
   7439     if (CMP_NE(_flag_a, _flag_b)) goto L_38024BFE; /* 0x38024BF7: jne 0x38024bfe */
   7440 L_38024BF9:
   7441     MEM32(edi + 0x4) = edx; /* 0x38024BF9: mov dword ptr [edi + 4], edx */
   7442     goto L_38024C0C; /* 0x38024BFC: jmp 0x38024c0c */
   7443 L_38024BFE:
   7444     edi = MEM32(ecx + 0x4); /* 0x38024BFE: mov edi, dword ptr [ecx + 4] */
   7445     /* cmp ecx, MEM32(edi) */ /* 0x38024C01: cmp ecx, dword ptr [edi] */
   7446     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   7447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7448     _flag_k = FK_CMP;
   7449     if (CMP_NE(_flag_a, _flag_b)) goto L_38024C09; /* 0x38024C03: jne 0x38024c09 */
   7450 L_38024C05:
   7451     MEM32(edi) = edx; /* 0x38024C05: mov dword ptr [edi], edx */
   7452     goto L_38024C0C; /* 0x38024C07: jmp 0x38024c0c */
   7453 L_38024C09:
   7454     MEM32(edi + 0x8) = edx; /* 0x38024C09: mov dword ptr [edi + 8], edx */
   7455 L_38024C0C:
   7456     MEM32(edx) = ecx; /* 0x38024C0C: mov dword ptr [edx], ecx */
   7457 L_38024C0E:
   7458     MEM32(ecx + 0x4) = edx; /* 0x38024C0E: mov dword ptr [ecx + 4], edx */
   7459 L_38024C11:
   7460     ecx = MEM32(esi + 0x4); /* 0x38024C11: mov ecx, dword ptr [esi + 4] */
   7461     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024C14: cmp eax, dword ptr [ecx + 4] */
   7462     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7464     _flag_k = FK_CMP;
   7465     RECOMP_BACKEDGE();
   7466     if (CMP_NE(_flag_a, _flag_b)) goto L_38024A9D; /* 0x38024C17: jne 0x38024a9d */
   7467 L_38024C1D:
   7468     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   7469     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   7470     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   7471     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   7472     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   7473     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   7474     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   7475     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   7476     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   7477     esp = ebp; /* 0x38024C31: mov esp, ebp */
   7478     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   7479     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   7480     RECOMP_REGS_OUT();
   7481 }
   7482 
   7483 void sub_38024C1D(void) {
   7484     int _fpu_cmp = 0;
   7485     uint32_t _cf = 0;
   7486     int _df = 1;
   7487     uint32_t _flag_k = FK_NONE;
   7488     uint32_t _flag_a = 0, _flag_b = 0;
   7489     uint32_t _itail_tgt = 0;
   7490     RECOMP_REGS_LOCALS
   7491     RECOMP_ENTER(0x38024C1Du);
   7492 
   7493 L_38024C1D:
   7494     edx = MEM32(esi + 0x4); /* 0x38024C1D: mov edx, dword ptr [esi + 4] */
   7495     eax = MEM32(edx + 0x4); /* 0x38024C20: mov eax, dword ptr [edx + 4] */
   7496     ecx = MEM32(ebp + (-0x4)); /* 0x38024C23: mov ecx, dword ptr [ebp - 4] */
   7497     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38024C26: mov byte ptr [eax + 0x14], bl */
   7498     eax = MEM32(ebp + 0x8); /* 0x38024C29: mov eax, dword ptr [ebp + 8] */
   7499     edi = POP32_VAL(esp); /* 0x38024C2C: pop edi */
   7500     esi = POP32_VAL(esp); /* 0x38024C2D: pop esi */
   7501     MEM32(eax) = ecx; /* 0x38024C2E: mov dword ptr [eax], ecx */
   7502     ebx = POP32_VAL(esp); /* 0x38024C30: pop ebx */
   7503     esp = ebp; /* 0x38024C31: mov esp, ebp */
   7504     ebp = POP32_VAL(esp); /* 0x38024C33: pop ebp */
   7505     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024C34: ret 0x10 */
   7506     RECOMP_REGS_OUT();
   7507 }
   7508 
   7509 void sub_38024C40(void) {
   7510     int _fpu_cmp = 0;
   7511     uint32_t _cf = 0;
   7512     int _df = 1;
   7513     uint32_t _flag_k = FK_NONE;
   7514     uint32_t _flag_a = 0, _flag_b = 0;
   7515     uint32_t _itail_tgt = 0;
   7516     RECOMP_REGS_LOCALS
   7517     RECOMP_ENTER(0x38024C40u);
   7518 
   7519 L_38024C40:
   7520     PUSH32(esp, ebp); /* 0x38024C40: push ebp */
   7521     ebp = esp; /* 0x38024C41: mov ebp, esp */
   7522     PUSH32(esp, ecx); /* 0x38024C43: push ecx */
   7523     PUSH32(esp, ebx); /* 0x38024C44: push ebx */
   7524     PUSH32(esp, esi); /* 0x38024C45: push esi */
   7525     PUSH32(esp, edi); /* 0x38024C46: push edi */
   7526     PUSH32(esp, 0x24u); /* 0x38024C47: push 0x24 */
   7527     esi = ecx; /* 0x38024C49: mov esi, ecx */
   7528     RECOMP_ICALL(0x3804B676u); /* 0x38024C4B: call 0x3804b676 */ /* not lifted */
   7529     RECOMP_FLAGS_IN();
   7530     edi = MEM32(ebp + 0x10); /* 0x38024C50: mov edi, dword ptr [ebp + 0x10] */
   7531     ebx = MEM32(ebp + 0x14); /* 0x38024C53: mov ebx, dword ptr [ebp + 0x14] */
   7532     MEM32(eax + 0x4) = edi; /* 0x38024C56: mov dword ptr [eax + 4], edi */
   7533     MEM8(eax + 0x20) = (uint8_t)(0); /* 0x38024C59: mov byte ptr [eax + 0x20], 0 */
   7534     MEM8(eax + 0x21) = (uint8_t)(0); /* 0x38024C5D: mov byte ptr [eax + 0x21], 0 */
   7535     ecx = MEM32(esi + 0x8); /* 0x38024C61: mov ecx, dword ptr [esi + 8] */
   7536     MEM32(eax) = ecx; /* 0x38024C64: mov dword ptr [eax], ecx */
   7537     edx = MEM32(esi + 0x8); /* 0x38024C66: mov edx, dword ptr [esi + 8] */
   7538     MEM32(ebp + (-0x4)) = eax; /* 0x38024C69: mov dword ptr [ebp - 4], eax */
   7539     MEM32(eax + 0x8) = edx; /* 0x38024C6C: mov dword ptr [eax + 8], edx */
   7540     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   7541     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7542     eax = eax + 0xCu; /* 0x38024C6F: add eax, 0xc */
   7543     _flag_k = FK_ADD;
   7544     PUSH32(esp, ebx); /* 0x38024C72: push ebx */
   7545     PUSH32(esp, eax); /* 0x38024C73: push eax */
   7546     RECOMP_ICALL(0x380253D0u); /* 0x38024C74: call 0x380253d0 */ /* not lifted */
   7547     RECOMP_FLAGS_IN();
   7548     ecx = MEM32(esi + 0x10); /* 0x38024C79: mov ecx, dword ptr [esi + 0x10] */
   7549     eax = MEM32(esi + 0x4); /* 0x38024C7C: mov eax, dword ptr [esi + 4] */
   7550     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7551     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7552     esp = esp + 0xCu; /* 0x38024C7F: add esp, 0xc */
   7553     _flag_k = FK_ADD;
   7554     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7555     ecx = ecx + 1; /* 0x38024C82: inc ecx */
   7556     _flag_k = FK_INC;
   7557     /* cmp edi, eax */ /* 0x38024C83: cmp edi, eax */
   7558     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7560     _flag_k = FK_CMP;
   7561     MEM32(esi + 0x10) = ecx; /* 0x38024C85: mov dword ptr [esi + 0x10], ecx */
   7562     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024CAC; /* 0x38024C88: je 0x38024cac */
   7563 L_38024C8A:
   7564     eax = MEM32(ebp + 0xC); /* 0x38024C8A: mov eax, dword ptr [ebp + 0xc] */
   7565     /* cmp eax, MEM32(esi + 0x8) */ /* 0x38024C8D: cmp eax, dword ptr [esi + 8] */
   7566     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7567     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7568     _flag_k = FK_CMP;
   7569     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CAC; /* 0x38024C90: jne 0x38024cac */
   7570 L_38024C92:
   7571     ecx = MEM32(ebx); /* 0x38024C92: mov ecx, dword ptr [ebx] */
   7572     /* cmp ecx, MEM32(edi + 0xC) */ /* 0x38024C94: cmp ecx, dword ptr [edi + 0xc] */
   7573     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC));
   7574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7575     _flag_k = FK_CMP;
   7576     if (CMP_L(_flag_a, _flag_b)) goto L_38024CAC; /* 0x38024C97: jl 0x38024cac */
   7577 L_38024C99:
   7578     ecx = MEM32(ebp + (-0x4)); /* 0x38024C99: mov ecx, dword ptr [ebp - 4] */
   7579     MEM32(edi + 0x8) = ecx; /* 0x38024C9C: mov dword ptr [edi + 8], ecx */
   7580     eax = MEM32(esi + 0x4); /* 0x38024C9F: mov eax, dword ptr [esi + 4] */
   7581     /* cmp edi, MEM32(eax + 0x8) */ /* 0x38024CA2: cmp edi, dword ptr [eax + 8] */
   7582     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   7583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7584     _flag_k = FK_CMP;
   7585     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CCC; /* 0x38024CA5: jne 0x38024ccc */
   7586 L_38024CA7:
   7587     MEM32(eax + 0x8) = ecx; /* 0x38024CA7: mov dword ptr [eax + 8], ecx */
   7588     goto L_38024CCC; /* 0x38024CAA: jmp 0x38024ccc */
   7589 L_38024CAC:
   7590     ecx = MEM32(ebp + (-0x4)); /* 0x38024CAC: mov ecx, dword ptr [ebp - 4] */
   7591     MEM32(edi) = ecx; /* 0x38024CAF: mov dword ptr [edi], ecx */
   7592     eax = MEM32(esi + 0x4); /* 0x38024CB1: mov eax, dword ptr [esi + 4] */
   7593     /* cmp edi, eax */ /* 0x38024CB4: cmp edi, eax */
   7594     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7596     _flag_k = FK_CMP;
   7597     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CC3; /* 0x38024CB6: jne 0x38024cc3 */
   7598 L_38024CB8:
   7599     MEM32(eax + 0x4) = ecx; /* 0x38024CB8: mov dword ptr [eax + 4], ecx */
   7600     edx = MEM32(esi + 0x4); /* 0x38024CBB: mov edx, dword ptr [esi + 4] */
   7601     MEM32(edx + 0x8) = ecx; /* 0x38024CBE: mov dword ptr [edx + 8], ecx */
   7602     goto L_38024CCC; /* 0x38024CC1: jmp 0x38024ccc */
   7603 L_38024CC3:
   7604     /* cmp edi, MEM32(eax) */ /* 0x38024CC3: cmp edi, dword ptr [eax] */
   7605     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   7606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7607     _flag_k = FK_CMP;
   7608     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CCC; /* 0x38024CC5: jne 0x38024ccc */
   7609 L_38024CC7:
   7610     ecx = MEM32(ebp + (-0x4)); /* 0x38024CC7: mov ecx, dword ptr [ebp - 4] */
   7611     MEM32(eax) = ecx; /* 0x38024CCA: mov dword ptr [eax], ecx */
   7612 L_38024CCC:
   7613     edx = MEM32(esi + 0x4); /* 0x38024CCC: mov edx, dword ptr [esi + 4] */
   7614     eax = MEM32(ebp + (-0x4)); /* 0x38024CCF: mov eax, dword ptr [ebp - 4] */
   7615     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024CD2: cmp eax, dword ptr [edx + 4] */
   7616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7618     _flag_k = FK_CMP;
   7619     SET_LO8(ebx, 1); /* 0x38024CD5: mov bl, 1 */
   7620     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CD7: je 0x38024e5d */
   7621 L_38024CDD:
   7622     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
   7623     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
   7624     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
   7625     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7626     _cf = 0;
   7627     _flag_k = FK_NARROW(FK_TEST, 24);
   7628     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
   7629 L_38024CEB:
   7630     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
   7631     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
   7632     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
   7633     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7635     _flag_k = FK_CMP;
   7636     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
   7637 L_38024CF8:
   7638     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
   7639     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
   7640     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   7641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7642     _flag_k = FK_NARROW(FK_CMP, 24);
   7643     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
   7644 L_38024D01:
   7645     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
   7646     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
   7647     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
   7648     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
   7649     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
   7650     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
   7651     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
   7652     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
   7653 L_38024D1C:
   7654     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
   7655     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   7656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7657     _flag_k = FK_CMP;
   7658     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
   7659 L_38024D21:
   7660     eax = ecx; /* 0x38024D21: mov eax, ecx */
   7661     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
   7662     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
   7663     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
   7664     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
   7665     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
   7666     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7668     _flag_k = FK_CMP;
   7669     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
   7670 L_38024D32:
   7671     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
   7672 L_38024D35:
   7673     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
   7674     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
   7675     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
   7676     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
   7677     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7679     _flag_k = FK_CMP;
   7680     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
   7681 L_38024D43:
   7682     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
   7683     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
   7684 L_38024D48:
   7685     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
   7686     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
   7687     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   7688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7689     _flag_k = FK_CMP;
   7690     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
   7691 L_38024D4F:
   7692     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
   7693     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
   7694 L_38024D53:
   7695     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
   7696 L_38024D56:
   7697     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
   7698     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
   7699 L_38024D5B:
   7700     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
   7701     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
   7702     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
   7703     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
   7704     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
   7705     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
   7706     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
   7707     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
   7708     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
   7709     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
   7710     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
   7711     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
   7712     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7714     _flag_k = FK_CMP;
   7715     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
   7716 L_38024D80:
   7717     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
   7718 L_38024D83:
   7719     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
   7720     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
   7721     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
   7722     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
   7723     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7724     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7725     _flag_k = FK_CMP;
   7726     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
   7727 L_38024D91:
   7728     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
   7729     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
   7730     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
   7731 L_38024D9C:
   7732     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
   7733     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
   7734     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7736     _flag_k = FK_CMP;
   7737     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
   7738 L_38024DA4:
   7739     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
   7740     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
   7741     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
   7742 L_38024DAF:
   7743     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
   7744     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
   7745     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
   7746 L_38024DB9:
   7747     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
   7748     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   7749     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7750     _flag_k = FK_NARROW(FK_CMP, 24);
   7751     RECOMP_BACKEDGE();
   7752     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
   7753 L_38024DC3:
   7754     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
   7755     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   7756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7757     _flag_k = FK_CMP;
   7758     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
   7759 L_38024DC7:
   7760     eax = ecx; /* 0x38024DC7: mov eax, ecx */
   7761     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
   7762     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
   7763     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
   7764     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
   7765     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
   7766     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7767     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7768     _flag_k = FK_CMP;
   7769     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
   7770 L_38024DD8:
   7771     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
   7772 L_38024DDB:
   7773     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
   7774     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
   7775     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
   7776     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
   7777     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7778     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7779     _flag_k = FK_CMP;
   7780     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
   7781 L_38024DE9:
   7782     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
   7783     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
   7784 L_38024DEE:
   7785     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
   7786     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
   7787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   7788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7789     _flag_k = FK_CMP;
   7790     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
   7791 L_38024DF6:
   7792     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
   7793     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
   7794 L_38024DFB:
   7795     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
   7796 L_38024DFD:
   7797     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
   7798     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
   7799 L_38024E03:
   7800     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
   7801     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
   7802     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
   7803     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
   7804     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
   7805     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
   7806     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
   7807     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
   7808     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
   7809     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
   7810     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
   7811     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
   7812     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7814     _flag_k = FK_CMP;
   7815     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
   7816 L_38024E28:
   7817     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
   7818 L_38024E2B:
   7819     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
   7820     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
   7821     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
   7822     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
   7823     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7825     _flag_k = FK_CMP;
   7826     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
   7827 L_38024E39:
   7828     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
   7829     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
   7830 L_38024E3E:
   7831     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
   7832     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
   7833     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   7834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7835     _flag_k = FK_CMP;
   7836     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
   7837 L_38024E45:
   7838     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
   7839     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
   7840 L_38024E49:
   7841     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
   7842 L_38024E4C:
   7843     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
   7844 L_38024E4E:
   7845     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
   7846 L_38024E51:
   7847     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
   7848     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
   7849     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7850     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7851     _flag_k = FK_CMP;
   7852     RECOMP_BACKEDGE();
   7853     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
   7854 L_38024E5D:
   7855     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
   7856     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
   7857     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
   7858     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
   7859     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
   7860     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
   7861     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
   7862     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
   7863     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
   7864     esp = ebp; /* 0x38024E71: mov esp, ebp */
   7865     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
   7866     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
   7867     RECOMP_REGS_OUT();
   7868 }
   7869 
   7870 void sub_38024CDD(void) {
   7871     int _fpu_cmp = 0;
   7872     uint32_t _cf = 0;
   7873     int _df = 1;
   7874     uint32_t _flag_k = FK_NONE;
   7875     uint32_t _flag_a = 0, _flag_b = 0;
   7876     uint32_t _itail_tgt = 0;
   7877     RECOMP_REGS_LOCALS
   7878     RECOMP_ENTER(0x38024CDDu);
   7879 
   7880 L_38024CDD:
   7881     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
   7882     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
   7883     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
   7884     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7885     _cf = 0;
   7886     _flag_k = FK_NARROW(FK_TEST, 24);
   7887     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
   7888 L_38024CEB:
   7889     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
   7890     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
   7891     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
   7892     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7894     _flag_k = FK_CMP;
   7895     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
   7896 L_38024CF8:
   7897     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
   7898     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
   7899     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   7900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7901     _flag_k = FK_NARROW(FK_CMP, 24);
   7902     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
   7903 L_38024D01:
   7904     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
   7905     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
   7906     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
   7907     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
   7908     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
   7909     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
   7910     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
   7911     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
   7912 L_38024D1C:
   7913     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
   7914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   7915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7916     _flag_k = FK_CMP;
   7917     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
   7918 L_38024D21:
   7919     eax = ecx; /* 0x38024D21: mov eax, ecx */
   7920     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
   7921     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
   7922     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
   7923     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
   7924     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
   7925     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7927     _flag_k = FK_CMP;
   7928     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
   7929 L_38024D32:
   7930     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
   7931 L_38024D35:
   7932     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
   7933     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
   7934     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
   7935     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
   7936     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7938     _flag_k = FK_CMP;
   7939     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
   7940 L_38024D43:
   7941     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
   7942     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
   7943 L_38024D48:
   7944     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
   7945     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
   7946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   7947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7948     _flag_k = FK_CMP;
   7949     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
   7950 L_38024D4F:
   7951     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
   7952     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
   7953 L_38024D53:
   7954     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
   7955 L_38024D56:
   7956     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
   7957     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
   7958 L_38024D5B:
   7959     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
   7960     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
   7961     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
   7962     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
   7963     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
   7964     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
   7965     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
   7966     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
   7967     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
   7968     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
   7969     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
   7970     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
   7971     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7973     _flag_k = FK_CMP;
   7974     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
   7975 L_38024D80:
   7976     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
   7977 L_38024D83:
   7978     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
   7979     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
   7980     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
   7981     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
   7982     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   7983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7984     _flag_k = FK_CMP;
   7985     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
   7986 L_38024D91:
   7987     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
   7988     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
   7989     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
   7990 L_38024D9C:
   7991     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
   7992     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
   7993     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7995     _flag_k = FK_CMP;
   7996     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
   7997 L_38024DA4:
   7998     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
   7999     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
   8000     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
   8001 L_38024DAF:
   8002     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
   8003     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
   8004     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
   8005 L_38024DB9:
   8006     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
   8007     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   8008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8009     _flag_k = FK_NARROW(FK_CMP, 24);
   8010     RECOMP_BACKEDGE();
   8011     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
   8012 L_38024DC3:
   8013     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
   8014     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8016     _flag_k = FK_CMP;
   8017     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
   8018 L_38024DC7:
   8019     eax = ecx; /* 0x38024DC7: mov eax, ecx */
   8020     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
   8021     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
   8022     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
   8023     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
   8024     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
   8025     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8027     _flag_k = FK_CMP;
   8028     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
   8029 L_38024DD8:
   8030     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
   8031 L_38024DDB:
   8032     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
   8033     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
   8034     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
   8035     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
   8036     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8038     _flag_k = FK_CMP;
   8039     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
   8040 L_38024DE9:
   8041     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
   8042     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
   8043 L_38024DEE:
   8044     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
   8045     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
   8046     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8048     _flag_k = FK_CMP;
   8049     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
   8050 L_38024DF6:
   8051     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
   8052     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
   8053 L_38024DFB:
   8054     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
   8055 L_38024DFD:
   8056     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
   8057     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
   8058 L_38024E03:
   8059     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
   8060     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
   8061     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
   8062     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
   8063     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
   8064     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
   8065     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
   8066     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
   8067     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
   8068     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
   8069     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
   8070     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
   8071     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8072     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8073     _flag_k = FK_CMP;
   8074     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
   8075 L_38024E28:
   8076     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
   8077 L_38024E2B:
   8078     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
   8079     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
   8080     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
   8081     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
   8082     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8084     _flag_k = FK_CMP;
   8085     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
   8086 L_38024E39:
   8087     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
   8088     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
   8089 L_38024E3E:
   8090     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
   8091     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
   8092     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8094     _flag_k = FK_CMP;
   8095     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
   8096 L_38024E45:
   8097     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
   8098     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
   8099 L_38024E49:
   8100     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
   8101 L_38024E4C:
   8102     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
   8103 L_38024E4E:
   8104     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
   8105 L_38024E51:
   8106     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
   8107     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
   8108     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8110     _flag_k = FK_CMP;
   8111     RECOMP_BACKEDGE();
   8112     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
   8113 L_38024E5D:
   8114     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
   8115     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
   8116     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
   8117     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
   8118     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
   8119     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
   8120     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
   8121     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
   8122     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
   8123     esp = ebp; /* 0x38024E71: mov esp, ebp */
   8124     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
   8125     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
   8126     RECOMP_REGS_OUT();
   8127 }
   8128 
   8129 void sub_38024D01(void) {
   8130     int _fpu_cmp = 0;
   8131     uint32_t _cf = 0;
   8132     int _df = 1;
   8133     uint32_t _flag_k = FK_NONE;
   8134     uint32_t _flag_a = 0, _flag_b = 0;
   8135     uint32_t _itail_tgt = 0;
   8136     RECOMP_REGS_LOCALS
   8137     RECOMP_ENTER(0x38024D01u);
   8138 
   8139     goto L_38024D01;
   8140 L_38024CDD:
   8141     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
   8142     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
   8143     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
   8144     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8145     _cf = 0;
   8146     _flag_k = FK_NARROW(FK_TEST, 24);
   8147     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
   8148 L_38024CEB:
   8149     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
   8150     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
   8151     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
   8152     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8153     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8154     _flag_k = FK_CMP;
   8155     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
   8156 L_38024CF8:
   8157     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
   8158     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
   8159     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   8160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8161     _flag_k = FK_NARROW(FK_CMP, 24);
   8162     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
   8163 L_38024D01:
   8164     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
   8165     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
   8166     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
   8167     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
   8168     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
   8169     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
   8170     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
   8171     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
   8172 L_38024D1C:
   8173     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
   8174     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8176     _flag_k = FK_CMP;
   8177     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
   8178 L_38024D21:
   8179     eax = ecx; /* 0x38024D21: mov eax, ecx */
   8180     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
   8181     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
   8182     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
   8183     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
   8184     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
   8185     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8187     _flag_k = FK_CMP;
   8188     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
   8189 L_38024D32:
   8190     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
   8191 L_38024D35:
   8192     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
   8193     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
   8194     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
   8195     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
   8196     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8197     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8198     _flag_k = FK_CMP;
   8199     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
   8200 L_38024D43:
   8201     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
   8202     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
   8203 L_38024D48:
   8204     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
   8205     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
   8206     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   8207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8208     _flag_k = FK_CMP;
   8209     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
   8210 L_38024D4F:
   8211     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
   8212     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
   8213 L_38024D53:
   8214     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
   8215 L_38024D56:
   8216     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
   8217     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
   8218 L_38024D5B:
   8219     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
   8220     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
   8221     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
   8222     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
   8223     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
   8224     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
   8225     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
   8226     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
   8227     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
   8228     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
   8229     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
   8230     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
   8231     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8233     _flag_k = FK_CMP;
   8234     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
   8235 L_38024D80:
   8236     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
   8237 L_38024D83:
   8238     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
   8239     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
   8240     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
   8241     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
   8242     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8244     _flag_k = FK_CMP;
   8245     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
   8246 L_38024D91:
   8247     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
   8248     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
   8249     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
   8250 L_38024D9C:
   8251     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
   8252     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
   8253     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8255     _flag_k = FK_CMP;
   8256     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
   8257 L_38024DA4:
   8258     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
   8259     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
   8260     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
   8261 L_38024DAF:
   8262     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
   8263     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
   8264     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
   8265 L_38024DB9:
   8266     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
   8267     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   8268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8269     _flag_k = FK_NARROW(FK_CMP, 24);
   8270     RECOMP_BACKEDGE();
   8271     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
   8272 L_38024DC3:
   8273     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
   8274     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8276     _flag_k = FK_CMP;
   8277     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
   8278 L_38024DC7:
   8279     eax = ecx; /* 0x38024DC7: mov eax, ecx */
   8280     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
   8281     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
   8282     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
   8283     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
   8284     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
   8285     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8287     _flag_k = FK_CMP;
   8288     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
   8289 L_38024DD8:
   8290     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
   8291 L_38024DDB:
   8292     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
   8293     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
   8294     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
   8295     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
   8296     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8298     _flag_k = FK_CMP;
   8299     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
   8300 L_38024DE9:
   8301     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
   8302     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
   8303 L_38024DEE:
   8304     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
   8305     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
   8306     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8307     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8308     _flag_k = FK_CMP;
   8309     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
   8310 L_38024DF6:
   8311     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
   8312     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
   8313 L_38024DFB:
   8314     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
   8315 L_38024DFD:
   8316     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
   8317     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
   8318 L_38024E03:
   8319     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
   8320     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
   8321     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
   8322     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
   8323     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
   8324     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
   8325     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
   8326     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
   8327     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
   8328     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
   8329     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
   8330     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
   8331     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8332     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8333     _flag_k = FK_CMP;
   8334     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
   8335 L_38024E28:
   8336     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
   8337 L_38024E2B:
   8338     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
   8339     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
   8340     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
   8341     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
   8342     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8344     _flag_k = FK_CMP;
   8345     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
   8346 L_38024E39:
   8347     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
   8348     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
   8349 L_38024E3E:
   8350     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
   8351     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
   8352     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8353     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8354     _flag_k = FK_CMP;
   8355     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
   8356 L_38024E45:
   8357     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
   8358     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
   8359 L_38024E49:
   8360     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
   8361 L_38024E4C:
   8362     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
   8363 L_38024E4E:
   8364     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
   8365 L_38024E51:
   8366     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
   8367     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
   8368     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8370     _flag_k = FK_CMP;
   8371     RECOMP_BACKEDGE();
   8372     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
   8373 L_38024E5D:
   8374     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
   8375     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
   8376     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
   8377     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
   8378     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
   8379     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
   8380     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
   8381     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
   8382     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
   8383     esp = ebp; /* 0x38024E71: mov esp, ebp */
   8384     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
   8385     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
   8386     RECOMP_REGS_OUT();
   8387 }
   8388 
   8389 void sub_38024D56(void) {
   8390     int _fpu_cmp = 0;
   8391     uint32_t _cf = 0;
   8392     int _df = 1;
   8393     uint32_t _flag_k = FK_NONE;
   8394     uint32_t _flag_a = 0, _flag_b = 0;
   8395     uint32_t _itail_tgt = 0;
   8396     RECOMP_REGS_LOCALS
   8397     RECOMP_ENTER(0x38024D56u);
   8398 
   8399     goto L_38024D56;
   8400 L_38024CDD:
   8401     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
   8402     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
   8403     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
   8404     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8405     _cf = 0;
   8406     _flag_k = FK_NARROW(FK_TEST, 24);
   8407     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
   8408 L_38024CEB:
   8409     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
   8410     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
   8411     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
   8412     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8414     _flag_k = FK_CMP;
   8415     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
   8416 L_38024CF8:
   8417     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
   8418     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
   8419     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   8420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8421     _flag_k = FK_NARROW(FK_CMP, 24);
   8422     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
   8423 L_38024D01:
   8424     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
   8425     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
   8426     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
   8427     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
   8428     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
   8429     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
   8430     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
   8431     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
   8432 L_38024D1C:
   8433     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
   8434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8436     _flag_k = FK_CMP;
   8437     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
   8438 L_38024D21:
   8439     eax = ecx; /* 0x38024D21: mov eax, ecx */
   8440     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
   8441     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
   8442     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
   8443     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
   8444     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
   8445     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8447     _flag_k = FK_CMP;
   8448     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
   8449 L_38024D32:
   8450     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
   8451 L_38024D35:
   8452     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
   8453     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
   8454     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
   8455     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
   8456     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8458     _flag_k = FK_CMP;
   8459     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
   8460 L_38024D43:
   8461     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
   8462     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
   8463 L_38024D48:
   8464     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
   8465     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
   8466     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   8467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8468     _flag_k = FK_CMP;
   8469     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
   8470 L_38024D4F:
   8471     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
   8472     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
   8473 L_38024D53:
   8474     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
   8475 L_38024D56:
   8476     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
   8477     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
   8478 L_38024D5B:
   8479     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
   8480     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
   8481     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
   8482     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
   8483     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
   8484     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
   8485     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
   8486     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
   8487     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
   8488     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
   8489     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
   8490     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
   8491     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8493     _flag_k = FK_CMP;
   8494     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
   8495 L_38024D80:
   8496     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
   8497 L_38024D83:
   8498     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
   8499     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
   8500     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
   8501     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
   8502     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8503     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8504     _flag_k = FK_CMP;
   8505     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
   8506 L_38024D91:
   8507     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
   8508     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
   8509     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
   8510 L_38024D9C:
   8511     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
   8512     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
   8513     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8515     _flag_k = FK_CMP;
   8516     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
   8517 L_38024DA4:
   8518     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
   8519     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
   8520     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
   8521 L_38024DAF:
   8522     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
   8523     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
   8524     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
   8525 L_38024DB9:
   8526     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
   8527     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   8528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8529     _flag_k = FK_NARROW(FK_CMP, 24);
   8530     RECOMP_BACKEDGE();
   8531     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
   8532 L_38024DC3:
   8533     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
   8534     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8535     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8536     _flag_k = FK_CMP;
   8537     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
   8538 L_38024DC7:
   8539     eax = ecx; /* 0x38024DC7: mov eax, ecx */
   8540     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
   8541     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
   8542     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
   8543     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
   8544     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
   8545     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8547     _flag_k = FK_CMP;
   8548     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
   8549 L_38024DD8:
   8550     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
   8551 L_38024DDB:
   8552     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
   8553     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
   8554     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
   8555     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
   8556     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8558     _flag_k = FK_CMP;
   8559     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
   8560 L_38024DE9:
   8561     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
   8562     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
   8563 L_38024DEE:
   8564     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
   8565     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
   8566     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8567     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8568     _flag_k = FK_CMP;
   8569     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
   8570 L_38024DF6:
   8571     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
   8572     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
   8573 L_38024DFB:
   8574     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
   8575 L_38024DFD:
   8576     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
   8577     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
   8578 L_38024E03:
   8579     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
   8580     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
   8581     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
   8582     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
   8583     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
   8584     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
   8585     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
   8586     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
   8587     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
   8588     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
   8589     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
   8590     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
   8591     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8592     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8593     _flag_k = FK_CMP;
   8594     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
   8595 L_38024E28:
   8596     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
   8597 L_38024E2B:
   8598     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
   8599     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
   8600     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
   8601     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
   8602     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8604     _flag_k = FK_CMP;
   8605     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
   8606 L_38024E39:
   8607     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
   8608     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
   8609 L_38024E3E:
   8610     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
   8611     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
   8612     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8614     _flag_k = FK_CMP;
   8615     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
   8616 L_38024E45:
   8617     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
   8618     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
   8619 L_38024E49:
   8620     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
   8621 L_38024E4C:
   8622     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
   8623 L_38024E4E:
   8624     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
   8625 L_38024E51:
   8626     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
   8627     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
   8628     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8630     _flag_k = FK_CMP;
   8631     RECOMP_BACKEDGE();
   8632     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
   8633 L_38024E5D:
   8634     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
   8635     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
   8636     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
   8637     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
   8638     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
   8639     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
   8640     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
   8641     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
   8642     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
   8643     esp = ebp; /* 0x38024E71: mov esp, ebp */
   8644     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
   8645     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
   8646     RECOMP_REGS_OUT();
   8647 }
   8648 
   8649 void sub_38024D5B(void) {
   8650     int _fpu_cmp = 0;
   8651     uint32_t _cf = 0;
   8652     int _df = 1;
   8653     uint32_t _flag_k = FK_NONE;
   8654     uint32_t _flag_a = 0, _flag_b = 0;
   8655     uint32_t _itail_tgt = 0;
   8656     RECOMP_REGS_LOCALS
   8657     RECOMP_ENTER(0x38024D5Bu);
   8658 
   8659     goto L_38024D5B;
   8660 L_38024CDD:
   8661     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
   8662     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
   8663     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
   8664     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8665     _cf = 0;
   8666     _flag_k = FK_NARROW(FK_TEST, 24);
   8667     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
   8668 L_38024CEB:
   8669     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
   8670     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
   8671     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
   8672     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8673     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8674     _flag_k = FK_CMP;
   8675     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
   8676 L_38024CF8:
   8677     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
   8678     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
   8679     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   8680     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8681     _flag_k = FK_NARROW(FK_CMP, 24);
   8682     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
   8683 L_38024D01:
   8684     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
   8685     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
   8686     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
   8687     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
   8688     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
   8689     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
   8690     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
   8691     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
   8692 L_38024D1C:
   8693     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
   8694     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8696     _flag_k = FK_CMP;
   8697     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
   8698 L_38024D21:
   8699     eax = ecx; /* 0x38024D21: mov eax, ecx */
   8700     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
   8701     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
   8702     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
   8703     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
   8704     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
   8705     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8707     _flag_k = FK_CMP;
   8708     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
   8709 L_38024D32:
   8710     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
   8711 L_38024D35:
   8712     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
   8713     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
   8714     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
   8715     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
   8716     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8718     _flag_k = FK_CMP;
   8719     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
   8720 L_38024D43:
   8721     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
   8722     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
   8723 L_38024D48:
   8724     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
   8725     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
   8726     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   8727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8728     _flag_k = FK_CMP;
   8729     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
   8730 L_38024D4F:
   8731     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
   8732     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
   8733 L_38024D53:
   8734     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
   8735 L_38024D56:
   8736     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
   8737     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
   8738 L_38024D5B:
   8739     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
   8740     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
   8741     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
   8742     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
   8743     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
   8744     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
   8745     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
   8746     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
   8747     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
   8748     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
   8749     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
   8750     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
   8751     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8753     _flag_k = FK_CMP;
   8754     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
   8755 L_38024D80:
   8756     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
   8757 L_38024D83:
   8758     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
   8759     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
   8760     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
   8761     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
   8762     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8764     _flag_k = FK_CMP;
   8765     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
   8766 L_38024D91:
   8767     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
   8768     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
   8769     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
   8770 L_38024D9C:
   8771     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
   8772     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
   8773     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8774     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8775     _flag_k = FK_CMP;
   8776     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
   8777 L_38024DA4:
   8778     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
   8779     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
   8780     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
   8781 L_38024DAF:
   8782     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
   8783     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
   8784     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
   8785 L_38024DB9:
   8786     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
   8787     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   8788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8789     _flag_k = FK_NARROW(FK_CMP, 24);
   8790     RECOMP_BACKEDGE();
   8791     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
   8792 L_38024DC3:
   8793     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
   8794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8796     _flag_k = FK_CMP;
   8797     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
   8798 L_38024DC7:
   8799     eax = ecx; /* 0x38024DC7: mov eax, ecx */
   8800     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
   8801     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
   8802     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
   8803     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
   8804     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
   8805     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8807     _flag_k = FK_CMP;
   8808     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
   8809 L_38024DD8:
   8810     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
   8811 L_38024DDB:
   8812     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
   8813     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
   8814     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
   8815     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
   8816     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8818     _flag_k = FK_CMP;
   8819     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
   8820 L_38024DE9:
   8821     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
   8822     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
   8823 L_38024DEE:
   8824     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
   8825     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
   8826     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8828     _flag_k = FK_CMP;
   8829     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
   8830 L_38024DF6:
   8831     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
   8832     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
   8833 L_38024DFB:
   8834     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
   8835 L_38024DFD:
   8836     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
   8837     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
   8838 L_38024E03:
   8839     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
   8840     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
   8841     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
   8842     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
   8843     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
   8844     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
   8845     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
   8846     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
   8847     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
   8848     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
   8849     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
   8850     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
   8851     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8853     _flag_k = FK_CMP;
   8854     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
   8855 L_38024E28:
   8856     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
   8857 L_38024E2B:
   8858     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
   8859     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
   8860     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
   8861     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
   8862     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8864     _flag_k = FK_CMP;
   8865     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
   8866 L_38024E39:
   8867     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
   8868     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
   8869 L_38024E3E:
   8870     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
   8871     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
   8872     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8874     _flag_k = FK_CMP;
   8875     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
   8876 L_38024E45:
   8877     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
   8878     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
   8879 L_38024E49:
   8880     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
   8881 L_38024E4C:
   8882     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
   8883 L_38024E4E:
   8884     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
   8885 L_38024E51:
   8886     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
   8887     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
   8888     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8890     _flag_k = FK_CMP;
   8891     RECOMP_BACKEDGE();
   8892     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
   8893 L_38024E5D:
   8894     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
   8895     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
   8896     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
   8897     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
   8898     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
   8899     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
   8900     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
   8901     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
   8902     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
   8903     esp = ebp; /* 0x38024E71: mov esp, ebp */
   8904     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
   8905     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
   8906     RECOMP_REGS_OUT();
   8907 }
   8908 
   8909 void sub_38024DB9(void) {
   8910     int _fpu_cmp = 0;
   8911     uint32_t _cf = 0;
   8912     int _df = 1;
   8913     uint32_t _flag_k = FK_NONE;
   8914     uint32_t _flag_a = 0, _flag_b = 0;
   8915     uint32_t _itail_tgt = 0;
   8916     RECOMP_REGS_LOCALS
   8917     RECOMP_ENTER(0x38024DB9u);
   8918 
   8919     goto L_38024DB9;
   8920 L_38024CDD:
   8921     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
   8922     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
   8923     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
   8924     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8925     _cf = 0;
   8926     _flag_k = FK_NARROW(FK_TEST, 24);
   8927     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
   8928 L_38024CEB:
   8929     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
   8930     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
   8931     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
   8932     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8934     _flag_k = FK_CMP;
   8935     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
   8936 L_38024CF8:
   8937     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
   8938     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
   8939     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   8940     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8941     _flag_k = FK_NARROW(FK_CMP, 24);
   8942     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
   8943 L_38024D01:
   8944     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
   8945     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
   8946     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
   8947     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
   8948     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
   8949     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
   8950     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
   8951     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
   8952 L_38024D1C:
   8953     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
   8954     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8956     _flag_k = FK_CMP;
   8957     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
   8958 L_38024D21:
   8959     eax = ecx; /* 0x38024D21: mov eax, ecx */
   8960     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
   8961     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
   8962     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
   8963     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
   8964     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
   8965     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8966     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8967     _flag_k = FK_CMP;
   8968     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
   8969 L_38024D32:
   8970     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
   8971 L_38024D35:
   8972     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
   8973     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
   8974     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
   8975     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
   8976     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8977     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8978     _flag_k = FK_CMP;
   8979     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
   8980 L_38024D43:
   8981     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
   8982     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
   8983 L_38024D48:
   8984     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
   8985     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
   8986     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   8987     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8988     _flag_k = FK_CMP;
   8989     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
   8990 L_38024D4F:
   8991     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
   8992     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
   8993 L_38024D53:
   8994     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
   8995 L_38024D56:
   8996     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
   8997     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
   8998 L_38024D5B:
   8999     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
   9000     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
   9001     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
   9002     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
   9003     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
   9004     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
   9005     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
   9006     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
   9007     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
   9008     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
   9009     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
   9010     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
   9011     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9012     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9013     _flag_k = FK_CMP;
   9014     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
   9015 L_38024D80:
   9016     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
   9017 L_38024D83:
   9018     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
   9019     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
   9020     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
   9021     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
   9022     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9024     _flag_k = FK_CMP;
   9025     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
   9026 L_38024D91:
   9027     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
   9028     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
   9029     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
   9030 L_38024D9C:
   9031     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
   9032     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
   9033     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9034     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9035     _flag_k = FK_CMP;
   9036     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
   9037 L_38024DA4:
   9038     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
   9039     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
   9040     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
   9041 L_38024DAF:
   9042     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
   9043     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
   9044     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
   9045 L_38024DB9:
   9046     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
   9047     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   9048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9049     _flag_k = FK_NARROW(FK_CMP, 24);
   9050     RECOMP_BACKEDGE();
   9051     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
   9052 L_38024DC3:
   9053     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
   9054     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9056     _flag_k = FK_CMP;
   9057     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
   9058 L_38024DC7:
   9059     eax = ecx; /* 0x38024DC7: mov eax, ecx */
   9060     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
   9061     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
   9062     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
   9063     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
   9064     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
   9065     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9067     _flag_k = FK_CMP;
   9068     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
   9069 L_38024DD8:
   9070     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
   9071 L_38024DDB:
   9072     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
   9073     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
   9074     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
   9075     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
   9076     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9078     _flag_k = FK_CMP;
   9079     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
   9080 L_38024DE9:
   9081     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
   9082     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
   9083 L_38024DEE:
   9084     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
   9085     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
   9086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9088     _flag_k = FK_CMP;
   9089     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
   9090 L_38024DF6:
   9091     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
   9092     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
   9093 L_38024DFB:
   9094     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
   9095 L_38024DFD:
   9096     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
   9097     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
   9098 L_38024E03:
   9099     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
   9100     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
   9101     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
   9102     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
   9103     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
   9104     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
   9105     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
   9106     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
   9107     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
   9108     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
   9109     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
   9110     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
   9111     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9112     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9113     _flag_k = FK_CMP;
   9114     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
   9115 L_38024E28:
   9116     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
   9117 L_38024E2B:
   9118     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
   9119     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
   9120     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
   9121     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
   9122     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9124     _flag_k = FK_CMP;
   9125     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
   9126 L_38024E39:
   9127     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
   9128     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
   9129 L_38024E3E:
   9130     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
   9131     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
   9132     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9133     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9134     _flag_k = FK_CMP;
   9135     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
   9136 L_38024E45:
   9137     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
   9138     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
   9139 L_38024E49:
   9140     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
   9141 L_38024E4C:
   9142     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
   9143 L_38024E4E:
   9144     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
   9145 L_38024E51:
   9146     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
   9147     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
   9148     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9149     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9150     _flag_k = FK_CMP;
   9151     RECOMP_BACKEDGE();
   9152     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
   9153 L_38024E5D:
   9154     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
   9155     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
   9156     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
   9157     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
   9158     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
   9159     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
   9160     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
   9161     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
   9162     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
   9163     esp = ebp; /* 0x38024E71: mov esp, ebp */
   9164     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
   9165     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
   9166     RECOMP_REGS_OUT();
   9167 }
   9168 
   9169 void sub_38024DFD(void) {
   9170     int _fpu_cmp = 0;
   9171     uint32_t _cf = 0;
   9172     int _df = 1;
   9173     uint32_t _flag_k = FK_NONE;
   9174     uint32_t _flag_a = 0, _flag_b = 0;
   9175     uint32_t _itail_tgt = 0;
   9176     RECOMP_REGS_LOCALS
   9177     RECOMP_ENTER(0x38024DFDu);
   9178 
   9179     goto L_38024DFD;
   9180 L_38024CDD:
   9181     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
   9182     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
   9183     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
   9184     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9185     _cf = 0;
   9186     _flag_k = FK_NARROW(FK_TEST, 24);
   9187     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
   9188 L_38024CEB:
   9189     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
   9190     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
   9191     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
   9192     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   9193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9194     _flag_k = FK_CMP;
   9195     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
   9196 L_38024CF8:
   9197     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
   9198     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
   9199     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   9200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9201     _flag_k = FK_NARROW(FK_CMP, 24);
   9202     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
   9203 L_38024D01:
   9204     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
   9205     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
   9206     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
   9207     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
   9208     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
   9209     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
   9210     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
   9211     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
   9212 L_38024D1C:
   9213     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
   9214     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   9215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9216     _flag_k = FK_CMP;
   9217     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
   9218 L_38024D21:
   9219     eax = ecx; /* 0x38024D21: mov eax, ecx */
   9220     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
   9221     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
   9222     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
   9223     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
   9224     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
   9225     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9226     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9227     _flag_k = FK_CMP;
   9228     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
   9229 L_38024D32:
   9230     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
   9231 L_38024D35:
   9232     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
   9233     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
   9234     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
   9235     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
   9236     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9238     _flag_k = FK_CMP;
   9239     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
   9240 L_38024D43:
   9241     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
   9242     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
   9243 L_38024D48:
   9244     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
   9245     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
   9246     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   9247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9248     _flag_k = FK_CMP;
   9249     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
   9250 L_38024D4F:
   9251     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
   9252     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
   9253 L_38024D53:
   9254     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
   9255 L_38024D56:
   9256     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
   9257     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
   9258 L_38024D5B:
   9259     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
   9260     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
   9261     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
   9262     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
   9263     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
   9264     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
   9265     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
   9266     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
   9267     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
   9268     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
   9269     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
   9270     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
   9271     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9272     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9273     _flag_k = FK_CMP;
   9274     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
   9275 L_38024D80:
   9276     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
   9277 L_38024D83:
   9278     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
   9279     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
   9280     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
   9281     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
   9282     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9284     _flag_k = FK_CMP;
   9285     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
   9286 L_38024D91:
   9287     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
   9288     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
   9289     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
   9290 L_38024D9C:
   9291     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
   9292     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
   9293     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9294     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9295     _flag_k = FK_CMP;
   9296     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
   9297 L_38024DA4:
   9298     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
   9299     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
   9300     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
   9301 L_38024DAF:
   9302     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
   9303     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
   9304     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
   9305 L_38024DB9:
   9306     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
   9307     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   9308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9309     _flag_k = FK_NARROW(FK_CMP, 24);
   9310     RECOMP_BACKEDGE();
   9311     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
   9312 L_38024DC3:
   9313     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
   9314     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9316     _flag_k = FK_CMP;
   9317     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
   9318 L_38024DC7:
   9319     eax = ecx; /* 0x38024DC7: mov eax, ecx */
   9320     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
   9321     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
   9322     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
   9323     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
   9324     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
   9325     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9326     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9327     _flag_k = FK_CMP;
   9328     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
   9329 L_38024DD8:
   9330     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
   9331 L_38024DDB:
   9332     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
   9333     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
   9334     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
   9335     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
   9336     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9338     _flag_k = FK_CMP;
   9339     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
   9340 L_38024DE9:
   9341     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
   9342     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
   9343 L_38024DEE:
   9344     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
   9345     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
   9346     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9348     _flag_k = FK_CMP;
   9349     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
   9350 L_38024DF6:
   9351     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
   9352     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
   9353 L_38024DFB:
   9354     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
   9355 L_38024DFD:
   9356     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
   9357     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
   9358 L_38024E03:
   9359     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
   9360     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
   9361     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
   9362     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
   9363     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
   9364     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
   9365     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
   9366     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
   9367     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
   9368     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
   9369     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
   9370     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
   9371     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9373     _flag_k = FK_CMP;
   9374     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
   9375 L_38024E28:
   9376     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
   9377 L_38024E2B:
   9378     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
   9379     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
   9380     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
   9381     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
   9382     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9384     _flag_k = FK_CMP;
   9385     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
   9386 L_38024E39:
   9387     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
   9388     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
   9389 L_38024E3E:
   9390     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
   9391     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
   9392     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9394     _flag_k = FK_CMP;
   9395     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
   9396 L_38024E45:
   9397     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
   9398     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
   9399 L_38024E49:
   9400     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
   9401 L_38024E4C:
   9402     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
   9403 L_38024E4E:
   9404     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
   9405 L_38024E51:
   9406     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
   9407     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
   9408     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9410     _flag_k = FK_CMP;
   9411     RECOMP_BACKEDGE();
   9412     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
   9413 L_38024E5D:
   9414     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
   9415     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
   9416     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
   9417     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
   9418     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
   9419     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
   9420     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
   9421     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
   9422     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
   9423     esp = ebp; /* 0x38024E71: mov esp, ebp */
   9424     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
   9425     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
   9426     RECOMP_REGS_OUT();
   9427 }
   9428 
   9429 void sub_38024E03(void) {
   9430     int _fpu_cmp = 0;
   9431     uint32_t _cf = 0;
   9432     int _df = 1;
   9433     uint32_t _flag_k = FK_NONE;
   9434     uint32_t _flag_a = 0, _flag_b = 0;
   9435     uint32_t _itail_tgt = 0;
   9436     RECOMP_REGS_LOCALS
   9437     RECOMP_ENTER(0x38024E03u);
   9438 
   9439     goto L_38024E03;
   9440 L_38024CDD:
   9441     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
   9442     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
   9443     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
   9444     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9445     _cf = 0;
   9446     _flag_k = FK_NARROW(FK_TEST, 24);
   9447     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
   9448 L_38024CEB:
   9449     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
   9450     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
   9451     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
   9452     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   9453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9454     _flag_k = FK_CMP;
   9455     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
   9456 L_38024CF8:
   9457     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
   9458     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
   9459     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   9460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9461     _flag_k = FK_NARROW(FK_CMP, 24);
   9462     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
   9463 L_38024D01:
   9464     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
   9465     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
   9466     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
   9467     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
   9468     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
   9469     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
   9470     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
   9471     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
   9472 L_38024D1C:
   9473     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
   9474     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   9475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9476     _flag_k = FK_CMP;
   9477     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
   9478 L_38024D21:
   9479     eax = ecx; /* 0x38024D21: mov eax, ecx */
   9480     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
   9481     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
   9482     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
   9483     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
   9484     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
   9485     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9486     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9487     _flag_k = FK_CMP;
   9488     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
   9489 L_38024D32:
   9490     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
   9491 L_38024D35:
   9492     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
   9493     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
   9494     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
   9495     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
   9496     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9498     _flag_k = FK_CMP;
   9499     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
   9500 L_38024D43:
   9501     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
   9502     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
   9503 L_38024D48:
   9504     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
   9505     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
   9506     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   9507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9508     _flag_k = FK_CMP;
   9509     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
   9510 L_38024D4F:
   9511     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
   9512     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
   9513 L_38024D53:
   9514     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
   9515 L_38024D56:
   9516     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
   9517     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
   9518 L_38024D5B:
   9519     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
   9520     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
   9521     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
   9522     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
   9523     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
   9524     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
   9525     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
   9526     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
   9527     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
   9528     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
   9529     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
   9530     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
   9531     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9532     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9533     _flag_k = FK_CMP;
   9534     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
   9535 L_38024D80:
   9536     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
   9537 L_38024D83:
   9538     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
   9539     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
   9540     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
   9541     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
   9542     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9543     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9544     _flag_k = FK_CMP;
   9545     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
   9546 L_38024D91:
   9547     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
   9548     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
   9549     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
   9550 L_38024D9C:
   9551     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
   9552     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
   9553     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9554     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9555     _flag_k = FK_CMP;
   9556     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
   9557 L_38024DA4:
   9558     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
   9559     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
   9560     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
   9561 L_38024DAF:
   9562     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
   9563     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
   9564     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
   9565 L_38024DB9:
   9566     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
   9567     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   9568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9569     _flag_k = FK_NARROW(FK_CMP, 24);
   9570     RECOMP_BACKEDGE();
   9571     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
   9572 L_38024DC3:
   9573     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
   9574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9575     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9576     _flag_k = FK_CMP;
   9577     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
   9578 L_38024DC7:
   9579     eax = ecx; /* 0x38024DC7: mov eax, ecx */
   9580     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
   9581     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
   9582     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
   9583     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
   9584     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
   9585     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9586     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9587     _flag_k = FK_CMP;
   9588     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
   9589 L_38024DD8:
   9590     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
   9591 L_38024DDB:
   9592     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
   9593     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
   9594     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
   9595     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
   9596     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9598     _flag_k = FK_CMP;
   9599     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
   9600 L_38024DE9:
   9601     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
   9602     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
   9603 L_38024DEE:
   9604     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
   9605     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
   9606     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9608     _flag_k = FK_CMP;
   9609     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
   9610 L_38024DF6:
   9611     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
   9612     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
   9613 L_38024DFB:
   9614     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
   9615 L_38024DFD:
   9616     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
   9617     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
   9618 L_38024E03:
   9619     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
   9620     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
   9621     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
   9622     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
   9623     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
   9624     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
   9625     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
   9626     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
   9627     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
   9628     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
   9629     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
   9630     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
   9631     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9633     _flag_k = FK_CMP;
   9634     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
   9635 L_38024E28:
   9636     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
   9637 L_38024E2B:
   9638     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
   9639     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
   9640     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
   9641     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
   9642     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9644     _flag_k = FK_CMP;
   9645     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
   9646 L_38024E39:
   9647     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
   9648     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
   9649 L_38024E3E:
   9650     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
   9651     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
   9652     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9653     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9654     _flag_k = FK_CMP;
   9655     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
   9656 L_38024E45:
   9657     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
   9658     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
   9659 L_38024E49:
   9660     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
   9661 L_38024E4C:
   9662     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
   9663 L_38024E4E:
   9664     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
   9665 L_38024E51:
   9666     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
   9667     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
   9668     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9670     _flag_k = FK_CMP;
   9671     RECOMP_BACKEDGE();
   9672     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
   9673 L_38024E5D:
   9674     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
   9675     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
   9676     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
   9677     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
   9678     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
   9679     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
   9680     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
   9681     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
   9682     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
   9683     esp = ebp; /* 0x38024E71: mov esp, ebp */
   9684     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
   9685     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
   9686     RECOMP_REGS_OUT();
   9687 }
   9688 
   9689 void sub_38024E4C(void) {
   9690     int _fpu_cmp = 0;
   9691     uint32_t _cf = 0;
   9692     int _df = 1;
   9693     uint32_t _flag_k = FK_NONE;
   9694     uint32_t _flag_a = 0, _flag_b = 0;
   9695     uint32_t _itail_tgt = 0;
   9696     RECOMP_REGS_LOCALS
   9697     RECOMP_ENTER(0x38024E4Cu);
   9698 
   9699     goto L_38024E4C;
   9700 L_38024CDD:
   9701     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
   9702     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
   9703     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
   9704     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9705     _cf = 0;
   9706     _flag_k = FK_NARROW(FK_TEST, 24);
   9707     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
   9708 L_38024CEB:
   9709     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
   9710     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
   9711     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
   9712     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   9713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9714     _flag_k = FK_CMP;
   9715     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
   9716 L_38024CF8:
   9717     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
   9718     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
   9719     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   9720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9721     _flag_k = FK_NARROW(FK_CMP, 24);
   9722     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
   9723 L_38024D01:
   9724     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
   9725     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
   9726     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
   9727     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
   9728     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
   9729     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
   9730     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
   9731     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
   9732 L_38024D1C:
   9733     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
   9734     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   9735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9736     _flag_k = FK_CMP;
   9737     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
   9738 L_38024D21:
   9739     eax = ecx; /* 0x38024D21: mov eax, ecx */
   9740     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
   9741     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
   9742     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
   9743     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
   9744     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
   9745     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9746     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9747     _flag_k = FK_CMP;
   9748     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
   9749 L_38024D32:
   9750     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
   9751 L_38024D35:
   9752     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
   9753     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
   9754     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
   9755     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
   9756     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9758     _flag_k = FK_CMP;
   9759     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
   9760 L_38024D43:
   9761     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
   9762     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
   9763 L_38024D48:
   9764     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
   9765     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
   9766     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   9767     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9768     _flag_k = FK_CMP;
   9769     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
   9770 L_38024D4F:
   9771     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
   9772     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
   9773 L_38024D53:
   9774     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
   9775 L_38024D56:
   9776     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
   9777     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
   9778 L_38024D5B:
   9779     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
   9780     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
   9781     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
   9782     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
   9783     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
   9784     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
   9785     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
   9786     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
   9787     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
   9788     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
   9789     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
   9790     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
   9791     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9792     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9793     _flag_k = FK_CMP;
   9794     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
   9795 L_38024D80:
   9796     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
   9797 L_38024D83:
   9798     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
   9799     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
   9800     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
   9801     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
   9802     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9804     _flag_k = FK_CMP;
   9805     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
   9806 L_38024D91:
   9807     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
   9808     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
   9809     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
   9810 L_38024D9C:
   9811     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
   9812     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
   9813     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9815     _flag_k = FK_CMP;
   9816     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
   9817 L_38024DA4:
   9818     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
   9819     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
   9820     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
   9821 L_38024DAF:
   9822     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
   9823     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
   9824     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
   9825 L_38024DB9:
   9826     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
   9827     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   9828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9829     _flag_k = FK_NARROW(FK_CMP, 24);
   9830     RECOMP_BACKEDGE();
   9831     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
   9832 L_38024DC3:
   9833     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
   9834     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9835     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9836     _flag_k = FK_CMP;
   9837     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
   9838 L_38024DC7:
   9839     eax = ecx; /* 0x38024DC7: mov eax, ecx */
   9840     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
   9841     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
   9842     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
   9843     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
   9844     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
   9845     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9847     _flag_k = FK_CMP;
   9848     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
   9849 L_38024DD8:
   9850     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
   9851 L_38024DDB:
   9852     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
   9853     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
   9854     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
   9855     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
   9856     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9858     _flag_k = FK_CMP;
   9859     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
   9860 L_38024DE9:
   9861     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
   9862     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
   9863 L_38024DEE:
   9864     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
   9865     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
   9866     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9867     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9868     _flag_k = FK_CMP;
   9869     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
   9870 L_38024DF6:
   9871     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
   9872     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
   9873 L_38024DFB:
   9874     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
   9875 L_38024DFD:
   9876     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
   9877     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
   9878 L_38024E03:
   9879     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
   9880     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
   9881     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
   9882     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
   9883     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
   9884     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
   9885     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
   9886     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
   9887     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
   9888     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
   9889     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
   9890     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
   9891     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9892     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9893     _flag_k = FK_CMP;
   9894     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
   9895 L_38024E28:
   9896     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
   9897 L_38024E2B:
   9898     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
   9899     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
   9900     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
   9901     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
   9902     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9904     _flag_k = FK_CMP;
   9905     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
   9906 L_38024E39:
   9907     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
   9908     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
   9909 L_38024E3E:
   9910     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
   9911     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
   9912     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9913     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9914     _flag_k = FK_CMP;
   9915     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
   9916 L_38024E45:
   9917     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
   9918     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
   9919 L_38024E49:
   9920     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
   9921 L_38024E4C:
   9922     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
   9923 L_38024E4E:
   9924     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
   9925 L_38024E51:
   9926     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
   9927     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
   9928     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9929     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9930     _flag_k = FK_CMP;
   9931     RECOMP_BACKEDGE();
   9932     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
   9933 L_38024E5D:
   9934     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
   9935     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
   9936     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
   9937     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
   9938     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
   9939     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
   9940     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
   9941     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
   9942     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
   9943     esp = ebp; /* 0x38024E71: mov esp, ebp */
   9944     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
   9945     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
   9946     RECOMP_REGS_OUT();
   9947 }
   9948 
   9949 void sub_38024E4E(void) {
   9950     int _fpu_cmp = 0;
   9951     uint32_t _cf = 0;
   9952     int _df = 1;
   9953     uint32_t _flag_k = FK_NONE;
   9954     uint32_t _flag_a = 0, _flag_b = 0;
   9955     uint32_t _itail_tgt = 0;
   9956     RECOMP_REGS_LOCALS
   9957     RECOMP_ENTER(0x38024E4Eu);
   9958 
   9959     goto L_38024E4E;
   9960 L_38024CDD:
   9961     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
   9962     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
   9963     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
   9964     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9965     _cf = 0;
   9966     _flag_k = FK_NARROW(FK_TEST, 24);
   9967     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
   9968 L_38024CEB:
   9969     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
   9970     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
   9971     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
   9972     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   9973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9974     _flag_k = FK_CMP;
   9975     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
   9976 L_38024CF8:
   9977     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
   9978     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
   9979     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
   9980     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9981     _flag_k = FK_NARROW(FK_CMP, 24);
   9982     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
   9983 L_38024D01:
   9984     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
   9985     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
   9986     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
   9987     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
   9988     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
   9989     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
   9990     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
   9991     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
   9992 L_38024D1C:
   9993     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
   9994     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   9995     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9996     _flag_k = FK_CMP;
   9997     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
   9998 L_38024D21:
   9999     eax = ecx; /* 0x38024D21: mov eax, ecx */
  10000     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
  10001     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
  10002     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
  10003     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
  10004     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
  10005     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10007     _flag_k = FK_CMP;
  10008     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
  10009 L_38024D32:
  10010     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
  10011 L_38024D35:
  10012     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
  10013     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
  10014     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
  10015     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
  10016     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10017     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10018     _flag_k = FK_CMP;
  10019     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
  10020 L_38024D43:
  10021     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
  10022     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
  10023 L_38024D48:
  10024     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
  10025     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
  10026     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  10027     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10028     _flag_k = FK_CMP;
  10029     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
  10030 L_38024D4F:
  10031     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
  10032     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
  10033 L_38024D53:
  10034     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
  10035 L_38024D56:
  10036     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
  10037     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
  10038 L_38024D5B:
  10039     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
  10040     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
  10041     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
  10042     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
  10043     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
  10044     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
  10045     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
  10046     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
  10047     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
  10048     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
  10049     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
  10050     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
  10051     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10052     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10053     _flag_k = FK_CMP;
  10054     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
  10055 L_38024D80:
  10056     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
  10057 L_38024D83:
  10058     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
  10059     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
  10060     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
  10061     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
  10062     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10063     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10064     _flag_k = FK_CMP;
  10065     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
  10066 L_38024D91:
  10067     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
  10068     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
  10069     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
  10070 L_38024D9C:
  10071     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
  10072     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
  10073     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10075     _flag_k = FK_CMP;
  10076     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
  10077 L_38024DA4:
  10078     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
  10079     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
  10080     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
  10081 L_38024DAF:
  10082     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
  10083     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
  10084     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
  10085 L_38024DB9:
  10086     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
  10087     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
  10088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10089     _flag_k = FK_NARROW(FK_CMP, 24);
  10090     RECOMP_BACKEDGE();
  10091     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
  10092 L_38024DC3:
  10093     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
  10094     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  10095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10096     _flag_k = FK_CMP;
  10097     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
  10098 L_38024DC7:
  10099     eax = ecx; /* 0x38024DC7: mov eax, ecx */
  10100     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
  10101     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
  10102     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
  10103     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
  10104     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
  10105     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10107     _flag_k = FK_CMP;
  10108     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
  10109 L_38024DD8:
  10110     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
  10111 L_38024DDB:
  10112     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
  10113     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
  10114     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
  10115     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
  10116     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10118     _flag_k = FK_CMP;
  10119     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
  10120 L_38024DE9:
  10121     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
  10122     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
  10123 L_38024DEE:
  10124     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
  10125     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
  10126     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  10127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10128     _flag_k = FK_CMP;
  10129     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
  10130 L_38024DF6:
  10131     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
  10132     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
  10133 L_38024DFB:
  10134     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
  10135 L_38024DFD:
  10136     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
  10137     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
  10138 L_38024E03:
  10139     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
  10140     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
  10141     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
  10142     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
  10143     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
  10144     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
  10145     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
  10146     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
  10147     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
  10148     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
  10149     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
  10150     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
  10151     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10153     _flag_k = FK_CMP;
  10154     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
  10155 L_38024E28:
  10156     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
  10157 L_38024E2B:
  10158     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
  10159     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
  10160     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
  10161     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
  10162     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10164     _flag_k = FK_CMP;
  10165     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
  10166 L_38024E39:
  10167     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
  10168     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
  10169 L_38024E3E:
  10170     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
  10171     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
  10172     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  10173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10174     _flag_k = FK_CMP;
  10175     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
  10176 L_38024E45:
  10177     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
  10178     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
  10179 L_38024E49:
  10180     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
  10181 L_38024E4C:
  10182     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
  10183 L_38024E4E:
  10184     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
  10185 L_38024E51:
  10186     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
  10187     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
  10188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10190     _flag_k = FK_CMP;
  10191     RECOMP_BACKEDGE();
  10192     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
  10193 L_38024E5D:
  10194     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
  10195     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
  10196     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
  10197     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
  10198     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
  10199     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
  10200     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
  10201     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
  10202     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
  10203     esp = ebp; /* 0x38024E71: mov esp, ebp */
  10204     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
  10205     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
  10206     RECOMP_REGS_OUT();
  10207 }
  10208 
  10209 void sub_38024E51(void) {
  10210     int _fpu_cmp = 0;
  10211     uint32_t _cf = 0;
  10212     int _df = 1;
  10213     uint32_t _flag_k = FK_NONE;
  10214     uint32_t _flag_a = 0, _flag_b = 0;
  10215     uint32_t _itail_tgt = 0;
  10216     RECOMP_REGS_LOCALS
  10217     RECOMP_ENTER(0x38024E51u);
  10218 
  10219     goto L_38024E51;
  10220 L_38024CDD:
  10221     ecx = MEM32(eax + 0x4); /* 0x38024CDD: mov ecx, dword ptr [eax + 4] */
  10222     SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x38024CE0: mov dl, byte ptr [ecx + 0x20] */
  10223     /* test LO8(edx), LO8(edx) */ /* 0x38024CE3: test dl, dl */
  10224     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10225     _cf = 0;
  10226     _flag_k = FK_NARROW(FK_TEST, 24);
  10227     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024E5D; /* 0x38024CE5: jne 0x38024e5d */
  10228 L_38024CEB:
  10229     edi = MEM32(ecx + 0x4); /* 0x38024CEB: mov edi, dword ptr [ecx + 4] */
  10230     edx = MEM32(edi); /* 0x38024CEE: mov edx, dword ptr [edi] */
  10231     /* cmp ecx, edx */ /* 0x38024CF0: cmp ecx, edx */
  10232     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  10233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10234     _flag_k = FK_CMP;
  10235     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DB9; /* 0x38024CF2: jne 0x38024db9 */
  10236 L_38024CF8:
  10237     edx = MEM32(edi + 0x8); /* 0x38024CF8: mov edx, dword ptr [edi + 8] */
  10238     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024CFB: cmp byte ptr [edx + 0x20], 0 */
  10239     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
  10240     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10241     _flag_k = FK_NARROW(FK_CMP, 24);
  10242     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D1C; /* 0x38024CFF: jne 0x38024d1c */
  10243 L_38024D01:
  10244     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D01: mov byte ptr [ecx + 0x20], bl */
  10245     MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D04: mov byte ptr [edx + 0x20], bl */
  10246     ecx = MEM32(eax + 0x4); /* 0x38024D07: mov ecx, dword ptr [eax + 4] */
  10247     edx = MEM32(ecx + 0x4); /* 0x38024D0A: mov edx, dword ptr [ecx + 4] */
  10248     MEM8(edx + 0x20) = (uint8_t)(0); /* 0x38024D0D: mov byte ptr [edx + 0x20], 0 */
  10249     eax = MEM32(eax + 0x4); /* 0x38024D11: mov eax, dword ptr [eax + 4] */
  10250     eax = MEM32(eax + 0x4); /* 0x38024D14: mov eax, dword ptr [eax + 4] */
  10251     goto L_38024E51; /* 0x38024D17: jmp 0x38024e51 */
  10252 L_38024D1C:
  10253     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x38024D1C: cmp eax, dword ptr [ecx + 8] */
  10254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  10255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10256     _flag_k = FK_CMP;
  10257     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D5B; /* 0x38024D1F: jne 0x38024d5b */
  10258 L_38024D21:
  10259     eax = ecx; /* 0x38024D21: mov eax, ecx */
  10260     ecx = MEM32(eax + 0x8); /* 0x38024D23: mov ecx, dword ptr [eax + 8] */
  10261     edx = MEM32(ecx); /* 0x38024D26: mov edx, dword ptr [ecx] */
  10262     MEM32(eax + 0x8) = edx; /* 0x38024D28: mov dword ptr [eax + 8], edx */
  10263     edx = MEM32(ecx); /* 0x38024D2B: mov edx, dword ptr [ecx] */
  10264     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024D2D: cmp edx, dword ptr [esi + 8] */
  10265     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10267     _flag_k = FK_CMP;
  10268     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D35; /* 0x38024D30: je 0x38024d35 */
  10269 L_38024D32:
  10270     MEM32(edx + 0x4) = eax; /* 0x38024D32: mov dword ptr [edx + 4], eax */
  10271 L_38024D35:
  10272     edx = MEM32(eax + 0x4); /* 0x38024D35: mov edx, dword ptr [eax + 4] */
  10273     MEM32(ecx + 0x4) = edx; /* 0x38024D38: mov dword ptr [ecx + 4], edx */
  10274     edx = MEM32(esi + 0x4); /* 0x38024D3B: mov edx, dword ptr [esi + 4] */
  10275     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024D3E: cmp eax, dword ptr [edx + 4] */
  10276     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10278     _flag_k = FK_CMP;
  10279     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D48; /* 0x38024D41: jne 0x38024d48 */
  10280 L_38024D43:
  10281     MEM32(edx + 0x4) = ecx; /* 0x38024D43: mov dword ptr [edx + 4], ecx */
  10282     goto L_38024D56; /* 0x38024D46: jmp 0x38024d56 */
  10283 L_38024D48:
  10284     edx = MEM32(eax + 0x4); /* 0x38024D48: mov edx, dword ptr [eax + 4] */
  10285     /* cmp eax, MEM32(edx) */ /* 0x38024D4B: cmp eax, dword ptr [edx] */
  10286     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  10287     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10288     _flag_k = FK_CMP;
  10289     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D53; /* 0x38024D4D: jne 0x38024d53 */
  10290 L_38024D4F:
  10291     MEM32(edx) = ecx; /* 0x38024D4F: mov dword ptr [edx], ecx */
  10292     goto L_38024D56; /* 0x38024D51: jmp 0x38024d56 */
  10293 L_38024D53:
  10294     MEM32(edx + 0x8) = ecx; /* 0x38024D53: mov dword ptr [edx + 8], ecx */
  10295 L_38024D56:
  10296     MEM32(ecx) = eax; /* 0x38024D56: mov dword ptr [ecx], eax */
  10297     MEM32(eax + 0x4) = ecx; /* 0x38024D58: mov dword ptr [eax + 4], ecx */
  10298 L_38024D5B:
  10299     ecx = MEM32(eax + 0x4); /* 0x38024D5B: mov ecx, dword ptr [eax + 4] */
  10300     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024D5E: mov byte ptr [ecx + 0x20], bl */
  10301     edx = MEM32(eax + 0x4); /* 0x38024D61: mov edx, dword ptr [eax + 4] */
  10302     ecx = MEM32(edx + 0x4); /* 0x38024D64: mov ecx, dword ptr [edx + 4] */
  10303     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024D67: mov byte ptr [ecx + 0x20], 0 */
  10304     edx = MEM32(eax + 0x4); /* 0x38024D6B: mov edx, dword ptr [eax + 4] */
  10305     ecx = MEM32(edx + 0x4); /* 0x38024D6E: mov ecx, dword ptr [edx + 4] */
  10306     edx = MEM32(ecx); /* 0x38024D71: mov edx, dword ptr [ecx] */
  10307     edi = MEM32(edx + 0x8); /* 0x38024D73: mov edi, dword ptr [edx + 8] */
  10308     MEM32(ecx) = edi; /* 0x38024D76: mov dword ptr [ecx], edi */
  10309     edi = MEM32(edx + 0x8); /* 0x38024D78: mov edi, dword ptr [edx + 8] */
  10310     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024D7B: cmp edi, dword ptr [esi + 8] */
  10311     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10312     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10313     _flag_k = FK_CMP;
  10314     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D83; /* 0x38024D7E: je 0x38024d83 */
  10315 L_38024D80:
  10316     MEM32(edi + 0x4) = ecx; /* 0x38024D80: mov dword ptr [edi + 4], ecx */
  10317 L_38024D83:
  10318     edi = MEM32(ecx + 0x4); /* 0x38024D83: mov edi, dword ptr [ecx + 4] */
  10319     MEM32(edx + 0x4) = edi; /* 0x38024D86: mov dword ptr [edx + 4], edi */
  10320     edi = MEM32(esi + 0x4); /* 0x38024D89: mov edi, dword ptr [esi + 4] */
  10321     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024D8C: cmp ecx, dword ptr [edi + 4] */
  10322     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10323     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10324     _flag_k = FK_CMP;
  10325     if (CMP_NE(_flag_a, _flag_b)) goto L_38024D9C; /* 0x38024D8F: jne 0x38024d9c */
  10326 L_38024D91:
  10327     MEM32(edi + 0x4) = edx; /* 0x38024D91: mov dword ptr [edi + 4], edx */
  10328     MEM32(edx + 0x8) = ecx; /* 0x38024D94: mov dword ptr [edx + 8], ecx */
  10329     goto L_38024E4E; /* 0x38024D97: jmp 0x38024e4e */
  10330 L_38024D9C:
  10331     edi = MEM32(ecx + 0x4); /* 0x38024D9C: mov edi, dword ptr [ecx + 4] */
  10332     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x38024D9F: cmp ecx, dword ptr [edi + 8] */
  10333     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10335     _flag_k = FK_CMP;
  10336     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DAF; /* 0x38024DA2: jne 0x38024daf */
  10337 L_38024DA4:
  10338     MEM32(edi + 0x8) = edx; /* 0x38024DA4: mov dword ptr [edi + 8], edx */
  10339     MEM32(edx + 0x8) = ecx; /* 0x38024DA7: mov dword ptr [edx + 8], ecx */
  10340     goto L_38024E4E; /* 0x38024DAA: jmp 0x38024e4e */
  10341 L_38024DAF:
  10342     MEM32(edi) = edx; /* 0x38024DAF: mov dword ptr [edi], edx */
  10343     MEM32(edx + 0x8) = ecx; /* 0x38024DB1: mov dword ptr [edx + 8], ecx */
  10344     goto L_38024E4E; /* 0x38024DB4: jmp 0x38024e4e */
  10345 L_38024DB9:
  10346     /* cmp MEM8(edx + 0x20), 0 */ /* 0x38024DB9: cmp byte ptr [edx + 0x20], 0 */
  10347     _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24;
  10348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10349     _flag_k = FK_NARROW(FK_CMP, 24);
  10350     RECOMP_BACKEDGE();
  10351     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024D01; /* 0x38024DBD: je 0x38024d01 */
  10352 L_38024DC3:
  10353     /* cmp eax, MEM32(ecx) */ /* 0x38024DC3: cmp eax, dword ptr [ecx] */
  10354     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  10355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10356     _flag_k = FK_CMP;
  10357     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E03; /* 0x38024DC5: jne 0x38024e03 */
  10358 L_38024DC7:
  10359     eax = ecx; /* 0x38024DC7: mov eax, ecx */
  10360     ecx = MEM32(eax); /* 0x38024DC9: mov ecx, dword ptr [eax] */
  10361     edx = MEM32(ecx + 0x8); /* 0x38024DCB: mov edx, dword ptr [ecx + 8] */
  10362     MEM32(eax) = edx; /* 0x38024DCE: mov dword ptr [eax], edx */
  10363     edx = MEM32(ecx + 0x8); /* 0x38024DD0: mov edx, dword ptr [ecx + 8] */
  10364     /* cmp edx, MEM32(esi + 0x8) */ /* 0x38024DD3: cmp edx, dword ptr [esi + 8] */
  10365     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10367     _flag_k = FK_CMP;
  10368     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024DDB; /* 0x38024DD6: je 0x38024ddb */
  10369 L_38024DD8:
  10370     MEM32(edx + 0x4) = eax; /* 0x38024DD8: mov dword ptr [edx + 4], eax */
  10371 L_38024DDB:
  10372     edx = MEM32(eax + 0x4); /* 0x38024DDB: mov edx, dword ptr [eax + 4] */
  10373     MEM32(ecx + 0x4) = edx; /* 0x38024DDE: mov dword ptr [ecx + 4], edx */
  10374     edx = MEM32(esi + 0x4); /* 0x38024DE1: mov edx, dword ptr [esi + 4] */
  10375     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38024DE4: cmp eax, dword ptr [edx + 4] */
  10376     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10377     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10378     _flag_k = FK_CMP;
  10379     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DEE; /* 0x38024DE7: jne 0x38024dee */
  10380 L_38024DE9:
  10381     MEM32(edx + 0x4) = ecx; /* 0x38024DE9: mov dword ptr [edx + 4], ecx */
  10382     goto L_38024DFD; /* 0x38024DEC: jmp 0x38024dfd */
  10383 L_38024DEE:
  10384     edx = MEM32(eax + 0x4); /* 0x38024DEE: mov edx, dword ptr [eax + 4] */
  10385     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38024DF1: cmp eax, dword ptr [edx + 8] */
  10386     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  10387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10388     _flag_k = FK_CMP;
  10389     if (CMP_NE(_flag_a, _flag_b)) goto L_38024DFB; /* 0x38024DF4: jne 0x38024dfb */
  10390 L_38024DF6:
  10391     MEM32(edx + 0x8) = ecx; /* 0x38024DF6: mov dword ptr [edx + 8], ecx */
  10392     goto L_38024DFD; /* 0x38024DF9: jmp 0x38024dfd */
  10393 L_38024DFB:
  10394     MEM32(edx) = ecx; /* 0x38024DFB: mov dword ptr [edx], ecx */
  10395 L_38024DFD:
  10396     MEM32(ecx + 0x8) = eax; /* 0x38024DFD: mov dword ptr [ecx + 8], eax */
  10397     MEM32(eax + 0x4) = ecx; /* 0x38024E00: mov dword ptr [eax + 4], ecx */
  10398 L_38024E03:
  10399     ecx = MEM32(eax + 0x4); /* 0x38024E03: mov ecx, dword ptr [eax + 4] */
  10400     MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E06: mov byte ptr [ecx + 0x20], bl */
  10401     edx = MEM32(eax + 0x4); /* 0x38024E09: mov edx, dword ptr [eax + 4] */
  10402     ecx = MEM32(edx + 0x4); /* 0x38024E0C: mov ecx, dword ptr [edx + 4] */
  10403     MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x38024E0F: mov byte ptr [ecx + 0x20], 0 */
  10404     edx = MEM32(eax + 0x4); /* 0x38024E13: mov edx, dword ptr [eax + 4] */
  10405     ecx = MEM32(edx + 0x4); /* 0x38024E16: mov ecx, dword ptr [edx + 4] */
  10406     edx = MEM32(ecx + 0x8); /* 0x38024E19: mov edx, dword ptr [ecx + 8] */
  10407     edi = MEM32(edx); /* 0x38024E1C: mov edi, dword ptr [edx] */
  10408     MEM32(ecx + 0x8) = edi; /* 0x38024E1E: mov dword ptr [ecx + 8], edi */
  10409     edi = MEM32(edx); /* 0x38024E21: mov edi, dword ptr [edx] */
  10410     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38024E23: cmp edi, dword ptr [esi + 8] */
  10411     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10412     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10413     _flag_k = FK_CMP;
  10414     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024E2B; /* 0x38024E26: je 0x38024e2b */
  10415 L_38024E28:
  10416     MEM32(edi + 0x4) = ecx; /* 0x38024E28: mov dword ptr [edi + 4], ecx */
  10417 L_38024E2B:
  10418     edi = MEM32(ecx + 0x4); /* 0x38024E2B: mov edi, dword ptr [ecx + 4] */
  10419     MEM32(edx + 0x4) = edi; /* 0x38024E2E: mov dword ptr [edx + 4], edi */
  10420     edi = MEM32(esi + 0x4); /* 0x38024E31: mov edi, dword ptr [esi + 4] */
  10421     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38024E34: cmp ecx, dword ptr [edi + 4] */
  10422     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10424     _flag_k = FK_CMP;
  10425     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E3E; /* 0x38024E37: jne 0x38024e3e */
  10426 L_38024E39:
  10427     MEM32(edi + 0x4) = edx; /* 0x38024E39: mov dword ptr [edi + 4], edx */
  10428     goto L_38024E4C; /* 0x38024E3C: jmp 0x38024e4c */
  10429 L_38024E3E:
  10430     edi = MEM32(ecx + 0x4); /* 0x38024E3E: mov edi, dword ptr [ecx + 4] */
  10431     /* cmp ecx, MEM32(edi) */ /* 0x38024E41: cmp ecx, dword ptr [edi] */
  10432     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  10433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10434     _flag_k = FK_CMP;
  10435     if (CMP_NE(_flag_a, _flag_b)) goto L_38024E49; /* 0x38024E43: jne 0x38024e49 */
  10436 L_38024E45:
  10437     MEM32(edi) = edx; /* 0x38024E45: mov dword ptr [edi], edx */
  10438     goto L_38024E4C; /* 0x38024E47: jmp 0x38024e4c */
  10439 L_38024E49:
  10440     MEM32(edi + 0x8) = edx; /* 0x38024E49: mov dword ptr [edi + 8], edx */
  10441 L_38024E4C:
  10442     MEM32(edx) = ecx; /* 0x38024E4C: mov dword ptr [edx], ecx */
  10443 L_38024E4E:
  10444     MEM32(ecx + 0x4) = edx; /* 0x38024E4E: mov dword ptr [ecx + 4], edx */
  10445 L_38024E51:
  10446     ecx = MEM32(esi + 0x4); /* 0x38024E51: mov ecx, dword ptr [esi + 4] */
  10447     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38024E54: cmp eax, dword ptr [ecx + 4] */
  10448     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10450     _flag_k = FK_CMP;
  10451     RECOMP_BACKEDGE();
  10452     if (CMP_NE(_flag_a, _flag_b)) goto L_38024CDD; /* 0x38024E57: jne 0x38024cdd */
  10453 L_38024E5D:
  10454     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
  10455     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
  10456     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
  10457     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
  10458     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
  10459     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
  10460     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
  10461     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
  10462     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
  10463     esp = ebp; /* 0x38024E71: mov esp, ebp */
  10464     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
  10465     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
  10466     RECOMP_REGS_OUT();
  10467 }
  10468 
  10469 void sub_38024E5D(void) {
  10470     int _fpu_cmp = 0;
  10471     uint32_t _cf = 0;
  10472     int _df = 1;
  10473     uint32_t _flag_k = FK_NONE;
  10474     uint32_t _flag_a = 0, _flag_b = 0;
  10475     uint32_t _itail_tgt = 0;
  10476     RECOMP_REGS_LOCALS
  10477     RECOMP_ENTER(0x38024E5Du);
  10478 
  10479 L_38024E5D:
  10480     edx = MEM32(esi + 0x4); /* 0x38024E5D: mov edx, dword ptr [esi + 4] */
  10481     eax = MEM32(edx + 0x4); /* 0x38024E60: mov eax, dword ptr [edx + 4] */
  10482     ecx = MEM32(ebp + (-0x4)); /* 0x38024E63: mov ecx, dword ptr [ebp - 4] */
  10483     MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x38024E66: mov byte ptr [eax + 0x20], bl */
  10484     eax = MEM32(ebp + 0x8); /* 0x38024E69: mov eax, dword ptr [ebp + 8] */
  10485     edi = POP32_VAL(esp); /* 0x38024E6C: pop edi */
  10486     esi = POP32_VAL(esp); /* 0x38024E6D: pop esi */
  10487     MEM32(eax) = ecx; /* 0x38024E6E: mov dword ptr [eax], ecx */
  10488     ebx = POP32_VAL(esp); /* 0x38024E70: pop ebx */
  10489     esp = ebp; /* 0x38024E71: mov esp, ebp */
  10490     ebp = POP32_VAL(esp); /* 0x38024E73: pop ebp */
  10491     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38024E74: ret 0x10 */
  10492     RECOMP_REGS_OUT();
  10493 }
  10494 
  10495 void sub_38024E80(void) {
  10496     int _fpu_cmp = 0;
  10497     uint32_t _cf = 0;
  10498     int _df = 1;
  10499     uint32_t _flag_k = FK_NONE;
  10500     uint32_t _flag_a = 0, _flag_b = 0;
  10501     uint32_t _itail_tgt = 0;
  10502     RECOMP_REGS_LOCALS
  10503     RECOMP_ENTER(0x38024E80u);
  10504 
  10505 L_38024E80:
  10506     PUSH32(esp, ebp); /* 0x38024E80: push ebp */
  10507     ebp = esp; /* 0x38024E81: mov ebp, esp */
  10508     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  10509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10510     esp = esp - 0xCu; /* 0x38024E83: sub esp, 0xc */
  10511     _flag_k = FK_CMP;
  10512     PUSH32(esp, ebx); /* 0x38024E86: push ebx */
  10513     PUSH32(esp, esi); /* 0x38024E87: push esi */
  10514     PUSH32(esp, edi); /* 0x38024E88: push edi */
  10515     edi = ecx; /* 0x38024E89: mov edi, ecx */
  10516     ecx = MEM32(edi + 0x4); /* 0x38024E8B: mov ecx, dword ptr [edi + 4] */
  10517     ebx = MEM32(ecx + 0x4); /* 0x38024E8E: mov ebx, dword ptr [ecx + 4] */
  10518     edx = MEM32(edi + 0x8); /* 0x38024E91: mov edx, dword ptr [edi + 8] */
  10519     /* cmp ebx, edx */ /* 0x38024E94: cmp ebx, edx */
  10520     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
  10521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10522     _flag_k = FK_CMP;
  10523     esi = ecx; /* 0x38024E96: mov esi, ecx */
  10524     SET_LO8(eax, 1); /* 0x38024E98: mov al, 1 */
  10525     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024EBE; /* 0x38024E9A: je 0x38024ebe */
  10526 L_38024E9C:
  10527     eax = MEM32(ebp + 0xC); /* 0x38024E9C: mov eax, dword ptr [ebp + 0xc] */
  10528     eax = MEM32(eax); /* 0x38024E9F: mov eax, dword ptr [eax] */
  10529     MEM32(ebp + (-0x8)) = eax; /* 0x38024EA1: mov dword ptr [ebp - 8], eax */
  10530 L_38024EA4:
  10531     eax = MEM32(ebp + (-0x8)); /* 0x38024EA4: mov eax, dword ptr [ebp - 8] */
  10532     /* cmp eax, MEM32(ebx + 0xC) */ /* 0x38024EA7: cmp eax, dword ptr [ebx + 0xc] */
  10533     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC));
  10534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10535     _flag_k = FK_CMP;
  10536     esi = ebx; /* 0x38024EAA: mov esi, ebx */
  10537     SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x38024EAC: setb al */
  10538     /* test LO8(eax), LO8(eax) */ /* 0x38024EAF: test al, al */
  10539     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10540     _cf = 0;
  10541     _flag_k = FK_NARROW(FK_TEST, 24);
  10542     if (TEST_Z(_flag_a, _flag_b)) goto L_38024EB7; /* 0x38024EB1: je 0x38024eb7 */
  10543 L_38024EB3:
  10544     ebx = MEM32(ebx); /* 0x38024EB3: mov ebx, dword ptr [ebx] */
  10545     goto L_38024EBA; /* 0x38024EB5: jmp 0x38024eba */
  10546 L_38024EB7:
  10547     ebx = MEM32(ebx + 0x8); /* 0x38024EB7: mov ebx, dword ptr [ebx + 8] */
  10548 L_38024EBA:
  10549     /* cmp ebx, edx */ /* 0x38024EBA: cmp ebx, edx */
  10550     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
  10551     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10552     _flag_k = FK_CMP;
  10553     RECOMP_BACKEDGE();
  10554     if (CMP_NE(_flag_a, _flag_b)) goto L_38024EA4; /* 0x38024EBC: jne 0x38024ea4 */
  10555 L_38024EBE:
  10556     SET_LO8(edx, MEM8(edi + 0xC)); /* 0x38024EBE: mov dl, byte ptr [edi + 0xc] */
  10557     /* test LO8(edx), LO8(edx) */ /* 0x38024EC1: test dl, dl */
  10558     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10559     _cf = 0;
  10560     _flag_k = FK_NARROW(FK_TEST, 24);
  10561     if (TEST_Z(_flag_a, _flag_b)) goto L_38025039; /* 0x38024EC3: je 0x38025039 */
  10562 L_38024EC9:
  10563     PUSH32(esp, 0); /* 0x38024EC9: push 0 */
  10564     PUSH32(esp, esi); /* 0x38024ECB: push esi */
  10565     ecx = edi; /* 0x38024ECC: mov ecx, edi */
  10566     RECOMP_ICALL(0x380253A0u); /* 0x38024ECE: call 0x380253a0 */ /* not lifted */
  10567     RECOMP_FLAGS_IN();
  10568     ecx = MEM32(edi + 0x8); /* 0x38024ED3: mov ecx, dword ptr [edi + 8] */
  10569     MEM32(eax) = ecx; /* 0x38024ED6: mov dword ptr [eax], ecx */
  10570     edx = MEM32(edi + 0x8); /* 0x38024ED8: mov edx, dword ptr [edi + 8] */
  10571     ecx = MEM32(ebp + 0xC); /* 0x38024EDB: mov ecx, dword ptr [ebp + 0xc] */
  10572     MEM32(ebp + (-0x4)) = eax; /* 0x38024EDE: mov dword ptr [ebp - 4], eax */
  10573     MEM32(eax + 0x8) = edx; /* 0x38024EE1: mov dword ptr [eax + 8], edx */
  10574     PUSH32(esp, ecx); /* 0x38024EE4: push ecx */
  10575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  10576     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10577     eax = eax + 0xCu; /* 0x38024EE5: add eax, 0xc */
  10578     _flag_k = FK_ADD;
  10579     PUSH32(esp, eax); /* 0x38024EE8: push eax */
  10580     RECOMP_ICALL(0x38025560u); /* 0x38024EE9: call 0x38025560 */ /* not lifted */
  10581     RECOMP_FLAGS_IN();
  10582     ecx = MEM32(edi + 0x10); /* 0x38024EEE: mov ecx, dword ptr [edi + 0x10] */
  10583     eax = MEM32(edi + 0x4); /* 0x38024EF1: mov eax, dword ptr [edi + 4] */
  10584     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10585     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10586     esp = esp + 8; /* 0x38024EF4: add esp, 8 */
  10587     _flag_k = FK_ADD;
  10588     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10589     ecx = ecx + 1; /* 0x38024EF7: inc ecx */
  10590     _flag_k = FK_INC;
  10591     /* cmp esi, eax */ /* 0x38024EF8: cmp esi, eax */
  10592     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  10593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10594     _flag_k = FK_CMP;
  10595     MEM32(edi + 0x10) = ecx; /* 0x38024EFA: mov dword ptr [edi + 0x10], ecx */
  10596     if (CMP_EQ(_flag_a, _flag_b)) goto L_38024F21; /* 0x38024EFD: je 0x38024f21 */
  10597 L_38024EFF:
  10598     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x38024EFF: cmp ebx, dword ptr [edi + 8] */
  10599     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10600     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10601     _flag_k = FK_CMP;
  10602     if (CMP_NE(_flag_a, _flag_b)) goto L_38024F21; /* 0x38024F02: jne 0x38024f21 */
  10603 L_38024F04:
  10604     edx = MEM32(ebp + 0xC); /* 0x38024F04: mov edx, dword ptr [ebp + 0xc] */
  10605     eax = MEM32(edx); /* 0x38024F07: mov eax, dword ptr [edx] */
  10606     /* cmp eax, MEM32(esi + 0xC) */ /* 0x38024F09: cmp eax, dword ptr [esi + 0xc] */
  10607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
  10608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10609     _flag_k = FK_CMP;
  10610     if (CMP_B(_flag_a, _flag_b)) goto L_38024F21; /* 0x38024F0C: jb 0x38024f21 */
  10611 L_38024F0E:
  10612     ebx = MEM32(ebp + (-0x4)); /* 0x38024F0E: mov ebx, dword ptr [ebp - 4] */
  10613     MEM32(esi + 0x8) = ebx; /* 0x38024F11: mov dword ptr [esi + 8], ebx */
  10614     eax = MEM32(edi + 0x4); /* 0x38024F14: mov eax, dword ptr [edi + 4] */
  10615     /* cmp esi, MEM32(eax + 0x8) */ /* 0x38024F17: cmp esi, dword ptr [eax + 8] */
  10616     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  10617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10618     _flag_k = FK_CMP;
  10619     if (CMP_NE(_flag_a, _flag_b)) goto L_38024F44; /* 0x38024F1A: jne 0x38024f44 */
  10620 L_38024F1C:
  10621     MEM32(eax + 0x8) = ebx; /* 0x38024F1C: mov dword ptr [eax + 8], ebx */
  10622     goto L_38024F44; /* 0x38024F1F: jmp 0x38024f44 */
  10623 L_38024F21:
  10624     ecx = MEM32(ebp + (-0x4)); /* 0x38024F21: mov ecx, dword ptr [ebp - 4] */
  10625     MEM32(esi) = ecx; /* 0x38024F24: mov dword ptr [esi], ecx */
  10626     eax = MEM32(edi + 0x4); /* 0x38024F26: mov eax, dword ptr [edi + 4] */
  10627     /* cmp esi, eax */ /* 0x38024F29: cmp esi, eax */
  10628     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  10629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10630     _flag_k = FK_CMP;
  10631     if (CMP_NE(_flag_a, _flag_b)) goto L_38024F38; /* 0x38024F2B: jne 0x38024f38 */
  10632 L_38024F2D:
  10633     MEM32(eax + 0x4) = ecx; /* 0x38024F2D: mov dword ptr [eax + 4], ecx */
  10634     edx = MEM32(edi + 0x4); /* 0x38024F30: mov edx, dword ptr [edi + 4] */
  10635     MEM32(edx + 0x8) = ecx; /* 0x38024F33: mov dword ptr [edx + 8], ecx */
  10636     goto L_38024F41; /* 0x38024F36: jmp 0x38024f41 */
  10637 L_38024F38:
  10638     /* cmp esi, MEM32(eax) */ /* 0x38024F38: cmp esi, dword ptr [eax] */
  10639     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
  10640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10641     _flag_k = FK_CMP;
  10642     if (CMP_NE(_flag_a, _flag_b)) goto L_38024F41; /* 0x38024F3A: jne 0x38024f41 */
  10643 L_38024F3C:
  10644     ecx = MEM32(ebp + (-0x4)); /* 0x38024F3C: mov ecx, dword ptr [ebp - 4] */
  10645     MEM32(eax) = ecx; /* 0x38024F3F: mov dword ptr [eax], ecx */
  10646 L_38024F41:
  10647     ebx = MEM32(ebp + (-0x4)); /* 0x38024F41: mov ebx, dword ptr [ebp - 4] */
  10648 L_38024F44:
  10649     edx = MEM32(edi + 0x4); /* 0x38024F44: mov edx, dword ptr [edi + 4] */
  10650     /* cmp ebx, MEM32(edx + 0x4) */ /* 0x38024F47: cmp ebx, dword ptr [edx + 4] */
  10651     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10653     _flag_k = FK_CMP;
  10654     esi = ebx; /* 0x38024F4A: mov esi, ebx */
  10655     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025017; /* 0x38024F4C: je 0x38025017 */
  10656 L_38024F52:
  10657     eax = MEM32(esi + 0x4); /* 0x38024F52: mov eax, dword ptr [esi + 4] */
  10658     SET_LO8(ecx, MEM8(eax + 0x18)); /* 0x38024F55: mov cl, byte ptr [eax + 0x18] */
  10659     /* test LO8(ecx), LO8(ecx) */ /* 0x38024F58: test cl, cl */
  10660     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  10661     _cf = 0;
  10662     _flag_k = FK_NARROW(FK_TEST, 24);
  10663     if (TEST_NZ(_flag_a, _flag_b)) goto L_38025017; /* 0x38024F5A: jne 0x38025017 */
  10664 L_38024F60:
  10665     edx = MEM32(eax + 0x4); /* 0x38024F60: mov edx, dword ptr [eax + 4] */
  10666     ecx = MEM32(edx); /* 0x38024F63: mov ecx, dword ptr [edx] */
  10667     /* cmp eax, ecx */ /* 0x38024F65: cmp eax, ecx */
  10668     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10670     _flag_k = FK_CMP;
  10671     if (CMP_NE(_flag_a, _flag_b)) goto L_38024FBD; /* 0x38024F67: jne 0x38024fbd */
  10672 L_38024F69:
  10673     ecx = MEM32(edx + 0x8); /* 0x38024F69: mov ecx, dword ptr [edx + 8] */
  10674     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38024F6C: mov dl, byte ptr [ecx + 0x18] */
  10675     /* test LO8(edx), LO8(edx) */ /* 0x38024F6F: test dl, dl */
  10676     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10677     _cf = 0;
  10678     _flag_k = FK_NARROW(FK_TEST, 24);
  10679     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024F8D; /* 0x38024F71: jne 0x38024f8d */
  10680 L_38024F73:
  10681     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x38024F73: mov byte ptr [eax + 0x18], 1 */
  10682     MEM8(ecx + 0x18) = (uint8_t)(1); /* 0x38024F77: mov byte ptr [ecx + 0x18], 1 */
  10683     eax = MEM32(esi + 0x4); /* 0x38024F7B: mov eax, dword ptr [esi + 4] */
  10684     ecx = MEM32(eax + 0x4); /* 0x38024F7E: mov ecx, dword ptr [eax + 4] */
  10685     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38024F81: mov byte ptr [ecx + 0x18], 0 */
  10686     edx = MEM32(esi + 0x4); /* 0x38024F85: mov edx, dword ptr [esi + 4] */
  10687     esi = MEM32(edx + 0x4); /* 0x38024F88: mov esi, dword ptr [edx + 4] */
  10688     goto L_3802500B; /* 0x38024F8B: jmp 0x3802500b */
  10689 L_38024F8D:
  10690     /* cmp esi, MEM32(eax + 0x8) */ /* 0x38024F8D: cmp esi, dword ptr [eax + 8] */
  10691     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  10692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10693     _flag_k = FK_CMP;
  10694     if (CMP_NE(_flag_a, _flag_b)) goto L_38024F9C; /* 0x38024F90: jne 0x38024f9c */
  10695 L_38024F92:
  10696     esi = eax; /* 0x38024F92: mov esi, eax */
  10697     PUSH32(esp, esi); /* 0x38024F94: push esi */
  10698     ecx = edi; /* 0x38024F95: mov ecx, edi */
  10699     RECOMP_ICALL(0x3803B270u); /* 0x38024F97: call 0x3803b270 */ /* not lifted */
  10700     RECOMP_FLAGS_IN();
  10701 L_38024F9C:
  10702     eax = MEM32(esi + 0x4); /* 0x38024F9C: mov eax, dword ptr [esi + 4] */
  10703     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x38024F9F: mov byte ptr [eax + 0x18], 1 */
  10704     ecx = MEM32(esi + 0x4); /* 0x38024FA3: mov ecx, dword ptr [esi + 4] */
  10705     edx = MEM32(ecx + 0x4); /* 0x38024FA6: mov edx, dword ptr [ecx + 4] */
  10706     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x38024FA9: mov byte ptr [edx + 0x18], 0 */
  10707     eax = MEM32(esi + 0x4); /* 0x38024FAD: mov eax, dword ptr [esi + 4] */
  10708     ecx = MEM32(eax + 0x4); /* 0x38024FB0: mov ecx, dword ptr [eax + 4] */
  10709     PUSH32(esp, ecx); /* 0x38024FB3: push ecx */
  10710     ecx = edi; /* 0x38024FB4: mov ecx, edi */
  10711     RECOMP_ICALL(0x3802F100u); /* 0x38024FB6: call 0x3802f100 */ /* not lifted */
  10712     RECOMP_FLAGS_IN();
  10713     goto L_3802500B; /* 0x38024FBB: jmp 0x3802500b */
  10714 L_38024FBD:
  10715     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38024FBD: mov dl, byte ptr [ecx + 0x18] */
  10716     /* test LO8(edx), LO8(edx) */ /* 0x38024FC0: test dl, dl */
  10717     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10718     _cf = 0;
  10719     _flag_k = FK_NARROW(FK_TEST, 24);
  10720     if (TEST_NZ(_flag_a, _flag_b)) goto L_38024FDE; /* 0x38024FC2: jne 0x38024fde */
  10721 L_38024FC4:
  10722     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x38024FC4: mov byte ptr [eax + 0x18], 1 */
  10723     MEM8(ecx + 0x18) = (uint8_t)(1); /* 0x38024FC8: mov byte ptr [ecx + 0x18], 1 */
  10724     edx = MEM32(esi + 0x4); /* 0x38024FCC: mov edx, dword ptr [esi + 4] */
  10725     eax = MEM32(edx + 0x4); /* 0x38024FCF: mov eax, dword ptr [edx + 4] */
  10726     MEM8(eax + 0x18) = (uint8_t)(0); /* 0x38024FD2: mov byte ptr [eax + 0x18], 0 */
  10727     ecx = MEM32(esi + 0x4); /* 0x38024FD6: mov ecx, dword ptr [esi + 4] */
  10728     esi = MEM32(ecx + 0x4); /* 0x38024FD9: mov esi, dword ptr [ecx + 4] */
  10729     goto L_3802500B; /* 0x38024FDC: jmp 0x3802500b */
  10730 L_38024FDE:
  10731     /* cmp esi, MEM32(eax) */ /* 0x38024FDE: cmp esi, dword ptr [eax] */
  10732     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
  10733     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10734     _flag_k = FK_CMP;
  10735     if (CMP_NE(_flag_a, _flag_b)) goto L_38024FEC; /* 0x38024FE0: jne 0x38024fec */
  10736 L_38024FE2:
  10737     esi = eax; /* 0x38024FE2: mov esi, eax */
  10738     PUSH32(esp, esi); /* 0x38024FE4: push esi */
  10739     ecx = edi; /* 0x38024FE5: mov ecx, edi */
  10740     RECOMP_ICALL(0x3802F100u); /* 0x38024FE7: call 0x3802f100 */ /* not lifted */
  10741     RECOMP_FLAGS_IN();
  10742 L_38024FEC:
  10743     edx = MEM32(esi + 0x4); /* 0x38024FEC: mov edx, dword ptr [esi + 4] */
  10744     MEM8(edx + 0x18) = (uint8_t)(1); /* 0x38024FEF: mov byte ptr [edx + 0x18], 1 */
  10745     eax = MEM32(esi + 0x4); /* 0x38024FF3: mov eax, dword ptr [esi + 4] */
  10746     ecx = MEM32(eax + 0x4); /* 0x38024FF6: mov ecx, dword ptr [eax + 4] */
  10747     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38024FF9: mov byte ptr [ecx + 0x18], 0 */
  10748     edx = MEM32(esi + 0x4); /* 0x38024FFD: mov edx, dword ptr [esi + 4] */
  10749     eax = MEM32(edx + 0x4); /* 0x38025000: mov eax, dword ptr [edx + 4] */
  10750     PUSH32(esp, eax); /* 0x38025003: push eax */
  10751     ecx = edi; /* 0x38025004: mov ecx, edi */
  10752     RECOMP_ICALL(0x3803B270u); /* 0x38025006: call 0x3803b270 */ /* not lifted */
  10753     RECOMP_FLAGS_IN();
  10754 L_3802500B:
  10755     ecx = MEM32(edi + 0x4); /* 0x3802500B: mov ecx, dword ptr [edi + 4] */
  10756     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3802500E: cmp esi, dword ptr [ecx + 4] */
  10757     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10759     _flag_k = FK_CMP;
  10760     RECOMP_BACKEDGE();
  10761     if (CMP_NE(_flag_a, _flag_b)) goto L_38024F52; /* 0x38025011: jne 0x38024f52 */
  10762 L_38025017:
  10763     edx = MEM32(edi + 0x4); /* 0x38025017: mov edx, dword ptr [edi + 4] */
  10764     eax = MEM32(edx + 0x4); /* 0x3802501A: mov eax, dword ptr [edx + 4] */
  10765     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x3802501D: mov byte ptr [eax + 0x18], 1 */
  10766     eax = MEM32(ebp + 0x8); /* 0x38025021: mov eax, dword ptr [ebp + 8] */
  10767     edi = POP32_VAL(esp); /* 0x38025024: pop edi */
  10768     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x38025025: mov byte ptr [ebp - 8], 1 */
  10769     ecx = MEM32(ebp + (-0x8)); /* 0x38025029: mov ecx, dword ptr [ebp - 8] */
  10770     MEM32(eax) = ebx; /* 0x3802502C: mov dword ptr [eax], ebx */
  10771     esi = POP32_VAL(esp); /* 0x3802502E: pop esi */
  10772     MEM32(eax + 0x4) = ecx; /* 0x3802502F: mov dword ptr [eax + 4], ecx */
  10773     ebx = POP32_VAL(esp); /* 0x38025032: pop ebx */
  10774     esp = ebp; /* 0x38025033: mov esp, ebp */
  10775     ebp = POP32_VAL(esp); /* 0x38025035: pop ebp */
  10776     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38025036: ret 8 */
  10777 L_38025039:
  10778     /* test LO8(eax), LO8(eax) */ /* 0x38025039: test al, al */
  10779     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10780     _cf = 0;
  10781     _flag_k = FK_NARROW(FK_TEST, 24);
  10782     edx = esi; /* 0x3802503B: mov edx, esi */
  10783     MEM32(ebp + (-0x8)) = edx; /* 0x3802503D: mov dword ptr [ebp - 8], edx */
  10784     if (TEST_Z(_flag_a, _flag_b)) goto L_3802507C; /* 0x38025040: je 0x3802507c */
  10785 L_38025042:
  10786     /* cmp esi, MEM32(ecx) */ /* 0x38025042: cmp esi, dword ptr [ecx] */
  10787     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx));
  10788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10789     _flag_k = FK_CMP;
  10790     if (CMP_NE(_flag_a, _flag_b)) goto L_38025071; /* 0x38025044: jne 0x38025071 */
  10791 L_38025046:
  10792     edx = MEM32(ebp + 0xC); /* 0x38025046: mov edx, dword ptr [ebp + 0xc] */
  10793     PUSH32(esp, edx); /* 0x38025049: push edx */
  10794     PUSH32(esp, esi); /* 0x3802504A: push esi */
  10795     PUSH32(esp, ebx); /* 0x3802504B: push ebx */
  10796     eax = ebp + 0xC; /* 0x3802504C: lea eax, [ebp + 0xc] */
  10797     PUSH32(esp, eax); /* 0x3802504F: push eax */
  10798     ecx = edi; /* 0x38025050: mov ecx, edi */
  10799     RECOMP_ICALL(0x38025160u); /* 0x38025052: call 0x38025160 */ /* not lifted */
  10800     RECOMP_FLAGS_IN();
  10801     ecx = MEM32(eax); /* 0x38025057: mov ecx, dword ptr [eax] */
  10802     eax = MEM32(ebp + 0x8); /* 0x38025059: mov eax, dword ptr [ebp + 8] */
  10803     edi = POP32_VAL(esp); /* 0x3802505C: pop edi */
  10804     MEM32(eax) = ecx; /* 0x3802505D: mov dword ptr [eax], ecx */
  10805     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3802505F: mov byte ptr [ebp - 8], 1 */
  10806     ecx = MEM32(ebp + (-0x8)); /* 0x38025063: mov ecx, dword ptr [ebp - 8] */
  10807     esi = POP32_VAL(esp); /* 0x38025066: pop esi */
  10808     MEM32(eax + 0x4) = ecx; /* 0x38025067: mov dword ptr [eax + 4], ecx */
  10809     ebx = POP32_VAL(esp); /* 0x3802506A: pop ebx */
  10810     esp = ebp; /* 0x3802506B: mov esp, ebp */
  10811     ebp = POP32_VAL(esp); /* 0x3802506D: pop ebp */
  10812     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3802506E: ret 8 */
  10813 L_38025071:
  10814     ecx = ebp + (-0x8); /* 0x38025071: lea ecx, [ebp - 8] */
  10815     RECOMP_ICALL(0x3801B170u); /* 0x38025074: call 0x3801b170 */ /* not lifted */
  10816     RECOMP_FLAGS_IN();
  10817     edx = MEM32(ebp + (-0x8)); /* 0x38025079: mov edx, dword ptr [ebp - 8] */
  10818 L_3802507C:
  10819     ecx = MEM32(edx + 0xC); /* 0x3802507C: mov ecx, dword ptr [edx + 0xc] */
  10820     eax = MEM32(ebp + 0xC); /* 0x3802507F: mov eax, dword ptr [ebp + 0xc] */
  10821     /* cmp ecx, MEM32(eax) */ /* 0x38025082: cmp ecx, dword ptr [eax] */
  10822     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
  10823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10824     _flag_k = FK_CMP;
  10825     if (CMP_AE(_flag_a, _flag_b)) goto L_380250AE; /* 0x38025084: jae 0x380250ae */
  10826 L_38025086:
  10827     PUSH32(esp, eax); /* 0x38025086: push eax */
  10828     PUSH32(esp, esi); /* 0x38025087: push esi */
  10829     PUSH32(esp, ebx); /* 0x38025088: push ebx */
  10830     edx = ebp + 0xC; /* 0x38025089: lea edx, [ebp + 0xc] */
  10831     PUSH32(esp, edx); /* 0x3802508C: push edx */
  10832     ecx = edi; /* 0x3802508D: mov ecx, edi */
  10833     RECOMP_ICALL(0x38025160u); /* 0x3802508F: call 0x38025160 */ /* not lifted */
  10834     RECOMP_FLAGS_IN();
  10835     ecx = MEM32(eax); /* 0x38025094: mov ecx, dword ptr [eax] */
  10836     eax = MEM32(ebp + 0x8); /* 0x38025096: mov eax, dword ptr [ebp + 8] */
  10837     edi = POP32_VAL(esp); /* 0x38025099: pop edi */
  10838     MEM32(eax) = ecx; /* 0x3802509A: mov dword ptr [eax], ecx */
  10839     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3802509C: mov byte ptr [ebp - 8], 1 */
  10840     ecx = MEM32(ebp + (-0x8)); /* 0x380250A0: mov ecx, dword ptr [ebp - 8] */
  10841     esi = POP32_VAL(esp); /* 0x380250A3: pop esi */
  10842     MEM32(eax + 0x4) = ecx; /* 0x380250A4: mov dword ptr [eax + 4], ecx */
  10843     ebx = POP32_VAL(esp); /* 0x380250A7: pop ebx */
  10844     esp = ebp; /* 0x380250A8: mov esp, ebp */
  10845     ebp = POP32_VAL(esp); /* 0x380250AA: pop ebp */
  10846     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380250AB: ret 8 */
  10847 L_380250AE:
  10848     eax = MEM32(ebp + 0x8); /* 0x380250AE: mov eax, dword ptr [ebp + 8] */
  10849     edi = POP32_VAL(esp); /* 0x380250B1: pop edi */
  10850     MEM32(eax) = edx; /* 0x380250B2: mov dword ptr [eax], edx */
  10851     MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x380250B4: mov byte ptr [ebp - 8], 0 */
  10852     edx = MEM32(ebp + (-0x8)); /* 0x380250B8: mov edx, dword ptr [ebp - 8] */
  10853     esi = POP32_VAL(esp); /* 0x380250BB: pop esi */
  10854     MEM32(eax + 0x4) = edx; /* 0x380250BC: mov dword ptr [eax + 4], edx */
  10855     ebx = POP32_VAL(esp); /* 0x380250BF: pop ebx */
  10856     esp = ebp; /* 0x380250C0: mov esp, ebp */
  10857     ebp = POP32_VAL(esp); /* 0x380250C2: pop ebp */
  10858     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380250C3: ret 8 */
  10859     RECOMP_REGS_OUT();
  10860 }
  10861 
  10862 void sub_380250D0(void) {
  10863     int _fpu_cmp = 0;
  10864     uint32_t _cf = 0;
  10865     int _df = 1;
  10866     uint32_t _flag_k = FK_NONE;
  10867     uint32_t _flag_a = 0, _flag_b = 0;
  10868     uint32_t _itail_tgt = 0;
  10869     RECOMP_REGS_LOCALS
  10870     RECOMP_ENTER(0x380250D0u);
  10871 
  10872 L_380250D0:
  10873     PUSH32(esp, ebp); /* 0x380250D0: push ebp */
  10874     ebp = esp; /* 0x380250D1: mov ebp, esp */
  10875     PUSH32(esp, ebx); /* 0x380250D3: push ebx */
  10876     PUSH32(esp, esi); /* 0x380250D4: push esi */
  10877     ebx = ecx; /* 0x380250D5: mov ebx, ecx */
  10878     eax = MEM32(ebx + 0x8); /* 0x380250D7: mov eax, dword ptr [ebx + 8] */
  10879     PUSH32(esp, edi); /* 0x380250DA: push edi */
  10880     edi = MEM32(ebp + 0x8); /* 0x380250DB: mov edi, dword ptr [ebp + 8] */
  10881     /* cmp edi, eax */ /* 0x380250DE: cmp edi, eax */
  10882     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  10883     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10884     _flag_k = FK_CMP;
  10885     esi = edi; /* 0x380250E0: mov esi, edi */
  10886     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025103; /* 0x380250E2: je 0x38025103 */
  10887 L_380250E4:
  10888     eax = MEM32(esi + 0x8); /* 0x380250E4: mov eax, dword ptr [esi + 8] */
  10889     PUSH32(esp, eax); /* 0x380250E7: push eax */
  10890     ecx = ebx; /* 0x380250E8: mov ecx, ebx */
  10891     RECOMP_ICALL(0x380250D0u); /* 0x380250EA: call 0x380250d0 */ /* not lifted */
  10892     RECOMP_FLAGS_IN();
  10893     esi = MEM32(esi); /* 0x380250EF: mov esi, dword ptr [esi] */
  10894     PUSH32(esp, edi); /* 0x380250F1: push edi */
  10895     RECOMP_ICALL(0x3804B4F6u); /* 0x380250F2: call 0x3804b4f6 */ /* not lifted */
  10896     RECOMP_FLAGS_IN();
  10897     eax = MEM32(ebx + 0x8); /* 0x380250F7: mov eax, dword ptr [ebx + 8] */
  10898     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10899     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10900     esp = esp + 4; /* 0x380250FA: add esp, 4 */
  10901     _flag_k = FK_ADD;
  10902     /* cmp esi, eax */ /* 0x380250FD: cmp esi, eax */
  10903     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  10904     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10905     _flag_k = FK_CMP;
  10906     edi = esi; /* 0x380250FF: mov edi, esi */
  10907     RECOMP_BACKEDGE();
  10908     if (CMP_NE(_flag_a, _flag_b)) goto L_380250E4; /* 0x38025101: jne 0x380250e4 */
  10909 L_38025103:
  10910     edi = POP32_VAL(esp); /* 0x38025103: pop edi */
  10911     esi = POP32_VAL(esp); /* 0x38025104: pop esi */
  10912     ebx = POP32_VAL(esp); /* 0x38025105: pop ebx */
  10913     ebp = POP32_VAL(esp); /* 0x38025106: pop ebp */
  10914     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38025107: ret 4 */
  10915     RECOMP_REGS_OUT();
  10916 }
  10917 
  10918 void sub_38025110(void) {
  10919     int _fpu_cmp = 0;
  10920     uint32_t _cf = 0;
  10921     int _df = 1;
  10922     uint32_t _flag_k = FK_NONE;
  10923     uint32_t _flag_a = 0, _flag_b = 0;
  10924     uint32_t _itail_tgt = 0;
  10925     RECOMP_REGS_LOCALS
  10926     RECOMP_ENTER(0x38025110u);
  10927 
  10928 L_38025110:
  10929     PUSH32(esp, ebp); /* 0x38025110: push ebp */
  10930     ebp = esp; /* 0x38025111: mov ebp, esp */
  10931     eax = MEM32(ebp + 0x8); /* 0x38025113: mov eax, dword ptr [ebp + 8] */
  10932     ecx = MEM32(eax); /* 0x38025116: mov ecx, dword ptr [eax] */
  10933     SET_LO8(edx, MEM8(ecx + 0x19)); /* 0x38025118: mov dl, byte ptr [ecx + 0x19] */
  10934     /* test LO8(edx), LO8(edx) */ /* 0x3802511B: test dl, dl */
  10935     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10936     _cf = 0;
  10937     _flag_k = FK_NARROW(FK_TEST, 24);
  10938     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802512A; /* 0x3802511D: jne 0x3802512a */
  10939 L_3802511F:
  10940     eax = ecx; /* 0x3802511F: mov eax, ecx */
  10941     ecx = MEM32(eax); /* 0x38025121: mov ecx, dword ptr [eax] */
  10942     SET_LO8(edx, MEM8(ecx + 0x19)); /* 0x38025123: mov dl, byte ptr [ecx + 0x19] */
  10943     /* test LO8(edx), LO8(edx) */ /* 0x38025126: test dl, dl */
  10944     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10945     _cf = 0;
  10946     _flag_k = FK_NARROW(FK_TEST, 24);
  10947     RECOMP_BACKEDGE();
  10948     if (TEST_Z(_flag_a, _flag_b)) goto L_3802511F; /* 0x38025128: je 0x3802511f */
  10949 L_3802512A:
  10950     ebp = POP32_VAL(esp); /* 0x3802512A: pop ebp */
  10951     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802512B: ret  */
  10952     RECOMP_REGS_OUT();
  10953 }
  10954 
  10955 void sub_38025130(void) {
  10956     int _fpu_cmp = 0;
  10957     uint32_t _cf = 0;
  10958     int _df = 1;
  10959     uint32_t _flag_k = FK_NONE;
  10960     uint32_t _flag_a = 0, _flag_b = 0;
  10961     uint32_t _itail_tgt = 0;
  10962     RECOMP_REGS_LOCALS
  10963     RECOMP_ENTER(0x38025130u);
  10964 
  10965 L_38025130:
  10966     PUSH32(esp, ebp); /* 0x38025130: push ebp */
  10967     ebp = esp; /* 0x38025131: mov ebp, esp */
  10968     PUSH32(esp, 0x24u); /* 0x38025133: push 0x24 */
  10969     RECOMP_ICALL(0x3804B676u); /* 0x38025135: call 0x3804b676 */ /* not lifted */
  10970     RECOMP_FLAGS_IN();
  10971     ecx = MEM32(ebp + 0x8); /* 0x3802513A: mov ecx, dword ptr [ebp + 8] */
  10972     SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x3802513D: mov dl, byte ptr [ebp + 0xc] */
  10973     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10974     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10975     esp = esp + 4; /* 0x38025140: add esp, 4 */
  10976     _flag_k = FK_ADD;
  10977     MEM32(eax + 0x4) = ecx; /* 0x38025143: mov dword ptr [eax + 4], ecx */
  10978     MEM8(eax + 0x20) = (uint8_t)(LO8(edx)); /* 0x38025146: mov byte ptr [eax + 0x20], dl */
  10979     MEM8(eax + 0x21) = (uint8_t)(0); /* 0x38025149: mov byte ptr [eax + 0x21], 0 */
  10980     ebp = POP32_VAL(esp); /* 0x3802514D: pop ebp */
  10981     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3802514E: ret 8 */
  10982     RECOMP_REGS_OUT();
  10983 }
  10984 
  10985 void sub_38025160(void) {
  10986     int _fpu_cmp = 0;
  10987     uint32_t _cf = 0;
  10988     int _df = 1;
  10989     uint32_t _flag_k = FK_NONE;
  10990     uint32_t _flag_a = 0, _flag_b = 0;
  10991     uint32_t _itail_tgt = 0;
  10992     RECOMP_REGS_LOCALS
  10993     RECOMP_ENTER(0x38025160u);
  10994 
  10995 L_38025160:
  10996     PUSH32(esp, ebp); /* 0x38025160: push ebp */
  10997     ebp = esp; /* 0x38025161: mov ebp, esp */
  10998     PUSH32(esp, ecx); /* 0x38025163: push ecx */
  10999     PUSH32(esp, ebx); /* 0x38025164: push ebx */
  11000     PUSH32(esp, esi); /* 0x38025165: push esi */
  11001     PUSH32(esp, edi); /* 0x38025166: push edi */
  11002     PUSH32(esp, 0x1Cu); /* 0x38025167: push 0x1c */
  11003     esi = ecx; /* 0x38025169: mov esi, ecx */
  11004     RECOMP_ICALL(0x3804B676u); /* 0x3802516B: call 0x3804b676 */ /* not lifted */
  11005     RECOMP_FLAGS_IN();
  11006     edi = MEM32(ebp + 0x10); /* 0x38025170: mov edi, dword ptr [ebp + 0x10] */
  11007     ebx = MEM32(ebp + 0x14); /* 0x38025173: mov ebx, dword ptr [ebp + 0x14] */
  11008     MEM32(eax + 0x4) = edi; /* 0x38025176: mov dword ptr [eax + 4], edi */
  11009     MEM8(eax + 0x18) = (uint8_t)(0); /* 0x38025179: mov byte ptr [eax + 0x18], 0 */
  11010     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x3802517D: mov byte ptr [eax + 0x19], 0 */
  11011     ecx = MEM32(esi + 0x8); /* 0x38025181: mov ecx, dword ptr [esi + 8] */
  11012     MEM32(eax) = ecx; /* 0x38025184: mov dword ptr [eax], ecx */
  11013     edx = MEM32(esi + 0x8); /* 0x38025186: mov edx, dword ptr [esi + 8] */
  11014     MEM32(ebp + (-0x4)) = eax; /* 0x38025189: mov dword ptr [ebp - 4], eax */
  11015     MEM32(eax + 0x8) = edx; /* 0x3802518C: mov dword ptr [eax + 8], edx */
  11016     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
  11017     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11018     eax = eax + 0xCu; /* 0x3802518F: add eax, 0xc */
  11019     _flag_k = FK_ADD;
  11020     PUSH32(esp, ebx); /* 0x38025192: push ebx */
  11021     PUSH32(esp, eax); /* 0x38025193: push eax */
  11022     RECOMP_ICALL(0x38025560u); /* 0x38025194: call 0x38025560 */ /* not lifted */
  11023     RECOMP_FLAGS_IN();
  11024     ecx = MEM32(esi + 0x10); /* 0x38025199: mov ecx, dword ptr [esi + 0x10] */
  11025     eax = MEM32(esi + 0x4); /* 0x3802519C: mov eax, dword ptr [esi + 4] */
  11026     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11027     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11028     esp = esp + 0xCu; /* 0x3802519F: add esp, 0xc */
  11029     _flag_k = FK_ADD;
  11030     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  11031     ecx = ecx + 1; /* 0x380251A2: inc ecx */
  11032     _flag_k = FK_INC;
  11033     /* cmp edi, eax */ /* 0x380251A3: cmp edi, eax */
  11034     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  11035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11036     _flag_k = FK_CMP;
  11037     MEM32(esi + 0x10) = ecx; /* 0x380251A5: mov dword ptr [esi + 0x10], ecx */
  11038     if (CMP_EQ(_flag_a, _flag_b)) goto L_380251CC; /* 0x380251A8: je 0x380251cc */
  11039 L_380251AA:
  11040     eax = MEM32(ebp + 0xC); /* 0x380251AA: mov eax, dword ptr [ebp + 0xc] */
  11041     /* cmp eax, MEM32(esi + 0x8) */ /* 0x380251AD: cmp eax, dword ptr [esi + 8] */
  11042     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11044     _flag_k = FK_CMP;
  11045     if (CMP_NE(_flag_a, _flag_b)) goto L_380251CC; /* 0x380251B0: jne 0x380251cc */
  11046 L_380251B2:
  11047     ecx = MEM32(ebx); /* 0x380251B2: mov ecx, dword ptr [ebx] */
  11048     /* cmp ecx, MEM32(edi + 0xC) */ /* 0x380251B4: cmp ecx, dword ptr [edi + 0xc] */
  11049     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC));
  11050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11051     _flag_k = FK_CMP;
  11052     if (CMP_B(_flag_a, _flag_b)) goto L_380251CC; /* 0x380251B7: jb 0x380251cc */
  11053 L_380251B9:
  11054     ecx = MEM32(ebp + (-0x4)); /* 0x380251B9: mov ecx, dword ptr [ebp - 4] */
  11055     MEM32(edi + 0x8) = ecx; /* 0x380251BC: mov dword ptr [edi + 8], ecx */
  11056     eax = MEM32(esi + 0x4); /* 0x380251BF: mov eax, dword ptr [esi + 4] */
  11057     /* cmp edi, MEM32(eax + 0x8) */ /* 0x380251C2: cmp edi, dword ptr [eax + 8] */
  11058     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  11059     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11060     _flag_k = FK_CMP;
  11061     if (CMP_NE(_flag_a, _flag_b)) goto L_380251EC; /* 0x380251C5: jne 0x380251ec */
  11062 L_380251C7:
  11063     MEM32(eax + 0x8) = ecx; /* 0x380251C7: mov dword ptr [eax + 8], ecx */
  11064     goto L_380251EC; /* 0x380251CA: jmp 0x380251ec */
  11065 L_380251CC:
  11066     ecx = MEM32(ebp + (-0x4)); /* 0x380251CC: mov ecx, dword ptr [ebp - 4] */
  11067     MEM32(edi) = ecx; /* 0x380251CF: mov dword ptr [edi], ecx */
  11068     eax = MEM32(esi + 0x4); /* 0x380251D1: mov eax, dword ptr [esi + 4] */
  11069     /* cmp edi, eax */ /* 0x380251D4: cmp edi, eax */
  11070     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  11071     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11072     _flag_k = FK_CMP;
  11073     if (CMP_NE(_flag_a, _flag_b)) goto L_380251E3; /* 0x380251D6: jne 0x380251e3 */
  11074 L_380251D8:
  11075     MEM32(eax + 0x4) = ecx; /* 0x380251D8: mov dword ptr [eax + 4], ecx */
  11076     edx = MEM32(esi + 0x4); /* 0x380251DB: mov edx, dword ptr [esi + 4] */
  11077     MEM32(edx + 0x8) = ecx; /* 0x380251DE: mov dword ptr [edx + 8], ecx */
  11078     goto L_380251EC; /* 0x380251E1: jmp 0x380251ec */
  11079 L_380251E3:
  11080     /* cmp edi, MEM32(eax) */ /* 0x380251E3: cmp edi, dword ptr [eax] */
  11081     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
  11082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11083     _flag_k = FK_CMP;
  11084     if (CMP_NE(_flag_a, _flag_b)) goto L_380251EC; /* 0x380251E5: jne 0x380251ec */
  11085 L_380251E7:
  11086     ecx = MEM32(ebp + (-0x4)); /* 0x380251E7: mov ecx, dword ptr [ebp - 4] */
  11087     MEM32(eax) = ecx; /* 0x380251EA: mov dword ptr [eax], ecx */
  11088 L_380251EC:
  11089     edx = MEM32(esi + 0x4); /* 0x380251EC: mov edx, dword ptr [esi + 4] */
  11090     eax = MEM32(ebp + (-0x4)); /* 0x380251EF: mov eax, dword ptr [ebp - 4] */
  11091     /* cmp eax, MEM32(edx + 0x4) */ /* 0x380251F2: cmp eax, dword ptr [edx + 4] */
  11092     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  11093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11094     _flag_k = FK_CMP;
  11095     SET_LO8(ebx, 1); /* 0x380251F5: mov bl, 1 */
  11096     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802537D; /* 0x380251F7: je 0x3802537d */
  11097 L_380251FD:
  11098     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  11099     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  11100     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  11101     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  11102     _cf = 0;
  11103     _flag_k = FK_NARROW(FK_TEST, 24);
  11104     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  11105 L_3802520B:
  11106     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  11107     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  11108     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  11109     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  11110     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11111     _flag_k = FK_CMP;
  11112     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  11113 L_38025218:
  11114     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  11115     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  11116     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  11117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11118     _flag_k = FK_NARROW(FK_CMP, 24);
  11119     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  11120 L_38025221:
  11121     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  11122     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  11123     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  11124     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  11125     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  11126     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  11127     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  11128     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  11129 L_3802523C:
  11130     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  11131     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  11132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11133     _flag_k = FK_CMP;
  11134     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  11135 L_38025241:
  11136     eax = ecx; /* 0x38025241: mov eax, ecx */
  11137     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  11138     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  11139     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  11140     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  11141     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  11142     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11143     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11144     _flag_k = FK_CMP;
  11145     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  11146 L_38025252:
  11147     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  11148 L_38025255:
  11149     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  11150     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  11151     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  11152     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  11153     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  11154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11155     _flag_k = FK_CMP;
  11156     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  11157 L_38025263:
  11158     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  11159     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  11160 L_38025268:
  11161     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  11162     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  11163     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  11164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11165     _flag_k = FK_CMP;
  11166     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  11167 L_3802526F:
  11168     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  11169     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  11170 L_38025273:
  11171     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  11172 L_38025276:
  11173     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  11174     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  11175 L_3802527B:
  11176     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  11177     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  11178     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  11179     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  11180     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  11181     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  11182     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  11183     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  11184     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  11185     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  11186     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  11187     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  11188     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11190     _flag_k = FK_CMP;
  11191     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  11192 L_380252A0:
  11193     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  11194 L_380252A3:
  11195     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  11196     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  11197     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  11198     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  11199     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  11200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11201     _flag_k = FK_CMP;
  11202     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  11203 L_380252B1:
  11204     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  11205     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  11206     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  11207 L_380252BC:
  11208     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  11209     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  11210     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11212     _flag_k = FK_CMP;
  11213     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  11214 L_380252C4:
  11215     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  11216     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  11217     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  11218 L_380252CF:
  11219     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  11220     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  11221     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  11222 L_380252D9:
  11223     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  11224     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  11225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11226     _flag_k = FK_NARROW(FK_CMP, 24);
  11227     RECOMP_BACKEDGE();
  11228     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  11229 L_380252E3:
  11230     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  11231     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  11232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11233     _flag_k = FK_CMP;
  11234     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  11235 L_380252E7:
  11236     eax = ecx; /* 0x380252E7: mov eax, ecx */
  11237     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  11238     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  11239     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  11240     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  11241     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  11242     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11244     _flag_k = FK_CMP;
  11245     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  11246 L_380252F8:
  11247     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  11248 L_380252FB:
  11249     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  11250     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  11251     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  11252     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  11253     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  11254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11255     _flag_k = FK_CMP;
  11256     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  11257 L_38025309:
  11258     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  11259     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  11260 L_3802530E:
  11261     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  11262     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  11263     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  11264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11265     _flag_k = FK_CMP;
  11266     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  11267 L_38025316:
  11268     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  11269     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  11270 L_3802531B:
  11271     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  11272 L_3802531D:
  11273     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  11274     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  11275 L_38025323:
  11276     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  11277     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  11278     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  11279     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  11280     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  11281     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  11282     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  11283     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  11284     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  11285     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  11286     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  11287     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  11288     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11290     _flag_k = FK_CMP;
  11291     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  11292 L_38025348:
  11293     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  11294 L_3802534B:
  11295     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  11296     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  11297     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  11298     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  11299     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  11300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11301     _flag_k = FK_CMP;
  11302     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  11303 L_38025359:
  11304     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  11305     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  11306 L_3802535E:
  11307     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  11308     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  11309     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  11310     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11311     _flag_k = FK_CMP;
  11312     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  11313 L_38025365:
  11314     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  11315     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  11316 L_38025369:
  11317     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  11318 L_3802536C:
  11319     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  11320 L_3802536E:
  11321     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  11322 L_38025371:
  11323     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  11324     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  11325     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  11326     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11327     _flag_k = FK_CMP;
  11328     RECOMP_BACKEDGE();
  11329     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  11330 L_3802537D:
  11331     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  11332     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  11333     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  11334     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  11335     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  11336     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  11337     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  11338     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  11339     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  11340     esp = ebp; /* 0x38025391: mov esp, ebp */
  11341     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  11342     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  11343     RECOMP_REGS_OUT();
  11344 }
  11345 
  11346 void sub_380251FD(void) {
  11347     int _fpu_cmp = 0;
  11348     uint32_t _cf = 0;
  11349     int _df = 1;
  11350     uint32_t _flag_k = FK_NONE;
  11351     uint32_t _flag_a = 0, _flag_b = 0;
  11352     uint32_t _itail_tgt = 0;
  11353     RECOMP_REGS_LOCALS
  11354     RECOMP_ENTER(0x380251FDu);
  11355 
  11356 L_380251FD:
  11357     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  11358     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  11359     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  11360     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  11361     _cf = 0;
  11362     _flag_k = FK_NARROW(FK_TEST, 24);
  11363     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  11364 L_3802520B:
  11365     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  11366     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  11367     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  11368     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  11369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11370     _flag_k = FK_CMP;
  11371     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  11372 L_38025218:
  11373     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  11374     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  11375     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  11376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11377     _flag_k = FK_NARROW(FK_CMP, 24);
  11378     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  11379 L_38025221:
  11380     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  11381     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  11382     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  11383     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  11384     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  11385     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  11386     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  11387     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  11388 L_3802523C:
  11389     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  11390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  11391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11392     _flag_k = FK_CMP;
  11393     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  11394 L_38025241:
  11395     eax = ecx; /* 0x38025241: mov eax, ecx */
  11396     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  11397     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  11398     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  11399     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  11400     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  11401     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11403     _flag_k = FK_CMP;
  11404     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  11405 L_38025252:
  11406     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  11407 L_38025255:
  11408     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  11409     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  11410     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  11411     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  11412     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  11413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11414     _flag_k = FK_CMP;
  11415     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  11416 L_38025263:
  11417     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  11418     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  11419 L_38025268:
  11420     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  11421     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  11422     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  11423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11424     _flag_k = FK_CMP;
  11425     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  11426 L_3802526F:
  11427     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  11428     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  11429 L_38025273:
  11430     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  11431 L_38025276:
  11432     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  11433     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  11434 L_3802527B:
  11435     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  11436     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  11437     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  11438     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  11439     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  11440     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  11441     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  11442     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  11443     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  11444     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  11445     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  11446     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  11447     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11449     _flag_k = FK_CMP;
  11450     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  11451 L_380252A0:
  11452     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  11453 L_380252A3:
  11454     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  11455     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  11456     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  11457     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  11458     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  11459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11460     _flag_k = FK_CMP;
  11461     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  11462 L_380252B1:
  11463     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  11464     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  11465     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  11466 L_380252BC:
  11467     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  11468     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  11469     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11471     _flag_k = FK_CMP;
  11472     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  11473 L_380252C4:
  11474     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  11475     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  11476     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  11477 L_380252CF:
  11478     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  11479     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  11480     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  11481 L_380252D9:
  11482     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  11483     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  11484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11485     _flag_k = FK_NARROW(FK_CMP, 24);
  11486     RECOMP_BACKEDGE();
  11487     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  11488 L_380252E3:
  11489     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  11490     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  11491     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11492     _flag_k = FK_CMP;
  11493     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  11494 L_380252E7:
  11495     eax = ecx; /* 0x380252E7: mov eax, ecx */
  11496     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  11497     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  11498     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  11499     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  11500     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  11501     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11503     _flag_k = FK_CMP;
  11504     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  11505 L_380252F8:
  11506     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  11507 L_380252FB:
  11508     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  11509     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  11510     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  11511     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  11512     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  11513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11514     _flag_k = FK_CMP;
  11515     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  11516 L_38025309:
  11517     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  11518     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  11519 L_3802530E:
  11520     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  11521     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  11522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  11523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11524     _flag_k = FK_CMP;
  11525     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  11526 L_38025316:
  11527     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  11528     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  11529 L_3802531B:
  11530     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  11531 L_3802531D:
  11532     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  11533     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  11534 L_38025323:
  11535     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  11536     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  11537     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  11538     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  11539     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  11540     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  11541     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  11542     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  11543     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  11544     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  11545     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  11546     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  11547     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11549     _flag_k = FK_CMP;
  11550     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  11551 L_38025348:
  11552     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  11553 L_3802534B:
  11554     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  11555     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  11556     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  11557     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  11558     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  11559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11560     _flag_k = FK_CMP;
  11561     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  11562 L_38025359:
  11563     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  11564     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  11565 L_3802535E:
  11566     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  11567     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  11568     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  11569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11570     _flag_k = FK_CMP;
  11571     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  11572 L_38025365:
  11573     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  11574     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  11575 L_38025369:
  11576     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  11577 L_3802536C:
  11578     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  11579 L_3802536E:
  11580     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  11581 L_38025371:
  11582     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  11583     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  11584     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  11585     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11586     _flag_k = FK_CMP;
  11587     RECOMP_BACKEDGE();
  11588     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  11589 L_3802537D:
  11590     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  11591     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  11592     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  11593     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  11594     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  11595     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  11596     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  11597     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  11598     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  11599     esp = ebp; /* 0x38025391: mov esp, ebp */
  11600     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  11601     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  11602     RECOMP_REGS_OUT();
  11603 }
  11604 
  11605 void sub_38025221(void) {
  11606     int _fpu_cmp = 0;
  11607     uint32_t _cf = 0;
  11608     int _df = 1;
  11609     uint32_t _flag_k = FK_NONE;
  11610     uint32_t _flag_a = 0, _flag_b = 0;
  11611     uint32_t _itail_tgt = 0;
  11612     RECOMP_REGS_LOCALS
  11613     RECOMP_ENTER(0x38025221u);
  11614 
  11615     goto L_38025221;
  11616 L_380251FD:
  11617     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  11618     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  11619     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  11620     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  11621     _cf = 0;
  11622     _flag_k = FK_NARROW(FK_TEST, 24);
  11623     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  11624 L_3802520B:
  11625     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  11626     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  11627     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  11628     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  11629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11630     _flag_k = FK_CMP;
  11631     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  11632 L_38025218:
  11633     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  11634     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  11635     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  11636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11637     _flag_k = FK_NARROW(FK_CMP, 24);
  11638     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  11639 L_38025221:
  11640     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  11641     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  11642     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  11643     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  11644     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  11645     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  11646     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  11647     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  11648 L_3802523C:
  11649     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  11650     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  11651     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11652     _flag_k = FK_CMP;
  11653     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  11654 L_38025241:
  11655     eax = ecx; /* 0x38025241: mov eax, ecx */
  11656     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  11657     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  11658     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  11659     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  11660     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  11661     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11663     _flag_k = FK_CMP;
  11664     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  11665 L_38025252:
  11666     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  11667 L_38025255:
  11668     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  11669     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  11670     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  11671     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  11672     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  11673     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11674     _flag_k = FK_CMP;
  11675     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  11676 L_38025263:
  11677     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  11678     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  11679 L_38025268:
  11680     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  11681     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  11682     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  11683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11684     _flag_k = FK_CMP;
  11685     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  11686 L_3802526F:
  11687     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  11688     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  11689 L_38025273:
  11690     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  11691 L_38025276:
  11692     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  11693     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  11694 L_3802527B:
  11695     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  11696     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  11697     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  11698     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  11699     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  11700     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  11701     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  11702     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  11703     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  11704     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  11705     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  11706     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  11707     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11708     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11709     _flag_k = FK_CMP;
  11710     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  11711 L_380252A0:
  11712     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  11713 L_380252A3:
  11714     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  11715     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  11716     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  11717     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  11718     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  11719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11720     _flag_k = FK_CMP;
  11721     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  11722 L_380252B1:
  11723     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  11724     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  11725     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  11726 L_380252BC:
  11727     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  11728     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  11729     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11731     _flag_k = FK_CMP;
  11732     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  11733 L_380252C4:
  11734     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  11735     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  11736     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  11737 L_380252CF:
  11738     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  11739     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  11740     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  11741 L_380252D9:
  11742     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  11743     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  11744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11745     _flag_k = FK_NARROW(FK_CMP, 24);
  11746     RECOMP_BACKEDGE();
  11747     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  11748 L_380252E3:
  11749     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  11750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  11751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11752     _flag_k = FK_CMP;
  11753     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  11754 L_380252E7:
  11755     eax = ecx; /* 0x380252E7: mov eax, ecx */
  11756     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  11757     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  11758     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  11759     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  11760     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  11761     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11763     _flag_k = FK_CMP;
  11764     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  11765 L_380252F8:
  11766     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  11767 L_380252FB:
  11768     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  11769     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  11770     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  11771     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  11772     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  11773     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11774     _flag_k = FK_CMP;
  11775     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  11776 L_38025309:
  11777     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  11778     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  11779 L_3802530E:
  11780     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  11781     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  11782     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  11783     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11784     _flag_k = FK_CMP;
  11785     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  11786 L_38025316:
  11787     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  11788     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  11789 L_3802531B:
  11790     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  11791 L_3802531D:
  11792     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  11793     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  11794 L_38025323:
  11795     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  11796     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  11797     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  11798     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  11799     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  11800     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  11801     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  11802     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  11803     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  11804     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  11805     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  11806     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  11807     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11809     _flag_k = FK_CMP;
  11810     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  11811 L_38025348:
  11812     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  11813 L_3802534B:
  11814     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  11815     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  11816     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  11817     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  11818     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  11819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11820     _flag_k = FK_CMP;
  11821     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  11822 L_38025359:
  11823     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  11824     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  11825 L_3802535E:
  11826     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  11827     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  11828     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  11829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11830     _flag_k = FK_CMP;
  11831     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  11832 L_38025365:
  11833     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  11834     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  11835 L_38025369:
  11836     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  11837 L_3802536C:
  11838     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  11839 L_3802536E:
  11840     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  11841 L_38025371:
  11842     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  11843     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  11844     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  11845     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11846     _flag_k = FK_CMP;
  11847     RECOMP_BACKEDGE();
  11848     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  11849 L_3802537D:
  11850     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  11851     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  11852     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  11853     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  11854     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  11855     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  11856     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  11857     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  11858     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  11859     esp = ebp; /* 0x38025391: mov esp, ebp */
  11860     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  11861     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  11862     RECOMP_REGS_OUT();
  11863 }
  11864 
  11865 void sub_38025276(void) {
  11866     int _fpu_cmp = 0;
  11867     uint32_t _cf = 0;
  11868     int _df = 1;
  11869     uint32_t _flag_k = FK_NONE;
  11870     uint32_t _flag_a = 0, _flag_b = 0;
  11871     uint32_t _itail_tgt = 0;
  11872     RECOMP_REGS_LOCALS
  11873     RECOMP_ENTER(0x38025276u);
  11874 
  11875     goto L_38025276;
  11876 L_380251FD:
  11877     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  11878     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  11879     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  11880     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  11881     _cf = 0;
  11882     _flag_k = FK_NARROW(FK_TEST, 24);
  11883     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  11884 L_3802520B:
  11885     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  11886     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  11887     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  11888     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  11889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11890     _flag_k = FK_CMP;
  11891     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  11892 L_38025218:
  11893     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  11894     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  11895     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  11896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11897     _flag_k = FK_NARROW(FK_CMP, 24);
  11898     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  11899 L_38025221:
  11900     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  11901     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  11902     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  11903     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  11904     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  11905     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  11906     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  11907     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  11908 L_3802523C:
  11909     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  11910     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  11911     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11912     _flag_k = FK_CMP;
  11913     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  11914 L_38025241:
  11915     eax = ecx; /* 0x38025241: mov eax, ecx */
  11916     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  11917     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  11918     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  11919     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  11920     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  11921     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11922     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11923     _flag_k = FK_CMP;
  11924     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  11925 L_38025252:
  11926     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  11927 L_38025255:
  11928     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  11929     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  11930     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  11931     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  11932     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  11933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11934     _flag_k = FK_CMP;
  11935     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  11936 L_38025263:
  11937     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  11938     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  11939 L_38025268:
  11940     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  11941     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  11942     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  11943     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11944     _flag_k = FK_CMP;
  11945     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  11946 L_3802526F:
  11947     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  11948     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  11949 L_38025273:
  11950     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  11951 L_38025276:
  11952     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  11953     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  11954 L_3802527B:
  11955     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  11956     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  11957     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  11958     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  11959     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  11960     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  11961     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  11962     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  11963     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  11964     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  11965     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  11966     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  11967     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11969     _flag_k = FK_CMP;
  11970     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  11971 L_380252A0:
  11972     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  11973 L_380252A3:
  11974     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  11975     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  11976     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  11977     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  11978     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  11979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11980     _flag_k = FK_CMP;
  11981     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  11982 L_380252B1:
  11983     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  11984     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  11985     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  11986 L_380252BC:
  11987     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  11988     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  11989     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  11990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11991     _flag_k = FK_CMP;
  11992     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  11993 L_380252C4:
  11994     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  11995     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  11996     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  11997 L_380252CF:
  11998     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  11999     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  12000     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  12001 L_380252D9:
  12002     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  12003     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  12004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12005     _flag_k = FK_NARROW(FK_CMP, 24);
  12006     RECOMP_BACKEDGE();
  12007     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  12008 L_380252E3:
  12009     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  12010     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  12011     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12012     _flag_k = FK_CMP;
  12013     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  12014 L_380252E7:
  12015     eax = ecx; /* 0x380252E7: mov eax, ecx */
  12016     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  12017     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  12018     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  12019     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  12020     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  12021     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12023     _flag_k = FK_CMP;
  12024     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  12025 L_380252F8:
  12026     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  12027 L_380252FB:
  12028     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  12029     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  12030     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  12031     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  12032     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12033     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12034     _flag_k = FK_CMP;
  12035     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  12036 L_38025309:
  12037     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  12038     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  12039 L_3802530E:
  12040     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  12041     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  12042     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  12043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12044     _flag_k = FK_CMP;
  12045     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  12046 L_38025316:
  12047     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  12048     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  12049 L_3802531B:
  12050     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  12051 L_3802531D:
  12052     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  12053     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  12054 L_38025323:
  12055     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  12056     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  12057     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  12058     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  12059     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  12060     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  12061     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  12062     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  12063     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  12064     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  12065     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  12066     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  12067     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12069     _flag_k = FK_CMP;
  12070     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  12071 L_38025348:
  12072     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  12073 L_3802534B:
  12074     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  12075     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  12076     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  12077     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  12078     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  12079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12080     _flag_k = FK_CMP;
  12081     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  12082 L_38025359:
  12083     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  12084     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  12085 L_3802535E:
  12086     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  12087     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  12088     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  12089     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12090     _flag_k = FK_CMP;
  12091     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  12092 L_38025365:
  12093     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  12094     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  12095 L_38025369:
  12096     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  12097 L_3802536C:
  12098     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  12099 L_3802536E:
  12100     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  12101 L_38025371:
  12102     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  12103     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  12104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  12105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12106     _flag_k = FK_CMP;
  12107     RECOMP_BACKEDGE();
  12108     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  12109 L_3802537D:
  12110     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  12111     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  12112     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  12113     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  12114     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  12115     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  12116     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  12117     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  12118     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  12119     esp = ebp; /* 0x38025391: mov esp, ebp */
  12120     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  12121     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  12122     RECOMP_REGS_OUT();
  12123 }
  12124 
  12125 void sub_3802527B(void) {
  12126     int _fpu_cmp = 0;
  12127     uint32_t _cf = 0;
  12128     int _df = 1;
  12129     uint32_t _flag_k = FK_NONE;
  12130     uint32_t _flag_a = 0, _flag_b = 0;
  12131     uint32_t _itail_tgt = 0;
  12132     RECOMP_REGS_LOCALS
  12133     RECOMP_ENTER(0x3802527Bu);
  12134 
  12135     goto L_3802527B;
  12136 L_380251FD:
  12137     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  12138     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  12139     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  12140     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  12141     _cf = 0;
  12142     _flag_k = FK_NARROW(FK_TEST, 24);
  12143     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  12144 L_3802520B:
  12145     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  12146     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  12147     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  12148     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  12149     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12150     _flag_k = FK_CMP;
  12151     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  12152 L_38025218:
  12153     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  12154     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  12155     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  12156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12157     _flag_k = FK_NARROW(FK_CMP, 24);
  12158     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  12159 L_38025221:
  12160     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  12161     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  12162     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  12163     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  12164     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  12165     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  12166     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  12167     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  12168 L_3802523C:
  12169     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  12170     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  12171     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12172     _flag_k = FK_CMP;
  12173     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  12174 L_38025241:
  12175     eax = ecx; /* 0x38025241: mov eax, ecx */
  12176     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  12177     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  12178     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  12179     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  12180     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  12181     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12183     _flag_k = FK_CMP;
  12184     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  12185 L_38025252:
  12186     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  12187 L_38025255:
  12188     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  12189     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  12190     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  12191     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  12192     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12194     _flag_k = FK_CMP;
  12195     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  12196 L_38025263:
  12197     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  12198     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  12199 L_38025268:
  12200     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  12201     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  12202     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  12203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12204     _flag_k = FK_CMP;
  12205     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  12206 L_3802526F:
  12207     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  12208     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  12209 L_38025273:
  12210     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  12211 L_38025276:
  12212     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  12213     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  12214 L_3802527B:
  12215     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  12216     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  12217     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  12218     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  12219     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  12220     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  12221     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  12222     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  12223     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  12224     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  12225     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  12226     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  12227     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12229     _flag_k = FK_CMP;
  12230     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  12231 L_380252A0:
  12232     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  12233 L_380252A3:
  12234     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  12235     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  12236     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  12237     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  12238     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  12239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12240     _flag_k = FK_CMP;
  12241     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  12242 L_380252B1:
  12243     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  12244     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  12245     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  12246 L_380252BC:
  12247     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  12248     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  12249     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12251     _flag_k = FK_CMP;
  12252     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  12253 L_380252C4:
  12254     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  12255     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  12256     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  12257 L_380252CF:
  12258     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  12259     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  12260     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  12261 L_380252D9:
  12262     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  12263     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  12264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12265     _flag_k = FK_NARROW(FK_CMP, 24);
  12266     RECOMP_BACKEDGE();
  12267     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  12268 L_380252E3:
  12269     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  12270     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  12271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12272     _flag_k = FK_CMP;
  12273     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  12274 L_380252E7:
  12275     eax = ecx; /* 0x380252E7: mov eax, ecx */
  12276     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  12277     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  12278     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  12279     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  12280     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  12281     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12283     _flag_k = FK_CMP;
  12284     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  12285 L_380252F8:
  12286     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  12287 L_380252FB:
  12288     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  12289     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  12290     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  12291     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  12292     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12294     _flag_k = FK_CMP;
  12295     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  12296 L_38025309:
  12297     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  12298     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  12299 L_3802530E:
  12300     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  12301     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  12302     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  12303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12304     _flag_k = FK_CMP;
  12305     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  12306 L_38025316:
  12307     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  12308     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  12309 L_3802531B:
  12310     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  12311 L_3802531D:
  12312     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  12313     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  12314 L_38025323:
  12315     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  12316     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  12317     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  12318     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  12319     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  12320     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  12321     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  12322     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  12323     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  12324     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  12325     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  12326     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  12327     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12329     _flag_k = FK_CMP;
  12330     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  12331 L_38025348:
  12332     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  12333 L_3802534B:
  12334     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  12335     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  12336     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  12337     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  12338     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  12339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12340     _flag_k = FK_CMP;
  12341     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  12342 L_38025359:
  12343     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  12344     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  12345 L_3802535E:
  12346     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  12347     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  12348     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  12349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12350     _flag_k = FK_CMP;
  12351     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  12352 L_38025365:
  12353     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  12354     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  12355 L_38025369:
  12356     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  12357 L_3802536C:
  12358     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  12359 L_3802536E:
  12360     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  12361 L_38025371:
  12362     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  12363     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  12364     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  12365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12366     _flag_k = FK_CMP;
  12367     RECOMP_BACKEDGE();
  12368     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  12369 L_3802537D:
  12370     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  12371     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  12372     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  12373     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  12374     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  12375     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  12376     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  12377     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  12378     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  12379     esp = ebp; /* 0x38025391: mov esp, ebp */
  12380     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  12381     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  12382     RECOMP_REGS_OUT();
  12383 }
  12384 
  12385 void sub_380252D9(void) {
  12386     int _fpu_cmp = 0;
  12387     uint32_t _cf = 0;
  12388     int _df = 1;
  12389     uint32_t _flag_k = FK_NONE;
  12390     uint32_t _flag_a = 0, _flag_b = 0;
  12391     uint32_t _itail_tgt = 0;
  12392     RECOMP_REGS_LOCALS
  12393     RECOMP_ENTER(0x380252D9u);
  12394 
  12395     goto L_380252D9;
  12396 L_380251FD:
  12397     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  12398     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  12399     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  12400     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  12401     _cf = 0;
  12402     _flag_k = FK_NARROW(FK_TEST, 24);
  12403     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  12404 L_3802520B:
  12405     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  12406     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  12407     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  12408     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  12409     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12410     _flag_k = FK_CMP;
  12411     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  12412 L_38025218:
  12413     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  12414     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  12415     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  12416     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12417     _flag_k = FK_NARROW(FK_CMP, 24);
  12418     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  12419 L_38025221:
  12420     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  12421     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  12422     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  12423     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  12424     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  12425     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  12426     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  12427     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  12428 L_3802523C:
  12429     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  12430     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  12431     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12432     _flag_k = FK_CMP;
  12433     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  12434 L_38025241:
  12435     eax = ecx; /* 0x38025241: mov eax, ecx */
  12436     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  12437     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  12438     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  12439     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  12440     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  12441     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12442     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12443     _flag_k = FK_CMP;
  12444     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  12445 L_38025252:
  12446     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  12447 L_38025255:
  12448     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  12449     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  12450     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  12451     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  12452     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12454     _flag_k = FK_CMP;
  12455     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  12456 L_38025263:
  12457     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  12458     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  12459 L_38025268:
  12460     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  12461     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  12462     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  12463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12464     _flag_k = FK_CMP;
  12465     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  12466 L_3802526F:
  12467     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  12468     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  12469 L_38025273:
  12470     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  12471 L_38025276:
  12472     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  12473     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  12474 L_3802527B:
  12475     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  12476     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  12477     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  12478     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  12479     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  12480     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  12481     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  12482     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  12483     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  12484     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  12485     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  12486     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  12487     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12489     _flag_k = FK_CMP;
  12490     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  12491 L_380252A0:
  12492     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  12493 L_380252A3:
  12494     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  12495     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  12496     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  12497     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  12498     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  12499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12500     _flag_k = FK_CMP;
  12501     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  12502 L_380252B1:
  12503     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  12504     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  12505     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  12506 L_380252BC:
  12507     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  12508     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  12509     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12511     _flag_k = FK_CMP;
  12512     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  12513 L_380252C4:
  12514     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  12515     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  12516     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  12517 L_380252CF:
  12518     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  12519     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  12520     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  12521 L_380252D9:
  12522     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  12523     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  12524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12525     _flag_k = FK_NARROW(FK_CMP, 24);
  12526     RECOMP_BACKEDGE();
  12527     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  12528 L_380252E3:
  12529     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  12530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  12531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12532     _flag_k = FK_CMP;
  12533     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  12534 L_380252E7:
  12535     eax = ecx; /* 0x380252E7: mov eax, ecx */
  12536     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  12537     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  12538     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  12539     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  12540     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  12541     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12543     _flag_k = FK_CMP;
  12544     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  12545 L_380252F8:
  12546     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  12547 L_380252FB:
  12548     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  12549     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  12550     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  12551     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  12552     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12553     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12554     _flag_k = FK_CMP;
  12555     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  12556 L_38025309:
  12557     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  12558     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  12559 L_3802530E:
  12560     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  12561     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  12562     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  12563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12564     _flag_k = FK_CMP;
  12565     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  12566 L_38025316:
  12567     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  12568     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  12569 L_3802531B:
  12570     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  12571 L_3802531D:
  12572     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  12573     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  12574 L_38025323:
  12575     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  12576     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  12577     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  12578     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  12579     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  12580     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  12581     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  12582     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  12583     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  12584     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  12585     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  12586     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  12587     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12589     _flag_k = FK_CMP;
  12590     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  12591 L_38025348:
  12592     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  12593 L_3802534B:
  12594     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  12595     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  12596     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  12597     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  12598     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  12599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12600     _flag_k = FK_CMP;
  12601     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  12602 L_38025359:
  12603     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  12604     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  12605 L_3802535E:
  12606     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  12607     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  12608     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  12609     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12610     _flag_k = FK_CMP;
  12611     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  12612 L_38025365:
  12613     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  12614     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  12615 L_38025369:
  12616     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  12617 L_3802536C:
  12618     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  12619 L_3802536E:
  12620     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  12621 L_38025371:
  12622     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  12623     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  12624     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  12625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12626     _flag_k = FK_CMP;
  12627     RECOMP_BACKEDGE();
  12628     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  12629 L_3802537D:
  12630     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  12631     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  12632     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  12633     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  12634     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  12635     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  12636     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  12637     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  12638     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  12639     esp = ebp; /* 0x38025391: mov esp, ebp */
  12640     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  12641     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  12642     RECOMP_REGS_OUT();
  12643 }
  12644 
  12645 void sub_3802531D(void) {
  12646     int _fpu_cmp = 0;
  12647     uint32_t _cf = 0;
  12648     int _df = 1;
  12649     uint32_t _flag_k = FK_NONE;
  12650     uint32_t _flag_a = 0, _flag_b = 0;
  12651     uint32_t _itail_tgt = 0;
  12652     RECOMP_REGS_LOCALS
  12653     RECOMP_ENTER(0x3802531Du);
  12654 
  12655     goto L_3802531D;
  12656 L_380251FD:
  12657     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  12658     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  12659     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  12660     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  12661     _cf = 0;
  12662     _flag_k = FK_NARROW(FK_TEST, 24);
  12663     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  12664 L_3802520B:
  12665     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  12666     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  12667     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  12668     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  12669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12670     _flag_k = FK_CMP;
  12671     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  12672 L_38025218:
  12673     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  12674     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  12675     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  12676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12677     _flag_k = FK_NARROW(FK_CMP, 24);
  12678     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  12679 L_38025221:
  12680     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  12681     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  12682     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  12683     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  12684     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  12685     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  12686     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  12687     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  12688 L_3802523C:
  12689     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  12690     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  12691     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12692     _flag_k = FK_CMP;
  12693     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  12694 L_38025241:
  12695     eax = ecx; /* 0x38025241: mov eax, ecx */
  12696     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  12697     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  12698     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  12699     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  12700     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  12701     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12703     _flag_k = FK_CMP;
  12704     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  12705 L_38025252:
  12706     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  12707 L_38025255:
  12708     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  12709     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  12710     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  12711     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  12712     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12714     _flag_k = FK_CMP;
  12715     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  12716 L_38025263:
  12717     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  12718     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  12719 L_38025268:
  12720     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  12721     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  12722     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  12723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12724     _flag_k = FK_CMP;
  12725     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  12726 L_3802526F:
  12727     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  12728     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  12729 L_38025273:
  12730     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  12731 L_38025276:
  12732     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  12733     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  12734 L_3802527B:
  12735     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  12736     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  12737     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  12738     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  12739     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  12740     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  12741     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  12742     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  12743     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  12744     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  12745     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  12746     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  12747     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12749     _flag_k = FK_CMP;
  12750     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  12751 L_380252A0:
  12752     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  12753 L_380252A3:
  12754     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  12755     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  12756     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  12757     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  12758     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  12759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12760     _flag_k = FK_CMP;
  12761     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  12762 L_380252B1:
  12763     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  12764     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  12765     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  12766 L_380252BC:
  12767     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  12768     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  12769     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  12770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12771     _flag_k = FK_CMP;
  12772     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  12773 L_380252C4:
  12774     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  12775     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  12776     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  12777 L_380252CF:
  12778     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  12779     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  12780     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  12781 L_380252D9:
  12782     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  12783     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  12784     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12785     _flag_k = FK_NARROW(FK_CMP, 24);
  12786     RECOMP_BACKEDGE();
  12787     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  12788 L_380252E3:
  12789     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  12790     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  12791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12792     _flag_k = FK_CMP;
  12793     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  12794 L_380252E7:
  12795     eax = ecx; /* 0x380252E7: mov eax, ecx */
  12796     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  12797     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  12798     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  12799     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  12800     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  12801     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12803     _flag_k = FK_CMP;
  12804     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  12805 L_380252F8:
  12806     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  12807 L_380252FB:
  12808     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  12809     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  12810     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  12811     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  12812     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12814     _flag_k = FK_CMP;
  12815     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  12816 L_38025309:
  12817     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  12818     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  12819 L_3802530E:
  12820     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  12821     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  12822     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  12823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12824     _flag_k = FK_CMP;
  12825     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  12826 L_38025316:
  12827     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  12828     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  12829 L_3802531B:
  12830     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  12831 L_3802531D:
  12832     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  12833     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  12834 L_38025323:
  12835     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  12836     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  12837     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  12838     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  12839     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  12840     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  12841     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  12842     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  12843     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  12844     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  12845     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  12846     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  12847     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12849     _flag_k = FK_CMP;
  12850     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  12851 L_38025348:
  12852     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  12853 L_3802534B:
  12854     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  12855     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  12856     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  12857     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  12858     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  12859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12860     _flag_k = FK_CMP;
  12861     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  12862 L_38025359:
  12863     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  12864     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  12865 L_3802535E:
  12866     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  12867     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  12868     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  12869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12870     _flag_k = FK_CMP;
  12871     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  12872 L_38025365:
  12873     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  12874     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  12875 L_38025369:
  12876     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  12877 L_3802536C:
  12878     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  12879 L_3802536E:
  12880     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  12881 L_38025371:
  12882     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  12883     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  12884     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  12885     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12886     _flag_k = FK_CMP;
  12887     RECOMP_BACKEDGE();
  12888     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  12889 L_3802537D:
  12890     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  12891     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  12892     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  12893     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  12894     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  12895     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  12896     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  12897     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  12898     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  12899     esp = ebp; /* 0x38025391: mov esp, ebp */
  12900     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  12901     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  12902     RECOMP_REGS_OUT();
  12903 }
  12904 
  12905 void sub_38025323(void) {
  12906     int _fpu_cmp = 0;
  12907     uint32_t _cf = 0;
  12908     int _df = 1;
  12909     uint32_t _flag_k = FK_NONE;
  12910     uint32_t _flag_a = 0, _flag_b = 0;
  12911     uint32_t _itail_tgt = 0;
  12912     RECOMP_REGS_LOCALS
  12913     RECOMP_ENTER(0x38025323u);
  12914 
  12915     goto L_38025323;
  12916 L_380251FD:
  12917     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  12918     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  12919     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  12920     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  12921     _cf = 0;
  12922     _flag_k = FK_NARROW(FK_TEST, 24);
  12923     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  12924 L_3802520B:
  12925     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  12926     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  12927     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  12928     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  12929     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12930     _flag_k = FK_CMP;
  12931     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  12932 L_38025218:
  12933     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  12934     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  12935     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  12936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12937     _flag_k = FK_NARROW(FK_CMP, 24);
  12938     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  12939 L_38025221:
  12940     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  12941     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  12942     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  12943     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  12944     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  12945     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  12946     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  12947     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  12948 L_3802523C:
  12949     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  12950     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  12951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12952     _flag_k = FK_CMP;
  12953     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  12954 L_38025241:
  12955     eax = ecx; /* 0x38025241: mov eax, ecx */
  12956     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  12957     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  12958     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  12959     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  12960     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  12961     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12963     _flag_k = FK_CMP;
  12964     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  12965 L_38025252:
  12966     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  12967 L_38025255:
  12968     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  12969     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  12970     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  12971     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  12972     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12974     _flag_k = FK_CMP;
  12975     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  12976 L_38025263:
  12977     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  12978     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  12979 L_38025268:
  12980     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  12981     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  12982     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  12983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12984     _flag_k = FK_CMP;
  12985     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  12986 L_3802526F:
  12987     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  12988     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  12989 L_38025273:
  12990     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  12991 L_38025276:
  12992     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  12993     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  12994 L_3802527B:
  12995     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  12996     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  12997     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  12998     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  12999     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  13000     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  13001     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  13002     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  13003     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  13004     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  13005     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  13006     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  13007     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13009     _flag_k = FK_CMP;
  13010     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  13011 L_380252A0:
  13012     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  13013 L_380252A3:
  13014     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  13015     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  13016     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  13017     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  13018     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  13019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13020     _flag_k = FK_CMP;
  13021     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  13022 L_380252B1:
  13023     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  13024     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  13025     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  13026 L_380252BC:
  13027     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  13028     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  13029     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13031     _flag_k = FK_CMP;
  13032     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  13033 L_380252C4:
  13034     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  13035     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  13036     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  13037 L_380252CF:
  13038     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  13039     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  13040     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  13041 L_380252D9:
  13042     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  13043     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  13044     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13045     _flag_k = FK_NARROW(FK_CMP, 24);
  13046     RECOMP_BACKEDGE();
  13047     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  13048 L_380252E3:
  13049     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  13050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  13051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13052     _flag_k = FK_CMP;
  13053     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  13054 L_380252E7:
  13055     eax = ecx; /* 0x380252E7: mov eax, ecx */
  13056     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  13057     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  13058     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  13059     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  13060     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  13061     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13063     _flag_k = FK_CMP;
  13064     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  13065 L_380252F8:
  13066     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  13067 L_380252FB:
  13068     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  13069     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  13070     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  13071     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  13072     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  13073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13074     _flag_k = FK_CMP;
  13075     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  13076 L_38025309:
  13077     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  13078     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  13079 L_3802530E:
  13080     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  13081     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  13082     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  13083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13084     _flag_k = FK_CMP;
  13085     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  13086 L_38025316:
  13087     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  13088     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  13089 L_3802531B:
  13090     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  13091 L_3802531D:
  13092     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  13093     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  13094 L_38025323:
  13095     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  13096     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  13097     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  13098     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  13099     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  13100     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  13101     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  13102     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  13103     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  13104     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  13105     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  13106     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  13107     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13108     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13109     _flag_k = FK_CMP;
  13110     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  13111 L_38025348:
  13112     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  13113 L_3802534B:
  13114     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  13115     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  13116     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  13117     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  13118     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  13119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13120     _flag_k = FK_CMP;
  13121     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  13122 L_38025359:
  13123     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  13124     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  13125 L_3802535E:
  13126     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  13127     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  13128     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  13129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13130     _flag_k = FK_CMP;
  13131     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  13132 L_38025365:
  13133     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  13134     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  13135 L_38025369:
  13136     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  13137 L_3802536C:
  13138     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  13139 L_3802536E:
  13140     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  13141 L_38025371:
  13142     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  13143     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  13144     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13145     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13146     _flag_k = FK_CMP;
  13147     RECOMP_BACKEDGE();
  13148     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  13149 L_3802537D:
  13150     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  13151     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  13152     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  13153     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  13154     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  13155     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  13156     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  13157     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  13158     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  13159     esp = ebp; /* 0x38025391: mov esp, ebp */
  13160     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  13161     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  13162     RECOMP_REGS_OUT();
  13163 }
  13164 
  13165 void sub_3802536C(void) {
  13166     int _fpu_cmp = 0;
  13167     uint32_t _cf = 0;
  13168     int _df = 1;
  13169     uint32_t _flag_k = FK_NONE;
  13170     uint32_t _flag_a = 0, _flag_b = 0;
  13171     uint32_t _itail_tgt = 0;
  13172     RECOMP_REGS_LOCALS
  13173     RECOMP_ENTER(0x3802536Cu);
  13174 
  13175     goto L_3802536C;
  13176 L_380251FD:
  13177     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  13178     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  13179     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  13180     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  13181     _cf = 0;
  13182     _flag_k = FK_NARROW(FK_TEST, 24);
  13183     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  13184 L_3802520B:
  13185     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  13186     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  13187     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  13188     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  13189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13190     _flag_k = FK_CMP;
  13191     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  13192 L_38025218:
  13193     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  13194     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  13195     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  13196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13197     _flag_k = FK_NARROW(FK_CMP, 24);
  13198     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  13199 L_38025221:
  13200     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  13201     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  13202     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  13203     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  13204     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  13205     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  13206     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  13207     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  13208 L_3802523C:
  13209     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  13210     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  13211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13212     _flag_k = FK_CMP;
  13213     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  13214 L_38025241:
  13215     eax = ecx; /* 0x38025241: mov eax, ecx */
  13216     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  13217     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  13218     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  13219     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  13220     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  13221     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13223     _flag_k = FK_CMP;
  13224     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  13225 L_38025252:
  13226     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  13227 L_38025255:
  13228     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  13229     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  13230     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  13231     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  13232     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  13233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13234     _flag_k = FK_CMP;
  13235     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  13236 L_38025263:
  13237     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  13238     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  13239 L_38025268:
  13240     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  13241     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  13242     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  13243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13244     _flag_k = FK_CMP;
  13245     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  13246 L_3802526F:
  13247     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  13248     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  13249 L_38025273:
  13250     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  13251 L_38025276:
  13252     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  13253     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  13254 L_3802527B:
  13255     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  13256     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  13257     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  13258     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  13259     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  13260     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  13261     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  13262     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  13263     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  13264     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  13265     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  13266     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  13267     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13269     _flag_k = FK_CMP;
  13270     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  13271 L_380252A0:
  13272     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  13273 L_380252A3:
  13274     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  13275     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  13276     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  13277     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  13278     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  13279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13280     _flag_k = FK_CMP;
  13281     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  13282 L_380252B1:
  13283     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  13284     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  13285     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  13286 L_380252BC:
  13287     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  13288     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  13289     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13291     _flag_k = FK_CMP;
  13292     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  13293 L_380252C4:
  13294     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  13295     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  13296     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  13297 L_380252CF:
  13298     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  13299     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  13300     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  13301 L_380252D9:
  13302     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  13303     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  13304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13305     _flag_k = FK_NARROW(FK_CMP, 24);
  13306     RECOMP_BACKEDGE();
  13307     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  13308 L_380252E3:
  13309     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  13310     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  13311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13312     _flag_k = FK_CMP;
  13313     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  13314 L_380252E7:
  13315     eax = ecx; /* 0x380252E7: mov eax, ecx */
  13316     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  13317     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  13318     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  13319     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  13320     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  13321     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13323     _flag_k = FK_CMP;
  13324     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  13325 L_380252F8:
  13326     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  13327 L_380252FB:
  13328     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  13329     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  13330     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  13331     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  13332     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  13333     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13334     _flag_k = FK_CMP;
  13335     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  13336 L_38025309:
  13337     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  13338     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  13339 L_3802530E:
  13340     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  13341     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  13342     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  13343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13344     _flag_k = FK_CMP;
  13345     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  13346 L_38025316:
  13347     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  13348     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  13349 L_3802531B:
  13350     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  13351 L_3802531D:
  13352     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  13353     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  13354 L_38025323:
  13355     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  13356     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  13357     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  13358     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  13359     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  13360     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  13361     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  13362     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  13363     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  13364     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  13365     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  13366     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  13367     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13368     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13369     _flag_k = FK_CMP;
  13370     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  13371 L_38025348:
  13372     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  13373 L_3802534B:
  13374     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  13375     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  13376     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  13377     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  13378     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  13379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13380     _flag_k = FK_CMP;
  13381     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  13382 L_38025359:
  13383     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  13384     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  13385 L_3802535E:
  13386     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  13387     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  13388     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  13389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13390     _flag_k = FK_CMP;
  13391     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  13392 L_38025365:
  13393     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  13394     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  13395 L_38025369:
  13396     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  13397 L_3802536C:
  13398     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  13399 L_3802536E:
  13400     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  13401 L_38025371:
  13402     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  13403     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  13404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13406     _flag_k = FK_CMP;
  13407     RECOMP_BACKEDGE();
  13408     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  13409 L_3802537D:
  13410     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  13411     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  13412     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  13413     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  13414     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  13415     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  13416     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  13417     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  13418     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  13419     esp = ebp; /* 0x38025391: mov esp, ebp */
  13420     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  13421     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  13422     RECOMP_REGS_OUT();
  13423 }
  13424 
  13425 void sub_3802536E(void) {
  13426     int _fpu_cmp = 0;
  13427     uint32_t _cf = 0;
  13428     int _df = 1;
  13429     uint32_t _flag_k = FK_NONE;
  13430     uint32_t _flag_a = 0, _flag_b = 0;
  13431     uint32_t _itail_tgt = 0;
  13432     RECOMP_REGS_LOCALS
  13433     RECOMP_ENTER(0x3802536Eu);
  13434 
  13435     goto L_3802536E;
  13436 L_380251FD:
  13437     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  13438     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  13439     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  13440     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  13441     _cf = 0;
  13442     _flag_k = FK_NARROW(FK_TEST, 24);
  13443     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  13444 L_3802520B:
  13445     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  13446     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  13447     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  13448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  13449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13450     _flag_k = FK_CMP;
  13451     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  13452 L_38025218:
  13453     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  13454     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  13455     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  13456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13457     _flag_k = FK_NARROW(FK_CMP, 24);
  13458     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  13459 L_38025221:
  13460     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  13461     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  13462     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  13463     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  13464     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  13465     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  13466     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  13467     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  13468 L_3802523C:
  13469     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  13470     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  13471     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13472     _flag_k = FK_CMP;
  13473     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  13474 L_38025241:
  13475     eax = ecx; /* 0x38025241: mov eax, ecx */
  13476     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  13477     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  13478     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  13479     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  13480     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  13481     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13483     _flag_k = FK_CMP;
  13484     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  13485 L_38025252:
  13486     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  13487 L_38025255:
  13488     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  13489     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  13490     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  13491     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  13492     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  13493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13494     _flag_k = FK_CMP;
  13495     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  13496 L_38025263:
  13497     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  13498     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  13499 L_38025268:
  13500     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  13501     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  13502     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  13503     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13504     _flag_k = FK_CMP;
  13505     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  13506 L_3802526F:
  13507     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  13508     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  13509 L_38025273:
  13510     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  13511 L_38025276:
  13512     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  13513     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  13514 L_3802527B:
  13515     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  13516     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  13517     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  13518     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  13519     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  13520     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  13521     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  13522     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  13523     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  13524     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  13525     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  13526     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  13527     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13529     _flag_k = FK_CMP;
  13530     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  13531 L_380252A0:
  13532     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  13533 L_380252A3:
  13534     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  13535     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  13536     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  13537     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  13538     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  13539     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13540     _flag_k = FK_CMP;
  13541     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  13542 L_380252B1:
  13543     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  13544     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  13545     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  13546 L_380252BC:
  13547     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  13548     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  13549     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13551     _flag_k = FK_CMP;
  13552     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  13553 L_380252C4:
  13554     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  13555     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  13556     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  13557 L_380252CF:
  13558     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  13559     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  13560     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  13561 L_380252D9:
  13562     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  13563     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  13564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13565     _flag_k = FK_NARROW(FK_CMP, 24);
  13566     RECOMP_BACKEDGE();
  13567     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  13568 L_380252E3:
  13569     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  13570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  13571     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13572     _flag_k = FK_CMP;
  13573     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  13574 L_380252E7:
  13575     eax = ecx; /* 0x380252E7: mov eax, ecx */
  13576     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  13577     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  13578     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  13579     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  13580     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  13581     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13583     _flag_k = FK_CMP;
  13584     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  13585 L_380252F8:
  13586     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  13587 L_380252FB:
  13588     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  13589     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  13590     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  13591     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  13592     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  13593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13594     _flag_k = FK_CMP;
  13595     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  13596 L_38025309:
  13597     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  13598     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  13599 L_3802530E:
  13600     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  13601     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  13602     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  13603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13604     _flag_k = FK_CMP;
  13605     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  13606 L_38025316:
  13607     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  13608     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  13609 L_3802531B:
  13610     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  13611 L_3802531D:
  13612     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  13613     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  13614 L_38025323:
  13615     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  13616     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  13617     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  13618     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  13619     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  13620     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  13621     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  13622     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  13623     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  13624     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  13625     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  13626     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  13627     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13629     _flag_k = FK_CMP;
  13630     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  13631 L_38025348:
  13632     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  13633 L_3802534B:
  13634     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  13635     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  13636     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  13637     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  13638     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  13639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13640     _flag_k = FK_CMP;
  13641     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  13642 L_38025359:
  13643     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  13644     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  13645 L_3802535E:
  13646     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  13647     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  13648     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  13649     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13650     _flag_k = FK_CMP;
  13651     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  13652 L_38025365:
  13653     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  13654     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  13655 L_38025369:
  13656     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  13657 L_3802536C:
  13658     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  13659 L_3802536E:
  13660     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  13661 L_38025371:
  13662     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  13663     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  13664     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13666     _flag_k = FK_CMP;
  13667     RECOMP_BACKEDGE();
  13668     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  13669 L_3802537D:
  13670     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  13671     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  13672     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  13673     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  13674     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  13675     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  13676     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  13677     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  13678     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  13679     esp = ebp; /* 0x38025391: mov esp, ebp */
  13680     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  13681     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  13682     RECOMP_REGS_OUT();
  13683 }
  13684 
  13685 void sub_38025371(void) {
  13686     int _fpu_cmp = 0;
  13687     uint32_t _cf = 0;
  13688     int _df = 1;
  13689     uint32_t _flag_k = FK_NONE;
  13690     uint32_t _flag_a = 0, _flag_b = 0;
  13691     uint32_t _itail_tgt = 0;
  13692     RECOMP_REGS_LOCALS
  13693     RECOMP_ENTER(0x38025371u);
  13694 
  13695     goto L_38025371;
  13696 L_380251FD:
  13697     ecx = MEM32(eax + 0x4); /* 0x380251FD: mov ecx, dword ptr [eax + 4] */
  13698     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x38025200: mov dl, byte ptr [ecx + 0x18] */
  13699     /* test LO8(edx), LO8(edx) */ /* 0x38025203: test dl, dl */
  13700     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  13701     _cf = 0;
  13702     _flag_k = FK_NARROW(FK_TEST, 24);
  13703     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802537D; /* 0x38025205: jne 0x3802537d */
  13704 L_3802520B:
  13705     edi = MEM32(ecx + 0x4); /* 0x3802520B: mov edi, dword ptr [ecx + 4] */
  13706     edx = MEM32(edi); /* 0x3802520E: mov edx, dword ptr [edi] */
  13707     /* cmp ecx, edx */ /* 0x38025210: cmp ecx, edx */
  13708     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  13709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13710     _flag_k = FK_CMP;
  13711     if (CMP_NE(_flag_a, _flag_b)) goto L_380252D9; /* 0x38025212: jne 0x380252d9 */
  13712 L_38025218:
  13713     edx = MEM32(edi + 0x8); /* 0x38025218: mov edx, dword ptr [edi + 8] */
  13714     /* cmp MEM8(edx + 0x18), 0 */ /* 0x3802521B: cmp byte ptr [edx + 0x18], 0 */
  13715     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  13716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13717     _flag_k = FK_NARROW(FK_CMP, 24);
  13718     if (CMP_NE(_flag_a, _flag_b)) goto L_3802523C; /* 0x3802521F: jne 0x3802523c */
  13719 L_38025221:
  13720     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025221: mov byte ptr [ecx + 0x18], bl */
  13721     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025224: mov byte ptr [edx + 0x18], bl */
  13722     ecx = MEM32(eax + 0x4); /* 0x38025227: mov ecx, dword ptr [eax + 4] */
  13723     edx = MEM32(ecx + 0x4); /* 0x3802522A: mov edx, dword ptr [ecx + 4] */
  13724     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x3802522D: mov byte ptr [edx + 0x18], 0 */
  13725     eax = MEM32(eax + 0x4); /* 0x38025231: mov eax, dword ptr [eax + 4] */
  13726     eax = MEM32(eax + 0x4); /* 0x38025234: mov eax, dword ptr [eax + 4] */
  13727     goto L_38025371; /* 0x38025237: jmp 0x38025371 */
  13728 L_3802523C:
  13729     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3802523C: cmp eax, dword ptr [ecx + 8] */
  13730     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  13731     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13732     _flag_k = FK_CMP;
  13733     if (CMP_NE(_flag_a, _flag_b)) goto L_3802527B; /* 0x3802523F: jne 0x3802527b */
  13734 L_38025241:
  13735     eax = ecx; /* 0x38025241: mov eax, ecx */
  13736     ecx = MEM32(eax + 0x8); /* 0x38025243: mov ecx, dword ptr [eax + 8] */
  13737     edx = MEM32(ecx); /* 0x38025246: mov edx, dword ptr [ecx] */
  13738     MEM32(eax + 0x8) = edx; /* 0x38025248: mov dword ptr [eax + 8], edx */
  13739     edx = MEM32(ecx); /* 0x3802524B: mov edx, dword ptr [ecx] */
  13740     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3802524D: cmp edx, dword ptr [esi + 8] */
  13741     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13743     _flag_k = FK_CMP;
  13744     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025255; /* 0x38025250: je 0x38025255 */
  13745 L_38025252:
  13746     MEM32(edx + 0x4) = eax; /* 0x38025252: mov dword ptr [edx + 4], eax */
  13747 L_38025255:
  13748     edx = MEM32(eax + 0x4); /* 0x38025255: mov edx, dword ptr [eax + 4] */
  13749     MEM32(ecx + 0x4) = edx; /* 0x38025258: mov dword ptr [ecx + 4], edx */
  13750     edx = MEM32(esi + 0x4); /* 0x3802525B: mov edx, dword ptr [esi + 4] */
  13751     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3802525E: cmp eax, dword ptr [edx + 4] */
  13752     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  13753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13754     _flag_k = FK_CMP;
  13755     if (CMP_NE(_flag_a, _flag_b)) goto L_38025268; /* 0x38025261: jne 0x38025268 */
  13756 L_38025263:
  13757     MEM32(edx + 0x4) = ecx; /* 0x38025263: mov dword ptr [edx + 4], ecx */
  13758     goto L_38025276; /* 0x38025266: jmp 0x38025276 */
  13759 L_38025268:
  13760     edx = MEM32(eax + 0x4); /* 0x38025268: mov edx, dword ptr [eax + 4] */
  13761     /* cmp eax, MEM32(edx) */ /* 0x3802526B: cmp eax, dword ptr [edx] */
  13762     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  13763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13764     _flag_k = FK_CMP;
  13765     if (CMP_NE(_flag_a, _flag_b)) goto L_38025273; /* 0x3802526D: jne 0x38025273 */
  13766 L_3802526F:
  13767     MEM32(edx) = ecx; /* 0x3802526F: mov dword ptr [edx], ecx */
  13768     goto L_38025276; /* 0x38025271: jmp 0x38025276 */
  13769 L_38025273:
  13770     MEM32(edx + 0x8) = ecx; /* 0x38025273: mov dword ptr [edx + 8], ecx */
  13771 L_38025276:
  13772     MEM32(ecx) = eax; /* 0x38025276: mov dword ptr [ecx], eax */
  13773     MEM32(eax + 0x4) = ecx; /* 0x38025278: mov dword ptr [eax + 4], ecx */
  13774 L_3802527B:
  13775     ecx = MEM32(eax + 0x4); /* 0x3802527B: mov ecx, dword ptr [eax + 4] */
  13776     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3802527E: mov byte ptr [ecx + 0x18], bl */
  13777     edx = MEM32(eax + 0x4); /* 0x38025281: mov edx, dword ptr [eax + 4] */
  13778     ecx = MEM32(edx + 0x4); /* 0x38025284: mov ecx, dword ptr [edx + 4] */
  13779     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x38025287: mov byte ptr [ecx + 0x18], 0 */
  13780     edx = MEM32(eax + 0x4); /* 0x3802528B: mov edx, dword ptr [eax + 4] */
  13781     ecx = MEM32(edx + 0x4); /* 0x3802528E: mov ecx, dword ptr [edx + 4] */
  13782     edx = MEM32(ecx); /* 0x38025291: mov edx, dword ptr [ecx] */
  13783     edi = MEM32(edx + 0x8); /* 0x38025293: mov edi, dword ptr [edx + 8] */
  13784     MEM32(ecx) = edi; /* 0x38025296: mov dword ptr [ecx], edi */
  13785     edi = MEM32(edx + 0x8); /* 0x38025298: mov edi, dword ptr [edx + 8] */
  13786     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3802529B: cmp edi, dword ptr [esi + 8] */
  13787     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13789     _flag_k = FK_CMP;
  13790     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252A3; /* 0x3802529E: je 0x380252a3 */
  13791 L_380252A0:
  13792     MEM32(edi + 0x4) = ecx; /* 0x380252A0: mov dword ptr [edi + 4], ecx */
  13793 L_380252A3:
  13794     edi = MEM32(ecx + 0x4); /* 0x380252A3: mov edi, dword ptr [ecx + 4] */
  13795     MEM32(edx + 0x4) = edi; /* 0x380252A6: mov dword ptr [edx + 4], edi */
  13796     edi = MEM32(esi + 0x4); /* 0x380252A9: mov edi, dword ptr [esi + 4] */
  13797     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x380252AC: cmp ecx, dword ptr [edi + 4] */
  13798     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  13799     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13800     _flag_k = FK_CMP;
  13801     if (CMP_NE(_flag_a, _flag_b)) goto L_380252BC; /* 0x380252AF: jne 0x380252bc */
  13802 L_380252B1:
  13803     MEM32(edi + 0x4) = edx; /* 0x380252B1: mov dword ptr [edi + 4], edx */
  13804     MEM32(edx + 0x8) = ecx; /* 0x380252B4: mov dword ptr [edx + 8], ecx */
  13805     goto L_3802536E; /* 0x380252B7: jmp 0x3802536e */
  13806 L_380252BC:
  13807     edi = MEM32(ecx + 0x4); /* 0x380252BC: mov edi, dword ptr [ecx + 4] */
  13808     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x380252BF: cmp ecx, dword ptr [edi + 8] */
  13809     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  13810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13811     _flag_k = FK_CMP;
  13812     if (CMP_NE(_flag_a, _flag_b)) goto L_380252CF; /* 0x380252C2: jne 0x380252cf */
  13813 L_380252C4:
  13814     MEM32(edi + 0x8) = edx; /* 0x380252C4: mov dword ptr [edi + 8], edx */
  13815     MEM32(edx + 0x8) = ecx; /* 0x380252C7: mov dword ptr [edx + 8], ecx */
  13816     goto L_3802536E; /* 0x380252CA: jmp 0x3802536e */
  13817 L_380252CF:
  13818     MEM32(edi) = edx; /* 0x380252CF: mov dword ptr [edi], edx */
  13819     MEM32(edx + 0x8) = ecx; /* 0x380252D1: mov dword ptr [edx + 8], ecx */
  13820     goto L_3802536E; /* 0x380252D4: jmp 0x3802536e */
  13821 L_380252D9:
  13822     /* cmp MEM8(edx + 0x18), 0 */ /* 0x380252D9: cmp byte ptr [edx + 0x18], 0 */
  13823     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
  13824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13825     _flag_k = FK_NARROW(FK_CMP, 24);
  13826     RECOMP_BACKEDGE();
  13827     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025221; /* 0x380252DD: je 0x38025221 */
  13828 L_380252E3:
  13829     /* cmp eax, MEM32(ecx) */ /* 0x380252E3: cmp eax, dword ptr [ecx] */
  13830     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  13831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13832     _flag_k = FK_CMP;
  13833     if (CMP_NE(_flag_a, _flag_b)) goto L_38025323; /* 0x380252E5: jne 0x38025323 */
  13834 L_380252E7:
  13835     eax = ecx; /* 0x380252E7: mov eax, ecx */
  13836     ecx = MEM32(eax); /* 0x380252E9: mov ecx, dword ptr [eax] */
  13837     edx = MEM32(ecx + 0x8); /* 0x380252EB: mov edx, dword ptr [ecx + 8] */
  13838     MEM32(eax) = edx; /* 0x380252EE: mov dword ptr [eax], edx */
  13839     edx = MEM32(ecx + 0x8); /* 0x380252F0: mov edx, dword ptr [ecx + 8] */
  13840     /* cmp edx, MEM32(esi + 0x8) */ /* 0x380252F3: cmp edx, dword ptr [esi + 8] */
  13841     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13843     _flag_k = FK_CMP;
  13844     if (CMP_EQ(_flag_a, _flag_b)) goto L_380252FB; /* 0x380252F6: je 0x380252fb */
  13845 L_380252F8:
  13846     MEM32(edx + 0x4) = eax; /* 0x380252F8: mov dword ptr [edx + 4], eax */
  13847 L_380252FB:
  13848     edx = MEM32(eax + 0x4); /* 0x380252FB: mov edx, dword ptr [eax + 4] */
  13849     MEM32(ecx + 0x4) = edx; /* 0x380252FE: mov dword ptr [ecx + 4], edx */
  13850     edx = MEM32(esi + 0x4); /* 0x38025301: mov edx, dword ptr [esi + 4] */
  13851     /* cmp eax, MEM32(edx + 0x4) */ /* 0x38025304: cmp eax, dword ptr [edx + 4] */
  13852     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  13853     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13854     _flag_k = FK_CMP;
  13855     if (CMP_NE(_flag_a, _flag_b)) goto L_3802530E; /* 0x38025307: jne 0x3802530e */
  13856 L_38025309:
  13857     MEM32(edx + 0x4) = ecx; /* 0x38025309: mov dword ptr [edx + 4], ecx */
  13858     goto L_3802531D; /* 0x3802530C: jmp 0x3802531d */
  13859 L_3802530E:
  13860     edx = MEM32(eax + 0x4); /* 0x3802530E: mov edx, dword ptr [eax + 4] */
  13861     /* cmp eax, MEM32(edx + 0x8) */ /* 0x38025311: cmp eax, dword ptr [edx + 8] */
  13862     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  13863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13864     _flag_k = FK_CMP;
  13865     if (CMP_NE(_flag_a, _flag_b)) goto L_3802531B; /* 0x38025314: jne 0x3802531b */
  13866 L_38025316:
  13867     MEM32(edx + 0x8) = ecx; /* 0x38025316: mov dword ptr [edx + 8], ecx */
  13868     goto L_3802531D; /* 0x38025319: jmp 0x3802531d */
  13869 L_3802531B:
  13870     MEM32(edx) = ecx; /* 0x3802531B: mov dword ptr [edx], ecx */
  13871 L_3802531D:
  13872     MEM32(ecx + 0x8) = eax; /* 0x3802531D: mov dword ptr [ecx + 8], eax */
  13873     MEM32(eax + 0x4) = ecx; /* 0x38025320: mov dword ptr [eax + 4], ecx */
  13874 L_38025323:
  13875     ecx = MEM32(eax + 0x4); /* 0x38025323: mov ecx, dword ptr [eax + 4] */
  13876     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025326: mov byte ptr [ecx + 0x18], bl */
  13877     edx = MEM32(eax + 0x4); /* 0x38025329: mov edx, dword ptr [eax + 4] */
  13878     ecx = MEM32(edx + 0x4); /* 0x3802532C: mov ecx, dword ptr [edx + 4] */
  13879     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3802532F: mov byte ptr [ecx + 0x18], 0 */
  13880     edx = MEM32(eax + 0x4); /* 0x38025333: mov edx, dword ptr [eax + 4] */
  13881     ecx = MEM32(edx + 0x4); /* 0x38025336: mov ecx, dword ptr [edx + 4] */
  13882     edx = MEM32(ecx + 0x8); /* 0x38025339: mov edx, dword ptr [ecx + 8] */
  13883     edi = MEM32(edx); /* 0x3802533C: mov edi, dword ptr [edx] */
  13884     MEM32(ecx + 0x8) = edi; /* 0x3802533E: mov dword ptr [ecx + 8], edi */
  13885     edi = MEM32(edx); /* 0x38025341: mov edi, dword ptr [edx] */
  13886     /* cmp edi, MEM32(esi + 0x8) */ /* 0x38025343: cmp edi, dword ptr [esi + 8] */
  13887     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  13888     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13889     _flag_k = FK_CMP;
  13890     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802534B; /* 0x38025346: je 0x3802534b */
  13891 L_38025348:
  13892     MEM32(edi + 0x4) = ecx; /* 0x38025348: mov dword ptr [edi + 4], ecx */
  13893 L_3802534B:
  13894     edi = MEM32(ecx + 0x4); /* 0x3802534B: mov edi, dword ptr [ecx + 4] */
  13895     MEM32(edx + 0x4) = edi; /* 0x3802534E: mov dword ptr [edx + 4], edi */
  13896     edi = MEM32(esi + 0x4); /* 0x38025351: mov edi, dword ptr [esi + 4] */
  13897     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x38025354: cmp ecx, dword ptr [edi + 4] */
  13898     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  13899     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13900     _flag_k = FK_CMP;
  13901     if (CMP_NE(_flag_a, _flag_b)) goto L_3802535E; /* 0x38025357: jne 0x3802535e */
  13902 L_38025359:
  13903     MEM32(edi + 0x4) = edx; /* 0x38025359: mov dword ptr [edi + 4], edx */
  13904     goto L_3802536C; /* 0x3802535C: jmp 0x3802536c */
  13905 L_3802535E:
  13906     edi = MEM32(ecx + 0x4); /* 0x3802535E: mov edi, dword ptr [ecx + 4] */
  13907     /* cmp ecx, MEM32(edi) */ /* 0x38025361: cmp ecx, dword ptr [edi] */
  13908     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  13909     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13910     _flag_k = FK_CMP;
  13911     if (CMP_NE(_flag_a, _flag_b)) goto L_38025369; /* 0x38025363: jne 0x38025369 */
  13912 L_38025365:
  13913     MEM32(edi) = edx; /* 0x38025365: mov dword ptr [edi], edx */
  13914     goto L_3802536C; /* 0x38025367: jmp 0x3802536c */
  13915 L_38025369:
  13916     MEM32(edi + 0x8) = edx; /* 0x38025369: mov dword ptr [edi + 8], edx */
  13917 L_3802536C:
  13918     MEM32(edx) = ecx; /* 0x3802536C: mov dword ptr [edx], ecx */
  13919 L_3802536E:
  13920     MEM32(ecx + 0x4) = edx; /* 0x3802536E: mov dword ptr [ecx + 4], edx */
  13921 L_38025371:
  13922     ecx = MEM32(esi + 0x4); /* 0x38025371: mov ecx, dword ptr [esi + 4] */
  13923     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38025374: cmp eax, dword ptr [ecx + 4] */
  13924     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13926     _flag_k = FK_CMP;
  13927     RECOMP_BACKEDGE();
  13928     if (CMP_NE(_flag_a, _flag_b)) goto L_380251FD; /* 0x38025377: jne 0x380251fd */
  13929 L_3802537D:
  13930     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  13931     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  13932     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  13933     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  13934     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  13935     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  13936     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  13937     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  13938     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  13939     esp = ebp; /* 0x38025391: mov esp, ebp */
  13940     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  13941     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  13942     RECOMP_REGS_OUT();
  13943 }
  13944 
  13945 void sub_3802537D(void) {
  13946     int _fpu_cmp = 0;
  13947     uint32_t _cf = 0;
  13948     int _df = 1;
  13949     uint32_t _flag_k = FK_NONE;
  13950     uint32_t _flag_a = 0, _flag_b = 0;
  13951     uint32_t _itail_tgt = 0;
  13952     RECOMP_REGS_LOCALS
  13953     RECOMP_ENTER(0x3802537Du);
  13954 
  13955 L_3802537D:
  13956     edx = MEM32(esi + 0x4); /* 0x3802537D: mov edx, dword ptr [esi + 4] */
  13957     eax = MEM32(edx + 0x4); /* 0x38025380: mov eax, dword ptr [edx + 4] */
  13958     ecx = MEM32(ebp + (-0x4)); /* 0x38025383: mov ecx, dword ptr [ebp - 4] */
  13959     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x38025386: mov byte ptr [eax + 0x18], bl */
  13960     eax = MEM32(ebp + 0x8); /* 0x38025389: mov eax, dword ptr [ebp + 8] */
  13961     edi = POP32_VAL(esp); /* 0x3802538C: pop edi */
  13962     esi = POP32_VAL(esp); /* 0x3802538D: pop esi */
  13963     MEM32(eax) = ecx; /* 0x3802538E: mov dword ptr [eax], ecx */
  13964     ebx = POP32_VAL(esp); /* 0x38025390: pop ebx */
  13965     esp = ebp; /* 0x38025391: mov esp, ebp */
  13966     ebp = POP32_VAL(esp); /* 0x38025393: pop ebp */
  13967     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x38025394: ret 0x10 */
  13968     RECOMP_REGS_OUT();
  13969 }
  13970 
  13971 void sub_380253A0(void) {
  13972     int _fpu_cmp = 0;
  13973     uint32_t _cf = 0;
  13974     int _df = 1;
  13975     uint32_t _flag_k = FK_NONE;
  13976     uint32_t _flag_a = 0, _flag_b = 0;
  13977     uint32_t _itail_tgt = 0;
  13978     RECOMP_REGS_LOCALS
  13979     RECOMP_ENTER(0x380253A0u);
  13980 
  13981 L_380253A0:
  13982     PUSH32(esp, ebp); /* 0x380253A0: push ebp */
  13983     ebp = esp; /* 0x380253A1: mov ebp, esp */
  13984     PUSH32(esp, 0x1Cu); /* 0x380253A3: push 0x1c */
  13985     RECOMP_ICALL(0x3804B676u); /* 0x380253A5: call 0x3804b676 */ /* not lifted */
  13986     RECOMP_FLAGS_IN();
  13987     ecx = MEM32(ebp + 0x8); /* 0x380253AA: mov ecx, dword ptr [ebp + 8] */
  13988     SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x380253AD: mov dl, byte ptr [ebp + 0xc] */
  13989     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13990     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13991     esp = esp + 4; /* 0x380253B0: add esp, 4 */
  13992     _flag_k = FK_ADD;
  13993     MEM32(eax + 0x4) = ecx; /* 0x380253B3: mov dword ptr [eax + 4], ecx */
  13994     MEM8(eax + 0x18) = (uint8_t)(LO8(edx)); /* 0x380253B6: mov byte ptr [eax + 0x18], dl */
  13995     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x380253B9: mov byte ptr [eax + 0x19], 0 */
  13996     ebp = POP32_VAL(esp); /* 0x380253BD: pop ebp */
  13997     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x380253BE: ret 8 */
  13998     RECOMP_REGS_OUT();
  13999 }
  14000 
  14001 void sub_380253D0(void) {
  14002     int _fpu_cmp = 0;
  14003     uint32_t _cf = 0;
  14004     int _df = 1;
  14005     uint32_t _flag_k = FK_NONE;
  14006     uint32_t _flag_a = 0, _flag_b = 0;
  14007     uint32_t _itail_tgt = 0;
  14008     RECOMP_REGS_LOCALS
  14009     RECOMP_ENTER(0x380253D0u);
  14010 
  14011 L_380253D0:
  14012     PUSH32(esp, ebp); /* 0x380253D0: push ebp */
  14013     ebp = esp; /* 0x380253D1: mov ebp, esp */
  14014     PUSH32(esp, 0xFFFFFFFFu); /* 0x380253D3: push -1 */
  14015     PUSH32(esp, 0x3804C5D1u); /* 0x380253D5: push 0x3804c5d1 */
  14016     eax = MEM32(FS_BASE + (0)); /* 0x380253DA: mov eax, dword ptr fs:[0] */
  14017     PUSH32(esp, eax); /* 0x380253E0: push eax */
  14018     MEM32(FS_BASE + (0)) = esp; /* 0x380253E1: mov dword ptr fs:[0], esp */
  14019     PUSH32(esp, ecx); /* 0x380253E8: push ecx */
  14020     PUSH32(esp, ebx); /* 0x380253E9: push ebx */
  14021     ebx = MEM32(ebp + 0x8); /* 0x380253EA: mov ebx, dword ptr [ebp + 8] */
  14022     PUSH32(esp, esi); /* 0x380253ED: push esi */
  14023     PUSH32(esp, edi); /* 0x380253EE: push edi */
  14024     MEM32(ebp + (-0x10)) = ebx; /* 0x380253EF: mov dword ptr [ebp - 0x10], ebx */
  14025     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14026     edx = 0; /* 0x380253F2: xor edx, edx */
  14027     _cf = 0;
  14028     _flag_k = FK_TEST;
  14029     /* cmp ebx, edx */ /* 0x380253F4: cmp ebx, edx */
  14030     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
  14031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14032     _flag_k = FK_CMP;
  14033     MEM32(ebp + (-0x4)) = edx; /* 0x380253F6: mov dword ptr [ebp - 4], edx */
  14034     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025541; /* 0x380253F9: je 0x38025541 */
  14035 L_380253FF:
  14036     esi = MEM32(ebp + 0xC); /* 0x380253FF: mov esi, dword ptr [ebp + 0xc] */
  14037     eax = MEM32(esi); /* 0x38025402: mov eax, dword ptr [esi] */
  14038     MEM32(ebx) = eax; /* 0x38025404: mov dword ptr [ebx], eax */
  14039     SET_LO8(ecx, MEM8(esi + 0x4)); /* 0x38025406: mov cl, byte ptr [esi + 4] */
  14040     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
  14041     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14042     esi = esi + 4; /* 0x38025409: add esi, 4 */
  14043     _flag_k = FK_ADD;
  14044     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
  14045     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14046     ebx = ebx + 4; /* 0x3802540C: add ebx, 4 */
  14047     _flag_k = FK_ADD;
  14048     MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x3802540F: mov byte ptr [ebx], cl */
  14049     MEM32(ebx + 0x4) = edx; /* 0x38025411: mov dword ptr [ebx + 4], edx */
  14050     MEM32(ebx + 0x8) = edx; /* 0x38025414: mov dword ptr [ebx + 8], edx */
  14051     MEM32(ebx + 0xC) = edx; /* 0x38025417: mov dword ptr [ebx + 0xc], edx */
  14052     eax = MEM32(0x3804E07C); /* 0x3802541A: mov eax, dword ptr [0x3804e07c] */
  14053     ecx = MEM32(esi + 0x8); /* 0x3802541F: mov ecx, dword ptr [esi + 8] */
  14054     eax = MEM32(eax); /* 0x38025422: mov eax, dword ptr [eax] */
  14055     edi = ecx; /* 0x38025424: mov edi, ecx */
  14056     /* cmp eax, edi */ /* 0x38025426: cmp eax, edi */
  14057     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  14058     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14059     _flag_k = FK_CMP;
  14060     MEM32(ebp + 0xC) = edi; /* 0x38025428: mov dword ptr [ebp + 0xc], edi */
  14061     if (CMP_AE(_flag_a, _flag_b)) goto L_38025432; /* 0x3802542B: jae 0x38025432 */
  14062 L_3802542D:
  14063     MEM32(ebp + 0xC) = eax; /* 0x3802542D: mov dword ptr [ebp + 0xc], eax */
  14064     edi = eax; /* 0x38025430: mov edi, eax */
  14065 L_38025432:
  14066     /* cmp ebx, esi */ /* 0x38025432: cmp ebx, esi */
  14067     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
  14068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14069     _flag_k = FK_CMP;
  14070     if (CMP_NE(_flag_a, _flag_b)) goto L_380254AD; /* 0x38025434: jne 0x380254ad */
  14071 L_38025436:
  14072     /* cmp edi, edx */ /* 0x38025436: cmp edi, edx */
  14073     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  14074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14075     _flag_k = FK_CMP;
  14076     esi = eax; /* 0x38025438: mov esi, eax */
  14077     if (CMP_BE(_flag_a, _flag_b)) goto L_38025444; /* 0x3802543A: jbe 0x38025444 */
  14078 L_3802543C:
  14079     RECOMP_ICALL(MEM32(0x3804E040)); /* 0x3802543C: call dword ptr [0x3804e040] */
  14080     RECOMP_FLAGS_IN();
  14081     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14082     edx = 0; /* 0x38025442: xor edx, edx */
  14083     _cf = 0;
  14084     _flag_k = FK_TEST;
  14085 L_38025444:
  14086     eax = MEM32(ebx + 0x8); /* 0x38025444: mov eax, dword ptr [ebx + 8] */
  14087     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  14088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14089     eax = eax - edi; /* 0x38025447: sub eax, edi */
  14090     _flag_k = FK_CMP;
  14091     /* cmp eax, esi */ /* 0x38025449: cmp eax, esi */
  14092     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  14093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14094     _flag_k = FK_CMP;
  14095     if (CMP_AE(_flag_a, _flag_b)) goto L_3802544F; /* 0x3802544B: jae 0x3802544f */
  14096 L_3802544D:
  14097     esi = eax; /* 0x3802544D: mov esi, eax */
  14098 L_3802544F:
  14099     /* cmp esi, edx */ /* 0x3802544F: cmp esi, edx */
  14100     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  14101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14102     _flag_k = FK_CMP;
  14103     if (CMP_BE(_flag_a, _flag_b)) goto L_38025541; /* 0x38025451: jbe 0x38025541 */
  14104 L_38025457:
  14105     ecx = ebx; /* 0x38025457: mov ecx, ebx */
  14106     RECOMP_ICALL(MEM32(0x3804E044)); /* 0x38025459: call dword ptr [0x3804e044] */
  14107     RECOMP_FLAGS_IN();
  14108     edx = MEM32(ebx + 0x8); /* 0x3802545F: mov edx, dword ptr [ebx + 8] */
  14109     ecx = MEM32(ebx + 0x4); /* 0x38025462: mov ecx, dword ptr [ebx + 4] */
  14110     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
  14111     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14112     edx = edx - esi; /* 0x38025465: sub edx, esi */
  14113     _flag_k = FK_CMP;
  14114     eax = ecx + edi; /* 0x38025467: lea eax, [ecx + edi] */
  14115     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
  14116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14117     edx = edx - edi; /* 0x3802546A: sub edx, edi */
  14118     _flag_k = FK_CMP;
  14119     PUSH32(esp, edx); /* 0x3802546C: push edx */
  14120     ecx = eax + esi; /* 0x3802546D: lea ecx, [eax + esi] */
  14121     PUSH32(esp, ecx); /* 0x38025470: push ecx */
  14122     PUSH32(esp, eax); /* 0x38025471: push eax */
  14123     RECOMP_ICALL(MEM32(0x3804E0F4)); /* 0x38025472: call dword ptr [0x3804e0f4] */
  14124     RECOMP_FLAGS_IN();
  14125     edi = MEM32(ebx + 0x8); /* 0x38025478: mov edi, dword ptr [ebx + 8] */
  14126     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  14127     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14128     esp = esp + 0xCu; /* 0x3802547B: add esp, 0xc */
  14129     _flag_k = FK_ADD;
  14130     PUSH32(esp, 0); /* 0x3802547E: push 0 */
  14131     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
  14132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14133     edi = edi - esi; /* 0x38025480: sub edi, esi */
  14134     _flag_k = FK_CMP;
  14135     PUSH32(esp, edi); /* 0x38025482: push edi */
  14136     ecx = ebx; /* 0x38025483: mov ecx, ebx */
  14137     RECOMP_ICALL(MEM32(0x3804E024)); /* 0x38025485: call dword ptr [0x3804e024] */
  14138     RECOMP_FLAGS_IN();
  14139     /* test LO8(eax), LO8(eax) */ /* 0x3802548B: test al, al */
  14140     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  14141     _cf = 0;
  14142     _flag_k = FK_NARROW(FK_TEST, 24);
  14143     if (TEST_Z(_flag_a, _flag_b)) goto L_38025541; /* 0x3802548D: je 0x38025541 */
  14144 L_38025493:
  14145     PUSH32(esp, edi); /* 0x38025493: push edi */
  14146     ecx = ebx; /* 0x38025494: mov ecx, ebx */
  14147     RECOMP_ICALL(MEM32(0x3804E054)); /* 0x38025496: call dword ptr [0x3804e054] */
  14148     RECOMP_FLAGS_IN();
  14149     edi = POP32_VAL(esp); /* 0x3802549C: pop edi */
  14150     esi = POP32_VAL(esp); /* 0x3802549D: pop esi */
  14151     ebx = POP32_VAL(esp); /* 0x3802549E: pop ebx */
  14152     ecx = MEM32(ebp + (-0xC)); /* 0x3802549F: mov ecx, dword ptr [ebp - 0xc] */
  14153     MEM32(FS_BASE + (0)) = ecx; /* 0x380254A2: mov dword ptr fs:[0], ecx */
  14154     esp = ebp; /* 0x380254A9: mov esp, ebp */
  14155     ebp = POP32_VAL(esp); /* 0x380254AB: pop ebp */
  14156     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380254AC: ret  */
  14157 L_380254AD:
  14158     /* cmp edi, edx */ /* 0x380254AD: cmp edi, edx */
  14159     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
  14160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14161     _flag_k = FK_CMP;
  14162     if (CMP_BE(_flag_a, _flag_b)) goto L_38025505; /* 0x380254AF: jbe 0x38025505 */
  14163 L_380254B1:
  14164     /* cmp edi, ecx */ /* 0x380254B1: cmp edi, ecx */
  14165     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
  14166     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14167     _flag_k = FK_CMP;
  14168     if (CMP_NE(_flag_a, _flag_b)) goto L_38025505; /* 0x380254B3: jne 0x38025505 */
  14169 L_380254B5:
  14170     eax = MEM32(esi + 0x4); /* 0x380254B5: mov eax, dword ptr [esi + 4] */
  14171     /* cmp eax, edx */ /* 0x380254B8: cmp eax, edx */
  14172     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  14173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14174     _flag_k = FK_CMP;
  14175     if (CMP_NE(_flag_a, _flag_b)) goto L_380254C1; /* 0x380254BA: jne 0x380254c1 */
  14176 L_380254BC:
  14177     eax = MEM32(0x3804E080); /* 0x380254BC: mov eax, dword ptr [0x3804e080] */
  14178 L_380254C1:
  14179     /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x380254C1: cmp byte ptr [eax - 1], 0xfe */
  14180     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24;
  14181     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14182     _flag_k = FK_NARROW(FK_CMP, 24);
  14183     if (CMP_AE(_flag_a, _flag_b)) goto L_38025505; /* 0x380254C5: jae 0x38025505 */
  14184 L_380254C7:
  14185     PUSH32(esp, 1); /* 0x380254C7: push 1 */
  14186     ecx = ebx; /* 0x380254C9: mov ecx, ebx */
  14187     RECOMP_ICALL(MEM32(0x3804E05C)); /* 0x380254CB: call dword ptr [0x3804e05c] */
  14188     RECOMP_FLAGS_IN();
  14189     eax = MEM32(esi + 0x4); /* 0x380254D1: mov eax, dword ptr [esi + 4] */
  14190     /* test eax, eax */ /* 0x380254D4: test eax, eax */
  14191     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  14192     _cf = 0;
  14193     _flag_k = FK_TEST;
  14194     if (TEST_NZ(_flag_a, _flag_b)) goto L_380254DD; /* 0x380254D6: jne 0x380254dd */
  14195 L_380254D8:
  14196     eax = MEM32(0x3804E080); /* 0x380254D8: mov eax, dword ptr [0x3804e080] */
  14197 L_380254DD:
  14198     MEM32(ebx + 0x4) = eax; /* 0x380254DD: mov dword ptr [ebx + 4], eax */
  14199     edx = MEM32(esi + 0x8); /* 0x380254E0: mov edx, dword ptr [esi + 8] */
  14200     MEM32(ebx + 0x8) = edx; /* 0x380254E3: mov dword ptr [ebx + 8], edx */
  14201     ecx = MEM32(esi + 0xC); /* 0x380254E6: mov ecx, dword ptr [esi + 0xc] */
  14202     MEM32(ebx + 0xC) = ecx; /* 0x380254E9: mov dword ptr [ebx + 0xc], ecx */
  14203     SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x380254EC: mov cl, byte ptr [eax - 1] */
  14204     edi = POP32_VAL(esp); /* 0x380254EF: pop edi */
  14205     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
  14206     SET_LO8(ecx, LO8(ecx) + 1); /* 0x380254F0: inc cl */
  14207     _flag_k = FK_NARROW(FK_INC, 24);
  14208     esi = POP32_VAL(esp); /* 0x380254F2: pop esi */
  14209     MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x380254F3: mov byte ptr [eax - 1], cl */
  14210     ebx = POP32_VAL(esp); /* 0x380254F6: pop ebx */
  14211     ecx = MEM32(ebp + (-0xC)); /* 0x380254F7: mov ecx, dword ptr [ebp - 0xc] */
  14212     MEM32(FS_BASE + (0)) = ecx; /* 0x380254FA: mov dword ptr fs:[0], ecx */
  14213     esp = ebp; /* 0x38025501: mov esp, ebp */
  14214     ebp = POP32_VAL(esp); /* 0x38025503: pop ebp */
  14215     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38025504: ret  */
  14216 L_38025505:
  14217     PUSH32(esp, 1); /* 0x38025505: push 1 */
  14218     PUSH32(esp, edi); /* 0x38025507: push edi */
  14219     ecx = ebx; /* 0x38025508: mov ecx, ebx */
  14220     RECOMP_ICALL(MEM32(0x3804E024)); /* 0x3802550A: call dword ptr [0x3804e024] */
  14221     RECOMP_FLAGS_IN();
  14222     /* test LO8(eax), LO8(eax) */ /* 0x38025510: test al, al */
  14223     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  14224     _cf = 0;
  14225     _flag_k = FK_NARROW(FK_TEST, 24);
  14226     if (TEST_Z(_flag_a, _flag_b)) goto L_38025541; /* 0x38025512: je 0x38025541 */
  14227 L_38025514:
  14228     esi = MEM32(esi + 0x4); /* 0x38025514: mov esi, dword ptr [esi + 4] */
  14229     /* test esi, esi */ /* 0x38025517: test esi, esi */
  14230     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  14231     _cf = 0;
  14232     _flag_k = FK_TEST;
  14233     if (TEST_NZ(_flag_a, _flag_b)) goto L_38025521; /* 0x38025519: jne 0x38025521 */
  14234 L_3802551B:
  14235     esi = MEM32(0x3804E080); /* 0x3802551B: mov esi, dword ptr [0x3804e080] */
  14236 L_38025521:
  14237     eax = MEM32(ebp + 0xC); /* 0x38025521: mov eax, dword ptr [ebp + 0xc] */
  14238     ecx = edi; /* 0x38025524: mov ecx, edi */
  14239     edi = MEM32(ebx + 0x4); /* 0x38025526: mov edi, dword ptr [ebx + 4] */
  14240     edx = ecx; /* 0x38025529: mov edx, ecx */
  14241     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3802552B: shr ecx, 2 */
  14242     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14243     ecx = ecx >> 2u; /* 0x3802552B: shr ecx, 2 */
  14244     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3802552E: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  14245     ecx = edx; /* 0x38025530: mov ecx, edx */
  14246     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  14247     ecx = ecx & 3; /* 0x38025532: and ecx, 3 */
  14248     _cf = 0;
  14249     _flag_k = FK_TEST;
  14250     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x38025535: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  14251     ecx = MEM32(ebx + 0x4); /* 0x38025537: mov ecx, dword ptr [ebx + 4] */
  14252     MEM32(ebx + 0x8) = eax; /* 0x3802553A: mov dword ptr [ebx + 8], eax */
  14253     MEM8(ecx + eax) = (uint8_t)(0); /* 0x3802553D: mov byte ptr [ecx + eax], 0 */
  14254 L_38025541:
  14255     ecx = MEM32(ebp + (-0xC)); /* 0x38025541: mov ecx, dword ptr [ebp - 0xc] */
  14256     edi = POP32_VAL(esp); /* 0x38025544: pop edi */
  14257     esi = POP32_VAL(esp); /* 0x38025545: pop esi */
  14258     ebx = POP32_VAL(esp); /* 0x38025546: pop ebx */
  14259     MEM32(FS_BASE + (0)) = ecx; /* 0x38025547: mov dword ptr fs:[0], ecx */
  14260     esp = ebp; /* 0x3802554E: mov esp, ebp */
  14261     ebp = POP32_VAL(esp); /* 0x38025550: pop ebp */
  14262     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38025551: ret  */
  14263     RECOMP_REGS_OUT();
  14264 }
  14265 
  14266 void sub_38025560(void) {
  14267     int _fpu_cmp = 0;
  14268     uint32_t _cf = 0;
  14269     int _df = 1;
  14270     uint32_t _flag_k = FK_NONE;
  14271     uint32_t _flag_a = 0, _flag_b = 0;
  14272     uint32_t _itail_tgt = 0;
  14273     RECOMP_REGS_LOCALS
  14274     RECOMP_ENTER(0x38025560u);
  14275 
  14276 L_38025560:
  14277     PUSH32(esp, ebp); /* 0x38025560: push ebp */
  14278     ebp = esp; /* 0x38025561: mov ebp, esp */
  14279     eax = MEM32(ebp + 0x8); /* 0x38025563: mov eax, dword ptr [ebp + 8] */
  14280     /* test eax, eax */ /* 0x38025566: test eax, eax */
  14281     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  14282     _cf = 0;
  14283     _flag_k = FK_TEST;
  14284     if (TEST_Z(_flag_a, _flag_b)) goto L_3802557D; /* 0x38025568: je 0x3802557d */
  14285 L_3802556A:
  14286     ecx = MEM32(ebp + 0xC); /* 0x3802556A: mov ecx, dword ptr [ebp + 0xc] */
  14287     edx = MEM32(ecx); /* 0x3802556D: mov edx, dword ptr [ecx] */
  14288     MEM32(eax) = edx; /* 0x3802556F: mov dword ptr [eax], edx */
  14289     edx = MEM32(ecx + 0x4); /* 0x38025571: mov edx, dword ptr [ecx + 4] */
  14290     MEM32(eax + 0x4) = edx; /* 0x38025574: mov dword ptr [eax + 4], edx */
  14291     ecx = MEM32(ecx + 0x8); /* 0x38025577: mov ecx, dword ptr [ecx + 8] */
  14292     MEM32(eax + 0x8) = ecx; /* 0x3802557A: mov dword ptr [eax + 8], ecx */
  14293 L_3802557D:
  14294     ebp = POP32_VAL(esp); /* 0x3802557D: pop ebp */
  14295     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802557E: ret  */
  14296     RECOMP_REGS_OUT();
  14297 }
  14298 
  14299 void sub_38025580(void) {
  14300     int _fpu_cmp = 0;
  14301     uint32_t _cf = 0;
  14302     int _df = 1;
  14303     uint32_t _flag_k = FK_NONE;
  14304     uint32_t _flag_a = 0, _flag_b = 0;
  14305     uint32_t _itail_tgt = 0;
  14306     RECOMP_REGS_LOCALS
  14307     RECOMP_ENTER(0x38025580u);
  14308 
  14309 L_38025580:
  14310     PUSH32(esp, ebp); /* 0x38025580: push ebp */
  14311     ebp = esp; /* 0x38025581: mov ebp, esp */
  14312     eax = ecx; /* 0x38025583: mov eax, ecx */
  14313     ecx = MEM32(ebp + 0x8); /* 0x38025585: mov ecx, dword ptr [ebp + 8] */
  14314     PUSH32(esp, esi); /* 0x38025588: push esi */
  14315     edx = ecx + 0x4; /* 0x38025589: lea edx, [ecx + 4] */
  14316     esi = eax + 0x4; /* 0x3802558C: lea esi, [eax + 4] */
  14317     /* cmp esi, edx */ /* 0x3802558F: cmp esi, edx */
  14318     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  14319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14320     _flag_k = FK_CMP;
  14321     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802559F; /* 0x38025591: je 0x3802559f */
  14322 L_38025593:
  14323     PUSH32(esp, edi); /* 0x38025593: push edi */
  14324     edi = MEM32(edx); /* 0x38025594: mov edi, dword ptr [edx] */
  14325     MEM32(esi) = edi; /* 0x38025596: mov dword ptr [esi], edi */
  14326     edx = MEM32(edx + 0x4); /* 0x38025598: mov edx, dword ptr [edx + 4] */
  14327     MEM32(esi + 0x4) = edx; /* 0x3802559B: mov dword ptr [esi + 4], edx */
  14328     edi = POP32_VAL(esp); /* 0x3802559E: pop edi */
  14329 L_3802559F:
  14330     MEM32(eax) = 0x3804EDB8u; /* 0x3802559F: mov dword ptr [eax], 0x3804edb8 */
  14331     SET_LO8(edx, MEM8(ecx + 0xC)); /* 0x380255A5: mov dl, byte ptr [ecx + 0xc] */
  14332     MEM8(eax + 0xC) = (uint8_t)(LO8(edx)); /* 0x380255A8: mov byte ptr [eax + 0xc], dl */
  14333     edx = MEM32(ecx + 0x10); /* 0x380255AB: mov edx, dword ptr [ecx + 0x10] */
  14334     MEM32(eax + 0x10) = edx; /* 0x380255AE: mov dword ptr [eax + 0x10], edx */
  14335     edx = MEM32(ecx + 0x14); /* 0x380255B1: mov edx, dword ptr [ecx + 0x14] */
  14336     MEM32(eax + 0x14) = edx; /* 0x380255B4: mov dword ptr [eax + 0x14], edx */
  14337     edx = MEM32(ecx + 0x18); /* 0x380255B7: mov edx, dword ptr [ecx + 0x18] */
  14338     MEM32(eax + 0x18) = edx; /* 0x380255BA: mov dword ptr [eax + 0x18], edx */
  14339     ecx = MEM32(ecx + 0x1C); /* 0x380255BD: mov ecx, dword ptr [ecx + 0x1c] */
  14340     MEM32(eax + 0x1C) = ecx; /* 0x380255C0: mov dword ptr [eax + 0x1c], ecx */
  14341     MEM32(eax) = 0x3804F3B0u; /* 0x380255C3: mov dword ptr [eax], 0x3804f3b0 */
  14342     esi = POP32_VAL(esp); /* 0x380255C9: pop esi */
  14343     ebp = POP32_VAL(esp); /* 0x380255CA: pop ebp */
  14344     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380255CB: ret 4 */
  14345     RECOMP_REGS_OUT();
  14346 }
  14347 
  14348 void sub_380255D0(void) {
  14349     int _fpu_cmp = 0;
  14350     uint32_t _cf = 0;
  14351     int _df = 1;
  14352     uint32_t _flag_k = FK_NONE;
  14353     uint32_t _flag_a = 0, _flag_b = 0;
  14354     uint32_t _itail_tgt = 0;
  14355     RECOMP_REGS_LOCALS
  14356     RECOMP_ENTER(0x380255D0u);
  14357 
  14358 L_380255D0:
  14359     PUSH32(esp, ebp); /* 0x380255D0: push ebp */
  14360     ebp = esp; /* 0x380255D1: mov ebp, esp */
  14361     PUSH32(esp, ebx); /* 0x380255D3: push ebx */
  14362     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x380255D4: mov bl, byte ptr [ebp + 8] */
  14363     /* test LO8(ebx), 2 */ /* 0x380255D7: test bl, 2 */
  14364     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
  14365     _cf = 0;
  14366     _flag_k = FK_NARROW(FK_TEST, 24);
  14367     PUSH32(esp, esi); /* 0x380255DA: push esi */
  14368     esi = ecx; /* 0x380255DB: mov esi, ecx */
  14369     if (TEST_Z(_flag_a, _flag_b)) goto L_3802560B; /* 0x380255DD: je 0x3802560b */
  14370 L_380255DF:
  14371     eax = MEM32(esi + (-0x4)); /* 0x380255DF: mov eax, dword ptr [esi - 4] */
  14372     PUSH32(esp, edi); /* 0x380255E2: push edi */
  14373     PUSH32(esp, 0x38043850u); /* 0x380255E3: push 0x38043850 */
  14374     edi = esi + (-0x4); /* 0x380255E8: lea edi, [esi - 4] */
  14375     PUSH32(esp, eax); /* 0x380255EB: push eax */
  14376     PUSH32(esp, 0x20u); /* 0x380255EC: push 0x20 */
  14377     PUSH32(esp, esi); /* 0x380255EE: push esi */
  14378     RECOMP_ICALL(0x3804B582u); /* 0x380255EF: call 0x3804b582 */ /* not lifted */
  14379     RECOMP_FLAGS_IN();
  14380     /* test LO8(ebx), 1 */ /* 0x380255F4: test bl, 1 */
  14381     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
  14382     _cf = 0;
  14383     _flag_k = FK_NARROW(FK_TEST, 24);
  14384     if (TEST_Z(_flag_a, _flag_b)) goto L_38025602; /* 0x380255F7: je 0x38025602 */
  14385 L_380255F9:
  14386     PUSH32(esp, edi); /* 0x380255F9: push edi */
  14387     RECOMP_ICALL(0x3804B4F6u); /* 0x380255FA: call 0x3804b4f6 */ /* not lifted */
  14388     RECOMP_FLAGS_IN();
  14389     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14390     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14391     esp = esp + 4; /* 0x380255FF: add esp, 4 */
  14392     _flag_k = FK_ADD;
  14393 L_38025602:
  14394     eax = edi; /* 0x38025602: mov eax, edi */
  14395     edi = POP32_VAL(esp); /* 0x38025604: pop edi */
  14396     esi = POP32_VAL(esp); /* 0x38025605: pop esi */
  14397     ebx = POP32_VAL(esp); /* 0x38025606: pop ebx */
  14398     ebp = POP32_VAL(esp); /* 0x38025607: pop ebp */
  14399     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38025608: ret 4 */
  14400 L_3802560B:
  14401     ecx = esi; /* 0x3802560B: mov ecx, esi */
  14402     RECOMP_ICALL(0x38043850u); /* 0x3802560D: call 0x38043850 */ /* not lifted */
  14403     RECOMP_FLAGS_IN();
  14404     /* test LO8(ebx), 1 */ /* 0x38025612: test bl, 1 */
  14405     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
  14406     _cf = 0;
  14407     _flag_k = FK_NARROW(FK_TEST, 24);
  14408     if (TEST_Z(_flag_a, _flag_b)) goto L_38025620; /* 0x38025615: je 0x38025620 */
  14409 L_38025617:
  14410     PUSH32(esp, esi); /* 0x38025617: push esi */
  14411     RECOMP_ICALL(0x3804B4F6u); /* 0x38025618: call 0x3804b4f6 */ /* not lifted */
  14412     RECOMP_FLAGS_IN();
  14413     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14414     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14415     esp = esp + 4; /* 0x3802561D: add esp, 4 */
  14416     _flag_k = FK_ADD;
  14417 L_38025620:
  14418     eax = esi; /* 0x38025620: mov eax, esi */
  14419     esi = POP32_VAL(esp); /* 0x38025622: pop esi */
  14420     ebx = POP32_VAL(esp); /* 0x38025623: pop ebx */
  14421     ebp = POP32_VAL(esp); /* 0x38025624: pop ebp */
  14422     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38025625: ret 4 */
  14423     RECOMP_REGS_OUT();
  14424 }
  14425 
  14426 void sub_38025630(void) {
  14427     int _fpu_cmp = 0;
  14428     uint32_t _cf = 0;
  14429     int _df = 1;
  14430     uint32_t _flag_k = FK_NONE;
  14431     uint32_t _flag_a = 0, _flag_b = 0;
  14432     uint32_t _itail_tgt = 0;
  14433     RECOMP_REGS_LOCALS
  14434     RECOMP_ENTER(0x38025630u);
  14435 
  14436 L_38025630:
  14437     RECOMP_ICALL(0x38025640u); /* 0x38025630: call 0x38025640 */ /* not lifted */
  14438     RECOMP_FLAGS_IN();
  14439     goto L_38025650; /* 0x38025635: jmp 0x38025650 */
  14440 L_38025650:
  14441     PUSH32(esp, 0x38025660u); /* 0x38025650: push 0x38025660 */
  14442     RECOMP_ICALL(0x3804B54Cu); /* 0x38025655: call 0x3804b54c */ /* not lifted */
  14443     RECOMP_FLAGS_IN();
  14444     ecx = POP32_VAL(esp); /* 0x3802565A: pop ecx */
  14445     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802565B: ret  */
  14446     RECOMP_REGS_OUT();
  14447 }
  14448 
  14449 void sub_38025640(void) {
  14450     int _fpu_cmp = 0;
  14451     uint32_t _cf = 0;
  14452     int _df = 1;
  14453     uint32_t _flag_k = FK_NONE;
  14454     uint32_t _flag_a = 0, _flag_b = 0;
  14455     uint32_t _itail_tgt = 0;
  14456     RECOMP_REGS_LOCALS
  14457     RECOMP_ENTER(0x38025640u);
  14458 
  14459 L_38025640:
  14460     ecx = 0x3806ED35u; /* 0x38025640: mov ecx, 0x3806ed35 */
  14461 L_38025645:
  14462     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
  14463     { RECOMP_REGS_OUT(); return; } /* end of function */
  14464   _ljump:
  14465     switch (_itail_tgt) {
  14466       case 0x38025640u: goto L_38025640;
  14467       case 0x38025645u: goto L_38025645;
  14468       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  14469     }
  14470     RECOMP_REGS_OUT();
  14471 }
  14472 
  14473 void sub_38025650(void) {
  14474     int _fpu_cmp = 0;
  14475     uint32_t _cf = 0;
  14476     int _df = 1;
  14477     uint32_t _flag_k = FK_NONE;
  14478     uint32_t _flag_a = 0, _flag_b = 0;
  14479     uint32_t _itail_tgt = 0;
  14480     RECOMP_REGS_LOCALS
  14481     RECOMP_ENTER(0x38025650u);
  14482 
  14483 L_38025650:
  14484     PUSH32(esp, 0x38025660u); /* 0x38025650: push 0x38025660 */
  14485     RECOMP_ICALL(0x3804B54Cu); /* 0x38025655: call 0x3804b54c */ /* not lifted */
  14486     RECOMP_FLAGS_IN();
  14487     ecx = POP32_VAL(esp); /* 0x3802565A: pop ecx */
  14488     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802565B: ret  */
  14489     RECOMP_REGS_OUT();
  14490 }
  14491 
  14492 void sub_38025660(void) {
  14493     int _fpu_cmp = 0;
  14494     uint32_t _cf = 0;
  14495     int _df = 1;
  14496     uint32_t _flag_k = FK_NONE;
  14497     uint32_t _flag_a = 0, _flag_b = 0;
  14498     uint32_t _itail_tgt = 0;
  14499     RECOMP_REGS_LOCALS
  14500     RECOMP_ENTER(0x38025660u);
  14501 
  14502 L_38025660:
  14503     ecx = 0x3806ED35u; /* 0x38025660: mov ecx, 0x3806ed35 */
  14504 L_38025665:
  14505     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
  14506     { RECOMP_REGS_OUT(); return; } /* end of function */
  14507   _ljump:
  14508     switch (_itail_tgt) {
  14509       case 0x38025660u: goto L_38025660;
  14510       case 0x38025665u: goto L_38025665;
  14511       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  14512     }
  14513     RECOMP_REGS_OUT();
  14514 }
  14515 
  14516 void sub_38025670(void) {
  14517     int _fpu_cmp = 0;
  14518     uint32_t _cf = 0;
  14519     int _df = 1;
  14520     uint32_t _flag_k = FK_NONE;
  14521     uint32_t _flag_a = 0, _flag_b = 0;
  14522     uint32_t _itail_tgt = 0;
  14523     RECOMP_REGS_LOCALS
  14524     RECOMP_ENTER(0x38025670u);
  14525 
  14526 L_38025670:
  14527     RECOMP_ICALL(0x38025680u); /* 0x38025670: call 0x38025680 */ /* not lifted */
  14528     RECOMP_FLAGS_IN();
  14529     goto L_38025690; /* 0x38025675: jmp 0x38025690 */
  14530 L_38025690:
  14531     PUSH32(esp, 0x380256A0u); /* 0x38025690: push 0x380256a0 */
  14532     RECOMP_ICALL(0x3804B54Cu); /* 0x38025695: call 0x3804b54c */ /* not lifted */
  14533     RECOMP_FLAGS_IN();
  14534     ecx = POP32_VAL(esp); /* 0x3802569A: pop ecx */
  14535     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802569B: ret  */
  14536     RECOMP_REGS_OUT();
  14537 }
  14538 
  14539 void sub_38025680(void) {
  14540     int _fpu_cmp = 0;
  14541     uint32_t _cf = 0;
  14542     int _df = 1;
  14543     uint32_t _flag_k = FK_NONE;
  14544     uint32_t _flag_a = 0, _flag_b = 0;
  14545     uint32_t _itail_tgt = 0;
  14546     RECOMP_REGS_LOCALS
  14547     RECOMP_ENTER(0x38025680u);
  14548 
  14549 L_38025680:
  14550     ecx = 0x3806ED34u; /* 0x38025680: mov ecx, 0x3806ed34 */
  14551 L_38025685:
  14552     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
  14553     { RECOMP_REGS_OUT(); return; } /* end of function */
  14554   _ljump:
  14555     switch (_itail_tgt) {
  14556       case 0x38025680u: goto L_38025680;
  14557       case 0x38025685u: goto L_38025685;
  14558       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  14559     }
  14560     RECOMP_REGS_OUT();
  14561 }
  14562 
  14563 void sub_38025690(void) {
  14564     int _fpu_cmp = 0;
  14565     uint32_t _cf = 0;
  14566     int _df = 1;
  14567     uint32_t _flag_k = FK_NONE;
  14568     uint32_t _flag_a = 0, _flag_b = 0;
  14569     uint32_t _itail_tgt = 0;
  14570     RECOMP_REGS_LOCALS
  14571     RECOMP_ENTER(0x38025690u);
  14572 
  14573 L_38025690:
  14574     PUSH32(esp, 0x380256A0u); /* 0x38025690: push 0x380256a0 */
  14575     RECOMP_ICALL(0x3804B54Cu); /* 0x38025695: call 0x3804b54c */ /* not lifted */
  14576     RECOMP_FLAGS_IN();
  14577     ecx = POP32_VAL(esp); /* 0x3802569A: pop ecx */
  14578     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802569B: ret  */
  14579     RECOMP_REGS_OUT();
  14580 }
  14581 
  14582 void sub_380256A0(void) {
  14583     int _fpu_cmp = 0;
  14584     uint32_t _cf = 0;
  14585     int _df = 1;
  14586     uint32_t _flag_k = FK_NONE;
  14587     uint32_t _flag_a = 0, _flag_b = 0;
  14588     uint32_t _itail_tgt = 0;
  14589     RECOMP_REGS_LOCALS
  14590     RECOMP_ENTER(0x380256A0u);
  14591 
  14592 L_380256A0:
  14593     ecx = 0x3806ED34u; /* 0x380256A0: mov ecx, 0x3806ed34 */
  14594 L_380256A5:
  14595     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
  14596     { RECOMP_REGS_OUT(); return; } /* end of function */
  14597   _ljump:
  14598     switch (_itail_tgt) {
  14599       case 0x380256A0u: goto L_380256A0;
  14600       case 0x380256A5u: goto L_380256A5;
  14601       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  14602     }
  14603     RECOMP_REGS_OUT();
  14604 }
  14605 
  14606 void sub_380256B0(void) {
  14607     int _fpu_cmp = 0;
  14608     uint32_t _cf = 0;
  14609     int _df = 1;
  14610     uint32_t _flag_k = FK_NONE;
  14611     uint32_t _flag_a = 0, _flag_b = 0;
  14612     uint32_t _itail_tgt = 0;
  14613     RECOMP_REGS_LOCALS
  14614     RECOMP_ENTER(0x380256B0u);
  14615 
  14616 L_380256B0:
  14617     PUSH32(esp, ebp); /* 0x380256B0: push ebp */
  14618     ebp = esp; /* 0x380256B1: mov ebp, esp */
  14619     eax = ecx; /* 0x380256B3: mov eax, ecx */
  14620     ecx = MEM32(ebp + 0x8); /* 0x380256B5: mov ecx, dword ptr [ebp + 8] */
  14621     PUSH32(esp, esi); /* 0x380256B8: push esi */
  14622     edx = ecx + 0x4; /* 0x380256B9: lea edx, [ecx + 4] */
  14623     esi = eax + 0x4; /* 0x380256BC: lea esi, [eax + 4] */
  14624     /* cmp esi, edx */ /* 0x380256BF: cmp esi, edx */
  14625     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  14626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14627     _flag_k = FK_CMP;
  14628     PUSH32(esp, edi); /* 0x380256C1: push edi */
  14629     if (CMP_EQ(_flag_a, _flag_b)) goto L_380256CE; /* 0x380256C2: je 0x380256ce */
  14630 L_380256C4:
  14631     edi = MEM32(edx); /* 0x380256C4: mov edi, dword ptr [edx] */
  14632     MEM32(esi) = edi; /* 0x380256C6: mov dword ptr [esi], edi */
  14633     edx = MEM32(edx + 0x4); /* 0x380256C8: mov edx, dword ptr [edx + 4] */
  14634     MEM32(esi + 0x4) = edx; /* 0x380256CB: mov dword ptr [esi + 4], edx */
  14635 L_380256CE:
  14636     MEM32(eax) = 0x3804EDB8u; /* 0x380256CE: mov dword ptr [eax], 0x3804edb8 */
  14637     SET_LO8(edx, MEM8(ecx + 0xC)); /* 0x380256D4: mov dl, byte ptr [ecx + 0xc] */
  14638     MEM8(eax + 0xC) = (uint8_t)(LO8(edx)); /* 0x380256D7: mov byte ptr [eax + 0xc], dl */
  14639     edx = MEM32(ecx + 0x10); /* 0x380256DA: mov edx, dword ptr [ecx + 0x10] */
  14640     MEM32(eax + 0x10) = edx; /* 0x380256DD: mov dword ptr [eax + 0x10], edx */
  14641     edx = MEM32(ecx + 0x14); /* 0x380256E0: mov edx, dword ptr [ecx + 0x14] */
  14642     MEM32(eax + 0x14) = edx; /* 0x380256E3: mov dword ptr [eax + 0x14], edx */
  14643     edx = MEM32(ecx + 0x18); /* 0x380256E6: mov edx, dword ptr [ecx + 0x18] */
  14644     MEM32(eax + 0x18) = edx; /* 0x380256E9: mov dword ptr [eax + 0x18], edx */
  14645     edx = MEM32(ecx + 0x1C); /* 0x380256EC: mov edx, dword ptr [ecx + 0x1c] */
  14646     MEM32(eax + 0x1C) = edx; /* 0x380256EF: mov dword ptr [eax + 0x1c], edx */
  14647     MEM32(eax) = 0x3804EDD0u; /* 0x380256F2: mov dword ptr [eax], 0x3804edd0 */
  14648     edx = MEM32(ecx + 0x20); /* 0x380256F8: mov edx, dword ptr [ecx + 0x20] */
  14649     MEM32(eax + 0x20) = edx; /* 0x380256FB: mov dword ptr [eax + 0x20], edx */
  14650     edx = ecx + 0x24; /* 0x380256FE: lea edx, [ecx + 0x24] */
  14651     edi = MEM32(edx); /* 0x38025701: mov edi, dword ptr [edx] */
  14652     esi = eax + 0x24; /* 0x38025703: lea esi, [eax + 0x24] */
  14653     MEM32(esi) = edi; /* 0x38025706: mov dword ptr [esi], edi */
  14654     edi = MEM32(edx + 0x4); /* 0x38025708: mov edi, dword ptr [edx + 4] */
  14655     MEM32(esi + 0x4) = edi; /* 0x3802570B: mov dword ptr [esi + 4], edi */
  14656     edx = MEM32(edx + 0x8); /* 0x3802570E: mov edx, dword ptr [edx + 8] */
  14657     MEM32(esi + 0x8) = edx; /* 0x38025711: mov dword ptr [esi + 8], edx */
  14658     edx = ecx + 0x30; /* 0x38025714: lea edx, [ecx + 0x30] */
  14659     esi = eax + 0x30; /* 0x38025717: lea esi, [eax + 0x30] */
  14660     /* cmp esi, edx */ /* 0x3802571A: cmp esi, edx */
  14661     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  14662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14663     _flag_k = FK_CMP;
  14664     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025728; /* 0x3802571C: je 0x38025728 */
  14665 L_3802571E:
  14666     edi = MEM32(edx); /* 0x3802571E: mov edi, dword ptr [edx] */
  14667     MEM32(esi) = edi; /* 0x38025720: mov dword ptr [esi], edi */
  14668     edi = MEM32(edx + 0x4); /* 0x38025722: mov edi, dword ptr [edx + 4] */
  14669     MEM32(esi + 0x4) = edi; /* 0x38025725: mov dword ptr [esi + 4], edi */
  14670 L_38025728:
  14671     edi = MEM32(edx + 0x8); /* 0x38025728: mov edi, dword ptr [edx + 8] */
  14672     MEM32(esi + 0x8) = edi; /* 0x3802572B: mov dword ptr [esi + 8], edi */
  14673     edi = MEM32(edx + 0xC); /* 0x3802572E: mov edi, dword ptr [edx + 0xc] */
  14674     MEM32(esi + 0xC) = edi; /* 0x38025731: mov dword ptr [esi + 0xc], edi */
  14675     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
  14676     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14677     edx = edx + 0x10u; /* 0x38025734: add edx, 0x10 */
  14678     _flag_k = FK_ADD;
  14679     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
  14680     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14681     esi = esi + 0x10u; /* 0x38025737: add esi, 0x10 */
  14682     _flag_k = FK_ADD;
  14683     /* cmp esi, edx */ /* 0x3802573A: cmp esi, edx */
  14684     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  14685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14686     _flag_k = FK_CMP;
  14687     if (CMP_EQ(_flag_a, _flag_b)) goto L_38025748; /* 0x3802573C: je 0x38025748 */
  14688 L_3802573E:
  14689     edi = MEM32(edx); /* 0x3802573E: mov edi, dword ptr [edx] */
  14690     MEM32(esi) = edi; /* 0x38025740: mov dword ptr [esi], edi */
  14691     edx = MEM32(edx + 0x4); /* 0x38025742: mov edx, dword ptr [edx + 4] */
  14692     MEM32(esi + 0x4) = edx; /* 0x38025745: mov dword ptr [esi + 4], edx */
  14693 L_38025748:
  14694     ecx = MEM32(ecx + 0x48); /* 0x38025748: mov ecx, dword ptr [ecx + 0x48] */
  14695     edi = POP32_VAL(esp); /* 0x3802574B: pop edi */
  14696     MEM32(eax + 0x48) = ecx; /* 0x3802574C: mov dword ptr [eax + 0x48], ecx */
  14697     MEM32(eax) = 0x3804F3D4u; /* 0x3802574F: mov dword ptr [eax], 0x3804f3d4 */
  14698     esi = POP32_VAL(esp); /* 0x38025755: pop esi */
  14699     ebp = POP32_VAL(esp); /* 0x38025756: pop ebp */
  14700     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38025757: ret 4 */
  14701     RECOMP_REGS_OUT();
  14702 }