aorecomp

Anarchy Online classic in the browser

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


client/game/eer.dll/lifted-0003.c (221500B)


      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_2D005DC0(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(0x2D005DC0u);
     17 
     18 L_2D005DC0:
     19     PUSH32(esp, ebp); /* 0x2D005DC0: push ebp */
     20     ebp = esp; /* 0x2D005DC1: mov ebp, esp */
     21     ecx = MEM32(0x2D01752C); /* 0x2D005DC3: mov ecx, dword ptr [0x2d01752c] */
     22     /* test ecx, ecx */ /* 0x2D005DC9: test ecx, ecx */
     23     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     24     _cf = 0;
     25     _flag_k = FK_TEST;
     26     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005DDB; /* 0x2D005DCB: je 0x2d005ddb */
     27 L_2D005DCD:
     28     eax = MEM32(ebp + 0x8); /* 0x2D005DCD: mov eax, dword ptr [ebp + 8] */
     29     PUSH32(esp, eax); /* 0x2D005DD0: push eax */
     30     RECOMP_ICALL(MEM32(0x2D009430)); /* 0x2D005DD1: call dword ptr [0x2d009430] */
     31     RECOMP_FLAGS_IN();
     32     ebp = POP32_VAL(esp); /* 0x2D005DD7: pop ebp */
     33     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005DD8: ret 4 */
     34 L_2D005DDB:
     35     eax = MEM32(0x2D017040); /* 0x2D005DDB: mov eax, dword ptr [0x2d017040] */
     36     ebp = POP32_VAL(esp); /* 0x2D005DE0: pop ebp */
     37     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005DE1: ret 4 */
     38     RECOMP_REGS_OUT();
     39 }
     40 
     41 void sub_2D005DF0(void) {
     42     int _fpu_cmp = 0;
     43     uint32_t _cf = 0;
     44     int _df = 1;
     45     uint32_t _flag_k = FK_NONE;
     46     uint32_t _flag_a = 0, _flag_b = 0;
     47     uint32_t _itail_tgt = 0;
     48     RECOMP_REGS_LOCALS
     49     RECOMP_ENTER(0x2D005DF0u);
     50 
     51 L_2D005DF0:
     52     PUSH32(esp, ebp); /* 0x2D005DF0: push ebp */
     53     ebp = esp; /* 0x2D005DF1: mov ebp, esp */
     54     ecx = MEM32(0x2D01752C); /* 0x2D005DF3: mov ecx, dword ptr [0x2d01752c] */
     55     /* test ecx, ecx */ /* 0x2D005DF9: test ecx, ecx */
     56     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     57     _cf = 0;
     58     _flag_k = FK_TEST;
     59     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005E0B; /* 0x2D005DFB: je 0x2d005e0b */
     60 L_2D005DFD:
     61     eax = MEM32(ebp + 0x8); /* 0x2D005DFD: mov eax, dword ptr [ebp + 8] */
     62     PUSH32(esp, eax); /* 0x2D005E00: push eax */
     63     RECOMP_ICALL(MEM32(0x2D009434)); /* 0x2D005E01: call dword ptr [0x2d009434] */
     64     RECOMP_FLAGS_IN();
     65     ebp = POP32_VAL(esp); /* 0x2D005E07: pop ebp */
     66     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005E08: ret 4 */
     67 L_2D005E0B:
     68     eax = MEM32(0x2D017040); /* 0x2D005E0B: mov eax, dword ptr [0x2d017040] */
     69     ebp = POP32_VAL(esp); /* 0x2D005E10: pop ebp */
     70     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005E11: ret 4 */
     71     RECOMP_REGS_OUT();
     72 }
     73 
     74 void sub_2D005E20(void) {
     75     int _fpu_cmp = 0;
     76     uint32_t _cf = 0;
     77     int _df = 1;
     78     uint32_t _flag_k = FK_NONE;
     79     uint32_t _flag_a = 0, _flag_b = 0;
     80     uint32_t _itail_tgt = 0;
     81     RECOMP_REGS_LOCALS
     82     RECOMP_ENTER(0x2D005E20u);
     83 
     84 L_2D005E20:
     85     PUSH32(esp, ebp); /* 0x2D005E20: push ebp */
     86     ebp = esp; /* 0x2D005E21: mov ebp, esp */
     87     eax = MEM32(ebp + 0xC); /* 0x2D005E23: mov eax, dword ptr [ebp + 0xc] */
     88     ecx = MEM32(ebp + 0x8); /* 0x2D005E26: mov ecx, dword ptr [ebp + 8] */
     89     PUSH32(esp, eax); /* 0x2D005E29: push eax */
     90     PUSH32(esp, ecx); /* 0x2D005E2A: push ecx */
     91     ecx = MEM32(0x2D01752C); /* 0x2D005E2B: mov ecx, dword ptr [0x2d01752c] */
     92     RECOMP_ICALL(MEM32(0x2D009438)); /* 0x2D005E31: call dword ptr [0x2d009438] */
     93     RECOMP_FLAGS_IN();
     94     ebp = POP32_VAL(esp); /* 0x2D005E37: pop ebp */
     95     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D005E38: ret 8 */
     96     RECOMP_REGS_OUT();
     97 }
     98 
     99 void sub_2D005E40(void) {
    100     int _fpu_cmp = 0;
    101     uint32_t _cf = 0;
    102     int _df = 1;
    103     uint32_t _flag_k = FK_NONE;
    104     uint32_t _flag_a = 0, _flag_b = 0;
    105     uint32_t _itail_tgt = 0;
    106     RECOMP_REGS_LOCALS
    107     RECOMP_ENTER(0x2D005E40u);
    108 
    109 L_2D005E40:
    110     PUSH32(esp, ebp); /* 0x2D005E40: push ebp */
    111     ebp = esp; /* 0x2D005E41: mov ebp, esp */
    112     eax = MEM32(ebp + 0xC); /* 0x2D005E43: mov eax, dword ptr [ebp + 0xc] */
    113     ecx = MEM32(ebp + 0x8); /* 0x2D005E46: mov ecx, dword ptr [ebp + 8] */
    114     PUSH32(esp, eax); /* 0x2D005E49: push eax */
    115     PUSH32(esp, ecx); /* 0x2D005E4A: push ecx */
    116     ecx = MEM32(0x2D01752C); /* 0x2D005E4B: mov ecx, dword ptr [0x2d01752c] */
    117     RECOMP_ICALL(MEM32(0x2D00943C)); /* 0x2D005E51: call dword ptr [0x2d00943c] */
    118     RECOMP_FLAGS_IN();
    119     ebp = POP32_VAL(esp); /* 0x2D005E57: pop ebp */
    120     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D005E58: ret 8 */
    121     RECOMP_REGS_OUT();
    122 }
    123 
    124 void sub_2D005E60(void) {
    125     int _fpu_cmp = 0;
    126     uint32_t _cf = 0;
    127     int _df = 1;
    128     uint32_t _flag_k = FK_NONE;
    129     uint32_t _flag_a = 0, _flag_b = 0;
    130     uint32_t _itail_tgt = 0;
    131     RECOMP_REGS_LOCALS
    132     RECOMP_ENTER(0x2D005E60u);
    133 
    134 L_2D005E60:
    135     PUSH32(esp, ebp); /* 0x2D005E60: push ebp */
    136     ebp = esp; /* 0x2D005E61: mov ebp, esp */
    137     eax = MEM32(ebp + 0x8); /* 0x2D005E63: mov eax, dword ptr [ebp + 8] */
    138     ecx = MEM32(0x2D01752C); /* 0x2D005E66: mov ecx, dword ptr [0x2d01752c] */
    139     PUSH32(esp, eax); /* 0x2D005E6C: push eax */
    140     RECOMP_ICALL(MEM32(0x2D009440)); /* 0x2D005E6D: call dword ptr [0x2d009440] */
    141     RECOMP_FLAGS_IN();
    142     ebp = POP32_VAL(esp); /* 0x2D005E73: pop ebp */
    143     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005E74: ret 4 */
    144     RECOMP_REGS_OUT();
    145 }
    146 
    147 void sub_2D005E80(void) {
    148     int _fpu_cmp = 0;
    149     uint32_t _cf = 0;
    150     int _df = 1;
    151     uint32_t _flag_k = FK_NONE;
    152     uint32_t _flag_a = 0, _flag_b = 0;
    153     uint32_t _itail_tgt = 0;
    154     RECOMP_REGS_LOCALS
    155     RECOMP_ENTER(0x2D005E80u);
    156 
    157 L_2D005E80:
    158     PUSH32(esp, ebp); /* 0x2D005E80: push ebp */
    159     ebp = esp; /* 0x2D005E81: mov ebp, esp */
    160     eax = MEM32(ebp + 0x8); /* 0x2D005E83: mov eax, dword ptr [ebp + 8] */
    161     ecx = MEM32(0x2D01752C); /* 0x2D005E86: mov ecx, dword ptr [0x2d01752c] */
    162     PUSH32(esp, eax); /* 0x2D005E8C: push eax */
    163     RECOMP_ICALL(MEM32(0x2D009444)); /* 0x2D005E8D: call dword ptr [0x2d009444] */
    164     RECOMP_FLAGS_IN();
    165     ebp = POP32_VAL(esp); /* 0x2D005E93: pop ebp */
    166     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005E94: ret 4 */
    167     RECOMP_REGS_OUT();
    168 }
    169 
    170 void sub_2D005EA0(void) {
    171     int _fpu_cmp = 0;
    172     uint32_t _cf = 0;
    173     int _df = 1;
    174     uint32_t _flag_k = FK_NONE;
    175     uint32_t _flag_a = 0, _flag_b = 0;
    176     uint32_t _itail_tgt = 0;
    177     RECOMP_REGS_LOCALS
    178     RECOMP_ENTER(0x2D005EA0u);
    179 
    180 L_2D005EA0:
    181     PUSH32(esp, ebp); /* 0x2D005EA0: push ebp */
    182     ebp = esp; /* 0x2D005EA1: mov ebp, esp */
    183     eax = MEM32(ebp + 0x8); /* 0x2D005EA3: mov eax, dword ptr [ebp + 8] */
    184     ecx = MEM32(0x2D01752C); /* 0x2D005EA6: mov ecx, dword ptr [0x2d01752c] */
    185     PUSH32(esp, eax); /* 0x2D005EAC: push eax */
    186     RECOMP_ICALL(MEM32(0x2D009448)); /* 0x2D005EAD: call dword ptr [0x2d009448] */
    187     RECOMP_FLAGS_IN();
    188     ebp = POP32_VAL(esp); /* 0x2D005EB3: pop ebp */
    189     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005EB4: ret 4 */
    190     RECOMP_REGS_OUT();
    191 }
    192 
    193 void sub_2D005EC0(void) {
    194     int _fpu_cmp = 0;
    195     uint32_t _cf = 0;
    196     int _df = 1;
    197     uint32_t _flag_k = FK_NONE;
    198     uint32_t _flag_a = 0, _flag_b = 0;
    199     uint32_t _itail_tgt = 0;
    200     RECOMP_REGS_LOCALS
    201     RECOMP_ENTER(0x2D005EC0u);
    202 
    203 L_2D005EC0:
    204     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D005EC0: ret 0xc */
    205     RECOMP_REGS_OUT();
    206 }
    207 
    208 void sub_2D005ED0(void) {
    209     int _fpu_cmp = 0;
    210     uint32_t _cf = 0;
    211     int _df = 1;
    212     uint32_t _flag_k = FK_NONE;
    213     uint32_t _flag_a = 0, _flag_b = 0;
    214     uint32_t _itail_tgt = 0;
    215     RECOMP_REGS_LOCALS
    216     RECOMP_ENTER(0x2D005ED0u);
    217 
    218 L_2D005ED0:
    219     ecx = MEM32(0x2D01752C); /* 0x2D005ED0: mov ecx, dword ptr [0x2d01752c] */
    220 L_2D005ED6:
    221     { _itail_tgt = (uint32_t)(MEM32(0x2D00944C)); goto _ljump; }
    222     { RECOMP_REGS_OUT(); return; } /* end of function */
    223   _ljump:
    224     switch (_itail_tgt) {
    225       case 0x2D005ED0u: goto L_2D005ED0;
    226       case 0x2D005ED6u: goto L_2D005ED6;
    227       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    228     }
    229     RECOMP_REGS_OUT();
    230 }
    231 
    232 void sub_2D005EE0(void) {
    233     int _fpu_cmp = 0;
    234     uint32_t _cf = 0;
    235     int _df = 1;
    236     uint32_t _flag_k = FK_NONE;
    237     uint32_t _flag_a = 0, _flag_b = 0;
    238     uint32_t _itail_tgt = 0;
    239     RECOMP_REGS_LOCALS
    240     RECOMP_ENTER(0x2D005EE0u);
    241 
    242 L_2D005EE0:
    243     PUSH32(esp, ebp); /* 0x2D005EE0: push ebp */
    244     ebp = esp; /* 0x2D005EE1: mov ebp, esp */
    245     eax = MEM32(ebp + 0x8); /* 0x2D005EE3: mov eax, dword ptr [ebp + 8] */
    246     ecx = MEM32(0x2D01752C); /* 0x2D005EE6: mov ecx, dword ptr [0x2d01752c] */
    247     PUSH32(esp, eax); /* 0x2D005EEC: push eax */
    248     RECOMP_ICALL(MEM32(0x2D009450)); /* 0x2D005EED: call dword ptr [0x2d009450] */
    249     RECOMP_FLAGS_IN();
    250     ebp = POP32_VAL(esp); /* 0x2D005EF3: pop ebp */
    251     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005EF4: ret 4 */
    252     RECOMP_REGS_OUT();
    253 }
    254 
    255 void sub_2D005F00(void) {
    256     int _fpu_cmp = 0;
    257     uint32_t _cf = 0;
    258     int _df = 1;
    259     uint32_t _flag_k = FK_NONE;
    260     uint32_t _flag_a = 0, _flag_b = 0;
    261     uint32_t _itail_tgt = 0;
    262     RECOMP_REGS_LOCALS
    263     RECOMP_ENTER(0x2D005F00u);
    264 
    265 L_2D005F00:
    266     PUSH32(esp, ebp); /* 0x2D005F00: push ebp */
    267     ebp = esp; /* 0x2D005F01: mov ebp, esp */
    268     ecx = MEM32(0x2D01752C); /* 0x2D005F03: mov ecx, dword ptr [0x2d01752c] */
    269     /* test ecx, ecx */ /* 0x2D005F09: test ecx, ecx */
    270     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    271     _cf = 0;
    272     _flag_k = FK_TEST;
    273     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005F1B; /* 0x2D005F0B: je 0x2d005f1b */
    274 L_2D005F0D:
    275     eax = MEM32(ebp + 0x8); /* 0x2D005F0D: mov eax, dword ptr [ebp + 8] */
    276     PUSH32(esp, eax); /* 0x2D005F10: push eax */
    277     RECOMP_ICALL(MEM32(0x2D009454)); /* 0x2D005F11: call dword ptr [0x2d009454] */
    278     RECOMP_FLAGS_IN();
    279     ebp = POP32_VAL(esp); /* 0x2D005F17: pop ebp */
    280     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005F18: ret 4 */
    281 L_2D005F1B:
    282     SET_LO8(eax, 1); /* 0x2D005F1B: mov al, 1 */
    283     ebp = POP32_VAL(esp); /* 0x2D005F1D: pop ebp */
    284     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005F1E: ret 4 */
    285     RECOMP_REGS_OUT();
    286 }
    287 
    288 void sub_2D005F30(void) {
    289     int _fpu_cmp = 0;
    290     uint32_t _cf = 0;
    291     int _df = 1;
    292     uint32_t _flag_k = FK_NONE;
    293     uint32_t _flag_a = 0, _flag_b = 0;
    294     uint32_t _itail_tgt = 0;
    295     RECOMP_REGS_LOCALS
    296     RECOMP_ENTER(0x2D005F30u);
    297 
    298 L_2D005F30:
    299     PUSH32(esp, ebp); /* 0x2D005F30: push ebp */
    300     ebp = esp; /* 0x2D005F31: mov ebp, esp */
    301     eax = MEM32(ebp + 0x8); /* 0x2D005F33: mov eax, dword ptr [ebp + 8] */
    302     PUSH32(esp, eax); /* 0x2D005F36: push eax */
    303     RECOMP_ICALL(MEM32(0x2D009458)); /* 0x2D005F37: call dword ptr [0x2d009458] */
    304     RECOMP_FLAGS_IN();
    305     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    306     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    307     esp = esp + 4; /* 0x2D005F3D: add esp, 4 */
    308     _flag_k = FK_ADD;
    309     ebp = POP32_VAL(esp); /* 0x2D005F40: pop ebp */
    310     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005F41: ret 4 */
    311     RECOMP_REGS_OUT();
    312 }
    313 
    314 void sub_2D005F50(void) {
    315     int _fpu_cmp = 0;
    316     uint32_t _cf = 0;
    317     int _df = 1;
    318     uint32_t _flag_k = FK_NONE;
    319     uint32_t _flag_a = 0, _flag_b = 0;
    320     uint32_t _itail_tgt = 0;
    321     RECOMP_REGS_LOCALS
    322     RECOMP_ENTER(0x2D005F50u);
    323 
    324 L_2D005F50:
    325     ecx = MEM32(0x2D01752C); /* 0x2D005F50: mov ecx, dword ptr [0x2d01752c] */
    326 L_2D005F56:
    327     /* test ecx, ecx */ /* 0x2D005F56: test ecx, ecx */
    328     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    329     _cf = 0;
    330     _flag_k = FK_TEST;
    331 L_2D005F58:
    332     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D005F60; /* 0x2D005F58: je 0x2d005f60 */
    333 L_2D005F5A:
    334     { _itail_tgt = (uint32_t)(MEM32(0x2D00945C)); goto _ljump; }
    335 L_2D005F60:
    336     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
    337     eax = eax | 0xFFFFFFFFu; /* 0x2D005F60: or eax, 0xffffffff */
    338     _cf = 0;
    339     _flag_k = FK_TEST;
    340 L_2D005F63:
    341     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005F63: ret  */
    342   _ljump:
    343     switch (_itail_tgt) {
    344       case 0x2D005F50u: goto L_2D005F50;
    345       case 0x2D005F56u: goto L_2D005F56;
    346       case 0x2D005F58u: goto L_2D005F58;
    347       case 0x2D005F5Au: goto L_2D005F5A;
    348       case 0x2D005F60u: goto L_2D005F60;
    349       case 0x2D005F63u: goto L_2D005F63;
    350       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    351     }
    352     RECOMP_REGS_OUT();
    353 }
    354 
    355 void sub_2D005F70(void) {
    356     int _fpu_cmp = 0;
    357     uint32_t _cf = 0;
    358     int _df = 1;
    359     uint32_t _flag_k = FK_NONE;
    360     uint32_t _flag_a = 0, _flag_b = 0;
    361     uint32_t _itail_tgt = 0;
    362     RECOMP_REGS_LOCALS
    363     RECOMP_ENTER(0x2D005F70u);
    364 
    365 L_2D005F70:
    366     PUSH32(esp, ebp); /* 0x2D005F70: push ebp */
    367     ebp = esp; /* 0x2D005F71: mov ebp, esp */
    368     ecx = MEM32(0x2D01752C); /* 0x2D005F73: mov ecx, dword ptr [0x2d01752c] */
    369     /* test ecx, ecx */ /* 0x2D005F79: test ecx, ecx */
    370     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    371     _cf = 0;
    372     _flag_k = FK_TEST;
    373     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005F87; /* 0x2D005F7B: je 0x2d005f87 */
    374 L_2D005F7D:
    375     eax = MEM32(ebp + 0x8); /* 0x2D005F7D: mov eax, dword ptr [ebp + 8] */
    376     PUSH32(esp, eax); /* 0x2D005F80: push eax */
    377     RECOMP_ICALL(MEM32(0x2D009460)); /* 0x2D005F81: call dword ptr [0x2d009460] */
    378     RECOMP_FLAGS_IN();
    379 L_2D005F87:
    380     ebp = POP32_VAL(esp); /* 0x2D005F87: pop ebp */
    381     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005F88: ret 4 */
    382     RECOMP_REGS_OUT();
    383 }
    384 
    385 void sub_2D005F90(void) {
    386     int _fpu_cmp = 0;
    387     uint32_t _cf = 0;
    388     int _df = 1;
    389     uint32_t _flag_k = FK_NONE;
    390     uint32_t _flag_a = 0, _flag_b = 0;
    391     uint32_t _itail_tgt = 0;
    392     RECOMP_REGS_LOCALS
    393     RECOMP_ENTER(0x2D005F90u);
    394 
    395 L_2D005F90:
    396     ecx = MEM32(0x2D01752C); /* 0x2D005F90: mov ecx, dword ptr [0x2d01752c] */
    397 L_2D005F96:
    398     /* test ecx, ecx */ /* 0x2D005F96: test ecx, ecx */
    399     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    400     _cf = 0;
    401     _flag_k = FK_TEST;
    402 L_2D005F98:
    403     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D005FA0; /* 0x2D005F98: je 0x2d005fa0 */
    404 L_2D005F9A:
    405     { _itail_tgt = (uint32_t)(MEM32(0x2D009464)); goto _ljump; }
    406 L_2D005FA0:
    407     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    408     eax = 0; /* 0x2D005FA0: xor eax, eax */
    409     _cf = 0;
    410     _flag_k = FK_TEST;
    411 L_2D005FA2:
    412     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005FA2: ret  */
    413   _ljump:
    414     switch (_itail_tgt) {
    415       case 0x2D005F90u: goto L_2D005F90;
    416       case 0x2D005F96u: goto L_2D005F96;
    417       case 0x2D005F98u: goto L_2D005F98;
    418       case 0x2D005F9Au: goto L_2D005F9A;
    419       case 0x2D005FA0u: goto L_2D005FA0;
    420       case 0x2D005FA2u: goto L_2D005FA2;
    421       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    422     }
    423     RECOMP_REGS_OUT();
    424 }
    425 
    426 void sub_2D005FB0(void) {
    427     int _fpu_cmp = 0;
    428     uint32_t _cf = 0;
    429     int _df = 1;
    430     uint32_t _flag_k = FK_NONE;
    431     uint32_t _flag_a = 0, _flag_b = 0;
    432     uint32_t _itail_tgt = 0;
    433     RECOMP_REGS_LOCALS
    434     RECOMP_ENTER(0x2D005FB0u);
    435 
    436 L_2D005FB0:
    437     PUSH32(esp, ebp); /* 0x2D005FB0: push ebp */
    438     ebp = esp; /* 0x2D005FB1: mov ebp, esp */
    439     ecx = MEM32(0x2D01752C); /* 0x2D005FB3: mov ecx, dword ptr [0x2d01752c] */
    440     /* test ecx, ecx */ /* 0x2D005FB9: test ecx, ecx */
    441     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    442     _cf = 0;
    443     _flag_k = FK_TEST;
    444     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005FCB; /* 0x2D005FBB: je 0x2d005fcb */
    445 L_2D005FBD:
    446     eax = MEM32(ebp + 0x8); /* 0x2D005FBD: mov eax, dword ptr [ebp + 8] */
    447     PUSH32(esp, eax); /* 0x2D005FC0: push eax */
    448     RECOMP_ICALL(MEM32(0x2D009468)); /* 0x2D005FC1: call dword ptr [0x2d009468] */
    449     RECOMP_FLAGS_IN();
    450     ebp = POP32_VAL(esp); /* 0x2D005FC7: pop ebp */
    451     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005FC8: ret 4 */
    452 L_2D005FCB:
    453     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    454     SET_LO8(eax, 0); /* 0x2D005FCB: xor al, al */
    455     _cf = 0;
    456     _flag_k = FK_NARROW(FK_TEST, 24);
    457     ebp = POP32_VAL(esp); /* 0x2D005FCD: pop ebp */
    458     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005FCE: ret 4 */
    459     RECOMP_REGS_OUT();
    460 }
    461 
    462 void sub_2D005FE0(void) {
    463     int _fpu_cmp = 0;
    464     uint32_t _cf = 0;
    465     int _df = 1;
    466     uint32_t _flag_k = FK_NONE;
    467     uint32_t _flag_a = 0, _flag_b = 0;
    468     uint32_t _itail_tgt = 0;
    469     RECOMP_REGS_LOCALS
    470     RECOMP_ENTER(0x2D005FE0u);
    471 
    472 L_2D005FE0:
    473     PUSH32(esp, ebp); /* 0x2D005FE0: push ebp */
    474     ebp = esp; /* 0x2D005FE1: mov ebp, esp */
    475     ecx = MEM32(0x2D01752C); /* 0x2D005FE3: mov ecx, dword ptr [0x2d01752c] */
    476     /* test ecx, ecx */ /* 0x2D005FE9: test ecx, ecx */
    477     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    478     _cf = 0;
    479     _flag_k = FK_TEST;
    480     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005FFB; /* 0x2D005FEB: je 0x2d005ffb */
    481 L_2D005FED:
    482     eax = MEM32(ebp + 0xC); /* 0x2D005FED: mov eax, dword ptr [ebp + 0xc] */
    483     edx = MEM32(ebp + 0x8); /* 0x2D005FF0: mov edx, dword ptr [ebp + 8] */
    484     PUSH32(esp, eax); /* 0x2D005FF3: push eax */
    485     PUSH32(esp, edx); /* 0x2D005FF4: push edx */
    486     RECOMP_ICALL(MEM32(0x2D00946C)); /* 0x2D005FF5: call dword ptr [0x2d00946c] */
    487     RECOMP_FLAGS_IN();
    488 L_2D005FFB:
    489     ebp = POP32_VAL(esp); /* 0x2D005FFB: pop ebp */
    490     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D005FFC: ret 8 */
    491     RECOMP_REGS_OUT();
    492 }
    493 
    494 void sub_2D006000(void) {
    495     int _fpu_cmp = 0;
    496     uint32_t _cf = 0;
    497     int _df = 1;
    498     uint32_t _flag_k = FK_NONE;
    499     uint32_t _flag_a = 0, _flag_b = 0;
    500     uint32_t _itail_tgt = 0;
    501     RECOMP_REGS_LOCALS
    502     RECOMP_ENTER(0x2D006000u);
    503 
    504 L_2D006000:
    505     PUSH32(esp, ebp); /* 0x2D006000: push ebp */
    506     ebp = esp; /* 0x2D006001: mov ebp, esp */
    507     ecx = MEM32(0x2D01752C); /* 0x2D006003: mov ecx, dword ptr [0x2d01752c] */
    508     /* test ecx, ecx */ /* 0x2D006009: test ecx, ecx */
    509     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    510     _cf = 0;
    511     _flag_k = FK_TEST;
    512     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00601F; /* 0x2D00600B: je 0x2d00601f */
    513 L_2D00600D:
    514     eax = MEM32(ebp + 0x10); /* 0x2D00600D: mov eax, dword ptr [ebp + 0x10] */
    515     edx = MEM32(ebp + 0xC); /* 0x2D006010: mov edx, dword ptr [ebp + 0xc] */
    516     PUSH32(esp, eax); /* 0x2D006013: push eax */
    517     eax = MEM32(ebp + 0x8); /* 0x2D006014: mov eax, dword ptr [ebp + 8] */
    518     PUSH32(esp, edx); /* 0x2D006017: push edx */
    519     PUSH32(esp, eax); /* 0x2D006018: push eax */
    520     RECOMP_ICALL(MEM32(0x2D009470)); /* 0x2D006019: call dword ptr [0x2d009470] */
    521     RECOMP_FLAGS_IN();
    522 L_2D00601F:
    523     ebp = POP32_VAL(esp); /* 0x2D00601F: pop ebp */
    524     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D006020: ret 0xc */
    525     RECOMP_REGS_OUT();
    526 }
    527 
    528 void sub_2D006030(void) {
    529     int _fpu_cmp = 0;
    530     uint32_t _cf = 0;
    531     int _df = 1;
    532     uint32_t _flag_k = FK_NONE;
    533     uint32_t _flag_a = 0, _flag_b = 0;
    534     uint32_t _itail_tgt = 0;
    535     RECOMP_REGS_LOCALS
    536     RECOMP_ENTER(0x2D006030u);
    537 
    538 L_2D006030:
    539     PUSH32(esp, ebp); /* 0x2D006030: push ebp */
    540     ebp = esp; /* 0x2D006031: mov ebp, esp */
    541     ecx = MEM32(0x2D01752C); /* 0x2D006033: mov ecx, dword ptr [0x2d01752c] */
    542     /* test ecx, ecx */ /* 0x2D006039: test ecx, ecx */
    543     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    544     _cf = 0;
    545     _flag_k = FK_TEST;
    546     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006057; /* 0x2D00603B: je 0x2d006057 */
    547 L_2D00603D:
    548     eax = MEM32(ebp + 0x14); /* 0x2D00603D: mov eax, dword ptr [ebp + 0x14] */
    549     edx = MEM32(ebp + 0x10); /* 0x2D006040: mov edx, dword ptr [ebp + 0x10] */
    550     PUSH32(esp, eax); /* 0x2D006043: push eax */
    551     eax = MEM32(ebp + 0xC); /* 0x2D006044: mov eax, dword ptr [ebp + 0xc] */
    552     PUSH32(esp, edx); /* 0x2D006047: push edx */
    553     edx = MEM32(ebp + 0x8); /* 0x2D006048: mov edx, dword ptr [ebp + 8] */
    554     PUSH32(esp, eax); /* 0x2D00604B: push eax */
    555     PUSH32(esp, edx); /* 0x2D00604C: push edx */
    556     RECOMP_ICALL(MEM32(0x2D009474)); /* 0x2D00604D: call dword ptr [0x2d009474] */
    557     RECOMP_FLAGS_IN();
    558     ebp = POP32_VAL(esp); /* 0x2D006053: pop ebp */
    559     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2D006054: ret 0x10 */
    560 L_2D006057:
    561     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    562     SET_LO8(eax, 0); /* 0x2D006057: xor al, al */
    563     _cf = 0;
    564     _flag_k = FK_NARROW(FK_TEST, 24);
    565     ebp = POP32_VAL(esp); /* 0x2D006059: pop ebp */
    566     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2D00605A: ret 0x10 */
    567     RECOMP_REGS_OUT();
    568 }
    569 
    570 void sub_2D006060(void) {
    571     int _fpu_cmp = 0;
    572     uint32_t _cf = 0;
    573     int _df = 1;
    574     uint32_t _flag_k = FK_NONE;
    575     uint32_t _flag_a = 0, _flag_b = 0;
    576     uint32_t _itail_tgt = 0;
    577     RECOMP_REGS_LOCALS
    578     RECOMP_ENTER(0x2D006060u);
    579 
    580 L_2D006060:
    581     PUSH32(esp, ebp); /* 0x2D006060: push ebp */
    582     ebp = esp; /* 0x2D006061: mov ebp, esp */
    583     ecx = MEM32(0x2D01752C); /* 0x2D006063: mov ecx, dword ptr [0x2d01752c] */
    584     /* test ecx, ecx */ /* 0x2D006069: test ecx, ecx */
    585     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    586     _cf = 0;
    587     _flag_k = FK_TEST;
    588     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006087; /* 0x2D00606B: je 0x2d006087 */
    589 L_2D00606D:
    590     eax = MEM32(ebp + 0x14); /* 0x2D00606D: mov eax, dword ptr [ebp + 0x14] */
    591     edx = MEM32(ebp + 0x10); /* 0x2D006070: mov edx, dword ptr [ebp + 0x10] */
    592     PUSH32(esp, eax); /* 0x2D006073: push eax */
    593     eax = MEM32(ebp + 0xC); /* 0x2D006074: mov eax, dword ptr [ebp + 0xc] */
    594     PUSH32(esp, edx); /* 0x2D006077: push edx */
    595     edx = MEM32(ebp + 0x8); /* 0x2D006078: mov edx, dword ptr [ebp + 8] */
    596     PUSH32(esp, eax); /* 0x2D00607B: push eax */
    597     PUSH32(esp, edx); /* 0x2D00607C: push edx */
    598     RECOMP_ICALL(MEM32(0x2D009478)); /* 0x2D00607D: call dword ptr [0x2d009478] */
    599     RECOMP_FLAGS_IN();
    600     ebp = POP32_VAL(esp); /* 0x2D006083: pop ebp */
    601     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2D006084: ret 0x10 */
    602 L_2D006087:
    603     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    604     SET_LO8(eax, 0); /* 0x2D006087: xor al, al */
    605     _cf = 0;
    606     _flag_k = FK_NARROW(FK_TEST, 24);
    607     ebp = POP32_VAL(esp); /* 0x2D006089: pop ebp */
    608     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2D00608A: ret 0x10 */
    609     RECOMP_REGS_OUT();
    610 }
    611 
    612 void sub_2D006090(void) {
    613     int _fpu_cmp = 0;
    614     uint32_t _cf = 0;
    615     int _df = 1;
    616     uint32_t _flag_k = FK_NONE;
    617     uint32_t _flag_a = 0, _flag_b = 0;
    618     uint32_t _itail_tgt = 0;
    619     RECOMP_REGS_LOCALS
    620     RECOMP_ENTER(0x2D006090u);
    621 
    622 L_2D006090:
    623     ecx = MEM32(0x2D01752C); /* 0x2D006090: mov ecx, dword ptr [0x2d01752c] */
    624 L_2D006096:
    625     /* test ecx, ecx */ /* 0x2D006096: test ecx, ecx */
    626     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    627     _cf = 0;
    628     _flag_k = FK_TEST;
    629 L_2D006098:
    630     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D0060A0; /* 0x2D006098: je 0x2d0060a0 */
    631 L_2D00609A:
    632     { _itail_tgt = (uint32_t)(MEM32(0x2D00947C)); goto _ljump; }
    633 L_2D0060A0:
    634     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0060A0: ret  */
    635   _ljump:
    636     switch (_itail_tgt) {
    637       case 0x2D006090u: goto L_2D006090;
    638       case 0x2D006096u: goto L_2D006096;
    639       case 0x2D006098u: goto L_2D006098;
    640       case 0x2D00609Au: goto L_2D00609A;
    641       case 0x2D0060A0u: goto L_2D0060A0;
    642       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    643     }
    644     RECOMP_REGS_OUT();
    645 }
    646 
    647 void sub_2D0060B0(void) {
    648     int _fpu_cmp = 0;
    649     uint32_t _cf = 0;
    650     int _df = 1;
    651     uint32_t _flag_k = FK_NONE;
    652     uint32_t _flag_a = 0, _flag_b = 0;
    653     uint32_t _itail_tgt = 0;
    654     RECOMP_REGS_LOCALS
    655     RECOMP_ENTER(0x2D0060B0u);
    656 
    657 L_2D0060B0:
    658     PUSH32(esp, ebp); /* 0x2D0060B0: push ebp */
    659     ebp = esp; /* 0x2D0060B1: mov ebp, esp */
    660     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    662     esp = esp - 8; /* 0x2D0060B3: sub esp, 8 */
    663     _flag_k = FK_CMP;
    664     eax = ebp + (-0x8); /* 0x2D0060B6: lea eax, [ebp - 8] */
    665     PUSH32(esp, eax); /* 0x2D0060B9: push eax */
    666     MEM32(ebp + (-0x8)) = 0; /* 0x2D0060BA: mov dword ptr [ebp - 8], 0 */
    667     MEM32(ebp + (-0x4)) = 0; /* 0x2D0060C1: mov dword ptr [ebp - 4], 0 */
    668     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D0060C8: call dword ptr [0x2d0090b8] */
    669     RECOMP_FLAGS_IN();
    670     ecx = eax; /* 0x2D0060CE: mov ecx, eax */
    671     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D0060D0: call dword ptr [0x2d0090b4] */
    672     RECOMP_FLAGS_IN();
    673     ecx = MEM32(0x2D01752C); /* 0x2D0060D6: mov ecx, dword ptr [0x2d01752c] */
    674     /* test ecx, ecx */ /* 0x2D0060DC: test ecx, ecx */
    675     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    676     _cf = 0;
    677     _flag_k = FK_TEST;
    678     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0060EF; /* 0x2D0060DE: je 0x2d0060ef */
    679 L_2D0060E0:
    680     PUSH32(esp, 0x8Eu); /* 0x2D0060E0: push 0x8e */
    681     edx = ebp + (-0x8); /* 0x2D0060E5: lea edx, [ebp - 8] */
    682     PUSH32(esp, edx); /* 0x2D0060E8: push edx */
    683     RECOMP_ICALL(MEM32(0x2D009480)); /* 0x2D0060E9: call dword ptr [0x2d009480] */
    684     RECOMP_FLAGS_IN();
    685 L_2D0060EF:
    686     esp = ebp; /* 0x2D0060EF: mov esp, ebp */
    687     ebp = POP32_VAL(esp); /* 0x2D0060F1: pop ebp */
    688     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0060F2: ret  */
    689     RECOMP_REGS_OUT();
    690 }
    691 
    692 void sub_2D006100(void) {
    693     int _fpu_cmp = 0;
    694     uint32_t _cf = 0;
    695     int _df = 1;
    696     uint32_t _flag_k = FK_NONE;
    697     uint32_t _flag_a = 0, _flag_b = 0;
    698     uint32_t _itail_tgt = 0;
    699     RECOMP_REGS_LOCALS
    700     RECOMP_ENTER(0x2D006100u);
    701 
    702 L_2D006100:
    703     PUSH32(esp, ebp); /* 0x2D006100: push ebp */
    704     ebp = esp; /* 0x2D006101: mov ebp, esp */
    705     ecx = MEM32(0x2D01752C); /* 0x2D006103: mov ecx, dword ptr [0x2d01752c] */
    706     /* test ecx, ecx */ /* 0x2D006109: test ecx, ecx */
    707     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    708     _cf = 0;
    709     _flag_k = FK_TEST;
    710     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00611F; /* 0x2D00610B: je 0x2d00611f */
    711 L_2D00610D:
    712     eax = MEM32(ebp + 0xC); /* 0x2D00610D: mov eax, dword ptr [ebp + 0xc] */
    713     edx = MEM32(ebp + 0x8); /* 0x2D006110: mov edx, dword ptr [ebp + 8] */
    714     PUSH32(esp, eax); /* 0x2D006113: push eax */
    715     PUSH32(esp, edx); /* 0x2D006114: push edx */
    716     RECOMP_ICALL(MEM32(0x2D009480)); /* 0x2D006115: call dword ptr [0x2d009480] */
    717     RECOMP_FLAGS_IN();
    718     ebp = POP32_VAL(esp); /* 0x2D00611B: pop ebp */
    719     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00611C: ret 8 */
    720 L_2D00611F:
    721     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    722     SET_LO8(eax, 0); /* 0x2D00611F: xor al, al */
    723     _cf = 0;
    724     _flag_k = FK_NARROW(FK_TEST, 24);
    725     ebp = POP32_VAL(esp); /* 0x2D006121: pop ebp */
    726     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D006122: ret 8 */
    727     RECOMP_REGS_OUT();
    728 }
    729 
    730 void sub_2D006130(void) {
    731     int _fpu_cmp = 0;
    732     uint32_t _cf = 0;
    733     int _df = 1;
    734     uint32_t _flag_k = FK_NONE;
    735     uint32_t _flag_a = 0, _flag_b = 0;
    736     uint32_t _itail_tgt = 0;
    737     RECOMP_REGS_LOCALS
    738     RECOMP_ENTER(0x2D006130u);
    739 
    740 L_2D006130:
    741     PUSH32(esp, ebp); /* 0x2D006130: push ebp */
    742     ebp = esp; /* 0x2D006131: mov ebp, esp */
    743     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    745     esp = esp - 8; /* 0x2D006133: sub esp, 8 */
    746     _flag_k = FK_CMP;
    747     eax = ebp + (-0x8); /* 0x2D006136: lea eax, [ebp - 8] */
    748     PUSH32(esp, eax); /* 0x2D006139: push eax */
    749     MEM32(ebp + (-0x8)) = 0; /* 0x2D00613A: mov dword ptr [ebp - 8], 0 */
    750     MEM32(ebp + (-0x4)) = 0; /* 0x2D006141: mov dword ptr [ebp - 4], 0 */
    751     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D006148: call dword ptr [0x2d0090b8] */
    752     RECOMP_FLAGS_IN();
    753     ecx = eax; /* 0x2D00614E: mov ecx, eax */
    754     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D006150: call dword ptr [0x2d0090b4] */
    755     RECOMP_FLAGS_IN();
    756     ecx = MEM32(0x2D01752C); /* 0x2D006156: mov ecx, dword ptr [0x2d01752c] */
    757     /* test ecx, ecx */ /* 0x2D00615C: test ecx, ecx */
    758     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    759     _cf = 0;
    760     _flag_k = FK_TEST;
    761     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00616F; /* 0x2D00615E: je 0x2d00616f */
    762 L_2D006160:
    763     PUSH32(esp, 0x90u); /* 0x2D006160: push 0x90 */
    764     edx = ebp + (-0x8); /* 0x2D006165: lea edx, [ebp - 8] */
    765     PUSH32(esp, edx); /* 0x2D006168: push edx */
    766     RECOMP_ICALL(MEM32(0x2D009480)); /* 0x2D006169: call dword ptr [0x2d009480] */
    767     RECOMP_FLAGS_IN();
    768 L_2D00616F:
    769     esp = ebp; /* 0x2D00616F: mov esp, ebp */
    770     ebp = POP32_VAL(esp); /* 0x2D006171: pop ebp */
    771     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006172: ret  */
    772     RECOMP_REGS_OUT();
    773 }
    774 
    775 void sub_2D006180(void) {
    776     int _fpu_cmp = 0;
    777     uint32_t _cf = 0;
    778     int _df = 1;
    779     uint32_t _flag_k = FK_NONE;
    780     uint32_t _flag_a = 0, _flag_b = 0;
    781     uint32_t _itail_tgt = 0;
    782     RECOMP_REGS_LOCALS
    783     RECOMP_ENTER(0x2D006180u);
    784 
    785 L_2D006180:
    786     PUSH32(esp, ebp); /* 0x2D006180: push ebp */
    787     ebp = esp; /* 0x2D006181: mov ebp, esp */
    788     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    789     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    790     esp = esp - 8; /* 0x2D006183: sub esp, 8 */
    791     _flag_k = FK_CMP;
    792     eax = ebp + (-0x8); /* 0x2D006186: lea eax, [ebp - 8] */
    793     PUSH32(esp, eax); /* 0x2D006189: push eax */
    794     MEM32(ebp + (-0x8)) = 0; /* 0x2D00618A: mov dword ptr [ebp - 8], 0 */
    795     MEM32(ebp + (-0x4)) = 0; /* 0x2D006191: mov dword ptr [ebp - 4], 0 */
    796     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D006198: call dword ptr [0x2d0090b8] */
    797     RECOMP_FLAGS_IN();
    798     ecx = eax; /* 0x2D00619E: mov ecx, eax */
    799     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D0061A0: call dword ptr [0x2d0090b4] */
    800     RECOMP_FLAGS_IN();
    801     ecx = MEM32(0x2D01752C); /* 0x2D0061A6: mov ecx, dword ptr [0x2d01752c] */
    802     /* test ecx, ecx */ /* 0x2D0061AC: test ecx, ecx */
    803     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    804     _cf = 0;
    805     _flag_k = FK_TEST;
    806     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0061BF; /* 0x2D0061AE: je 0x2d0061bf */
    807 L_2D0061B0:
    808     PUSH32(esp, 0x94u); /* 0x2D0061B0: push 0x94 */
    809     edx = ebp + (-0x8); /* 0x2D0061B5: lea edx, [ebp - 8] */
    810     PUSH32(esp, edx); /* 0x2D0061B8: push edx */
    811     RECOMP_ICALL(MEM32(0x2D009480)); /* 0x2D0061B9: call dword ptr [0x2d009480] */
    812     RECOMP_FLAGS_IN();
    813 L_2D0061BF:
    814     esp = ebp; /* 0x2D0061BF: mov esp, ebp */
    815     ebp = POP32_VAL(esp); /* 0x2D0061C1: pop ebp */
    816     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0061C2: ret  */
    817     RECOMP_REGS_OUT();
    818 }
    819 
    820 void sub_2D0061D0(void) {
    821     int _fpu_cmp = 0;
    822     uint32_t _cf = 0;
    823     int _df = 1;
    824     uint32_t _flag_k = FK_NONE;
    825     uint32_t _flag_a = 0, _flag_b = 0;
    826     uint32_t _itail_tgt = 0;
    827     RECOMP_REGS_LOCALS
    828     RECOMP_ENTER(0x2D0061D0u);
    829 
    830 L_2D0061D0:
    831     PUSH32(esp, ebp); /* 0x2D0061D0: push ebp */
    832     ebp = esp; /* 0x2D0061D1: mov ebp, esp */
    833     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    835     esp = esp - 8; /* 0x2D0061D3: sub esp, 8 */
    836     _flag_k = FK_CMP;
    837     eax = ebp + (-0x8); /* 0x2D0061D6: lea eax, [ebp - 8] */
    838     PUSH32(esp, eax); /* 0x2D0061D9: push eax */
    839     MEM32(ebp + (-0x8)) = 0; /* 0x2D0061DA: mov dword ptr [ebp - 8], 0 */
    840     MEM32(ebp + (-0x4)) = 0; /* 0x2D0061E1: mov dword ptr [ebp - 4], 0 */
    841     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D0061E8: call dword ptr [0x2d0090b8] */
    842     RECOMP_FLAGS_IN();
    843     ecx = eax; /* 0x2D0061EE: mov ecx, eax */
    844     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D0061F0: call dword ptr [0x2d0090b4] */
    845     RECOMP_FLAGS_IN();
    846     ecx = MEM32(0x2D01752C); /* 0x2D0061F6: mov ecx, dword ptr [0x2d01752c] */
    847     /* test ecx, ecx */ /* 0x2D0061FC: test ecx, ecx */
    848     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    849     _cf = 0;
    850     _flag_k = FK_TEST;
    851     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00620F; /* 0x2D0061FE: je 0x2d00620f */
    852 L_2D006200:
    853     PUSH32(esp, 0x97u); /* 0x2D006200: push 0x97 */
    854     edx = ebp + (-0x8); /* 0x2D006205: lea edx, [ebp - 8] */
    855     PUSH32(esp, edx); /* 0x2D006208: push edx */
    856     RECOMP_ICALL(MEM32(0x2D009480)); /* 0x2D006209: call dword ptr [0x2d009480] */
    857     RECOMP_FLAGS_IN();
    858 L_2D00620F:
    859     esp = ebp; /* 0x2D00620F: mov esp, ebp */
    860     ebp = POP32_VAL(esp); /* 0x2D006211: pop ebp */
    861     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006212: ret  */
    862     RECOMP_REGS_OUT();
    863 }
    864 
    865 void sub_2D006220(void) {
    866     int _fpu_cmp = 0;
    867     uint32_t _cf = 0;
    868     int _df = 1;
    869     uint32_t _flag_k = FK_NONE;
    870     uint32_t _flag_a = 0, _flag_b = 0;
    871     uint32_t _itail_tgt = 0;
    872     RECOMP_REGS_LOCALS
    873     RECOMP_ENTER(0x2D006220u);
    874 
    875 L_2D006220:
    876     PUSH32(esp, ebp); /* 0x2D006220: push ebp */
    877     ebp = esp; /* 0x2D006221: mov ebp, esp */
    878     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    879     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    880     esp = esp - 8; /* 0x2D006223: sub esp, 8 */
    881     _flag_k = FK_CMP;
    882     eax = ebp + (-0x8); /* 0x2D006226: lea eax, [ebp - 8] */
    883     PUSH32(esp, eax); /* 0x2D006229: push eax */
    884     MEM32(ebp + (-0x8)) = 0; /* 0x2D00622A: mov dword ptr [ebp - 8], 0 */
    885     MEM32(ebp + (-0x4)) = 0; /* 0x2D006231: mov dword ptr [ebp - 4], 0 */
    886     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D006238: call dword ptr [0x2d0090b8] */
    887     RECOMP_FLAGS_IN();
    888     ecx = eax; /* 0x2D00623E: mov ecx, eax */
    889     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D006240: call dword ptr [0x2d0090b4] */
    890     RECOMP_FLAGS_IN();
    891     ecx = MEM32(0x2D01752C); /* 0x2D006246: mov ecx, dword ptr [0x2d01752c] */
    892     /* test ecx, ecx */ /* 0x2D00624C: test ecx, ecx */
    893     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    894     _cf = 0;
    895     _flag_k = FK_TEST;
    896     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00625F; /* 0x2D00624E: je 0x2d00625f */
    897 L_2D006250:
    898     PUSH32(esp, 0xA7u); /* 0x2D006250: push 0xa7 */
    899     edx = ebp + (-0x8); /* 0x2D006255: lea edx, [ebp - 8] */
    900     PUSH32(esp, edx); /* 0x2D006258: push edx */
    901     RECOMP_ICALL(MEM32(0x2D009480)); /* 0x2D006259: call dword ptr [0x2d009480] */
    902     RECOMP_FLAGS_IN();
    903 L_2D00625F:
    904     esp = ebp; /* 0x2D00625F: mov esp, ebp */
    905     ebp = POP32_VAL(esp); /* 0x2D006261: pop ebp */
    906     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006262: ret  */
    907     RECOMP_REGS_OUT();
    908 }
    909 
    910 void sub_2D006270(void) {
    911     int _fpu_cmp = 0;
    912     uint32_t _cf = 0;
    913     int _df = 1;
    914     uint32_t _flag_k = FK_NONE;
    915     uint32_t _flag_a = 0, _flag_b = 0;
    916     uint32_t _itail_tgt = 0;
    917     RECOMP_REGS_LOCALS
    918     RECOMP_ENTER(0x2D006270u);
    919 
    920 L_2D006270:
    921     PUSH32(esp, ebp); /* 0x2D006270: push ebp */
    922     ebp = esp; /* 0x2D006271: mov ebp, esp */
    923     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    925     esp = esp - 8; /* 0x2D006273: sub esp, 8 */
    926     _flag_k = FK_CMP;
    927     eax = ebp + (-0x8); /* 0x2D006276: lea eax, [ebp - 8] */
    928     PUSH32(esp, eax); /* 0x2D006279: push eax */
    929     MEM32(ebp + (-0x8)) = 0; /* 0x2D00627A: mov dword ptr [ebp - 8], 0 */
    930     MEM32(ebp + (-0x4)) = 0; /* 0x2D006281: mov dword ptr [ebp - 4], 0 */
    931     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D006288: call dword ptr [0x2d0090b8] */
    932     RECOMP_FLAGS_IN();
    933     ecx = eax; /* 0x2D00628E: mov ecx, eax */
    934     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D006290: call dword ptr [0x2d0090b4] */
    935     RECOMP_FLAGS_IN();
    936     ecx = MEM32(0x2D01752C); /* 0x2D006296: mov ecx, dword ptr [0x2d01752c] */
    937     /* test ecx, ecx */ /* 0x2D00629C: test ecx, ecx */
    938     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    939     _cf = 0;
    940     _flag_k = FK_TEST;
    941     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0062AA; /* 0x2D00629E: je 0x2d0062aa */
    942 L_2D0062A0:
    943     edx = ebp + (-0x8); /* 0x2D0062A0: lea edx, [ebp - 8] */
    944     PUSH32(esp, edx); /* 0x2D0062A3: push edx */
    945     RECOMP_ICALL(MEM32(0x2D009484)); /* 0x2D0062A4: call dword ptr [0x2d009484] */
    946     RECOMP_FLAGS_IN();
    947 L_2D0062AA:
    948     esp = ebp; /* 0x2D0062AA: mov esp, ebp */
    949     ebp = POP32_VAL(esp); /* 0x2D0062AC: pop ebp */
    950     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0062AD: ret  */
    951     RECOMP_REGS_OUT();
    952 }
    953 
    954 void sub_2D0062B0(void) {
    955     int _fpu_cmp = 0;
    956     uint32_t _cf = 0;
    957     int _df = 1;
    958     uint32_t _flag_k = FK_NONE;
    959     uint32_t _flag_a = 0, _flag_b = 0;
    960     uint32_t _itail_tgt = 0;
    961     RECOMP_REGS_LOCALS
    962     RECOMP_ENTER(0x2D0062B0u);
    963 
    964 L_2D0062B0:
    965     PUSH32(esp, ebp); /* 0x2D0062B0: push ebp */
    966     ebp = esp; /* 0x2D0062B1: mov ebp, esp */
    967     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    969     esp = esp - 8; /* 0x2D0062B3: sub esp, 8 */
    970     _flag_k = FK_CMP;
    971     eax = ebp + (-0x8); /* 0x2D0062B6: lea eax, [ebp - 8] */
    972     PUSH32(esp, eax); /* 0x2D0062B9: push eax */
    973     MEM32(ebp + (-0x8)) = 0; /* 0x2D0062BA: mov dword ptr [ebp - 8], 0 */
    974     MEM32(ebp + (-0x4)) = 0; /* 0x2D0062C1: mov dword ptr [ebp - 4], 0 */
    975     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D0062C8: call dword ptr [0x2d0090b8] */
    976     RECOMP_FLAGS_IN();
    977     ecx = eax; /* 0x2D0062CE: mov ecx, eax */
    978     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D0062D0: call dword ptr [0x2d0090b4] */
    979     RECOMP_FLAGS_IN();
    980     ecx = MEM32(0x2D01752C); /* 0x2D0062D6: mov ecx, dword ptr [0x2d01752c] */
    981     /* test ecx, ecx */ /* 0x2D0062DC: test ecx, ecx */
    982     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    983     _cf = 0;
    984     _flag_k = FK_TEST;
    985     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0062EF; /* 0x2D0062DE: je 0x2d0062ef */
    986 L_2D0062E0:
    987     PUSH32(esp, 0x96u); /* 0x2D0062E0: push 0x96 */
    988     edx = ebp + (-0x8); /* 0x2D0062E5: lea edx, [ebp - 8] */
    989     PUSH32(esp, edx); /* 0x2D0062E8: push edx */
    990     RECOMP_ICALL(MEM32(0x2D009480)); /* 0x2D0062E9: call dword ptr [0x2d009480] */
    991     RECOMP_FLAGS_IN();
    992 L_2D0062EF:
    993     esp = ebp; /* 0x2D0062EF: mov esp, ebp */
    994     ebp = POP32_VAL(esp); /* 0x2D0062F1: pop ebp */
    995     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0062F2: ret  */
    996     RECOMP_REGS_OUT();
    997 }
    998 
    999 void sub_2D006300(void) {
   1000     int _fpu_cmp = 0;
   1001     uint32_t _cf = 0;
   1002     int _df = 1;
   1003     uint32_t _flag_k = FK_NONE;
   1004     uint32_t _flag_a = 0, _flag_b = 0;
   1005     uint32_t _itail_tgt = 0;
   1006     RECOMP_REGS_LOCALS
   1007     RECOMP_ENTER(0x2D006300u);
   1008 
   1009 L_2D006300:
   1010     PUSH32(esp, ebp); /* 0x2D006300: push ebp */
   1011     ebp = esp; /* 0x2D006301: mov ebp, esp */
   1012     PUSH32(esp, ecx); /* 0x2D006303: push ecx */
   1013     ecx = MEM32(0x2D01752C); /* 0x2D006304: mov ecx, dword ptr [0x2d01752c] */
   1014     /* test ecx, ecx */ /* 0x2D00630A: test ecx, ecx */
   1015     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1016     _cf = 0;
   1017     _flag_k = FK_TEST;
   1018     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006321; /* 0x2D00630C: je 0x2d006321 */
   1019 L_2D00630E:
   1020     eax = ebp + (-0x4); /* 0x2D00630E: lea eax, [ebp - 4] */
   1021     PUSH32(esp, eax); /* 0x2D006311: push eax */
   1022     PUSH32(esp, 0xDu); /* 0x2D006312: push 0xd */
   1023     MEM32(ebp + (-0x4)) = 0; /* 0x2D006314: mov dword ptr [ebp - 4], 0 */
   1024     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D00631B: call dword ptr [0x2d0093d8] */
   1025     RECOMP_FLAGS_IN();
   1026 L_2D006321:
   1027     esp = ebp; /* 0x2D006321: mov esp, ebp */
   1028     ebp = POP32_VAL(esp); /* 0x2D006323: pop ebp */
   1029     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006324: ret  */
   1030     RECOMP_REGS_OUT();
   1031 }
   1032 
   1033 void sub_2D006330(void) {
   1034     int _fpu_cmp = 0;
   1035     uint32_t _cf = 0;
   1036     int _df = 1;
   1037     uint32_t _flag_k = FK_NONE;
   1038     uint32_t _flag_a = 0, _flag_b = 0;
   1039     uint32_t _itail_tgt = 0;
   1040     RECOMP_REGS_LOCALS
   1041     RECOMP_ENTER(0x2D006330u);
   1042 
   1043 L_2D006330:
   1044     ecx = MEM32(0x2D01752C); /* 0x2D006330: mov ecx, dword ptr [0x2d01752c] */
   1045     /* test ecx, ecx */ /* 0x2D006336: test ecx, ecx */
   1046     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1047     _cf = 0;
   1048     _flag_k = FK_TEST;
   1049     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00635E; /* 0x2D006338: je 0x2d00635e */
   1050 L_2D00633A:
   1051     PUSH32(esp, esi); /* 0x2D00633A: push esi */
   1052     esi = 0x11u; /* 0x2D00633B: mov esi, 0x11 */
   1053     RECOMP_ICALL(MEM32(0x2D009488)); /* 0x2D006340: call dword ptr [0x2d009488] */
   1054     RECOMP_FLAGS_IN();
   1055     /* cmp eax, 2 */ /* 0x2D006346: cmp eax, 2 */
   1056     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   1057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1058     _flag_k = FK_CMP;
   1059     if (CMP_NE(_flag_a, _flag_b)) goto L_2D006350; /* 0x2D006349: jne 0x2d006350 */
   1060 L_2D00634B:
   1061     esi = 0x12u; /* 0x2D00634B: mov esi, 0x12 */
   1062 L_2D006350:
   1063     ecx = MEM32(0x2D01752C); /* 0x2D006350: mov ecx, dword ptr [0x2d01752c] */
   1064     PUSH32(esp, esi); /* 0x2D006356: push esi */
   1065     RECOMP_ICALL(MEM32(0x2D00935C)); /* 0x2D006357: call dword ptr [0x2d00935c] */
   1066     RECOMP_FLAGS_IN();
   1067     esi = POP32_VAL(esp); /* 0x2D00635D: pop esi */
   1068 L_2D00635E:
   1069     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D00635E: ret  */
   1070     RECOMP_REGS_OUT();
   1071 }
   1072 
   1073 void sub_2D006360(void) {
   1074     int _fpu_cmp = 0;
   1075     uint32_t _cf = 0;
   1076     int _df = 1;
   1077     uint32_t _flag_k = FK_NONE;
   1078     uint32_t _flag_a = 0, _flag_b = 0;
   1079     uint32_t _itail_tgt = 0;
   1080     RECOMP_REGS_LOCALS
   1081     RECOMP_ENTER(0x2D006360u);
   1082 
   1083 L_2D006360:
   1084     PUSH32(esp, ebp); /* 0x2D006360: push ebp */
   1085     ebp = esp; /* 0x2D006361: mov ebp, esp */
   1086     ecx = MEM32(0x2D01752C); /* 0x2D006363: mov ecx, dword ptr [0x2d01752c] */
   1087     /* test ecx, ecx */ /* 0x2D006369: test ecx, ecx */
   1088     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1089     _cf = 0;
   1090     _flag_k = FK_TEST;
   1091     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00637B; /* 0x2D00636B: je 0x2d00637b */
   1092 L_2D00636D:
   1093     eax = MEM32(ebp + 0xC); /* 0x2D00636D: mov eax, dword ptr [ebp + 0xc] */
   1094     edx = MEM32(ebp + 0x8); /* 0x2D006370: mov edx, dword ptr [ebp + 8] */
   1095     PUSH32(esp, eax); /* 0x2D006373: push eax */
   1096     PUSH32(esp, edx); /* 0x2D006374: push edx */
   1097     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D006375: call dword ptr [0x2d0093d8] */
   1098     RECOMP_FLAGS_IN();
   1099 L_2D00637B:
   1100     ebp = POP32_VAL(esp); /* 0x2D00637B: pop ebp */
   1101     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00637C: ret 8 */
   1102     RECOMP_REGS_OUT();
   1103 }
   1104 
   1105 void sub_2D006380(void) {
   1106     int _fpu_cmp = 0;
   1107     uint32_t _cf = 0;
   1108     int _df = 1;
   1109     uint32_t _flag_k = FK_NONE;
   1110     uint32_t _flag_a = 0, _flag_b = 0;
   1111     uint32_t _itail_tgt = 0;
   1112     RECOMP_REGS_LOCALS
   1113     RECOMP_ENTER(0x2D006380u);
   1114 
   1115 L_2D006380:
   1116     PUSH32(esp, ebp); /* 0x2D006380: push ebp */
   1117     ebp = esp; /* 0x2D006381: mov ebp, esp */
   1118     PUSH32(esp, ecx); /* 0x2D006383: push ecx */
   1119     ecx = MEM32(0x2D01752C); /* 0x2D006384: mov ecx, dword ptr [0x2d01752c] */
   1120     /* test ecx, ecx */ /* 0x2D00638A: test ecx, ecx */
   1121     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1122     _cf = 0;
   1123     _flag_k = FK_TEST;
   1124     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0063A1; /* 0x2D00638C: je 0x2d0063a1 */
   1125 L_2D00638E:
   1126     eax = ebp + (-0x4); /* 0x2D00638E: lea eax, [ebp - 4] */
   1127     PUSH32(esp, eax); /* 0x2D006391: push eax */
   1128     PUSH32(esp, 0x19u); /* 0x2D006392: push 0x19 */
   1129     MEM32(ebp + (-0x4)) = 0; /* 0x2D006394: mov dword ptr [ebp - 4], 0 */
   1130     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D00639B: call dword ptr [0x2d0093d8] */
   1131     RECOMP_FLAGS_IN();
   1132 L_2D0063A1:
   1133     esp = ebp; /* 0x2D0063A1: mov esp, ebp */
   1134     ebp = POP32_VAL(esp); /* 0x2D0063A3: pop ebp */
   1135     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0063A4: ret  */
   1136     RECOMP_REGS_OUT();
   1137 }
   1138 
   1139 void sub_2D0063B0(void) {
   1140     int _fpu_cmp = 0;
   1141     uint32_t _cf = 0;
   1142     int _df = 1;
   1143     uint32_t _flag_k = FK_NONE;
   1144     uint32_t _flag_a = 0, _flag_b = 0;
   1145     uint32_t _itail_tgt = 0;
   1146     RECOMP_REGS_LOCALS
   1147     RECOMP_ENTER(0x2D0063B0u);
   1148 
   1149 L_2D0063B0:
   1150     ecx = MEM32(0x2D01752C); /* 0x2D0063B0: mov ecx, dword ptr [0x2d01752c] */
   1151 L_2D0063B6:
   1152     /* test ecx, ecx */ /* 0x2D0063B6: test ecx, ecx */
   1153     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1154     _cf = 0;
   1155     _flag_k = FK_TEST;
   1156 L_2D0063B8:
   1157     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D0063C0; /* 0x2D0063B8: je 0x2d0063c0 */
   1158 L_2D0063BA:
   1159     { _itail_tgt = (uint32_t)(MEM32(0x2D00948C)); goto _ljump; }
   1160 L_2D0063C0:
   1161     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0063C0: ret  */
   1162   _ljump:
   1163     switch (_itail_tgt) {
   1164       case 0x2D0063B0u: goto L_2D0063B0;
   1165       case 0x2D0063B6u: goto L_2D0063B6;
   1166       case 0x2D0063B8u: goto L_2D0063B8;
   1167       case 0x2D0063BAu: goto L_2D0063BA;
   1168       case 0x2D0063C0u: goto L_2D0063C0;
   1169       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1170     }
   1171     RECOMP_REGS_OUT();
   1172 }
   1173 
   1174 void sub_2D0063D0(void) {
   1175     int _fpu_cmp = 0;
   1176     uint32_t _cf = 0;
   1177     int _df = 1;
   1178     uint32_t _flag_k = FK_NONE;
   1179     uint32_t _flag_a = 0, _flag_b = 0;
   1180     uint32_t _itail_tgt = 0;
   1181     RECOMP_REGS_LOCALS
   1182     RECOMP_ENTER(0x2D0063D0u);
   1183 
   1184 L_2D0063D0:
   1185     ecx = MEM32(0x2D01752C); /* 0x2D0063D0: mov ecx, dword ptr [0x2d01752c] */
   1186 L_2D0063D6:
   1187     /* test ecx, ecx */ /* 0x2D0063D6: test ecx, ecx */
   1188     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1189     _cf = 0;
   1190     _flag_k = FK_TEST;
   1191 L_2D0063D8:
   1192     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D0063E0; /* 0x2D0063D8: je 0x2d0063e0 */
   1193 L_2D0063DA:
   1194     { _itail_tgt = (uint32_t)(MEM32(0x2D009490)); goto _ljump; }
   1195 L_2D0063E0:
   1196     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0063E0: ret  */
   1197   _ljump:
   1198     switch (_itail_tgt) {
   1199       case 0x2D0063D0u: goto L_2D0063D0;
   1200       case 0x2D0063D6u: goto L_2D0063D6;
   1201       case 0x2D0063D8u: goto L_2D0063D8;
   1202       case 0x2D0063DAu: goto L_2D0063DA;
   1203       case 0x2D0063E0u: goto L_2D0063E0;
   1204       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1205     }
   1206     RECOMP_REGS_OUT();
   1207 }
   1208 
   1209 void sub_2D0063F0(void) {
   1210     int _fpu_cmp = 0;
   1211     uint32_t _cf = 0;
   1212     int _df = 1;
   1213     uint32_t _flag_k = FK_NONE;
   1214     uint32_t _flag_a = 0, _flag_b = 0;
   1215     uint32_t _itail_tgt = 0;
   1216     RECOMP_REGS_LOCALS
   1217     RECOMP_ENTER(0x2D0063F0u);
   1218 
   1219 L_2D0063F0:
   1220     PUSH32(esp, ebp); /* 0x2D0063F0: push ebp */
   1221     ebp = esp; /* 0x2D0063F1: mov ebp, esp */
   1222     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1223     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1224     esp = esp - 8; /* 0x2D0063F3: sub esp, 8 */
   1225     _flag_k = FK_CMP;
   1226     eax = ebp + (-0x8); /* 0x2D0063F6: lea eax, [ebp - 8] */
   1227     PUSH32(esp, eax); /* 0x2D0063F9: push eax */
   1228     MEM32(ebp + (-0x8)) = 0; /* 0x2D0063FA: mov dword ptr [ebp - 8], 0 */
   1229     MEM32(ebp + (-0x4)) = 0; /* 0x2D006401: mov dword ptr [ebp - 4], 0 */
   1230     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D006408: call dword ptr [0x2d0090b8] */
   1231     RECOMP_FLAGS_IN();
   1232     ecx = eax; /* 0x2D00640E: mov ecx, eax */
   1233     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D006410: call dword ptr [0x2d0090b4] */
   1234     RECOMP_FLAGS_IN();
   1235     ecx = MEM32(0x2D01752C); /* 0x2D006416: mov ecx, dword ptr [0x2d01752c] */
   1236     /* test ecx, ecx */ /* 0x2D00641C: test ecx, ecx */
   1237     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1238     _cf = 0;
   1239     _flag_k = FK_TEST;
   1240     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00642A; /* 0x2D00641E: je 0x2d00642a */
   1241 L_2D006420:
   1242     edx = ebp + (-0x8); /* 0x2D006420: lea edx, [ebp - 8] */
   1243     PUSH32(esp, edx); /* 0x2D006423: push edx */
   1244     RECOMP_ICALL(MEM32(0x2D009494)); /* 0x2D006424: call dword ptr [0x2d009494] */
   1245     RECOMP_FLAGS_IN();
   1246 L_2D00642A:
   1247     esp = ebp; /* 0x2D00642A: mov esp, ebp */
   1248     ebp = POP32_VAL(esp); /* 0x2D00642C: pop ebp */
   1249     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D00642D: ret  */
   1250     RECOMP_REGS_OUT();
   1251 }
   1252 
   1253 void sub_2D006430(void) {
   1254     int _fpu_cmp = 0;
   1255     uint32_t _cf = 0;
   1256     int _df = 1;
   1257     uint32_t _flag_k = FK_NONE;
   1258     uint32_t _flag_a = 0, _flag_b = 0;
   1259     uint32_t _itail_tgt = 0;
   1260     RECOMP_REGS_LOCALS
   1261     RECOMP_ENTER(0x2D006430u);
   1262 
   1263 L_2D006430:
   1264     PUSH32(esp, ebp); /* 0x2D006430: push ebp */
   1265     ebp = esp; /* 0x2D006431: mov ebp, esp */
   1266     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1268     esp = esp - 8; /* 0x2D006433: sub esp, 8 */
   1269     _flag_k = FK_CMP;
   1270     eax = ebp + (-0x8); /* 0x2D006436: lea eax, [ebp - 8] */
   1271     PUSH32(esp, eax); /* 0x2D006439: push eax */
   1272     MEM32(ebp + (-0x8)) = 0; /* 0x2D00643A: mov dword ptr [ebp - 8], 0 */
   1273     MEM32(ebp + (-0x4)) = 0; /* 0x2D006441: mov dword ptr [ebp - 4], 0 */
   1274     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D006448: call dword ptr [0x2d0090b8] */
   1275     RECOMP_FLAGS_IN();
   1276     ecx = eax; /* 0x2D00644E: mov ecx, eax */
   1277     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D006450: call dword ptr [0x2d0090b4] */
   1278     RECOMP_FLAGS_IN();
   1279     ecx = MEM32(0x2D01752C); /* 0x2D006456: mov ecx, dword ptr [0x2d01752c] */
   1280     /* test ecx, ecx */ /* 0x2D00645C: test ecx, ecx */
   1281     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1282     _cf = 0;
   1283     _flag_k = FK_TEST;
   1284     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00646A; /* 0x2D00645E: je 0x2d00646a */
   1285 L_2D006460:
   1286     edx = ebp + (-0x8); /* 0x2D006460: lea edx, [ebp - 8] */
   1287     PUSH32(esp, edx); /* 0x2D006463: push edx */
   1288     RECOMP_ICALL(MEM32(0x2D009498)); /* 0x2D006464: call dword ptr [0x2d009498] */
   1289     RECOMP_FLAGS_IN();
   1290 L_2D00646A:
   1291     esp = ebp; /* 0x2D00646A: mov esp, ebp */
   1292     ebp = POP32_VAL(esp); /* 0x2D00646C: pop ebp */
   1293     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D00646D: ret  */
   1294     RECOMP_REGS_OUT();
   1295 }
   1296 
   1297 void sub_2D006470(void) {
   1298     int _fpu_cmp = 0;
   1299     uint32_t _cf = 0;
   1300     int _df = 1;
   1301     uint32_t _flag_k = FK_NONE;
   1302     uint32_t _flag_a = 0, _flag_b = 0;
   1303     uint32_t _itail_tgt = 0;
   1304     RECOMP_REGS_LOCALS
   1305     RECOMP_ENTER(0x2D006470u);
   1306 
   1307 L_2D006470:
   1308     PUSH32(esp, ebp); /* 0x2D006470: push ebp */
   1309     ebp = esp; /* 0x2D006471: mov ebp, esp */
   1310     eax = MEM32(ebp + 0x8); /* 0x2D006473: mov eax, dword ptr [ebp + 8] */
   1311     MEM32(ecx + 0x54) = eax; /* 0x2D006476: mov dword ptr [ecx + 0x54], eax */
   1312     ebp = POP32_VAL(esp); /* 0x2D006479: pop ebp */
   1313     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D00647A: ret 4 */
   1314     RECOMP_REGS_OUT();
   1315 }
   1316 
   1317 void sub_2D006480(void) {
   1318     int _fpu_cmp = 0;
   1319     uint32_t _cf = 0;
   1320     int _df = 1;
   1321     uint32_t _flag_k = FK_NONE;
   1322     uint32_t _flag_a = 0, _flag_b = 0;
   1323     uint32_t _itail_tgt = 0;
   1324     RECOMP_REGS_LOCALS
   1325     RECOMP_ENTER(0x2D006480u);
   1326 
   1327 L_2D006480:
   1328     MEM8(ecx + 0x50) = (uint8_t)(1); /* 0x2D006480: mov byte ptr [ecx + 0x50], 1 */
   1329     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006484: ret  */
   1330     RECOMP_REGS_OUT();
   1331 }
   1332 
   1333 void sub_2D006490(void) {
   1334     int _fpu_cmp = 0;
   1335     uint32_t _cf = 0;
   1336     int _df = 1;
   1337     uint32_t _flag_k = FK_NONE;
   1338     uint32_t _flag_a = 0, _flag_b = 0;
   1339     uint32_t _itail_tgt = 0;
   1340     RECOMP_REGS_LOCALS
   1341     RECOMP_ENTER(0x2D006490u);
   1342 
   1343 L_2D006490:
   1344     PUSH32(esp, ebp); /* 0x2D006490: push ebp */
   1345     ebp = esp; /* 0x2D006491: mov ebp, esp */
   1346     eax = MEM32(ebp + 0x8); /* 0x2D006493: mov eax, dword ptr [ebp + 8] */
   1347     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u);
   1348     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1349     ecx = ecx + 0x28u; /* 0x2D006496: add ecx, 0x28 */
   1350     _flag_k = FK_ADD;
   1351     PUSH32(esp, esi); /* 0x2D006499: push esi */
   1352     esi = MEM32(ecx); /* 0x2D00649A: mov esi, dword ptr [ecx] */
   1353     edx = eax; /* 0x2D00649C: mov edx, eax */
   1354     MEM32(edx) = esi; /* 0x2D00649E: mov dword ptr [edx], esi */
   1355     esi = MEM32(ecx + 0x4); /* 0x2D0064A0: mov esi, dword ptr [ecx + 4] */
   1356     MEM32(edx + 0x4) = esi; /* 0x2D0064A3: mov dword ptr [edx + 4], esi */
   1357     ecx = MEM32(ecx + 0x8); /* 0x2D0064A6: mov ecx, dword ptr [ecx + 8] */
   1358     MEM32(edx + 0x8) = ecx; /* 0x2D0064A9: mov dword ptr [edx + 8], ecx */
   1359     esi = POP32_VAL(esp); /* 0x2D0064AC: pop esi */
   1360     ebp = POP32_VAL(esp); /* 0x2D0064AD: pop ebp */
   1361     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0064AE: ret 4 */
   1362     RECOMP_REGS_OUT();
   1363 }
   1364 
   1365 void sub_2D0064C0(void) {
   1366     int _fpu_cmp = 0;
   1367     uint32_t _cf = 0;
   1368     int _df = 1;
   1369     uint32_t _flag_k = FK_NONE;
   1370     uint32_t _flag_a = 0, _flag_b = 0;
   1371     uint32_t _itail_tgt = 0;
   1372     RECOMP_REGS_LOCALS
   1373     RECOMP_ENTER(0x2D0064C0u);
   1374 
   1375 L_2D0064C0:
   1376     PUSH32(esp, ebp); /* 0x2D0064C0: push ebp */
   1377     ebp = esp; /* 0x2D0064C1: mov ebp, esp */
   1378     eax = MEM32(ebp + 0x8); /* 0x2D0064C3: mov eax, dword ptr [ebp + 8] */
   1379     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u);
   1380     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1381     ecx = ecx + 0x34u; /* 0x2D0064C6: add ecx, 0x34 */
   1382     _flag_k = FK_ADD;
   1383     PUSH32(esp, esi); /* 0x2D0064C9: push esi */
   1384     esi = MEM32(ecx); /* 0x2D0064CA: mov esi, dword ptr [ecx] */
   1385     edx = eax; /* 0x2D0064CC: mov edx, eax */
   1386     MEM32(edx) = esi; /* 0x2D0064CE: mov dword ptr [edx], esi */
   1387     esi = MEM32(ecx + 0x4); /* 0x2D0064D0: mov esi, dword ptr [ecx + 4] */
   1388     MEM32(edx + 0x4) = esi; /* 0x2D0064D3: mov dword ptr [edx + 4], esi */
   1389     ecx = MEM32(ecx + 0x8); /* 0x2D0064D6: mov ecx, dword ptr [ecx + 8] */
   1390     MEM32(edx + 0x8) = ecx; /* 0x2D0064D9: mov dword ptr [edx + 8], ecx */
   1391     esi = POP32_VAL(esp); /* 0x2D0064DC: pop esi */
   1392     ebp = POP32_VAL(esp); /* 0x2D0064DD: pop ebp */
   1393     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0064DE: ret 4 */
   1394     RECOMP_REGS_OUT();
   1395 }
   1396 
   1397 void sub_2D0064F0(void) {
   1398     int _fpu_cmp = 0;
   1399     uint32_t _cf = 0;
   1400     int _df = 1;
   1401     uint32_t _flag_k = FK_NONE;
   1402     uint32_t _flag_a = 0, _flag_b = 0;
   1403     uint32_t _itail_tgt = 0;
   1404     RECOMP_REGS_LOCALS
   1405     RECOMP_ENTER(0x2D0064F0u);
   1406 
   1407 L_2D0064F0:
   1408     eax = MEM32(ecx + 0x40); /* 0x2D0064F0: mov eax, dword ptr [ecx + 0x40] */
   1409     edx = MEM32(ecx + 0x44); /* 0x2D0064F3: mov edx, dword ptr [ecx + 0x44] */
   1410     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0064F6: ret  */
   1411     RECOMP_REGS_OUT();
   1412 }
   1413 
   1414 void sub_2D006500(void) {
   1415     int _fpu_cmp = 0;
   1416     uint32_t _cf = 0;
   1417     int _df = 1;
   1418     uint32_t _flag_k = FK_NONE;
   1419     uint32_t _flag_a = 0, _flag_b = 0;
   1420     uint32_t _itail_tgt = 0;
   1421     RECOMP_REGS_LOCALS
   1422     RECOMP_ENTER(0x2D006500u);
   1423 
   1424 L_2D006500:
   1425     PUSH32(esp, ebp); /* 0x2D006500: push ebp */
   1426     ebp = esp; /* 0x2D006501: mov ebp, esp */
   1427     PUSH32(esp, 0xFFFFFFFFu); /* 0x2D006503: push -1 */
   1428     PUSH32(esp, 0x2D008421u); /* 0x2D006505: push 0x2d008421 */
   1429     eax = MEM32(FS_BASE + (0)); /* 0x2D00650A: mov eax, dword ptr fs:[0] */
   1430     PUSH32(esp, eax); /* 0x2D006510: push eax */
   1431     MEM32(FS_BASE + (0)) = esp; /* 0x2D006511: mov dword ptr fs:[0], esp */
   1432     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1434     esp = esp - 0xCu; /* 0x2D006518: sub esp, 0xc */
   1435     _flag_k = FK_CMP;
   1436     eax = MEM32(0x2D00959C); /* 0x2D00651B: mov eax, dword ptr [0x2d00959c] */
   1437     PUSH32(esp, ebx); /* 0x2D006520: push ebx */
   1438     PUSH32(esp, esi); /* 0x2D006521: push esi */
   1439     esi = ecx; /* 0x2D006522: mov esi, ecx */
   1440     PUSH32(esp, edi); /* 0x2D006524: push edi */
   1441     edi = MEM32(ebp + 0x8); /* 0x2D006525: mov edi, dword ptr [ebp + 8] */
   1442     MEM32(esi) = eax; /* 0x2D006528: mov dword ptr [esi], eax */
   1443     SET_LO8(ecx, MEM8(edi + 0x4)); /* 0x2D00652A: mov cl, byte ptr [edi + 4] */
   1444     MEM8(esi + 0x4) = (uint8_t)(LO8(ecx)); /* 0x2D00652D: mov byte ptr [esi + 4], cl */
   1445     ecx = MEM32(edi + 0x8); /* 0x2D006530: mov ecx, dword ptr [edi + 8] */
   1446     /* test ecx, ecx */ /* 0x2D006533: test ecx, ecx */
   1447     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1448     _cf = 0;
   1449     _flag_k = FK_TEST;
   1450     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D00653B; /* 0x2D006535: jne 0x2d00653b */
   1451 L_2D006537:
   1452     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1453     eax = 0; /* 0x2D006537: xor eax, eax */
   1454     _cf = 0;
   1455     _flag_k = FK_TEST;
   1456     goto L_2D006543; /* 0x2D006539: jmp 0x2d006543 */
   1457 L_2D00653B:
   1458     eax = MEM32(edi + 0xC); /* 0x2D00653B: mov eax, dword ptr [edi + 0xc] */
   1459     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1461     eax = eax - ecx; /* 0x2D00653E: sub eax, ecx */
   1462     _flag_k = FK_CMP;
   1463     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2D006540: sar eax, 3 */
   1464     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1465     eax = (uint32_t)((int32_t)eax >> 3u);
   1466 L_2D006543:
   1467     /* test eax, eax */ /* 0x2D006543: test eax, eax */
   1468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1469     _cf = 0;
   1470     _flag_k = FK_TEST;
   1471     if (TEST_NS(_flag_a, _flag_b)) goto L_2D006549; /* 0x2D006545: jge 0x2d006549 */
   1472 L_2D006547:
   1473     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1474     eax = 0; /* 0x2D006547: xor eax, eax */
   1475     _cf = 0;
   1476     _flag_k = FK_TEST;
   1477 L_2D006549:
   1478     edx = eax * 8; /* 0x2D006549: lea edx, [eax*8] */
   1479     PUSH32(esp, edx); /* 0x2D006550: push edx */
   1480     RECOMP_ICALL(0x2D008184u); /* 0x2D006551: call 0x2d008184 */ /* not lifted */
   1481     RECOMP_FLAGS_IN();
   1482     MEM32(esi + 0x8) = eax; /* 0x2D006556: mov dword ptr [esi + 8], eax */
   1483     ecx = MEM32(edi + 0x8); /* 0x2D006559: mov ecx, dword ptr [edi + 8] */
   1484     edx = MEM32(edi + 0xC); /* 0x2D00655C: mov edx, dword ptr [edi + 0xc] */
   1485     ebx = eax; /* 0x2D00655F: mov ebx, eax */
   1486     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1487     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1488     esp = esp + 4; /* 0x2D006561: add esp, 4 */
   1489     _flag_k = FK_ADD;
   1490     /* cmp ecx, edx */ /* 0x2D006564: cmp ecx, edx */
   1491     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1493     _flag_k = FK_CMP;
   1494     eax = ecx; /* 0x2D006566: mov eax, ecx */
   1495     MEM32(ebp + (-0x10)) = edx; /* 0x2D006568: mov dword ptr [ebp - 0x10], edx */
   1496     MEM32(ebp + (-0x14)) = ebx; /* 0x2D00656B: mov dword ptr [ebp - 0x14], ebx */
   1497     MEM32(ebp + 0x8) = eax; /* 0x2D00656E: mov dword ptr [ebp + 8], eax */
   1498     if (CMP_EQ(_flag_a, _flag_b)) goto L_2D0065AD; /* 0x2D006571: je 0x2d0065ad */
   1499 L_2D006573:
   1500     MEM32(ebp + (-0x18)) = ebx; /* 0x2D006573: mov dword ptr [ebp - 0x18], ebx */
   1501     /* test ebx, ebx */ /* 0x2D006576: test ebx, ebx */
   1502     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1503     _cf = 0;
   1504     _flag_k = FK_TEST;
   1505     MEM32(ebp + (-0x4)) = 0; /* 0x2D006578: mov dword ptr [ebp - 4], 0 */
   1506     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006596; /* 0x2D00657F: je 0x2d006596 */
   1507 L_2D006581:
   1508     PUSH32(esp, eax); /* 0x2D006581: push eax */
   1509     ecx = ebx; /* 0x2D006582: mov ecx, ebx */
   1510     RECOMP_ICALL(MEM32(0x2D0095A0)); /* 0x2D006584: call dword ptr [0x2d0095a0] */
   1511     RECOMP_FLAGS_IN();
   1512     eax = MEM32(ebp + 0x8); /* 0x2D00658A: mov eax, dword ptr [ebp + 8] */
   1513     edx = MEM32(ebp + (-0x10)); /* 0x2D00658D: mov edx, dword ptr [ebp - 0x10] */
   1514     MEM32(ebx) = 0x2D0096C4u; /* 0x2D006590: mov dword ptr [ebx], 0x2d0096c4 */
   1515 L_2D006596:
   1516     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   1517     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1518     eax = eax + 8; /* 0x2D006596: add eax, 8 */
   1519     _flag_k = FK_ADD;
   1520     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
   1521     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1522     ebx = ebx + 8; /* 0x2D006599: add ebx, 8 */
   1523     _flag_k = FK_ADD;
   1524     /* cmp eax, edx */ /* 0x2D00659C: cmp eax, edx */
   1525     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1527     _flag_k = FK_CMP;
   1528     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2D00659E: mov dword ptr [ebp - 4], 0xffffffff */
   1529     MEM32(ebp + (-0x14)) = ebx; /* 0x2D0065A5: mov dword ptr [ebp - 0x14], ebx */
   1530     MEM32(ebp + 0x8) = eax; /* 0x2D0065A8: mov dword ptr [ebp + 8], eax */
   1531     RECOMP_BACKEDGE();
   1532     if (CMP_NE(_flag_a, _flag_b)) goto L_2D006573; /* 0x2D0065AB: jne 0x2d006573 */
   1533 L_2D0065AD:
   1534     MEM32(esi + 0xC) = ebx; /* 0x2D0065AD: mov dword ptr [esi + 0xc], ebx */
   1535     MEM32(esi + 0x10) = ebx; /* 0x2D0065B0: mov dword ptr [esi + 0x10], ebx */
   1536     SET_LO8(eax, MEM8(edi + 0x14)); /* 0x2D0065B3: mov al, byte ptr [edi + 0x14] */
   1537     MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x2D0065B6: mov byte ptr [esi + 0x14], al */
   1538     ecx = MEM32(edi + 0x18); /* 0x2D0065B9: mov ecx, dword ptr [edi + 0x18] */
   1539     MEM32(esi + 0x18) = ecx; /* 0x2D0065BC: mov dword ptr [esi + 0x18], ecx */
   1540     edx = MEM32(0x2D0095A4); /* 0x2D0065BF: mov edx, dword ptr [0x2d0095a4] */
   1541     MEM32(esi) = edx; /* 0x2D0065C5: mov dword ptr [esi], edx */
   1542     eax = MEM32(edi + 0x1C); /* 0x2D0065C7: mov eax, dword ptr [edi + 0x1c] */
   1543     MEM32(esi + 0x1C) = eax; /* 0x2D0065CA: mov dword ptr [esi + 0x1c], eax */
   1544     ecx = MEM32(edi + 0x20); /* 0x2D0065CD: mov ecx, dword ptr [edi + 0x20] */
   1545     MEM32(esi + 0x20) = ecx; /* 0x2D0065D0: mov dword ptr [esi + 0x20], ecx */
   1546     edx = MEM32(edi + 0x24); /* 0x2D0065D3: mov edx, dword ptr [edi + 0x24] */
   1547     MEM32(esi + 0x24) = edx; /* 0x2D0065D6: mov dword ptr [esi + 0x24], edx */
   1548     eax = edi + 0x28; /* 0x2D0065D9: lea eax, [edi + 0x28] */
   1549     edx = MEM32(eax); /* 0x2D0065DC: mov edx, dword ptr [eax] */
   1550     ecx = esi + 0x28; /* 0x2D0065DE: lea ecx, [esi + 0x28] */
   1551     MEM32(ecx) = edx; /* 0x2D0065E1: mov dword ptr [ecx], edx */
   1552     edx = MEM32(eax + 0x4); /* 0x2D0065E3: mov edx, dword ptr [eax + 4] */
   1553     MEM32(ecx + 0x4) = edx; /* 0x2D0065E6: mov dword ptr [ecx + 4], edx */
   1554     eax = MEM32(eax + 0x8); /* 0x2D0065E9: mov eax, dword ptr [eax + 8] */
   1555     MEM32(ecx + 0x8) = eax; /* 0x2D0065EC: mov dword ptr [ecx + 8], eax */
   1556     ecx = edi + 0x34; /* 0x2D0065EF: lea ecx, [edi + 0x34] */
   1557     eax = MEM32(ecx); /* 0x2D0065F2: mov eax, dword ptr [ecx] */
   1558     edx = esi + 0x34; /* 0x2D0065F4: lea edx, [esi + 0x34] */
   1559     MEM32(edx) = eax; /* 0x2D0065F7: mov dword ptr [edx], eax */
   1560     eax = MEM32(ecx + 0x4); /* 0x2D0065F9: mov eax, dword ptr [ecx + 4] */
   1561     MEM32(edx + 0x4) = eax; /* 0x2D0065FC: mov dword ptr [edx + 4], eax */
   1562     ecx = MEM32(ecx + 0x8); /* 0x2D0065FF: mov ecx, dword ptr [ecx + 8] */
   1563     MEM32(edx + 0x8) = ecx; /* 0x2D006602: mov dword ptr [edx + 8], ecx */
   1564     edx = MEM32(edi + 0x40); /* 0x2D006605: mov edx, dword ptr [edi + 0x40] */
   1565     MEM32(esi + 0x40) = edx; /* 0x2D006608: mov dword ptr [esi + 0x40], edx */
   1566     eax = MEM32(edi + 0x44); /* 0x2D00660B: mov eax, dword ptr [edi + 0x44] */
   1567     MEM32(esi + 0x44) = eax; /* 0x2D00660E: mov dword ptr [esi + 0x44], eax */
   1568     ecx = MEM32(edi + 0x48); /* 0x2D006611: mov ecx, dword ptr [edi + 0x48] */
   1569     MEM32(esi + 0x48) = ecx; /* 0x2D006614: mov dword ptr [esi + 0x48], ecx */
   1570     edx = MEM32(edi + 0x4C); /* 0x2D006617: mov edx, dword ptr [edi + 0x4c] */
   1571     MEM32(esi + 0x4C) = edx; /* 0x2D00661A: mov dword ptr [esi + 0x4c], edx */
   1572     SET_LO8(eax, MEM8(edi + 0x50)); /* 0x2D00661D: mov al, byte ptr [edi + 0x50] */
   1573     MEM8(esi + 0x50) = (uint8_t)(LO8(eax)); /* 0x2D006620: mov byte ptr [esi + 0x50], al */
   1574     ecx = MEM32(edi + 0x54); /* 0x2D006623: mov ecx, dword ptr [edi + 0x54] */
   1575     MEM32(esi + 0x54) = ecx; /* 0x2D006626: mov dword ptr [esi + 0x54], ecx */
   1576     edx = MEM32(edi + 0x58); /* 0x2D006629: mov edx, dword ptr [edi + 0x58] */
   1577     ecx = MEM32(ebp + (-0xC)); /* 0x2D00662C: mov ecx, dword ptr [ebp - 0xc] */
   1578     edi = POP32_VAL(esp); /* 0x2D00662F: pop edi */
   1579     MEM32(esi + 0x58) = edx; /* 0x2D006630: mov dword ptr [esi + 0x58], edx */
   1580     MEM32(esi) = 0x2D0096ACu; /* 0x2D006633: mov dword ptr [esi], 0x2d0096ac */
   1581     eax = esi; /* 0x2D006639: mov eax, esi */
   1582     esi = POP32_VAL(esp); /* 0x2D00663B: pop esi */
   1583     ebx = POP32_VAL(esp); /* 0x2D00663C: pop ebx */
   1584     MEM32(FS_BASE + (0)) = ecx; /* 0x2D00663D: mov dword ptr fs:[0], ecx */
   1585     esp = ebp; /* 0x2D006644: mov esp, ebp */
   1586     ebp = POP32_VAL(esp); /* 0x2D006646: pop ebp */
   1587     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006647: ret 4 */
   1588     RECOMP_REGS_OUT();
   1589 }
   1590 
   1591 void sub_2D006650(void) {
   1592     int _fpu_cmp = 0;
   1593     uint32_t _cf = 0;
   1594     int _df = 1;
   1595     uint32_t _flag_k = FK_NONE;
   1596     uint32_t _flag_a = 0, _flag_b = 0;
   1597     uint32_t _itail_tgt = 0;
   1598     RECOMP_REGS_LOCALS
   1599     RECOMP_ENTER(0x2D006650u);
   1600 
   1601 L_2D006650:
   1602     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006650: ret  */
   1603     RECOMP_REGS_OUT();
   1604 }
   1605 
   1606 void sub_2D006660(void) {
   1607     int _fpu_cmp = 0;
   1608     uint32_t _cf = 0;
   1609     int _df = 1;
   1610     uint32_t _flag_k = FK_NONE;
   1611     uint32_t _flag_a = 0, _flag_b = 0;
   1612     uint32_t _itail_tgt = 0;
   1613     RECOMP_REGS_LOCALS
   1614     RECOMP_ENTER(0x2D006660u);
   1615 
   1616 L_2D006660:
   1617     PUSH32(esp, ebp); /* 0x2D006660: push ebp */
   1618     ebp = esp; /* 0x2D006661: mov ebp, esp */
   1619     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1621     esp = esp - 0xCu; /* 0x2D006663: sub esp, 0xc */
   1622     _flag_k = FK_CMP;
   1623     edx = MEM32(ebp + 0x8); /* 0x2D006666: mov edx, dword ptr [ebp + 8] */
   1624     PUSH32(esp, ebx); /* 0x2D006669: push ebx */
   1625     PUSH32(esp, esi); /* 0x2D00666A: push esi */
   1626     PUSH32(esp, edi); /* 0x2D00666B: push edi */
   1627     edi = edx + 0x4; /* 0x2D00666C: lea edi, [edx + 4] */
   1628     ebx = ecx + 0x4; /* 0x2D00666F: lea ebx, [ecx + 4] */
   1629     /* cmp ebx, edi */ /* 0x2D006672: cmp ebx, edi */
   1630     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   1631     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1632     _flag_k = FK_CMP;
   1633     MEM32(ebp + (-0x4)) = ecx; /* 0x2D006674: mov dword ptr [ebp - 4], ecx */
   1634     if (CMP_EQ(_flag_a, _flag_b)) goto L_2D006820; /* 0x2D006677: je 0x2d006820 */
   1635 L_2D00667D:
   1636     esi = MEM32(edi + 0x4); /* 0x2D00667D: mov esi, dword ptr [edi + 4] */
   1637     /* test esi, esi */ /* 0x2D006680: test esi, esi */
   1638     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1639     _cf = 0;
   1640     _flag_k = FK_TEST;
   1641     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D006688; /* 0x2D006682: jne 0x2d006688 */
   1642 L_2D006684:
   1643     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1644     ecx = 0; /* 0x2D006684: xor ecx, ecx */
   1645     _cf = 0;
   1646     _flag_k = FK_TEST;
   1647     goto L_2D006690; /* 0x2D006686: jmp 0x2d006690 */
   1648 L_2D006688:
   1649     ecx = MEM32(edi + 0x8); /* 0x2D006688: mov ecx, dword ptr [edi + 8] */
   1650     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   1651     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1652     ecx = ecx - esi; /* 0x2D00668B: sub ecx, esi */
   1653     _flag_k = FK_CMP;
   1654     if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2D00668D: sar ecx, 3 */
   1655     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1656     ecx = (uint32_t)((int32_t)ecx >> 3u);
   1657 L_2D006690:
   1658     eax = MEM32(ebx + 0x4); /* 0x2D006690: mov eax, dword ptr [ebx + 4] */
   1659     /* test eax, eax */ /* 0x2D006693: test eax, eax */
   1660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1661     _cf = 0;
   1662     _flag_k = FK_TEST;
   1663     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D00669B; /* 0x2D006695: jne 0x2d00669b */
   1664 L_2D006697:
   1665     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1666     edx = 0; /* 0x2D006697: xor edx, edx */
   1667     _cf = 0;
   1668     _flag_k = FK_TEST;
   1669     goto L_2D0066A3; /* 0x2D006699: jmp 0x2d0066a3 */
   1670 L_2D00669B:
   1671     edx = MEM32(ebx + 0x8); /* 0x2D00669B: mov edx, dword ptr [ebx + 8] */
   1672     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1673     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1674     edx = edx - eax; /* 0x2D00669E: sub edx, eax */
   1675     _flag_k = FK_CMP;
   1676     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2D0066A0: sar edx, 3 */
   1677     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1678     edx = (uint32_t)((int32_t)edx >> 3u);
   1679 L_2D0066A3:
   1680     /* cmp ecx, edx */ /* 0x2D0066A3: cmp ecx, edx */
   1681     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1683     _flag_k = FK_CMP;
   1684     if (CMP_A(_flag_a, _flag_b)) goto L_2D006721; /* 0x2D0066A5: ja 0x2d006721 */
   1685 L_2D0066A7:
   1686     ecx = MEM32(edi + 0x8); /* 0x2D0066A7: mov ecx, dword ptr [edi + 8] */
   1687     /* cmp esi, ecx */ /* 0x2D0066AA: cmp esi, ecx */
   1688     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   1689     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1690     _flag_k = FK_CMP;
   1691     MEM32(ebp + (-0x8)) = ecx; /* 0x2D0066AC: mov dword ptr [ebp - 8], ecx */
   1692     edi = eax; /* 0x2D0066AF: mov edi, eax */
   1693     if (CMP_EQ(_flag_a, _flag_b)) goto L_2D0066C9; /* 0x2D0066B1: je 0x2d0066c9 */
   1694 L_2D0066B3:
   1695     PUSH32(esp, esi); /* 0x2D0066B3: push esi */
   1696     ecx = edi; /* 0x2D0066B4: mov ecx, edi */
   1697     RECOMP_ICALL(MEM32(0x2D009598)); /* 0x2D0066B6: call dword ptr [0x2d009598] */
   1698     RECOMP_FLAGS_IN();
   1699     eax = MEM32(ebp + (-0x8)); /* 0x2D0066BC: mov eax, dword ptr [ebp - 8] */
   1700     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   1701     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1702     esi = esi + 8; /* 0x2D0066BF: add esi, 8 */
   1703     _flag_k = FK_ADD;
   1704     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   1705     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1706     edi = edi + 8; /* 0x2D0066C2: add edi, 8 */
   1707     _flag_k = FK_ADD;
   1708     /* cmp esi, eax */ /* 0x2D0066C5: cmp esi, eax */
   1709     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1711     _flag_k = FK_CMP;
   1712     RECOMP_BACKEDGE();
   1713     if (CMP_NE(_flag_a, _flag_b)) goto L_2D0066B3; /* 0x2D0066C7: jne 0x2d0066b3 */
   1714 L_2D0066C9:
   1715     eax = MEM32(ebx + 0x8); /* 0x2D0066C9: mov eax, dword ptr [ebx + 8] */
   1716     /* cmp edi, eax */ /* 0x2D0066CC: cmp edi, eax */
   1717     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1719     _flag_k = FK_CMP;
   1720     ecx = MEM32(ebp + (-0x4)); /* 0x2D0066CE: mov ecx, dword ptr [ebp - 4] */
   1721     edx = MEM32(ebp + 0x8); /* 0x2D0066D1: mov edx, dword ptr [ebp + 8] */
   1722     MEM32(ebp + (-0x8)) = eax; /* 0x2D0066D4: mov dword ptr [ebp - 8], eax */
   1723     esi = edi; /* 0x2D0066D7: mov esi, edi */
   1724     if (CMP_EQ(_flag_a, _flag_b)) goto L_2D0066F4; /* 0x2D0066D9: je 0x2d0066f4 */
   1725 L_2D0066DB:
   1726     eax = MEM32(esi); /* 0x2D0066DB: mov eax, dword ptr [esi] */
   1727     PUSH32(esp, 0); /* 0x2D0066DD: push 0 */
   1728     ecx = esi; /* 0x2D0066DF: mov ecx, esi */
   1729     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2D0066E1: call dword ptr [eax + 0xc] */
   1730     RECOMP_FLAGS_IN();
   1731     eax = MEM32(ebp + (-0x8)); /* 0x2D0066E4: mov eax, dword ptr [ebp - 8] */
   1732     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   1733     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1734     esi = esi + 8; /* 0x2D0066E7: add esi, 8 */
   1735     _flag_k = FK_ADD;
   1736     /* cmp esi, eax */ /* 0x2D0066EA: cmp esi, eax */
   1737     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1739     _flag_k = FK_CMP;
   1740     RECOMP_BACKEDGE();
   1741     if (CMP_NE(_flag_a, _flag_b)) goto L_2D0066DB; /* 0x2D0066EC: jne 0x2d0066db */
   1742 L_2D0066EE:
   1743     ecx = MEM32(ebp + (-0x4)); /* 0x2D0066EE: mov ecx, dword ptr [ebp - 4] */
   1744     edx = MEM32(ebp + 0x8); /* 0x2D0066F1: mov edx, dword ptr [ebp + 8] */
   1745 L_2D0066F4:
   1746     esi = MEM32(edx + 0x8); /* 0x2D0066F4: mov esi, dword ptr [edx + 8] */
   1747     /* test esi, esi */ /* 0x2D0066F7: test esi, esi */
   1748     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1749     _cf = 0;
   1750     _flag_k = FK_TEST;
   1751     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D00670B; /* 0x2D0066F9: jne 0x2d00670b */
   1752 L_2D0066FB:
   1753     esi = MEM32(ebx + 0x4); /* 0x2D0066FB: mov esi, dword ptr [ebx + 4] */
   1754     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1755     eax = 0; /* 0x2D0066FE: xor eax, eax */
   1756     _cf = 0;
   1757     _flag_k = FK_TEST;
   1758     eax = esi + eax * 8; /* 0x2D006700: lea eax, [esi + eax*8] */
   1759     MEM32(ebx + 0x8) = eax; /* 0x2D006703: mov dword ptr [ebx + 8], eax */
   1760     goto L_2D006820; /* 0x2D006706: jmp 0x2d006820 */
   1761 L_2D00670B:
   1762     eax = MEM32(edx + 0xC); /* 0x2D00670B: mov eax, dword ptr [edx + 0xc] */
   1763     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1765     eax = eax - esi; /* 0x2D00670E: sub eax, esi */
   1766     _flag_k = FK_CMP;
   1767     esi = MEM32(ebx + 0x4); /* 0x2D006710: mov esi, dword ptr [ebx + 4] */
   1768     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2D006713: sar eax, 3 */
   1769     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1770     eax = (uint32_t)((int32_t)eax >> 3u);
   1771     eax = esi + eax * 8; /* 0x2D006716: lea eax, [esi + eax*8] */
   1772     MEM32(ebx + 0x8) = eax; /* 0x2D006719: mov dword ptr [ebx + 8], eax */
   1773     goto L_2D006820; /* 0x2D00671C: jmp 0x2d006820 */
   1774 L_2D006721:
   1775     /* test esi, esi */ /* 0x2D006721: test esi, esi */
   1776     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1777     _cf = 0;
   1778     _flag_k = FK_TEST;
   1779     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D006729; /* 0x2D006723: jne 0x2d006729 */
   1780 L_2D006725:
   1781     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1782     edi = 0; /* 0x2D006725: xor edi, edi */
   1783     _cf = 0;
   1784     _flag_k = FK_TEST;
   1785     goto L_2D006731; /* 0x2D006727: jmp 0x2d006731 */
   1786 L_2D006729:
   1787     edi = MEM32(edi + 0x8); /* 0x2D006729: mov edi, dword ptr [edi + 8] */
   1788     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   1789     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1790     edi = edi - esi; /* 0x2D00672C: sub edi, esi */
   1791     _flag_k = FK_CMP;
   1792     if (3u) _cf = (((edi) >> 2) & 1u); /* 0x2D00672E: sar edi, 3 */
   1793     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1794     edi = (uint32_t)((int32_t)edi >> 3u);
   1795 L_2D006731:
   1796     /* test eax, eax */ /* 0x2D006731: test eax, eax */
   1797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1798     _cf = 0;
   1799     _flag_k = FK_TEST;
   1800     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D006739; /* 0x2D006733: jne 0x2d006739 */
   1801 L_2D006735:
   1802     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1803     edx = 0; /* 0x2D006735: xor edx, edx */
   1804     _cf = 0;
   1805     _flag_k = FK_TEST;
   1806     goto L_2D006741; /* 0x2D006737: jmp 0x2d006741 */
   1807 L_2D006739:
   1808     edx = MEM32(ebx + 0xC); /* 0x2D006739: mov edx, dword ptr [ebx + 0xc] */
   1809     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1811     edx = edx - eax; /* 0x2D00673C: sub edx, eax */
   1812     _flag_k = FK_CMP;
   1813     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2D00673E: sar edx, 3 */
   1814     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1815     edx = (uint32_t)((int32_t)edx >> 3u);
   1816 L_2D006741:
   1817     /* cmp edi, edx */ /* 0x2D006741: cmp edi, edx */
   1818     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   1819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1820     _flag_k = FK_CMP;
   1821     if (CMP_A(_flag_a, _flag_b)) goto L_2D0067BA; /* 0x2D006743: ja 0x2d0067ba */
   1822 L_2D006745:
   1823     /* test eax, eax */ /* 0x2D006745: test eax, eax */
   1824     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1825     _cf = 0;
   1826     _flag_k = FK_TEST;
   1827     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D00674D; /* 0x2D006747: jne 0x2d00674d */
   1828 L_2D006749:
   1829     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1830     edx = 0; /* 0x2D006749: xor edx, edx */
   1831     _cf = 0;
   1832     _flag_k = FK_TEST;
   1833     goto L_2D006755; /* 0x2D00674B: jmp 0x2d006755 */
   1834 L_2D00674D:
   1835     edx = MEM32(ebx + 0x8); /* 0x2D00674D: mov edx, dword ptr [ebx + 8] */
   1836     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   1837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1838     edx = edx - eax; /* 0x2D006750: sub edx, eax */
   1839     _flag_k = FK_CMP;
   1840     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2D006752: sar edx, 3 */
   1841     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1842     edx = (uint32_t)((int32_t)edx >> 3u);
   1843 L_2D006755:
   1844     edi = esi + edx * 8; /* 0x2D006755: lea edi, [esi + edx*8] */
   1845     /* cmp esi, edi */ /* 0x2D006758: cmp esi, edi */
   1846     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   1847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1848     _flag_k = FK_CMP;
   1849     MEM32(ebp + (-0x8)) = eax; /* 0x2D00675A: mov dword ptr [ebp - 8], eax */
   1850     if (CMP_EQ(_flag_a, _flag_b)) goto L_2D006779; /* 0x2D00675D: je 0x2d006779 */
   1851 L_2D00675F:
   1852     ecx = MEM32(ebp + (-0x8)); /* 0x2D00675F: mov ecx, dword ptr [ebp - 8] */
   1853     PUSH32(esp, esi); /* 0x2D006762: push esi */
   1854     RECOMP_ICALL(MEM32(0x2D009598)); /* 0x2D006763: call dword ptr [0x2d009598] */
   1855     RECOMP_FLAGS_IN();
   1856     edx = MEM32(ebp + (-0x8)); /* 0x2D006769: mov edx, dword ptr [ebp - 8] */
   1857     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8);
   1858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1859     edx = edx + 8; /* 0x2D00676C: add edx, 8 */
   1860     _flag_k = FK_ADD;
   1861     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   1862     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1863     esi = esi + 8; /* 0x2D00676F: add esi, 8 */
   1864     _flag_k = FK_ADD;
   1865     /* cmp esi, edi */ /* 0x2D006772: cmp esi, edi */
   1866     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   1867     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1868     _flag_k = FK_CMP;
   1869     MEM32(ebp + (-0x8)) = edx; /* 0x2D006774: mov dword ptr [ebp - 8], edx */
   1870     RECOMP_BACKEDGE();
   1871     if (CMP_NE(_flag_a, _flag_b)) goto L_2D00675F; /* 0x2D006777: jne 0x2d00675f */
   1872 L_2D006779:
   1873     edx = MEM32(ebp + 0x8); /* 0x2D006779: mov edx, dword ptr [ebp + 8] */
   1874     eax = MEM32(edx + 0xC); /* 0x2D00677C: mov eax, dword ptr [edx + 0xc] */
   1875     /* cmp edi, eax */ /* 0x2D00677F: cmp edi, eax */
   1876     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1877     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1878     _flag_k = FK_CMP;
   1879     esi = MEM32(ebx + 0x8); /* 0x2D006781: mov esi, dword ptr [ebx + 8] */
   1880     ecx = MEM32(ebp + (-0x4)); /* 0x2D006784: mov ecx, dword ptr [ebp - 4] */
   1881     MEM32(ebp + (-0x8)) = esi; /* 0x2D006787: mov dword ptr [ebp - 8], esi */
   1882     MEM32(ebp + (-0xC)) = eax; /* 0x2D00678A: mov dword ptr [ebp - 0xc], eax */
   1883     esi = edi; /* 0x2D00678D: mov esi, edi */
   1884     RECOMP_BACKEDGE();
   1885     if (CMP_EQ(_flag_a, _flag_b)) goto L_2D0066F4; /* 0x2D00678F: je 0x2d0066f4 */
   1886 L_2D006795:
   1887     ecx = MEM32(ebp + (-0x8)); /* 0x2D006795: mov ecx, dword ptr [ebp - 8] */
   1888     PUSH32(esp, esi); /* 0x2D006798: push esi */
   1889     PUSH32(esp, ecx); /* 0x2D006799: push ecx */
   1890     RECOMP_ICALL(0x2D007DC0u); /* 0x2D00679A: call 0x2d007dc0 */ /* not lifted */
   1891     RECOMP_FLAGS_IN();
   1892     edx = MEM32(ebp + (-0x8)); /* 0x2D00679F: mov edx, dword ptr [ebp - 8] */
   1893     eax = MEM32(ebp + (-0xC)); /* 0x2D0067A2: mov eax, dword ptr [ebp - 0xc] */
   1894     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8);
   1895     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1896     edx = edx + 8; /* 0x2D0067A5: add edx, 8 */
   1897     _flag_k = FK_ADD;
   1898     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   1899     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1900     esi = esi + 8; /* 0x2D0067A8: add esi, 8 */
   1901     _flag_k = FK_ADD;
   1902     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1903     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1904     esp = esp + 8; /* 0x2D0067AB: add esp, 8 */
   1905     _flag_k = FK_ADD;
   1906     /* cmp esi, eax */ /* 0x2D0067AE: cmp esi, eax */
   1907     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1909     _flag_k = FK_CMP;
   1910     MEM32(ebp + (-0x8)) = edx; /* 0x2D0067B0: mov dword ptr [ebp - 8], edx */
   1911     RECOMP_BACKEDGE();
   1912     if (CMP_NE(_flag_a, _flag_b)) goto L_2D006795; /* 0x2D0067B3: jne 0x2d006795 */
   1913 L_2D0067B5:
   1914     RECOMP_BACKEDGE();
   1915     goto L_2D0066EE; /* 0x2D0067B5: jmp 0x2d0066ee */
   1916 L_2D0067BA:
   1917     ecx = MEM32(ebx + 0x8); /* 0x2D0067BA: mov ecx, dword ptr [ebx + 8] */
   1918     PUSH32(esp, ecx); /* 0x2D0067BD: push ecx */
   1919     PUSH32(esp, eax); /* 0x2D0067BE: push eax */
   1920     ecx = ebx; /* 0x2D0067BF: mov ecx, ebx */
   1921     RECOMP_ICALL(0x2D0076F0u); /* 0x2D0067C1: call 0x2d0076f0 */ /* not lifted */
   1922     RECOMP_FLAGS_IN();
   1923     edx = MEM32(ebx + 0x4); /* 0x2D0067C6: mov edx, dword ptr [ebx + 4] */
   1924     PUSH32(esp, edx); /* 0x2D0067C9: push edx */
   1925     RECOMP_ICALL(0x2D007FB6u); /* 0x2D0067CA: call 0x2d007fb6 */ /* not lifted */
   1926     RECOMP_FLAGS_IN();
   1927     eax = MEM32(ebp + 0x8); /* 0x2D0067CF: mov eax, dword ptr [ebp + 8] */
   1928     ecx = MEM32(eax + 0x8); /* 0x2D0067D2: mov ecx, dword ptr [eax + 8] */
   1929     esi = eax + 0x4; /* 0x2D0067D5: lea esi, [eax + 4] */
   1930     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1931     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1932     esp = esp + 4; /* 0x2D0067D8: add esp, 4 */
   1933     _flag_k = FK_ADD;
   1934     /* test ecx, ecx */ /* 0x2D0067DB: test ecx, ecx */
   1935     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1936     _cf = 0;
   1937     _flag_k = FK_TEST;
   1938     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D0067E3; /* 0x2D0067DD: jne 0x2d0067e3 */
   1939 L_2D0067DF:
   1940     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1941     eax = 0; /* 0x2D0067DF: xor eax, eax */
   1942     _cf = 0;
   1943     _flag_k = FK_TEST;
   1944     goto L_2D0067EB; /* 0x2D0067E1: jmp 0x2d0067eb */
   1945 L_2D0067E3:
   1946     eax = MEM32(esi + 0x8); /* 0x2D0067E3: mov eax, dword ptr [esi + 8] */
   1947     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1948     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1949     eax = eax - ecx; /* 0x2D0067E6: sub eax, ecx */
   1950     _flag_k = FK_CMP;
   1951     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2D0067E8: sar eax, 3 */
   1952     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1953     eax = (uint32_t)((int32_t)eax >> 3u);
   1954 L_2D0067EB:
   1955     /* test eax, eax */ /* 0x2D0067EB: test eax, eax */
   1956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1957     _cf = 0;
   1958     _flag_k = FK_TEST;
   1959     if (TEST_NS(_flag_a, _flag_b)) goto L_2D0067F1; /* 0x2D0067ED: jge 0x2d0067f1 */
   1960 L_2D0067EF:
   1961     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1962     eax = 0; /* 0x2D0067EF: xor eax, eax */
   1963     _cf = 0;
   1964     _flag_k = FK_TEST;
   1965 L_2D0067F1:
   1966     ecx = eax * 8; /* 0x2D0067F1: lea ecx, [eax*8] */
   1967     PUSH32(esp, ecx); /* 0x2D0067F8: push ecx */
   1968     RECOMP_ICALL(0x2D008184u); /* 0x2D0067F9: call 0x2d008184 */ /* not lifted */
   1969     RECOMP_FLAGS_IN();
   1970     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1971     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1972     esp = esp + 4; /* 0x2D0067FE: add esp, 4 */
   1973     _flag_k = FK_ADD;
   1974     MEM32(ebx + 0x4) = eax; /* 0x2D006801: mov dword ptr [ebx + 4], eax */
   1975     ecx = MEM32(esi + 0x8); /* 0x2D006804: mov ecx, dword ptr [esi + 8] */
   1976     esi = MEM32(esi + 0x4); /* 0x2D006807: mov esi, dword ptr [esi + 4] */
   1977     PUSH32(esp, eax); /* 0x2D00680A: push eax */
   1978     PUSH32(esp, ecx); /* 0x2D00680B: push ecx */
   1979     PUSH32(esp, esi); /* 0x2D00680C: push esi */
   1980     ecx = ebx; /* 0x2D00680D: mov ecx, ebx */
   1981     RECOMP_ICALL(0x2D007720u); /* 0x2D00680F: call 0x2d007720 */ /* not lifted */
   1982     RECOMP_FLAGS_IN();
   1983     ecx = MEM32(ebp + (-0x4)); /* 0x2D006814: mov ecx, dword ptr [ebp - 4] */
   1984     edx = MEM32(ebp + 0x8); /* 0x2D006817: mov edx, dword ptr [ebp + 8] */
   1985     MEM32(ebx + 0x8) = eax; /* 0x2D00681A: mov dword ptr [ebx + 8], eax */
   1986     MEM32(ebx + 0xC) = eax; /* 0x2D00681D: mov dword ptr [ebx + 0xc], eax */
   1987 L_2D006820:
   1988     SET_LO8(eax, MEM8(edx + 0x14)); /* 0x2D006820: mov al, byte ptr [edx + 0x14] */
   1989     MEM8(ecx + 0x14) = (uint8_t)(LO8(eax)); /* 0x2D006823: mov byte ptr [ecx + 0x14], al */
   1990     eax = MEM32(edx + 0x18); /* 0x2D006826: mov eax, dword ptr [edx + 0x18] */
   1991     MEM32(ecx + 0x18) = eax; /* 0x2D006829: mov dword ptr [ecx + 0x18], eax */
   1992     eax = MEM32(edx + 0x1C); /* 0x2D00682C: mov eax, dword ptr [edx + 0x1c] */
   1993     MEM32(ecx + 0x1C) = eax; /* 0x2D00682F: mov dword ptr [ecx + 0x1c], eax */
   1994     eax = MEM32(edx + 0x20); /* 0x2D006832: mov eax, dword ptr [edx + 0x20] */
   1995     MEM32(ecx + 0x20) = eax; /* 0x2D006835: mov dword ptr [ecx + 0x20], eax */
   1996     eax = MEM32(edx + 0x24); /* 0x2D006838: mov eax, dword ptr [edx + 0x24] */
   1997     MEM32(ecx + 0x24) = eax; /* 0x2D00683B: mov dword ptr [ecx + 0x24], eax */
   1998     eax = edx + 0x28; /* 0x2D00683E: lea eax, [edx + 0x28] */
   1999     edi = MEM32(eax); /* 0x2D006841: mov edi, dword ptr [eax] */
   2000     esi = ecx + 0x28; /* 0x2D006843: lea esi, [ecx + 0x28] */
   2001     MEM32(esi) = edi; /* 0x2D006846: mov dword ptr [esi], edi */
   2002     edi = MEM32(eax + 0x4); /* 0x2D006848: mov edi, dword ptr [eax + 4] */
   2003     MEM32(esi + 0x4) = edi; /* 0x2D00684B: mov dword ptr [esi + 4], edi */
   2004     eax = MEM32(eax + 0x8); /* 0x2D00684E: mov eax, dword ptr [eax + 8] */
   2005     MEM32(esi + 0x8) = eax; /* 0x2D006851: mov dword ptr [esi + 8], eax */
   2006     eax = edx + 0x34; /* 0x2D006854: lea eax, [edx + 0x34] */
   2007     edi = MEM32(eax); /* 0x2D006857: mov edi, dword ptr [eax] */
   2008     esi = ecx + 0x34; /* 0x2D006859: lea esi, [ecx + 0x34] */
   2009     MEM32(esi) = edi; /* 0x2D00685C: mov dword ptr [esi], edi */
   2010     edi = MEM32(eax + 0x4); /* 0x2D00685E: mov edi, dword ptr [eax + 4] */
   2011     MEM32(esi + 0x4) = edi; /* 0x2D006861: mov dword ptr [esi + 4], edi */
   2012     eax = MEM32(eax + 0x8); /* 0x2D006864: mov eax, dword ptr [eax + 8] */
   2013     MEM32(esi + 0x8) = eax; /* 0x2D006867: mov dword ptr [esi + 8], eax */
   2014     eax = MEM32(edx + 0x40); /* 0x2D00686A: mov eax, dword ptr [edx + 0x40] */
   2015     MEM32(ecx + 0x40) = eax; /* 0x2D00686D: mov dword ptr [ecx + 0x40], eax */
   2016     eax = MEM32(edx + 0x44); /* 0x2D006870: mov eax, dword ptr [edx + 0x44] */
   2017     MEM32(ecx + 0x44) = eax; /* 0x2D006873: mov dword ptr [ecx + 0x44], eax */
   2018     eax = MEM32(edx + 0x48); /* 0x2D006876: mov eax, dword ptr [edx + 0x48] */
   2019     MEM32(ecx + 0x48) = eax; /* 0x2D006879: mov dword ptr [ecx + 0x48], eax */
   2020     eax = MEM32(edx + 0x4C); /* 0x2D00687C: mov eax, dword ptr [edx + 0x4c] */
   2021     MEM32(ecx + 0x4C) = eax; /* 0x2D00687F: mov dword ptr [ecx + 0x4c], eax */
   2022     SET_LO8(eax, MEM8(edx + 0x50)); /* 0x2D006882: mov al, byte ptr [edx + 0x50] */
   2023     MEM8(ecx + 0x50) = (uint8_t)(LO8(eax)); /* 0x2D006885: mov byte ptr [ecx + 0x50], al */
   2024     eax = MEM32(edx + 0x54); /* 0x2D006888: mov eax, dword ptr [edx + 0x54] */
   2025     edi = POP32_VAL(esp); /* 0x2D00688B: pop edi */
   2026     MEM32(ecx + 0x54) = eax; /* 0x2D00688C: mov dword ptr [ecx + 0x54], eax */
   2027     edx = MEM32(edx + 0x58); /* 0x2D00688F: mov edx, dword ptr [edx + 0x58] */
   2028     esi = POP32_VAL(esp); /* 0x2D006892: pop esi */
   2029     MEM32(ecx + 0x58) = edx; /* 0x2D006893: mov dword ptr [ecx + 0x58], edx */
   2030     eax = ecx; /* 0x2D006896: mov eax, ecx */
   2031     ebx = POP32_VAL(esp); /* 0x2D006898: pop ebx */
   2032     esp = ebp; /* 0x2D006899: mov esp, ebp */
   2033     ebp = POP32_VAL(esp); /* 0x2D00689B: pop ebp */
   2034     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D00689C: ret 4 */
   2035     RECOMP_REGS_OUT();
   2036 }
   2037 
   2038 void sub_2D0066EE(void) {
   2039     int _fpu_cmp = 0;
   2040     uint32_t _cf = 0;
   2041     int _df = 1;
   2042     uint32_t _flag_k = FK_NONE;
   2043     uint32_t _flag_a = 0, _flag_b = 0;
   2044     uint32_t _itail_tgt = 0;
   2045     RECOMP_REGS_LOCALS
   2046     RECOMP_ENTER(0x2D0066EEu);
   2047 
   2048 L_2D0066EE:
   2049     ecx = MEM32(ebp + (-0x4)); /* 0x2D0066EE: mov ecx, dword ptr [ebp - 4] */
   2050     edx = MEM32(ebp + 0x8); /* 0x2D0066F1: mov edx, dword ptr [ebp + 8] */
   2051     esi = MEM32(edx + 0x8); /* 0x2D0066F4: mov esi, dword ptr [edx + 8] */
   2052     /* test esi, esi */ /* 0x2D0066F7: test esi, esi */
   2053     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2054     _cf = 0;
   2055     _flag_k = FK_TEST;
   2056     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D00670B; /* 0x2D0066F9: jne 0x2d00670b */
   2057 L_2D0066FB:
   2058     esi = MEM32(ebx + 0x4); /* 0x2D0066FB: mov esi, dword ptr [ebx + 4] */
   2059     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2060     eax = 0; /* 0x2D0066FE: xor eax, eax */
   2061     _cf = 0;
   2062     _flag_k = FK_TEST;
   2063     eax = esi + eax * 8; /* 0x2D006700: lea eax, [esi + eax*8] */
   2064     MEM32(ebx + 0x8) = eax; /* 0x2D006703: mov dword ptr [ebx + 8], eax */
   2065     goto L_2D006820; /* 0x2D006706: jmp 0x2d006820 */
   2066 L_2D00670B:
   2067     eax = MEM32(edx + 0xC); /* 0x2D00670B: mov eax, dword ptr [edx + 0xc] */
   2068     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2069     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2070     eax = eax - esi; /* 0x2D00670E: sub eax, esi */
   2071     _flag_k = FK_CMP;
   2072     esi = MEM32(ebx + 0x4); /* 0x2D006710: mov esi, dword ptr [ebx + 4] */
   2073     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2D006713: sar eax, 3 */
   2074     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2075     eax = (uint32_t)((int32_t)eax >> 3u);
   2076     eax = esi + eax * 8; /* 0x2D006716: lea eax, [esi + eax*8] */
   2077     MEM32(ebx + 0x8) = eax; /* 0x2D006719: mov dword ptr [ebx + 8], eax */
   2078     goto L_2D006820; /* 0x2D00671C: jmp 0x2d006820 */
   2079 L_2D006820:
   2080     SET_LO8(eax, MEM8(edx + 0x14)); /* 0x2D006820: mov al, byte ptr [edx + 0x14] */
   2081     MEM8(ecx + 0x14) = (uint8_t)(LO8(eax)); /* 0x2D006823: mov byte ptr [ecx + 0x14], al */
   2082     eax = MEM32(edx + 0x18); /* 0x2D006826: mov eax, dword ptr [edx + 0x18] */
   2083     MEM32(ecx + 0x18) = eax; /* 0x2D006829: mov dword ptr [ecx + 0x18], eax */
   2084     eax = MEM32(edx + 0x1C); /* 0x2D00682C: mov eax, dword ptr [edx + 0x1c] */
   2085     MEM32(ecx + 0x1C) = eax; /* 0x2D00682F: mov dword ptr [ecx + 0x1c], eax */
   2086     eax = MEM32(edx + 0x20); /* 0x2D006832: mov eax, dword ptr [edx + 0x20] */
   2087     MEM32(ecx + 0x20) = eax; /* 0x2D006835: mov dword ptr [ecx + 0x20], eax */
   2088     eax = MEM32(edx + 0x24); /* 0x2D006838: mov eax, dword ptr [edx + 0x24] */
   2089     MEM32(ecx + 0x24) = eax; /* 0x2D00683B: mov dword ptr [ecx + 0x24], eax */
   2090     eax = edx + 0x28; /* 0x2D00683E: lea eax, [edx + 0x28] */
   2091     edi = MEM32(eax); /* 0x2D006841: mov edi, dword ptr [eax] */
   2092     esi = ecx + 0x28; /* 0x2D006843: lea esi, [ecx + 0x28] */
   2093     MEM32(esi) = edi; /* 0x2D006846: mov dword ptr [esi], edi */
   2094     edi = MEM32(eax + 0x4); /* 0x2D006848: mov edi, dword ptr [eax + 4] */
   2095     MEM32(esi + 0x4) = edi; /* 0x2D00684B: mov dword ptr [esi + 4], edi */
   2096     eax = MEM32(eax + 0x8); /* 0x2D00684E: mov eax, dword ptr [eax + 8] */
   2097     MEM32(esi + 0x8) = eax; /* 0x2D006851: mov dword ptr [esi + 8], eax */
   2098     eax = edx + 0x34; /* 0x2D006854: lea eax, [edx + 0x34] */
   2099     edi = MEM32(eax); /* 0x2D006857: mov edi, dword ptr [eax] */
   2100     esi = ecx + 0x34; /* 0x2D006859: lea esi, [ecx + 0x34] */
   2101     MEM32(esi) = edi; /* 0x2D00685C: mov dword ptr [esi], edi */
   2102     edi = MEM32(eax + 0x4); /* 0x2D00685E: mov edi, dword ptr [eax + 4] */
   2103     MEM32(esi + 0x4) = edi; /* 0x2D006861: mov dword ptr [esi + 4], edi */
   2104     eax = MEM32(eax + 0x8); /* 0x2D006864: mov eax, dword ptr [eax + 8] */
   2105     MEM32(esi + 0x8) = eax; /* 0x2D006867: mov dword ptr [esi + 8], eax */
   2106     eax = MEM32(edx + 0x40); /* 0x2D00686A: mov eax, dword ptr [edx + 0x40] */
   2107     MEM32(ecx + 0x40) = eax; /* 0x2D00686D: mov dword ptr [ecx + 0x40], eax */
   2108     eax = MEM32(edx + 0x44); /* 0x2D006870: mov eax, dword ptr [edx + 0x44] */
   2109     MEM32(ecx + 0x44) = eax; /* 0x2D006873: mov dword ptr [ecx + 0x44], eax */
   2110     eax = MEM32(edx + 0x48); /* 0x2D006876: mov eax, dword ptr [edx + 0x48] */
   2111     MEM32(ecx + 0x48) = eax; /* 0x2D006879: mov dword ptr [ecx + 0x48], eax */
   2112     eax = MEM32(edx + 0x4C); /* 0x2D00687C: mov eax, dword ptr [edx + 0x4c] */
   2113     MEM32(ecx + 0x4C) = eax; /* 0x2D00687F: mov dword ptr [ecx + 0x4c], eax */
   2114     SET_LO8(eax, MEM8(edx + 0x50)); /* 0x2D006882: mov al, byte ptr [edx + 0x50] */
   2115     MEM8(ecx + 0x50) = (uint8_t)(LO8(eax)); /* 0x2D006885: mov byte ptr [ecx + 0x50], al */
   2116     eax = MEM32(edx + 0x54); /* 0x2D006888: mov eax, dword ptr [edx + 0x54] */
   2117     edi = POP32_VAL(esp); /* 0x2D00688B: pop edi */
   2118     MEM32(ecx + 0x54) = eax; /* 0x2D00688C: mov dword ptr [ecx + 0x54], eax */
   2119     edx = MEM32(edx + 0x58); /* 0x2D00688F: mov edx, dword ptr [edx + 0x58] */
   2120     esi = POP32_VAL(esp); /* 0x2D006892: pop esi */
   2121     MEM32(ecx + 0x58) = edx; /* 0x2D006893: mov dword ptr [ecx + 0x58], edx */
   2122     eax = ecx; /* 0x2D006896: mov eax, ecx */
   2123     ebx = POP32_VAL(esp); /* 0x2D006898: pop ebx */
   2124     esp = ebp; /* 0x2D006899: mov esp, ebp */
   2125     ebp = POP32_VAL(esp); /* 0x2D00689B: pop ebp */
   2126     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D00689C: ret 4 */
   2127     RECOMP_REGS_OUT();
   2128 }
   2129 
   2130 void sub_2D0066F4(void) {
   2131     int _fpu_cmp = 0;
   2132     uint32_t _cf = 0;
   2133     int _df = 1;
   2134     uint32_t _flag_k = FK_NONE;
   2135     uint32_t _flag_a = 0, _flag_b = 0;
   2136     uint32_t _itail_tgt = 0;
   2137     RECOMP_REGS_LOCALS
   2138     RECOMP_ENTER(0x2D0066F4u);
   2139 
   2140 L_2D0066F4:
   2141     esi = MEM32(edx + 0x8); /* 0x2D0066F4: mov esi, dword ptr [edx + 8] */
   2142     /* test esi, esi */ /* 0x2D0066F7: test esi, esi */
   2143     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2144     _cf = 0;
   2145     _flag_k = FK_TEST;
   2146     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D00670B; /* 0x2D0066F9: jne 0x2d00670b */
   2147 L_2D0066FB:
   2148     esi = MEM32(ebx + 0x4); /* 0x2D0066FB: mov esi, dword ptr [ebx + 4] */
   2149     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2150     eax = 0; /* 0x2D0066FE: xor eax, eax */
   2151     _cf = 0;
   2152     _flag_k = FK_TEST;
   2153     eax = esi + eax * 8; /* 0x2D006700: lea eax, [esi + eax*8] */
   2154     MEM32(ebx + 0x8) = eax; /* 0x2D006703: mov dword ptr [ebx + 8], eax */
   2155     goto L_2D006820; /* 0x2D006706: jmp 0x2d006820 */
   2156 L_2D00670B:
   2157     eax = MEM32(edx + 0xC); /* 0x2D00670B: mov eax, dword ptr [edx + 0xc] */
   2158     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2160     eax = eax - esi; /* 0x2D00670E: sub eax, esi */
   2161     _flag_k = FK_CMP;
   2162     esi = MEM32(ebx + 0x4); /* 0x2D006710: mov esi, dword ptr [ebx + 4] */
   2163     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2D006713: sar eax, 3 */
   2164     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2165     eax = (uint32_t)((int32_t)eax >> 3u);
   2166     eax = esi + eax * 8; /* 0x2D006716: lea eax, [esi + eax*8] */
   2167     MEM32(ebx + 0x8) = eax; /* 0x2D006719: mov dword ptr [ebx + 8], eax */
   2168     goto L_2D006820; /* 0x2D00671C: jmp 0x2d006820 */
   2169 L_2D006820:
   2170     SET_LO8(eax, MEM8(edx + 0x14)); /* 0x2D006820: mov al, byte ptr [edx + 0x14] */
   2171     MEM8(ecx + 0x14) = (uint8_t)(LO8(eax)); /* 0x2D006823: mov byte ptr [ecx + 0x14], al */
   2172     eax = MEM32(edx + 0x18); /* 0x2D006826: mov eax, dword ptr [edx + 0x18] */
   2173     MEM32(ecx + 0x18) = eax; /* 0x2D006829: mov dword ptr [ecx + 0x18], eax */
   2174     eax = MEM32(edx + 0x1C); /* 0x2D00682C: mov eax, dword ptr [edx + 0x1c] */
   2175     MEM32(ecx + 0x1C) = eax; /* 0x2D00682F: mov dword ptr [ecx + 0x1c], eax */
   2176     eax = MEM32(edx + 0x20); /* 0x2D006832: mov eax, dword ptr [edx + 0x20] */
   2177     MEM32(ecx + 0x20) = eax; /* 0x2D006835: mov dword ptr [ecx + 0x20], eax */
   2178     eax = MEM32(edx + 0x24); /* 0x2D006838: mov eax, dword ptr [edx + 0x24] */
   2179     MEM32(ecx + 0x24) = eax; /* 0x2D00683B: mov dword ptr [ecx + 0x24], eax */
   2180     eax = edx + 0x28; /* 0x2D00683E: lea eax, [edx + 0x28] */
   2181     edi = MEM32(eax); /* 0x2D006841: mov edi, dword ptr [eax] */
   2182     esi = ecx + 0x28; /* 0x2D006843: lea esi, [ecx + 0x28] */
   2183     MEM32(esi) = edi; /* 0x2D006846: mov dword ptr [esi], edi */
   2184     edi = MEM32(eax + 0x4); /* 0x2D006848: mov edi, dword ptr [eax + 4] */
   2185     MEM32(esi + 0x4) = edi; /* 0x2D00684B: mov dword ptr [esi + 4], edi */
   2186     eax = MEM32(eax + 0x8); /* 0x2D00684E: mov eax, dword ptr [eax + 8] */
   2187     MEM32(esi + 0x8) = eax; /* 0x2D006851: mov dword ptr [esi + 8], eax */
   2188     eax = edx + 0x34; /* 0x2D006854: lea eax, [edx + 0x34] */
   2189     edi = MEM32(eax); /* 0x2D006857: mov edi, dword ptr [eax] */
   2190     esi = ecx + 0x34; /* 0x2D006859: lea esi, [ecx + 0x34] */
   2191     MEM32(esi) = edi; /* 0x2D00685C: mov dword ptr [esi], edi */
   2192     edi = MEM32(eax + 0x4); /* 0x2D00685E: mov edi, dword ptr [eax + 4] */
   2193     MEM32(esi + 0x4) = edi; /* 0x2D006861: mov dword ptr [esi + 4], edi */
   2194     eax = MEM32(eax + 0x8); /* 0x2D006864: mov eax, dword ptr [eax + 8] */
   2195     MEM32(esi + 0x8) = eax; /* 0x2D006867: mov dword ptr [esi + 8], eax */
   2196     eax = MEM32(edx + 0x40); /* 0x2D00686A: mov eax, dword ptr [edx + 0x40] */
   2197     MEM32(ecx + 0x40) = eax; /* 0x2D00686D: mov dword ptr [ecx + 0x40], eax */
   2198     eax = MEM32(edx + 0x44); /* 0x2D006870: mov eax, dword ptr [edx + 0x44] */
   2199     MEM32(ecx + 0x44) = eax; /* 0x2D006873: mov dword ptr [ecx + 0x44], eax */
   2200     eax = MEM32(edx + 0x48); /* 0x2D006876: mov eax, dword ptr [edx + 0x48] */
   2201     MEM32(ecx + 0x48) = eax; /* 0x2D006879: mov dword ptr [ecx + 0x48], eax */
   2202     eax = MEM32(edx + 0x4C); /* 0x2D00687C: mov eax, dword ptr [edx + 0x4c] */
   2203     MEM32(ecx + 0x4C) = eax; /* 0x2D00687F: mov dword ptr [ecx + 0x4c], eax */
   2204     SET_LO8(eax, MEM8(edx + 0x50)); /* 0x2D006882: mov al, byte ptr [edx + 0x50] */
   2205     MEM8(ecx + 0x50) = (uint8_t)(LO8(eax)); /* 0x2D006885: mov byte ptr [ecx + 0x50], al */
   2206     eax = MEM32(edx + 0x54); /* 0x2D006888: mov eax, dword ptr [edx + 0x54] */
   2207     edi = POP32_VAL(esp); /* 0x2D00688B: pop edi */
   2208     MEM32(ecx + 0x54) = eax; /* 0x2D00688C: mov dword ptr [ecx + 0x54], eax */
   2209     edx = MEM32(edx + 0x58); /* 0x2D00688F: mov edx, dword ptr [edx + 0x58] */
   2210     esi = POP32_VAL(esp); /* 0x2D006892: pop esi */
   2211     MEM32(ecx + 0x58) = edx; /* 0x2D006893: mov dword ptr [ecx + 0x58], edx */
   2212     eax = ecx; /* 0x2D006896: mov eax, ecx */
   2213     ebx = POP32_VAL(esp); /* 0x2D006898: pop ebx */
   2214     esp = ebp; /* 0x2D006899: mov esp, ebp */
   2215     ebp = POP32_VAL(esp); /* 0x2D00689B: pop ebp */
   2216     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D00689C: ret 4 */
   2217     RECOMP_REGS_OUT();
   2218 }
   2219 
   2220 void sub_2D006721(void) {
   2221     int _fpu_cmp = 0;
   2222     uint32_t _cf = 0;
   2223     int _df = 1;
   2224     uint32_t _flag_k = FK_NONE;
   2225     uint32_t _flag_a = 0, _flag_b = 0;
   2226     uint32_t _itail_tgt = 0;
   2227     RECOMP_REGS_LOCALS
   2228     RECOMP_ENTER(0x2D006721u);
   2229 
   2230     goto L_2D006721;
   2231 L_2D0066EE:
   2232     ecx = MEM32(ebp + (-0x4)); /* 0x2D0066EE: mov ecx, dword ptr [ebp - 4] */
   2233     edx = MEM32(ebp + 0x8); /* 0x2D0066F1: mov edx, dword ptr [ebp + 8] */
   2234 L_2D0066F4:
   2235     esi = MEM32(edx + 0x8); /* 0x2D0066F4: mov esi, dword ptr [edx + 8] */
   2236     /* test esi, esi */ /* 0x2D0066F7: test esi, esi */
   2237     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2238     _cf = 0;
   2239     _flag_k = FK_TEST;
   2240     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D00670B; /* 0x2D0066F9: jne 0x2d00670b */
   2241 L_2D0066FB:
   2242     esi = MEM32(ebx + 0x4); /* 0x2D0066FB: mov esi, dword ptr [ebx + 4] */
   2243     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2244     eax = 0; /* 0x2D0066FE: xor eax, eax */
   2245     _cf = 0;
   2246     _flag_k = FK_TEST;
   2247     eax = esi + eax * 8; /* 0x2D006700: lea eax, [esi + eax*8] */
   2248     MEM32(ebx + 0x8) = eax; /* 0x2D006703: mov dword ptr [ebx + 8], eax */
   2249     goto L_2D006820; /* 0x2D006706: jmp 0x2d006820 */
   2250 L_2D00670B:
   2251     eax = MEM32(edx + 0xC); /* 0x2D00670B: mov eax, dword ptr [edx + 0xc] */
   2252     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2254     eax = eax - esi; /* 0x2D00670E: sub eax, esi */
   2255     _flag_k = FK_CMP;
   2256     esi = MEM32(ebx + 0x4); /* 0x2D006710: mov esi, dword ptr [ebx + 4] */
   2257     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2D006713: sar eax, 3 */
   2258     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2259     eax = (uint32_t)((int32_t)eax >> 3u);
   2260     eax = esi + eax * 8; /* 0x2D006716: lea eax, [esi + eax*8] */
   2261     MEM32(ebx + 0x8) = eax; /* 0x2D006719: mov dword ptr [ebx + 8], eax */
   2262     goto L_2D006820; /* 0x2D00671C: jmp 0x2d006820 */
   2263 L_2D006721:
   2264     /* test esi, esi */ /* 0x2D006721: test esi, esi */
   2265     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2266     _cf = 0;
   2267     _flag_k = FK_TEST;
   2268     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D006729; /* 0x2D006723: jne 0x2d006729 */
   2269 L_2D006725:
   2270     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2271     edi = 0; /* 0x2D006725: xor edi, edi */
   2272     _cf = 0;
   2273     _flag_k = FK_TEST;
   2274     goto L_2D006731; /* 0x2D006727: jmp 0x2d006731 */
   2275 L_2D006729:
   2276     edi = MEM32(edi + 0x8); /* 0x2D006729: mov edi, dword ptr [edi + 8] */
   2277     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   2278     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2279     edi = edi - esi; /* 0x2D00672C: sub edi, esi */
   2280     _flag_k = FK_CMP;
   2281     if (3u) _cf = (((edi) >> 2) & 1u); /* 0x2D00672E: sar edi, 3 */
   2282     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2283     edi = (uint32_t)((int32_t)edi >> 3u);
   2284 L_2D006731:
   2285     /* test eax, eax */ /* 0x2D006731: test eax, eax */
   2286     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2287     _cf = 0;
   2288     _flag_k = FK_TEST;
   2289     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D006739; /* 0x2D006733: jne 0x2d006739 */
   2290 L_2D006735:
   2291     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2292     edx = 0; /* 0x2D006735: xor edx, edx */
   2293     _cf = 0;
   2294     _flag_k = FK_TEST;
   2295     goto L_2D006741; /* 0x2D006737: jmp 0x2d006741 */
   2296 L_2D006739:
   2297     edx = MEM32(ebx + 0xC); /* 0x2D006739: mov edx, dword ptr [ebx + 0xc] */
   2298     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2300     edx = edx - eax; /* 0x2D00673C: sub edx, eax */
   2301     _flag_k = FK_CMP;
   2302     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2D00673E: sar edx, 3 */
   2303     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2304     edx = (uint32_t)((int32_t)edx >> 3u);
   2305 L_2D006741:
   2306     /* cmp edi, edx */ /* 0x2D006741: cmp edi, edx */
   2307     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   2308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2309     _flag_k = FK_CMP;
   2310     if (CMP_A(_flag_a, _flag_b)) goto L_2D0067BA; /* 0x2D006743: ja 0x2d0067ba */
   2311 L_2D006745:
   2312     /* test eax, eax */ /* 0x2D006745: test eax, eax */
   2313     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2314     _cf = 0;
   2315     _flag_k = FK_TEST;
   2316     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D00674D; /* 0x2D006747: jne 0x2d00674d */
   2317 L_2D006749:
   2318     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2319     edx = 0; /* 0x2D006749: xor edx, edx */
   2320     _cf = 0;
   2321     _flag_k = FK_TEST;
   2322     goto L_2D006755; /* 0x2D00674B: jmp 0x2d006755 */
   2323 L_2D00674D:
   2324     edx = MEM32(ebx + 0x8); /* 0x2D00674D: mov edx, dword ptr [ebx + 8] */
   2325     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2326     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2327     edx = edx - eax; /* 0x2D006750: sub edx, eax */
   2328     _flag_k = FK_CMP;
   2329     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2D006752: sar edx, 3 */
   2330     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2331     edx = (uint32_t)((int32_t)edx >> 3u);
   2332 L_2D006755:
   2333     edi = esi + edx * 8; /* 0x2D006755: lea edi, [esi + edx*8] */
   2334     /* cmp esi, edi */ /* 0x2D006758: cmp esi, edi */
   2335     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   2336     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2337     _flag_k = FK_CMP;
   2338     MEM32(ebp + (-0x8)) = eax; /* 0x2D00675A: mov dword ptr [ebp - 8], eax */
   2339     if (CMP_EQ(_flag_a, _flag_b)) goto L_2D006779; /* 0x2D00675D: je 0x2d006779 */
   2340 L_2D00675F:
   2341     ecx = MEM32(ebp + (-0x8)); /* 0x2D00675F: mov ecx, dword ptr [ebp - 8] */
   2342     PUSH32(esp, esi); /* 0x2D006762: push esi */
   2343     RECOMP_ICALL(MEM32(0x2D009598)); /* 0x2D006763: call dword ptr [0x2d009598] */
   2344     RECOMP_FLAGS_IN();
   2345     edx = MEM32(ebp + (-0x8)); /* 0x2D006769: mov edx, dword ptr [ebp - 8] */
   2346     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8);
   2347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2348     edx = edx + 8; /* 0x2D00676C: add edx, 8 */
   2349     _flag_k = FK_ADD;
   2350     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   2351     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2352     esi = esi + 8; /* 0x2D00676F: add esi, 8 */
   2353     _flag_k = FK_ADD;
   2354     /* cmp esi, edi */ /* 0x2D006772: cmp esi, edi */
   2355     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   2356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2357     _flag_k = FK_CMP;
   2358     MEM32(ebp + (-0x8)) = edx; /* 0x2D006774: mov dword ptr [ebp - 8], edx */
   2359     RECOMP_BACKEDGE();
   2360     if (CMP_NE(_flag_a, _flag_b)) goto L_2D00675F; /* 0x2D006777: jne 0x2d00675f */
   2361 L_2D006779:
   2362     edx = MEM32(ebp + 0x8); /* 0x2D006779: mov edx, dword ptr [ebp + 8] */
   2363     eax = MEM32(edx + 0xC); /* 0x2D00677C: mov eax, dword ptr [edx + 0xc] */
   2364     /* cmp edi, eax */ /* 0x2D00677F: cmp edi, eax */
   2365     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2367     _flag_k = FK_CMP;
   2368     esi = MEM32(ebx + 0x8); /* 0x2D006781: mov esi, dword ptr [ebx + 8] */
   2369     ecx = MEM32(ebp + (-0x4)); /* 0x2D006784: mov ecx, dword ptr [ebp - 4] */
   2370     MEM32(ebp + (-0x8)) = esi; /* 0x2D006787: mov dword ptr [ebp - 8], esi */
   2371     MEM32(ebp + (-0xC)) = eax; /* 0x2D00678A: mov dword ptr [ebp - 0xc], eax */
   2372     esi = edi; /* 0x2D00678D: mov esi, edi */
   2373     RECOMP_BACKEDGE();
   2374     if (CMP_EQ(_flag_a, _flag_b)) goto L_2D0066F4; /* 0x2D00678F: je 0x2d0066f4 */
   2375 L_2D006795:
   2376     ecx = MEM32(ebp + (-0x8)); /* 0x2D006795: mov ecx, dword ptr [ebp - 8] */
   2377     PUSH32(esp, esi); /* 0x2D006798: push esi */
   2378     PUSH32(esp, ecx); /* 0x2D006799: push ecx */
   2379     RECOMP_ICALL(0x2D007DC0u); /* 0x2D00679A: call 0x2d007dc0 */ /* not lifted */
   2380     RECOMP_FLAGS_IN();
   2381     edx = MEM32(ebp + (-0x8)); /* 0x2D00679F: mov edx, dword ptr [ebp - 8] */
   2382     eax = MEM32(ebp + (-0xC)); /* 0x2D0067A2: mov eax, dword ptr [ebp - 0xc] */
   2383     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8);
   2384     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2385     edx = edx + 8; /* 0x2D0067A5: add edx, 8 */
   2386     _flag_k = FK_ADD;
   2387     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   2388     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2389     esi = esi + 8; /* 0x2D0067A8: add esi, 8 */
   2390     _flag_k = FK_ADD;
   2391     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2392     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2393     esp = esp + 8; /* 0x2D0067AB: add esp, 8 */
   2394     _flag_k = FK_ADD;
   2395     /* cmp esi, eax */ /* 0x2D0067AE: cmp esi, eax */
   2396     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2398     _flag_k = FK_CMP;
   2399     MEM32(ebp + (-0x8)) = edx; /* 0x2D0067B0: mov dword ptr [ebp - 8], edx */
   2400     RECOMP_BACKEDGE();
   2401     if (CMP_NE(_flag_a, _flag_b)) goto L_2D006795; /* 0x2D0067B3: jne 0x2d006795 */
   2402 L_2D0067B5:
   2403     RECOMP_BACKEDGE();
   2404     goto L_2D0066EE; /* 0x2D0067B5: jmp 0x2d0066ee */
   2405 L_2D0067BA:
   2406     ecx = MEM32(ebx + 0x8); /* 0x2D0067BA: mov ecx, dword ptr [ebx + 8] */
   2407     PUSH32(esp, ecx); /* 0x2D0067BD: push ecx */
   2408     PUSH32(esp, eax); /* 0x2D0067BE: push eax */
   2409     ecx = ebx; /* 0x2D0067BF: mov ecx, ebx */
   2410     RECOMP_ICALL(0x2D0076F0u); /* 0x2D0067C1: call 0x2d0076f0 */ /* not lifted */
   2411     RECOMP_FLAGS_IN();
   2412     edx = MEM32(ebx + 0x4); /* 0x2D0067C6: mov edx, dword ptr [ebx + 4] */
   2413     PUSH32(esp, edx); /* 0x2D0067C9: push edx */
   2414     RECOMP_ICALL(0x2D007FB6u); /* 0x2D0067CA: call 0x2d007fb6 */ /* not lifted */
   2415     RECOMP_FLAGS_IN();
   2416     eax = MEM32(ebp + 0x8); /* 0x2D0067CF: mov eax, dword ptr [ebp + 8] */
   2417     ecx = MEM32(eax + 0x8); /* 0x2D0067D2: mov ecx, dword ptr [eax + 8] */
   2418     esi = eax + 0x4; /* 0x2D0067D5: lea esi, [eax + 4] */
   2419     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2420     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2421     esp = esp + 4; /* 0x2D0067D8: add esp, 4 */
   2422     _flag_k = FK_ADD;
   2423     /* test ecx, ecx */ /* 0x2D0067DB: test ecx, ecx */
   2424     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2425     _cf = 0;
   2426     _flag_k = FK_TEST;
   2427     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D0067E3; /* 0x2D0067DD: jne 0x2d0067e3 */
   2428 L_2D0067DF:
   2429     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2430     eax = 0; /* 0x2D0067DF: xor eax, eax */
   2431     _cf = 0;
   2432     _flag_k = FK_TEST;
   2433     goto L_2D0067EB; /* 0x2D0067E1: jmp 0x2d0067eb */
   2434 L_2D0067E3:
   2435     eax = MEM32(esi + 0x8); /* 0x2D0067E3: mov eax, dword ptr [esi + 8] */
   2436     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2438     eax = eax - ecx; /* 0x2D0067E6: sub eax, ecx */
   2439     _flag_k = FK_CMP;
   2440     if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2D0067E8: sar eax, 3 */
   2441     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2442     eax = (uint32_t)((int32_t)eax >> 3u);
   2443 L_2D0067EB:
   2444     /* test eax, eax */ /* 0x2D0067EB: test eax, eax */
   2445     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2446     _cf = 0;
   2447     _flag_k = FK_TEST;
   2448     if (TEST_NS(_flag_a, _flag_b)) goto L_2D0067F1; /* 0x2D0067ED: jge 0x2d0067f1 */
   2449 L_2D0067EF:
   2450     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2451     eax = 0; /* 0x2D0067EF: xor eax, eax */
   2452     _cf = 0;
   2453     _flag_k = FK_TEST;
   2454 L_2D0067F1:
   2455     ecx = eax * 8; /* 0x2D0067F1: lea ecx, [eax*8] */
   2456     PUSH32(esp, ecx); /* 0x2D0067F8: push ecx */
   2457     RECOMP_ICALL(0x2D008184u); /* 0x2D0067F9: call 0x2d008184 */ /* not lifted */
   2458     RECOMP_FLAGS_IN();
   2459     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2460     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2461     esp = esp + 4; /* 0x2D0067FE: add esp, 4 */
   2462     _flag_k = FK_ADD;
   2463     MEM32(ebx + 0x4) = eax; /* 0x2D006801: mov dword ptr [ebx + 4], eax */
   2464     ecx = MEM32(esi + 0x8); /* 0x2D006804: mov ecx, dword ptr [esi + 8] */
   2465     esi = MEM32(esi + 0x4); /* 0x2D006807: mov esi, dword ptr [esi + 4] */
   2466     PUSH32(esp, eax); /* 0x2D00680A: push eax */
   2467     PUSH32(esp, ecx); /* 0x2D00680B: push ecx */
   2468     PUSH32(esp, esi); /* 0x2D00680C: push esi */
   2469     ecx = ebx; /* 0x2D00680D: mov ecx, ebx */
   2470     RECOMP_ICALL(0x2D007720u); /* 0x2D00680F: call 0x2d007720 */ /* not lifted */
   2471     RECOMP_FLAGS_IN();
   2472     ecx = MEM32(ebp + (-0x4)); /* 0x2D006814: mov ecx, dword ptr [ebp - 4] */
   2473     edx = MEM32(ebp + 0x8); /* 0x2D006817: mov edx, dword ptr [ebp + 8] */
   2474     MEM32(ebx + 0x8) = eax; /* 0x2D00681A: mov dword ptr [ebx + 8], eax */
   2475     MEM32(ebx + 0xC) = eax; /* 0x2D00681D: mov dword ptr [ebx + 0xc], eax */
   2476 L_2D006820:
   2477     SET_LO8(eax, MEM8(edx + 0x14)); /* 0x2D006820: mov al, byte ptr [edx + 0x14] */
   2478     MEM8(ecx + 0x14) = (uint8_t)(LO8(eax)); /* 0x2D006823: mov byte ptr [ecx + 0x14], al */
   2479     eax = MEM32(edx + 0x18); /* 0x2D006826: mov eax, dword ptr [edx + 0x18] */
   2480     MEM32(ecx + 0x18) = eax; /* 0x2D006829: mov dword ptr [ecx + 0x18], eax */
   2481     eax = MEM32(edx + 0x1C); /* 0x2D00682C: mov eax, dword ptr [edx + 0x1c] */
   2482     MEM32(ecx + 0x1C) = eax; /* 0x2D00682F: mov dword ptr [ecx + 0x1c], eax */
   2483     eax = MEM32(edx + 0x20); /* 0x2D006832: mov eax, dword ptr [edx + 0x20] */
   2484     MEM32(ecx + 0x20) = eax; /* 0x2D006835: mov dword ptr [ecx + 0x20], eax */
   2485     eax = MEM32(edx + 0x24); /* 0x2D006838: mov eax, dword ptr [edx + 0x24] */
   2486     MEM32(ecx + 0x24) = eax; /* 0x2D00683B: mov dword ptr [ecx + 0x24], eax */
   2487     eax = edx + 0x28; /* 0x2D00683E: lea eax, [edx + 0x28] */
   2488     edi = MEM32(eax); /* 0x2D006841: mov edi, dword ptr [eax] */
   2489     esi = ecx + 0x28; /* 0x2D006843: lea esi, [ecx + 0x28] */
   2490     MEM32(esi) = edi; /* 0x2D006846: mov dword ptr [esi], edi */
   2491     edi = MEM32(eax + 0x4); /* 0x2D006848: mov edi, dword ptr [eax + 4] */
   2492     MEM32(esi + 0x4) = edi; /* 0x2D00684B: mov dword ptr [esi + 4], edi */
   2493     eax = MEM32(eax + 0x8); /* 0x2D00684E: mov eax, dword ptr [eax + 8] */
   2494     MEM32(esi + 0x8) = eax; /* 0x2D006851: mov dword ptr [esi + 8], eax */
   2495     eax = edx + 0x34; /* 0x2D006854: lea eax, [edx + 0x34] */
   2496     edi = MEM32(eax); /* 0x2D006857: mov edi, dword ptr [eax] */
   2497     esi = ecx + 0x34; /* 0x2D006859: lea esi, [ecx + 0x34] */
   2498     MEM32(esi) = edi; /* 0x2D00685C: mov dword ptr [esi], edi */
   2499     edi = MEM32(eax + 0x4); /* 0x2D00685E: mov edi, dword ptr [eax + 4] */
   2500     MEM32(esi + 0x4) = edi; /* 0x2D006861: mov dword ptr [esi + 4], edi */
   2501     eax = MEM32(eax + 0x8); /* 0x2D006864: mov eax, dword ptr [eax + 8] */
   2502     MEM32(esi + 0x8) = eax; /* 0x2D006867: mov dword ptr [esi + 8], eax */
   2503     eax = MEM32(edx + 0x40); /* 0x2D00686A: mov eax, dword ptr [edx + 0x40] */
   2504     MEM32(ecx + 0x40) = eax; /* 0x2D00686D: mov dword ptr [ecx + 0x40], eax */
   2505     eax = MEM32(edx + 0x44); /* 0x2D006870: mov eax, dword ptr [edx + 0x44] */
   2506     MEM32(ecx + 0x44) = eax; /* 0x2D006873: mov dword ptr [ecx + 0x44], eax */
   2507     eax = MEM32(edx + 0x48); /* 0x2D006876: mov eax, dword ptr [edx + 0x48] */
   2508     MEM32(ecx + 0x48) = eax; /* 0x2D006879: mov dword ptr [ecx + 0x48], eax */
   2509     eax = MEM32(edx + 0x4C); /* 0x2D00687C: mov eax, dword ptr [edx + 0x4c] */
   2510     MEM32(ecx + 0x4C) = eax; /* 0x2D00687F: mov dword ptr [ecx + 0x4c], eax */
   2511     SET_LO8(eax, MEM8(edx + 0x50)); /* 0x2D006882: mov al, byte ptr [edx + 0x50] */
   2512     MEM8(ecx + 0x50) = (uint8_t)(LO8(eax)); /* 0x2D006885: mov byte ptr [ecx + 0x50], al */
   2513     eax = MEM32(edx + 0x54); /* 0x2D006888: mov eax, dword ptr [edx + 0x54] */
   2514     edi = POP32_VAL(esp); /* 0x2D00688B: pop edi */
   2515     MEM32(ecx + 0x54) = eax; /* 0x2D00688C: mov dword ptr [ecx + 0x54], eax */
   2516     edx = MEM32(edx + 0x58); /* 0x2D00688F: mov edx, dword ptr [edx + 0x58] */
   2517     esi = POP32_VAL(esp); /* 0x2D006892: pop esi */
   2518     MEM32(ecx + 0x58) = edx; /* 0x2D006893: mov dword ptr [ecx + 0x58], edx */
   2519     eax = ecx; /* 0x2D006896: mov eax, ecx */
   2520     ebx = POP32_VAL(esp); /* 0x2D006898: pop ebx */
   2521     esp = ebp; /* 0x2D006899: mov esp, ebp */
   2522     ebp = POP32_VAL(esp); /* 0x2D00689B: pop ebp */
   2523     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D00689C: ret 4 */
   2524     RECOMP_REGS_OUT();
   2525 }
   2526 
   2527 void sub_2D006820(void) {
   2528     int _fpu_cmp = 0;
   2529     uint32_t _cf = 0;
   2530     int _df = 1;
   2531     uint32_t _flag_k = FK_NONE;
   2532     uint32_t _flag_a = 0, _flag_b = 0;
   2533     uint32_t _itail_tgt = 0;
   2534     RECOMP_REGS_LOCALS
   2535     RECOMP_ENTER(0x2D006820u);
   2536 
   2537 L_2D006820:
   2538     SET_LO8(eax, MEM8(edx + 0x14)); /* 0x2D006820: mov al, byte ptr [edx + 0x14] */
   2539     MEM8(ecx + 0x14) = (uint8_t)(LO8(eax)); /* 0x2D006823: mov byte ptr [ecx + 0x14], al */
   2540     eax = MEM32(edx + 0x18); /* 0x2D006826: mov eax, dword ptr [edx + 0x18] */
   2541     MEM32(ecx + 0x18) = eax; /* 0x2D006829: mov dword ptr [ecx + 0x18], eax */
   2542     eax = MEM32(edx + 0x1C); /* 0x2D00682C: mov eax, dword ptr [edx + 0x1c] */
   2543     MEM32(ecx + 0x1C) = eax; /* 0x2D00682F: mov dword ptr [ecx + 0x1c], eax */
   2544     eax = MEM32(edx + 0x20); /* 0x2D006832: mov eax, dword ptr [edx + 0x20] */
   2545     MEM32(ecx + 0x20) = eax; /* 0x2D006835: mov dword ptr [ecx + 0x20], eax */
   2546     eax = MEM32(edx + 0x24); /* 0x2D006838: mov eax, dword ptr [edx + 0x24] */
   2547     MEM32(ecx + 0x24) = eax; /* 0x2D00683B: mov dword ptr [ecx + 0x24], eax */
   2548     eax = edx + 0x28; /* 0x2D00683E: lea eax, [edx + 0x28] */
   2549     edi = MEM32(eax); /* 0x2D006841: mov edi, dword ptr [eax] */
   2550     esi = ecx + 0x28; /* 0x2D006843: lea esi, [ecx + 0x28] */
   2551     MEM32(esi) = edi; /* 0x2D006846: mov dword ptr [esi], edi */
   2552     edi = MEM32(eax + 0x4); /* 0x2D006848: mov edi, dword ptr [eax + 4] */
   2553     MEM32(esi + 0x4) = edi; /* 0x2D00684B: mov dword ptr [esi + 4], edi */
   2554     eax = MEM32(eax + 0x8); /* 0x2D00684E: mov eax, dword ptr [eax + 8] */
   2555     MEM32(esi + 0x8) = eax; /* 0x2D006851: mov dword ptr [esi + 8], eax */
   2556     eax = edx + 0x34; /* 0x2D006854: lea eax, [edx + 0x34] */
   2557     edi = MEM32(eax); /* 0x2D006857: mov edi, dword ptr [eax] */
   2558     esi = ecx + 0x34; /* 0x2D006859: lea esi, [ecx + 0x34] */
   2559     MEM32(esi) = edi; /* 0x2D00685C: mov dword ptr [esi], edi */
   2560     edi = MEM32(eax + 0x4); /* 0x2D00685E: mov edi, dword ptr [eax + 4] */
   2561     MEM32(esi + 0x4) = edi; /* 0x2D006861: mov dword ptr [esi + 4], edi */
   2562     eax = MEM32(eax + 0x8); /* 0x2D006864: mov eax, dword ptr [eax + 8] */
   2563     MEM32(esi + 0x8) = eax; /* 0x2D006867: mov dword ptr [esi + 8], eax */
   2564     eax = MEM32(edx + 0x40); /* 0x2D00686A: mov eax, dword ptr [edx + 0x40] */
   2565     MEM32(ecx + 0x40) = eax; /* 0x2D00686D: mov dword ptr [ecx + 0x40], eax */
   2566     eax = MEM32(edx + 0x44); /* 0x2D006870: mov eax, dword ptr [edx + 0x44] */
   2567     MEM32(ecx + 0x44) = eax; /* 0x2D006873: mov dword ptr [ecx + 0x44], eax */
   2568     eax = MEM32(edx + 0x48); /* 0x2D006876: mov eax, dword ptr [edx + 0x48] */
   2569     MEM32(ecx + 0x48) = eax; /* 0x2D006879: mov dword ptr [ecx + 0x48], eax */
   2570     eax = MEM32(edx + 0x4C); /* 0x2D00687C: mov eax, dword ptr [edx + 0x4c] */
   2571     MEM32(ecx + 0x4C) = eax; /* 0x2D00687F: mov dword ptr [ecx + 0x4c], eax */
   2572     SET_LO8(eax, MEM8(edx + 0x50)); /* 0x2D006882: mov al, byte ptr [edx + 0x50] */
   2573     MEM8(ecx + 0x50) = (uint8_t)(LO8(eax)); /* 0x2D006885: mov byte ptr [ecx + 0x50], al */
   2574     eax = MEM32(edx + 0x54); /* 0x2D006888: mov eax, dword ptr [edx + 0x54] */
   2575     edi = POP32_VAL(esp); /* 0x2D00688B: pop edi */
   2576     MEM32(ecx + 0x54) = eax; /* 0x2D00688C: mov dword ptr [ecx + 0x54], eax */
   2577     edx = MEM32(edx + 0x58); /* 0x2D00688F: mov edx, dword ptr [edx + 0x58] */
   2578     esi = POP32_VAL(esp); /* 0x2D006892: pop esi */
   2579     MEM32(ecx + 0x58) = edx; /* 0x2D006893: mov dword ptr [ecx + 0x58], edx */
   2580     eax = ecx; /* 0x2D006896: mov eax, ecx */
   2581     ebx = POP32_VAL(esp); /* 0x2D006898: pop ebx */
   2582     esp = ebp; /* 0x2D006899: mov esp, ebp */
   2583     ebp = POP32_VAL(esp); /* 0x2D00689B: pop ebp */
   2584     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D00689C: ret 4 */
   2585     RECOMP_REGS_OUT();
   2586 }
   2587 
   2588 void sub_2D0068A0(void) {
   2589     int _fpu_cmp = 0;
   2590     uint32_t _cf = 0;
   2591     int _df = 1;
   2592     uint32_t _flag_k = FK_NONE;
   2593     uint32_t _flag_a = 0, _flag_b = 0;
   2594     uint32_t _itail_tgt = 0;
   2595     RECOMP_REGS_LOCALS
   2596     RECOMP_ENTER(0x2D0068A0u);
   2597 
   2598 L_2D0068A0:
   2599     PUSH32(esp, ebp); /* 0x2D0068A0: push ebp */
   2600     ebp = esp; /* 0x2D0068A1: mov ebp, esp */
   2601     PUSH32(esp, ebx); /* 0x2D0068A3: push ebx */
   2602     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x2D0068A4: mov bl, byte ptr [ebp + 8] */
   2603     /* test LO8(ebx), 2 */ /* 0x2D0068A7: test bl, 2 */
   2604     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   2605     _cf = 0;
   2606     _flag_k = FK_NARROW(FK_TEST, 24);
   2607     PUSH32(esp, esi); /* 0x2D0068AA: push esi */
   2608     esi = ecx; /* 0x2D0068AB: mov esi, ecx */
   2609     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0068DB; /* 0x2D0068AD: je 0x2d0068db */
   2610 L_2D0068AF:
   2611     eax = MEM32(esi + (-0x4)); /* 0x2D0068AF: mov eax, dword ptr [esi - 4] */
   2612     PUSH32(esp, edi); /* 0x2D0068B2: push edi */
   2613     PUSH32(esp, 0x2D007F98u); /* 0x2D0068B3: push 0x2d007f98 */
   2614     edi = esi + (-0x4); /* 0x2D0068B8: lea edi, [esi - 4] */
   2615     PUSH32(esp, eax); /* 0x2D0068BB: push eax */
   2616     PUSH32(esp, 0x60u); /* 0x2D0068BC: push 0x60 */
   2617     PUSH32(esp, esi); /* 0x2D0068BE: push esi */
   2618     RECOMP_ICALL(0x2D008090u); /* 0x2D0068BF: call 0x2d008090 */ /* not lifted */
   2619     RECOMP_FLAGS_IN();
   2620     /* test LO8(ebx), 1 */ /* 0x2D0068C4: test bl, 1 */
   2621     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2622     _cf = 0;
   2623     _flag_k = FK_NARROW(FK_TEST, 24);
   2624     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0068D2; /* 0x2D0068C7: je 0x2d0068d2 */
   2625 L_2D0068C9:
   2626     PUSH32(esp, edi); /* 0x2D0068C9: push edi */
   2627     RECOMP_ICALL(0x2D007FB6u); /* 0x2D0068CA: call 0x2d007fb6 */ /* not lifted */
   2628     RECOMP_FLAGS_IN();
   2629     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2631     esp = esp + 4; /* 0x2D0068CF: add esp, 4 */
   2632     _flag_k = FK_ADD;
   2633 L_2D0068D2:
   2634     eax = edi; /* 0x2D0068D2: mov eax, edi */
   2635     edi = POP32_VAL(esp); /* 0x2D0068D4: pop edi */
   2636     esi = POP32_VAL(esp); /* 0x2D0068D5: pop esi */
   2637     ebx = POP32_VAL(esp); /* 0x2D0068D6: pop ebx */
   2638     ebp = POP32_VAL(esp); /* 0x2D0068D7: pop ebp */
   2639     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0068D8: ret 4 */
   2640 L_2D0068DB:
   2641     ecx = esi; /* 0x2D0068DB: mov ecx, esi */
   2642     RECOMP_ICALL(0x2D007F98u); /* 0x2D0068DD: call 0x2d007f98 */ /* not lifted */
   2643     RECOMP_FLAGS_IN();
   2644     /* test LO8(ebx), 1 */ /* 0x2D0068E2: test bl, 1 */
   2645     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2646     _cf = 0;
   2647     _flag_k = FK_NARROW(FK_TEST, 24);
   2648     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0068F0; /* 0x2D0068E5: je 0x2d0068f0 */
   2649 L_2D0068E7:
   2650     PUSH32(esp, esi); /* 0x2D0068E7: push esi */
   2651     RECOMP_ICALL(0x2D007FB6u); /* 0x2D0068E8: call 0x2d007fb6 */ /* not lifted */
   2652     RECOMP_FLAGS_IN();
   2653     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2654     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2655     esp = esp + 4; /* 0x2D0068ED: add esp, 4 */
   2656     _flag_k = FK_ADD;
   2657 L_2D0068F0:
   2658     eax = esi; /* 0x2D0068F0: mov eax, esi */
   2659     esi = POP32_VAL(esp); /* 0x2D0068F2: pop esi */
   2660     ebx = POP32_VAL(esp); /* 0x2D0068F3: pop ebx */
   2661     ebp = POP32_VAL(esp); /* 0x2D0068F4: pop ebp */
   2662     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0068F5: ret 4 */
   2663     RECOMP_REGS_OUT();
   2664 }
   2665 
   2666 void sub_2D006900(void) {
   2667     int _fpu_cmp = 0;
   2668     uint32_t _cf = 0;
   2669     int _df = 1;
   2670     uint32_t _flag_k = FK_NONE;
   2671     uint32_t _flag_a = 0, _flag_b = 0;
   2672     uint32_t _itail_tgt = 0;
   2673     RECOMP_REGS_LOCALS
   2674     RECOMP_ENTER(0x2D006900u);
   2675 
   2676 L_2D006900:
   2677     PUSH32(esp, esi); /* 0x2D006900: push esi */
   2678     RECOMP_ICALL(0x2D007FB0u); /* 0x2D006901: call 0x2d007fb0 */ /* not lifted */
   2679     RECOMP_FLAGS_IN();
   2680     esi = eax; /* 0x2D006906: mov esi, eax */
   2681     /* test esi, esi */ /* 0x2D006908: test esi, esi */
   2682     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2683     _cf = 0;
   2684     _flag_k = FK_TEST;
   2685     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00695C; /* 0x2D00690A: je 0x2d00695c */
   2686 L_2D00690C:
   2687     eax = MEM32(0x2D009594); /* 0x2D00690C: mov eax, dword ptr [0x2d009594] */
   2688     ecx = MEM32(eax); /* 0x2D006911: mov ecx, dword ptr [eax] */
   2689     edx = MEM32(ecx); /* 0x2D006913: mov edx, dword ptr [ecx] */
   2690     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2D006915: call dword ptr [edx + 0x10] */
   2691     RECOMP_FLAGS_IN();
   2692     ecx = MEM32(0x2D01757C); /* 0x2D006918: mov ecx, dword ptr [0x2d01757c] */
   2693     /* test ecx, ecx */ /* 0x2D00691E: test ecx, ecx */
   2694     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2695     _cf = 0;
   2696     _flag_k = FK_TEST;
   2697     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00693D; /* 0x2D006920: je 0x2d00693d */
   2698 L_2D006922:
   2699     PUSH32(esp, ecx); /* 0x2D006922: push ecx */
   2700     ecx = esi; /* 0x2D006923: mov ecx, esi */
   2701     RECOMP_ICALL(0x2D007FAAu); /* 0x2D006925: call 0x2d007faa */ /* not lifted */
   2702     RECOMP_FLAGS_IN();
   2703     ecx = esi; /* 0x2D00692A: mov ecx, esi */
   2704     MEM32(0x2D01757C) = 0; /* 0x2D00692C: mov dword ptr [0x2d01757c], 0 */
   2705     RECOMP_ICALL(0x2D007FA4u); /* 0x2D006936: call 0x2d007fa4 */ /* not lifted */
   2706     RECOMP_FLAGS_IN();
   2707     esi = POP32_VAL(esp); /* 0x2D00693B: pop esi */
   2708     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D00693C: ret  */
   2709 L_2D00693D:
   2710     PUSH32(esp, 0); /* 0x2D00693D: push 0 */
   2711     PUSH32(esp, eax); /* 0x2D00693F: push eax */
   2712     PUSH32(esp, 0x9C3Fu); /* 0x2D006940: push 0x9c3f */
   2713     ecx = esi; /* 0x2D006945: mov ecx, esi */
   2714     RECOMP_ICALL(0x2D007F9Eu); /* 0x2D006947: call 0x2d007f9e */ /* not lifted */
   2715     RECOMP_FLAGS_IN();
   2716     /* test eax, eax */ /* 0x2D00694C: test eax, eax */
   2717     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2718     _cf = 0;
   2719     _flag_k = FK_TEST;
   2720     MEM32(0x2D01757C) = eax; /* 0x2D00694E: mov dword ptr [0x2d01757c], eax */
   2721     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D00695C; /* 0x2D006953: jne 0x2d00695c */
   2722 L_2D006955:
   2723     ecx = esi; /* 0x2D006955: mov ecx, esi */
   2724     RECOMP_ICALL(0x2D007FA4u); /* 0x2D006957: call 0x2d007fa4 */ /* not lifted */
   2725     RECOMP_FLAGS_IN();
   2726 L_2D00695C:
   2727     esi = POP32_VAL(esp); /* 0x2D00695C: pop esi */
   2728     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D00695D: ret  */
   2729     RECOMP_REGS_OUT();
   2730 }
   2731 
   2732 void sub_2D006960(void) {
   2733     int _fpu_cmp = 0;
   2734     uint32_t _cf = 0;
   2735     int _df = 1;
   2736     uint32_t _flag_k = FK_NONE;
   2737     uint32_t _flag_a = 0, _flag_b = 0;
   2738     uint32_t _itail_tgt = 0;
   2739     RECOMP_REGS_LOCALS
   2740     RECOMP_ENTER(0x2D006960u);
   2741 
   2742 L_2D006960:
   2743     PUSH32(esp, ebp); /* 0x2D006960: push ebp */
   2744     ebp = esp; /* 0x2D006961: mov ebp, esp */
   2745     ecx = MEM32(0x2D01752C); /* 0x2D006963: mov ecx, dword ptr [0x2d01752c] */
   2746     /* test ecx, ecx */ /* 0x2D006969: test ecx, ecx */
   2747     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2748     _cf = 0;
   2749     _flag_k = FK_TEST;
   2750     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006983; /* 0x2D00696B: je 0x2d006983 */
   2751 L_2D00696D:
   2752     eax = MEM32(ebp + 0x10); /* 0x2D00696D: mov eax, dword ptr [ebp + 0x10] */
   2753     edx = MEM32(ebp + 0xC); /* 0x2D006970: mov edx, dword ptr [ebp + 0xc] */
   2754     PUSH32(esp, eax); /* 0x2D006973: push eax */
   2755     eax = MEM32(ebp + 0x8); /* 0x2D006974: mov eax, dword ptr [ebp + 8] */
   2756     PUSH32(esp, edx); /* 0x2D006977: push edx */
   2757     PUSH32(esp, eax); /* 0x2D006978: push eax */
   2758     RECOMP_ICALL(MEM32(0x2D0094B4)); /* 0x2D006979: call dword ptr [0x2d0094b4] */
   2759     RECOMP_FLAGS_IN();
   2760     ebp = POP32_VAL(esp); /* 0x2D00697F: pop ebp */
   2761     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D006980: ret 0xc */
   2762 L_2D006983:
   2763     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2764     SET_LO8(eax, 0); /* 0x2D006983: xor al, al */
   2765     _cf = 0;
   2766     _flag_k = FK_NARROW(FK_TEST, 24);
   2767     ebp = POP32_VAL(esp); /* 0x2D006985: pop ebp */
   2768     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D006986: ret 0xc */
   2769     RECOMP_REGS_OUT();
   2770 }
   2771 
   2772 void sub_2D006990(void) {
   2773     int _fpu_cmp = 0;
   2774     uint32_t _cf = 0;
   2775     int _df = 1;
   2776     uint32_t _flag_k = FK_NONE;
   2777     uint32_t _flag_a = 0, _flag_b = 0;
   2778     uint32_t _itail_tgt = 0;
   2779     RECOMP_REGS_LOCALS
   2780     RECOMP_ENTER(0x2D006990u);
   2781 
   2782 L_2D006990:
   2783     PUSH32(esp, ebp); /* 0x2D006990: push ebp */
   2784     ebp = esp; /* 0x2D006991: mov ebp, esp */
   2785     ecx = MEM32(0x2D01752C); /* 0x2D006993: mov ecx, dword ptr [0x2d01752c] */
   2786     /* test ecx, ecx */ /* 0x2D006999: test ecx, ecx */
   2787     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2788     _cf = 0;
   2789     _flag_k = FK_TEST;
   2790     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0069B7; /* 0x2D00699B: je 0x2d0069b7 */
   2791 L_2D00699D:
   2792     eax = MEM32(ebp + 0x14); /* 0x2D00699D: mov eax, dword ptr [ebp + 0x14] */
   2793     edx = MEM32(ebp + 0x10); /* 0x2D0069A0: mov edx, dword ptr [ebp + 0x10] */
   2794     PUSH32(esp, eax); /* 0x2D0069A3: push eax */
   2795     eax = MEM32(ebp + 0xC); /* 0x2D0069A4: mov eax, dword ptr [ebp + 0xc] */
   2796     PUSH32(esp, edx); /* 0x2D0069A7: push edx */
   2797     edx = MEM32(ebp + 0x8); /* 0x2D0069A8: mov edx, dword ptr [ebp + 8] */
   2798     PUSH32(esp, eax); /* 0x2D0069AB: push eax */
   2799     PUSH32(esp, edx); /* 0x2D0069AC: push edx */
   2800     RECOMP_ICALL(MEM32(0x2D0094B8)); /* 0x2D0069AD: call dword ptr [0x2d0094b8] */
   2801     RECOMP_FLAGS_IN();
   2802     ebp = POP32_VAL(esp); /* 0x2D0069B3: pop ebp */
   2803     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2D0069B4: ret 0x10 */
   2804 L_2D0069B7:
   2805     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2806     SET_LO8(eax, 0); /* 0x2D0069B7: xor al, al */
   2807     _cf = 0;
   2808     _flag_k = FK_NARROW(FK_TEST, 24);
   2809     ebp = POP32_VAL(esp); /* 0x2D0069B9: pop ebp */
   2810     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2D0069BA: ret 0x10 */
   2811     RECOMP_REGS_OUT();
   2812 }
   2813 
   2814 void sub_2D0069C0(void) {
   2815     int _fpu_cmp = 0;
   2816     uint32_t _cf = 0;
   2817     int _df = 1;
   2818     uint32_t _flag_k = FK_NONE;
   2819     uint32_t _flag_a = 0, _flag_b = 0;
   2820     uint32_t _itail_tgt = 0;
   2821     RECOMP_REGS_LOCALS
   2822     RECOMP_ENTER(0x2D0069C0u);
   2823 
   2824 L_2D0069C0:
   2825     ecx = MEM32(0x2D01752C); /* 0x2D0069C0: mov ecx, dword ptr [0x2d01752c] */
   2826 L_2D0069C6:
   2827     /* test ecx, ecx */ /* 0x2D0069C6: test ecx, ecx */
   2828     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2829     _cf = 0;
   2830     _flag_k = FK_TEST;
   2831 L_2D0069C8:
   2832     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D0069D0; /* 0x2D0069C8: je 0x2d0069d0 */
   2833 L_2D0069CA:
   2834     { _itail_tgt = (uint32_t)(MEM32(0x2D0094BC)); goto _ljump; }
   2835 L_2D0069D0:
   2836     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0069D0: ret  */
   2837   _ljump:
   2838     switch (_itail_tgt) {
   2839       case 0x2D0069C0u: goto L_2D0069C0;
   2840       case 0x2D0069C6u: goto L_2D0069C6;
   2841       case 0x2D0069C8u: goto L_2D0069C8;
   2842       case 0x2D0069CAu: goto L_2D0069CA;
   2843       case 0x2D0069D0u: goto L_2D0069D0;
   2844       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2845     }
   2846     RECOMP_REGS_OUT();
   2847 }
   2848 
   2849 void sub_2D0069E0(void) {
   2850     int _fpu_cmp = 0;
   2851     uint32_t _cf = 0;
   2852     int _df = 1;
   2853     uint32_t _flag_k = FK_NONE;
   2854     uint32_t _flag_a = 0, _flag_b = 0;
   2855     uint32_t _itail_tgt = 0;
   2856     RECOMP_REGS_LOCALS
   2857     RECOMP_ENTER(0x2D0069E0u);
   2858 
   2859 L_2D0069E0:
   2860     { _itail_tgt = (uint32_t)(MEM32(0x2D0094C0)); goto _ljump; }
   2861     { RECOMP_REGS_OUT(); return; } /* end of function */
   2862   _ljump:
   2863     switch (_itail_tgt) {
   2864       case 0x2D0069E0u: goto L_2D0069E0;
   2865       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2866     }
   2867     RECOMP_REGS_OUT();
   2868 }
   2869 
   2870 void sub_2D0069F0(void) {
   2871     int _fpu_cmp = 0;
   2872     uint32_t _cf = 0;
   2873     int _df = 1;
   2874     uint32_t _flag_k = FK_NONE;
   2875     uint32_t _flag_a = 0, _flag_b = 0;
   2876     uint32_t _itail_tgt = 0;
   2877     RECOMP_REGS_LOCALS
   2878     RECOMP_ENTER(0x2D0069F0u);
   2879 
   2880 L_2D0069F0:
   2881     PUSH32(esp, ebp); /* 0x2D0069F0: push ebp */
   2882     ebp = esp; /* 0x2D0069F1: mov ebp, esp */
   2883     ecx = MEM32(0x2D01752C); /* 0x2D0069F3: mov ecx, dword ptr [0x2d01752c] */
   2884     /* test ecx, ecx */ /* 0x2D0069F9: test ecx, ecx */
   2885     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2886     _cf = 0;
   2887     _flag_k = FK_TEST;
   2888     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006A0B; /* 0x2D0069FB: je 0x2d006a0b */
   2889 L_2D0069FD:
   2890     eax = MEM32(ebp + 0xC); /* 0x2D0069FD: mov eax, dword ptr [ebp + 0xc] */
   2891     edx = MEM32(ebp + 0x8); /* 0x2D006A00: mov edx, dword ptr [ebp + 8] */
   2892     PUSH32(esp, eax); /* 0x2D006A03: push eax */
   2893     PUSH32(esp, edx); /* 0x2D006A04: push edx */
   2894     RECOMP_ICALL(MEM32(0x2D0094C4)); /* 0x2D006A05: call dword ptr [0x2d0094c4] */
   2895     RECOMP_FLAGS_IN();
   2896 L_2D006A0B:
   2897     ebp = POP32_VAL(esp); /* 0x2D006A0B: pop ebp */
   2898     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D006A0C: ret 8 */
   2899     RECOMP_REGS_OUT();
   2900 }
   2901 
   2902 void sub_2D006A10(void) {
   2903     int _fpu_cmp = 0;
   2904     uint32_t _cf = 0;
   2905     int _df = 1;
   2906     uint32_t _flag_k = FK_NONE;
   2907     uint32_t _flag_a = 0, _flag_b = 0;
   2908     uint32_t _itail_tgt = 0;
   2909     RECOMP_REGS_LOCALS
   2910     RECOMP_ENTER(0x2D006A10u);
   2911 
   2912 L_2D006A10:
   2913     PUSH32(esp, ebp); /* 0x2D006A10: push ebp */
   2914     ebp = esp; /* 0x2D006A11: mov ebp, esp */
   2915     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2917     esp = esp - 8; /* 0x2D006A13: sub esp, 8 */
   2918     _flag_k = FK_CMP;
   2919     eax = ebp + (-0x8); /* 0x2D006A16: lea eax, [ebp - 8] */
   2920     PUSH32(esp, eax); /* 0x2D006A19: push eax */
   2921     MEM32(ebp + (-0x8)) = 0; /* 0x2D006A1A: mov dword ptr [ebp - 8], 0 */
   2922     MEM32(ebp + (-0x4)) = 0; /* 0x2D006A21: mov dword ptr [ebp - 4], 0 */
   2923     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D006A28: call dword ptr [0x2d0090b8] */
   2924     RECOMP_FLAGS_IN();
   2925     ecx = eax; /* 0x2D006A2E: mov ecx, eax */
   2926     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D006A30: call dword ptr [0x2d0090b4] */
   2927     RECOMP_FLAGS_IN();
   2928     ecx = MEM32(0x2D01752C); /* 0x2D006A36: mov ecx, dword ptr [0x2d01752c] */
   2929     /* test ecx, ecx */ /* 0x2D006A3C: test ecx, ecx */
   2930     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2931     _cf = 0;
   2932     _flag_k = FK_TEST;
   2933     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006A4A; /* 0x2D006A3E: je 0x2d006a4a */
   2934 L_2D006A40:
   2935     edx = ebp + (-0x8); /* 0x2D006A40: lea edx, [ebp - 8] */
   2936     PUSH32(esp, edx); /* 0x2D006A43: push edx */
   2937     RECOMP_ICALL(MEM32(0x2D009230)); /* 0x2D006A44: call dword ptr [0x2d009230] */
   2938     RECOMP_FLAGS_IN();
   2939 L_2D006A4A:
   2940     esp = ebp; /* 0x2D006A4A: mov esp, ebp */
   2941     ebp = POP32_VAL(esp); /* 0x2D006A4C: pop ebp */
   2942     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006A4D: ret  */
   2943     RECOMP_REGS_OUT();
   2944 }
   2945 
   2946 void sub_2D006A50(void) {
   2947     int _fpu_cmp = 0;
   2948     uint32_t _cf = 0;
   2949     int _df = 1;
   2950     uint32_t _flag_k = FK_NONE;
   2951     uint32_t _flag_a = 0, _flag_b = 0;
   2952     uint32_t _itail_tgt = 0;
   2953     RECOMP_REGS_LOCALS
   2954     RECOMP_ENTER(0x2D006A50u);
   2955 
   2956 L_2D006A50:
   2957     ecx = MEM32(0x2D01752C); /* 0x2D006A50: mov ecx, dword ptr [0x2d01752c] */
   2958 L_2D006A56:
   2959     /* test ecx, ecx */ /* 0x2D006A56: test ecx, ecx */
   2960     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2961     _cf = 0;
   2962     _flag_k = FK_TEST;
   2963 L_2D006A58:
   2964     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D006A60; /* 0x2D006A58: je 0x2d006a60 */
   2965 L_2D006A5A:
   2966     { _itail_tgt = (uint32_t)(MEM32(0x2D0094C8)); goto _ljump; }
   2967 L_2D006A60:
   2968     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006A60: ret  */
   2969   _ljump:
   2970     switch (_itail_tgt) {
   2971       case 0x2D006A50u: goto L_2D006A50;
   2972       case 0x2D006A56u: goto L_2D006A56;
   2973       case 0x2D006A58u: goto L_2D006A58;
   2974       case 0x2D006A5Au: goto L_2D006A5A;
   2975       case 0x2D006A60u: goto L_2D006A60;
   2976       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2977     }
   2978     RECOMP_REGS_OUT();
   2979 }
   2980 
   2981 void sub_2D006A70(void) {
   2982     int _fpu_cmp = 0;
   2983     uint32_t _cf = 0;
   2984     int _df = 1;
   2985     uint32_t _flag_k = FK_NONE;
   2986     uint32_t _flag_a = 0, _flag_b = 0;
   2987     uint32_t _itail_tgt = 0;
   2988     RECOMP_REGS_LOCALS
   2989     RECOMP_ENTER(0x2D006A70u);
   2990 
   2991 L_2D006A70:
   2992     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2993     SET_LO8(eax, 0); /* 0x2D006A70: xor al, al */
   2994     _cf = 0;
   2995     _flag_k = FK_NARROW(FK_TEST, 24);
   2996     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006A72: ret  */
   2997     RECOMP_REGS_OUT();
   2998 }
   2999 
   3000 void sub_2D006A80(void) {
   3001     int _fpu_cmp = 0;
   3002     uint32_t _cf = 0;
   3003     int _df = 1;
   3004     uint32_t _flag_k = FK_NONE;
   3005     uint32_t _flag_a = 0, _flag_b = 0;
   3006     uint32_t _itail_tgt = 0;
   3007     RECOMP_REGS_LOCALS
   3008     RECOMP_ENTER(0x2D006A80u);
   3009 
   3010 L_2D006A80:
   3011     PUSH32(esp, ebp); /* 0x2D006A80: push ebp */
   3012     ebp = esp; /* 0x2D006A81: mov ebp, esp */
   3013     ecx = MEM32(0x2D01752C); /* 0x2D006A83: mov ecx, dword ptr [0x2d01752c] */
   3014     /* test ecx, ecx */ /* 0x2D006A89: test ecx, ecx */
   3015     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3016     _cf = 0;
   3017     _flag_k = FK_TEST;
   3018     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006AA3; /* 0x2D006A8B: je 0x2d006aa3 */
   3019 L_2D006A8D:
   3020     eax = MEM32(ebp + 0x10); /* 0x2D006A8D: mov eax, dword ptr [ebp + 0x10] */
   3021     edx = MEM32(ebp + 0xC); /* 0x2D006A90: mov edx, dword ptr [ebp + 0xc] */
   3022     PUSH32(esp, eax); /* 0x2D006A93: push eax */
   3023     eax = MEM32(ebp + 0x8); /* 0x2D006A94: mov eax, dword ptr [ebp + 8] */
   3024     PUSH32(esp, edx); /* 0x2D006A97: push edx */
   3025     PUSH32(esp, eax); /* 0x2D006A98: push eax */
   3026     RECOMP_ICALL(MEM32(0x2D0094CC)); /* 0x2D006A99: call dword ptr [0x2d0094cc] */
   3027     RECOMP_FLAGS_IN();
   3028     ebp = POP32_VAL(esp); /* 0x2D006A9F: pop ebp */
   3029     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D006AA0: ret 0xc */
   3030 L_2D006AA3:
   3031     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3032     SET_LO8(eax, 0); /* 0x2D006AA3: xor al, al */
   3033     _cf = 0;
   3034     _flag_k = FK_NARROW(FK_TEST, 24);
   3035     ebp = POP32_VAL(esp); /* 0x2D006AA5: pop ebp */
   3036     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D006AA6: ret 0xc */
   3037     RECOMP_REGS_OUT();
   3038 }
   3039 
   3040 void sub_2D006AB0(void) {
   3041     int _fpu_cmp = 0;
   3042     uint32_t _cf = 0;
   3043     int _df = 1;
   3044     uint32_t _flag_k = FK_NONE;
   3045     uint32_t _flag_a = 0, _flag_b = 0;
   3046     uint32_t _itail_tgt = 0;
   3047     RECOMP_REGS_LOCALS
   3048     RECOMP_ENTER(0x2D006AB0u);
   3049 
   3050 L_2D006AB0:
   3051     PUSH32(esp, ebp); /* 0x2D006AB0: push ebp */
   3052     ebp = esp; /* 0x2D006AB1: mov ebp, esp */
   3053     ecx = MEM32(0x2D01752C); /* 0x2D006AB3: mov ecx, dword ptr [0x2d01752c] */
   3054     /* test ecx, ecx */ /* 0x2D006AB9: test ecx, ecx */
   3055     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3056     _cf = 0;
   3057     _flag_k = FK_TEST;
   3058     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006ACF; /* 0x2D006ABB: je 0x2d006acf */
   3059 L_2D006ABD:
   3060     eax = MEM32(ebp + 0xC); /* 0x2D006ABD: mov eax, dword ptr [ebp + 0xc] */
   3061     edx = MEM32(ebp + 0x8); /* 0x2D006AC0: mov edx, dword ptr [ebp + 8] */
   3062     PUSH32(esp, eax); /* 0x2D006AC3: push eax */
   3063     PUSH32(esp, edx); /* 0x2D006AC4: push edx */
   3064     RECOMP_ICALL(MEM32(0x2D0094D0)); /* 0x2D006AC5: call dword ptr [0x2d0094d0] */
   3065     RECOMP_FLAGS_IN();
   3066     ebp = POP32_VAL(esp); /* 0x2D006ACB: pop ebp */
   3067     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D006ACC: ret 8 */
   3068 L_2D006ACF:
   3069     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3070     SET_LO8(eax, 0); /* 0x2D006ACF: xor al, al */
   3071     _cf = 0;
   3072     _flag_k = FK_NARROW(FK_TEST, 24);
   3073     ebp = POP32_VAL(esp); /* 0x2D006AD1: pop ebp */
   3074     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D006AD2: ret 8 */
   3075     RECOMP_REGS_OUT();
   3076 }
   3077 
   3078 void sub_2D006AE0(void) {
   3079     int _fpu_cmp = 0;
   3080     uint32_t _cf = 0;
   3081     int _df = 1;
   3082     uint32_t _flag_k = FK_NONE;
   3083     uint32_t _flag_a = 0, _flag_b = 0;
   3084     uint32_t _itail_tgt = 0;
   3085     RECOMP_REGS_LOCALS
   3086     RECOMP_ENTER(0x2D006AE0u);
   3087 
   3088 L_2D006AE0:
   3089     PUSH32(esp, ebp); /* 0x2D006AE0: push ebp */
   3090     ebp = esp; /* 0x2D006AE1: mov ebp, esp */
   3091     ecx = MEM32(0x2D01752C); /* 0x2D006AE3: mov ecx, dword ptr [0x2d01752c] */
   3092     /* test ecx, ecx */ /* 0x2D006AE9: test ecx, ecx */
   3093     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3094     _cf = 0;
   3095     _flag_k = FK_TEST;
   3096     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006AF7; /* 0x2D006AEB: je 0x2d006af7 */
   3097 L_2D006AED:
   3098     eax = MEM32(ebp + 0x8); /* 0x2D006AED: mov eax, dword ptr [ebp + 8] */
   3099     PUSH32(esp, eax); /* 0x2D006AF0: push eax */
   3100     RECOMP_ICALL(MEM32(0x2D0094D4)); /* 0x2D006AF1: call dword ptr [0x2d0094d4] */
   3101     RECOMP_FLAGS_IN();
   3102 L_2D006AF7:
   3103     ebp = POP32_VAL(esp); /* 0x2D006AF7: pop ebp */
   3104     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006AF8: ret 4 */
   3105     RECOMP_REGS_OUT();
   3106 }
   3107 
   3108 void sub_2D006B00(void) {
   3109     int _fpu_cmp = 0;
   3110     uint32_t _cf = 0;
   3111     int _df = 1;
   3112     uint32_t _flag_k = FK_NONE;
   3113     uint32_t _flag_a = 0, _flag_b = 0;
   3114     uint32_t _itail_tgt = 0;
   3115     RECOMP_REGS_LOCALS
   3116     RECOMP_ENTER(0x2D006B00u);
   3117 
   3118 L_2D006B00:
   3119     PUSH32(esp, ebp); /* 0x2D006B00: push ebp */
   3120     ebp = esp; /* 0x2D006B01: mov ebp, esp */
   3121     ecx = MEM32(0x2D01752C); /* 0x2D006B03: mov ecx, dword ptr [0x2d01752c] */
   3122     /* test ecx, ecx */ /* 0x2D006B09: test ecx, ecx */
   3123     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3124     _cf = 0;
   3125     _flag_k = FK_TEST;
   3126     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006B1B; /* 0x2D006B0B: je 0x2d006b1b */
   3127 L_2D006B0D:
   3128     eax = MEM32(ebp + 0x8); /* 0x2D006B0D: mov eax, dword ptr [ebp + 8] */
   3129     PUSH32(esp, eax); /* 0x2D006B10: push eax */
   3130     RECOMP_ICALL(MEM32(0x2D0094D8)); /* 0x2D006B11: call dword ptr [0x2d0094d8] */
   3131     RECOMP_FLAGS_IN();
   3132     ebp = POP32_VAL(esp); /* 0x2D006B17: pop ebp */
   3133     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006B18: ret 4 */
   3134 L_2D006B1B:
   3135     SET_LO8(eax, 1); /* 0x2D006B1B: mov al, 1 */
   3136     ebp = POP32_VAL(esp); /* 0x2D006B1D: pop ebp */
   3137     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006B1E: ret 4 */
   3138     RECOMP_REGS_OUT();
   3139 }
   3140 
   3141 void sub_2D006B30(void) {
   3142     int _fpu_cmp = 0;
   3143     uint32_t _cf = 0;
   3144     int _df = 1;
   3145     uint32_t _flag_k = FK_NONE;
   3146     uint32_t _flag_a = 0, _flag_b = 0;
   3147     uint32_t _itail_tgt = 0;
   3148     RECOMP_REGS_LOCALS
   3149     RECOMP_ENTER(0x2D006B30u);
   3150 
   3151 L_2D006B30:
   3152     PUSH32(esp, ebp); /* 0x2D006B30: push ebp */
   3153     ebp = esp; /* 0x2D006B31: mov ebp, esp */
   3154     ecx = MEM32(0x2D01752C); /* 0x2D006B33: mov ecx, dword ptr [0x2d01752c] */
   3155     /* test ecx, ecx */ /* 0x2D006B39: test ecx, ecx */
   3156     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3157     _cf = 0;
   3158     _flag_k = FK_TEST;
   3159     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006B4B; /* 0x2D006B3B: je 0x2d006b4b */
   3160 L_2D006B3D:
   3161     eax = MEM32(ebp + 0x8); /* 0x2D006B3D: mov eax, dword ptr [ebp + 8] */
   3162     PUSH32(esp, eax); /* 0x2D006B40: push eax */
   3163     RECOMP_ICALL(MEM32(0x2D0094DC)); /* 0x2D006B41: call dword ptr [0x2d0094dc] */
   3164     RECOMP_FLAGS_IN();
   3165     ebp = POP32_VAL(esp); /* 0x2D006B47: pop ebp */
   3166     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006B48: ret 4 */
   3167 L_2D006B4B:
   3168     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3169     eax = 0; /* 0x2D006B4B: xor eax, eax */
   3170     _cf = 0;
   3171     _flag_k = FK_TEST;
   3172     ebp = POP32_VAL(esp); /* 0x2D006B4D: pop ebp */
   3173     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006B4E: ret 4 */
   3174     RECOMP_REGS_OUT();
   3175 }
   3176 
   3177 void sub_2D006B60(void) {
   3178     int _fpu_cmp = 0;
   3179     uint32_t _cf = 0;
   3180     int _df = 1;
   3181     uint32_t _flag_k = FK_NONE;
   3182     uint32_t _flag_a = 0, _flag_b = 0;
   3183     uint32_t _itail_tgt = 0;
   3184     RECOMP_REGS_LOCALS
   3185     RECOMP_ENTER(0x2D006B60u);
   3186 
   3187 L_2D006B60:
   3188     PUSH32(esp, ebp); /* 0x2D006B60: push ebp */
   3189     ebp = esp; /* 0x2D006B61: mov ebp, esp */
   3190     PUSH32(esp, 0xFFFFFFFFu); /* 0x2D006B63: push -1 */
   3191     PUSH32(esp, 0x2D008439u); /* 0x2D006B65: push 0x2d008439 */
   3192     eax = MEM32(FS_BASE + (0)); /* 0x2D006B6A: mov eax, dword ptr fs:[0] */
   3193     PUSH32(esp, eax); /* 0x2D006B70: push eax */
   3194     MEM32(FS_BASE + (0)) = esp; /* 0x2D006B71: mov dword ptr fs:[0], esp */
   3195     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu);
   3196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3197     esp = esp - 0x4Cu; /* 0x2D006B78: sub esp, 0x4c */
   3198     _flag_k = FK_CMP;
   3199     SET_LO8(ecx, MEM8(0x2D017414)); /* 0x2D006B7B: mov cl, byte ptr [0x2d017414] */
   3200     SET_LO8(eax, 1); /* 0x2D006B81: mov al, 1 */
   3201     /* test LO8(eax), LO8(ecx) */ /* 0x2D006B83: test al, cl */
   3202     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3203     _cf = 0;
   3204     _flag_k = FK_NARROW(FK_TEST, 24);
   3205     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D006BBC; /* 0x2D006B85: jne 0x2d006bbc */
   3206 L_2D006B87:
   3207     SET_LO8(edx, LO8(ecx)); /* 0x2D006B87: mov dl, cl */
   3208     _flag_a = (uint32_t)((LO8(edx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(edx) | LO8(eax))) << 24;
   3209     SET_LO8(edx, LO8(edx) | LO8(eax)); /* 0x2D006B89: or dl, al */
   3210     _cf = 0;
   3211     _flag_k = FK_NARROW(FK_TEST, 24);
   3212     PUSH32(esp, 0x2D006F00u); /* 0x2D006B8B: push 0x2d006f00 */
   3213     MEM8(0x2D017414) = (uint8_t)(LO8(edx)); /* 0x2D006B90: mov byte ptr [0x2d017414], dl */
   3214     MEM32(0x2D017408) = 0; /* 0x2D006B96: mov dword ptr [0x2d017408], 0 */
   3215     MEM32(0x2D01740C) = 0; /* 0x2D006BA0: mov dword ptr [0x2d01740c], 0 */
   3216     MEM32(0x2D017410) = 0; /* 0x2D006BAA: mov dword ptr [0x2d017410], 0 */
   3217     RECOMP_ICALL(0x2D00807Eu); /* 0x2D006BB4: call 0x2d00807e */ /* not lifted */
   3218     RECOMP_FLAGS_IN();
   3219     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3220     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3221     esp = esp + 4; /* 0x2D006BB9: add esp, 4 */
   3222     _flag_k = FK_ADD;
   3223 L_2D006BBC:
   3224     MEM32(ebp + (-0x18)) = 0; /* 0x2D006BBC: mov dword ptr [ebp - 0x18], 0 */
   3225     eax = MEM32(ebp + (-0x18)); /* 0x2D006BC3: mov eax, dword ptr [ebp - 0x18] */
   3226     MEM32(0x2D017408) = eax; /* 0x2D006BC6: mov dword ptr [0x2d017408], eax */
   3227     eax = MEM32(0x2D01752C); /* 0x2D006BCB: mov eax, dword ptr [0x2d01752c] */
   3228     /* test eax, eax */ /* 0x2D006BD0: test eax, eax */
   3229     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3230     _cf = 0;
   3231     _flag_k = FK_TEST;
   3232     MEM32(ebp + (-0x14)) = 0x40000000u; /* 0x2D006BD2: mov dword ptr [ebp - 0x14], 0x40000000 */
   3233     ecx = MEM32(ebp + (-0x14)); /* 0x2D006BD9: mov ecx, dword ptr [ebp - 0x14] */
   3234     MEM32(ebp + (-0x10)) = 0; /* 0x2D006BDC: mov dword ptr [ebp - 0x10], 0 */
   3235     edx = MEM32(ebp + (-0x10)); /* 0x2D006BE3: mov edx, dword ptr [ebp - 0x10] */
   3236     PUSH32(esp, esi); /* 0x2D006BE6: push esi */
   3237     PUSH32(esp, edi); /* 0x2D006BE7: push edi */
   3238     MEM32(0x2D01740C) = ecx; /* 0x2D006BE8: mov dword ptr [0x2d01740c], ecx */
   3239     MEM32(0x2D017410) = edx; /* 0x2D006BEE: mov dword ptr [0x2d017410], edx */
   3240     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006EDE; /* 0x2D006BF4: je 0x2d006ede */
   3241 L_2D006BFA:
   3242     eax = MEM32(ebp + 0x8); /* 0x2D006BFA: mov eax, dword ptr [ebp + 8] */
   3243     PUSH32(esp, 0); /* 0x2D006BFD: push 0 */
   3244     PUSH32(esp, 0x2D0173D0u); /* 0x2D006BFF: push 0x2d0173d0 */
   3245     PUSH32(esp, 0x2D017070u); /* 0x2D006C04: push 0x2d017070 */
   3246     PUSH32(esp, 0); /* 0x2D006C09: push 0 */
   3247     PUSH32(esp, eax); /* 0x2D006C0B: push eax */
   3248     RECOMP_ICALL(MEM32(0x2D0095F8)); /* 0x2D006C0C: call dword ptr [0x2d0095f8] */
   3249     RECOMP_FLAGS_IN();
   3250     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3251     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3252     esp = esp + 4; /* 0x2D006C12: add esp, 4 */
   3253     _flag_k = FK_ADD;
   3254     PUSH32(esp, eax); /* 0x2D006C15: push eax */
   3255     RECOMP_ICALL(0x2D0081ACu); /* 0x2D006C16: call 0x2d0081ac */ /* not lifted */
   3256     RECOMP_FLAGS_IN();
   3257     esi = eax; /* 0x2D006C1B: mov esi, eax */
   3258     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3259     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3260     esp = esp + 0x14u; /* 0x2D006C1D: add esp, 0x14 */
   3261     _flag_k = FK_ADD;
   3262     /* test esi, esi */ /* 0x2D006C20: test esi, esi */
   3263     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3264     _cf = 0;
   3265     _flag_k = FK_TEST;
   3266     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006EDE; /* 0x2D006C22: je 0x2d006ede */
   3267 L_2D006C28:
   3268     eax = MEM32(esi + 0xC8); /* 0x2D006C28: mov eax, dword ptr [esi + 0xc8] */
   3269     /* test eax, eax */ /* 0x2D006C2E: test eax, eax */
   3270     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3271     _cf = 0;
   3272     _flag_k = FK_TEST;
   3273     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006E08; /* 0x2D006C30: je 0x2d006e08 */
   3274 L_2D006C36:
   3275     edi = MEM32(0x2D0095FC); /* 0x2D006C36: mov edi, dword ptr [0x2d0095fc] */
   3276     ecx = esi; /* 0x2D006C3C: mov ecx, esi */
   3277     RECOMP_ICALL(edi); /* 0x2D006C3E: call edi */
   3278     RECOMP_FLAGS_IN();
   3279     ecx = MEM32(eax + 0x28); /* 0x2D006C40: mov ecx, dword ptr [eax + 0x28] */
   3280     /* test ecx, ecx */ /* 0x2D006C43: test ecx, ecx */
   3281     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3282     _cf = 0;
   3283     _flag_k = FK_TEST;
   3284     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006E08; /* 0x2D006C45: je 0x2d006e08 */
   3285 L_2D006C4B:
   3286     ecx = esi; /* 0x2D006C4B: mov ecx, esi */
   3287     RECOMP_ICALL(edi); /* 0x2D006C4D: call edi */
   3288     RECOMP_FLAGS_IN();
   3289     eax = MEM32(eax + 0x28); /* 0x2D006C4F: mov eax, dword ptr [eax + 0x28] */
   3290     SET_LO8(ecx, MEM8(eax + 0x288)); /* 0x2D006C52: mov cl, byte ptr [eax + 0x288] */
   3291     /* test LO8(ecx), LO8(ecx) */ /* 0x2D006C58: test cl, cl */
   3292     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3293     _cf = 0;
   3294     _flag_k = FK_NARROW(FK_TEST, 24);
   3295     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D006C8B; /* 0x2D006C5A: jne 0x2d006c8b */
   3296 L_2D006C5C:
   3297     MEM32(ebp + (-0x18)) = 0xBF800000u; /* 0x2D006C5C: mov dword ptr [ebp - 0x18], 0xbf800000 */
   3298     ecx = MEM32(ebp + (-0x18)); /* 0x2D006C63: mov ecx, dword ptr [ebp - 0x18] */
   3299     MEM32(ebp + (-0x14)) = 0; /* 0x2D006C66: mov dword ptr [ebp - 0x14], 0 */
   3300     edx = MEM32(ebp + (-0x14)); /* 0x2D006C6D: mov edx, dword ptr [ebp - 0x14] */
   3301     MEM32(ebp + (-0x10)) = 0; /* 0x2D006C70: mov dword ptr [ebp - 0x10], 0 */
   3302     eax = MEM32(ebp + (-0x10)); /* 0x2D006C77: mov eax, dword ptr [ebp - 0x10] */
   3303     MEM32(0x2D017408) = ecx; /* 0x2D006C7A: mov dword ptr [0x2d017408], ecx */
   3304     MEM32(0x2D01740C) = edx; /* 0x2D006C80: mov dword ptr [0x2d01740c], edx */
   3305     goto L_2D006ED9; /* 0x2D006C86: jmp 0x2d006ed9 */
   3306 L_2D006C8B:
   3307     ecx = esi; /* 0x2D006C8B: mov ecx, esi */
   3308     RECOMP_ICALL(edi); /* 0x2D006C8D: call edi */
   3309     RECOMP_FLAGS_IN();
   3310     esi = eax; /* 0x2D006C8F: mov esi, eax */
   3311     MEM32(ebp + (-0x58)) = 0x3F800000u; /* 0x2D006C91: mov dword ptr [ebp - 0x58], 0x3f800000 */
   3312     MEM32(ebp + (-0x54)) = 0; /* 0x2D006C98: mov dword ptr [ebp - 0x54], 0 */
   3313     MEM32(ebp + (-0x50)) = 0; /* 0x2D006C9F: mov dword ptr [ebp - 0x50], 0 */
   3314     MEM32(ebp + (-0x4C)) = 0; /* 0x2D006CA6: mov dword ptr [ebp - 0x4c], 0 */
   3315     MEM32(ebp + (-0x48)) = 0; /* 0x2D006CAD: mov dword ptr [ebp - 0x48], 0 */
   3316     MEM32(ebp + (-0x44)) = 0x3F800000u; /* 0x2D006CB4: mov dword ptr [ebp - 0x44], 0x3f800000 */
   3317     MEM32(ebp + (-0x40)) = 0; /* 0x2D006CBB: mov dword ptr [ebp - 0x40], 0 */
   3318     MEM32(ebp + (-0x3C)) = 0; /* 0x2D006CC2: mov dword ptr [ebp - 0x3c], 0 */
   3319     MEM32(ebp + (-0x38)) = 0; /* 0x2D006CC9: mov dword ptr [ebp - 0x38], 0 */
   3320     MEM32(ebp + (-0x34)) = 0; /* 0x2D006CD0: mov dword ptr [ebp - 0x34], 0 */
   3321     MEM32(ebp + (-0x30)) = 0x3F800000u; /* 0x2D006CD7: mov dword ptr [ebp - 0x30], 0x3f800000 */
   3322     MEM32(ebp + (-0x2C)) = 0; /* 0x2D006CDE: mov dword ptr [ebp - 0x2c], 0 */
   3323     MEM32(ebp + (-0x28)) = 0; /* 0x2D006CE5: mov dword ptr [ebp - 0x28], 0 */
   3324     MEM32(ebp + (-0x24)) = 0; /* 0x2D006CEC: mov dword ptr [ebp - 0x24], 0 */
   3325     MEM32(ebp + (-0x20)) = 0; /* 0x2D006CF3: mov dword ptr [ebp - 0x20], 0 */
   3326     MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x2D006CFA: mov dword ptr [ebp - 0x1c], 0x3f800000 */
   3327     ecx = ebp + (-0x58); /* 0x2D006D01: lea ecx, [ebp - 0x58] */
   3328     PUSH32(esp, ecx); /* 0x2D006D04: push ecx */
   3329     PUSH32(esp, 0); /* 0x2D006D05: push 0 */
   3330     ecx = esi; /* 0x2D006D07: mov ecx, esi */
   3331     MEM32(ebp + (-0x4)) = 0; /* 0x2D006D09: mov dword ptr [ebp - 4], 0 */
   3332     RECOMP_ICALL(MEM32(0x2D009108)); /* 0x2D006D10: call dword ptr [0x2d009108] */
   3333     RECOMP_FLAGS_IN();
   3334     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x2D006D16: fld dword ptr [ebp - 0x28] */
   3335     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2D009694)); /* 0x2D006D19: fcomp dword ptr [0x2d009694] */
   3336     fp_pop();
   3337     eax = MEM32(ebp + (-0x24)); /* 0x2D006D1F: mov eax, dword ptr [ebp - 0x24] */
   3338     edx = MEM32(ebp + (-0x28)); /* 0x2D006D22: mov edx, dword ptr [ebp - 0x28] */
   3339     ecx = MEM32(ebp + (-0x20)); /* 0x2D006D25: mov ecx, dword ptr [ebp - 0x20] */
   3340     MEM32(0x2D01740C) = eax; /* 0x2D006D28: mov dword ptr [0x2d01740c], eax */
   3341     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2D006D2D: fnstsw ax */
   3342     MEM32(0x2D017408) = edx; /* 0x2D006D2F: mov dword ptr [0x2d017408], edx */
   3343     MEM32(0x2D017410) = ecx; /* 0x2D006D35: mov dword ptr [0x2d017410], ecx */
   3344     /* test HI8(eax), 0x40u */ /* 0x2D006D3B: test ah, 0x40 */
   3345     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3346     _cf = 0;
   3347     _flag_k = FK_NARROW(FK_TEST, 24);
   3348     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006D68; /* 0x2D006D3E: je 0x2d006d68 */
   3349 L_2D006D40:
   3350     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2D006D40: fld dword ptr [ebp - 0x24] */
   3351     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2D009694)); /* 0x2D006D43: fcomp dword ptr [0x2d009694] */
   3352     fp_pop();
   3353     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2D006D49: fnstsw ax */
   3354     /* test HI8(eax), 0x40u */ /* 0x2D006D4B: test ah, 0x40 */
   3355     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3356     _cf = 0;
   3357     _flag_k = FK_NARROW(FK_TEST, 24);
   3358     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006D68; /* 0x2D006D4E: je 0x2d006d68 */
   3359 L_2D006D50:
   3360     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D006D50: fld dword ptr [ebp - 0x20] */
   3361     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2D009694)); /* 0x2D006D53: fcomp dword ptr [0x2d009694] */
   3362     fp_pop();
   3363     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2D006D59: fnstsw ax */
   3364     /* test HI8(eax), 0x40u */ /* 0x2D006D5B: test ah, 0x40 */
   3365     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3366     _cf = 0;
   3367     _flag_k = FK_NARROW(FK_TEST, 24);
   3368     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006D68; /* 0x2D006D5E: je 0x2d006d68 */
   3369 L_2D006D60:
   3370     fp_push(*(float*)&MEM32(0x2D0096DC)); /* 0x2D006D60: fld dword ptr [0x2d0096dc] */
   3371     goto L_2D006D6E; /* 0x2D006D66: jmp 0x2d006d6e */
   3372 L_2D006D68:
   3373     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006D68: fld dword ptr [0x2d01740c] */
   3374 L_2D006D6E:
   3375     _st[0] += (double)*(float*)ADDR(0x2D0096D8); /* 0x2D006D6E: fadd dword ptr [0x2d0096d8] */
   3376     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D01740C) = _v; } /* 0x2D006D74: fstp dword ptr [0x2d01740c] */
   3377     esi = MEM32(esi + 0x28); /* 0x2D006D7A: mov esi, dword ptr [esi + 0x28] */
   3378     ecx = esi + 0x3C; /* 0x2D006D7D: lea ecx, [esi + 0x3c] */
   3379     RECOMP_ICALL(MEM32(0x2D009104)); /* 0x2D006D80: call dword ptr [0x2d009104] */
   3380     RECOMP_FLAGS_IN();
   3381     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006D86: fld dword ptr [0x2d017408] */
   3382     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x2D006D8C: fmul dword ptr [eax + 4] */
   3383     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006D8F: fld dword ptr [0x2d017410] */
   3384     _st[0] *= (double)*(float*)ADDR(eax + 0x24); /* 0x2D006D95: fmul dword ptr [eax + 0x24] */
   3385     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006D98: faddp st(1) */
   3386     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006D9A: fld dword ptr [0x2d01740c] */
   3387     _st[0] *= (double)*(float*)ADDR(eax + 0x14); /* 0x2D006DA0: fmul dword ptr [eax + 0x14] */
   3388     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DA3: faddp st(1) */
   3389     _st[0] += (double)*(float*)ADDR(eax + 0x34); /* 0x2D006DA5: fadd dword ptr [eax + 0x34] */
   3390     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006DA8: fld dword ptr [0x2d017408] */
   3391     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x2D006DAE: fmul dword ptr [eax + 8] */
   3392     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006DB1: fld dword ptr [0x2d017410] */
   3393     _st[0] *= (double)*(float*)ADDR(eax + 0x28); /* 0x2D006DB7: fmul dword ptr [eax + 0x28] */
   3394     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DBA: faddp st(1) */
   3395     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006DBC: fld dword ptr [0x2d01740c] */
   3396     _st[0] *= (double)*(float*)ADDR(eax + 0x18); /* 0x2D006DC2: fmul dword ptr [eax + 0x18] */
   3397     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DC5: faddp st(1) */
   3398     _st[0] += (double)*(float*)ADDR(eax + 0x38); /* 0x2D006DC7: fadd dword ptr [eax + 0x38] */
   3399     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2D006DCA: fstp dword ptr [ebp + 8] */
   3400     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006DCD: fld dword ptr [0x2d017410] */
   3401     edx = MEM32(ebp + 0x8); /* 0x2D006DD3: mov edx, dword ptr [ebp + 8] */
   3402     _st[0] *= (double)*(float*)ADDR(eax + 0x20); /* 0x2D006DD6: fmul dword ptr [eax + 0x20] */
   3403     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006DD9: fld dword ptr [0x2d01740c] */
   3404     _st[0] *= (double)*(float*)ADDR(eax + 0x10); /* 0x2D006DDF: fmul dword ptr [eax + 0x10] */
   3405     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DE2: faddp st(1) */
   3406     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006DE4: fld dword ptr [0x2d017408] */
   3407     _st[0] *= (double)*(float*)ADDR(eax); /* 0x2D006DEA: fmul dword ptr [eax] */
   3408     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DEC: faddp st(1) */
   3409     _st[0] += (double)*(float*)ADDR(eax + 0x30); /* 0x2D006DEE: fadd dword ptr [eax + 0x30] */
   3410     MEM32(0x2D017410) = edx; /* 0x2D006DF1: mov dword ptr [0x2d017410], edx */
   3411     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017408) = _v; } /* 0x2D006DF7: fstp dword ptr [0x2d017408] */
   3412     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D01740C) = _v; } /* 0x2D006DFD: fstp dword ptr [0x2d01740c] */
   3413     goto L_2D006EDE; /* 0x2D006E03: jmp 0x2d006ede */
   3414 L_2D006E08:
   3415     eax = MEM32(esi + 0xC4); /* 0x2D006E08: mov eax, dword ptr [esi + 0xc4] */
   3416     /* test eax, eax */ /* 0x2D006E0E: test eax, eax */
   3417     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3418     _cf = 0;
   3419     _flag_k = FK_TEST;
   3420     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006EDE; /* 0x2D006E10: je 0x2d006ede */
   3421 L_2D006E16:
   3422     edi = MEM32(0x2D009590); /* 0x2D006E16: mov edi, dword ptr [0x2d009590] */
   3423     ecx = esi; /* 0x2D006E1C: mov ecx, esi */
   3424     RECOMP_ICALL(edi); /* 0x2D006E1E: call edi */
   3425     RECOMP_FLAGS_IN();
   3426     ecx = MEM32(eax + 0x10); /* 0x2D006E20: mov ecx, dword ptr [eax + 0x10] */
   3427     /* test ecx, ecx */ /* 0x2D006E23: test ecx, ecx */
   3428     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3429     _cf = 0;
   3430     _flag_k = FK_TEST;
   3431     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006EDE; /* 0x2D006E25: je 0x2d006ede */
   3432 L_2D006E2B:
   3433     ecx = esi; /* 0x2D006E2B: mov ecx, esi */
   3434     RECOMP_ICALL(edi); /* 0x2D006E2D: call edi */
   3435     RECOMP_FLAGS_IN();
   3436     esi = eax; /* 0x2D006E2F: mov esi, eax */
   3437     ecx = esi; /* 0x2D006E31: mov ecx, esi */
   3438     MEM32(0x2D017410) = 0; /* 0x2D006E33: mov dword ptr [0x2d017410], 0 */
   3439     MEM32(0x2D017408) = 0; /* 0x2D006E3D: mov dword ptr [0x2d017408], 0 */
   3440     RECOMP_ICALL(MEM32(0x2D009100)); /* 0x2D006E47: call dword ptr [0x2d009100] */
   3441     RECOMP_FLAGS_IN();
   3442     _st[0] += (double)*(float*)ADDR(0x2D0096D4); /* 0x2D006E4D: fadd dword ptr [0x2d0096d4] */
   3443     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D01740C) = _v; } /* 0x2D006E53: fstp dword ptr [0x2d01740c] */
   3444     ecx = MEM32(esi + 0x10); /* 0x2D006E59: mov ecx, dword ptr [esi + 0x10] */
   3445     RECOMP_ICALL(MEM32(0x2D0090FC)); /* 0x2D006E5C: call dword ptr [0x2d0090fc] */
   3446     RECOMP_FLAGS_IN();
   3447     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006E62: fld dword ptr [0x2d017408] */
   3448     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x2D006E68: fmul dword ptr [eax + 4] */
   3449     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006E6B: fld dword ptr [0x2d017410] */
   3450     _st[0] *= (double)*(float*)ADDR(eax + 0x24); /* 0x2D006E71: fmul dword ptr [eax + 0x24] */
   3451     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006E74: faddp st(1) */
   3452     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006E76: fld dword ptr [0x2d01740c] */
   3453     _st[0] *= (double)*(float*)ADDR(eax + 0x14); /* 0x2D006E7C: fmul dword ptr [eax + 0x14] */
   3454     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006E7F: faddp st(1) */
   3455     _st[0] += (double)*(float*)ADDR(eax + 0x34); /* 0x2D006E81: fadd dword ptr [eax + 0x34] */
   3456     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006E84: fld dword ptr [0x2d017408] */
   3457     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x2D006E8A: fmul dword ptr [eax + 8] */
   3458     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006E8D: fld dword ptr [0x2d017410] */
   3459     _st[0] *= (double)*(float*)ADDR(eax + 0x28); /* 0x2D006E93: fmul dword ptr [eax + 0x28] */
   3460     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006E96: faddp st(1) */
   3461     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006E98: fld dword ptr [0x2d01740c] */
   3462     _st[0] *= (double)*(float*)ADDR(eax + 0x18); /* 0x2D006E9E: fmul dword ptr [eax + 0x18] */
   3463     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006EA1: faddp st(1) */
   3464     _st[0] += (double)*(float*)ADDR(eax + 0x38); /* 0x2D006EA3: fadd dword ptr [eax + 0x38] */
   3465     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2D006EA6: fstp dword ptr [ebp + 8] */
   3466     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006EA9: fld dword ptr [0x2d017410] */
   3467     _st[0] *= (double)*(float*)ADDR(eax + 0x20); /* 0x2D006EAF: fmul dword ptr [eax + 0x20] */
   3468     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006EB2: fld dword ptr [0x2d01740c] */
   3469     _st[0] *= (double)*(float*)ADDR(eax + 0x10); /* 0x2D006EB8: fmul dword ptr [eax + 0x10] */
   3470     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006EBB: faddp st(1) */
   3471     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006EBD: fld dword ptr [0x2d017408] */
   3472     _st[0] *= (double)*(float*)ADDR(eax); /* 0x2D006EC3: fmul dword ptr [eax] */
   3473     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006EC5: faddp st(1) */
   3474     _st[0] += (double)*(float*)ADDR(eax + 0x30); /* 0x2D006EC7: fadd dword ptr [eax + 0x30] */
   3475     eax = MEM32(ebp + 0x8); /* 0x2D006ECA: mov eax, dword ptr [ebp + 8] */
   3476     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017408) = _v; } /* 0x2D006ECD: fstp dword ptr [0x2d017408] */
   3477     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D01740C) = _v; } /* 0x2D006ED3: fstp dword ptr [0x2d01740c] */
   3478 L_2D006ED9:
   3479     MEM32(0x2D017410) = eax; /* 0x2D006ED9: mov dword ptr [0x2d017410], eax */
   3480 L_2D006EDE:
   3481     ecx = MEM32(ebp + (-0xC)); /* 0x2D006EDE: mov ecx, dword ptr [ebp - 0xc] */
   3482     edi = POP32_VAL(esp); /* 0x2D006EE1: pop edi */
   3483     eax = 0x2D017408u; /* 0x2D006EE2: mov eax, 0x2d017408 */
   3484     esi = POP32_VAL(esp); /* 0x2D006EE7: pop esi */
   3485     MEM32(FS_BASE + (0)) = ecx; /* 0x2D006EE8: mov dword ptr fs:[0], ecx */
   3486     esp = ebp; /* 0x2D006EEF: mov esp, ebp */
   3487     ebp = POP32_VAL(esp); /* 0x2D006EF1: pop ebp */
   3488     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006EF2: ret 4 */
   3489     RECOMP_REGS_OUT();
   3490 }
   3491 
   3492 void sub_2D006BC3(void) {
   3493     int _fpu_cmp = 0;
   3494     uint32_t _cf = 0;
   3495     int _df = 1;
   3496     uint32_t _flag_k = FK_NONE;
   3497     uint32_t _flag_a = 0, _flag_b = 0;
   3498     uint32_t _itail_tgt = 0;
   3499     RECOMP_REGS_LOCALS
   3500     RECOMP_ENTER(0x2D006BC3u);
   3501 
   3502 L_2D006BC3:
   3503     eax = MEM32(ebp + (-0x18)); /* 0x2D006BC3: mov eax, dword ptr [ebp - 0x18] */
   3504     MEM32(0x2D017408) = eax; /* 0x2D006BC6: mov dword ptr [0x2d017408], eax */
   3505     eax = MEM32(0x2D01752C); /* 0x2D006BCB: mov eax, dword ptr [0x2d01752c] */
   3506     /* test eax, eax */ /* 0x2D006BD0: test eax, eax */
   3507     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3508     _cf = 0;
   3509     _flag_k = FK_TEST;
   3510     MEM32(ebp + (-0x14)) = 0x40000000u; /* 0x2D006BD2: mov dword ptr [ebp - 0x14], 0x40000000 */
   3511     ecx = MEM32(ebp + (-0x14)); /* 0x2D006BD9: mov ecx, dword ptr [ebp - 0x14] */
   3512     MEM32(ebp + (-0x10)) = 0; /* 0x2D006BDC: mov dword ptr [ebp - 0x10], 0 */
   3513     edx = MEM32(ebp + (-0x10)); /* 0x2D006BE3: mov edx, dword ptr [ebp - 0x10] */
   3514     PUSH32(esp, esi); /* 0x2D006BE6: push esi */
   3515     PUSH32(esp, edi); /* 0x2D006BE7: push edi */
   3516     MEM32(0x2D01740C) = ecx; /* 0x2D006BE8: mov dword ptr [0x2d01740c], ecx */
   3517     MEM32(0x2D017410) = edx; /* 0x2D006BEE: mov dword ptr [0x2d017410], edx */
   3518     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006EDE; /* 0x2D006BF4: je 0x2d006ede */
   3519 L_2D006BFA:
   3520     eax = MEM32(ebp + 0x8); /* 0x2D006BFA: mov eax, dword ptr [ebp + 8] */
   3521     PUSH32(esp, 0); /* 0x2D006BFD: push 0 */
   3522     PUSH32(esp, 0x2D0173D0u); /* 0x2D006BFF: push 0x2d0173d0 */
   3523     PUSH32(esp, 0x2D017070u); /* 0x2D006C04: push 0x2d017070 */
   3524     PUSH32(esp, 0); /* 0x2D006C09: push 0 */
   3525     PUSH32(esp, eax); /* 0x2D006C0B: push eax */
   3526     RECOMP_ICALL(MEM32(0x2D0095F8)); /* 0x2D006C0C: call dword ptr [0x2d0095f8] */
   3527     RECOMP_FLAGS_IN();
   3528     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3529     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3530     esp = esp + 4; /* 0x2D006C12: add esp, 4 */
   3531     _flag_k = FK_ADD;
   3532     PUSH32(esp, eax); /* 0x2D006C15: push eax */
   3533     RECOMP_ICALL(0x2D0081ACu); /* 0x2D006C16: call 0x2d0081ac */ /* not lifted */
   3534     RECOMP_FLAGS_IN();
   3535     esi = eax; /* 0x2D006C1B: mov esi, eax */
   3536     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3537     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3538     esp = esp + 0x14u; /* 0x2D006C1D: add esp, 0x14 */
   3539     _flag_k = FK_ADD;
   3540     /* test esi, esi */ /* 0x2D006C20: test esi, esi */
   3541     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3542     _cf = 0;
   3543     _flag_k = FK_TEST;
   3544     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006EDE; /* 0x2D006C22: je 0x2d006ede */
   3545 L_2D006C28:
   3546     eax = MEM32(esi + 0xC8); /* 0x2D006C28: mov eax, dword ptr [esi + 0xc8] */
   3547     /* test eax, eax */ /* 0x2D006C2E: test eax, eax */
   3548     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3549     _cf = 0;
   3550     _flag_k = FK_TEST;
   3551     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006E08; /* 0x2D006C30: je 0x2d006e08 */
   3552 L_2D006C36:
   3553     edi = MEM32(0x2D0095FC); /* 0x2D006C36: mov edi, dword ptr [0x2d0095fc] */
   3554     ecx = esi; /* 0x2D006C3C: mov ecx, esi */
   3555     RECOMP_ICALL(edi); /* 0x2D006C3E: call edi */
   3556     RECOMP_FLAGS_IN();
   3557     ecx = MEM32(eax + 0x28); /* 0x2D006C40: mov ecx, dword ptr [eax + 0x28] */
   3558     /* test ecx, ecx */ /* 0x2D006C43: test ecx, ecx */
   3559     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3560     _cf = 0;
   3561     _flag_k = FK_TEST;
   3562     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006E08; /* 0x2D006C45: je 0x2d006e08 */
   3563 L_2D006C4B:
   3564     ecx = esi; /* 0x2D006C4B: mov ecx, esi */
   3565     RECOMP_ICALL(edi); /* 0x2D006C4D: call edi */
   3566     RECOMP_FLAGS_IN();
   3567     eax = MEM32(eax + 0x28); /* 0x2D006C4F: mov eax, dword ptr [eax + 0x28] */
   3568     SET_LO8(ecx, MEM8(eax + 0x288)); /* 0x2D006C52: mov cl, byte ptr [eax + 0x288] */
   3569     /* test LO8(ecx), LO8(ecx) */ /* 0x2D006C58: test cl, cl */
   3570     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3571     _cf = 0;
   3572     _flag_k = FK_NARROW(FK_TEST, 24);
   3573     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D006C8B; /* 0x2D006C5A: jne 0x2d006c8b */
   3574 L_2D006C5C:
   3575     MEM32(ebp + (-0x18)) = 0xBF800000u; /* 0x2D006C5C: mov dword ptr [ebp - 0x18], 0xbf800000 */
   3576     ecx = MEM32(ebp + (-0x18)); /* 0x2D006C63: mov ecx, dword ptr [ebp - 0x18] */
   3577     MEM32(ebp + (-0x14)) = 0; /* 0x2D006C66: mov dword ptr [ebp - 0x14], 0 */
   3578     edx = MEM32(ebp + (-0x14)); /* 0x2D006C6D: mov edx, dword ptr [ebp - 0x14] */
   3579     MEM32(ebp + (-0x10)) = 0; /* 0x2D006C70: mov dword ptr [ebp - 0x10], 0 */
   3580     eax = MEM32(ebp + (-0x10)); /* 0x2D006C77: mov eax, dword ptr [ebp - 0x10] */
   3581     MEM32(0x2D017408) = ecx; /* 0x2D006C7A: mov dword ptr [0x2d017408], ecx */
   3582     MEM32(0x2D01740C) = edx; /* 0x2D006C80: mov dword ptr [0x2d01740c], edx */
   3583     goto L_2D006ED9; /* 0x2D006C86: jmp 0x2d006ed9 */
   3584 L_2D006C8B:
   3585     ecx = esi; /* 0x2D006C8B: mov ecx, esi */
   3586     RECOMP_ICALL(edi); /* 0x2D006C8D: call edi */
   3587     RECOMP_FLAGS_IN();
   3588     esi = eax; /* 0x2D006C8F: mov esi, eax */
   3589     MEM32(ebp + (-0x58)) = 0x3F800000u; /* 0x2D006C91: mov dword ptr [ebp - 0x58], 0x3f800000 */
   3590     MEM32(ebp + (-0x54)) = 0; /* 0x2D006C98: mov dword ptr [ebp - 0x54], 0 */
   3591     MEM32(ebp + (-0x50)) = 0; /* 0x2D006C9F: mov dword ptr [ebp - 0x50], 0 */
   3592     MEM32(ebp + (-0x4C)) = 0; /* 0x2D006CA6: mov dword ptr [ebp - 0x4c], 0 */
   3593     MEM32(ebp + (-0x48)) = 0; /* 0x2D006CAD: mov dword ptr [ebp - 0x48], 0 */
   3594     MEM32(ebp + (-0x44)) = 0x3F800000u; /* 0x2D006CB4: mov dword ptr [ebp - 0x44], 0x3f800000 */
   3595     MEM32(ebp + (-0x40)) = 0; /* 0x2D006CBB: mov dword ptr [ebp - 0x40], 0 */
   3596     MEM32(ebp + (-0x3C)) = 0; /* 0x2D006CC2: mov dword ptr [ebp - 0x3c], 0 */
   3597     MEM32(ebp + (-0x38)) = 0; /* 0x2D006CC9: mov dword ptr [ebp - 0x38], 0 */
   3598     MEM32(ebp + (-0x34)) = 0; /* 0x2D006CD0: mov dword ptr [ebp - 0x34], 0 */
   3599     MEM32(ebp + (-0x30)) = 0x3F800000u; /* 0x2D006CD7: mov dword ptr [ebp - 0x30], 0x3f800000 */
   3600     MEM32(ebp + (-0x2C)) = 0; /* 0x2D006CDE: mov dword ptr [ebp - 0x2c], 0 */
   3601     MEM32(ebp + (-0x28)) = 0; /* 0x2D006CE5: mov dword ptr [ebp - 0x28], 0 */
   3602     MEM32(ebp + (-0x24)) = 0; /* 0x2D006CEC: mov dword ptr [ebp - 0x24], 0 */
   3603     MEM32(ebp + (-0x20)) = 0; /* 0x2D006CF3: mov dword ptr [ebp - 0x20], 0 */
   3604     MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x2D006CFA: mov dword ptr [ebp - 0x1c], 0x3f800000 */
   3605     ecx = ebp + (-0x58); /* 0x2D006D01: lea ecx, [ebp - 0x58] */
   3606     PUSH32(esp, ecx); /* 0x2D006D04: push ecx */
   3607     PUSH32(esp, 0); /* 0x2D006D05: push 0 */
   3608     ecx = esi; /* 0x2D006D07: mov ecx, esi */
   3609     MEM32(ebp + (-0x4)) = 0; /* 0x2D006D09: mov dword ptr [ebp - 4], 0 */
   3610     RECOMP_ICALL(MEM32(0x2D009108)); /* 0x2D006D10: call dword ptr [0x2d009108] */
   3611     RECOMP_FLAGS_IN();
   3612     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x2D006D16: fld dword ptr [ebp - 0x28] */
   3613     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2D009694)); /* 0x2D006D19: fcomp dword ptr [0x2d009694] */
   3614     fp_pop();
   3615     eax = MEM32(ebp + (-0x24)); /* 0x2D006D1F: mov eax, dword ptr [ebp - 0x24] */
   3616     edx = MEM32(ebp + (-0x28)); /* 0x2D006D22: mov edx, dword ptr [ebp - 0x28] */
   3617     ecx = MEM32(ebp + (-0x20)); /* 0x2D006D25: mov ecx, dword ptr [ebp - 0x20] */
   3618     MEM32(0x2D01740C) = eax; /* 0x2D006D28: mov dword ptr [0x2d01740c], eax */
   3619     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2D006D2D: fnstsw ax */
   3620     MEM32(0x2D017408) = edx; /* 0x2D006D2F: mov dword ptr [0x2d017408], edx */
   3621     MEM32(0x2D017410) = ecx; /* 0x2D006D35: mov dword ptr [0x2d017410], ecx */
   3622     /* test HI8(eax), 0x40u */ /* 0x2D006D3B: test ah, 0x40 */
   3623     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3624     _cf = 0;
   3625     _flag_k = FK_NARROW(FK_TEST, 24);
   3626     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006D68; /* 0x2D006D3E: je 0x2d006d68 */
   3627 L_2D006D40:
   3628     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2D006D40: fld dword ptr [ebp - 0x24] */
   3629     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2D009694)); /* 0x2D006D43: fcomp dword ptr [0x2d009694] */
   3630     fp_pop();
   3631     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2D006D49: fnstsw ax */
   3632     /* test HI8(eax), 0x40u */ /* 0x2D006D4B: test ah, 0x40 */
   3633     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3634     _cf = 0;
   3635     _flag_k = FK_NARROW(FK_TEST, 24);
   3636     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006D68; /* 0x2D006D4E: je 0x2d006d68 */
   3637 L_2D006D50:
   3638     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D006D50: fld dword ptr [ebp - 0x20] */
   3639     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2D009694)); /* 0x2D006D53: fcomp dword ptr [0x2d009694] */
   3640     fp_pop();
   3641     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2D006D59: fnstsw ax */
   3642     /* test HI8(eax), 0x40u */ /* 0x2D006D5B: test ah, 0x40 */
   3643     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3644     _cf = 0;
   3645     _flag_k = FK_NARROW(FK_TEST, 24);
   3646     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006D68; /* 0x2D006D5E: je 0x2d006d68 */
   3647 L_2D006D60:
   3648     fp_push(*(float*)&MEM32(0x2D0096DC)); /* 0x2D006D60: fld dword ptr [0x2d0096dc] */
   3649     goto L_2D006D6E; /* 0x2D006D66: jmp 0x2d006d6e */
   3650 L_2D006D68:
   3651     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006D68: fld dword ptr [0x2d01740c] */
   3652 L_2D006D6E:
   3653     _st[0] += (double)*(float*)ADDR(0x2D0096D8); /* 0x2D006D6E: fadd dword ptr [0x2d0096d8] */
   3654     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D01740C) = _v; } /* 0x2D006D74: fstp dword ptr [0x2d01740c] */
   3655     esi = MEM32(esi + 0x28); /* 0x2D006D7A: mov esi, dword ptr [esi + 0x28] */
   3656     ecx = esi + 0x3C; /* 0x2D006D7D: lea ecx, [esi + 0x3c] */
   3657     RECOMP_ICALL(MEM32(0x2D009104)); /* 0x2D006D80: call dword ptr [0x2d009104] */
   3658     RECOMP_FLAGS_IN();
   3659     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006D86: fld dword ptr [0x2d017408] */
   3660     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x2D006D8C: fmul dword ptr [eax + 4] */
   3661     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006D8F: fld dword ptr [0x2d017410] */
   3662     _st[0] *= (double)*(float*)ADDR(eax + 0x24); /* 0x2D006D95: fmul dword ptr [eax + 0x24] */
   3663     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006D98: faddp st(1) */
   3664     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006D9A: fld dword ptr [0x2d01740c] */
   3665     _st[0] *= (double)*(float*)ADDR(eax + 0x14); /* 0x2D006DA0: fmul dword ptr [eax + 0x14] */
   3666     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DA3: faddp st(1) */
   3667     _st[0] += (double)*(float*)ADDR(eax + 0x34); /* 0x2D006DA5: fadd dword ptr [eax + 0x34] */
   3668     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006DA8: fld dword ptr [0x2d017408] */
   3669     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x2D006DAE: fmul dword ptr [eax + 8] */
   3670     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006DB1: fld dword ptr [0x2d017410] */
   3671     _st[0] *= (double)*(float*)ADDR(eax + 0x28); /* 0x2D006DB7: fmul dword ptr [eax + 0x28] */
   3672     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DBA: faddp st(1) */
   3673     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006DBC: fld dword ptr [0x2d01740c] */
   3674     _st[0] *= (double)*(float*)ADDR(eax + 0x18); /* 0x2D006DC2: fmul dword ptr [eax + 0x18] */
   3675     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DC5: faddp st(1) */
   3676     _st[0] += (double)*(float*)ADDR(eax + 0x38); /* 0x2D006DC7: fadd dword ptr [eax + 0x38] */
   3677     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2D006DCA: fstp dword ptr [ebp + 8] */
   3678     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006DCD: fld dword ptr [0x2d017410] */
   3679     edx = MEM32(ebp + 0x8); /* 0x2D006DD3: mov edx, dword ptr [ebp + 8] */
   3680     _st[0] *= (double)*(float*)ADDR(eax + 0x20); /* 0x2D006DD6: fmul dword ptr [eax + 0x20] */
   3681     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006DD9: fld dword ptr [0x2d01740c] */
   3682     _st[0] *= (double)*(float*)ADDR(eax + 0x10); /* 0x2D006DDF: fmul dword ptr [eax + 0x10] */
   3683     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DE2: faddp st(1) */
   3684     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006DE4: fld dword ptr [0x2d017408] */
   3685     _st[0] *= (double)*(float*)ADDR(eax); /* 0x2D006DEA: fmul dword ptr [eax] */
   3686     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DEC: faddp st(1) */
   3687     _st[0] += (double)*(float*)ADDR(eax + 0x30); /* 0x2D006DEE: fadd dword ptr [eax + 0x30] */
   3688     MEM32(0x2D017410) = edx; /* 0x2D006DF1: mov dword ptr [0x2d017410], edx */
   3689     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017408) = _v; } /* 0x2D006DF7: fstp dword ptr [0x2d017408] */
   3690     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D01740C) = _v; } /* 0x2D006DFD: fstp dword ptr [0x2d01740c] */
   3691     goto L_2D006EDE; /* 0x2D006E03: jmp 0x2d006ede */
   3692 L_2D006E08:
   3693     eax = MEM32(esi + 0xC4); /* 0x2D006E08: mov eax, dword ptr [esi + 0xc4] */
   3694     /* test eax, eax */ /* 0x2D006E0E: test eax, eax */
   3695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3696     _cf = 0;
   3697     _flag_k = FK_TEST;
   3698     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006EDE; /* 0x2D006E10: je 0x2d006ede */
   3699 L_2D006E16:
   3700     edi = MEM32(0x2D009590); /* 0x2D006E16: mov edi, dword ptr [0x2d009590] */
   3701     ecx = esi; /* 0x2D006E1C: mov ecx, esi */
   3702     RECOMP_ICALL(edi); /* 0x2D006E1E: call edi */
   3703     RECOMP_FLAGS_IN();
   3704     ecx = MEM32(eax + 0x10); /* 0x2D006E20: mov ecx, dword ptr [eax + 0x10] */
   3705     /* test ecx, ecx */ /* 0x2D006E23: test ecx, ecx */
   3706     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3707     _cf = 0;
   3708     _flag_k = FK_TEST;
   3709     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006EDE; /* 0x2D006E25: je 0x2d006ede */
   3710 L_2D006E2B:
   3711     ecx = esi; /* 0x2D006E2B: mov ecx, esi */
   3712     RECOMP_ICALL(edi); /* 0x2D006E2D: call edi */
   3713     RECOMP_FLAGS_IN();
   3714     esi = eax; /* 0x2D006E2F: mov esi, eax */
   3715     ecx = esi; /* 0x2D006E31: mov ecx, esi */
   3716     MEM32(0x2D017410) = 0; /* 0x2D006E33: mov dword ptr [0x2d017410], 0 */
   3717     MEM32(0x2D017408) = 0; /* 0x2D006E3D: mov dword ptr [0x2d017408], 0 */
   3718     RECOMP_ICALL(MEM32(0x2D009100)); /* 0x2D006E47: call dword ptr [0x2d009100] */
   3719     RECOMP_FLAGS_IN();
   3720     _st[0] += (double)*(float*)ADDR(0x2D0096D4); /* 0x2D006E4D: fadd dword ptr [0x2d0096d4] */
   3721     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D01740C) = _v; } /* 0x2D006E53: fstp dword ptr [0x2d01740c] */
   3722     ecx = MEM32(esi + 0x10); /* 0x2D006E59: mov ecx, dword ptr [esi + 0x10] */
   3723     RECOMP_ICALL(MEM32(0x2D0090FC)); /* 0x2D006E5C: call dword ptr [0x2d0090fc] */
   3724     RECOMP_FLAGS_IN();
   3725     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006E62: fld dword ptr [0x2d017408] */
   3726     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x2D006E68: fmul dword ptr [eax + 4] */
   3727     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006E6B: fld dword ptr [0x2d017410] */
   3728     _st[0] *= (double)*(float*)ADDR(eax + 0x24); /* 0x2D006E71: fmul dword ptr [eax + 0x24] */
   3729     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006E74: faddp st(1) */
   3730     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006E76: fld dword ptr [0x2d01740c] */
   3731     _st[0] *= (double)*(float*)ADDR(eax + 0x14); /* 0x2D006E7C: fmul dword ptr [eax + 0x14] */
   3732     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006E7F: faddp st(1) */
   3733     _st[0] += (double)*(float*)ADDR(eax + 0x34); /* 0x2D006E81: fadd dword ptr [eax + 0x34] */
   3734     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006E84: fld dword ptr [0x2d017408] */
   3735     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x2D006E8A: fmul dword ptr [eax + 8] */
   3736     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006E8D: fld dword ptr [0x2d017410] */
   3737     _st[0] *= (double)*(float*)ADDR(eax + 0x28); /* 0x2D006E93: fmul dword ptr [eax + 0x28] */
   3738     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006E96: faddp st(1) */
   3739     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006E98: fld dword ptr [0x2d01740c] */
   3740     _st[0] *= (double)*(float*)ADDR(eax + 0x18); /* 0x2D006E9E: fmul dword ptr [eax + 0x18] */
   3741     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006EA1: faddp st(1) */
   3742     _st[0] += (double)*(float*)ADDR(eax + 0x38); /* 0x2D006EA3: fadd dword ptr [eax + 0x38] */
   3743     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2D006EA6: fstp dword ptr [ebp + 8] */
   3744     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006EA9: fld dword ptr [0x2d017410] */
   3745     _st[0] *= (double)*(float*)ADDR(eax + 0x20); /* 0x2D006EAF: fmul dword ptr [eax + 0x20] */
   3746     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006EB2: fld dword ptr [0x2d01740c] */
   3747     _st[0] *= (double)*(float*)ADDR(eax + 0x10); /* 0x2D006EB8: fmul dword ptr [eax + 0x10] */
   3748     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006EBB: faddp st(1) */
   3749     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006EBD: fld dword ptr [0x2d017408] */
   3750     _st[0] *= (double)*(float*)ADDR(eax); /* 0x2D006EC3: fmul dword ptr [eax] */
   3751     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006EC5: faddp st(1) */
   3752     _st[0] += (double)*(float*)ADDR(eax + 0x30); /* 0x2D006EC7: fadd dword ptr [eax + 0x30] */
   3753     eax = MEM32(ebp + 0x8); /* 0x2D006ECA: mov eax, dword ptr [ebp + 8] */
   3754     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017408) = _v; } /* 0x2D006ECD: fstp dword ptr [0x2d017408] */
   3755     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D01740C) = _v; } /* 0x2D006ED3: fstp dword ptr [0x2d01740c] */
   3756 L_2D006ED9:
   3757     MEM32(0x2D017410) = eax; /* 0x2D006ED9: mov dword ptr [0x2d017410], eax */
   3758 L_2D006EDE:
   3759     ecx = MEM32(ebp + (-0xC)); /* 0x2D006EDE: mov ecx, dword ptr [ebp - 0xc] */
   3760     edi = POP32_VAL(esp); /* 0x2D006EE1: pop edi */
   3761     eax = 0x2D017408u; /* 0x2D006EE2: mov eax, 0x2d017408 */
   3762     esi = POP32_VAL(esp); /* 0x2D006EE7: pop esi */
   3763     MEM32(FS_BASE + (0)) = ecx; /* 0x2D006EE8: mov dword ptr fs:[0], ecx */
   3764     esp = ebp; /* 0x2D006EEF: mov esp, ebp */
   3765     ebp = POP32_VAL(esp); /* 0x2D006EF1: pop ebp */
   3766     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006EF2: ret 4 */
   3767     RECOMP_REGS_OUT();
   3768 }
   3769 
   3770 void sub_2D006D6E(void) {
   3771     int _fpu_cmp = 0;
   3772     uint32_t _cf = 0;
   3773     int _df = 1;
   3774     uint32_t _flag_k = FK_NONE;
   3775     uint32_t _flag_a = 0, _flag_b = 0;
   3776     uint32_t _itail_tgt = 0;
   3777     RECOMP_REGS_LOCALS
   3778     RECOMP_ENTER(0x2D006D6Eu);
   3779 
   3780 L_2D006D6E:
   3781     _st[0] += (double)*(float*)ADDR(0x2D0096D8); /* 0x2D006D6E: fadd dword ptr [0x2d0096d8] */
   3782     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D01740C) = _v; } /* 0x2D006D74: fstp dword ptr [0x2d01740c] */
   3783     esi = MEM32(esi + 0x28); /* 0x2D006D7A: mov esi, dword ptr [esi + 0x28] */
   3784     ecx = esi + 0x3C; /* 0x2D006D7D: lea ecx, [esi + 0x3c] */
   3785     RECOMP_ICALL(MEM32(0x2D009104)); /* 0x2D006D80: call dword ptr [0x2d009104] */
   3786     RECOMP_FLAGS_IN();
   3787     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006D86: fld dword ptr [0x2d017408] */
   3788     _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x2D006D8C: fmul dword ptr [eax + 4] */
   3789     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006D8F: fld dword ptr [0x2d017410] */
   3790     _st[0] *= (double)*(float*)ADDR(eax + 0x24); /* 0x2D006D95: fmul dword ptr [eax + 0x24] */
   3791     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006D98: faddp st(1) */
   3792     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006D9A: fld dword ptr [0x2d01740c] */
   3793     _st[0] *= (double)*(float*)ADDR(eax + 0x14); /* 0x2D006DA0: fmul dword ptr [eax + 0x14] */
   3794     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DA3: faddp st(1) */
   3795     _st[0] += (double)*(float*)ADDR(eax + 0x34); /* 0x2D006DA5: fadd dword ptr [eax + 0x34] */
   3796     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006DA8: fld dword ptr [0x2d017408] */
   3797     _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x2D006DAE: fmul dword ptr [eax + 8] */
   3798     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006DB1: fld dword ptr [0x2d017410] */
   3799     _st[0] *= (double)*(float*)ADDR(eax + 0x28); /* 0x2D006DB7: fmul dword ptr [eax + 0x28] */
   3800     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DBA: faddp st(1) */
   3801     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006DBC: fld dword ptr [0x2d01740c] */
   3802     _st[0] *= (double)*(float*)ADDR(eax + 0x18); /* 0x2D006DC2: fmul dword ptr [eax + 0x18] */
   3803     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DC5: faddp st(1) */
   3804     _st[0] += (double)*(float*)ADDR(eax + 0x38); /* 0x2D006DC7: fadd dword ptr [eax + 0x38] */
   3805     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2D006DCA: fstp dword ptr [ebp + 8] */
   3806     fp_push(*(float*)&MEM32(0x2D017410)); /* 0x2D006DCD: fld dword ptr [0x2d017410] */
   3807     edx = MEM32(ebp + 0x8); /* 0x2D006DD3: mov edx, dword ptr [ebp + 8] */
   3808     _st[0] *= (double)*(float*)ADDR(eax + 0x20); /* 0x2D006DD6: fmul dword ptr [eax + 0x20] */
   3809     fp_push(*(float*)&MEM32(0x2D01740C)); /* 0x2D006DD9: fld dword ptr [0x2d01740c] */
   3810     _st[0] *= (double)*(float*)ADDR(eax + 0x10); /* 0x2D006DDF: fmul dword ptr [eax + 0x10] */
   3811     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DE2: faddp st(1) */
   3812     fp_push(*(float*)&MEM32(0x2D017408)); /* 0x2D006DE4: fld dword ptr [0x2d017408] */
   3813     _st[0] *= (double)*(float*)ADDR(eax); /* 0x2D006DEA: fmul dword ptr [eax] */
   3814     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D006DEC: faddp st(1) */
   3815     _st[0] += (double)*(float*)ADDR(eax + 0x30); /* 0x2D006DEE: fadd dword ptr [eax + 0x30] */
   3816     MEM32(0x2D017410) = edx; /* 0x2D006DF1: mov dword ptr [0x2d017410], edx */
   3817     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017408) = _v; } /* 0x2D006DF7: fstp dword ptr [0x2d017408] */
   3818     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D01740C) = _v; } /* 0x2D006DFD: fstp dword ptr [0x2d01740c] */
   3819     goto L_2D006EDE; /* 0x2D006E03: jmp 0x2d006ede */
   3820 L_2D006EDE:
   3821     ecx = MEM32(ebp + (-0xC)); /* 0x2D006EDE: mov ecx, dword ptr [ebp - 0xc] */
   3822     edi = POP32_VAL(esp); /* 0x2D006EE1: pop edi */
   3823     eax = 0x2D017408u; /* 0x2D006EE2: mov eax, 0x2d017408 */
   3824     esi = POP32_VAL(esp); /* 0x2D006EE7: pop esi */
   3825     MEM32(FS_BASE + (0)) = ecx; /* 0x2D006EE8: mov dword ptr fs:[0], ecx */
   3826     esp = ebp; /* 0x2D006EEF: mov esp, ebp */
   3827     ebp = POP32_VAL(esp); /* 0x2D006EF1: pop ebp */
   3828     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006EF2: ret 4 */
   3829     RECOMP_REGS_OUT();
   3830 }
   3831 
   3832 void sub_2D006ED9(void) {
   3833     int _fpu_cmp = 0;
   3834     uint32_t _cf = 0;
   3835     int _df = 1;
   3836     uint32_t _flag_k = FK_NONE;
   3837     uint32_t _flag_a = 0, _flag_b = 0;
   3838     uint32_t _itail_tgt = 0;
   3839     RECOMP_REGS_LOCALS
   3840     RECOMP_ENTER(0x2D006ED9u);
   3841 
   3842 L_2D006ED9:
   3843     MEM32(0x2D017410) = eax; /* 0x2D006ED9: mov dword ptr [0x2d017410], eax */
   3844     ecx = MEM32(ebp + (-0xC)); /* 0x2D006EDE: mov ecx, dword ptr [ebp - 0xc] */
   3845     edi = POP32_VAL(esp); /* 0x2D006EE1: pop edi */
   3846     eax = 0x2D017408u; /* 0x2D006EE2: mov eax, 0x2d017408 */
   3847     esi = POP32_VAL(esp); /* 0x2D006EE7: pop esi */
   3848     MEM32(FS_BASE + (0)) = ecx; /* 0x2D006EE8: mov dword ptr fs:[0], ecx */
   3849     esp = ebp; /* 0x2D006EEF: mov esp, ebp */
   3850     ebp = POP32_VAL(esp); /* 0x2D006EF1: pop ebp */
   3851     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006EF2: ret 4 */
   3852     RECOMP_REGS_OUT();
   3853 }
   3854 
   3855 void sub_2D006EDE(void) {
   3856     int _fpu_cmp = 0;
   3857     uint32_t _cf = 0;
   3858     int _df = 1;
   3859     uint32_t _flag_k = FK_NONE;
   3860     uint32_t _flag_a = 0, _flag_b = 0;
   3861     uint32_t _itail_tgt = 0;
   3862     RECOMP_REGS_LOCALS
   3863     RECOMP_ENTER(0x2D006EDEu);
   3864 
   3865 L_2D006EDE:
   3866     ecx = MEM32(ebp + (-0xC)); /* 0x2D006EDE: mov ecx, dword ptr [ebp - 0xc] */
   3867     edi = POP32_VAL(esp); /* 0x2D006EE1: pop edi */
   3868     eax = 0x2D017408u; /* 0x2D006EE2: mov eax, 0x2d017408 */
   3869     esi = POP32_VAL(esp); /* 0x2D006EE7: pop esi */
   3870     MEM32(FS_BASE + (0)) = ecx; /* 0x2D006EE8: mov dword ptr fs:[0], ecx */
   3871     esp = ebp; /* 0x2D006EEF: mov esp, ebp */
   3872     ebp = POP32_VAL(esp); /* 0x2D006EF1: pop ebp */
   3873     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006EF2: ret 4 */
   3874     RECOMP_REGS_OUT();
   3875 }
   3876 
   3877 void sub_2D006F00(void) {
   3878     int _fpu_cmp = 0;
   3879     uint32_t _cf = 0;
   3880     int _df = 1;
   3881     uint32_t _flag_k = FK_NONE;
   3882     uint32_t _flag_a = 0, _flag_b = 0;
   3883     uint32_t _itail_tgt = 0;
   3884     RECOMP_REGS_LOCALS
   3885     RECOMP_ENTER(0x2D006F00u);
   3886 
   3887 L_2D006F00:
   3888     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006F00: ret  */
   3889     RECOMP_REGS_OUT();
   3890 }
   3891 
   3892 void sub_2D006F10(void) {
   3893     int _fpu_cmp = 0;
   3894     uint32_t _cf = 0;
   3895     int _df = 1;
   3896     uint32_t _flag_k = FK_NONE;
   3897     uint32_t _flag_a = 0, _flag_b = 0;
   3898     uint32_t _itail_tgt = 0;
   3899     RECOMP_REGS_LOCALS
   3900     RECOMP_ENTER(0x2D006F10u);
   3901 
   3902 L_2D006F10:
   3903     PUSH32(esp, ebp); /* 0x2D006F10: push ebp */
   3904     ebp = esp; /* 0x2D006F11: mov ebp, esp */
   3905     ecx = MEM32(0x2D01752C); /* 0x2D006F13: mov ecx, dword ptr [0x2d01752c] */
   3906     /* test ecx, ecx */ /* 0x2D006F19: test ecx, ecx */
   3907     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3908     _cf = 0;
   3909     _flag_k = FK_TEST;
   3910     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006F2B; /* 0x2D006F1B: je 0x2d006f2b */
   3911 L_2D006F1D:
   3912     eax = MEM32(ebp + 0x8); /* 0x2D006F1D: mov eax, dword ptr [ebp + 8] */
   3913     PUSH32(esp, eax); /* 0x2D006F20: push eax */
   3914     RECOMP_ICALL(MEM32(0x2D0094E0)); /* 0x2D006F21: call dword ptr [0x2d0094e0] */
   3915     RECOMP_FLAGS_IN();
   3916     ebp = POP32_VAL(esp); /* 0x2D006F27: pop ebp */
   3917     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006F28: ret 4 */
   3918 L_2D006F2B:
   3919     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3920     SET_LO8(eax, 0); /* 0x2D006F2B: xor al, al */
   3921     _cf = 0;
   3922     _flag_k = FK_NARROW(FK_TEST, 24);
   3923     ebp = POP32_VAL(esp); /* 0x2D006F2D: pop ebp */
   3924     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006F2E: ret 4 */
   3925     RECOMP_REGS_OUT();
   3926 }
   3927 
   3928 void sub_2D006F40(void) {
   3929     int _fpu_cmp = 0;
   3930     uint32_t _cf = 0;
   3931     int _df = 1;
   3932     uint32_t _flag_k = FK_NONE;
   3933     uint32_t _flag_a = 0, _flag_b = 0;
   3934     uint32_t _itail_tgt = 0;
   3935     RECOMP_REGS_LOCALS
   3936     RECOMP_ENTER(0x2D006F40u);
   3937 
   3938 L_2D006F40:
   3939     PUSH32(esp, ebp); /* 0x2D006F40: push ebp */
   3940     ebp = esp; /* 0x2D006F41: mov ebp, esp */
   3941     ecx = MEM32(0x2D01752C); /* 0x2D006F43: mov ecx, dword ptr [0x2d01752c] */
   3942     /* test ecx, ecx */ /* 0x2D006F49: test ecx, ecx */
   3943     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3944     _cf = 0;
   3945     _flag_k = FK_TEST;
   3946     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006F5B; /* 0x2D006F4B: je 0x2d006f5b */
   3947 L_2D006F4D:
   3948     eax = MEM32(ebp + 0x8); /* 0x2D006F4D: mov eax, dword ptr [ebp + 8] */
   3949     PUSH32(esp, eax); /* 0x2D006F50: push eax */
   3950     RECOMP_ICALL(MEM32(0x2D0094E4)); /* 0x2D006F51: call dword ptr [0x2d0094e4] */
   3951     RECOMP_FLAGS_IN();
   3952     ebp = POP32_VAL(esp); /* 0x2D006F57: pop ebp */
   3953     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006F58: ret 4 */
   3954 L_2D006F5B:
   3955     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3956     SET_LO8(eax, 0); /* 0x2D006F5B: xor al, al */
   3957     _cf = 0;
   3958     _flag_k = FK_NARROW(FK_TEST, 24);
   3959     ebp = POP32_VAL(esp); /* 0x2D006F5D: pop ebp */
   3960     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006F5E: ret 4 */
   3961     RECOMP_REGS_OUT();
   3962 }
   3963 
   3964 void sub_2D006F70(void) {
   3965     int _fpu_cmp = 0;
   3966     uint32_t _cf = 0;
   3967     int _df = 1;
   3968     uint32_t _flag_k = FK_NONE;
   3969     uint32_t _flag_a = 0, _flag_b = 0;
   3970     uint32_t _itail_tgt = 0;
   3971     RECOMP_REGS_LOCALS
   3972     RECOMP_ENTER(0x2D006F70u);
   3973 
   3974 L_2D006F70:
   3975     ecx = MEM32(0x2D01752C); /* 0x2D006F70: mov ecx, dword ptr [0x2d01752c] */
   3976 L_2D006F76:
   3977     /* test ecx, ecx */ /* 0x2D006F76: test ecx, ecx */
   3978     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3979     _cf = 0;
   3980     _flag_k = FK_TEST;
   3981 L_2D006F78:
   3982     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D006F80; /* 0x2D006F78: je 0x2d006f80 */
   3983 L_2D006F7A:
   3984     { _itail_tgt = (uint32_t)(MEM32(0x2D0094E8)); goto _ljump; }
   3985 L_2D006F80:
   3986     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   3987     eax = eax | 0xFFFFFFFFu; /* 0x2D006F80: or eax, 0xffffffff */
   3988     _cf = 0;
   3989     _flag_k = FK_TEST;
   3990 L_2D006F83:
   3991     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006F83: ret  */
   3992   _ljump:
   3993     switch (_itail_tgt) {
   3994       case 0x2D006F70u: goto L_2D006F70;
   3995       case 0x2D006F76u: goto L_2D006F76;
   3996       case 0x2D006F78u: goto L_2D006F78;
   3997       case 0x2D006F7Au: goto L_2D006F7A;
   3998       case 0x2D006F80u: goto L_2D006F80;
   3999       case 0x2D006F83u: goto L_2D006F83;
   4000       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4001     }
   4002     RECOMP_REGS_OUT();
   4003 }
   4004 
   4005 void sub_2D006F90(void) {
   4006     int _fpu_cmp = 0;
   4007     uint32_t _cf = 0;
   4008     int _df = 1;
   4009     uint32_t _flag_k = FK_NONE;
   4010     uint32_t _flag_a = 0, _flag_b = 0;
   4011     uint32_t _itail_tgt = 0;
   4012     RECOMP_REGS_LOCALS
   4013     RECOMP_ENTER(0x2D006F90u);
   4014 
   4015 L_2D006F90:
   4016     PUSH32(esp, ebp); /* 0x2D006F90: push ebp */
   4017     ebp = esp; /* 0x2D006F91: mov ebp, esp */
   4018     eax = MEM32(ebp + 0x8); /* 0x2D006F93: mov eax, dword ptr [ebp + 8] */
   4019     PUSH32(esp, eax); /* 0x2D006F96: push eax */
   4020     RECOMP_ICALL(MEM32(0x2D0094EC)); /* 0x2D006F97: call dword ptr [0x2d0094ec] */
   4021     RECOMP_FLAGS_IN();
   4022     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4023     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4024     esp = esp + 4; /* 0x2D006F9D: add esp, 4 */
   4025     _flag_k = FK_ADD;
   4026     ebp = POP32_VAL(esp); /* 0x2D006FA0: pop ebp */
   4027     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006FA1: ret 4 */
   4028     RECOMP_REGS_OUT();
   4029 }
   4030 
   4031 void sub_2D006FB0(void) {
   4032     int _fpu_cmp = 0;
   4033     uint32_t _cf = 0;
   4034     int _df = 1;
   4035     uint32_t _flag_k = FK_NONE;
   4036     uint32_t _flag_a = 0, _flag_b = 0;
   4037     uint32_t _itail_tgt = 0;
   4038     RECOMP_REGS_LOCALS
   4039     RECOMP_ENTER(0x2D006FB0u);
   4040 
   4041 L_2D006FB0:
   4042     ecx = MEM32(0x2D01752C); /* 0x2D006FB0: mov ecx, dword ptr [0x2d01752c] */
   4043 L_2D006FB6:
   4044     /* test ecx, ecx */ /* 0x2D006FB6: test ecx, ecx */
   4045     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4046     _cf = 0;
   4047     _flag_k = FK_TEST;
   4048 L_2D006FB8:
   4049     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D006FC0; /* 0x2D006FB8: je 0x2d006fc0 */
   4050 L_2D006FBA:
   4051     { _itail_tgt = (uint32_t)(MEM32(0x2D0094F0)); goto _ljump; }
   4052 L_2D006FC0:
   4053     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4054     eax = 0; /* 0x2D006FC0: xor eax, eax */
   4055     _cf = 0;
   4056     _flag_k = FK_TEST;
   4057 L_2D006FC2:
   4058     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D006FC2: ret  */
   4059   _ljump:
   4060     switch (_itail_tgt) {
   4061       case 0x2D006FB0u: goto L_2D006FB0;
   4062       case 0x2D006FB6u: goto L_2D006FB6;
   4063       case 0x2D006FB8u: goto L_2D006FB8;
   4064       case 0x2D006FBAu: goto L_2D006FBA;
   4065       case 0x2D006FC0u: goto L_2D006FC0;
   4066       case 0x2D006FC2u: goto L_2D006FC2;
   4067       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4068     }
   4069     RECOMP_REGS_OUT();
   4070 }
   4071 
   4072 void sub_2D006FD0(void) {
   4073     int _fpu_cmp = 0;
   4074     uint32_t _cf = 0;
   4075     int _df = 1;
   4076     uint32_t _flag_k = FK_NONE;
   4077     uint32_t _flag_a = 0, _flag_b = 0;
   4078     uint32_t _itail_tgt = 0;
   4079     RECOMP_REGS_LOCALS
   4080     RECOMP_ENTER(0x2D006FD0u);
   4081 
   4082 L_2D006FD0:
   4083     PUSH32(esp, ebp); /* 0x2D006FD0: push ebp */
   4084     ebp = esp; /* 0x2D006FD1: mov ebp, esp */
   4085     ecx = MEM32(0x2D01752C); /* 0x2D006FD3: mov ecx, dword ptr [0x2d01752c] */
   4086     /* test ecx, ecx */ /* 0x2D006FD9: test ecx, ecx */
   4087     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4088     _cf = 0;
   4089     _flag_k = FK_TEST;
   4090     if (TEST_Z(_flag_a, _flag_b)) goto L_2D006FE7; /* 0x2D006FDB: je 0x2d006fe7 */
   4091 L_2D006FDD:
   4092     eax = MEM32(ebp + 0x8); /* 0x2D006FDD: mov eax, dword ptr [ebp + 8] */
   4093     PUSH32(esp, eax); /* 0x2D006FE0: push eax */
   4094     RECOMP_ICALL(MEM32(0x2D0094F4)); /* 0x2D006FE1: call dword ptr [0x2d0094f4] */
   4095     RECOMP_FLAGS_IN();
   4096 L_2D006FE7:
   4097     ebp = POP32_VAL(esp); /* 0x2D006FE7: pop ebp */
   4098     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D006FE8: ret 4 */
   4099     RECOMP_REGS_OUT();
   4100 }
   4101 
   4102 void sub_2D006FF0(void) {
   4103     int _fpu_cmp = 0;
   4104     uint32_t _cf = 0;
   4105     int _df = 1;
   4106     uint32_t _flag_k = FK_NONE;
   4107     uint32_t _flag_a = 0, _flag_b = 0;
   4108     uint32_t _itail_tgt = 0;
   4109     RECOMP_REGS_LOCALS
   4110     RECOMP_ENTER(0x2D006FF0u);
   4111 
   4112 L_2D006FF0:
   4113     PUSH32(esp, ebp); /* 0x2D006FF0: push ebp */
   4114     ebp = esp; /* 0x2D006FF1: mov ebp, esp */
   4115     ecx = MEM32(0x2D01752C); /* 0x2D006FF3: mov ecx, dword ptr [0x2d01752c] */
   4116     /* test ecx, ecx */ /* 0x2D006FF9: test ecx, ecx */
   4117     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4118     _cf = 0;
   4119     _flag_k = FK_TEST;
   4120     if (TEST_Z(_flag_a, _flag_b)) goto L_2D007007; /* 0x2D006FFB: je 0x2d007007 */
   4121 L_2D006FFD:
   4122     eax = MEM32(ebp + 0x8); /* 0x2D006FFD: mov eax, dword ptr [ebp + 8] */
   4123     PUSH32(esp, eax); /* 0x2D007000: push eax */
   4124     RECOMP_ICALL(MEM32(0x2D0094F8)); /* 0x2D007001: call dword ptr [0x2d0094f8] */
   4125     RECOMP_FLAGS_IN();
   4126 L_2D007007:
   4127     ebp = POP32_VAL(esp); /* 0x2D007007: pop ebp */
   4128     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D007008: ret 4 */
   4129     RECOMP_REGS_OUT();
   4130 }
   4131 
   4132 void sub_2D007010(void) {
   4133     int _fpu_cmp = 0;
   4134     uint32_t _cf = 0;
   4135     int _df = 1;
   4136     uint32_t _flag_k = FK_NONE;
   4137     uint32_t _flag_a = 0, _flag_b = 0;
   4138     uint32_t _itail_tgt = 0;
   4139     RECOMP_REGS_LOCALS
   4140     RECOMP_ENTER(0x2D007010u);
   4141 
   4142 L_2D007010:
   4143     ecx = MEM32(0x2D01752C); /* 0x2D007010: mov ecx, dword ptr [0x2d01752c] */
   4144 L_2D007016:
   4145     /* test ecx, ecx */ /* 0x2D007016: test ecx, ecx */
   4146     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4147     _cf = 0;
   4148     _flag_k = FK_TEST;
   4149 L_2D007018:
   4150     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D007020; /* 0x2D007018: je 0x2d007020 */
   4151 L_2D00701A:
   4152     { _itail_tgt = (uint32_t)(MEM32(0x2D0094FC)); goto _ljump; }
   4153 L_2D007020:
   4154     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D007020: ret  */
   4155   _ljump:
   4156     switch (_itail_tgt) {
   4157       case 0x2D007010u: goto L_2D007010;
   4158       case 0x2D007016u: goto L_2D007016;
   4159       case 0x2D007018u: goto L_2D007018;
   4160       case 0x2D00701Au: goto L_2D00701A;
   4161       case 0x2D007020u: goto L_2D007020;
   4162       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4163     }
   4164     RECOMP_REGS_OUT();
   4165 }
   4166 
   4167 void sub_2D007030(void) {
   4168     int _fpu_cmp = 0;
   4169     uint32_t _cf = 0;
   4170     int _df = 1;
   4171     uint32_t _flag_k = FK_NONE;
   4172     uint32_t _flag_a = 0, _flag_b = 0;
   4173     uint32_t _itail_tgt = 0;
   4174     RECOMP_REGS_LOCALS
   4175     RECOMP_ENTER(0x2D007030u);
   4176 
   4177 L_2D007030:
   4178     PUSH32(esp, ebp); /* 0x2D007030: push ebp */
   4179     ebp = esp; /* 0x2D007031: mov ebp, esp */
   4180     ecx = MEM32(0x2D01752C); /* 0x2D007033: mov ecx, dword ptr [0x2d01752c] */
   4181     /* test ecx, ecx */ /* 0x2D007039: test ecx, ecx */
   4182     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4183     _cf = 0;
   4184     _flag_k = FK_TEST;
   4185     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00704B; /* 0x2D00703B: je 0x2d00704b */
   4186 L_2D00703D:
   4187     eax = MEM32(ebp + 0xC); /* 0x2D00703D: mov eax, dword ptr [ebp + 0xc] */
   4188     edx = MEM32(ebp + 0x8); /* 0x2D007040: mov edx, dword ptr [ebp + 8] */
   4189     PUSH32(esp, eax); /* 0x2D007043: push eax */
   4190     PUSH32(esp, edx); /* 0x2D007044: push edx */
   4191     RECOMP_ICALL(MEM32(0x2D009500)); /* 0x2D007045: call dword ptr [0x2d009500] */
   4192     RECOMP_FLAGS_IN();
   4193 L_2D00704B:
   4194     ebp = POP32_VAL(esp); /* 0x2D00704B: pop ebp */
   4195     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00704C: ret 8 */
   4196     RECOMP_REGS_OUT();
   4197 }
   4198 
   4199 void sub_2D007050(void) {
   4200     int _fpu_cmp = 0;
   4201     uint32_t _cf = 0;
   4202     int _df = 1;
   4203     uint32_t _flag_k = FK_NONE;
   4204     uint32_t _flag_a = 0, _flag_b = 0;
   4205     uint32_t _itail_tgt = 0;
   4206     RECOMP_REGS_LOCALS
   4207     RECOMP_ENTER(0x2D007050u);
   4208 
   4209 L_2D007050:
   4210     ecx = MEM32(0x2D01752C); /* 0x2D007050: mov ecx, dword ptr [0x2d01752c] */
   4211 L_2D007056:
   4212     /* test ecx, ecx */ /* 0x2D007056: test ecx, ecx */
   4213     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4214     _cf = 0;
   4215     _flag_k = FK_TEST;
   4216 L_2D007058:
   4217     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D007060; /* 0x2D007058: je 0x2d007060 */
   4218 L_2D00705A:
   4219     { _itail_tgt = (uint32_t)(MEM32(0x2D009504)); goto _ljump; }
   4220 L_2D007060:
   4221     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D007060: ret  */
   4222   _ljump:
   4223     switch (_itail_tgt) {
   4224       case 0x2D007050u: goto L_2D007050;
   4225       case 0x2D007056u: goto L_2D007056;
   4226       case 0x2D007058u: goto L_2D007058;
   4227       case 0x2D00705Au: goto L_2D00705A;
   4228       case 0x2D007060u: goto L_2D007060;
   4229       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4230     }
   4231     RECOMP_REGS_OUT();
   4232 }
   4233 
   4234 void sub_2D007070(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(0x2D007070u);
   4243 
   4244 L_2D007070:
   4245     PUSH32(esp, ebp); /* 0x2D007070: push ebp */
   4246     ebp = esp; /* 0x2D007071: mov ebp, esp */
   4247     ecx = MEM32(0x2D01752C); /* 0x2D007073: mov ecx, dword ptr [0x2d01752c] */
   4248     /* test ecx, ecx */ /* 0x2D007079: test ecx, ecx */
   4249     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4250     _cf = 0;
   4251     _flag_k = FK_TEST;
   4252     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00708F; /* 0x2D00707B: je 0x2d00708f */
   4253 L_2D00707D:
   4254     eax = MEM32(ebp + 0xC); /* 0x2D00707D: mov eax, dword ptr [ebp + 0xc] */
   4255     edx = MEM32(ebp + 0x8); /* 0x2D007080: mov edx, dword ptr [ebp + 8] */
   4256     PUSH32(esp, eax); /* 0x2D007083: push eax */
   4257     PUSH32(esp, edx); /* 0x2D007084: push edx */
   4258     RECOMP_ICALL(MEM32(0x2D009508)); /* 0x2D007085: call dword ptr [0x2d009508] */
   4259     RECOMP_FLAGS_IN();
   4260     ebp = POP32_VAL(esp); /* 0x2D00708B: pop ebp */
   4261     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00708C: ret 8 */
   4262 L_2D00708F:
   4263     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4264     SET_LO8(eax, 0); /* 0x2D00708F: xor al, al */
   4265     _cf = 0;
   4266     _flag_k = FK_NARROW(FK_TEST, 24);
   4267     ebp = POP32_VAL(esp); /* 0x2D007091: pop ebp */
   4268     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D007092: ret 8 */
   4269     RECOMP_REGS_OUT();
   4270 }
   4271 
   4272 void sub_2D0070A0(void) {
   4273     int _fpu_cmp = 0;
   4274     uint32_t _cf = 0;
   4275     int _df = 1;
   4276     uint32_t _flag_k = FK_NONE;
   4277     uint32_t _flag_a = 0, _flag_b = 0;
   4278     uint32_t _itail_tgt = 0;
   4279     RECOMP_REGS_LOCALS
   4280     RECOMP_ENTER(0x2D0070A0u);
   4281 
   4282 L_2D0070A0:
   4283     PUSH32(esp, ebp); /* 0x2D0070A0: push ebp */
   4284     ebp = esp; /* 0x2D0070A1: mov ebp, esp */
   4285     ecx = MEM32(0x2D01752C); /* 0x2D0070A3: mov ecx, dword ptr [0x2d01752c] */
   4286     /* test ecx, ecx */ /* 0x2D0070A9: test ecx, ecx */
   4287     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4288     _cf = 0;
   4289     _flag_k = FK_TEST;
   4290     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0070BF; /* 0x2D0070AB: je 0x2d0070bf */
   4291 L_2D0070AD:
   4292     eax = MEM32(ebp + 0x10); /* 0x2D0070AD: mov eax, dword ptr [ebp + 0x10] */
   4293     edx = MEM32(ebp + 0xC); /* 0x2D0070B0: mov edx, dword ptr [ebp + 0xc] */
   4294     PUSH32(esp, eax); /* 0x2D0070B3: push eax */
   4295     eax = MEM32(ebp + 0x8); /* 0x2D0070B4: mov eax, dword ptr [ebp + 8] */
   4296     PUSH32(esp, edx); /* 0x2D0070B7: push edx */
   4297     PUSH32(esp, eax); /* 0x2D0070B8: push eax */
   4298     RECOMP_ICALL(MEM32(0x2D00950C)); /* 0x2D0070B9: call dword ptr [0x2d00950c] */
   4299     RECOMP_FLAGS_IN();
   4300 L_2D0070BF:
   4301     ebp = POP32_VAL(esp); /* 0x2D0070BF: pop ebp */
   4302     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D0070C0: ret 0xc */
   4303     RECOMP_REGS_OUT();
   4304 }
   4305 
   4306 void sub_2D0070D0(void) {
   4307     int _fpu_cmp = 0;
   4308     uint32_t _cf = 0;
   4309     int _df = 1;
   4310     uint32_t _flag_k = FK_NONE;
   4311     uint32_t _flag_a = 0, _flag_b = 0;
   4312     uint32_t _itail_tgt = 0;
   4313     RECOMP_REGS_LOCALS
   4314     RECOMP_ENTER(0x2D0070D0u);
   4315 
   4316 L_2D0070D0:
   4317     PUSH32(esp, ebp); /* 0x2D0070D0: push ebp */
   4318     ebp = esp; /* 0x2D0070D1: mov ebp, esp */
   4319     ecx = MEM32(0x2D01752C); /* 0x2D0070D3: mov ecx, dword ptr [0x2d01752c] */
   4320     /* test ecx, ecx */ /* 0x2D0070D9: test ecx, ecx */
   4321     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4322     _cf = 0;
   4323     _flag_k = FK_TEST;
   4324     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0070EF; /* 0x2D0070DB: je 0x2d0070ef */
   4325 L_2D0070DD:
   4326     eax = MEM32(ebp + 0x10); /* 0x2D0070DD: mov eax, dword ptr [ebp + 0x10] */
   4327     edx = MEM32(ebp + 0xC); /* 0x2D0070E0: mov edx, dword ptr [ebp + 0xc] */
   4328     PUSH32(esp, eax); /* 0x2D0070E3: push eax */
   4329     eax = MEM32(ebp + 0x8); /* 0x2D0070E4: mov eax, dword ptr [ebp + 8] */
   4330     PUSH32(esp, edx); /* 0x2D0070E7: push edx */
   4331     PUSH32(esp, eax); /* 0x2D0070E8: push eax */
   4332     RECOMP_ICALL(MEM32(0x2D009510)); /* 0x2D0070E9: call dword ptr [0x2d009510] */
   4333     RECOMP_FLAGS_IN();
   4334 L_2D0070EF:
   4335     ebp = POP32_VAL(esp); /* 0x2D0070EF: pop ebp */
   4336     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D0070F0: ret 0xc */
   4337     RECOMP_REGS_OUT();
   4338 }
   4339 
   4340 void sub_2D007100(void) {
   4341     int _fpu_cmp = 0;
   4342     uint32_t _cf = 0;
   4343     int _df = 1;
   4344     uint32_t _flag_k = FK_NONE;
   4345     uint32_t _flag_a = 0, _flag_b = 0;
   4346     uint32_t _itail_tgt = 0;
   4347     RECOMP_REGS_LOCALS
   4348     RECOMP_ENTER(0x2D007100u);
   4349 
   4350 L_2D007100:
   4351     PUSH32(esp, ebp); /* 0x2D007100: push ebp */
   4352     ebp = esp; /* 0x2D007101: mov ebp, esp */
   4353     ecx = MEM32(0x2D01752C); /* 0x2D007103: mov ecx, dword ptr [0x2d01752c] */
   4354     /* test ecx, ecx */ /* 0x2D007109: test ecx, ecx */
   4355     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4356     _cf = 0;
   4357     _flag_k = FK_TEST;
   4358     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00711B; /* 0x2D00710B: je 0x2d00711b */
   4359 L_2D00710D:
   4360     eax = MEM32(ebp + 0xC); /* 0x2D00710D: mov eax, dword ptr [ebp + 0xc] */
   4361     edx = MEM32(ebp + 0x8); /* 0x2D007110: mov edx, dword ptr [ebp + 8] */
   4362     PUSH32(esp, eax); /* 0x2D007113: push eax */
   4363     PUSH32(esp, edx); /* 0x2D007114: push edx */
   4364     RECOMP_ICALL(MEM32(0x2D009514)); /* 0x2D007115: call dword ptr [0x2d009514] */
   4365     RECOMP_FLAGS_IN();
   4366 L_2D00711B:
   4367     ebp = POP32_VAL(esp); /* 0x2D00711B: pop ebp */
   4368     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00711C: ret 8 */
   4369     RECOMP_REGS_OUT();
   4370 }
   4371 
   4372 void sub_2D007120(void) {
   4373     int _fpu_cmp = 0;
   4374     uint32_t _cf = 0;
   4375     int _df = 1;
   4376     uint32_t _flag_k = FK_NONE;
   4377     uint32_t _flag_a = 0, _flag_b = 0;
   4378     uint32_t _itail_tgt = 0;
   4379     RECOMP_REGS_LOCALS
   4380     RECOMP_ENTER(0x2D007120u);
   4381 
   4382 L_2D007120:
   4383     PUSH32(esp, ebp); /* 0x2D007120: push ebp */
   4384     ebp = esp; /* 0x2D007121: mov ebp, esp */
   4385     ecx = MEM32(0x2D01752C); /* 0x2D007123: mov ecx, dword ptr [0x2d01752c] */
   4386     /* test ecx, ecx */ /* 0x2D007129: test ecx, ecx */
   4387     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4388     _cf = 0;
   4389     _flag_k = FK_TEST;
   4390     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00713B; /* 0x2D00712B: je 0x2d00713b */
   4391 L_2D00712D:
   4392     eax = MEM32(ebp + 0xC); /* 0x2D00712D: mov eax, dword ptr [ebp + 0xc] */
   4393     edx = MEM32(ebp + 0x8); /* 0x2D007130: mov edx, dword ptr [ebp + 8] */
   4394     PUSH32(esp, eax); /* 0x2D007133: push eax */
   4395     PUSH32(esp, edx); /* 0x2D007134: push edx */
   4396     RECOMP_ICALL(MEM32(0x2D009518)); /* 0x2D007135: call dword ptr [0x2d009518] */
   4397     RECOMP_FLAGS_IN();
   4398 L_2D00713B:
   4399     ebp = POP32_VAL(esp); /* 0x2D00713B: pop ebp */
   4400     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00713C: ret 8 */
   4401     RECOMP_REGS_OUT();
   4402 }
   4403 
   4404 void sub_2D007140(void) {
   4405     int _fpu_cmp = 0;
   4406     uint32_t _cf = 0;
   4407     int _df = 1;
   4408     uint32_t _flag_k = FK_NONE;
   4409     uint32_t _flag_a = 0, _flag_b = 0;
   4410     uint32_t _itail_tgt = 0;
   4411     RECOMP_REGS_LOCALS
   4412     RECOMP_ENTER(0x2D007140u);
   4413 
   4414 L_2D007140:
   4415     PUSH32(esp, ebp); /* 0x2D007140: push ebp */
   4416     ebp = esp; /* 0x2D007141: mov ebp, esp */
   4417     ecx = MEM32(0x2D01752C); /* 0x2D007143: mov ecx, dword ptr [0x2d01752c] */
   4418     /* test ecx, ecx */ /* 0x2D007149: test ecx, ecx */
   4419     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4420     _cf = 0;
   4421     _flag_k = FK_TEST;
   4422     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00715B; /* 0x2D00714B: je 0x2d00715b */
   4423 L_2D00714D:
   4424     eax = MEM32(ebp + 0xC); /* 0x2D00714D: mov eax, dword ptr [ebp + 0xc] */
   4425     edx = MEM32(ebp + 0x8); /* 0x2D007150: mov edx, dword ptr [ebp + 8] */
   4426     PUSH32(esp, eax); /* 0x2D007153: push eax */
   4427     PUSH32(esp, edx); /* 0x2D007154: push edx */
   4428     RECOMP_ICALL(MEM32(0x2D00951C)); /* 0x2D007155: call dword ptr [0x2d00951c] */
   4429     RECOMP_FLAGS_IN();
   4430 L_2D00715B:
   4431     ebp = POP32_VAL(esp); /* 0x2D00715B: pop ebp */
   4432     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00715C: ret 8 */
   4433     RECOMP_REGS_OUT();
   4434 }
   4435 
   4436 void sub_2D007160(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(0x2D007160u);
   4445 
   4446 L_2D007160:
   4447     PUSH32(esp, ebp); /* 0x2D007160: push ebp */
   4448     ebp = esp; /* 0x2D007161: mov ebp, esp */
   4449     ecx = MEM32(0x2D01752C); /* 0x2D007163: mov ecx, dword ptr [0x2d01752c] */
   4450     /* test ecx, ecx */ /* 0x2D007169: test ecx, ecx */
   4451     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4452     _cf = 0;
   4453     _flag_k = FK_TEST;
   4454     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00717F; /* 0x2D00716B: je 0x2d00717f */
   4455 L_2D00716D:
   4456     eax = MEM32(ebp + 0x10); /* 0x2D00716D: mov eax, dword ptr [ebp + 0x10] */
   4457     edx = MEM32(ebp + 0xC); /* 0x2D007170: mov edx, dword ptr [ebp + 0xc] */
   4458     PUSH32(esp, eax); /* 0x2D007173: push eax */
   4459     eax = MEM32(ebp + 0x8); /* 0x2D007174: mov eax, dword ptr [ebp + 8] */
   4460     PUSH32(esp, edx); /* 0x2D007177: push edx */
   4461     PUSH32(esp, eax); /* 0x2D007178: push eax */
   4462     RECOMP_ICALL(MEM32(0x2D009520)); /* 0x2D007179: call dword ptr [0x2d009520] */
   4463     RECOMP_FLAGS_IN();
   4464 L_2D00717F:
   4465     ebp = POP32_VAL(esp); /* 0x2D00717F: pop ebp */
   4466     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D007180: ret 0xc */
   4467     RECOMP_REGS_OUT();
   4468 }
   4469 
   4470 void sub_2D007190(void) {
   4471     int _fpu_cmp = 0;
   4472     uint32_t _cf = 0;
   4473     int _df = 1;
   4474     uint32_t _flag_k = FK_NONE;
   4475     uint32_t _flag_a = 0, _flag_b = 0;
   4476     uint32_t _itail_tgt = 0;
   4477     RECOMP_REGS_LOCALS
   4478     RECOMP_ENTER(0x2D007190u);
   4479 
   4480 L_2D007190:
   4481     PUSH32(esp, ebp); /* 0x2D007190: push ebp */
   4482     ebp = esp; /* 0x2D007191: mov ebp, esp */
   4483     ecx = MEM32(0x2D01752C); /* 0x2D007193: mov ecx, dword ptr [0x2d01752c] */
   4484     /* test ecx, ecx */ /* 0x2D007199: test ecx, ecx */
   4485     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4486     _cf = 0;
   4487     _flag_k = FK_TEST;
   4488     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0071AF; /* 0x2D00719B: je 0x2d0071af */
   4489 L_2D00719D:
   4490     eax = MEM32(ebp + 0x10); /* 0x2D00719D: mov eax, dword ptr [ebp + 0x10] */
   4491     edx = MEM32(ebp + 0xC); /* 0x2D0071A0: mov edx, dword ptr [ebp + 0xc] */
   4492     PUSH32(esp, eax); /* 0x2D0071A3: push eax */
   4493     eax = MEM32(ebp + 0x8); /* 0x2D0071A4: mov eax, dword ptr [ebp + 8] */
   4494     PUSH32(esp, edx); /* 0x2D0071A7: push edx */
   4495     PUSH32(esp, eax); /* 0x2D0071A8: push eax */
   4496     RECOMP_ICALL(MEM32(0x2D009524)); /* 0x2D0071A9: call dword ptr [0x2d009524] */
   4497     RECOMP_FLAGS_IN();
   4498 L_2D0071AF:
   4499     ebp = POP32_VAL(esp); /* 0x2D0071AF: pop ebp */
   4500     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D0071B0: ret 0xc */
   4501     RECOMP_REGS_OUT();
   4502 }
   4503 
   4504 void sub_2D0071C0(void) {
   4505     int _fpu_cmp = 0;
   4506     uint32_t _cf = 0;
   4507     int _df = 1;
   4508     uint32_t _flag_k = FK_NONE;
   4509     uint32_t _flag_a = 0, _flag_b = 0;
   4510     uint32_t _itail_tgt = 0;
   4511     RECOMP_REGS_LOCALS
   4512     RECOMP_ENTER(0x2D0071C0u);
   4513 
   4514 L_2D0071C0:
   4515     PUSH32(esp, ebp); /* 0x2D0071C0: push ebp */
   4516     ebp = esp; /* 0x2D0071C1: mov ebp, esp */
   4517     ecx = MEM32(0x2D01752C); /* 0x2D0071C3: mov ecx, dword ptr [0x2d01752c] */
   4518     /* test ecx, ecx */ /* 0x2D0071C9: test ecx, ecx */
   4519     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4520     _cf = 0;
   4521     _flag_k = FK_TEST;
   4522     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0071E3; /* 0x2D0071CB: je 0x2d0071e3 */
   4523 L_2D0071CD:
   4524     eax = MEM32(ebp + 0x14); /* 0x2D0071CD: mov eax, dword ptr [ebp + 0x14] */
   4525     edx = MEM32(ebp + 0x10); /* 0x2D0071D0: mov edx, dword ptr [ebp + 0x10] */
   4526     PUSH32(esp, eax); /* 0x2D0071D3: push eax */
   4527     eax = MEM32(ebp + 0xC); /* 0x2D0071D4: mov eax, dword ptr [ebp + 0xc] */
   4528     PUSH32(esp, edx); /* 0x2D0071D7: push edx */
   4529     edx = MEM32(ebp + 0x8); /* 0x2D0071D8: mov edx, dword ptr [ebp + 8] */
   4530     PUSH32(esp, eax); /* 0x2D0071DB: push eax */
   4531     PUSH32(esp, edx); /* 0x2D0071DC: push edx */
   4532     RECOMP_ICALL(MEM32(0x2D009528)); /* 0x2D0071DD: call dword ptr [0x2d009528] */
   4533     RECOMP_FLAGS_IN();
   4534 L_2D0071E3:
   4535     ebp = POP32_VAL(esp); /* 0x2D0071E3: pop ebp */
   4536     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2D0071E4: ret 0x10 */
   4537     RECOMP_REGS_OUT();
   4538 }
   4539 
   4540 void sub_2D0071F0(void) {
   4541     int _fpu_cmp = 0;
   4542     uint32_t _cf = 0;
   4543     int _df = 1;
   4544     uint32_t _flag_k = FK_NONE;
   4545     uint32_t _flag_a = 0, _flag_b = 0;
   4546     uint32_t _itail_tgt = 0;
   4547     RECOMP_REGS_LOCALS
   4548     RECOMP_ENTER(0x2D0071F0u);
   4549 
   4550 L_2D0071F0:
   4551     PUSH32(esp, ebp); /* 0x2D0071F0: push ebp */
   4552     ebp = esp; /* 0x2D0071F1: mov ebp, esp */
   4553     ecx = MEM32(0x2D01752C); /* 0x2D0071F3: mov ecx, dword ptr [0x2d01752c] */
   4554     /* test ecx, ecx */ /* 0x2D0071F9: test ecx, ecx */
   4555     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4556     _cf = 0;
   4557     _flag_k = FK_TEST;
   4558     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00720B; /* 0x2D0071FB: je 0x2d00720b */
   4559 L_2D0071FD:
   4560     eax = MEM32(ebp + 0x8); /* 0x2D0071FD: mov eax, dword ptr [ebp + 8] */
   4561     PUSH32(esp, eax); /* 0x2D007200: push eax */
   4562     RECOMP_ICALL(MEM32(0x2D00952C)); /* 0x2D007201: call dword ptr [0x2d00952c] */
   4563     RECOMP_FLAGS_IN();
   4564     ebp = POP32_VAL(esp); /* 0x2D007207: pop ebp */
   4565     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D007208: ret 4 */
   4566 L_2D00720B:
   4567     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4568     SET_LO8(eax, 0); /* 0x2D00720B: xor al, al */
   4569     _cf = 0;
   4570     _flag_k = FK_NARROW(FK_TEST, 24);
   4571     ebp = POP32_VAL(esp); /* 0x2D00720D: pop ebp */
   4572     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D00720E: ret 4 */
   4573     RECOMP_REGS_OUT();
   4574 }
   4575 
   4576 void sub_2D007220(void) {
   4577     int _fpu_cmp = 0;
   4578     uint32_t _cf = 0;
   4579     int _df = 1;
   4580     uint32_t _flag_k = FK_NONE;
   4581     uint32_t _flag_a = 0, _flag_b = 0;
   4582     uint32_t _itail_tgt = 0;
   4583     RECOMP_REGS_LOCALS
   4584     RECOMP_ENTER(0x2D007220u);
   4585 
   4586 L_2D007220:
   4587     PUSH32(esp, ebp); /* 0x2D007220: push ebp */
   4588     ebp = esp; /* 0x2D007221: mov ebp, esp */
   4589     ecx = MEM32(0x2D01752C); /* 0x2D007223: mov ecx, dword ptr [0x2d01752c] */
   4590     /* test ecx, ecx */ /* 0x2D007229: test ecx, ecx */
   4591     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4592     _cf = 0;
   4593     _flag_k = FK_TEST;
   4594     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00723B; /* 0x2D00722B: je 0x2d00723b */
   4595 L_2D00722D:
   4596     eax = MEM32(ebp + 0x8); /* 0x2D00722D: mov eax, dword ptr [ebp + 8] */
   4597     PUSH32(esp, eax); /* 0x2D007230: push eax */
   4598     RECOMP_ICALL(MEM32(0x2D009530)); /* 0x2D007231: call dword ptr [0x2d009530] */
   4599     RECOMP_FLAGS_IN();
   4600     ebp = POP32_VAL(esp); /* 0x2D007237: pop ebp */
   4601     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D007238: ret 4 */
   4602 L_2D00723B:
   4603     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4604     SET_LO8(eax, 0); /* 0x2D00723B: xor al, al */
   4605     _cf = 0;
   4606     _flag_k = FK_NARROW(FK_TEST, 24);
   4607     ebp = POP32_VAL(esp); /* 0x2D00723D: pop ebp */
   4608     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D00723E: ret 4 */
   4609     RECOMP_REGS_OUT();
   4610 }
   4611 
   4612 void sub_2D007250(void) {
   4613     int _fpu_cmp = 0;
   4614     uint32_t _cf = 0;
   4615     int _df = 1;
   4616     uint32_t _flag_k = FK_NONE;
   4617     uint32_t _flag_a = 0, _flag_b = 0;
   4618     uint32_t _itail_tgt = 0;
   4619     RECOMP_REGS_LOCALS
   4620     RECOMP_ENTER(0x2D007250u);
   4621 
   4622 L_2D007250:
   4623     PUSH32(esp, ebp); /* 0x2D007250: push ebp */
   4624     ebp = esp; /* 0x2D007251: mov ebp, esp */
   4625     ecx = MEM32(0x2D01752C); /* 0x2D007253: mov ecx, dword ptr [0x2d01752c] */
   4626     /* test ecx, ecx */ /* 0x2D007259: test ecx, ecx */
   4627     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4628     _cf = 0;
   4629     _flag_k = FK_TEST;
   4630     if (TEST_Z(_flag_a, _flag_b)) goto L_2D007273; /* 0x2D00725B: je 0x2d007273 */
   4631 L_2D00725D:
   4632     eax = MEM32(ebp + 0x10); /* 0x2D00725D: mov eax, dword ptr [ebp + 0x10] */
   4633     edx = MEM32(ebp + 0xC); /* 0x2D007260: mov edx, dword ptr [ebp + 0xc] */
   4634     PUSH32(esp, eax); /* 0x2D007263: push eax */
   4635     eax = MEM32(ebp + 0x8); /* 0x2D007264: mov eax, dword ptr [ebp + 8] */
   4636     PUSH32(esp, edx); /* 0x2D007267: push edx */
   4637     PUSH32(esp, eax); /* 0x2D007268: push eax */
   4638     RECOMP_ICALL(MEM32(0x2D009534)); /* 0x2D007269: call dword ptr [0x2d009534] */
   4639     RECOMP_FLAGS_IN();
   4640     ebp = POP32_VAL(esp); /* 0x2D00726F: pop ebp */
   4641     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D007270: ret 0xc */
   4642 L_2D007273:
   4643     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4644     SET_LO8(eax, 0); /* 0x2D007273: xor al, al */
   4645     _cf = 0;
   4646     _flag_k = FK_NARROW(FK_TEST, 24);
   4647     ebp = POP32_VAL(esp); /* 0x2D007275: pop ebp */
   4648     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D007276: ret 0xc */
   4649     RECOMP_REGS_OUT();
   4650 }
   4651 
   4652 void sub_2D007280(void) {
   4653     int _fpu_cmp = 0;
   4654     uint32_t _cf = 0;
   4655     int _df = 1;
   4656     uint32_t _flag_k = FK_NONE;
   4657     uint32_t _flag_a = 0, _flag_b = 0;
   4658     uint32_t _itail_tgt = 0;
   4659     RECOMP_REGS_LOCALS
   4660     RECOMP_ENTER(0x2D007280u);
   4661 
   4662 L_2D007280:
   4663     eax = MEM32(0x2D01752C); /* 0x2D007280: mov eax, dword ptr [0x2d01752c] */
   4664     /* test eax, eax */ /* 0x2D007285: test eax, eax */
   4665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4666     _cf = 0;
   4667     _flag_k = FK_TEST;
   4668     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2D007287: setne al */
   4669     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D00728A: ret  */
   4670     RECOMP_REGS_OUT();
   4671 }
   4672 
   4673 void sub_2D007290(void) {
   4674     int _fpu_cmp = 0;
   4675     uint32_t _cf = 0;
   4676     int _df = 1;
   4677     uint32_t _flag_k = FK_NONE;
   4678     uint32_t _flag_a = 0, _flag_b = 0;
   4679     uint32_t _itail_tgt = 0;
   4680     RECOMP_REGS_LOCALS
   4681     RECOMP_ENTER(0x2D007290u);
   4682 
   4683 L_2D007290:
   4684     PUSH32(esp, ebp); /* 0x2D007290: push ebp */
   4685     ebp = esp; /* 0x2D007291: mov ebp, esp */
   4686     ecx = MEM32(0x2D01752C); /* 0x2D007293: mov ecx, dword ptr [0x2d01752c] */
   4687     /* test ecx, ecx */ /* 0x2D007299: test ecx, ecx */
   4688     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4689     _cf = 0;
   4690     _flag_k = FK_TEST;
   4691     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0072AD; /* 0x2D00729B: je 0x2d0072ad */
   4692 L_2D00729D:
   4693     eax = MEM32(ebp + 0x8); /* 0x2D00729D: mov eax, dword ptr [ebp + 8] */
   4694     PUSH32(esp, eax); /* 0x2D0072A0: push eax */
   4695     RECOMP_ICALL(MEM32(0x2D009538)); /* 0x2D0072A1: call dword ptr [0x2d009538] */
   4696     RECOMP_FLAGS_IN();
   4697     SET_LO8(eax, 1); /* 0x2D0072A7: mov al, 1 */
   4698     ebp = POP32_VAL(esp); /* 0x2D0072A9: pop ebp */
   4699     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0072AA: ret 4 */
   4700 L_2D0072AD:
   4701     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4702     SET_LO8(eax, 0); /* 0x2D0072AD: xor al, al */
   4703     _cf = 0;
   4704     _flag_k = FK_NARROW(FK_TEST, 24);
   4705     ebp = POP32_VAL(esp); /* 0x2D0072AF: pop ebp */
   4706     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0072B0: ret 4 */
   4707     RECOMP_REGS_OUT();
   4708 }
   4709 
   4710 void sub_2D0072C0(void) {
   4711     int _fpu_cmp = 0;
   4712     uint32_t _cf = 0;
   4713     int _df = 1;
   4714     uint32_t _flag_k = FK_NONE;
   4715     uint32_t _flag_a = 0, _flag_b = 0;
   4716     uint32_t _itail_tgt = 0;
   4717     RECOMP_REGS_LOCALS
   4718     RECOMP_ENTER(0x2D0072C0u);
   4719 
   4720 L_2D0072C0:
   4721     PUSH32(esp, ebp); /* 0x2D0072C0: push ebp */
   4722     ebp = esp; /* 0x2D0072C1: mov ebp, esp */
   4723     eax = MEM32(ebp + 0x8); /* 0x2D0072C3: mov eax, dword ptr [ebp + 8] */
   4724     PUSH32(esp, eax); /* 0x2D0072C6: push eax */
   4725     RECOMP_ICALL(MEM32(0x2D00953C)); /* 0x2D0072C7: call dword ptr [0x2d00953c] */
   4726     RECOMP_FLAGS_IN();
   4727     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4728     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4729     esp = esp + 4; /* 0x2D0072CD: add esp, 4 */
   4730     _flag_k = FK_ADD;
   4731     ebp = POP32_VAL(esp); /* 0x2D0072D0: pop ebp */
   4732     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0072D1: ret  */
   4733     RECOMP_REGS_OUT();
   4734 }
   4735 
   4736 void sub_2D0072E0(void) {
   4737     int _fpu_cmp = 0;
   4738     uint32_t _cf = 0;
   4739     int _df = 1;
   4740     uint32_t _flag_k = FK_NONE;
   4741     uint32_t _flag_a = 0, _flag_b = 0;
   4742     uint32_t _itail_tgt = 0;
   4743     RECOMP_REGS_LOCALS
   4744     RECOMP_ENTER(0x2D0072E0u);
   4745 
   4746 L_2D0072E0:
   4747     PUSH32(esp, ebp); /* 0x2D0072E0: push ebp */
   4748     ebp = esp; /* 0x2D0072E1: mov ebp, esp */
   4749     eax = MEM32(ebp + 0x8); /* 0x2D0072E3: mov eax, dword ptr [ebp + 8] */
   4750     PUSH32(esp, eax); /* 0x2D0072E6: push eax */
   4751     RECOMP_ICALL(MEM32(0x2D009540)); /* 0x2D0072E7: call dword ptr [0x2d009540] */
   4752     RECOMP_FLAGS_IN();
   4753     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4754     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4755     esp = esp + 4; /* 0x2D0072ED: add esp, 4 */
   4756     _flag_k = FK_ADD;
   4757     ebp = POP32_VAL(esp); /* 0x2D0072F0: pop ebp */
   4758     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0072F1: ret  */
   4759     RECOMP_REGS_OUT();
   4760 }
   4761 
   4762 void sub_2D007300(void) {
   4763     int _fpu_cmp = 0;
   4764     uint32_t _cf = 0;
   4765     int _df = 1;
   4766     uint32_t _flag_k = FK_NONE;
   4767     uint32_t _flag_a = 0, _flag_b = 0;
   4768     uint32_t _itail_tgt = 0;
   4769     RECOMP_REGS_LOCALS
   4770     RECOMP_ENTER(0x2D007300u);
   4771 
   4772 L_2D007300:
   4773     PUSH32(esp, ebp); /* 0x2D007300: push ebp */
   4774     ebp = esp; /* 0x2D007301: mov ebp, esp */
   4775     eax = MEM32(ebp + 0x8); /* 0x2D007303: mov eax, dword ptr [ebp + 8] */
   4776     PUSH32(esp, eax); /* 0x2D007306: push eax */
   4777     RECOMP_ICALL(MEM32(0x2D009544)); /* 0x2D007307: call dword ptr [0x2d009544] */
   4778     RECOMP_FLAGS_IN();
   4779     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4780     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4781     esp = esp + 4; /* 0x2D00730D: add esp, 4 */
   4782     _flag_k = FK_ADD;
   4783     ebp = POP32_VAL(esp); /* 0x2D007310: pop ebp */
   4784     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D007311: ret  */
   4785     RECOMP_REGS_OUT();
   4786 }
   4787 
   4788 void sub_2D007320(void) {
   4789     int _fpu_cmp = 0;
   4790     uint32_t _cf = 0;
   4791     int _df = 1;
   4792     uint32_t _flag_k = FK_NONE;
   4793     uint32_t _flag_a = 0, _flag_b = 0;
   4794     uint32_t _itail_tgt = 0;
   4795     RECOMP_REGS_LOCALS
   4796     RECOMP_ENTER(0x2D007320u);
   4797 
   4798 L_2D007320:
   4799     PUSH32(esp, ebp); /* 0x2D007320: push ebp */
   4800     ebp = esp; /* 0x2D007321: mov ebp, esp */
   4801     eax = MEM32(0x2D01752C); /* 0x2D007323: mov eax, dword ptr [0x2d01752c] */
   4802     /* test eax, eax */ /* 0x2D007328: test eax, eax */
   4803     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4804     _cf = 0;
   4805     _flag_k = FK_TEST;
   4806     if (TEST_Z(_flag_a, _flag_b)) goto L_2D007354; /* 0x2D00732A: je 0x2d007354 */
   4807 L_2D00732C:
   4808     eax = MEM32(eax + 0x80); /* 0x2D00732C: mov eax, dword ptr [eax + 0x80] */
   4809     /* test eax, eax */ /* 0x2D007332: test eax, eax */
   4810     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4811     _cf = 0;
   4812     _flag_k = FK_TEST;
   4813     if (TEST_Z(_flag_a, _flag_b)) goto L_2D007354; /* 0x2D007334: je 0x2d007354 */
   4814 L_2D007336:
   4815     ecx = MEM32(ebp + 0x8); /* 0x2D007336: mov ecx, dword ptr [ebp + 8] */
   4816     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x144u);
   4817     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4818     eax = eax + 0x144u; /* 0x2D007339: add eax, 0x144 */
   4819     _flag_k = FK_ADD;
   4820     edx = MEM32(eax); /* 0x2D00733E: mov edx, dword ptr [eax] */
   4821     MEM32(ecx) = edx; /* 0x2D007340: mov dword ptr [ecx], edx */
   4822     edx = MEM32(eax + 0x4); /* 0x2D007342: mov edx, dword ptr [eax + 4] */
   4823     MEM32(ecx + 0x4) = edx; /* 0x2D007345: mov dword ptr [ecx + 4], edx */
   4824     edx = MEM32(eax + 0x8); /* 0x2D007348: mov edx, dword ptr [eax + 8] */
   4825     MEM32(ecx + 0x8) = edx; /* 0x2D00734B: mov dword ptr [ecx + 8], edx */
   4826     eax = MEM32(eax + 0xC); /* 0x2D00734E: mov eax, dword ptr [eax + 0xc] */
   4827     MEM32(ecx + 0xC) = eax; /* 0x2D007351: mov dword ptr [ecx + 0xc], eax */
   4828 L_2D007354:
   4829     ebp = POP32_VAL(esp); /* 0x2D007354: pop ebp */
   4830     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D007355: ret 4 */
   4831     RECOMP_REGS_OUT();
   4832 }
   4833 
   4834 void sub_2D007360(void) {
   4835     int _fpu_cmp = 0;
   4836     uint32_t _cf = 0;
   4837     int _df = 1;
   4838     uint32_t _flag_k = FK_NONE;
   4839     uint32_t _flag_a = 0, _flag_b = 0;
   4840     uint32_t _itail_tgt = 0;
   4841     RECOMP_REGS_LOCALS
   4842     RECOMP_ENTER(0x2D007360u);
   4843 
   4844 L_2D007360:
   4845     ecx = MEM32(0x2D01752C); /* 0x2D007360: mov ecx, dword ptr [0x2d01752c] */
   4846 L_2D007366:
   4847     /* test ecx, ecx */ /* 0x2D007366: test ecx, ecx */
   4848     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4849     _cf = 0;
   4850     _flag_k = FK_TEST;
   4851 L_2D007368:
   4852     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D007370; /* 0x2D007368: je 0x2d007370 */
   4853 L_2D00736A:
   4854     { _itail_tgt = (uint32_t)(MEM32(0x2D009548)); goto _ljump; }
   4855 L_2D007370:
   4856     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4857     eax = 0; /* 0x2D007370: xor eax, eax */
   4858     _cf = 0;
   4859     _flag_k = FK_TEST;
   4860 L_2D007372:
   4861     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D007372: ret  */
   4862   _ljump:
   4863     switch (_itail_tgt) {
   4864       case 0x2D007360u: goto L_2D007360;
   4865       case 0x2D007366u: goto L_2D007366;
   4866       case 0x2D007368u: goto L_2D007368;
   4867       case 0x2D00736Au: goto L_2D00736A;
   4868       case 0x2D007370u: goto L_2D007370;
   4869       case 0x2D007372u: goto L_2D007372;
   4870       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4871     }
   4872     RECOMP_REGS_OUT();
   4873 }
   4874 
   4875 void sub_2D007380(void) {
   4876     int _fpu_cmp = 0;
   4877     uint32_t _cf = 0;
   4878     int _df = 1;
   4879     uint32_t _flag_k = FK_NONE;
   4880     uint32_t _flag_a = 0, _flag_b = 0;
   4881     uint32_t _itail_tgt = 0;
   4882     RECOMP_REGS_LOCALS
   4883     RECOMP_ENTER(0x2D007380u);
   4884 
   4885 L_2D007380:
   4886     ecx = MEM32(0x2D01752C); /* 0x2D007380: mov ecx, dword ptr [0x2d01752c] */
   4887 L_2D007386:
   4888     /* test ecx, ecx */ /* 0x2D007386: test ecx, ecx */
   4889     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4890     _cf = 0;
   4891     _flag_k = FK_TEST;
   4892 L_2D007388:
   4893     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D007390; /* 0x2D007388: je 0x2d007390 */
   4894 L_2D00738A:
   4895     { _itail_tgt = (uint32_t)(MEM32(0x2D00954C)); goto _ljump; }
   4896 L_2D007390:
   4897     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   4898     SET_LO8(eax, 0); /* 0x2D007390: xor al, al */
   4899     _cf = 0;
   4900     _flag_k = FK_NARROW(FK_TEST, 24);
   4901 L_2D007392:
   4902     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D007392: ret  */
   4903   _ljump:
   4904     switch (_itail_tgt) {
   4905       case 0x2D007380u: goto L_2D007380;
   4906       case 0x2D007386u: goto L_2D007386;
   4907       case 0x2D007388u: goto L_2D007388;
   4908       case 0x2D00738Au: goto L_2D00738A;
   4909       case 0x2D007390u: goto L_2D007390;
   4910       case 0x2D007392u: goto L_2D007392;
   4911       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4912     }
   4913     RECOMP_REGS_OUT();
   4914 }