aorecomp

Anarchy Online classic in the browser

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


client/game/ffr.dll/lifted-0001.c (488361B)


      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_2F004F40(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(0x2F004F40u);
     17 
     18 L_2F004F40:
     19     PUSH32(esp, ebp); /* 0x2F004F40: push ebp */
     20     ebp = esp; /* 0x2F004F41: mov ebp, esp */
     21     PUSH32(esp, ebx); /* 0x2F004F43: push ebx */
     22     PUSH32(esp, esi); /* 0x2F004F44: push esi */
     23     ebx = ecx; /* 0x2F004F45: mov ebx, ecx */
     24     eax = MEM32(ebx + 0x8); /* 0x2F004F47: mov eax, dword ptr [ebx + 8] */
     25     PUSH32(esp, edi); /* 0x2F004F4A: push edi */
     26     edi = MEM32(ebp + 0x8); /* 0x2F004F4B: mov edi, dword ptr [ebp + 8] */
     27     /* cmp edi, eax */ /* 0x2F004F4E: cmp edi, eax */
     28     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
     29     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     30     _flag_k = FK_CMP;
     31     esi = edi; /* 0x2F004F50: mov esi, edi */
     32     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F004F73; /* 0x2F004F52: je 0x2f004f73 */
     33 L_2F004F54:
     34     eax = MEM32(esi + 0x8); /* 0x2F004F54: mov eax, dword ptr [esi + 8] */
     35     PUSH32(esp, eax); /* 0x2F004F57: push eax */
     36     ecx = ebx; /* 0x2F004F58: mov ecx, ebx */
     37     RECOMP_ICALL(0x2F004F40u); /* 0x2F004F5A: call 0x2f004f40 */ /* not lifted */
     38     RECOMP_FLAGS_IN();
     39     esi = MEM32(esi); /* 0x2F004F5F: mov esi, dword ptr [esi] */
     40     PUSH32(esp, edi); /* 0x2F004F61: push edi */
     41     RECOMP_ICALL(0x2F0116B4u); /* 0x2F004F62: call 0x2f0116b4 */ /* not lifted */
     42     RECOMP_FLAGS_IN();
     43     eax = MEM32(ebx + 0x8); /* 0x2F004F67: mov eax, dword ptr [ebx + 8] */
     44     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     45     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     46     esp = esp + 4; /* 0x2F004F6A: add esp, 4 */
     47     _flag_k = FK_ADD;
     48     /* cmp esi, eax */ /* 0x2F004F6D: cmp esi, eax */
     49     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
     50     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     51     _flag_k = FK_CMP;
     52     edi = esi; /* 0x2F004F6F: mov edi, esi */
     53     RECOMP_BACKEDGE();
     54     if (CMP_NE(_flag_a, _flag_b)) goto L_2F004F54; /* 0x2F004F71: jne 0x2f004f54 */
     55 L_2F004F73:
     56     edi = POP32_VAL(esp); /* 0x2F004F73: pop edi */
     57     esi = POP32_VAL(esp); /* 0x2F004F74: pop esi */
     58     ebx = POP32_VAL(esp); /* 0x2F004F75: pop ebx */
     59     ebp = POP32_VAL(esp); /* 0x2F004F76: pop ebp */
     60     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F004F77: ret 4 */
     61     RECOMP_REGS_OUT();
     62 }
     63 
     64 void sub_2F004F80(void) {
     65     int _fpu_cmp = 0;
     66     uint32_t _cf = 0;
     67     int _df = 1;
     68     uint32_t _flag_k = FK_NONE;
     69     uint32_t _flag_a = 0, _flag_b = 0;
     70     uint32_t _itail_tgt = 0;
     71     RECOMP_REGS_LOCALS
     72     RECOMP_ENTER(0x2F004F80u);
     73 
     74 L_2F004F80:
     75     PUSH32(esp, ebp); /* 0x2F004F80: push ebp */
     76     ebp = esp; /* 0x2F004F81: mov ebp, esp */
     77     eax = ecx; /* 0x2F004F83: mov eax, ecx */
     78     ecx = MEM32(ebp + 0x8); /* 0x2F004F85: mov ecx, dword ptr [ebp + 8] */
     79     edx = MEM32(ecx); /* 0x2F004F88: mov edx, dword ptr [ecx] */
     80     ecx = MEM32(ebp + 0xC); /* 0x2F004F8A: mov ecx, dword ptr [ebp + 0xc] */
     81     MEM32(eax) = edx; /* 0x2F004F8D: mov dword ptr [eax], edx */
     82     SET_LO8(edx, MEM8(ecx)); /* 0x2F004F8F: mov dl, byte ptr [ecx] */
     83     MEM8(eax + 0x4) = (uint8_t)(LO8(edx)); /* 0x2F004F91: mov byte ptr [eax + 4], dl */
     84     ebp = POP32_VAL(esp); /* 0x2F004F94: pop ebp */
     85     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F004F95: ret 8 */
     86     RECOMP_REGS_OUT();
     87 }
     88 
     89 void sub_2F004FA0(void) {
     90     int _fpu_cmp = 0;
     91     uint32_t _cf = 0;
     92     int _df = 1;
     93     uint32_t _flag_k = FK_NONE;
     94     uint32_t _flag_a = 0, _flag_b = 0;
     95     uint32_t _itail_tgt = 0;
     96     RECOMP_REGS_LOCALS
     97     RECOMP_ENTER(0x2F004FA0u);
     98 
     99 L_2F004FA0:
    100     PUSH32(esp, ebp); /* 0x2F004FA0: push ebp */
    101     ebp = esp; /* 0x2F004FA1: mov ebp, esp */
    102     PUSH32(esp, ecx); /* 0x2F004FA3: push ecx */
    103     PUSH32(esp, ebx); /* 0x2F004FA4: push ebx */
    104     PUSH32(esp, esi); /* 0x2F004FA5: push esi */
    105     PUSH32(esp, edi); /* 0x2F004FA6: push edi */
    106     PUSH32(esp, 0x1Cu); /* 0x2F004FA7: push 0x1c */
    107     esi = ecx; /* 0x2F004FA9: mov esi, ecx */
    108     RECOMP_ICALL(0x2F0117DCu); /* 0x2F004FAB: call 0x2f0117dc */ /* not lifted */
    109     RECOMP_FLAGS_IN();
    110     edi = MEM32(ebp + 0x10); /* 0x2F004FB0: mov edi, dword ptr [ebp + 0x10] */
    111     ebx = MEM32(ebp + 0x14); /* 0x2F004FB3: mov ebx, dword ptr [ebp + 0x14] */
    112     MEM32(eax + 0x4) = edi; /* 0x2F004FB6: mov dword ptr [eax + 4], edi */
    113     MEM8(eax + 0x18) = (uint8_t)(0); /* 0x2F004FB9: mov byte ptr [eax + 0x18], 0 */
    114     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x2F004FBD: mov byte ptr [eax + 0x19], 0 */
    115     ecx = MEM32(esi + 0x8); /* 0x2F004FC1: mov ecx, dword ptr [esi + 8] */
    116     MEM32(eax) = ecx; /* 0x2F004FC4: mov dword ptr [eax], ecx */
    117     edx = MEM32(esi + 0x8); /* 0x2F004FC6: mov edx, dword ptr [esi + 8] */
    118     MEM32(ebp + (-0x4)) = eax; /* 0x2F004FC9: mov dword ptr [ebp - 4], eax */
    119     MEM32(eax + 0x8) = edx; /* 0x2F004FCC: mov dword ptr [eax + 8], edx */
    120     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    122     eax = eax + 0xCu; /* 0x2F004FCF: add eax, 0xc */
    123     _flag_k = FK_ADD;
    124     PUSH32(esp, ebx); /* 0x2F004FD2: push ebx */
    125     PUSH32(esp, eax); /* 0x2F004FD3: push eax */
    126     RECOMP_ICALL(0x2F0055D0u); /* 0x2F004FD4: call 0x2f0055d0 */ /* not lifted */
    127     RECOMP_FLAGS_IN();
    128     ecx = MEM32(esi + 0x10); /* 0x2F004FD9: mov ecx, dword ptr [esi + 0x10] */
    129     eax = MEM32(esi + 0x4); /* 0x2F004FDC: mov eax, dword ptr [esi + 4] */
    130     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    131     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    132     esp = esp + 0xCu; /* 0x2F004FDF: add esp, 0xc */
    133     _flag_k = FK_ADD;
    134     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    135     ecx = ecx + 1; /* 0x2F004FE2: inc ecx */
    136     _flag_k = FK_INC;
    137     /* cmp edi, eax */ /* 0x2F004FE3: cmp edi, eax */
    138     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    140     _flag_k = FK_CMP;
    141     MEM32(esi + 0x10) = ecx; /* 0x2F004FE5: mov dword ptr [esi + 0x10], ecx */
    142     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00500C; /* 0x2F004FE8: je 0x2f00500c */
    143 L_2F004FEA:
    144     eax = MEM32(ebp + 0xC); /* 0x2F004FEA: mov eax, dword ptr [ebp + 0xc] */
    145     /* cmp eax, MEM32(esi + 0x8) */ /* 0x2F004FED: cmp eax, dword ptr [esi + 8] */
    146     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    148     _flag_k = FK_CMP;
    149     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00500C; /* 0x2F004FF0: jne 0x2f00500c */
    150 L_2F004FF2:
    151     ecx = MEM32(ebx); /* 0x2F004FF2: mov ecx, dword ptr [ebx] */
    152     /* cmp ecx, MEM32(edi + 0xC) */ /* 0x2F004FF4: cmp ecx, dword ptr [edi + 0xc] */
    153     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC));
    154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    155     _flag_k = FK_CMP;
    156     if (CMP_B(_flag_a, _flag_b)) goto L_2F00500C; /* 0x2F004FF7: jb 0x2f00500c */
    157 L_2F004FF9:
    158     ecx = MEM32(ebp + (-0x4)); /* 0x2F004FF9: mov ecx, dword ptr [ebp - 4] */
    159     MEM32(edi + 0x8) = ecx; /* 0x2F004FFC: mov dword ptr [edi + 8], ecx */
    160     eax = MEM32(esi + 0x4); /* 0x2F004FFF: mov eax, dword ptr [esi + 4] */
    161     /* cmp edi, MEM32(eax + 0x8) */ /* 0x2F005002: cmp edi, dword ptr [eax + 8] */
    162     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    164     _flag_k = FK_CMP;
    165     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00502C; /* 0x2F005005: jne 0x2f00502c */
    166 L_2F005007:
    167     MEM32(eax + 0x8) = ecx; /* 0x2F005007: mov dword ptr [eax + 8], ecx */
    168     goto L_2F00502C; /* 0x2F00500A: jmp 0x2f00502c */
    169 L_2F00500C:
    170     ecx = MEM32(ebp + (-0x4)); /* 0x2F00500C: mov ecx, dword ptr [ebp - 4] */
    171     MEM32(edi) = ecx; /* 0x2F00500F: mov dword ptr [edi], ecx */
    172     eax = MEM32(esi + 0x4); /* 0x2F005011: mov eax, dword ptr [esi + 4] */
    173     /* cmp edi, eax */ /* 0x2F005014: cmp edi, eax */
    174     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    176     _flag_k = FK_CMP;
    177     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005023; /* 0x2F005016: jne 0x2f005023 */
    178 L_2F005018:
    179     MEM32(eax + 0x4) = ecx; /* 0x2F005018: mov dword ptr [eax + 4], ecx */
    180     edx = MEM32(esi + 0x4); /* 0x2F00501B: mov edx, dword ptr [esi + 4] */
    181     MEM32(edx + 0x8) = ecx; /* 0x2F00501E: mov dword ptr [edx + 8], ecx */
    182     goto L_2F00502C; /* 0x2F005021: jmp 0x2f00502c */
    183 L_2F005023:
    184     /* cmp edi, MEM32(eax) */ /* 0x2F005023: cmp edi, dword ptr [eax] */
    185     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
    186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    187     _flag_k = FK_CMP;
    188     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00502C; /* 0x2F005025: jne 0x2f00502c */
    189 L_2F005027:
    190     ecx = MEM32(ebp + (-0x4)); /* 0x2F005027: mov ecx, dword ptr [ebp - 4] */
    191     MEM32(eax) = ecx; /* 0x2F00502A: mov dword ptr [eax], ecx */
    192 L_2F00502C:
    193     edx = MEM32(esi + 0x4); /* 0x2F00502C: mov edx, dword ptr [esi + 4] */
    194     eax = MEM32(ebp + (-0x4)); /* 0x2F00502F: mov eax, dword ptr [ebp - 4] */
    195     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005032: cmp eax, dword ptr [edx + 4] */
    196     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    197     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    198     _flag_k = FK_CMP;
    199     SET_LO8(ebx, 1); /* 0x2F005035: mov bl, 1 */
    200     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005037: je 0x2f0051bd */
    201 L_2F00503D:
    202     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
    203     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
    204     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
    205     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    206     _cf = 0;
    207     _flag_k = FK_NARROW(FK_TEST, 24);
    208     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
    209 L_2F00504B:
    210     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
    211     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
    212     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
    213     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    215     _flag_k = FK_CMP;
    216     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
    217 L_2F005058:
    218     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
    219     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
    220     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    222     _flag_k = FK_NARROW(FK_CMP, 24);
    223     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
    224 L_2F005061:
    225     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
    226     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
    227     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
    228     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
    229     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
    230     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
    231     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
    232     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
    233 L_2F00507C:
    234     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
    235     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
    236     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    237     _flag_k = FK_CMP;
    238     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
    239 L_2F005081:
    240     eax = ecx; /* 0x2F005081: mov eax, ecx */
    241     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
    242     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
    243     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
    244     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
    245     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
    246     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    248     _flag_k = FK_CMP;
    249     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
    250 L_2F005092:
    251     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
    252 L_2F005095:
    253     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
    254     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
    255     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
    256     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
    257     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    258     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    259     _flag_k = FK_CMP;
    260     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
    261 L_2F0050A3:
    262     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
    263     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
    264 L_2F0050A8:
    265     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
    266     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
    267     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
    268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    269     _flag_k = FK_CMP;
    270     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
    271 L_2F0050AF:
    272     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
    273     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
    274 L_2F0050B3:
    275     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
    276 L_2F0050B6:
    277     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
    278     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
    279 L_2F0050BB:
    280     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
    281     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
    282     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
    283     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
    284     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
    285     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
    286     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
    287     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
    288     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
    289     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
    290     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
    291     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
    292     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    294     _flag_k = FK_CMP;
    295     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
    296 L_2F0050E0:
    297     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
    298 L_2F0050E3:
    299     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
    300     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
    301     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
    302     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
    303     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    305     _flag_k = FK_CMP;
    306     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
    307 L_2F0050F1:
    308     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
    309     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
    310     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
    311 L_2F0050FC:
    312     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
    313     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
    314     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    316     _flag_k = FK_CMP;
    317     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
    318 L_2F005104:
    319     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
    320     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
    321     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
    322 L_2F00510F:
    323     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
    324     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
    325     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
    326 L_2F005119:
    327     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
    328     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    330     _flag_k = FK_NARROW(FK_CMP, 24);
    331     RECOMP_BACKEDGE();
    332     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
    333 L_2F005123:
    334     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
    335     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
    336     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    337     _flag_k = FK_CMP;
    338     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
    339 L_2F005127:
    340     eax = ecx; /* 0x2F005127: mov eax, ecx */
    341     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
    342     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
    343     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
    344     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
    345     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
    346     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    348     _flag_k = FK_CMP;
    349     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
    350 L_2F005138:
    351     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
    352 L_2F00513B:
    353     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
    354     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
    355     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
    356     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
    357     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    359     _flag_k = FK_CMP;
    360     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
    361 L_2F005149:
    362     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
    363     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
    364 L_2F00514E:
    365     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
    366     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
    367     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
    368     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    369     _flag_k = FK_CMP;
    370     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
    371 L_2F005156:
    372     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
    373     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
    374 L_2F00515B:
    375     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
    376 L_2F00515D:
    377     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
    378     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
    379 L_2F005163:
    380     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
    381     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
    382     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
    383     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
    384     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
    385     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
    386     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
    387     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
    388     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
    389     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
    390     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
    391     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
    392     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    394     _flag_k = FK_CMP;
    395     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
    396 L_2F005188:
    397     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
    398 L_2F00518B:
    399     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
    400     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
    401     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
    402     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
    403     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    405     _flag_k = FK_CMP;
    406     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
    407 L_2F005199:
    408     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
    409     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
    410 L_2F00519E:
    411     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
    412     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
    413     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
    414     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    415     _flag_k = FK_CMP;
    416     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
    417 L_2F0051A5:
    418     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
    419     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
    420 L_2F0051A9:
    421     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
    422 L_2F0051AC:
    423     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
    424 L_2F0051AE:
    425     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
    426 L_2F0051B1:
    427     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
    428     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
    429     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
    430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    431     _flag_k = FK_CMP;
    432     RECOMP_BACKEDGE();
    433     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
    434 L_2F0051BD:
    435     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
    436     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
    437     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
    438     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
    439     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
    440     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
    441     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
    442     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
    443     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
    444     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
    445     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
    446     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
    447     RECOMP_REGS_OUT();
    448 }
    449 
    450 void sub_2F00503D(void) {
    451     int _fpu_cmp = 0;
    452     uint32_t _cf = 0;
    453     int _df = 1;
    454     uint32_t _flag_k = FK_NONE;
    455     uint32_t _flag_a = 0, _flag_b = 0;
    456     uint32_t _itail_tgt = 0;
    457     RECOMP_REGS_LOCALS
    458     RECOMP_ENTER(0x2F00503Du);
    459 
    460 L_2F00503D:
    461     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
    462     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
    463     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
    464     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    465     _cf = 0;
    466     _flag_k = FK_NARROW(FK_TEST, 24);
    467     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
    468 L_2F00504B:
    469     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
    470     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
    471     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
    472     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    473     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    474     _flag_k = FK_CMP;
    475     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
    476 L_2F005058:
    477     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
    478     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
    479     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    481     _flag_k = FK_NARROW(FK_CMP, 24);
    482     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
    483 L_2F005061:
    484     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
    485     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
    486     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
    487     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
    488     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
    489     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
    490     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
    491     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
    492 L_2F00507C:
    493     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
    494     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
    495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    496     _flag_k = FK_CMP;
    497     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
    498 L_2F005081:
    499     eax = ecx; /* 0x2F005081: mov eax, ecx */
    500     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
    501     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
    502     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
    503     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
    504     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
    505     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    507     _flag_k = FK_CMP;
    508     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
    509 L_2F005092:
    510     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
    511 L_2F005095:
    512     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
    513     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
    514     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
    515     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
    516     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    518     _flag_k = FK_CMP;
    519     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
    520 L_2F0050A3:
    521     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
    522     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
    523 L_2F0050A8:
    524     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
    525     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
    526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
    527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    528     _flag_k = FK_CMP;
    529     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
    530 L_2F0050AF:
    531     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
    532     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
    533 L_2F0050B3:
    534     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
    535 L_2F0050B6:
    536     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
    537     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
    538 L_2F0050BB:
    539     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
    540     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
    541     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
    542     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
    543     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
    544     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
    545     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
    546     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
    547     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
    548     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
    549     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
    550     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
    551     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    553     _flag_k = FK_CMP;
    554     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
    555 L_2F0050E0:
    556     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
    557 L_2F0050E3:
    558     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
    559     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
    560     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
    561     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
    562     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    564     _flag_k = FK_CMP;
    565     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
    566 L_2F0050F1:
    567     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
    568     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
    569     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
    570 L_2F0050FC:
    571     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
    572     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
    573     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    575     _flag_k = FK_CMP;
    576     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
    577 L_2F005104:
    578     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
    579     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
    580     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
    581 L_2F00510F:
    582     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
    583     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
    584     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
    585 L_2F005119:
    586     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
    587     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    589     _flag_k = FK_NARROW(FK_CMP, 24);
    590     RECOMP_BACKEDGE();
    591     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
    592 L_2F005123:
    593     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
    594     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
    595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    596     _flag_k = FK_CMP;
    597     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
    598 L_2F005127:
    599     eax = ecx; /* 0x2F005127: mov eax, ecx */
    600     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
    601     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
    602     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
    603     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
    604     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
    605     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    607     _flag_k = FK_CMP;
    608     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
    609 L_2F005138:
    610     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
    611 L_2F00513B:
    612     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
    613     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
    614     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
    615     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
    616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    618     _flag_k = FK_CMP;
    619     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
    620 L_2F005149:
    621     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
    622     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
    623 L_2F00514E:
    624     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
    625     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
    626     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
    627     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    628     _flag_k = FK_CMP;
    629     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
    630 L_2F005156:
    631     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
    632     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
    633 L_2F00515B:
    634     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
    635 L_2F00515D:
    636     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
    637     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
    638 L_2F005163:
    639     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
    640     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
    641     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
    642     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
    643     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
    644     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
    645     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
    646     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
    647     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
    648     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
    649     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
    650     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
    651     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    653     _flag_k = FK_CMP;
    654     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
    655 L_2F005188:
    656     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
    657 L_2F00518B:
    658     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
    659     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
    660     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
    661     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
    662     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    664     _flag_k = FK_CMP;
    665     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
    666 L_2F005199:
    667     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
    668     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
    669 L_2F00519E:
    670     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
    671     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
    672     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
    673     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    674     _flag_k = FK_CMP;
    675     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
    676 L_2F0051A5:
    677     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
    678     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
    679 L_2F0051A9:
    680     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
    681 L_2F0051AC:
    682     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
    683 L_2F0051AE:
    684     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
    685 L_2F0051B1:
    686     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
    687     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
    688     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
    689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    690     _flag_k = FK_CMP;
    691     RECOMP_BACKEDGE();
    692     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
    693 L_2F0051BD:
    694     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
    695     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
    696     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
    697     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
    698     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
    699     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
    700     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
    701     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
    702     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
    703     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
    704     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
    705     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
    706     RECOMP_REGS_OUT();
    707 }
    708 
    709 void sub_2F005061(void) {
    710     int _fpu_cmp = 0;
    711     uint32_t _cf = 0;
    712     int _df = 1;
    713     uint32_t _flag_k = FK_NONE;
    714     uint32_t _flag_a = 0, _flag_b = 0;
    715     uint32_t _itail_tgt = 0;
    716     RECOMP_REGS_LOCALS
    717     RECOMP_ENTER(0x2F005061u);
    718 
    719     goto L_2F005061;
    720 L_2F00503D:
    721     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
    722     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
    723     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
    724     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    725     _cf = 0;
    726     _flag_k = FK_NARROW(FK_TEST, 24);
    727     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
    728 L_2F00504B:
    729     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
    730     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
    731     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
    732     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    733     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    734     _flag_k = FK_CMP;
    735     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
    736 L_2F005058:
    737     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
    738     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
    739     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    741     _flag_k = FK_NARROW(FK_CMP, 24);
    742     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
    743 L_2F005061:
    744     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
    745     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
    746     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
    747     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
    748     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
    749     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
    750     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
    751     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
    752 L_2F00507C:
    753     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
    754     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
    755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    756     _flag_k = FK_CMP;
    757     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
    758 L_2F005081:
    759     eax = ecx; /* 0x2F005081: mov eax, ecx */
    760     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
    761     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
    762     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
    763     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
    764     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
    765     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    767     _flag_k = FK_CMP;
    768     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
    769 L_2F005092:
    770     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
    771 L_2F005095:
    772     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
    773     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
    774     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
    775     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
    776     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    778     _flag_k = FK_CMP;
    779     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
    780 L_2F0050A3:
    781     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
    782     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
    783 L_2F0050A8:
    784     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
    785     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
    786     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
    787     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    788     _flag_k = FK_CMP;
    789     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
    790 L_2F0050AF:
    791     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
    792     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
    793 L_2F0050B3:
    794     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
    795 L_2F0050B6:
    796     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
    797     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
    798 L_2F0050BB:
    799     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
    800     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
    801     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
    802     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
    803     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
    804     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
    805     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
    806     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
    807     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
    808     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
    809     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
    810     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
    811     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    813     _flag_k = FK_CMP;
    814     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
    815 L_2F0050E0:
    816     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
    817 L_2F0050E3:
    818     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
    819     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
    820     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
    821     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
    822     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    824     _flag_k = FK_CMP;
    825     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
    826 L_2F0050F1:
    827     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
    828     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
    829     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
    830 L_2F0050FC:
    831     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
    832     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
    833     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    835     _flag_k = FK_CMP;
    836     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
    837 L_2F005104:
    838     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
    839     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
    840     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
    841 L_2F00510F:
    842     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
    843     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
    844     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
    845 L_2F005119:
    846     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
    847     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    849     _flag_k = FK_NARROW(FK_CMP, 24);
    850     RECOMP_BACKEDGE();
    851     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
    852 L_2F005123:
    853     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
    854     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
    855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    856     _flag_k = FK_CMP;
    857     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
    858 L_2F005127:
    859     eax = ecx; /* 0x2F005127: mov eax, ecx */
    860     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
    861     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
    862     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
    863     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
    864     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
    865     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    866     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    867     _flag_k = FK_CMP;
    868     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
    869 L_2F005138:
    870     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
    871 L_2F00513B:
    872     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
    873     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
    874     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
    875     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
    876     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    877     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    878     _flag_k = FK_CMP;
    879     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
    880 L_2F005149:
    881     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
    882     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
    883 L_2F00514E:
    884     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
    885     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
    886     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
    887     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    888     _flag_k = FK_CMP;
    889     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
    890 L_2F005156:
    891     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
    892     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
    893 L_2F00515B:
    894     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
    895 L_2F00515D:
    896     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
    897     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
    898 L_2F005163:
    899     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
    900     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
    901     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
    902     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
    903     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
    904     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
    905     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
    906     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
    907     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
    908     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
    909     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
    910     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
    911     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    913     _flag_k = FK_CMP;
    914     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
    915 L_2F005188:
    916     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
    917 L_2F00518B:
    918     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
    919     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
    920     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
    921     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
    922     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    923     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    924     _flag_k = FK_CMP;
    925     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
    926 L_2F005199:
    927     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
    928     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
    929 L_2F00519E:
    930     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
    931     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
    932     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
    933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    934     _flag_k = FK_CMP;
    935     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
    936 L_2F0051A5:
    937     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
    938     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
    939 L_2F0051A9:
    940     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
    941 L_2F0051AC:
    942     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
    943 L_2F0051AE:
    944     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
    945 L_2F0051B1:
    946     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
    947     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
    948     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
    949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    950     _flag_k = FK_CMP;
    951     RECOMP_BACKEDGE();
    952     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
    953 L_2F0051BD:
    954     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
    955     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
    956     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
    957     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
    958     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
    959     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
    960     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
    961     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
    962     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
    963     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
    964     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
    965     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
    966     RECOMP_REGS_OUT();
    967 }
    968 
    969 void sub_2F0050B6(void) {
    970     int _fpu_cmp = 0;
    971     uint32_t _cf = 0;
    972     int _df = 1;
    973     uint32_t _flag_k = FK_NONE;
    974     uint32_t _flag_a = 0, _flag_b = 0;
    975     uint32_t _itail_tgt = 0;
    976     RECOMP_REGS_LOCALS
    977     RECOMP_ENTER(0x2F0050B6u);
    978 
    979     goto L_2F0050B6;
    980 L_2F00503D:
    981     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
    982     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
    983     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
    984     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    985     _cf = 0;
    986     _flag_k = FK_NARROW(FK_TEST, 24);
    987     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
    988 L_2F00504B:
    989     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
    990     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
    991     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
    992     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    994     _flag_k = FK_CMP;
    995     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
    996 L_2F005058:
    997     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
    998     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
    999     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1001     _flag_k = FK_NARROW(FK_CMP, 24);
   1002     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
   1003 L_2F005061:
   1004     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
   1005     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
   1006     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
   1007     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
   1008     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
   1009     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
   1010     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
   1011     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
   1012 L_2F00507C:
   1013     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
   1014     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1016     _flag_k = FK_CMP;
   1017     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
   1018 L_2F005081:
   1019     eax = ecx; /* 0x2F005081: mov eax, ecx */
   1020     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
   1021     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
   1022     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
   1023     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
   1024     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
   1025     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1027     _flag_k = FK_CMP;
   1028     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
   1029 L_2F005092:
   1030     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
   1031 L_2F005095:
   1032     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
   1033     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
   1034     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
   1035     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
   1036     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1038     _flag_k = FK_CMP;
   1039     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
   1040 L_2F0050A3:
   1041     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
   1042     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
   1043 L_2F0050A8:
   1044     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
   1045     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
   1046     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1048     _flag_k = FK_CMP;
   1049     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
   1050 L_2F0050AF:
   1051     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
   1052     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
   1053 L_2F0050B3:
   1054     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
   1055 L_2F0050B6:
   1056     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
   1057     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
   1058 L_2F0050BB:
   1059     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
   1060     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
   1061     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
   1062     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
   1063     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
   1064     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
   1065     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
   1066     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
   1067     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
   1068     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
   1069     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
   1070     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
   1071     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1072     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1073     _flag_k = FK_CMP;
   1074     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
   1075 L_2F0050E0:
   1076     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
   1077 L_2F0050E3:
   1078     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
   1079     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
   1080     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
   1081     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
   1082     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1084     _flag_k = FK_CMP;
   1085     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
   1086 L_2F0050F1:
   1087     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
   1088     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
   1089     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
   1090 L_2F0050FC:
   1091     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
   1092     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
   1093     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1094     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1095     _flag_k = FK_CMP;
   1096     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
   1097 L_2F005104:
   1098     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
   1099     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
   1100     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
   1101 L_2F00510F:
   1102     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
   1103     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
   1104     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
   1105 L_2F005119:
   1106     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
   1107     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1108     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1109     _flag_k = FK_NARROW(FK_CMP, 24);
   1110     RECOMP_BACKEDGE();
   1111     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
   1112 L_2F005123:
   1113     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
   1114     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1116     _flag_k = FK_CMP;
   1117     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
   1118 L_2F005127:
   1119     eax = ecx; /* 0x2F005127: mov eax, ecx */
   1120     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
   1121     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
   1122     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
   1123     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
   1124     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
   1125     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1127     _flag_k = FK_CMP;
   1128     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
   1129 L_2F005138:
   1130     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
   1131 L_2F00513B:
   1132     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
   1133     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
   1134     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
   1135     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
   1136     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1137     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1138     _flag_k = FK_CMP;
   1139     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
   1140 L_2F005149:
   1141     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
   1142     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
   1143 L_2F00514E:
   1144     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
   1145     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
   1146     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1148     _flag_k = FK_CMP;
   1149     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
   1150 L_2F005156:
   1151     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
   1152     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
   1153 L_2F00515B:
   1154     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
   1155 L_2F00515D:
   1156     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
   1157     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
   1158 L_2F005163:
   1159     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
   1160     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
   1161     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
   1162     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
   1163     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
   1164     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
   1165     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
   1166     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
   1167     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
   1168     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
   1169     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
   1170     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
   1171     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1173     _flag_k = FK_CMP;
   1174     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
   1175 L_2F005188:
   1176     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
   1177 L_2F00518B:
   1178     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
   1179     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
   1180     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
   1181     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
   1182     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1184     _flag_k = FK_CMP;
   1185     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
   1186 L_2F005199:
   1187     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
   1188     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
   1189 L_2F00519E:
   1190     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
   1191     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
   1192     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1194     _flag_k = FK_CMP;
   1195     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
   1196 L_2F0051A5:
   1197     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
   1198     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
   1199 L_2F0051A9:
   1200     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
   1201 L_2F0051AC:
   1202     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
   1203 L_2F0051AE:
   1204     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
   1205 L_2F0051B1:
   1206     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
   1207     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
   1208     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1210     _flag_k = FK_CMP;
   1211     RECOMP_BACKEDGE();
   1212     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
   1213 L_2F0051BD:
   1214     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
   1215     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
   1216     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
   1217     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
   1218     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
   1219     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
   1220     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
   1221     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
   1222     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
   1223     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
   1224     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
   1225     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
   1226     RECOMP_REGS_OUT();
   1227 }
   1228 
   1229 void sub_2F0050BB(void) {
   1230     int _fpu_cmp = 0;
   1231     uint32_t _cf = 0;
   1232     int _df = 1;
   1233     uint32_t _flag_k = FK_NONE;
   1234     uint32_t _flag_a = 0, _flag_b = 0;
   1235     uint32_t _itail_tgt = 0;
   1236     RECOMP_REGS_LOCALS
   1237     RECOMP_ENTER(0x2F0050BBu);
   1238 
   1239     goto L_2F0050BB;
   1240 L_2F00503D:
   1241     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
   1242     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
   1243     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
   1244     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1245     _cf = 0;
   1246     _flag_k = FK_NARROW(FK_TEST, 24);
   1247     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
   1248 L_2F00504B:
   1249     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
   1250     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
   1251     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
   1252     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1254     _flag_k = FK_CMP;
   1255     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
   1256 L_2F005058:
   1257     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
   1258     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
   1259     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1261     _flag_k = FK_NARROW(FK_CMP, 24);
   1262     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
   1263 L_2F005061:
   1264     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
   1265     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
   1266     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
   1267     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
   1268     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
   1269     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
   1270     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
   1271     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
   1272 L_2F00507C:
   1273     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
   1274     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1276     _flag_k = FK_CMP;
   1277     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
   1278 L_2F005081:
   1279     eax = ecx; /* 0x2F005081: mov eax, ecx */
   1280     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
   1281     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
   1282     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
   1283     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
   1284     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
   1285     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1287     _flag_k = FK_CMP;
   1288     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
   1289 L_2F005092:
   1290     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
   1291 L_2F005095:
   1292     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
   1293     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
   1294     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
   1295     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
   1296     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1298     _flag_k = FK_CMP;
   1299     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
   1300 L_2F0050A3:
   1301     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
   1302     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
   1303 L_2F0050A8:
   1304     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
   1305     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
   1306     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1307     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1308     _flag_k = FK_CMP;
   1309     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
   1310 L_2F0050AF:
   1311     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
   1312     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
   1313 L_2F0050B3:
   1314     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
   1315 L_2F0050B6:
   1316     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
   1317     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
   1318 L_2F0050BB:
   1319     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
   1320     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
   1321     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
   1322     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
   1323     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
   1324     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
   1325     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
   1326     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
   1327     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
   1328     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
   1329     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
   1330     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
   1331     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1332     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1333     _flag_k = FK_CMP;
   1334     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
   1335 L_2F0050E0:
   1336     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
   1337 L_2F0050E3:
   1338     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
   1339     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
   1340     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
   1341     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
   1342     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1344     _flag_k = FK_CMP;
   1345     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
   1346 L_2F0050F1:
   1347     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
   1348     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
   1349     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
   1350 L_2F0050FC:
   1351     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
   1352     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
   1353     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1355     _flag_k = FK_CMP;
   1356     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
   1357 L_2F005104:
   1358     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
   1359     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
   1360     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
   1361 L_2F00510F:
   1362     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
   1363     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
   1364     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
   1365 L_2F005119:
   1366     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
   1367     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1368     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1369     _flag_k = FK_NARROW(FK_CMP, 24);
   1370     RECOMP_BACKEDGE();
   1371     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
   1372 L_2F005123:
   1373     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
   1374     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1375     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1376     _flag_k = FK_CMP;
   1377     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
   1378 L_2F005127:
   1379     eax = ecx; /* 0x2F005127: mov eax, ecx */
   1380     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
   1381     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
   1382     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
   1383     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
   1384     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
   1385     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1386     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1387     _flag_k = FK_CMP;
   1388     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
   1389 L_2F005138:
   1390     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
   1391 L_2F00513B:
   1392     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
   1393     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
   1394     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
   1395     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
   1396     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1398     _flag_k = FK_CMP;
   1399     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
   1400 L_2F005149:
   1401     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
   1402     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
   1403 L_2F00514E:
   1404     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
   1405     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
   1406     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1407     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1408     _flag_k = FK_CMP;
   1409     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
   1410 L_2F005156:
   1411     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
   1412     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
   1413 L_2F00515B:
   1414     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
   1415 L_2F00515D:
   1416     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
   1417     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
   1418 L_2F005163:
   1419     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
   1420     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
   1421     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
   1422     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
   1423     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
   1424     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
   1425     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
   1426     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
   1427     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
   1428     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
   1429     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
   1430     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
   1431     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1433     _flag_k = FK_CMP;
   1434     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
   1435 L_2F005188:
   1436     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
   1437 L_2F00518B:
   1438     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
   1439     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
   1440     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
   1441     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
   1442     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1444     _flag_k = FK_CMP;
   1445     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
   1446 L_2F005199:
   1447     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
   1448     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
   1449 L_2F00519E:
   1450     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
   1451     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
   1452     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1454     _flag_k = FK_CMP;
   1455     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
   1456 L_2F0051A5:
   1457     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
   1458     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
   1459 L_2F0051A9:
   1460     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
   1461 L_2F0051AC:
   1462     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
   1463 L_2F0051AE:
   1464     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
   1465 L_2F0051B1:
   1466     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
   1467     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
   1468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1470     _flag_k = FK_CMP;
   1471     RECOMP_BACKEDGE();
   1472     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
   1473 L_2F0051BD:
   1474     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
   1475     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
   1476     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
   1477     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
   1478     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
   1479     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
   1480     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
   1481     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
   1482     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
   1483     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
   1484     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
   1485     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
   1486     RECOMP_REGS_OUT();
   1487 }
   1488 
   1489 void sub_2F005119(void) {
   1490     int _fpu_cmp = 0;
   1491     uint32_t _cf = 0;
   1492     int _df = 1;
   1493     uint32_t _flag_k = FK_NONE;
   1494     uint32_t _flag_a = 0, _flag_b = 0;
   1495     uint32_t _itail_tgt = 0;
   1496     RECOMP_REGS_LOCALS
   1497     RECOMP_ENTER(0x2F005119u);
   1498 
   1499     goto L_2F005119;
   1500 L_2F00503D:
   1501     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
   1502     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
   1503     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
   1504     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1505     _cf = 0;
   1506     _flag_k = FK_NARROW(FK_TEST, 24);
   1507     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
   1508 L_2F00504B:
   1509     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
   1510     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
   1511     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
   1512     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1514     _flag_k = FK_CMP;
   1515     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
   1516 L_2F005058:
   1517     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
   1518     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
   1519     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1521     _flag_k = FK_NARROW(FK_CMP, 24);
   1522     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
   1523 L_2F005061:
   1524     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
   1525     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
   1526     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
   1527     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
   1528     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
   1529     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
   1530     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
   1531     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
   1532 L_2F00507C:
   1533     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
   1534     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1535     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1536     _flag_k = FK_CMP;
   1537     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
   1538 L_2F005081:
   1539     eax = ecx; /* 0x2F005081: mov eax, ecx */
   1540     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
   1541     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
   1542     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
   1543     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
   1544     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
   1545     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1547     _flag_k = FK_CMP;
   1548     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
   1549 L_2F005092:
   1550     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
   1551 L_2F005095:
   1552     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
   1553     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
   1554     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
   1555     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
   1556     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1558     _flag_k = FK_CMP;
   1559     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
   1560 L_2F0050A3:
   1561     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
   1562     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
   1563 L_2F0050A8:
   1564     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
   1565     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
   1566     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1567     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1568     _flag_k = FK_CMP;
   1569     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
   1570 L_2F0050AF:
   1571     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
   1572     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
   1573 L_2F0050B3:
   1574     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
   1575 L_2F0050B6:
   1576     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
   1577     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
   1578 L_2F0050BB:
   1579     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
   1580     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
   1581     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
   1582     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
   1583     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
   1584     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
   1585     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
   1586     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
   1587     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
   1588     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
   1589     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
   1590     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
   1591     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1592     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1593     _flag_k = FK_CMP;
   1594     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
   1595 L_2F0050E0:
   1596     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
   1597 L_2F0050E3:
   1598     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
   1599     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
   1600     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
   1601     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
   1602     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1604     _flag_k = FK_CMP;
   1605     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
   1606 L_2F0050F1:
   1607     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
   1608     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
   1609     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
   1610 L_2F0050FC:
   1611     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
   1612     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
   1613     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1614     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1615     _flag_k = FK_CMP;
   1616     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
   1617 L_2F005104:
   1618     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
   1619     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
   1620     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
   1621 L_2F00510F:
   1622     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
   1623     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
   1624     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
   1625 L_2F005119:
   1626     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
   1627     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1629     _flag_k = FK_NARROW(FK_CMP, 24);
   1630     RECOMP_BACKEDGE();
   1631     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
   1632 L_2F005123:
   1633     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
   1634     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1635     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1636     _flag_k = FK_CMP;
   1637     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
   1638 L_2F005127:
   1639     eax = ecx; /* 0x2F005127: mov eax, ecx */
   1640     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
   1641     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
   1642     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
   1643     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
   1644     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
   1645     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1647     _flag_k = FK_CMP;
   1648     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
   1649 L_2F005138:
   1650     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
   1651 L_2F00513B:
   1652     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
   1653     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
   1654     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
   1655     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
   1656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1658     _flag_k = FK_CMP;
   1659     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
   1660 L_2F005149:
   1661     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
   1662     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
   1663 L_2F00514E:
   1664     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
   1665     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
   1666     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1668     _flag_k = FK_CMP;
   1669     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
   1670 L_2F005156:
   1671     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
   1672     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
   1673 L_2F00515B:
   1674     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
   1675 L_2F00515D:
   1676     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
   1677     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
   1678 L_2F005163:
   1679     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
   1680     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
   1681     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
   1682     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
   1683     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
   1684     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
   1685     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
   1686     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
   1687     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
   1688     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
   1689     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
   1690     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
   1691     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1693     _flag_k = FK_CMP;
   1694     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
   1695 L_2F005188:
   1696     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
   1697 L_2F00518B:
   1698     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
   1699     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
   1700     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
   1701     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
   1702     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1703     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1704     _flag_k = FK_CMP;
   1705     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
   1706 L_2F005199:
   1707     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
   1708     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
   1709 L_2F00519E:
   1710     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
   1711     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
   1712     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1714     _flag_k = FK_CMP;
   1715     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
   1716 L_2F0051A5:
   1717     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
   1718     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
   1719 L_2F0051A9:
   1720     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
   1721 L_2F0051AC:
   1722     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
   1723 L_2F0051AE:
   1724     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
   1725 L_2F0051B1:
   1726     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
   1727     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
   1728     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1729     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1730     _flag_k = FK_CMP;
   1731     RECOMP_BACKEDGE();
   1732     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
   1733 L_2F0051BD:
   1734     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
   1735     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
   1736     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
   1737     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
   1738     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
   1739     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
   1740     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
   1741     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
   1742     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
   1743     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
   1744     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
   1745     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
   1746     RECOMP_REGS_OUT();
   1747 }
   1748 
   1749 void sub_2F00515D(void) {
   1750     int _fpu_cmp = 0;
   1751     uint32_t _cf = 0;
   1752     int _df = 1;
   1753     uint32_t _flag_k = FK_NONE;
   1754     uint32_t _flag_a = 0, _flag_b = 0;
   1755     uint32_t _itail_tgt = 0;
   1756     RECOMP_REGS_LOCALS
   1757     RECOMP_ENTER(0x2F00515Du);
   1758 
   1759     goto L_2F00515D;
   1760 L_2F00503D:
   1761     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
   1762     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
   1763     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
   1764     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1765     _cf = 0;
   1766     _flag_k = FK_NARROW(FK_TEST, 24);
   1767     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
   1768 L_2F00504B:
   1769     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
   1770     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
   1771     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
   1772     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1773     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1774     _flag_k = FK_CMP;
   1775     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
   1776 L_2F005058:
   1777     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
   1778     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
   1779     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1781     _flag_k = FK_NARROW(FK_CMP, 24);
   1782     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
   1783 L_2F005061:
   1784     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
   1785     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
   1786     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
   1787     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
   1788     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
   1789     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
   1790     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
   1791     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
   1792 L_2F00507C:
   1793     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
   1794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1796     _flag_k = FK_CMP;
   1797     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
   1798 L_2F005081:
   1799     eax = ecx; /* 0x2F005081: mov eax, ecx */
   1800     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
   1801     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
   1802     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
   1803     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
   1804     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
   1805     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1807     _flag_k = FK_CMP;
   1808     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
   1809 L_2F005092:
   1810     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
   1811 L_2F005095:
   1812     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
   1813     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
   1814     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
   1815     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
   1816     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1818     _flag_k = FK_CMP;
   1819     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
   1820 L_2F0050A3:
   1821     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
   1822     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
   1823 L_2F0050A8:
   1824     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
   1825     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
   1826     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1828     _flag_k = FK_CMP;
   1829     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
   1830 L_2F0050AF:
   1831     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
   1832     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
   1833 L_2F0050B3:
   1834     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
   1835 L_2F0050B6:
   1836     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
   1837     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
   1838 L_2F0050BB:
   1839     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
   1840     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
   1841     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
   1842     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
   1843     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
   1844     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
   1845     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
   1846     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
   1847     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
   1848     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
   1849     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
   1850     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
   1851     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1853     _flag_k = FK_CMP;
   1854     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
   1855 L_2F0050E0:
   1856     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
   1857 L_2F0050E3:
   1858     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
   1859     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
   1860     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
   1861     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
   1862     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1864     _flag_k = FK_CMP;
   1865     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
   1866 L_2F0050F1:
   1867     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
   1868     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
   1869     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
   1870 L_2F0050FC:
   1871     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
   1872     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
   1873     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1874     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1875     _flag_k = FK_CMP;
   1876     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
   1877 L_2F005104:
   1878     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
   1879     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
   1880     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
   1881 L_2F00510F:
   1882     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
   1883     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
   1884     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
   1885 L_2F005119:
   1886     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
   1887     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1888     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1889     _flag_k = FK_NARROW(FK_CMP, 24);
   1890     RECOMP_BACKEDGE();
   1891     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
   1892 L_2F005123:
   1893     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
   1894     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1896     _flag_k = FK_CMP;
   1897     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
   1898 L_2F005127:
   1899     eax = ecx; /* 0x2F005127: mov eax, ecx */
   1900     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
   1901     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
   1902     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
   1903     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
   1904     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
   1905     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1906     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1907     _flag_k = FK_CMP;
   1908     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
   1909 L_2F005138:
   1910     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
   1911 L_2F00513B:
   1912     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
   1913     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
   1914     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
   1915     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
   1916     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1918     _flag_k = FK_CMP;
   1919     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
   1920 L_2F005149:
   1921     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
   1922     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
   1923 L_2F00514E:
   1924     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
   1925     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
   1926     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1927     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1928     _flag_k = FK_CMP;
   1929     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
   1930 L_2F005156:
   1931     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
   1932     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
   1933 L_2F00515B:
   1934     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
   1935 L_2F00515D:
   1936     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
   1937     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
   1938 L_2F005163:
   1939     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
   1940     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
   1941     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
   1942     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
   1943     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
   1944     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
   1945     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
   1946     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
   1947     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
   1948     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
   1949     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
   1950     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
   1951     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1953     _flag_k = FK_CMP;
   1954     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
   1955 L_2F005188:
   1956     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
   1957 L_2F00518B:
   1958     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
   1959     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
   1960     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
   1961     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
   1962     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1964     _flag_k = FK_CMP;
   1965     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
   1966 L_2F005199:
   1967     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
   1968     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
   1969 L_2F00519E:
   1970     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
   1971     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
   1972     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1974     _flag_k = FK_CMP;
   1975     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
   1976 L_2F0051A5:
   1977     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
   1978     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
   1979 L_2F0051A9:
   1980     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
   1981 L_2F0051AC:
   1982     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
   1983 L_2F0051AE:
   1984     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
   1985 L_2F0051B1:
   1986     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
   1987     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
   1988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1990     _flag_k = FK_CMP;
   1991     RECOMP_BACKEDGE();
   1992     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
   1993 L_2F0051BD:
   1994     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
   1995     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
   1996     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
   1997     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
   1998     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
   1999     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
   2000     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
   2001     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
   2002     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
   2003     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
   2004     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
   2005     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
   2006     RECOMP_REGS_OUT();
   2007 }
   2008 
   2009 void sub_2F005163(void) {
   2010     int _fpu_cmp = 0;
   2011     uint32_t _cf = 0;
   2012     int _df = 1;
   2013     uint32_t _flag_k = FK_NONE;
   2014     uint32_t _flag_a = 0, _flag_b = 0;
   2015     uint32_t _itail_tgt = 0;
   2016     RECOMP_REGS_LOCALS
   2017     RECOMP_ENTER(0x2F005163u);
   2018 
   2019     goto L_2F005163;
   2020 L_2F00503D:
   2021     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
   2022     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
   2023     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
   2024     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2025     _cf = 0;
   2026     _flag_k = FK_NARROW(FK_TEST, 24);
   2027     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
   2028 L_2F00504B:
   2029     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
   2030     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
   2031     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
   2032     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2033     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2034     _flag_k = FK_CMP;
   2035     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
   2036 L_2F005058:
   2037     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
   2038     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
   2039     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2041     _flag_k = FK_NARROW(FK_CMP, 24);
   2042     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
   2043 L_2F005061:
   2044     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
   2045     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
   2046     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
   2047     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
   2048     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
   2049     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
   2050     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
   2051     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
   2052 L_2F00507C:
   2053     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
   2054     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2056     _flag_k = FK_CMP;
   2057     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
   2058 L_2F005081:
   2059     eax = ecx; /* 0x2F005081: mov eax, ecx */
   2060     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
   2061     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
   2062     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
   2063     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
   2064     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
   2065     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2067     _flag_k = FK_CMP;
   2068     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
   2069 L_2F005092:
   2070     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
   2071 L_2F005095:
   2072     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
   2073     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
   2074     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
   2075     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
   2076     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2078     _flag_k = FK_CMP;
   2079     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
   2080 L_2F0050A3:
   2081     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
   2082     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
   2083 L_2F0050A8:
   2084     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
   2085     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
   2086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2088     _flag_k = FK_CMP;
   2089     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
   2090 L_2F0050AF:
   2091     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
   2092     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
   2093 L_2F0050B3:
   2094     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
   2095 L_2F0050B6:
   2096     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
   2097     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
   2098 L_2F0050BB:
   2099     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
   2100     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
   2101     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
   2102     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
   2103     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
   2104     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
   2105     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
   2106     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
   2107     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
   2108     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
   2109     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
   2110     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
   2111     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2112     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2113     _flag_k = FK_CMP;
   2114     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
   2115 L_2F0050E0:
   2116     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
   2117 L_2F0050E3:
   2118     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
   2119     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
   2120     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
   2121     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
   2122     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2124     _flag_k = FK_CMP;
   2125     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
   2126 L_2F0050F1:
   2127     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
   2128     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
   2129     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
   2130 L_2F0050FC:
   2131     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
   2132     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
   2133     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2134     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2135     _flag_k = FK_CMP;
   2136     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
   2137 L_2F005104:
   2138     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
   2139     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
   2140     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
   2141 L_2F00510F:
   2142     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
   2143     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
   2144     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
   2145 L_2F005119:
   2146     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
   2147     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2149     _flag_k = FK_NARROW(FK_CMP, 24);
   2150     RECOMP_BACKEDGE();
   2151     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
   2152 L_2F005123:
   2153     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
   2154     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2156     _flag_k = FK_CMP;
   2157     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
   2158 L_2F005127:
   2159     eax = ecx; /* 0x2F005127: mov eax, ecx */
   2160     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
   2161     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
   2162     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
   2163     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
   2164     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
   2165     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2166     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2167     _flag_k = FK_CMP;
   2168     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
   2169 L_2F005138:
   2170     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
   2171 L_2F00513B:
   2172     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
   2173     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
   2174     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
   2175     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
   2176     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2178     _flag_k = FK_CMP;
   2179     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
   2180 L_2F005149:
   2181     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
   2182     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
   2183 L_2F00514E:
   2184     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
   2185     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
   2186     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2188     _flag_k = FK_CMP;
   2189     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
   2190 L_2F005156:
   2191     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
   2192     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
   2193 L_2F00515B:
   2194     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
   2195 L_2F00515D:
   2196     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
   2197     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
   2198 L_2F005163:
   2199     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
   2200     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
   2201     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
   2202     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
   2203     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
   2204     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
   2205     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
   2206     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
   2207     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
   2208     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
   2209     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
   2210     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
   2211     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2212     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2213     _flag_k = FK_CMP;
   2214     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
   2215 L_2F005188:
   2216     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
   2217 L_2F00518B:
   2218     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
   2219     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
   2220     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
   2221     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
   2222     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2223     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2224     _flag_k = FK_CMP;
   2225     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
   2226 L_2F005199:
   2227     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
   2228     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
   2229 L_2F00519E:
   2230     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
   2231     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
   2232     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2234     _flag_k = FK_CMP;
   2235     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
   2236 L_2F0051A5:
   2237     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
   2238     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
   2239 L_2F0051A9:
   2240     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
   2241 L_2F0051AC:
   2242     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
   2243 L_2F0051AE:
   2244     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
   2245 L_2F0051B1:
   2246     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
   2247     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
   2248     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2250     _flag_k = FK_CMP;
   2251     RECOMP_BACKEDGE();
   2252     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
   2253 L_2F0051BD:
   2254     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
   2255     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
   2256     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
   2257     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
   2258     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
   2259     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
   2260     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
   2261     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
   2262     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
   2263     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
   2264     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
   2265     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
   2266     RECOMP_REGS_OUT();
   2267 }
   2268 
   2269 void sub_2F0051AC(void) {
   2270     int _fpu_cmp = 0;
   2271     uint32_t _cf = 0;
   2272     int _df = 1;
   2273     uint32_t _flag_k = FK_NONE;
   2274     uint32_t _flag_a = 0, _flag_b = 0;
   2275     uint32_t _itail_tgt = 0;
   2276     RECOMP_REGS_LOCALS
   2277     RECOMP_ENTER(0x2F0051ACu);
   2278 
   2279     goto L_2F0051AC;
   2280 L_2F00503D:
   2281     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
   2282     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
   2283     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
   2284     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2285     _cf = 0;
   2286     _flag_k = FK_NARROW(FK_TEST, 24);
   2287     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
   2288 L_2F00504B:
   2289     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
   2290     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
   2291     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
   2292     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2294     _flag_k = FK_CMP;
   2295     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
   2296 L_2F005058:
   2297     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
   2298     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
   2299     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2301     _flag_k = FK_NARROW(FK_CMP, 24);
   2302     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
   2303 L_2F005061:
   2304     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
   2305     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
   2306     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
   2307     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
   2308     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
   2309     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
   2310     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
   2311     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
   2312 L_2F00507C:
   2313     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
   2314     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2316     _flag_k = FK_CMP;
   2317     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
   2318 L_2F005081:
   2319     eax = ecx; /* 0x2F005081: mov eax, ecx */
   2320     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
   2321     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
   2322     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
   2323     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
   2324     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
   2325     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2326     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2327     _flag_k = FK_CMP;
   2328     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
   2329 L_2F005092:
   2330     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
   2331 L_2F005095:
   2332     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
   2333     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
   2334     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
   2335     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
   2336     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2338     _flag_k = FK_CMP;
   2339     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
   2340 L_2F0050A3:
   2341     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
   2342     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
   2343 L_2F0050A8:
   2344     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
   2345     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
   2346     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2348     _flag_k = FK_CMP;
   2349     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
   2350 L_2F0050AF:
   2351     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
   2352     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
   2353 L_2F0050B3:
   2354     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
   2355 L_2F0050B6:
   2356     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
   2357     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
   2358 L_2F0050BB:
   2359     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
   2360     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
   2361     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
   2362     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
   2363     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
   2364     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
   2365     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
   2366     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
   2367     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
   2368     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
   2369     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
   2370     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
   2371     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2373     _flag_k = FK_CMP;
   2374     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
   2375 L_2F0050E0:
   2376     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
   2377 L_2F0050E3:
   2378     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
   2379     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
   2380     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
   2381     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
   2382     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2384     _flag_k = FK_CMP;
   2385     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
   2386 L_2F0050F1:
   2387     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
   2388     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
   2389     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
   2390 L_2F0050FC:
   2391     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
   2392     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
   2393     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2394     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2395     _flag_k = FK_CMP;
   2396     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
   2397 L_2F005104:
   2398     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
   2399     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
   2400     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
   2401 L_2F00510F:
   2402     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
   2403     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
   2404     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
   2405 L_2F005119:
   2406     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
   2407     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2408     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2409     _flag_k = FK_NARROW(FK_CMP, 24);
   2410     RECOMP_BACKEDGE();
   2411     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
   2412 L_2F005123:
   2413     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
   2414     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2416     _flag_k = FK_CMP;
   2417     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
   2418 L_2F005127:
   2419     eax = ecx; /* 0x2F005127: mov eax, ecx */
   2420     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
   2421     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
   2422     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
   2423     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
   2424     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
   2425     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2427     _flag_k = FK_CMP;
   2428     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
   2429 L_2F005138:
   2430     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
   2431 L_2F00513B:
   2432     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
   2433     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
   2434     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
   2435     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
   2436     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2438     _flag_k = FK_CMP;
   2439     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
   2440 L_2F005149:
   2441     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
   2442     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
   2443 L_2F00514E:
   2444     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
   2445     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
   2446     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2448     _flag_k = FK_CMP;
   2449     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
   2450 L_2F005156:
   2451     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
   2452     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
   2453 L_2F00515B:
   2454     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
   2455 L_2F00515D:
   2456     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
   2457     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
   2458 L_2F005163:
   2459     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
   2460     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
   2461     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
   2462     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
   2463     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
   2464     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
   2465     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
   2466     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
   2467     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
   2468     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
   2469     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
   2470     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
   2471     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2473     _flag_k = FK_CMP;
   2474     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
   2475 L_2F005188:
   2476     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
   2477 L_2F00518B:
   2478     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
   2479     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
   2480     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
   2481     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
   2482     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2484     _flag_k = FK_CMP;
   2485     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
   2486 L_2F005199:
   2487     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
   2488     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
   2489 L_2F00519E:
   2490     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
   2491     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
   2492     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2494     _flag_k = FK_CMP;
   2495     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
   2496 L_2F0051A5:
   2497     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
   2498     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
   2499 L_2F0051A9:
   2500     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
   2501 L_2F0051AC:
   2502     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
   2503 L_2F0051AE:
   2504     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
   2505 L_2F0051B1:
   2506     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
   2507     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
   2508     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2510     _flag_k = FK_CMP;
   2511     RECOMP_BACKEDGE();
   2512     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
   2513 L_2F0051BD:
   2514     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
   2515     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
   2516     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
   2517     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
   2518     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
   2519     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
   2520     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
   2521     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
   2522     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
   2523     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
   2524     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
   2525     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
   2526     RECOMP_REGS_OUT();
   2527 }
   2528 
   2529 void sub_2F0051AE(void) {
   2530     int _fpu_cmp = 0;
   2531     uint32_t _cf = 0;
   2532     int _df = 1;
   2533     uint32_t _flag_k = FK_NONE;
   2534     uint32_t _flag_a = 0, _flag_b = 0;
   2535     uint32_t _itail_tgt = 0;
   2536     RECOMP_REGS_LOCALS
   2537     RECOMP_ENTER(0x2F0051AEu);
   2538 
   2539     goto L_2F0051AE;
   2540 L_2F00503D:
   2541     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
   2542     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
   2543     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
   2544     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2545     _cf = 0;
   2546     _flag_k = FK_NARROW(FK_TEST, 24);
   2547     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
   2548 L_2F00504B:
   2549     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
   2550     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
   2551     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
   2552     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2553     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2554     _flag_k = FK_CMP;
   2555     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
   2556 L_2F005058:
   2557     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
   2558     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
   2559     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2561     _flag_k = FK_NARROW(FK_CMP, 24);
   2562     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
   2563 L_2F005061:
   2564     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
   2565     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
   2566     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
   2567     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
   2568     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
   2569     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
   2570     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
   2571     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
   2572 L_2F00507C:
   2573     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
   2574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2575     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2576     _flag_k = FK_CMP;
   2577     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
   2578 L_2F005081:
   2579     eax = ecx; /* 0x2F005081: mov eax, ecx */
   2580     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
   2581     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
   2582     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
   2583     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
   2584     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
   2585     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2586     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2587     _flag_k = FK_CMP;
   2588     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
   2589 L_2F005092:
   2590     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
   2591 L_2F005095:
   2592     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
   2593     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
   2594     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
   2595     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
   2596     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2598     _flag_k = FK_CMP;
   2599     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
   2600 L_2F0050A3:
   2601     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
   2602     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
   2603 L_2F0050A8:
   2604     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
   2605     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
   2606     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2608     _flag_k = FK_CMP;
   2609     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
   2610 L_2F0050AF:
   2611     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
   2612     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
   2613 L_2F0050B3:
   2614     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
   2615 L_2F0050B6:
   2616     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
   2617     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
   2618 L_2F0050BB:
   2619     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
   2620     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
   2621     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
   2622     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
   2623     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
   2624     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
   2625     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
   2626     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
   2627     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
   2628     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
   2629     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
   2630     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
   2631     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2633     _flag_k = FK_CMP;
   2634     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
   2635 L_2F0050E0:
   2636     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
   2637 L_2F0050E3:
   2638     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
   2639     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
   2640     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
   2641     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
   2642     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2644     _flag_k = FK_CMP;
   2645     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
   2646 L_2F0050F1:
   2647     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
   2648     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
   2649     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
   2650 L_2F0050FC:
   2651     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
   2652     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
   2653     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2655     _flag_k = FK_CMP;
   2656     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
   2657 L_2F005104:
   2658     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
   2659     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
   2660     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
   2661 L_2F00510F:
   2662     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
   2663     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
   2664     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
   2665 L_2F005119:
   2666     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
   2667     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2669     _flag_k = FK_NARROW(FK_CMP, 24);
   2670     RECOMP_BACKEDGE();
   2671     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
   2672 L_2F005123:
   2673     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
   2674     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2675     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2676     _flag_k = FK_CMP;
   2677     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
   2678 L_2F005127:
   2679     eax = ecx; /* 0x2F005127: mov eax, ecx */
   2680     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
   2681     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
   2682     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
   2683     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
   2684     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
   2685     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2686     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2687     _flag_k = FK_CMP;
   2688     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
   2689 L_2F005138:
   2690     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
   2691 L_2F00513B:
   2692     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
   2693     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
   2694     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
   2695     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
   2696     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2698     _flag_k = FK_CMP;
   2699     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
   2700 L_2F005149:
   2701     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
   2702     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
   2703 L_2F00514E:
   2704     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
   2705     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
   2706     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2707     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2708     _flag_k = FK_CMP;
   2709     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
   2710 L_2F005156:
   2711     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
   2712     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
   2713 L_2F00515B:
   2714     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
   2715 L_2F00515D:
   2716     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
   2717     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
   2718 L_2F005163:
   2719     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
   2720     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
   2721     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
   2722     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
   2723     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
   2724     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
   2725     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
   2726     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
   2727     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
   2728     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
   2729     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
   2730     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
   2731     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2733     _flag_k = FK_CMP;
   2734     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
   2735 L_2F005188:
   2736     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
   2737 L_2F00518B:
   2738     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
   2739     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
   2740     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
   2741     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
   2742     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2744     _flag_k = FK_CMP;
   2745     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
   2746 L_2F005199:
   2747     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
   2748     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
   2749 L_2F00519E:
   2750     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
   2751     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
   2752     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2754     _flag_k = FK_CMP;
   2755     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
   2756 L_2F0051A5:
   2757     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
   2758     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
   2759 L_2F0051A9:
   2760     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
   2761 L_2F0051AC:
   2762     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
   2763 L_2F0051AE:
   2764     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
   2765 L_2F0051B1:
   2766     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
   2767     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
   2768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2770     _flag_k = FK_CMP;
   2771     RECOMP_BACKEDGE();
   2772     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
   2773 L_2F0051BD:
   2774     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
   2775     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
   2776     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
   2777     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
   2778     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
   2779     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
   2780     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
   2781     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
   2782     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
   2783     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
   2784     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
   2785     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
   2786     RECOMP_REGS_OUT();
   2787 }
   2788 
   2789 void sub_2F0051B1(void) {
   2790     int _fpu_cmp = 0;
   2791     uint32_t _cf = 0;
   2792     int _df = 1;
   2793     uint32_t _flag_k = FK_NONE;
   2794     uint32_t _flag_a = 0, _flag_b = 0;
   2795     uint32_t _itail_tgt = 0;
   2796     RECOMP_REGS_LOCALS
   2797     RECOMP_ENTER(0x2F0051B1u);
   2798 
   2799     goto L_2F0051B1;
   2800 L_2F00503D:
   2801     ecx = MEM32(eax + 0x4); /* 0x2F00503D: mov ecx, dword ptr [eax + 4] */
   2802     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2F005040: mov dl, byte ptr [ecx + 0x18] */
   2803     /* test LO8(edx), LO8(edx) */ /* 0x2F005043: test dl, dl */
   2804     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2805     _cf = 0;
   2806     _flag_k = FK_NARROW(FK_TEST, 24);
   2807     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0051BD; /* 0x2F005045: jne 0x2f0051bd */
   2808 L_2F00504B:
   2809     edi = MEM32(ecx + 0x4); /* 0x2F00504B: mov edi, dword ptr [ecx + 4] */
   2810     edx = MEM32(edi); /* 0x2F00504E: mov edx, dword ptr [edi] */
   2811     /* cmp ecx, edx */ /* 0x2F005050: cmp ecx, edx */
   2812     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2814     _flag_k = FK_CMP;
   2815     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005119; /* 0x2F005052: jne 0x2f005119 */
   2816 L_2F005058:
   2817     edx = MEM32(edi + 0x8); /* 0x2F005058: mov edx, dword ptr [edi + 8] */
   2818     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F00505B: cmp byte ptr [edx + 0x18], 0 */
   2819     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2821     _flag_k = FK_NARROW(FK_CMP, 24);
   2822     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00507C; /* 0x2F00505F: jne 0x2f00507c */
   2823 L_2F005061:
   2824     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005061: mov byte ptr [ecx + 0x18], bl */
   2825     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005064: mov byte ptr [edx + 0x18], bl */
   2826     ecx = MEM32(eax + 0x4); /* 0x2F005067: mov ecx, dword ptr [eax + 4] */
   2827     edx = MEM32(ecx + 0x4); /* 0x2F00506A: mov edx, dword ptr [ecx + 4] */
   2828     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x2F00506D: mov byte ptr [edx + 0x18], 0 */
   2829     eax = MEM32(eax + 0x4); /* 0x2F005071: mov eax, dword ptr [eax + 4] */
   2830     eax = MEM32(eax + 0x4); /* 0x2F005074: mov eax, dword ptr [eax + 4] */
   2831     goto L_2F0051B1; /* 0x2F005077: jmp 0x2f0051b1 */
   2832 L_2F00507C:
   2833     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2F00507C: cmp eax, dword ptr [ecx + 8] */
   2834     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2835     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2836     _flag_k = FK_CMP;
   2837     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050BB; /* 0x2F00507F: jne 0x2f0050bb */
   2838 L_2F005081:
   2839     eax = ecx; /* 0x2F005081: mov eax, ecx */
   2840     ecx = MEM32(eax + 0x8); /* 0x2F005083: mov ecx, dword ptr [eax + 8] */
   2841     edx = MEM32(ecx); /* 0x2F005086: mov edx, dword ptr [ecx] */
   2842     MEM32(eax + 0x8) = edx; /* 0x2F005088: mov dword ptr [eax + 8], edx */
   2843     edx = MEM32(ecx); /* 0x2F00508B: mov edx, dword ptr [ecx] */
   2844     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F00508D: cmp edx, dword ptr [esi + 8] */
   2845     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2847     _flag_k = FK_CMP;
   2848     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005095; /* 0x2F005090: je 0x2f005095 */
   2849 L_2F005092:
   2850     MEM32(edx + 0x4) = eax; /* 0x2F005092: mov dword ptr [edx + 4], eax */
   2851 L_2F005095:
   2852     edx = MEM32(eax + 0x4); /* 0x2F005095: mov edx, dword ptr [eax + 4] */
   2853     MEM32(ecx + 0x4) = edx; /* 0x2F005098: mov dword ptr [ecx + 4], edx */
   2854     edx = MEM32(esi + 0x4); /* 0x2F00509B: mov edx, dword ptr [esi + 4] */
   2855     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F00509E: cmp eax, dword ptr [edx + 4] */
   2856     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2858     _flag_k = FK_CMP;
   2859     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050A8; /* 0x2F0050A1: jne 0x2f0050a8 */
   2860 L_2F0050A3:
   2861     MEM32(edx + 0x4) = ecx; /* 0x2F0050A3: mov dword ptr [edx + 4], ecx */
   2862     goto L_2F0050B6; /* 0x2F0050A6: jmp 0x2f0050b6 */
   2863 L_2F0050A8:
   2864     edx = MEM32(eax + 0x4); /* 0x2F0050A8: mov edx, dword ptr [eax + 4] */
   2865     /* cmp eax, MEM32(edx) */ /* 0x2F0050AB: cmp eax, dword ptr [edx] */
   2866     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2867     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2868     _flag_k = FK_CMP;
   2869     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050B3; /* 0x2F0050AD: jne 0x2f0050b3 */
   2870 L_2F0050AF:
   2871     MEM32(edx) = ecx; /* 0x2F0050AF: mov dword ptr [edx], ecx */
   2872     goto L_2F0050B6; /* 0x2F0050B1: jmp 0x2f0050b6 */
   2873 L_2F0050B3:
   2874     MEM32(edx + 0x8) = ecx; /* 0x2F0050B3: mov dword ptr [edx + 8], ecx */
   2875 L_2F0050B6:
   2876     MEM32(ecx) = eax; /* 0x2F0050B6: mov dword ptr [ecx], eax */
   2877     MEM32(eax + 0x4) = ecx; /* 0x2F0050B8: mov dword ptr [eax + 4], ecx */
   2878 L_2F0050BB:
   2879     ecx = MEM32(eax + 0x4); /* 0x2F0050BB: mov ecx, dword ptr [eax + 4] */
   2880     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0050BE: mov byte ptr [ecx + 0x18], bl */
   2881     edx = MEM32(eax + 0x4); /* 0x2F0050C1: mov edx, dword ptr [eax + 4] */
   2882     ecx = MEM32(edx + 0x4); /* 0x2F0050C4: mov ecx, dword ptr [edx + 4] */
   2883     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F0050C7: mov byte ptr [ecx + 0x18], 0 */
   2884     edx = MEM32(eax + 0x4); /* 0x2F0050CB: mov edx, dword ptr [eax + 4] */
   2885     ecx = MEM32(edx + 0x4); /* 0x2F0050CE: mov ecx, dword ptr [edx + 4] */
   2886     edx = MEM32(ecx); /* 0x2F0050D1: mov edx, dword ptr [ecx] */
   2887     edi = MEM32(edx + 0x8); /* 0x2F0050D3: mov edi, dword ptr [edx + 8] */
   2888     MEM32(ecx) = edi; /* 0x2F0050D6: mov dword ptr [ecx], edi */
   2889     edi = MEM32(edx + 0x8); /* 0x2F0050D8: mov edi, dword ptr [edx + 8] */
   2890     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F0050DB: cmp edi, dword ptr [esi + 8] */
   2891     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2892     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2893     _flag_k = FK_CMP;
   2894     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0050E3; /* 0x2F0050DE: je 0x2f0050e3 */
   2895 L_2F0050E0:
   2896     MEM32(edi + 0x4) = ecx; /* 0x2F0050E0: mov dword ptr [edi + 4], ecx */
   2897 L_2F0050E3:
   2898     edi = MEM32(ecx + 0x4); /* 0x2F0050E3: mov edi, dword ptr [ecx + 4] */
   2899     MEM32(edx + 0x4) = edi; /* 0x2F0050E6: mov dword ptr [edx + 4], edi */
   2900     edi = MEM32(esi + 0x4); /* 0x2F0050E9: mov edi, dword ptr [esi + 4] */
   2901     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F0050EC: cmp ecx, dword ptr [edi + 4] */
   2902     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2904     _flag_k = FK_CMP;
   2905     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0050FC; /* 0x2F0050EF: jne 0x2f0050fc */
   2906 L_2F0050F1:
   2907     MEM32(edi + 0x4) = edx; /* 0x2F0050F1: mov dword ptr [edi + 4], edx */
   2908     MEM32(edx + 0x8) = ecx; /* 0x2F0050F4: mov dword ptr [edx + 8], ecx */
   2909     goto L_2F0051AE; /* 0x2F0050F7: jmp 0x2f0051ae */
   2910 L_2F0050FC:
   2911     edi = MEM32(ecx + 0x4); /* 0x2F0050FC: mov edi, dword ptr [ecx + 4] */
   2912     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2F0050FF: cmp ecx, dword ptr [edi + 8] */
   2913     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2915     _flag_k = FK_CMP;
   2916     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00510F; /* 0x2F005102: jne 0x2f00510f */
   2917 L_2F005104:
   2918     MEM32(edi + 0x8) = edx; /* 0x2F005104: mov dword ptr [edi + 8], edx */
   2919     MEM32(edx + 0x8) = ecx; /* 0x2F005107: mov dword ptr [edx + 8], ecx */
   2920     goto L_2F0051AE; /* 0x2F00510A: jmp 0x2f0051ae */
   2921 L_2F00510F:
   2922     MEM32(edi) = edx; /* 0x2F00510F: mov dword ptr [edi], edx */
   2923     MEM32(edx + 0x8) = ecx; /* 0x2F005111: mov dword ptr [edx + 8], ecx */
   2924     goto L_2F0051AE; /* 0x2F005114: jmp 0x2f0051ae */
   2925 L_2F005119:
   2926     /* cmp MEM8(edx + 0x18), 0 */ /* 0x2F005119: cmp byte ptr [edx + 0x18], 0 */
   2927     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2928     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2929     _flag_k = FK_NARROW(FK_CMP, 24);
   2930     RECOMP_BACKEDGE();
   2931     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005061; /* 0x2F00511D: je 0x2f005061 */
   2932 L_2F005123:
   2933     /* cmp eax, MEM32(ecx) */ /* 0x2F005123: cmp eax, dword ptr [ecx] */
   2934     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2935     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2936     _flag_k = FK_CMP;
   2937     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005163; /* 0x2F005125: jne 0x2f005163 */
   2938 L_2F005127:
   2939     eax = ecx; /* 0x2F005127: mov eax, ecx */
   2940     ecx = MEM32(eax); /* 0x2F005129: mov ecx, dword ptr [eax] */
   2941     edx = MEM32(ecx + 0x8); /* 0x2F00512B: mov edx, dword ptr [ecx + 8] */
   2942     MEM32(eax) = edx; /* 0x2F00512E: mov dword ptr [eax], edx */
   2943     edx = MEM32(ecx + 0x8); /* 0x2F005130: mov edx, dword ptr [ecx + 8] */
   2944     /* cmp edx, MEM32(esi + 0x8) */ /* 0x2F005133: cmp edx, dword ptr [esi + 8] */
   2945     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2947     _flag_k = FK_CMP;
   2948     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00513B; /* 0x2F005136: je 0x2f00513b */
   2949 L_2F005138:
   2950     MEM32(edx + 0x4) = eax; /* 0x2F005138: mov dword ptr [edx + 4], eax */
   2951 L_2F00513B:
   2952     edx = MEM32(eax + 0x4); /* 0x2F00513B: mov edx, dword ptr [eax + 4] */
   2953     MEM32(ecx + 0x4) = edx; /* 0x2F00513E: mov dword ptr [ecx + 4], edx */
   2954     edx = MEM32(esi + 0x4); /* 0x2F005141: mov edx, dword ptr [esi + 4] */
   2955     /* cmp eax, MEM32(edx + 0x4) */ /* 0x2F005144: cmp eax, dword ptr [edx + 4] */
   2956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2958     _flag_k = FK_CMP;
   2959     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00514E; /* 0x2F005147: jne 0x2f00514e */
   2960 L_2F005149:
   2961     MEM32(edx + 0x4) = ecx; /* 0x2F005149: mov dword ptr [edx + 4], ecx */
   2962     goto L_2F00515D; /* 0x2F00514C: jmp 0x2f00515d */
   2963 L_2F00514E:
   2964     edx = MEM32(eax + 0x4); /* 0x2F00514E: mov edx, dword ptr [eax + 4] */
   2965     /* cmp eax, MEM32(edx + 0x8) */ /* 0x2F005151: cmp eax, dword ptr [edx + 8] */
   2966     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2968     _flag_k = FK_CMP;
   2969     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00515B; /* 0x2F005154: jne 0x2f00515b */
   2970 L_2F005156:
   2971     MEM32(edx + 0x8) = ecx; /* 0x2F005156: mov dword ptr [edx + 8], ecx */
   2972     goto L_2F00515D; /* 0x2F005159: jmp 0x2f00515d */
   2973 L_2F00515B:
   2974     MEM32(edx) = ecx; /* 0x2F00515B: mov dword ptr [edx], ecx */
   2975 L_2F00515D:
   2976     MEM32(ecx + 0x8) = eax; /* 0x2F00515D: mov dword ptr [ecx + 8], eax */
   2977     MEM32(eax + 0x4) = ecx; /* 0x2F005160: mov dword ptr [eax + 4], ecx */
   2978 L_2F005163:
   2979     ecx = MEM32(eax + 0x4); /* 0x2F005163: mov ecx, dword ptr [eax + 4] */
   2980     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F005166: mov byte ptr [ecx + 0x18], bl */
   2981     edx = MEM32(eax + 0x4); /* 0x2F005169: mov edx, dword ptr [eax + 4] */
   2982     ecx = MEM32(edx + 0x4); /* 0x2F00516C: mov ecx, dword ptr [edx + 4] */
   2983     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2F00516F: mov byte ptr [ecx + 0x18], 0 */
   2984     edx = MEM32(eax + 0x4); /* 0x2F005173: mov edx, dword ptr [eax + 4] */
   2985     ecx = MEM32(edx + 0x4); /* 0x2F005176: mov ecx, dword ptr [edx + 4] */
   2986     edx = MEM32(ecx + 0x8); /* 0x2F005179: mov edx, dword ptr [ecx + 8] */
   2987     edi = MEM32(edx); /* 0x2F00517C: mov edi, dword ptr [edx] */
   2988     MEM32(ecx + 0x8) = edi; /* 0x2F00517E: mov dword ptr [ecx + 8], edi */
   2989     edi = MEM32(edx); /* 0x2F005181: mov edi, dword ptr [edx] */
   2990     /* cmp edi, MEM32(esi + 0x8) */ /* 0x2F005183: cmp edi, dword ptr [esi + 8] */
   2991     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2993     _flag_k = FK_CMP;
   2994     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00518B; /* 0x2F005186: je 0x2f00518b */
   2995 L_2F005188:
   2996     MEM32(edi + 0x4) = ecx; /* 0x2F005188: mov dword ptr [edi + 4], ecx */
   2997 L_2F00518B:
   2998     edi = MEM32(ecx + 0x4); /* 0x2F00518B: mov edi, dword ptr [ecx + 4] */
   2999     MEM32(edx + 0x4) = edi; /* 0x2F00518E: mov dword ptr [edx + 4], edi */
   3000     edi = MEM32(esi + 0x4); /* 0x2F005191: mov edi, dword ptr [esi + 4] */
   3001     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2F005194: cmp ecx, dword ptr [edi + 4] */
   3002     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3004     _flag_k = FK_CMP;
   3005     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00519E; /* 0x2F005197: jne 0x2f00519e */
   3006 L_2F005199:
   3007     MEM32(edi + 0x4) = edx; /* 0x2F005199: mov dword ptr [edi + 4], edx */
   3008     goto L_2F0051AC; /* 0x2F00519C: jmp 0x2f0051ac */
   3009 L_2F00519E:
   3010     edi = MEM32(ecx + 0x4); /* 0x2F00519E: mov edi, dword ptr [ecx + 4] */
   3011     /* cmp ecx, MEM32(edi) */ /* 0x2F0051A1: cmp ecx, dword ptr [edi] */
   3012     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3013     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3014     _flag_k = FK_CMP;
   3015     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051A9; /* 0x2F0051A3: jne 0x2f0051a9 */
   3016 L_2F0051A5:
   3017     MEM32(edi) = edx; /* 0x2F0051A5: mov dword ptr [edi], edx */
   3018     goto L_2F0051AC; /* 0x2F0051A7: jmp 0x2f0051ac */
   3019 L_2F0051A9:
   3020     MEM32(edi + 0x8) = edx; /* 0x2F0051A9: mov dword ptr [edi + 8], edx */
   3021 L_2F0051AC:
   3022     MEM32(edx) = ecx; /* 0x2F0051AC: mov dword ptr [edx], ecx */
   3023 L_2F0051AE:
   3024     MEM32(ecx + 0x4) = edx; /* 0x2F0051AE: mov dword ptr [ecx + 4], edx */
   3025 L_2F0051B1:
   3026     ecx = MEM32(esi + 0x4); /* 0x2F0051B1: mov ecx, dword ptr [esi + 4] */
   3027     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2F0051B4: cmp eax, dword ptr [ecx + 4] */
   3028     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3030     _flag_k = FK_CMP;
   3031     RECOMP_BACKEDGE();
   3032     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00503D; /* 0x2F0051B7: jne 0x2f00503d */
   3033 L_2F0051BD:
   3034     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
   3035     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
   3036     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
   3037     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
   3038     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
   3039     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
   3040     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
   3041     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
   3042     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
   3043     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
   3044     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
   3045     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
   3046     RECOMP_REGS_OUT();
   3047 }
   3048 
   3049 void sub_2F0051BD(void) {
   3050     int _fpu_cmp = 0;
   3051     uint32_t _cf = 0;
   3052     int _df = 1;
   3053     uint32_t _flag_k = FK_NONE;
   3054     uint32_t _flag_a = 0, _flag_b = 0;
   3055     uint32_t _itail_tgt = 0;
   3056     RECOMP_REGS_LOCALS
   3057     RECOMP_ENTER(0x2F0051BDu);
   3058 
   3059 L_2F0051BD:
   3060     edx = MEM32(esi + 0x4); /* 0x2F0051BD: mov edx, dword ptr [esi + 4] */
   3061     eax = MEM32(edx + 0x4); /* 0x2F0051C0: mov eax, dword ptr [edx + 4] */
   3062     ecx = MEM32(ebp + (-0x4)); /* 0x2F0051C3: mov ecx, dword ptr [ebp - 4] */
   3063     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2F0051C6: mov byte ptr [eax + 0x18], bl */
   3064     eax = MEM32(ebp + 0x8); /* 0x2F0051C9: mov eax, dword ptr [ebp + 8] */
   3065     edi = POP32_VAL(esp); /* 0x2F0051CC: pop edi */
   3066     esi = POP32_VAL(esp); /* 0x2F0051CD: pop esi */
   3067     MEM32(eax) = ecx; /* 0x2F0051CE: mov dword ptr [eax], ecx */
   3068     ebx = POP32_VAL(esp); /* 0x2F0051D0: pop ebx */
   3069     esp = ebp; /* 0x2F0051D1: mov esp, ebp */
   3070     ebp = POP32_VAL(esp); /* 0x2F0051D3: pop ebp */
   3071     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F0051D4: ret 0x10 */
   3072     RECOMP_REGS_OUT();
   3073 }
   3074 
   3075 void sub_2F0051E0(void) {
   3076     int _fpu_cmp = 0;
   3077     uint32_t _cf = 0;
   3078     int _df = 1;
   3079     uint32_t _flag_k = FK_NONE;
   3080     uint32_t _flag_a = 0, _flag_b = 0;
   3081     uint32_t _itail_tgt = 0;
   3082     RECOMP_REGS_LOCALS
   3083     RECOMP_ENTER(0x2F0051E0u);
   3084 
   3085 L_2F0051E0:
   3086     PUSH32(esp, ebp); /* 0x2F0051E0: push ebp */
   3087     ebp = esp; /* 0x2F0051E1: mov ebp, esp */
   3088     eax = MEM32(ecx + 0x4); /* 0x2F0051E3: mov eax, dword ptr [ecx + 4] */
   3089     edx = MEM32(eax + 0x4); /* 0x2F0051E6: mov edx, dword ptr [eax + 4] */
   3090     ecx = MEM32(ecx + 0x8); /* 0x2F0051E9: mov ecx, dword ptr [ecx + 8] */
   3091     /* cmp edx, ecx */ /* 0x2F0051EC: cmp edx, ecx */
   3092     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3094     _flag_k = FK_CMP;
   3095     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005209; /* 0x2F0051EE: je 0x2f005209 */
   3096 L_2F0051F0:
   3097     PUSH32(esp, esi); /* 0x2F0051F0: push esi */
   3098     esi = MEM32(ebp + 0x8); /* 0x2F0051F1: mov esi, dword ptr [ebp + 8] */
   3099     esi = MEM32(esi); /* 0x2F0051F4: mov esi, dword ptr [esi] */
   3100 L_2F0051F6:
   3101     /* cmp MEM32(edx + 0xC), esi */ /* 0x2F0051F6: cmp dword ptr [edx + 0xc], esi */
   3102     _flag_a = (uint32_t)(MEM32(edx + 0xC)); _flag_b = (uint32_t)(esi);
   3103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3104     _flag_k = FK_CMP;
   3105     if (CMP_AE(_flag_a, _flag_b)) goto L_2F005200; /* 0x2F0051F9: jae 0x2f005200 */
   3106 L_2F0051FB:
   3107     edx = MEM32(edx + 0x8); /* 0x2F0051FB: mov edx, dword ptr [edx + 8] */
   3108     goto L_2F005204; /* 0x2F0051FE: jmp 0x2f005204 */
   3109 L_2F005200:
   3110     eax = edx; /* 0x2F005200: mov eax, edx */
   3111     edx = MEM32(edx); /* 0x2F005202: mov edx, dword ptr [edx] */
   3112 L_2F005204:
   3113     /* cmp edx, ecx */ /* 0x2F005204: cmp edx, ecx */
   3114     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3116     _flag_k = FK_CMP;
   3117     RECOMP_BACKEDGE();
   3118     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0051F6; /* 0x2F005206: jne 0x2f0051f6 */
   3119 L_2F005208:
   3120     esi = POP32_VAL(esp); /* 0x2F005208: pop esi */
   3121 L_2F005209:
   3122     ebp = POP32_VAL(esp); /* 0x2F005209: pop ebp */
   3123     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F00520A: ret 4 */
   3124     RECOMP_REGS_OUT();
   3125 }
   3126 
   3127 void sub_2F005210(void) {
   3128     int _fpu_cmp = 0;
   3129     uint32_t _cf = 0;
   3130     int _df = 1;
   3131     uint32_t _flag_k = FK_NONE;
   3132     uint32_t _flag_a = 0, _flag_b = 0;
   3133     uint32_t _itail_tgt = 0;
   3134     RECOMP_REGS_LOCALS
   3135     RECOMP_ENTER(0x2F005210u);
   3136 
   3137 L_2F005210:
   3138     PUSH32(esp, ebp); /* 0x2F005210: push ebp */
   3139     ebp = esp; /* 0x2F005211: mov ebp, esp */
   3140     edx = MEM32(ebp + 0x8); /* 0x2F005213: mov edx, dword ptr [ebp + 8] */
   3141     eax = MEM32(edx + 0x8); /* 0x2F005216: mov eax, dword ptr [edx + 8] */
   3142     PUSH32(esp, esi); /* 0x2F005219: push esi */
   3143     esi = MEM32(eax); /* 0x2F00521A: mov esi, dword ptr [eax] */
   3144     MEM32(edx + 0x8) = esi; /* 0x2F00521C: mov dword ptr [edx + 8], esi */
   3145     esi = MEM32(eax); /* 0x2F00521F: mov esi, dword ptr [eax] */
   3146     /* cmp esi, MEM32(ecx + 0x8) */ /* 0x2F005221: cmp esi, dword ptr [ecx + 8] */
   3147     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3149     _flag_k = FK_CMP;
   3150     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005229; /* 0x2F005224: je 0x2f005229 */
   3151 L_2F005226:
   3152     MEM32(esi + 0x4) = edx; /* 0x2F005226: mov dword ptr [esi + 4], edx */
   3153 L_2F005229:
   3154     esi = MEM32(edx + 0x4); /* 0x2F005229: mov esi, dword ptr [edx + 4] */
   3155     MEM32(eax + 0x4) = esi; /* 0x2F00522C: mov dword ptr [eax + 4], esi */
   3156     ecx = MEM32(ecx + 0x4); /* 0x2F00522F: mov ecx, dword ptr [ecx + 4] */
   3157     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x2F005232: cmp edx, dword ptr [ecx + 4] */
   3158     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3160     _flag_k = FK_CMP;
   3161     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005244; /* 0x2F005235: jne 0x2f005244 */
   3162 L_2F005237:
   3163     MEM32(ecx + 0x4) = eax; /* 0x2F005237: mov dword ptr [ecx + 4], eax */
   3164     MEM32(eax) = edx; /* 0x2F00523A: mov dword ptr [eax], edx */
   3165     MEM32(edx + 0x4) = eax; /* 0x2F00523C: mov dword ptr [edx + 4], eax */
   3166     esi = POP32_VAL(esp); /* 0x2F00523F: pop esi */
   3167     ebp = POP32_VAL(esp); /* 0x2F005240: pop ebp */
   3168     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F005241: ret 4 */
   3169 L_2F005244:
   3170     ecx = MEM32(edx + 0x4); /* 0x2F005244: mov ecx, dword ptr [edx + 4] */
   3171     /* cmp edx, MEM32(ecx) */ /* 0x2F005247: cmp edx, dword ptr [ecx] */
   3172     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx));
   3173     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3174     _flag_k = FK_CMP;
   3175     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005257; /* 0x2F005249: jne 0x2f005257 */
   3176 L_2F00524B:
   3177     MEM32(ecx) = eax; /* 0x2F00524B: mov dword ptr [ecx], eax */
   3178     MEM32(eax) = edx; /* 0x2F00524D: mov dword ptr [eax], edx */
   3179     MEM32(edx + 0x4) = eax; /* 0x2F00524F: mov dword ptr [edx + 4], eax */
   3180     esi = POP32_VAL(esp); /* 0x2F005252: pop esi */
   3181     ebp = POP32_VAL(esp); /* 0x2F005253: pop ebp */
   3182     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F005254: ret 4 */
   3183 L_2F005257:
   3184     MEM32(ecx + 0x8) = eax; /* 0x2F005257: mov dword ptr [ecx + 8], eax */
   3185     MEM32(eax) = edx; /* 0x2F00525A: mov dword ptr [eax], edx */
   3186     MEM32(edx + 0x4) = eax; /* 0x2F00525C: mov dword ptr [edx + 4], eax */
   3187     esi = POP32_VAL(esp); /* 0x2F00525F: pop esi */
   3188     ebp = POP32_VAL(esp); /* 0x2F005260: pop ebp */
   3189     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F005261: ret 4 */
   3190     RECOMP_REGS_OUT();
   3191 }
   3192 
   3193 void sub_2F005270(void) {
   3194     int _fpu_cmp = 0;
   3195     uint32_t _cf = 0;
   3196     int _df = 1;
   3197     uint32_t _flag_k = FK_NONE;
   3198     uint32_t _flag_a = 0, _flag_b = 0;
   3199     uint32_t _itail_tgt = 0;
   3200     RECOMP_REGS_LOCALS
   3201     RECOMP_ENTER(0x2F005270u);
   3202 
   3203 L_2F005270:
   3204     PUSH32(esp, ebp); /* 0x2F005270: push ebp */
   3205     ebp = esp; /* 0x2F005271: mov ebp, esp */
   3206     edx = MEM32(ebp + 0x8); /* 0x2F005273: mov edx, dword ptr [ebp + 8] */
   3207     eax = MEM32(edx); /* 0x2F005276: mov eax, dword ptr [edx] */
   3208     PUSH32(esp, esi); /* 0x2F005278: push esi */
   3209     esi = MEM32(eax + 0x8); /* 0x2F005279: mov esi, dword ptr [eax + 8] */
   3210     MEM32(edx) = esi; /* 0x2F00527C: mov dword ptr [edx], esi */
   3211     esi = MEM32(eax + 0x8); /* 0x2F00527E: mov esi, dword ptr [eax + 8] */
   3212     /* cmp esi, MEM32(ecx + 0x8) */ /* 0x2F005281: cmp esi, dword ptr [ecx + 8] */
   3213     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3215     _flag_k = FK_CMP;
   3216     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005289; /* 0x2F005284: je 0x2f005289 */
   3217 L_2F005286:
   3218     MEM32(esi + 0x4) = edx; /* 0x2F005286: mov dword ptr [esi + 4], edx */
   3219 L_2F005289:
   3220     esi = MEM32(edx + 0x4); /* 0x2F005289: mov esi, dword ptr [edx + 4] */
   3221     MEM32(eax + 0x4) = esi; /* 0x2F00528C: mov dword ptr [eax + 4], esi */
   3222     ecx = MEM32(ecx + 0x4); /* 0x2F00528F: mov ecx, dword ptr [ecx + 4] */
   3223     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x2F005292: cmp edx, dword ptr [ecx + 4] */
   3224     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3226     _flag_k = FK_CMP;
   3227     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0052A5; /* 0x2F005295: jne 0x2f0052a5 */
   3228 L_2F005297:
   3229     MEM32(ecx + 0x4) = eax; /* 0x2F005297: mov dword ptr [ecx + 4], eax */
   3230     MEM32(eax + 0x8) = edx; /* 0x2F00529A: mov dword ptr [eax + 8], edx */
   3231     MEM32(edx + 0x4) = eax; /* 0x2F00529D: mov dword ptr [edx + 4], eax */
   3232     esi = POP32_VAL(esp); /* 0x2F0052A0: pop esi */
   3233     ebp = POP32_VAL(esp); /* 0x2F0052A1: pop ebp */
   3234     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0052A2: ret 4 */
   3235 L_2F0052A5:
   3236     ecx = MEM32(edx + 0x4); /* 0x2F0052A5: mov ecx, dword ptr [edx + 4] */
   3237     /* cmp edx, MEM32(ecx + 0x8) */ /* 0x2F0052A8: cmp edx, dword ptr [ecx + 8] */
   3238     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3240     _flag_k = FK_CMP;
   3241     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0052BB; /* 0x2F0052AB: jne 0x2f0052bb */
   3242 L_2F0052AD:
   3243     MEM32(ecx + 0x8) = eax; /* 0x2F0052AD: mov dword ptr [ecx + 8], eax */
   3244     MEM32(eax + 0x8) = edx; /* 0x2F0052B0: mov dword ptr [eax + 8], edx */
   3245     MEM32(edx + 0x4) = eax; /* 0x2F0052B3: mov dword ptr [edx + 4], eax */
   3246     esi = POP32_VAL(esp); /* 0x2F0052B6: pop esi */
   3247     ebp = POP32_VAL(esp); /* 0x2F0052B7: pop ebp */
   3248     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0052B8: ret 4 */
   3249 L_2F0052BB:
   3250     MEM32(ecx) = eax; /* 0x2F0052BB: mov dword ptr [ecx], eax */
   3251     MEM32(eax + 0x8) = edx; /* 0x2F0052BD: mov dword ptr [eax + 8], edx */
   3252     MEM32(edx + 0x4) = eax; /* 0x2F0052C0: mov dword ptr [edx + 4], eax */
   3253     esi = POP32_VAL(esp); /* 0x2F0052C3: pop esi */
   3254     ebp = POP32_VAL(esp); /* 0x2F0052C4: pop ebp */
   3255     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0052C5: ret 4 */
   3256     RECOMP_REGS_OUT();
   3257 }
   3258 
   3259 void sub_2F0052D0(void) {
   3260     int _fpu_cmp = 0;
   3261     uint32_t _cf = 0;
   3262     int _df = 1;
   3263     uint32_t _flag_k = FK_NONE;
   3264     uint32_t _flag_a = 0, _flag_b = 0;
   3265     uint32_t _itail_tgt = 0;
   3266     RECOMP_REGS_LOCALS
   3267     RECOMP_ENTER(0x2F0052D0u);
   3268 
   3269 L_2F0052D0:
   3270     PUSH32(esp, ebp); /* 0x2F0052D0: push ebp */
   3271     ebp = esp; /* 0x2F0052D1: mov ebp, esp */
   3272     PUSH32(esp, 0x1Cu); /* 0x2F0052D3: push 0x1c */
   3273     RECOMP_ICALL(0x2F0117DCu); /* 0x2F0052D5: call 0x2f0117dc */ /* not lifted */
   3274     RECOMP_FLAGS_IN();
   3275     ecx = MEM32(ebp + 0x8); /* 0x2F0052DA: mov ecx, dword ptr [ebp + 8] */
   3276     SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x2F0052DD: mov dl, byte ptr [ebp + 0xc] */
   3277     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3278     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3279     esp = esp + 4; /* 0x2F0052E0: add esp, 4 */
   3280     _flag_k = FK_ADD;
   3281     MEM32(eax + 0x4) = ecx; /* 0x2F0052E3: mov dword ptr [eax + 4], ecx */
   3282     MEM8(eax + 0x18) = (uint8_t)(LO8(edx)); /* 0x2F0052E6: mov byte ptr [eax + 0x18], dl */
   3283     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x2F0052E9: mov byte ptr [eax + 0x19], 0 */
   3284     ebp = POP32_VAL(esp); /* 0x2F0052ED: pop ebp */
   3285     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F0052EE: ret 8 */
   3286     RECOMP_REGS_OUT();
   3287 }
   3288 
   3289 void sub_2F005300(void) {
   3290     int _fpu_cmp = 0;
   3291     uint32_t _cf = 0;
   3292     int _df = 1;
   3293     uint32_t _flag_k = FK_NONE;
   3294     uint32_t _flag_a = 0, _flag_b = 0;
   3295     uint32_t _itail_tgt = 0;
   3296     RECOMP_REGS_LOCALS
   3297     RECOMP_ENTER(0x2F005300u);
   3298 
   3299 L_2F005300:
   3300     eax = MEM32(ecx); /* 0x2F005300: mov eax, dword ptr [ecx] */
   3301     SET_LO8(edx, MEM8(eax + 0x18)); /* 0x2F005302: mov dl, byte ptr [eax + 0x18] */
   3302     /* test LO8(edx), LO8(edx) */ /* 0x2F005305: test dl, dl */
   3303     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3304     _cf = 0;
   3305     _flag_k = FK_NARROW(FK_TEST, 24);
   3306     PUSH32(esp, ebx); /* 0x2F005307: push ebx */
   3307     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F005319; /* 0x2F005308: jne 0x2f005319 */
   3308 L_2F00530A:
   3309     edx = MEM32(eax + 0x4); /* 0x2F00530A: mov edx, dword ptr [eax + 4] */
   3310     /* cmp MEM32(edx + 0x4), eax */ /* 0x2F00530D: cmp dword ptr [edx + 4], eax */
   3311     _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax);
   3312     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3313     _flag_k = FK_CMP;
   3314     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005319; /* 0x2F005310: jne 0x2f005319 */
   3315 L_2F005312:
   3316     eax = MEM32(eax + 0x8); /* 0x2F005312: mov eax, dword ptr [eax + 8] */
   3317     MEM32(ecx) = eax; /* 0x2F005315: mov dword ptr [ecx], eax */
   3318     ebx = POP32_VAL(esp); /* 0x2F005317: pop ebx */
   3319     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005318: ret  */
   3320 L_2F005319:
   3321     edx = MEM32(eax); /* 0x2F005319: mov edx, dword ptr [eax] */
   3322     SET_LO8(ebx, MEM8(edx + 0x19)); /* 0x2F00531B: mov bl, byte ptr [edx + 0x19] */
   3323     /* test LO8(ebx), LO8(ebx) */ /* 0x2F00531E: test bl, bl */
   3324     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3325     _cf = 0;
   3326     _flag_k = FK_NARROW(FK_TEST, 24);
   3327     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F00533C; /* 0x2F005320: jne 0x2f00533c */
   3328 L_2F005322:
   3329     eax = MEM32(edx + 0x8); /* 0x2F005322: mov eax, dword ptr [edx + 8] */
   3330     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x2F005325: mov bl, byte ptr [eax + 0x19] */
   3331     /* test LO8(ebx), LO8(ebx) */ /* 0x2F005328: test bl, bl */
   3332     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3333     _cf = 0;
   3334     _flag_k = FK_NARROW(FK_TEST, 24);
   3335     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F005338; /* 0x2F00532A: jne 0x2f005338 */
   3336 L_2F00532C:
   3337     edx = eax; /* 0x2F00532C: mov edx, eax */
   3338     eax = MEM32(edx + 0x8); /* 0x2F00532E: mov eax, dword ptr [edx + 8] */
   3339     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x2F005331: mov bl, byte ptr [eax + 0x19] */
   3340     /* test LO8(ebx), LO8(ebx) */ /* 0x2F005334: test bl, bl */
   3341     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3342     _cf = 0;
   3343     _flag_k = FK_NARROW(FK_TEST, 24);
   3344     RECOMP_BACKEDGE();
   3345     if (TEST_Z(_flag_a, _flag_b)) goto L_2F00532C; /* 0x2F005336: je 0x2f00532c */
   3346 L_2F005338:
   3347     MEM32(ecx) = edx; /* 0x2F005338: mov dword ptr [ecx], edx */
   3348     ebx = POP32_VAL(esp); /* 0x2F00533A: pop ebx */
   3349     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F00533B: ret  */
   3350 L_2F00533C:
   3351     eax = MEM32(eax + 0x4); /* 0x2F00533C: mov eax, dword ptr [eax + 4] */
   3352     edx = MEM32(ecx); /* 0x2F00533F: mov edx, dword ptr [ecx] */
   3353     /* cmp edx, MEM32(eax) */ /* 0x2F005341: cmp edx, dword ptr [eax] */
   3354     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   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_2F005350; /* 0x2F005343: jne 0x2f005350 */
   3358 L_2F005345:
   3359     MEM32(ecx) = eax; /* 0x2F005345: mov dword ptr [ecx], eax */
   3360     eax = MEM32(eax + 0x4); /* 0x2F005347: mov eax, dword ptr [eax + 4] */
   3361     edx = MEM32(ecx); /* 0x2F00534A: mov edx, dword ptr [ecx] */
   3362     /* cmp edx, MEM32(eax) */ /* 0x2F00534C: cmp edx, dword ptr [eax] */
   3363     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   3364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3365     _flag_k = FK_CMP;
   3366     RECOMP_BACKEDGE();
   3367     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005345; /* 0x2F00534E: je 0x2f005345 */
   3368 L_2F005350:
   3369     MEM32(ecx) = eax; /* 0x2F005350: mov dword ptr [ecx], eax */
   3370     ebx = POP32_VAL(esp); /* 0x2F005352: pop ebx */
   3371     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005353: ret  */
   3372     RECOMP_REGS_OUT();
   3373 }
   3374 
   3375 void sub_2F005360(void) {
   3376     int _fpu_cmp = 0;
   3377     uint32_t _cf = 0;
   3378     int _df = 1;
   3379     uint32_t _flag_k = FK_NONE;
   3380     uint32_t _flag_a = 0, _flag_b = 0;
   3381     uint32_t _itail_tgt = 0;
   3382     RECOMP_REGS_LOCALS
   3383     RECOMP_ENTER(0x2F005360u);
   3384 
   3385 L_2F005360:
   3386     eax = MEM32(ecx); /* 0x2F005360: mov eax, dword ptr [ecx] */
   3387     edx = MEM32(eax + 0x8); /* 0x2F005362: mov edx, dword ptr [eax + 8] */
   3388     PUSH32(esp, ebx); /* 0x2F005365: push ebx */
   3389     SET_LO8(ebx, MEM8(edx + 0x19)); /* 0x2F005366: mov bl, byte ptr [edx + 0x19] */
   3390     /* test LO8(ebx), LO8(ebx) */ /* 0x2F005369: test bl, bl */
   3391     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3392     _cf = 0;
   3393     _flag_k = FK_NARROW(FK_TEST, 24);
   3394     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F005385; /* 0x2F00536B: jne 0x2f005385 */
   3395 L_2F00536D:
   3396     eax = MEM32(edx); /* 0x2F00536D: mov eax, dword ptr [edx] */
   3397     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x2F00536F: mov bl, byte ptr [eax + 0x19] */
   3398     /* test LO8(ebx), LO8(ebx) */ /* 0x2F005372: test bl, bl */
   3399     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3400     _cf = 0;
   3401     _flag_k = FK_NARROW(FK_TEST, 24);
   3402     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F005381; /* 0x2F005374: jne 0x2f005381 */
   3403 L_2F005376:
   3404     edx = eax; /* 0x2F005376: mov edx, eax */
   3405     eax = MEM32(edx); /* 0x2F005378: mov eax, dword ptr [edx] */
   3406     SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x2F00537A: mov bl, byte ptr [eax + 0x19] */
   3407     /* test LO8(ebx), LO8(ebx) */ /* 0x2F00537D: test bl, bl */
   3408     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3409     _cf = 0;
   3410     _flag_k = FK_NARROW(FK_TEST, 24);
   3411     RECOMP_BACKEDGE();
   3412     if (TEST_Z(_flag_a, _flag_b)) goto L_2F005376; /* 0x2F00537F: je 0x2f005376 */
   3413 L_2F005381:
   3414     MEM32(ecx) = edx; /* 0x2F005381: mov dword ptr [ecx], edx */
   3415     ebx = POP32_VAL(esp); /* 0x2F005383: pop ebx */
   3416     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005384: ret  */
   3417 L_2F005385:
   3418     eax = MEM32(eax + 0x4); /* 0x2F005385: mov eax, dword ptr [eax + 4] */
   3419     edx = MEM32(ecx); /* 0x2F005388: mov edx, dword ptr [ecx] */
   3420     /* cmp edx, MEM32(eax + 0x8) */ /* 0x2F00538A: cmp edx, dword ptr [eax + 8] */
   3421     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3423     _flag_k = FK_CMP;
   3424     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00539B; /* 0x2F00538D: jne 0x2f00539b */
   3425 L_2F00538F:
   3426     MEM32(ecx) = eax; /* 0x2F00538F: mov dword ptr [ecx], eax */
   3427     eax = MEM32(eax + 0x4); /* 0x2F005391: mov eax, dword ptr [eax + 4] */
   3428     edx = MEM32(ecx); /* 0x2F005394: mov edx, dword ptr [ecx] */
   3429     /* cmp edx, MEM32(eax + 0x8) */ /* 0x2F005396: cmp edx, dword ptr [eax + 8] */
   3430     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3431     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3432     _flag_k = FK_CMP;
   3433     RECOMP_BACKEDGE();
   3434     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00538F; /* 0x2F005399: je 0x2f00538f */
   3435 L_2F00539B:
   3436     edx = MEM32(ecx); /* 0x2F00539B: mov edx, dword ptr [ecx] */
   3437     /* cmp MEM32(edx + 0x8), eax */ /* 0x2F00539D: cmp dword ptr [edx + 8], eax */
   3438     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
   3439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3440     _flag_k = FK_CMP;
   3441     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0053A4; /* 0x2F0053A0: je 0x2f0053a4 */
   3442 L_2F0053A2:
   3443     MEM32(ecx) = eax; /* 0x2F0053A2: mov dword ptr [ecx], eax */
   3444 L_2F0053A4:
   3445     ebx = POP32_VAL(esp); /* 0x2F0053A4: pop ebx */
   3446     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0053A5: ret  */
   3447     RECOMP_REGS_OUT();
   3448 }
   3449 
   3450 void sub_2F0053B0(void) {
   3451     int _fpu_cmp = 0;
   3452     uint32_t _cf = 0;
   3453     int _df = 1;
   3454     uint32_t _flag_k = FK_NONE;
   3455     uint32_t _flag_a = 0, _flag_b = 0;
   3456     uint32_t _itail_tgt = 0;
   3457     RECOMP_REGS_LOCALS
   3458     RECOMP_ENTER(0x2F0053B0u);
   3459 
   3460 L_2F0053B0:
   3461     edx = MEM32(ecx + 0x4); /* 0x2F0053B0: mov edx, dword ptr [ecx + 4] */
   3462     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3463     eax = eax | 0xFFFFFFFFu; /* 0x2F0053B3: or eax, 0xffffffff */
   3464     _cf = 0;
   3465     _flag_k = FK_TEST;
   3466     /* cmp edx, eax */ /* 0x2F0053B6: cmp edx, eax */
   3467     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3469     _flag_k = FK_CMP;
   3470     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0053C6; /* 0x2F0053B8: je 0x2f0053c6 */
   3471 L_2F0053BA:
   3472     MEM32(ecx + 0x4) = eax; /* 0x2F0053BA: mov dword ptr [ecx + 4], eax */
   3473     eax = MEM32(ecx); /* 0x2F0053BD: mov eax, dword ptr [ecx] */
   3474     PUSH32(esp, eax); /* 0x2F0053BF: push eax */
   3475     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F0053C0: call dword ptr [0x2f013058] */
   3476     RECOMP_FLAGS_IN();
   3477 L_2F0053C6:
   3478     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0053C6: ret  */
   3479     RECOMP_REGS_OUT();
   3480 }
   3481 
   3482 void sub_2F0053D0(void) {
   3483     int _fpu_cmp = 0;
   3484     uint32_t _cf = 0;
   3485     int _df = 1;
   3486     uint32_t _flag_k = FK_NONE;
   3487     uint32_t _flag_a = 0, _flag_b = 0;
   3488     uint32_t _itail_tgt = 0;
   3489     RECOMP_REGS_LOCALS
   3490     RECOMP_ENTER(0x2F0053D0u);
   3491 
   3492 L_2F0053D0:
   3493     PUSH32(esp, ebp); /* 0x2F0053D0: push ebp */
   3494     ebp = esp; /* 0x2F0053D1: mov ebp, esp */
   3495     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F0053D3: push -1 */
   3496     PUSH32(esp, 0x2F011FC9u); /* 0x2F0053D5: push 0x2f011fc9 */
   3497     eax = MEM32(FS_BASE + (0)); /* 0x2F0053DA: mov eax, dword ptr fs:[0] */
   3498     PUSH32(esp, eax); /* 0x2F0053E0: push eax */
   3499     MEM32(FS_BASE + (0)) = esp; /* 0x2F0053E1: mov dword ptr fs:[0], esp */
   3500     PUSH32(esp, ecx); /* 0x2F0053E8: push ecx */
   3501     PUSH32(esp, esi); /* 0x2F0053E9: push esi */
   3502     esi = ecx; /* 0x2F0053EA: mov esi, ecx */
   3503     MEM32(ebp + (-0x10)) = esi; /* 0x2F0053EC: mov dword ptr [ebp - 0x10], esi */
   3504     MEM32(esi) = 0x2F01369Cu; /* 0x2F0053EF: mov dword ptr [esi], 0x2f01369c */
   3505     MEM32(esi + 0xC) = 0x2F013688u; /* 0x2F0053F5: mov dword ptr [esi + 0xc], 0x2f013688 */
   3506     eax = MEM32(esi + 0x40); /* 0x2F0053FC: mov eax, dword ptr [esi + 0x40] */
   3507     /* test eax, eax */ /* 0x2F0053FF: test eax, eax */
   3508     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3509     _cf = 0;
   3510     _flag_k = FK_TEST;
   3511     MEM32(ebp + (-0x4)) = 0; /* 0x2F005401: mov dword ptr [ebp - 4], 0 */
   3512     if (TEST_Z(_flag_a, _flag_b)) goto L_2F005418; /* 0x2F005408: je 0x2f005418 */
   3513 L_2F00540A:
   3514     ecx = MEM32(esi + 0x3C); /* 0x2F00540A: mov ecx, dword ptr [esi + 0x3c] */
   3515     /* test ecx, ecx */ /* 0x2F00540D: test ecx, ecx */
   3516     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3517     _cf = 0;
   3518     _flag_k = FK_TEST;
   3519     if (TEST_Z(_flag_a, _flag_b)) goto L_2F005418; /* 0x2F00540F: je 0x2f005418 */
   3520 L_2F005411:
   3521     eax = MEM32(ecx); /* 0x2F005411: mov eax, dword ptr [ecx] */
   3522     PUSH32(esp, 1); /* 0x2F005413: push 1 */
   3523     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x2F005415: call dword ptr [eax + 4] */
   3524     RECOMP_FLAGS_IN();
   3525 L_2F005418:
   3526     ecx = esi; /* 0x2F005418: mov ecx, esi */
   3527     MEM32(esi + 0x40) = 0; /* 0x2F00541A: mov dword ptr [esi + 0x40], 0 */
   3528     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2F005421: mov dword ptr [ebp - 4], 0xffffffff */
   3529     RECOMP_ICALL(MEM32(0x2F013308)); /* 0x2F005428: call dword ptr [0x2f013308] */
   3530     RECOMP_FLAGS_IN();
   3531     ecx = MEM32(ebp + (-0xC)); /* 0x2F00542E: mov ecx, dword ptr [ebp - 0xc] */
   3532     esi = POP32_VAL(esp); /* 0x2F005431: pop esi */
   3533     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005432: mov dword ptr fs:[0], ecx */
   3534     esp = ebp; /* 0x2F005439: mov esp, ebp */
   3535     ebp = POP32_VAL(esp); /* 0x2F00543B: pop ebp */
   3536     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F00543C: ret  */
   3537     RECOMP_REGS_OUT();
   3538 }
   3539 
   3540 void sub_2F005440(void) {
   3541     int _fpu_cmp = 0;
   3542     uint32_t _cf = 0;
   3543     int _df = 1;
   3544     uint32_t _flag_k = FK_NONE;
   3545     uint32_t _flag_a = 0, _flag_b = 0;
   3546     uint32_t _itail_tgt = 0;
   3547     RECOMP_REGS_LOCALS
   3548     RECOMP_ENTER(0x2F005440u);
   3549 
   3550 L_2F005440:
   3551     PUSH32(esp, ebp); /* 0x2F005440: push ebp */
   3552     ebp = esp; /* 0x2F005441: mov ebp, esp */
   3553     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F005443: push -1 */
   3554     PUSH32(esp, 0x2F011FF1u); /* 0x2F005445: push 0x2f011ff1 */
   3555     eax = MEM32(FS_BASE + (0)); /* 0x2F00544A: mov eax, dword ptr fs:[0] */
   3556     PUSH32(esp, eax); /* 0x2F005450: push eax */
   3557     MEM32(FS_BASE + (0)) = esp; /* 0x2F005451: mov dword ptr fs:[0], esp */
   3558     PUSH32(esp, ecx); /* 0x2F005458: push ecx */
   3559     PUSH32(esp, ebx); /* 0x2F005459: push ebx */
   3560     ebx = MEM32(ebp + 0x8); /* 0x2F00545A: mov ebx, dword ptr [ebp + 8] */
   3561     PUSH32(esp, esi); /* 0x2F00545D: push esi */
   3562     PUSH32(esp, edi); /* 0x2F00545E: push edi */
   3563     MEM32(ebp + (-0x10)) = ebx; /* 0x2F00545F: mov dword ptr [ebp - 0x10], ebx */
   3564     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3565     edx = 0; /* 0x2F005462: xor edx, edx */
   3566     _cf = 0;
   3567     _flag_k = FK_TEST;
   3568     /* cmp ebx, edx */ /* 0x2F005464: cmp ebx, edx */
   3569     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   3570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3571     _flag_k = FK_CMP;
   3572     MEM32(ebp + (-0x4)) = edx; /* 0x2F005466: mov dword ptr [ebp - 4], edx */
   3573     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0055A7; /* 0x2F005469: je 0x2f0055a7 */
   3574 L_2F00546F:
   3575     esi = MEM32(ebp + 0xC); /* 0x2F00546F: mov esi, dword ptr [ebp + 0xc] */
   3576     SET_LO8(eax, MEM8(esi)); /* 0x2F005472: mov al, byte ptr [esi] */
   3577     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x2F005474: mov byte ptr [ebx], al */
   3578     MEM32(ebx + 0x4) = edx; /* 0x2F005476: mov dword ptr [ebx + 4], edx */
   3579     MEM32(ebx + 0x8) = edx; /* 0x2F005479: mov dword ptr [ebx + 8], edx */
   3580     MEM32(ebx + 0xC) = edx; /* 0x2F00547C: mov dword ptr [ebx + 0xc], edx */
   3581     ecx = MEM32(0x2F0130F4); /* 0x2F00547F: mov ecx, dword ptr [0x2f0130f4] */
   3582     eax = MEM32(ecx); /* 0x2F005485: mov eax, dword ptr [ecx] */
   3583     ecx = MEM32(esi + 0x8); /* 0x2F005487: mov ecx, dword ptr [esi + 8] */
   3584     edi = ecx; /* 0x2F00548A: mov edi, ecx */
   3585     /* cmp eax, edi */ /* 0x2F00548C: cmp eax, edi */
   3586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3588     _flag_k = FK_CMP;
   3589     MEM32(ebp + 0xC) = edi; /* 0x2F00548E: mov dword ptr [ebp + 0xc], edi */
   3590     if (CMP_AE(_flag_a, _flag_b)) goto L_2F005498; /* 0x2F005491: jae 0x2f005498 */
   3591 L_2F005493:
   3592     MEM32(ebp + 0xC) = eax; /* 0x2F005493: mov dword ptr [ebp + 0xc], eax */
   3593     edi = eax; /* 0x2F005496: mov edi, eax */
   3594 L_2F005498:
   3595     /* cmp ebx, esi */ /* 0x2F005498: cmp ebx, esi */
   3596     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
   3597     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3598     _flag_k = FK_CMP;
   3599     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005513; /* 0x2F00549A: jne 0x2f005513 */
   3600 L_2F00549C:
   3601     /* cmp edi, edx */ /* 0x2F00549C: cmp edi, edx */
   3602     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   3603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3604     _flag_k = FK_CMP;
   3605     esi = eax; /* 0x2F00549E: mov esi, eax */
   3606     if (CMP_BE(_flag_a, _flag_b)) goto L_2F0054AA; /* 0x2F0054A0: jbe 0x2f0054aa */
   3607 L_2F0054A2:
   3608     RECOMP_ICALL(MEM32(0x2F0130E0)); /* 0x2F0054A2: call dword ptr [0x2f0130e0] */
   3609     RECOMP_FLAGS_IN();
   3610     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3611     edx = 0; /* 0x2F0054A8: xor edx, edx */
   3612     _cf = 0;
   3613     _flag_k = FK_TEST;
   3614 L_2F0054AA:
   3615     eax = MEM32(ebx + 0x8); /* 0x2F0054AA: mov eax, dword ptr [ebx + 8] */
   3616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3618     eax = eax - edi; /* 0x2F0054AD: sub eax, edi */
   3619     _flag_k = FK_CMP;
   3620     /* cmp eax, esi */ /* 0x2F0054AF: cmp eax, esi */
   3621     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3623     _flag_k = FK_CMP;
   3624     if (CMP_AE(_flag_a, _flag_b)) goto L_2F0054B5; /* 0x2F0054B1: jae 0x2f0054b5 */
   3625 L_2F0054B3:
   3626     esi = eax; /* 0x2F0054B3: mov esi, eax */
   3627 L_2F0054B5:
   3628     /* cmp esi, edx */ /* 0x2F0054B5: cmp esi, edx */
   3629     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   3630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3631     _flag_k = FK_CMP;
   3632     if (CMP_BE(_flag_a, _flag_b)) goto L_2F0055A7; /* 0x2F0054B7: jbe 0x2f0055a7 */
   3633 L_2F0054BD:
   3634     ecx = ebx; /* 0x2F0054BD: mov ecx, ebx */
   3635     RECOMP_ICALL(MEM32(0x2F0130E4)); /* 0x2F0054BF: call dword ptr [0x2f0130e4] */
   3636     RECOMP_FLAGS_IN();
   3637     ecx = MEM32(ebx + 0x8); /* 0x2F0054C5: mov ecx, dword ptr [ebx + 8] */
   3638     edx = MEM32(ebx + 0x4); /* 0x2F0054C8: mov edx, dword ptr [ebx + 4] */
   3639     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3641     ecx = ecx - esi; /* 0x2F0054CB: sub ecx, esi */
   3642     _flag_k = FK_CMP;
   3643     eax = edx + edi; /* 0x2F0054CD: lea eax, [edx + edi] */
   3644     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   3645     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3646     ecx = ecx - edi; /* 0x2F0054D0: sub ecx, edi */
   3647     _flag_k = FK_CMP;
   3648     PUSH32(esp, ecx); /* 0x2F0054D2: push ecx */
   3649     edx = eax + esi; /* 0x2F0054D3: lea edx, [eax + esi] */
   3650     PUSH32(esp, edx); /* 0x2F0054D6: push edx */
   3651     PUSH32(esp, eax); /* 0x2F0054D7: push eax */
   3652     RECOMP_ICALL(MEM32(0x2F0131A4)); /* 0x2F0054D8: call dword ptr [0x2f0131a4] */
   3653     RECOMP_FLAGS_IN();
   3654     edi = MEM32(ebx + 0x8); /* 0x2F0054DE: mov edi, dword ptr [ebx + 8] */
   3655     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3656     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3657     esp = esp + 0xCu; /* 0x2F0054E1: add esp, 0xc */
   3658     _flag_k = FK_ADD;
   3659     PUSH32(esp, 0); /* 0x2F0054E4: push 0 */
   3660     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   3661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3662     edi = edi - esi; /* 0x2F0054E6: sub edi, esi */
   3663     _flag_k = FK_CMP;
   3664     PUSH32(esp, edi); /* 0x2F0054E8: push edi */
   3665     ecx = ebx; /* 0x2F0054E9: mov ecx, ebx */
   3666     RECOMP_ICALL(MEM32(0x2F013100)); /* 0x2F0054EB: call dword ptr [0x2f013100] */
   3667     RECOMP_FLAGS_IN();
   3668     /* test LO8(eax), LO8(eax) */ /* 0x2F0054F1: test al, al */
   3669     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3670     _cf = 0;
   3671     _flag_k = FK_NARROW(FK_TEST, 24);
   3672     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0055A7; /* 0x2F0054F3: je 0x2f0055a7 */
   3673 L_2F0054F9:
   3674     PUSH32(esp, edi); /* 0x2F0054F9: push edi */
   3675     ecx = ebx; /* 0x2F0054FA: mov ecx, ebx */
   3676     RECOMP_ICALL(MEM32(0x2F013104)); /* 0x2F0054FC: call dword ptr [0x2f013104] */
   3677     RECOMP_FLAGS_IN();
   3678     edi = POP32_VAL(esp); /* 0x2F005502: pop edi */
   3679     esi = POP32_VAL(esp); /* 0x2F005503: pop esi */
   3680     ebx = POP32_VAL(esp); /* 0x2F005504: pop ebx */
   3681     ecx = MEM32(ebp + (-0xC)); /* 0x2F005505: mov ecx, dword ptr [ebp - 0xc] */
   3682     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005508: mov dword ptr fs:[0], ecx */
   3683     esp = ebp; /* 0x2F00550F: mov esp, ebp */
   3684     ebp = POP32_VAL(esp); /* 0x2F005511: pop ebp */
   3685     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005512: ret  */
   3686 L_2F005513:
   3687     /* cmp edi, edx */ /* 0x2F005513: cmp edi, edx */
   3688     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   3689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3690     _flag_k = FK_CMP;
   3691     if (CMP_BE(_flag_a, _flag_b)) goto L_2F00556B; /* 0x2F005515: jbe 0x2f00556b */
   3692 L_2F005517:
   3693     /* cmp edi, ecx */ /* 0x2F005517: cmp edi, ecx */
   3694     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3696     _flag_k = FK_CMP;
   3697     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00556B; /* 0x2F005519: jne 0x2f00556b */
   3698 L_2F00551B:
   3699     eax = MEM32(esi + 0x4); /* 0x2F00551B: mov eax, dword ptr [esi + 4] */
   3700     /* cmp eax, edx */ /* 0x2F00551E: cmp eax, edx */
   3701     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3703     _flag_k = FK_CMP;
   3704     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005527; /* 0x2F005520: jne 0x2f005527 */
   3705 L_2F005522:
   3706     eax = MEM32(0x2F0130FC); /* 0x2F005522: mov eax, dword ptr [0x2f0130fc] */
   3707 L_2F005527:
   3708     /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2F005527: cmp byte ptr [eax - 1], 0xfe */
   3709     _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24;
   3710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3711     _flag_k = FK_NARROW(FK_CMP, 24);
   3712     if (CMP_AE(_flag_a, _flag_b)) goto L_2F00556B; /* 0x2F00552B: jae 0x2f00556b */
   3713 L_2F00552D:
   3714     PUSH32(esp, 1); /* 0x2F00552D: push 1 */
   3715     ecx = ebx; /* 0x2F00552F: mov ecx, ebx */
   3716     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F005531: call dword ptr [0x2f01310c] */
   3717     RECOMP_FLAGS_IN();
   3718     eax = MEM32(esi + 0x4); /* 0x2F005537: mov eax, dword ptr [esi + 4] */
   3719     /* test eax, eax */ /* 0x2F00553A: test eax, eax */
   3720     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3721     _cf = 0;
   3722     _flag_k = FK_TEST;
   3723     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F005543; /* 0x2F00553C: jne 0x2f005543 */
   3724 L_2F00553E:
   3725     eax = MEM32(0x2F0130FC); /* 0x2F00553E: mov eax, dword ptr [0x2f0130fc] */
   3726 L_2F005543:
   3727     MEM32(ebx + 0x4) = eax; /* 0x2F005543: mov dword ptr [ebx + 4], eax */
   3728     ecx = MEM32(esi + 0x8); /* 0x2F005546: mov ecx, dword ptr [esi + 8] */
   3729     MEM32(ebx + 0x8) = ecx; /* 0x2F005549: mov dword ptr [ebx + 8], ecx */
   3730     edx = MEM32(esi + 0xC); /* 0x2F00554C: mov edx, dword ptr [esi + 0xc] */
   3731     MEM32(ebx + 0xC) = edx; /* 0x2F00554F: mov dword ptr [ebx + 0xc], edx */
   3732     SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2F005552: mov cl, byte ptr [eax - 1] */
   3733     edi = POP32_VAL(esp); /* 0x2F005555: pop edi */
   3734     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3735     SET_LO8(ecx, LO8(ecx) + 1); /* 0x2F005556: inc cl */
   3736     _flag_k = FK_NARROW(FK_INC, 24);
   3737     esi = POP32_VAL(esp); /* 0x2F005558: pop esi */
   3738     MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2F005559: mov byte ptr [eax - 1], cl */
   3739     ebx = POP32_VAL(esp); /* 0x2F00555C: pop ebx */
   3740     ecx = MEM32(ebp + (-0xC)); /* 0x2F00555D: mov ecx, dword ptr [ebp - 0xc] */
   3741     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005560: mov dword ptr fs:[0], ecx */
   3742     esp = ebp; /* 0x2F005567: mov esp, ebp */
   3743     ebp = POP32_VAL(esp); /* 0x2F005569: pop ebp */
   3744     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F00556A: ret  */
   3745 L_2F00556B:
   3746     PUSH32(esp, 1); /* 0x2F00556B: push 1 */
   3747     PUSH32(esp, edi); /* 0x2F00556D: push edi */
   3748     ecx = ebx; /* 0x2F00556E: mov ecx, ebx */
   3749     RECOMP_ICALL(MEM32(0x2F013100)); /* 0x2F005570: call dword ptr [0x2f013100] */
   3750     RECOMP_FLAGS_IN();
   3751     /* test LO8(eax), LO8(eax) */ /* 0x2F005576: test al, al */
   3752     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3753     _cf = 0;
   3754     _flag_k = FK_NARROW(FK_TEST, 24);
   3755     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0055A7; /* 0x2F005578: je 0x2f0055a7 */
   3756 L_2F00557A:
   3757     esi = MEM32(esi + 0x4); /* 0x2F00557A: mov esi, dword ptr [esi + 4] */
   3758     /* test esi, esi */ /* 0x2F00557D: test esi, esi */
   3759     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3760     _cf = 0;
   3761     _flag_k = FK_TEST;
   3762     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F005587; /* 0x2F00557F: jne 0x2f005587 */
   3763 L_2F005581:
   3764     esi = MEM32(0x2F0130FC); /* 0x2F005581: mov esi, dword ptr [0x2f0130fc] */
   3765 L_2F005587:
   3766     ecx = edi; /* 0x2F005587: mov ecx, edi */
   3767     edi = MEM32(ebx + 0x4); /* 0x2F005589: mov edi, dword ptr [ebx + 4] */
   3768     eax = ecx; /* 0x2F00558C: mov eax, ecx */
   3769     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2F00558E: shr ecx, 2 */
   3770     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3771     ecx = ecx >> 2u; /* 0x2F00558E: shr ecx, 2 */
   3772     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2F005591: 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; }
   3773     ecx = eax; /* 0x2F005593: mov ecx, eax */
   3774     eax = MEM32(ebp + 0xC); /* 0x2F005595: mov eax, dword ptr [ebp + 0xc] */
   3775     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3776     ecx = ecx & 3; /* 0x2F005598: and ecx, 3 */
   3777     _cf = 0;
   3778     _flag_k = FK_TEST;
   3779     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2F00559B: 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; }
   3780     ecx = MEM32(ebx + 0x4); /* 0x2F00559D: mov ecx, dword ptr [ebx + 4] */
   3781     MEM32(ebx + 0x8) = eax; /* 0x2F0055A0: mov dword ptr [ebx + 8], eax */
   3782     MEM8(ecx + eax) = (uint8_t)(0); /* 0x2F0055A3: mov byte ptr [ecx + eax], 0 */
   3783 L_2F0055A7:
   3784     ecx = MEM32(ebp + (-0xC)); /* 0x2F0055A7: mov ecx, dword ptr [ebp - 0xc] */
   3785     edi = POP32_VAL(esp); /* 0x2F0055AA: pop edi */
   3786     esi = POP32_VAL(esp); /* 0x2F0055AB: pop esi */
   3787     ebx = POP32_VAL(esp); /* 0x2F0055AC: pop ebx */
   3788     MEM32(FS_BASE + (0)) = ecx; /* 0x2F0055AD: mov dword ptr fs:[0], ecx */
   3789     esp = ebp; /* 0x2F0055B4: mov esp, ebp */
   3790     ebp = POP32_VAL(esp); /* 0x2F0055B6: pop ebp */
   3791     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0055B7: ret  */
   3792     RECOMP_REGS_OUT();
   3793 }
   3794 
   3795 void sub_2F0055C0(void) {
   3796     int _fpu_cmp = 0;
   3797     uint32_t _cf = 0;
   3798     int _df = 1;
   3799     uint32_t _flag_k = FK_NONE;
   3800     uint32_t _flag_a = 0, _flag_b = 0;
   3801     uint32_t _itail_tgt = 0;
   3802     RECOMP_REGS_LOCALS
   3803     RECOMP_ENTER(0x2F0055C0u);
   3804 
   3805 L_2F0055C0:
   3806     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0055C0: ret  */
   3807     RECOMP_REGS_OUT();
   3808 }
   3809 
   3810 void sub_2F0055D0(void) {
   3811     int _fpu_cmp = 0;
   3812     uint32_t _cf = 0;
   3813     int _df = 1;
   3814     uint32_t _flag_k = FK_NONE;
   3815     uint32_t _flag_a = 0, _flag_b = 0;
   3816     uint32_t _itail_tgt = 0;
   3817     RECOMP_REGS_LOCALS
   3818     RECOMP_ENTER(0x2F0055D0u);
   3819 
   3820 L_2F0055D0:
   3821     PUSH32(esp, ebp); /* 0x2F0055D0: push ebp */
   3822     ebp = esp; /* 0x2F0055D1: mov ebp, esp */
   3823     eax = MEM32(ebp + 0x8); /* 0x2F0055D3: mov eax, dword ptr [ebp + 8] */
   3824     /* test eax, eax */ /* 0x2F0055D6: test eax, eax */
   3825     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3826     _cf = 0;
   3827     _flag_k = FK_TEST;
   3828     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0055ED; /* 0x2F0055D8: je 0x2f0055ed */
   3829 L_2F0055DA:
   3830     ecx = MEM32(ebp + 0xC); /* 0x2F0055DA: mov ecx, dword ptr [ebp + 0xc] */
   3831     edx = MEM32(ecx); /* 0x2F0055DD: mov edx, dword ptr [ecx] */
   3832     MEM32(eax) = edx; /* 0x2F0055DF: mov dword ptr [eax], edx */
   3833     edx = MEM32(ecx + 0x4); /* 0x2F0055E1: mov edx, dword ptr [ecx + 4] */
   3834     MEM32(eax + 0x4) = edx; /* 0x2F0055E4: mov dword ptr [eax + 4], edx */
   3835     ecx = MEM32(ecx + 0x8); /* 0x2F0055E7: mov ecx, dword ptr [ecx + 8] */
   3836     MEM32(eax + 0x8) = ecx; /* 0x2F0055EA: mov dword ptr [eax + 8], ecx */
   3837 L_2F0055ED:
   3838     ebp = POP32_VAL(esp); /* 0x2F0055ED: pop ebp */
   3839     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0055EE: ret  */
   3840     RECOMP_REGS_OUT();
   3841 }
   3842 
   3843 void sub_2F0055F0(void) {
   3844     int _fpu_cmp = 0;
   3845     uint32_t _cf = 0;
   3846     int _df = 1;
   3847     uint32_t _flag_k = FK_NONE;
   3848     uint32_t _flag_a = 0, _flag_b = 0;
   3849     uint32_t _itail_tgt = 0;
   3850     RECOMP_REGS_LOCALS
   3851     RECOMP_ENTER(0x2F0055F0u);
   3852 
   3853 L_2F0055F0:
   3854     PUSH32(esp, ebp); /* 0x2F0055F0: push ebp */
   3855     ebp = esp; /* 0x2F0055F1: mov ebp, esp */
   3856     PUSH32(esp, esi); /* 0x2F0055F3: push esi */
   3857     esi = ecx; /* 0x2F0055F4: mov esi, ecx */
   3858     RECOMP_ICALL(0x2F0053D0u); /* 0x2F0055F6: call 0x2f0053d0 */ /* not lifted */
   3859     RECOMP_FLAGS_IN();
   3860     /* test MEM8(ebp + 0x8), 1 */ /* 0x2F0055FB: test byte ptr [ebp + 8], 1 */
   3861     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3862     _cf = 0;
   3863     _flag_k = FK_NARROW(FK_TEST, 24);
   3864     if (TEST_Z(_flag_a, _flag_b)) goto L_2F00560A; /* 0x2F0055FF: je 0x2f00560a */
   3865 L_2F005601:
   3866     PUSH32(esp, esi); /* 0x2F005601: push esi */
   3867     RECOMP_ICALL(0x2F0116B4u); /* 0x2F005602: call 0x2f0116b4 */ /* not lifted */
   3868     RECOMP_FLAGS_IN();
   3869     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3870     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3871     esp = esp + 4; /* 0x2F005607: add esp, 4 */
   3872     _flag_k = FK_ADD;
   3873 L_2F00560A:
   3874     eax = esi; /* 0x2F00560A: mov eax, esi */
   3875     esi = POP32_VAL(esp); /* 0x2F00560C: pop esi */
   3876     ebp = POP32_VAL(esp); /* 0x2F00560D: pop ebp */
   3877     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F00560E: ret 4 */
   3878     RECOMP_REGS_OUT();
   3879 }
   3880 
   3881 void sub_2F005620(void) {
   3882     int _fpu_cmp = 0;
   3883     uint32_t _cf = 0;
   3884     int _df = 1;
   3885     uint32_t _flag_k = FK_NONE;
   3886     uint32_t _flag_a = 0, _flag_b = 0;
   3887     uint32_t _itail_tgt = 0;
   3888     RECOMP_REGS_LOCALS
   3889     RECOMP_ENTER(0x2F005620u);
   3890 
   3891 L_2F005620:
   3892     PUSH32(esp, ebp); /* 0x2F005620: push ebp */
   3893     ebp = esp; /* 0x2F005621: mov ebp, esp */
   3894     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F005623: push -1 */
   3895     PUSH32(esp, 0x2F01202Du); /* 0x2F005625: push 0x2f01202d */
   3896     eax = MEM32(FS_BASE + (0)); /* 0x2F00562A: mov eax, dword ptr fs:[0] */
   3897     PUSH32(esp, eax); /* 0x2F005630: push eax */
   3898     MEM32(FS_BASE + (0)) = esp; /* 0x2F005631: mov dword ptr fs:[0], esp */
   3899     PUSH32(esp, ecx); /* 0x2F005638: push ecx */
   3900     eax = MEM32(0x2F0133A4); /* 0x2F005639: mov eax, dword ptr [0x2f0133a4] */
   3901     PUSH32(esp, ebx); /* 0x2F00563E: push ebx */
   3902     PUSH32(esp, esi); /* 0x2F00563F: push esi */
   3903     esi = ecx; /* 0x2F005640: mov esi, ecx */
   3904     PUSH32(esp, edi); /* 0x2F005642: push edi */
   3905     MEM32(ebp + (-0x10)) = esi; /* 0x2F005643: mov dword ptr [ebp - 0x10], esi */
   3906     MEM32(esi) = eax; /* 0x2F005646: mov dword ptr [esi], eax */
   3907     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3908     ebx = 0; /* 0x2F005648: xor ebx, ebx */
   3909     _cf = 0;
   3910     _flag_k = FK_TEST;
   3911     PUSH32(esp, ebx); /* 0x2F00564A: push ebx */
   3912     edi = esi + 0x28; /* 0x2F00564B: lea edi, [esi + 0x28] */
   3913     PUSH32(esp, ebx); /* 0x2F00564E: push ebx */
   3914     ecx = edi; /* 0x2F00564F: mov ecx, edi */
   3915     MEM32(ebp + (-0x4)) = ebx; /* 0x2F005651: mov dword ptr [ebp - 4], ebx */
   3916     RECOMP_ICALL(MEM32(0x2F013318)); /* 0x2F005654: call dword ptr [0x2f013318] */
   3917     RECOMP_FLAGS_IN();
   3918     PUSH32(esp, ebx); /* 0x2F00565A: push ebx */
   3919     PUSH32(esp, ebx); /* 0x2F00565B: push ebx */
   3920     PUSH32(esp, edi); /* 0x2F00565C: push edi */
   3921     ecx = esi + 0x44; /* 0x2F00565D: lea ecx, [esi + 0x44] */
   3922     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2F005660: mov byte ptr [ebp - 4], 1 */
   3923     RECOMP_ICALL(MEM32(0x2F0133A8)); /* 0x2F005664: call dword ptr [0x2f0133a8] */
   3924     RECOMP_FLAGS_IN();
   3925     PUSH32(esp, ebx); /* 0x2F00566A: push ebx */
   3926     PUSH32(esp, ebx); /* 0x2F00566B: push ebx */
   3927     PUSH32(esp, edi); /* 0x2F00566C: push edi */
   3928     ecx = esi + 0x74; /* 0x2F00566D: lea ecx, [esi + 0x74] */
   3929     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2F005670: mov byte ptr [ebp - 4], 2 */
   3930     RECOMP_ICALL(MEM32(0x2F0133A8)); /* 0x2F005674: call dword ptr [0x2f0133a8] */
   3931     RECOMP_FLAGS_IN();
   3932     eax = MEM32(ebp + 0x10); /* 0x2F00567A: mov eax, dword ptr [ebp + 0x10] */
   3933     ecx = MEM32(ebp + 0x8); /* 0x2F00567D: mov ecx, dword ptr [ebp + 8] */
   3934     edx = MEM32(ebp + 0xC); /* 0x2F005680: mov edx, dword ptr [ebp + 0xc] */
   3935     MEM32(esi + 0x24) = eax; /* 0x2F005683: mov dword ptr [esi + 0x24], eax */
   3936     MEM32(esi + 0x10) = ecx; /* 0x2F005686: mov dword ptr [esi + 0x10], ecx */
   3937     ecx = MEM32(ebp + (-0xC)); /* 0x2F005689: mov ecx, dword ptr [ebp - 0xc] */
   3938     MEM32(esi + 0x20) = ebx; /* 0x2F00568C: mov dword ptr [esi + 0x20], ebx */
   3939     MEM32(esi + 0x14) = ebx; /* 0x2F00568F: mov dword ptr [esi + 0x14], ebx */
   3940     MEM32(esi + 0x18) = ebx; /* 0x2F005692: mov dword ptr [esi + 0x18], ebx */
   3941     MEM32(esi + 0x1C) = ebx; /* 0x2F005695: mov dword ptr [esi + 0x1c], ebx */
   3942     MEM32(esi + 0x8) = ebx; /* 0x2F005698: mov dword ptr [esi + 8], ebx */
   3943     MEM32(esi + 0x4) = ebx; /* 0x2F00569B: mov dword ptr [esi + 4], ebx */
   3944     edi = POP32_VAL(esp); /* 0x2F00569E: pop edi */
   3945     MEM32(esi) = 0x2F0137E8u; /* 0x2F00569F: mov dword ptr [esi], 0x2f0137e8 */
   3946     MEM32(esi + 0xC) = edx; /* 0x2F0056A5: mov dword ptr [esi + 0xc], edx */
   3947     eax = esi; /* 0x2F0056A8: mov eax, esi */
   3948     esi = POP32_VAL(esp); /* 0x2F0056AA: pop esi */
   3949     ebx = POP32_VAL(esp); /* 0x2F0056AB: pop ebx */
   3950     MEM32(FS_BASE + (0)) = ecx; /* 0x2F0056AC: mov dword ptr fs:[0], ecx */
   3951     esp = ebp; /* 0x2F0056B3: mov esp, ebp */
   3952     ebp = POP32_VAL(esp); /* 0x2F0056B5: pop ebp */
   3953     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2F0056B6: ret 0xc */
   3954     RECOMP_REGS_OUT();
   3955 }
   3956 
   3957 void sub_2F0056C0(void) {
   3958     int _fpu_cmp = 0;
   3959     uint32_t _cf = 0;
   3960     int _df = 1;
   3961     uint32_t _flag_k = FK_NONE;
   3962     uint32_t _flag_a = 0, _flag_b = 0;
   3963     uint32_t _itail_tgt = 0;
   3964     RECOMP_REGS_LOCALS
   3965     RECOMP_ENTER(0x2F0056C0u);
   3966 
   3967 L_2F0056C0:
   3968     PUSH32(esp, ebp); /* 0x2F0056C0: push ebp */
   3969     ebp = esp; /* 0x2F0056C1: mov ebp, esp */
   3970     eax = MEM32(ebp + 0x8); /* 0x2F0056C3: mov eax, dword ptr [ebp + 8] */
   3971     edx = MEM32(ebp + 0xC); /* 0x2F0056C6: mov edx, dword ptr [ebp + 0xc] */
   3972     MEM32(ecx + 0x10) = eax; /* 0x2F0056C9: mov dword ptr [ecx + 0x10], eax */
   3973     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3974     eax = 0; /* 0x2F0056CC: xor eax, eax */
   3975     _cf = 0;
   3976     _flag_k = FK_TEST;
   3977     MEM32(ecx + 0x20) = eax; /* 0x2F0056CE: mov dword ptr [ecx + 0x20], eax */
   3978     MEM32(ecx + 0x14) = eax; /* 0x2F0056D1: mov dword ptr [ecx + 0x14], eax */
   3979     MEM32(ecx + 0x18) = eax; /* 0x2F0056D4: mov dword ptr [ecx + 0x18], eax */
   3980     MEM32(ecx + 0x1C) = eax; /* 0x2F0056D7: mov dword ptr [ecx + 0x1c], eax */
   3981     MEM32(ecx + 0x8) = eax; /* 0x2F0056DA: mov dword ptr [ecx + 8], eax */
   3982     MEM32(ecx + 0x4) = eax; /* 0x2F0056DD: mov dword ptr [ecx + 4], eax */
   3983     eax = MEM32(ebp + 0x10); /* 0x2F0056E0: mov eax, dword ptr [ebp + 0x10] */
   3984     MEM32(ecx + 0x24) = eax; /* 0x2F0056E3: mov dword ptr [ecx + 0x24], eax */
   3985     MEM32(ecx + 0xC) = edx; /* 0x2F0056E6: mov dword ptr [ecx + 0xc], edx */
   3986     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3987     eax = 0; /* 0x2F0056E9: xor eax, eax */
   3988     _cf = 0;
   3989     _flag_k = FK_TEST;
   3990     ebp = POP32_VAL(esp); /* 0x2F0056EB: pop ebp */
   3991     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2F0056EC: ret 0xc */
   3992     RECOMP_REGS_OUT();
   3993 }
   3994 
   3995 void sub_2F0056F0(void) {
   3996     int _fpu_cmp = 0;
   3997     uint32_t _cf = 0;
   3998     int _df = 1;
   3999     uint32_t _flag_k = FK_NONE;
   4000     uint32_t _flag_a = 0, _flag_b = 0;
   4001     uint32_t _itail_tgt = 0;
   4002     RECOMP_REGS_LOCALS
   4003     RECOMP_ENTER(0x2F0056F0u);
   4004 
   4005 L_2F0056F0:
   4006     PUSH32(esp, ebp); /* 0x2F0056F0: push ebp */
   4007     ebp = esp; /* 0x2F0056F1: mov ebp, esp */
   4008     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F0056F3: push -1 */
   4009     PUSH32(esp, 0x2F012048u); /* 0x2F0056F5: push 0x2f012048 */
   4010     eax = MEM32(FS_BASE + (0)); /* 0x2F0056FA: mov eax, dword ptr fs:[0] */
   4011     PUSH32(esp, eax); /* 0x2F005700: push eax */
   4012     MEM32(FS_BASE + (0)) = esp; /* 0x2F005701: mov dword ptr fs:[0], esp */
   4013     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4014     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4015     esp = esp - 0xCu; /* 0x2F005708: sub esp, 0xc */
   4016     _flag_k = FK_CMP;
   4017     PUSH32(esp, ebx); /* 0x2F00570B: push ebx */
   4018     PUSH32(esp, esi); /* 0x2F00570C: push esi */
   4019     PUSH32(esp, edi); /* 0x2F00570D: push edi */
   4020     esi = ecx; /* 0x2F00570E: mov esi, ecx */
   4021     edi = esi + 0x28; /* 0x2F005710: lea edi, [esi + 0x28] */
   4022     PUSH32(esp, edi); /* 0x2F005713: push edi */
   4023     MEM32(ebp + (-0x18)) = edi; /* 0x2F005714: mov dword ptr [ebp - 0x18], edi */
   4024     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005717: call dword ptr [0x2f013014] */
   4025     RECOMP_FLAGS_IN();
   4026     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4027     ebx = 0; /* 0x2F00571D: xor ebx, ebx */
   4028     _cf = 0;
   4029     _flag_k = FK_TEST;
   4030     MEM32(ebp + (-0x14)) = ebx; /* 0x2F00571F: mov dword ptr [ebp - 0x14], ebx */
   4031     eax = MEM32(esi); /* 0x2F005722: mov eax, dword ptr [esi] */
   4032     ecx = esi; /* 0x2F005724: mov ecx, esi */
   4033     MEM32(ebp + (-0x4)) = ebx; /* 0x2F005726: mov dword ptr [ebp - 4], ebx */
   4034     RECOMP_ICALL(MEM32(eax + 0x88)); /* 0x2F005729: call dword ptr [eax + 0x88] */
   4035     RECOMP_FLAGS_IN();
   4036     ecx = MEM32(esi + 0x4); /* 0x2F00572F: mov ecx, dword ptr [esi + 4] */
   4037     /* cmp ecx, ebx */ /* 0x2F005732: cmp ecx, ebx */
   4038     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4040     _flag_k = FK_CMP;
   4041     MEM32(ebp + (-0x10)) = eax; /* 0x2F005734: mov dword ptr [ebp - 0x10], eax */
   4042     MEM32(esi + 0x8) = ebx; /* 0x2F005737: mov dword ptr [esi + 8], ebx */
   4043     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005776; /* 0x2F00573A: je 0x2f005776 */
   4044 L_2F00573C:
   4045     edi = MEM32(0x2F013398); /* 0x2F00573C: mov edi, dword ptr [0x2f013398] */
   4046     ebx = MEM32(0x2F01339C); /* 0x2F005742: mov ebx, dword ptr [0x2f01339c] */
   4047 L_2F005748:
   4048     _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(1);
   4049     MEM32(esi + 0x1C) = MEM32(esi + 0x1C) - 1; /* 0x2F005748: dec dword ptr [esi + 0x1c] */
   4050     _flag_k = FK_DEC;
   4051     RECOMP_ICALL(edi); /* 0x2F00574B: call edi */
   4052     RECOMP_FLAGS_IN();
   4053     edx = MEM32(esi + 0x14); /* 0x2F00574D: mov edx, dword ptr [esi + 0x14] */
   4054     ecx = MEM32(esi + 0x4); /* 0x2F005750: mov ecx, dword ptr [esi + 4] */
   4055     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4057     edx = edx - eax; /* 0x2F005753: sub edx, eax */
   4058     _flag_k = FK_CMP;
   4059     MEM32(esi + 0x14) = edx; /* 0x2F005755: mov dword ptr [esi + 0x14], edx */
   4060     RECOMP_ICALL(ebx); /* 0x2F005758: call ebx */
   4061     RECOMP_FLAGS_IN();
   4062     _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(eax);
   4063     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4064     MEM32(esi + 0x18) = MEM32(esi + 0x18) - eax; /* 0x2F00575A: sub dword ptr [esi + 0x18], eax */
   4065     _flag_k = FK_CMP;
   4066     ecx = MEM32(esi + 0x4); /* 0x2F00575D: mov ecx, dword ptr [esi + 4] */
   4067     edx = MEM32(ecx + 0x24); /* 0x2F005760: mov edx, dword ptr [ecx + 0x24] */
   4068     MEM32(esi + 0x4) = edx; /* 0x2F005763: mov dword ptr [esi + 4], edx */
   4069     RECOMP_ICALL(MEM32(0x2F0133A0)); /* 0x2F005766: call dword ptr [0x2f0133a0] */
   4070     RECOMP_FLAGS_IN();
   4071     ecx = MEM32(esi + 0x4); /* 0x2F00576C: mov ecx, dword ptr [esi + 4] */
   4072     /* test ecx, ecx */ /* 0x2F00576F: test ecx, ecx */
   4073     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4074     _cf = 0;
   4075     _flag_k = FK_TEST;
   4076     RECOMP_BACKEDGE();
   4077     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F005748; /* 0x2F005771: jne 0x2f005748 */
   4078 L_2F005773:
   4079     edi = MEM32(ebp + (-0x18)); /* 0x2F005773: mov edi, dword ptr [ebp - 0x18] */
   4080 L_2F005776:
   4081     PUSH32(esp, edi); /* 0x2F005776: push edi */
   4082     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005777: call dword ptr [0x2f013058] */
   4083     RECOMP_FLAGS_IN();
   4084     ecx = MEM32(ebp + (-0xC)); /* 0x2F00577D: mov ecx, dword ptr [ebp - 0xc] */
   4085     eax = MEM32(ebp + (-0x10)); /* 0x2F005780: mov eax, dword ptr [ebp - 0x10] */
   4086     edi = POP32_VAL(esp); /* 0x2F005783: pop edi */
   4087     esi = POP32_VAL(esp); /* 0x2F005784: pop esi */
   4088     ebx = POP32_VAL(esp); /* 0x2F005785: pop ebx */
   4089     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005786: mov dword ptr fs:[0], ecx */
   4090     esp = ebp; /* 0x2F00578D: mov esp, ebp */
   4091     ebp = POP32_VAL(esp); /* 0x2F00578F: pop ebp */
   4092     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005790: ret  */
   4093     RECOMP_REGS_OUT();
   4094 }
   4095 
   4096 void sub_2F0057A0(void) {
   4097     int _fpu_cmp = 0;
   4098     uint32_t _cf = 0;
   4099     int _df = 1;
   4100     uint32_t _flag_k = FK_NONE;
   4101     uint32_t _flag_a = 0, _flag_b = 0;
   4102     uint32_t _itail_tgt = 0;
   4103     RECOMP_REGS_LOCALS
   4104     RECOMP_ENTER(0x2F0057A0u);
   4105 
   4106 L_2F0057A0:
   4107     PUSH32(esp, ebp); /* 0x2F0057A0: push ebp */
   4108     ebp = esp; /* 0x2F0057A1: mov ebp, esp */
   4109     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F0057A3: push -1 */
   4110     PUSH32(esp, 0x2F012068u); /* 0x2F0057A5: push 0x2f012068 */
   4111     eax = MEM32(FS_BASE + (0)); /* 0x2F0057AA: mov eax, dword ptr fs:[0] */
   4112     PUSH32(esp, eax); /* 0x2F0057B0: push eax */
   4113     MEM32(FS_BASE + (0)) = esp; /* 0x2F0057B1: mov dword ptr fs:[0], esp */
   4114     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4116     esp = esp - 8; /* 0x2F0057B8: sub esp, 8 */
   4117     _flag_k = FK_CMP;
   4118     PUSH32(esp, esi); /* 0x2F0057BB: push esi */
   4119     esi = ecx; /* 0x2F0057BC: mov esi, ecx */
   4120     PUSH32(esp, edi); /* 0x2F0057BE: push edi */
   4121     eax = esi + 0x28; /* 0x2F0057BF: lea eax, [esi + 0x28] */
   4122     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4123     edi = 0; /* 0x2F0057C2: xor edi, edi */
   4124     _cf = 0;
   4125     _flag_k = FK_TEST;
   4126     PUSH32(esp, eax); /* 0x2F0057C4: push eax */
   4127     MEM32(ebp + (-0x14)) = eax; /* 0x2F0057C5: mov dword ptr [ebp - 0x14], eax */
   4128     MEM32(ebp + (-0x10)) = edi; /* 0x2F0057C8: mov dword ptr [ebp - 0x10], edi */
   4129     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F0057CB: call dword ptr [0x2f013014] */
   4130     RECOMP_FLAGS_IN();
   4131     MEM32(ebp + (-0x10)) = edi; /* 0x2F0057D1: mov dword ptr [ebp - 0x10], edi */
   4132     /* cmp MEM32(esi + 0x20), edi */ /* 0x2F0057D4: cmp dword ptr [esi + 0x20], edi */
   4133     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(edi);
   4134     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4135     _flag_k = FK_CMP;
   4136     MEM32(ebp + (-0x4)) = edi; /* 0x2F0057D7: mov dword ptr [ebp - 4], edi */
   4137     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005813; /* 0x2F0057DA: je 0x2f005813 */
   4138 L_2F0057DC:
   4139     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F0057DC: call dword ptr [0x2f0131b0] */
   4140     RECOMP_FLAGS_IN();
   4141     MEM32(eax) = 0x274Au; /* 0x2F0057E2: mov dword ptr [eax], 0x274a */
   4142     eax = MEM32(ebp + (-0x10)); /* 0x2F0057E8: mov eax, dword ptr [ebp - 0x10] */
   4143     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   4144     edi = edi | 0xFFFFFFFFu; /* 0x2F0057EB: or edi, 0xffffffff */
   4145     _cf = 0;
   4146     _flag_k = FK_TEST;
   4147     /* cmp eax, edi */ /* 0x2F0057EE: cmp eax, edi */
   4148     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4149     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4150     _flag_k = FK_CMP;
   4151     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0057FF; /* 0x2F0057F0: je 0x2f0057ff */
   4152 L_2F0057F2:
   4153     eax = MEM32(ebp + (-0x14)); /* 0x2F0057F2: mov eax, dword ptr [ebp - 0x14] */
   4154     PUSH32(esp, eax); /* 0x2F0057F5: push eax */
   4155     MEM32(ebp + (-0x10)) = edi; /* 0x2F0057F6: mov dword ptr [ebp - 0x10], edi */
   4156     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F0057F9: call dword ptr [0x2f013058] */
   4157     RECOMP_FLAGS_IN();
   4158 L_2F0057FF:
   4159     eax = edi; /* 0x2F0057FF: mov eax, edi */
   4160     edi = POP32_VAL(esp); /* 0x2F005801: pop edi */
   4161     esi = POP32_VAL(esp); /* 0x2F005802: pop esi */
   4162     ecx = MEM32(ebp + (-0xC)); /* 0x2F005803: mov ecx, dword ptr [ebp - 0xc] */
   4163     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005806: mov dword ptr fs:[0], ecx */
   4164     esp = ebp; /* 0x2F00580D: mov esp, ebp */
   4165     ebp = POP32_VAL(esp); /* 0x2F00580F: pop ebp */
   4166     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005810: ret 8 */
   4167 L_2F005813:
   4168     eax = MEM32(ebp + 0xC); /* 0x2F005813: mov eax, dword ptr [ebp + 0xc] */
   4169     edx = MEM32(esi); /* 0x2F005816: mov edx, dword ptr [esi] */
   4170     PUSH32(esp, eax); /* 0x2F005818: push eax */
   4171     ecx = ebp + (-0x14); /* 0x2F005819: lea ecx, [ebp - 0x14] */
   4172     PUSH32(esp, ecx); /* 0x2F00581C: push ecx */
   4173     ecx = esi; /* 0x2F00581D: mov ecx, esi */
   4174     RECOMP_ICALL(MEM32(edx + 0x94)); /* 0x2F00581F: call dword ptr [edx + 0x94] */
   4175     RECOMP_FLAGS_IN();
   4176     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   4177     edi = edi | 0xFFFFFFFFu; /* 0x2F005825: or edi, 0xffffffff */
   4178     _cf = 0;
   4179     _flag_k = FK_TEST;
   4180     /* cmp eax, edi */ /* 0x2F005828: cmp eax, edi */
   4181     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4183     _flag_k = FK_CMP;
   4184     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005852; /* 0x2F00582A: jne 0x2f005852 */
   4185 L_2F00582C:
   4186     /* cmp MEM32(ebp + (-0x10)), edi */ /* 0x2F00582C: cmp dword ptr [ebp - 0x10], edi */
   4187     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(edi);
   4188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4189     _flag_k = FK_CMP;
   4190     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00583E; /* 0x2F00582F: je 0x2f00583e */
   4191 L_2F005831:
   4192     edx = MEM32(ebp + (-0x14)); /* 0x2F005831: mov edx, dword ptr [ebp - 0x14] */
   4193     PUSH32(esp, edx); /* 0x2F005834: push edx */
   4194     MEM32(ebp + (-0x10)) = edi; /* 0x2F005835: mov dword ptr [ebp - 0x10], edi */
   4195     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005838: call dword ptr [0x2f013058] */
   4196     RECOMP_FLAGS_IN();
   4197 L_2F00583E:
   4198     eax = edi; /* 0x2F00583E: mov eax, edi */
   4199     edi = POP32_VAL(esp); /* 0x2F005840: pop edi */
   4200     esi = POP32_VAL(esp); /* 0x2F005841: pop esi */
   4201     ecx = MEM32(ebp + (-0xC)); /* 0x2F005842: mov ecx, dword ptr [ebp - 0xc] */
   4202     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005845: mov dword ptr fs:[0], ecx */
   4203     esp = ebp; /* 0x2F00584C: mov esp, ebp */
   4204     ebp = POP32_VAL(esp); /* 0x2F00584E: pop ebp */
   4205     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F00584F: ret 8 */
   4206 L_2F005852:
   4207     eax = MEM32(esi + 0x4); /* 0x2F005852: mov eax, dword ptr [esi + 4] */
   4208     ecx = MEM32(ebp + 0x8); /* 0x2F005855: mov ecx, dword ptr [ebp + 8] */
   4209     MEM32(ecx) = eax; /* 0x2F005858: mov dword ptr [ecx], eax */
   4210     /* cmp MEM32(ebp + (-0x10)), edi */ /* 0x2F00585A: cmp dword ptr [ebp - 0x10], edi */
   4211     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(edi);
   4212     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4213     _flag_k = FK_CMP;
   4214     esi = MEM32(esi + 0x1C); /* 0x2F00585D: mov esi, dword ptr [esi + 0x1c] */
   4215     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00586F; /* 0x2F005860: je 0x2f00586f */
   4216 L_2F005862:
   4217     edx = MEM32(ebp + (-0x14)); /* 0x2F005862: mov edx, dword ptr [ebp - 0x14] */
   4218     PUSH32(esp, edx); /* 0x2F005865: push edx */
   4219     MEM32(ebp + (-0x10)) = edi; /* 0x2F005866: mov dword ptr [ebp - 0x10], edi */
   4220     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005869: call dword ptr [0x2f013058] */
   4221     RECOMP_FLAGS_IN();
   4222 L_2F00586F:
   4223     ecx = MEM32(ebp + (-0xC)); /* 0x2F00586F: mov ecx, dword ptr [ebp - 0xc] */
   4224     edi = POP32_VAL(esp); /* 0x2F005872: pop edi */
   4225     eax = esi; /* 0x2F005873: mov eax, esi */
   4226     esi = POP32_VAL(esp); /* 0x2F005875: pop esi */
   4227     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005876: mov dword ptr fs:[0], ecx */
   4228     esp = ebp; /* 0x2F00587D: mov esp, ebp */
   4229     ebp = POP32_VAL(esp); /* 0x2F00587F: pop ebp */
   4230     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005880: ret 8 */
   4231     RECOMP_REGS_OUT();
   4232 }
   4233 
   4234 void sub_2F005890(void) {
   4235     int _fpu_cmp = 0;
   4236     uint32_t _cf = 0;
   4237     int _df = 1;
   4238     uint32_t _flag_k = FK_NONE;
   4239     uint32_t _flag_a = 0, _flag_b = 0;
   4240     uint32_t _itail_tgt = 0;
   4241     RECOMP_REGS_LOCALS
   4242     RECOMP_ENTER(0x2F005890u);
   4243 
   4244 L_2F005890:
   4245     PUSH32(esp, ebp); /* 0x2F005890: push ebp */
   4246     ebp = esp; /* 0x2F005891: mov ebp, esp */
   4247     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F005893: push -1 */
   4248     PUSH32(esp, 0x2F012088u); /* 0x2F005895: push 0x2f012088 */
   4249     eax = MEM32(FS_BASE + (0)); /* 0x2F00589A: mov eax, dword ptr fs:[0] */
   4250     PUSH32(esp, eax); /* 0x2F0058A0: push eax */
   4251     MEM32(FS_BASE + (0)) = esp; /* 0x2F0058A1: mov dword ptr fs:[0], esp */
   4252     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4254     esp = esp - 8; /* 0x2F0058A8: sub esp, 8 */
   4255     _flag_k = FK_CMP;
   4256     PUSH32(esp, ebx); /* 0x2F0058AB: push ebx */
   4257     PUSH32(esp, esi); /* 0x2F0058AC: push esi */
   4258     esi = ecx; /* 0x2F0058AD: mov esi, ecx */
   4259     PUSH32(esp, edi); /* 0x2F0058AF: push edi */
   4260     eax = esi + 0x28; /* 0x2F0058B0: lea eax, [esi + 0x28] */
   4261     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4262     edi = 0; /* 0x2F0058B3: xor edi, edi */
   4263     _cf = 0;
   4264     _flag_k = FK_TEST;
   4265     PUSH32(esp, eax); /* 0x2F0058B5: push eax */
   4266     MEM32(ebp + (-0x14)) = eax; /* 0x2F0058B6: mov dword ptr [ebp - 0x14], eax */
   4267     MEM32(ebp + (-0x10)) = edi; /* 0x2F0058B9: mov dword ptr [ebp - 0x10], edi */
   4268     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F0058BC: call dword ptr [0x2f013014] */
   4269     RECOMP_FLAGS_IN();
   4270     MEM32(ebp + (-0x10)) = edi; /* 0x2F0058C2: mov dword ptr [ebp - 0x10], edi */
   4271     /* cmp MEM32(esi + 0x20), edi */ /* 0x2F0058C5: cmp dword ptr [esi + 0x20], edi */
   4272     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(edi);
   4273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4274     _flag_k = FK_CMP;
   4275     MEM32(ebp + (-0x4)) = edi; /* 0x2F0058C8: mov dword ptr [ebp - 4], edi */
   4276     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005905; /* 0x2F0058CB: je 0x2f005905 */
   4277 L_2F0058CD:
   4278     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F0058CD: call dword ptr [0x2f0131b0] */
   4279     RECOMP_FLAGS_IN();
   4280     MEM32(eax) = 0x274Au; /* 0x2F0058D3: mov dword ptr [eax], 0x274a */
   4281     eax = MEM32(ebp + (-0x10)); /* 0x2F0058D9: mov eax, dword ptr [ebp - 0x10] */
   4282     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   4283     ebx = ebx | 0xFFFFFFFFu; /* 0x2F0058DC: or ebx, 0xffffffff */
   4284     _cf = 0;
   4285     _flag_k = FK_TEST;
   4286     /* cmp eax, ebx */ /* 0x2F0058DF: cmp eax, ebx */
   4287     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4289     _flag_k = FK_CMP;
   4290     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0058F0; /* 0x2F0058E1: je 0x2f0058f0 */
   4291 L_2F0058E3:
   4292     eax = MEM32(ebp + (-0x14)); /* 0x2F0058E3: mov eax, dword ptr [ebp - 0x14] */
   4293     PUSH32(esp, eax); /* 0x2F0058E6: push eax */
   4294     MEM32(ebp + (-0x10)) = ebx; /* 0x2F0058E7: mov dword ptr [ebp - 0x10], ebx */
   4295     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F0058EA: call dword ptr [0x2f013058] */
   4296     RECOMP_FLAGS_IN();
   4297 L_2F0058F0:
   4298     edi = POP32_VAL(esp); /* 0x2F0058F0: pop edi */
   4299     esi = POP32_VAL(esp); /* 0x2F0058F1: pop esi */
   4300     eax = ebx; /* 0x2F0058F2: mov eax, ebx */
   4301     ebx = POP32_VAL(esp); /* 0x2F0058F4: pop ebx */
   4302     ecx = MEM32(ebp + (-0xC)); /* 0x2F0058F5: mov ecx, dword ptr [ebp - 0xc] */
   4303     MEM32(FS_BASE + (0)) = ecx; /* 0x2F0058F8: mov dword ptr fs:[0], ecx */
   4304     esp = ebp; /* 0x2F0058FF: mov esp, ebp */
   4305     ebp = POP32_VAL(esp); /* 0x2F005901: pop ebp */
   4306     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005902: ret 8 */
   4307 L_2F005905:
   4308     eax = MEM32(ebp + 0xC); /* 0x2F005905: mov eax, dword ptr [ebp + 0xc] */
   4309     edx = MEM32(esi); /* 0x2F005908: mov edx, dword ptr [esi] */
   4310     PUSH32(esp, eax); /* 0x2F00590A: push eax */
   4311     ecx = ebp + (-0x14); /* 0x2F00590B: lea ecx, [ebp - 0x14] */
   4312     PUSH32(esp, ecx); /* 0x2F00590E: push ecx */
   4313     ecx = esi; /* 0x2F00590F: mov ecx, esi */
   4314     RECOMP_ICALL(MEM32(edx + 0x90)); /* 0x2F005911: call dword ptr [edx + 0x90] */
   4315     RECOMP_FLAGS_IN();
   4316     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   4317     ebx = ebx | 0xFFFFFFFFu; /* 0x2F005917: or ebx, 0xffffffff */
   4318     _cf = 0;
   4319     _flag_k = FK_TEST;
   4320     /* cmp eax, ebx */ /* 0x2F00591A: cmp eax, ebx */
   4321     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4323     _flag_k = FK_CMP;
   4324     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005945; /* 0x2F00591C: jne 0x2f005945 */
   4325 L_2F00591E:
   4326     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x2F00591E: cmp dword ptr [ebp - 0x10], ebx */
   4327     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   4328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4329     _flag_k = FK_CMP;
   4330     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005930; /* 0x2F005921: je 0x2f005930 */
   4331 L_2F005923:
   4332     edx = MEM32(ebp + (-0x14)); /* 0x2F005923: mov edx, dword ptr [ebp - 0x14] */
   4333     PUSH32(esp, edx); /* 0x2F005926: push edx */
   4334     MEM32(ebp + (-0x10)) = ebx; /* 0x2F005927: mov dword ptr [ebp - 0x10], ebx */
   4335     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F00592A: call dword ptr [0x2f013058] */
   4336     RECOMP_FLAGS_IN();
   4337 L_2F005930:
   4338     edi = POP32_VAL(esp); /* 0x2F005930: pop edi */
   4339     esi = POP32_VAL(esp); /* 0x2F005931: pop esi */
   4340     eax = ebx; /* 0x2F005932: mov eax, ebx */
   4341     ebx = POP32_VAL(esp); /* 0x2F005934: pop ebx */
   4342     ecx = MEM32(ebp + (-0xC)); /* 0x2F005935: mov ecx, dword ptr [ebp - 0xc] */
   4343     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005938: mov dword ptr fs:[0], ecx */
   4344     esp = ebp; /* 0x2F00593F: mov esp, ebp */
   4345     ebp = POP32_VAL(esp); /* 0x2F005941: pop ebp */
   4346     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005942: ret 8 */
   4347 L_2F005945:
   4348     ecx = MEM32(ebp + 0x8); /* 0x2F005945: mov ecx, dword ptr [ebp + 8] */
   4349     eax = MEM32(esi); /* 0x2F005948: mov eax, dword ptr [esi] */
   4350     PUSH32(esp, ecx); /* 0x2F00594A: push ecx */
   4351     ecx = esi; /* 0x2F00594B: mov ecx, esi */
   4352     RECOMP_ICALL(MEM32(eax + 0x70)); /* 0x2F00594D: call dword ptr [eax + 0x70] */
   4353     RECOMP_FLAGS_IN();
   4354     edi = eax; /* 0x2F005950: mov edi, eax */
   4355     /* cmp edi, ebx */ /* 0x2F005952: cmp edi, ebx */
   4356     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   4357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4358     _flag_k = FK_CMP;
   4359     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00597D; /* 0x2F005954: jne 0x2f00597d */
   4360 L_2F005956:
   4361     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x2F005956: cmp dword ptr [ebp - 0x10], ebx */
   4362     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   4363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4364     _flag_k = FK_CMP;
   4365     RECOMP_BACKEDGE();
   4366     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005930; /* 0x2F005959: je 0x2f005930 */
   4367 L_2F00595B:
   4368     edx = MEM32(ebp + (-0x14)); /* 0x2F00595B: mov edx, dword ptr [ebp - 0x14] */
   4369     PUSH32(esp, edx); /* 0x2F00595E: push edx */
   4370     MEM32(ebp + (-0x10)) = ebx; /* 0x2F00595F: mov dword ptr [ebp - 0x10], ebx */
   4371     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005962: call dword ptr [0x2f013058] */
   4372     RECOMP_FLAGS_IN();
   4373     edi = POP32_VAL(esp); /* 0x2F005968: pop edi */
   4374     esi = POP32_VAL(esp); /* 0x2F005969: pop esi */
   4375     eax = ebx; /* 0x2F00596A: mov eax, ebx */
   4376     ebx = POP32_VAL(esp); /* 0x2F00596C: pop ebx */
   4377     ecx = MEM32(ebp + (-0xC)); /* 0x2F00596D: mov ecx, dword ptr [ebp - 0xc] */
   4378     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005970: mov dword ptr fs:[0], ecx */
   4379     esp = ebp; /* 0x2F005977: mov esp, ebp */
   4380     ebp = POP32_VAL(esp); /* 0x2F005979: pop ebp */
   4381     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F00597A: ret 8 */
   4382 L_2F00597D:
   4383     eax = MEM32(esi); /* 0x2F00597D: mov eax, dword ptr [esi] */
   4384     ecx = esi; /* 0x2F00597F: mov ecx, esi */
   4385     RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x2F005981: call dword ptr [eax + 0x64] */
   4386     RECOMP_FLAGS_IN();
   4387     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x2F005984: cmp dword ptr [ebp - 0x10], ebx */
   4388     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   4389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4390     _flag_k = FK_CMP;
   4391     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005996; /* 0x2F005987: je 0x2f005996 */
   4392 L_2F005989:
   4393     ecx = MEM32(ebp + (-0x14)); /* 0x2F005989: mov ecx, dword ptr [ebp - 0x14] */
   4394     PUSH32(esp, ecx); /* 0x2F00598C: push ecx */
   4395     MEM32(ebp + (-0x10)) = ebx; /* 0x2F00598D: mov dword ptr [ebp - 0x10], ebx */
   4396     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005990: call dword ptr [0x2f013058] */
   4397     RECOMP_FLAGS_IN();
   4398 L_2F005996:
   4399     ecx = MEM32(ebp + (-0xC)); /* 0x2F005996: mov ecx, dword ptr [ebp - 0xc] */
   4400     eax = edi; /* 0x2F005999: mov eax, edi */
   4401     edi = POP32_VAL(esp); /* 0x2F00599B: pop edi */
   4402     esi = POP32_VAL(esp); /* 0x2F00599C: pop esi */
   4403     ebx = POP32_VAL(esp); /* 0x2F00599D: pop ebx */
   4404     MEM32(FS_BASE + (0)) = ecx; /* 0x2F00599E: mov dword ptr fs:[0], ecx */
   4405     esp = ebp; /* 0x2F0059A5: mov esp, ebp */
   4406     ebp = POP32_VAL(esp); /* 0x2F0059A7: pop ebp */
   4407     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F0059A8: ret 8 */
   4408     RECOMP_REGS_OUT();
   4409 }
   4410 
   4411 void sub_2F0059B0(void) {
   4412     int _fpu_cmp = 0;
   4413     uint32_t _cf = 0;
   4414     int _df = 1;
   4415     uint32_t _flag_k = FK_NONE;
   4416     uint32_t _flag_a = 0, _flag_b = 0;
   4417     uint32_t _itail_tgt = 0;
   4418     RECOMP_REGS_LOCALS
   4419     RECOMP_ENTER(0x2F0059B0u);
   4420 
   4421 L_2F0059B0:
   4422     PUSH32(esp, ebp); /* 0x2F0059B0: push ebp */
   4423     ebp = esp; /* 0x2F0059B1: mov ebp, esp */
   4424     edx = MEM32(ebp + 0xC); /* 0x2F0059B3: mov edx, dword ptr [ebp + 0xc] */
   4425     eax = MEM32(ecx); /* 0x2F0059B6: mov eax, dword ptr [ecx] */
   4426     PUSH32(esp, edx); /* 0x2F0059B8: push edx */
   4427     edx = MEM32(ebp + 0x8); /* 0x2F0059B9: mov edx, dword ptr [ebp + 8] */
   4428     PUSH32(esp, edx); /* 0x2F0059BC: push edx */
   4429     RECOMP_ICALL(MEM32(eax + 0x4C)); /* 0x2F0059BD: call dword ptr [eax + 0x4c] */
   4430     RECOMP_FLAGS_IN();
   4431     ebp = POP32_VAL(esp); /* 0x2F0059C0: pop ebp */
   4432     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F0059C1: ret 8 */
   4433     RECOMP_REGS_OUT();
   4434 }
   4435 
   4436 void sub_2F0059D0(void) {
   4437     int _fpu_cmp = 0;
   4438     uint32_t _cf = 0;
   4439     int _df = 1;
   4440     uint32_t _flag_k = FK_NONE;
   4441     uint32_t _flag_a = 0, _flag_b = 0;
   4442     uint32_t _itail_tgt = 0;
   4443     RECOMP_REGS_LOCALS
   4444     RECOMP_ENTER(0x2F0059D0u);
   4445 
   4446 L_2F0059D0:
   4447     PUSH32(esp, ebp); /* 0x2F0059D0: push ebp */
   4448     ebp = esp; /* 0x2F0059D1: mov ebp, esp */
   4449     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F0059D3: push -1 */
   4450     PUSH32(esp, 0x2F0120A8u); /* 0x2F0059D5: push 0x2f0120a8 */
   4451     eax = MEM32(FS_BASE + (0)); /* 0x2F0059DA: mov eax, dword ptr fs:[0] */
   4452     PUSH32(esp, eax); /* 0x2F0059E0: push eax */
   4453     MEM32(FS_BASE + (0)) = esp; /* 0x2F0059E1: mov dword ptr fs:[0], esp */
   4454     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4456     esp = esp - 8; /* 0x2F0059E8: sub esp, 8 */
   4457     _flag_k = FK_CMP;
   4458     PUSH32(esp, ebx); /* 0x2F0059EB: push ebx */
   4459     PUSH32(esp, esi); /* 0x2F0059EC: push esi */
   4460     esi = ecx; /* 0x2F0059ED: mov esi, ecx */
   4461     PUSH32(esp, edi); /* 0x2F0059EF: push edi */
   4462     eax = esi + 0x28; /* 0x2F0059F0: lea eax, [esi + 0x28] */
   4463     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4464     edi = 0; /* 0x2F0059F3: xor edi, edi */
   4465     _cf = 0;
   4466     _flag_k = FK_TEST;
   4467     PUSH32(esp, eax); /* 0x2F0059F5: push eax */
   4468     MEM32(ebp + (-0x14)) = eax; /* 0x2F0059F6: mov dword ptr [ebp - 0x14], eax */
   4469     MEM32(ebp + (-0x10)) = edi; /* 0x2F0059F9: mov dword ptr [ebp - 0x10], edi */
   4470     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F0059FC: call dword ptr [0x2f013014] */
   4471     RECOMP_FLAGS_IN();
   4472     MEM32(ebp + (-0x10)) = edi; /* 0x2F005A02: mov dword ptr [ebp - 0x10], edi */
   4473     /* cmp MEM32(esi + 0x20), edi */ /* 0x2F005A05: cmp dword ptr [esi + 0x20], edi */
   4474     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(edi);
   4475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4476     _flag_k = FK_CMP;
   4477     MEM32(ebp + (-0x4)) = edi; /* 0x2F005A08: mov dword ptr [ebp - 4], edi */
   4478     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005A45; /* 0x2F005A0B: je 0x2f005a45 */
   4479 L_2F005A0D:
   4480     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F005A0D: call dword ptr [0x2f0131b0] */
   4481     RECOMP_FLAGS_IN();
   4482     MEM32(eax) = 0x274Au; /* 0x2F005A13: mov dword ptr [eax], 0x274a */
   4483     eax = MEM32(ebp + (-0x10)); /* 0x2F005A19: mov eax, dword ptr [ebp - 0x10] */
   4484     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   4485     ebx = ebx | 0xFFFFFFFFu; /* 0x2F005A1C: or ebx, 0xffffffff */
   4486     _cf = 0;
   4487     _flag_k = FK_TEST;
   4488     /* cmp eax, ebx */ /* 0x2F005A1F: cmp eax, ebx */
   4489     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4490     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4491     _flag_k = FK_CMP;
   4492     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005A30; /* 0x2F005A21: je 0x2f005a30 */
   4493 L_2F005A23:
   4494     eax = MEM32(ebp + (-0x14)); /* 0x2F005A23: mov eax, dword ptr [ebp - 0x14] */
   4495     PUSH32(esp, eax); /* 0x2F005A26: push eax */
   4496     MEM32(ebp + (-0x10)) = ebx; /* 0x2F005A27: mov dword ptr [ebp - 0x10], ebx */
   4497     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005A2A: call dword ptr [0x2f013058] */
   4498     RECOMP_FLAGS_IN();
   4499 L_2F005A30:
   4500     edi = POP32_VAL(esp); /* 0x2F005A30: pop edi */
   4501     esi = POP32_VAL(esp); /* 0x2F005A31: pop esi */
   4502     eax = ebx; /* 0x2F005A32: mov eax, ebx */
   4503     ebx = POP32_VAL(esp); /* 0x2F005A34: pop ebx */
   4504     ecx = MEM32(ebp + (-0xC)); /* 0x2F005A35: mov ecx, dword ptr [ebp - 0xc] */
   4505     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005A38: mov dword ptr fs:[0], ecx */
   4506     esp = ebp; /* 0x2F005A3F: mov esp, ebp */
   4507     ebp = POP32_VAL(esp); /* 0x2F005A41: pop ebp */
   4508     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005A42: ret 8 */
   4509 L_2F005A45:
   4510     eax = MEM32(ebp + 0xC); /* 0x2F005A45: mov eax, dword ptr [ebp + 0xc] */
   4511     edx = MEM32(esi); /* 0x2F005A48: mov edx, dword ptr [esi] */
   4512     PUSH32(esp, eax); /* 0x2F005A4A: push eax */
   4513     ecx = ebp + (-0x14); /* 0x2F005A4B: lea ecx, [ebp - 0x14] */
   4514     PUSH32(esp, ecx); /* 0x2F005A4E: push ecx */
   4515     ecx = esi; /* 0x2F005A4F: mov ecx, esi */
   4516     RECOMP_ICALL(MEM32(edx + 0x90)); /* 0x2F005A51: call dword ptr [edx + 0x90] */
   4517     RECOMP_FLAGS_IN();
   4518     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   4519     ebx = ebx | 0xFFFFFFFFu; /* 0x2F005A57: or ebx, 0xffffffff */
   4520     _cf = 0;
   4521     _flag_k = FK_TEST;
   4522     /* cmp eax, ebx */ /* 0x2F005A5A: cmp eax, ebx */
   4523     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4525     _flag_k = FK_CMP;
   4526     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005A85; /* 0x2F005A5C: jne 0x2f005a85 */
   4527 L_2F005A5E:
   4528     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x2F005A5E: cmp dword ptr [ebp - 0x10], ebx */
   4529     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   4530     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4531     _flag_k = FK_CMP;
   4532     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005A70; /* 0x2F005A61: je 0x2f005a70 */
   4533 L_2F005A63:
   4534     edx = MEM32(ebp + (-0x14)); /* 0x2F005A63: mov edx, dword ptr [ebp - 0x14] */
   4535     PUSH32(esp, edx); /* 0x2F005A66: push edx */
   4536     MEM32(ebp + (-0x10)) = ebx; /* 0x2F005A67: mov dword ptr [ebp - 0x10], ebx */
   4537     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005A6A: call dword ptr [0x2f013058] */
   4538     RECOMP_FLAGS_IN();
   4539 L_2F005A70:
   4540     edi = POP32_VAL(esp); /* 0x2F005A70: pop edi */
   4541     esi = POP32_VAL(esp); /* 0x2F005A71: pop esi */
   4542     eax = ebx; /* 0x2F005A72: mov eax, ebx */
   4543     ebx = POP32_VAL(esp); /* 0x2F005A74: pop ebx */
   4544     ecx = MEM32(ebp + (-0xC)); /* 0x2F005A75: mov ecx, dword ptr [ebp - 0xc] */
   4545     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005A78: mov dword ptr fs:[0], ecx */
   4546     esp = ebp; /* 0x2F005A7F: mov esp, ebp */
   4547     ebp = POP32_VAL(esp); /* 0x2F005A81: pop ebp */
   4548     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005A82: ret 8 */
   4549 L_2F005A85:
   4550     ecx = MEM32(ebp + 0x8); /* 0x2F005A85: mov ecx, dword ptr [ebp + 8] */
   4551     eax = MEM32(esi); /* 0x2F005A88: mov eax, dword ptr [esi] */
   4552     PUSH32(esp, ecx); /* 0x2F005A8A: push ecx */
   4553     ecx = esi; /* 0x2F005A8B: mov ecx, esi */
   4554     RECOMP_ICALL(MEM32(eax + 0x74)); /* 0x2F005A8D: call dword ptr [eax + 0x74] */
   4555     RECOMP_FLAGS_IN();
   4556     edi = eax; /* 0x2F005A90: mov edi, eax */
   4557     /* cmp edi, ebx */ /* 0x2F005A92: cmp edi, ebx */
   4558     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   4559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4560     _flag_k = FK_CMP;
   4561     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005ABD; /* 0x2F005A94: jne 0x2f005abd */
   4562 L_2F005A96:
   4563     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x2F005A96: cmp dword ptr [ebp - 0x10], ebx */
   4564     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   4565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4566     _flag_k = FK_CMP;
   4567     RECOMP_BACKEDGE();
   4568     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005A70; /* 0x2F005A99: je 0x2f005a70 */
   4569 L_2F005A9B:
   4570     edx = MEM32(ebp + (-0x14)); /* 0x2F005A9B: mov edx, dword ptr [ebp - 0x14] */
   4571     PUSH32(esp, edx); /* 0x2F005A9E: push edx */
   4572     MEM32(ebp + (-0x10)) = ebx; /* 0x2F005A9F: mov dword ptr [ebp - 0x10], ebx */
   4573     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005AA2: call dword ptr [0x2f013058] */
   4574     RECOMP_FLAGS_IN();
   4575     edi = POP32_VAL(esp); /* 0x2F005AA8: pop edi */
   4576     esi = POP32_VAL(esp); /* 0x2F005AA9: pop esi */
   4577     eax = ebx; /* 0x2F005AAA: mov eax, ebx */
   4578     ebx = POP32_VAL(esp); /* 0x2F005AAC: pop ebx */
   4579     ecx = MEM32(ebp + (-0xC)); /* 0x2F005AAD: mov ecx, dword ptr [ebp - 0xc] */
   4580     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005AB0: mov dword ptr fs:[0], ecx */
   4581     esp = ebp; /* 0x2F005AB7: mov esp, ebp */
   4582     ebp = POP32_VAL(esp); /* 0x2F005AB9: pop ebp */
   4583     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005ABA: ret 8 */
   4584 L_2F005ABD:
   4585     eax = MEM32(esi); /* 0x2F005ABD: mov eax, dword ptr [esi] */
   4586     ecx = esi; /* 0x2F005ABF: mov ecx, esi */
   4587     RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x2F005AC1: call dword ptr [eax + 0x64] */
   4588     RECOMP_FLAGS_IN();
   4589     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x2F005AC4: cmp dword ptr [ebp - 0x10], ebx */
   4590     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   4591     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4592     _flag_k = FK_CMP;
   4593     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005AD6; /* 0x2F005AC7: je 0x2f005ad6 */
   4594 L_2F005AC9:
   4595     ecx = MEM32(ebp + (-0x14)); /* 0x2F005AC9: mov ecx, dword ptr [ebp - 0x14] */
   4596     PUSH32(esp, ecx); /* 0x2F005ACC: push ecx */
   4597     MEM32(ebp + (-0x10)) = ebx; /* 0x2F005ACD: mov dword ptr [ebp - 0x10], ebx */
   4598     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005AD0: call dword ptr [0x2f013058] */
   4599     RECOMP_FLAGS_IN();
   4600 L_2F005AD6:
   4601     ecx = MEM32(ebp + (-0xC)); /* 0x2F005AD6: mov ecx, dword ptr [ebp - 0xc] */
   4602     eax = edi; /* 0x2F005AD9: mov eax, edi */
   4603     edi = POP32_VAL(esp); /* 0x2F005ADB: pop edi */
   4604     esi = POP32_VAL(esp); /* 0x2F005ADC: pop esi */
   4605     ebx = POP32_VAL(esp); /* 0x2F005ADD: pop ebx */
   4606     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005ADE: mov dword ptr fs:[0], ecx */
   4607     esp = ebp; /* 0x2F005AE5: mov esp, ebp */
   4608     ebp = POP32_VAL(esp); /* 0x2F005AE7: pop ebp */
   4609     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005AE8: ret 8 */
   4610     RECOMP_REGS_OUT();
   4611 }
   4612 
   4613 void sub_2F005AF0(void) {
   4614     int _fpu_cmp = 0;
   4615     uint32_t _cf = 0;
   4616     int _df = 1;
   4617     uint32_t _flag_k = FK_NONE;
   4618     uint32_t _flag_a = 0, _flag_b = 0;
   4619     uint32_t _itail_tgt = 0;
   4620     RECOMP_REGS_LOCALS
   4621     RECOMP_ENTER(0x2F005AF0u);
   4622 
   4623 L_2F005AF0:
   4624     PUSH32(esp, ebp); /* 0x2F005AF0: push ebp */
   4625     ebp = esp; /* 0x2F005AF1: mov ebp, esp */
   4626     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F005AF3: push -1 */
   4627     PUSH32(esp, 0x2F0120C8u); /* 0x2F005AF5: push 0x2f0120c8 */
   4628     eax = MEM32(FS_BASE + (0)); /* 0x2F005AFA: mov eax, dword ptr fs:[0] */
   4629     PUSH32(esp, eax); /* 0x2F005B00: push eax */
   4630     MEM32(FS_BASE + (0)) = esp; /* 0x2F005B01: mov dword ptr fs:[0], esp */
   4631     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4633     esp = esp - 8; /* 0x2F005B08: sub esp, 8 */
   4634     _flag_k = FK_CMP;
   4635     PUSH32(esp, ebx); /* 0x2F005B0B: push ebx */
   4636     PUSH32(esp, esi); /* 0x2F005B0C: push esi */
   4637     esi = ecx; /* 0x2F005B0D: mov esi, ecx */
   4638     PUSH32(esp, edi); /* 0x2F005B0F: push edi */
   4639     eax = esi + 0x28; /* 0x2F005B10: lea eax, [esi + 0x28] */
   4640     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4641     edi = 0; /* 0x2F005B13: xor edi, edi */
   4642     _cf = 0;
   4643     _flag_k = FK_TEST;
   4644     PUSH32(esp, eax); /* 0x2F005B15: push eax */
   4645     MEM32(ebp + (-0x14)) = eax; /* 0x2F005B16: mov dword ptr [ebp - 0x14], eax */
   4646     MEM32(ebp + (-0x10)) = edi; /* 0x2F005B19: mov dword ptr [ebp - 0x10], edi */
   4647     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005B1C: call dword ptr [0x2f013014] */
   4648     RECOMP_FLAGS_IN();
   4649     MEM32(ebp + (-0x10)) = edi; /* 0x2F005B22: mov dword ptr [ebp - 0x10], edi */
   4650     /* cmp MEM32(esi + 0x20), edi */ /* 0x2F005B25: cmp dword ptr [esi + 0x20], edi */
   4651     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(edi);
   4652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4653     _flag_k = FK_CMP;
   4654     MEM32(ebp + (-0x4)) = edi; /* 0x2F005B28: mov dword ptr [ebp - 4], edi */
   4655     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005B65; /* 0x2F005B2B: je 0x2f005b65 */
   4656 L_2F005B2D:
   4657     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F005B2D: call dword ptr [0x2f0131b0] */
   4658     RECOMP_FLAGS_IN();
   4659     MEM32(eax) = 0x274Au; /* 0x2F005B33: mov dword ptr [eax], 0x274a */
   4660     eax = MEM32(ebp + (-0x10)); /* 0x2F005B39: mov eax, dword ptr [ebp - 0x10] */
   4661     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   4662     ebx = ebx | 0xFFFFFFFFu; /* 0x2F005B3C: or ebx, 0xffffffff */
   4663     _cf = 0;
   4664     _flag_k = FK_TEST;
   4665     /* cmp eax, ebx */ /* 0x2F005B3F: cmp eax, ebx */
   4666     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4668     _flag_k = FK_CMP;
   4669     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005B50; /* 0x2F005B41: je 0x2f005b50 */
   4670 L_2F005B43:
   4671     eax = MEM32(ebp + (-0x14)); /* 0x2F005B43: mov eax, dword ptr [ebp - 0x14] */
   4672     PUSH32(esp, eax); /* 0x2F005B46: push eax */
   4673     MEM32(ebp + (-0x10)) = ebx; /* 0x2F005B47: mov dword ptr [ebp - 0x10], ebx */
   4674     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005B4A: call dword ptr [0x2f013058] */
   4675     RECOMP_FLAGS_IN();
   4676 L_2F005B50:
   4677     edi = POP32_VAL(esp); /* 0x2F005B50: pop edi */
   4678     esi = POP32_VAL(esp); /* 0x2F005B51: pop esi */
   4679     eax = ebx; /* 0x2F005B52: mov eax, ebx */
   4680     ebx = POP32_VAL(esp); /* 0x2F005B54: pop ebx */
   4681     ecx = MEM32(ebp + (-0xC)); /* 0x2F005B55: mov ecx, dword ptr [ebp - 0xc] */
   4682     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005B58: mov dword ptr fs:[0], ecx */
   4683     esp = ebp; /* 0x2F005B5F: mov esp, ebp */
   4684     ebp = POP32_VAL(esp); /* 0x2F005B61: pop ebp */
   4685     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005B62: ret 8 */
   4686 L_2F005B65:
   4687     eax = MEM32(ebp + 0xC); /* 0x2F005B65: mov eax, dword ptr [ebp + 0xc] */
   4688     edx = MEM32(esi); /* 0x2F005B68: mov edx, dword ptr [esi] */
   4689     PUSH32(esp, eax); /* 0x2F005B6A: push eax */
   4690     ecx = ebp + (-0x14); /* 0x2F005B6B: lea ecx, [ebp - 0x14] */
   4691     PUSH32(esp, ecx); /* 0x2F005B6E: push ecx */
   4692     ecx = esi; /* 0x2F005B6F: mov ecx, esi */
   4693     RECOMP_ICALL(MEM32(edx + 0x90)); /* 0x2F005B71: call dword ptr [edx + 0x90] */
   4694     RECOMP_FLAGS_IN();
   4695     _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu));
   4696     ebx = ebx | 0xFFFFFFFFu; /* 0x2F005B77: or ebx, 0xffffffff */
   4697     _cf = 0;
   4698     _flag_k = FK_TEST;
   4699     /* cmp eax, ebx */ /* 0x2F005B7A: cmp eax, ebx */
   4700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4702     _flag_k = FK_CMP;
   4703     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005BA5; /* 0x2F005B7C: jne 0x2f005ba5 */
   4704 L_2F005B7E:
   4705     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x2F005B7E: cmp dword ptr [ebp - 0x10], ebx */
   4706     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   4707     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4708     _flag_k = FK_CMP;
   4709     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005B90; /* 0x2F005B81: je 0x2f005b90 */
   4710 L_2F005B83:
   4711     edx = MEM32(ebp + (-0x14)); /* 0x2F005B83: mov edx, dword ptr [ebp - 0x14] */
   4712     PUSH32(esp, edx); /* 0x2F005B86: push edx */
   4713     MEM32(ebp + (-0x10)) = ebx; /* 0x2F005B87: mov dword ptr [ebp - 0x10], ebx */
   4714     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005B8A: call dword ptr [0x2f013058] */
   4715     RECOMP_FLAGS_IN();
   4716 L_2F005B90:
   4717     edi = POP32_VAL(esp); /* 0x2F005B90: pop edi */
   4718     esi = POP32_VAL(esp); /* 0x2F005B91: pop esi */
   4719     eax = ebx; /* 0x2F005B92: mov eax, ebx */
   4720     ebx = POP32_VAL(esp); /* 0x2F005B94: pop ebx */
   4721     ecx = MEM32(ebp + (-0xC)); /* 0x2F005B95: mov ecx, dword ptr [ebp - 0xc] */
   4722     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005B98: mov dword ptr fs:[0], ecx */
   4723     esp = ebp; /* 0x2F005B9F: mov esp, ebp */
   4724     ebp = POP32_VAL(esp); /* 0x2F005BA1: pop ebp */
   4725     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005BA2: ret 8 */
   4726 L_2F005BA5:
   4727     ecx = MEM32(ebp + 0x8); /* 0x2F005BA5: mov ecx, dword ptr [ebp + 8] */
   4728     eax = MEM32(esi); /* 0x2F005BA8: mov eax, dword ptr [esi] */
   4729     PUSH32(esp, ecx); /* 0x2F005BAA: push ecx */
   4730     ecx = esi; /* 0x2F005BAB: mov ecx, esi */
   4731     RECOMP_ICALL(MEM32(eax + 0x78)); /* 0x2F005BAD: call dword ptr [eax + 0x78] */
   4732     RECOMP_FLAGS_IN();
   4733     edi = eax; /* 0x2F005BB0: mov edi, eax */
   4734     /* cmp edi, ebx */ /* 0x2F005BB2: cmp edi, ebx */
   4735     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   4736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4737     _flag_k = FK_CMP;
   4738     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005BDD; /* 0x2F005BB4: jne 0x2f005bdd */
   4739 L_2F005BB6:
   4740     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x2F005BB6: cmp dword ptr [ebp - 0x10], ebx */
   4741     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   4742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4743     _flag_k = FK_CMP;
   4744     RECOMP_BACKEDGE();
   4745     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005B90; /* 0x2F005BB9: je 0x2f005b90 */
   4746 L_2F005BBB:
   4747     edx = MEM32(ebp + (-0x14)); /* 0x2F005BBB: mov edx, dword ptr [ebp - 0x14] */
   4748     PUSH32(esp, edx); /* 0x2F005BBE: push edx */
   4749     MEM32(ebp + (-0x10)) = ebx; /* 0x2F005BBF: mov dword ptr [ebp - 0x10], ebx */
   4750     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005BC2: call dword ptr [0x2f013058] */
   4751     RECOMP_FLAGS_IN();
   4752     edi = POP32_VAL(esp); /* 0x2F005BC8: pop edi */
   4753     esi = POP32_VAL(esp); /* 0x2F005BC9: pop esi */
   4754     eax = ebx; /* 0x2F005BCA: mov eax, ebx */
   4755     ebx = POP32_VAL(esp); /* 0x2F005BCC: pop ebx */
   4756     ecx = MEM32(ebp + (-0xC)); /* 0x2F005BCD: mov ecx, dword ptr [ebp - 0xc] */
   4757     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005BD0: mov dword ptr fs:[0], ecx */
   4758     esp = ebp; /* 0x2F005BD7: mov esp, ebp */
   4759     ebp = POP32_VAL(esp); /* 0x2F005BD9: pop ebp */
   4760     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005BDA: ret 8 */
   4761 L_2F005BDD:
   4762     eax = MEM32(esi); /* 0x2F005BDD: mov eax, dword ptr [esi] */
   4763     ecx = esi; /* 0x2F005BDF: mov ecx, esi */
   4764     RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x2F005BE1: call dword ptr [eax + 0x64] */
   4765     RECOMP_FLAGS_IN();
   4766     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x2F005BE4: cmp dword ptr [ebp - 0x10], ebx */
   4767     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   4768     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4769     _flag_k = FK_CMP;
   4770     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005BF6; /* 0x2F005BE7: je 0x2f005bf6 */
   4771 L_2F005BE9:
   4772     ecx = MEM32(ebp + (-0x14)); /* 0x2F005BE9: mov ecx, dword ptr [ebp - 0x14] */
   4773     PUSH32(esp, ecx); /* 0x2F005BEC: push ecx */
   4774     MEM32(ebp + (-0x10)) = ebx; /* 0x2F005BED: mov dword ptr [ebp - 0x10], ebx */
   4775     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005BF0: call dword ptr [0x2f013058] */
   4776     RECOMP_FLAGS_IN();
   4777 L_2F005BF6:
   4778     ecx = MEM32(ebp + (-0xC)); /* 0x2F005BF6: mov ecx, dword ptr [ebp - 0xc] */
   4779     eax = edi; /* 0x2F005BF9: mov eax, edi */
   4780     edi = POP32_VAL(esp); /* 0x2F005BFB: pop edi */
   4781     esi = POP32_VAL(esp); /* 0x2F005BFC: pop esi */
   4782     ebx = POP32_VAL(esp); /* 0x2F005BFD: pop ebx */
   4783     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005BFE: mov dword ptr fs:[0], ecx */
   4784     esp = ebp; /* 0x2F005C05: mov esp, ebp */
   4785     ebp = POP32_VAL(esp); /* 0x2F005C07: pop ebp */
   4786     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005C08: ret 8 */
   4787     RECOMP_REGS_OUT();
   4788 }
   4789 
   4790 void sub_2F005C10(void) {
   4791     int _fpu_cmp = 0;
   4792     uint32_t _cf = 0;
   4793     int _df = 1;
   4794     uint32_t _flag_k = FK_NONE;
   4795     uint32_t _flag_a = 0, _flag_b = 0;
   4796     uint32_t _itail_tgt = 0;
   4797     RECOMP_REGS_LOCALS
   4798     RECOMP_ENTER(0x2F005C10u);
   4799 
   4800 L_2F005C10:
   4801     PUSH32(esp, ebp); /* 0x2F005C10: push ebp */
   4802     ebp = esp; /* 0x2F005C11: mov ebp, esp */
   4803     edx = MEM32(ebp + 0xC); /* 0x2F005C13: mov edx, dword ptr [ebp + 0xc] */
   4804     eax = MEM32(ecx); /* 0x2F005C16: mov eax, dword ptr [ecx] */
   4805     PUSH32(esp, edx); /* 0x2F005C18: push edx */
   4806     edx = MEM32(ebp + 0x8); /* 0x2F005C19: mov edx, dword ptr [ebp + 8] */
   4807     PUSH32(esp, edx); /* 0x2F005C1C: push edx */
   4808     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x2F005C1D: call dword ptr [eax + 0x10] */
   4809     RECOMP_FLAGS_IN();
   4810     ebp = POP32_VAL(esp); /* 0x2F005C20: pop ebp */
   4811     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005C21: ret 8 */
   4812     RECOMP_REGS_OUT();
   4813 }
   4814 
   4815 void sub_2F005C30(void) {
   4816     int _fpu_cmp = 0;
   4817     uint32_t _cf = 0;
   4818     int _df = 1;
   4819     uint32_t _flag_k = FK_NONE;
   4820     uint32_t _flag_a = 0, _flag_b = 0;
   4821     uint32_t _itail_tgt = 0;
   4822     RECOMP_REGS_LOCALS
   4823     RECOMP_ENTER(0x2F005C30u);
   4824 
   4825 L_2F005C30:
   4826     PUSH32(esp, ebp); /* 0x2F005C30: push ebp */
   4827     ebp = esp; /* 0x2F005C31: mov ebp, esp */
   4828     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F005C33: push -1 */
   4829     PUSH32(esp, 0x2F0120E8u); /* 0x2F005C35: push 0x2f0120e8 */
   4830     eax = MEM32(FS_BASE + (0)); /* 0x2F005C3A: mov eax, dword ptr fs:[0] */
   4831     PUSH32(esp, eax); /* 0x2F005C40: push eax */
   4832     MEM32(FS_BASE + (0)) = esp; /* 0x2F005C41: mov dword ptr fs:[0], esp */
   4833     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4835     esp = esp - 8; /* 0x2F005C48: sub esp, 8 */
   4836     _flag_k = FK_CMP;
   4837     PUSH32(esp, esi); /* 0x2F005C4B: push esi */
   4838     esi = ecx; /* 0x2F005C4C: mov esi, ecx */
   4839     PUSH32(esp, edi); /* 0x2F005C4E: push edi */
   4840     eax = esi + 0x28; /* 0x2F005C4F: lea eax, [esi + 0x28] */
   4841     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4842     edi = 0; /* 0x2F005C52: xor edi, edi */
   4843     _cf = 0;
   4844     _flag_k = FK_TEST;
   4845     PUSH32(esp, eax); /* 0x2F005C54: push eax */
   4846     MEM32(ebp + (-0x14)) = eax; /* 0x2F005C55: mov dword ptr [ebp - 0x14], eax */
   4847     MEM32(ebp + (-0x10)) = edi; /* 0x2F005C58: mov dword ptr [ebp - 0x10], edi */
   4848     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005C5B: call dword ptr [0x2f013014] */
   4849     RECOMP_FLAGS_IN();
   4850     MEM32(ebp + (-0x10)) = edi; /* 0x2F005C61: mov dword ptr [ebp - 0x10], edi */
   4851     /* cmp MEM32(esi + 0x20), edi */ /* 0x2F005C64: cmp dword ptr [esi + 0x20], edi */
   4852     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(edi);
   4853     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4854     _flag_k = FK_CMP;
   4855     MEM32(ebp + (-0x4)) = edi; /* 0x2F005C67: mov dword ptr [ebp - 4], edi */
   4856     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005CA3; /* 0x2F005C6A: je 0x2f005ca3 */
   4857 L_2F005C6C:
   4858     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F005C6C: call dword ptr [0x2f0131b0] */
   4859     RECOMP_FLAGS_IN();
   4860     MEM32(eax) = 0x274Au; /* 0x2F005C72: mov dword ptr [eax], 0x274a */
   4861     eax = MEM32(ebp + (-0x10)); /* 0x2F005C78: mov eax, dword ptr [ebp - 0x10] */
   4862     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   4863     edi = edi | 0xFFFFFFFFu; /* 0x2F005C7B: or edi, 0xffffffff */
   4864     _cf = 0;
   4865     _flag_k = FK_TEST;
   4866     /* cmp eax, edi */ /* 0x2F005C7E: cmp eax, edi */
   4867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4869     _flag_k = FK_CMP;
   4870     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005C8F; /* 0x2F005C80: je 0x2f005c8f */
   4871 L_2F005C82:
   4872     eax = MEM32(ebp + (-0x14)); /* 0x2F005C82: mov eax, dword ptr [ebp - 0x14] */
   4873     PUSH32(esp, eax); /* 0x2F005C85: push eax */
   4874     MEM32(ebp + (-0x10)) = edi; /* 0x2F005C86: mov dword ptr [ebp - 0x10], edi */
   4875     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005C89: call dword ptr [0x2f013058] */
   4876     RECOMP_FLAGS_IN();
   4877 L_2F005C8F:
   4878     eax = edi; /* 0x2F005C8F: mov eax, edi */
   4879     edi = POP32_VAL(esp); /* 0x2F005C91: pop edi */
   4880     esi = POP32_VAL(esp); /* 0x2F005C92: pop esi */
   4881     ecx = MEM32(ebp + (-0xC)); /* 0x2F005C93: mov ecx, dword ptr [ebp - 0xc] */
   4882     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005C96: mov dword ptr fs:[0], ecx */
   4883     esp = ebp; /* 0x2F005C9D: mov esp, ebp */
   4884     ebp = POP32_VAL(esp); /* 0x2F005C9F: pop ebp */
   4885     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005CA0: ret 8 */
   4886 L_2F005CA3:
   4887     eax = MEM32(ebp + 0xC); /* 0x2F005CA3: mov eax, dword ptr [ebp + 0xc] */
   4888     edx = MEM32(esi); /* 0x2F005CA6: mov edx, dword ptr [esi] */
   4889     PUSH32(esp, eax); /* 0x2F005CA8: push eax */
   4890     ecx = ebp + (-0x14); /* 0x2F005CA9: lea ecx, [ebp - 0x14] */
   4891     PUSH32(esp, ecx); /* 0x2F005CAC: push ecx */
   4892     ecx = esi; /* 0x2F005CAD: mov ecx, esi */
   4893     RECOMP_ICALL(MEM32(edx + 0x94)); /* 0x2F005CAF: call dword ptr [edx + 0x94] */
   4894     RECOMP_FLAGS_IN();
   4895     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   4896     edi = edi | 0xFFFFFFFFu; /* 0x2F005CB5: or edi, 0xffffffff */
   4897     _cf = 0;
   4898     _flag_k = FK_TEST;
   4899     /* cmp eax, edi */ /* 0x2F005CB8: cmp eax, edi */
   4900     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4902     _flag_k = FK_CMP;
   4903     if (CMP_NE(_flag_a, _flag_b)) goto L_2F005CE2; /* 0x2F005CBA: jne 0x2f005ce2 */
   4904 L_2F005CBC:
   4905     /* cmp MEM32(ebp + (-0x10)), edi */ /* 0x2F005CBC: cmp dword ptr [ebp - 0x10], edi */
   4906     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(edi);
   4907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4908     _flag_k = FK_CMP;
   4909     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005CCE; /* 0x2F005CBF: je 0x2f005cce */
   4910 L_2F005CC1:
   4911     edx = MEM32(ebp + (-0x14)); /* 0x2F005CC1: mov edx, dword ptr [ebp - 0x14] */
   4912     PUSH32(esp, edx); /* 0x2F005CC4: push edx */
   4913     MEM32(ebp + (-0x10)) = edi; /* 0x2F005CC5: mov dword ptr [ebp - 0x10], edi */
   4914     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005CC8: call dword ptr [0x2f013058] */
   4915     RECOMP_FLAGS_IN();
   4916 L_2F005CCE:
   4917     eax = edi; /* 0x2F005CCE: mov eax, edi */
   4918     edi = POP32_VAL(esp); /* 0x2F005CD0: pop edi */
   4919     esi = POP32_VAL(esp); /* 0x2F005CD1: pop esi */
   4920     ecx = MEM32(ebp + (-0xC)); /* 0x2F005CD2: mov ecx, dword ptr [ebp - 0xc] */
   4921     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005CD5: mov dword ptr fs:[0], ecx */
   4922     esp = ebp; /* 0x2F005CDC: mov esp, ebp */
   4923     ebp = POP32_VAL(esp); /* 0x2F005CDE: pop ebp */
   4924     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005CDF: ret 8 */
   4925 L_2F005CE2:
   4926     ecx = MEM32(ebp + 0x8); /* 0x2F005CE2: mov ecx, dword ptr [ebp + 8] */
   4927     eax = MEM32(esi); /* 0x2F005CE5: mov eax, dword ptr [esi] */
   4928     PUSH32(esp, ecx); /* 0x2F005CE7: push ecx */
   4929     ecx = esi; /* 0x2F005CE8: mov ecx, esi */
   4930     RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x2F005CEA: call dword ptr [eax + 0x7c] */
   4931     RECOMP_FLAGS_IN();
   4932     esi = eax; /* 0x2F005CED: mov esi, eax */
   4933     /* cmp MEM32(ebp + (-0x10)), edi */ /* 0x2F005CEF: cmp dword ptr [ebp - 0x10], edi */
   4934     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(edi);
   4935     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4936     _flag_k = FK_CMP;
   4937     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F005D01; /* 0x2F005CF2: je 0x2f005d01 */
   4938 L_2F005CF4:
   4939     edx = MEM32(ebp + (-0x14)); /* 0x2F005CF4: mov edx, dword ptr [ebp - 0x14] */
   4940     PUSH32(esp, edx); /* 0x2F005CF7: push edx */
   4941     MEM32(ebp + (-0x10)) = edi; /* 0x2F005CF8: mov dword ptr [ebp - 0x10], edi */
   4942     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005CFB: call dword ptr [0x2f013058] */
   4943     RECOMP_FLAGS_IN();
   4944 L_2F005D01:
   4945     ecx = MEM32(ebp + (-0xC)); /* 0x2F005D01: mov ecx, dword ptr [ebp - 0xc] */
   4946     edi = POP32_VAL(esp); /* 0x2F005D04: pop edi */
   4947     eax = esi; /* 0x2F005D05: mov eax, esi */
   4948     esi = POP32_VAL(esp); /* 0x2F005D07: pop esi */
   4949     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005D08: mov dword ptr fs:[0], ecx */
   4950     esp = ebp; /* 0x2F005D0F: mov esp, ebp */
   4951     ebp = POP32_VAL(esp); /* 0x2F005D11: pop ebp */
   4952     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F005D12: ret 8 */
   4953     RECOMP_REGS_OUT();
   4954 }
   4955 
   4956 void sub_2F005D20(void) {
   4957     int _fpu_cmp = 0;
   4958     uint32_t _cf = 0;
   4959     int _df = 1;
   4960     uint32_t _flag_k = FK_NONE;
   4961     uint32_t _flag_a = 0, _flag_b = 0;
   4962     uint32_t _itail_tgt = 0;
   4963     RECOMP_REGS_LOCALS
   4964     RECOMP_ENTER(0x2F005D20u);
   4965 
   4966 L_2F005D20:
   4967     PUSH32(esp, ebp); /* 0x2F005D20: push ebp */
   4968     ebp = esp; /* 0x2F005D21: mov ebp, esp */
   4969     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F005D23: push -1 */
   4970     PUSH32(esp, 0x2F012108u); /* 0x2F005D25: push 0x2f012108 */
   4971     eax = MEM32(FS_BASE + (0)); /* 0x2F005D2A: mov eax, dword ptr fs:[0] */
   4972     PUSH32(esp, eax); /* 0x2F005D30: push eax */
   4973     MEM32(FS_BASE + (0)) = esp; /* 0x2F005D31: mov dword ptr fs:[0], esp */
   4974     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4976     esp = esp - 8; /* 0x2F005D38: sub esp, 8 */
   4977     _flag_k = FK_CMP;
   4978     PUSH32(esp, esi); /* 0x2F005D3B: push esi */
   4979     PUSH32(esp, edi); /* 0x2F005D3C: push edi */
   4980     esi = ecx; /* 0x2F005D3D: mov esi, ecx */
   4981     edi = esi + 0x28; /* 0x2F005D3F: lea edi, [esi + 0x28] */
   4982     PUSH32(esp, edi); /* 0x2F005D42: push edi */
   4983     MEM32(ebp + (-0x14)) = edi; /* 0x2F005D43: mov dword ptr [ebp - 0x14], edi */
   4984     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005D46: call dword ptr [0x2f013014] */
   4985     RECOMP_FLAGS_IN();
   4986     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4987     eax = 0; /* 0x2F005D4C: xor eax, eax */
   4988     _cf = 0;
   4989     _flag_k = FK_TEST;
   4990     MEM32(ebp + (-0x10)) = eax; /* 0x2F005D4E: mov dword ptr [ebp - 0x10], eax */
   4991     MEM32(ebp + (-0x4)) = eax; /* 0x2F005D51: mov dword ptr [ebp - 4], eax */
   4992     eax = MEM32(esi); /* 0x2F005D54: mov eax, dword ptr [esi] */
   4993     ecx = esi; /* 0x2F005D56: mov ecx, esi */
   4994     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x2F005D58: call dword ptr [eax + 0x80] */
   4995     RECOMP_FLAGS_IN();
   4996     PUSH32(esp, edi); /* 0x2F005D5E: push edi */
   4997     esi = eax; /* 0x2F005D5F: mov esi, eax */
   4998     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005D61: call dword ptr [0x2f013058] */
   4999     RECOMP_FLAGS_IN();
   5000     ecx = MEM32(ebp + (-0xC)); /* 0x2F005D67: mov ecx, dword ptr [ebp - 0xc] */
   5001     edi = POP32_VAL(esp); /* 0x2F005D6A: pop edi */
   5002     eax = esi; /* 0x2F005D6B: mov eax, esi */
   5003     esi = POP32_VAL(esp); /* 0x2F005D6D: pop esi */
   5004     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005D6E: mov dword ptr fs:[0], ecx */
   5005     esp = ebp; /* 0x2F005D75: mov esp, ebp */
   5006     ebp = POP32_VAL(esp); /* 0x2F005D77: pop ebp */
   5007     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005D78: ret  */
   5008     RECOMP_REGS_OUT();
   5009 }
   5010 
   5011 void sub_2F005D80(void) {
   5012     int _fpu_cmp = 0;
   5013     uint32_t _cf = 0;
   5014     int _df = 1;
   5015     uint32_t _flag_k = FK_NONE;
   5016     uint32_t _flag_a = 0, _flag_b = 0;
   5017     uint32_t _itail_tgt = 0;
   5018     RECOMP_REGS_LOCALS
   5019     RECOMP_ENTER(0x2F005D80u);
   5020 
   5021 L_2F005D80:
   5022     PUSH32(esp, ebp); /* 0x2F005D80: push ebp */
   5023     ebp = esp; /* 0x2F005D81: mov ebp, esp */
   5024     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F005D83: push -1 */
   5025     PUSH32(esp, 0x2F012128u); /* 0x2F005D85: push 0x2f012128 */
   5026     eax = MEM32(FS_BASE + (0)); /* 0x2F005D8A: mov eax, dword ptr fs:[0] */
   5027     PUSH32(esp, eax); /* 0x2F005D90: push eax */
   5028     MEM32(FS_BASE + (0)) = esp; /* 0x2F005D91: mov dword ptr fs:[0], esp */
   5029     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5031     esp = esp - 8; /* 0x2F005D98: sub esp, 8 */
   5032     _flag_k = FK_CMP;
   5033     PUSH32(esp, esi); /* 0x2F005D9B: push esi */
   5034     PUSH32(esp, edi); /* 0x2F005D9C: push edi */
   5035     esi = ecx; /* 0x2F005D9D: mov esi, ecx */
   5036     edi = esi + 0x28; /* 0x2F005D9F: lea edi, [esi + 0x28] */
   5037     PUSH32(esp, edi); /* 0x2F005DA2: push edi */
   5038     MEM32(ebp + (-0x14)) = edi; /* 0x2F005DA3: mov dword ptr [ebp - 0x14], edi */
   5039     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005DA6: call dword ptr [0x2f013014] */
   5040     RECOMP_FLAGS_IN();
   5041     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5042     eax = 0; /* 0x2F005DAC: xor eax, eax */
   5043     _cf = 0;
   5044     _flag_k = FK_TEST;
   5045     MEM32(ebp + (-0x10)) = eax; /* 0x2F005DAE: mov dword ptr [ebp - 0x10], eax */
   5046     MEM32(ebp + (-0x4)) = eax; /* 0x2F005DB1: mov dword ptr [ebp - 4], eax */
   5047     eax = MEM32(esi); /* 0x2F005DB4: mov eax, dword ptr [esi] */
   5048     ecx = esi; /* 0x2F005DB6: mov ecx, esi */
   5049     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x2F005DB8: call dword ptr [eax + 0x84] */
   5050     RECOMP_FLAGS_IN();
   5051     PUSH32(esp, edi); /* 0x2F005DBE: push edi */
   5052     esi = eax; /* 0x2F005DBF: mov esi, eax */
   5053     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005DC1: call dword ptr [0x2f013058] */
   5054     RECOMP_FLAGS_IN();
   5055     ecx = MEM32(ebp + (-0xC)); /* 0x2F005DC7: mov ecx, dword ptr [ebp - 0xc] */
   5056     edi = POP32_VAL(esp); /* 0x2F005DCA: pop edi */
   5057     eax = esi; /* 0x2F005DCB: mov eax, esi */
   5058     esi = POP32_VAL(esp); /* 0x2F005DCD: pop esi */
   5059     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005DCE: mov dword ptr fs:[0], ecx */
   5060     esp = ebp; /* 0x2F005DD5: mov esp, ebp */
   5061     ebp = POP32_VAL(esp); /* 0x2F005DD7: pop ebp */
   5062     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005DD8: ret  */
   5063     RECOMP_REGS_OUT();
   5064 }
   5065 
   5066 void sub_2F005DE0(void) {
   5067     int _fpu_cmp = 0;
   5068     uint32_t _cf = 0;
   5069     int _df = 1;
   5070     uint32_t _flag_k = FK_NONE;
   5071     uint32_t _flag_a = 0, _flag_b = 0;
   5072     uint32_t _itail_tgt = 0;
   5073     RECOMP_REGS_LOCALS
   5074     RECOMP_ENTER(0x2F005DE0u);
   5075 
   5076 L_2F005DE0:
   5077     PUSH32(esp, ebp); /* 0x2F005DE0: push ebp */
   5078     ebp = esp; /* 0x2F005DE1: mov ebp, esp */
   5079     PUSH32(esp, esi); /* 0x2F005DE3: push esi */
   5080     PUSH32(esp, edi); /* 0x2F005DE4: push edi */
   5081     esi = ecx; /* 0x2F005DE5: mov esi, ecx */
   5082     edi = esi + 0x28; /* 0x2F005DE7: lea edi, [esi + 0x28] */
   5083     PUSH32(esp, edi); /* 0x2F005DEA: push edi */
   5084     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005DEB: call dword ptr [0x2f013014] */
   5085     RECOMP_FLAGS_IN();
   5086     eax = MEM32(ebp + 0x8); /* 0x2F005DF1: mov eax, dword ptr [ebp + 8] */
   5087     PUSH32(esp, edi); /* 0x2F005DF4: push edi */
   5088     MEM32(esi + 0x14) = eax; /* 0x2F005DF5: mov dword ptr [esi + 0x14], eax */
   5089     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005DF8: call dword ptr [0x2f013058] */
   5090     RECOMP_FLAGS_IN();
   5091     edi = POP32_VAL(esp); /* 0x2F005DFE: pop edi */
   5092     esi = POP32_VAL(esp); /* 0x2F005DFF: pop esi */
   5093     ebp = POP32_VAL(esp); /* 0x2F005E00: pop ebp */
   5094     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F005E01: ret 4 */
   5095     RECOMP_REGS_OUT();
   5096 }
   5097 
   5098 void sub_2F005E10(void) {
   5099     int _fpu_cmp = 0;
   5100     uint32_t _cf = 0;
   5101     int _df = 1;
   5102     uint32_t _flag_k = FK_NONE;
   5103     uint32_t _flag_a = 0, _flag_b = 0;
   5104     uint32_t _itail_tgt = 0;
   5105     RECOMP_REGS_LOCALS
   5106     RECOMP_ENTER(0x2F005E10u);
   5107 
   5108 L_2F005E10:
   5109     PUSH32(esp, esi); /* 0x2F005E10: push esi */
   5110     PUSH32(esp, edi); /* 0x2F005E11: push edi */
   5111     esi = ecx; /* 0x2F005E12: mov esi, ecx */
   5112     edi = esi + 0x28; /* 0x2F005E14: lea edi, [esi + 0x28] */
   5113     PUSH32(esp, edi); /* 0x2F005E17: push edi */
   5114     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005E18: call dword ptr [0x2f013014] */
   5115     RECOMP_FLAGS_IN();
   5116     esi = MEM32(esi + 0x14); /* 0x2F005E1E: mov esi, dword ptr [esi + 0x14] */
   5117     PUSH32(esp, edi); /* 0x2F005E21: push edi */
   5118     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005E22: call dword ptr [0x2f013058] */
   5119     RECOMP_FLAGS_IN();
   5120     edi = POP32_VAL(esp); /* 0x2F005E28: pop edi */
   5121     eax = esi; /* 0x2F005E29: mov eax, esi */
   5122     esi = POP32_VAL(esp); /* 0x2F005E2B: pop esi */
   5123     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005E2C: ret  */
   5124     RECOMP_REGS_OUT();
   5125 }
   5126 
   5127 void sub_2F005E30(void) {
   5128     int _fpu_cmp = 0;
   5129     uint32_t _cf = 0;
   5130     int _df = 1;
   5131     uint32_t _flag_k = FK_NONE;
   5132     uint32_t _flag_a = 0, _flag_b = 0;
   5133     uint32_t _itail_tgt = 0;
   5134     RECOMP_REGS_LOCALS
   5135     RECOMP_ENTER(0x2F005E30u);
   5136 
   5137 L_2F005E30:
   5138     PUSH32(esp, ebp); /* 0x2F005E30: push ebp */
   5139     ebp = esp; /* 0x2F005E31: mov ebp, esp */
   5140     PUSH32(esp, esi); /* 0x2F005E33: push esi */
   5141     PUSH32(esp, edi); /* 0x2F005E34: push edi */
   5142     esi = ecx; /* 0x2F005E35: mov esi, ecx */
   5143     edi = esi + 0x28; /* 0x2F005E37: lea edi, [esi + 0x28] */
   5144     PUSH32(esp, edi); /* 0x2F005E3A: push edi */
   5145     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005E3B: call dword ptr [0x2f013014] */
   5146     RECOMP_FLAGS_IN();
   5147     eax = MEM32(ebp + 0x8); /* 0x2F005E41: mov eax, dword ptr [ebp + 8] */
   5148     PUSH32(esp, edi); /* 0x2F005E44: push edi */
   5149     MEM32(esi + 0x18) = eax; /* 0x2F005E45: mov dword ptr [esi + 0x18], eax */
   5150     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005E48: call dword ptr [0x2f013058] */
   5151     RECOMP_FLAGS_IN();
   5152     edi = POP32_VAL(esp); /* 0x2F005E4E: pop edi */
   5153     esi = POP32_VAL(esp); /* 0x2F005E4F: pop esi */
   5154     ebp = POP32_VAL(esp); /* 0x2F005E50: pop ebp */
   5155     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F005E51: ret 4 */
   5156     RECOMP_REGS_OUT();
   5157 }
   5158 
   5159 void sub_2F005E60(void) {
   5160     int _fpu_cmp = 0;
   5161     uint32_t _cf = 0;
   5162     int _df = 1;
   5163     uint32_t _flag_k = FK_NONE;
   5164     uint32_t _flag_a = 0, _flag_b = 0;
   5165     uint32_t _itail_tgt = 0;
   5166     RECOMP_REGS_LOCALS
   5167     RECOMP_ENTER(0x2F005E60u);
   5168 
   5169 L_2F005E60:
   5170     PUSH32(esp, esi); /* 0x2F005E60: push esi */
   5171     PUSH32(esp, edi); /* 0x2F005E61: push edi */
   5172     esi = ecx; /* 0x2F005E62: mov esi, ecx */
   5173     edi = esi + 0x28; /* 0x2F005E64: lea edi, [esi + 0x28] */
   5174     PUSH32(esp, edi); /* 0x2F005E67: push edi */
   5175     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005E68: call dword ptr [0x2f013014] */
   5176     RECOMP_FLAGS_IN();
   5177     esi = MEM32(esi + 0x18); /* 0x2F005E6E: mov esi, dword ptr [esi + 0x18] */
   5178     PUSH32(esp, edi); /* 0x2F005E71: push edi */
   5179     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005E72: call dword ptr [0x2f013058] */
   5180     RECOMP_FLAGS_IN();
   5181     edi = POP32_VAL(esp); /* 0x2F005E78: pop edi */
   5182     eax = esi; /* 0x2F005E79: mov eax, esi */
   5183     esi = POP32_VAL(esp); /* 0x2F005E7B: pop esi */
   5184     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005E7C: ret  */
   5185     RECOMP_REGS_OUT();
   5186 }
   5187 
   5188 void sub_2F005E80(void) {
   5189     int _fpu_cmp = 0;
   5190     uint32_t _cf = 0;
   5191     int _df = 1;
   5192     uint32_t _flag_k = FK_NONE;
   5193     uint32_t _flag_a = 0, _flag_b = 0;
   5194     uint32_t _itail_tgt = 0;
   5195     RECOMP_REGS_LOCALS
   5196     RECOMP_ENTER(0x2F005E80u);
   5197 
   5198 L_2F005E80:
   5199     PUSH32(esp, esi); /* 0x2F005E80: push esi */
   5200     PUSH32(esp, edi); /* 0x2F005E81: push edi */
   5201     esi = ecx; /* 0x2F005E82: mov esi, ecx */
   5202     edi = esi + 0x28; /* 0x2F005E84: lea edi, [esi + 0x28] */
   5203     PUSH32(esp, edi); /* 0x2F005E87: push edi */
   5204     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005E88: call dword ptr [0x2f013014] */
   5205     RECOMP_FLAGS_IN();
   5206     esi = MEM32(esi + 0x1C); /* 0x2F005E8E: mov esi, dword ptr [esi + 0x1c] */
   5207     PUSH32(esp, edi); /* 0x2F005E91: push edi */
   5208     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005E92: call dword ptr [0x2f013058] */
   5209     RECOMP_FLAGS_IN();
   5210     edi = POP32_VAL(esp); /* 0x2F005E98: pop edi */
   5211     eax = esi; /* 0x2F005E99: mov eax, esi */
   5212     esi = POP32_VAL(esp); /* 0x2F005E9B: pop esi */
   5213     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005E9C: ret  */
   5214     RECOMP_REGS_OUT();
   5215 }
   5216 
   5217 void sub_2F005EA0(void) {
   5218     int _fpu_cmp = 0;
   5219     uint32_t _cf = 0;
   5220     int _df = 1;
   5221     uint32_t _flag_k = FK_NONE;
   5222     uint32_t _flag_a = 0, _flag_b = 0;
   5223     uint32_t _itail_tgt = 0;
   5224     RECOMP_REGS_LOCALS
   5225     RECOMP_ENTER(0x2F005EA0u);
   5226 
   5227 L_2F005EA0:
   5228     PUSH32(esp, ebp); /* 0x2F005EA0: push ebp */
   5229     ebp = esp; /* 0x2F005EA1: mov ebp, esp */
   5230     PUSH32(esp, esi); /* 0x2F005EA3: push esi */
   5231     PUSH32(esp, edi); /* 0x2F005EA4: push edi */
   5232     esi = ecx; /* 0x2F005EA5: mov esi, ecx */
   5233     edi = esi + 0x28; /* 0x2F005EA7: lea edi, [esi + 0x28] */
   5234     PUSH32(esp, edi); /* 0x2F005EAA: push edi */
   5235     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005EAB: call dword ptr [0x2f013014] */
   5236     RECOMP_FLAGS_IN();
   5237     eax = MEM32(ebp + 0x8); /* 0x2F005EB1: mov eax, dword ptr [ebp + 8] */
   5238     PUSH32(esp, edi); /* 0x2F005EB4: push edi */
   5239     MEM32(esi + 0x10) = eax; /* 0x2F005EB5: mov dword ptr [esi + 0x10], eax */
   5240     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005EB8: call dword ptr [0x2f013058] */
   5241     RECOMP_FLAGS_IN();
   5242     edi = POP32_VAL(esp); /* 0x2F005EBE: pop edi */
   5243     esi = POP32_VAL(esp); /* 0x2F005EBF: pop esi */
   5244     ebp = POP32_VAL(esp); /* 0x2F005EC0: pop ebp */
   5245     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F005EC1: ret 4 */
   5246     RECOMP_REGS_OUT();
   5247 }
   5248 
   5249 void sub_2F005ED0(void) {
   5250     int _fpu_cmp = 0;
   5251     uint32_t _cf = 0;
   5252     int _df = 1;
   5253     uint32_t _flag_k = FK_NONE;
   5254     uint32_t _flag_a = 0, _flag_b = 0;
   5255     uint32_t _itail_tgt = 0;
   5256     RECOMP_REGS_LOCALS
   5257     RECOMP_ENTER(0x2F005ED0u);
   5258 
   5259 L_2F005ED0:
   5260     PUSH32(esp, esi); /* 0x2F005ED0: push esi */
   5261     PUSH32(esp, edi); /* 0x2F005ED1: push edi */
   5262     esi = ecx; /* 0x2F005ED2: mov esi, ecx */
   5263     edi = esi + 0x28; /* 0x2F005ED4: lea edi, [esi + 0x28] */
   5264     PUSH32(esp, edi); /* 0x2F005ED7: push edi */
   5265     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005ED8: call dword ptr [0x2f013014] */
   5266     RECOMP_FLAGS_IN();
   5267     esi = MEM32(esi + 0x10); /* 0x2F005EDE: mov esi, dword ptr [esi + 0x10] */
   5268     PUSH32(esp, edi); /* 0x2F005EE1: push edi */
   5269     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005EE2: call dword ptr [0x2f013058] */
   5270     RECOMP_FLAGS_IN();
   5271     edi = POP32_VAL(esp); /* 0x2F005EE8: pop edi */
   5272     eax = esi; /* 0x2F005EE9: mov eax, esi */
   5273     esi = POP32_VAL(esp); /* 0x2F005EEB: pop esi */
   5274     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005EEC: ret  */
   5275     RECOMP_REGS_OUT();
   5276 }
   5277 
   5278 void sub_2F005EF0(void) {
   5279     int _fpu_cmp = 0;
   5280     uint32_t _cf = 0;
   5281     int _df = 1;
   5282     uint32_t _flag_k = FK_NONE;
   5283     uint32_t _flag_a = 0, _flag_b = 0;
   5284     uint32_t _itail_tgt = 0;
   5285     RECOMP_REGS_LOCALS
   5286     RECOMP_ENTER(0x2F005EF0u);
   5287 
   5288 L_2F005EF0:
   5289     PUSH32(esp, ebp); /* 0x2F005EF0: push ebp */
   5290     ebp = esp; /* 0x2F005EF1: mov ebp, esp */
   5291     PUSH32(esp, esi); /* 0x2F005EF3: push esi */
   5292     PUSH32(esp, edi); /* 0x2F005EF4: push edi */
   5293     esi = ecx; /* 0x2F005EF5: mov esi, ecx */
   5294     edi = esi + 0x28; /* 0x2F005EF7: lea edi, [esi + 0x28] */
   5295     PUSH32(esp, edi); /* 0x2F005EFA: push edi */
   5296     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005EFB: call dword ptr [0x2f013014] */
   5297     RECOMP_FLAGS_IN();
   5298     eax = MEM32(ebp + 0x8); /* 0x2F005F01: mov eax, dword ptr [ebp + 8] */
   5299     PUSH32(esp, edi); /* 0x2F005F04: push edi */
   5300     MEM32(esi + 0xC) = eax; /* 0x2F005F05: mov dword ptr [esi + 0xc], eax */
   5301     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005F08: call dword ptr [0x2f013058] */
   5302     RECOMP_FLAGS_IN();
   5303     edi = POP32_VAL(esp); /* 0x2F005F0E: pop edi */
   5304     esi = POP32_VAL(esp); /* 0x2F005F0F: pop esi */
   5305     ebp = POP32_VAL(esp); /* 0x2F005F10: pop ebp */
   5306     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F005F11: ret 4 */
   5307     RECOMP_REGS_OUT();
   5308 }
   5309 
   5310 void sub_2F005F20(void) {
   5311     int _fpu_cmp = 0;
   5312     uint32_t _cf = 0;
   5313     int _df = 1;
   5314     uint32_t _flag_k = FK_NONE;
   5315     uint32_t _flag_a = 0, _flag_b = 0;
   5316     uint32_t _itail_tgt = 0;
   5317     RECOMP_REGS_LOCALS
   5318     RECOMP_ENTER(0x2F005F20u);
   5319 
   5320 L_2F005F20:
   5321     PUSH32(esp, esi); /* 0x2F005F20: push esi */
   5322     PUSH32(esp, edi); /* 0x2F005F21: push edi */
   5323     esi = ecx; /* 0x2F005F22: mov esi, ecx */
   5324     edi = esi + 0x28; /* 0x2F005F24: lea edi, [esi + 0x28] */
   5325     PUSH32(esp, edi); /* 0x2F005F27: push edi */
   5326     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005F28: call dword ptr [0x2f013014] */
   5327     RECOMP_FLAGS_IN();
   5328     esi = MEM32(esi + 0xC); /* 0x2F005F2E: mov esi, dword ptr [esi + 0xc] */
   5329     PUSH32(esp, edi); /* 0x2F005F31: push edi */
   5330     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005F32: call dword ptr [0x2f013058] */
   5331     RECOMP_FLAGS_IN();
   5332     edi = POP32_VAL(esp); /* 0x2F005F38: pop edi */
   5333     eax = esi; /* 0x2F005F39: mov eax, esi */
   5334     esi = POP32_VAL(esp); /* 0x2F005F3B: pop esi */
   5335     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005F3C: ret  */
   5336     RECOMP_REGS_OUT();
   5337 }
   5338 
   5339 void sub_2F005F40(void) {
   5340     int _fpu_cmp = 0;
   5341     uint32_t _cf = 0;
   5342     int _df = 1;
   5343     uint32_t _flag_k = FK_NONE;
   5344     uint32_t _flag_a = 0, _flag_b = 0;
   5345     uint32_t _itail_tgt = 0;
   5346     RECOMP_REGS_LOCALS
   5347     RECOMP_ENTER(0x2F005F40u);
   5348 
   5349 L_2F005F40:
   5350     PUSH32(esp, ebp); /* 0x2F005F40: push ebp */
   5351     ebp = esp; /* 0x2F005F41: mov ebp, esp */
   5352     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F005F43: push -1 */
   5353     PUSH32(esp, 0x2F012148u); /* 0x2F005F45: push 0x2f012148 */
   5354     eax = MEM32(FS_BASE + (0)); /* 0x2F005F4A: mov eax, dword ptr fs:[0] */
   5355     PUSH32(esp, eax); /* 0x2F005F50: push eax */
   5356     MEM32(FS_BASE + (0)) = esp; /* 0x2F005F51: mov dword ptr fs:[0], esp */
   5357     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5359     esp = esp - 8; /* 0x2F005F58: sub esp, 8 */
   5360     _flag_k = FK_CMP;
   5361     PUSH32(esp, esi); /* 0x2F005F5B: push esi */
   5362     PUSH32(esp, edi); /* 0x2F005F5C: push edi */
   5363     esi = ecx; /* 0x2F005F5D: mov esi, ecx */
   5364     edi = esi + 0x28; /* 0x2F005F5F: lea edi, [esi + 0x28] */
   5365     PUSH32(esp, edi); /* 0x2F005F62: push edi */
   5366     MEM32(ebp + (-0x14)) = edi; /* 0x2F005F63: mov dword ptr [ebp - 0x14], edi */
   5367     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005F66: call dword ptr [0x2f013014] */
   5368     RECOMP_FLAGS_IN();
   5369     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5370     eax = 0; /* 0x2F005F6C: xor eax, eax */
   5371     _cf = 0;
   5372     _flag_k = FK_TEST;
   5373     MEM32(ebp + (-0x10)) = eax; /* 0x2F005F6E: mov dword ptr [ebp - 0x10], eax */
   5374     MEM32(ebp + (-0x4)) = eax; /* 0x2F005F71: mov dword ptr [ebp - 4], eax */
   5375     eax = MEM32(esi); /* 0x2F005F74: mov eax, dword ptr [esi] */
   5376     ecx = esi; /* 0x2F005F76: mov ecx, esi */
   5377     RECOMP_ICALL(MEM32(eax + 0x88)); /* 0x2F005F78: call dword ptr [eax + 0x88] */
   5378     RECOMP_FLAGS_IN();
   5379     PUSH32(esp, edi); /* 0x2F005F7E: push edi */
   5380     esi = eax; /* 0x2F005F7F: mov esi, eax */
   5381     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005F81: call dword ptr [0x2f013058] */
   5382     RECOMP_FLAGS_IN();
   5383     ecx = MEM32(ebp + (-0xC)); /* 0x2F005F87: mov ecx, dword ptr [ebp - 0xc] */
   5384     edi = POP32_VAL(esp); /* 0x2F005F8A: pop edi */
   5385     eax = esi; /* 0x2F005F8B: mov eax, esi */
   5386     esi = POP32_VAL(esp); /* 0x2F005F8D: pop esi */
   5387     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005F8E: mov dword ptr fs:[0], ecx */
   5388     esp = ebp; /* 0x2F005F95: mov esp, ebp */
   5389     ebp = POP32_VAL(esp); /* 0x2F005F97: pop ebp */
   5390     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005F98: ret  */
   5391     RECOMP_REGS_OUT();
   5392 }
   5393 
   5394 void sub_2F005FA0(void) {
   5395     int _fpu_cmp = 0;
   5396     uint32_t _cf = 0;
   5397     int _df = 1;
   5398     uint32_t _flag_k = FK_NONE;
   5399     uint32_t _flag_a = 0, _flag_b = 0;
   5400     uint32_t _itail_tgt = 0;
   5401     RECOMP_REGS_LOCALS
   5402     RECOMP_ENTER(0x2F005FA0u);
   5403 
   5404 L_2F005FA0:
   5405     PUSH32(esp, ebp); /* 0x2F005FA0: push ebp */
   5406     ebp = esp; /* 0x2F005FA1: mov ebp, esp */
   5407     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F005FA3: push -1 */
   5408     PUSH32(esp, 0x2F012168u); /* 0x2F005FA5: push 0x2f012168 */
   5409     eax = MEM32(FS_BASE + (0)); /* 0x2F005FAA: mov eax, dword ptr fs:[0] */
   5410     PUSH32(esp, eax); /* 0x2F005FB0: push eax */
   5411     MEM32(FS_BASE + (0)) = esp; /* 0x2F005FB1: mov dword ptr fs:[0], esp */
   5412     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5414     esp = esp - 8; /* 0x2F005FB8: sub esp, 8 */
   5415     _flag_k = FK_CMP;
   5416     PUSH32(esp, esi); /* 0x2F005FBB: push esi */
   5417     PUSH32(esp, edi); /* 0x2F005FBC: push edi */
   5418     esi = ecx; /* 0x2F005FBD: mov esi, ecx */
   5419     edi = esi + 0x28; /* 0x2F005FBF: lea edi, [esi + 0x28] */
   5420     PUSH32(esp, edi); /* 0x2F005FC2: push edi */
   5421     MEM32(ebp + (-0x14)) = edi; /* 0x2F005FC3: mov dword ptr [ebp - 0x14], edi */
   5422     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F005FC6: call dword ptr [0x2f013014] */
   5423     RECOMP_FLAGS_IN();
   5424     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5425     eax = 0; /* 0x2F005FCC: xor eax, eax */
   5426     _cf = 0;
   5427     _flag_k = FK_TEST;
   5428     MEM32(ebp + (-0x10)) = eax; /* 0x2F005FCE: mov dword ptr [ebp - 0x10], eax */
   5429     MEM32(ebp + (-0x4)) = eax; /* 0x2F005FD1: mov dword ptr [ebp - 4], eax */
   5430     eax = MEM32(esi); /* 0x2F005FD4: mov eax, dword ptr [esi] */
   5431     ecx = esi; /* 0x2F005FD6: mov ecx, esi */
   5432     RECOMP_ICALL(MEM32(eax + 0x8C)); /* 0x2F005FD8: call dword ptr [eax + 0x8c] */
   5433     RECOMP_FLAGS_IN();
   5434     PUSH32(esp, edi); /* 0x2F005FDE: push edi */
   5435     esi = eax; /* 0x2F005FDF: mov esi, eax */
   5436     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F005FE1: call dword ptr [0x2f013058] */
   5437     RECOMP_FLAGS_IN();
   5438     ecx = MEM32(ebp + (-0xC)); /* 0x2F005FE7: mov ecx, dword ptr [ebp - 0xc] */
   5439     edi = POP32_VAL(esp); /* 0x2F005FEA: pop edi */
   5440     eax = esi; /* 0x2F005FEB: mov eax, esi */
   5441     esi = POP32_VAL(esp); /* 0x2F005FED: pop esi */
   5442     MEM32(FS_BASE + (0)) = ecx; /* 0x2F005FEE: mov dword ptr fs:[0], ecx */
   5443     esp = ebp; /* 0x2F005FF5: mov esp, ebp */
   5444     ebp = POP32_VAL(esp); /* 0x2F005FF7: pop ebp */
   5445     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F005FF8: ret  */
   5446     RECOMP_REGS_OUT();
   5447 }
   5448 
   5449 void sub_2F006000(void) {
   5450     int _fpu_cmp = 0;
   5451     uint32_t _cf = 0;
   5452     int _df = 1;
   5453     uint32_t _flag_k = FK_NONE;
   5454     uint32_t _flag_a = 0, _flag_b = 0;
   5455     uint32_t _itail_tgt = 0;
   5456     RECOMP_REGS_LOCALS
   5457     RECOMP_ENTER(0x2F006000u);
   5458 
   5459 L_2F006000:
   5460     eax = MEM32(ecx + 0x20); /* 0x2F006000: mov eax, dword ptr [ecx + 0x20] */
   5461     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006003: ret  */
   5462     RECOMP_REGS_OUT();
   5463 }
   5464 
   5465 void sub_2F006010(void) {
   5466     int _fpu_cmp = 0;
   5467     uint32_t _cf = 0;
   5468     int _df = 1;
   5469     uint32_t _flag_k = FK_NONE;
   5470     uint32_t _flag_a = 0, _flag_b = 0;
   5471     uint32_t _itail_tgt = 0;
   5472     RECOMP_REGS_LOCALS
   5473     RECOMP_ENTER(0x2F006010u);
   5474 
   5475 L_2F006010:
   5476     ecx = MEM32(ecx + 0x24); /* 0x2F006010: mov ecx, dword ptr [ecx + 0x24] */
   5477 L_2F006013:
   5478     /* test ecx, ecx */ /* 0x2F006013: test ecx, ecx */
   5479     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5480     _cf = 0;
   5481     _flag_k = FK_TEST;
   5482 L_2F006015:
   5483     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2F00601A; /* 0x2F006015: jne 0x2f00601a */
   5484 L_2F006017:
   5485     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5486     eax = 0; /* 0x2F006017: xor eax, eax */
   5487     _cf = 0;
   5488     _flag_k = FK_TEST;
   5489 L_2F006019:
   5490     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006019: ret  */
   5491 L_2F00601A:
   5492     eax = MEM32(ecx); /* 0x2F00601A: mov eax, dword ptr [ecx] */
   5493 L_2F00601C:
   5494     { _itail_tgt = (uint32_t)(MEM32(eax + 0x8)); goto _ljump; }
   5495     { RECOMP_REGS_OUT(); return; } /* end of function */
   5496   _ljump:
   5497     switch (_itail_tgt) {
   5498       case 0x2F006010u: goto L_2F006010;
   5499       case 0x2F006013u: goto L_2F006013;
   5500       case 0x2F006015u: goto L_2F006015;
   5501       case 0x2F006017u: goto L_2F006017;
   5502       case 0x2F006019u: goto L_2F006019;
   5503       case 0x2F00601Au: goto L_2F00601A;
   5504       case 0x2F00601Cu: goto L_2F00601C;
   5505       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5506     }
   5507     RECOMP_REGS_OUT();
   5508 }
   5509 
   5510 void sub_2F006020(void) {
   5511     int _fpu_cmp = 0;
   5512     uint32_t _cf = 0;
   5513     int _df = 1;
   5514     uint32_t _flag_k = FK_NONE;
   5515     uint32_t _flag_a = 0, _flag_b = 0;
   5516     uint32_t _itail_tgt = 0;
   5517     RECOMP_REGS_LOCALS
   5518     RECOMP_ENTER(0x2F006020u);
   5519 
   5520 L_2F006020:
   5521     PUSH32(esp, ebp); /* 0x2F006020: push ebp */
   5522     ebp = esp; /* 0x2F006021: mov ebp, esp */
   5523     eax = MEM32(ebp + 0x8); /* 0x2F006023: mov eax, dword ptr [ebp + 8] */
   5524     MEM32(ecx + 0x24) = eax; /* 0x2F006026: mov dword ptr [ecx + 0x24], eax */
   5525     ebp = POP32_VAL(esp); /* 0x2F006029: pop ebp */
   5526     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F00602A: ret 4 */
   5527     RECOMP_REGS_OUT();
   5528 }
   5529 
   5530 void sub_2F006030(void) {
   5531     int _fpu_cmp = 0;
   5532     uint32_t _cf = 0;
   5533     int _df = 1;
   5534     uint32_t _flag_k = FK_NONE;
   5535     uint32_t _flag_a = 0, _flag_b = 0;
   5536     uint32_t _itail_tgt = 0;
   5537     RECOMP_REGS_LOCALS
   5538     RECOMP_ENTER(0x2F006030u);
   5539 
   5540 L_2F006030:
   5541     eax = MEM32(ecx + 0x24); /* 0x2F006030: mov eax, dword ptr [ecx + 0x24] */
   5542     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006033: ret  */
   5543     RECOMP_REGS_OUT();
   5544 }
   5545 
   5546 void sub_2F006040(void) {
   5547     int _fpu_cmp = 0;
   5548     uint32_t _cf = 0;
   5549     int _df = 1;
   5550     uint32_t _flag_k = FK_NONE;
   5551     uint32_t _flag_a = 0, _flag_b = 0;
   5552     uint32_t _itail_tgt = 0;
   5553     RECOMP_REGS_LOCALS
   5554     RECOMP_ENTER(0x2F006040u);
   5555 
   5556 L_2F006040:
   5557     PUSH32(esp, ebp); /* 0x2F006040: push ebp */
   5558     ebp = esp; /* 0x2F006041: mov ebp, esp */
   5559     PUSH32(esp, ecx); /* 0x2F006043: push ecx */
   5560     PUSH32(esp, ebx); /* 0x2F006044: push ebx */
   5561     PUSH32(esp, esi); /* 0x2F006045: push esi */
   5562     PUSH32(esp, edi); /* 0x2F006046: push edi */
   5563     esi = ecx; /* 0x2F006047: mov esi, ecx */
   5564     RECOMP_ICALL(MEM32(0x2F013020)); /* 0x2F006049: call dword ptr [0x2f013020] */
   5565     RECOMP_FLAGS_IN();
   5566     edi = eax; /* 0x2F00604F: mov edi, eax */
   5567     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F006051: call dword ptr [0x2f0131b0] */
   5568     RECOMP_FLAGS_IN();
   5569     eax = MEM32(eax); /* 0x2F006057: mov eax, dword ptr [eax] */
   5570     /* test eax, eax */ /* 0x2F006059: test eax, eax */
   5571     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5572     _cf = 0;
   5573     _flag_k = FK_TEST;
   5574     MEM32(ebp + (-0x4)) = edi; /* 0x2F00605B: mov dword ptr [ebp - 4], edi */
   5575     if (TEST_Z(_flag_a, _flag_b)) goto L_2F006063; /* 0x2F00605E: je 0x2f006063 */
   5576 L_2F006060:
   5577     MEM32(ebp + (-0x4)) = eax; /* 0x2F006060: mov dword ptr [ebp - 4], eax */
   5578 L_2F006063:
   5579     ebx = MEM32(0x2F01337C); /* 0x2F006063: mov ebx, dword ptr [0x2f01337c] */
   5580     RECOMP_ICALL(ebx); /* 0x2F006069: call ebx */
   5581     RECOMP_FLAGS_IN();
   5582     edi = eax; /* 0x2F00606B: mov edi, eax */
   5583     ecx = edi; /* 0x2F00606D: mov ecx, edi */
   5584     RECOMP_ICALL(MEM32(0x2F013380)); /* 0x2F00606F: call dword ptr [0x2f013380] */
   5585     RECOMP_FLAGS_IN();
   5586     PUSH32(esp, eax); /* 0x2F006075: push eax */
   5587     ecx = edi; /* 0x2F006076: mov ecx, edi */
   5588     RECOMP_ICALL(MEM32(0x2F013384)); /* 0x2F006078: call dword ptr [0x2f013384] */
   5589     RECOMP_FLAGS_IN();
   5590     PUSH32(esp, eax); /* 0x2F00607E: push eax */
   5591     ecx = edi; /* 0x2F00607F: mov ecx, edi */
   5592     RECOMP_ICALL(MEM32(0x2F013388)); /* 0x2F006081: call dword ptr [0x2f013388] */
   5593     RECOMP_FLAGS_IN();
   5594     PUSH32(esp, eax); /* 0x2F006087: push eax */
   5595     eax = MEM32(ebp + (-0x4)); /* 0x2F006088: mov eax, dword ptr [ebp - 4] */
   5596     PUSH32(esp, eax); /* 0x2F00608B: push eax */
   5597     PUSH32(esp, 0); /* 0x2F00608C: push 0 */
   5598     PUSH32(esp, 0x79u); /* 0x2F00608E: push 0x79 */
   5599     PUSH32(esp, 0x2F01D698u); /* 0x2F006090: push 0x2f01d698 */
   5600     ecx = edi; /* 0x2F006095: mov ecx, edi */
   5601     RECOMP_ICALL(MEM32(0x2F01338C)); /* 0x2F006097: call dword ptr [0x2f01338c] */
   5602     RECOMP_FLAGS_IN();
   5603     PUSH32(esp, esi); /* 0x2F00609D: push esi */
   5604     PUSH32(esp, 0x2F01D684u); /* 0x2F00609E: push 0x2f01d684 */
   5605     PUSH32(esp, 4); /* 0x2F0060A3: push 4 */
   5606     PUSH32(esp, edi); /* 0x2F0060A5: push edi */
   5607     RECOMP_ICALL(MEM32(0x2F013390)); /* 0x2F0060A6: call dword ptr [0x2f013390] */
   5608     RECOMP_FLAGS_IN();
   5609     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5610     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5611     esp = esp + 0x10u; /* 0x2F0060AC: add esp, 0x10 */
   5612     _flag_k = FK_ADD;
   5613     RECOMP_ICALL(MEM32(0x2F013020)); /* 0x2F0060AF: call dword ptr [0x2f013020] */
   5614     RECOMP_FLAGS_IN();
   5615     edi = eax; /* 0x2F0060B5: mov edi, eax */
   5616     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F0060B7: call dword ptr [0x2f0131b0] */
   5617     RECOMP_FLAGS_IN();
   5618     eax = MEM32(eax); /* 0x2F0060BD: mov eax, dword ptr [eax] */
   5619     /* test eax, eax */ /* 0x2F0060BF: test eax, eax */
   5620     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5621     _cf = 0;
   5622     _flag_k = FK_TEST;
   5623     MEM32(ebp + (-0x4)) = edi; /* 0x2F0060C1: mov dword ptr [ebp - 4], edi */
   5624     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0060C9; /* 0x2F0060C4: je 0x2f0060c9 */
   5625 L_2F0060C6:
   5626     MEM32(ebp + (-0x4)) = eax; /* 0x2F0060C6: mov dword ptr [ebp - 4], eax */
   5627 L_2F0060C9:
   5628     RECOMP_ICALL(ebx); /* 0x2F0060C9: call ebx */
   5629     RECOMP_FLAGS_IN();
   5630     edi = eax; /* 0x2F0060CB: mov edi, eax */
   5631     ecx = edi; /* 0x2F0060CD: mov ecx, edi */
   5632     RECOMP_ICALL(MEM32(0x2F013380)); /* 0x2F0060CF: call dword ptr [0x2f013380] */
   5633     RECOMP_FLAGS_IN();
   5634     PUSH32(esp, eax); /* 0x2F0060D5: push eax */
   5635     ecx = edi; /* 0x2F0060D6: mov ecx, edi */
   5636     RECOMP_ICALL(MEM32(0x2F013384)); /* 0x2F0060D8: call dword ptr [0x2f013384] */
   5637     RECOMP_FLAGS_IN();
   5638     PUSH32(esp, eax); /* 0x2F0060DE: push eax */
   5639     ecx = edi; /* 0x2F0060DF: mov ecx, edi */
   5640     RECOMP_ICALL(MEM32(0x2F013388)); /* 0x2F0060E1: call dword ptr [0x2f013388] */
   5641     RECOMP_FLAGS_IN();
   5642     ecx = MEM32(ebp + (-0x4)); /* 0x2F0060E7: mov ecx, dword ptr [ebp - 4] */
   5643     PUSH32(esp, eax); /* 0x2F0060EA: push eax */
   5644     PUSH32(esp, ecx); /* 0x2F0060EB: push ecx */
   5645     PUSH32(esp, 0); /* 0x2F0060EC: push 0 */
   5646     PUSH32(esp, 0x8Au); /* 0x2F0060EE: push 0x8a */
   5647     PUSH32(esp, 0x2F01D698u); /* 0x2F0060F3: push 0x2f01d698 */
   5648     ecx = edi; /* 0x2F0060F8: mov ecx, edi */
   5649     RECOMP_ICALL(MEM32(0x2F01338C)); /* 0x2F0060FA: call dword ptr [0x2f01338c] */
   5650     RECOMP_FLAGS_IN();
   5651     edx = MEM32(esi + 0x8); /* 0x2F006100: mov edx, dword ptr [esi + 8] */
   5652     eax = MEM32(esi + 0x4); /* 0x2F006103: mov eax, dword ptr [esi + 4] */
   5653     ecx = MEM32(esi + 0x1C); /* 0x2F006106: mov ecx, dword ptr [esi + 0x1c] */
   5654     PUSH32(esp, edx); /* 0x2F006109: push edx */
   5655     edx = MEM32(esi + 0x18); /* 0x2F00610A: mov edx, dword ptr [esi + 0x18] */
   5656     PUSH32(esp, eax); /* 0x2F00610D: push eax */
   5657     eax = MEM32(esi + 0x14); /* 0x2F00610E: mov eax, dword ptr [esi + 0x14] */
   5658     PUSH32(esp, ecx); /* 0x2F006111: push ecx */
   5659     ecx = MEM32(esi + 0x10); /* 0x2F006112: mov ecx, dword ptr [esi + 0x10] */
   5660     PUSH32(esp, edx); /* 0x2F006115: push edx */
   5661     edx = MEM32(esi + 0xC); /* 0x2F006116: mov edx, dword ptr [esi + 0xc] */
   5662     PUSH32(esp, eax); /* 0x2F006119: push eax */
   5663     eax = MEM32(esi + 0x20); /* 0x2F00611A: mov eax, dword ptr [esi + 0x20] */
   5664     PUSH32(esp, ecx); /* 0x2F00611D: push ecx */
   5665     PUSH32(esp, edx); /* 0x2F00611E: push edx */
   5666     PUSH32(esp, eax); /* 0x2F00611F: push eax */
   5667     PUSH32(esp, 0x2F01D604u); /* 0x2F006120: push 0x2f01d604 */
   5668     PUSH32(esp, 4); /* 0x2F006125: push 4 */
   5669     PUSH32(esp, edi); /* 0x2F006127: push edi */
   5670     RECOMP_ICALL(MEM32(0x2F013390)); /* 0x2F006128: call dword ptr [0x2f013390] */
   5671     RECOMP_FLAGS_IN();
   5672     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   5673     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5674     esp = esp + 0x2Cu; /* 0x2F00612E: add esp, 0x2c */
   5675     _flag_k = FK_ADD;
   5676     RECOMP_ICALL(MEM32(0x2F013020)); /* 0x2F006131: call dword ptr [0x2f013020] */
   5677     RECOMP_FLAGS_IN();
   5678     edi = eax; /* 0x2F006137: mov edi, eax */
   5679     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F006139: call dword ptr [0x2f0131b0] */
   5680     RECOMP_FLAGS_IN();
   5681     eax = MEM32(eax); /* 0x2F00613F: mov eax, dword ptr [eax] */
   5682     /* test eax, eax */ /* 0x2F006141: test eax, eax */
   5683     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5684     _cf = 0;
   5685     _flag_k = FK_TEST;
   5686     MEM32(ebp + (-0x4)) = edi; /* 0x2F006143: mov dword ptr [ebp - 4], edi */
   5687     if (TEST_Z(_flag_a, _flag_b)) goto L_2F00614B; /* 0x2F006146: je 0x2f00614b */
   5688 L_2F006148:
   5689     MEM32(ebp + (-0x4)) = eax; /* 0x2F006148: mov dword ptr [ebp - 4], eax */
   5690 L_2F00614B:
   5691     RECOMP_ICALL(ebx); /* 0x2F00614B: call ebx */
   5692     RECOMP_FLAGS_IN();
   5693     edi = eax; /* 0x2F00614D: mov edi, eax */
   5694     ecx = edi; /* 0x2F00614F: mov ecx, edi */
   5695     RECOMP_ICALL(MEM32(0x2F013380)); /* 0x2F006151: call dword ptr [0x2f013380] */
   5696     RECOMP_FLAGS_IN();
   5697     PUSH32(esp, eax); /* 0x2F006157: push eax */
   5698     ecx = edi; /* 0x2F006158: mov ecx, edi */
   5699     RECOMP_ICALL(MEM32(0x2F013384)); /* 0x2F00615A: call dword ptr [0x2f013384] */
   5700     RECOMP_FLAGS_IN();
   5701     PUSH32(esp, eax); /* 0x2F006160: push eax */
   5702     ecx = edi; /* 0x2F006161: mov ecx, edi */
   5703     RECOMP_ICALL(MEM32(0x2F013388)); /* 0x2F006163: call dword ptr [0x2f013388] */
   5704     RECOMP_FLAGS_IN();
   5705     ecx = MEM32(ebp + (-0x4)); /* 0x2F006169: mov ecx, dword ptr [ebp - 4] */
   5706     PUSH32(esp, eax); /* 0x2F00616C: push eax */
   5707     PUSH32(esp, ecx); /* 0x2F00616D: push ecx */
   5708     PUSH32(esp, 0); /* 0x2F00616E: push 0 */
   5709     PUSH32(esp, 0x8Bu); /* 0x2F006170: push 0x8b */
   5710     PUSH32(esp, 0x2F01D698u); /* 0x2F006175: push 0x2f01d698 */
   5711     ecx = edi; /* 0x2F00617A: mov ecx, edi */
   5712     RECOMP_ICALL(MEM32(0x2F01338C)); /* 0x2F00617C: call dword ptr [0x2f01338c] */
   5713     RECOMP_FLAGS_IN();
   5714     PUSH32(esp, 0x2F01D5F0u); /* 0x2F006182: push 0x2f01d5f0 */
   5715     PUSH32(esp, 4); /* 0x2F006187: push 4 */
   5716     PUSH32(esp, edi); /* 0x2F006189: push edi */
   5717     RECOMP_ICALL(MEM32(0x2F013390)); /* 0x2F00618A: call dword ptr [0x2f013390] */
   5718     RECOMP_FLAGS_IN();
   5719     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5720     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5721     esp = esp + 0xCu; /* 0x2F006190: add esp, 0xc */
   5722     _flag_k = FK_ADD;
   5723     ecx = esi + 0x74; /* 0x2F006193: lea ecx, [esi + 0x74] */
   5724     RECOMP_ICALL(MEM32(0x2F013394)); /* 0x2F006196: call dword ptr [0x2f013394] */
   5725     RECOMP_FLAGS_IN();
   5726     RECOMP_ICALL(MEM32(0x2F013020)); /* 0x2F00619C: call dword ptr [0x2f013020] */
   5727     RECOMP_FLAGS_IN();
   5728     edi = eax; /* 0x2F0061A2: mov edi, eax */
   5729     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F0061A4: call dword ptr [0x2f0131b0] */
   5730     RECOMP_FLAGS_IN();
   5731     eax = MEM32(eax); /* 0x2F0061AA: mov eax, dword ptr [eax] */
   5732     /* test eax, eax */ /* 0x2F0061AC: test eax, eax */
   5733     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5734     _cf = 0;
   5735     _flag_k = FK_TEST;
   5736     MEM32(ebp + (-0x4)) = edi; /* 0x2F0061AE: mov dword ptr [ebp - 4], edi */
   5737     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0061B6; /* 0x2F0061B1: je 0x2f0061b6 */
   5738 L_2F0061B3:
   5739     MEM32(ebp + (-0x4)) = eax; /* 0x2F0061B3: mov dword ptr [ebp - 4], eax */
   5740 L_2F0061B6:
   5741     RECOMP_ICALL(ebx); /* 0x2F0061B6: call ebx */
   5742     RECOMP_FLAGS_IN();
   5743     edi = eax; /* 0x2F0061B8: mov edi, eax */
   5744     ecx = edi; /* 0x2F0061BA: mov ecx, edi */
   5745     RECOMP_ICALL(MEM32(0x2F013380)); /* 0x2F0061BC: call dword ptr [0x2f013380] */
   5746     RECOMP_FLAGS_IN();
   5747     PUSH32(esp, eax); /* 0x2F0061C2: push eax */
   5748     ecx = edi; /* 0x2F0061C3: mov ecx, edi */
   5749     RECOMP_ICALL(MEM32(0x2F013384)); /* 0x2F0061C5: call dword ptr [0x2f013384] */
   5750     RECOMP_FLAGS_IN();
   5751     PUSH32(esp, eax); /* 0x2F0061CB: push eax */
   5752     ecx = edi; /* 0x2F0061CC: mov ecx, edi */
   5753     RECOMP_ICALL(MEM32(0x2F013388)); /* 0x2F0061CE: call dword ptr [0x2f013388] */
   5754     RECOMP_FLAGS_IN();
   5755     edx = MEM32(ebp + (-0x4)); /* 0x2F0061D4: mov edx, dword ptr [ebp - 4] */
   5756     PUSH32(esp, eax); /* 0x2F0061D7: push eax */
   5757     PUSH32(esp, edx); /* 0x2F0061D8: push edx */
   5758     PUSH32(esp, 0); /* 0x2F0061D9: push 0 */
   5759     PUSH32(esp, 0x8Du); /* 0x2F0061DB: push 0x8d */
   5760     PUSH32(esp, 0x2F01D698u); /* 0x2F0061E0: push 0x2f01d698 */
   5761     ecx = edi; /* 0x2F0061E5: mov ecx, edi */
   5762     RECOMP_ICALL(MEM32(0x2F01338C)); /* 0x2F0061E7: call dword ptr [0x2f01338c] */
   5763     RECOMP_FLAGS_IN();
   5764     PUSH32(esp, 0x2F01D5DCu); /* 0x2F0061ED: push 0x2f01d5dc */
   5765     PUSH32(esp, 4); /* 0x2F0061F2: push 4 */
   5766     PUSH32(esp, edi); /* 0x2F0061F4: push edi */
   5767     RECOMP_ICALL(MEM32(0x2F013390)); /* 0x2F0061F5: call dword ptr [0x2f013390] */
   5768     RECOMP_FLAGS_IN();
   5769     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5770     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5771     esp = esp + 0xCu; /* 0x2F0061FB: add esp, 0xc */
   5772     _flag_k = FK_ADD;
   5773     ecx = esi + 0x44; /* 0x2F0061FE: lea ecx, [esi + 0x44] */
   5774     RECOMP_ICALL(MEM32(0x2F013394)); /* 0x2F006201: call dword ptr [0x2f013394] */
   5775     RECOMP_FLAGS_IN();
   5776     RECOMP_ICALL(MEM32(0x2F013020)); /* 0x2F006207: call dword ptr [0x2f013020] */
   5777     RECOMP_FLAGS_IN();
   5778     esi = eax; /* 0x2F00620D: mov esi, eax */
   5779     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F00620F: call dword ptr [0x2f0131b0] */
   5780     RECOMP_FLAGS_IN();
   5781     eax = MEM32(eax); /* 0x2F006215: mov eax, dword ptr [eax] */
   5782     /* test eax, eax */ /* 0x2F006217: test eax, eax */
   5783     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5784     _cf = 0;
   5785     _flag_k = FK_TEST;
   5786     edi = esi; /* 0x2F006219: mov edi, esi */
   5787     if (TEST_Z(_flag_a, _flag_b)) goto L_2F00621F; /* 0x2F00621B: je 0x2f00621f */
   5788 L_2F00621D:
   5789     edi = eax; /* 0x2F00621D: mov edi, eax */
   5790 L_2F00621F:
   5791     RECOMP_ICALL(ebx); /* 0x2F00621F: call ebx */
   5792     RECOMP_FLAGS_IN();
   5793     esi = eax; /* 0x2F006221: mov esi, eax */
   5794     ecx = esi; /* 0x2F006223: mov ecx, esi */
   5795     RECOMP_ICALL(MEM32(0x2F013380)); /* 0x2F006225: call dword ptr [0x2f013380] */
   5796     RECOMP_FLAGS_IN();
   5797     PUSH32(esp, eax); /* 0x2F00622B: push eax */
   5798     ecx = esi; /* 0x2F00622C: mov ecx, esi */
   5799     RECOMP_ICALL(MEM32(0x2F013384)); /* 0x2F00622E: call dword ptr [0x2f013384] */
   5800     RECOMP_FLAGS_IN();
   5801     PUSH32(esp, eax); /* 0x2F006234: push eax */
   5802     ecx = esi; /* 0x2F006235: mov ecx, esi */
   5803     RECOMP_ICALL(MEM32(0x2F013388)); /* 0x2F006237: call dword ptr [0x2f013388] */
   5804     RECOMP_FLAGS_IN();
   5805     PUSH32(esp, eax); /* 0x2F00623D: push eax */
   5806     PUSH32(esp, edi); /* 0x2F00623E: push edi */
   5807     PUSH32(esp, 0); /* 0x2F00623F: push 0 */
   5808     PUSH32(esp, 0x8Fu); /* 0x2F006241: push 0x8f */
   5809     PUSH32(esp, 0x2F01D698u); /* 0x2F006246: push 0x2f01d698 */
   5810     ecx = esi; /* 0x2F00624B: mov ecx, esi */
   5811     RECOMP_ICALL(MEM32(0x2F01338C)); /* 0x2F00624D: call dword ptr [0x2f01338c] */
   5812     RECOMP_FLAGS_IN();
   5813     PUSH32(esp, 0x2F01D5D4u); /* 0x2F006253: push 0x2f01d5d4 */
   5814     PUSH32(esp, 4); /* 0x2F006258: push 4 */
   5815     PUSH32(esp, esi); /* 0x2F00625A: push esi */
   5816     RECOMP_ICALL(MEM32(0x2F013390)); /* 0x2F00625B: call dword ptr [0x2f013390] */
   5817     RECOMP_FLAGS_IN();
   5818     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5819     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5820     esp = esp + 0xCu; /* 0x2F006261: add esp, 0xc */
   5821     _flag_k = FK_ADD;
   5822     edi = POP32_VAL(esp); /* 0x2F006264: pop edi */
   5823     esi = POP32_VAL(esp); /* 0x2F006265: pop esi */
   5824     ebx = POP32_VAL(esp); /* 0x2F006266: pop ebx */
   5825     esp = ebp; /* 0x2F006267: mov esp, ebp */
   5826     ebp = POP32_VAL(esp); /* 0x2F006269: pop ebp */
   5827     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F00626A: ret  */
   5828     RECOMP_REGS_OUT();
   5829 }
   5830 
   5831 void sub_2F006270(void) {
   5832     int _fpu_cmp = 0;
   5833     uint32_t _cf = 0;
   5834     int _df = 1;
   5835     uint32_t _flag_k = FK_NONE;
   5836     uint32_t _flag_a = 0, _flag_b = 0;
   5837     uint32_t _itail_tgt = 0;
   5838     RECOMP_REGS_LOCALS
   5839     RECOMP_ENTER(0x2F006270u);
   5840 
   5841 L_2F006270:
   5842     PUSH32(esp, ebp); /* 0x2F006270: push ebp */
   5843     ebp = esp; /* 0x2F006271: mov ebp, esp */
   5844     PUSH32(esp, esi); /* 0x2F006273: push esi */
   5845     PUSH32(esp, edi); /* 0x2F006274: push edi */
   5846     edi = MEM32(ebp + 0x8); /* 0x2F006275: mov edi, dword ptr [ebp + 8] */
   5847     /* test edi, edi */ /* 0x2F006278: test edi, edi */
   5848     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5849     _cf = 0;
   5850     _flag_k = FK_TEST;
   5851     esi = ecx; /* 0x2F00627A: mov esi, ecx */
   5852     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F006287; /* 0x2F00627C: jne 0x2f006287 */
   5853 L_2F00627E:
   5854     edi = POP32_VAL(esp); /* 0x2F00627E: pop edi */
   5855     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5856     eax = eax | 0xFFFFFFFFu; /* 0x2F00627F: or eax, 0xffffffff */
   5857     _cf = 0;
   5858     _flag_k = FK_TEST;
   5859     esi = POP32_VAL(esp); /* 0x2F006282: pop esi */
   5860     ebp = POP32_VAL(esp); /* 0x2F006283: pop ebp */
   5861     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F006284: ret 4 */
   5862 L_2F006287:
   5863     eax = MEM32(esi + 0x4); /* 0x2F006287: mov eax, dword ptr [esi + 4] */
   5864     /* test eax, eax */ /* 0x2F00628A: test eax, eax */
   5865     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5866     _cf = 0;
   5867     _flag_k = FK_TEST;
   5868     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F00629C; /* 0x2F00628C: jne 0x2f00629c */
   5869 L_2F00628E:
   5870     eax = MEM32(esi); /* 0x2F00628E: mov eax, dword ptr [esi] */
   5871     PUSH32(esp, edi); /* 0x2F006290: push edi */
   5872     ecx = esi; /* 0x2F006291: mov ecx, esi */
   5873     RECOMP_ICALL(MEM32(eax + 0x78)); /* 0x2F006293: call dword ptr [eax + 0x78] */
   5874     RECOMP_FLAGS_IN();
   5875     edi = POP32_VAL(esp); /* 0x2F006296: pop edi */
   5876     esi = POP32_VAL(esp); /* 0x2F006297: pop esi */
   5877     ebp = POP32_VAL(esp); /* 0x2F006298: pop ebp */
   5878     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F006299: ret 4 */
   5879 L_2F00629C:
   5880     eax = MEM32(esi + 0x8); /* 0x2F00629C: mov eax, dword ptr [esi + 8] */
   5881     /* test eax, eax */ /* 0x2F00629F: test eax, eax */
   5882     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5883     _cf = 0;
   5884     _flag_k = FK_TEST;
   5885     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0062C4; /* 0x2F0062A1: je 0x2f0062c4 */
   5886 L_2F0062A3:
   5887     ecx = MEM32(edi + 0xC); /* 0x2F0062A3: mov ecx, dword ptr [edi + 0xc] */
   5888 L_2F0062A6:
   5889     /* cmp MEM32(eax + 0xC), ecx */ /* 0x2F0062A6: cmp dword ptr [eax + 0xc], ecx */
   5890     _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(ecx);
   5891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5892     _flag_k = FK_CMP;
   5893     if (CMP_AE(_flag_a, _flag_b)) goto L_2F0062C0; /* 0x2F0062A9: jae 0x2f0062c0 */
   5894 L_2F0062AB:
   5895     eax = MEM32(eax + 0x28); /* 0x2F0062AB: mov eax, dword ptr [eax + 0x28] */
   5896     /* test eax, eax */ /* 0x2F0062AE: test eax, eax */
   5897     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5898     _cf = 0;
   5899     _flag_k = FK_TEST;
   5900     RECOMP_BACKEDGE();
   5901     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0062A6; /* 0x2F0062B0: jne 0x2f0062a6 */
   5902 L_2F0062B2:
   5903     edx = MEM32(esi); /* 0x2F0062B2: mov edx, dword ptr [esi] */
   5904     PUSH32(esp, edi); /* 0x2F0062B4: push edi */
   5905     ecx = esi; /* 0x2F0062B5: mov ecx, esi */
   5906     RECOMP_ICALL(MEM32(edx + 0x78)); /* 0x2F0062B7: call dword ptr [edx + 0x78] */
   5907     RECOMP_FLAGS_IN();
   5908     edi = POP32_VAL(esp); /* 0x2F0062BA: pop edi */
   5909     esi = POP32_VAL(esp); /* 0x2F0062BB: pop esi */
   5910     ebp = POP32_VAL(esp); /* 0x2F0062BC: pop ebp */
   5911     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0062BD: ret 4 */
   5912 L_2F0062C0:
   5913     /* test eax, eax */ /* 0x2F0062C0: test eax, eax */
   5914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5915     _cf = 0;
   5916     _flag_k = FK_TEST;
   5917     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0062D2; /* 0x2F0062C2: jne 0x2f0062d2 */
   5918 L_2F0062C4:
   5919     edx = MEM32(esi); /* 0x2F0062C4: mov edx, dword ptr [esi] */
   5920     PUSH32(esp, edi); /* 0x2F0062C6: push edi */
   5921     ecx = esi; /* 0x2F0062C7: mov ecx, esi */
   5922     RECOMP_ICALL(MEM32(edx + 0x78)); /* 0x2F0062C9: call dword ptr [edx + 0x78] */
   5923     RECOMP_FLAGS_IN();
   5924     edi = POP32_VAL(esp); /* 0x2F0062CC: pop edi */
   5925     esi = POP32_VAL(esp); /* 0x2F0062CD: pop esi */
   5926     ebp = POP32_VAL(esp); /* 0x2F0062CE: pop ebp */
   5927     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0062CF: ret 4 */
   5928 L_2F0062D2:
   5929     ecx = MEM32(eax + 0x24); /* 0x2F0062D2: mov ecx, dword ptr [eax + 0x24] */
   5930     /* test ecx, ecx */ /* 0x2F0062D5: test ecx, ecx */
   5931     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5932     _cf = 0;
   5933     _flag_k = FK_TEST;
   5934     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0062E7; /* 0x2F0062D7: jne 0x2f0062e7 */
   5935 L_2F0062D9:
   5936     eax = MEM32(esi); /* 0x2F0062D9: mov eax, dword ptr [esi] */
   5937     PUSH32(esp, edi); /* 0x2F0062DB: push edi */
   5938     ecx = esi; /* 0x2F0062DC: mov ecx, esi */
   5939     RECOMP_ICALL(MEM32(eax + 0x74)); /* 0x2F0062DE: call dword ptr [eax + 0x74] */
   5940     RECOMP_FLAGS_IN();
   5941     edi = POP32_VAL(esp); /* 0x2F0062E1: pop edi */
   5942     esi = POP32_VAL(esp); /* 0x2F0062E2: pop esi */
   5943     ebp = POP32_VAL(esp); /* 0x2F0062E3: pop ebp */
   5944     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0062E4: ret 4 */
   5945 L_2F0062E7:
   5946     MEM32(edi + 0x28) = eax; /* 0x2F0062E7: mov dword ptr [edi + 0x28], eax */
   5947     ecx = MEM32(eax + 0x24); /* 0x2F0062EA: mov ecx, dword ptr [eax + 0x24] */
   5948     MEM32(edi + 0x24) = ecx; /* 0x2F0062ED: mov dword ptr [edi + 0x24], ecx */
   5949     edx = MEM32(eax + 0x24); /* 0x2F0062F0: mov edx, dword ptr [eax + 0x24] */
   5950     MEM32(edx + 0x28) = edi; /* 0x2F0062F3: mov dword ptr [edx + 0x28], edi */
   5951     ecx = edi; /* 0x2F0062F6: mov ecx, edi */
   5952     MEM32(eax + 0x24) = edi; /* 0x2F0062F8: mov dword ptr [eax + 0x24], edi */
   5953     RECOMP_ICALL(MEM32(0x2F013398)); /* 0x2F0062FB: call dword ptr [0x2f013398] */
   5954     RECOMP_FLAGS_IN();
   5955     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax);
   5956     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5957     MEM32(esi + 0x14) = MEM32(esi + 0x14) + eax; /* 0x2F006301: add dword ptr [esi + 0x14], eax */
   5958     _flag_k = FK_ADD;
   5959     ecx = edi; /* 0x2F006304: mov ecx, edi */
   5960     RECOMP_ICALL(MEM32(0x2F01339C)); /* 0x2F006306: call dword ptr [0x2f01339c] */
   5961     RECOMP_FLAGS_IN();
   5962     edi = MEM32(esi + 0x18); /* 0x2F00630C: mov edi, dword ptr [esi + 0x18] */
   5963     edx = MEM32(esi + 0x1C); /* 0x2F00630F: mov edx, dword ptr [esi + 0x1c] */
   5964     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   5965     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5966     edi = edi + eax; /* 0x2F006312: add edi, eax */
   5967     _flag_k = FK_ADD;
   5968     eax = MEM32(esi); /* 0x2F006314: mov eax, dword ptr [esi] */
   5969     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5970     edx = edx + 1; /* 0x2F006316: inc edx */
   5971     _flag_k = FK_INC;
   5972     ecx = esi; /* 0x2F006317: mov ecx, esi */
   5973     MEM32(esi + 0x18) = edi; /* 0x2F006319: mov dword ptr [esi + 0x18], edi */
   5974     MEM32(esi + 0x1C) = edx; /* 0x2F00631C: mov dword ptr [esi + 0x1c], edx */
   5975     RECOMP_ICALL(MEM32(eax + 0x9C)); /* 0x2F00631F: call dword ptr [eax + 0x9c] */
   5976     RECOMP_FLAGS_IN();
   5977     /* cmp eax, 0xFFFFFFFFu */ /* 0x2F006325: cmp eax, -1 */
   5978     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5980     _flag_k = FK_CMP;
   5981     if (CMP_NE(_flag_a, _flag_b)) goto L_2F006332; /* 0x2F006328: jne 0x2f006332 */
   5982 L_2F00632A:
   5983     edi = POP32_VAL(esp); /* 0x2F00632A: pop edi */
   5984     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   5985     eax = eax | eax; /* 0x2F00632B: or eax, eax */
   5986     _cf = 0;
   5987     _flag_k = FK_TEST;
   5988     esi = POP32_VAL(esp); /* 0x2F00632D: pop esi */
   5989     ebp = POP32_VAL(esp); /* 0x2F00632E: pop ebp */
   5990     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F00632F: ret 4 */
   5991 L_2F006332:
   5992     eax = MEM32(esi + 0x1C); /* 0x2F006332: mov eax, dword ptr [esi + 0x1c] */
   5993     edi = POP32_VAL(esp); /* 0x2F006335: pop edi */
   5994     esi = POP32_VAL(esp); /* 0x2F006336: pop esi */
   5995     ebp = POP32_VAL(esp); /* 0x2F006337: pop ebp */
   5996     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F006338: ret 4 */
   5997     RECOMP_REGS_OUT();
   5998 }
   5999 
   6000 void sub_2F006340(void) {
   6001     int _fpu_cmp = 0;
   6002     uint32_t _cf = 0;
   6003     int _df = 1;
   6004     uint32_t _flag_k = FK_NONE;
   6005     uint32_t _flag_a = 0, _flag_b = 0;
   6006     uint32_t _itail_tgt = 0;
   6007     RECOMP_REGS_LOCALS
   6008     RECOMP_ENTER(0x2F006340u);
   6009 
   6010 L_2F006340:
   6011     PUSH32(esp, ebp); /* 0x2F006340: push ebp */
   6012     ebp = esp; /* 0x2F006341: mov ebp, esp */
   6013     PUSH32(esp, esi); /* 0x2F006343: push esi */
   6014     PUSH32(esp, edi); /* 0x2F006344: push edi */
   6015     edi = MEM32(ebp + 0x8); /* 0x2F006345: mov edi, dword ptr [ebp + 8] */
   6016     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6017     eax = 0; /* 0x2F006348: xor eax, eax */
   6018     _cf = 0;
   6019     _flag_k = FK_TEST;
   6020     /* cmp edi, eax */ /* 0x2F00634A: cmp edi, eax */
   6021     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6023     _flag_k = FK_CMP;
   6024     esi = ecx; /* 0x2F00634C: mov esi, ecx */
   6025     if (CMP_NE(_flag_a, _flag_b)) goto L_2F006359; /* 0x2F00634E: jne 0x2f006359 */
   6026 L_2F006350:
   6027     edi = POP32_VAL(esp); /* 0x2F006350: pop edi */
   6028     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6029     eax = eax | 0xFFFFFFFFu; /* 0x2F006351: or eax, 0xffffffff */
   6030     _cf = 0;
   6031     _flag_k = FK_TEST;
   6032     esi = POP32_VAL(esp); /* 0x2F006354: pop esi */
   6033     ebp = POP32_VAL(esp); /* 0x2F006355: pop ebp */
   6034     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F006356: ret 4 */
   6035 L_2F006359:
   6036     /* cmp MEM32(esi + 0x8), eax */ /* 0x2F006359: cmp dword ptr [esi + 8], eax */
   6037     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   6038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6039     _flag_k = FK_CMP;
   6040     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00636C; /* 0x2F00635C: jne 0x2f00636c */
   6041 L_2F00635E:
   6042     MEM32(esi + 0x4) = edi; /* 0x2F00635E: mov dword ptr [esi + 4], edi */
   6043     MEM32(esi + 0x8) = edi; /* 0x2F006361: mov dword ptr [esi + 8], edi */
   6044     MEM32(edi + 0x24) = eax; /* 0x2F006364: mov dword ptr [edi + 0x24], eax */
   6045     MEM32(edi + 0x28) = eax; /* 0x2F006367: mov dword ptr [edi + 0x28], eax */
   6046     goto L_2F00637E; /* 0x2F00636A: jmp 0x2f00637e */
   6047 L_2F00636C:
   6048     MEM32(edi + 0x24) = eax; /* 0x2F00636C: mov dword ptr [edi + 0x24], eax */
   6049     eax = MEM32(esi + 0x8); /* 0x2F00636F: mov eax, dword ptr [esi + 8] */
   6050     MEM32(eax + 0x24) = edi; /* 0x2F006372: mov dword ptr [eax + 0x24], edi */
   6051     ecx = MEM32(esi + 0x8); /* 0x2F006375: mov ecx, dword ptr [esi + 8] */
   6052     MEM32(edi + 0x28) = ecx; /* 0x2F006378: mov dword ptr [edi + 0x28], ecx */
   6053     MEM32(esi + 0x8) = edi; /* 0x2F00637B: mov dword ptr [esi + 8], edi */
   6054 L_2F00637E:
   6055     ecx = edi; /* 0x2F00637E: mov ecx, edi */
   6056     RECOMP_ICALL(MEM32(0x2F013398)); /* 0x2F006380: call dword ptr [0x2f013398] */
   6057     RECOMP_FLAGS_IN();
   6058     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax);
   6059     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6060     MEM32(esi + 0x14) = MEM32(esi + 0x14) + eax; /* 0x2F006386: add dword ptr [esi + 0x14], eax */
   6061     _flag_k = FK_ADD;
   6062     ecx = edi; /* 0x2F006389: mov ecx, edi */
   6063     RECOMP_ICALL(MEM32(0x2F01339C)); /* 0x2F00638B: call dword ptr [0x2f01339c] */
   6064     RECOMP_FLAGS_IN();
   6065     edi = MEM32(esi + 0x18); /* 0x2F006391: mov edi, dword ptr [esi + 0x18] */
   6066     edx = MEM32(esi + 0x1C); /* 0x2F006394: mov edx, dword ptr [esi + 0x1c] */
   6067     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6068     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6069     edi = edi + eax; /* 0x2F006397: add edi, eax */
   6070     _flag_k = FK_ADD;
   6071     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6072     edx = edx + 1; /* 0x2F006399: inc edx */
   6073     _flag_k = FK_INC;
   6074     MEM32(esi + 0x1C) = edx; /* 0x2F00639A: mov dword ptr [esi + 0x1c], edx */
   6075     edx = MEM32(esi); /* 0x2F00639D: mov edx, dword ptr [esi] */
   6076     ecx = esi; /* 0x2F00639F: mov ecx, esi */
   6077     MEM32(esi + 0x18) = edi; /* 0x2F0063A1: mov dword ptr [esi + 0x18], edi */
   6078     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x2F0063A4: call dword ptr [edx + 0x9c] */
   6079     RECOMP_FLAGS_IN();
   6080     /* cmp eax, 0xFFFFFFFFu */ /* 0x2F0063AA: cmp eax, -1 */
   6081     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6083     _flag_k = FK_CMP;
   6084     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0063B7; /* 0x2F0063AD: jne 0x2f0063b7 */
   6085 L_2F0063AF:
   6086     edi = POP32_VAL(esp); /* 0x2F0063AF: pop edi */
   6087     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   6088     eax = eax | eax; /* 0x2F0063B0: or eax, eax */
   6089     _cf = 0;
   6090     _flag_k = FK_TEST;
   6091     esi = POP32_VAL(esp); /* 0x2F0063B2: pop esi */
   6092     ebp = POP32_VAL(esp); /* 0x2F0063B3: pop ebp */
   6093     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0063B4: ret 4 */
   6094 L_2F0063B7:
   6095     eax = MEM32(esi + 0x1C); /* 0x2F0063B7: mov eax, dword ptr [esi + 0x1c] */
   6096     edi = POP32_VAL(esp); /* 0x2F0063BA: pop edi */
   6097     esi = POP32_VAL(esp); /* 0x2F0063BB: pop esi */
   6098     ebp = POP32_VAL(esp); /* 0x2F0063BC: pop ebp */
   6099     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0063BD: ret 4 */
   6100     RECOMP_REGS_OUT();
   6101 }
   6102 
   6103 void sub_2F0063C0(void) {
   6104     int _fpu_cmp = 0;
   6105     uint32_t _cf = 0;
   6106     int _df = 1;
   6107     uint32_t _flag_k = FK_NONE;
   6108     uint32_t _flag_a = 0, _flag_b = 0;
   6109     uint32_t _itail_tgt = 0;
   6110     RECOMP_REGS_LOCALS
   6111     RECOMP_ENTER(0x2F0063C0u);
   6112 
   6113 L_2F0063C0:
   6114     PUSH32(esp, ebp); /* 0x2F0063C0: push ebp */
   6115     ebp = esp; /* 0x2F0063C1: mov ebp, esp */
   6116     PUSH32(esp, esi); /* 0x2F0063C3: push esi */
   6117     PUSH32(esp, edi); /* 0x2F0063C4: push edi */
   6118     edi = MEM32(ebp + 0x8); /* 0x2F0063C5: mov edi, dword ptr [ebp + 8] */
   6119     /* test edi, edi */ /* 0x2F0063C8: test edi, edi */
   6120     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6121     _cf = 0;
   6122     _flag_k = FK_TEST;
   6123     esi = ecx; /* 0x2F0063CA: mov esi, ecx */
   6124     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0063D7; /* 0x2F0063CC: jne 0x2f0063d7 */
   6125 L_2F0063CE:
   6126     edi = POP32_VAL(esp); /* 0x2F0063CE: pop edi */
   6127     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6128     eax = eax | 0xFFFFFFFFu; /* 0x2F0063CF: or eax, 0xffffffff */
   6129     _cf = 0;
   6130     _flag_k = FK_TEST;
   6131     esi = POP32_VAL(esp); /* 0x2F0063D2: pop esi */
   6132     ebp = POP32_VAL(esp); /* 0x2F0063D3: pop ebp */
   6133     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0063D4: ret 4 */
   6134 L_2F0063D7:
   6135     MEM32(edi + 0x28) = 0; /* 0x2F0063D7: mov dword ptr [edi + 0x28], 0 */
   6136     eax = MEM32(esi + 0x4); /* 0x2F0063DE: mov eax, dword ptr [esi + 4] */
   6137     MEM32(edi + 0x24) = eax; /* 0x2F0063E1: mov dword ptr [edi + 0x24], eax */
   6138     eax = MEM32(esi + 0x4); /* 0x2F0063E4: mov eax, dword ptr [esi + 4] */
   6139     /* test eax, eax */ /* 0x2F0063E7: test eax, eax */
   6140     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6141     _cf = 0;
   6142     _flag_k = FK_TEST;
   6143     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0063F0; /* 0x2F0063E9: je 0x2f0063f0 */
   6144 L_2F0063EB:
   6145     MEM32(eax + 0x28) = edi; /* 0x2F0063EB: mov dword ptr [eax + 0x28], edi */
   6146     goto L_2F0063F3; /* 0x2F0063EE: jmp 0x2f0063f3 */
   6147 L_2F0063F0:
   6148     MEM32(esi + 0x8) = edi; /* 0x2F0063F0: mov dword ptr [esi + 8], edi */
   6149 L_2F0063F3:
   6150     ecx = edi; /* 0x2F0063F3: mov ecx, edi */
   6151     MEM32(esi + 0x4) = edi; /* 0x2F0063F5: mov dword ptr [esi + 4], edi */
   6152     RECOMP_ICALL(MEM32(0x2F013398)); /* 0x2F0063F8: call dword ptr [0x2f013398] */
   6153     RECOMP_FLAGS_IN();
   6154     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax);
   6155     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6156     MEM32(esi + 0x14) = MEM32(esi + 0x14) + eax; /* 0x2F0063FE: add dword ptr [esi + 0x14], eax */
   6157     _flag_k = FK_ADD;
   6158     ecx = edi; /* 0x2F006401: mov ecx, edi */
   6159     RECOMP_ICALL(MEM32(0x2F01339C)); /* 0x2F006403: call dword ptr [0x2f01339c] */
   6160     RECOMP_FLAGS_IN();
   6161     edi = MEM32(esi + 0x18); /* 0x2F006409: mov edi, dword ptr [esi + 0x18] */
   6162     edx = MEM32(esi + 0x1C); /* 0x2F00640C: mov edx, dword ptr [esi + 0x1c] */
   6163     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6164     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6165     edi = edi + eax; /* 0x2F00640F: add edi, eax */
   6166     _flag_k = FK_ADD;
   6167     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6168     edx = edx + 1; /* 0x2F006411: inc edx */
   6169     _flag_k = FK_INC;
   6170     MEM32(esi + 0x1C) = edx; /* 0x2F006412: mov dword ptr [esi + 0x1c], edx */
   6171     edx = MEM32(esi); /* 0x2F006415: mov edx, dword ptr [esi] */
   6172     ecx = esi; /* 0x2F006417: mov ecx, esi */
   6173     MEM32(esi + 0x18) = edi; /* 0x2F006419: mov dword ptr [esi + 0x18], edi */
   6174     RECOMP_ICALL(MEM32(edx + 0x9C)); /* 0x2F00641C: call dword ptr [edx + 0x9c] */
   6175     RECOMP_FLAGS_IN();
   6176     /* cmp eax, 0xFFFFFFFFu */ /* 0x2F006422: cmp eax, -1 */
   6177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6178     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6179     _flag_k = FK_CMP;
   6180     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00642F; /* 0x2F006425: jne 0x2f00642f */
   6181 L_2F006427:
   6182     edi = POP32_VAL(esp); /* 0x2F006427: pop edi */
   6183     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   6184     eax = eax | eax; /* 0x2F006428: or eax, eax */
   6185     _cf = 0;
   6186     _flag_k = FK_TEST;
   6187     esi = POP32_VAL(esp); /* 0x2F00642A: pop esi */
   6188     ebp = POP32_VAL(esp); /* 0x2F00642B: pop ebp */
   6189     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F00642C: ret 4 */
   6190 L_2F00642F:
   6191     eax = MEM32(esi + 0x1C); /* 0x2F00642F: mov eax, dword ptr [esi + 0x1c] */
   6192     edi = POP32_VAL(esp); /* 0x2F006432: pop edi */
   6193     esi = POP32_VAL(esp); /* 0x2F006433: pop esi */
   6194     ebp = POP32_VAL(esp); /* 0x2F006434: pop ebp */
   6195     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F006435: ret 4 */
   6196     RECOMP_REGS_OUT();
   6197 }
   6198 
   6199 void sub_2F006440(void) {
   6200     int _fpu_cmp = 0;
   6201     uint32_t _cf = 0;
   6202     int _df = 1;
   6203     uint32_t _flag_k = FK_NONE;
   6204     uint32_t _flag_a = 0, _flag_b = 0;
   6205     uint32_t _itail_tgt = 0;
   6206     RECOMP_REGS_LOCALS
   6207     RECOMP_ENTER(0x2F006440u);
   6208 
   6209 L_2F006440:
   6210     PUSH32(esp, ebp); /* 0x2F006440: push ebp */
   6211     ebp = esp; /* 0x2F006441: mov ebp, esp */
   6212     PUSH32(esp, esi); /* 0x2F006443: push esi */
   6213     esi = ecx; /* 0x2F006444: mov esi, ecx */
   6214     eax = MEM32(esi + 0x4); /* 0x2F006446: mov eax, dword ptr [esi + 4] */
   6215     /* test eax, eax */ /* 0x2F006449: test eax, eax */
   6216     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6217     _cf = 0;
   6218     _flag_k = FK_TEST;
   6219     PUSH32(esp, edi); /* 0x2F00644B: push edi */
   6220     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0064B9; /* 0x2F00644C: jne 0x2f0064b9 */
   6221 L_2F00644E:
   6222     RECOMP_ICALL(MEM32(0x2F013020)); /* 0x2F00644E: call dword ptr [0x2f013020] */
   6223     RECOMP_FLAGS_IN();
   6224     edi = eax; /* 0x2F006454: mov edi, eax */
   6225     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F006456: call dword ptr [0x2f0131b0] */
   6226     RECOMP_FLAGS_IN();
   6227     eax = MEM32(eax); /* 0x2F00645C: mov eax, dword ptr [eax] */
   6228     /* test eax, eax */ /* 0x2F00645E: test eax, eax */
   6229     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6230     _cf = 0;
   6231     _flag_k = FK_TEST;
   6232     if (TEST_Z(_flag_a, _flag_b)) goto L_2F006464; /* 0x2F006460: je 0x2f006464 */
   6233 L_2F006462:
   6234     edi = eax; /* 0x2F006462: mov edi, eax */
   6235 L_2F006464:
   6236     RECOMP_ICALL(MEM32(0x2F01337C)); /* 0x2F006464: call dword ptr [0x2f01337c] */
   6237     RECOMP_FLAGS_IN();
   6238     esi = eax; /* 0x2F00646A: mov esi, eax */
   6239     ecx = esi; /* 0x2F00646C: mov ecx, esi */
   6240     RECOMP_ICALL(MEM32(0x2F013380)); /* 0x2F00646E: call dword ptr [0x2f013380] */
   6241     RECOMP_FLAGS_IN();
   6242     PUSH32(esp, eax); /* 0x2F006474: push eax */
   6243     ecx = esi; /* 0x2F006475: mov ecx, esi */
   6244     RECOMP_ICALL(MEM32(0x2F013384)); /* 0x2F006477: call dword ptr [0x2f013384] */
   6245     RECOMP_FLAGS_IN();
   6246     PUSH32(esp, eax); /* 0x2F00647D: push eax */
   6247     ecx = esi; /* 0x2F00647E: mov ecx, esi */
   6248     RECOMP_ICALL(MEM32(0x2F013388)); /* 0x2F006480: call dword ptr [0x2f013388] */
   6249     RECOMP_FLAGS_IN();
   6250     PUSH32(esp, eax); /* 0x2F006486: push eax */
   6251     PUSH32(esp, edi); /* 0x2F006487: push edi */
   6252     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F006488: push -1 */
   6253     PUSH32(esp, 0x1C9u); /* 0x2F00648A: push 0x1c9 */
   6254     PUSH32(esp, 0x2F01D698u); /* 0x2F00648F: push 0x2f01d698 */
   6255     ecx = esi; /* 0x2F006494: mov ecx, esi */
   6256     RECOMP_ICALL(MEM32(0x2F01338C)); /* 0x2F006496: call dword ptr [0x2f01338c] */
   6257     RECOMP_FLAGS_IN();
   6258     PUSH32(esp, 0x2F01D6D8u); /* 0x2F00649C: push 0x2f01d6d8 */
   6259     PUSH32(esp, 0x80u); /* 0x2F0064A1: push 0x80 */
   6260     PUSH32(esp, esi); /* 0x2F0064A6: push esi */
   6261     RECOMP_ICALL(MEM32(0x2F013390)); /* 0x2F0064A7: call dword ptr [0x2f013390] */
   6262     RECOMP_FLAGS_IN();
   6263     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6264     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6265     esp = esp + 0xCu; /* 0x2F0064AD: add esp, 0xc */
   6266     _flag_k = FK_ADD;
   6267     edi = POP32_VAL(esp); /* 0x2F0064B0: pop edi */
   6268     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6269     eax = eax | 0xFFFFFFFFu; /* 0x2F0064B1: or eax, 0xffffffff */
   6270     _cf = 0;
   6271     _flag_k = FK_TEST;
   6272     esi = POP32_VAL(esp); /* 0x2F0064B4: pop esi */
   6273     ebp = POP32_VAL(esp); /* 0x2F0064B5: pop ebp */
   6274     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0064B6: ret 4 */
   6275 L_2F0064B9:
   6276     edi = MEM32(ebp + 0x8); /* 0x2F0064B9: mov edi, dword ptr [ebp + 8] */
   6277     MEM32(edi) = eax; /* 0x2F0064BC: mov dword ptr [edi], eax */
   6278     eax = MEM32(esi + 0x4); /* 0x2F0064BE: mov eax, dword ptr [esi + 4] */
   6279     eax = MEM32(eax + 0x24); /* 0x2F0064C1: mov eax, dword ptr [eax + 0x24] */
   6280     /* test eax, eax */ /* 0x2F0064C4: test eax, eax */
   6281     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6282     _cf = 0;
   6283     _flag_k = FK_TEST;
   6284     MEM32(esi + 0x4) = eax; /* 0x2F0064C6: mov dword ptr [esi + 4], eax */
   6285     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0064D0; /* 0x2F0064C9: jne 0x2f0064d0 */
   6286 L_2F0064CB:
   6287     MEM32(esi + 0x8) = eax; /* 0x2F0064CB: mov dword ptr [esi + 8], eax */
   6288     goto L_2F0064D7; /* 0x2F0064CE: jmp 0x2f0064d7 */
   6289 L_2F0064D0:
   6290     MEM32(eax + 0x28) = 0; /* 0x2F0064D0: mov dword ptr [eax + 0x28], 0 */
   6291 L_2F0064D7:
   6292     ecx = MEM32(edi); /* 0x2F0064D7: mov ecx, dword ptr [edi] */
   6293     RECOMP_ICALL(MEM32(0x2F013398)); /* 0x2F0064D9: call dword ptr [0x2f013398] */
   6294     RECOMP_FLAGS_IN();
   6295     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax);
   6296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6297     MEM32(esi + 0x14) = MEM32(esi + 0x14) - eax; /* 0x2F0064DF: sub dword ptr [esi + 0x14], eax */
   6298     _flag_k = FK_CMP;
   6299     ecx = MEM32(edi); /* 0x2F0064E2: mov ecx, dword ptr [edi] */
   6300     RECOMP_ICALL(MEM32(0x2F01339C)); /* 0x2F0064E4: call dword ptr [0x2f01339c] */
   6301     RECOMP_FLAGS_IN();
   6302     edx = MEM32(esi + 0x18); /* 0x2F0064EA: mov edx, dword ptr [esi + 0x18] */
   6303     ecx = MEM32(esi + 0x1C); /* 0x2F0064ED: mov ecx, dword ptr [esi + 0x1c] */
   6304     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6306     edx = edx - eax; /* 0x2F0064F0: sub edx, eax */
   6307     _flag_k = FK_CMP;
   6308     eax = MEM32(esi + 0xC); /* 0x2F0064F2: mov eax, dword ptr [esi + 0xc] */
   6309     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6310     ecx = ecx - 1; /* 0x2F0064F5: dec ecx */
   6311     _flag_k = FK_DEC;
   6312     MEM32(esi + 0x1C) = ecx; /* 0x2F0064F6: mov dword ptr [esi + 0x1c], ecx */
   6313     ecx = MEM32(esi + 0x14); /* 0x2F0064F9: mov ecx, dword ptr [esi + 0x14] */
   6314     /* cmp ecx, eax */ /* 0x2F0064FC: cmp ecx, eax */
   6315     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6317     _flag_k = FK_CMP;
   6318     MEM32(esi + 0x18) = edx; /* 0x2F0064FE: mov dword ptr [esi + 0x18], edx */
   6319     if (CMP_A(_flag_a, _flag_b)) goto L_2F00651A; /* 0x2F006501: ja 0x2f00651a */
   6320 L_2F006503:
   6321     edx = MEM32(esi); /* 0x2F006503: mov edx, dword ptr [esi] */
   6322     ecx = esi; /* 0x2F006505: mov ecx, esi */
   6323     RECOMP_ICALL(MEM32(edx + 0x98)); /* 0x2F006507: call dword ptr [edx + 0x98] */
   6324     RECOMP_FLAGS_IN();
   6325     /* cmp eax, 0xFFFFFFFFu */ /* 0x2F00650D: cmp eax, -1 */
   6326     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6328     _flag_k = FK_CMP;
   6329     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00651A; /* 0x2F006510: jne 0x2f00651a */
   6330 L_2F006512:
   6331     edi = POP32_VAL(esp); /* 0x2F006512: pop edi */
   6332     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   6333     eax = eax | eax; /* 0x2F006513: or eax, eax */
   6334     _cf = 0;
   6335     _flag_k = FK_TEST;
   6336     esi = POP32_VAL(esp); /* 0x2F006515: pop esi */
   6337     ebp = POP32_VAL(esp); /* 0x2F006516: pop ebp */
   6338     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F006517: ret 4 */
   6339 L_2F00651A:
   6340     eax = MEM32(esi + 0x1C); /* 0x2F00651A: mov eax, dword ptr [esi + 0x1c] */
   6341     edi = POP32_VAL(esp); /* 0x2F00651D: pop edi */
   6342     esi = POP32_VAL(esp); /* 0x2F00651E: pop esi */
   6343     ebp = POP32_VAL(esp); /* 0x2F00651F: pop ebp */
   6344     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F006520: ret 4 */
   6345     RECOMP_REGS_OUT();
   6346 }
   6347 
   6348 void sub_2F006530(void) {
   6349     int _fpu_cmp = 0;
   6350     uint32_t _cf = 0;
   6351     int _df = 1;
   6352     uint32_t _flag_k = FK_NONE;
   6353     uint32_t _flag_a = 0, _flag_b = 0;
   6354     uint32_t _itail_tgt = 0;
   6355     RECOMP_REGS_LOCALS
   6356     RECOMP_ENTER(0x2F006530u);
   6357 
   6358 L_2F006530:
   6359     eax = MEM32(ecx + 0x14); /* 0x2F006530: mov eax, dword ptr [ecx + 0x14] */
   6360     /* cmp MEM32(ecx + 0x10), eax */ /* 0x2F006533: cmp dword ptr [ecx + 0x10], eax */
   6361     _flag_a = (uint32_t)(MEM32(ecx + 0x10)); _flag_b = (uint32_t)(eax);
   6362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6363     _flag_k = FK_CMP;
   6364     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x2F006536: sbb eax, eax */
   6365       eax = _sc ? 0xFFFFFFFFu : 0;
   6366       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6367       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6368     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   6369     _cf = (eax) != 0;
   6370     eax = (uint32_t)(-(int32_t)eax); /* 0x2F006538: neg eax */
   6371     _flag_k = FK_CMP;
   6372     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F00653A: ret  */
   6373     RECOMP_REGS_OUT();
   6374 }
   6375 
   6376 void sub_2F006540(void) {
   6377     int _fpu_cmp = 0;
   6378     uint32_t _cf = 0;
   6379     int _df = 1;
   6380     uint32_t _flag_k = FK_NONE;
   6381     uint32_t _flag_a = 0, _flag_b = 0;
   6382     uint32_t _itail_tgt = 0;
   6383     RECOMP_REGS_LOCALS
   6384     RECOMP_ENTER(0x2F006540u);
   6385 
   6386 L_2F006540:
   6387     edx = MEM32(ecx + 0x8); /* 0x2F006540: mov edx, dword ptr [ecx + 8] */
   6388     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6389     eax = 0; /* 0x2F006543: xor eax, eax */
   6390     _cf = 0;
   6391     _flag_k = FK_TEST;
   6392     /* test edx, edx */ /* 0x2F006545: test edx, edx */
   6393     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   6394     _cf = 0;
   6395     _flag_k = FK_TEST;
   6396     SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x2F006547: sete al */
   6397     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F00654A: ret  */
   6398     RECOMP_REGS_OUT();
   6399 }
   6400 
   6401 void sub_2F006550(void) {
   6402     int _fpu_cmp = 0;
   6403     uint32_t _cf = 0;
   6404     int _df = 1;
   6405     uint32_t _flag_k = FK_NONE;
   6406     uint32_t _flag_a = 0, _flag_b = 0;
   6407     uint32_t _itail_tgt = 0;
   6408     RECOMP_REGS_LOCALS
   6409     RECOMP_ENTER(0x2F006550u);
   6410 
   6411 L_2F006550:
   6412     PUSH32(esp, ebx); /* 0x2F006550: push ebx */
   6413     ebx = MEM32(0x2F013378); /* 0x2F006551: mov ebx, dword ptr [0x2f013378] */
   6414     PUSH32(esp, esi); /* 0x2F006557: push esi */
   6415     esi = ecx; /* 0x2F006558: mov esi, ecx */
   6416     edx = MEM32(esi + 0x20); /* 0x2F00655A: mov edx, dword ptr [esi + 0x20] */
   6417     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6418     eax = 0; /* 0x2F00655D: xor eax, eax */
   6419     _cf = 0;
   6420     _flag_k = FK_TEST;
   6421     /* test edx, edx */ /* 0x2F00655F: test edx, edx */
   6422     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   6423     _cf = 0;
   6424     _flag_k = FK_TEST;
   6425     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2F006561: setne al */
   6426     PUSH32(esp, edi); /* 0x2F006564: push edi */
   6427     ecx = esi + 0x44; /* 0x2F006565: lea ecx, [esi + 0x44] */
   6428     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6429     eax = eax + 1; /* 0x2F006568: inc eax */
   6430     _flag_k = FK_INC;
   6431     edi = eax; /* 0x2F006569: mov edi, eax */
   6432     RECOMP_ICALL(ebx); /* 0x2F00656B: call ebx */
   6433     RECOMP_FLAGS_IN();
   6434     ecx = esi + 0x74; /* 0x2F00656D: lea ecx, [esi + 0x74] */
   6435     RECOMP_ICALL(ebx); /* 0x2F006570: call ebx */
   6436     RECOMP_FLAGS_IN();
   6437     eax = edi; /* 0x2F006572: mov eax, edi */
   6438     edi = POP32_VAL(esp); /* 0x2F006574: pop edi */
   6439     MEM32(esi + 0x20) = 1; /* 0x2F006575: mov dword ptr [esi + 0x20], 1 */
   6440     esi = POP32_VAL(esp); /* 0x2F00657C: pop esi */
   6441     ebx = POP32_VAL(esp); /* 0x2F00657D: pop ebx */
   6442     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F00657E: ret  */
   6443     RECOMP_REGS_OUT();
   6444 }
   6445 
   6446 void sub_2F006580(void) {
   6447     int _fpu_cmp = 0;
   6448     uint32_t _cf = 0;
   6449     int _df = 1;
   6450     uint32_t _flag_k = FK_NONE;
   6451     uint32_t _flag_a = 0, _flag_b = 0;
   6452     uint32_t _itail_tgt = 0;
   6453     RECOMP_REGS_LOCALS
   6454     RECOMP_ENTER(0x2F006580u);
   6455 
   6456 L_2F006580:
   6457     edx = MEM32(ecx + 0x20); /* 0x2F006580: mov edx, dword ptr [ecx + 0x20] */
   6458     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6459     eax = 0; /* 0x2F006583: xor eax, eax */
   6460     _cf = 0;
   6461     _flag_k = FK_TEST;
   6462     /* test edx, edx */ /* 0x2F006585: test edx, edx */
   6463     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   6464     _cf = 0;
   6465     _flag_k = FK_TEST;
   6466     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2F006587: setne al */
   6467     MEM32(ecx + 0x20) = 0; /* 0x2F00658A: mov dword ptr [ecx + 0x20], 0 */
   6468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6469     eax = eax + 1; /* 0x2F006591: inc eax */
   6470     _flag_k = FK_INC;
   6471     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006592: ret  */
   6472     RECOMP_REGS_OUT();
   6473 }
   6474 
   6475 void sub_2F0065A0(void) {
   6476     int _fpu_cmp = 0;
   6477     uint32_t _cf = 0;
   6478     int _df = 1;
   6479     uint32_t _flag_k = FK_NONE;
   6480     uint32_t _flag_a = 0, _flag_b = 0;
   6481     uint32_t _itail_tgt = 0;
   6482     RECOMP_REGS_LOCALS
   6483     RECOMP_ENTER(0x2F0065A0u);
   6484 
   6485 L_2F0065A0:
   6486     PUSH32(esp, ebp); /* 0x2F0065A0: push ebp */
   6487     ebp = esp; /* 0x2F0065A1: mov ebp, esp */
   6488     PUSH32(esp, ebx); /* 0x2F0065A3: push ebx */
   6489     PUSH32(esp, esi); /* 0x2F0065A4: push esi */
   6490     esi = ecx; /* 0x2F0065A5: mov esi, ecx */
   6491     eax = MEM32(esi); /* 0x2F0065A7: mov eax, dword ptr [esi] */
   6492     PUSH32(esp, edi); /* 0x2F0065A9: push edi */
   6493     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6494     edi = 0; /* 0x2F0065AA: xor edi, edi */
   6495     _cf = 0;
   6496     _flag_k = FK_TEST;
   6497     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x2F0065AC: call dword ptr [eax + 0x80] */
   6498     RECOMP_FLAGS_IN();
   6499     /* test eax, eax */ /* 0x2F0065B2: test eax, eax */
   6500     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6501     _cf = 0;
   6502     _flag_k = FK_TEST;
   6503     if (TEST_Z(_flag_a, _flag_b)) goto L_2F00661B; /* 0x2F0065B4: je 0x2f00661b */
   6504 L_2F0065B6:
   6505     ebx = MEM32(ebp + 0xC); /* 0x2F0065B6: mov ebx, dword ptr [ebp + 0xc] */
   6506     edi = esi + 0x74; /* 0x2F0065B9: lea edi, [esi + 0x74] */
   6507 L_2F0065BC:
   6508     PUSH32(esp, ebx); /* 0x2F0065BC: push ebx */
   6509     ecx = edi; /* 0x2F0065BD: mov ecx, edi */
   6510     RECOMP_ICALL(MEM32(0x2F0133D0)); /* 0x2F0065BF: call dword ptr [0x2f0133d0] */
   6511     RECOMP_FLAGS_IN();
   6512     /* cmp eax, 0xFFFFFFFFu */ /* 0x2F0065C5: cmp eax, -1 */
   6513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6515     _flag_k = FK_CMP;
   6516     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0065E6; /* 0x2F0065C8: je 0x2f0065e6 */
   6517 L_2F0065CA:
   6518     eax = MEM32(esi + 0x20); /* 0x2F0065CA: mov eax, dword ptr [esi + 0x20] */
   6519     /* test eax, eax */ /* 0x2F0065CD: test eax, eax */
   6520     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6521     _cf = 0;
   6522     _flag_k = FK_TEST;
   6523     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F006605; /* 0x2F0065CF: jne 0x2f006605 */
   6524 L_2F0065D1:
   6525     edx = MEM32(esi); /* 0x2F0065D1: mov edx, dword ptr [esi] */
   6526     ecx = esi; /* 0x2F0065D3: mov ecx, esi */
   6527     RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x2F0065D5: call dword ptr [edx + 0x80] */
   6528     RECOMP_FLAGS_IN();
   6529     /* test eax, eax */ /* 0x2F0065DB: test eax, eax */
   6530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6531     _cf = 0;
   6532     _flag_k = FK_TEST;
   6533     RECOMP_BACKEDGE();
   6534     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0065BC; /* 0x2F0065DD: jne 0x2f0065bc */
   6535 L_2F0065DF:
   6536     edi = POP32_VAL(esp); /* 0x2F0065DF: pop edi */
   6537     esi = POP32_VAL(esp); /* 0x2F0065E0: pop esi */
   6538     ebx = POP32_VAL(esp); /* 0x2F0065E1: pop ebx */
   6539     ebp = POP32_VAL(esp); /* 0x2F0065E2: pop ebp */
   6540     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F0065E3: ret 8 */
   6541 L_2F0065E6:
   6542     esi = MEM32(0x2F0131B0); /* 0x2F0065E6: mov esi, dword ptr [0x2f0131b0] */
   6543     RECOMP_ICALL(esi); /* 0x2F0065EC: call esi */
   6544     RECOMP_FLAGS_IN();
   6545     /* cmp MEM32(eax), 0x79u */ /* 0x2F0065EE: cmp dword ptr [eax], 0x79 */
   6546     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x79u);
   6547     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6548     _flag_k = FK_CMP;
   6549     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0065FB; /* 0x2F0065F1: jne 0x2f0065fb */
   6550 L_2F0065F3:
   6551     RECOMP_ICALL(esi); /* 0x2F0065F3: call esi */
   6552     RECOMP_FLAGS_IN();
   6553     MEM32(eax) = 0x2733u; /* 0x2F0065F5: mov dword ptr [eax], 0x2733 */
   6554 L_2F0065FB:
   6555     edi = POP32_VAL(esp); /* 0x2F0065FB: pop edi */
   6556     esi = POP32_VAL(esp); /* 0x2F0065FC: pop esi */
   6557     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6558     eax = eax | 0xFFFFFFFFu; /* 0x2F0065FD: or eax, 0xffffffff */
   6559     _cf = 0;
   6560     _flag_k = FK_TEST;
   6561     ebx = POP32_VAL(esp); /* 0x2F006600: pop ebx */
   6562     ebp = POP32_VAL(esp); /* 0x2F006601: pop ebp */
   6563     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F006602: ret 8 */
   6564 L_2F006605:
   6565     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F006605: call dword ptr [0x2f0131b0] */
   6566     RECOMP_FLAGS_IN();
   6567     edi = POP32_VAL(esp); /* 0x2F00660B: pop edi */
   6568     esi = POP32_VAL(esp); /* 0x2F00660C: pop esi */
   6569     MEM32(eax) = 0x274Au; /* 0x2F00660D: mov dword ptr [eax], 0x274a */
   6570     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6571     eax = eax | 0xFFFFFFFFu; /* 0x2F006613: or eax, 0xffffffff */
   6572     _cf = 0;
   6573     _flag_k = FK_TEST;
   6574     ebx = POP32_VAL(esp); /* 0x2F006616: pop ebx */
   6575     ebp = POP32_VAL(esp); /* 0x2F006617: pop ebp */
   6576     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F006618: ret 8 */
   6577 L_2F00661B:
   6578     eax = edi; /* 0x2F00661B: mov eax, edi */
   6579     edi = POP32_VAL(esp); /* 0x2F00661D: pop edi */
   6580     esi = POP32_VAL(esp); /* 0x2F00661E: pop esi */
   6581     ebx = POP32_VAL(esp); /* 0x2F00661F: pop ebx */
   6582     ebp = POP32_VAL(esp); /* 0x2F006620: pop ebp */
   6583     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F006621: ret 8 */
   6584     RECOMP_REGS_OUT();
   6585 }
   6586 
   6587 void sub_2F006630(void) {
   6588     int _fpu_cmp = 0;
   6589     uint32_t _cf = 0;
   6590     int _df = 1;
   6591     uint32_t _flag_k = FK_NONE;
   6592     uint32_t _flag_a = 0, _flag_b = 0;
   6593     uint32_t _itail_tgt = 0;
   6594     RECOMP_REGS_LOCALS
   6595     RECOMP_ENTER(0x2F006630u);
   6596 
   6597 L_2F006630:
   6598     PUSH32(esp, ebp); /* 0x2F006630: push ebp */
   6599     ebp = esp; /* 0x2F006631: mov ebp, esp */
   6600     PUSH32(esp, ebx); /* 0x2F006633: push ebx */
   6601     PUSH32(esp, esi); /* 0x2F006634: push esi */
   6602     esi = ecx; /* 0x2F006635: mov esi, ecx */
   6603     eax = MEM32(esi); /* 0x2F006637: mov eax, dword ptr [esi] */
   6604     PUSH32(esp, edi); /* 0x2F006639: push edi */
   6605     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6606     edi = 0; /* 0x2F00663A: xor edi, edi */
   6607     _cf = 0;
   6608     _flag_k = FK_TEST;
   6609     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x2F00663C: call dword ptr [eax + 0x84] */
   6610     RECOMP_FLAGS_IN();
   6611     /* test eax, eax */ /* 0x2F006642: test eax, eax */
   6612     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6613     _cf = 0;
   6614     _flag_k = FK_TEST;
   6615     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0066AB; /* 0x2F006644: je 0x2f0066ab */
   6616 L_2F006646:
   6617     ebx = MEM32(ebp + 0xC); /* 0x2F006646: mov ebx, dword ptr [ebp + 0xc] */
   6618     edi = esi + 0x44; /* 0x2F006649: lea edi, [esi + 0x44] */
   6619 L_2F00664C:
   6620     PUSH32(esp, ebx); /* 0x2F00664C: push ebx */
   6621     ecx = edi; /* 0x2F00664D: mov ecx, edi */
   6622     RECOMP_ICALL(MEM32(0x2F0133D0)); /* 0x2F00664F: call dword ptr [0x2f0133d0] */
   6623     RECOMP_FLAGS_IN();
   6624     /* cmp eax, 0xFFFFFFFFu */ /* 0x2F006655: cmp eax, -1 */
   6625     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6627     _flag_k = FK_CMP;
   6628     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006676; /* 0x2F006658: je 0x2f006676 */
   6629 L_2F00665A:
   6630     eax = MEM32(esi + 0x20); /* 0x2F00665A: mov eax, dword ptr [esi + 0x20] */
   6631     /* test eax, eax */ /* 0x2F00665D: test eax, eax */
   6632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6633     _cf = 0;
   6634     _flag_k = FK_TEST;
   6635     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F006695; /* 0x2F00665F: jne 0x2f006695 */
   6636 L_2F006661:
   6637     edx = MEM32(esi); /* 0x2F006661: mov edx, dword ptr [esi] */
   6638     ecx = esi; /* 0x2F006663: mov ecx, esi */
   6639     RECOMP_ICALL(MEM32(edx + 0x84)); /* 0x2F006665: call dword ptr [edx + 0x84] */
   6640     RECOMP_FLAGS_IN();
   6641     /* test eax, eax */ /* 0x2F00666B: test eax, eax */
   6642     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6643     _cf = 0;
   6644     _flag_k = FK_TEST;
   6645     RECOMP_BACKEDGE();
   6646     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F00664C; /* 0x2F00666D: jne 0x2f00664c */
   6647 L_2F00666F:
   6648     edi = POP32_VAL(esp); /* 0x2F00666F: pop edi */
   6649     esi = POP32_VAL(esp); /* 0x2F006670: pop esi */
   6650     ebx = POP32_VAL(esp); /* 0x2F006671: pop ebx */
   6651     ebp = POP32_VAL(esp); /* 0x2F006672: pop ebp */
   6652     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F006673: ret 8 */
   6653 L_2F006676:
   6654     esi = MEM32(0x2F0131B0); /* 0x2F006676: mov esi, dword ptr [0x2f0131b0] */
   6655     RECOMP_ICALL(esi); /* 0x2F00667C: call esi */
   6656     RECOMP_FLAGS_IN();
   6657     /* cmp MEM32(eax), 0x79u */ /* 0x2F00667E: cmp dword ptr [eax], 0x79 */
   6658     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x79u);
   6659     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6660     _flag_k = FK_CMP;
   6661     if (CMP_NE(_flag_a, _flag_b)) goto L_2F00668B; /* 0x2F006681: jne 0x2f00668b */
   6662 L_2F006683:
   6663     RECOMP_ICALL(esi); /* 0x2F006683: call esi */
   6664     RECOMP_FLAGS_IN();
   6665     MEM32(eax) = 0x2733u; /* 0x2F006685: mov dword ptr [eax], 0x2733 */
   6666 L_2F00668B:
   6667     edi = POP32_VAL(esp); /* 0x2F00668B: pop edi */
   6668     esi = POP32_VAL(esp); /* 0x2F00668C: pop esi */
   6669     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6670     eax = eax | 0xFFFFFFFFu; /* 0x2F00668D: or eax, 0xffffffff */
   6671     _cf = 0;
   6672     _flag_k = FK_TEST;
   6673     ebx = POP32_VAL(esp); /* 0x2F006690: pop ebx */
   6674     ebp = POP32_VAL(esp); /* 0x2F006691: pop ebp */
   6675     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F006692: ret 8 */
   6676 L_2F006695:
   6677     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F006695: call dword ptr [0x2f0131b0] */
   6678     RECOMP_FLAGS_IN();
   6679     edi = POP32_VAL(esp); /* 0x2F00669B: pop edi */
   6680     esi = POP32_VAL(esp); /* 0x2F00669C: pop esi */
   6681     MEM32(eax) = 0x274Au; /* 0x2F00669D: mov dword ptr [eax], 0x274a */
   6682     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6683     eax = eax | 0xFFFFFFFFu; /* 0x2F0066A3: or eax, 0xffffffff */
   6684     _cf = 0;
   6685     _flag_k = FK_TEST;
   6686     ebx = POP32_VAL(esp); /* 0x2F0066A6: pop ebx */
   6687     ebp = POP32_VAL(esp); /* 0x2F0066A7: pop ebp */
   6688     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F0066A8: ret 8 */
   6689 L_2F0066AB:
   6690     eax = edi; /* 0x2F0066AB: mov eax, edi */
   6691     edi = POP32_VAL(esp); /* 0x2F0066AD: pop edi */
   6692     esi = POP32_VAL(esp); /* 0x2F0066AE: pop esi */
   6693     ebx = POP32_VAL(esp); /* 0x2F0066AF: pop ebx */
   6694     ebp = POP32_VAL(esp); /* 0x2F0066B0: pop ebp */
   6695     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2F0066B1: ret 8 */
   6696     RECOMP_REGS_OUT();
   6697 }
   6698 
   6699 void sub_2F0066C0(void) {
   6700     int _fpu_cmp = 0;
   6701     uint32_t _cf = 0;
   6702     int _df = 1;
   6703     uint32_t _flag_k = FK_NONE;
   6704     uint32_t _flag_a = 0, _flag_b = 0;
   6705     uint32_t _itail_tgt = 0;
   6706     RECOMP_REGS_LOCALS
   6707     RECOMP_ENTER(0x2F0066C0u);
   6708 
   6709 L_2F0066C0:
   6710     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x74u);
   6711     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6712     ecx = ecx + 0x74u; /* 0x2F0066C0: add ecx, 0x74 */
   6713     _flag_k = FK_ADD;
   6714     RECOMP_ICALL(MEM32(0x2F013328)); /* 0x2F0066C3: call dword ptr [0x2f013328] */
   6715     RECOMP_FLAGS_IN();
   6716     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   6717     _cf = (eax) != 0;
   6718     eax = (uint32_t)(-(int32_t)eax); /* 0x2F0066C9: neg eax */
   6719     _flag_k = FK_CMP;
   6720     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x2F0066CB: sbb eax, eax */
   6721       eax = _sc ? 0xFFFFFFFFu : 0;
   6722       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6723       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6724     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0066CD: ret  */
   6725     RECOMP_REGS_OUT();
   6726 }
   6727 
   6728 void sub_2F0066D0(void) {
   6729     int _fpu_cmp = 0;
   6730     uint32_t _cf = 0;
   6731     int _df = 1;
   6732     uint32_t _flag_k = FK_NONE;
   6733     uint32_t _flag_a = 0, _flag_b = 0;
   6734     uint32_t _itail_tgt = 0;
   6735     RECOMP_REGS_LOCALS
   6736     RECOMP_ENTER(0x2F0066D0u);
   6737 
   6738 L_2F0066D0:
   6739     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x44u);
   6740     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6741     ecx = ecx + 0x44u; /* 0x2F0066D0: add ecx, 0x44 */
   6742     _flag_k = FK_ADD;
   6743     RECOMP_ICALL(MEM32(0x2F013328)); /* 0x2F0066D3: call dword ptr [0x2f013328] */
   6744     RECOMP_FLAGS_IN();
   6745     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   6746     _cf = (eax) != 0;
   6747     eax = (uint32_t)(-(int32_t)eax); /* 0x2F0066D9: neg eax */
   6748     _flag_k = FK_CMP;
   6749     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x2F0066DB: sbb eax, eax */
   6750       eax = _sc ? 0xFFFFFFFFu : 0;
   6751       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6752       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6753     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0066DD: ret  */
   6754     RECOMP_REGS_OUT();
   6755 }
   6756 
   6757 void sub_2F0066E0(void) {
   6758     int _fpu_cmp = 0;
   6759     uint32_t _cf = 0;
   6760     int _df = 1;
   6761     uint32_t _flag_k = FK_NONE;
   6762     uint32_t _flag_a = 0, _flag_b = 0;
   6763     uint32_t _itail_tgt = 0;
   6764     RECOMP_REGS_LOCALS
   6765     RECOMP_ENTER(0x2F0066E0u);
   6766 
   6767 L_2F0066E0:
   6768     PUSH32(esp, ebp); /* 0x2F0066E0: push ebp */
   6769     ebp = esp; /* 0x2F0066E1: mov ebp, esp */
   6770     PUSH32(esp, esi); /* 0x2F0066E3: push esi */
   6771     esi = ecx; /* 0x2F0066E4: mov esi, ecx */
   6772     RECOMP_ICALL(0x2F006710u); /* 0x2F0066E6: call 0x2f006710 */ /* not lifted */
   6773     RECOMP_FLAGS_IN();
   6774     /* test MEM8(ebp + 0x8), 1 */ /* 0x2F0066EB: test byte ptr [ebp + 8], 1 */
   6775     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6776     _cf = 0;
   6777     _flag_k = FK_NARROW(FK_TEST, 24);
   6778     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0066FA; /* 0x2F0066EF: je 0x2f0066fa */
   6779 L_2F0066F1:
   6780     PUSH32(esp, esi); /* 0x2F0066F1: push esi */
   6781     RECOMP_ICALL(0x2F0116B4u); /* 0x2F0066F2: call 0x2f0116b4 */ /* not lifted */
   6782     RECOMP_FLAGS_IN();
   6783     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6784     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6785     esp = esp + 4; /* 0x2F0066F7: add esp, 4 */
   6786     _flag_k = FK_ADD;
   6787 L_2F0066FA:
   6788     eax = esi; /* 0x2F0066FA: mov eax, esi */
   6789     esi = POP32_VAL(esp); /* 0x2F0066FC: pop esi */
   6790     ebp = POP32_VAL(esp); /* 0x2F0066FD: pop ebp */
   6791     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0066FE: ret 4 */
   6792     RECOMP_REGS_OUT();
   6793 }
   6794 
   6795 void sub_2F006710(void) {
   6796     int _fpu_cmp = 0;
   6797     uint32_t _cf = 0;
   6798     int _df = 1;
   6799     uint32_t _flag_k = FK_NONE;
   6800     uint32_t _flag_a = 0, _flag_b = 0;
   6801     uint32_t _itail_tgt = 0;
   6802     RECOMP_REGS_LOCALS
   6803     RECOMP_ENTER(0x2F006710u);
   6804 
   6805 L_2F006710:
   6806     PUSH32(esp, ebp); /* 0x2F006710: push ebp */
   6807     ebp = esp; /* 0x2F006711: mov ebp, esp */
   6808     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F006713: push -1 */
   6809     PUSH32(esp, 0x2F0121B5u); /* 0x2F006715: push 0x2f0121b5 */
   6810     eax = MEM32(FS_BASE + (0)); /* 0x2F00671A: mov eax, dword ptr fs:[0] */
   6811     PUSH32(esp, eax); /* 0x2F006720: push eax */
   6812     MEM32(FS_BASE + (0)) = esp; /* 0x2F006721: mov dword ptr fs:[0], esp */
   6813     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6815     esp = esp - 0x10u; /* 0x2F006728: sub esp, 0x10 */
   6816     _flag_k = FK_CMP;
   6817     PUSH32(esp, ebx); /* 0x2F00672B: push ebx */
   6818     PUSH32(esp, esi); /* 0x2F00672C: push esi */
   6819     esi = ecx; /* 0x2F00672D: mov esi, ecx */
   6820     PUSH32(esp, edi); /* 0x2F00672F: push edi */
   6821     MEM32(ebp + (-0x14)) = esi; /* 0x2F006730: mov dword ptr [ebp - 0x14], esi */
   6822     MEM32(esi) = 0x2F0137E8u; /* 0x2F006733: mov dword ptr [esi], 0x2f0137e8 */
   6823     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6824     ebx = 0; /* 0x2F006739: xor ebx, ebx */
   6825     _cf = 0;
   6826     _flag_k = FK_TEST;
   6827     MEM32(ebp + (-0x4)) = ebx; /* 0x2F00673B: mov dword ptr [ebp - 4], ebx */
   6828     /* cmp MEM32(esi + 0x4), ebx */ /* 0x2F00673E: cmp dword ptr [esi + 4], ebx */
   6829     _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(ebx);
   6830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6831     _flag_k = FK_CMP;
   6832     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006823; /* 0x2F006741: je 0x2f006823 */
   6833 L_2F006747:
   6834     edi = esi + 0x28; /* 0x2F006747: lea edi, [esi + 0x28] */
   6835     PUSH32(esp, edi); /* 0x2F00674A: push edi */
   6836     MEM32(ebp + (-0x1C)) = edi; /* 0x2F00674B: mov dword ptr [ebp - 0x1c], edi */
   6837     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F00674E: call dword ptr [0x2f013014] */
   6838     RECOMP_FLAGS_IN();
   6839     MEM32(ebp + (-0x18)) = ebx; /* 0x2F006754: mov dword ptr [ebp - 0x18], ebx */
   6840     eax = MEM32(esi); /* 0x2F006757: mov eax, dword ptr [esi] */
   6841     ecx = esi; /* 0x2F006759: mov ecx, esi */
   6842     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2F00675B: mov byte ptr [ebp - 4], 4 */
   6843     RECOMP_ICALL(MEM32(eax + 0x88)); /* 0x2F00675F: call dword ptr [eax + 0x88] */
   6844     RECOMP_FLAGS_IN();
   6845     ecx = MEM32(esi + 0x4); /* 0x2F006765: mov ecx, dword ptr [esi + 4] */
   6846     /* cmp ecx, ebx */ /* 0x2F006768: cmp ecx, ebx */
   6847     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   6848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6849     _flag_k = FK_CMP;
   6850     MEM32(ebp + (-0x10)) = eax; /* 0x2F00676A: mov dword ptr [ebp - 0x10], eax */
   6851     MEM32(esi + 0x8) = ebx; /* 0x2F00676D: mov dword ptr [esi + 8], ebx */
   6852     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0067AE; /* 0x2F006770: je 0x2f0067ae */
   6853 L_2F006772:
   6854     edi = MEM32(0x2F013398); /* 0x2F006772: mov edi, dword ptr [0x2f013398] */
   6855     ebx = MEM32(0x2F01339C); /* 0x2F006778: mov ebx, dword ptr [0x2f01339c] */
   6856 L_2F00677E:
   6857     _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(1);
   6858     MEM32(esi + 0x1C) = MEM32(esi + 0x1C) - 1; /* 0x2F00677E: dec dword ptr [esi + 0x1c] */
   6859     _flag_k = FK_DEC;
   6860     RECOMP_ICALL(edi); /* 0x2F006781: call edi */
   6861     RECOMP_FLAGS_IN();
   6862     edx = MEM32(esi + 0x14); /* 0x2F006783: mov edx, dword ptr [esi + 0x14] */
   6863     ecx = MEM32(esi + 0x4); /* 0x2F006786: mov ecx, dword ptr [esi + 4] */
   6864     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6866     edx = edx - eax; /* 0x2F006789: sub edx, eax */
   6867     _flag_k = FK_CMP;
   6868     MEM32(esi + 0x14) = edx; /* 0x2F00678B: mov dword ptr [esi + 0x14], edx */
   6869     RECOMP_ICALL(ebx); /* 0x2F00678E: call ebx */
   6870     RECOMP_FLAGS_IN();
   6871     _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(eax);
   6872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6873     MEM32(esi + 0x18) = MEM32(esi + 0x18) - eax; /* 0x2F006790: sub dword ptr [esi + 0x18], eax */
   6874     _flag_k = FK_CMP;
   6875     ecx = MEM32(esi + 0x4); /* 0x2F006793: mov ecx, dword ptr [esi + 4] */
   6876     eax = MEM32(ecx + 0x24); /* 0x2F006796: mov eax, dword ptr [ecx + 0x24] */
   6877     MEM32(esi + 0x4) = eax; /* 0x2F006799: mov dword ptr [esi + 4], eax */
   6878     RECOMP_ICALL(MEM32(0x2F0133A0)); /* 0x2F00679C: call dword ptr [0x2f0133a0] */
   6879     RECOMP_FLAGS_IN();
   6880     ecx = MEM32(esi + 0x4); /* 0x2F0067A2: mov ecx, dword ptr [esi + 4] */
   6881     /* test ecx, ecx */ /* 0x2F0067A5: test ecx, ecx */
   6882     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6883     _cf = 0;
   6884     _flag_k = FK_TEST;
   6885     RECOMP_BACKEDGE();
   6886     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F00677E; /* 0x2F0067A7: jne 0x2f00677e */
   6887 L_2F0067A9:
   6888     edi = MEM32(ebp + (-0x1C)); /* 0x2F0067A9: mov edi, dword ptr [ebp - 0x1c] */
   6889     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6890     ebx = 0; /* 0x2F0067AC: xor ebx, ebx */
   6891     _cf = 0;
   6892     _flag_k = FK_TEST;
   6893 L_2F0067AE:
   6894     PUSH32(esp, edi); /* 0x2F0067AE: push edi */
   6895     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2F0067AF: mov byte ptr [ebp - 4], 3 */
   6896     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F0067B3: call dword ptr [0x2f013058] */
   6897     RECOMP_FLAGS_IN();
   6898     /* cmp MEM32(ebp + (-0x10)), 0xFFFFFFFFu */ /* 0x2F0067B9: cmp dword ptr [ebp - 0x10], -1 */
   6899     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6901     _flag_k = FK_CMP;
   6902     if (CMP_NE(_flag_a, _flag_b)) goto L_2F006823; /* 0x2F0067BD: jne 0x2f006823 */
   6903 L_2F0067BF:
   6904     RECOMP_ICALL(MEM32(0x2F013020)); /* 0x2F0067BF: call dword ptr [0x2f013020] */
   6905     RECOMP_FLAGS_IN();
   6906     edi = eax; /* 0x2F0067C5: mov edi, eax */
   6907     RECOMP_ICALL(MEM32(0x2F0131B0)); /* 0x2F0067C7: call dword ptr [0x2f0131b0] */
   6908     RECOMP_FLAGS_IN();
   6909     eax = MEM32(eax); /* 0x2F0067CD: mov eax, dword ptr [eax] */
   6910     /* cmp eax, ebx */ /* 0x2F0067CF: cmp eax, ebx */
   6911     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6913     _flag_k = FK_CMP;
   6914     ebx = edi; /* 0x2F0067D1: mov ebx, edi */
   6915     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0067D7; /* 0x2F0067D3: je 0x2f0067d7 */
   6916 L_2F0067D5:
   6917     ebx = eax; /* 0x2F0067D5: mov ebx, eax */
   6918 L_2F0067D7:
   6919     RECOMP_ICALL(MEM32(0x2F01337C)); /* 0x2F0067D7: call dword ptr [0x2f01337c] */
   6920     RECOMP_FLAGS_IN();
   6921     edi = eax; /* 0x2F0067DD: mov edi, eax */
   6922     ecx = edi; /* 0x2F0067DF: mov ecx, edi */
   6923     RECOMP_ICALL(MEM32(0x2F013380)); /* 0x2F0067E1: call dword ptr [0x2f013380] */
   6924     RECOMP_FLAGS_IN();
   6925     PUSH32(esp, eax); /* 0x2F0067E7: push eax */
   6926     ecx = edi; /* 0x2F0067E8: mov ecx, edi */
   6927     RECOMP_ICALL(MEM32(0x2F013384)); /* 0x2F0067EA: call dword ptr [0x2f013384] */
   6928     RECOMP_FLAGS_IN();
   6929     PUSH32(esp, eax); /* 0x2F0067F0: push eax */
   6930     ecx = edi; /* 0x2F0067F1: mov ecx, edi */
   6931     RECOMP_ICALL(MEM32(0x2F013388)); /* 0x2F0067F3: call dword ptr [0x2f013388] */
   6932     RECOMP_FLAGS_IN();
   6933     PUSH32(esp, eax); /* 0x2F0067F9: push eax */
   6934     PUSH32(esp, ebx); /* 0x2F0067FA: push ebx */
   6935     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F0067FB: push -1 */
   6936     PUSH32(esp, 0xBFu); /* 0x2F0067FD: push 0xbf */
   6937     PUSH32(esp, 0x2F01D698u); /* 0x2F006802: push 0x2f01d698 */
   6938     ecx = edi; /* 0x2F006807: mov ecx, edi */
   6939     RECOMP_ICALL(MEM32(0x2F01338C)); /* 0x2F006809: call dword ptr [0x2f01338c] */
   6940     RECOMP_FLAGS_IN();
   6941     PUSH32(esp, 0x2F01D700u); /* 0x2F00680F: push 0x2f01d700 */
   6942     PUSH32(esp, 0x80u); /* 0x2F006814: push 0x80 */
   6943     PUSH32(esp, edi); /* 0x2F006819: push edi */
   6944     RECOMP_ICALL(MEM32(0x2F013390)); /* 0x2F00681A: call dword ptr [0x2f013390] */
   6945     RECOMP_FLAGS_IN();
   6946     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6947     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6948     esp = esp + 0xCu; /* 0x2F006820: add esp, 0xc */
   6949     _flag_k = FK_ADD;
   6950 L_2F006823:
   6951     edi = MEM32(0x2F0133B0); /* 0x2F006823: mov edi, dword ptr [0x2f0133b0] */
   6952     ecx = esi + 0x74; /* 0x2F006829: lea ecx, [esi + 0x74] */
   6953     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2F00682C: mov byte ptr [ebp - 4], 2 */
   6954     RECOMP_ICALL(edi); /* 0x2F006830: call edi */
   6955     RECOMP_FLAGS_IN();
   6956     ecx = esi + 0x44; /* 0x2F006832: lea ecx, [esi + 0x44] */
   6957     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2F006835: mov byte ptr [ebp - 4], 1 */
   6958     RECOMP_ICALL(edi); /* 0x2F006839: call edi */
   6959     RECOMP_FLAGS_IN();
   6960     ecx = esi + 0x28; /* 0x2F00683B: lea ecx, [esi + 0x28] */
   6961     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2F00683E: mov byte ptr [ebp - 4], 0 */
   6962     RECOMP_ICALL(MEM32(0x2F013314)); /* 0x2F006842: call dword ptr [0x2f013314] */
   6963     RECOMP_FLAGS_IN();
   6964     ecx = MEM32(0x2F0133A4); /* 0x2F006848: mov ecx, dword ptr [0x2f0133a4] */
   6965     MEM32(esi) = ecx; /* 0x2F00684E: mov dword ptr [esi], ecx */
   6966     ecx = MEM32(ebp + (-0xC)); /* 0x2F006850: mov ecx, dword ptr [ebp - 0xc] */
   6967     edi = POP32_VAL(esp); /* 0x2F006853: pop edi */
   6968     esi = POP32_VAL(esp); /* 0x2F006854: pop esi */
   6969     ebx = POP32_VAL(esp); /* 0x2F006855: pop ebx */
   6970     MEM32(FS_BASE + (0)) = ecx; /* 0x2F006856: mov dword ptr fs:[0], ecx */
   6971     esp = ebp; /* 0x2F00685D: mov esp, ebp */
   6972     ebp = POP32_VAL(esp); /* 0x2F00685F: pop ebp */
   6973     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006860: ret  */
   6974     RECOMP_REGS_OUT();
   6975 }
   6976 
   6977 void sub_2F006870(void) {
   6978     int _fpu_cmp = 0;
   6979     uint32_t _cf = 0;
   6980     int _df = 1;
   6981     uint32_t _flag_k = FK_NONE;
   6982     uint32_t _flag_a = 0, _flag_b = 0;
   6983     uint32_t _itail_tgt = 0;
   6984     RECOMP_REGS_LOCALS
   6985     RECOMP_ENTER(0x2F006870u);
   6986 
   6987 L_2F006870:
   6988     edx = MEM32(ecx + 0x4); /* 0x2F006870: mov edx, dword ptr [ecx + 4] */
   6989 L_2F006873:
   6990     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   6991     eax = eax | 0xFFFFFFFFu; /* 0x2F006873: or eax, 0xffffffff */
   6992     _cf = 0;
   6993     _flag_k = FK_TEST;
   6994 L_2F006876:
   6995     /* cmp edx, eax */ /* 0x2F006876: cmp edx, eax */
   6996     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6998     _flag_k = FK_CMP;
   6999 L_2F006878:
   7000     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2F006885; /* 0x2F006878: je 0x2f006885 */
   7001 L_2F00687A:
   7002     MEM32(ecx + 0x4) = eax; /* 0x2F00687A: mov dword ptr [ecx + 4], eax */
   7003 L_2F00687D:
   7004     ecx = MEM32(ecx); /* 0x2F00687D: mov ecx, dword ptr [ecx] */
   7005 L_2F00687F:
   7006     { _itail_tgt = (uint32_t)(MEM32(0x2F0133B4)); goto _ljump; }
   7007 L_2F006885:
   7008     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006885: ret  */
   7009   _ljump:
   7010     switch (_itail_tgt) {
   7011       case 0x2F006870u: goto L_2F006870;
   7012       case 0x2F006873u: goto L_2F006873;
   7013       case 0x2F006876u: goto L_2F006876;
   7014       case 0x2F006878u: goto L_2F006878;
   7015       case 0x2F00687Au: goto L_2F00687A;
   7016       case 0x2F00687Du: goto L_2F00687D;
   7017       case 0x2F00687Fu: goto L_2F00687F;
   7018       case 0x2F006885u: goto L_2F006885;
   7019       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7020     }
   7021     RECOMP_REGS_OUT();
   7022 }
   7023 
   7024 void sub_2F006890(void) {
   7025     int _fpu_cmp = 0;
   7026     uint32_t _cf = 0;
   7027     int _df = 1;
   7028     uint32_t _flag_k = FK_NONE;
   7029     uint32_t _flag_a = 0, _flag_b = 0;
   7030     uint32_t _itail_tgt = 0;
   7031     RECOMP_REGS_LOCALS
   7032     RECOMP_ENTER(0x2F006890u);
   7033 
   7034 L_2F006890:
   7035     edx = MEM32(ecx + 0x4); /* 0x2F006890: mov edx, dword ptr [ecx + 4] */
   7036 L_2F006893:
   7037     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7038     eax = eax | 0xFFFFFFFFu; /* 0x2F006893: or eax, 0xffffffff */
   7039     _cf = 0;
   7040     _flag_k = FK_TEST;
   7041 L_2F006896:
   7042     /* cmp edx, eax */ /* 0x2F006896: cmp edx, eax */
   7043     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7044     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7045     _flag_k = FK_CMP;
   7046 L_2F006898:
   7047     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2F0068A5; /* 0x2F006898: je 0x2f0068a5 */
   7048 L_2F00689A:
   7049     MEM32(ecx + 0x4) = eax; /* 0x2F00689A: mov dword ptr [ecx + 4], eax */
   7050 L_2F00689D:
   7051     ecx = MEM32(ecx); /* 0x2F00689D: mov ecx, dword ptr [ecx] */
   7052 L_2F00689F:
   7053     { _itail_tgt = (uint32_t)(MEM32(0x2F0133B4)); goto _ljump; }
   7054 L_2F0068A5:
   7055     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7056     eax = 0; /* 0x2F0068A5: xor eax, eax */
   7057     _cf = 0;
   7058     _flag_k = FK_TEST;
   7059 L_2F0068A7:
   7060     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0068A7: ret  */
   7061   _ljump:
   7062     switch (_itail_tgt) {
   7063       case 0x2F006890u: goto L_2F006890;
   7064       case 0x2F006893u: goto L_2F006893;
   7065       case 0x2F006896u: goto L_2F006896;
   7066       case 0x2F006898u: goto L_2F006898;
   7067       case 0x2F00689Au: goto L_2F00689A;
   7068       case 0x2F00689Du: goto L_2F00689D;
   7069       case 0x2F00689Fu: goto L_2F00689F;
   7070       case 0x2F0068A5u: goto L_2F0068A5;
   7071       case 0x2F0068A7u: goto L_2F0068A7;
   7072       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   7073     }
   7074     RECOMP_REGS_OUT();
   7075 }
   7076 
   7077 void sub_2F0068B0(void) {
   7078     int _fpu_cmp = 0;
   7079     uint32_t _cf = 0;
   7080     int _df = 1;
   7081     uint32_t _flag_k = FK_NONE;
   7082     uint32_t _flag_a = 0, _flag_b = 0;
   7083     uint32_t _itail_tgt = 0;
   7084     RECOMP_REGS_LOCALS
   7085     RECOMP_ENTER(0x2F0068B0u);
   7086 
   7087     goto L_2F0068B0;
   7088 L_2F001380:
   7089     PUSH32(esp, ebp); /* 0x2F001380: push ebp */
   7090     ebp = esp; /* 0x2F001381: mov ebp, esp */
   7091     PUSH32(esp, ebx); /* 0x2F001383: push ebx */
   7092     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x2F001384: mov bl, byte ptr [ebp + 8] */
   7093     /* test LO8(ebx), 2 */ /* 0x2F001387: test bl, 2 */
   7094     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   7095     _cf = 0;
   7096     _flag_k = FK_NARROW(FK_TEST, 24);
   7097     PUSH32(esp, esi); /* 0x2F00138A: push esi */
   7098     esi = ecx; /* 0x2F00138B: mov esi, ecx */
   7099     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0013BE; /* 0x2F00138D: je 0x2f0013be */
   7100 L_2F00138F:
   7101     eax = MEM32(esi + (-0x4)); /* 0x2F00138F: mov eax, dword ptr [esi - 4] */
   7102     PUSH32(esp, edi); /* 0x2F001392: push edi */
   7103     PUSH32(esp, 0x2F001190u); /* 0x2F001393: push 0x2f001190 */
   7104     edi = esi + (-0x4); /* 0x2F001398: lea edi, [esi - 4] */
   7105     PUSH32(esp, eax); /* 0x2F00139B: push eax */
   7106     PUSH32(esp, 0x144u); /* 0x2F00139C: push 0x144 */
   7107     PUSH32(esp, esi); /* 0x2F0013A1: push esi */
   7108     RECOMP_ICALL(0x2F0116DCu); /* 0x2F0013A2: call 0x2f0116dc */ /* not lifted */
   7109     RECOMP_FLAGS_IN();
   7110     /* test LO8(ebx), 1 */ /* 0x2F0013A7: test bl, 1 */
   7111     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7112     _cf = 0;
   7113     _flag_k = FK_NARROW(FK_TEST, 24);
   7114     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0013B5; /* 0x2F0013AA: je 0x2f0013b5 */
   7115 L_2F0013AC:
   7116     PUSH32(esp, edi); /* 0x2F0013AC: push edi */
   7117     RECOMP_ICALL(0x2F0116B4u); /* 0x2F0013AD: call 0x2f0116b4 */ /* not lifted */
   7118     RECOMP_FLAGS_IN();
   7119     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7120     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7121     esp = esp + 4; /* 0x2F0013B2: add esp, 4 */
   7122     _flag_k = FK_ADD;
   7123 L_2F0013B5:
   7124     eax = edi; /* 0x2F0013B5: mov eax, edi */
   7125     edi = POP32_VAL(esp); /* 0x2F0013B7: pop edi */
   7126     esi = POP32_VAL(esp); /* 0x2F0013B8: pop esi */
   7127     ebx = POP32_VAL(esp); /* 0x2F0013B9: pop ebx */
   7128     ebp = POP32_VAL(esp); /* 0x2F0013BA: pop ebp */
   7129     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0013BB: ret 4 */
   7130 L_2F0013BE:
   7131     ecx = esi; /* 0x2F0013BE: mov ecx, esi */
   7132     RECOMP_ICALL(0x2F001190u); /* 0x2F0013C0: call 0x2f001190 */ /* not lifted */
   7133     RECOMP_FLAGS_IN();
   7134     /* test LO8(ebx), 1 */ /* 0x2F0013C5: test bl, 1 */
   7135     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7136     _cf = 0;
   7137     _flag_k = FK_NARROW(FK_TEST, 24);
   7138     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0013D3; /* 0x2F0013C8: je 0x2f0013d3 */
   7139 L_2F0013CA:
   7140     PUSH32(esp, esi); /* 0x2F0013CA: push esi */
   7141     RECOMP_ICALL(0x2F0116B4u); /* 0x2F0013CB: call 0x2f0116b4 */ /* not lifted */
   7142     RECOMP_FLAGS_IN();
   7143     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7144     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7145     esp = esp + 4; /* 0x2F0013D0: add esp, 4 */
   7146     _flag_k = FK_ADD;
   7147 L_2F0013D3:
   7148     eax = esi; /* 0x2F0013D3: mov eax, esi */
   7149     esi = POP32_VAL(esp); /* 0x2F0013D5: pop esi */
   7150     ebx = POP32_VAL(esp); /* 0x2F0013D6: pop ebx */
   7151     ebp = POP32_VAL(esp); /* 0x2F0013D7: pop ebp */
   7152     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0013D8: ret 4 */
   7153 L_2F0068B0:
   7154     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   7155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7156     ecx = ecx - 0xCu; /* 0x2F0068B0: sub ecx, 0xc */
   7157     _flag_k = FK_CMP;
   7158     RECOMP_BACKEDGE();
   7159     goto L_2F001380; /* 0x2F0068B3: jmp 0x2f001380 */
   7160     { RECOMP_REGS_OUT(); return; } /* end of function */
   7161     RECOMP_REGS_OUT();
   7162 }
   7163 
   7164 void sub_2F0068C0(void) {
   7165     int _fpu_cmp = 0;
   7166     uint32_t _cf = 0;
   7167     int _df = 1;
   7168     uint32_t _flag_k = FK_NONE;
   7169     uint32_t _flag_a = 0, _flag_b = 0;
   7170     uint32_t _itail_tgt = 0;
   7171     RECOMP_REGS_LOCALS
   7172     RECOMP_ENTER(0x2F0068C0u);
   7173 
   7174     goto L_2F0068C0;
   7175 L_2F001380:
   7176     PUSH32(esp, ebp); /* 0x2F001380: push ebp */
   7177     ebp = esp; /* 0x2F001381: mov ebp, esp */
   7178     PUSH32(esp, ebx); /* 0x2F001383: push ebx */
   7179     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x2F001384: mov bl, byte ptr [ebp + 8] */
   7180     /* test LO8(ebx), 2 */ /* 0x2F001387: test bl, 2 */
   7181     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   7182     _cf = 0;
   7183     _flag_k = FK_NARROW(FK_TEST, 24);
   7184     PUSH32(esp, esi); /* 0x2F00138A: push esi */
   7185     esi = ecx; /* 0x2F00138B: mov esi, ecx */
   7186     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0013BE; /* 0x2F00138D: je 0x2f0013be */
   7187 L_2F00138F:
   7188     eax = MEM32(esi + (-0x4)); /* 0x2F00138F: mov eax, dword ptr [esi - 4] */
   7189     PUSH32(esp, edi); /* 0x2F001392: push edi */
   7190     PUSH32(esp, 0x2F001190u); /* 0x2F001393: push 0x2f001190 */
   7191     edi = esi + (-0x4); /* 0x2F001398: lea edi, [esi - 4] */
   7192     PUSH32(esp, eax); /* 0x2F00139B: push eax */
   7193     PUSH32(esp, 0x144u); /* 0x2F00139C: push 0x144 */
   7194     PUSH32(esp, esi); /* 0x2F0013A1: push esi */
   7195     RECOMP_ICALL(0x2F0116DCu); /* 0x2F0013A2: call 0x2f0116dc */ /* not lifted */
   7196     RECOMP_FLAGS_IN();
   7197     /* test LO8(ebx), 1 */ /* 0x2F0013A7: test bl, 1 */
   7198     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7199     _cf = 0;
   7200     _flag_k = FK_NARROW(FK_TEST, 24);
   7201     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0013B5; /* 0x2F0013AA: je 0x2f0013b5 */
   7202 L_2F0013AC:
   7203     PUSH32(esp, edi); /* 0x2F0013AC: push edi */
   7204     RECOMP_ICALL(0x2F0116B4u); /* 0x2F0013AD: call 0x2f0116b4 */ /* not lifted */
   7205     RECOMP_FLAGS_IN();
   7206     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7207     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7208     esp = esp + 4; /* 0x2F0013B2: add esp, 4 */
   7209     _flag_k = FK_ADD;
   7210 L_2F0013B5:
   7211     eax = edi; /* 0x2F0013B5: mov eax, edi */
   7212     edi = POP32_VAL(esp); /* 0x2F0013B7: pop edi */
   7213     esi = POP32_VAL(esp); /* 0x2F0013B8: pop esi */
   7214     ebx = POP32_VAL(esp); /* 0x2F0013B9: pop ebx */
   7215     ebp = POP32_VAL(esp); /* 0x2F0013BA: pop ebp */
   7216     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0013BB: ret 4 */
   7217 L_2F0013BE:
   7218     ecx = esi; /* 0x2F0013BE: mov ecx, esi */
   7219     RECOMP_ICALL(0x2F001190u); /* 0x2F0013C0: call 0x2f001190 */ /* not lifted */
   7220     RECOMP_FLAGS_IN();
   7221     /* test LO8(ebx), 1 */ /* 0x2F0013C5: test bl, 1 */
   7222     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7223     _cf = 0;
   7224     _flag_k = FK_NARROW(FK_TEST, 24);
   7225     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0013D3; /* 0x2F0013C8: je 0x2f0013d3 */
   7226 L_2F0013CA:
   7227     PUSH32(esp, esi); /* 0x2F0013CA: push esi */
   7228     RECOMP_ICALL(0x2F0116B4u); /* 0x2F0013CB: call 0x2f0116b4 */ /* not lifted */
   7229     RECOMP_FLAGS_IN();
   7230     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7231     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7232     esp = esp + 4; /* 0x2F0013D0: add esp, 4 */
   7233     _flag_k = FK_ADD;
   7234 L_2F0013D3:
   7235     eax = esi; /* 0x2F0013D3: mov eax, esi */
   7236     esi = POP32_VAL(esp); /* 0x2F0013D5: pop esi */
   7237     ebx = POP32_VAL(esp); /* 0x2F0013D6: pop ebx */
   7238     ebp = POP32_VAL(esp); /* 0x2F0013D7: pop ebp */
   7239     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0013D8: ret 4 */
   7240 L_2F0068C0:
   7241     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu);
   7242     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7243     ecx = ecx - 0x4Cu; /* 0x2F0068C0: sub ecx, 0x4c */
   7244     _flag_k = FK_CMP;
   7245     RECOMP_BACKEDGE();
   7246     goto L_2F001380; /* 0x2F0068C3: jmp 0x2f001380 */
   7247     { RECOMP_REGS_OUT(); return; } /* end of function */
   7248     RECOMP_REGS_OUT();
   7249 }
   7250 
   7251 void sub_2F0068D0(void) {
   7252     int _fpu_cmp = 0;
   7253     uint32_t _cf = 0;
   7254     int _df = 1;
   7255     uint32_t _flag_k = FK_NONE;
   7256     uint32_t _flag_a = 0, _flag_b = 0;
   7257     uint32_t _itail_tgt = 0;
   7258     RECOMP_REGS_LOCALS
   7259     RECOMP_ENTER(0x2F0068D0u);
   7260 
   7261     goto L_2F0068D0;
   7262 L_2F0055F0:
   7263     PUSH32(esp, ebp); /* 0x2F0055F0: push ebp */
   7264     ebp = esp; /* 0x2F0055F1: mov ebp, esp */
   7265     PUSH32(esp, esi); /* 0x2F0055F3: push esi */
   7266     esi = ecx; /* 0x2F0055F4: mov esi, ecx */
   7267     RECOMP_ICALL(0x2F0053D0u); /* 0x2F0055F6: call 0x2f0053d0 */ /* not lifted */
   7268     RECOMP_FLAGS_IN();
   7269     /* test MEM8(ebp + 0x8), 1 */ /* 0x2F0055FB: test byte ptr [ebp + 8], 1 */
   7270     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7271     _cf = 0;
   7272     _flag_k = FK_NARROW(FK_TEST, 24);
   7273     if (TEST_Z(_flag_a, _flag_b)) goto L_2F00560A; /* 0x2F0055FF: je 0x2f00560a */
   7274 L_2F005601:
   7275     PUSH32(esp, esi); /* 0x2F005601: push esi */
   7276     RECOMP_ICALL(0x2F0116B4u); /* 0x2F005602: call 0x2f0116b4 */ /* not lifted */
   7277     RECOMP_FLAGS_IN();
   7278     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7279     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7280     esp = esp + 4; /* 0x2F005607: add esp, 4 */
   7281     _flag_k = FK_ADD;
   7282 L_2F00560A:
   7283     eax = esi; /* 0x2F00560A: mov eax, esi */
   7284     esi = POP32_VAL(esp); /* 0x2F00560C: pop esi */
   7285     ebp = POP32_VAL(esp); /* 0x2F00560D: pop ebp */
   7286     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F00560E: ret 4 */
   7287 L_2F0068D0:
   7288     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   7289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7290     ecx = ecx - 0xCu; /* 0x2F0068D0: sub ecx, 0xc */
   7291     _flag_k = FK_CMP;
   7292     RECOMP_BACKEDGE();
   7293     goto L_2F0055F0; /* 0x2F0068D3: jmp 0x2f0055f0 */
   7294     { RECOMP_REGS_OUT(); return; } /* end of function */
   7295     RECOMP_REGS_OUT();
   7296 }
   7297 
   7298 void sub_2F0068E0(void) {
   7299     int _fpu_cmp = 0;
   7300     uint32_t _cf = 0;
   7301     int _df = 1;
   7302     uint32_t _flag_k = FK_NONE;
   7303     uint32_t _flag_a = 0, _flag_b = 0;
   7304     uint32_t _itail_tgt = 0;
   7305     RECOMP_REGS_LOCALS
   7306     RECOMP_ENTER(0x2F0068E0u);
   7307 
   7308 L_2F0068E0:
   7309     MEM32(ecx) = 0x2F013704u; /* 0x2F0068E0: mov dword ptr [ecx], 0x2f013704 */
   7310     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0068E6: ret  */
   7311     RECOMP_REGS_OUT();
   7312 }
   7313 
   7314 void sub_2F0068F0(void) {
   7315     int _fpu_cmp = 0;
   7316     uint32_t _cf = 0;
   7317     int _df = 1;
   7318     uint32_t _flag_k = FK_NONE;
   7319     uint32_t _flag_a = 0, _flag_b = 0;
   7320     uint32_t _itail_tgt = 0;
   7321     RECOMP_REGS_LOCALS
   7322     RECOMP_ENTER(0x2F0068F0u);
   7323 
   7324 L_2F0068F0:
   7325     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7326     eax = eax | 0xFFFFFFFFu; /* 0x2F0068F0: or eax, 0xffffffff */
   7327     _cf = 0;
   7328     _flag_k = FK_TEST;
   7329     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2F0068F3: ret 0xc */
   7330     RECOMP_REGS_OUT();
   7331 }
   7332 
   7333 void sub_2F006900(void) {
   7334     int _fpu_cmp = 0;
   7335     uint32_t _cf = 0;
   7336     int _df = 1;
   7337     uint32_t _flag_k = FK_NONE;
   7338     uint32_t _flag_a = 0, _flag_b = 0;
   7339     uint32_t _itail_tgt = 0;
   7340     RECOMP_REGS_LOCALS
   7341     RECOMP_ENTER(0x2F006900u);
   7342 
   7343 L_2F006900:
   7344     PUSH32(esp, ebp); /* 0x2F006900: push ebp */
   7345     ebp = esp; /* 0x2F006901: mov ebp, esp */
   7346     /* test MEM8(ebp + 0x8), 1 */ /* 0x2F006903: test byte ptr [ebp + 8], 1 */
   7347     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7348     _cf = 0;
   7349     _flag_k = FK_NARROW(FK_TEST, 24);
   7350     PUSH32(esp, esi); /* 0x2F006907: push esi */
   7351     esi = ecx; /* 0x2F006908: mov esi, ecx */
   7352     MEM32(esi) = 0x2F013704u; /* 0x2F00690A: mov dword ptr [esi], 0x2f013704 */
   7353     if (TEST_Z(_flag_a, _flag_b)) goto L_2F00691B; /* 0x2F006910: je 0x2f00691b */
   7354 L_2F006912:
   7355     PUSH32(esp, esi); /* 0x2F006912: push esi */
   7356     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006913: call 0x2f0116b4 */ /* not lifted */
   7357     RECOMP_FLAGS_IN();
   7358     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7359     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7360     esp = esp + 4; /* 0x2F006918: add esp, 4 */
   7361     _flag_k = FK_ADD;
   7362 L_2F00691B:
   7363     eax = esi; /* 0x2F00691B: mov eax, esi */
   7364     esi = POP32_VAL(esp); /* 0x2F00691D: pop esi */
   7365     ebp = POP32_VAL(esp); /* 0x2F00691E: pop ebp */
   7366     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F00691F: ret 4 */
   7367     RECOMP_REGS_OUT();
   7368 }
   7369 
   7370 void sub_2F006930(void) {
   7371     int _fpu_cmp = 0;
   7372     uint32_t _cf = 0;
   7373     int _df = 1;
   7374     uint32_t _flag_k = FK_NONE;
   7375     uint32_t _flag_a = 0, _flag_b = 0;
   7376     uint32_t _itail_tgt = 0;
   7377     RECOMP_REGS_LOCALS
   7378     RECOMP_ENTER(0x2F006930u);
   7379 
   7380 L_2F006930:
   7381     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7382     eax = eax | 0xFFFFFFFFu; /* 0x2F006930: or eax, 0xffffffff */
   7383     _cf = 0;
   7384     _flag_k = FK_TEST;
   7385     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2F006933: ret 0x10 */
   7386     RECOMP_REGS_OUT();
   7387 }
   7388 
   7389 void sub_2F006940(void) {
   7390     int _fpu_cmp = 0;
   7391     uint32_t _cf = 0;
   7392     int _df = 1;
   7393     uint32_t _flag_k = FK_NONE;
   7394     uint32_t _flag_a = 0, _flag_b = 0;
   7395     uint32_t _itail_tgt = 0;
   7396     RECOMP_REGS_LOCALS
   7397     RECOMP_ENTER(0x2F006940u);
   7398 
   7399 L_2F006940:
   7400     MEM32(0x2F01F014) = 0; /* 0x2F006940: mov dword ptr [0x2f01f014], 0 */
   7401     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F00694A: ret  */
   7402     RECOMP_REGS_OUT();
   7403 }
   7404 
   7405 void sub_2F006950(void) {
   7406     int _fpu_cmp = 0;
   7407     uint32_t _cf = 0;
   7408     int _df = 1;
   7409     uint32_t _flag_k = FK_NONE;
   7410     uint32_t _flag_a = 0, _flag_b = 0;
   7411     uint32_t _itail_tgt = 0;
   7412     RECOMP_REGS_LOCALS
   7413     RECOMP_ENTER(0x2F006950u);
   7414 
   7415 L_2F006950:
   7416     PUSH32(esp, ebp); /* 0x2F006950: push ebp */
   7417     ebp = esp; /* 0x2F006951: mov ebp, esp */
   7418     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F006953: push -1 */
   7419     PUSH32(esp, 0x2F0121CBu); /* 0x2F006955: push 0x2f0121cb */
   7420     eax = MEM32(FS_BASE + (0)); /* 0x2F00695A: mov eax, dword ptr fs:[0] */
   7421     PUSH32(esp, eax); /* 0x2F006960: push eax */
   7422     MEM32(FS_BASE + (0)) = esp; /* 0x2F006961: mov dword ptr fs:[0], esp */
   7423     PUSH32(esp, ecx); /* 0x2F006968: push ecx */
   7424     eax = MEM32(0x2F01F014); /* 0x2F006969: mov eax, dword ptr [0x2f01f014] */
   7425     /* test eax, eax */ /* 0x2F00696E: test eax, eax */
   7426     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7427     _cf = 0;
   7428     _flag_k = FK_TEST;
   7429     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F0069AB; /* 0x2F006970: jne 0x2f0069ab */
   7430 L_2F006972:
   7431     PUSH32(esp, 1); /* 0x2F006972: push 1 */
   7432     RECOMP_ICALL(0x2F0117DCu); /* 0x2F006974: call 0x2f0117dc */ /* not lifted */
   7433     RECOMP_FLAGS_IN();
   7434     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7435     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7436     esp = esp + 4; /* 0x2F006979: add esp, 4 */
   7437     _flag_k = FK_ADD;
   7438     MEM32(ebp + (-0x10)) = eax; /* 0x2F00697C: mov dword ptr [ebp - 0x10], eax */
   7439     /* test eax, eax */ /* 0x2F00697F: test eax, eax */
   7440     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7441     _cf = 0;
   7442     _flag_k = FK_TEST;
   7443     MEM32(ebp + (-0x4)) = 0; /* 0x2F006981: mov dword ptr [ebp - 4], 0 */
   7444     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0069A4; /* 0x2F006988: je 0x2f0069a4 */
   7445 L_2F00698A:
   7446     ecx = eax; /* 0x2F00698A: mov ecx, eax */
   7447     RECOMP_ICALL(0x2F0069E0u); /* 0x2F00698C: call 0x2f0069e0 */ /* not lifted */
   7448     RECOMP_FLAGS_IN();
   7449     MEM32(0x2F01F014) = eax; /* 0x2F006991: mov dword ptr [0x2f01f014], eax */
   7450     ecx = MEM32(ebp + (-0xC)); /* 0x2F006996: mov ecx, dword ptr [ebp - 0xc] */
   7451     MEM32(FS_BASE + (0)) = ecx; /* 0x2F006999: mov dword ptr fs:[0], ecx */
   7452     esp = ebp; /* 0x2F0069A0: mov esp, ebp */
   7453     ebp = POP32_VAL(esp); /* 0x2F0069A2: pop ebp */
   7454     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0069A3: ret  */
   7455 L_2F0069A4:
   7456     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7457     eax = 0; /* 0x2F0069A4: xor eax, eax */
   7458     _cf = 0;
   7459     _flag_k = FK_TEST;
   7460     MEM32(0x2F01F014) = eax; /* 0x2F0069A6: mov dword ptr [0x2f01f014], eax */
   7461 L_2F0069AB:
   7462     ecx = MEM32(ebp + (-0xC)); /* 0x2F0069AB: mov ecx, dword ptr [ebp - 0xc] */
   7463     MEM32(FS_BASE + (0)) = ecx; /* 0x2F0069AE: mov dword ptr fs:[0], ecx */
   7464     esp = ebp; /* 0x2F0069B5: mov esp, ebp */
   7465     ebp = POP32_VAL(esp); /* 0x2F0069B7: pop ebp */
   7466     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0069B8: ret  */
   7467     RECOMP_REGS_OUT();
   7468 }
   7469 
   7470 void sub_2F0069C0(void) {
   7471     int _fpu_cmp = 0;
   7472     uint32_t _cf = 0;
   7473     int _df = 1;
   7474     uint32_t _flag_k = FK_NONE;
   7475     uint32_t _flag_a = 0, _flag_b = 0;
   7476     uint32_t _itail_tgt = 0;
   7477     RECOMP_REGS_LOCALS
   7478     RECOMP_ENTER(0x2F0069C0u);
   7479 
   7480 L_2F0069C0:
   7481     eax = MEM32(0x2F01F014); /* 0x2F0069C0: mov eax, dword ptr [0x2f01f014] */
   7482     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F0069C5: ret  */
   7483     RECOMP_REGS_OUT();
   7484 }
   7485 
   7486 void sub_2F0069D0(void) {
   7487     int _fpu_cmp = 0;
   7488     uint32_t _cf = 0;
   7489     int _df = 1;
   7490     uint32_t _flag_k = FK_NONE;
   7491     uint32_t _flag_a = 0, _flag_b = 0;
   7492     uint32_t _itail_tgt = 0;
   7493     RECOMP_REGS_LOCALS
   7494     RECOMP_ENTER(0x2F0069D0u);
   7495 
   7496 L_2F0069D0:
   7497     PUSH32(esp, ebp); /* 0x2F0069D0: push ebp */
   7498     ebp = esp; /* 0x2F0069D1: mov ebp, esp */
   7499     eax = ecx; /* 0x2F0069D3: mov eax, ecx */
   7500     ecx = MEM32(ebp + 0x8); /* 0x2F0069D5: mov ecx, dword ptr [ebp + 8] */
   7501     SET_LO8(edx, MEM8(ecx)); /* 0x2F0069D8: mov dl, byte ptr [ecx] */
   7502     MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x2F0069DA: mov byte ptr [eax], dl */
   7503     ebp = POP32_VAL(esp); /* 0x2F0069DC: pop ebp */
   7504     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2F0069DD: ret 4 */
   7505     RECOMP_REGS_OUT();
   7506 }
   7507 
   7508 void sub_2F0069E0(void) {
   7509     int _fpu_cmp = 0;
   7510     uint32_t _cf = 0;
   7511     int _df = 1;
   7512     uint32_t _flag_k = FK_NONE;
   7513     uint32_t _flag_a = 0, _flag_b = 0;
   7514     uint32_t _itail_tgt = 0;
   7515     RECOMP_REGS_LOCALS
   7516     RECOMP_ENTER(0x2F0069E0u);
   7517 
   7518 L_2F0069E0:
   7519     PUSH32(esp, ebx); /* 0x2F0069E0: push ebx */
   7520     PUSH32(esp, esi); /* 0x2F0069E1: push esi */
   7521     esi = MEM32(0x2F0132A4); /* 0x2F0069E2: mov esi, dword ptr [0x2f0132a4] */
   7522     PUSH32(esp, edi); /* 0x2F0069E8: push edi */
   7523     ebx = ecx; /* 0x2F0069E9: mov ebx, ecx */
   7524     RECOMP_ICALL(esi); /* 0x2F0069EB: call esi */
   7525     RECOMP_FLAGS_IN();
   7526     ecx = eax; /* 0x2F0069ED: mov ecx, eax */
   7527     RECOMP_ICALL(MEM32(0x2F0132D8)); /* 0x2F0069EF: call dword ptr [0x2f0132d8] */
   7528     RECOMP_FLAGS_IN();
   7529     PUSH32(esp, 0); /* 0x2F0069F5: push 0 */
   7530     PUSH32(esp, 0x13u); /* 0x2F0069F7: push 0x13 */
   7531     PUSH32(esp, 0xEu); /* 0x2F0069F9: push 0xe */
   7532     RECOMP_ICALL(esi); /* 0x2F0069FB: call esi */
   7533     RECOMP_FLAGS_IN();
   7534     ecx = eax; /* 0x2F0069FD: mov ecx, eax */
   7535     RECOMP_ICALL(MEM32(0x2F013298)); /* 0x2F0069FF: call dword ptr [0x2f013298] */
   7536     RECOMP_FLAGS_IN();
   7537     PUSH32(esp, 0x2F006A90u); /* 0x2F006A05: push 0x2f006a90 */
   7538     PUSH32(esp, 5); /* 0x2F006A0A: push 5 */
   7539     RECOMP_ICALL(esi); /* 0x2F006A0C: call esi */
   7540     RECOMP_FLAGS_IN();
   7541     edi = MEM32(0x2F01329C); /* 0x2F006A0E: mov edi, dword ptr [0x2f01329c] */
   7542     ecx = eax; /* 0x2F006A14: mov ecx, eax */
   7543     RECOMP_ICALL(edi); /* 0x2F006A16: call edi */
   7544     RECOMP_FLAGS_IN();
   7545     PUSH32(esp, 0x2F006AB0u); /* 0x2F006A18: push 0x2f006ab0 */
   7546     PUSH32(esp, 6); /* 0x2F006A1D: push 6 */
   7547     RECOMP_ICALL(esi); /* 0x2F006A1F: call esi */
   7548     RECOMP_FLAGS_IN();
   7549     ecx = eax; /* 0x2F006A21: mov ecx, eax */
   7550     RECOMP_ICALL(edi); /* 0x2F006A23: call edi */
   7551     RECOMP_FLAGS_IN();
   7552     PUSH32(esp, 0x2F006C50u); /* 0x2F006A25: push 0x2f006c50 */
   7553     RECOMP_ICALL(esi); /* 0x2F006A2A: call esi */
   7554     RECOMP_FLAGS_IN();
   7555     ecx = eax; /* 0x2F006A2C: mov ecx, eax */
   7556     RECOMP_ICALL(MEM32(0x2F0132A0)); /* 0x2F006A2E: call dword ptr [0x2f0132a0] */
   7557     RECOMP_FLAGS_IN();
   7558     PUSH32(esp, 0x2F006AE0u); /* 0x2F006A34: push 0x2f006ae0 */
   7559     PUSH32(esp, 0x77u); /* 0x2F006A39: push 0x77 */
   7560     RECOMP_ICALL(esi); /* 0x2F006A3B: call esi */
   7561     RECOMP_FLAGS_IN();
   7562     ecx = eax; /* 0x2F006A3D: mov ecx, eax */
   7563     RECOMP_ICALL(edi); /* 0x2F006A3F: call edi */
   7564     RECOMP_FLAGS_IN();
   7565     PUSH32(esp, 0x2F006B40u); /* 0x2F006A41: push 0x2f006b40 */
   7566     PUSH32(esp, 0x78u); /* 0x2F006A46: push 0x78 */
   7567     RECOMP_ICALL(esi); /* 0x2F006A48: call esi */
   7568     RECOMP_FLAGS_IN();
   7569     ecx = eax; /* 0x2F006A4A: mov ecx, eax */
   7570     RECOMP_ICALL(edi); /* 0x2F006A4C: call edi */
   7571     RECOMP_FLAGS_IN();
   7572     PUSH32(esp, 0x2F006BA0u); /* 0x2F006A4E: push 0x2f006ba0 */
   7573     PUSH32(esp, 0x79u); /* 0x2F006A53: push 0x79 */
   7574     RECOMP_ICALL(esi); /* 0x2F006A55: call esi */
   7575     RECOMP_FLAGS_IN();
   7576     ecx = eax; /* 0x2F006A57: mov ecx, eax */
   7577     RECOMP_ICALL(edi); /* 0x2F006A59: call edi */
   7578     RECOMP_FLAGS_IN();
   7579     PUSH32(esp, 0x2F006C00u); /* 0x2F006A5B: push 0x2f006c00 */
   7580     PUSH32(esp, 0x194u); /* 0x2F006A60: push 0x194 */
   7581     RECOMP_ICALL(esi); /* 0x2F006A65: call esi */
   7582     RECOMP_FLAGS_IN();
   7583     ecx = eax; /* 0x2F006A67: mov ecx, eax */
   7584     RECOMP_ICALL(edi); /* 0x2F006A69: call edi */
   7585     RECOMP_FLAGS_IN();
   7586     PUSH32(esp, 0x2F006C40u); /* 0x2F006A6B: push 0x2f006c40 */
   7587     PUSH32(esp, 0x213u); /* 0x2F006A70: push 0x213 */
   7588     RECOMP_ICALL(esi); /* 0x2F006A75: call esi */
   7589     RECOMP_FLAGS_IN();
   7590     ecx = eax; /* 0x2F006A77: mov ecx, eax */
   7591     RECOMP_ICALL(edi); /* 0x2F006A79: call edi */
   7592     RECOMP_FLAGS_IN();
   7593     edi = POP32_VAL(esp); /* 0x2F006A7B: pop edi */
   7594     esi = POP32_VAL(esp); /* 0x2F006A7C: pop esi */
   7595     eax = ebx; /* 0x2F006A7D: mov eax, ebx */
   7596     ebx = POP32_VAL(esp); /* 0x2F006A7F: pop ebx */
   7597     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006A80: ret  */
   7598     RECOMP_REGS_OUT();
   7599 }
   7600 
   7601 void sub_2F006A90(void) {
   7602     int _fpu_cmp = 0;
   7603     uint32_t _cf = 0;
   7604     int _df = 1;
   7605     uint32_t _flag_k = FK_NONE;
   7606     uint32_t _flag_a = 0, _flag_b = 0;
   7607     uint32_t _itail_tgt = 0;
   7608     RECOMP_REGS_LOCALS
   7609     RECOMP_ENTER(0x2F006A90u);
   7610 
   7611     goto L_2F006A90;
   7612 L_2F001760:
   7613     eax = MEM32(ecx); /* 0x2F001760: mov eax, dword ptr [ecx] */
   7614     PUSH32(esp, 0); /* 0x2F001762: push 0 */
   7615     MEM8(ecx + 0x88) = (uint8_t)(1); /* 0x2F001764: mov byte ptr [ecx + 0x88], 1 */
   7616     RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x2F00176B: call dword ptr [eax + 0x48] */
   7617     RECOMP_FLAGS_IN();
   7618     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7619     eax = 0; /* 0x2F00176E: xor eax, eax */
   7620     _cf = 0;
   7621     _flag_k = FK_TEST;
   7622     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F001770: ret  */
   7623 L_2F006A90:
   7624     RECOMP_ICALL(0x2F006C60u); /* 0x2F006A90: call 0x2f006c60 */ /* not lifted */
   7625     RECOMP_FLAGS_IN();
   7626     MEM32(0x2F01F018) = eax; /* 0x2F006A95: mov dword ptr [0x2f01f018], eax */
   7627     ecx = eax; /* 0x2F006A9A: mov ecx, eax */
   7628     RECOMP_BACKEDGE();
   7629     goto L_2F001760; /* 0x2F006A9C: jmp 0x2f001760 */
   7630     { RECOMP_REGS_OUT(); return; } /* end of function */
   7631     RECOMP_REGS_OUT();
   7632 }
   7633 
   7634 void sub_2F006AB0(void) {
   7635     int _fpu_cmp = 0;
   7636     uint32_t _cf = 0;
   7637     int _df = 1;
   7638     uint32_t _flag_k = FK_NONE;
   7639     uint32_t _flag_a = 0, _flag_b = 0;
   7640     uint32_t _itail_tgt = 0;
   7641     RECOMP_REGS_LOCALS
   7642     RECOMP_ENTER(0x2F006AB0u);
   7643 
   7644 L_2F006AB0:
   7645     ecx = MEM32(0x2F01F018); /* 0x2F006AB0: mov ecx, dword ptr [0x2f01f018] */
   7646     RECOMP_ICALL(0x2F001780u); /* 0x2F006AB6: call 0x2f001780 */ /* not lifted */
   7647     RECOMP_FLAGS_IN();
   7648     ecx = MEM32(0x2F01F018); /* 0x2F006ABB: mov ecx, dword ptr [0x2f01f018] */
   7649     /* test ecx, ecx */ /* 0x2F006AC1: test ecx, ecx */
   7650     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7651     _cf = 0;
   7652     _flag_k = FK_TEST;
   7653     if (TEST_Z(_flag_a, _flag_b)) goto L_2F006ACB; /* 0x2F006AC3: je 0x2f006acb */
   7654 L_2F006AC5:
   7655     eax = MEM32(ecx); /* 0x2F006AC5: mov eax, dword ptr [ecx] */
   7656     PUSH32(esp, 1); /* 0x2F006AC7: push 1 */
   7657     RECOMP_ICALL(MEM32(eax)); /* 0x2F006AC9: call dword ptr [eax] */
   7658     RECOMP_FLAGS_IN();
   7659 L_2F006ACB:
   7660     MEM32(0x2F01F018) = 0; /* 0x2F006ACB: mov dword ptr [0x2f01f018], 0 */
   7661     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006AD5: ret  */
   7662     RECOMP_REGS_OUT();
   7663 }
   7664 
   7665 void sub_2F006AE0(void) {
   7666     int _fpu_cmp = 0;
   7667     uint32_t _cf = 0;
   7668     int _df = 1;
   7669     uint32_t _flag_k = FK_NONE;
   7670     uint32_t _flag_a = 0, _flag_b = 0;
   7671     uint32_t _itail_tgt = 0;
   7672     RECOMP_REGS_LOCALS
   7673     RECOMP_ENTER(0x2F006AE0u);
   7674 
   7675 L_2F006AE0:
   7676     PUSH32(esp, ebp); /* 0x2F006AE0: push ebp */
   7677     ebp = esp; /* 0x2F006AE1: mov ebp, esp */
   7678     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7679     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7680     esp = esp - 0xCu; /* 0x2F006AE3: sub esp, 0xc */
   7681     _flag_k = FK_CMP;
   7682     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7683     eax = 0; /* 0x2F006AE6: xor eax, eax */
   7684     _cf = 0;
   7685     _flag_k = FK_TEST;
   7686     MEM32(ebp + (-0xC)) = eax; /* 0x2F006AE8: mov dword ptr [ebp - 0xc], eax */
   7687     MEM32(ebp + (-0x8)) = eax; /* 0x2F006AEB: mov dword ptr [ebp - 8], eax */
   7688     PUSH32(esp, esi); /* 0x2F006AEE: push esi */
   7689     esi = MEM32(0x2F0132A4); /* 0x2F006AEF: mov esi, dword ptr [0x2f0132a4] */
   7690     eax = ebp + (-0xC); /* 0x2F006AF5: lea eax, [ebp - 0xc] */
   7691     PUSH32(esp, eax); /* 0x2F006AF8: push eax */
   7692     RECOMP_ICALL(esi); /* 0x2F006AF9: call esi */
   7693     RECOMP_FLAGS_IN();
   7694     ecx = eax; /* 0x2F006AFB: mov ecx, eax */
   7695     RECOMP_ICALL(MEM32(0x2F013284)); /* 0x2F006AFD: call dword ptr [0x2f013284] */
   7696     RECOMP_FLAGS_IN();
   7697     ecx = ebp + (-0x4); /* 0x2F006B03: lea ecx, [ebp - 4] */
   7698     PUSH32(esp, ecx); /* 0x2F006B06: push ecx */
   7699     RECOMP_ICALL(esi); /* 0x2F006B07: call esi */
   7700     RECOMP_FLAGS_IN();
   7701     ecx = eax; /* 0x2F006B09: mov ecx, eax */
   7702     RECOMP_ICALL(MEM32(0x2F013288)); /* 0x2F006B0B: call dword ptr [0x2f013288] */
   7703     RECOMP_FLAGS_IN();
   7704     eax = MEM32(ebp + (-0x4)); /* 0x2F006B11: mov eax, dword ptr [ebp - 4] */
   7705     edx = ebp + (-0xC); /* 0x2F006B14: lea edx, [ebp - 0xc] */
   7706     PUSH32(esp, edx); /* 0x2F006B17: push edx */
   7707     PUSH32(esp, eax); /* 0x2F006B18: push eax */
   7708     RECOMP_ICALL(esi); /* 0x2F006B19: call esi */
   7709     RECOMP_FLAGS_IN();
   7710     ecx = eax; /* 0x2F006B1B: mov ecx, eax */
   7711     RECOMP_ICALL(MEM32(0x2F0132DC)); /* 0x2F006B1D: call dword ptr [0x2f0132dc] */
   7712     RECOMP_FLAGS_IN();
   7713     ecx = MEM32(0x2F01F018); /* 0x2F006B23: mov ecx, dword ptr [0x2f01f018] */
   7714     PUSH32(esp, eax); /* 0x2F006B29: push eax */
   7715     RECOMP_ICALL(0x2F002EC0u); /* 0x2F006B2A: call 0x2f002ec0 */ /* not lifted */
   7716     RECOMP_FLAGS_IN();
   7717     esi = POP32_VAL(esp); /* 0x2F006B2F: pop esi */
   7718     esp = ebp; /* 0x2F006B30: mov esp, ebp */
   7719     ebp = POP32_VAL(esp); /* 0x2F006B32: pop ebp */
   7720     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006B33: ret  */
   7721     RECOMP_REGS_OUT();
   7722 }
   7723 
   7724 void sub_2F006B40(void) {
   7725     int _fpu_cmp = 0;
   7726     uint32_t _cf = 0;
   7727     int _df = 1;
   7728     uint32_t _flag_k = FK_NONE;
   7729     uint32_t _flag_a = 0, _flag_b = 0;
   7730     uint32_t _itail_tgt = 0;
   7731     RECOMP_REGS_LOCALS
   7732     RECOMP_ENTER(0x2F006B40u);
   7733 
   7734 L_2F006B40:
   7735     PUSH32(esp, ebp); /* 0x2F006B40: push ebp */
   7736     ebp = esp; /* 0x2F006B41: mov ebp, esp */
   7737     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7739     esp = esp - 0xCu; /* 0x2F006B43: sub esp, 0xc */
   7740     _flag_k = FK_CMP;
   7741     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7742     eax = 0; /* 0x2F006B46: xor eax, eax */
   7743     _cf = 0;
   7744     _flag_k = FK_TEST;
   7745     MEM32(ebp + (-0xC)) = eax; /* 0x2F006B48: mov dword ptr [ebp - 0xc], eax */
   7746     MEM32(ebp + (-0x8)) = eax; /* 0x2F006B4B: mov dword ptr [ebp - 8], eax */
   7747     PUSH32(esp, esi); /* 0x2F006B4E: push esi */
   7748     esi = MEM32(0x2F0132A4); /* 0x2F006B4F: mov esi, dword ptr [0x2f0132a4] */
   7749     eax = ebp + (-0xC); /* 0x2F006B55: lea eax, [ebp - 0xc] */
   7750     PUSH32(esp, eax); /* 0x2F006B58: push eax */
   7751     RECOMP_ICALL(esi); /* 0x2F006B59: call esi */
   7752     RECOMP_FLAGS_IN();
   7753     ecx = eax; /* 0x2F006B5B: mov ecx, eax */
   7754     RECOMP_ICALL(MEM32(0x2F013284)); /* 0x2F006B5D: call dword ptr [0x2f013284] */
   7755     RECOMP_FLAGS_IN();
   7756     ecx = ebp + (-0x4); /* 0x2F006B63: lea ecx, [ebp - 4] */
   7757     PUSH32(esp, ecx); /* 0x2F006B66: push ecx */
   7758     RECOMP_ICALL(esi); /* 0x2F006B67: call esi */
   7759     RECOMP_FLAGS_IN();
   7760     ecx = eax; /* 0x2F006B69: mov ecx, eax */
   7761     RECOMP_ICALL(MEM32(0x2F013288)); /* 0x2F006B6B: call dword ptr [0x2f013288] */
   7762     RECOMP_FLAGS_IN();
   7763     eax = MEM32(ebp + (-0x4)); /* 0x2F006B71: mov eax, dword ptr [ebp - 4] */
   7764     edx = ebp + (-0xC); /* 0x2F006B74: lea edx, [ebp - 0xc] */
   7765     PUSH32(esp, edx); /* 0x2F006B77: push edx */
   7766     PUSH32(esp, eax); /* 0x2F006B78: push eax */
   7767     RECOMP_ICALL(esi); /* 0x2F006B79: call esi */
   7768     RECOMP_FLAGS_IN();
   7769     ecx = eax; /* 0x2F006B7B: mov ecx, eax */
   7770     RECOMP_ICALL(MEM32(0x2F0132DC)); /* 0x2F006B7D: call dword ptr [0x2f0132dc] */
   7771     RECOMP_FLAGS_IN();
   7772     ecx = MEM32(0x2F01F018); /* 0x2F006B83: mov ecx, dword ptr [0x2f01f018] */
   7773     PUSH32(esp, eax); /* 0x2F006B89: push eax */
   7774     RECOMP_ICALL(0x2F002FA0u); /* 0x2F006B8A: call 0x2f002fa0 */ /* not lifted */
   7775     RECOMP_FLAGS_IN();
   7776     esi = POP32_VAL(esp); /* 0x2F006B8F: pop esi */
   7777     esp = ebp; /* 0x2F006B90: mov esp, ebp */
   7778     ebp = POP32_VAL(esp); /* 0x2F006B92: pop ebp */
   7779     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006B93: ret  */
   7780     RECOMP_REGS_OUT();
   7781 }
   7782 
   7783 void sub_2F006BA0(void) {
   7784     int _fpu_cmp = 0;
   7785     uint32_t _cf = 0;
   7786     int _df = 1;
   7787     uint32_t _flag_k = FK_NONE;
   7788     uint32_t _flag_a = 0, _flag_b = 0;
   7789     uint32_t _itail_tgt = 0;
   7790     RECOMP_REGS_LOCALS
   7791     RECOMP_ENTER(0x2F006BA0u);
   7792 
   7793 L_2F006BA0:
   7794     PUSH32(esp, ebp); /* 0x2F006BA0: push ebp */
   7795     ebp = esp; /* 0x2F006BA1: mov ebp, esp */
   7796     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7798     esp = esp - 0xCu; /* 0x2F006BA3: sub esp, 0xc */
   7799     _flag_k = FK_CMP;
   7800     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7801     eax = 0; /* 0x2F006BA6: xor eax, eax */
   7802     _cf = 0;
   7803     _flag_k = FK_TEST;
   7804     MEM32(ebp + (-0xC)) = eax; /* 0x2F006BA8: mov dword ptr [ebp - 0xc], eax */
   7805     MEM32(ebp + (-0x8)) = eax; /* 0x2F006BAB: mov dword ptr [ebp - 8], eax */
   7806     PUSH32(esp, esi); /* 0x2F006BAE: push esi */
   7807     esi = MEM32(0x2F0132A4); /* 0x2F006BAF: mov esi, dword ptr [0x2f0132a4] */
   7808     eax = ebp + (-0xC); /* 0x2F006BB5: lea eax, [ebp - 0xc] */
   7809     PUSH32(esp, eax); /* 0x2F006BB8: push eax */
   7810     RECOMP_ICALL(esi); /* 0x2F006BB9: call esi */
   7811     RECOMP_FLAGS_IN();
   7812     ecx = eax; /* 0x2F006BBB: mov ecx, eax */
   7813     RECOMP_ICALL(MEM32(0x2F013284)); /* 0x2F006BBD: call dword ptr [0x2f013284] */
   7814     RECOMP_FLAGS_IN();
   7815     ecx = ebp + (-0x4); /* 0x2F006BC3: lea ecx, [ebp - 4] */
   7816     PUSH32(esp, ecx); /* 0x2F006BC6: push ecx */
   7817     RECOMP_ICALL(esi); /* 0x2F006BC7: call esi */
   7818     RECOMP_FLAGS_IN();
   7819     ecx = eax; /* 0x2F006BC9: mov ecx, eax */
   7820     RECOMP_ICALL(MEM32(0x2F013288)); /* 0x2F006BCB: call dword ptr [0x2f013288] */
   7821     RECOMP_FLAGS_IN();
   7822     eax = MEM32(ebp + (-0x4)); /* 0x2F006BD1: mov eax, dword ptr [ebp - 4] */
   7823     edx = ebp + (-0xC); /* 0x2F006BD4: lea edx, [ebp - 0xc] */
   7824     PUSH32(esp, edx); /* 0x2F006BD7: push edx */
   7825     PUSH32(esp, eax); /* 0x2F006BD8: push eax */
   7826     RECOMP_ICALL(esi); /* 0x2F006BD9: call esi */
   7827     RECOMP_FLAGS_IN();
   7828     ecx = eax; /* 0x2F006BDB: mov ecx, eax */
   7829     RECOMP_ICALL(MEM32(0x2F0132DC)); /* 0x2F006BDD: call dword ptr [0x2f0132dc] */
   7830     RECOMP_FLAGS_IN();
   7831     ecx = MEM32(0x2F01F018); /* 0x2F006BE3: mov ecx, dword ptr [0x2f01f018] */
   7832     PUSH32(esp, eax); /* 0x2F006BE9: push eax */
   7833     RECOMP_ICALL(0x2F003080u); /* 0x2F006BEA: call 0x2f003080 */ /* not lifted */
   7834     RECOMP_FLAGS_IN();
   7835     esi = POP32_VAL(esp); /* 0x2F006BEF: pop esi */
   7836     esp = ebp; /* 0x2F006BF0: mov esp, ebp */
   7837     ebp = POP32_VAL(esp); /* 0x2F006BF2: pop ebp */
   7838     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006BF3: ret  */
   7839     RECOMP_REGS_OUT();
   7840 }
   7841 
   7842 void sub_2F006C00(void) {
   7843     int _fpu_cmp = 0;
   7844     uint32_t _cf = 0;
   7845     int _df = 1;
   7846     uint32_t _flag_k = FK_NONE;
   7847     uint32_t _flag_a = 0, _flag_b = 0;
   7848     uint32_t _itail_tgt = 0;
   7849     RECOMP_REGS_LOCALS
   7850     RECOMP_ENTER(0x2F006C00u);
   7851 
   7852 L_2F006C00:
   7853     PUSH32(esp, ebp); /* 0x2F006C00: push ebp */
   7854     ebp = esp; /* 0x2F006C01: mov ebp, esp */
   7855     PUSH32(esp, ecx); /* 0x2F006C03: push ecx */
   7856     PUSH32(esp, esi); /* 0x2F006C04: push esi */
   7857     esi = MEM32(0x2F0132A4); /* 0x2F006C05: mov esi, dword ptr [0x2f0132a4] */
   7858     PUSH32(esp, edi); /* 0x2F006C0B: push edi */
   7859     RECOMP_ICALL(esi); /* 0x2F006C0C: call esi */
   7860     RECOMP_FLAGS_IN();
   7861     ecx = eax; /* 0x2F006C0E: mov ecx, eax */
   7862     RECOMP_ICALL(MEM32(0x2F0132DC)); /* 0x2F006C10: call dword ptr [0x2f0132dc] */
   7863     RECOMP_FLAGS_IN();
   7864     edi = eax; /* 0x2F006C16: mov edi, eax */
   7865     eax = ebp + (-0x4); /* 0x2F006C18: lea eax, [ebp - 4] */
   7866     PUSH32(esp, eax); /* 0x2F006C1B: push eax */
   7867     RECOMP_ICALL(esi); /* 0x2F006C1C: call esi */
   7868     RECOMP_FLAGS_IN();
   7869     ecx = eax; /* 0x2F006C1E: mov ecx, eax */
   7870     RECOMP_ICALL(MEM32(0x2F013288)); /* 0x2F006C20: call dword ptr [0x2f013288] */
   7871     RECOMP_FLAGS_IN();
   7872     ecx = MEM32(ebp + (-0x4)); /* 0x2F006C26: mov ecx, dword ptr [ebp - 4] */
   7873     PUSH32(esp, ecx); /* 0x2F006C29: push ecx */
   7874     ecx = MEM32(0x2F01F018); /* 0x2F006C2A: mov ecx, dword ptr [0x2f01f018] */
   7875     PUSH32(esp, edi); /* 0x2F006C30: push edi */
   7876     RECOMP_ICALL(0x2F003160u); /* 0x2F006C31: call 0x2f003160 */ /* not lifted */
   7877     RECOMP_FLAGS_IN();
   7878     edi = POP32_VAL(esp); /* 0x2F006C36: pop edi */
   7879     esi = POP32_VAL(esp); /* 0x2F006C37: pop esi */
   7880     esp = ebp; /* 0x2F006C38: mov esp, ebp */
   7881     ebp = POP32_VAL(esp); /* 0x2F006C3A: pop ebp */
   7882     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006C3B: ret  */
   7883     RECOMP_REGS_OUT();
   7884 }
   7885 
   7886 void sub_2F006C40(void) {
   7887     int _fpu_cmp = 0;
   7888     uint32_t _cf = 0;
   7889     int _df = 1;
   7890     uint32_t _flag_k = FK_NONE;
   7891     uint32_t _flag_a = 0, _flag_b = 0;
   7892     uint32_t _itail_tgt = 0;
   7893     RECOMP_REGS_LOCALS
   7894     RECOMP_ENTER(0x2F006C40u);
   7895 
   7896     goto L_2F006C40;
   7897 L_2F002DF0:
   7898     PUSH32(esp, ebp); /* 0x2F002DF0: push ebp */
   7899     ebp = esp; /* 0x2F002DF1: mov ebp, esp */
   7900     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F002DF3: push -1 */
   7901     PUSH32(esp, 0x2F011D42u); /* 0x2F002DF5: push 0x2f011d42 */
   7902     eax = MEM32(FS_BASE + (0)); /* 0x2F002DFA: mov eax, dword ptr fs:[0] */
   7903     PUSH32(esp, eax); /* 0x2F002E00: push eax */
   7904     MEM32(FS_BASE + (0)) = esp; /* 0x2F002E01: mov dword ptr fs:[0], esp */
   7905     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x70u);
   7906     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7907     esp = esp - 0x70u; /* 0x2F002E08: sub esp, 0x70 */
   7908     _flag_k = FK_CMP;
   7909     PUSH32(esp, edi); /* 0x2F002E0B: push edi */
   7910     edi = ecx; /* 0x2F002E0C: mov edi, ecx */
   7911     SET_LO8(eax, MEM8(edi + 0x88)); /* 0x2F002E0E: mov al, byte ptr [edi + 0x88] */
   7912     /* test LO8(eax), LO8(eax) */ /* 0x2F002E14: test al, al */
   7913     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7914     _cf = 0;
   7915     _flag_k = FK_NARROW(FK_TEST, 24);
   7916     if (TEST_Z(_flag_a, _flag_b)) goto L_2F002EAE; /* 0x2F002E16: je 0x2f002eae */
   7917 L_2F002E1C:
   7918     PUSH32(esp, esi); /* 0x2F002E1C: push esi */
   7919     PUSH32(esp, 0x800u); /* 0x2F002E1D: push 0x800 */
   7920     ecx = ebp + (-0x7C); /* 0x2F002E22: lea ecx, [ebp - 0x7c] */
   7921     RECOMP_ICALL(MEM32(0x2F0134CC)); /* 0x2F002E25: call dword ptr [0x2f0134cc] */
   7922     RECOMP_FLAGS_IN();
   7923     eax = MEM32(0x2F01F008); /* 0x2F002E2B: mov eax, dword ptr [0x2f01f008] */
   7924     esi = MEM32(0x2F0134C4); /* 0x2F002E30: mov esi, dword ptr [0x2f0134c4] */
   7925     PUSH32(esp, eax); /* 0x2F002E36: push eax */
   7926     ecx = ebp + (-0x7C); /* 0x2F002E37: lea ecx, [ebp - 0x7c] */
   7927     MEM32(ebp + (-0x4)) = 0; /* 0x2F002E3A: mov dword ptr [ebp - 4], 0 */
   7928     RECOMP_ICALL(esi); /* 0x2F002E41: call esi */
   7929     RECOMP_FLAGS_IN();
   7930     ecx = MEM32(0x2F01EFF0); /* 0x2F002E43: mov ecx, dword ptr [0x2f01eff0] */
   7931     PUSH32(esp, ecx); /* 0x2F002E49: push ecx */
   7932     ecx = eax; /* 0x2F002E4A: mov ecx, eax */
   7933     RECOMP_ICALL(esi); /* 0x2F002E4C: call esi */
   7934     RECOMP_FLAGS_IN();
   7935     ecx = MEM32(0x2F01EFF4); /* 0x2F002E4E: mov ecx, dword ptr [0x2f01eff4] */
   7936     PUSH32(esp, ecx); /* 0x2F002E54: push ecx */
   7937     ecx = eax; /* 0x2F002E55: mov ecx, eax */
   7938     RECOMP_ICALL(esi); /* 0x2F002E57: call esi */
   7939     RECOMP_FLAGS_IN();
   7940     edx = MEM32(ebp + (-0x6C)); /* 0x2F002E59: mov edx, dword ptr [ebp - 0x6c] */
   7941     esi = MEM32(0x2F01F008); /* 0x2F002E5C: mov esi, dword ptr [0x2f01f008] */
   7942     PUSH32(esp, edx); /* 0x2F002E62: push edx */
   7943     ecx = ebp + (-0x7C); /* 0x2F002E63: lea ecx, [ebp - 0x7c] */
   7944     RECOMP_ICALL(MEM32(0x2F0134C8)); /* 0x2F002E66: call dword ptr [0x2f0134c8] */
   7945     RECOMP_FLAGS_IN();
   7946     PUSH32(esp, eax); /* 0x2F002E6C: push eax */
   7947     PUSH32(esp, 2); /* 0x2F002E6D: push 2 */
   7948     PUSH32(esp, esi); /* 0x2F002E6F: push esi */
   7949     PUSH32(esp, 0x1Bu); /* 0x2F002E70: push 0x1b */
   7950     ecx = ebp + (-0x38); /* 0x2F002E72: lea ecx, [ebp - 0x38] */
   7951     RECOMP_ICALL(MEM32(0x2F0135F0)); /* 0x2F002E75: call dword ptr [0x2f0135f0] */
   7952     RECOMP_FLAGS_IN();
   7953     ecx = MEM32(edi + 0x50); /* 0x2F002E7B: mov ecx, dword ptr [edi + 0x50] */
   7954     PUSH32(esp, 0); /* 0x2F002E7E: push 0 */
   7955     eax = ebp + (-0x38); /* 0x2F002E80: lea eax, [ebp - 0x38] */
   7956     PUSH32(esp, eax); /* 0x2F002E83: push eax */
   7957     PUSH32(esp, 0); /* 0x2F002E84: push 0 */
   7958     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2F002E86: mov byte ptr [ebp - 4], 1 */
   7959     RECOMP_ICALL(MEM32(0x2F013530)); /* 0x2F002E8A: call dword ptr [0x2f013530] */
   7960     RECOMP_FLAGS_IN();
   7961     ecx = ebp + (-0x38); /* 0x2F002E90: lea ecx, [ebp - 0x38] */
   7962     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2F002E93: mov byte ptr [ebp - 4], 0 */
   7963     RECOMP_ICALL(MEM32(0x2F0135F8)); /* 0x2F002E97: call dword ptr [0x2f0135f8] */
   7964     RECOMP_FLAGS_IN();
   7965     ecx = ebp + (-0x7C); /* 0x2F002E9D: lea ecx, [ebp - 0x7c] */
   7966     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2F002EA0: mov dword ptr [ebp - 4], 0xffffffff */
   7967     RECOMP_ICALL(MEM32(0x2F0134E4)); /* 0x2F002EA7: call dword ptr [0x2f0134e4] */
   7968     RECOMP_FLAGS_IN();
   7969     esi = POP32_VAL(esp); /* 0x2F002EAD: pop esi */
   7970 L_2F002EAE:
   7971     ecx = MEM32(ebp + (-0xC)); /* 0x2F002EAE: mov ecx, dword ptr [ebp - 0xc] */
   7972     edi = POP32_VAL(esp); /* 0x2F002EB1: pop edi */
   7973     MEM32(FS_BASE + (0)) = ecx; /* 0x2F002EB2: mov dword ptr fs:[0], ecx */
   7974     esp = ebp; /* 0x2F002EB9: mov esp, ebp */
   7975     ebp = POP32_VAL(esp); /* 0x2F002EBB: pop ebp */
   7976     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F002EBC: ret  */
   7977 L_2F006C40:
   7978     ecx = MEM32(0x2F01F018); /* 0x2F006C40: mov ecx, dword ptr [0x2f01f018] */
   7979     RECOMP_BACKEDGE();
   7980     goto L_2F002DF0; /* 0x2F006C46: jmp 0x2f002df0 */
   7981     { RECOMP_REGS_OUT(); return; } /* end of function */
   7982     RECOMP_REGS_OUT();
   7983 }
   7984 
   7985 void sub_2F006C50(void) {
   7986     uint32_t queued_messages;
   7987     int _fpu_cmp = 0;
   7988     uint32_t _cf = 0;
   7989     int _df = 1;
   7990     uint32_t _flag_k = FK_NONE;
   7991     uint32_t _flag_a = 0, _flag_b = 0;
   7992     uint32_t _itail_tgt = 0;
   7993     RECOMP_REGS_LOCALS
   7994     RECOMP_ENTER(0x2F006C50u);
   7995 
   7996     goto L_2F006C50;
   7997 L_2F003350:
   7998     PUSH32(esp, ebp); /* 0x2F003350: push ebp */
   7999     ebp = esp; /* 0x2F003351: mov ebp, esp */
   8000     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F003353: push -1 */
   8001     PUSH32(esp, 0x2F011E49u); /* 0x2F003355: push 0x2f011e49 */
   8002     eax = MEM32(FS_BASE + (0)); /* 0x2F00335A: mov eax, dword ptr fs:[0] */
   8003     PUSH32(esp, eax); /* 0x2F003360: push eax */
   8004     MEM32(FS_BASE + (0)) = esp; /* 0x2F003361: mov dword ptr fs:[0], esp */
   8005     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   8006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8007     esp = esp - 0x2Cu; /* 0x2F003368: sub esp, 0x2c */
   8008     _flag_k = FK_CMP;
   8009     PUSH32(esp, ebx); /* 0x2F00336B: push ebx */
   8010     PUSH32(esp, esi); /* 0x2F00336C: push esi */
   8011     esi = ecx; /* 0x2F00336D: mov esi, ecx */
   8012     SET_LO8(eax, MEM8(esi + 0x88)); /* 0x2F00336F: mov al, byte ptr [esi + 0x88] */
   8013     /* test LO8(eax), LO8(eax) */ /* 0x2F003375: test al, al */
   8014     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8015     _cf = 0;
   8016     _flag_k = FK_NARROW(FK_TEST, 24);
   8017     PUSH32(esp, edi); /* 0x2F003377: push edi */
   8018     if (TEST_Z(_flag_a, _flag_b)) goto L_2F003676; /* 0x2F003378: je 0x2f003676 */
   8019 L_2F00337E:
   8020     SET_LO8(eax, MEM8(esi + 0x8A)); /* 0x2F00337E: mov al, byte ptr [esi + 0x8a] */
   8021     /* test LO8(eax), LO8(eax) */ /* 0x2F003384: test al, al */
   8022     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8023     _cf = 0;
   8024     _flag_k = FK_NARROW(FK_TEST, 24);
   8025     if (TEST_Z(_flag_a, _flag_b)) goto L_2F00341B; /* 0x2F003386: je 0x2f00341b */
   8026 L_2F00338C:
   8027     eax = ebp + (-0x30); /* 0x2F00338C: lea eax, [ebp - 0x30] */
   8028     PUSH32(esp, eax); /* 0x2F00338F: push eax */
   8029     RECOMP_ICALL(0x2F001B40u); /* 0x2F003390: call 0x2f001b40 */ /* not lifted */
   8030     RECOMP_FLAGS_IN();
   8031     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8032     edi = 0; /* 0x2F003395: xor edi, edi */
   8033     _cf = 0;
   8034     _flag_k = FK_TEST;
   8035     PUSH32(esp, eax); /* 0x2F003397: push eax */
   8036     MEM32(ebp + (-0x4)) = edi; /* 0x2F003398: mov dword ptr [ebp - 4], edi */
   8037     RECOMP_ICALL(0x2F009760u); /* 0x2F00339B: call 0x2f009760 */ /* not lifted */
   8038     RECOMP_FLAGS_IN();
   8039     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8040     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8041     esp = esp + 4; /* 0x2F0033A0: add esp, 4 */
   8042     _flag_k = FK_ADD;
   8043     PUSH32(esp, 1); /* 0x2F0033A3: push 1 */
   8044     ecx = ebp + (-0x30); /* 0x2F0033A5: lea ecx, [ebp - 0x30] */
   8045     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2F0033A8: mov dword ptr [ebp - 4], 0xffffffff */
   8046     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F0033AF: call dword ptr [0x2f01310c] */
   8047     RECOMP_FLAGS_IN();
   8048     eax = MEM32(esi + 0x12C); /* 0x2F0033B5: mov eax, dword ptr [esi + 0x12c] */
   8049     /* cmp eax, 1 */ /* 0x2F0033BB: cmp eax, 1 */
   8050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8052     _flag_k = FK_CMP;
   8053     if (CMP_NE(_flag_a, _flag_b)) goto L_2F0033E7; /* 0x2F0033BE: jne 0x2f0033e7 */
   8054 L_2F0033C0:
   8055     MEM8(esi + 0x8A) = (uint8_t)(0); /* 0x2F0033C0: mov byte ptr [esi + 0x8a], 0 */
   8056     PUSH32(esp, 0x18Du); /* 0x2F0033C7: push 0x18d */
   8057     PUSH32(esp, 0x40u); /* 0x2F0033CC: push 0x40 */
   8058     MEM32(esi + 0x12C) = edi; /* 0x2F0033CE: mov dword ptr [esi + 0x12c], edi */
   8059     RECOMP_ICALL(MEM32(0x2F0132A4)); /* 0x2F0033D4: call dword ptr [0x2f0132a4] */
   8060     RECOMP_FLAGS_IN();
   8061     ecx = eax; /* 0x2F0033DA: mov ecx, eax */
   8062     RECOMP_ICALL(MEM32(0x2F0132A8)); /* 0x2F0033DC: call dword ptr [0x2f0132a8] */
   8063     RECOMP_FLAGS_IN();
   8064     goto L_2F0034A5; /* 0x2F0033E2: jmp 0x2f0034a5 */
   8065 L_2F0033E7:
   8066     /* cmp eax, edi */ /* 0x2F0033E7: cmp eax, edi */
   8067     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8069     _flag_k = FK_CMP;
   8070     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F0034A5; /* 0x2F0033E9: je 0x2f0034a5 */
   8071 L_2F0033EF:
   8072     ecx = MEM32(esi + 0x50); /* 0x2F0033EF: mov ecx, dword ptr [esi + 0x50] */
   8073     /* cmp ecx, edi */ /* 0x2F0033F2: cmp ecx, edi */
   8074     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   8075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8076     _flag_k = FK_CMP;
   8077     MEM32(esi + 0x12C) = edi; /* 0x2F0033F4: mov dword ptr [esi + 0x12c], edi */
   8078     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F003401; /* 0x2F0033FA: je 0x2f003401 */
   8079 L_2F0033FC:
   8080     edx = MEM32(ecx); /* 0x2F0033FC: mov edx, dword ptr [ecx] */
   8081     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2F0033FE: call dword ptr [edx + 8] */
   8082     RECOMP_FLAGS_IN();
   8083 L_2F003401:
   8084     PUSH32(esp, 0x245u); /* 0x2F003401: push 0x245 */
   8085     PUSH32(esp, 0x17u); /* 0x2F003406: push 0x17 */
   8086     RECOMP_ICALL(MEM32(0x2F0132A4)); /* 0x2F003408: call dword ptr [0x2f0132a4] */
   8087     RECOMP_FLAGS_IN();
   8088     ecx = eax; /* 0x2F00340E: mov ecx, eax */
   8089     RECOMP_ICALL(MEM32(0x2F0132A8)); /* 0x2F003410: call dword ptr [0x2f0132a8] */
   8090     RECOMP_FLAGS_IN();
   8091     goto L_2F0034A5; /* 0x2F003416: jmp 0x2f0034a5 */
   8092 L_2F00341B:
   8093     edi = esi + 0xB8; /* 0x2F00341B: lea edi, [esi + 0xb8] */
   8094     PUSH32(esp, edi); /* 0x2F003421: push edi */
   8095     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8096     ebx = 0; /* 0x2F003422: xor ebx, ebx */
   8097     _cf = 0;
   8098     _flag_k = FK_TEST;
   8099     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F003424: call dword ptr [0x2f013014] */
   8100     RECOMP_FLAGS_IN();
   8101     eax = MEM32(esi + 0xB4); /* 0x2F00342A: mov eax, dword ptr [esi + 0xb4] */
   8102     /* Drain the frame-start queue; arrivals during dispatch wait for the next frame. */
   8103     queued_messages = eax;
   8104     /* test eax, eax */ /* 0x2F003430: test eax, eax */
   8105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8106     _cf = 0;
   8107     _flag_k = FK_TEST;
   8108     if (TEST_Z(_flag_a, _flag_b)) goto L_2F00349C; /* 0x2F003432: je 0x2f00349c */
   8109 L_2F003434:
   8110     goto L_2F003439; /* 0x2F003434: jmp 0x2f003439 */
   8111 L_2F003436:
   8112     ebx = MEM32(ebp + (-0x10)); /* 0x2F003436: mov ebx, dword ptr [ebp - 0x10] */
   8113 L_2F003439:
   8114     eax = ebx; /* 0x2F003439: mov eax, ebx */
   8115     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   8116     ebx = ebx + 1; /* 0x2F00343B: inc ebx */
   8117     _flag_k = FK_INC;
   8118     _flag_a = (uint32_t)(eax); _flag_b = queued_messages;
   8119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8120     _flag_k = FK_CMP;
   8121     MEM32(ebp + (-0x10)) = ebx; /* 0x2F00343F: mov dword ptr [ebp - 0x10], ebx */
   8122     if (CMP_AE(_flag_a, _flag_b)) goto L_2F00349C;
   8123 L_2F003444:
   8124     eax = MEM32(esi + 0xB0); /* 0x2F003444: mov eax, dword ptr [esi + 0xb0] */
   8125     ecx = MEM32(eax); /* 0x2F00344A: mov ecx, dword ptr [eax] */
   8126     ebx = MEM32(ecx + 0x8); /* 0x2F00344C: mov ebx, dword ptr [ecx + 8] */
   8127     eax = ecx; /* 0x2F00344F: mov eax, ecx */
   8128     ecx = MEM32(eax + 0x4); /* 0x2F003451: mov ecx, dword ptr [eax + 4] */
   8129     edx = MEM32(eax); /* 0x2F003454: mov edx, dword ptr [eax] */
   8130     MEM32(ecx) = edx; /* 0x2F003456: mov dword ptr [ecx], edx */
   8131     ecx = MEM32(eax); /* 0x2F003458: mov ecx, dword ptr [eax] */
   8132     edx = MEM32(eax + 0x4); /* 0x2F00345A: mov edx, dword ptr [eax + 4] */
   8133     PUSH32(esp, eax); /* 0x2F00345D: push eax */
   8134     MEM32(ecx + 0x4) = edx; /* 0x2F00345E: mov dword ptr [ecx + 4], edx */
   8135     RECOMP_ICALL(0x2F0116B4u); /* 0x2F003461: call 0x2f0116b4 */ /* not lifted */
   8136     RECOMP_FLAGS_IN();
   8137     ecx = MEM32(esi + 0xB4); /* 0x2F003466: mov ecx, dword ptr [esi + 0xb4] */
   8138     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8139     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8140     esp = esp + 4; /* 0x2F00346C: add esp, 4 */
   8141     _flag_k = FK_ADD;
   8142     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8143     ecx = ecx - 1; /* 0x2F00346F: dec ecx */
   8144     _flag_k = FK_DEC;
   8145     PUSH32(esp, edi); /* 0x2F003470: push edi */
   8146     MEM32(esi + 0xB4) = ecx; /* 0x2F003471: mov dword ptr [esi + 0xb4], ecx */
   8147     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F003477: call dword ptr [0x2f013058] */
   8148     RECOMP_FLAGS_IN();
   8149     PUSH32(esp, ebx); /* 0x2F00347D: push ebx */
   8150     ecx = esi; /* 0x2F00347E: mov ecx, esi */
   8151     RECOMP_ICALL(0x2F001DB0u); /* 0x2F003480: call 0x2f001db0 */ /* not lifted */
   8152     RECOMP_FLAGS_IN();
   8153     edi = esi + 0xB8; /* 0x2F003485: lea edi, [esi + 0xb8] */
   8154     PUSH32(esp, edi); /* 0x2F00348B: push edi */
   8155     RECOMP_ICALL(MEM32(0x2F013014)); /* 0x2F00348C: call dword ptr [0x2f013014] */
   8156     RECOMP_FLAGS_IN();
   8157     eax = MEM32(esi + 0xB4); /* 0x2F003492: mov eax, dword ptr [esi + 0xb4] */
   8158     /* test eax, eax */ /* 0x2F003498: test eax, eax */
   8159     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8160     _cf = 0;
   8161     _flag_k = FK_TEST;
   8162     RECOMP_BACKEDGE();
   8163     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F003436; /* 0x2F00349A: jne 0x2f003436 */
   8164 L_2F00349C:
   8165     PUSH32(esp, edi); /* 0x2F00349C: push edi */
   8166     RECOMP_ICALL(MEM32(0x2F013058)); /* 0x2F00349D: call dword ptr [0x2f013058] */
   8167     RECOMP_FLAGS_IN();
   8168     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8169     edi = 0; /* 0x2F0034A3: xor edi, edi */
   8170     _cf = 0;
   8171     _flag_k = FK_TEST;
   8172 L_2F0034A5:
   8173     eax = MEM32(esi + 0x50); /* 0x2F0034A5: mov eax, dword ptr [esi + 0x50] */
   8174     /* cmp eax, edi */ /* 0x2F0034A8: cmp eax, edi */
   8175     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8177     _flag_k = FK_CMP;
   8178     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F003676; /* 0x2F0034AA: je 0x2f003676 */
   8179 L_2F0034B0:
   8180     SET_LO16(eax, MEM16(eax + 0x1DA)); /* 0x2F0034B0: mov ax, word ptr [eax + 0x1da] */
   8181     PUSH32(esp, eax); /* 0x2F0034B7: push eax */
   8182     RECOMP_ICALL(MEM32(0x2F013278)); /* 0x2F0034B8: call dword ptr [0x2f013278] */
   8183     RECOMP_FLAGS_IN();
   8184     edi = eax; /* 0x2F0034BE: mov edi, eax */
   8185     eax = MEM32(esi + 0x50); /* 0x2F0034C0: mov eax, dword ptr [esi + 0x50] */
   8186     ecx = MEM32(eax + 0x1DC); /* 0x2F0034C3: mov ecx, dword ptr [eax + 0x1dc] */
   8187     PUSH32(esp, ecx); /* 0x2F0034C9: push ecx */
   8188     RECOMP_ICALL(MEM32(0x2F01327C)); /* 0x2F0034CA: call dword ptr [0x2f01327c] */
   8189     RECOMP_FLAGS_IN();
   8190     ebx = MEM32(0x2F013514); /* 0x2F0034D0: mov ebx, dword ptr [0x2f013514] */
   8191     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu);
   8192     edi = edi & 0xFFFFu; /* 0x2F0034D6: and edi, 0xffff */
   8193     _cf = 0;
   8194     _flag_k = FK_TEST;
   8195     MEM32(0x2F01F0B0) = eax; /* 0x2F0034DC: mov dword ptr [0x2f01f0b0], eax */
   8196     MEM32(0x2F01F0B4) = edi; /* 0x2F0034E1: mov dword ptr [0x2f01f0b4], edi */
   8197     ecx = MEM32(esi + 0x50); /* 0x2F0034E7: mov ecx, dword ptr [esi + 0x50] */
   8198     RECOMP_ICALL(ebx); /* 0x2F0034EA: call ebx */
   8199     RECOMP_FLAGS_IN();
   8200     edi = eax; /* 0x2F0034EC: mov edi, eax */
   8201     ecx = edi; /* 0x2F0034EE: mov ecx, edi */
   8202     RECOMP_ICALL(MEM32(0x2F01351C)); /* 0x2F0034F0: call dword ptr [0x2f01351c] */
   8203     RECOMP_FLAGS_IN();
   8204     ecx = edi + 0x13C; /* 0x2F0034F6: lea ecx, [edi + 0x13c] */
   8205     MEM32(ebp + (-0x28)) = ecx; /* 0x2F0034FC: mov dword ptr [ebp - 0x28], ecx */
   8206     PUSH32(esp, 1); /* 0x2F0034FF: push 1 */
   8207     PUSH32(esp, 0); /* 0x2F003501: push 0 */
   8208     PUSH32(esp, 0); /* 0x2F003503: push 0 */
   8209     PUSH32(esp, 0); /* 0x2F003505: push 0 */
   8210     MEM32(ebp + (-0x4)) = 1; /* 0x2F003507: mov dword ptr [ebp - 4], 1 */
   8211     RECOMP_ICALL(MEM32(0x2F013354)); /* 0x2F00350E: call dword ptr [0x2f013354] */
   8212     RECOMP_FLAGS_IN();
   8213     MEM32(ebp + (-0x24)) = eax; /* 0x2F003514: mov dword ptr [ebp - 0x24], eax */
   8214     ecx = MEM32(edi + 0x230); /* 0x2F003517: mov ecx, dword ptr [edi + 0x230] */
   8215     /* test ecx, ecx */ /* 0x2F00351D: test ecx, ecx */
   8216     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8217     _cf = 0;
   8218     _flag_k = FK_TEST;
   8219     if (TEST_Z(_flag_a, _flag_b)) goto L_2F00354F; /* 0x2F00351F: je 0x2f00354f */
   8220 L_2F003521:
   8221     eax = MEM32(edi + 0x21C); /* 0x2F003521: mov eax, dword ptr [edi + 0x21c] */
   8222     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8223     edx = 0; /* 0x2F003527: xor edx, edx */
   8224     _cf = 0;
   8225     _flag_k = FK_TEST;
   8226     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x2F003529: div ecx */
   8227       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   8228       else { eax = 0; edx = 0; } }
   8229     MEM32(ebp + (-0x10)) = 0; /* 0x2F00352B: mov dword ptr [ebp - 0x10], 0 */
   8230     ecx = ebp + (-0x28); /* 0x2F003532: lea ecx, [ebp - 0x28] */
   8231     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2F003535: mov dword ptr [ebp - 4], 0xffffffff */
   8232     MEM32(ebp + (-0x14)) = eax; /* 0x2F00353C: mov dword ptr [ebp - 0x14], eax */
   8233     fp_push_i64((int64_t)MEM64(ebp + (-0x14))); /* 0x2F00353F: fild qword ptr [ebp - 0x14] */
   8234     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2F003542: fstp dword ptr [ebp - 0x10] */
   8235     RECOMP_ICALL(0x2F006890u); /* 0x2F003545: call 0x2f006890 */ /* not lifted */
   8236     RECOMP_FLAGS_IN();
   8237     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2F00354A: fld dword ptr [ebp - 0x10] */
   8238     goto L_2F003564; /* 0x2F00354D: jmp 0x2f003564 */
   8239 L_2F00354F:
   8240     ecx = ebp + (-0x28); /* 0x2F00354F: lea ecx, [ebp - 0x28] */
   8241     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2F003552: mov dword ptr [ebp - 4], 0xffffffff */
   8242     RECOMP_ICALL(0x2F006890u); /* 0x2F003559: call 0x2f006890 */ /* not lifted */
   8243     RECOMP_FLAGS_IN();
   8244     fp_push(*(float*)&MEM32(0x2F0137E0)); /* 0x2F00355E: fld dword ptr [0x2f0137e0] */
   8245 L_2F003564:
   8246     ecx = MEM32(esi + 0x50); /* 0x2F003564: mov ecx, dword ptr [esi + 0x50] */
   8247     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2F003567: fstp dword ptr [ebp - 0x18] */
   8248     RECOMP_ICALL(ebx); /* 0x2F00356A: call ebx */
   8249     RECOMP_FLAGS_IN();
   8250     edi = eax; /* 0x2F00356C: mov edi, eax */
   8251     ecx = edi; /* 0x2F00356E: mov ecx, edi */
   8252     RECOMP_ICALL(MEM32(0x2F01351C)); /* 0x2F003570: call dword ptr [0x2f01351c] */
   8253     RECOMP_FLAGS_IN();
   8254     ecx = edi + 0x1C; /* 0x2F003576: lea ecx, [edi + 0x1c] */
   8255     MEM32(ebp + (-0x28)) = ecx; /* 0x2F003579: mov dword ptr [ebp - 0x28], ecx */
   8256     PUSH32(esp, 1); /* 0x2F00357C: push 1 */
   8257     PUSH32(esp, 0); /* 0x2F00357E: push 0 */
   8258     PUSH32(esp, 0); /* 0x2F003580: push 0 */
   8259     PUSH32(esp, 0); /* 0x2F003582: push 0 */
   8260     MEM32(ebp + (-0x4)) = 3; /* 0x2F003584: mov dword ptr [ebp - 4], 3 */
   8261     RECOMP_ICALL(MEM32(0x2F013354)); /* 0x2F00358B: call dword ptr [0x2f013354] */
   8262     RECOMP_FLAGS_IN();
   8263     MEM32(ebp + (-0x24)) = eax; /* 0x2F003591: mov dword ptr [ebp - 0x24], eax */
   8264     ecx = MEM32(edi + 0x110); /* 0x2F003594: mov ecx, dword ptr [edi + 0x110] */
   8265     /* test ecx, ecx */ /* 0x2F00359A: test ecx, ecx */
   8266     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8267     _cf = 0;
   8268     _flag_k = FK_TEST;
   8269     if (TEST_Z(_flag_a, _flag_b)) goto L_2F0035CB; /* 0x2F00359C: je 0x2f0035cb */
   8270 L_2F00359E:
   8271     eax = MEM32(edi + 0xFC); /* 0x2F00359E: mov eax, dword ptr [edi + 0xfc] */
   8272     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8273     edx = 0; /* 0x2F0035A4: xor edx, edx */
   8274     _cf = 0;
   8275     _flag_k = FK_TEST;
   8276     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x2F0035A6: div ecx */
   8277       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   8278       else { eax = 0; edx = 0; } }
   8279     MEM32(ebp + (-0x10)) = 0; /* 0x2F0035A8: mov dword ptr [ebp - 0x10], 0 */
   8280     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   8281     edi = edi | 0xFFFFFFFFu; /* 0x2F0035AF: or edi, 0xffffffff */
   8282     _cf = 0;
   8283     _flag_k = FK_TEST;
   8284     ecx = ebp + (-0x28); /* 0x2F0035B2: lea ecx, [ebp - 0x28] */
   8285     MEM32(ebp + (-0x4)) = edi; /* 0x2F0035B5: mov dword ptr [ebp - 4], edi */
   8286     MEM32(ebp + (-0x14)) = eax; /* 0x2F0035B8: mov dword ptr [ebp - 0x14], eax */
   8287     fp_push_i64((int64_t)MEM64(ebp + (-0x14))); /* 0x2F0035BB: fild qword ptr [ebp - 0x14] */
   8288     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2F0035BE: fstp dword ptr [ebp - 0x10] */
   8289     RECOMP_ICALL(0x2F006890u); /* 0x2F0035C1: call 0x2f006890 */ /* not lifted */
   8290     RECOMP_FLAGS_IN();
   8291     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2F0035C6: fld dword ptr [ebp - 0x10] */
   8292     goto L_2F0035E3; /* 0x2F0035C9: jmp 0x2f0035e3 */
   8293 L_2F0035CB:
   8294     ecx = ebp + (-0x28); /* 0x2F0035CB: lea ecx, [ebp - 0x28] */
   8295     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2F0035CE: mov dword ptr [ebp - 4], 0xffffffff */
   8296     RECOMP_ICALL(0x2F006890u); /* 0x2F0035D5: call 0x2f006890 */ /* not lifted */
   8297     RECOMP_FLAGS_IN();
   8298     fp_push(*(float*)&MEM32(0x2F0137E0)); /* 0x2F0035DA: fld dword ptr [0x2f0137e0] */
   8299     _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu));
   8300     edi = edi | 0xFFFFFFFFu; /* 0x2F0035E0: or edi, 0xffffffff */
   8301     _cf = 0;
   8302     _flag_k = FK_TEST;
   8303 L_2F0035E3:
   8304     ecx = MEM32(esi + 0x50); /* 0x2F0035E3: mov ecx, dword ptr [esi + 0x50] */
   8305     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2F0035E6: fstp dword ptr [ebp - 0x1c] */
   8306     RECOMP_ICALL(ebx); /* 0x2F0035E9: call ebx */
   8307     RECOMP_FLAGS_IN();
   8308     esi = eax; /* 0x2F0035EB: mov esi, eax */
   8309     ecx = esi + 0x26C; /* 0x2F0035ED: lea ecx, [esi + 0x26c] */
   8310     MEM32(ebp + (-0x38)) = ecx; /* 0x2F0035F3: mov dword ptr [ebp - 0x38], ecx */
   8311     PUSH32(esp, 1); /* 0x2F0035F6: push 1 */
   8312     PUSH32(esp, 0); /* 0x2F0035F8: push 0 */
   8313     PUSH32(esp, 0); /* 0x2F0035FA: push 0 */
   8314     PUSH32(esp, 0); /* 0x2F0035FC: push 0 */
   8315     MEM32(ebp + (-0x4)) = 5; /* 0x2F0035FE: mov dword ptr [ebp - 4], 5 */
   8316     RECOMP_ICALL(MEM32(0x2F013354)); /* 0x2F003605: call dword ptr [0x2f013354] */
   8317     RECOMP_FLAGS_IN();
   8318     MEM32(ebp + (-0x34)) = eax; /* 0x2F00360B: mov dword ptr [ebp - 0x34], eax */
   8319     ecx = MEM32(esi + 0x360); /* 0x2F00360E: mov ecx, dword ptr [esi + 0x360] */
   8320     /* test ecx, ecx */ /* 0x2F003614: test ecx, ecx */
   8321     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8322     _cf = 0;
   8323     _flag_k = FK_TEST;
   8324     if (TEST_Z(_flag_a, _flag_b)) goto L_2F003642; /* 0x2F003616: je 0x2f003642 */
   8325 L_2F003618:
   8326     eax = MEM32(esi + 0x34C); /* 0x2F003618: mov eax, dword ptr [esi + 0x34c] */
   8327     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8328     edx = 0; /* 0x2F00361E: xor edx, edx */
   8329     _cf = 0;
   8330     _flag_k = FK_TEST;
   8331     { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x2F003620: div ecx */
   8332       if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); }
   8333       else { eax = 0; edx = 0; } }
   8334     MEM32(ebp + (-0x24)) = 0; /* 0x2F003622: mov dword ptr [ebp - 0x24], 0 */
   8335     ecx = ebp + (-0x38); /* 0x2F003629: lea ecx, [ebp - 0x38] */
   8336     MEM32(ebp + (-0x4)) = edi; /* 0x2F00362C: mov dword ptr [ebp - 4], edi */
   8337     MEM32(ebp + (-0x28)) = eax; /* 0x2F00362F: mov dword ptr [ebp - 0x28], eax */
   8338     fp_push_i64((int64_t)MEM64(ebp + (-0x28))); /* 0x2F003632: fild qword ptr [ebp - 0x28] */
   8339     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2F003635: fstp dword ptr [ebp - 0x10] */
   8340     RECOMP_ICALL(0x2F006890u); /* 0x2F003638: call 0x2f006890 */ /* not lifted */
   8341     RECOMP_FLAGS_IN();
   8342     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2F00363D: fld dword ptr [ebp - 0x10] */
   8343     goto L_2F003653; /* 0x2F003640: jmp 0x2f003653 */
   8344 L_2F003642:
   8345     ecx = ebp + (-0x38); /* 0x2F003642: lea ecx, [ebp - 0x38] */
   8346     MEM32(ebp + (-0x4)) = edi; /* 0x2F003645: mov dword ptr [ebp - 4], edi */
   8347     RECOMP_ICALL(0x2F006890u); /* 0x2F003648: call 0x2f006890 */ /* not lifted */
   8348     RECOMP_FLAGS_IN();
   8349     fp_push(*(float*)&MEM32(0x2F0137E0)); /* 0x2F00364D: fld dword ptr [0x2f0137e0] */
   8350 L_2F003653:
   8351     edx = ebp + (-0x18); /* 0x2F003653: lea edx, [ebp - 0x18] */
   8352     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x2F003656: fstp dword ptr [ebp - 0x20] */
   8353     PUSH32(esp, edx); /* 0x2F003659: push edx */
   8354     eax = ebp + (-0x1C); /* 0x2F00365A: lea eax, [ebp - 0x1c] */
   8355     PUSH32(esp, eax); /* 0x2F00365D: push eax */
   8356     PUSH32(esp, 0); /* 0x2F00365E: push 0 */
   8357     RECOMP_ICALL(MEM32(0x2F013520)); /* 0x2F003660: call dword ptr [0x2f013520] */
   8358     RECOMP_FLAGS_IN();
   8359     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8360     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8361     esp = esp + 4; /* 0x2F003666: add esp, 4 */
   8362     _flag_k = FK_ADD;
   8363     PUSH32(esp, eax); /* 0x2F003669: push eax */
   8364     ecx = ebp + (-0x20); /* 0x2F00366A: lea ecx, [ebp - 0x20] */
   8365     PUSH32(esp, ecx); /* 0x2F00366D: push ecx */
   8366     RECOMP_ICALL(0x2F009730u); /* 0x2F00366E: call 0x2f009730 */ /* not lifted */
   8367     RECOMP_FLAGS_IN();
   8368     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8369     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8370     esp = esp + 0x10u; /* 0x2F003673: add esp, 0x10 */
   8371     _flag_k = FK_ADD;
   8372 L_2F003676:
   8373     ecx = MEM32(ebp + (-0xC)); /* 0x2F003676: mov ecx, dword ptr [ebp - 0xc] */
   8374     edi = POP32_VAL(esp); /* 0x2F003679: pop edi */
   8375     esi = POP32_VAL(esp); /* 0x2F00367A: pop esi */
   8376     ebx = POP32_VAL(esp); /* 0x2F00367B: pop ebx */
   8377     MEM32(FS_BASE + (0)) = ecx; /* 0x2F00367C: mov dword ptr fs:[0], ecx */
   8378     esp = ebp; /* 0x2F003683: mov esp, ebp */
   8379     ebp = POP32_VAL(esp); /* 0x2F003685: pop ebp */
   8380     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F003686: ret  */
   8381 L_2F006C50:
   8382     ecx = MEM32(0x2F01F018); /* 0x2F006C50: mov ecx, dword ptr [0x2f01f018] */
   8383     RECOMP_BACKEDGE();
   8384     goto L_2F003350; /* 0x2F006C56: jmp 0x2f003350 */
   8385     { RECOMP_REGS_OUT(); return; } /* end of function */
   8386     RECOMP_REGS_OUT();
   8387 }
   8388 
   8389 void sub_2F006C60(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(0x2F006C60u);
   8398 
   8399 L_2F006C60:
   8400     PUSH32(esp, ebp); /* 0x2F006C60: push ebp */
   8401     ebp = esp; /* 0x2F006C61: mov ebp, esp */
   8402     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F006C63: push -1 */
   8403     PUSH32(esp, 0x2F0121EBu); /* 0x2F006C65: push 0x2f0121eb */
   8404     eax = MEM32(FS_BASE + (0)); /* 0x2F006C6A: mov eax, dword ptr fs:[0] */
   8405     PUSH32(esp, eax); /* 0x2F006C70: push eax */
   8406     MEM32(FS_BASE + (0)) = esp; /* 0x2F006C71: mov dword ptr fs:[0], esp */
   8407     PUSH32(esp, ecx); /* 0x2F006C78: push ecx */
   8408     eax = MEM32(0x2F01F00C); /* 0x2F006C79: mov eax, dword ptr [0x2f01f00c] */
   8409     /* test eax, eax */ /* 0x2F006C7E: test eax, eax */
   8410     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8411     _cf = 0;
   8412     _flag_k = FK_TEST;
   8413     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F006CBE; /* 0x2F006C80: jne 0x2f006cbe */
   8414 L_2F006C82:
   8415     PUSH32(esp, 0x144u); /* 0x2F006C82: push 0x144 */
   8416     RECOMP_ICALL(0x2F0117DCu); /* 0x2F006C87: call 0x2f0117dc */ /* not lifted */
   8417     RECOMP_FLAGS_IN();
   8418     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8419     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8420     esp = esp + 4; /* 0x2F006C8C: add esp, 4 */
   8421     _flag_k = FK_ADD;
   8422     MEM32(ebp + (-0x10)) = eax; /* 0x2F006C8F: mov dword ptr [ebp - 0x10], eax */
   8423     /* test eax, eax */ /* 0x2F006C92: test eax, eax */
   8424     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8425     _cf = 0;
   8426     _flag_k = FK_TEST;
   8427     MEM32(ebp + (-0x4)) = 0; /* 0x2F006C94: mov dword ptr [ebp - 4], 0 */
   8428     if (TEST_Z(_flag_a, _flag_b)) goto L_2F006CB7; /* 0x2F006C9B: je 0x2f006cb7 */
   8429 L_2F006C9D:
   8430     ecx = eax; /* 0x2F006C9D: mov ecx, eax */
   8431     RECOMP_ICALL(0x2F0014A0u); /* 0x2F006C9F: call 0x2f0014a0 */ /* not lifted */
   8432     RECOMP_FLAGS_IN();
   8433     MEM32(0x2F01F00C) = eax; /* 0x2F006CA4: mov dword ptr [0x2f01f00c], eax */
   8434     ecx = MEM32(ebp + (-0xC)); /* 0x2F006CA9: mov ecx, dword ptr [ebp - 0xc] */
   8435     MEM32(FS_BASE + (0)) = ecx; /* 0x2F006CAC: mov dword ptr fs:[0], ecx */
   8436     esp = ebp; /* 0x2F006CB3: mov esp, ebp */
   8437     ebp = POP32_VAL(esp); /* 0x2F006CB5: pop ebp */
   8438     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006CB6: ret  */
   8439 L_2F006CB7:
   8440     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8441     eax = 0; /* 0x2F006CB7: xor eax, eax */
   8442     _cf = 0;
   8443     _flag_k = FK_TEST;
   8444     MEM32(0x2F01F00C) = eax; /* 0x2F006CB9: mov dword ptr [0x2f01f00c], eax */
   8445 L_2F006CBE:
   8446     ecx = MEM32(ebp + (-0xC)); /* 0x2F006CBE: mov ecx, dword ptr [ebp - 0xc] */
   8447     MEM32(FS_BASE + (0)) = ecx; /* 0x2F006CC1: mov dword ptr fs:[0], ecx */
   8448     esp = ebp; /* 0x2F006CC8: mov esp, ebp */
   8449     ebp = POP32_VAL(esp); /* 0x2F006CCA: pop ebp */
   8450     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006CCB: ret  */
   8451     RECOMP_REGS_OUT();
   8452 }
   8453 
   8454 void sub_2F006CD0(void) {
   8455     int _fpu_cmp = 0;
   8456     uint32_t _cf = 0;
   8457     int _df = 1;
   8458     uint32_t _flag_k = FK_NONE;
   8459     uint32_t _flag_a = 0, _flag_b = 0;
   8460     uint32_t _itail_tgt = 0;
   8461     RECOMP_REGS_LOCALS
   8462     RECOMP_ENTER(0x2F006CD0u);
   8463 
   8464 L_2F006CD0:
   8465     eax = 0x2F01F5A0u; /* 0x2F006CD0: mov eax, 0x2f01f5a0 */
   8466     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006CD5: ret  */
   8467     RECOMP_REGS_OUT();
   8468 }
   8469 
   8470 void sub_2F006CE0(void) {
   8471     int _fpu_cmp = 0;
   8472     uint32_t _cf = 0;
   8473     int _df = 1;
   8474     uint32_t _flag_k = FK_NONE;
   8475     uint32_t _flag_a = 0, _flag_b = 0;
   8476     uint32_t _itail_tgt = 0;
   8477     RECOMP_REGS_LOCALS
   8478     RECOMP_ENTER(0x2F006CE0u);
   8479 
   8480 L_2F006CE0:
   8481     RECOMP_ICALL(0x2F006CF0u); /* 0x2F006CE0: call 0x2f006cf0 */ /* not lifted */
   8482     RECOMP_FLAGS_IN();
   8483     goto L_2F006E60; /* 0x2F006CE5: jmp 0x2f006e60 */
   8484 L_2F006E60:
   8485     PUSH32(esp, 0x2F006E70u); /* 0x2F006E60: push 0x2f006e70 */
   8486     RECOMP_ICALL(0x2F01180Eu); /* 0x2F006E65: call 0x2f01180e */ /* not lifted */
   8487     RECOMP_FLAGS_IN();
   8488     ecx = POP32_VAL(esp); /* 0x2F006E6A: pop ecx */
   8489     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006E6B: ret  */
   8490     RECOMP_REGS_OUT();
   8491 }
   8492 
   8493 void sub_2F006CF0(void) {
   8494     int _fpu_cmp = 0;
   8495     uint32_t _cf = 0;
   8496     int _df = 1;
   8497     uint32_t _flag_k = FK_NONE;
   8498     uint32_t _flag_a = 0, _flag_b = 0;
   8499     uint32_t _itail_tgt = 0;
   8500     RECOMP_REGS_LOCALS
   8501     RECOMP_ENTER(0x2F006CF0u);
   8502 
   8503 L_2F006CF0:
   8504     ecx = 0x2F01F028u; /* 0x2F006CF0: mov ecx, 0x2f01f028 */
   8505     goto L_2F006D00; /* 0x2F006CF5: jmp 0x2f006d00 */
   8506 L_2F006D00:
   8507     PUSH32(esp, ebp); /* 0x2F006D00: push ebp */
   8508     ebp = esp; /* 0x2F006D01: mov ebp, esp */
   8509     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F006D03: push -1 */
   8510     PUSH32(esp, 0x2F0122B7u); /* 0x2F006D05: push 0x2f0122b7 */
   8511     eax = MEM32(FS_BASE + (0)); /* 0x2F006D0A: mov eax, dword ptr fs:[0] */
   8512     PUSH32(esp, eax); /* 0x2F006D10: push eax */
   8513     MEM32(FS_BASE + (0)) = esp; /* 0x2F006D11: mov dword ptr fs:[0], esp */
   8514     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8515     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8516     esp = esp - 8; /* 0x2F006D18: sub esp, 8 */
   8517     _flag_k = FK_CMP;
   8518     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006D1B: mov al, byte ptr [ebp - 0xd] */
   8519     PUSH32(esp, esi); /* 0x2F006D1E: push esi */
   8520     PUSH32(esp, edi); /* 0x2F006D1F: push edi */
   8521     esi = ecx; /* 0x2F006D20: mov esi, ecx */
   8522     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8523     edi = 0; /* 0x2F006D22: xor edi, edi */
   8524     _cf = 0;
   8525     _flag_k = FK_TEST;
   8526     PUSH32(esp, edi); /* 0x2F006D24: push edi */
   8527     MEM32(ebp + (-0x14)) = esi; /* 0x2F006D25: mov dword ptr [ebp - 0x14], esi */
   8528     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x2F006D28: mov byte ptr [esi], al */
   8529     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D2A: call dword ptr [0x2f01310c] */
   8530     RECOMP_FLAGS_IN();
   8531     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006D30: mov dl, byte ptr [ebp - 0xd] */
   8532     ecx = esi + 0x10; /* 0x2F006D33: lea ecx, [esi + 0x10] */
   8533     PUSH32(esp, edi); /* 0x2F006D36: push edi */
   8534     MEM32(ebp + (-0x4)) = edi; /* 0x2F006D37: mov dword ptr [ebp - 4], edi */
   8535     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006D3A: mov byte ptr [ecx], dl */
   8536     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D3C: call dword ptr [0x2f01310c] */
   8537     RECOMP_FLAGS_IN();
   8538     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006D42: mov al, byte ptr [ebp - 0xd] */
   8539     ecx = esi + 0x20; /* 0x2F006D45: lea ecx, [esi + 0x20] */
   8540     PUSH32(esp, edi); /* 0x2F006D48: push edi */
   8541     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2F006D49: mov byte ptr [ebp - 4], 1 */
   8542     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006D4D: mov byte ptr [ecx], al */
   8543     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D4F: call dword ptr [0x2f01310c] */
   8544     RECOMP_FLAGS_IN();
   8545     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006D55: mov dl, byte ptr [ebp - 0xd] */
   8546     ecx = esi + 0x30; /* 0x2F006D58: lea ecx, [esi + 0x30] */
   8547     PUSH32(esp, edi); /* 0x2F006D5B: push edi */
   8548     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2F006D5C: mov byte ptr [ebp - 4], 2 */
   8549     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006D60: mov byte ptr [ecx], dl */
   8550     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D62: call dword ptr [0x2f01310c] */
   8551     RECOMP_FLAGS_IN();
   8552     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006D68: mov al, byte ptr [ebp - 0xd] */
   8553     ecx = esi + 0x40; /* 0x2F006D6B: lea ecx, [esi + 0x40] */
   8554     PUSH32(esp, edi); /* 0x2F006D6E: push edi */
   8555     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2F006D6F: mov byte ptr [ebp - 4], 3 */
   8556     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006D73: mov byte ptr [ecx], al */
   8557     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D75: call dword ptr [0x2f01310c] */
   8558     RECOMP_FLAGS_IN();
   8559     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006D7B: mov dl, byte ptr [ebp - 0xd] */
   8560     ecx = esi + 0x50; /* 0x2F006D7E: lea ecx, [esi + 0x50] */
   8561     PUSH32(esp, edi); /* 0x2F006D81: push edi */
   8562     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2F006D82: mov byte ptr [ebp - 4], 4 */
   8563     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006D86: mov byte ptr [ecx], dl */
   8564     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D88: call dword ptr [0x2f01310c] */
   8565     RECOMP_FLAGS_IN();
   8566     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006D8E: mov al, byte ptr [ebp - 0xd] */
   8567     ecx = esi + 0x60; /* 0x2F006D91: lea ecx, [esi + 0x60] */
   8568     PUSH32(esp, edi); /* 0x2F006D94: push edi */
   8569     MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2F006D95: mov byte ptr [ebp - 4], 5 */
   8570     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006D99: mov byte ptr [ecx], al */
   8571     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D9B: call dword ptr [0x2f01310c] */
   8572     RECOMP_FLAGS_IN();
   8573     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006DA1: mov dl, byte ptr [ebp - 0xd] */
   8574     ecx = esi + 0x70; /* 0x2F006DA4: lea ecx, [esi + 0x70] */
   8575     PUSH32(esp, edi); /* 0x2F006DA7: push edi */
   8576     MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x2F006DA8: mov byte ptr [ebp - 4], 6 */
   8577     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006DAC: mov byte ptr [ecx], dl */
   8578     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006DAE: call dword ptr [0x2f01310c] */
   8579     RECOMP_FLAGS_IN();
   8580     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006DB4: mov al, byte ptr [ebp - 0xd] */
   8581     ecx = esi + 0xA0; /* 0x2F006DB7: lea ecx, [esi + 0xa0] */
   8582     PUSH32(esp, edi); /* 0x2F006DBD: push edi */
   8583     MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x2F006DBE: mov byte ptr [ebp - 4], 7 */
   8584     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006DC2: mov byte ptr [ecx], al */
   8585     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006DC4: call dword ptr [0x2f01310c] */
   8586     RECOMP_FLAGS_IN();
   8587     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006DCA: mov dl, byte ptr [ebp - 0xd] */
   8588     ecx = esi + 0xB0; /* 0x2F006DCD: lea ecx, [esi + 0xb0] */
   8589     PUSH32(esp, edi); /* 0x2F006DD3: push edi */
   8590     MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x2F006DD4: mov byte ptr [ebp - 4], 8 */
   8591     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006DD8: mov byte ptr [ecx], dl */
   8592     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006DDA: call dword ptr [0x2f01310c] */
   8593     RECOMP_FLAGS_IN();
   8594     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006DE0: mov al, byte ptr [ebp - 0xd] */
   8595     ecx = esi + 0xC0; /* 0x2F006DE3: lea ecx, [esi + 0xc0] */
   8596     PUSH32(esp, edi); /* 0x2F006DE9: push edi */
   8597     MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x2F006DEA: mov byte ptr [ebp - 4], 9 */
   8598     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006DEE: mov byte ptr [ecx], al */
   8599     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006DF0: call dword ptr [0x2f01310c] */
   8600     RECOMP_FLAGS_IN();
   8601     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2F006DF6: mov cl, byte ptr [ebp - 0xd] */
   8602     MEM8(esi + 0xE0) = (uint8_t)(LO8(ecx)); /* 0x2F006DF9: mov byte ptr [esi + 0xe0], cl */
   8603     MEM32(esi + 0xE4) = edi; /* 0x2F006DFF: mov dword ptr [esi + 0xe4], edi */
   8604     MEM32(esi + 0xE8) = edi; /* 0x2F006E05: mov dword ptr [esi + 0xe8], edi */
   8605     MEM32(esi + 0xEC) = edi; /* 0x2F006E0B: mov dword ptr [esi + 0xec], edi */
   8606     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006E11: mov dl, byte ptr [ebp - 0xd] */
   8607     ecx = esi + 0x10C; /* 0x2F006E14: lea ecx, [esi + 0x10c] */
   8608     PUSH32(esp, edi); /* 0x2F006E1A: push edi */
   8609     MEM8(ebp + (-0x4)) = (uint8_t)(0xBu); /* 0x2F006E1B: mov byte ptr [ebp - 4], 0xb */
   8610     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006E1F: mov byte ptr [ecx], dl */
   8611     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006E21: call dword ptr [0x2f01310c] */
   8612     RECOMP_FLAGS_IN();
   8613     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006E27: mov al, byte ptr [ebp - 0xd] */
   8614     MEM8(esi + 0x11C) = (uint8_t)(LO8(eax)); /* 0x2F006E2A: mov byte ptr [esi + 0x11c], al */
   8615     MEM32(esi + 0x120) = edi; /* 0x2F006E30: mov dword ptr [esi + 0x120], edi */
   8616     MEM32(esi + 0x124) = edi; /* 0x2F006E36: mov dword ptr [esi + 0x124], edi */
   8617     MEM32(esi + 0x128) = edi; /* 0x2F006E3C: mov dword ptr [esi + 0x128], edi */
   8618     ecx = esi; /* 0x2F006E42: mov ecx, esi */
   8619     MEM8(ebp + (-0x4)) = (uint8_t)(0xDu); /* 0x2F006E44: mov byte ptr [ebp - 4], 0xd */
   8620     RECOMP_ICALL(0x2F007060u); /* 0x2F006E48: call 0x2f007060 */ /* not lifted */
   8621     RECOMP_FLAGS_IN();
   8622     ecx = MEM32(ebp + (-0xC)); /* 0x2F006E4D: mov ecx, dword ptr [ebp - 0xc] */
   8623     edi = POP32_VAL(esp); /* 0x2F006E50: pop edi */
   8624     eax = esi; /* 0x2F006E51: mov eax, esi */
   8625     esi = POP32_VAL(esp); /* 0x2F006E53: pop esi */
   8626     MEM32(FS_BASE + (0)) = ecx; /* 0x2F006E54: mov dword ptr fs:[0], ecx */
   8627     esp = ebp; /* 0x2F006E5B: mov esp, ebp */
   8628     ebp = POP32_VAL(esp); /* 0x2F006E5D: pop ebp */
   8629     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006E5E: ret  */
   8630     RECOMP_REGS_OUT();
   8631 }
   8632 
   8633 void sub_2F006D00(void) {
   8634     int _fpu_cmp = 0;
   8635     uint32_t _cf = 0;
   8636     int _df = 1;
   8637     uint32_t _flag_k = FK_NONE;
   8638     uint32_t _flag_a = 0, _flag_b = 0;
   8639     uint32_t _itail_tgt = 0;
   8640     RECOMP_REGS_LOCALS
   8641     RECOMP_ENTER(0x2F006D00u);
   8642 
   8643 L_2F006D00:
   8644     PUSH32(esp, ebp); /* 0x2F006D00: push ebp */
   8645     ebp = esp; /* 0x2F006D01: mov ebp, esp */
   8646     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F006D03: push -1 */
   8647     PUSH32(esp, 0x2F0122B7u); /* 0x2F006D05: push 0x2f0122b7 */
   8648     eax = MEM32(FS_BASE + (0)); /* 0x2F006D0A: mov eax, dword ptr fs:[0] */
   8649     PUSH32(esp, eax); /* 0x2F006D10: push eax */
   8650     MEM32(FS_BASE + (0)) = esp; /* 0x2F006D11: mov dword ptr fs:[0], esp */
   8651     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8653     esp = esp - 8; /* 0x2F006D18: sub esp, 8 */
   8654     _flag_k = FK_CMP;
   8655     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006D1B: mov al, byte ptr [ebp - 0xd] */
   8656     PUSH32(esp, esi); /* 0x2F006D1E: push esi */
   8657     PUSH32(esp, edi); /* 0x2F006D1F: push edi */
   8658     esi = ecx; /* 0x2F006D20: mov esi, ecx */
   8659     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8660     edi = 0; /* 0x2F006D22: xor edi, edi */
   8661     _cf = 0;
   8662     _flag_k = FK_TEST;
   8663     PUSH32(esp, edi); /* 0x2F006D24: push edi */
   8664     MEM32(ebp + (-0x14)) = esi; /* 0x2F006D25: mov dword ptr [ebp - 0x14], esi */
   8665     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x2F006D28: mov byte ptr [esi], al */
   8666     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D2A: call dword ptr [0x2f01310c] */
   8667     RECOMP_FLAGS_IN();
   8668     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006D30: mov dl, byte ptr [ebp - 0xd] */
   8669     ecx = esi + 0x10; /* 0x2F006D33: lea ecx, [esi + 0x10] */
   8670     PUSH32(esp, edi); /* 0x2F006D36: push edi */
   8671     MEM32(ebp + (-0x4)) = edi; /* 0x2F006D37: mov dword ptr [ebp - 4], edi */
   8672     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006D3A: mov byte ptr [ecx], dl */
   8673     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D3C: call dword ptr [0x2f01310c] */
   8674     RECOMP_FLAGS_IN();
   8675     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006D42: mov al, byte ptr [ebp - 0xd] */
   8676     ecx = esi + 0x20; /* 0x2F006D45: lea ecx, [esi + 0x20] */
   8677     PUSH32(esp, edi); /* 0x2F006D48: push edi */
   8678     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2F006D49: mov byte ptr [ebp - 4], 1 */
   8679     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006D4D: mov byte ptr [ecx], al */
   8680     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D4F: call dword ptr [0x2f01310c] */
   8681     RECOMP_FLAGS_IN();
   8682     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006D55: mov dl, byte ptr [ebp - 0xd] */
   8683     ecx = esi + 0x30; /* 0x2F006D58: lea ecx, [esi + 0x30] */
   8684     PUSH32(esp, edi); /* 0x2F006D5B: push edi */
   8685     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2F006D5C: mov byte ptr [ebp - 4], 2 */
   8686     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006D60: mov byte ptr [ecx], dl */
   8687     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D62: call dword ptr [0x2f01310c] */
   8688     RECOMP_FLAGS_IN();
   8689     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006D68: mov al, byte ptr [ebp - 0xd] */
   8690     ecx = esi + 0x40; /* 0x2F006D6B: lea ecx, [esi + 0x40] */
   8691     PUSH32(esp, edi); /* 0x2F006D6E: push edi */
   8692     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2F006D6F: mov byte ptr [ebp - 4], 3 */
   8693     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006D73: mov byte ptr [ecx], al */
   8694     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D75: call dword ptr [0x2f01310c] */
   8695     RECOMP_FLAGS_IN();
   8696     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006D7B: mov dl, byte ptr [ebp - 0xd] */
   8697     ecx = esi + 0x50; /* 0x2F006D7E: lea ecx, [esi + 0x50] */
   8698     PUSH32(esp, edi); /* 0x2F006D81: push edi */
   8699     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2F006D82: mov byte ptr [ebp - 4], 4 */
   8700     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006D86: mov byte ptr [ecx], dl */
   8701     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D88: call dword ptr [0x2f01310c] */
   8702     RECOMP_FLAGS_IN();
   8703     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006D8E: mov al, byte ptr [ebp - 0xd] */
   8704     ecx = esi + 0x60; /* 0x2F006D91: lea ecx, [esi + 0x60] */
   8705     PUSH32(esp, edi); /* 0x2F006D94: push edi */
   8706     MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2F006D95: mov byte ptr [ebp - 4], 5 */
   8707     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006D99: mov byte ptr [ecx], al */
   8708     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006D9B: call dword ptr [0x2f01310c] */
   8709     RECOMP_FLAGS_IN();
   8710     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006DA1: mov dl, byte ptr [ebp - 0xd] */
   8711     ecx = esi + 0x70; /* 0x2F006DA4: lea ecx, [esi + 0x70] */
   8712     PUSH32(esp, edi); /* 0x2F006DA7: push edi */
   8713     MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x2F006DA8: mov byte ptr [ebp - 4], 6 */
   8714     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006DAC: mov byte ptr [ecx], dl */
   8715     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006DAE: call dword ptr [0x2f01310c] */
   8716     RECOMP_FLAGS_IN();
   8717     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006DB4: mov al, byte ptr [ebp - 0xd] */
   8718     ecx = esi + 0xA0; /* 0x2F006DB7: lea ecx, [esi + 0xa0] */
   8719     PUSH32(esp, edi); /* 0x2F006DBD: push edi */
   8720     MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x2F006DBE: mov byte ptr [ebp - 4], 7 */
   8721     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006DC2: mov byte ptr [ecx], al */
   8722     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006DC4: call dword ptr [0x2f01310c] */
   8723     RECOMP_FLAGS_IN();
   8724     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006DCA: mov dl, byte ptr [ebp - 0xd] */
   8725     ecx = esi + 0xB0; /* 0x2F006DCD: lea ecx, [esi + 0xb0] */
   8726     PUSH32(esp, edi); /* 0x2F006DD3: push edi */
   8727     MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x2F006DD4: mov byte ptr [ebp - 4], 8 */
   8728     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006DD8: mov byte ptr [ecx], dl */
   8729     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006DDA: call dword ptr [0x2f01310c] */
   8730     RECOMP_FLAGS_IN();
   8731     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006DE0: mov al, byte ptr [ebp - 0xd] */
   8732     ecx = esi + 0xC0; /* 0x2F006DE3: lea ecx, [esi + 0xc0] */
   8733     PUSH32(esp, edi); /* 0x2F006DE9: push edi */
   8734     MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x2F006DEA: mov byte ptr [ebp - 4], 9 */
   8735     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006DEE: mov byte ptr [ecx], al */
   8736     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006DF0: call dword ptr [0x2f01310c] */
   8737     RECOMP_FLAGS_IN();
   8738     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2F006DF6: mov cl, byte ptr [ebp - 0xd] */
   8739     MEM8(esi + 0xE0) = (uint8_t)(LO8(ecx)); /* 0x2F006DF9: mov byte ptr [esi + 0xe0], cl */
   8740     MEM32(esi + 0xE4) = edi; /* 0x2F006DFF: mov dword ptr [esi + 0xe4], edi */
   8741     MEM32(esi + 0xE8) = edi; /* 0x2F006E05: mov dword ptr [esi + 0xe8], edi */
   8742     MEM32(esi + 0xEC) = edi; /* 0x2F006E0B: mov dword ptr [esi + 0xec], edi */
   8743     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2F006E11: mov dl, byte ptr [ebp - 0xd] */
   8744     ecx = esi + 0x10C; /* 0x2F006E14: lea ecx, [esi + 0x10c] */
   8745     PUSH32(esp, edi); /* 0x2F006E1A: push edi */
   8746     MEM8(ebp + (-0x4)) = (uint8_t)(0xBu); /* 0x2F006E1B: mov byte ptr [ebp - 4], 0xb */
   8747     MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2F006E1F: mov byte ptr [ecx], dl */
   8748     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006E21: call dword ptr [0x2f01310c] */
   8749     RECOMP_FLAGS_IN();
   8750     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2F006E27: mov al, byte ptr [ebp - 0xd] */
   8751     MEM8(esi + 0x11C) = (uint8_t)(LO8(eax)); /* 0x2F006E2A: mov byte ptr [esi + 0x11c], al */
   8752     MEM32(esi + 0x120) = edi; /* 0x2F006E30: mov dword ptr [esi + 0x120], edi */
   8753     MEM32(esi + 0x124) = edi; /* 0x2F006E36: mov dword ptr [esi + 0x124], edi */
   8754     MEM32(esi + 0x128) = edi; /* 0x2F006E3C: mov dword ptr [esi + 0x128], edi */
   8755     ecx = esi; /* 0x2F006E42: mov ecx, esi */
   8756     MEM8(ebp + (-0x4)) = (uint8_t)(0xDu); /* 0x2F006E44: mov byte ptr [ebp - 4], 0xd */
   8757     RECOMP_ICALL(0x2F007060u); /* 0x2F006E48: call 0x2f007060 */ /* not lifted */
   8758     RECOMP_FLAGS_IN();
   8759     ecx = MEM32(ebp + (-0xC)); /* 0x2F006E4D: mov ecx, dword ptr [ebp - 0xc] */
   8760     edi = POP32_VAL(esp); /* 0x2F006E50: pop edi */
   8761     eax = esi; /* 0x2F006E51: mov eax, esi */
   8762     esi = POP32_VAL(esp); /* 0x2F006E53: pop esi */
   8763     MEM32(FS_BASE + (0)) = ecx; /* 0x2F006E54: mov dword ptr fs:[0], ecx */
   8764     esp = ebp; /* 0x2F006E5B: mov esp, ebp */
   8765     ebp = POP32_VAL(esp); /* 0x2F006E5D: pop ebp */
   8766     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006E5E: ret  */
   8767     RECOMP_REGS_OUT();
   8768 }
   8769 
   8770 void sub_2F006E60(void) {
   8771     int _fpu_cmp = 0;
   8772     uint32_t _cf = 0;
   8773     int _df = 1;
   8774     uint32_t _flag_k = FK_NONE;
   8775     uint32_t _flag_a = 0, _flag_b = 0;
   8776     uint32_t _itail_tgt = 0;
   8777     RECOMP_REGS_LOCALS
   8778     RECOMP_ENTER(0x2F006E60u);
   8779 
   8780 L_2F006E60:
   8781     PUSH32(esp, 0x2F006E70u); /* 0x2F006E60: push 0x2f006e70 */
   8782     RECOMP_ICALL(0x2F01180Eu); /* 0x2F006E65: call 0x2f01180e */ /* not lifted */
   8783     RECOMP_FLAGS_IN();
   8784     ecx = POP32_VAL(esp); /* 0x2F006E6A: pop ecx */
   8785     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006E6B: ret  */
   8786     RECOMP_REGS_OUT();
   8787 }
   8788 
   8789 void sub_2F006E70(void) {
   8790     int _fpu_cmp = 0;
   8791     uint32_t _cf = 0;
   8792     int _df = 1;
   8793     uint32_t _flag_k = FK_NONE;
   8794     uint32_t _flag_a = 0, _flag_b = 0;
   8795     uint32_t _itail_tgt = 0;
   8796     RECOMP_REGS_LOCALS
   8797     RECOMP_ENTER(0x2F006E70u);
   8798 
   8799 L_2F006E70:
   8800     SET_LO8(ecx, MEM8(0x2F01F020)); /* 0x2F006E70: mov cl, byte ptr [0x2f01f020] */
   8801     SET_LO8(eax, 1); /* 0x2F006E76: mov al, 1 */
   8802     /* test LO8(eax), LO8(ecx) */ /* 0x2F006E78: test al, cl */
   8803     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   8804     _cf = 0;
   8805     _flag_k = FK_NARROW(FK_TEST, 24);
   8806     if (TEST_NZ(_flag_a, _flag_b)) goto L_2F006E8E; /* 0x2F006E7A: jne 0x2f006e8e */
   8807 L_2F006E7C:
   8808     _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24;
   8809     SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2F006E7C: or cl, al */
   8810     _cf = 0;
   8811     _flag_k = FK_NARROW(FK_TEST, 24);
   8812     MEM8(0x2F01F020) = (uint8_t)(LO8(ecx)); /* 0x2F006E7E: mov byte ptr [0x2f01f020], cl */
   8813     ecx = 0x2F01F028u; /* 0x2F006E84: mov ecx, 0x2f01f028 */
   8814     goto L_2F006E90; /* 0x2F006E89: jmp 0x2f006e90 */
   8815 L_2F006E8E:
   8816     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F006E8E: ret  */
   8817 L_2F006E90:
   8818     PUSH32(esp, ebp); /* 0x2F006E90: push ebp */
   8819     ebp = esp; /* 0x2F006E91: mov ebp, esp */
   8820     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F006E93: push -1 */
   8821     PUSH32(esp, 0x2F012378u); /* 0x2F006E95: push 0x2f012378 */
   8822     eax = MEM32(FS_BASE + (0)); /* 0x2F006E9A: mov eax, dword ptr fs:[0] */
   8823     PUSH32(esp, eax); /* 0x2F006EA0: push eax */
   8824     MEM32(FS_BASE + (0)) = esp; /* 0x2F006EA1: mov dword ptr fs:[0], esp */
   8825     PUSH32(esp, ecx); /* 0x2F006EA8: push ecx */
   8826     PUSH32(esp, ebx); /* 0x2F006EA9: push ebx */
   8827     PUSH32(esp, esi); /* 0x2F006EAA: push esi */
   8828     esi = ecx; /* 0x2F006EAB: mov esi, ecx */
   8829     MEM32(ebp + (-0x10)) = esi; /* 0x2F006EAD: mov dword ptr [ebp - 0x10], esi */
   8830     PUSH32(esp, 1); /* 0x2F006EB0: push 1 */
   8831     ecx = esi + 0x11C; /* 0x2F006EB2: lea ecx, [esi + 0x11c] */
   8832     MEM32(ebp + (-0x4)) = 0xCu; /* 0x2F006EB8: mov dword ptr [ebp - 4], 0xc */
   8833     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006EBF: call dword ptr [0x2f01310c] */
   8834     RECOMP_FLAGS_IN();
   8835     PUSH32(esp, 1); /* 0x2F006EC5: push 1 */
   8836     ecx = esi + 0x10C; /* 0x2F006EC7: lea ecx, [esi + 0x10c] */
   8837     MEM8(ebp + (-0x4)) = (uint8_t)(0xBu); /* 0x2F006ECD: mov byte ptr [ebp - 4], 0xb */
   8838     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006ED1: call dword ptr [0x2f01310c] */
   8839     RECOMP_FLAGS_IN();
   8840     PUSH32(esp, 1); /* 0x2F006ED7: push 1 */
   8841     ecx = esi + 0xE0; /* 0x2F006ED9: lea ecx, [esi + 0xe0] */
   8842     MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x2F006EDF: mov byte ptr [ebp - 4], 0xa */
   8843     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006EE3: call dword ptr [0x2f01310c] */
   8844     RECOMP_FLAGS_IN();
   8845     PUSH32(esp, 1); /* 0x2F006EE9: push 1 */
   8846     ecx = esi + 0xC0; /* 0x2F006EEB: lea ecx, [esi + 0xc0] */
   8847     MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x2F006EF1: mov byte ptr [ebp - 4], 9 */
   8848     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006EF5: call dword ptr [0x2f01310c] */
   8849     RECOMP_FLAGS_IN();
   8850     PUSH32(esp, 1); /* 0x2F006EFB: push 1 */
   8851     ecx = esi + 0xB0; /* 0x2F006EFD: lea ecx, [esi + 0xb0] */
   8852     MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x2F006F03: mov byte ptr [ebp - 4], 8 */
   8853     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006F07: call dword ptr [0x2f01310c] */
   8854     RECOMP_FLAGS_IN();
   8855     PUSH32(esp, 1); /* 0x2F006F0D: push 1 */
   8856     ecx = esi + 0xA0; /* 0x2F006F0F: lea ecx, [esi + 0xa0] */
   8857     MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x2F006F15: mov byte ptr [ebp - 4], 7 */
   8858     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006F19: call dword ptr [0x2f01310c] */
   8859     RECOMP_FLAGS_IN();
   8860     PUSH32(esp, 1); /* 0x2F006F1F: push 1 */
   8861     ecx = esi + 0x70; /* 0x2F006F21: lea ecx, [esi + 0x70] */
   8862     MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x2F006F24: mov byte ptr [ebp - 4], 6 */
   8863     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006F28: call dword ptr [0x2f01310c] */
   8864     RECOMP_FLAGS_IN();
   8865     PUSH32(esp, 1); /* 0x2F006F2E: push 1 */
   8866     ecx = esi + 0x60; /* 0x2F006F30: lea ecx, [esi + 0x60] */
   8867     MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2F006F33: mov byte ptr [ebp - 4], 5 */
   8868     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006F37: call dword ptr [0x2f01310c] */
   8869     RECOMP_FLAGS_IN();
   8870     eax = MEM32(esi + 0x54); /* 0x2F006F3D: mov eax, dword ptr [esi + 0x54] */
   8871     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8872     ebx = 0; /* 0x2F006F40: xor ebx, ebx */
   8873     _cf = 0;
   8874     _flag_k = FK_TEST;
   8875     /* cmp eax, ebx */ /* 0x2F006F42: cmp eax, ebx */
   8876     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   8877     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8878     _flag_k = FK_CMP;
   8879     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F62; /* 0x2F006F44: je 0x2f006f62 */
   8880 L_2F006F46:
   8881     ecx = eax + (-0x1); /* 0x2F006F46: lea ecx, [eax - 1] */
   8882     SET_LO8(eax, MEM8(ecx)); /* 0x2F006F49: mov al, byte ptr [ecx] */
   8883     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006F4B: cmp al, bl */
   8884     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8885     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8886     _flag_k = FK_NARROW(FK_CMP, 24);
   8887     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F59; /* 0x2F006F4D: je 0x2f006f59 */
   8888 L_2F006F4F:
   8889     /* cmp LO8(eax), 0xFFu */ /* 0x2F006F4F: cmp al, 0xff */
   8890     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   8891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8892     _flag_k = FK_NARROW(FK_CMP, 24);
   8893     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F59; /* 0x2F006F51: je 0x2f006f59 */
   8894 L_2F006F53:
   8895     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8896     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006F53: dec al */
   8897     _flag_k = FK_NARROW(FK_DEC, 24);
   8898     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006F55: mov byte ptr [ecx], al */
   8899     goto L_2F006F62; /* 0x2F006F57: jmp 0x2f006f62 */
   8900 L_2F006F59:
   8901     PUSH32(esp, ecx); /* 0x2F006F59: push ecx */
   8902     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006F5A: call 0x2f0116b4 */ /* not lifted */
   8903     RECOMP_FLAGS_IN();
   8904     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8905     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8906     esp = esp + 4; /* 0x2F006F5F: add esp, 4 */
   8907     _flag_k = FK_ADD;
   8908 L_2F006F62:
   8909     MEM32(esi + 0x54) = ebx; /* 0x2F006F62: mov dword ptr [esi + 0x54], ebx */
   8910     MEM32(esi + 0x58) = ebx; /* 0x2F006F65: mov dword ptr [esi + 0x58], ebx */
   8911     MEM32(esi + 0x5C) = ebx; /* 0x2F006F68: mov dword ptr [esi + 0x5c], ebx */
   8912     eax = MEM32(esi + 0x44); /* 0x2F006F6B: mov eax, dword ptr [esi + 0x44] */
   8913     /* cmp eax, ebx */ /* 0x2F006F6E: cmp eax, ebx */
   8914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   8915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8916     _flag_k = FK_CMP;
   8917     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F8E; /* 0x2F006F70: je 0x2f006f8e */
   8918 L_2F006F72:
   8919     ecx = eax + (-0x1); /* 0x2F006F72: lea ecx, [eax - 1] */
   8920     SET_LO8(eax, MEM8(ecx)); /* 0x2F006F75: mov al, byte ptr [ecx] */
   8921     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006F77: cmp al, bl */
   8922     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8923     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8924     _flag_k = FK_NARROW(FK_CMP, 24);
   8925     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F85; /* 0x2F006F79: je 0x2f006f85 */
   8926 L_2F006F7B:
   8927     /* cmp LO8(eax), 0xFFu */ /* 0x2F006F7B: cmp al, 0xff */
   8928     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   8929     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8930     _flag_k = FK_NARROW(FK_CMP, 24);
   8931     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F85; /* 0x2F006F7D: je 0x2f006f85 */
   8932 L_2F006F7F:
   8933     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8934     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006F7F: dec al */
   8935     _flag_k = FK_NARROW(FK_DEC, 24);
   8936     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006F81: mov byte ptr [ecx], al */
   8937     goto L_2F006F8E; /* 0x2F006F83: jmp 0x2f006f8e */
   8938 L_2F006F85:
   8939     PUSH32(esp, ecx); /* 0x2F006F85: push ecx */
   8940     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006F86: call 0x2f0116b4 */ /* not lifted */
   8941     RECOMP_FLAGS_IN();
   8942     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8943     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8944     esp = esp + 4; /* 0x2F006F8B: add esp, 4 */
   8945     _flag_k = FK_ADD;
   8946 L_2F006F8E:
   8947     MEM32(esi + 0x44) = ebx; /* 0x2F006F8E: mov dword ptr [esi + 0x44], ebx */
   8948     MEM32(esi + 0x48) = ebx; /* 0x2F006F91: mov dword ptr [esi + 0x48], ebx */
   8949     MEM32(esi + 0x4C) = ebx; /* 0x2F006F94: mov dword ptr [esi + 0x4c], ebx */
   8950     eax = MEM32(esi + 0x34); /* 0x2F006F97: mov eax, dword ptr [esi + 0x34] */
   8951     /* cmp eax, ebx */ /* 0x2F006F9A: cmp eax, ebx */
   8952     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   8953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8954     _flag_k = FK_CMP;
   8955     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FBA; /* 0x2F006F9C: je 0x2f006fba */
   8956 L_2F006F9E:
   8957     ecx = eax + (-0x1); /* 0x2F006F9E: lea ecx, [eax - 1] */
   8958     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FA1: mov al, byte ptr [ecx] */
   8959     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FA3: cmp al, bl */
   8960     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8961     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8962     _flag_k = FK_NARROW(FK_CMP, 24);
   8963     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FB1; /* 0x2F006FA5: je 0x2f006fb1 */
   8964 L_2F006FA7:
   8965     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FA7: cmp al, 0xff */
   8966     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   8967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8968     _flag_k = FK_NARROW(FK_CMP, 24);
   8969     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FB1; /* 0x2F006FA9: je 0x2f006fb1 */
   8970 L_2F006FAB:
   8971     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8972     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006FAB: dec al */
   8973     _flag_k = FK_NARROW(FK_DEC, 24);
   8974     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006FAD: mov byte ptr [ecx], al */
   8975     goto L_2F006FBA; /* 0x2F006FAF: jmp 0x2f006fba */
   8976 L_2F006FB1:
   8977     PUSH32(esp, ecx); /* 0x2F006FB1: push ecx */
   8978     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006FB2: call 0x2f0116b4 */ /* not lifted */
   8979     RECOMP_FLAGS_IN();
   8980     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8981     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8982     esp = esp + 4; /* 0x2F006FB7: add esp, 4 */
   8983     _flag_k = FK_ADD;
   8984 L_2F006FBA:
   8985     MEM32(esi + 0x34) = ebx; /* 0x2F006FBA: mov dword ptr [esi + 0x34], ebx */
   8986     MEM32(esi + 0x38) = ebx; /* 0x2F006FBD: mov dword ptr [esi + 0x38], ebx */
   8987     MEM32(esi + 0x3C) = ebx; /* 0x2F006FC0: mov dword ptr [esi + 0x3c], ebx */
   8988     eax = MEM32(esi + 0x24); /* 0x2F006FC3: mov eax, dword ptr [esi + 0x24] */
   8989     /* cmp eax, ebx */ /* 0x2F006FC6: cmp eax, ebx */
   8990     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   8991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8992     _flag_k = FK_CMP;
   8993     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FE6; /* 0x2F006FC8: je 0x2f006fe6 */
   8994 L_2F006FCA:
   8995     ecx = eax + (-0x1); /* 0x2F006FCA: lea ecx, [eax - 1] */
   8996     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FCD: mov al, byte ptr [ecx] */
   8997     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FCF: cmp al, bl */
   8998     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8999     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9000     _flag_k = FK_NARROW(FK_CMP, 24);
   9001     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FDD; /* 0x2F006FD1: je 0x2f006fdd */
   9002 L_2F006FD3:
   9003     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FD3: cmp al, 0xff */
   9004     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9006     _flag_k = FK_NARROW(FK_CMP, 24);
   9007     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FDD; /* 0x2F006FD5: je 0x2f006fdd */
   9008 L_2F006FD7:
   9009     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9010     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006FD7: dec al */
   9011     _flag_k = FK_NARROW(FK_DEC, 24);
   9012     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006FD9: mov byte ptr [ecx], al */
   9013     goto L_2F006FE6; /* 0x2F006FDB: jmp 0x2f006fe6 */
   9014 L_2F006FDD:
   9015     PUSH32(esp, ecx); /* 0x2F006FDD: push ecx */
   9016     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006FDE: call 0x2f0116b4 */ /* not lifted */
   9017     RECOMP_FLAGS_IN();
   9018     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9020     esp = esp + 4; /* 0x2F006FE3: add esp, 4 */
   9021     _flag_k = FK_ADD;
   9022 L_2F006FE6:
   9023     MEM32(esi + 0x24) = ebx; /* 0x2F006FE6: mov dword ptr [esi + 0x24], ebx */
   9024     MEM32(esi + 0x28) = ebx; /* 0x2F006FE9: mov dword ptr [esi + 0x28], ebx */
   9025     MEM32(esi + 0x2C) = ebx; /* 0x2F006FEC: mov dword ptr [esi + 0x2c], ebx */
   9026     eax = MEM32(esi + 0x14); /* 0x2F006FEF: mov eax, dword ptr [esi + 0x14] */
   9027     /* cmp eax, ebx */ /* 0x2F006FF2: cmp eax, ebx */
   9028     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9030     _flag_k = FK_CMP;
   9031     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007012; /* 0x2F006FF4: je 0x2f007012 */
   9032 L_2F006FF6:
   9033     ecx = eax + (-0x1); /* 0x2F006FF6: lea ecx, [eax - 1] */
   9034     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FF9: mov al, byte ptr [ecx] */
   9035     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FFB: cmp al, bl */
   9036     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9038     _flag_k = FK_NARROW(FK_CMP, 24);
   9039     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007009; /* 0x2F006FFD: je 0x2f007009 */
   9040 L_2F006FFF:
   9041     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FFF: cmp al, 0xff */
   9042     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9044     _flag_k = FK_NARROW(FK_CMP, 24);
   9045     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007009; /* 0x2F007001: je 0x2f007009 */
   9046 L_2F007003:
   9047     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9048     SET_LO8(eax, LO8(eax) - 1); /* 0x2F007003: dec al */
   9049     _flag_k = FK_NARROW(FK_DEC, 24);
   9050     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F007005: mov byte ptr [ecx], al */
   9051     goto L_2F007012; /* 0x2F007007: jmp 0x2f007012 */
   9052 L_2F007009:
   9053     PUSH32(esp, ecx); /* 0x2F007009: push ecx */
   9054     RECOMP_ICALL(0x2F0116B4u); /* 0x2F00700A: call 0x2f0116b4 */ /* not lifted */
   9055     RECOMP_FLAGS_IN();
   9056     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9057     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9058     esp = esp + 4; /* 0x2F00700F: add esp, 4 */
   9059     _flag_k = FK_ADD;
   9060 L_2F007012:
   9061     MEM32(esi + 0x14) = ebx; /* 0x2F007012: mov dword ptr [esi + 0x14], ebx */
   9062     MEM32(esi + 0x18) = ebx; /* 0x2F007015: mov dword ptr [esi + 0x18], ebx */
   9063     MEM32(esi + 0x1C) = ebx; /* 0x2F007018: mov dword ptr [esi + 0x1c], ebx */
   9064     eax = MEM32(esi + 0x4); /* 0x2F00701B: mov eax, dword ptr [esi + 4] */
   9065     /* cmp eax, ebx */ /* 0x2F00701E: cmp eax, ebx */
   9066     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9068     _flag_k = FK_CMP;
   9069     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00703E; /* 0x2F007020: je 0x2f00703e */
   9070 L_2F007022:
   9071     ecx = eax + (-0x1); /* 0x2F007022: lea ecx, [eax - 1] */
   9072     SET_LO8(eax, MEM8(ecx)); /* 0x2F007025: mov al, byte ptr [ecx] */
   9073     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F007027: cmp al, bl */
   9074     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9076     _flag_k = FK_NARROW(FK_CMP, 24);
   9077     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007035; /* 0x2F007029: je 0x2f007035 */
   9078 L_2F00702B:
   9079     /* cmp LO8(eax), 0xFFu */ /* 0x2F00702B: cmp al, 0xff */
   9080     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9081     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9082     _flag_k = FK_NARROW(FK_CMP, 24);
   9083     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007035; /* 0x2F00702D: je 0x2f007035 */
   9084 L_2F00702F:
   9085     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9086     SET_LO8(eax, LO8(eax) - 1); /* 0x2F00702F: dec al */
   9087     _flag_k = FK_NARROW(FK_DEC, 24);
   9088     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F007031: mov byte ptr [ecx], al */
   9089     goto L_2F00703E; /* 0x2F007033: jmp 0x2f00703e */
   9090 L_2F007035:
   9091     PUSH32(esp, ecx); /* 0x2F007035: push ecx */
   9092     RECOMP_ICALL(0x2F0116B4u); /* 0x2F007036: call 0x2f0116b4 */ /* not lifted */
   9093     RECOMP_FLAGS_IN();
   9094     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9095     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9096     esp = esp + 4; /* 0x2F00703B: add esp, 4 */
   9097     _flag_k = FK_ADD;
   9098 L_2F00703E:
   9099     ecx = MEM32(ebp + (-0xC)); /* 0x2F00703E: mov ecx, dword ptr [ebp - 0xc] */
   9100     MEM32(esi + 0x4) = ebx; /* 0x2F007041: mov dword ptr [esi + 4], ebx */
   9101     MEM32(esi + 0x8) = ebx; /* 0x2F007044: mov dword ptr [esi + 8], ebx */
   9102     MEM32(esi + 0xC) = ebx; /* 0x2F007047: mov dword ptr [esi + 0xc], ebx */
   9103     esi = POP32_VAL(esp); /* 0x2F00704A: pop esi */
   9104     ebx = POP32_VAL(esp); /* 0x2F00704B: pop ebx */
   9105     MEM32(FS_BASE + (0)) = ecx; /* 0x2F00704C: mov dword ptr fs:[0], ecx */
   9106     esp = ebp; /* 0x2F007053: mov esp, ebp */
   9107     ebp = POP32_VAL(esp); /* 0x2F007055: pop ebp */
   9108     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F007056: ret  */
   9109     RECOMP_REGS_OUT();
   9110 }
   9111 
   9112 void sub_2F006E90(void) {
   9113     int _fpu_cmp = 0;
   9114     uint32_t _cf = 0;
   9115     int _df = 1;
   9116     uint32_t _flag_k = FK_NONE;
   9117     uint32_t _flag_a = 0, _flag_b = 0;
   9118     uint32_t _itail_tgt = 0;
   9119     RECOMP_REGS_LOCALS
   9120     RECOMP_ENTER(0x2F006E90u);
   9121 
   9122 L_2F006E90:
   9123     PUSH32(esp, ebp); /* 0x2F006E90: push ebp */
   9124     ebp = esp; /* 0x2F006E91: mov ebp, esp */
   9125     PUSH32(esp, 0xFFFFFFFFu); /* 0x2F006E93: push -1 */
   9126     PUSH32(esp, 0x2F012378u); /* 0x2F006E95: push 0x2f012378 */
   9127     eax = MEM32(FS_BASE + (0)); /* 0x2F006E9A: mov eax, dword ptr fs:[0] */
   9128     PUSH32(esp, eax); /* 0x2F006EA0: push eax */
   9129     MEM32(FS_BASE + (0)) = esp; /* 0x2F006EA1: mov dword ptr fs:[0], esp */
   9130     PUSH32(esp, ecx); /* 0x2F006EA8: push ecx */
   9131     PUSH32(esp, ebx); /* 0x2F006EA9: push ebx */
   9132     PUSH32(esp, esi); /* 0x2F006EAA: push esi */
   9133     esi = ecx; /* 0x2F006EAB: mov esi, ecx */
   9134     MEM32(ebp + (-0x10)) = esi; /* 0x2F006EAD: mov dword ptr [ebp - 0x10], esi */
   9135     PUSH32(esp, 1); /* 0x2F006EB0: push 1 */
   9136     ecx = esi + 0x11C; /* 0x2F006EB2: lea ecx, [esi + 0x11c] */
   9137     MEM32(ebp + (-0x4)) = 0xCu; /* 0x2F006EB8: mov dword ptr [ebp - 4], 0xc */
   9138     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006EBF: call dword ptr [0x2f01310c] */
   9139     RECOMP_FLAGS_IN();
   9140     PUSH32(esp, 1); /* 0x2F006EC5: push 1 */
   9141     ecx = esi + 0x10C; /* 0x2F006EC7: lea ecx, [esi + 0x10c] */
   9142     MEM8(ebp + (-0x4)) = (uint8_t)(0xBu); /* 0x2F006ECD: mov byte ptr [ebp - 4], 0xb */
   9143     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006ED1: call dword ptr [0x2f01310c] */
   9144     RECOMP_FLAGS_IN();
   9145     PUSH32(esp, 1); /* 0x2F006ED7: push 1 */
   9146     ecx = esi + 0xE0; /* 0x2F006ED9: lea ecx, [esi + 0xe0] */
   9147     MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x2F006EDF: mov byte ptr [ebp - 4], 0xa */
   9148     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006EE3: call dword ptr [0x2f01310c] */
   9149     RECOMP_FLAGS_IN();
   9150     PUSH32(esp, 1); /* 0x2F006EE9: push 1 */
   9151     ecx = esi + 0xC0; /* 0x2F006EEB: lea ecx, [esi + 0xc0] */
   9152     MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x2F006EF1: mov byte ptr [ebp - 4], 9 */
   9153     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006EF5: call dword ptr [0x2f01310c] */
   9154     RECOMP_FLAGS_IN();
   9155     PUSH32(esp, 1); /* 0x2F006EFB: push 1 */
   9156     ecx = esi + 0xB0; /* 0x2F006EFD: lea ecx, [esi + 0xb0] */
   9157     MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x2F006F03: mov byte ptr [ebp - 4], 8 */
   9158     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006F07: call dword ptr [0x2f01310c] */
   9159     RECOMP_FLAGS_IN();
   9160     PUSH32(esp, 1); /* 0x2F006F0D: push 1 */
   9161     ecx = esi + 0xA0; /* 0x2F006F0F: lea ecx, [esi + 0xa0] */
   9162     MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x2F006F15: mov byte ptr [ebp - 4], 7 */
   9163     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006F19: call dword ptr [0x2f01310c] */
   9164     RECOMP_FLAGS_IN();
   9165     PUSH32(esp, 1); /* 0x2F006F1F: push 1 */
   9166     ecx = esi + 0x70; /* 0x2F006F21: lea ecx, [esi + 0x70] */
   9167     MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x2F006F24: mov byte ptr [ebp - 4], 6 */
   9168     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006F28: call dword ptr [0x2f01310c] */
   9169     RECOMP_FLAGS_IN();
   9170     PUSH32(esp, 1); /* 0x2F006F2E: push 1 */
   9171     ecx = esi + 0x60; /* 0x2F006F30: lea ecx, [esi + 0x60] */
   9172     MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2F006F33: mov byte ptr [ebp - 4], 5 */
   9173     RECOMP_ICALL(MEM32(0x2F01310C)); /* 0x2F006F37: call dword ptr [0x2f01310c] */
   9174     RECOMP_FLAGS_IN();
   9175     eax = MEM32(esi + 0x54); /* 0x2F006F3D: mov eax, dword ptr [esi + 0x54] */
   9176     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9177     ebx = 0; /* 0x2F006F40: xor ebx, ebx */
   9178     _cf = 0;
   9179     _flag_k = FK_TEST;
   9180     /* cmp eax, ebx */ /* 0x2F006F42: cmp eax, ebx */
   9181     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9183     _flag_k = FK_CMP;
   9184     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F62; /* 0x2F006F44: je 0x2f006f62 */
   9185 L_2F006F46:
   9186     ecx = eax + (-0x1); /* 0x2F006F46: lea ecx, [eax - 1] */
   9187     SET_LO8(eax, MEM8(ecx)); /* 0x2F006F49: mov al, byte ptr [ecx] */
   9188     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006F4B: cmp al, bl */
   9189     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9191     _flag_k = FK_NARROW(FK_CMP, 24);
   9192     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F59; /* 0x2F006F4D: je 0x2f006f59 */
   9193 L_2F006F4F:
   9194     /* cmp LO8(eax), 0xFFu */ /* 0x2F006F4F: cmp al, 0xff */
   9195     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9197     _flag_k = FK_NARROW(FK_CMP, 24);
   9198     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F59; /* 0x2F006F51: je 0x2f006f59 */
   9199 L_2F006F53:
   9200     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9201     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006F53: dec al */
   9202     _flag_k = FK_NARROW(FK_DEC, 24);
   9203     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006F55: mov byte ptr [ecx], al */
   9204     goto L_2F006F62; /* 0x2F006F57: jmp 0x2f006f62 */
   9205 L_2F006F59:
   9206     PUSH32(esp, ecx); /* 0x2F006F59: push ecx */
   9207     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006F5A: call 0x2f0116b4 */ /* not lifted */
   9208     RECOMP_FLAGS_IN();
   9209     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9210     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9211     esp = esp + 4; /* 0x2F006F5F: add esp, 4 */
   9212     _flag_k = FK_ADD;
   9213 L_2F006F62:
   9214     MEM32(esi + 0x54) = ebx; /* 0x2F006F62: mov dword ptr [esi + 0x54], ebx */
   9215     MEM32(esi + 0x58) = ebx; /* 0x2F006F65: mov dword ptr [esi + 0x58], ebx */
   9216     MEM32(esi + 0x5C) = ebx; /* 0x2F006F68: mov dword ptr [esi + 0x5c], ebx */
   9217     eax = MEM32(esi + 0x44); /* 0x2F006F6B: mov eax, dword ptr [esi + 0x44] */
   9218     /* cmp eax, ebx */ /* 0x2F006F6E: cmp eax, ebx */
   9219     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9221     _flag_k = FK_CMP;
   9222     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F8E; /* 0x2F006F70: je 0x2f006f8e */
   9223 L_2F006F72:
   9224     ecx = eax + (-0x1); /* 0x2F006F72: lea ecx, [eax - 1] */
   9225     SET_LO8(eax, MEM8(ecx)); /* 0x2F006F75: mov al, byte ptr [ecx] */
   9226     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006F77: cmp al, bl */
   9227     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9229     _flag_k = FK_NARROW(FK_CMP, 24);
   9230     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F85; /* 0x2F006F79: je 0x2f006f85 */
   9231 L_2F006F7B:
   9232     /* cmp LO8(eax), 0xFFu */ /* 0x2F006F7B: cmp al, 0xff */
   9233     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9235     _flag_k = FK_NARROW(FK_CMP, 24);
   9236     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F85; /* 0x2F006F7D: je 0x2f006f85 */
   9237 L_2F006F7F:
   9238     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9239     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006F7F: dec al */
   9240     _flag_k = FK_NARROW(FK_DEC, 24);
   9241     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006F81: mov byte ptr [ecx], al */
   9242     goto L_2F006F8E; /* 0x2F006F83: jmp 0x2f006f8e */
   9243 L_2F006F85:
   9244     PUSH32(esp, ecx); /* 0x2F006F85: push ecx */
   9245     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006F86: call 0x2f0116b4 */ /* not lifted */
   9246     RECOMP_FLAGS_IN();
   9247     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9248     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9249     esp = esp + 4; /* 0x2F006F8B: add esp, 4 */
   9250     _flag_k = FK_ADD;
   9251 L_2F006F8E:
   9252     MEM32(esi + 0x44) = ebx; /* 0x2F006F8E: mov dword ptr [esi + 0x44], ebx */
   9253     MEM32(esi + 0x48) = ebx; /* 0x2F006F91: mov dword ptr [esi + 0x48], ebx */
   9254     MEM32(esi + 0x4C) = ebx; /* 0x2F006F94: mov dword ptr [esi + 0x4c], ebx */
   9255     eax = MEM32(esi + 0x34); /* 0x2F006F97: mov eax, dword ptr [esi + 0x34] */
   9256     /* cmp eax, ebx */ /* 0x2F006F9A: cmp eax, ebx */
   9257     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9258     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9259     _flag_k = FK_CMP;
   9260     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FBA; /* 0x2F006F9C: je 0x2f006fba */
   9261 L_2F006F9E:
   9262     ecx = eax + (-0x1); /* 0x2F006F9E: lea ecx, [eax - 1] */
   9263     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FA1: mov al, byte ptr [ecx] */
   9264     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FA3: cmp al, bl */
   9265     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9267     _flag_k = FK_NARROW(FK_CMP, 24);
   9268     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FB1; /* 0x2F006FA5: je 0x2f006fb1 */
   9269 L_2F006FA7:
   9270     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FA7: cmp al, 0xff */
   9271     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9272     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9273     _flag_k = FK_NARROW(FK_CMP, 24);
   9274     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FB1; /* 0x2F006FA9: je 0x2f006fb1 */
   9275 L_2F006FAB:
   9276     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9277     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006FAB: dec al */
   9278     _flag_k = FK_NARROW(FK_DEC, 24);
   9279     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006FAD: mov byte ptr [ecx], al */
   9280     goto L_2F006FBA; /* 0x2F006FAF: jmp 0x2f006fba */
   9281 L_2F006FB1:
   9282     PUSH32(esp, ecx); /* 0x2F006FB1: push ecx */
   9283     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006FB2: call 0x2f0116b4 */ /* not lifted */
   9284     RECOMP_FLAGS_IN();
   9285     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9286     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9287     esp = esp + 4; /* 0x2F006FB7: add esp, 4 */
   9288     _flag_k = FK_ADD;
   9289 L_2F006FBA:
   9290     MEM32(esi + 0x34) = ebx; /* 0x2F006FBA: mov dword ptr [esi + 0x34], ebx */
   9291     MEM32(esi + 0x38) = ebx; /* 0x2F006FBD: mov dword ptr [esi + 0x38], ebx */
   9292     MEM32(esi + 0x3C) = ebx; /* 0x2F006FC0: mov dword ptr [esi + 0x3c], ebx */
   9293     eax = MEM32(esi + 0x24); /* 0x2F006FC3: mov eax, dword ptr [esi + 0x24] */
   9294     /* cmp eax, ebx */ /* 0x2F006FC6: cmp eax, ebx */
   9295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9297     _flag_k = FK_CMP;
   9298     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FE6; /* 0x2F006FC8: je 0x2f006fe6 */
   9299 L_2F006FCA:
   9300     ecx = eax + (-0x1); /* 0x2F006FCA: lea ecx, [eax - 1] */
   9301     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FCD: mov al, byte ptr [ecx] */
   9302     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FCF: cmp al, bl */
   9303     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9305     _flag_k = FK_NARROW(FK_CMP, 24);
   9306     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FDD; /* 0x2F006FD1: je 0x2f006fdd */
   9307 L_2F006FD3:
   9308     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FD3: cmp al, 0xff */
   9309     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9310     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9311     _flag_k = FK_NARROW(FK_CMP, 24);
   9312     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FDD; /* 0x2F006FD5: je 0x2f006fdd */
   9313 L_2F006FD7:
   9314     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9315     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006FD7: dec al */
   9316     _flag_k = FK_NARROW(FK_DEC, 24);
   9317     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006FD9: mov byte ptr [ecx], al */
   9318     goto L_2F006FE6; /* 0x2F006FDB: jmp 0x2f006fe6 */
   9319 L_2F006FDD:
   9320     PUSH32(esp, ecx); /* 0x2F006FDD: push ecx */
   9321     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006FDE: call 0x2f0116b4 */ /* not lifted */
   9322     RECOMP_FLAGS_IN();
   9323     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9324     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9325     esp = esp + 4; /* 0x2F006FE3: add esp, 4 */
   9326     _flag_k = FK_ADD;
   9327 L_2F006FE6:
   9328     MEM32(esi + 0x24) = ebx; /* 0x2F006FE6: mov dword ptr [esi + 0x24], ebx */
   9329     MEM32(esi + 0x28) = ebx; /* 0x2F006FE9: mov dword ptr [esi + 0x28], ebx */
   9330     MEM32(esi + 0x2C) = ebx; /* 0x2F006FEC: mov dword ptr [esi + 0x2c], ebx */
   9331     eax = MEM32(esi + 0x14); /* 0x2F006FEF: mov eax, dword ptr [esi + 0x14] */
   9332     /* cmp eax, ebx */ /* 0x2F006FF2: cmp eax, ebx */
   9333     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9335     _flag_k = FK_CMP;
   9336     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007012; /* 0x2F006FF4: je 0x2f007012 */
   9337 L_2F006FF6:
   9338     ecx = eax + (-0x1); /* 0x2F006FF6: lea ecx, [eax - 1] */
   9339     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FF9: mov al, byte ptr [ecx] */
   9340     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FFB: cmp al, bl */
   9341     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9343     _flag_k = FK_NARROW(FK_CMP, 24);
   9344     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007009; /* 0x2F006FFD: je 0x2f007009 */
   9345 L_2F006FFF:
   9346     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FFF: cmp al, 0xff */
   9347     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9349     _flag_k = FK_NARROW(FK_CMP, 24);
   9350     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007009; /* 0x2F007001: je 0x2f007009 */
   9351 L_2F007003:
   9352     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9353     SET_LO8(eax, LO8(eax) - 1); /* 0x2F007003: dec al */
   9354     _flag_k = FK_NARROW(FK_DEC, 24);
   9355     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F007005: mov byte ptr [ecx], al */
   9356     goto L_2F007012; /* 0x2F007007: jmp 0x2f007012 */
   9357 L_2F007009:
   9358     PUSH32(esp, ecx); /* 0x2F007009: push ecx */
   9359     RECOMP_ICALL(0x2F0116B4u); /* 0x2F00700A: call 0x2f0116b4 */ /* not lifted */
   9360     RECOMP_FLAGS_IN();
   9361     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9362     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9363     esp = esp + 4; /* 0x2F00700F: add esp, 4 */
   9364     _flag_k = FK_ADD;
   9365 L_2F007012:
   9366     MEM32(esi + 0x14) = ebx; /* 0x2F007012: mov dword ptr [esi + 0x14], ebx */
   9367     MEM32(esi + 0x18) = ebx; /* 0x2F007015: mov dword ptr [esi + 0x18], ebx */
   9368     MEM32(esi + 0x1C) = ebx; /* 0x2F007018: mov dword ptr [esi + 0x1c], ebx */
   9369     eax = MEM32(esi + 0x4); /* 0x2F00701B: mov eax, dword ptr [esi + 4] */
   9370     /* cmp eax, ebx */ /* 0x2F00701E: cmp eax, ebx */
   9371     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   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_2F00703E; /* 0x2F007020: je 0x2f00703e */
   9375 L_2F007022:
   9376     ecx = eax + (-0x1); /* 0x2F007022: lea ecx, [eax - 1] */
   9377     SET_LO8(eax, MEM8(ecx)); /* 0x2F007025: mov al, byte ptr [ecx] */
   9378     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F007027: cmp al, bl */
   9379     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9380     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9381     _flag_k = FK_NARROW(FK_CMP, 24);
   9382     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007035; /* 0x2F007029: je 0x2f007035 */
   9383 L_2F00702B:
   9384     /* cmp LO8(eax), 0xFFu */ /* 0x2F00702B: cmp al, 0xff */
   9385     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9386     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9387     _flag_k = FK_NARROW(FK_CMP, 24);
   9388     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007035; /* 0x2F00702D: je 0x2f007035 */
   9389 L_2F00702F:
   9390     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9391     SET_LO8(eax, LO8(eax) - 1); /* 0x2F00702F: dec al */
   9392     _flag_k = FK_NARROW(FK_DEC, 24);
   9393     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F007031: mov byte ptr [ecx], al */
   9394     goto L_2F00703E; /* 0x2F007033: jmp 0x2f00703e */
   9395 L_2F007035:
   9396     PUSH32(esp, ecx); /* 0x2F007035: push ecx */
   9397     RECOMP_ICALL(0x2F0116B4u); /* 0x2F007036: call 0x2f0116b4 */ /* not lifted */
   9398     RECOMP_FLAGS_IN();
   9399     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9400     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9401     esp = esp + 4; /* 0x2F00703B: add esp, 4 */
   9402     _flag_k = FK_ADD;
   9403 L_2F00703E:
   9404     ecx = MEM32(ebp + (-0xC)); /* 0x2F00703E: mov ecx, dword ptr [ebp - 0xc] */
   9405     MEM32(esi + 0x4) = ebx; /* 0x2F007041: mov dword ptr [esi + 4], ebx */
   9406     MEM32(esi + 0x8) = ebx; /* 0x2F007044: mov dword ptr [esi + 8], ebx */
   9407     MEM32(esi + 0xC) = ebx; /* 0x2F007047: mov dword ptr [esi + 0xc], ebx */
   9408     esi = POP32_VAL(esp); /* 0x2F00704A: pop esi */
   9409     ebx = POP32_VAL(esp); /* 0x2F00704B: pop ebx */
   9410     MEM32(FS_BASE + (0)) = ecx; /* 0x2F00704C: mov dword ptr fs:[0], ecx */
   9411     esp = ebp; /* 0x2F007053: mov esp, ebp */
   9412     ebp = POP32_VAL(esp); /* 0x2F007055: pop ebp */
   9413     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F007056: ret  */
   9414     RECOMP_REGS_OUT();
   9415 }
   9416 
   9417 void sub_2F006F62(void) {
   9418     int _fpu_cmp = 0;
   9419     uint32_t _cf = 0;
   9420     int _df = 1;
   9421     uint32_t _flag_k = FK_NONE;
   9422     uint32_t _flag_a = 0, _flag_b = 0;
   9423     uint32_t _itail_tgt = 0;
   9424     RECOMP_REGS_LOCALS
   9425     RECOMP_ENTER(0x2F006F62u);
   9426 
   9427 L_2F006F62:
   9428     MEM32(esi + 0x54) = ebx; /* 0x2F006F62: mov dword ptr [esi + 0x54], ebx */
   9429     MEM32(esi + 0x58) = ebx; /* 0x2F006F65: mov dword ptr [esi + 0x58], ebx */
   9430     MEM32(esi + 0x5C) = ebx; /* 0x2F006F68: mov dword ptr [esi + 0x5c], ebx */
   9431     eax = MEM32(esi + 0x44); /* 0x2F006F6B: mov eax, dword ptr [esi + 0x44] */
   9432     /* cmp eax, ebx */ /* 0x2F006F6E: cmp eax, ebx */
   9433     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9434     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9435     _flag_k = FK_CMP;
   9436     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F8E; /* 0x2F006F70: je 0x2f006f8e */
   9437 L_2F006F72:
   9438     ecx = eax + (-0x1); /* 0x2F006F72: lea ecx, [eax - 1] */
   9439     SET_LO8(eax, MEM8(ecx)); /* 0x2F006F75: mov al, byte ptr [ecx] */
   9440     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006F77: cmp al, bl */
   9441     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9442     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9443     _flag_k = FK_NARROW(FK_CMP, 24);
   9444     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F85; /* 0x2F006F79: je 0x2f006f85 */
   9445 L_2F006F7B:
   9446     /* cmp LO8(eax), 0xFFu */ /* 0x2F006F7B: cmp al, 0xff */
   9447     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9449     _flag_k = FK_NARROW(FK_CMP, 24);
   9450     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006F85; /* 0x2F006F7D: je 0x2f006f85 */
   9451 L_2F006F7F:
   9452     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9453     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006F7F: dec al */
   9454     _flag_k = FK_NARROW(FK_DEC, 24);
   9455     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006F81: mov byte ptr [ecx], al */
   9456     goto L_2F006F8E; /* 0x2F006F83: jmp 0x2f006f8e */
   9457 L_2F006F85:
   9458     PUSH32(esp, ecx); /* 0x2F006F85: push ecx */
   9459     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006F86: call 0x2f0116b4 */ /* not lifted */
   9460     RECOMP_FLAGS_IN();
   9461     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9462     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9463     esp = esp + 4; /* 0x2F006F8B: add esp, 4 */
   9464     _flag_k = FK_ADD;
   9465 L_2F006F8E:
   9466     MEM32(esi + 0x44) = ebx; /* 0x2F006F8E: mov dword ptr [esi + 0x44], ebx */
   9467     MEM32(esi + 0x48) = ebx; /* 0x2F006F91: mov dword ptr [esi + 0x48], ebx */
   9468     MEM32(esi + 0x4C) = ebx; /* 0x2F006F94: mov dword ptr [esi + 0x4c], ebx */
   9469     eax = MEM32(esi + 0x34); /* 0x2F006F97: mov eax, dword ptr [esi + 0x34] */
   9470     /* cmp eax, ebx */ /* 0x2F006F9A: cmp eax, ebx */
   9471     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9473     _flag_k = FK_CMP;
   9474     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FBA; /* 0x2F006F9C: je 0x2f006fba */
   9475 L_2F006F9E:
   9476     ecx = eax + (-0x1); /* 0x2F006F9E: lea ecx, [eax - 1] */
   9477     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FA1: mov al, byte ptr [ecx] */
   9478     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FA3: cmp al, bl */
   9479     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9481     _flag_k = FK_NARROW(FK_CMP, 24);
   9482     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FB1; /* 0x2F006FA5: je 0x2f006fb1 */
   9483 L_2F006FA7:
   9484     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FA7: cmp al, 0xff */
   9485     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9486     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9487     _flag_k = FK_NARROW(FK_CMP, 24);
   9488     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FB1; /* 0x2F006FA9: je 0x2f006fb1 */
   9489 L_2F006FAB:
   9490     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9491     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006FAB: dec al */
   9492     _flag_k = FK_NARROW(FK_DEC, 24);
   9493     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006FAD: mov byte ptr [ecx], al */
   9494     goto L_2F006FBA; /* 0x2F006FAF: jmp 0x2f006fba */
   9495 L_2F006FB1:
   9496     PUSH32(esp, ecx); /* 0x2F006FB1: push ecx */
   9497     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006FB2: call 0x2f0116b4 */ /* not lifted */
   9498     RECOMP_FLAGS_IN();
   9499     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9501     esp = esp + 4; /* 0x2F006FB7: add esp, 4 */
   9502     _flag_k = FK_ADD;
   9503 L_2F006FBA:
   9504     MEM32(esi + 0x34) = ebx; /* 0x2F006FBA: mov dword ptr [esi + 0x34], ebx */
   9505     MEM32(esi + 0x38) = ebx; /* 0x2F006FBD: mov dword ptr [esi + 0x38], ebx */
   9506     MEM32(esi + 0x3C) = ebx; /* 0x2F006FC0: mov dword ptr [esi + 0x3c], ebx */
   9507     eax = MEM32(esi + 0x24); /* 0x2F006FC3: mov eax, dword ptr [esi + 0x24] */
   9508     /* cmp eax, ebx */ /* 0x2F006FC6: cmp eax, ebx */
   9509     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9511     _flag_k = FK_CMP;
   9512     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FE6; /* 0x2F006FC8: je 0x2f006fe6 */
   9513 L_2F006FCA:
   9514     ecx = eax + (-0x1); /* 0x2F006FCA: lea ecx, [eax - 1] */
   9515     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FCD: mov al, byte ptr [ecx] */
   9516     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FCF: cmp al, bl */
   9517     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9518     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9519     _flag_k = FK_NARROW(FK_CMP, 24);
   9520     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FDD; /* 0x2F006FD1: je 0x2f006fdd */
   9521 L_2F006FD3:
   9522     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FD3: cmp al, 0xff */
   9523     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9525     _flag_k = FK_NARROW(FK_CMP, 24);
   9526     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FDD; /* 0x2F006FD5: je 0x2f006fdd */
   9527 L_2F006FD7:
   9528     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9529     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006FD7: dec al */
   9530     _flag_k = FK_NARROW(FK_DEC, 24);
   9531     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006FD9: mov byte ptr [ecx], al */
   9532     goto L_2F006FE6; /* 0x2F006FDB: jmp 0x2f006fe6 */
   9533 L_2F006FDD:
   9534     PUSH32(esp, ecx); /* 0x2F006FDD: push ecx */
   9535     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006FDE: call 0x2f0116b4 */ /* not lifted */
   9536     RECOMP_FLAGS_IN();
   9537     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9538     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9539     esp = esp + 4; /* 0x2F006FE3: add esp, 4 */
   9540     _flag_k = FK_ADD;
   9541 L_2F006FE6:
   9542     MEM32(esi + 0x24) = ebx; /* 0x2F006FE6: mov dword ptr [esi + 0x24], ebx */
   9543     MEM32(esi + 0x28) = ebx; /* 0x2F006FE9: mov dword ptr [esi + 0x28], ebx */
   9544     MEM32(esi + 0x2C) = ebx; /* 0x2F006FEC: mov dword ptr [esi + 0x2c], ebx */
   9545     eax = MEM32(esi + 0x14); /* 0x2F006FEF: mov eax, dword ptr [esi + 0x14] */
   9546     /* cmp eax, ebx */ /* 0x2F006FF2: cmp eax, ebx */
   9547     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9549     _flag_k = FK_CMP;
   9550     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007012; /* 0x2F006FF4: je 0x2f007012 */
   9551 L_2F006FF6:
   9552     ecx = eax + (-0x1); /* 0x2F006FF6: lea ecx, [eax - 1] */
   9553     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FF9: mov al, byte ptr [ecx] */
   9554     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FFB: cmp al, bl */
   9555     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9557     _flag_k = FK_NARROW(FK_CMP, 24);
   9558     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007009; /* 0x2F006FFD: je 0x2f007009 */
   9559 L_2F006FFF:
   9560     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FFF: cmp al, 0xff */
   9561     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9562     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9563     _flag_k = FK_NARROW(FK_CMP, 24);
   9564     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007009; /* 0x2F007001: je 0x2f007009 */
   9565 L_2F007003:
   9566     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9567     SET_LO8(eax, LO8(eax) - 1); /* 0x2F007003: dec al */
   9568     _flag_k = FK_NARROW(FK_DEC, 24);
   9569     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F007005: mov byte ptr [ecx], al */
   9570     goto L_2F007012; /* 0x2F007007: jmp 0x2f007012 */
   9571 L_2F007009:
   9572     PUSH32(esp, ecx); /* 0x2F007009: push ecx */
   9573     RECOMP_ICALL(0x2F0116B4u); /* 0x2F00700A: call 0x2f0116b4 */ /* not lifted */
   9574     RECOMP_FLAGS_IN();
   9575     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9576     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9577     esp = esp + 4; /* 0x2F00700F: add esp, 4 */
   9578     _flag_k = FK_ADD;
   9579 L_2F007012:
   9580     MEM32(esi + 0x14) = ebx; /* 0x2F007012: mov dword ptr [esi + 0x14], ebx */
   9581     MEM32(esi + 0x18) = ebx; /* 0x2F007015: mov dword ptr [esi + 0x18], ebx */
   9582     MEM32(esi + 0x1C) = ebx; /* 0x2F007018: mov dword ptr [esi + 0x1c], ebx */
   9583     eax = MEM32(esi + 0x4); /* 0x2F00701B: mov eax, dword ptr [esi + 4] */
   9584     /* cmp eax, ebx */ /* 0x2F00701E: cmp eax, ebx */
   9585     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   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_2F00703E; /* 0x2F007020: je 0x2f00703e */
   9589 L_2F007022:
   9590     ecx = eax + (-0x1); /* 0x2F007022: lea ecx, [eax - 1] */
   9591     SET_LO8(eax, MEM8(ecx)); /* 0x2F007025: mov al, byte ptr [ecx] */
   9592     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F007027: cmp al, bl */
   9593     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9594     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9595     _flag_k = FK_NARROW(FK_CMP, 24);
   9596     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007035; /* 0x2F007029: je 0x2f007035 */
   9597 L_2F00702B:
   9598     /* cmp LO8(eax), 0xFFu */ /* 0x2F00702B: cmp al, 0xff */
   9599     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9600     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9601     _flag_k = FK_NARROW(FK_CMP, 24);
   9602     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007035; /* 0x2F00702D: je 0x2f007035 */
   9603 L_2F00702F:
   9604     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9605     SET_LO8(eax, LO8(eax) - 1); /* 0x2F00702F: dec al */
   9606     _flag_k = FK_NARROW(FK_DEC, 24);
   9607     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F007031: mov byte ptr [ecx], al */
   9608     goto L_2F00703E; /* 0x2F007033: jmp 0x2f00703e */
   9609 L_2F007035:
   9610     PUSH32(esp, ecx); /* 0x2F007035: push ecx */
   9611     RECOMP_ICALL(0x2F0116B4u); /* 0x2F007036: call 0x2f0116b4 */ /* not lifted */
   9612     RECOMP_FLAGS_IN();
   9613     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9614     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9615     esp = esp + 4; /* 0x2F00703B: add esp, 4 */
   9616     _flag_k = FK_ADD;
   9617 L_2F00703E:
   9618     ecx = MEM32(ebp + (-0xC)); /* 0x2F00703E: mov ecx, dword ptr [ebp - 0xc] */
   9619     MEM32(esi + 0x4) = ebx; /* 0x2F007041: mov dword ptr [esi + 4], ebx */
   9620     MEM32(esi + 0x8) = ebx; /* 0x2F007044: mov dword ptr [esi + 8], ebx */
   9621     MEM32(esi + 0xC) = ebx; /* 0x2F007047: mov dword ptr [esi + 0xc], ebx */
   9622     esi = POP32_VAL(esp); /* 0x2F00704A: pop esi */
   9623     ebx = POP32_VAL(esp); /* 0x2F00704B: pop ebx */
   9624     MEM32(FS_BASE + (0)) = ecx; /* 0x2F00704C: mov dword ptr fs:[0], ecx */
   9625     esp = ebp; /* 0x2F007053: mov esp, ebp */
   9626     ebp = POP32_VAL(esp); /* 0x2F007055: pop ebp */
   9627     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F007056: ret  */
   9628     RECOMP_REGS_OUT();
   9629 }
   9630 
   9631 void sub_2F006F8E(void) {
   9632     int _fpu_cmp = 0;
   9633     uint32_t _cf = 0;
   9634     int _df = 1;
   9635     uint32_t _flag_k = FK_NONE;
   9636     uint32_t _flag_a = 0, _flag_b = 0;
   9637     uint32_t _itail_tgt = 0;
   9638     RECOMP_REGS_LOCALS
   9639     RECOMP_ENTER(0x2F006F8Eu);
   9640 
   9641 L_2F006F8E:
   9642     MEM32(esi + 0x44) = ebx; /* 0x2F006F8E: mov dword ptr [esi + 0x44], ebx */
   9643     MEM32(esi + 0x48) = ebx; /* 0x2F006F91: mov dword ptr [esi + 0x48], ebx */
   9644     MEM32(esi + 0x4C) = ebx; /* 0x2F006F94: mov dword ptr [esi + 0x4c], ebx */
   9645     eax = MEM32(esi + 0x34); /* 0x2F006F97: mov eax, dword ptr [esi + 0x34] */
   9646     /* cmp eax, ebx */ /* 0x2F006F9A: cmp eax, ebx */
   9647     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9649     _flag_k = FK_CMP;
   9650     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FBA; /* 0x2F006F9C: je 0x2f006fba */
   9651 L_2F006F9E:
   9652     ecx = eax + (-0x1); /* 0x2F006F9E: lea ecx, [eax - 1] */
   9653     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FA1: mov al, byte ptr [ecx] */
   9654     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FA3: cmp al, bl */
   9655     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9657     _flag_k = FK_NARROW(FK_CMP, 24);
   9658     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FB1; /* 0x2F006FA5: je 0x2f006fb1 */
   9659 L_2F006FA7:
   9660     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FA7: cmp al, 0xff */
   9661     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9663     _flag_k = FK_NARROW(FK_CMP, 24);
   9664     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FB1; /* 0x2F006FA9: je 0x2f006fb1 */
   9665 L_2F006FAB:
   9666     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9667     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006FAB: dec al */
   9668     _flag_k = FK_NARROW(FK_DEC, 24);
   9669     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006FAD: mov byte ptr [ecx], al */
   9670     goto L_2F006FBA; /* 0x2F006FAF: jmp 0x2f006fba */
   9671 L_2F006FB1:
   9672     PUSH32(esp, ecx); /* 0x2F006FB1: push ecx */
   9673     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006FB2: call 0x2f0116b4 */ /* not lifted */
   9674     RECOMP_FLAGS_IN();
   9675     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9676     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9677     esp = esp + 4; /* 0x2F006FB7: add esp, 4 */
   9678     _flag_k = FK_ADD;
   9679 L_2F006FBA:
   9680     MEM32(esi + 0x34) = ebx; /* 0x2F006FBA: mov dword ptr [esi + 0x34], ebx */
   9681     MEM32(esi + 0x38) = ebx; /* 0x2F006FBD: mov dword ptr [esi + 0x38], ebx */
   9682     MEM32(esi + 0x3C) = ebx; /* 0x2F006FC0: mov dword ptr [esi + 0x3c], ebx */
   9683     eax = MEM32(esi + 0x24); /* 0x2F006FC3: mov eax, dword ptr [esi + 0x24] */
   9684     /* cmp eax, ebx */ /* 0x2F006FC6: cmp eax, ebx */
   9685     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9686     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9687     _flag_k = FK_CMP;
   9688     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FE6; /* 0x2F006FC8: je 0x2f006fe6 */
   9689 L_2F006FCA:
   9690     ecx = eax + (-0x1); /* 0x2F006FCA: lea ecx, [eax - 1] */
   9691     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FCD: mov al, byte ptr [ecx] */
   9692     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FCF: cmp al, bl */
   9693     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9695     _flag_k = FK_NARROW(FK_CMP, 24);
   9696     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FDD; /* 0x2F006FD1: je 0x2f006fdd */
   9697 L_2F006FD3:
   9698     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FD3: cmp al, 0xff */
   9699     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9700     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9701     _flag_k = FK_NARROW(FK_CMP, 24);
   9702     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F006FDD; /* 0x2F006FD5: je 0x2f006fdd */
   9703 L_2F006FD7:
   9704     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9705     SET_LO8(eax, LO8(eax) - 1); /* 0x2F006FD7: dec al */
   9706     _flag_k = FK_NARROW(FK_DEC, 24);
   9707     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F006FD9: mov byte ptr [ecx], al */
   9708     goto L_2F006FE6; /* 0x2F006FDB: jmp 0x2f006fe6 */
   9709 L_2F006FDD:
   9710     PUSH32(esp, ecx); /* 0x2F006FDD: push ecx */
   9711     RECOMP_ICALL(0x2F0116B4u); /* 0x2F006FDE: call 0x2f0116b4 */ /* not lifted */
   9712     RECOMP_FLAGS_IN();
   9713     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9714     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9715     esp = esp + 4; /* 0x2F006FE3: add esp, 4 */
   9716     _flag_k = FK_ADD;
   9717 L_2F006FE6:
   9718     MEM32(esi + 0x24) = ebx; /* 0x2F006FE6: mov dword ptr [esi + 0x24], ebx */
   9719     MEM32(esi + 0x28) = ebx; /* 0x2F006FE9: mov dword ptr [esi + 0x28], ebx */
   9720     MEM32(esi + 0x2C) = ebx; /* 0x2F006FEC: mov dword ptr [esi + 0x2c], ebx */
   9721     eax = MEM32(esi + 0x14); /* 0x2F006FEF: mov eax, dword ptr [esi + 0x14] */
   9722     /* cmp eax, ebx */ /* 0x2F006FF2: cmp eax, ebx */
   9723     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9724     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9725     _flag_k = FK_CMP;
   9726     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007012; /* 0x2F006FF4: je 0x2f007012 */
   9727 L_2F006FF6:
   9728     ecx = eax + (-0x1); /* 0x2F006FF6: lea ecx, [eax - 1] */
   9729     SET_LO8(eax, MEM8(ecx)); /* 0x2F006FF9: mov al, byte ptr [ecx] */
   9730     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F006FFB: cmp al, bl */
   9731     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9733     _flag_k = FK_NARROW(FK_CMP, 24);
   9734     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007009; /* 0x2F006FFD: je 0x2f007009 */
   9735 L_2F006FFF:
   9736     /* cmp LO8(eax), 0xFFu */ /* 0x2F006FFF: cmp al, 0xff */
   9737     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9739     _flag_k = FK_NARROW(FK_CMP, 24);
   9740     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007009; /* 0x2F007001: je 0x2f007009 */
   9741 L_2F007003:
   9742     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9743     SET_LO8(eax, LO8(eax) - 1); /* 0x2F007003: dec al */
   9744     _flag_k = FK_NARROW(FK_DEC, 24);
   9745     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F007005: mov byte ptr [ecx], al */
   9746     goto L_2F007012; /* 0x2F007007: jmp 0x2f007012 */
   9747 L_2F007009:
   9748     PUSH32(esp, ecx); /* 0x2F007009: push ecx */
   9749     RECOMP_ICALL(0x2F0116B4u); /* 0x2F00700A: call 0x2f0116b4 */ /* not lifted */
   9750     RECOMP_FLAGS_IN();
   9751     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9752     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9753     esp = esp + 4; /* 0x2F00700F: add esp, 4 */
   9754     _flag_k = FK_ADD;
   9755 L_2F007012:
   9756     MEM32(esi + 0x14) = ebx; /* 0x2F007012: mov dword ptr [esi + 0x14], ebx */
   9757     MEM32(esi + 0x18) = ebx; /* 0x2F007015: mov dword ptr [esi + 0x18], ebx */
   9758     MEM32(esi + 0x1C) = ebx; /* 0x2F007018: mov dword ptr [esi + 0x1c], ebx */
   9759     eax = MEM32(esi + 0x4); /* 0x2F00701B: mov eax, dword ptr [esi + 4] */
   9760     /* cmp eax, ebx */ /* 0x2F00701E: cmp eax, ebx */
   9761     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9763     _flag_k = FK_CMP;
   9764     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F00703E; /* 0x2F007020: je 0x2f00703e */
   9765 L_2F007022:
   9766     ecx = eax + (-0x1); /* 0x2F007022: lea ecx, [eax - 1] */
   9767     SET_LO8(eax, MEM8(ecx)); /* 0x2F007025: mov al, byte ptr [ecx] */
   9768     /* cmp LO8(eax), LO8(ebx) */ /* 0x2F007027: cmp al, bl */
   9769     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   9770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9771     _flag_k = FK_NARROW(FK_CMP, 24);
   9772     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007035; /* 0x2F007029: je 0x2f007035 */
   9773 L_2F00702B:
   9774     /* cmp LO8(eax), 0xFFu */ /* 0x2F00702B: cmp al, 0xff */
   9775     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   9776     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9777     _flag_k = FK_NARROW(FK_CMP, 24);
   9778     if (CMP_EQ(_flag_a, _flag_b)) goto L_2F007035; /* 0x2F00702D: je 0x2f007035 */
   9779 L_2F00702F:
   9780     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   9781     SET_LO8(eax, LO8(eax) - 1); /* 0x2F00702F: dec al */
   9782     _flag_k = FK_NARROW(FK_DEC, 24);
   9783     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2F007031: mov byte ptr [ecx], al */
   9784     goto L_2F00703E; /* 0x2F007033: jmp 0x2f00703e */
   9785 L_2F007035:
   9786     PUSH32(esp, ecx); /* 0x2F007035: push ecx */
   9787     RECOMP_ICALL(0x2F0116B4u); /* 0x2F007036: call 0x2f0116b4 */ /* not lifted */
   9788     RECOMP_FLAGS_IN();
   9789     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9790     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9791     esp = esp + 4; /* 0x2F00703B: add esp, 4 */
   9792     _flag_k = FK_ADD;
   9793 L_2F00703E:
   9794     ecx = MEM32(ebp + (-0xC)); /* 0x2F00703E: mov ecx, dword ptr [ebp - 0xc] */
   9795     MEM32(esi + 0x4) = ebx; /* 0x2F007041: mov dword ptr [esi + 4], ebx */
   9796     MEM32(esi + 0x8) = ebx; /* 0x2F007044: mov dword ptr [esi + 8], ebx */
   9797     MEM32(esi + 0xC) = ebx; /* 0x2F007047: mov dword ptr [esi + 0xc], ebx */
   9798     esi = POP32_VAL(esp); /* 0x2F00704A: pop esi */
   9799     ebx = POP32_VAL(esp); /* 0x2F00704B: pop ebx */
   9800     MEM32(FS_BASE + (0)) = ecx; /* 0x2F00704C: mov dword ptr fs:[0], ecx */
   9801     esp = ebp; /* 0x2F007053: mov esp, ebp */
   9802     ebp = POP32_VAL(esp); /* 0x2F007055: pop ebp */
   9803     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2F007056: ret  */
   9804     RECOMP_REGS_OUT();
   9805 }